@deftai/directive-core 0.104.0 → 0.105.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/dist/authz/classify.js +526 -42
- package/dist/check/cached-orchestrator.d.ts +1 -1
- package/dist/check/cached-orchestrator.js +2 -2
- package/dist/check/named-cause.d.ts +1 -1
- package/dist/check/named-cause.js +33 -3
- package/dist/codebase/default-extractor.d.ts +5 -0
- package/dist/codebase/default-extractor.js +7 -15
- package/dist/deposit/copy-tree.js +60 -0
- package/dist/deposit/python-free.js +26 -18
- package/dist/doctor/checks.d.ts +8 -0
- package/dist/doctor/checks.js +37 -25
- package/dist/doctor/doctor-state.d.ts +4 -0
- package/dist/doctor/doctor-state.js +7 -1
- package/dist/doctor/main.js +9 -19
- package/dist/doctor/types.d.ts +9 -0
- package/dist/fs/contained-write.d.ts +115 -1
- package/dist/fs/contained-write.js +241 -5
- package/dist/fs/mutation-ledger.d.ts +54 -0
- package/dist/fs/mutation-ledger.js +133 -0
- package/dist/fs/non-product-dirs.d.ts +79 -0
- package/dist/fs/non-product-dirs.js +96 -0
- package/dist/hooks/dispatcher.d.ts +3 -1
- package/dist/hooks/dispatcher.js +14 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/init-deposit/agent-hooks.js +17 -15
- package/dist/init-deposit/core-guard-pin-content.d.ts +7 -0
- package/dist/init-deposit/core-guard-pin-content.js +393 -0
- package/dist/init-deposit/gitignore.js +9 -0
- package/dist/init-deposit/hygiene.d.ts +47 -11
- package/dist/init-deposit/hygiene.js +172 -37
- package/dist/init-deposit/legacy-detect.js +6 -2
- package/dist/init-deposit/refresh.d.ts +21 -1
- package/dist/init-deposit/refresh.js +106 -9
- package/dist/init-deposit/scaffold.js +28 -279
- package/dist/init-deposit/slash-deposit.js +13 -7
- package/dist/init-deposit/xbrief-projections.d.ts +8 -1
- package/dist/init-deposit/xbrief-projections.js +24 -11
- package/dist/intake/clause-derivation.d.ts +38 -1
- package/dist/intake/clause-derivation.js +211 -9
- package/dist/intake/issue-ingest.d.ts +3 -1
- package/dist/intake/issue-ingest.js +35 -6
- package/dist/lifecycle/completed-tracked-on-delivery.d.ts +5 -0
- package/dist/lifecycle/completed-tracked-on-delivery.js +85 -18
- package/dist/literal-acceptance/capture.d.ts +10 -0
- package/dist/literal-acceptance/capture.js +224 -75
- package/dist/literal-acceptance/evaluate.d.ts +29 -4
- package/dist/literal-acceptance/evaluate.js +70 -2
- package/dist/literal-acceptance/index.d.ts +3 -3
- package/dist/literal-acceptance/index.js +3 -3
- package/dist/literal-acceptance/safety.d.ts +41 -0
- package/dist/literal-acceptance/safety.js +126 -2
- package/dist/literal-acceptance/types.d.ts +8 -0
- package/dist/orphan-active/evaluate.d.ts +7 -1
- package/dist/orphan-active/evaluate.js +102 -23
- package/dist/platform/platform-capabilities.js +2 -3
- package/dist/policy/base-branch.d.ts +37 -0
- package/dist/policy/base-branch.js +114 -0
- package/dist/policy/branch-sync.d.ts +80 -0
- package/dist/policy/branch-sync.js +211 -0
- package/dist/policy/ceremony-dial-escalation.js +1 -0
- package/dist/policy/ceremony-dial.js +4 -14
- package/dist/policy/delivery-branch.d.ts +5 -3
- package/dist/policy/delivery-branch.js +7 -3
- package/dist/policy/file-size-thresholds.d.ts +24 -0
- package/dist/policy/file-size-thresholds.js +23 -0
- package/dist/policy/forge-outage-retry.d.ts +47 -0
- package/dist/policy/forge-outage-retry.js +157 -0
- package/dist/policy/index.d.ts +7 -0
- package/dist/policy/index.js +66 -7
- package/dist/policy/project-invariants.d.ts +50 -0
- package/dist/policy/project-invariants.js +205 -0
- package/dist/policy/sync-default.d.ts +129 -0
- package/dist/policy/sync-default.js +452 -0
- package/dist/policy/sync-max-files.d.ts +93 -0
- package/dist/policy/sync-max-files.js +192 -0
- package/dist/pr-monitor/absent-required.d.ts +11 -0
- package/dist/pr-monitor/absent-required.js +61 -0
- package/dist/pr-monitor/constants.d.ts +7 -0
- package/dist/pr-monitor/constants.js +7 -0
- package/dist/pr-monitor/index.d.ts +2 -1
- package/dist/pr-monitor/index.js +2 -1
- package/dist/pr-monitor/main.js +4 -0
- package/dist/pr-monitor/monitor.js +24 -1
- package/dist/pr-wait-mergeable/classify.js +6 -0
- package/dist/preflight/evaluate.d.ts +4 -0
- package/dist/preflight/evaluate.js +35 -1
- package/dist/preflight/index.d.ts +4 -0
- package/dist/preflight/index.js +2 -0
- package/dist/preflight/intended-placement.d.ts +62 -0
- package/dist/preflight/intended-placement.js +275 -0
- package/dist/preflight/project-invariants-gate.d.ts +29 -0
- package/dist/preflight/project-invariants-gate.js +82 -0
- package/dist/product-first-done-gate/acceptance-resolver.d.ts +128 -0
- package/dist/product-first-done-gate/acceptance-resolver.js +144 -0
- package/dist/product-first-done-gate/acceptance.d.ts +7 -4
- package/dist/product-first-done-gate/acceptance.js +79 -8
- package/dist/product-first-done-gate/empty-resolution.d.ts +4 -1
- package/dist/product-first-done-gate/empty-resolution.js +12 -1
- package/dist/product-first-done-gate/evaluate.d.ts +12 -0
- package/dist/product-first-done-gate/evaluate.js +254 -31
- package/dist/product-first-done-gate/index.d.ts +2 -0
- package/dist/product-first-done-gate/index.js +1 -0
- package/dist/release/build-dist.d.ts +101 -0
- package/dist/release/build-dist.js +428 -46
- package/dist/run-summary/emit.d.ts +16 -10
- package/dist/run-summary/emit.js +26 -15
- package/dist/run-summary/index.d.ts +3 -2
- package/dist/run-summary/index.js +2 -1
- package/dist/run-summary/session-id.d.ts +21 -0
- package/dist/run-summary/session-id.js +92 -0
- package/dist/run-summary/types.d.ts +29 -4
- package/dist/run-summary/types.js +1 -0
- package/dist/scope/acceptance-evidence.d.ts +19 -7
- package/dist/scope/acceptance-evidence.js +38 -11
- package/dist/scope/delivery-evidence.d.ts +3 -3
- package/dist/scope/delivery-evidence.js +22 -27
- package/dist/scope/index.d.ts +1 -0
- package/dist/scope/index.js +1 -0
- package/dist/scope/parent-lineage.js +7 -6
- package/dist/scope/project-invariant-coverage.d.ts +54 -0
- package/dist/scope/project-invariant-coverage.js +322 -0
- package/dist/scope/transition.js +1 -1
- package/dist/scope-provenance/compare-intent.d.ts +27 -0
- package/dist/scope-provenance/compare-intent.js +233 -0
- package/dist/scope-provenance/digest.d.ts +18 -1
- package/dist/scope-provenance/digest.js +16 -11
- package/dist/scope-provenance/evaluate.d.ts +5 -1
- package/dist/scope-provenance/evaluate.js +64 -4
- package/dist/scope-provenance/extract-intent.d.ts +43 -0
- package/dist/scope-provenance/extract-intent.js +262 -0
- package/dist/scope-provenance/index.d.ts +7 -1
- package/dist/scope-provenance/index.js +7 -1
- package/dist/scope-provenance/intent-digest.d.ts +12 -0
- package/dist/scope-provenance/intent-digest.js +33 -0
- package/dist/scope-provenance/intent-evaluate.d.ts +43 -0
- package/dist/scope-provenance/intent-evaluate.js +149 -0
- package/dist/scope-provenance/json-tokenizer.d.ts +19 -0
- package/dist/scope-provenance/json-tokenizer.js +225 -0
- package/dist/scope-provenance/known-machine.d.ts +38 -0
- package/dist/scope-provenance/known-machine.js +157 -0
- package/dist/scope-provenance/mint-artifacts.d.ts +102 -0
- package/dist/scope-provenance/mint-artifacts.js +425 -0
- package/dist/session/ac-pass-banking.d.ts +4 -36
- package/dist/session/ac-pass-banking.js +30 -77
- package/dist/session/ac-pass-reuse.d.ts +53 -0
- package/dist/session/ac-pass-reuse.js +95 -0
- package/dist/session/git.js +19 -4
- package/dist/session/index.d.ts +4 -0
- package/dist/session/index.js +4 -0
- package/dist/session/occupancy-stress-worker.d.ts +7 -0
- package/dist/session/occupancy-stress-worker.js +36 -0
- package/dist/session/occupancy.d.ts +97 -0
- package/dist/session/occupancy.js +422 -0
- package/dist/session/openclaw-soft-rebind-deposit.js +6 -6
- package/dist/session/product-state-hash.d.ts +26 -0
- package/dist/session/product-state-hash.js +683 -0
- package/dist/session/session-ready.d.ts +2 -0
- package/dist/session/session-ready.js +52 -30
- package/dist/session/session-start.d.ts +7 -0
- package/dist/session/session-start.js +71 -7
- package/dist/session/verify-ac-session-cache.d.ts +42 -0
- package/dist/session/verify-ac-session-cache.js +126 -0
- package/dist/session/verify-session-ritual.d.ts +5 -0
- package/dist/session/verify-session-ritual.js +9 -0
- package/dist/slash/openclaw-deposit.js +13 -9
- package/dist/slice/constants.d.ts +2 -2
- package/dist/slice/constants.js +2 -2
- package/dist/slice/existing.js +9 -3
- package/dist/slice/lock.d.ts +16 -1
- package/dist/slice/lock.js +137 -11
- package/dist/story-ready/evaluate.d.ts +2 -0
- package/dist/story-ready/evaluate.js +13 -0
- package/dist/swarm/complete-cohort.d.ts +3 -0
- package/dist/swarm/complete-cohort.js +59 -11
- package/dist/swarm/finalize-cohort.js +33 -2
- package/dist/swarm/launch.d.ts +22 -0
- package/dist/swarm/launch.js +155 -0
- package/dist/swarm/routing-set-cli.d.ts +11 -1
- package/dist/swarm/routing-set-cli.js +13 -3
- package/dist/swarm/routing-verify.d.ts +12 -0
- package/dist/swarm/routing-verify.js +59 -20
- package/dist/swarm/routing.d.ts +14 -0
- package/dist/swarm/routing.js +53 -3
- package/dist/telemetry-coverage/fake-trial.js +10 -0
- package/dist/telemetry-coverage/kinds.js +2 -0
- package/dist/triage/actions/index.js +4 -1
- package/dist/ts-check-lane/index.d.ts +3 -0
- package/dist/ts-check-lane/index.js +2 -0
- package/dist/ts-check-lane/progress-reporter.d.ts +17 -0
- package/dist/ts-check-lane/progress-reporter.js +38 -0
- package/dist/ts-check-lane/progress.d.ts +32 -0
- package/dist/ts-check-lane/progress.js +57 -0
- package/dist/ts-check-lane/run-lane.d.ts +3 -1
- package/dist/ts-check-lane/run-lane.js +8 -6
- package/dist/validate-content/validate-links.d.ts +8 -0
- package/dist/validate-content/validate-links.js +9 -15
- package/dist/value/feedback-file.js +12 -2
- package/dist/vbrief-build/index.d.ts +1 -0
- package/dist/vbrief-build/index.js +1 -0
- package/dist/vbrief-build/project-invariants-io.d.ts +16 -0
- package/dist/vbrief-build/project-invariants-io.js +41 -0
- package/dist/vbrief-reconcile/graph.js +18 -1
- package/dist/vbrief-reconcile/index.d.ts +1 -1
- package/dist/vbrief-reconcile/index.js +1 -1
- package/dist/vbrief-reconcile/types.d.ts +13 -0
- package/dist/vbrief-reconcile/umbrellas.d.ts +14 -0
- package/dist/vbrief-reconcile/umbrellas.js +261 -26
- package/dist/vbrief-validate/index.d.ts +1 -1
- package/dist/vbrief-validate/index.js +1 -1
- package/dist/vbrief-validate/plan-hooks.d.ts +4 -0
- package/dist/vbrief-validate/plan-hooks.js +68 -0
- package/dist/verify-ac/evaluate.d.ts +7 -1
- package/dist/verify-ac/evaluate.js +34 -26
- package/dist/verify-ac/flag.d.ts +4 -0
- package/dist/verify-ac/flag.js +16 -0
- package/dist/verify-ac/index.d.ts +2 -2
- package/dist/verify-ac/index.js +2 -2
- package/dist/verify-source/contained-writes.js +2 -0
- package/dist/verify-source/verify-stubs.d.ts +15 -1
- package/dist/verify-source/verify-stubs.js +20 -16
- package/dist/vitest-runner/win32-coverage-tmp-setup.d.ts +5 -6
- package/dist/vitest-runner/win32-coverage-tmp-setup.js +5 -6
- package/dist/xbrief-migrate/migrate-project.js +2 -5
- package/package.json +3 -3
package/dist/verify-ac/index.js
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* by editing the comparison. Deterministic surface is the flagged event.
|
|
6
6
|
*/
|
|
7
7
|
export { deriveAcceptanceClauses, formatClauseWalkMessage, isScratchArtifactPath, readAcceptanceClauses, serializeAcceptanceClauses, stampDerivedClausesOnAcceptance, walkAcceptanceClauses, } from "./clauses.js";
|
|
8
|
-
export { emitVerifyAcAttempts, evaluateProductOracleIntegrity, mergeOracleVerdict, VERIFY_AC_CHECK_ID_PREFIX, verifyAcCheckId, } from "./evaluate.js";
|
|
9
|
-
export { flagPassAfterFailFromJsonl, flagPassAfterFailWithMethodChange, readVerificationAttempts, unresolvedMethodChangePasses, } from "./flag.js";
|
|
8
|
+
export { emitVerifyAcAttempts, evaluateProductOracleIntegrity, mergeOracleVerdict, methodFingerprintForWalk, VERIFY_AC_CHECK_ID_PREFIX, verifyAcCheckId, } from "./evaluate.js";
|
|
9
|
+
export { commandCountFromFingerprint, flagPassAfterFailFromJsonl, flagPassAfterFailWithMethodChange, readVerificationAttempts, unresolvedMethodChangePasses, } from "./flag.js";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -46,6 +46,8 @@ export const CONTAINED_WRITES_ALLOWLIST = [
|
|
|
46
46
|
// Implementation modules for containment + contained write.
|
|
47
47
|
"packages/core/src/fs/contained-write.ts",
|
|
48
48
|
"packages/core/src/fs/projection-containment.ts",
|
|
49
|
+
// #3424: read-only O_NOFOLLOW fd pin in intended-placement inspect (not a write sink).
|
|
50
|
+
"packages/core/src/preflight/intended-placement.ts",
|
|
49
51
|
// Deposit tree copy / contain primitives (low-level install sinks).
|
|
50
52
|
"packages/core/src/deposit/copy-tree.ts",
|
|
51
53
|
"packages/core/src/deposit/contain.ts",
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared "not product source" core (#3487) plus the directories only the stub
|
|
3
|
+
* scan treats as non-product: fixtures/tests, vendored trees, the history
|
|
4
|
+
* archive, and operator scripts.
|
|
5
|
+
*/
|
|
1
6
|
export declare const EXCLUDE_DIRS: Set<string>;
|
|
2
7
|
export declare const EXTENSIONS: Set<string>;
|
|
3
8
|
export interface StubFinding {
|
|
@@ -6,7 +11,16 @@ export interface StubFinding {
|
|
|
6
11
|
readonly label: string;
|
|
7
12
|
readonly text: string;
|
|
8
13
|
}
|
|
9
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Recursive sorted rglob mirroring `sorted(Path(".").rglob("*"))`, pruning
|
|
16
|
+
* `EXCLUDE_DIRS` before recursing.
|
|
17
|
+
*
|
|
18
|
+
* Pruning is load-bearing, not an optimisation of a filter applied later: on a
|
|
19
|
+
* host with a populated `.deft-scratch/` the unpruned walk enumerates every
|
|
20
|
+
* swarm worktree (millions of entries) only to discard them per-file. #2953
|
|
21
|
+
* added `.deft-scratch` / `swarm-worktrees` to `EXCLUDE_DIRS` for exactly this
|
|
22
|
+
* reason but left the walk descending into them (#3481).
|
|
23
|
+
*/
|
|
10
24
|
export declare function sortedRglob(root: string): string[];
|
|
11
25
|
export declare function scanFileForStubs(relPath: string, fullPath: string): StubFinding[];
|
|
12
26
|
export interface VerifyStubsResult {
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
import { readdirSync, readFileSync, statSync } from "node:fs";
|
|
2
2
|
import { join, resolve } from "node:path";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
".venv",
|
|
11
|
-
"__pycache__",
|
|
12
|
-
"dist",
|
|
13
|
-
"scripts",
|
|
14
|
-
// Swarm / agent worktrees are not product source (#2953, #1656).
|
|
15
|
-
".deft-scratch",
|
|
16
|
-
"swarm-worktrees",
|
|
17
|
-
]);
|
|
3
|
+
import { NON_PRODUCT_DIRS } from "../fs/non-product-dirs.js";
|
|
4
|
+
/**
|
|
5
|
+
* Shared "not product source" core (#3487) plus the directories only the stub
|
|
6
|
+
* scan treats as non-product: fixtures/tests, vendored trees, the history
|
|
7
|
+
* archive, and operator scripts.
|
|
8
|
+
*/
|
|
9
|
+
export const EXCLUDE_DIRS = new Set([...NON_PRODUCT_DIRS, "tests", "vendor", "history", "scripts"]);
|
|
18
10
|
export const EXTENSIONS = new Set([".py", ".go", ".sh"]);
|
|
19
11
|
function isWordChar(ch) {
|
|
20
12
|
if (ch.length === 0) {
|
|
@@ -73,7 +65,16 @@ function hasReturnNull(text) {
|
|
|
73
65
|
}
|
|
74
66
|
return false;
|
|
75
67
|
}
|
|
76
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Recursive sorted rglob mirroring `sorted(Path(".").rglob("*"))`, pruning
|
|
70
|
+
* `EXCLUDE_DIRS` before recursing.
|
|
71
|
+
*
|
|
72
|
+
* Pruning is load-bearing, not an optimisation of a filter applied later: on a
|
|
73
|
+
* host with a populated `.deft-scratch/` the unpruned walk enumerates every
|
|
74
|
+
* swarm worktree (millions of entries) only to discard them per-file. #2953
|
|
75
|
+
* added `.deft-scratch` / `swarm-worktrees` to `EXCLUDE_DIRS` for exactly this
|
|
76
|
+
* reason but left the walk descending into them (#3481).
|
|
77
|
+
*/
|
|
77
78
|
export function sortedRglob(root) {
|
|
78
79
|
const out = [];
|
|
79
80
|
function walk(dir, relPrefix) {
|
|
@@ -95,6 +96,9 @@ export function sortedRglob(root) {
|
|
|
95
96
|
continue;
|
|
96
97
|
}
|
|
97
98
|
if (st.isDirectory()) {
|
|
99
|
+
if (EXCLUDE_DIRS.has(name)) {
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
98
102
|
walk(full, rel);
|
|
99
103
|
}
|
|
100
104
|
else {
|
|
@@ -3,18 +3,17 @@ export declare const COVERAGE_TMP_CHUNK_RE: RegExp;
|
|
|
3
3
|
export declare function isCoverageTmpChunkPath(filePath: string): boolean;
|
|
4
4
|
export declare function ensureCoverageTmpDir(coverageTmpDir?: string): void;
|
|
5
5
|
/**
|
|
6
|
-
* Vitest
|
|
7
|
-
*
|
|
8
|
-
* directory can disappear between clean() and writeFile under release-scale
|
|
6
|
+
* Vitest 4.x includes the upstream mkdir (vitest-dev/vitest#10117). On Windows the
|
|
7
|
+
* directory can still disappear between clean() and writeFile under release-scale
|
|
9
8
|
* load; mkdir immediately before chunk writes closes that race without
|
|
10
|
-
* soft-failing real threshold failures (#2634).
|
|
9
|
+
* soft-failing real threshold failures (#2634 / #3480).
|
|
11
10
|
*/
|
|
12
11
|
export declare function installCoverageTmpWriteGuard(): () => void;
|
|
13
12
|
/**
|
|
14
13
|
* Win32 globalSetup for coverage runs (#2580, hardened #2634).
|
|
15
14
|
*
|
|
16
|
-
* Keepalive mkdir plus a writeFile guard
|
|
17
|
-
*
|
|
15
|
+
* Keepalive mkdir plus a writeFile guard remain until a full win32 coverage
|
|
16
|
+
* run proves vitest 4's #10117 mkdir is enough on its own (#3480).
|
|
18
17
|
*/
|
|
19
18
|
export default function setup(): () => void;
|
|
20
19
|
//# sourceMappingURL=win32-coverage-tmp-setup.d.ts.map
|
|
@@ -10,11 +10,10 @@ export function ensureCoverageTmpDir(coverageTmpDir = defaultCoverageTmp) {
|
|
|
10
10
|
mkdirSync(coverageTmpDir, { recursive: true });
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Vitest
|
|
14
|
-
*
|
|
15
|
-
* directory can disappear between clean() and writeFile under release-scale
|
|
13
|
+
* Vitest 4.x includes the upstream mkdir (vitest-dev/vitest#10117). On Windows the
|
|
14
|
+
* directory can still disappear between clean() and writeFile under release-scale
|
|
16
15
|
* load; mkdir immediately before chunk writes closes that race without
|
|
17
|
-
* soft-failing real threshold failures (#2634).
|
|
16
|
+
* soft-failing real threshold failures (#2634 / #3480).
|
|
18
17
|
*/
|
|
19
18
|
export function installCoverageTmpWriteGuard() {
|
|
20
19
|
const originalWriteFile = fsPromises.writeFile.bind(fsPromises);
|
|
@@ -33,8 +32,8 @@ export function installCoverageTmpWriteGuard() {
|
|
|
33
32
|
/**
|
|
34
33
|
* Win32 globalSetup for coverage runs (#2580, hardened #2634).
|
|
35
34
|
*
|
|
36
|
-
* Keepalive mkdir plus a writeFile guard
|
|
37
|
-
*
|
|
35
|
+
* Keepalive mkdir plus a writeFile guard remain until a full win32 coverage
|
|
36
|
+
* run proves vitest 4's #10117 mkdir is enough on its own (#3480).
|
|
38
37
|
*/
|
|
39
38
|
export default function setup() {
|
|
40
39
|
if (process.platform !== "win32")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cpSync, existsSync, mkdirSync, readdirSync, readFileSync, rmSync } from "node:fs";
|
|
2
2
|
import { join, relative, resolve } from "node:path";
|
|
3
|
-
import { containedWrite } from "../fs/contained-write.js";
|
|
3
|
+
import { containedRemove, containedWrite } from "../fs/contained-write.js";
|
|
4
4
|
import { assertWriteTargetSafe, ProjectionContainmentError } from "../fs/projection-containment.js";
|
|
5
5
|
import { checkGitClean } from "../migrate-preflight/index.js";
|
|
6
6
|
import { applyAgentsRefresh } from "../platform/agents-md.js";
|
|
@@ -36,10 +36,7 @@ export function shouldOmitLegacyMigrationFile(relativePath) {
|
|
|
36
36
|
*/
|
|
37
37
|
export function removeStaleMigratedFrameworkNarrative(projectRoot) {
|
|
38
38
|
const stale = join(projectRoot, MIGRATED_ARTIFACT_DIR, OBSOLETE_FRAMEWORK_NARRATIVE_FILENAME);
|
|
39
|
-
|
|
40
|
-
return false;
|
|
41
|
-
rmSync(stale, { force: true });
|
|
42
|
-
return true;
|
|
39
|
+
return containedRemove({ root: projectRoot, target: stale }).removed;
|
|
43
40
|
}
|
|
44
41
|
function mapRelativePath(relativePath) {
|
|
45
42
|
return relativePath
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deftai/directive-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.105.0",
|
|
4
4
|
"description": "TypeScript engine core for the Directive framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -382,8 +382,8 @@
|
|
|
382
382
|
"provenance": true
|
|
383
383
|
},
|
|
384
384
|
"dependencies": {
|
|
385
|
-
"@deftai/directive-content": "^0.
|
|
386
|
-
"@deftai/directive-types": "^0.
|
|
385
|
+
"@deftai/directive-content": "^0.105.0",
|
|
386
|
+
"@deftai/directive-types": "^0.105.0",
|
|
387
387
|
"archiver": "^8.0.0"
|
|
388
388
|
},
|
|
389
389
|
"scripts": {
|