@paraharness/git 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +68 -2
- package/dist/builders/create-git-candidate-comparison-tools.d.ts +14 -0
- package/dist/builders/create-git-candidate-comparison-tools.d.ts.map +1 -0
- package/dist/builders/create-git-candidate-comparison-tools.js +42 -0
- package/dist/builders/create-git-candidate-comparison-tools.js.map +1 -0
- package/dist/builders/create-git-commit-and-push-builder.d.ts +18 -0
- package/dist/builders/create-git-commit-and-push-builder.d.ts.map +1 -0
- package/dist/builders/create-git-commit-and-push-builder.js +60 -0
- package/dist/builders/create-git-commit-and-push-builder.js.map +1 -0
- package/dist/builders/create-git-cow-worktree-builder.d.ts +16 -0
- package/dist/builders/create-git-cow-worktree-builder.d.ts.map +1 -0
- package/dist/builders/create-git-cow-worktree-builder.js +72 -0
- package/dist/builders/create-git-cow-worktree-builder.js.map +1 -0
- package/dist/builders/create-git-discard-branch-builder.d.ts +13 -0
- package/dist/builders/create-git-discard-branch-builder.d.ts.map +1 -0
- package/dist/builders/create-git-discard-branch-builder.js +22 -0
- package/dist/builders/create-git-discard-branch-builder.js.map +1 -0
- package/dist/builders/create-git-keep-worktree-builder.d.ts +13 -0
- package/dist/builders/create-git-keep-worktree-builder.d.ts.map +1 -0
- package/dist/builders/create-git-keep-worktree-builder.js +22 -0
- package/dist/builders/create-git-keep-worktree-builder.js.map +1 -0
- package/dist/builders/create-git-merge-queue-builder.d.ts +19 -0
- package/dist/builders/create-git-merge-queue-builder.d.ts.map +1 -0
- package/dist/builders/create-git-merge-queue-builder.js +59 -0
- package/dist/builders/create-git-merge-queue-builder.js.map +1 -0
- package/dist/builders/create-git-patch-equivalence-builder.d.ts +13 -0
- package/dist/builders/create-git-patch-equivalence-builder.d.ts.map +1 -0
- package/dist/builders/create-git-patch-equivalence-builder.js +32 -0
- package/dist/builders/create-git-patch-equivalence-builder.js.map +1 -0
- package/dist/builders/create-git-public-surface-cross-tester-builder.d.ts +14 -0
- package/dist/builders/create-git-public-surface-cross-tester-builder.d.ts.map +1 -0
- package/dist/builders/create-git-public-surface-cross-tester-builder.js +38 -0
- package/dist/builders/create-git-public-surface-cross-tester-builder.js.map +1 -0
- package/dist/builders/create-git-ref-reader-tools.d.ts +14 -0
- package/dist/builders/create-git-ref-reader-tools.d.ts.map +1 -0
- package/dist/builders/create-git-ref-reader-tools.js +42 -0
- package/dist/builders/create-git-ref-reader-tools.js.map +1 -0
- package/dist/builders/create-git-reset-worktree-builder.d.ts +13 -0
- package/dist/builders/create-git-reset-worktree-builder.d.ts.map +1 -0
- package/dist/builders/create-git-reset-worktree-builder.js +22 -0
- package/dist/builders/create-git-reset-worktree-builder.js.map +1 -0
- package/dist/builders/create-git-snapshot-and-reset-builder.d.ts +13 -0
- package/dist/builders/create-git-snapshot-and-reset-builder.d.ts.map +1 -0
- package/dist/builders/create-git-snapshot-and-reset-builder.js +23 -0
- package/dist/builders/create-git-snapshot-and-reset-builder.js.map +1 -0
- package/dist/builders/git-commit-and-push-builder.d.ts +44 -0
- package/dist/builders/git-commit-and-push-builder.d.ts.map +1 -0
- package/dist/builders/git-commit-and-push-builder.js +2 -0
- package/dist/builders/git-commit-and-push-builder.js.map +1 -0
- package/dist/builders/git-commit-and-push-options.d.ts +22 -0
- package/dist/builders/git-commit-and-push-options.d.ts.map +1 -0
- package/dist/builders/git-commit-and-push-options.js +2 -0
- package/dist/builders/git-commit-and-push-options.js.map +1 -0
- package/dist/builders/git-cow-worktree-builder.d.ts +64 -0
- package/dist/builders/git-cow-worktree-builder.d.ts.map +1 -0
- package/dist/builders/git-cow-worktree-builder.js +2 -0
- package/dist/builders/git-cow-worktree-builder.js.map +1 -0
- package/dist/builders/git-cow-worktree-options.d.ts +42 -0
- package/dist/builders/git-cow-worktree-options.d.ts.map +1 -0
- package/dist/builders/git-cow-worktree-options.js +2 -0
- package/dist/builders/git-cow-worktree-options.js.map +1 -0
- package/dist/builders/git-merge-queue-builder.d.ts +37 -0
- package/dist/builders/git-merge-queue-builder.d.ts.map +1 -0
- package/dist/builders/git-merge-queue-builder.js +2 -0
- package/dist/builders/git-merge-queue-builder.js.map +1 -0
- package/dist/builders/git-merge-queue-options.d.ts +23 -0
- package/dist/builders/git-merge-queue-options.d.ts.map +1 -0
- package/dist/builders/git-merge-queue-options.js +2 -0
- package/dist/builders/git-merge-queue-options.js.map +1 -0
- package/dist/builders/git-namespace-contract.d.ts +142 -0
- package/dist/builders/git-namespace-contract.d.ts.map +1 -0
- package/dist/builders/git-namespace-contract.js +2 -0
- package/dist/builders/git-namespace-contract.js.map +1 -0
- package/dist/builders/git-namespace.d.ts +6 -0
- package/dist/builders/git-namespace.d.ts.map +1 -0
- package/dist/builders/git-namespace.js +32 -0
- package/dist/builders/git-namespace.js.map +1 -0
- package/dist/builders/git-public-surface-cross-tester-options.d.ts +16 -0
- package/dist/builders/git-public-surface-cross-tester-options.d.ts.map +1 -0
- package/dist/builders/git-public-surface-cross-tester-options.js +2 -0
- package/dist/builders/git-public-surface-cross-tester-options.js.map +1 -0
- package/dist/builders/git-reconcile-strategy-options.d.ts +16 -0
- package/dist/builders/git-reconcile-strategy-options.d.ts.map +1 -0
- package/dist/builders/git-reconcile-strategy-options.js +2 -0
- package/dist/builders/git-reconcile-strategy-options.js.map +1 -0
- package/dist/builders/internal/build-git-cow-worktree-node.d.ts +35 -0
- package/dist/builders/internal/build-git-cow-worktree-node.d.ts.map +1 -0
- package/dist/builders/internal/build-git-cow-worktree-node.js +77 -0
- package/dist/builders/internal/build-git-cow-worktree-node.js.map +1 -0
- package/dist/executors/create-git-executors.d.ts +12 -0
- package/dist/executors/create-git-executors.d.ts.map +1 -0
- package/dist/executors/create-git-executors.js +43 -0
- package/dist/executors/create-git-executors.js.map +1 -0
- package/dist/executors/git-checkpoint-payload.d.ts +44 -0
- package/dist/executors/git-checkpoint-payload.d.ts.map +1 -0
- package/dist/executors/git-checkpoint-payload.js +2 -0
- package/dist/executors/git-checkpoint-payload.js.map +1 -0
- package/dist/executors/git-commit-and-merge-steps.d.ts +33 -0
- package/dist/executors/git-commit-and-merge-steps.d.ts.map +1 -0
- package/dist/executors/git-commit-and-merge-steps.js +52 -0
- package/dist/executors/git-commit-and-merge-steps.js.map +1 -0
- package/dist/executors/git-cow-worktree-scope.d.ts +201 -0
- package/dist/executors/git-cow-worktree-scope.d.ts.map +1 -0
- package/dist/executors/git-cow-worktree-scope.js +260 -0
- package/dist/executors/git-cow-worktree-scope.js.map +1 -0
- package/dist/executors/git-cross-verifiers-and-tools.d.ts +42 -0
- package/dist/executors/git-cross-verifiers-and-tools.d.ts.map +1 -0
- package/dist/executors/git-cross-verifiers-and-tools.js +112 -0
- package/dist/executors/git-cross-verifiers-and-tools.js.map +1 -0
- package/dist/executors/git-executors.constants.d.ts +4 -0
- package/dist/executors/git-executors.constants.d.ts.map +1 -0
- package/dist/executors/git-executors.constants.js +4 -0
- package/dist/executors/git-executors.constants.js.map +1 -0
- package/dist/executors/git-hooks-and-checks.d.ts +51 -0
- package/dist/executors/git-hooks-and-checks.d.ts.map +1 -0
- package/dist/executors/git-hooks-and-checks.js +139 -0
- package/dist/executors/git-hooks-and-checks.js.map +1 -0
- package/dist/executors/internal/checkpoint-restore-steps.d.ts +50 -0
- package/dist/executors/internal/checkpoint-restore-steps.d.ts.map +1 -0
- package/dist/executors/internal/checkpoint-restore-steps.js +184 -0
- package/dist/executors/internal/checkpoint-restore-steps.js.map +1 -0
- package/dist/executors/internal/checkpoint-staging-and-integrity.d.ts +51 -0
- package/dist/executors/internal/checkpoint-staging-and-integrity.d.ts.map +1 -0
- package/dist/executors/internal/checkpoint-staging-and-integrity.js +192 -0
- package/dist/executors/internal/checkpoint-staging-and-integrity.js.map +1 -0
- package/dist/executors/internal/compute-worktree-status-options.d.ts +15 -0
- package/dist/executors/internal/compute-worktree-status-options.d.ts.map +1 -0
- package/dist/executors/internal/compute-worktree-status-options.js +2 -0
- package/dist/executors/internal/compute-worktree-status-options.js.map +1 -0
- package/dist/executors/internal/cow-worktree-hydrator.d.ts +51 -0
- package/dist/executors/internal/cow-worktree-hydrator.d.ts.map +1 -0
- package/dist/executors/internal/cow-worktree-hydrator.js +174 -0
- package/dist/executors/internal/cow-worktree-hydrator.js.map +1 -0
- package/dist/executors/internal/file-digest-and-globs.d.ts +58 -0
- package/dist/executors/internal/file-digest-and-globs.d.ts.map +1 -0
- package/dist/executors/internal/file-digest-and-globs.js +188 -0
- package/dist/executors/internal/file-digest-and-globs.js.map +1 -0
- package/dist/executors/internal/git-checkpoint-diff-effects.d.ts +16 -0
- package/dist/executors/internal/git-checkpoint-diff-effects.d.ts.map +1 -0
- package/dist/executors/internal/git-checkpoint-diff-effects.js +38 -0
- package/dist/executors/internal/git-checkpoint-diff-effects.js.map +1 -0
- package/dist/executors/internal/git-checkpoint-restore.d.ts +14 -0
- package/dist/executors/internal/git-checkpoint-restore.d.ts.map +1 -0
- package/dist/executors/internal/git-checkpoint-restore.js +37 -0
- package/dist/executors/internal/git-checkpoint-restore.js.map +1 -0
- package/dist/executors/internal/git-checkpoint-serialize.d.ts +13 -0
- package/dist/executors/internal/git-checkpoint-serialize.d.ts.map +1 -0
- package/dist/executors/internal/git-checkpoint-serialize.js +48 -0
- package/dist/executors/internal/git-checkpoint-serialize.js.map +1 -0
- package/dist/executors/internal/git-checkpoint-status-map.d.ts +14 -0
- package/dist/executors/internal/git-checkpoint-status-map.d.ts.map +1 -0
- package/dist/executors/internal/git-checkpoint-status-map.js +27 -0
- package/dist/executors/internal/git-checkpoint-status-map.js.map +1 -0
- package/dist/executors/internal/git-cli-command-options.d.ts +21 -0
- package/dist/executors/internal/git-cli-command-options.d.ts.map +1 -0
- package/dist/executors/internal/git-cli-command-options.js +2 -0
- package/dist/executors/internal/git-cli-command-options.js.map +1 -0
- package/dist/executors/internal/git-cli-command-result.d.ts +16 -0
- package/dist/executors/internal/git-cli-command-result.d.ts.map +1 -0
- package/dist/executors/internal/git-cli-command-result.js +2 -0
- package/dist/executors/internal/git-cli-command-result.js.map +1 -0
- package/dist/executors/internal/git-cli-runner.d.ts +73 -0
- package/dist/executors/internal/git-cli-runner.d.ts.map +1 -0
- package/dist/executors/internal/git-cli-runner.js +157 -0
- package/dist/executors/internal/git-cli-runner.js.map +1 -0
- package/dist/executors/internal/git-cross-test-import-scanner.d.ts +68 -0
- package/dist/executors/internal/git-cross-test-import-scanner.d.ts.map +1 -0
- package/dist/executors/internal/git-cross-test-import-scanner.js +226 -0
- package/dist/executors/internal/git-cross-test-import-scanner.js.map +1 -0
- package/dist/executors/internal/git-executor.constants.d.ts +29 -0
- package/dist/executors/internal/git-executor.constants.d.ts.map +1 -0
- package/dist/executors/internal/git-executor.constants.js +40 -0
- package/dist/executors/internal/git-executor.constants.js.map +1 -0
- package/dist/executors/internal/git-merge-train-bisect.d.ts +51 -0
- package/dist/executors/internal/git-merge-train-bisect.d.ts.map +1 -0
- package/dist/executors/internal/git-merge-train-bisect.js +152 -0
- package/dist/executors/internal/git-merge-train-bisect.js.map +1 -0
- package/dist/executors/internal/git-tool-dispatchers.d.ts +26 -0
- package/dist/executors/internal/git-tool-dispatchers.d.ts.map +1 -0
- package/dist/executors/internal/git-tool-dispatchers.js +174 -0
- package/dist/executors/internal/git-tool-dispatchers.js.map +1 -0
- package/dist/executors/internal/git-worktree-acquire-root.d.ts +22 -0
- package/dist/executors/internal/git-worktree-acquire-root.d.ts.map +1 -0
- package/dist/executors/internal/git-worktree-acquire-root.js +67 -0
- package/dist/executors/internal/git-worktree-acquire-root.js.map +1 -0
- package/dist/executors/internal/git-worktree-commit-child.d.ts +26 -0
- package/dist/executors/internal/git-worktree-commit-child.d.ts.map +1 -0
- package/dist/executors/internal/git-worktree-commit-child.js +88 -0
- package/dist/executors/internal/git-worktree-commit-child.js.map +1 -0
- package/dist/executors/internal/git-worktree-flush-and-prune.d.ts +43 -0
- package/dist/executors/internal/git-worktree-flush-and-prune.d.ts.map +1 -0
- package/dist/executors/internal/git-worktree-flush-and-prune.js +169 -0
- package/dist/executors/internal/git-worktree-flush-and-prune.js.map +1 -0
- package/dist/executors/internal/git-worktree-fork-and-release.d.ts +37 -0
- package/dist/executors/internal/git-worktree-fork-and-release.d.ts.map +1 -0
- package/dist/executors/internal/git-worktree-fork-and-release.js +159 -0
- package/dist/executors/internal/git-worktree-fork-and-release.js.map +1 -0
- package/dist/executors/internal/git-worktree-materialize-merge.d.ts +51 -0
- package/dist/executors/internal/git-worktree-materialize-merge.d.ts.map +1 -0
- package/dist/executors/internal/git-worktree-materialize-merge.js +161 -0
- package/dist/executors/internal/git-worktree-materialize-merge.js.map +1 -0
- package/dist/executors/internal/git-worktree-reattach.d.ts +57 -0
- package/dist/executors/internal/git-worktree-reattach.d.ts.map +1 -0
- package/dist/executors/internal/git-worktree-reattach.js +324 -0
- package/dist/executors/internal/git-worktree-reattach.js.map +1 -0
- package/dist/executors/internal/git-worktree-sync-child-and-root.d.ts +26 -0
- package/dist/executors/internal/git-worktree-sync-child-and-root.d.ts.map +1 -0
- package/dist/executors/internal/git-worktree-sync-child-and-root.js +82 -0
- package/dist/executors/internal/git-worktree-sync-child-and-root.js.map +1 -0
- package/dist/executors/internal/host-repository-head-state.d.ts +10 -0
- package/dist/executors/internal/host-repository-head-state.d.ts.map +1 -0
- package/dist/executors/internal/host-repository-head-state.js +2 -0
- package/dist/executors/internal/host-repository-head-state.js.map +1 -0
- package/dist/executors/internal/merge-train-candidate.d.ts +14 -0
- package/dist/executors/internal/merge-train-candidate.d.ts.map +1 -0
- package/dist/executors/internal/merge-train-candidate.js +2 -0
- package/dist/executors/internal/merge-train-candidate.js.map +1 -0
- package/dist/executors/internal/merge-train-chain-entry.d.ts +13 -0
- package/dist/executors/internal/merge-train-chain-entry.d.ts.map +1 -0
- package/dist/executors/internal/merge-train-chain-entry.js +2 -0
- package/dist/executors/internal/merge-train-chain-entry.js.map +1 -0
- package/dist/executors/internal/merge-train-result.d.ts +19 -0
- package/dist/executors/internal/merge-train-result.d.ts.map +1 -0
- package/dist/executors/internal/merge-train-result.js +2 -0
- package/dist/executors/internal/merge-train-result.js.map +1 -0
- package/dist/executors/internal/merge-train-runner.d.ts +16 -0
- package/dist/executors/internal/merge-train-runner.d.ts.map +1 -0
- package/dist/executors/internal/merge-train-runner.js +141 -0
- package/dist/executors/internal/merge-train-runner.js.map +1 -0
- package/dist/executors/internal/merge-tree-materializer-params.d.ts +19 -0
- package/dist/executors/internal/merge-tree-materializer-params.d.ts.map +1 -0
- package/dist/executors/internal/merge-tree-materializer-params.js +2 -0
- package/dist/executors/internal/merge-tree-materializer-params.js.map +1 -0
- package/dist/executors/internal/parent-fast-forward.d.ts +47 -0
- package/dist/executors/internal/parent-fast-forward.d.ts.map +1 -0
- package/dist/executors/internal/parent-fast-forward.js +138 -0
- package/dist/executors/internal/parent-fast-forward.js.map +1 -0
- package/dist/executors/internal/porcelain-v2-parser.d.ts +49 -0
- package/dist/executors/internal/porcelain-v2-parser.d.ts.map +1 -0
- package/dist/executors/internal/porcelain-v2-parser.js +165 -0
- package/dist/executors/internal/porcelain-v2-parser.js.map +1 -0
- package/dist/executors/internal/resolve-effective-base-branch.d.ts +13 -0
- package/dist/executors/internal/resolve-effective-base-branch.d.ts.map +1 -0
- package/dist/executors/internal/resolve-effective-base-branch.js +38 -0
- package/dist/executors/internal/resolve-effective-base-branch.js.map +1 -0
- package/dist/executors/internal/squash-rebase-and-push.d.ts +14 -0
- package/dist/executors/internal/squash-rebase-and-push.d.ts.map +1 -0
- package/dist/executors/internal/squash-rebase-and-push.js +192 -0
- package/dist/executors/internal/squash-rebase-and-push.js.map +1 -0
- package/dist/executors/internal/staged-checkpoint-tree-result.d.ts +13 -0
- package/dist/executors/internal/staged-checkpoint-tree-result.d.ts.map +1 -0
- package/dist/executors/internal/staged-checkpoint-tree-result.js +2 -0
- package/dist/executors/internal/staged-checkpoint-tree-result.js.map +1 -0
- package/dist/executors/internal/stateless-merge-tree-result.d.ts +12 -0
- package/dist/executors/internal/stateless-merge-tree-result.d.ts.map +1 -0
- package/dist/executors/internal/stateless-merge-tree-result.js +2 -0
- package/dist/executors/internal/stateless-merge-tree-result.js.map +1 -0
- package/dist/executors/internal/synthesized-working-tree-commit.d.ts +10 -0
- package/dist/executors/internal/synthesized-working-tree-commit.d.ts.map +1 -0
- package/dist/executors/internal/synthesized-working-tree-commit.js +2 -0
- package/dist/executors/internal/synthesized-working-tree-commit.js.map +1 -0
- package/dist/executors/internal/worktree-integrity-verdict.d.ts +10 -0
- package/dist/executors/internal/worktree-integrity-verdict.d.ts.map +1 -0
- package/dist/executors/internal/worktree-integrity-verdict.js +2 -0
- package/dist/executors/internal/worktree-integrity-verdict.js.map +1 -0
- package/dist/executors/internal/worktree-status-snapshot.d.ts +17 -0
- package/dist/executors/internal/worktree-status-snapshot.d.ts.map +1 -0
- package/dist/executors/internal/worktree-status-snapshot.js +2 -0
- package/dist/executors/internal/worktree-status-snapshot.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/git-receipts.schema.d.ts +174 -0
- package/dist/schemas/git-receipts.schema.d.ts.map +1 -0
- package/dist/schemas/git-receipts.schema.js +123 -0
- package/dist/schemas/git-receipts.schema.js.map +1 -0
- package/package.json +71 -3
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DEFAULT_NODE_RUNNER_AST_NODE, extractAST, z, } from '@paraharness/core';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a `CrossVerifierBuilder` for AST-gated public-boundary cross-testing (`git.publicSurfaceCrossTester`).
|
|
4
|
+
*
|
|
5
|
+
* Exposes `.id`, `.reportSchema`, and `.toAST()` producing a passive `GitPublicSurfaceCrossTesterNode`
|
|
6
|
+
* that transplants boundary-only tests across surviving speculative candidate branches.
|
|
7
|
+
*
|
|
8
|
+
* @param {GitPublicSurfaceCrossTesterOptions} options - Runner pool and filesystem partition map configuration.
|
|
9
|
+
*
|
|
10
|
+
* @returns {CrossVerifierBuilder<GitWorktreeHandle, GitScopeReceipt, Record<string, unknown>, GitPublicSurfaceCrossTesterNode>} Immutable cross-verifier builder.
|
|
11
|
+
*/
|
|
12
|
+
export function createGitPublicSurfaceCrossTesterBuilder(options) {
|
|
13
|
+
const id = options.id ?? 'git-public-surface-cross-tester';
|
|
14
|
+
const reportSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
passedCrossTests: z.number(),
|
|
17
|
+
failedCrossTests: z.number(),
|
|
18
|
+
crossTestDeficits: z.array(z.string()),
|
|
19
|
+
transplantedTestFiles: z.array(z.string()),
|
|
20
|
+
})
|
|
21
|
+
.passthrough();
|
|
22
|
+
return Object.freeze({
|
|
23
|
+
id,
|
|
24
|
+
reportSchema,
|
|
25
|
+
toAST() {
|
|
26
|
+
return Object.freeze({
|
|
27
|
+
type: 'git:public-surface-cross-tester',
|
|
28
|
+
id,
|
|
29
|
+
reportSchema,
|
|
30
|
+
runner: options.runner !== undefined
|
|
31
|
+
? extractAST(options.runner)
|
|
32
|
+
: DEFAULT_NODE_RUNNER_AST_NODE,
|
|
33
|
+
partitionMap: extractAST(options.partitionMap),
|
|
34
|
+
});
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=create-git-public-surface-cross-tester-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-git-public-surface-cross-tester-builder.js","sourceRoot":"","sources":["../../src/builders/create-git-public-surface-cross-tester-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,UAAU,EACV,CAAC,GAKF,MAAM,mBAAmB,CAAC;AAG3B;;;;;;;;;GASG;AACH,MAAM,UAAU,wCAAwC,CACtD,OAA2C;IAO3C,MAAM,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,iCAAiC,CAAC;IAC3D,MAAM,YAAY,GAAuC,CAAC;SACvD,MAAM,CAAC;QACN,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;QAC5B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;QAC5B,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QACtC,qBAAqB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;KAC3C,CAAC;SACD,WAAW,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,MAAM,CAOlB;QACA,EAAE;QACF,YAAY;QACZ,KAAK;YACH,OAAO,MAAM,CAAC,MAAM,CAAkC;gBACpD,IAAI,EAAE,iCAAiC;gBACvC,EAAE;gBACF,YAAY;gBACZ,MAAM,EACJ,OAAO,CAAC,MAAM,KAAK,SAAS;oBAC1B,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC;oBAC5B,CAAC,CAAC,4BAA4B;gBAClC,YAAY,EAAE,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC;aAC/C,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type GitRefReaderToolNode, type GitWorktreeHandle, type MaybeBuilder, type NodeRunnerNode } from '@paraharness/core';
|
|
2
|
+
/**
|
|
3
|
+
* Creates the read-only git object store inspection tool bundle (`git.refReaderTools(runner?)`).
|
|
4
|
+
*
|
|
5
|
+
* Emits passive `GitRefReaderToolNode` descriptors for `readRefFile`, `diffRefs`, and `listRefFiles`
|
|
6
|
+
* with `effectTracking: 'declared'` so actors can inspect `refs/harness/aborted/<run-id>/<stepExecId>`,
|
|
7
|
+
* defaulting `runner` to `DEFAULT_NODE_RUNNER_AST_NODE` when omitted.
|
|
8
|
+
*
|
|
9
|
+
* @param {MaybeBuilder<NodeRunnerNode>} [runner=DEFAULT_NODE_RUNNER_AST_NODE] - Optional subprocess runner pool governing git command slots.
|
|
10
|
+
*
|
|
11
|
+
* @returns {readonly GitRefReaderToolNode<GitWorktreeHandle>[]} Frozen tuple of `readRefFile`, `diffRefs`, and `listRefFiles` tool AST nodes.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createGitRefReaderTools(runner?: MaybeBuilder<NodeRunnerNode>): readonly GitRefReaderToolNode<GitWorktreeHandle>[];
|
|
14
|
+
//# sourceMappingURL=create-git-ref-reader-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-git-ref-reader-tools.d.ts","sourceRoot":"","sources":["../../src/builders/create-git-ref-reader-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAO3B;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,GAAE,YAAY,CAAC,cAAc,CAAgC,GAClE,SAAS,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,CA2BpD"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DEFAULT_NODE_RUNNER_AST_NODE, extractAST, } from '@paraharness/core';
|
|
2
|
+
import { DiffRefsInputSchema, ListRefFilesInputSchema, ReadRefFileInputSchema, } from '../schemas/git-receipts.schema.js';
|
|
3
|
+
/**
|
|
4
|
+
* Creates the read-only git object store inspection tool bundle (`git.refReaderTools(runner?)`).
|
|
5
|
+
*
|
|
6
|
+
* Emits passive `GitRefReaderToolNode` descriptors for `readRefFile`, `diffRefs`, and `listRefFiles`
|
|
7
|
+
* with `effectTracking: 'declared'` so actors can inspect `refs/harness/aborted/<run-id>/<stepExecId>`,
|
|
8
|
+
* defaulting `runner` to `DEFAULT_NODE_RUNNER_AST_NODE` when omitted.
|
|
9
|
+
*
|
|
10
|
+
* @param {MaybeBuilder<NodeRunnerNode>} [runner=DEFAULT_NODE_RUNNER_AST_NODE] - Optional subprocess runner pool governing git command slots.
|
|
11
|
+
*
|
|
12
|
+
* @returns {readonly GitRefReaderToolNode<GitWorktreeHandle>[]} Frozen tuple of `readRefFile`, `diffRefs`, and `listRefFiles` tool AST nodes.
|
|
13
|
+
*/
|
|
14
|
+
export function createGitRefReaderTools(runner = DEFAULT_NODE_RUNNER_AST_NODE) {
|
|
15
|
+
const runnerNode = extractAST(runner);
|
|
16
|
+
const readRefFileNode = Object.freeze({
|
|
17
|
+
type: 'git:ref-reader-tool',
|
|
18
|
+
name: 'readRefFile',
|
|
19
|
+
description: 'Reads the contents of a repository-relative file at a specified git ref or commit SHA.',
|
|
20
|
+
inputSchema: ReadRefFileInputSchema,
|
|
21
|
+
effectTracking: 'declared',
|
|
22
|
+
runner: runnerNode,
|
|
23
|
+
});
|
|
24
|
+
const diffRefsNode = Object.freeze({
|
|
25
|
+
type: 'git:ref-reader-tool',
|
|
26
|
+
name: 'diffRefs',
|
|
27
|
+
description: 'Computes the unified git diff between two git refs or commit SHAs.',
|
|
28
|
+
inputSchema: DiffRefsInputSchema,
|
|
29
|
+
effectTracking: 'declared',
|
|
30
|
+
runner: runnerNode,
|
|
31
|
+
});
|
|
32
|
+
const listRefFilesNode = Object.freeze({
|
|
33
|
+
type: 'git:ref-reader-tool',
|
|
34
|
+
name: 'listRefFiles',
|
|
35
|
+
description: 'Lists tracked file paths inside the tree of a specified git ref or commit SHA.',
|
|
36
|
+
inputSchema: ListRefFilesInputSchema,
|
|
37
|
+
effectTracking: 'declared',
|
|
38
|
+
runner: runnerNode,
|
|
39
|
+
});
|
|
40
|
+
return Object.freeze([readRefFileNode, diffRefsNode, listRefFilesNode]);
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=create-git-ref-reader-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-git-ref-reader-tools.js","sourceRoot":"","sources":["../../src/builders/create-git-ref-reader-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,UAAU,GAKX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,mCAAmC,CAAC;AAE3C;;;;;;;;;;GAUG;AACH,MAAM,UAAU,uBAAuB,CACrC,SAAuC,4BAA4B;IAEnE,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAA0C;QAC7E,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,wFAAwF;QACrG,WAAW,EAAE,sBAAsB;QACnC,cAAc,EAAE,UAAU;QAC1B,MAAM,EAAE,UAAU;KACnB,CAAC,CAAC;IACH,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAA0C;QAC1E,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,oEAAoE;QACjF,WAAW,EAAE,mBAAmB;QAChC,cAAc,EAAE,UAAU;QAC1B,MAAM,EAAE,UAAU;KACnB,CAAC,CAAC;IACH,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAA0C;QAC9E,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,gFAAgF;QAC7F,WAAW,EAAE,uBAAuB;QACpC,cAAc,EAAE,UAAU;QAC1B,MAAM,EAAE,UAAU;KACnB,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,eAAe,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAC1E,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AstBuilder, GitDiscardBranchNode } from '@paraharness/core';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a fluent `AstBuilder<GitDiscardBranchNode>` (`git.resetWorktree()`).
|
|
4
|
+
*
|
|
5
|
+
* Compiles into a passive `GitDiscardBranchNode` (`type: 'git:discard-branch'`, `resetsRunOverlay: true`)
|
|
6
|
+
* that restores the worktree to `targetStepBaseScopeCheckpoint` and resets the run topology overlay on rewind.
|
|
7
|
+
*
|
|
8
|
+
* @param {string} [id='git-reset-worktree'] - Optional custom identifier for the rewind hook node.
|
|
9
|
+
*
|
|
10
|
+
* @returns {AstBuilder<GitDiscardBranchNode>} Immutable rewind hook builder instance.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createGitResetWorktreeBuilder(id?: string): AstBuilder<GitDiscardBranchNode>;
|
|
13
|
+
//# sourceMappingURL=create-git-reset-worktree-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-git-reset-worktree-builder.d.ts","sourceRoot":"","sources":["../../src/builders/create-git-reset-worktree-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE1E;;;;;;;;;GASG;AACH,wBAAgB,6BAA6B,CAC3C,EAAE,SAAuB,GACxB,UAAU,CAAC,oBAAoB,CAAC,CAUlC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a fluent `AstBuilder<GitDiscardBranchNode>` (`git.resetWorktree()`).
|
|
3
|
+
*
|
|
4
|
+
* Compiles into a passive `GitDiscardBranchNode` (`type: 'git:discard-branch'`, `resetsRunOverlay: true`)
|
|
5
|
+
* that restores the worktree to `targetStepBaseScopeCheckpoint` and resets the run topology overlay on rewind.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} [id='git-reset-worktree'] - Optional custom identifier for the rewind hook node.
|
|
8
|
+
*
|
|
9
|
+
* @returns {AstBuilder<GitDiscardBranchNode>} Immutable rewind hook builder instance.
|
|
10
|
+
*/
|
|
11
|
+
export function createGitResetWorktreeBuilder(id = 'git-reset-worktree') {
|
|
12
|
+
return Object.freeze({
|
|
13
|
+
toAST() {
|
|
14
|
+
return Object.freeze({
|
|
15
|
+
type: 'git:discard-branch',
|
|
16
|
+
id,
|
|
17
|
+
resetsRunOverlay: true,
|
|
18
|
+
});
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=create-git-reset-worktree-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-git-reset-worktree-builder.js","sourceRoot":"","sources":["../../src/builders/create-git-reset-worktree-builder.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,UAAU,6BAA6B,CAC3C,EAAE,GAAG,oBAAoB;IAEzB,OAAO,MAAM,CAAC,MAAM,CAAmC;QACrD,KAAK;YACH,OAAO,MAAM,CAAC,MAAM,CAAuB;gBACzC,IAAI,EAAE,oBAAoB;gBAC1B,EAAE;gBACF,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AstBuilder, GitSnapshotAndResetNode } from '@paraharness/core';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a fluent `AstBuilder<GitSnapshotAndResetNode>` (`git.snapshotAndReset()`).
|
|
4
|
+
*
|
|
5
|
+
* Compiles into a passive `GitSnapshotAndResetNode` (`type: 'git:snapshot-and-reset'`) that snapshots
|
|
6
|
+
* an aborted worktree to `refs/harness/aborted/<run-id>/<stepExecId>` and resets to `handle.baseRef`.
|
|
7
|
+
*
|
|
8
|
+
* @param {string} [id='git-snapshot-and-reset'] - Optional custom identifier for the abort hook node.
|
|
9
|
+
*
|
|
10
|
+
* @returns {AstBuilder<GitSnapshotAndResetNode>} Immutable abort hook builder instance.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createGitSnapshotAndResetBuilder(id?: string): AstBuilder<GitSnapshotAndResetNode>;
|
|
13
|
+
//# sourceMappingURL=create-git-snapshot-and-reset-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-git-snapshot-and-reset-builder.d.ts","sourceRoot":"","sources":["../../src/builders/create-git-snapshot-and-reset-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAG7E;;;;;;;;;GASG;AACH,wBAAgB,gCAAgC,CAC9C,EAAE,SAA2B,GAC5B,UAAU,CAAC,uBAAuB,CAAC,CAUrC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GitAbortMetaSchema } from '../schemas/git-receipts.schema.js';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a fluent `AstBuilder<GitSnapshotAndResetNode>` (`git.snapshotAndReset()`).
|
|
4
|
+
*
|
|
5
|
+
* Compiles into a passive `GitSnapshotAndResetNode` (`type: 'git:snapshot-and-reset'`) that snapshots
|
|
6
|
+
* an aborted worktree to `refs/harness/aborted/<run-id>/<stepExecId>` and resets to `handle.baseRef`.
|
|
7
|
+
*
|
|
8
|
+
* @param {string} [id='git-snapshot-and-reset'] - Optional custom identifier for the abort hook node.
|
|
9
|
+
*
|
|
10
|
+
* @returns {AstBuilder<GitSnapshotAndResetNode>} Immutable abort hook builder instance.
|
|
11
|
+
*/
|
|
12
|
+
export function createGitSnapshotAndResetBuilder(id = 'git-snapshot-and-reset') {
|
|
13
|
+
return Object.freeze({
|
|
14
|
+
toAST() {
|
|
15
|
+
return Object.freeze({
|
|
16
|
+
type: 'git:snapshot-and-reset',
|
|
17
|
+
id,
|
|
18
|
+
metaSchema: GitAbortMetaSchema,
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=create-git-snapshot-and-reset-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-git-snapshot-and-reset-builder.js","sourceRoot":"","sources":["../../src/builders/create-git-snapshot-and-reset-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE;;;;;;;;;GASG;AACH,MAAM,UAAU,gCAAgC,CAC9C,EAAE,GAAG,wBAAwB;IAE7B,OAAO,MAAM,CAAC,MAAM,CAAsC;QACxD,KAAK;YACH,OAAO,MAAM,CAAC,MAAM,CAA0B;gBAC5C,IAAI,EAAE,wBAAwB;gBAC9B,EAAE;gBACF,UAAU,EAAE,kBAAkB;aAC/B,CAAC,CAAC;QACL,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { AstBuilder, EnvRef, GitCommitAndPushNode, MaybeBuilder, NodeRunnerNode, z } from '@paraharness/core';
|
|
2
|
+
/**
|
|
3
|
+
* Fluent builder for a retry-safe commit, rebase, and push domain step (`git.commitAndPush`).
|
|
4
|
+
*
|
|
5
|
+
* Compiles into a passive `GitCommitAndPushNode<TIn>` (`type: 'git:commit-and-push'`) dispatched
|
|
6
|
+
* via `RuntimeExecutorRegistry.steps['git:commit-and-push']`.
|
|
7
|
+
*
|
|
8
|
+
* @template TIn Step input payload type.
|
|
9
|
+
*/
|
|
10
|
+
export interface GitCommitAndPushBuilder<TIn = unknown> extends AstBuilder<GitCommitAndPushNode<TIn>> {
|
|
11
|
+
/**
|
|
12
|
+
* Binds a Zod schema validating the step input payload passed to `branch(input)` and `message(input)`.
|
|
13
|
+
*
|
|
14
|
+
* Narrows or updates the builder's `TIn` type parameter to match the supplied `schema`.
|
|
15
|
+
*
|
|
16
|
+
* @template TNextIn Updated step input payload type inferred from `schema`.
|
|
17
|
+
*
|
|
18
|
+
* @param {z.ZodType<TNextIn>} schema - Zod schema for step input validation.
|
|
19
|
+
*
|
|
20
|
+
* @returns {GitCommitAndPushBuilder<TNextIn>} Updated immutable step builder instance.
|
|
21
|
+
*/
|
|
22
|
+
input<TNextIn extends TIn = TIn>(schema: z.ZodType<TNextIn>): GitCommitAndPushBuilder<TNextIn>;
|
|
23
|
+
/**
|
|
24
|
+
* Binds the `NodeRunnerNode` pool governing git and verification subprocess concurrency.
|
|
25
|
+
*
|
|
26
|
+
* Accepts either a compiled `NodeRunnerNode` or a fluent `AstBuilder<NodeRunnerNode>`.
|
|
27
|
+
*
|
|
28
|
+
* @param {MaybeBuilder<NodeRunnerNode>} runner - Runner pool descriptor or builder.
|
|
29
|
+
*
|
|
30
|
+
* @returns {GitCommitAndPushBuilder<TIn>} Updated immutable step builder instance.
|
|
31
|
+
*/
|
|
32
|
+
runner(runner: MaybeBuilder<NodeRunnerNode>): GitCommitAndPushBuilder<TIn>;
|
|
33
|
+
/**
|
|
34
|
+
* Binds environment variables or symbolic `P.env(key)` references injected into git commands.
|
|
35
|
+
*
|
|
36
|
+
* Symbolic `EnvRef` values are preserved in the AST and resolved exclusively at runtime execution.
|
|
37
|
+
*
|
|
38
|
+
* @param {Readonly<Record<string, string | EnvRef>>} env - Environment map to attach to the step node.
|
|
39
|
+
*
|
|
40
|
+
* @returns {GitCommitAndPushBuilder<TIn>} Updated immutable step builder instance.
|
|
41
|
+
*/
|
|
42
|
+
env(env: Readonly<Record<string, string | EnvRef>>): GitCommitAndPushBuilder<TIn>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=git-commit-and-push-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-commit-and-push-builder.d.ts","sourceRoot":"","sources":["../../src/builders/git-commit-and-push-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,MAAM,EACN,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,CAAC,EACF,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAuB,CAAC,GAAG,GAAG,OAAO,CACpD,SAAQ,UAAU,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAC7C;;;;;;;;;;OAUG;IACH,KAAK,CAAC,OAAO,SAAS,GAAG,GAAG,GAAG,EAC7B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GACzB,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAEpC;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,cAAc,CAAC,GAAG,uBAAuB,CAAC,GAAG,CAAC,CAAC;IAE3E;;;;;;;;OAQG;IACH,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,GAAG,uBAAuB,CAAC,GAAG,CAAC,CAAC;CACnF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-commit-and-push-builder.js","sourceRoot":"","sources":["../../src/builders/git-commit-and-push-builder.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { BivariantCallback, EnvRef, MaybeBuilder, NodeRunnerNode, z } from '@paraharness/core';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for `git.commitAndPush(id, options)` (`createGitCommitAndPushBuilder`).
|
|
4
|
+
*
|
|
5
|
+
* Defines the target remote branch projection (`branch`), commit message projection (`message`),
|
|
6
|
+
* and optional input schema, runner pool, and environment bindings.
|
|
7
|
+
*
|
|
8
|
+
* @template TIn Step input payload type.
|
|
9
|
+
*/
|
|
10
|
+
export interface GitCommitAndPushOptions<TIn = unknown> {
|
|
11
|
+
/** Pure projection deriving the target remote branch name from `TIn`. */
|
|
12
|
+
readonly branch: BivariantCallback<[input: TIn], string>;
|
|
13
|
+
/** Pure projection deriving the commit message from `TIn`. */
|
|
14
|
+
readonly message: BivariantCallback<[input: TIn], string>;
|
|
15
|
+
/** Optional Zod schema validating the step input payload. */
|
|
16
|
+
readonly inputSchema?: z.ZodType<TIn>;
|
|
17
|
+
/** Optional runner pool governing subprocess slot concurrency. */
|
|
18
|
+
readonly runner?: MaybeBuilder<NodeRunnerNode>;
|
|
19
|
+
/** Optional environment variables or symbolic `EnvRef` bindings injected into git commands. */
|
|
20
|
+
readonly env?: Readonly<Record<string, string | EnvRef>>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=git-commit-and-push-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-commit-and-push-options.d.ts","sourceRoot":"","sources":["../../src/builders/git-commit-and-push-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,MAAM,EACN,YAAY,EACZ,cAAc,EACd,CAAC,EACF,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAuB,CAAC,GAAG,GAAG,OAAO;IACpD,yEAAyE;IACzE,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;IACzD,8DAA8D;IAC9D,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;IAC1D,6DAA6D;IAC7D,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,kEAAkE;IAClE,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAC/C,+FAA+F;IAC/F,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;CAC1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-commit-and-push-options.js","sourceRoot":"","sources":["../../src/builders/git-commit-and-push-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { ASTNode, AstBuilder, GitCowWorktreeNode, GitScopeReceipt, GitSyncReceipt, GitWorktreeHandle, MaybeBuilder } from '@paraharness/core';
|
|
2
|
+
import type { GitCowWorktreeCheckpointPolicy } from './git-cow-worktree-options.js';
|
|
3
|
+
import type { GitReconcileStrategyOptions } from './git-reconcile-strategy-options.js';
|
|
4
|
+
/**
|
|
5
|
+
* Fluent builder for a Tier-3 branchable Copy-on-Write Git worktree scope (`git.cowWorktree`).
|
|
6
|
+
*
|
|
7
|
+
* Compiles into a passive `GitCowWorktreeNode` (`type: 'git:cow-worktree'`, `capabilityTier: 'branchable'`)
|
|
8
|
+
* with zero filesystem or subprocess I/O at builder declaration time.
|
|
9
|
+
*/
|
|
10
|
+
export interface GitCowWorktreeBuilder extends AstBuilder<GitCowWorktreeNode<GitWorktreeHandle, GitScopeReceipt, GitSyncReceipt>> {
|
|
11
|
+
/**
|
|
12
|
+
* Configures glob patterns excluded when cloning dirty working-tree files or caches into a worktree.
|
|
13
|
+
*
|
|
14
|
+
* Returns a new immutable `GitCowWorktreeBuilder` instance with `excludeFromCloneGlobs` set to a frozen copy of `globs`.
|
|
15
|
+
*
|
|
16
|
+
* @param {readonly string[]} globs - Repository-relative glob patterns to omit during worktree cloning.
|
|
17
|
+
*
|
|
18
|
+
* @returns {GitCowWorktreeBuilder} Updated immutable worktree builder instance.
|
|
19
|
+
*/
|
|
20
|
+
excludeFromCloneGlobs(globs: readonly string[]): GitCowWorktreeBuilder;
|
|
21
|
+
/**
|
|
22
|
+
* Appends one or more setup command steps executed when provisioning a root worktree on a lockfile gate miss.
|
|
23
|
+
*
|
|
24
|
+
* Accepts either raw `ASTNode` descriptors or fluent `AstBuilder<ASTNode>` instances (such as `local.command(...)`).
|
|
25
|
+
*
|
|
26
|
+
* @param {...Array<MaybeBuilder<ASTNode>>} commands - Setup command steps to execute in declaration order.
|
|
27
|
+
*
|
|
28
|
+
* @returns {GitCowWorktreeBuilder} Updated immutable worktree builder instance.
|
|
29
|
+
*/
|
|
30
|
+
setup(...commands: ReadonlyArray<MaybeBuilder<ASTNode>>): GitCowWorktreeBuilder;
|
|
31
|
+
/**
|
|
32
|
+
* Configures a lockfile path whose SHA-256 digest gates whether `.setup()` commands can be skipped.
|
|
33
|
+
*
|
|
34
|
+
* On a lockfile hash hit against the host repository, `node_modules` is CoW-cloned/hardlinked; on a miss,
|
|
35
|
+
* any hardlinked `node_modules` tree is unlinked and replaced before executing `.setup()` commands.
|
|
36
|
+
*
|
|
37
|
+
* @param {string} lockfilePath - Repository-relative path to the dependency lockfile (such as `'pnpm-lock.yaml'`).
|
|
38
|
+
*
|
|
39
|
+
* @returns {GitCowWorktreeBuilder} Updated immutable worktree builder instance.
|
|
40
|
+
*/
|
|
41
|
+
lockfileGate(lockfilePath: string): GitCowWorktreeBuilder;
|
|
42
|
+
/**
|
|
43
|
+
* Configures dirty-index checkpointing exclusions, partition mapping, and untracked blob size limits.
|
|
44
|
+
*
|
|
45
|
+
* Controls how `serializeCheckpoint`, `diffEffects`, and `restoreCheckpoint` stage tracked and untracked files.
|
|
46
|
+
*
|
|
47
|
+
* @param {GitCowWorktreeCheckpointPolicy} policy - Checkpoint policy configuration.
|
|
48
|
+
*
|
|
49
|
+
* @returns {GitCowWorktreeBuilder} Updated immutable worktree builder instance.
|
|
50
|
+
*/
|
|
51
|
+
checkpointPolicy(policy: GitCowWorktreeCheckpointPolicy): GitCowWorktreeBuilder;
|
|
52
|
+
/**
|
|
53
|
+
* Configures the branch landing reconciliation strategy (`'rebase-onto-base'` or `'batch-merge-train'`).
|
|
54
|
+
*
|
|
55
|
+
* Accepts either `(mode, options?)` positional arguments or a single `GitReconcileStrategyOptions` object.
|
|
56
|
+
*
|
|
57
|
+
* @param {'rebase-onto-base' | 'batch-merge-train' | GitReconcileStrategyOptions} modeOrOptions - Reconciliation mode or options object.
|
|
58
|
+
* @param {GitReconcileStrategyOptions} [options] - Optional verification check and batch size settings.
|
|
59
|
+
*
|
|
60
|
+
* @returns {GitCowWorktreeBuilder} Updated immutable worktree builder instance.
|
|
61
|
+
*/
|
|
62
|
+
reconcileStrategy(modeOrOptions: 'rebase-onto-base' | 'batch-merge-train' | GitReconcileStrategyOptions, options?: GitReconcileStrategyOptions): GitCowWorktreeBuilder;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=git-cow-worktree-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-cow-worktree-builder.d.ts","sourceRoot":"","sources":["../../src/builders/git-cow-worktree-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,YAAY,EACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,WAAW,qBACf,SAAQ,UAAU,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;IAC1F;;;;;;;;OAQG;IACH,qBAAqB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,qBAAqB,CAAC;IAEvE;;;;;;;;OAQG;IACH,KAAK,CAAC,GAAG,QAAQ,EAAE,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG,qBAAqB,CAAC;IAEhF;;;;;;;;;OASG;IACH,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,qBAAqB,CAAC;IAE1D;;;;;;;;OAQG;IACH,gBAAgB,CAAC,MAAM,EAAE,8BAA8B,GAAG,qBAAqB,CAAC;IAEhF;;;;;;;;;OASG;IACH,iBAAiB,CACf,aAAa,EAAE,kBAAkB,GAAG,mBAAmB,GAAG,2BAA2B,EACrF,OAAO,CAAC,EAAE,2BAA2B,GACpC,qBAAqB,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-cow-worktree-builder.js","sourceRoot":"","sources":["../../src/builders/git-cow-worktree-builder.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ASTNode, FsPartitionMapNode, GitCleanWorkingTreeNode, GitReconcileStrategyConfig, GitWorktreeHandle, MaybeBuilder } from '@paraharness/core';
|
|
2
|
+
/**
|
|
3
|
+
* Dirty-index checkpointing configuration accepted by `GitCowWorktreeBuilder.checkpointPolicy()`.
|
|
4
|
+
*
|
|
5
|
+
* Controls which partition map and glob exclusions apply when snapshotting or diffing a worktree,
|
|
6
|
+
* and sets the byte ceiling above which untracked files spill into `<gitdir>/harness-ckpt-blobs/`.
|
|
7
|
+
*/
|
|
8
|
+
export interface GitCowWorktreeCheckpointPolicy {
|
|
9
|
+
/** Optional filesystem partition map associated with the checkpoint policy. */
|
|
10
|
+
readonly partitionMap?: MaybeBuilder<FsPartitionMapNode<string>>;
|
|
11
|
+
/** Optional glob patterns excluded from dirty-tree checkpoint snapshots. */
|
|
12
|
+
readonly excludeGlobs?: readonly string[];
|
|
13
|
+
/** Maximum file size in bytes staged directly into the temporary git index before spilling to `harness-ckpt-blobs/`. */
|
|
14
|
+
readonly maxUntrackedFileSizeBytes?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Configuration options for `git.cowWorktree(options)` (`createGitCowWorktreeBuilder`).
|
|
18
|
+
*
|
|
19
|
+
* Specifies the host Git repository root (`repo`), the disjoint sibling workspace directory (`dir`),
|
|
20
|
+
* and optional pre-populated builder state fields for immutable builder chaining.
|
|
21
|
+
*/
|
|
22
|
+
export interface GitCowWorktreeOptions {
|
|
23
|
+
/** Optional logical identifier for the isolation scope node (defaults to `'git-cow-worktree'`). */
|
|
24
|
+
readonly id?: string;
|
|
25
|
+
/** Path to the host Git repository (defaults to `'.'`). */
|
|
26
|
+
readonly repo?: string;
|
|
27
|
+
/** Base directory under which `roots/<runId>` and `forks/<runId>/<forkId>` worktrees are created (defaults to `'.paraharness/worktree'`). */
|
|
28
|
+
readonly dir?: string;
|
|
29
|
+
/** Optional ordered setup step AST nodes executed when initializing a root worktree. */
|
|
30
|
+
readonly setupCommands?: readonly ASTNode[];
|
|
31
|
+
/** Optional lockfile path whose SHA-256 digest gates whether `setupCommands` can be skipped. */
|
|
32
|
+
readonly lockfileGatePath?: string;
|
|
33
|
+
/** Optional glob patterns excluded when cloning dirty working-tree files into a worktree. */
|
|
34
|
+
readonly excludeFromCloneGlobs?: readonly string[];
|
|
35
|
+
/** Optional dirty-index checkpointing configuration. */
|
|
36
|
+
readonly checkpointPolicy?: GitCowWorktreeCheckpointPolicy;
|
|
37
|
+
/** Optional branch landing reconciliation strategy (`'rebase-onto-base'` or `'batch-merge-train'`). */
|
|
38
|
+
readonly reconcileStrategy?: GitReconcileStrategyConfig<GitWorktreeHandle>;
|
|
39
|
+
/** Optional custom conflict cleanliness check node overriding the default `git:clean-working-tree` check. */
|
|
40
|
+
readonly conflictCleanCheck?: GitCleanWorkingTreeNode<GitWorktreeHandle>;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=git-cow-worktree-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-cow-worktree-options.d.ts","sourceRoot":"","sources":["../../src/builders/git-cow-worktree-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,iBAAiB,EACjB,YAAY,EACb,MAAM,mBAAmB,CAAC;AAE3B;;;;;GAKG;AACH,MAAM,WAAW,8BAA8B;IAC7C,+EAA+E;IAC/E,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;IACjE,4EAA4E;IAC5E,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,wHAAwH;IACxH,QAAQ,CAAC,yBAAyB,CAAC,EAAE,MAAM,CAAC;CAC7C;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,mGAAmG;IACnG,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,6IAA6I;IAC7I,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,wFAAwF;IACxF,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAC5C,gGAAgG;IAChG,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,6FAA6F;IAC7F,QAAQ,CAAC,qBAAqB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnD,wDAAwD;IACxD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,8BAA8B,CAAC;IAC3D,uGAAuG;IACvG,QAAQ,CAAC,iBAAiB,CAAC,EAAE,0BAA0B,CAAC,iBAAiB,CAAC,CAAC;IAC3E,6GAA6G;IAC7G,QAAQ,CAAC,kBAAkB,CAAC,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;CAC1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-cow-worktree-options.js","sourceRoot":"","sources":["../../src/builders/git-cow-worktree-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { AstBuilder, GitMergeQueueNode, z } from '@paraharness/core';
|
|
2
|
+
/**
|
|
3
|
+
* Fluent builder for cumulative batch merge-train verification (`git.mergeQueue`).
|
|
4
|
+
*
|
|
5
|
+
* Compiles into a passive `GitMergeQueueNode<TIn, TOut>` (`type: 'git:merge-queue'`) dispatched
|
|
6
|
+
* via `RuntimeExecutorRegistry.steps['git:merge-queue']`.
|
|
7
|
+
*
|
|
8
|
+
* @template TIn Validated step input type.
|
|
9
|
+
* @template TOut Validated step output type.
|
|
10
|
+
*/
|
|
11
|
+
export interface GitMergeQueueBuilder<TIn = unknown, TOut = unknown> extends AstBuilder<GitMergeQueueNode<TIn, TOut>> {
|
|
12
|
+
/**
|
|
13
|
+
* Binds a Zod schema validating the step input payload.
|
|
14
|
+
*
|
|
15
|
+
* Narrows the builder's `TIn` type parameter to match the supplied `schema`.
|
|
16
|
+
*
|
|
17
|
+
* @template TNextIn Updated step input payload type inferred from `schema`.
|
|
18
|
+
*
|
|
19
|
+
* @param {z.ZodType<TNextIn>} schema - Zod schema for step input validation.
|
|
20
|
+
*
|
|
21
|
+
* @returns {GitMergeQueueBuilder<TNextIn, TOut>} Updated immutable merge queue builder instance.
|
|
22
|
+
*/
|
|
23
|
+
input<TNextIn>(schema: z.ZodType<TNextIn>): GitMergeQueueBuilder<TNextIn, TOut>;
|
|
24
|
+
/**
|
|
25
|
+
* Binds a Zod schema validating the step output payload.
|
|
26
|
+
*
|
|
27
|
+
* Narrows the builder's `TOut` type parameter to match the supplied `schema`.
|
|
28
|
+
*
|
|
29
|
+
* @template TNextOut Updated step output payload type inferred from `schema`.
|
|
30
|
+
*
|
|
31
|
+
* @param {z.ZodType<TNextOut>} schema - Zod schema for step output validation.
|
|
32
|
+
*
|
|
33
|
+
* @returns {GitMergeQueueBuilder<TIn, TNextOut>} Updated immutable merge queue builder instance.
|
|
34
|
+
*/
|
|
35
|
+
output<TNextOut>(schema: z.ZodType<TNextOut>): GitMergeQueueBuilder<TIn, TNextOut>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=git-merge-queue-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-merge-queue-builder.d.ts","sourceRoot":"","sources":["../../src/builders/git-merge-queue-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAE1E;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB,CAAC,GAAG,GAAG,OAAO,EAAE,IAAI,GAAG,OAAO,CACjE,SAAQ,UAAU,CAAC,iBAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAChD;;;;;;;;;;OAUG;IACH,KAAK,CAAC,OAAO,EACX,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GACzB,oBAAoB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAEvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,QAAQ,EACb,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,GAC1B,oBAAoB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-merge-queue-builder.js","sourceRoot":"","sources":["../../src/builders/git-merge-queue-builder.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BaseCheckASTNode, GitWorktreeHandle, MaybeBuilder, z } from '@paraharness/core';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for `git.mergeQueue(id, options)` (`createGitMergeQueueBuilder`).
|
|
4
|
+
*
|
|
5
|
+
* Specifies the upstream `targetBranch`, `maxBatchSize` for speculative cumulative merge trains,
|
|
6
|
+
* and the `verifyWith` check executed against the cumulative tip commit $R_k$.
|
|
7
|
+
*
|
|
8
|
+
* @template TIn Validated step input type.
|
|
9
|
+
* @template TOut Validated step output type.
|
|
10
|
+
*/
|
|
11
|
+
export interface GitMergeQueueOptions<TIn = unknown, TOut = unknown> {
|
|
12
|
+
/** Target upstream branch into which approved runs are merged (defaults to `'main'`). */
|
|
13
|
+
readonly targetBranch?: string;
|
|
14
|
+
/** Maximum number of runs combined into a single speculative verification batch (defaults to `4`). */
|
|
15
|
+
readonly maxBatchSize?: number;
|
|
16
|
+
/** Deterministic verification check executed against the cumulative merge head. */
|
|
17
|
+
readonly verifyWith: MaybeBuilder<BaseCheckASTNode<string, GitWorktreeHandle>>;
|
|
18
|
+
/** Optional Zod schema validating the merge queue step input payload. */
|
|
19
|
+
readonly inputSchema?: z.ZodType<TIn>;
|
|
20
|
+
/** Optional Zod schema validating the merge queue step output payload. */
|
|
21
|
+
readonly outputSchema?: z.ZodType<TOut>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=git-merge-queue-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-merge-queue-options.d.ts","sourceRoot":"","sources":["../../src/builders/git-merge-queue-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,CAAC,EACF,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB,CAAC,GAAG,GAAG,OAAO,EAAE,IAAI,GAAG,OAAO;IACjE,yFAAyF;IACzF,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,sGAAsG;IACtG,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,mFAAmF;IACnF,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAC/E,yEAAyE;IACzE,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,0EAA0E;IAC1E,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-merge-queue-options.js","sourceRoot":"","sources":["../../src/builders/git-merge-queue-options.ts"],"names":[],"mappings":""}
|