@deftai/directive 0.57.0 → 0.59.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/codebase-parity.d.ts +1 -0
- package/dist/codebase-parity.js +11 -2
- package/dist/dispatch.d.ts +2 -0
- package/dist/dispatch.js +1167 -23
- package/dist/doctor-parity.js +6 -1
- package/dist/doctor.js +11 -0
- package/dist/lifecycle-packs-parity.js +2 -2
- package/dist/orchestration-cli/coverage-map.js +1 -1
- package/dist/release-parity.js +4 -1
- package/dist/render-parity.d.ts +1 -0
- package/dist/render-parity.js +4 -2
- package/dist/session-parity.js +6 -4
- package/dist/swarm-parity.js +1 -0
- package/dist/triage-actions-parity.js +1 -0
- package/dist/triage-aux-a-parity.js +7 -2
- package/dist/triage-queue-parity.js +3 -1
- package/dist/vbrief-reconcile-parity.d.ts +1 -0
- package/dist/vbrief-reconcile-parity.js +12 -3
- package/package.json +3 -3
|
@@ -24,6 +24,7 @@ export interface ParityResult {
|
|
|
24
24
|
readonly diffs: ParityDiff[];
|
|
25
25
|
}
|
|
26
26
|
export declare const PARITY_CASES: readonly ParityCase[];
|
|
27
|
+
export declare function normalizeOutput(text: string): string;
|
|
27
28
|
export declare function diffCase(python: CommandCapture, ts: CommandCapture, caseName: string): ParityDiff;
|
|
28
29
|
export declare function runParity(): ParityResult;
|
|
29
30
|
export declare function renderReport(result: ParityResult): string;
|
package/dist/codebase-parity.js
CHANGED
|
@@ -229,12 +229,21 @@ export const PARITY_CASES = [
|
|
|
229
229
|
setup: writeCapacityProject,
|
|
230
230
|
},
|
|
231
231
|
];
|
|
232
|
+
export function normalizeOutput(text) {
|
|
233
|
+
return text
|
|
234
|
+
.replace(/(?:\/private)?\/var\/folders\/[^\s"')]+\/deft-codebase-parity-[^\s"')]+/g, "<TMP>")
|
|
235
|
+
.replace(/\/tmp\/deft-codebase-parity-[^\s"')]+/g, "<TMP>");
|
|
236
|
+
}
|
|
232
237
|
export function diffCase(python, ts, caseName) {
|
|
238
|
+
const pythonStdout = normalizeOutput(python.stdout);
|
|
239
|
+
const pythonStderr = normalizeOutput(python.stderr);
|
|
240
|
+
const tsStdout = normalizeOutput(ts.stdout);
|
|
241
|
+
const tsStderr = normalizeOutput(ts.stderr);
|
|
233
242
|
return {
|
|
234
243
|
caseName,
|
|
235
244
|
exitMismatch: python.exitCode !== ts.exitCode,
|
|
236
|
-
stdoutMismatch:
|
|
237
|
-
stderrMismatch:
|
|
245
|
+
stdoutMismatch: pythonStdout !== tsStdout,
|
|
246
|
+
stderrMismatch: pythonStderr !== tsStderr,
|
|
238
247
|
pythonExit: python.exitCode,
|
|
239
248
|
tsExit: ts.exitCode,
|
|
240
249
|
};
|
package/dist/dispatch.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export declare const CLI_MODULE_VERBS: readonly ["agents-refresh", "cache", "che
|
|
|
13
13
|
export declare const CORE_MODULE_VERBS: readonly ["scm", "github-auth-modes", "github-body", "issue-emit", "issue-ingest", "reconcile-issues", "swarm-launch", "swarm-complete-cohort", "swarm-readiness", "swarm-routing-verify", "swarm-routing-set", "swarm-verify-review-clean", "swarm-worktrees", "framework-commands", "pack-render", "packs-slice", "prd-render", "project-render", "roadmap-render", "spec-render", "spec-validate", "code-structure-validate", "pack-migrate-skills", "pack-migrate-rules", "pack-migrate-strategies", "pack-migrate-patterns", "pack-migrate-swarm-spec", "policy-set", "scope-undo", "scope-demote", "scope-decompose", "changelog-resolve-unreleased", "architecture-preflight-sor"];
|
|
14
14
|
/** Task-style aliases (framework_commands / Taskfile names). */
|
|
15
15
|
export declare const VERB_ALIASES: Readonly<Record<string, string>>;
|
|
16
|
+
/** Native `policy-set` dispatcher (replaces the policy_set.py shell-out, #2022 Phase 1). */
|
|
17
|
+
export declare function runPolicySet(argv: string[], io: DispatchIo): number;
|
|
16
18
|
/** Resolve a user-facing verb to its canonical handler key. */
|
|
17
19
|
export declare function resolveCanonicalVerb(verb: string): string | null;
|
|
18
20
|
/** Sorted list of all registered verb names (canonical + aliases). */
|