@zhixuan92/multi-model-agent-core 4.5.0 → 4.5.1
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/README.md +4 -6
- package/dist/providers/codex-cli-session.d.ts +1 -1
- package/dist/providers/codex-cli-session.d.ts.map +1 -1
- package/dist/providers/codex-cli-session.js +6 -1
- package/dist/providers/codex-cli-session.js.map +1 -1
- package/dist/tools/audit/plan-audit-criteria.d.ts.map +1 -1
- package/dist/tools/audit/plan-audit-criteria.js +41 -18
- package/dist/tools/audit/plan-audit-criteria.js.map +1 -1
- package/dist/tools/audit/spec-audit-criteria.d.ts.map +1 -1
- package/dist/tools/audit/spec-audit-criteria.js +5 -3
- package/dist/tools/audit/spec-audit-criteria.js.map +1 -1
- package/dist/tools/audit/tool-config.js +2 -2
- package/dist/tools/audit/tool-config.js.map +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -228,13 +228,11 @@ mmagent logs --follow --batch=<id> # tail + filter
|
|
|
228
228
|
|
|
229
229
|
As of 3.4.0 every task-execution event the worker emits to the verbose stderr stream is also written to the JSONL log via a single `emit(TaskEvent)` writer — schema parity across both sinks. Crash/disconnect events (`startup`, `request_start`, `request_complete`, `shutdown`, `error`) are written unconditionally; per-task events (`heartbeat`, `stage_change`, `tool_call`, `turn_complete`, etc.) flow through the same writer.
|
|
230
230
|
|
|
231
|
-
## What's new in 4.5.
|
|
231
|
+
## What's new in 4.5.1
|
|
232
232
|
|
|
233
|
-
- **`
|
|
234
|
-
- **`
|
|
235
|
-
-
|
|
236
|
-
- **Per-stage `mainEquivalentCostUSD` on `stageStats`.** Each stage entry carries the per-stage main-model-equivalent cost alongside `costUSD` so the frontend slices per-model savings without re-running rate-card math.
|
|
237
|
-
- **`LifecycleState` watchdog fields.** `preTaskUntrackedFiles`, `preStopReason`, `thrashingDetected`, `scopeViolations[]` — all optional, only populated when the watchdog fires.
|
|
233
|
+
- **`codex-cli-session` spawns via `cross-spawn`.** Node's native `child_process.spawn` cannot resolve `.cmd` / `.bat` / `.ps1` shims on Windows without `shell: true`, but `shell: true` would mangle the `-c model_providers.X={…}` argument block on `cmd.exe`. `cross-spawn` handles both shim resolution and arg escaping; POSIX passthrough so Linux/macOS users see zero behavior change.
|
|
234
|
+
- **`mma-audit` plan-audit criteria: 9 → 12 perspectives.** Plan subtype reorganized into EXTERNAL CODEBASE COHERENCE (1–8), INTRA-PLAN STRUCTURE (9 TASK GRANULARITY + new 11 PLACEHOLDER LANGUAGE + new 12 PLAN SKELETON), and SPEC ALIGNMENT (new 10 SPEC COVERAGE). Perspective 10 reads the upstream spec from a registered context block; emits "No findings for this criterion." when no spec is in context so it stays opt-in without a schema change. Per-group evidence-rule, scope-rule, annotator-awareness, and severity-calibration blocks rewritten to match.
|
|
235
|
+
- **`mma-audit` spec-audit criteria: 7 → 9.** Criterion 2 renamed `SCOPE-EXPLICITNESS-AND-DECOMPOSABILITY` (flags multi-subsystem specs); new criterion 8 `PLACEHOLDER-SCAN`; new criterion 9 `DESIGN-DECOMPOSITION-PRESENT` (enforces brainstorming-skill mandate for architecture / components / data flow / error handling / testing strategy coverage).
|
|
238
236
|
|
|
239
237
|
Full history: [CHANGELOG](https://github.com/zhixuan312/multi-model-agent/blob/master/CHANGELOG.md).
|
|
240
238
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChildProcess } from 'node:child_process';
|
|
2
2
|
import type { Session, SessionOpts, TurnOpts, TurnResult, TokenUsage } from '../types/run-result.js';
|
|
3
3
|
import { type CodexCliConfig } from './codex-cli-launch.js';
|
|
4
4
|
import { type CodexCliEvent } from './codex-cli-event.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-cli-session.d.ts","sourceRoot":"","sources":["../../src/providers/codex-cli-session.ts"],"names":[],"mappings":"AAkBA,OAAO,
|
|
1
|
+
{"version":3,"file":"codex-cli-session.d.ts","sourceRoot":"","sources":["../../src/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C9B,YAAY,cAAqB;IACjC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM;IAC7C,iBAAiB,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAQ;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAa;gBAET,UAAU,EAAE,UAAU,EAAmB,GAAG,CAAC,EAAE,OAAO,YAAA;IAInF,OAAO,CAAC,EAAE,EAAE,aAAa,GAAG,IAAI;IAuDhC,OAAO,CAAC,UAAU;IA6BlB,OAAO,CAAC,WAAW;IAyBnB,eAAe,IAAI,UAAU;CAQ9B;AAID,eAAO,MAAM,MAAM;;;CAAkC,CAAC;AAEtD;;;yEAGyE;AACzE,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAIlF"}
|
|
@@ -15,7 +15,12 @@
|
|
|
15
15
|
// 3. Multi-turn continuity via `codex exec resume <session_id>` is
|
|
16
16
|
// verified end-to-end (gpt-5.5 recalled prior-turn context across a
|
|
17
17
|
// fresh process spawn).
|
|
18
|
-
|
|
18
|
+
// cross-spawn: POSIX-passthrough on Linux/macOS (delegates to node:child_process spawn
|
|
19
|
+
// without behavior change), and on Windows resolves `.cmd`/`.bat`/`.ps1` shims (e.g.
|
|
20
|
+
// `codex.cmd`) that node's native spawn cannot find without `shell: true` — which
|
|
21
|
+
// would be unsafe for our args (the `-c model_providers.X={…}` block contains shell
|
|
22
|
+
// metacharacters that cmd.exe would mangle). Single-purpose import.
|
|
23
|
+
import spawn from 'cross-spawn';
|
|
19
24
|
import { readFile, mkdtemp, rm, writeFile } from 'node:fs/promises';
|
|
20
25
|
import { tmpdir } from 'node:os';
|
|
21
26
|
import { join } from 'node:path';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-cli-session.js","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G,IAAI,CAAC,QAAQ,CAAC,YAAY;YACvE,gBAAgB,EAAE,IAAI,CAAC,UAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC,QAAQ,CAAC,gBAAgB;YACnF,mBAAmB,EAAE,CAAC;SACvB,CAAC;IACJ,CAAC;CACF;AAED,sEAAsE;AACtE,yCAAyC;AACzC,MAAM,CAAC,MAAM,MAAM,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;AAEtD;;;yEAGyE;AACzE,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,GAAW,EAAE,MAAc;IAC/D,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,UAAU,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;IAC3F,MAAM,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IACnD,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-audit-criteria.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/plan-audit-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE1E;;;yCAGyC;AACzC,eAAO,MAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"plan-audit-criteria.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/plan-audit-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE1E;;;yCAGyC;AACzC,eAAO,MAAM,8BAA8B,QAyC/B,CAAC;AAEb,eAAO,MAAM,wBAAwB,QAmBzB,CAAC;AAEb,eAAO,MAAM,qBAAqB,QAMtB,CAAC;AAEb,eAAO,MAAM,8BAA8B,QAO/B,CAAC;AAGb,eAAO,MAAM,wBAAwB,QAmDzB,CAAC;AAEb;;yEAEyE;AACzE,eAAO,MAAM,mBAAmB,EAAE,SAAS,cAAc,EAA4C,CAAC"}
|
|
@@ -25,13 +25,16 @@ import { parseCriteria } from '../criteria-types.js';
|
|
|
25
25
|
* codebase), not internal-coherence. */
|
|
26
26
|
export const PLAN_AUDIT_PURPOSE_ORIENTATION = [
|
|
27
27
|
'Why this audit exists:',
|
|
28
|
-
'You are auditing a CODE-EXECUTION PLAN against a real codebase. The plan will subsequently be dispatched to literal-following workers via mma-execute-plan; if the plan names a method, file, type, or signature that does not match the codebase as it exists today, the worker will freeze on the contradiction or produce broken code. Your job: verify every plan claim against actual codebase
|
|
28
|
+
'You are auditing a CODE-EXECUTION PLAN against a real codebase AND (when provided) against the upstream requirement spec. The plan will subsequently be dispatched to literal-following workers via mma-execute-plan; if the plan names a method, file, type, or signature that does not match the codebase as it exists today, the worker will freeze on the contradiction or produce broken code. If the plan silently skips a spec requirement, the implementation will ship incomplete. Your job: verify every plan claim against the actual codebase, and (when the spec is available) verify every spec requirement is covered by at least one task.',
|
|
29
29
|
'',
|
|
30
|
-
'Your job is NOT prose-quality (that is the default audit\'s job). Your job
|
|
30
|
+
'Your job is NOT prose-quality on the plan itself (that is the default audit\'s job). Your job splits into three groups of perspectives:',
|
|
31
|
+
' • EXTERNAL CODEBASE COHERENCE (perspectives 1–8) — for every named symbol, file path, signature, or import in the plan, the codebase must contain it as described UNLESS the plan task is the one creating it. (See "How to classify a plan\'s mention of X" below.) These perspectives REQUIRE source-side evidence (file:line).',
|
|
32
|
+
' • INTRA-PLAN STRUCTURE (perspectives 9, 11, 12) — task granularity, placeholder language, and required plan skeleton. These perspectives look ONLY at the plan markdown itself; no codebase grounding is needed.',
|
|
33
|
+
' • SPEC ALIGNMENT (perspective 10) — every load-bearing spec requirement maps to ≥1 task in the plan, and no task implements something the spec did not ask for. This perspective requires the reference SPEC to be available in your context (registered as a context block by the caller). If no spec is in context, emit "No findings for this criterion." for perspective 10 ONLY — do NOT skip the other perspectives.',
|
|
31
34
|
'',
|
|
32
|
-
'Tool surface: read_file / grep / glob / list_files. The plan itself is in your filePaths input (one file). Source files are NOT pre-listed — you derive them from the plan\'s "Files: Modify:" / "Test:" / "Create:" blocks and from import statements in code blocks, then grep / read them yourself under cwd.',
|
|
35
|
+
'Tool surface: read_file / grep / glob / list_files. The plan itself is in your filePaths input (one file). Source files are NOT pre-listed — you derive them from the plan\'s "Files: Modify:" / "Test:" / "Create:" blocks and from import statements in code blocks, then grep / read them yourself under cwd. The reference SPEC, when provided, lives in the cached prefix above as a registered context block — read it directly from there for perspective 10.',
|
|
33
36
|
'',
|
|
34
|
-
'A finding without an actual file-and-line reference for the source side is speculation,
|
|
37
|
+
'A finding without an actual file-and-line reference for the source side is speculation FOR PERSPECTIVES 1–8 ONLY. Drop those. Perspectives 9, 11, 12 are intra-plan and need only a plan-side quote. Perspective 10 needs a spec-side quote (the requirement) plus a plan-side reference (the task that does or does not cover it). If a perspective has no findings to flag for this plan, that is the correct outcome — say so via the standard "No findings for this criterion." string and move on.',
|
|
35
38
|
'',
|
|
36
39
|
'— BEFORE FLAGGING — How to classify a plan\'s mention of X (REQUIRED triage step):',
|
|
37
40
|
'',
|
|
@@ -63,26 +66,39 @@ export const PLAN_AUDIT_PURPOSE_ORIENTATION = [
|
|
|
63
66
|
'Heuristic for fast classification: if the plan\'s code block has a function/method declaration syntax ON THE SAME LINE as the symbol name, it\'s DEFINE intent. If the symbol appears as a callee, an imported name, a type annotation, or a property access, it\'s USE intent.',
|
|
64
67
|
].join('\n');
|
|
65
68
|
export const EVIDENCE_RULE_PLAN_AUDIT = [
|
|
66
|
-
'Evidence grounding (REQUIRED for every finding):',
|
|
69
|
+
'Evidence grounding (REQUIRED for every finding — evidence shape varies by perspective group):',
|
|
70
|
+
'',
|
|
71
|
+
'Perspectives 1–8 (EXTERNAL CODEBASE COHERENCE) — both sides REQUIRED:',
|
|
67
72
|
'- Plan side: quote the exact line from the plan, with task ID + section reference (e.g. "Plan A1.4 step 3 line: `store.registerBlock(content, opts)`").',
|
|
68
73
|
'- Source side: file path + line number + actual content (e.g. "`packages/core/src/stores/file-backed-context-block-store.ts:113` defines `register(content, opts)` — no method named `registerBlock`").',
|
|
69
74
|
'- For SYMBOL-EXISTENCE findings: include the nearest match (Levenshtein) the worker found in the source. Example: "did you mean `register`? (Levenshtein distance 5)".',
|
|
70
75
|
'- For SIGNATURE-MATCH findings: quote BOTH the plan\'s call (with parameter names/types) AND the source\'s actual signature.',
|
|
71
|
-
'- A finding without both sides is speculation. Drop it.',
|
|
76
|
+
'- A finding without both sides on perspectives 1–8 is speculation. Drop it.',
|
|
77
|
+
'',
|
|
78
|
+
'Perspective 10 (SPEC-COVERAGE) — both sides REQUIRED:',
|
|
79
|
+
'- Spec side: quote the exact `shall` / `must` / `should` clause (or the acceptance-criterion line) from the registered spec context block.',
|
|
80
|
+
'- Plan side: name the task that does (or does NOT) cover it. For absence findings: "no task in this plan implements <spec clause>". For scope-creep findings: "task X.Y implements <plan-side claim>, which has no corresponding spec requirement".',
|
|
81
|
+
'',
|
|
82
|
+
'Perspectives 9, 11, 12 (INTRA-PLAN STRUCTURE) — plan-side quote sufficient:',
|
|
83
|
+
'- Quote the exact plan line that demonstrates the issue, with task ID + section reference. No codebase or spec evidence is needed; these are intra-document checks.',
|
|
84
|
+
'- For absence findings (e.g. missing Goal/Architecture header, missing Files: block, missing commit step): name the section that SHOULD contain it and confirm it does not.',
|
|
85
|
+
'',
|
|
86
|
+
'Severity binding for all perspectives: critical = task BLOCKED at dispatch; high = ambiguous artifact; medium = recoverable with reordering or one-sentence edit; low = cosmetic.',
|
|
72
87
|
].join('\n');
|
|
73
88
|
export const SCOPE_RULE_PLAN_AUDIT = [
|
|
74
89
|
'Scope:',
|
|
75
|
-
'- The plan markdown (your one filePath input) plus the source files the plan directly references (in "Files: Modify:" / "Test:" / "Create:" lines, or via `import` statements in code blocks).',
|
|
90
|
+
'- The plan markdown (your one filePath input), plus the source files the plan directly references (in "Files: Modify:" / "Test:" / "Create:" lines, or via `import` statements in code blocks), plus the reference SPEC if it was registered as a context block in your cached prefix.',
|
|
76
91
|
'- Use grep / read_file targeted at the symbols and paths the plan names. DO NOT do an enumeration of the entire codebase.',
|
|
77
|
-
'-
|
|
92
|
+
'- For perspective 10 (SPEC-COVERAGE): the spec lives in the registered context block above. Walk its requirement clauses against the plan\'s tasks; do NOT grep the codebase for spec content — that is not the perspective\'s job.',
|
|
93
|
+
'- Out of scope: prose-quality issues in the plan beyond placeholder-language scanning (use auditType=default for general prose quality), suggestions for refactoring the plan\'s recommendations, and any source files the plan does not reference.',
|
|
78
94
|
].join('\n');
|
|
79
95
|
export const ANNOTATOR_AWARENESS_PLAN_AUDIT = [
|
|
80
96
|
'After your output, an annotator validates each finding against this plan-audit-specific rubric:',
|
|
81
|
-
'- Does the finding cite
|
|
82
|
-
'- Is the finding categorized correctly by perspective (1 PATH / 2 SYMBOL / 3 SIGNATURE / 4 IMPORT / 5 TEST HARNESS / 6 STEP SEQUENCE / 7 CROSS-TASK / 8 VERIFY CMD)?',
|
|
97
|
+
'- Does the finding cite the right evidence shape for its perspective group? (1–8: plan-side quote + source-side file:line; 10: spec-side clause quote + plan-side task reference; 9/11/12: plan-side quote alone, no codebase grounding needed.)',
|
|
98
|
+
'- Is the finding categorized correctly by perspective (1 PATH / 2 SYMBOL / 3 SIGNATURE / 4 IMPORT / 5 TEST HARNESS / 6 STEP SEQUENCE / 7 CROSS-TASK / 8 VERIFY CMD / 9 TASK GRANULARITY / 10 SPEC COVERAGE / 11 PLACEHOLDER LANGUAGE / 12 PLAN SKELETON)?',
|
|
83
99
|
'- Is the severity calibrated to actual dispatch impact (CRITICAL only when the task would BLOCK; HIGH for ambiguity that produces wrong artifact; MEDIUM for recoverable; LOW for cosmetic)?',
|
|
84
|
-
'- Does the finding name a specific task ID (e.g. "A1.4") so the merge annotator can group findings by task to compute per-task verdicts?',
|
|
85
|
-
'Self-check before emitting. Findings missing source-side evidence are downgraded to LOW or dropped — but findings backed by file:line citations from a real file are FULLY VALID, do NOT downgrade them as "speculation."',
|
|
100
|
+
'- Does the finding name a specific task ID (e.g. "A1.4") so the merge annotator can group findings by task to compute per-task verdicts? For plan-level findings that do not attach to a single task (e.g. missing top-level header, spec requirement with no covering task), use the task ID "META".',
|
|
101
|
+
'Self-check before emitting. Findings on perspectives 1–8 missing source-side evidence are downgraded to LOW or dropped — but findings backed by file:line citations from a real file are FULLY VALID, do NOT downgrade them as "speculation." Findings on perspectives 9, 11, 12 with only a plan-side quote are FULLY VALID — they are intra-plan checks by design.',
|
|
86
102
|
].join('\n');
|
|
87
103
|
export const PLAN_AUDIT_FAILURE_MODES = [
|
|
88
104
|
'Plan-audit perspectives — applicable to code-execution plans being audited against a real codebase. Each perspective is one verification dimension; emitting zero findings for a perspective means "this dimension passes for this plan." Do not invent findings to hit a quota — if a perspective has nothing to flag, stay silent for that dimension. Apply each perspective end-to-end across every task in the plan. Use read_file / grep / glob / list_files to ground every finding in actual file-and-line evidence; findings without a real source-side reference are not load-bearing and must be dropped.',
|
|
@@ -105,11 +121,17 @@ export const PLAN_AUDIT_FAILURE_MODES = [
|
|
|
105
121
|
'',
|
|
106
122
|
'9. TASK GRANULARITY — each task should be implementable in one focused sub-agent run. Flag tasks that are oversized for single-run execution. Concrete signals (any one or in combination): the task touches more than 3 distinct source files; the task\'s code blocks contain more than ~40 net lines of diff; the task mixes unrelated concerns (e.g. extending a config schema AND adding a new module AND wiring a CLI flag in one task heading); the task lists more than ~6 numbered steps. Severity HIGH when the task clearly exceeds standard-tier capacity (would force escalation to complex tier or thrash through review/rework rounds); MEDIUM when borderline. Suggested fix: split into atomic sub-tasks, one per file or one per concept, each with its own "Files:" block and numbered steps. The audit-fix loop iterates: author re-runs plan-audit, sees tasks downsized, re-audits until clean. This perspective is the upstream complement to perspective 6 (STEP SEQUENCE WITHIN TASK) — perspective 6 catches ordering bugs WITHIN a task; this one catches "task is too big to be one task at all."',
|
|
107
123
|
'',
|
|
124
|
+
'10. SPEC COVERAGE — every load-bearing requirement in the reference SPEC maps to at least one task in this plan, and no task implements a deliverable the spec did not ask for. Requires the spec to be available in your context (registered by the caller as a context block; read it from the cached prefix above). If no spec is in context, emit "No findings for this criterion." — that is the correct outcome when the caller did not provide one. When the spec IS in context, walk each `shall` / `must` / `should` clause (and each named acceptance criterion or architecture component) against the plan\'s task list. For each unmapped requirement: severity CRITICAL when load-bearing (the feature does not work without it), HIGH when supporting (test coverage, observability hook, non-functional requirement that the spec marked as required). For scope-creep (task implements something the spec did not request): severity HIGH if the work is substantive (>1 task or new deliverable), MEDIUM if minor (extra polish that does not affect cost / risk). Implicit mapping (task plausibly covers the requirement but does not say so explicitly) is MEDIUM with the suggested fix: add an explicit "Covers spec requirement: <quote>" line to the task description. Use task ID "META" for findings that point at an uncovered requirement (the task does not exist).',
|
|
125
|
+
'',
|
|
126
|
+
'11. PLACEHOLDER LANGUAGE — scan every task\'s steps and code blocks for prose patterns that the writing-plans skill classifies as "plan failures" because they leave a literal-following worker unable to act. Concrete signals: bare phrases `TBD`, `TODO`, `implement later`, `fill in details`, `Add appropriate error handling`, `add validation`, `handle edge cases`, `Similar to Task N` (without repeating the code), `Write tests for the above` (without showing the test code); steps that describe what to do without showing how when the step changes code (missing code block); verification instructions like `make sure it works` or `run the test` with no concrete command. Severity HIGH on load-bearing steps that cannot be executed without invention (e.g. an implementation step with no code block, a "TBD" in the middle of a task\'s numbered list); MEDIUM on vague verification instructions (worker has to guess but can recover); LOW on cosmetic placeholders in non-load-bearing prose (e.g. a "TODO: link to design doc" in the plan\'s preamble). Evidence is the exact placeholder quote with task ID + step number; no codebase grounding needed.',
|
|
127
|
+
'',
|
|
128
|
+
'12. PLAN SKELETON — the plan must carry the required structural scaffolding so a worker knows what the plan is for and where each task fits. Concrete signals to flag: missing or empty top-level header (`Goal:` / `Architecture:` / `Tech Stack:` lines); missing top-level File Structure section that maps the files-to-touch with their responsibilities before the task list begins; a task that has no `Files:` block (so the worker cannot tell which files to Create / Modify / Test); a task that has no commit step at the end (frequent-commits discipline is a writing-plans hard rule). Severity MEDIUM for missing required-header fields and missing per-task `Files:` blocks (worker can still execute but loses framing or has to derive file scope from code blocks); HIGH when the missing structure forces ambiguous file-scope decisions (e.g. a task whose code blocks reference multiple files but has no `Files:` block to say which is the modify target); LOW for missing commit steps and other discipline gaps. Evidence is plan-side: name the section that should contain the structure and confirm it is absent. Use task ID "META" for plan-level skeleton findings; use the specific task ID for per-task skeleton findings.',
|
|
129
|
+
'',
|
|
108
130
|
'Severity calibration for plan audits:',
|
|
109
|
-
'- critical: plan claim contradicts codebase ground truth in a way that BLOCKS dispatch
|
|
110
|
-
'- high: load-bearing ambiguity that risks wrong implementation. Plan signature is consistent with itself but multiple matching symbols exist in the source and the plan doesn\'t disambiguate. Test harness missing in the form claimed but the worker could synthesize. Step depends on later step in a recoverable but ambiguous way. The task may execute, but produces an ambiguous artifact.',
|
|
111
|
-
'- medium: step ordering issue, cross-task dependency unstated but inferable, verify command vague but recoverable, missing parent dirs for create-targets. Fixable by reordering or adding a sentence; doesn\'t block dispatch.',
|
|
112
|
-
'- low: stylistic, missing metadata, naming preference. Cosmetic.',
|
|
131
|
+
'- critical: plan claim contradicts codebase ground truth in a way that BLOCKS dispatch, OR a load-bearing spec requirement has zero covering tasks. Examples: missing modify-target file (perspective 1), wrong method name (perspective 2), wrong signature/return type (perspective 3), missing module export (perspective 4), out-of-order task dependency (perspective 7), wrong tooling (perspective 8), uncovered load-bearing spec requirement (perspective 10).',
|
|
132
|
+
'- high: load-bearing ambiguity that risks wrong implementation. Plan signature is consistent with itself but multiple matching symbols exist in the source and the plan doesn\'t disambiguate. Test harness missing in the form claimed but the worker could synthesize. Step depends on later step in a recoverable but ambiguous way. Oversized task that must be split (perspective 9). Substantive scope-creep with no spec backing (perspective 10). Placeholder language on a load-bearing step (perspective 11). Missing `Files:` block that forces ambiguous file-scope (perspective 12). The task may execute, but produces an ambiguous artifact.',
|
|
133
|
+
'- medium: step ordering issue, cross-task dependency unstated but inferable, verify command vague but recoverable, missing parent dirs for create-targets, implicit spec mapping (perspective 10 — task plausibly covers a requirement but does not say so), vague verification instructions (perspective 11), missing required header / Files block on a single task (perspective 12). Fixable by reordering or adding a sentence; doesn\'t block dispatch.',
|
|
134
|
+
'- low: stylistic, missing metadata, naming preference, cosmetic placeholder in non-load-bearing prose, missing commit step. Cosmetic.',
|
|
113
135
|
'',
|
|
114
136
|
'Per-task verdict (the merge-annotator computes this from all sub-worker findings):',
|
|
115
137
|
'- EXECUTABLE: zero CRITICAL or HIGH findings against this task across all 8 perspectives.',
|
|
@@ -125,8 +147,9 @@ export const PLAN_AUDIT_FAILURE_MODES = [
|
|
|
125
147
|
'- Suggested fix: concrete edit (e.g. "rename `registerBlock` → `register` in plan A1.4 step 3", or "rename source method to match plan").',
|
|
126
148
|
'',
|
|
127
149
|
'Anti-patterns to avoid:',
|
|
128
|
-
'- Speculation without source-file evidence. If you can\'t open the file and find the line, drop the finding.',
|
|
129
|
-
'- Flagging
|
|
150
|
+
'- Speculation without source-file evidence ON PERSPECTIVES 1–8. If you can\'t open the file and find the line, drop the finding for those perspectives. Perspectives 9, 11, 12 are intra-plan and do not need source evidence — quoting the plan IS the evidence.',
|
|
151
|
+
'- Flagging general prose-quality on the plan. That\'s the default audit\'s job. You flag external coherence (perspectives 1–8), plan-vs-spec coverage (perspective 10), task granularity (perspective 9), the specific placeholder-language patterns in perspective 11, and the specific structural skeleton requirements in perspective 12. Other prose nits (sentence flow, paragraph organization, tone) are out of scope.',
|
|
152
|
+
'- Flagging perspective 10 (SPEC COVERAGE) without a spec in context. If no spec was registered, emit "No findings for this criterion." for perspective 10 — do not invent the spec or grep for it elsewhere.',
|
|
130
153
|
'- Inventing findings to fill quota. Zero findings on a perspective is the correct outcome when the dimension passes.',
|
|
131
154
|
].join('\n');
|
|
132
155
|
/** Parsed criterion array for the parallel-criteria fan-out. Eight
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-audit-criteria.js","sourceRoot":"","sources":["../../../src/tools/audit/plan-audit-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,aAAa,EAAuB,MAAM,sBAAsB,CAAC;AAE1E;;;yCAGyC;AACzC,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,wBAAwB;IACxB,
|
|
1
|
+
{"version":3,"file":"plan-audit-criteria.js","sourceRoot":"","sources":["../../../src/tools/audit/plan-audit-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,aAAa,EAAuB,MAAM,sBAAsB,CAAC;AAE1E;;;yCAGyC;AACzC,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,wBAAwB;IACxB,4nBAA4nB;IAC5nB,EAAE;IACF,yIAAyI;IACzI,qUAAqU;IACrU,oNAAoN;IACpN,8ZAA8Z;IAC9Z,EAAE;IACF,scAAsc;IACtc,EAAE;IACF,yeAAye;IACze,EAAE;IACF,oFAAoF;IACpF,EAAE;IACF,kOAAkO;IAClO,EAAE;IACF,yHAAyH;IACzH,uFAAuF;IACvF,6EAA6E;IAC7E,uDAAuD;IACvD,kFAAkF;IAClF,sEAAsE;IACtE,EAAE;IACF,sFAAsF;IACtF,oGAAoG;IACpG,wGAAwG;IACxG,yEAAyE;IACzE,kFAAkF;IAClF,2FAA2F;IAC3F,6CAA6C;IAC7C,uDAAuD;IACvD,EAAE;IACF,kCAAkC;IAClC,+IAA+I;IAC/I,wLAAwL;IACxL,mJAAmJ;IACnJ,EAAE;IACF,oiBAAoiB;IACpiB,EAAE;IACF,iRAAiR;CAClR,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM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IACpD,sCAAsC;IACtC,mDAAmD;IACnD,6DAA6D;IAC7D,8CAA8C;IAC9C,2IAA2I;IAC3I,EAAE;IACF,yBAAyB;IACzB,mQAAmQ;IACnQ,+ZAA+Z;IAC/Z,8MAA8M;IAC9M,sHAAsH;CACvH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb;;yEAEyE;AACzE,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CAAC,wBAAwB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-audit-criteria.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/spec-audit-criteria.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,eAAO,MAAM,8BAA8B,QAS/B,CAAC;AAEb,eAAO,MAAM,wBAAwB,QAQzB,CAAC;AAEb,eAAO,MAAM,qBAAqB,QAKtB,CAAC;AAEb,eAAO,MAAM,8BAA8B,QAE/B,CAAC;
|
|
1
|
+
{"version":3,"file":"spec-audit-criteria.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/spec-audit-criteria.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,eAAO,MAAM,8BAA8B,QAS/B,CAAC;AAEb,eAAO,MAAM,wBAAwB,QAQzB,CAAC;AAEb,eAAO,MAAM,qBAAqB,QAKtB,CAAC;AAEb,eAAO,MAAM,8BAA8B,QAE/B,CAAC;AAcb,eAAO,MAAM,mBAAmB,EAAE,SAAS,cAAc,EAA4C,CAAC;AAEtG,eAAO,MAAM,oBAAoB,EAAE,cAWlC,CAAC"}
|
|
@@ -20,8 +20,8 @@ export const EVIDENCE_RULE_SPEC_AUDIT = [
|
|
|
20
20
|
].join('\n');
|
|
21
21
|
export const SCOPE_RULE_SPEC_AUDIT = [
|
|
22
22
|
'Scope:',
|
|
23
|
-
'- In scope: requirement testability, scope explicitness, acceptance-criteria coverage, non-functional capture, requirement conflicts, decision trace, hidden assumptions.',
|
|
24
|
-
'- Out of scope: implementation details (those belong in a plan, not a spec), stylistic prose preferences, opinions on whether the spec is "good", lens-style audits (security or performance focus belongs in free-text prompt, not in spec subtype).',
|
|
23
|
+
'- In scope: requirement testability, scope explicitness AND decomposability, acceptance-criteria coverage, non-functional capture, requirement conflicts, decision trace, hidden assumptions, unresolved authoring placeholders, and presence of architectural decomposition (components, data flow, error handling, testing strategy).',
|
|
24
|
+
'- Out of scope: implementation details (those belong in a plan, not a spec — flag scope leak into implementation as a SCOPE-EXPLICITNESS-AND-DECOMPOSABILITY finding, not a general comment), stylistic prose preferences, opinions on whether the spec is "good", lens-style audits (security or performance focus belongs in free-text prompt, not in spec subtype).',
|
|
25
25
|
'- IMPLICIT requirements embedded inside a clause ARE in scope. Example: "shall validate the token" implicitly requires "what counts as valid" — if that is undefined, flag it as REQUIREMENT-TESTABILITY (do not split into two findings).',
|
|
26
26
|
].join('\n');
|
|
27
27
|
export const ANNOTATOR_AWARENESS_SPEC_AUDIT = [
|
|
@@ -29,12 +29,14 @@ export const ANNOTATOR_AWARENESS_SPEC_AUDIT = [
|
|
|
29
29
|
].join('\n');
|
|
30
30
|
const SPEC_AUDIT_FAILURE_MODES = [
|
|
31
31
|
'1. REQUIREMENT-TESTABILITY — Every "shall" / "must" / "should" requirement has a concrete, observable outcome that a test can assert. Vague verbs ("supports", "handles", "is reliable") without a measurable outcome flag as findings.',
|
|
32
|
-
'2. SCOPE-EXPLICITNESS — In-scope and out-of-scope items are explicit.
|
|
32
|
+
'2. SCOPE-EXPLICITNESS-AND-DECOMPOSABILITY — In-scope and out-of-scope items are explicit AND the stated scope is sized for a single implementation plan. Two sub-checks: (a) EXPLICITNESS — implied scope (mentioned-once-then-dropped, or referenced without definition) is a finding; in-scope and out-of-scope lists should appear as a dedicated section, not be inferred from prose. (b) DECOMPOSABILITY — the spec describes ONE buildable feature, not multiple independent subsystems bundled together. Signals that decomposition is needed (severity HIGH): the spec mixes orthogonal subsystems (e.g. chat + file storage + billing); the spec has more than one top-level "Goal" or implies multiple independently releasable units; the architecture section names more than ~5 net-new modules across non-overlapping concerns. Suggested fix on a multi-subsystem spec: split into sub-project specs and brainstorm/plan each independently, citing the brainstorming-skill decomposition guidance.',
|
|
33
33
|
'3. ACCEPTANCE-CRITERIA-COVERAGE — Every requirement maps to at least one acceptance criterion (or the spec calls out it is non-acceptance-testable and says why). Missing mapping is a finding.',
|
|
34
34
|
'4. NON-FUNCTIONAL-CAPTURED — Non-functional constraints (latency, security, observability, accessibility, scale) are stated where load-bearing, not assumed silently. Silent assumption is a finding.',
|
|
35
35
|
'5. REQUIREMENT-CONFLICT — Two requirements that cannot simultaneously hold (e.g. "respond in <50ms" + "validate against the remote registry on every call") are surfaced.',
|
|
36
36
|
'6. DECISION-TRACE — Decisions that affect downstream implementation (algorithm choice, data shape, integration point) are stated with the reasoning, not just the outcome. Outcome-only is a finding.',
|
|
37
37
|
'7. ASSUMPTION-EXPOSURE — Hidden assumptions about caller behaviour, environment, or pre-existing state are made explicit so the executor can verify them.',
|
|
38
|
+
'8. PLACEHOLDER-SCAN — The spec contains no unresolved authoring placeholders that would block planning. Flag occurrences of `TBD`, `TODO`, `[fill in]`, `[to be decided]`, `???`, empty section bodies under a heading (a heading with no content beneath it before the next heading), bulleted lists ending in `…` or "more to come", and tables with empty cells in load-bearing columns. Severity binding: HIGH when the placeholder sits on a load-bearing section (a requirement, an architecture component, an acceptance criterion); MEDIUM elsewhere; LOW on metadata-only sections (author, revision history). Suggested fix: resolve the placeholder before moving to writing-plans, or mark the section explicitly as "out of scope for this iteration" with a forward reference. Evidence is the exact placeholder quote with its section heading.',
|
|
39
|
+
'9. DESIGN-DECOMPOSITION-PRESENT — A spec must give the planner enough architectural information to write tasks. The brainstorming skill mandates that the spec cover architecture, components, data flow, error handling, and testing. Flag the spec when any load-bearing dimension is missing: (a) no component decomposition (the spec states requirements but never names the modules / units / services that will implement them); (b) no data flow description (request shape, response shape, or how data moves between named components is silent); (c) no error-handling treatment for failure modes that the requirements themselves imply (e.g. a "shall validate the token" requirement with no statement of what happens on invalid token); (d) no testing strategy section (silent on unit / integration / contract / manual layer). Severity HIGH when the missing dimension is load-bearing for downstream planning (the planner would have to invent the architecture); MEDIUM when the dimension is partial (named but underspecified). For each finding, name the missing dimension and the section that should contain it. This perspective is the spec-side complement to plan-audit perspective 10 (SPEC-COVERAGE) — together they enforce that the spec gives the planner enough to build, and the plan in turn covers the spec.',
|
|
38
40
|
].join('\n');
|
|
39
41
|
export const SPEC_AUDIT_CRITERIA = parseCriteria(SPEC_AUDIT_FAILURE_MODES);
|
|
40
42
|
export const SPEC_AUDIT_SEMANTICS = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-audit-criteria.js","sourceRoot":"","sources":["../../../src/tools/audit/spec-audit-criteria.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,wBAAwB;IACxB,gUAAgU;IAChU,EAAE;IACF,+DAA+D;IAC/D,sFAAsF;IACtF,8EAA8E;IAC9E,EAAE;IACF,0PAA0P;CAC3P,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,kDAAkD;IAClD,iHAAiH;IACjH,8DAA8D;IAC9D,8GAA8G;IAC9G,0JAA0J;IAC1J,wFAAwF;IACxF,+KAA+K;CAChL,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ;IACR,
|
|
1
|
+
{"version":3,"file":"spec-audit-criteria.js","sourceRoot":"","sources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AAG,EAAE,mFAAmF;KACzF;IACD,kBAAkB,EAAE,KAAK;CAC1B,CAAC"}
|
|
@@ -31,8 +31,8 @@ export function registerAudit(registry) {
|
|
|
31
31
|
*/
|
|
32
32
|
const AUDIT_DONE_CONDITIONS = {
|
|
33
33
|
default: 'Comprehensive audit. Apply the full failure-mode taxonomy through the executability lens (the orientation block above). For prose artifacts (specs, plans, recommendation docs, designs, post-mortems, audits, briefs): emphasize RECOMMENDATION-COHERENCE, INTERNAL CONTRADICTION, ARGUMENT SOUNDNESS, COMPLETENESS AGAINST CONSTRAINTS, FIX ACTIONABILITY, DRIFT, and SCOPE-CREEP — i.e., would a literal-following worker who reads this artifact and follows it without judgment produce the right outcome? Are sections internally consistent? Does each recommendation actually solve its stated problem given the doc\'s own constraints? Sweep style/clarity issues only when they would cause a worker to misinterpret. For source code: logic errors, contract violations, off-by-one bugs, type mismatches, unhandled edge cases. Each finding has severity (critical/high/medium/low), location, and remediation.',
|
|
34
|
-
plan: 'PLAN-VS-CODEBASE EXECUTABILITY AUDIT. The single filePath you receive is a code-execution plan; the source files you verify against live under cwd and you discover them yourself by reading the plan\'s "Files: Modify:" / "Test:" / "Create:" blocks and `import` statements in code blocks. Apply the
|
|
35
|
-
spec: 'REQUIREMENT-PROSE EXECUTABILITY AUDIT. A finding is a place where the spec, executed literally by a downstream worker, would produce the wrong outcome or paralyze the executor. Apply the
|
|
34
|
+
plan: 'PLAN-VS-CODEBASE EXECUTABILITY AUDIT. The single filePath you receive is a code-execution plan; the source files you verify against live under cwd and you discover them yourself by reading the plan\'s "Files: Modify:" / "Test:" / "Create:" blocks and `import` statements in code blocks. The reference SPEC, when provided, lives as a registered context block in your cached prefix. Apply the 12 verification perspectives in three groups — EXTERNAL CODEBASE COHERENCE (1 PATH EXISTENCE, 2 SYMBOL EXISTENCE, 3 SIGNATURE MATCH, 4 IMPORT GRAPH, 5 TEST HARNESS AVAILABILITY, 6 STEP SEQUENCE WITHIN TASK, 7 CROSS-TASK DEPENDENCIES, 8 VERIFICATION COMMAND VALIDITY), INTRA-PLAN STRUCTURE (9 TASK GRANULARITY, 11 PLACEHOLDER LANGUAGE, 12 PLAN SKELETON), and SPEC ALIGNMENT (10 SPEC COVERAGE). For each task, the merge annotator computes a verdict: EXECUTABLE / PARTIAL / BLOCKED. Use read_file / grep / glob / list_files to ground perspectives 1–8 in real file:line evidence; perspectives 9, 11, 12 are intra-plan and need only a plan-side quote; perspective 10 requires a spec-side clause quote plus a plan-side task reference. If no spec is in context, emit "No findings for this criterion." for perspective 10 ONLY. Zero findings on a perspective is the EXPECTED outcome on a clean plan; do not invent findings to fill quota.',
|
|
35
|
+
spec: 'REQUIREMENT-PROSE EXECUTABILITY AUDIT. A finding is a place where the spec, executed literally by a downstream worker (the planner that will run writing-plans on it), would produce the wrong outcome or paralyze the executor. Apply the 9 criteria (REQUIREMENT-TESTABILITY, SCOPE-EXPLICITNESS-AND-DECOMPOSABILITY, ACCEPTANCE-CRITERIA-COVERAGE, NON-FUNCTIONAL-CAPTURED, REQUIREMENT-CONFLICT, DECISION-TRACE, ASSUMPTION-EXPOSURE, PLACEHOLDER-SCAN, DESIGN-DECOMPOSITION-PRESENT). Quote the exact `shall` / `must` / `should` clause (or the placeholder / missing-design-dimension reference) for each finding. A clean spec legitimately produces zero findings — do not invent issues to fill quota.',
|
|
36
36
|
skill: 'SKILL-FILE READER-EFFECTIVENESS AUDIT. A finding is a place where the skill, as written, would cause a competent reader to dispatch the wrong call, miss a path of use, or fall for a foreseeable anti-pattern. Apply the 7 criteria (WHEN-TO-USE-SPECIFICITY, INPUT-SHAPE-COMPLETENESS, OUTPUT-SHAPE-CONTRACT, ANTI-PATTERN-COVERAGE, RECIPE-VS-SKILL-SCOPE, VERSION-FRONTMATTER, LINK-INTEGRITY). Quote the failing section + line for each finding.',
|
|
37
37
|
};
|
|
38
38
|
const DELTA_AUDIT_SUFFIX = ' Perform a full audit (do not reduce thoroughness). Verify each prior finding as fixed or unfixed. Omit fixed prior findings from the main report. Include unfixed prior findings and new findings. End with a summary of which prior findings were resolved.';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/audit/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAoB,MAAM,qDAAqD,CAAC;AAC1G,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAGpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,UAAU,aAAa,CAAC,QAA6B;IACzD,QAAQ,CAAC,QAAQ,CAAC;QAChB,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,MAAM;QAClB,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,WAAW;QACnB,YAAY,EAAE,WAAW;QACzB,gBAAgB,EAAE,SAAS;QAC3B,oBAAoB,EAAE,KAAK;QAC3B,iBAAiB,EAAE,eAAe;KACnC,CAAC,CAAC;AACL,CAAC;AAiBD;;;;;;;;;;GAUG;AACH,MAAM,qBAAqB,GAA2B;IACpD,OAAO,EACL,+3BAA+3B;IACj4B,IAAI,EACF,
|
|
1
|
+
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/audit/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAoB,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AAE,oBAAoB;KAChC;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhixuan92/multi-model-agent-core",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Core library for multi-model-agent: provider runners (Claude, Codex, OpenAI-compatible), routing logic, config schema, and tool/sandbox primitives.",
|
|
@@ -347,6 +347,7 @@
|
|
|
347
347
|
"dependencies": {
|
|
348
348
|
"@anthropic-ai/claude-agent-sdk": "^0.2.112",
|
|
349
349
|
"@mozilla/readability": "^0.6.0",
|
|
350
|
+
"cross-spawn": "^7.0.6",
|
|
350
351
|
"fast-xml-parser": "^5.7.2",
|
|
351
352
|
"jsdom": "^29.1.1",
|
|
352
353
|
"undici": "^8.2.0",
|
|
@@ -356,6 +357,7 @@
|
|
|
356
357
|
"@anthropic-ai/sdk": "0.81.0"
|
|
357
358
|
},
|
|
358
359
|
"devDependencies": {
|
|
360
|
+
"@types/cross-spawn": "^6.0.6",
|
|
359
361
|
"@types/jsdom": "^28.0.1"
|
|
360
362
|
}
|
|
361
363
|
}
|