forked from ProverCoderAI/docker-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-git-scripts.ts
More file actions
31 lines (30 loc) · 1.28 KB
/
docker-git-scripts.ts
File metadata and controls
31 lines (30 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// CHANGE: define the set of docker-git scripts to embed in generated containers
// WHY: scripts (session-backup, pre-commit guards, knowledge splitter) must be available
// inside containers for git hooks and docker-git module usage
// REF: issue-176
// SOURCE: n/a
// FORMAT THEOREM: ∀ name ∈ dockerGitScriptNames: name ∈ scripts/ ∧ referenced_by_hooks(name)
// PURITY: CORE (pure constant definition)
// INVARIANT: list is exhaustive for all scripts referenced by generated git hooks
// COMPLEXITY: O(1)
/**
* Names of docker-git scripts that must be available inside generated containers.
*
* These scripts are referenced by git hooks (pre-push, pre-commit), the global
* git push post-action runtime, and session backup workflows. They are copied into
* each project's build context under
* `scripts/` and embedded into the Docker image at `/opt/docker-git/scripts/`.
*
* @pure true
* @invariant ∀ name ∈ result: ∃ file(scripts/{name}) in docker-git workspace
*/
export const dockerGitScriptNames: ReadonlyArray<string> = [
"session-backup-gist.js",
"session-backup-repo.js",
"session-list-gists.js",
"pre-commit-secret-guard.sh",
"pre-push-knowledge-guard.js",
"split-knowledge-large-files.js",
"repair-knowledge-history.js",
"setup-pre-commit-hook.js"
]