@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.
@@ -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;
@@ -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: python.stdout !== ts.stdout,
237
- stderrMismatch: python.stderr !== ts.stderr,
245
+ stdoutMismatch: pythonStdout !== tsStdout,
246
+ stderrMismatch: pythonStderr !== tsStderr,
238
247
  pythonExit: python.exitCode,
239
248
  tsExit: ts.exitCode,
240
249
  };
@@ -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). */