@deftai/directive-runtime 0.129.6 → 0.129.8
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/Taskfile.yml +103 -16
- package/commands.md +8 -3
- package/dist/session-start.d.ts +8 -2
- package/dist/session-start.js +33 -12
- package/dist/vbrief-preflight.d.ts +4 -0
- package/dist/vbrief-preflight.js +34 -0
- package/dist/verify-scope-provenance.d.ts +13 -1
- package/dist/verify-scope-provenance.js +44 -1
- package/docs/getting-started.md +2 -0
- package/docs/scope-provenance.md +15 -1
- package/package.json +1 -1
- package/packs/skills/skills-pack-0.1.json +1 -1
- package/scm/github.md +5 -0
- package/skills/deft-directive-review-cycle/SKILL.md +15 -6
- package/skills/deft-directive-swarm/references/host-claude-code.md +11 -1
- package/skills/deft-directive-swarm/references/host-grok-build.md +3 -2
- package/vendor/directive-content/Taskfile.yml +103 -16
- package/vendor/directive-content/commands.md +8 -3
- package/vendor/directive-content/docs/getting-started.md +2 -0
- package/vendor/directive-content/docs/scope-provenance.md +15 -1
- package/vendor/directive-content/packs/skills/skills-pack-0.1.json +1 -1
- package/vendor/directive-content/scm/github.md +5 -0
- package/vendor/directive-content/skills/deft-directive-review-cycle/SKILL.md +15 -6
- package/vendor/directive-content/skills/deft-directive-swarm/references/host-claude-code.md +11 -1
- package/vendor/directive-content/skills/deft-directive-swarm/references/host-grok-build.md +3 -2
- package/vendor/directive-core/dist/.tsbuildinfo +1 -1
- package/vendor/directive-core/dist/check/context.d.ts.map +1 -1
- package/vendor/directive-core/dist/check/context.js +3 -31
- package/vendor/directive-core/dist/check/context.js.map +1 -1
- package/vendor/directive-core/dist/check/gate-lists.d.ts.map +1 -1
- package/vendor/directive-core/dist/check/gate-lists.js +4 -32
- package/vendor/directive-core/dist/check/gate-lists.js.map +1 -1
- package/vendor/directive-core/dist/check/walk-test-files.d.ts +3 -0
- package/vendor/directive-core/dist/check/walk-test-files.d.ts.map +1 -0
- package/vendor/directive-core/dist/check/walk-test-files.js +67 -0
- package/vendor/directive-core/dist/check/walk-test-files.js.map +1 -0
- package/vendor/directive-core/dist/fs/contained-write.d.ts +8 -2
- package/vendor/directive-core/dist/fs/contained-write.d.ts.map +1 -1
- package/vendor/directive-core/dist/fs/contained-write.js +22 -6
- package/vendor/directive-core/dist/fs/contained-write.js.map +1 -1
- package/vendor/directive-core/dist/hooks/dispatcher.d.ts +7 -1
- package/vendor/directive-core/dist/hooks/dispatcher.d.ts.map +1 -1
- package/vendor/directive-core/dist/hooks/dispatcher.js +180 -10
- package/vendor/directive-core/dist/hooks/dispatcher.js.map +1 -1
- package/vendor/directive-core/dist/hooks/scope.d.ts +54 -0
- package/vendor/directive-core/dist/hooks/scope.d.ts.map +1 -1
- package/vendor/directive-core/dist/hooks/scope.js +83 -2
- package/vendor/directive-core/dist/hooks/scope.js.map +1 -1
- package/vendor/directive-core/dist/init-deposit/agent-hooks.d.ts +26 -1
- package/vendor/directive-core/dist/init-deposit/agent-hooks.d.ts.map +1 -1
- package/vendor/directive-core/dist/init-deposit/agent-hooks.js +52 -3
- package/vendor/directive-core/dist/init-deposit/agent-hooks.js.map +1 -1
- package/vendor/directive-core/dist/init-deposit/host-hook-outer.d.ts +43 -0
- package/vendor/directive-core/dist/init-deposit/host-hook-outer.d.ts.map +1 -1
- package/vendor/directive-core/dist/init-deposit/host-hook-outer.js +148 -0
- package/vendor/directive-core/dist/init-deposit/host-hook-outer.js.map +1 -1
- package/vendor/directive-core/dist/intake/reconcile-issues.d.ts +33 -1
- package/vendor/directive-core/dist/intake/reconcile-issues.d.ts.map +1 -1
- package/vendor/directive-core/dist/intake/reconcile-issues.js +288 -12
- package/vendor/directive-core/dist/intake/reconcile-issues.js.map +1 -1
- package/vendor/directive-core/dist/intake/thin-brief.d.ts +78 -0
- package/vendor/directive-core/dist/intake/thin-brief.d.ts.map +1 -0
- package/vendor/directive-core/dist/intake/thin-brief.js +224 -0
- package/vendor/directive-core/dist/intake/thin-brief.js.map +1 -0
- package/vendor/directive-core/dist/policy/ceremony-dial.d.ts.map +1 -1
- package/vendor/directive-core/dist/policy/ceremony-dial.js +2 -1
- package/vendor/directive-core/dist/policy/ceremony-dial.js.map +1 -1
- package/vendor/directive-core/dist/policy/small-change-lane.d.ts +193 -0
- package/vendor/directive-core/dist/policy/small-change-lane.d.ts.map +1 -0
- package/vendor/directive-core/dist/policy/small-change-lane.js +690 -0
- package/vendor/directive-core/dist/policy/small-change-lane.js.map +1 -0
- package/vendor/directive-core/dist/pr-merge-readiness/slizard-gate.d.ts +10 -5
- package/vendor/directive-core/dist/pr-merge-readiness/slizard-gate.d.ts.map +1 -1
- package/vendor/directive-core/dist/pr-merge-readiness/slizard-gate.js +41 -18
- package/vendor/directive-core/dist/pr-merge-readiness/slizard-gate.js.map +1 -1
- package/vendor/directive-core/dist/preflight/evaluate.d.ts +3 -0
- package/vendor/directive-core/dist/preflight/evaluate.d.ts.map +1 -1
- package/vendor/directive-core/dist/preflight/evaluate.js +15 -0
- package/vendor/directive-core/dist/preflight/evaluate.js.map +1 -1
- package/vendor/directive-core/dist/preflight-gh/pre-push.d.ts +3 -2
- package/vendor/directive-core/dist/preflight-gh/pre-push.d.ts.map +1 -1
- package/vendor/directive-core/dist/preflight-gh/pre-push.js +19 -18
- package/vendor/directive-core/dist/preflight-gh/pre-push.js.map +1 -1
- package/vendor/directive-core/dist/product-first-done-gate/evaluate.d.ts +6 -0
- package/vendor/directive-core/dist/product-first-done-gate/evaluate.d.ts.map +1 -1
- package/vendor/directive-core/dist/product-first-done-gate/evaluate.js +26 -0
- package/vendor/directive-core/dist/product-first-done-gate/evaluate.js.map +1 -1
- package/vendor/directive-core/dist/scope/decomposed-refs.d.ts +7 -0
- package/vendor/directive-core/dist/scope/decomposed-refs.d.ts.map +1 -1
- package/vendor/directive-core/dist/scope/decomposed-refs.js +27 -10
- package/vendor/directive-core/dist/scope/decomposed-refs.js.map +1 -1
- package/vendor/directive-core/dist/scope/delivery-evidence.d.ts +218 -19
- package/vendor/directive-core/dist/scope/delivery-evidence.d.ts.map +1 -1
- package/vendor/directive-core/dist/scope/delivery-evidence.js +973 -107
- package/vendor/directive-core/dist/scope/delivery-evidence.js.map +1 -1
- package/vendor/directive-core/dist/scope/transition.d.ts +7 -1
- package/vendor/directive-core/dist/scope/transition.d.ts.map +1 -1
- package/vendor/directive-core/dist/scope/transition.js +45 -5
- package/vendor/directive-core/dist/scope/transition.js.map +1 -1
- package/vendor/directive-core/dist/scope-provenance/base-fence.d.ts +13 -3
- package/vendor/directive-core/dist/scope-provenance/base-fence.d.ts.map +1 -1
- package/vendor/directive-core/dist/scope-provenance/base-fence.js +25 -2
- package/vendor/directive-core/dist/scope-provenance/base-fence.js.map +1 -1
- package/vendor/directive-core/dist/scope-provenance/evaluate.d.ts +12 -0
- package/vendor/directive-core/dist/scope-provenance/evaluate.d.ts.map +1 -1
- package/vendor/directive-core/dist/scope-provenance/evaluate.js +41 -5
- package/vendor/directive-core/dist/scope-provenance/evaluate.js.map +1 -1
- package/vendor/directive-core/dist/scope-provenance/forge-approval.d.ts +106 -0
- package/vendor/directive-core/dist/scope-provenance/forge-approval.d.ts.map +1 -0
- package/vendor/directive-core/dist/scope-provenance/forge-approval.js +382 -0
- package/vendor/directive-core/dist/scope-provenance/forge-approval.js.map +1 -0
- package/vendor/directive-core/dist/session/orientation-compression.d.ts +18 -2
- package/vendor/directive-core/dist/session/orientation-compression.d.ts.map +1 -1
- package/vendor/directive-core/dist/session/orientation-compression.js +38 -5
- package/vendor/directive-core/dist/session/orientation-compression.js.map +1 -1
- package/vendor/directive-core/dist/session/session-start.d.ts +47 -2
- package/vendor/directive-core/dist/session/session-start.d.ts.map +1 -1
- package/vendor/directive-core/dist/session/session-start.js +149 -1
- package/vendor/directive-core/dist/session/session-start.js.map +1 -1
- package/vendor/directive-core/dist/swarm/approach1-babysitter.d.ts +18 -4
- package/vendor/directive-core/dist/swarm/approach1-babysitter.d.ts.map +1 -1
- package/vendor/directive-core/dist/swarm/approach1-babysitter.js +28 -4
- package/vendor/directive-core/dist/swarm/approach1-babysitter.js.map +1 -1
- package/vendor/directive-core/dist/swarm/finalize-cohort.d.ts +48 -0
- package/vendor/directive-core/dist/swarm/finalize-cohort.d.ts.map +1 -1
- package/vendor/directive-core/dist/swarm/finalize-cohort.js +175 -19
- package/vendor/directive-core/dist/swarm/finalize-cohort.js.map +1 -1
- package/vendor/directive-core/dist/swarm/finalize-owed.d.ts +18 -3
- package/vendor/directive-core/dist/swarm/finalize-owed.d.ts.map +1 -1
- package/vendor/directive-core/dist/swarm/finalize-owed.js +139 -32
- package/vendor/directive-core/dist/swarm/finalize-owed.js.map +1 -1
- package/vendor/directive-core/dist/swarm/launch.d.ts.map +1 -1
- package/vendor/directive-core/dist/swarm/launch.js +4 -8
- package/vendor/directive-core/dist/swarm/launch.js.map +1 -1
- package/vendor/directive-core/dist/swarm/worker-auth-assignment.d.ts +7 -0
- package/vendor/directive-core/dist/swarm/worker-auth-assignment.d.ts.map +1 -1
- package/vendor/directive-core/dist/swarm/worker-auth-assignment.js +16 -1
- package/vendor/directive-core/dist/swarm/worker-auth-assignment.js.map +1 -1
- package/vendor/directive-core/dist/task-surface/index.d.ts.map +1 -1
- package/vendor/directive-core/dist/task-surface/index.js +41 -0
- package/vendor/directive-core/dist/task-surface/index.js.map +1 -1
- package/vendor/directive-core/dist/triage/evaluate/worktrees.d.ts.map +1 -1
- package/vendor/directive-core/dist/triage/evaluate/worktrees.js +219 -60
- package/vendor/directive-core/dist/triage/evaluate/worktrees.js.map +1 -1
- package/vendor/directive-core/dist/vbrief-reconcile/types.d.ts +5 -1
- package/vendor/directive-core/dist/vbrief-reconcile/types.d.ts.map +1 -1
- package/vendor/directive-core/dist/vbrief-reconcile/umbrellas.d.ts.map +1 -1
- package/vendor/directive-core/dist/vbrief-reconcile/umbrellas.js +19 -7
- package/vendor/directive-core/dist/vbrief-reconcile/umbrellas.js.map +1 -1
|
@@ -9,11 +9,16 @@
|
|
|
9
9
|
* validated eligible (lstat regular-file + successful untracked `git ls-files`
|
|
10
10
|
* listing with usable captured output). Tracked / wrong kind / indeterminate
|
|
11
11
|
* never select the override.
|
|
12
|
+
*
|
|
13
|
+
* #6163 Prefer-A Bound 6772886751: tip-required Cursor deposit paths + stage-only
|
|
14
|
+
* force-add + committed/index association bookend (Cursor-at-minimum).
|
|
12
15
|
*/
|
|
13
16
|
import type { HookHost } from "../hooks/dispatcher.js";
|
|
14
17
|
/** Project-PM guidance for missing pin (⊗ AC9.7 INSTALLATION_RECOVERY_GUIDANCE). */
|
|
15
18
|
export declare const HOST_HOOK_MISSING_PIN_PROJECT_PM_GUIDANCE: string;
|
|
16
19
|
export declare const HOST_HOOK_OUTER_PIN_HOOK_BIN_REL = "node_modules/@deftai/directive-runtime/dist/hook-bin.js";
|
|
20
|
+
/** Tip-tracked Cursor hooks registration (#6163). */
|
|
21
|
+
export declare const CURSOR_HOOKS_JSON_REL = ".cursor/hooks.json";
|
|
17
22
|
/** Filename stem + content-hash suffix (AC9.1). */
|
|
18
23
|
export declare function hostHookOuterFileName(sha8: string): string;
|
|
19
24
|
/** Deposit-relative path for the committed outer (per host). */
|
|
@@ -23,6 +28,44 @@ export declare function hostHookOuterCommand(host: HookHost, sha8: string): stri
|
|
|
23
28
|
export declare function hostHookOuterSha8(source?: string): string;
|
|
24
29
|
/** True when a registered command string is the v261027 `.mjs` outer form. */
|
|
25
30
|
export declare function isHostHookOuterCommand(commandText: string): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Exact tip-required Cursor paths for the installed outer hash (#6163).
|
|
33
|
+
* New-hash shim path is enumerated explicitly — "already tracked" under
|
|
34
|
+
* `.cursor/` is not exact-path membership for the new hash.
|
|
35
|
+
*/
|
|
36
|
+
export declare function tipRequiredCursorDepositPaths(sha8?: string): readonly [typeof CURSOR_HOOKS_JSON_REL, string];
|
|
37
|
+
/** Tree source for Cursor deposit association (#6163). */
|
|
38
|
+
export type CursorDepositTreeSource = "HEAD" | "index";
|
|
39
|
+
export interface CursorDepositAssociationResult {
|
|
40
|
+
readonly ok: boolean;
|
|
41
|
+
readonly sha8: string;
|
|
42
|
+
readonly paths: readonly string[];
|
|
43
|
+
readonly detail: string;
|
|
44
|
+
}
|
|
45
|
+
export interface StageTipRequiredCursorDepositResult {
|
|
46
|
+
readonly staged: readonly string[];
|
|
47
|
+
readonly sha8: string;
|
|
48
|
+
readonly paths: readonly string[];
|
|
49
|
+
}
|
|
50
|
+
export type CursorDepositTreeFileReader = (projectRoot: string, relPath: string, source: CursorDepositTreeSource) => string | null;
|
|
51
|
+
export type CursorDepositGitAdd = (projectRoot: string, paths: readonly string[]) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Stage-only force-add of tip-required Cursor paths despite local exclude
|
|
54
|
+
* `.cursor/` (#6163 Prefer-A Bound 6772886751). Never commits.
|
|
55
|
+
*/
|
|
56
|
+
export declare function stageTipRequiredCursorDeposit(projectRoot: string, options?: {
|
|
57
|
+
readonly sha8?: string;
|
|
58
|
+
readonly gitAdd?: CursorDepositGitAdd;
|
|
59
|
+
}): StageTipRequiredCursorDepositResult;
|
|
60
|
+
/**
|
|
61
|
+
* Committed-byte / index association bookend for installed outer hash (#6163).
|
|
62
|
+
* Working-tree inspectAgentHookDeposit green alone is not sufficient.
|
|
63
|
+
*/
|
|
64
|
+
export declare function validateCursorDepositAssociation(projectRoot: string, options?: {
|
|
65
|
+
readonly source?: CursorDepositTreeSource;
|
|
66
|
+
readonly outerSource?: string;
|
|
67
|
+
readonly readTreeFile?: CursorDepositTreeFileReader;
|
|
68
|
+
}): CursorDepositAssociationResult;
|
|
26
69
|
/**
|
|
27
70
|
* Pure ESM outer source deposited under each host dir.
|
|
28
71
|
* Keep this string the SoT for sha8; tests assert F1 order + messaging.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-hook-outer.d.ts","sourceRoot":"","sources":["../../src/init-deposit/host-hook-outer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"host-h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AC;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED,MAAM,MAAM,2BAA2B,GAAG,CACxC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,uBAAuB,KAC5B,MAAM,GAAG,IAAI,CAAC;AAEnB,MAAM,MAAM,mBAAmB,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,KAAK,IAAI,CAAC;AAiE1F;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE;IACP,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAClC,GACL,mCAAmC,CAMrC;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE;IACP,QAAQ,CAAC,MAAM,CAAC,EAAE,uBAAuB,CAAC;IAC1C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,CAAC,EAAE,2BAA2B,CAAC;CAChD,GACL,8BAA8B,CAwDhC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAmH5C"}
|
|
@@ -9,12 +9,18 @@
|
|
|
9
9
|
* validated eligible (lstat regular-file + successful untracked `git ls-files`
|
|
10
10
|
* listing with usable captured output). Tracked / wrong kind / indeterminate
|
|
11
11
|
* never select the override.
|
|
12
|
+
*
|
|
13
|
+
* #6163 Prefer-A Bound 6772886751: tip-required Cursor deposit paths + stage-only
|
|
14
|
+
* force-add + committed/index association bookend (Cursor-at-minimum).
|
|
12
15
|
*/
|
|
16
|
+
import { execFileSync } from "node:child_process";
|
|
13
17
|
import { createHash } from "node:crypto";
|
|
14
18
|
/** Project-PM guidance for missing pin (⊗ AC9.7 INSTALLATION_RECOVERY_GUIDANCE). */
|
|
15
19
|
export const HOST_HOOK_MISSING_PIN_PROJECT_PM_GUIDANCE = "Directive hooks: missing node_modules/@deftai/directive-runtime. " +
|
|
16
20
|
"Run npm install or pnpm install (or yarn) in this project.";
|
|
17
21
|
export const HOST_HOOK_OUTER_PIN_HOOK_BIN_REL = "node_modules/@deftai/directive-runtime/dist/hook-bin.js";
|
|
22
|
+
/** Tip-tracked Cursor hooks registration (#6163). */
|
|
23
|
+
export const CURSOR_HOOKS_JSON_REL = ".cursor/hooks.json";
|
|
18
24
|
/** Filename stem + content-hash suffix (AC9.1). */
|
|
19
25
|
export function hostHookOuterFileName(sha8) {
|
|
20
26
|
return `deft-hook-${sha8}.mjs`;
|
|
@@ -48,6 +54,148 @@ export function hostHookOuterSha8(source = hostHookOuterSource()) {
|
|
|
48
54
|
export function isHostHookOuterCommand(commandText) {
|
|
49
55
|
return /(?:^|[\s/])deft-hook-[a-f0-9]{8}\.mjs(?:\s|$)/.test(commandText);
|
|
50
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Exact tip-required Cursor paths for the installed outer hash (#6163).
|
|
59
|
+
* New-hash shim path is enumerated explicitly — "already tracked" under
|
|
60
|
+
* `.cursor/` is not exact-path membership for the new hash.
|
|
61
|
+
*/
|
|
62
|
+
export function tipRequiredCursorDepositPaths(sha8 = hostHookOuterSha8()) {
|
|
63
|
+
return [CURSOR_HOOKS_JSON_REL, hostHookOuterRelPath("cursor", sha8)];
|
|
64
|
+
}
|
|
65
|
+
function defaultReadTreeFile(projectRoot, relPath, source) {
|
|
66
|
+
try {
|
|
67
|
+
// `HEAD:./<path>` / `:./<path>` resolve relative to projectRoot so a
|
|
68
|
+
// nested project reads its own deposit, not the repository parent's
|
|
69
|
+
// (same pattern as defaultReadCommittedFile — #6163 Greptile P1).
|
|
70
|
+
const spec = source === "HEAD" ? `HEAD:./${relPath}` : `:./${relPath}`;
|
|
71
|
+
return execFileSync("git", ["show", spec], {
|
|
72
|
+
cwd: projectRoot,
|
|
73
|
+
encoding: "utf8",
|
|
74
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
75
|
+
windowsHide: true,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
catch {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/** True when hooks.json registers the expected outer via a command field. */
|
|
83
|
+
function hooksJsonRegistersOuter(hooksJson, expectedCmd, shimRelPath) {
|
|
84
|
+
let parsed;
|
|
85
|
+
try {
|
|
86
|
+
parsed = JSON.parse(hooksJson);
|
|
87
|
+
}
|
|
88
|
+
catch {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed))
|
|
92
|
+
return false;
|
|
93
|
+
const hooks = parsed.hooks;
|
|
94
|
+
if (typeof hooks !== "object" || hooks === null || Array.isArray(hooks))
|
|
95
|
+
return false;
|
|
96
|
+
for (const value of Object.values(hooks)) {
|
|
97
|
+
if (!Array.isArray(value))
|
|
98
|
+
continue;
|
|
99
|
+
for (const entry of value) {
|
|
100
|
+
if (typeof entry !== "object" || entry === null || Array.isArray(entry))
|
|
101
|
+
continue;
|
|
102
|
+
const command = entry.command;
|
|
103
|
+
if (typeof command !== "string")
|
|
104
|
+
continue;
|
|
105
|
+
// Exact deposit command only — substring/filename matches are not association.
|
|
106
|
+
if (command === expectedCmd)
|
|
107
|
+
return true;
|
|
108
|
+
const m = command.trim().match(/^(?:node(?:\.exe)?)\s+(\S+)/i);
|
|
109
|
+
const invokedPath = m?.[1];
|
|
110
|
+
if (!invokedPath)
|
|
111
|
+
continue;
|
|
112
|
+
const invoked = invokedPath.replace(/\\/g, "/");
|
|
113
|
+
if (invoked === shimRelPath || invoked === `./${shimRelPath}`)
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
function defaultGitAddForce(projectRoot, paths) {
|
|
120
|
+
// Bounded path list only — never `git add -f .cursor/` (#6163).
|
|
121
|
+
execFileSync("git", ["add", "-f", "--", ...paths], {
|
|
122
|
+
cwd: projectRoot,
|
|
123
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
124
|
+
windowsHide: true,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Stage-only force-add of tip-required Cursor paths despite local exclude
|
|
129
|
+
* `.cursor/` (#6163 Prefer-A Bound 6772886751). Never commits.
|
|
130
|
+
*/
|
|
131
|
+
export function stageTipRequiredCursorDeposit(projectRoot, options = {}) {
|
|
132
|
+
const sha8 = options.sha8 ?? hostHookOuterSha8();
|
|
133
|
+
const paths = tipRequiredCursorDepositPaths(sha8);
|
|
134
|
+
const gitAdd = options.gitAdd ?? defaultGitAddForce;
|
|
135
|
+
gitAdd(projectRoot, paths);
|
|
136
|
+
return { staged: [...paths], sha8, paths };
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Committed-byte / index association bookend for installed outer hash (#6163).
|
|
140
|
+
* Working-tree inspectAgentHookDeposit green alone is not sufficient.
|
|
141
|
+
*/
|
|
142
|
+
export function validateCursorDepositAssociation(projectRoot, options = {}) {
|
|
143
|
+
const outerSource = options.outerSource ?? hostHookOuterSource();
|
|
144
|
+
const sha8 = hostHookOuterSha8(outerSource);
|
|
145
|
+
const paths = tipRequiredCursorDepositPaths(sha8);
|
|
146
|
+
const source = options.source ?? "HEAD";
|
|
147
|
+
const read = options.readTreeFile ?? defaultReadTreeFile;
|
|
148
|
+
const hooksJson = read(projectRoot, paths[0], source);
|
|
149
|
+
if (hooksJson === null) {
|
|
150
|
+
return {
|
|
151
|
+
ok: false,
|
|
152
|
+
sha8,
|
|
153
|
+
paths,
|
|
154
|
+
detail: `missing ${paths[0]} in ${source} tree (#6163)`,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
const expectedCmd = hostHookOuterCommand("cursor", sha8);
|
|
158
|
+
const shimToken = hostHookOuterFileName(sha8);
|
|
159
|
+
if (!hooksJsonRegistersOuter(hooksJson, expectedCmd, paths[1])) {
|
|
160
|
+
return {
|
|
161
|
+
ok: false,
|
|
162
|
+
sha8,
|
|
163
|
+
paths,
|
|
164
|
+
detail: `${paths[0]} in ${source} does not register command for ${expectedCmd} (#6163)`,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
const shim = read(projectRoot, paths[1], source);
|
|
168
|
+
if (shim === null) {
|
|
169
|
+
return {
|
|
170
|
+
ok: false,
|
|
171
|
+
sha8,
|
|
172
|
+
paths,
|
|
173
|
+
detail: `missing ${paths[1]} in ${source} tree (#6163)`,
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
if (shim !== outerSource) {
|
|
177
|
+
return {
|
|
178
|
+
ok: false,
|
|
179
|
+
sha8,
|
|
180
|
+
paths,
|
|
181
|
+
detail: `${paths[1]} bytes do not match installed hostHookOuterSource (#6163)`,
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
if (hostHookOuterSha8(shim) !== sha8) {
|
|
185
|
+
return {
|
|
186
|
+
ok: false,
|
|
187
|
+
sha8,
|
|
188
|
+
paths,
|
|
189
|
+
detail: `shim content hash mismatch for ${paths[1]} (#6163)`,
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
ok: true,
|
|
194
|
+
sha8,
|
|
195
|
+
paths,
|
|
196
|
+
detail: `Cursor deposit associated in ${source} for ${shimToken}`,
|
|
197
|
+
};
|
|
198
|
+
}
|
|
51
199
|
/**
|
|
52
200
|
* Pure ESM outer source deposited under each host dir.
|
|
53
201
|
* Keep this string the SoT for sha8; tests assert F1 order + messaging.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-hook-outer.js","sourceRoot":"","sources":["../../src/init-deposit/host-hook-outer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"host-hook-out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AClE,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB;IACjC,MAAM,QAAQ,GAAG,yCAAyC,CAAC;IAC3D,MAAM,MAAM,GAAG,gCAAgC,CAAC;IAChD,OAAO;;;;;;;;;;;mBAWU,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;kBACzB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmGvC,CAAC;AACF,CAAC"}
|
|
@@ -49,6 +49,15 @@ export interface FetchIssueStatesForApplyOptions extends FetchIssueStatesOptions
|
|
|
49
49
|
*/
|
|
50
50
|
readonly reportIssueNumbers?: Iterable<number>;
|
|
51
51
|
}
|
|
52
|
+
/** IssueState value for an issue the forge reports as deleted (REST 410, #5912). */
|
|
53
|
+
export declare const DELETED_ISSUE_STATE = "DELETED";
|
|
54
|
+
/**
|
|
55
|
+
* REST 410 Gone = deleted issue (#5912). Prefer the JSON error body `gh api`
|
|
56
|
+
* prints on stdout (`"status": "410"`); fall back to the stderr text.
|
|
57
|
+
*/
|
|
58
|
+
export declare function isRestDeletedResult(result: CompletedProcess): boolean;
|
|
59
|
+
/** Whether a fetched issue state is DELETED (#5912). */
|
|
60
|
+
export declare function isDeletedIssueState(value: unknown): boolean;
|
|
52
61
|
export declare function fetchIssueStates(repo: string, issueNumbers: ReadonlySet<number>, options?: FetchIssueStatesOptions): Map<number, IssueState> | null;
|
|
53
62
|
/** Unique issue numbers from non-terminal lifecycle anchors (#4269). */
|
|
54
63
|
export declare function collectNonTerminalApplyIssueNumbers(anchors: readonly Record<string, unknown>[]): Set<number>;
|
|
@@ -72,6 +81,13 @@ export interface ReconcileReport {
|
|
|
72
81
|
completed_status_drift?: CompletedStatusDriftEntry[];
|
|
73
82
|
summary: Record<string, number>;
|
|
74
83
|
}
|
|
84
|
+
/** Leftover named for briefs anchored to a deleted issue (#5912 / #5126). */
|
|
85
|
+
export declare const DELETED_ISSUE_LEFTOVER_NOTE = "scope:cancel cannot resolve a deleted origin (#5126 leftover); brief left in place";
|
|
86
|
+
/**
|
|
87
|
+
* Report note for a no-open-issue entry. Deleted (410) and missing (404) are
|
|
88
|
+
* named separately (#5912); a state absent from the map keeps the legacy note.
|
|
89
|
+
*/
|
|
90
|
+
export declare function noOpenIssueNote(state: string, raw: unknown): string;
|
|
75
91
|
export declare function reconcile(issueToVbriefs: Map<number, string[]>, issueStateMap: Map<number, IssueState | string>): ReconcileReport;
|
|
76
92
|
export declare function reconcileWithUnlinked(issueToVbriefs: Map<number, string[]>, openIssues: Record<string, unknown>[]): ReconcileReport;
|
|
77
93
|
export declare function parsePlanRef(data: Record<string, unknown>): number | null;
|
|
@@ -86,7 +102,23 @@ export declare function buildLifecycleReport(anchors: Record<string, unknown>[],
|
|
|
86
102
|
export declare function formatJson(report: ReconcileReport): string;
|
|
87
103
|
export declare function formatMarkdown(report: ReconcileReport): string;
|
|
88
104
|
export declare function destinationFolder(stateReason: string | null | undefined): string;
|
|
89
|
-
|
|
105
|
+
/** Live single-issue GET used by the pre-write child probe (#5912). */
|
|
106
|
+
export type IssueStateProbeFn = (issueNumber: number) => IssueState | null | "CLI_MISSING";
|
|
107
|
+
export interface ApplyLifecycleFixesOptions {
|
|
108
|
+
/** Apply mover map (from `fetchIssueStatesForApply`); report states are folded in. */
|
|
109
|
+
readonly issueStates?: ReadonlyMap<number, IssueState | string> | null;
|
|
110
|
+
/** Live GET for probed child issues absent from the mover map. */
|
|
111
|
+
readonly probeIssueState?: IssueStateProbeFn | null;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Move briefs whose anchor issue is closed into a terminal folder.
|
|
115
|
+
* Returns `[moved, skipped, failures, deletedSkips, protectedRels]`.
|
|
116
|
+
* `deletedSkips` lists briefs left in place because of a DELETED (HTTP 410)
|
|
117
|
+
* issue (#5912); they are not failures. `protectedRels` names every brief this
|
|
118
|
+
* run must not rewrite afterwards (DELETED-anchored briefs, and the parent and
|
|
119
|
+
* children of a refused related move), e.g. in completed/ drift repair.
|
|
120
|
+
*/
|
|
121
|
+
export declare function applyLifecycleFixes(vbriefDir: string, report: ReconcileReport, projectRoot?: string | null, options?: ApplyLifecycleFixesOptions): [number, number, string[], string[], Set<string>];
|
|
90
122
|
/** Repair completed/ files whose plan.status is not terminal (#2578). */
|
|
91
123
|
export declare function repairCompletedStatusDrift(vbriefDir: string, drift: readonly CompletedStatusDriftEntry[], projectRoot?: string | null): [number, number, string[]];
|
|
92
124
|
export declare function detectRepo(): string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconcile-issues.d.ts","sourceRoot":"","sources":["../../src/intake/reconcile-issues.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconcile-issues.d.ts","sourceRoot":"","sources":["../../src/intake/reconcile-issues.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAQ,MAAM,gBAAgB,CAAC;AAiB/E,eAAO,MAAM,iBAAiB,sEAMpB,CAAC;AAEX,eAAO,MAAM,0BAA0B,aAA8C,CAAC;AAEtF,eAAO,MAAM,sBAAsB,aAIjC,CAAC;AAEH,eAAO,MAAM,uBAAuB,aAAgD,CAAC;AAKrF,eAAO,MAAM,iBAAiB,OAAO,CAAC;AACtC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C,4DAA4D;AAC5D,qBAAa,UAAU;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;gBAExB,KAAK,EAAE,MAAM,EAAE,WAAW,GAAE,MAAM,GAAG,IAAW;IAK5D,QAAQ,IAAI,MAAM;CAGnB;AAED,wBAAgB,aAAa,CA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