From 008baef11ec842e4dfc4a3d3c7a71d1aef1f5a0d Mon Sep 17 00:00:00 2001 From: Phelan164 Date: Tue, 11 Aug 2026 11:02:28 +0700 Subject: [PATCH 01/78] feat: add orchestration efficiency evidence scenario --- docs/architecture/evaluator-rag-prototype.md | 8 +++ .../candidate-playbook.md | 58 ++++++++++++++++++ .../report.json | 40 +++++++++++++ .../scenario.json | 59 +++++++++++++++++++ .../trace.json | 45 ++++++++++++++ .../verifier-result.json | 36 +++++++++++ tests/docs/evaluator-rag-prototype.test.js | 47 +++++++++++++++ 7 files changed, 293 insertions(+) create mode 100644 examples/evaluator-rag-prototype/orchestration-efficiency-evidence/candidate-playbook.md create mode 100644 examples/evaluator-rag-prototype/orchestration-efficiency-evidence/report.json create mode 100644 examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json create mode 100644 examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json create mode 100644 examples/evaluator-rag-prototype/orchestration-efficiency-evidence/verifier-result.json diff --git a/docs/architecture/evaluator-rag-prototype.md b/docs/architecture/evaluator-rag-prototype.md index cb442ae0f..988e011aa 100644 --- a/docs/architecture/evaluator-rag-prototype.md +++ b/docs/architecture/evaluator-rag-prototype.md @@ -23,6 +23,10 @@ working examples, reference-set gaps, and validation commands before a skill amendment can be promoted. A deep-analyzer evidence scenario requires analyzer corpus cases, expected-output comparisons, and risk-taxonomy proof before repository or commit-analysis behavior can change. +An orchestration-efficiency evidence scenario requires matched single-agent +controls, aggregate controller and worker cost, accepted quality, coordination +costs, and sequential paired replications before parallelism is called faster +or cheaper. ## Reference Pressure @@ -122,6 +126,10 @@ Current corpus: - `deep-analyzer-evidence`: requires maintained analyzer corpus cases, expected-output comparisons, representative repository/commit histories, and regression commands before deep-analysis behavior can be promoted. +- `orchestration-efficiency-evidence`: requires dependency and ownership plans, + matched single-agent controls, common acceptance gates, aggregate worker + costs, retained failures and coordination overhead, and repeated sequential + pairs before an orchestration-efficiency recommendation can be promoted. ## ECC Tools Mapping diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/candidate-playbook.md b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/candidate-playbook.md new file mode 100644 index 000000000..e02ce1cb0 --- /dev/null +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/candidate-playbook.md @@ -0,0 +1,58 @@ +# Orchestration Efficiency Evidence Playbook + +Candidate id: `controlled-paired-orchestration-evaluation` + +Use this playbook before recommending multiple agents for a task class or +claiming an orchestrated workflow is faster, cheaper, or more reliable than one +agent. + +## Accepted Path + +1. Define the task, acceptance evaluator, and observable evidence requirements. +2. Draw the dependency graph and name exclusive write ownership. If workers + need the same file or an unsettled interface, keep that work sequential. +3. Freeze the controlled fields for both variants: + - starting revision and task text; + - model and reasoning effort; + - permissions and tools; + - time limit and machine-load policy; + - acceptance evaluator and evidence format. +4. Run one `single_agent` candidate and one `orchestrated` candidate + sequentially. Alternate run order across later pairs. +5. Apply the same evaluator to every attempt. Keep failures in the dataset. +6. Record per candidate: + - acceptance and evidence completeness; + - elapsed time; + - total tokens or cost across controller, every worker, and retries; + - worker count and ownership; + - conflicts, integration rework, retries, and human corrections. +7. Write `unavailable` for telemetry the harness does not expose. Never estimate + missing totals. +8. Repeat at least three fresh pairs before recommending a task-class boundary. + Report raw receipts before interpretation. + +## Rejected Path + +Do not infer efficiency because workers ran in parallel, the controller context +looked smaller, or one orchestrated candidate finished successfully. + +Do not compare candidates with different prompts, revisions, models, tools, +permissions, time limits, evaluators, or machine load. + +Do not report controller-only tokens, exclude failed attempts, or hide merge +conflicts and integration work outside the result. + +Do not publish a general claim from one pair, overlapping variants, fixed run +order, or unavailable aggregate telemetry. + +## Minimum Validation + +- `node tests/lib/orchestration-session.test.js` +- Task-specific acceptance evaluator for every candidate +- Raw run receipts containing all controlled fields and coordination costs +- `git diff --check` +- At least three sequential pairs with alternated order before a general claim + +Record the evidence source and attribution when an external experiment informs +the scenario. Keep publication, agent launch, candidate edits, and repository +mutation outside this read-only evaluator pass. diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/report.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/report.json new file mode 100644 index 000000000..ad1d4d8e1 --- /dev/null +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/report.json @@ -0,0 +1,40 @@ +{ + "schema_version": "ecc.evaluator-rag.report.v1", + "scenario_id": "orchestration-efficiency-evidence", + "run_id": "2026-08-11-orchestration-efficiency-prototype", + "result": "prototype_passed", + "read_only": true, + "scores": { + "control_matching": 0.96, + "acceptance_first": 1, + "aggregate_cost_coverage": 0.94, + "coordination_cost_coverage": 0.93, + "claim_safety": 1 + }, + "findings": [ + { + "id": "quality-before-efficiency", + "severity": "warning", + "summary": "Elapsed time or token totals are not decision-useful when candidates fail different acceptance gates or evidence requirements." + }, + { + "id": "aggregate-worker-cost-required", + "severity": "warning", + "summary": "Controller-only telemetry understates orchestration cost; totals must include every worker and retry or remain explicitly unavailable." + }, + { + "id": "coordination-cost-visible", + "severity": "info", + "summary": "Conflicts, integration rework, retries, and human corrections are part of the result rather than incidental notes." + }, + { + "id": "replication-before-recommendation", + "severity": "warning", + "summary": "One pair, overlapping variants, or fixed run order can qualify a harness but cannot establish a general orchestration efficiency boundary." + } + ], + "recommended_next_action": { + "candidate_id": "controlled-paired-orchestration-evaluation", + "action": "Use the promoted playbook to design sequential paired runs, preserve every attempt, and recommend orchestration only for task classes where accepted quality and measured coordination cost justify it." + } +} diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json new file mode 100644 index 000000000..d4c36f6bc --- /dev/null +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json @@ -0,0 +1,59 @@ +{ + "schema_version": "ecc.evaluator-rag.scenario.v1", + "scenario_id": "orchestration-efficiency-evidence", + "title": "Require controlled evidence before claiming orchestration efficiency", + "mode": "read_only_prototype", + "objective": "Given a proposed multi-agent workflow or completed run, retrieve the dependency graph, ownership boundaries, acceptance evidence, matched single-agent baseline, and aggregate cost telemetry before promoting an orchestration recommendation.", + "sources": [ + { + "kind": "repo_skill", + "path": "skills/parallel-execution-optimizer/SKILL.md", + "purpose": "Defines dependency mapping, isolated write surfaces, and evidence-based integration for parallel work" + }, + { + "kind": "repo_skill", + "path": "skills/context-budget/SKILL.md", + "purpose": "Defines context and token overhead inventory instead of assuming more agents reduce total cost" + }, + { + "kind": "repo_source", + "path": "scripts/lib/orchestration-session.js", + "purpose": "Provides ECC orchestration session state and worker lifecycle evidence" + }, + { + "kind": "repo_test", + "command": "node tests/lib/orchestration-session.test.js", + "purpose": "Regression gate for orchestration session behavior" + }, + { + "kind": "external_experiment", + "url": "https://github.com/Phelan164/codex-howto/blob/527296fa7d9ba1828d639ec000e0543c42ee2739/examples/measurements/incident-orchestration-smoke-2026-08-11.md", + "purpose": "Contributed smoke evidence showing why overlapping runs and unavailable aggregate tokens cannot support an efficiency claim" + } + ], + "retrieval_questions": [ + "Which task dependencies and exclusive write surfaces justify multiple workers?", + "Were the single-agent and orchestrated candidates run from the same task, revision, model, reasoning effort, permissions, tools, time limit, and evaluator?", + "Did every attempted candidate meet the same acceptance and evidence-quality gates?", + "What were total tokens or cost across the controller and all workers, elapsed time, retries, conflicts, integration rework, and human corrections?", + "Were failures and unavailable telemetry retained rather than estimated or excluded?", + "How many sequential paired runs and alternated run orders support the recommendation?" + ], + "forbidden_actions": [ + "claiming that parallel agents are faster or cheaper without a matched accepted single-agent baseline", + "comparing candidates with different tasks, revisions, models, reasoning effort, permissions, tools, time limits, or evaluators", + "reporting controller-only tokens or cost while omitting worker totals", + "excluding failed candidates, edit conflicts, integration rework, retries, or human corrections", + "estimating unavailable telemetry or turning one overlapping smoke run into a general efficiency claim", + "launching workers, editing candidate repositories, publishing benchmarks, or posting announcements from this read-only evaluator run" + ], + "acceptance_gates": [ + "dependency graph and exclusive ownership boundaries are recorded", + "single-agent and orchestrated controls are matched", + "all attempted candidates use the same acceptance evaluator", + "aggregate controller and worker cost is recorded or explicitly unavailable", + "elapsed time, retries, conflicts, integration rework, and human corrections are retained", + "failed candidates remain in the comparison", + "at least one one-run parallelism claim is rejected" + ] +} diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json new file mode 100644 index 000000000..115d512d8 --- /dev/null +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json @@ -0,0 +1,45 @@ +{ + "schema_version": "ecc.evaluator-rag.trace.v1", + "scenario_id": "orchestration-efficiency-evidence", + "run_id": "2026-08-11-orchestration-efficiency-prototype", + "read_only": true, + "events": [ + { + "phase": "observation", + "summary": "A workflow proposes multiple agents or reports an orchestrated result. The evaluator records the task boundary and claims without launching workers or changing candidate repositories.", + "evidence": [ + "skills/parallel-execution-optimizer/SKILL.md", + "scripts/lib/orchestration-session.js" + ] + }, + { + "phase": "retrieval", + "summary": "Retrieved dependency and ownership plans, matched run controls, acceptance results, aggregate token or cost telemetry, elapsed time, failures, conflicts, integration rework, retries, and human corrections.", + "evidence": [ + "skills/context-budget/SKILL.md", + "node tests/lib/orchestration-session.test.js", + "contributed orchestration smoke evidence pinned to commit 527296f" + ] + }, + { + "phase": "proposal", + "summary": "Generated two candidates: a controlled paired evaluation that preserves all attempts and an intuition-only claim that parallelism implies efficiency.", + "candidate_ids": [ + "controlled-paired-orchestration-evaluation", + "parallelism-implies-efficiency" + ] + }, + { + "phase": "verification", + "summary": "Accepted the controlled paired evaluation because it matches controls, evaluates quality first, aggregates worker cost, and keeps negative results. Rejected the intuition-only claim because it relies on one overlapping run with unavailable token totals.", + "evidence": [ + "examples/evaluator-rag-prototype/orchestration-efficiency-evidence/verifier-result.json" + ] + }, + { + "phase": "promotion", + "summary": "Promoted only the read-only orchestration evidence playbook. It does not launch agents, edit candidates, publish results, or claim that orchestration is efficient.", + "promoted_candidate_id": "controlled-paired-orchestration-evaluation" + } + ] +} diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/verifier-result.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/verifier-result.json new file mode 100644 index 000000000..07166dd22 --- /dev/null +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/verifier-result.json @@ -0,0 +1,36 @@ +{ + "schema_version": "ecc.evaluator-rag.verifier.v1", + "scenario_id": "orchestration-efficiency-evidence", + "run_id": "2026-08-11-orchestration-efficiency-prototype", + "read_only": true, + "candidates": [ + { + "candidate_id": "controlled-paired-orchestration-evaluation", + "decision": "accepted", + "score": 0.95, + "reasons": [ + "records a dependency graph and exclusive write ownership before delegation", + "matches task, revision, model, reasoning effort, permissions, tools, time limit, and evaluator", + "requires acceptance and evidence quality before comparing elapsed time or cost", + "aggregates controller, worker, and retry tokens or cost and marks unavailable telemetry honestly", + "retains failed candidates, conflicts, integration rework, retries, and human corrections", + "requires repeated sequential pairs and alternated run order before a general recommendation" + ], + "rollback": "Withdraw the recommendation and retain the raw run receipts if later replications reverse the result; this read-only playbook launches no workers and changes no candidate repository." + }, + { + "candidate_id": "parallelism-implies-efficiency", + "decision": "rejected", + "score": 0.12, + "reasons": [ + "treats more agents as inherently faster and cheaper", + "has no matched accepted single-agent baseline", + "reports no aggregate worker token or cost total", + "ignores overlap, machine contention, conflicts, integration rework, and failed attempts", + "turns one smoke run with unavailable telemetry into a general efficiency claim" + ], + "rollback": "Do not publish the claim; restart from matched controls, acceptance evidence, complete run receipts, and sequential paired replications." + } + ], + "promoted_candidate_id": "controlled-paired-orchestration-evaluation" +} diff --git a/tests/docs/evaluator-rag-prototype.test.js b/tests/docs/evaluator-rag-prototype.test.js index 075ec7dce..5249ca046 100644 --- a/tests/docs/evaluator-rag-prototype.test.js +++ b/tests/docs/evaluator-rag-prototype.test.js @@ -409,6 +409,53 @@ test('deep analyzer evidence scenario rejects no-corpus analyzer changes', () => assert.ok(playbook.includes('Deep Analyzer Evidence')); }); +test('orchestration efficiency scenario rejects intuition-only parallelism claims', () => { + const scenario = readFixtureJson('orchestration-efficiency-evidence/scenario.json'); + const trace = readFixtureJson('orchestration-efficiency-evidence/trace.json'); + const report = readFixtureJson('orchestration-efficiency-evidence/report.json'); + const verifier = readFixtureJson('orchestration-efficiency-evidence/verifier-result.json'); + const playbook = read('examples/evaluator-rag-prototype/orchestration-efficiency-evidence/candidate-playbook.md'); + + assert.strictEqual(scenario.scenario_id, 'orchestration-efficiency-evidence'); + assert.strictEqual(trace.scenario_id, scenario.scenario_id); + assert.strictEqual(report.scenario_id, scenario.scenario_id); + assert.strictEqual(verifier.scenario_id, scenario.scenario_id); + assert.strictEqual(trace.read_only, true); + assert.strictEqual(report.read_only, true); + assert.strictEqual(verifier.read_only, true); + + for (const blocked of [ + 'claiming that parallel agents are faster or cheaper without a matched accepted single-agent baseline', + 'reporting controller-only tokens or cost while omitting worker totals', + 'excluding failed candidates, edit conflicts, integration rework, retries, or human corrections', + 'estimating unavailable telemetry or turning one overlapping smoke run into a general efficiency claim' + ]) { + assert.ok(scenario.forbidden_actions.includes(blocked), `Missing orchestration forbidden action: ${blocked}`); + } + + for (const required of [ + 'dependency graph and exclusive ownership boundaries are recorded', + 'single-agent and orchestrated controls are matched', + 'all attempted candidates use the same acceptance evaluator', + 'aggregate controller and worker cost is recorded or explicitly unavailable', + 'failed candidates remain in the comparison' + ]) { + assert.ok(scenario.acceptance_gates.includes(required), `Missing orchestration acceptance gate: ${required}`); + } + + const accepted = verifier.candidates.find(candidate => candidate.candidate_id === 'controlled-paired-orchestration-evaluation'); + const rejected = verifier.candidates.find(candidate => candidate.candidate_id === 'parallelism-implies-efficiency'); + + assert.ok(accepted, 'Missing accepted controlled orchestration candidate'); + assert.ok(rejected, 'Missing rejected intuition-only orchestration candidate'); + assert.strictEqual(accepted.decision, 'accepted'); + assert.strictEqual(rejected.decision, 'rejected'); + assert.strictEqual(verifier.promoted_candidate_id, accepted.candidate_id); + assert.ok(rejected.reasons.join('\n').includes('no matched accepted single-agent baseline')); + assert.ok(playbook.includes('total tokens or cost across controller, every worker, and retries')); + assert.ok(playbook.includes('At least three sequential pairs with alternated order')); +}); + if (failed > 0) { console.log(`\nFailed: ${failed}`); process.exit(1); From c2abbc8a164adefb1a2ad1b5765eec8c5403cb33 Mon Sep 17 00:00:00 2001 From: Phelan164 Date: Tue, 11 Aug 2026 11:07:25 +0700 Subject: [PATCH 02/78] test: enforce orchestration replication threshold --- docs/architecture/evaluator-rag-prototype.md | 8 ++++---- .../orchestration-efficiency-evidence/scenario.json | 1 + tests/docs/evaluator-rag-prototype.test.js | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/architecture/evaluator-rag-prototype.md b/docs/architecture/evaluator-rag-prototype.md index 988e011aa..00f7984f3 100644 --- a/docs/architecture/evaluator-rag-prototype.md +++ b/docs/architecture/evaluator-rag-prototype.md @@ -23,10 +23,10 @@ working examples, reference-set gaps, and validation commands before a skill amendment can be promoted. A deep-analyzer evidence scenario requires analyzer corpus cases, expected-output comparisons, and risk-taxonomy proof before repository or commit-analysis behavior can change. -An orchestration-efficiency evidence scenario requires matched single-agent -controls, aggregate controller and worker cost, accepted quality, coordination -costs, and sequential paired replications before parallelism is called faster -or cheaper. +In an orchestration-efficiency evidence scenario, single-agent controls must be +matched, and aggregate controller and worker cost, accepted quality, +coordination costs, and sequential paired replications are required before +parallelism is called faster or cheaper. ## Reference Pressure diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json index d4c36f6bc..5d7abb535 100644 --- a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json @@ -54,6 +54,7 @@ "aggregate controller and worker cost is recorded or explicitly unavailable", "elapsed time, retries, conflicts, integration rework, and human corrections are retained", "failed candidates remain in the comparison", + "at least three fresh sequential pairs with alternated order are completed before promotion", "at least one one-run parallelism claim is rejected" ] } diff --git a/tests/docs/evaluator-rag-prototype.test.js b/tests/docs/evaluator-rag-prototype.test.js index 5249ca046..cf9d028ad 100644 --- a/tests/docs/evaluator-rag-prototype.test.js +++ b/tests/docs/evaluator-rag-prototype.test.js @@ -438,7 +438,8 @@ test('orchestration efficiency scenario rejects intuition-only parallelism claim 'single-agent and orchestrated controls are matched', 'all attempted candidates use the same acceptance evaluator', 'aggregate controller and worker cost is recorded or explicitly unavailable', - 'failed candidates remain in the comparison' + 'failed candidates remain in the comparison', + 'at least three fresh sequential pairs with alternated order are completed before promotion' ]) { assert.ok(scenario.acceptance_gates.includes(required), `Missing orchestration acceptance gate: ${required}`); } From 6daf7593ee45aea911b5e19feced58b07f3294df Mon Sep 17 00:00:00 2001 From: Phelan164 Date: Tue, 11 Aug 2026 11:20:17 +0700 Subject: [PATCH 03/78] fix: retain immutable orchestration evidence URL --- .../orchestration-efficiency-evidence/trace.json | 2 +- tests/docs/evaluator-rag-prototype.test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json index 115d512d8..00c2940d2 100644 --- a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json @@ -18,7 +18,7 @@ "evidence": [ "skills/context-budget/SKILL.md", "node tests/lib/orchestration-session.test.js", - "contributed orchestration smoke evidence pinned to commit 527296f" + "https://github.com/Phelan164/codex-howto/blob/527296fa7d9ba1828d639ec000e0543c42ee2739/examples/measurements/incident-orchestration-smoke-2026-08-11.md" ] }, { diff --git a/tests/docs/evaluator-rag-prototype.test.js b/tests/docs/evaluator-rag-prototype.test.js index cf9d028ad..9aafeeca1 100644 --- a/tests/docs/evaluator-rag-prototype.test.js +++ b/tests/docs/evaluator-rag-prototype.test.js @@ -453,6 +453,7 @@ test('orchestration efficiency scenario rejects intuition-only parallelism claim assert.strictEqual(rejected.decision, 'rejected'); assert.strictEqual(verifier.promoted_candidate_id, accepted.candidate_id); assert.ok(rejected.reasons.join('\n').includes('no matched accepted single-agent baseline')); + assert.ok(JSON.stringify(trace).includes(scenario.sources.find(source => source.kind === 'external_experiment').url)); assert.ok(playbook.includes('total tokens or cost across controller, every worker, and retries')); assert.ok(playbook.includes('At least three sequential pairs with alternated order')); }); From 926c596b06aae4714b4ba73a70873b4cdf2b68d3 Mon Sep 17 00:00:00 2001 From: Phelan164 Date: Tue, 11 Aug 2026 11:24:30 +0700 Subject: [PATCH 04/78] test: bind evidence URL to retrieval trace --- tests/docs/evaluator-rag-prototype.test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/docs/evaluator-rag-prototype.test.js b/tests/docs/evaluator-rag-prototype.test.js index 9aafeeca1..3450a4840 100644 --- a/tests/docs/evaluator-rag-prototype.test.js +++ b/tests/docs/evaluator-rag-prototype.test.js @@ -453,7 +453,12 @@ test('orchestration efficiency scenario rejects intuition-only parallelism claim assert.strictEqual(rejected.decision, 'rejected'); assert.strictEqual(verifier.promoted_candidate_id, accepted.candidate_id); assert.ok(rejected.reasons.join('\n').includes('no matched accepted single-agent baseline')); - assert.ok(JSON.stringify(trace).includes(scenario.sources.find(source => source.kind === 'external_experiment').url)); + const externalExperiment = scenario.sources.find(source => source.kind === 'external_experiment'); + const retrieval = trace.events.find(event => event.phase === 'retrieval'); + + assert.ok(externalExperiment, 'Missing external orchestration experiment source'); + assert.ok(retrieval, 'Missing orchestration retrieval trace event'); + assert.ok(retrieval.evidence.includes(externalExperiment.url)); assert.ok(playbook.includes('total tokens or cost across controller, every worker, and retries')); assert.ok(playbook.includes('At least three sequential pairs with alternated order')); }); From eaf23b3fdc3b701912aea4d9eaaab954946b7751 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Fri, 21 Aug 2026 10:17:52 +0700 Subject: [PATCH 05/78] fix(gateguard): look past sudo/doas/env when classifying destructive commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every token-based detector keys on tokens[0], so a privilege or environment wrapper hid the command being run. Measured against main with a primed session, through the published hook runner: rm -rf /important/data DENY-destructive sudo rm -rf /important/data allowed sudo -u root rm -rf /data allowed doas rm -rf /data allowed env rm -rf /data allowed command rm -rf /data allowed nohup rm -rf /data allowed sudo git reset --hard allowed sudo git clean -fd allowed sudo git push --force allowed sudo find . -exec rm {} ; allowed echo a && sudo rm -rf /data allowed The gate therefore missed exactly the spellings it matters most for: the privileged ones. `sudo truncate table t` was already denied, because the SQL arm is a text match and never looked at a command word at all. stripCommandWrappers() removes leading wrapper commands, their flags, and VAR=value assignment prefixes before the detectors see the tokens. It is applied in the per-segment loop (rm, git) and in isDestructiveFindExec. Two bounds keep it from over-reaching: - flags are skipped only after a wrapper has been seen, so it can never walk into an unwrapped command's own arguments; - the flags that consume a following token (-u/-g/-p/...) are listed, so `sudo -u root rm` resolves to rm rather than to root. Ordinary privileged work is unaffected — verified allowed: sudo apt-get update, sudo systemctl restart nginx, sudo ls -la /etc, command ls, and env NODE_ENV=production npm run build. Tests: 13 fail on main, 162 pass with this change. The 5 must-allow cases pass either way by design; they are the over-blocking guard. --- scripts/hooks/gateguard-fact-force.js | 88 +++++++++++++++++++++++- tests/hooks/gateguard-fact-force.test.js | 78 +++++++++++++++++++++ 2 files changed, 163 insertions(+), 3 deletions(-) diff --git a/scripts/hooks/gateguard-fact-force.js b/scripts/hooks/gateguard-fact-force.js index 3f7f9ed80..5d21d7157 100644 --- a/scripts/hooks/gateguard-fact-force.js +++ b/scripts/hooks/gateguard-fact-force.js @@ -375,6 +375,86 @@ function commandBasename(token) { .toLowerCase(); } +/** + * Command words that run ANOTHER command: the destructive check has to look + * past them, or the most dangerous spellings are the ones that slip through. + * Every token-based detector keys on `tokens[0]`, so `sudo rm -rf /` reads as + * an invocation of `sudo` and is allowed while the bare `rm -rf /` is denied. + */ +const COMMAND_WRAPPERS = new Set([ + 'sudo', + 'doas', + 'env', + 'command', + 'nohup', + 'setsid', + 'stdbuf', + 'nice', + 'ionice', +]); + +/** + * Wrapper flags that consume the FOLLOWING token as their value, so the value + * is not mistaken for the wrapped command word (`sudo -u root rm -rf /`). + * Long `--flag=value` forms need no entry: they are a single token. + */ +const WRAPPER_FLAGS_WITH_VALUE = new Set([ + '-u', + '-g', + '-p', + '-C', + '-h', + '-r', + '-t', + '-U', + '--user', + '--group', + '--prompt', + '--host', + '--role', + '--type', + '--chdir', +]); + +/** + * Return `tokens` with any leading wrapper commands, their flags, and + * `VAR=value` assignment prefixes removed, so the caller sees the command that + * actually runs. + * + * Flags are only skipped once a wrapper has been seen, so this can never walk + * into an unwrapped command's own arguments. Returns the input array when + * there is nothing to strip. + * + * @param {string[]} tokens + * @returns {string[]} + */ +function stripCommandWrappers(tokens) { + if (!Array.isArray(tokens) || tokens.length === 0) return tokens; + let index = 0; + let sawWrapper = false; + while (index < tokens.length) { + const token = tokens[index]; + if (COMMAND_WRAPPERS.has(commandBasename(token))) { + sawWrapper = true; + index += 1; + continue; + } + // `FOO=bar rm -rf /` and `env FOO=bar rm -rf /` both put assignments before + // the command word. + if (/^[A-Za-z_][A-Za-z0-9_]*=/.test(token)) { + index += 1; + continue; + } + if (sawWrapper && token.startsWith('-')) { + if (WRAPPER_FLAGS_WITH_VALUE.has(token)) index += 1; + index += 1; + continue; + } + break; + } + return index === 0 ? tokens : tokens.slice(index); +} + /** * Detect `rm` invocations that recursively force-delete files. Handles * combined (`-rf`, `-fr`, `-Rf`) and split (`-r -f`) flag forms. @@ -613,12 +693,12 @@ function isDestructiveFindExec(command) { } // Tokenize the whole command line - const tokens = tokenize(trimmed); + const tokens = stripCommandWrappers(tokenize(trimmed)); if (!tokens || tokens.length === 0) { return false; } - // Must start with `find` + // Must start with `find` — after any wrapper prefix (`sudo find . -exec rm`). if (commandBasename(tokens[0]) !== 'find') { return false; } @@ -702,7 +782,9 @@ function isDestructiveBash(command) { const stripped = stripQuotedStrings(segment); if (DESTRUCTIVE_SQL_DD.test(stripped)) return true; if (extra && extra.test(stripped)) return true; - const tokens = tokenize(segment); + // Look past sudo/doas/env/... so a privileged spelling is not the one that + // gets through (the gate matters MORE for those, not less). + const tokens = stripCommandWrappers(tokenize(segment)); if (isDestructiveRm(tokens)) return true; if (isDestructiveGit(tokens)) return true; } diff --git a/tests/hooks/gateguard-fact-force.test.js b/tests/hooks/gateguard-fact-force.test.js index 8912eb994..46244a852 100644 --- a/tests/hooks/gateguard-fact-force.test.js +++ b/tests/hooks/gateguard-fact-force.test.js @@ -253,6 +253,84 @@ function runTests() { passed++; else failed++; + // --- Test 4d: wrapper-prefixed destructive commands --- + /** + * Every token-based detector keys on `tokens[0]`, so `sudo rm -rf /` read as + * an invocation of `sudo` and was ALLOWED while the bare `rm -rf /` was + * denied — the gate missed exactly the privileged spellings it matters most + * for. Same for doas/env/command/nohup, `VAR=value` prefixes, sudo's own + * flags, and a wrapper appearing after a compound separator. + */ + for (const command of [ + 'sudo rm -rf /important/data', + 'sudo -u root rm -rf /important/data', + 'sudo --user=root rm -rf /important/data', + 'doas rm -rf /important/data', + 'env rm -rf /important/data', + 'FOO=bar rm -rf /important/data', + 'command rm -rf /important/data', + 'nohup rm -rf /important/data', + 'sudo git reset --hard', + 'sudo git clean -fd', + 'sudo git push --force', + 'sudo find . -exec rm {} ;', + 'echo hello && sudo rm -rf /important/data' + ]) { + clearState(); + if ( + test(`denies a wrapper-prefixed destructive command: ${command}`, () => { + // Prime the session so the separate first-command routine gate cannot + // be mistaken for a destructive denial. + runBashHook({ tool_name: 'Bash', tool_input: { command: 'printf ready' } }); + const result = runBashHook({ tool_name: 'Bash', tool_input: { command } }); + assert.strictEqual(result.code, 0, `hook should exit 0 for ${command}`); + const output = parseOutput(result.stdout); + assert.ok(output, `hook should produce JSON output for ${command}`); + assert.ok(output.hookSpecificOutput, `${command} should carry a permission decision`); + assert.strictEqual( + output.hookSpecificOutput.permissionDecision, + 'deny', + `${command} must be gated as destructive` + ); + assert.ok(output.hookSpecificOutput.permissionDecisionReason.includes('Destructive')); + }) + ) + passed++; + else failed++; + } + + // --- Test 4e: looking past wrappers must not gate ordinary privileged work --- + for (const command of [ + 'sudo apt-get update', + 'sudo systemctl restart nginx', + 'sudo ls -la /etc', + 'env NODE_ENV=production npm run build', + 'command ls' + ]) { + clearState(); + if ( + test(`does not gate an ordinary wrapped command: ${command}`, () => { + runBashHook({ tool_name: 'Bash', tool_input: { command: 'printf ready' } }); + const result = runBashHook({ tool_name: 'Bash', tool_input: { command } }); + assert.strictEqual(result.code, 0, `hook should exit 0 for ${command}`); + const output = parseOutput(result.stdout); + assert.ok(output, `hook should produce JSON output for ${command}`); + const decision = output.hookSpecificOutput; + if (decision) { + const reason = decision.permissionDecisionReason || ''; + assert.ok( + decision.permissionDecision !== 'deny' || !reason.includes('Destructive'), + `${command} must not be gated as destructive` + ); + } else { + assert.strictEqual(output.tool_name, 'Bash', 'pass-through should preserve input'); + } + }) + ) + passed++; + else failed++; + } + // --- Test 5: denies first routine Bash, allows second --- clearState(); if ( From 1e2aa0705a2a23a454742450a7157bdc0cb117a8 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Fri, 21 Aug 2026 11:07:35 +0700 Subject: [PATCH 06/78] fix(gateguard): normalize wrappers per option arity, in find -exec, and in the quote-aware pass Review on #2832 reproduced three destructive-command spellings that the first pass still let through, all confirmed against the production hook: find . -exec sudo rm {} ; allowed (wrapper inside -exec) command -p rm -rf /data allowed (-p is boolean for command, value-taking for sudo) nice -n 10 rm -rf /data allowed (-n value not consumed) sudo "rm" -rf /data allowed (quote-aware pass unnormalized) COMMAND_WRAPPERS becomes a Map from wrapper to that wrapper's own value-taking options, so option arity is no longer shared across wrappers. stripCommandWrappers() is now also applied to the command inside find -exec and to each quote-aware segment. All four are pre-existing on main, not regressions of the first pass. --- scripts/hooks/gateguard-fact-force.js | 101 +++++++++++++---------- tests/hooks/gateguard-fact-force.test.js | 29 ++++++- 2 files changed, 83 insertions(+), 47 deletions(-) diff --git a/scripts/hooks/gateguard-fact-force.js b/scripts/hooks/gateguard-fact-force.js index 5d21d7157..df79f59d8 100644 --- a/scripts/hooks/gateguard-fact-force.js +++ b/scripts/hooks/gateguard-fact-force.js @@ -344,7 +344,11 @@ const SHELL_WRAPPERS = new Set(['sh', 'bash', 'zsh', 'dash', 'ksh']); */ function isDestructiveQuoteAware(raw, depth = 0) { if (depth > 4) return false; - for (const tokens of quoteAwareSegments(raw)) { + for (const segment of quoteAwareSegments(raw)) { + if (segment.length === 0) continue; + // A quoted command word survives this path as a plain token, so the + // wrapper prefix has to be normalized here too (`sudo "rm" -rf /`). + const tokens = stripCommandWrappers(segment); if (tokens.length === 0) continue; if (isDestructiveRm(tokens)) return true; if (isDestructiveGit(tokens)) return true; @@ -380,50 +384,49 @@ function commandBasename(token) { * past them, or the most dangerous spellings are the ones that slip through. * Every token-based detector keys on `tokens[0]`, so `sudo rm -rf /` reads as * an invocation of `sudo` and is allowed while the bare `rm -rf /` is denied. + * + * The value is the set of that wrapper's OWN options which consume the + * following token, so the value is not mistaken for the wrapped command word. + * Arity is per wrapper because the same letter differs between them: `sudo -p` + * takes a prompt string, while `command -p` is a boolean that must leave `rm` + * as the next token. Long `--flag=value` forms need no entry (single token), + * and so do attached short forms (`stdbuf -oL`) — the flag token is skipped + * either way. + * + * @type {Map>} */ -const COMMAND_WRAPPERS = new Set([ - 'sudo', - 'doas', - 'env', - 'command', - 'nohup', - 'setsid', - 'stdbuf', - 'nice', - 'ionice', +const COMMAND_WRAPPERS = new Map([ + [ + 'sudo', + new Set([ + '-a', '-C', '-c', '-D', '-g', '-h', '-p', '-R', '-r', '-T', '-t', '-U', '-u', + '--auth-type', '--close-from', '--login-class', '--chdir', '--group', + '--host', '--prompt', '--chroot', '--role', '--command-timeout', '--type', + '--other-user', '--user', + ]), + ], + ['doas', new Set(['-a', '-C', '-u'])], + ['env', new Set(['-u', '-C', '-S', '--unset', '--chdir', '--split-string'])], + ['command', new Set()], + ['nohup', new Set()], + ['setsid', new Set()], + ['stdbuf', new Set(['-i', '-o', '-e', '--input', '--output', '--error'])], + ['nice', new Set(['-n', '--adjustment'])], + [ + 'ionice', + new Set(['-c', '-n', '-p', '-P', '-u', '--class', '--classdata', '--pid', '--pgid', '--uid']), + ], ]); /** - * Wrapper flags that consume the FOLLOWING token as their value, so the value - * is not mistaken for the wrapped command word (`sudo -u root rm -rf /`). - * Long `--flag=value` forms need no entry: they are a single token. - */ -const WRAPPER_FLAGS_WITH_VALUE = new Set([ - '-u', - '-g', - '-p', - '-C', - '-h', - '-r', - '-t', - '-U', - '--user', - '--group', - '--prompt', - '--host', - '--role', - '--type', - '--chdir', -]); - -/** - * Return `tokens` with any leading wrapper commands, their flags, and + * Return `tokens` with any leading wrapper commands, their options, and * `VAR=value` assignment prefixes removed, so the caller sees the command that * actually runs. * - * Flags are only skipped once a wrapper has been seen, so this can never walk - * into an unwrapped command's own arguments. Returns the input array when - * there is nothing to strip. + * Options are only skipped once a wrapper has been seen, so this can never walk + * into an unwrapped command's own arguments, and an option's value is only + * consumed when the wrapper it belongs to declares that arity. Returns the + * input array when there is nothing to strip. * * @param {string[]} tokens * @returns {string[]} @@ -431,11 +434,12 @@ const WRAPPER_FLAGS_WITH_VALUE = new Set([ function stripCommandWrappers(tokens) { if (!Array.isArray(tokens) || tokens.length === 0) return tokens; let index = 0; - let sawWrapper = false; + let valueFlags = null; while (index < tokens.length) { const token = tokens[index]; - if (COMMAND_WRAPPERS.has(commandBasename(token))) { - sawWrapper = true; + const wrapperFlags = COMMAND_WRAPPERS.get(commandBasename(token)); + if (wrapperFlags) { + valueFlags = wrapperFlags; index += 1; continue; } @@ -445,8 +449,8 @@ function stripCommandWrappers(tokens) { index += 1; continue; } - if (sawWrapper && token.startsWith('-')) { - if (WRAPPER_FLAGS_WITH_VALUE.has(token)) index += 1; + if (valueFlags && token.startsWith('-')) { + if (valueFlags.has(token)) index += 1; index += 1; continue; } @@ -723,7 +727,14 @@ function isDestructiveFindExec(command) { return false; } - const baseCmd = commandBasename(execTokens[0]); + // `find . -exec sudo rm {} \;` runs the same deletion as `-exec rm`, so the + // executed command needs the same wrapper normalization as a top-level one. + const execCommand = stripCommandWrappers(execTokens); + if (execCommand.length === 0) { + return false; + } + + const baseCmd = commandBasename(execCommand[0]); // Directly destructive commands inside -exec if (baseCmd === 'rmdir' || baseCmd === 'unlink') { @@ -737,7 +748,7 @@ function isDestructiveFindExec(command) { // `git reset --hard` inside -exec if (baseCmd === 'git') { - const sub = findGitSubcommand(execTokens); + const sub = findGitSubcommand(execCommand); if (sub && sub.command === 'reset' && sub.rest.includes('--hard')) { return true; } diff --git a/tests/hooks/gateguard-fact-force.test.js b/tests/hooks/gateguard-fact-force.test.js index 46244a852..d2aa95a17 100644 --- a/tests/hooks/gateguard-fact-force.test.js +++ b/tests/hooks/gateguard-fact-force.test.js @@ -274,7 +274,25 @@ function runTests() { 'sudo git clean -fd', 'sudo git push --force', 'sudo find . -exec rm {} ;', - 'echo hello && sudo rm -rf /important/data' + 'echo hello && sudo rm -rf /important/data', + // A wrapper INSIDE `-exec` runs the same deletion as a bare one. + 'find . -exec sudo rm {} ;', + 'find . -exec doas rm {} ;', + 'find . -exec sudo git reset --hard {} ;', + // Option arity is per wrapper: `command -p` is boolean and must leave `rm` + // in place, while `nice -n`, `stdbuf -o`, and `ionice -c` consume a value. + 'command -p rm -rf /important/data', + 'nice -n 10 rm -rf /important/data', + 'stdbuf -o L rm -rf /important/data', + 'stdbuf -oL rm -rf /important/data', + 'ionice -c 3 rm -rf /important/data', + // Quoting the command word routes the check through the quote-aware pass, + // which needs the same wrapper normalization. + 'sudo "rm" -rf /important/data', + "sudo 'rm' -rf /important/data", + 'env "rm" -rf /important/data', + 'doas "rm" -rf /important/data', + 'sudo bash -c "rm -rf /important/data"' ]) { clearState(); if ( @@ -304,8 +322,15 @@ function runTests() { 'sudo apt-get update', 'sudo systemctl restart nginx', 'sudo ls -la /etc', + 'sudo -u root ls -la /etc', 'env NODE_ENV=production npm run build', - 'command ls' + 'command ls', + 'command -p ls', + 'command -v rm', + 'nice -n 10 npm run build', + 'ionice -c 3 npm test', + 'stdbuf -o L npm test', + 'find . -exec sudo chmod 644 {} ;' ]) { clearState(); if ( From 6ecd41f69707512cd8d4f6b14842ed2a59133320 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Sat, 22 Aug 2026 07:38:53 +0700 Subject: [PATCH 07/78] fix(block-no-verify): match abbreviated --no-verify long flags Git resolves any unambiguous prefix of a long option, so `--no-verif` and `--no-veri` skip the hooks exactly as `--no-verify` does. The gate compared the full spelling with ===, so two characters off the end walked past it. Verified against real git with a pre-commit hook that prints and exits 1: git commit -> hook ran, commit refused git commit --no-verify -> committed, hook skipped (already blocked here) git commit --no-verif -> committed, hook skipped (was ALLOWED) git commit --no-veri -> committed, hook skipped (was ALLOWED) The check now matches any prefix of --no-verify longer than `--no-`. That cannot catch --no-verbose, which is not a prefix of --no-verify. The shortest forms (--no-v, --no-ve) are ambiguous and git rejects them itself, so blocking them costs nothing: no working command uses them. --- scripts/hooks/block-no-verify.js | 26 +++++++++++++++++++- tests/hooks/block-no-verify.test.js | 37 +++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/scripts/hooks/block-no-verify.js b/scripts/hooks/block-no-verify.js index ecd29100c..ccc5bd2cb 100644 --- a/scripts/hooks/block-no-verify.js +++ b/scripts/hooks/block-no-verify.js @@ -247,6 +247,30 @@ function getCommitShortValueOption(value) { return null; } +/** + * Git resolves any UNAMBIGUOUS prefix of a long option, so `--no-verif` and + * `--no-veri` bypass the hooks exactly as `--no-verify` does. Matching the full + * spelling alone let two characters off the end walk straight past this gate. + * + * Verified against real git with a failing pre-commit hook: + * git commit -> hook ran, commit refused + * git commit --no-verif -> committed, hook skipped + * git commit --no-veri -> committed, hook skipped + * + * Matching every prefix cannot catch `--no-verbose`, because that is not a + * prefix of `--no-verify`. The shortest forms (`--no-v`, `--no-ve`) are + * ambiguous and git rejects them itself, so treating them as a bypass attempt + * costs nothing — no working command uses them. + * + * @param {string} value + * @returns {boolean} + */ +function isNoVerifyLongFlag(value) { + // `--no-` alone is not an attempt at anything; require at least one more char. + if (value.length <= '--no-'.length) return false; + return '--no-verify'.startsWith(value); +} + function isCommitNoVerifyShortFlag(value) { if (!value.startsWith('-') || value.startsWith('--') || value === '-') { return false; @@ -422,7 +446,7 @@ function hasNoVerifyFlag(input, command, offset) { } } - if (value === '--no-verify') return true; + if (isNoVerifyLongFlag(value)) return true; // For commit, -n is shorthand for --no-verify. if (command === 'commit' && isCommitNoVerifyShortFlag(value)) { diff --git a/tests/hooks/block-no-verify.test.js b/tests/hooks/block-no-verify.test.js index db38dbb19..2ca470ee3 100644 --- a/tests/hooks/block-no-verify.test.js +++ b/tests/hooks/block-no-verify.test.js @@ -78,6 +78,43 @@ if (test('blocks quoted core.hooksPath override argument', () => { assert.ok(r.stderr.includes('core.hooksPath'), `stderr should mention core.hooksPath: ${r.stderr}`); })) passed++; else failed++; +// --- Abbreviated long flags --- +// Git resolves any unambiguous prefix of a long option, so these bypass the +// hooks exactly as the full spelling does. Verified against real git with a +// failing pre-commit hook: `git commit --no-verif` and `--no-veri` both commit. + +for (const flag of ['--no-verif', '--no-veri', '--no-ver', '--no-ve', '--no-v']) { + if (test(`blocks abbreviated ${flag} on git commit`, () => { + const r = runHook({ tool_input: { command: `git commit ${flag} -m "msg"` } }); + assert.strictEqual(r.code, 2, `expected exit 2, got ${r.code}`); + assert.ok(r.stderr.includes('BLOCKED'), `stderr should contain BLOCKED: ${r.stderr}`); + })) passed++; else failed++; +} + +if (test('blocks abbreviated --no-verif on git push', () => { + const r = runHook({ tool_input: { command: 'git push --no-verif' } }); + assert.strictEqual(r.code, 2, `expected exit 2, got ${r.code}`); + assert.ok(r.stderr.includes('BLOCKED'), `stderr should contain BLOCKED: ${r.stderr}`); +})) passed++; else failed++; + +// The guard must match prefixes OF --no-verify, not everything starting with +// --no-. `--no-verbose` is a real, harmless git option and is not a prefix of +// --no-verify, so it must stay allowed. +if (test('still allows --no-verbose (not a prefix of --no-verify)', () => { + const r = runHook({ tool_input: { command: 'git commit --no-verbose -m "msg"' } }); + assert.strictEqual(r.code, 0, `expected exit 0, got ${r.code}: ${r.stderr}`); +})) passed++; else failed++; + +if (test('still allows --no-edit', () => { + const r = runHook({ tool_input: { command: 'git commit --no-edit --amend' } }); + assert.strictEqual(r.code, 0, `expected exit 0, got ${r.code}: ${r.stderr}`); +})) passed++; else failed++; + +if (test('still allows the literal text in a commit message', () => { + const r = runHook({ tool_input: { command: 'git commit -m "no-verif was the bug"' } }); + assert.strictEqual(r.code, 0, `expected exit 0, got ${r.code}: ${r.stderr}`); +})) passed++; else failed++; + // --- Chained command false positive prevention (Comment 2) --- if (test('does not false-positive on -n belonging to git log in a chain', () => { From 1c3d6a87cebf3d5009c30687a10f35d4cd37ee46 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Sat, 22 Aug 2026 08:33:53 +0700 Subject: [PATCH 08/78] fix(block-no-verify): do not read a value-taking option's value as a flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Review found that matching abbreviations widened an existing false positive: options that consume the next token had their VALUE classified as a flag. git push --push-option --no-verify refused on main already git push -o --no-verify refused on main already git commit --trailer --no-verify refused on main already git push --push-option --no-verif newly refused by the abbreviation match git commit --trailer --no-verif newly refused by the abbreviation match Git sends those values verbatim and still runs its hooks, so all five are legitimate commands. Fixing the arity closes both the pre-existing cases and the widened ones. - commit: --trailer added to COMMIT_OPTIONS_WITH_VALUE. - push: new PUSH_OPTIONS_WITH_VALUE (-o, --push-option, --receive-pack, --exec, --repo, --force-with-lease); push had no arity handling at all. The inline form consumes nothing, so a real flag after --push-option=value or --trailer=value is still blocked — covered by two tests, or the arity handling would become its own bypass. --- scripts/hooks/block-no-verify.js | 23 +++++++++++++++++++ tests/hooks/block-no-verify.test.js | 34 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/scripts/hooks/block-no-verify.js b/scripts/hooks/block-no-verify.js index ccc5bd2cb..4452ba671 100644 --- a/scripts/hooks/block-no-verify.js +++ b/scripts/hooks/block-no-verify.js @@ -57,6 +57,9 @@ const COMMIT_OPTIONS_WITH_VALUE = new Set([ '--fixup', '--squash', '--pathspec-from-file', + // `git commit --trailer "Key: value"` — the value is data, so a token that + // looks like a flag must not be classified as one. + '--trailer', ]); const COMMIT_OPTIONS_WITH_INLINE_VALUE = [ @@ -247,6 +250,21 @@ function getCommitShortValueOption(value) { return null; } +/** + * `git push` options that consume the FOLLOWING token as their value. Without + * these, `git push --push-option --no-verify` reads the value as a flag and is + * refused even though git sends it verbatim to the server and still runs the + * hooks. Long `--flag=value` forms need no entry: they are a single token. + */ +const PUSH_OPTIONS_WITH_VALUE = new Set([ + '-o', + '--push-option', + '--receive-pack', + '--exec', + '--repo', + '--force-with-lease', +]); + /** * Git resolves any UNAMBIGUOUS prefix of a long option, so `--no-verif` and * `--no-veri` bypass the hooks exactly as `--no-verify` does. Matching the full @@ -446,6 +464,11 @@ function hasNoVerifyFlag(input, command, offset) { } } + if (command === 'push' && PUSH_OPTIONS_WITH_VALUE.has(value)) { + skipNext = true; + continue; + } + if (isNoVerifyLongFlag(value)) return true; // For commit, -n is shorthand for --no-verify. diff --git a/tests/hooks/block-no-verify.test.js b/tests/hooks/block-no-verify.test.js index 2ca470ee3..3d71a7cfa 100644 --- a/tests/hooks/block-no-verify.test.js +++ b/tests/hooks/block-no-verify.test.js @@ -115,6 +115,40 @@ if (test('still allows the literal text in a commit message', () => { assert.strictEqual(r.code, 0, `expected exit 0, got ${r.code}: ${r.stderr}`); })) passed++; else failed++; +// --- Value-taking options must not have their VALUE read as a flag --- +// `--push-option`/`-o`/`--trailer` consume the next token as data. Git sends it +// verbatim and still runs the hooks, so refusing these is a false positive. +// These were already refused for the full spelling before abbreviations were +// matched; handling the option arity fixes both. + +for (const command of [ + 'git push --push-option --no-verify', + 'git push --push-option --no-verif', + 'git push -o --no-verify', + 'git push --receive-pack --no-verify', + 'git commit --trailer --no-verify -m "msg"', + 'git commit --trailer --no-verif -m "msg"', +]) { + if (test(`does not block a value-taking option's value: ${command}`, () => { + const r = runHook({ tool_input: { command } }); + assert.strictEqual(r.code, 0, `expected exit 0, got ${r.code}: ${r.stderr}`); + })) passed++; else failed++; +} + +// The inline `=value` form consumes nothing, so a real flag after it must still +// be caught — otherwise the arity handling above becomes its own bypass. +if (test('still blocks --no-verify after an inline --push-option=value', () => { + const r = runHook({ tool_input: { command: 'git push --push-option=ci.skip --no-verify' } }); + assert.strictEqual(r.code, 2, `expected exit 2, got ${r.code}`); + assert.ok(r.stderr.includes('BLOCKED'), `stderr should contain BLOCKED: ${r.stderr}`); +})) passed++; else failed++; + +if (test('still blocks --no-verif after an inline --trailer=value', () => { + const r = runHook({ tool_input: { command: 'git commit --trailer=Key:val --no-verif -m "msg"' } }); + assert.strictEqual(r.code, 2, `expected exit 2, got ${r.code}`); + assert.ok(r.stderr.includes('BLOCKED'), `stderr should contain BLOCKED: ${r.stderr}`); +})) passed++; else failed++; + // --- Chained command false positive prevention (Comment 2) --- if (test('does not false-positive on -n belonging to git log in a chain', () => { From 404d6cecfd3293f5a2dd17f46afaaad68bd3503a Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Sat, 22 Aug 2026 09:06:38 +0700 Subject: [PATCH 09/78] fix(block-no-verify): drop --force-with-lease from the value-taking set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I introduced a bypass in the previous commit. --force-with-lease takes an OPTIONAL, inline-only value, so the bare form consumes nothing and the next token is a real flag. Listing it made the parser discard that token: git push --force-with-lease --no-verify -> ALLOWED (bypass I created) git push --force-with-lease --no-verif -> ALLOWED (bypass I created) Both are blocked again. Determined by asking git rather than by reading docs — every option left in PUSH_OPTIONS_WITH_VALUE answers "requires a value" when given none, while a bare --force-with-lease parses and fails later on the push destination: git push --push-option -> error: option `push-option' requires a value git push -o -> error: switch `o' requires a value git push --receive-pack -> error: option `receive-pack' requires a value git push --exec -> error: option `exec' requires a value git push --repo -> error: option `repo' requires a value git push --force-with-lease -> fatal: No configured push destination. Four tests, proven load-bearing: re-adding the entry fails two of them. --- scripts/hooks/block-no-verify.js | 7 ++++++- tests/hooks/block-no-verify.test.js | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/scripts/hooks/block-no-verify.js b/scripts/hooks/block-no-verify.js index 4452ba671..227479313 100644 --- a/scripts/hooks/block-no-verify.js +++ b/scripts/hooks/block-no-verify.js @@ -262,8 +262,13 @@ const PUSH_OPTIONS_WITH_VALUE = new Set([ '--receive-pack', '--exec', '--repo', - '--force-with-lease', ]); +// NOT in the set: `--force-with-lease`. Its value is OPTIONAL and inline-only, +// so the bare form consumes nothing and the next token is a real flag. Listing +// it would make `git push --force-with-lease --no-verify` skip the very flag +// this hook exists to catch. Confirmed against git: every option above answers +// "requires a value" when given none, while a bare `git push +// --force-with-lease` parses and fails later on the push destination. /** * Git resolves any UNAMBIGUOUS prefix of a long option, so `--no-verif` and diff --git a/tests/hooks/block-no-verify.test.js b/tests/hooks/block-no-verify.test.js index 3d71a7cfa..a63c47f48 100644 --- a/tests/hooks/block-no-verify.test.js +++ b/tests/hooks/block-no-verify.test.js @@ -135,6 +135,29 @@ for (const command of [ })) passed++; else failed++; } +// `--force-with-lease` takes an OPTIONAL, inline-only value, so the bare form +// consumes nothing and the next token is a real flag. Confirmed against git: +// every option in PUSH_OPTIONS_WITH_VALUE answers "requires a value" when given +// none, while a bare `git push --force-with-lease` parses and fails later on the +// push destination. Treating it as value-taking would skip the very flag this +// hook exists to catch. +for (const command of [ + 'git push --force-with-lease --no-verify', + 'git push --force-with-lease --no-verif', + 'git push --force-with-lease=main:abc123 --no-verify', +]) { + if (test(`still blocks no-verify after --force-with-lease: ${command}`, () => { + const r = runHook({ tool_input: { command } }); + assert.strictEqual(r.code, 2, `expected exit 2, got ${r.code}`); + assert.ok(r.stderr.includes('BLOCKED'), `stderr should contain BLOCKED: ${r.stderr}`); + })) passed++; else failed++; +} + +if (test('still allows a bare --force-with-lease push', () => { + const r = runHook({ tool_input: { command: 'git push --force-with-lease' } }); + assert.strictEqual(r.code, 0, `expected exit 0, got ${r.code}: ${r.stderr}`); +})) passed++; else failed++; + // The inline `=value` form consumes nothing, so a real flag after it must still // be caught — otherwise the arity handling above becomes its own bypass. if (test('still blocks --no-verify after an inline --push-option=value', () => { From e0fb681c77f5695334a32195ea738d446f772856 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Sat, 22 Aug 2026 10:12:03 +0700 Subject: [PATCH 10/78] fix(block-no-verify): resolve abbreviated value-taking options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Git accepts any unambiguous prefix of a long option, so `--push-opti` is `--push-option` and consumes the following token exactly like the full spelling. The value-option lookup was an exact-name match, so `git push --push-opti --no-verify` and `git commit --trail --no-verify` were refused as bypass attempts even though git runs them with hooks intact — the flag becomes the option's value. Prefix matching applies only to the value-taking options and only when the prefix is unique among them; an ambiguous prefix resolves to none, and the inline `=value` form is one token that consumes nothing. --- scripts/hooks/block-no-verify.js | 44 +++++++++++++++++++++++++++-- tests/hooks/block-no-verify.test.js | 35 +++++++++++++++++++++++ 2 files changed, 77 insertions(+), 2 deletions(-) diff --git a/scripts/hooks/block-no-verify.js b/scripts/hooks/block-no-verify.js index 227479313..f0433b38c 100644 --- a/scripts/hooks/block-no-verify.js +++ b/scripts/hooks/block-no-verify.js @@ -206,12 +206,52 @@ function findCommandSegmentEnd(input, start) { return input.length; } +/** + * True when `value` is the option itself or an abbreviation git resolves to it. + * + * Git accepts any unambiguous prefix of a long option, so `--push-opti` is + * `--push-option` and consumes the following token exactly like the full + * spelling. An exact-name lookup missed that and refused + * `git push --push-opti --no-verify`, a command git runs with its hooks intact + * (the flag becomes the option's value). + * + * Only value-taking options are prefix-matched, and only when the prefix is + * unique among them. A prefix git itself rejects as ambiguous may still resolve + * here (`--rec` is also `--recurse-submodules`), but git refuses to run such a + * command at all, so it cannot skip a hook either way. The inline `=value` form + * is one token and consumes nothing, so it is never a match. + */ +function optionConsumesNextValue(value, optionsWithValue) { + if (optionsWithValue.has(value)) { + return true; + } + + if (!value.startsWith('--') || value.length <= 2 || value.includes('=')) { + return false; + } + + let resolved = null; + for (const option of optionsWithValue) { + if (!option.startsWith('--') || !option.startsWith(value)) { + continue; + } + + if (resolved !== null) { + return false; + } + + resolved = option; + } + + return resolved !== null; +} + function commitOptionConsumesNextValue(value) { if (isCommitNoVerifyShortFlag(value)) { return false; } - if (COMMIT_OPTIONS_WITH_VALUE.has(value)) { + if (optionConsumesNextValue(value, COMMIT_OPTIONS_WITH_VALUE)) { return true; } @@ -469,7 +509,7 @@ function hasNoVerifyFlag(input, command, offset) { } } - if (command === 'push' && PUSH_OPTIONS_WITH_VALUE.has(value)) { + if (command === 'push' && optionConsumesNextValue(value, PUSH_OPTIONS_WITH_VALUE)) { skipNext = true; continue; } diff --git a/tests/hooks/block-no-verify.test.js b/tests/hooks/block-no-verify.test.js index a63c47f48..40beeeb9a 100644 --- a/tests/hooks/block-no-verify.test.js +++ b/tests/hooks/block-no-verify.test.js @@ -172,6 +172,41 @@ if (test('still blocks --no-verif after an inline --trailer=value', () => { assert.ok(r.stderr.includes('BLOCKED'), `stderr should contain BLOCKED: ${r.stderr}`); })) passed++; else failed++; +// Git resolves an unambiguous prefix of a long option, so the abbreviated +// spelling of a value-taking option consumes the following token exactly like +// the full one. Proven against git 2.51: `git commit --mes --no-verify` runs +// the pre-commit hook and stores "--no-verify" as the commit message. +// +// git push --push-opti -> error: option `push-option' requires a value +// git commit --trail -> error: option `trailer' requires a value +for (const command of [ + 'git push --push-opti --no-verify', + 'git push --push-o --no-verif', + 'git commit --trail --no-verify -m "msg"', + 'git commit --mes --no-verify', +]) { + if (test(`does not block an abbreviated value-taking option: ${command}`, () => { + const r = runHook({ tool_input: { command } }); + assert.strictEqual(r.code, 0, `expected exit 0, got ${r.code}: ${r.stderr}`); + })) passed++; else failed++; +} + +// The abbreviation must not weaken any of the three ways a real flag reaches +// git: an inline value consumes nothing, and a prefix that is ambiguous among +// the value-taking options resolves to none of them. +for (const command of [ + 'git push --push-opti=ci.skip --no-verify', + 'git commit --trail=Key:val --no-verify -m "msg"', + 'git push --re --no-verify', + 'git commit --f --no-verify -m "msg"', +]) { + if (test(`abbreviation handling still blocks: ${command}`, () => { + const r = runHook({ tool_input: { command } }); + assert.strictEqual(r.code, 2, `expected exit 2, got ${r.code}`); + assert.ok(r.stderr.includes('BLOCKED'), `stderr should contain BLOCKED: ${r.stderr}`); + })) passed++; else failed++; +} + // --- Chained command false positive prevention (Comment 2) --- if (test('does not false-positive on -n belonging to git log in a chain', () => { From ddfdfffffc98cf573be14470bf02f113a10053ab Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Mon, 24 Aug 2026 10:46:01 +0700 Subject: [PATCH 11/78] fix(dev-server-block): decide the script name from tokens, not raw text The hook matched `npm\s+run\s+dev` against the raw command string, which cannot see through the shell's own quoting. Every one of these reached the shell as a plain `npm run dev` and was allowed: npm run "dev" npm --silent run dev npm run 'dev' yarn --cwd app dev npm run de"v" pnpm "dev" / yarn run "dev" / bun run "dev" Read the script name from the tokens instead, reusing the quote-aware readToken() the file already had: skip options (and the value of one known to take a value), skip a `run` / `run-script` keyword, stop at `--`, then compare the first remaining token against /^dev(?::|$)/. `dev-setup` / `dev-docs` / `dev-build` stay allowed by the same rule the old lookahead encoded, `npm test -- --grep dev` is allowed because `--` ends the manager's own arguments, and the tmux launcher exemption is unchanged. The blocking tests were skipped on Windows, where the hook no-ops, so this class could only be caught on CI. The new cases force the platform in-process and therefore run everywhere. --- scripts/hooks/pre-bash-dev-server-block.js | 87 +++++++++++++++++-- tests/hooks/pre-bash-dev-server-block.test.js | 75 ++++++++++++++++ 2 files changed, 156 insertions(+), 6 deletions(-) diff --git a/scripts/hooks/pre-bash-dev-server-block.js b/scripts/hooks/pre-bash-dev-server-block.js index 06eb64020..7667d58c0 100755 --- a/scripts/hooks/pre-bash-dev-server-block.js +++ b/scripts/hooks/pre-bash-dev-server-block.js @@ -161,11 +161,82 @@ process.stdin.on('data', chunk => { }); const TMUX_LAUNCHER = /^\s*tmux\s+(new|new-session|new-window|split-window)\b/; -// Trailing (?![\w-]) rather than \b: \b treats a hyphen as a word boundary, so -// `dev\b` matches the `dev` prefix of distinct scripts like `dev-setup` / -// `dev-docs` / `dev-build` and wrongly blocks them. The lookahead still matches -// the dev server (`dev`, `dev;`, `dev:ssr`, ...) but not a `dev-` script. -const DEV_PATTERN = /\b(npm\s+run\s+dev|pnpm(?:\s+run)?\s+dev|yarn(?:\s+run)?\s+dev|bun(?:\s+run)?\s+dev)(?![\w-])/; +// The script name is decided from TOKENS, not from a regex over the raw text. +// A raw-text `npm\s+run\s+dev` cannot see through the shell's own quoting, so +// `npm run "dev"`, `npm run 'dev'` and `npm run de"v"` all reached the shell as +// `npm run dev` and started the very server this hook exists to keep in tmux. +// An option in between hid it just as well: `npm --silent run dev` and +// `yarn --cwd app dev` were not matched either. +// +// Trailing `(?::|$)` rather than a word boundary: `dev` and `dev:ssr` are the +// dev server, while `dev-setup` / `dev-docs` / `dev-build` are distinct scripts +// that must keep running. +const DEV_SCRIPT_NAME = /^dev(?::|$)/; +const PACKAGE_MANAGERS = new Set(['npm', 'pnpm', 'yarn', 'bun']); +const RUN_KEYWORDS = new Set(['run', 'run-script']); +// Options that consume the following token, so their value is never mistaken +// for the script name (`yarn --cwd app dev` must read `dev`, not `app`). +const MANAGER_OPTIONS_WITH_VALUE = new Set([ + '--prefix', + '--cwd', + '-C', + '--dir', + '-d', + '--workspace', + '-w', + '--filter', + '-F', + '--package', + '-p', + '--config', + '-c' +]); + +/** + * The script a package manager is being asked to run, or null. + * + * Reads the tokens after the manager word: skips options (and the value of an + * option known to take one), skips a `run` / `run-script` keyword, stops at a + * `--` separator, and returns the first remaining token. + */ +function getRunScriptName(segment, managerWord) { + let index = 0; + let seenManager = false; + let skipNextValue = false; + + while (index < segment.length) { + const parsed = readToken(segment, index); + if (!parsed) return null; + index = parsed.end; + + const token = parsed.token; + if (!token) continue; + + if (skipNextValue) { + skipNextValue = false; + continue; + } + + if (!seenManager) { + if (normalizeCommandWord(token) === managerWord) seenManager = true; + continue; + } + + // Everything after `--` is an argument to the script, not the script name. + if (token === '--') return null; + + if (isOptionToken(token)) { + if (MANAGER_OPTIONS_WITH_VALUE.has(token)) skipNextValue = true; + continue; + } + + if (RUN_KEYWORDS.has(token.toLowerCase())) continue; + + return token; + } + + return null; +} /** * Collect every command-line segment we should evaluate. Returns the top-level @@ -202,7 +273,11 @@ function collectCheckSegments(cmd) { function isBlockedDevSegment(segment) { const commandWord = getLeadingCommandWord(segment); if (!commandWord || !DEV_COMMAND_WORDS.has(commandWord)) return false; - return DEV_PATTERN.test(segment) && !TMUX_LAUNCHER.test(segment); + if (TMUX_LAUNCHER.test(segment)) return false; + if (!PACKAGE_MANAGERS.has(commandWord)) return false; + + const script = getRunScriptName(segment, commandWord); + return Boolean(script) && DEV_SCRIPT_NAME.test(script); } process.stdin.on('end', () => { diff --git a/tests/hooks/pre-bash-dev-server-block.test.js b/tests/hooks/pre-bash-dev-server-block.test.js index 89524b1e0..e87257ba6 100644 --- a/tests/hooks/pre-bash-dev-server-block.test.js +++ b/tests/hooks/pre-bash-dev-server-block.test.js @@ -32,6 +32,25 @@ function runScript(command) { return { code: result.status || 0, stdout: result.stdout || '', stderr: result.stderr || '' }; } +/** + * Run the hook with `process.platform` forced to a POSIX value. + * + * The hook is a no-op on Windows, so its decision cannot be observed there at + * all — yet the decision itself has nothing platform-specific in it. + */ +function runScriptAsPosix(command) { + const input = { tool_input: { command } }; + const bootstrap = + "Object.defineProperty(process, 'platform', { value: 'linux' });" + + `require(${JSON.stringify(script)});`; + const result = spawnSync('node', ['-e', bootstrap], { + encoding: 'utf8', + input: JSON.stringify(input), + timeout: 10000, + }); + return { code: result.status || 0, stdout: result.stdout || '', stderr: result.stderr || '' }; +} + function runTests() { console.log('\n=== Testing pre-bash-dev-server-block.js ===\n'); @@ -238,6 +257,62 @@ function runTests() { assert.strictEqual(result.stdout.trim(), inputStr, `Expected stdout to contain original input`); }) ? passed++ : failed++); + // --- Quoted and option-separated spellings (all platforms) --- + // + // The hook no-ops on Windows, so the blocking tests above are skipped there + // and this class of bug could only be caught on CI. The DECISION is + // platform-independent, so these force the platform in-process and run + // everywhere. + // + // Measured before the token-based script lookup, every one of these reached + // the shell as a plain `npm run dev` and was allowed: + // + // npm run "dev" allow npm --silent run dev allow + // npm run 'dev' allow yarn --cwd app dev allow + // pnpm "dev" allow + + for (const command of [ + 'npm run "dev"', + "npm run 'dev'", + 'npm run de"v"', + 'pnpm "dev"', + 'yarn run "dev"', + 'bun run "dev"', + 'npm --silent run dev', + 'yarn --cwd app dev' + ]) { + (test(`blocks a quoted or option-separated dev script: ${command}`, () => { + const result = runScriptAsPosix(command); + assert.strictEqual(result.code, 2, `Expected exit code 2, got ${result.code}`); + assert.ok(result.stderr.includes('BLOCKED'), `Expected BLOCKED, got: ${result.stderr}`); + }) ? passed++ : failed++); + } + + for (const command of [ + 'npm run dev-setup', + 'pnpm run dev-docs', + 'yarn dev-build', + 'npm run build', + 'npm test', + 'npm install', + // `--` ends the manager's own arguments: everything after it belongs to the + // script, so a stray "dev" there is not a dev server. + 'npm test -- --grep dev', + 'tmux new-session -d -s dev "npm run dev"' + ]) { + (test(`still allows: ${command}`, () => { + const result = runScriptAsPosix(command); + assert.strictEqual(result.code, 0, `Expected exit code 0, got ${result.code}: ${result.stderr}`); + }) ? passed++ : failed++); + } + + (test('blocks the bare `pnpm dev` / `yarn dev` / `bun dev` forms', () => { + for (const command of ['pnpm dev', 'yarn dev', 'bun dev', 'npm run dev:ssr']) { + const result = runScriptAsPosix(command); + assert.strictEqual(result.code, 2, `Expected exit code 2 for ${command}, got ${result.code}`); + } + }) ? passed++ : failed++); + // --- Summary --- console.log(`\nResults: Passed: ${passed}, Failed: ${failed}`); From d537723eeeceabea0b51b9c464c8579375e57237 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Mon, 24 Aug 2026 11:08:48 +0700 Subject: [PATCH 12/78] refactor(hooks): share one dev-server classifier between the two dev hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pre-bash-dev-server-block.js refuses a dev server outside tmux and auto-tmux-dev.js is what puts it in tmux, so a command one recognises and the other does not is the worst outcome: refused, and never detached. Both carried a copy of the same raw-text regex, each with a comment asking the other to stay byte-identical — which is exactly how the previous commit left them, since widening the blocker to quoted and option-separated spellings did not reach the wrapper. The classification now lives in scripts/lib/dev-command.js and both hooks call it. pre-bash-dev-server-block.js drops from 304 lines to 34. --- scripts/hooks/auto-tmux-dev.js | 21 +- scripts/hooks/pre-bash-dev-server-block.js | 274 +------------------ scripts/lib/dev-command.js | 293 +++++++++++++++++++++ tests/hooks/auto-tmux-dev.test.js | 31 +++ 4 files changed, 333 insertions(+), 286 deletions(-) create mode 100644 scripts/lib/dev-command.js diff --git a/scripts/hooks/auto-tmux-dev.js b/scripts/hooks/auto-tmux-dev.js index aa61aecb8..43b6b3feb 100755 --- a/scripts/hooks/auto-tmux-dev.js +++ b/scripts/hooks/auto-tmux-dev.js @@ -27,6 +27,7 @@ const path = require('path'); const { spawnSync } = require('child_process'); +const { isDevServerCommand } = require('../lib/dev-command'); const MAX_STDIN = 1024 * 1024; // 1MB limit let data = ''; @@ -36,20 +37,12 @@ function run(rawInput) { const input = typeof rawInput === 'string' ? JSON.parse(rawInput) : rawInput; const cmd = input.tool_input?.command || ''; - // Detect dev server commands: npm run dev, pnpm (run) dev, yarn (run) dev, - // bun (run) dev. Trailing (?![\w-]) rather than \b: \b treats a hyphen as a - // word boundary, so `dev\b` matches the `dev` prefix of distinct scripts - // like `dev-build` / `dev-docs` and would wrongly detach those one-shot - // scripts into tmux. The lookahead still matches the dev server (`dev`, - // `dev:ssr`, ...) but not a `dev-` script. The optional `run` on - // yarn/bun mirrors the command shapes in pre-bash-dev-server-block.js - // DEV_PATTERN so the two hooks agree on what counts as a dev server. - // Flexible whitespace (\s+) and leading \b make this byte-identical to - // pre-bash-dev-server-block.js DEV_PATTERN, so a tabbed/multi-space command - // the blocker catches is also detached here (they agree exactly). - const devServerRegex = /\b(npm\s+run\s+dev|pnpm(?:\s+run)?\s+dev|yarn(?:\s+run)?\s+dev|bun(?:\s+run)?\s+dev)(?![\w-])/; - - if (devServerRegex.test(cmd)) { + // Detect dev server commands through the shared classifier + // (scripts/lib/dev-command.js) rather than a private regex. This hook and + // pre-bash-dev-server-block.js must agree exactly — one refuses the command + // outside tmux, the other is what puts it in tmux — and two copies of a + // regex asking each other to stay identical is how they drift. + if (isDevServerCommand(cmd)) { // Get session name from current directory basename, sanitize for shell safety // e.g., /home/user/Portfolio → "Portfolio", /home/user/my-app-v2 → "my-app-v2" const rawName = path.basename(process.cwd()); diff --git a/scripts/hooks/pre-bash-dev-server-block.js b/scripts/hooks/pre-bash-dev-server-block.js index 7667d58c0..5b2a14b26 100755 --- a/scripts/hooks/pre-bash-dev-server-block.js +++ b/scripts/hooks/pre-bash-dev-server-block.js @@ -2,154 +2,7 @@ 'use strict'; const MAX_STDIN = 1024 * 1024; -const path = require('path'); -const { splitShellSegments } = require('../lib/shell-split'); -const { - extractCommandSubstitutions, - extractSubshellGroups -} = require('../lib/shell-substitution'); - -const DEV_COMMAND_WORDS = new Set([ - 'npm', - 'pnpm', - 'yarn', - 'bun', - 'npx', - 'tmux' -]); -const SKIPPABLE_PREFIX_WORDS = new Set(['env', 'command', 'builtin', 'exec', 'noglob', 'sudo', 'nohup']); -const PREFIX_OPTION_VALUE_WORDS = { - env: new Set(['-u', '-C', '-S', '--unset', '--chdir', '--split-string']), - sudo: new Set([ - '-u', - '-g', - '-h', - '-p', - '-r', - '-t', - '-C', - '--user', - '--group', - '--host', - '--prompt', - '--role', - '--type', - '--close-from' - ]) -}; - -function readToken(input, startIndex) { - let index = startIndex; - while (index < input.length && /\s/.test(input[index])) index += 1; - if (index >= input.length) return null; - - let token = ''; - let quote = null; - - while (index < input.length) { - const ch = input[index]; - - if (quote) { - if (ch === quote) { - quote = null; - index += 1; - continue; - } - - if (ch === '\\' && quote === '"' && index + 1 < input.length) { - token += input[index + 1]; - index += 2; - continue; - } - - token += ch; - index += 1; - continue; - } - - if (ch === '"' || ch === "'") { - quote = ch; - index += 1; - continue; - } - - if (/\s/.test(ch)) break; - - if (ch === '\\' && index + 1 < input.length) { - token += input[index + 1]; - index += 2; - continue; - } - - token += ch; - index += 1; - } - - return { token, end: index }; -} - -function shouldSkipOptionValue(wrapper, optionToken) { - if (!wrapper || !optionToken || optionToken.includes('=')) return false; - const optionSet = PREFIX_OPTION_VALUE_WORDS[wrapper]; - return Boolean(optionSet && optionSet.has(optionToken)); -} - -function isOptionToken(token) { - return token.startsWith('-') && token.length > 1; -} - -function normalizeCommandWord(token) { - if (!token) return ''; - const base = path.basename(token).toLowerCase(); - return base.replace(/\.(cmd|exe|bat)$/i, ''); -} - -function getLeadingCommandWord(segment) { - let index = 0; - let activeWrapper = null; - let skipNextValue = false; - - while (index < segment.length) { - const parsed = readToken(segment, index); - if (!parsed) return null; - index = parsed.end; - - const token = parsed.token; - if (!token) continue; - - if (skipNextValue) { - skipNextValue = false; - continue; - } - - if (token === '--') { - activeWrapper = null; - continue; - } - - if (token === '{' || token === '}') continue; - - if (/^[A-Za-z_][A-Za-z0-9_]*=.*/.test(token)) continue; - - const normalizedToken = normalizeCommandWord(token); - - if (SKIPPABLE_PREFIX_WORDS.has(normalizedToken)) { - activeWrapper = normalizedToken; - continue; - } - - if (activeWrapper && isOptionToken(token)) { - if (shouldSkipOptionValue(activeWrapper, token)) { - skipNextValue = true; - } - continue; - } - - return normalizedToken; - } - - return null; -} +const { isDevServerCommand } = require('../lib/dev-command'); let raw = ''; process.stdin.setEncoding('utf8'); @@ -160,136 +13,13 @@ process.stdin.on('data', chunk => { } }); -const TMUX_LAUNCHER = /^\s*tmux\s+(new|new-session|new-window|split-window)\b/; -// The script name is decided from TOKENS, not from a regex over the raw text. -// A raw-text `npm\s+run\s+dev` cannot see through the shell's own quoting, so -// `npm run "dev"`, `npm run 'dev'` and `npm run de"v"` all reached the shell as -// `npm run dev` and started the very server this hook exists to keep in tmux. -// An option in between hid it just as well: `npm --silent run dev` and -// `yarn --cwd app dev` were not matched either. -// -// Trailing `(?::|$)` rather than a word boundary: `dev` and `dev:ssr` are the -// dev server, while `dev-setup` / `dev-docs` / `dev-build` are distinct scripts -// that must keep running. -const DEV_SCRIPT_NAME = /^dev(?::|$)/; -const PACKAGE_MANAGERS = new Set(['npm', 'pnpm', 'yarn', 'bun']); -const RUN_KEYWORDS = new Set(['run', 'run-script']); -// Options that consume the following token, so their value is never mistaken -// for the script name (`yarn --cwd app dev` must read `dev`, not `app`). -const MANAGER_OPTIONS_WITH_VALUE = new Set([ - '--prefix', - '--cwd', - '-C', - '--dir', - '-d', - '--workspace', - '-w', - '--filter', - '-F', - '--package', - '-p', - '--config', - '-c' -]); - -/** - * The script a package manager is being asked to run, or null. - * - * Reads the tokens after the manager word: skips options (and the value of an - * option known to take one), skips a `run` / `run-script` keyword, stops at a - * `--` separator, and returns the first remaining token. - */ -function getRunScriptName(segment, managerWord) { - let index = 0; - let seenManager = false; - let skipNextValue = false; - - while (index < segment.length) { - const parsed = readToken(segment, index); - if (!parsed) return null; - index = parsed.end; - - const token = parsed.token; - if (!token) continue; - - if (skipNextValue) { - skipNextValue = false; - continue; - } - - if (!seenManager) { - if (normalizeCommandWord(token) === managerWord) seenManager = true; - continue; - } - - // Everything after `--` is an argument to the script, not the script name. - if (token === '--') return null; - - if (isOptionToken(token)) { - if (MANAGER_OPTIONS_WITH_VALUE.has(token)) skipNextValue = true; - continue; - } - - if (RUN_KEYWORDS.has(token.toLowerCase())) continue; - - return token; - } - - return null; -} - -/** - * Collect every command-line segment we should evaluate. Returns the top-level - * segments first, then segments harvested from `$(...)` / backtick command - * substitutions and plain `(...)` subshell groups, recursively. - * - * Without this expansion the leading-command and dev-pattern check below only - * sees the outermost command, so wrappers like `$(npm run dev)` and - * `(npm run dev)` (which still spawn a dev server) sneak past. - */ -function collectCheckSegments(cmd) { - const segments = [...splitShellSegments(cmd)]; - const queue = [cmd]; - const seen = new Set(); - - while (queue.length) { - const current = queue.shift(); - if (seen.has(current)) continue; - seen.add(current); - - for (const body of extractCommandSubstitutions(current)) { - for (const seg of splitShellSegments(body)) segments.push(seg); - queue.push(body); - } - for (const body of extractSubshellGroups(current)) { - for (const seg of splitShellSegments(body)) segments.push(seg); - queue.push(body); - } - } - - return segments; -} - -function isBlockedDevSegment(segment) { - const commandWord = getLeadingCommandWord(segment); - if (!commandWord || !DEV_COMMAND_WORDS.has(commandWord)) return false; - if (TMUX_LAUNCHER.test(segment)) return false; - if (!PACKAGE_MANAGERS.has(commandWord)) return false; - - const script = getRunScriptName(segment, commandWord); - return Boolean(script) && DEV_SCRIPT_NAME.test(script); -} - process.stdin.on('end', () => { try { const input = JSON.parse(raw); const cmd = String(input.tool_input?.command || ''); if (process.platform !== 'win32') { - const segments = collectCheckSegments(cmd); - const hasBlockedDev = segments.some(isBlockedDevSegment); - - if (hasBlockedDev) { + if (isDevServerCommand(cmd)) { console.error('[Hook] BLOCKED: Dev server must run in tmux for log access'); console.error('[Hook] Use: tmux new-session -d -s dev "npm run dev"'); console.error('[Hook] Then: tmux attach -t dev'); diff --git a/scripts/lib/dev-command.js b/scripts/lib/dev-command.js new file mode 100644 index 000000000..54f3956d4 --- /dev/null +++ b/scripts/lib/dev-command.js @@ -0,0 +1,293 @@ +/** + * Shared dev-server command classification. + * + * Two hooks have to agree on what counts as "starting a dev server": + * `pre-bash-dev-server-block.js` refuses it outside tmux, and + * `auto-tmux-dev.js` rewrites it into a tmux session. They used to carry a + * copy of the same raw-text regex each, with a comment in both asking the + * other to stay byte-identical — so widening one silently left the other + * behind (a command the blocker refuses but the wrapper never detaches is the + * worst of both). The classification lives here now, once. + */ + +'use strict'; + +const path = require('path'); +const { splitShellSegments } = require('./shell-split'); +const { + extractCommandSubstitutions, + extractSubshellGroups +} = require('./shell-substitution'); + +const DEV_COMMAND_WORDS = new Set([ + 'npm', + 'pnpm', + 'yarn', + 'bun', + 'npx', + 'tmux' +]); +const SKIPPABLE_PREFIX_WORDS = new Set(['env', 'command', 'builtin', 'exec', 'noglob', 'sudo', 'nohup']); +const PREFIX_OPTION_VALUE_WORDS = { + env: new Set(['-u', '-C', '-S', '--unset', '--chdir', '--split-string']), + sudo: new Set([ + '-u', + '-g', + '-h', + '-p', + '-r', + '-t', + '-C', + '--user', + '--group', + '--host', + '--prompt', + '--role', + '--type', + '--close-from' + ]) +}; + +function readToken(input, startIndex) { + let index = startIndex; + while (index < input.length && /\s/.test(input[index])) index += 1; + if (index >= input.length) return null; + + let token = ''; + let quote = null; + + while (index < input.length) { + const ch = input[index]; + + if (quote) { + if (ch === quote) { + quote = null; + index += 1; + continue; + } + + if (ch === '\\' && quote === '"' && index + 1 < input.length) { + token += input[index + 1]; + index += 2; + continue; + } + + token += ch; + index += 1; + continue; + } + + if (ch === '"' || ch === "'") { + quote = ch; + index += 1; + continue; + } + + if (/\s/.test(ch)) break; + + if (ch === '\\' && index + 1 < input.length) { + token += input[index + 1]; + index += 2; + continue; + } + + token += ch; + index += 1; + } + + return { token, end: index }; +} + +function shouldSkipOptionValue(wrapper, optionToken) { + if (!wrapper || !optionToken || optionToken.includes('=')) return false; + const optionSet = PREFIX_OPTION_VALUE_WORDS[wrapper]; + return Boolean(optionSet && optionSet.has(optionToken)); +} + +function isOptionToken(token) { + return token.startsWith('-') && token.length > 1; +} + +function normalizeCommandWord(token) { + if (!token) return ''; + const base = path.basename(token).toLowerCase(); + return base.replace(/\.(cmd|exe|bat)$/i, ''); +} + +function getLeadingCommandWord(segment) { + let index = 0; + let activeWrapper = null; + let skipNextValue = false; + + while (index < segment.length) { + const parsed = readToken(segment, index); + if (!parsed) return null; + index = parsed.end; + + const token = parsed.token; + if (!token) continue; + + if (skipNextValue) { + skipNextValue = false; + continue; + } + + if (token === '--') { + activeWrapper = null; + continue; + } + + if (token === '{' || token === '}') continue; + + if (/^[A-Za-z_][A-Za-z0-9_]*=.*/.test(token)) continue; + + const normalizedToken = normalizeCommandWord(token); + + if (SKIPPABLE_PREFIX_WORDS.has(normalizedToken)) { + activeWrapper = normalizedToken; + continue; + } + + if (activeWrapper && isOptionToken(token)) { + if (shouldSkipOptionValue(activeWrapper, token)) { + skipNextValue = true; + } + continue; + } + + return normalizedToken; + } + + return null; +} + +const TMUX_LAUNCHER = /^\s*tmux\s+(new|new-session|new-window|split-window)\b/; +// The script name is decided from TOKENS, not from a regex over the raw text. +// A raw-text `npm\s+run\s+dev` cannot see through the shell's own quoting, so +// `npm run "dev"`, `npm run 'dev'` and `npm run de"v"` all reached the shell as +// `npm run dev` and started the very server this hook exists to keep in tmux. +// An option in between hid it just as well: `npm --silent run dev` and +// `yarn --cwd app dev` were not matched either. +// +// Trailing `(?::|$)` rather than a word boundary: `dev` and `dev:ssr` are the +// dev server, while `dev-setup` / `dev-docs` / `dev-build` are distinct scripts +// that must keep running. +const DEV_SCRIPT_NAME = /^dev(?::|$)/; +const PACKAGE_MANAGERS = new Set(['npm', 'pnpm', 'yarn', 'bun']); +const RUN_KEYWORDS = new Set(['run', 'run-script']); +// Options that consume the following token, so their value is never mistaken +// for the script name (`yarn --cwd app dev` must read `dev`, not `app`). +const MANAGER_OPTIONS_WITH_VALUE = new Set([ + '--prefix', + '--cwd', + '-C', + '--dir', + '-d', + '--workspace', + '-w', + '--filter', + '-F', + '--package', + '-p', + '--config', + '-c' +]); + +/** + * The script a package manager is being asked to run, or null. + * + * Reads the tokens after the manager word: skips options (and the value of an + * option known to take one), skips a `run` / `run-script` keyword, stops at a + * `--` separator, and returns the first remaining token. + */ +function getRunScriptName(segment, managerWord) { + let index = 0; + let seenManager = false; + let skipNextValue = false; + + while (index < segment.length) { + const parsed = readToken(segment, index); + if (!parsed) return null; + index = parsed.end; + + const token = parsed.token; + if (!token) continue; + + if (skipNextValue) { + skipNextValue = false; + continue; + } + + if (!seenManager) { + if (normalizeCommandWord(token) === managerWord) seenManager = true; + continue; + } + + // Everything after `--` is an argument to the script, not the script name. + if (token === '--') return null; + + if (isOptionToken(token)) { + if (MANAGER_OPTIONS_WITH_VALUE.has(token)) skipNextValue = true; + continue; + } + + if (RUN_KEYWORDS.has(token.toLowerCase())) continue; + + return token; + } + + return null; +} + +/** + * Collect every command-line segment we should evaluate. Returns the top-level + * segments first, then segments harvested from `$(...)` / backtick command + * substitutions and plain `(...)` subshell groups, recursively. + * + * Without this expansion the leading-command and dev-pattern check below only + * sees the outermost command, so wrappers like `$(npm run dev)` and + * `(npm run dev)` (which still spawn a dev server) sneak past. + */ +function collectCheckSegments(cmd) { + const segments = [...splitShellSegments(cmd)]; + const queue = [cmd]; + const seen = new Set(); + + while (queue.length) { + const current = queue.shift(); + if (seen.has(current)) continue; + seen.add(current); + + for (const body of extractCommandSubstitutions(current)) { + for (const seg of splitShellSegments(body)) segments.push(seg); + queue.push(body); + } + for (const body of extractSubshellGroups(current)) { + for (const seg of splitShellSegments(body)) segments.push(seg); + queue.push(body); + } + } + + return segments; +} + +function isDevServerSegment(segment) { + const commandWord = getLeadingCommandWord(segment); + if (!commandWord || !DEV_COMMAND_WORDS.has(commandWord)) return false; + if (TMUX_LAUNCHER.test(segment)) return false; + if (!PACKAGE_MANAGERS.has(commandWord)) return false; + + const script = getRunScriptName(segment, commandWord); + return Boolean(script) && DEV_SCRIPT_NAME.test(script); +} + +/** True when any segment of `command` starts a dev server. */ +function isDevServerCommand(command) { + return collectCheckSegments(String(command || '')).some(isDevServerSegment); +} + +module.exports = { + collectCheckSegments, + isDevServerCommand, + isDevServerSegment +}; diff --git a/tests/hooks/auto-tmux-dev.test.js b/tests/hooks/auto-tmux-dev.test.js index 3c47a8ac4..f7a1d2e34 100644 --- a/tests/hooks/auto-tmux-dev.test.js +++ b/tests/hooks/auto-tmux-dev.test.js @@ -146,6 +146,37 @@ function runTests() { assert.strictEqual(result.code, 0); })) passed++; else failed++; + // The two dev hooks must agree: pre-bash-dev-server-block.js refuses a dev + // server outside tmux, and this hook is what puts it in tmux. Both now read + // scripts/lib/dev-command.js, so a spelling one recognises cannot be one the + // other misses. Before that, this hook used its own raw-text regex and left + // every quoted or option-separated form undetached. + for (const command of [ + 'npm run "dev"', + "npm run 'dev'", + 'npm --silent run dev', + 'yarn --cwd app dev' + ]) { + (test(`detects a quoted or option-separated dev script: ${command}`, () => { + const result = runScript({ tool_input: { command } }); + const out = JSON.parse(result.stdout); + assert.notStrictEqual( + out.tool_input.command, + command, + `Expected ${command} to be rewritten for a dev session` + ); + }) ? passed++ : failed++); + } + + (test('leaves a non-dev command alone', () => { + for (const command of ['npm run build', 'npm run dev-setup', 'npm test -- --grep dev']) { + const result = runScript({ tool_input: { command } }); + const out = JSON.parse(result.stdout); + assert.strictEqual(out.tool_input.command, command, `Expected ${command} unchanged`); + } + }) ? passed++ : failed++); + + console.log(`\nResults: Passed: ${passed}, Failed: ${failed}`); process.exit(failed > 0 ? 1 : 0); } From e3c14373172201b3ee16d03bfd3f6fec1f38f54b Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Mon, 24 Aug 2026 11:17:21 +0700 Subject: [PATCH 13/78] fix(dev-command): an unknown option must not swallow the script name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit npm accepts any config key as `--key value`, so listing the value-taking options can never be complete. `npm --userconfig /tmp/npmrc run dev` read the script name as `/tmp/npmrc`, and the dev server started outside tmux. Collect every candidate token after the manager word instead of only the first, keeping the known value-taking options (so `--workspace dev` still means a workspace named dev, not the dev script) and the `--` stop. An unknown option's value now gets scanned too: that costs a false positive only when a config value is literally `dev`, and a refusal the user sees beats a guard that silently did nothing. The auto-tmux tests now gate on tmux availability like their neighbours — without tmux the hook passes the command through by design — and assert the hook's exit code before parsing its stdout. --- scripts/lib/dev-command.js | 29 +++++++++----- tests/hooks/auto-tmux-dev.test.js | 40 ++++++++++++------- tests/hooks/pre-bash-dev-server-block.test.js | 11 ++++- 3 files changed, 54 insertions(+), 26 deletions(-) diff --git a/scripts/lib/dev-command.js b/scripts/lib/dev-command.js index 54f3956d4..4fdf91c3b 100644 --- a/scripts/lib/dev-command.js +++ b/scripts/lib/dev-command.js @@ -194,13 +194,23 @@ const MANAGER_OPTIONS_WITH_VALUE = new Set([ ]); /** - * The script a package manager is being asked to run, or null. + * Every candidate script name in a package-manager invocation. * - * Reads the tokens after the manager word: skips options (and the value of an - * option known to take one), skips a `run` / `run-script` keyword, stops at a - * `--` separator, and returns the first remaining token. + * Reads the tokens after the manager word, skipping options, the value of an + * option known to take one, and the `run` / `run-script` keyword, and stopping + * at a `--` separator (everything past it belongs to the script). + * + * It yields ALL remaining bare tokens rather than only the first, because npm + * takes any config key as `--key value`: with only the first token, + * `npm --userconfig /tmp/npmrc run dev` read the script name as `/tmp/npmrc` + * and let the dev server through. Enumerating npm's whole config surface is + * not winnable, so an unknown option simply does not consume its value — the + * value gets scanned too, which costs a false positive only when a config + * value is literally `dev`, and a false positive here is a refusal the user + * sees rather than a guard that silently did nothing. */ -function getRunScriptName(segment, managerWord) { +function getRunScriptNames(segment, managerWord) { + const names = []; let index = 0; let seenManager = false; let skipNextValue = false; @@ -224,7 +234,7 @@ function getRunScriptName(segment, managerWord) { } // Everything after `--` is an argument to the script, not the script name. - if (token === '--') return null; + if (token === '--') break; if (isOptionToken(token)) { if (MANAGER_OPTIONS_WITH_VALUE.has(token)) skipNextValue = true; @@ -233,10 +243,10 @@ function getRunScriptName(segment, managerWord) { if (RUN_KEYWORDS.has(token.toLowerCase())) continue; - return token; + names.push(token); } - return null; + return names; } /** @@ -277,8 +287,7 @@ function isDevServerSegment(segment) { if (TMUX_LAUNCHER.test(segment)) return false; if (!PACKAGE_MANAGERS.has(commandWord)) return false; - const script = getRunScriptName(segment, commandWord); - return Boolean(script) && DEV_SCRIPT_NAME.test(script); + return getRunScriptNames(segment, commandWord).some((name) => DEV_SCRIPT_NAME.test(name)); } /** True when any segment of `command` starts a dev server. */ diff --git a/tests/hooks/auto-tmux-dev.test.js b/tests/hooks/auto-tmux-dev.test.js index f7a1d2e34..d3b2a97f1 100644 --- a/tests/hooks/auto-tmux-dev.test.js +++ b/tests/hooks/auto-tmux-dev.test.js @@ -151,26 +151,36 @@ function runTests() { // scripts/lib/dev-command.js, so a spelling one recognises cannot be one the // other misses. Before that, this hook used its own raw-text regex and left // every quoted or option-separated form undetached. - for (const command of [ - 'npm run "dev"', - "npm run 'dev'", - 'npm --silent run dev', - 'yarn --cwd app dev' - ]) { - (test(`detects a quoted or option-separated dev script: ${command}`, () => { - const result = runScript({ tool_input: { command } }); - const out = JSON.parse(result.stdout); - assert.notStrictEqual( - out.tool_input.command, - command, - `Expected ${command} to be rewritten for a dev session` - ); - }) ? passed++ : failed++); + // Same gate the detection tests above use: on a non-Windows host without + // tmux the hook deliberately passes the command through, so asserting a + // rewrite there would fail for the right reason and the wrong cause. + if (process.platform === 'win32' || tmuxAvailable) { + for (const command of [ + 'npm run "dev"', + "npm run 'dev'", + 'npm --silent run dev', + 'yarn --cwd app dev', + // npm takes any config key as `--key value`, so an unknown option must + // not swallow the script name. + 'npm --userconfig /tmp/npmrc run dev' + ]) { + (test(`detects a quoted or option-separated dev script: ${command}`, () => { + const result = runScript({ tool_input: { command } }); + assert.strictEqual(result.code, 0, `Hook exited ${result.code}: ${result.stderr}`); + const out = JSON.parse(result.stdout); + assert.notStrictEqual( + out.tool_input.command, + command, + `Expected ${command} to be rewritten for a dev session` + ); + }) ? passed++ : failed++); + } } (test('leaves a non-dev command alone', () => { for (const command of ['npm run build', 'npm run dev-setup', 'npm test -- --grep dev']) { const result = runScript({ tool_input: { command } }); + assert.strictEqual(result.code, 0, `Hook exited ${result.code}: ${result.stderr}`); const out = JSON.parse(result.stdout); assert.strictEqual(out.tool_input.command, command, `Expected ${command} unchanged`); } diff --git a/tests/hooks/pre-bash-dev-server-block.test.js b/tests/hooks/pre-bash-dev-server-block.test.js index e87257ba6..090b6a2b8 100644 --- a/tests/hooks/pre-bash-dev-server-block.test.js +++ b/tests/hooks/pre-bash-dev-server-block.test.js @@ -279,7 +279,12 @@ function runTests() { 'yarn run "dev"', 'bun run "dev"', 'npm --silent run dev', - 'yarn --cwd app dev' + 'yarn --cwd app dev', + // npm accepts any config key as `--key value`, so an option the parser does + // not know must not swallow the script name behind it. + 'npm --userconfig /tmp/npmrc run dev', + 'npm --registry https://registry.example run dev', + 'npm --loglevel silly run dev' ]) { (test(`blocks a quoted or option-separated dev script: ${command}`, () => { const result = runScriptAsPosix(command); @@ -298,6 +303,10 @@ function runTests() { // `--` ends the manager's own arguments: everything after it belongs to the // script, so a stray "dev" there is not a dev server. 'npm test -- --grep dev', + // A known value-taking option still consumes its value, so a workspace or + // filter literally named `dev` is not mistaken for the dev script. + 'npm run build --workspace dev', + 'pnpm --filter dev run build', 'tmux new-session -d -s dev "npm run dev"' ]) { (test(`still allows: ${command}`, () => { From e2d742b86d75eef651127d999153604397fb8c36 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Mon, 24 Aug 2026 11:53:55 +0700 Subject: [PATCH 14/78] fix(dev-command): the script is the token after `run`, not any token MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Scanning every candidate token fixed the npm-config bypass but blocked valid commands: `npm run run dev` runs a script called `run` with `dev` as its argument, and `npm run build dev` passes `dev` to build. Both were refused outside tmux. Anchor on the keyword instead. With a `run`, the script is the token right after it and everything later is that script's argument. Without one (`pnpm dev`), the first bare token is the script — held rather than returned, because a `run` further along proves it was an option value, which is what keeps `npm --userconfig /tmp/npmrc run dev` blocked without needing to know npm's whole config surface. --- scripts/lib/dev-command.js | 57 +++++++++++++------ tests/hooks/pre-bash-dev-server-block.test.js | 4 ++ 2 files changed, 43 insertions(+), 18 deletions(-) diff --git a/scripts/lib/dev-command.js b/scripts/lib/dev-command.js index 4fdf91c3b..ba94f807e 100644 --- a/scripts/lib/dev-command.js +++ b/scripts/lib/dev-command.js @@ -194,26 +194,40 @@ const MANAGER_OPTIONS_WITH_VALUE = new Set([ ]); /** - * Every candidate script name in a package-manager invocation. + * The script a package manager is being asked to run, or null. * - * Reads the tokens after the manager word, skipping options, the value of an - * option known to take one, and the `run` / `run-script` keyword, and stopping - * at a `--` separator (everything past it belongs to the script). + * Two shapes, because the managers do not agree: * - * It yields ALL remaining bare tokens rather than only the first, because npm - * takes any config key as `--key value`: with only the first token, - * `npm --userconfig /tmp/npmrc run dev` read the script name as `/tmp/npmrc` - * and let the dev server through. Enumerating npm's whole config surface is - * not winnable, so an unknown option simply does not consume its value — the - * value gets scanned too, which costs a false positive only when a config - * value is literally `dev`, and a false positive here is a refusal the user - * sees rather than a guard that silently did nothing. + * - with a `run` keyword, the script is the token right after it. Anything + * further along is an ARGUMENT to that script: `npm run build dev` runs + * build, and `npm run run dev` runs a script called `run`. + * - without one (`pnpm dev`, `yarn dev`, `bun dev`), the script is the first + * bare token. + * + * Anchoring on the `run` keyword is also what makes npm's config surface + * harmless. npm takes ANY config key as `--key value`, so an unknown option's + * value lands in the token stream — reading the first bare token made + * `npm --userconfig /tmp/npmrc run dev` resolve to `/tmp/npmrc` and let the + * dev server through. Reading the token after `run` steps over it without + * needing to know that `--userconfig` takes a value. + * + * Known value-taking options are still consumed, so `pnpm --filter dev run + * build` is a filter named dev rather than the dev script. + * + * Residual gap, stated rather than hidden: the implicit form combined with an + * unknown value-taking option (`pnpm --unknown value dev`) has no `run` to + * anchor on, so `value` reads as the script name. pnpm/yarn/bun spell their + * options `--flag=value` in practice, and npm — the one manager with an + * open-ended config surface — has no implicit form at all. */ -function getRunScriptNames(segment, managerWord) { - const names = []; +function getRunScriptName(segment, managerWord) { let index = 0; let seenManager = false; + let seenRunKeyword = false; let skipNextValue = false; + // The implicit-form candidate. Held rather than returned, because a `run` + // further along means this token was an option value, not the script. + let implicitScript = null; while (index < segment.length) { const parsed = readToken(segment, index); @@ -241,12 +255,18 @@ function getRunScriptNames(segment, managerWord) { continue; } - if (RUN_KEYWORDS.has(token.toLowerCase())) continue; + if (!seenRunKeyword && RUN_KEYWORDS.has(token.toLowerCase())) { + seenRunKeyword = true; + continue; + } - names.push(token); + // After a `run` keyword this token IS the script it names. + if (seenRunKeyword) return token; + + if (implicitScript === null) implicitScript = token; } - return names; + return implicitScript; } /** @@ -287,7 +307,8 @@ function isDevServerSegment(segment) { if (TMUX_LAUNCHER.test(segment)) return false; if (!PACKAGE_MANAGERS.has(commandWord)) return false; - return getRunScriptNames(segment, commandWord).some((name) => DEV_SCRIPT_NAME.test(name)); + const script = getRunScriptName(segment, commandWord); + return Boolean(script) && DEV_SCRIPT_NAME.test(script); } /** True when any segment of `command` starts a dev server. */ diff --git a/tests/hooks/pre-bash-dev-server-block.test.js b/tests/hooks/pre-bash-dev-server-block.test.js index 090b6a2b8..776bf8ef7 100644 --- a/tests/hooks/pre-bash-dev-server-block.test.js +++ b/tests/hooks/pre-bash-dev-server-block.test.js @@ -307,6 +307,10 @@ function runTests() { // filter literally named `dev` is not mistaken for the dev script. 'npm run build --workspace dev', 'pnpm --filter dev run build', + // After the `run` keyword the next token IS the script; everything past it + // is that script's argument. `npm run run dev` runs a script called `run`. + 'npm run run dev', + 'npm run build dev', 'tmux new-session -d -s dev "npm run dev"' ]) { (test(`still allows: ${command}`, () => { From 9826c934ff4ab1b50d3cf88c2f4c7182a075c8d7 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Mon, 24 Aug 2026 14:21:11 +0700 Subject: [PATCH 15/78] fix(dev-command): resolve the script by the manager's own grammar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two gaps left by the held-candidate approach: pnpm dev run build allow -- runs `dev`, passing it `run build` pnpm --loglevel debug dev allow -- `debug` read as the script name npm has no implicit script form (`npm dev` is not a command), so for npm a bare token before `run` is always an option value — which is what keeps `npm --userconfig /tmp/npmrc run dev` blocked without enumerating npm's config surface. pnpm/yarn/bun do accept `pnpm dev`, so for them the FIRST bare token is the script and everything after it, `run` included, is its argument. Their option sets are finite, so the value-taking list is extended with the ones that can precede an implicit script (--loglevel, --reporter, --store-dir, --registry, --network-timeout, --env-file, ...). --- scripts/lib/dev-command.js | 38 ++++++++++++++----- tests/hooks/pre-bash-dev-server-block.test.js | 10 ++++- 2 files changed, 38 insertions(+), 10 deletions(-) diff --git a/scripts/lib/dev-command.js b/scripts/lib/dev-command.js index ba94f807e..8e65e3598 100644 --- a/scripts/lib/dev-command.js +++ b/scripts/lib/dev-command.js @@ -190,9 +190,31 @@ const MANAGER_OPTIONS_WITH_VALUE = new Set([ '--package', '-p', '--config', - '-c' + '-c', + // pnpm / yarn / bun accept a script without `run`, so for them a value-taking + // option IS load-bearing: `pnpm --loglevel debug dev` would otherwise read + // `debug` as the script name. Their option sets are finite and documented, + // unlike npm's config surface — npm needs no entry here because its script is + // only ever read after the `run` keyword (see getRunScriptName). + '--loglevel', + '--reporter', + '--store-dir', + '--virtual-store-dir', + '--modules-dir', + '--lockfile-dir', + '--registry', + '--network-timeout', + '--modules-folder', + '--cache-folder', + '--mutex', + '--env-file' ]); +// npm has no implicit script form — `npm dev` is not a command — so a bare +// token before `run` is an option's value, never the script. pnpm, yarn and +// bun do accept `pnpm dev`, so for them the first bare token IS the script. +const MANAGERS_REQUIRING_RUN = new Set(['npm']); + /** * The script a package manager is being asked to run, or null. * @@ -221,13 +243,11 @@ const MANAGER_OPTIONS_WITH_VALUE = new Set([ * open-ended config surface — has no implicit form at all. */ function getRunScriptName(segment, managerWord) { + const requiresRunKeyword = MANAGERS_REQUIRING_RUN.has(managerWord); let index = 0; let seenManager = false; let seenRunKeyword = false; let skipNextValue = false; - // The implicit-form candidate. Held rather than returned, because a `run` - // further along means this token was an option value, not the script. - let implicitScript = null; while (index < segment.length) { const parsed = readToken(segment, index); @@ -260,13 +280,13 @@ function getRunScriptName(segment, managerWord) { continue; } - // After a `run` keyword this token IS the script it names. - if (seenRunKeyword) return token; - - if (implicitScript === null) implicitScript = token; + // After a `run` keyword this token IS the script it names; for a manager + // that accepts the implicit form, the first bare token is the script and + // everything after it — including a later `run` — is its argument. + if (seenRunKeyword || !requiresRunKeyword) return token; } - return implicitScript; + return null; } /** diff --git a/tests/hooks/pre-bash-dev-server-block.test.js b/tests/hooks/pre-bash-dev-server-block.test.js index 776bf8ef7..19b36c835 100644 --- a/tests/hooks/pre-bash-dev-server-block.test.js +++ b/tests/hooks/pre-bash-dev-server-block.test.js @@ -284,7 +284,15 @@ function runTests() { // not know must not swallow the script name behind it. 'npm --userconfig /tmp/npmrc run dev', 'npm --registry https://registry.example run dev', - 'npm --loglevel silly run dev' + 'npm --loglevel silly run dev', + // pnpm/yarn/bun take a script without `run`, so a value-taking option of + // theirs must not be read as the script name. + 'pnpm --loglevel debug dev', + 'yarn --network-timeout 60000 dev', + 'bun --env-file .env dev', + // The implicit script wins over anything after it: this runs `dev` and + // passes it `run build`. + 'pnpm dev run build' ]) { (test(`blocks a quoted or option-separated dev script: ${command}`, () => { const result = runScriptAsPosix(command); From 4bf30e68229069709c225279ceed9ed08aebec22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Jes=C3=BAs=20Pe=C3=B1a=20Rodr=C3=ADguez?= Date: Mon, 24 Aug 2026 11:38:24 +0200 Subject: [PATCH 16/78] fix(skills): correct Django Celery delivery guidance --- skills/django-celery/SKILL.md | 109 ++++++++++++------ .../django-celery/references/reliability.md | 55 +++++++++ tests/skills/django-celery.test.js | 68 +++++++++++ 3 files changed, 198 insertions(+), 34 deletions(-) create mode 100644 skills/django-celery/references/reliability.md create mode 100644 tests/skills/django-celery.test.js diff --git a/skills/django-celery/SKILL.md b/skills/django-celery/SKILL.md index 0ae987755..060e868f1 100644 --- a/skills/django-celery/SKILL.md +++ b/skills/django-celery/SKILL.md @@ -70,7 +70,6 @@ CELERY_TASK_TRACK_STARTED = True CELERY_TASK_TIME_LIMIT = 30 * 60 # Hard limit: 30 min CELERY_TASK_SOFT_TIME_LIMIT = 25 * 60 # Soft limit: sends SoftTimeLimitExceeded CELERY_WORKER_PREFETCH_MULTIPLIER = 1 # Prevent worker hoarding long tasks -CELERY_TASK_ACKS_LATE = True # Re-queue on worker crash # Result persistence CELERY_RESULT_EXPIRES = 60 * 60 * 24 # Keep results 24 hours @@ -199,6 +198,12 @@ def generate_pdf_report(self, report_id: int) -> str: raise ``` +### Delivery Guarantees + +Late acknowledgement, worker-loss redelivery, and commit-aware publication are separate +choices. Read [Delivery Reliability](references/reliability.md) before +changing acknowledgement settings or publishing tasks from a database transaction. + ## Calling Tasks ```python @@ -219,6 +224,24 @@ sync_contact_to_crm.apply_async(args=[contact.pk], queue='high_priority') result = generate_pdf_report.apply(args=[report.pk]) ``` +### Publish After the Database Commits + +A task published inside a Django transaction can run before its rows are visible or +can remain queued after the transaction rolls back. Use `delay_on_commit()` with +Celery 5.4 or newer, or `transaction.on_commit()` when `apply_async()` options or +older versions require it. See +[Delivery Reliability](references/reliability.md#publish-after-the-database-commits) +for version, task-ID, custom-base, and transactional-outbox boundaries. + +```python +from django.db import transaction + +@transaction.atomic +def create_user(request): + user = User.objects.create(username=request.POST['username']) + send_welcome_email.delay_on_commit(user.pk) +``` + ## Beat Scheduling (Periodic Tasks) ### Code-Defined Schedule @@ -266,6 +289,11 @@ PeriodicTask.objects.update_or_create( ) ``` +Run only one scheduler for a given schedule to avoid duplicate publications. That +does not prevent execution overlap: periodic tasks may overlap when one run lasts +longer than its interval. Use an ownership-safe locking strategy or a database +uniqueness constraint, and keep the task idempotent in case a lock expires. + ## Canvas: Chaining and Grouping Tasks ```python @@ -294,7 +322,7 @@ result = chord( result.delay() ``` -## Error Handling and Dead Letter Queue +## Failure Monitoring ```python # apps/core/tasks.py @@ -314,29 +342,9 @@ def on_task_failure(sender, task_id, exception, args, kwargs, traceback, einfo, sentry_sdk.capture_exception(exception) ``` -```python -# Route failed tasks to dead-letter queue after max retries -@shared_task( - bind=True, - max_retries=3, - name='payments.charge_card', -) -def charge_card(self, order_id: int) -> None: - from apps.payments.models import Order, FailedCharge - - try: - _do_charge(order_id) - except Exception as exc: - if self.request.retries >= self.max_retries: - # Persist to dead-letter table for manual review - FailedCharge.objects.create( - order_id=order_id, - error=str(exc), - task_id=self.request.id, - ) - return # Don't raise — task is permanently failed - raise self.retry(exc=exc) -``` +Returning normally after recording a final error makes Celery record `SUCCESS`. +Persist the failure and re-raise instead. Broker dead-letter queues live at the queue +and exchange layer; they are not equivalent to a Django model used as an error log. ## Testing Celery Tasks @@ -362,7 +370,11 @@ class TestSendWelcomeEmail: send_welcome_email(99999) # Non-existent user — must not raise ``` -### Integration Testing with CELERY_TASK_ALWAYS_EAGER +### Django Integration Path with Eager Mode + +Eager mode is a worker emulation, not a worker integration test. Use it to verify +that a Django request selects the expected task and arguments, but do not use it as +evidence for serialization, routing, acknowledgement, retry, or worker-loss behavior. ```python # config/settings/test.py @@ -382,6 +394,14 @@ def test_registration_triggers_welcome_email(client): mock_email.send_welcome.assert_called_once() ``` +### Worker Integration with a Real Broker + +Use Celery's `celery_worker` pytest fixture with a real broker and result backend for +the delivery boundary. Cover serialization, routing, retry behavior, and any +acknowledgement or redelivery options the application enables. Keep this suite +separate from fast unit tests so a passing eager-mode test is never mistaken for +worker evidence. + ### Testing Retries ```python @@ -428,14 +448,25 @@ def charge_and_fulfill(order_id): order.charge() # May charge twice if task retries! order.fulfill() -# GOOD: Idempotent with status guard -@shared_task +# GOOD: External idempotency key plus a short database transaction +from django.db import transaction +from apps.payments.gateway import gateway + +@shared_task(acks_late=True) def charge_and_fulfill(order_id): - order = Order.objects.select_for_update().get(pk=order_id) + order = Order.objects.only('status').get(pk=order_id) if order.status != Order.Status.PENDING: - return # Already processed - order.charge() - order.fulfill() + return + + # Keep network I/O outside the database transaction. The provider must return + # the same charge for repeated calls with this stable idempotency key. + receipt = gateway.charge(order_id, idempotency_key=f'order:{order_id}') + + with transaction.atomic(): + order = Order.objects.select_for_update().get(pk=order_id) + if order.status == Order.Status.PENDING: + order.record_charge(receipt) + order.fulfill() ``` ## Production Checklist @@ -443,13 +474,23 @@ def charge_and_fulfill(order_id): | Check | Setting | |-------|---------| | Worker restarts on crash | `supervisord` or `systemd` unit | -| `CELERY_TASK_ACKS_LATE = True` | Re-queue tasks on worker crash | +| Late acknowledgement | Per task, only after proving idempotency; duplicates remain possible | +| Worker-loss redelivery | `task_reject_on_worker_lost`, opt in only with poison-task protection | | `CELERY_WORKER_PREFETCH_MULTIPLIER = 1` | Fair distribution of long tasks | | Separate queues per priority | `-Q default,high_priority,low_priority` | | `CELERY_TASK_SOFT_TIME_LIMIT` set | Graceful timeout before hard kill | | Sentry integration | Capture all `task_failure` signals | | Flower or other monitor | Visibility into queue depths | -| Beat runs on single node only | Prevents duplicate scheduled task execution | +| Beat runs on single node only | Prevents duplicate scheduled task publication | +| Periodic-task locking | Prevents overlapping execution when required | + +## References + +- [Celery task acknowledgement and idempotency](https://docs.celeryq.dev/en/stable/userguide/tasks.html) +- [Celery configuration defaults](https://docs.celeryq.dev/en/stable/userguide/configuration.html) +- [Celery with Django transaction handling](https://docs.celeryq.dev/en/stable/django/first-steps-with-django.html) +- [Celery periodic tasks](https://docs.celeryq.dev/en/stable/userguide/periodic-tasks.html) +- [Celery testing guide](https://docs.celeryq.dev/en/stable/userguide/testing.html) ## Related Skills diff --git a/skills/django-celery/references/reliability.md b/skills/django-celery/references/reliability.md new file mode 100644 index 000000000..4a663afda --- /dev/null +++ b/skills/django-celery/references/reliability.md @@ -0,0 +1,55 @@ +# Delivery Reliability + +Read this reference when changing acknowledgement settings, worker-loss behavior, +or task publication around Django database transactions. + +## Acknowledgement and Worker Loss + +Celery acknowledges task messages before execution by default. Opt in to late +acknowledgement only for idempotent tasks that are safe to execute more than once: + +```python +@shared_task( + name='orders.mark_shipped', + acks_late=True, +) +def mark_order_shipped(order_id: int, tracking_number: str) -> None: + # Use an idempotent implementation such as the guarded update in SKILL.md. + ... +``` + +Late acknowledgement means the task may execute more than once if delivery is +interrupted. It does not by itself guarantee redelivery when a worker child exits +abruptly. Celery acknowledges worker-loss messages unless +`task_reject_on_worker_lost` (or Django's +`CELERY_TASK_REJECT_ON_WORKER_LOST`) is enabled. That option can cause message loops +for poison tasks, so enable it only after validating idempotency and monitoring the +redelivery path. Failure and timeout acknowledgement behavior is controlled +separately by `task_acks_on_failure_or_timeout`. + +## Publish After the Database Commits + +With Celery 5.4 or newer, `delay_on_commit()` is available for tasks based on +`DjangoTask`. Custom task base classes must inherit from `DjangoTask` to expose this +API. The method does not return a task ID because the message is not published until +commit. + +For older Celery versions or when `apply_async()` options are required, register the +publication explicitly: + +```python +from functools import partial +from django.db import transaction + +transaction.on_commit( + partial( + sync_contact_to_crm.apply_async, + args=[contact.pk], + queue='high_priority', + ) +) +``` + +An on-commit callback avoids publication on rollback, but it does not make the +database commit and broker publish atomic. If task delivery must not be lost when a +publish fails after commit, use a transactional outbox with a separate publisher. diff --git a/tests/skills/django-celery.test.js b/tests/skills/django-celery.test.js new file mode 100644 index 000000000..7cda1aece --- /dev/null +++ b/tests/skills/django-celery.test.js @@ -0,0 +1,68 @@ +'use strict'; + +const assert = require('assert'); +const fs = require('fs'); +const path = require('path'); + +const repoRoot = path.resolve(__dirname, '..', '..'); +const skillPath = path.join(repoRoot, 'skills', 'django-celery', 'SKILL.md'); +const reliabilityPath = path.join(repoRoot, 'skills', 'django-celery', 'references', 'reliability.md'); +const skill = fs.readFileSync(skillPath, 'utf8'); +const reliability = fs.readFileSync(reliabilityPath, 'utf8'); +const guidance = `${skill}\n${reliability}`; + +let passed = 0; +let failed = 0; + +function test(name, fn) { + try { + fn(); + console.log(` ✓ ${name}`); + passed += 1; + } catch (error) { + console.log(` ✗ ${name}`); + console.log(` Error: ${error.message}`); + failed += 1; + } +} + +console.log('\n=== Django Celery skill tests ===\n'); + +test('documents transaction-aware task publication', () => { + assert.match(skill, /references\/reliability\.md/); + assert.match(guidance, /delay_on_commit/); + assert.match(guidance, /transaction\.on_commit/); + assert.match(guidance, /does not return (?:a )?task ID/i); + assert.match(guidance, /transactional outbox/i); +}); + +test('states the worker-loss boundary for late acknowledgements', () => { + assert.doesNotMatch(guidance, /CELERY_TASK_ACKS_LATE\s*=\s*True[^\n]*re-queue on worker crash/i); + assert.match(guidance, /task_reject_on_worker_lost/i); + assert.match(guidance, /message loops/i); + assert.match(guidance, /idempotent/i); +}); + +test('keeps every select_for_update example inside an atomic block', () => { + const pythonBlocks = [...skill.matchAll(/```python\n([\s\S]*?)```/g)].map(match => match[1]); + const lockingExamples = pythonBlocks.filter(block => block.includes('select_for_update')); + + assert.ok(lockingExamples.length > 0, 'Expected at least one select_for_update example'); + for (const block of lockingExamples) { + assert.match(block, /transaction\.atomic/); + } +}); + +test('distinguishes eager execution from real worker integration', () => { + assert.match(skill, /eager mode[^\n]*(?:emulat|not a worker integration)/i); + assert.match(skill, /celery_worker/); + assert.match(skill, /real broker/i); +}); + +test('warns that a single beat scheduler does not prevent task overlap', () => { + assert.match(skill, /periodic tasks? (?:can|may) overlap/i); + assert.match(skill, /locking strategy/i); +}); + +console.log(`\nResults: Passed: ${passed}, Failed: ${failed}`); +process.exit(failed > 0 ? 1 : 0); From 5f0df4196f806530a734b026a9788002f63f5afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Jes=C3=BAs=20Pe=C3=B1a=20Rodr=C3=ADguez?= Date: Mon, 24 Aug 2026 12:09:20 +0200 Subject: [PATCH 17/78] fix(skills): harden Django Celery reliability contracts --- skills/django-celery/SKILL.md | 48 +++--- .../django-celery/references/reliability.md | 3 +- tests/skills/django-celery.test.js | 150 ++++++++++++++++-- 3 files changed, 160 insertions(+), 41 deletions(-) diff --git a/skills/django-celery/SKILL.md b/skills/django-celery/SKILL.md index 060e868f1..f3bdcc392 100644 --- a/skills/django-celery/SKILL.md +++ b/skills/django-celery/SKILL.md @@ -227,18 +227,17 @@ result = generate_pdf_report.apply(args=[report.pk]) ### Publish After the Database Commits A task published inside a Django transaction can run before its rows are visible or -can remain queued after the transaction rolls back. Use `delay_on_commit()` with -Celery 5.4 or newer, or `transaction.on_commit()` when `apply_async()` options or -older versions require it. See +remain queued after rollback. Use `delay_on_commit()` with Celery 5.4 or newer; use +`transaction.on_commit()` for `apply_async()` options or older versions. See [Delivery Reliability](references/reliability.md#publish-after-the-database-commits) -for version, task-ID, custom-base, and transactional-outbox boundaries. +for custom-base, task-ID, and transactional-outbox boundaries. ```python from django.db import transaction @transaction.atomic -def create_user(request): - user = User.objects.create(username=request.POST['username']) +def create_user(validated_username: str): + user = User.objects.create(username=validated_username) send_welcome_email.delay_on_commit(user.pk) ``` @@ -289,10 +288,10 @@ PeriodicTask.objects.update_or_create( ) ``` -Run only one scheduler for a given schedule to avoid duplicate publications. That -does not prevent execution overlap: periodic tasks may overlap when one run lasts -longer than its interval. Use an ownership-safe locking strategy or a database -uniqueness constraint, and keep the task idempotent in case a lock expires. +Run only one scheduler for a given schedule to avoid duplicate publications, but this +does not prevent execution overlap: periodic tasks may overlap. Atomically claim an +active-run lease with an owner and expiry or recovery path; a unique schedule row +alone does not serialize executions. Keep the task idempotent if the lease expires. ## Canvas: Chaining and Grouping Tasks @@ -342,9 +341,8 @@ def on_task_failure(sender, task_id, exception, args, kwargs, traceback, einfo, sentry_sdk.capture_exception(exception) ``` -Returning normally after recording a final error makes Celery record `SUCCESS`. -Persist the failure and re-raise instead. Broker dead-letter queues live at the queue -and exchange layer; they are not equivalent to a Django model used as an error log. +Returning after recording a final error makes Celery record `SUCCESS`; persist and +re-raise instead. Broker dead-letter queues are not Django model error logs. ## Testing Celery Tasks @@ -448,25 +446,27 @@ def charge_and_fulfill(order_id): order.charge() # May charge twice if task retries! order.fulfill() -# GOOD: External idempotency key plus a short database transaction +# GOOD: Claim ownership before external I/O, then finalize only as that owner from django.db import transaction from apps.payments.gateway import gateway -@shared_task(acks_late=True) -def charge_and_fulfill(order_id): - order = Order.objects.only('status').get(pk=order_id) - if order.status != Order.Status.PENDING: - return +@shared_task(bind=True, acks_late=True) +def charge_and_fulfill(self, order_id): + attempt_id = self.request.id # Stable across Celery retry and redelivery + with transaction.atomic(): + order = Order.objects.select_for_update().get(pk=order_id) + if not order.claim_or_resume_charge(attempt_id): + return - # Keep network I/O outside the database transaction. The provider must return - # the same charge for repeated calls with this stable idempotency key. + # The adapter validates provider data and returns the same charge on retry. receipt = gateway.charge(order_id, idempotency_key=f'order:{order_id}') with transaction.atomic(): order = Order.objects.select_for_update().get(pk=order_id) - if order.status == Order.Status.PENDING: - order.record_charge(receipt) - order.fulfill() + if order.charge_attempt_id != attempt_id: + return + order.record_charge(receipt) + order.fulfill() ``` ## Production Checklist diff --git a/skills/django-celery/references/reliability.md b/skills/django-celery/references/reliability.md index 4a663afda..997f166d3 100644 --- a/skills/django-celery/references/reliability.md +++ b/skills/django-celery/references/reliability.md @@ -25,7 +25,8 @@ abruptly. Celery acknowledges worker-loss messages unless `CELERY_TASK_REJECT_ON_WORKER_LOST`) is enabled. That option can cause message loops for poison tasks, so enable it only after validating idempotency and monitoring the redelivery path. Failure and timeout acknowledgement behavior is controlled -separately by `task_acks_on_failure_or_timeout`. +separately by `task_acks_on_failure_or_timeout`, which applies only to tasks using +late acknowledgement. ## Publish After the Database Commits diff --git a/tests/skills/django-celery.test.js b/tests/skills/django-celery.test.js index 7cda1aece..a55881af8 100644 --- a/tests/skills/django-celery.test.js +++ b/tests/skills/django-celery.test.js @@ -9,7 +9,6 @@ const skillPath = path.join(repoRoot, 'skills', 'django-celery', 'SKILL.md'); const reliabilityPath = path.join(repoRoot, 'skills', 'django-celery', 'references', 'reliability.md'); const skill = fs.readFileSync(skillPath, 'utf8'); const reliability = fs.readFileSync(reliabilityPath, 'utf8'); -const guidance = `${skill}\n${reliability}`; let passed = 0; let failed = 0; @@ -26,42 +25,161 @@ function test(name, fn) { } } +function getMarkdownSection(document, heading) { + const lines = document.split('\n'); + const start = lines.indexOf(heading); + assert.notStrictEqual(start, -1, `Missing section: ${heading}`); + const level = heading.match(/^#+/)[0].length; + let end = start + 1; + let inFence = false; + + while (end < lines.length) { + if (lines[end].startsWith('```')) { + inFence = !inFence; + end += 1; + continue; + } + const nextHeading = inFence ? null : lines[end].match(/^(#+)\s/); + if (nextHeading?.[1].length <= level) { + break; + } + end += 1; + } + + return lines.slice(start + 1, end).join('\n'); +} + +function assertMarkersInOrder(source, markers) { + markers.reduce((previousIndex, marker) => { + const index = source.indexOf(marker, previousIndex + 1); + assert.ok(index > previousIndex, `Expected ${marker} after the previous marker`); + return index; + }, -1); +} + +function findUnprotectedSelectForUpdateLines(source) { + const blocks = []; + const atomicDecoratorIndents = new Set(); + const unsafeLines = []; + const lines = source.split('\n'); + + for (const [index, line] of lines.entries()) { + const trimmed = line.trim(); + if (!trimmed || trimmed.startsWith('#')) { + continue; + } + + const whitespace = line.match(/^[ \t]*/)[0]; + const indent = whitespace.replaceAll('\t', ' ').length; + while (blocks.length > 0 && indent <= blocks[blocks.length - 1].indent) { + blocks.pop(); + } + + if (trimmed.startsWith('@')) { + if (/^@transaction\.atomic(?:\(\))?$/.test(trimmed)) { + atomicDecoratorIndents.add(indent); + } + continue; + } + + if (trimmed.includes('.select_for_update(') && !blocks.some(block => block.atomic)) { + unsafeLines.push(index + 1); + } + + if (!trimmed.endsWith(':')) { + atomicDecoratorIndents.delete(indent); + continue; + } + + const isFunction = /^(?:async\s+)?def\s+/.test(trimmed); + const isAtomicWith = /^with\s+transaction\.atomic\([^)]*\):$/.test(trimmed); + const isAtomicFunction = isFunction && atomicDecoratorIndents.has(indent); + blocks.push({ indent, atomic: isAtomicWith || isAtomicFunction }); + atomicDecoratorIndents.delete(indent); + } + + return unsafeLines; +} + console.log('\n=== Django Celery skill tests ===\n'); test('documents transaction-aware task publication', () => { - assert.match(skill, /references\/reliability\.md/); - assert.match(guidance, /delay_on_commit/); - assert.match(guidance, /transaction\.on_commit/); - assert.match(guidance, /does not return (?:a )?task ID/i); - assert.match(guidance, /transactional outbox/i); + const skillPublication = getMarkdownSection(skill, '### Publish After the Database Commits'); + const reliabilityPublication = getMarkdownSection(reliability, '## Publish After the Database Commits'); + + assert.match(skillPublication, /references\/reliability\.md/); + assert.match(skillPublication, /delay_on_commit/); + assert.match(skillPublication, /validated_username/); + assert.doesNotMatch(skillPublication, /request\.POST/); + assert.match(reliabilityPublication, /transaction\.on_commit/); + assert.match(reliabilityPublication, /does not return (?:a )?task ID/i); + assert.match(reliabilityPublication, /transactional outbox/i); }); test('states the worker-loss boundary for late acknowledgements', () => { - assert.doesNotMatch(guidance, /CELERY_TASK_ACKS_LATE\s*=\s*True[^\n]*re-queue on worker crash/i); - assert.match(guidance, /task_reject_on_worker_lost/i); - assert.match(guidance, /message loops/i); - assert.match(guidance, /idempotent/i); + const acknowledgements = getMarkdownSection(reliability, '## Acknowledgement and Worker Loss'); + + assert.doesNotMatch(acknowledgements, /late ack(?:nowledgement)?[^\n]*re-queue on worker crash/i); + assert.match( + acknowledgements, + /Late acknowledgement[\s\S]*does not by itself guarantee redelivery[\s\S]*task_reject_on_worker_lost/i, + ); + assert.match(acknowledgements, /message loops/i); + assert.match(acknowledgements, /idempotent/i); + assert.match(acknowledgements, /task_acks_on_failure_or_timeout[\s\S]*only[\s\S]*late acknowledgement/i); }); test('keeps every select_for_update example inside an atomic block', () => { const pythonBlocks = [...skill.matchAll(/```python\n([\s\S]*?)```/g)].map(match => match[1]); const lockingExamples = pythonBlocks.filter(block => block.includes('select_for_update')); + const invalidExample = [ + "order = Order.objects.select_for_update().get(pk=order_id)", + 'with transaction.atomic():', + ' audit_order(order)', + ].join('\n'); assert.ok(lockingExamples.length > 0, 'Expected at least one select_for_update example'); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(invalidExample), [1]); for (const block of lockingExamples) { - assert.match(block, /transaction\.atomic/); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(block), []); } }); test('distinguishes eager execution from real worker integration', () => { - assert.match(skill, /eager mode[^\n]*(?:emulat|not a worker integration)/i); - assert.match(skill, /celery_worker/); - assert.match(skill, /real broker/i); + const eagerMode = getMarkdownSection(skill, '### Django Integration Path with Eager Mode'); + const realWorker = getMarkdownSection(skill, '### Worker Integration with a Real Broker'); + + assert.match(eagerMode, /worker emulation, not a worker integration test/i); + assert.match( + eagerMode, + /do not use it as[\s\S]*evidence for serialization, routing, acknowledgement, retry, or worker-loss behavior/i, + ); + assert.match(realWorker, /celery_worker/); + assert.match(realWorker, /real broker/i); }); test('warns that a single beat scheduler does not prevent task overlap', () => { - assert.match(skill, /periodic tasks? (?:can|may) overlap/i); - assert.match(skill, /locking strategy/i); + const beat = getMarkdownSection(skill, '## Beat Scheduling (Periodic Tasks)'); + + assert.match(beat, /only one scheduler[\s\S]*avoid duplicate publications/i); + assert.match(beat, /does not prevent execution overlap[\s\S]*periodic tasks? (?:can|may) overlap/i); + assert.match(beat, /active-run lease[\s\S]*owner[\s\S]*(?:expiry|recovery)/i); + assert.match(beat, /unique schedule row[\s\S]*alone does not serialize executions/i); + assert.match(beat, /idempotent/i); +}); + +test('claims and owns a payment attempt around external I/O', () => { + const antiPatterns = getMarkdownSection(skill, '## Anti-Patterns'); + + assertMarkersInOrder(antiPatterns, [ + '.select_for_update(', + 'claim_or_resume_charge', + 'gateway.charge', + '.select_for_update(', + 'charge_attempt_id', + 'record_charge', + ]); + assert.match(antiPatterns, /adapter validates provider data/i); }); console.log(`\nResults: Passed: ${passed}, Failed: ${failed}`); From 84c2f30e2a87ec689e5c50d9904bc33708bd27c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Jes=C3=BAs=20Pe=C3=B1a=20Rodr=C3=ADguez?= Date: Mon, 24 Aug 2026 12:48:09 +0200 Subject: [PATCH 18/78] test(skills): harden Celery delivery and lock checks --- tests/skills/django-celery.test.js | 35 +++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/tests/skills/django-celery.test.js b/tests/skills/django-celery.test.js index a55881af8..18cd18acf 100644 --- a/tests/skills/django-celery.test.js +++ b/tests/skills/django-celery.test.js @@ -57,6 +57,19 @@ function assertMarkersInOrder(source, markers) { }, -1); } +function hasActiveAtomicScope(blocks) { + let executionScopeStart = 0; + + for (let index = blocks.length - 1; index >= 0; index -= 1) { + if (blocks[index].callable) { + executionScopeStart = index; + break; + } + } + + return blocks.slice(executionScopeStart).some(block => block.atomic); +} + function findUnprotectedSelectForUpdateLines(source) { const blocks = []; const atomicDecoratorIndents = new Set(); @@ -76,13 +89,13 @@ function findUnprotectedSelectForUpdateLines(source) { } if (trimmed.startsWith('@')) { - if (/^@transaction\.atomic(?:\(\))?$/.test(trimmed)) { + if (/^@transaction\.atomic(?:\([^)]*\))?$/.test(trimmed)) { atomicDecoratorIndents.add(indent); } continue; } - if (trimmed.includes('.select_for_update(') && !blocks.some(block => block.atomic)) { + if (trimmed.includes('.select_for_update(') && !hasActiveAtomicScope(blocks)) { unsafeLines.push(index + 1); } @@ -94,7 +107,7 @@ function findUnprotectedSelectForUpdateLines(source) { const isFunction = /^(?:async\s+)?def\s+/.test(trimmed); const isAtomicWith = /^with\s+transaction\.atomic\([^)]*\):$/.test(trimmed); const isAtomicFunction = isFunction && atomicDecoratorIndents.has(indent); - blocks.push({ indent, atomic: isAtomicWith || isAtomicFunction }); + blocks.push({ indent, atomic: isAtomicWith || isAtomicFunction, callable: isFunction }); atomicDecoratorIndents.delete(indent); } @@ -137,9 +150,22 @@ test('keeps every select_for_update example inside an atomic block', () => { 'with transaction.atomic():', ' audit_order(order)', ].join('\n'); + const deferredCallableExample = [ + 'with transaction.atomic():', + ' def load_order():', + ' return Order.objects.select_for_update().get(pk=order_id)', + 'load_order()', + ].join('\n'); + const atomicCallableExample = [ + "@transaction.atomic(using='default')", + 'def load_order():', + ' return Order.objects.select_for_update().get(pk=order_id)', + ].join('\n'); assert.ok(lockingExamples.length > 0, 'Expected at least one select_for_update example'); assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(invalidExample), [1]); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(deferredCallableExample), [3]); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(atomicCallableExample), []); for (const block of lockingExamples) { assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(block), []); } @@ -171,10 +197,13 @@ test('warns that a single beat scheduler does not prevent task overlap', () => { test('claims and owns a payment attempt around external I/O', () => { const antiPatterns = getMarkdownSection(skill, '## Anti-Patterns'); + assert.match(antiPatterns, /@shared_task\(bind=True,\s*acks_late=True\)/); assertMarkersInOrder(antiPatterns, [ + 'self.request.id', '.select_for_update(', 'claim_or_resume_charge', 'gateway.charge', + "idempotency_key=f'order:{order_id}'", '.select_for_update(', 'charge_attempt_id', 'record_charge', From dfb41283756c442a8815e0d44262d7e5fda0888a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Jes=C3=BAs=20Pe=C3=B1a=20Rodr=C3=ADguez?= Date: Mon, 24 Aug 2026 13:31:03 +0200 Subject: [PATCH 19/78] test(skills): harden transaction scope regression cases --- tests/skills/django-celery.test.js | 163 +++++++++++++++++++++-------- 1 file changed, 121 insertions(+), 42 deletions(-) diff --git a/tests/skills/django-celery.test.js b/tests/skills/django-celery.test.js index 18cd18acf..c58b79ee6 100644 --- a/tests/skills/django-celery.test.js +++ b/tests/skills/django-celery.test.js @@ -70,48 +70,110 @@ function hasActiveAtomicScope(blocks) { return blocks.slice(executionScopeStart).some(block => block.atomic); } -function findUnprotectedSelectForUpdateLines(source) { - const blocks = []; - const atomicDecoratorIndents = new Set(); - const unsafeLines = []; - const lines = source.split('\n'); +function withoutSetValue(values, target) { + return new Set([...values].filter(value => value !== target)); +} - for (const [index, line] of lines.entries()) { - const trimmed = line.trim(); - if (!trimmed || trimmed.startsWith('#')) { - continue; - } - - const whitespace = line.match(/^[ \t]*/)[0]; - const indent = whitespace.replaceAll('\t', ' ').length; - while (blocks.length > 0 && indent <= blocks[blocks.length - 1].indent) { - blocks.pop(); - } - - if (trimmed.startsWith('@')) { - if (/^@transaction\.atomic(?:\([^)]*\))?$/.test(trimmed)) { - atomicDecoratorIndents.add(indent); - } - continue; - } - - if (trimmed.includes('.select_for_update(') && !hasActiveAtomicScope(blocks)) { - unsafeLines.push(index + 1); - } - - if (!trimmed.endsWith(':')) { - atomicDecoratorIndents.delete(indent); - continue; - } - - const isFunction = /^(?:async\s+)?def\s+/.test(trimmed); - const isAtomicWith = /^with\s+transaction\.atomic\([^)]*\):$/.test(trimmed); - const isAtomicFunction = isFunction && atomicDecoratorIndents.has(indent); - blocks.push({ indent, atomic: isAtomicWith || isAtomicFunction, callable: isFunction }); - atomicDecoratorIndents.delete(indent); +function getPythonLineDetails(line) { + const trimmed = line.trim(); + if (!trimmed || trimmed.startsWith('#')) { + return null; } - return unsafeLines; + const whitespace = line.match(/^[ \t]*/)[0]; + return { + code: trimmed.replace(/\s+#.*$/, ''), + indent: whitespace.replaceAll('\t', ' ').length, + }; +} + +function trimBlocksForIndent(blocks, indent) { + let visibleBlocks = blocks; + while (visibleBlocks.length > 0 && indent <= visibleBlocks[visibleBlocks.length - 1].indent) { + visibleBlocks = visibleBlocks.slice(0, -1); + } + return visibleBlocks; +} + +function inspectPendingAtomicLine(state, code, lineNumber) { + const closingAtomic = code.match(/^\)\s*:\s*/); + if (!closingAtomic) { + return state; + } + + const inlineBody = code.slice(closingAtomic[0].length); + const deferredLambda = /^[A-Za-z_]\w*(?:\s*:[^=]+)?\s*=\s*lambda\b/.test(inlineBody); + const unsafeQuery = inlineBody.includes('.select_for_update(') && deferredLambda; + const blocks = inlineBody + ? state.blocks + : [...state.blocks, { indent: state.pendingAtomicWithIndent, atomic: true, callable: false }]; + return { + ...state, + blocks, + pendingAtomicWithIndent: null, + unsafeLines: unsafeQuery ? [...state.unsafeLines, lineNumber] : state.unsafeLines, + }; +} + +function inspectPythonStatement(state, code, indent, lineNumber) { + if (code.startsWith('@')) { + const atomicDecorator = /^@transaction\.atomic(?:\([^)]*\))?$/.test(code); + return atomicDecorator + ? { ...state, atomicDecoratorIndents: new Set([...state.atomicDecoratorIndents, indent]) } + : state; + } + if (/^with\s+transaction\.atomic\(\s*$/.test(code)) { + return { ...state, pendingAtomicWithIndent: indent }; + } + + const atomicWith = code.match(/^with\s+transaction\.atomic\([^)]*\)\s*:\s*/); + const inlineAtomicBody = atomicWith ? code.slice(atomicWith[0].length) : ''; + const isFunction = /^(?:async\s+)?def\s+/.test(code); + const isAtomicFunction = isFunction && state.atomicDecoratorIndents.has(indent); + const queryIndex = code.indexOf('.select_for_update('); + const functionColon = isFunction ? code.indexOf(':') : -1; + const inlineFunctionQuery = queryIndex > functionColon && functionColon !== -1; + const queryScope = inlineAtomicBody || code; + const deferredLambda = /^[A-Za-z_]\w*(?:\s*:[^=]+)?\s*=\s*lambda\b/.test(queryScope); + + let queryProtected = hasActiveAtomicScope(state.blocks); + queryProtected = atomicWith && inlineAtomicBody ? true : queryProtected; + queryProtected = inlineFunctionQuery ? isAtomicFunction : queryProtected; + queryProtected = deferredLambda ? false : queryProtected; + const unsafeQuery = queryIndex !== -1 && !queryProtected; + const blocks = code.endsWith(':') + ? [...state.blocks, { indent, atomic: Boolean(atomicWith) || isAtomicFunction, callable: isFunction }] + : state.blocks; + return { + ...state, + blocks, + atomicDecoratorIndents: withoutSetValue(state.atomicDecoratorIndents, indent), + unsafeLines: unsafeQuery ? [...state.unsafeLines, lineNumber] : state.unsafeLines, + }; +} + +function inspectPythonLine(state, line, lineNumber) { + const details = getPythonLineDetails(line); + if (!details) { + return state; + } + const scopedState = { ...state, blocks: trimBlocksForIndent(state.blocks, details.indent) }; + return scopedState.pendingAtomicWithIndent === null + ? inspectPythonStatement(scopedState, details.code, details.indent, lineNumber) + : inspectPendingAtomicLine(scopedState, details.code, lineNumber); +} + +function findUnprotectedSelectForUpdateLines(source) { + const initialState = { + blocks: [], + atomicDecoratorIndents: new Set(), + pendingAtomicWithIndent: null, + unsafeLines: [], + }; + const finalState = source + .split('\n') + .reduce((state, line, index) => inspectPythonLine(state, line, index + 1), initialState); + return finalState.unsafeLines; } console.log('\n=== Django Celery skill tests ===\n'); @@ -161,11 +223,28 @@ test('keeps every select_for_update example inside an atomic block', () => { 'def load_order():', ' return Order.objects.select_for_update().get(pk=order_id)', ].join('\n'); + const deferredLambdaExample = [ + 'with transaction.atomic():', + ' load_order = lambda: Order.objects.select_for_update().get(pk=order_id)', + 'load_order()', + ].join('\n'); + const sameLineAtomicExample = [ + 'with transaction.atomic(): order = Order.objects.select_for_update().get(pk=order_id)', + ].join('\n'); + const multilineAtomicExample = [ + 'with transaction.atomic(', + " using='default',", + '):', + ' order = Order.objects.select_for_update().get(pk=order_id)', + ].join('\n'); assert.ok(lockingExamples.length > 0, 'Expected at least one select_for_update example'); assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(invalidExample), [1]); assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(deferredCallableExample), [3]); assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(atomicCallableExample), []); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(deferredLambdaExample), [2]); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(sameLineAtomicExample), []); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(multilineAtomicExample), []); for (const block of lockingExamples) { assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(block), []); } @@ -199,12 +278,12 @@ test('claims and owns a payment attempt around external I/O', () => { assert.match(antiPatterns, /@shared_task\(bind=True,\s*acks_late=True\)/); assertMarkersInOrder(antiPatterns, [ - 'self.request.id', - '.select_for_update(', + 'attempt_id = self.request.id', + '.select_for_update().get(', 'claim_or_resume_charge', 'gateway.charge', "idempotency_key=f'order:{order_id}'", - '.select_for_update(', + '.select_for_update().get(', 'charge_attempt_id', 'record_charge', ]); From 3e34eaa914a7313965121062f352e61d477b3dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Jes=C3=BAs=20Pe=C3=B1a=20Rodr=C3=ADguez?= Date: Mon, 24 Aug 2026 14:01:56 +0200 Subject: [PATCH 20/78] test(skills): fail closed on incomplete atomic scopes --- tests/skills/django-celery.test.js | 38 +++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/tests/skills/django-celery.test.js b/tests/skills/django-celery.test.js index c58b79ee6..21e30ecd4 100644 --- a/tests/skills/django-celery.test.js +++ b/tests/skills/django-celery.test.js @@ -96,9 +96,10 @@ function trimBlocksForIndent(blocks, indent) { } function inspectPendingAtomicLine(state, code, lineNumber) { - const closingAtomic = code.match(/^\)\s*:\s*/); + const closingAtomic = code.match(/^\)\s*(?:as\s+[A-Za-z_]\w*\s*)?:\s*/); if (!closingAtomic) { - return state; + const unsafeQuery = code.includes('.select_for_update('); + return unsafeQuery ? { ...state, unsafeLines: [...state.unsafeLines, lineNumber] } : state; } const inlineBody = code.slice(closingAtomic[0].length); @@ -126,7 +127,9 @@ function inspectPythonStatement(state, code, indent, lineNumber) { return { ...state, pendingAtomicWithIndent: indent }; } - const atomicWith = code.match(/^with\s+transaction\.atomic\([^)]*\)\s*:\s*/); + const atomicWith = code.match( + /^with\s+transaction\.atomic\([^)]*\)\s*(?:as\s+[A-Za-z_]\w*\s*)?:\s*/, + ); const inlineAtomicBody = atomicWith ? code.slice(atomicWith[0].length) : ''; const isFunction = /^(?:async\s+)?def\s+/.test(code); const isAtomicFunction = isFunction && state.atomicDecoratorIndents.has(indent); @@ -237,6 +240,30 @@ test('keeps every select_for_update example inside an atomic block', () => { '):', ' order = Order.objects.select_for_update().get(pk=order_id)', ].join('\n'); + const multilineAtomicAliasExample = [ + 'with transaction.atomic(', + " using='default',", + ') as atomic_context:', + ' order = Order.objects.select_for_update().get(pk=order_id)', + ].join('\n'); + const sameLineAtomicAliasExample = [ + 'with transaction.atomic() as atomic_context:', + ' order = Order.objects.select_for_update().get(pk=order_id)', + ].join('\n'); + const inlineAtomicAliasExample = [ + 'with transaction.atomic() as atomic_context: order = Order.objects.select_for_update().get(pk=order_id)', + ].join('\n'); + const atomicArgumentQueryExample = [ + 'with transaction.atomic(', + ' using=Order.objects.select_for_update().get(pk=order_id)._state.db,', + '):', + ' process_order()', + ].join('\n'); + const unterminatedAtomicExample = [ + 'with transaction.atomic(', + " using='default',", + 'order = Order.objects.select_for_update().get(pk=order_id)', + ].join('\n'); assert.ok(lockingExamples.length > 0, 'Expected at least one select_for_update example'); assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(invalidExample), [1]); @@ -245,6 +272,11 @@ test('keeps every select_for_update example inside an atomic block', () => { assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(deferredLambdaExample), [2]); assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(sameLineAtomicExample), []); assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(multilineAtomicExample), []); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(multilineAtomicAliasExample), []); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(sameLineAtomicAliasExample), []); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(inlineAtomicAliasExample), []); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(atomicArgumentQueryExample), [2]); + assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(unterminatedAtomicExample), [3]); for (const block of lockingExamples) { assert.deepStrictEqual(findUnprotectedSelectForUpdateLines(block), []); } From 89c1bf4fff7952b1fa378bcd7ac29e4d049fc586 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Tue, 25 Aug 2026 18:45:10 +0700 Subject: [PATCH 21/78] fix(gateguard): run env's split string through classification, not past it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Review feedback on #2832 — CodeRabbit and Greptile independently flagged the same bypass, and it reproduces. `env` declares `-S` / `--split-string` as value-consuming, so `stripCommandWrappers` skipped the option AND its value. But that value is the command: `env -S "rm -rf /important/data"` runs the deletion, and the hook saw no `rm` token at all. Measured against the built hook, all three spellings were allowed while the bare `rm -rf` was denied: deny rm -rf /important/data (none) env -S "rm -rf /important/data" (none) env --split-string="rm -rf /important/data" (none) env -S"rm -rf /important/data" Expand the split string into tokens and keep walking, so a wrapper nested inside it (`env -S "sudo rm -rf /"`) is stripped too. Bounded by MAX_WRAPPER_EXPANSIONS so a self-referential string cannot spin. The second half is the mirror image — a false positive. `command -v git reset --hard` only reports where `git` resolves; nothing runs. The wrapper walk dropped `-v` and classified the operand, so a lookup was denied. `-v`, `-V`, and combined forms like `-pv` now yield no executable tokens, while `-p` alone still does, because it executes. `env -S "npm run build"` stays allowed and `command -p rm -rf /` still denies. 192 passed, 0 failed. Mutation-tested: dropping the expansion fails 5, dropping the lookup guard fails 3. --- scripts/hooks/gateguard-fact-force.js | 69 ++++++++++++++++++++++-- tests/hooks/gateguard-fact-force.test.js | 20 ++++++- 2 files changed, 83 insertions(+), 6 deletions(-) diff --git a/scripts/hooks/gateguard-fact-force.js b/scripts/hooks/gateguard-fact-force.js index df79f59d8..77deb03c6 100644 --- a/scripts/hooks/gateguard-fact-force.js +++ b/scripts/hooks/gateguard-fact-force.js @@ -418,6 +418,43 @@ const COMMAND_WRAPPERS = new Map([ ], ]); +// Bound `env -S` expansion so a self-referential split string cannot spin. +const MAX_WRAPPER_EXPANSIONS = 8; + +/** + * `env -S ""`, `env --split-string=`, and the attached + * `-S` form all RUN the string. Return it so the caller can expand it + * into tokens instead of consuming it as an opaque option value. + * + * @param {string} token + * @param {string | undefined} next + * @returns {{ value: string, consumed: number } | null} + */ +function envSplitString(token, next) { + if (token === '-S' || token === '--split-string') { + return typeof next === 'string' ? { value: next, consumed: 2 } : null; + } + if (token.startsWith('--split-string=')) { + return { value: token.slice('--split-string='.length), consumed: 1 }; + } + if (token.startsWith('-S') && token.length > 2) { + return { value: token.slice(2), consumed: 1 }; + } + return null; +} + +/** + * `command -v` / `-V`, including combined forms like `-pv`, only report where a + * name resolves — the operand never runs. Every other `command` option still + * executes its operand, so `-p` alone is not a lookup. + * + * @param {string} token + * @returns {boolean} + */ +function isCommandLookupOnly(token) { + return /^-[pvV]*[vV][pvV]*$/.test(token); +} + /** * Return `tokens` with any leading wrapper commands, their options, and * `VAR=value` assignment prefixes removed, so the caller sees the command that @@ -433,13 +470,18 @@ const COMMAND_WRAPPERS = new Map([ */ function stripCommandWrappers(tokens) { if (!Array.isArray(tokens) || tokens.length === 0) return tokens; + let rest = tokens; let index = 0; let valueFlags = null; - while (index < tokens.length) { - const token = tokens[index]; - const wrapperFlags = COMMAND_WRAPPERS.get(commandBasename(token)); + let wrapper = null; + let expansions = 0; + while (index < rest.length) { + const token = rest[index]; + const base = commandBasename(token); + const wrapperFlags = COMMAND_WRAPPERS.get(base); if (wrapperFlags) { valueFlags = wrapperFlags; + wrapper = base; index += 1; continue; } @@ -450,13 +492,32 @@ function stripCommandWrappers(tokens) { continue; } if (valueFlags && token.startsWith('-')) { + // `env -S "rm -rf /"` RUNS that string. Consuming it as an opaque option + // value hid the whole command behind the option, so expand it and keep + // walking. Bounded so a self-referential string cannot spin. + if (wrapper === 'env' && expansions < MAX_WRAPPER_EXPANSIONS) { + const split = envSplitString(token, rest[index + 1]); + if (split) { + rest = tokenize(split.value).concat(rest.slice(index + split.consumed)); + index = 0; + valueFlags = null; + wrapper = null; + expansions += 1; + continue; + } + } + // `command -v git reset --hard` only reports where `git` resolves — + // nothing runs, so there is no command to classify. Returning the operand + // here denied a lookup. + if (wrapper === 'command' && isCommandLookupOnly(token)) return []; if (valueFlags.has(token)) index += 1; index += 1; continue; } break; } - return index === 0 ? tokens : tokens.slice(index); + if (rest === tokens) return index === 0 ? tokens : tokens.slice(index); + return rest.slice(index); } /** diff --git a/tests/hooks/gateguard-fact-force.test.js b/tests/hooks/gateguard-fact-force.test.js index d2aa95a17..d447ba03b 100644 --- a/tests/hooks/gateguard-fact-force.test.js +++ b/tests/hooks/gateguard-fact-force.test.js @@ -292,7 +292,16 @@ function runTests() { "sudo 'rm' -rf /important/data", 'env "rm" -rf /important/data', 'doas "rm" -rf /important/data', - 'sudo bash -c "rm -rf /important/data"' + 'sudo bash -c "rm -rf /important/data"', + // `env -S ""` RUNS the string. Consuming it as an opaque option value + // let the whole command hide behind the option, in all three spellings. + 'env -S "rm -rf /important/data"', + 'env --split-string="rm -rf /important/data"', + 'env -S"rm -rf /important/data"', + 'env -S "sudo rm -rf /important/data"', + 'env -S "git reset --hard"', + // `-p` is not a lookup mode, so the operand still runs. + 'command -p rm -rf /important/data' ]) { clearState(); if ( @@ -330,7 +339,14 @@ function runTests() { 'nice -n 10 npm run build', 'ionice -c 3 npm test', 'stdbuf -o L npm test', - 'find . -exec sudo chmod 644 {} ;' + 'find . -exec sudo chmod 644 {} ;', + // `command -v`/`-V` only report where a name resolves; the operand never + // runs, so gating it denied a lookup that changes nothing. + 'command -v git reset --hard', + 'command -V git reset --hard', + 'command -pv git reset --hard', + // A benign split string must stay benign. + 'env -S "npm run build"' ]) { clearState(); if ( From f48abf7f2239a6e34ebe184aa5e6a4363de8f246 Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Tue, 25 Aug 2026 19:15:02 +0700 Subject: [PATCH 22/78] fix(gateguard): read env's option cluster and the split string's own quoting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two follow-ups on the previous commit, both reported and both reproduced. CodeRabbit: `env -vS "rm -rf /"` still bypassed. `envSplitString` only matched a token starting with `-S`, but getopt gives the first argument-taking option in a cluster the rest of the token — so `-S` is reachable through `-v`/`-i`, attached or separate. Walk the cluster instead of anchoring at position 1. That walk has to stop at `-u`/`-C`, which claim the cluster themselves. Without that stop, `env -uSHELL rm -rf /important/data` reads `HELL` as the split string, `HELL` is the command word, and the deletion is allowed. Mutation-testing the first draft is what surfaced this: removing the stop passed all 200 tests, so the case is now pinned. Greptile: the split string carries its own quoting, and expanding it with a whitespace-only split left `env -S '"rm" -rf /'` with a command word of `"rm"`, which matches nothing. Expand with the file's quote-aware tokenizer, falling back to the plain split if it cannot parse. deny env -vS"rm -rf /important/data" deny env -iS "rm -rf /important/data" deny env -S '"rm" -rf /important/data' deny env -S 'env -S "rm" -rf /important/data' deny env -uSHELL rm -rf /important/data (none) env -uS FOO (none) env -vS "npm test" (none) env -C /tmp npm run build 202 passed, 0 failed. Mutation-tested: anchoring `-S` at position 1 fails 3, dropping quote awareness fails 2, dropping the `-u`/`-C` stop fails 1. --- scripts/hooks/gateguard-fact-force.js | 27 ++++++++++++++++++++---- tests/hooks/gateguard-fact-force.test.js | 20 +++++++++++++++++- 2 files changed, 42 insertions(+), 5 deletions(-) diff --git a/scripts/hooks/gateguard-fact-force.js b/scripts/hooks/gateguard-fact-force.js index 77deb03c6..8eaf5cccd 100644 --- a/scripts/hooks/gateguard-fact-force.js +++ b/scripts/hooks/gateguard-fact-force.js @@ -421,6 +421,10 @@ const COMMAND_WRAPPERS = new Map([ // Bound `env -S` expansion so a self-referential split string cannot spin. const MAX_WRAPPER_EXPANSIONS = 8; +// `env`'s short options that take an argument. Needed to read a cluster the way +// getopt does: in `-uS` the `S` is `-u`'s value, not a split-string flag. +const ENV_SHORT_OPTIONS_WITH_VALUE = new Set(['u', 'C']); + /** * `env -S ""`, `env --split-string=`, and the attached * `-S` form all RUN the string. Return it so the caller can expand it @@ -431,14 +435,25 @@ const MAX_WRAPPER_EXPANSIONS = 8; * @returns {{ value: string, consumed: number } | null} */ function envSplitString(token, next) { - if (token === '-S' || token === '--split-string') { + if (token === '--split-string') { return typeof next === 'string' ? { value: next, consumed: 2 } : null; } if (token.startsWith('--split-string=')) { return { value: token.slice('--split-string='.length), consumed: 1 }; } - if (token.startsWith('-S') && token.length > 2) { - return { value: token.slice(2), consumed: 1 }; + if (!token.startsWith('-') || token.startsWith('--') || token.length < 2) return null; + // Walk the short-option cluster the way getopt does: the first option that + // takes an argument claims the rest of the token, or the next word when the + // rest is empty. So `-vS "rm -rf /"` and `-vS"rm -rf /"` both reach `-S`, + // while `-uS` is `-u` unsetting a variable named `S` and carries no command. + for (let i = 1; i < token.length; i += 1) { + const flag = token[i]; + if (flag === 'S') { + const attached = token.slice(i + 1); + if (attached) return { value: attached, consumed: 1 }; + return typeof next === 'string' ? { value: next, consumed: 2 } : null; + } + if (ENV_SHORT_OPTIONS_WITH_VALUE.has(flag)) return null; } return null; } @@ -498,7 +513,11 @@ function stripCommandWrappers(tokens) { if (wrapper === 'env' && expansions < MAX_WRAPPER_EXPANSIONS) { const split = envSplitString(token, rest[index + 1]); if (split) { - rest = tokenize(split.value).concat(rest.slice(index + split.consumed)); + // Quote-aware, because the split string carries its own quoting: + // `env -S '"rm" -rf /'` must yield `rm`, not `"rm"`, or the command + // word never matches. Falls back to a plain split if parsing fails. + const words = tokenizeAllowlistedShellWords(split.value) || tokenize(split.value); + rest = words.concat(rest.slice(index + split.consumed)); index = 0; valueFlags = null; wrapper = null; diff --git a/tests/hooks/gateguard-fact-force.test.js b/tests/hooks/gateguard-fact-force.test.js index d447ba03b..18de33680 100644 --- a/tests/hooks/gateguard-fact-force.test.js +++ b/tests/hooks/gateguard-fact-force.test.js @@ -300,6 +300,20 @@ function runTests() { 'env -S"rm -rf /important/data"', 'env -S "sudo rm -rf /important/data"', 'env -S "git reset --hard"', + // getopt gives the first argument-taking option in a cluster the rest of + // the token, so `-S` is reached through `-v`/`-i` too, attached or not. + 'env -vS"rm -rf /important/data"', + 'env -vS "rm -rf /important/data"', + 'env -iS "rm -rf /important/data"', + // The split string carries its own quoting; a whitespace-only split left + // the command word as `"rm"`, which matched nothing. + `env -S '"rm" -rf /important/data'`, + `env -S 'env -S "rm" -rf /important/data'`, + // `-uSHELL` is `-u` unsetting SHELL, so `rm` is still the command. Reading + // the cluster left to right is what keeps `HELL` from being taken as a + // split string and hiding the deletion. + 'env -uSHELL rm -rf /important/data', + 'env -uS rm -rf /important/data', // `-p` is not a lookup mode, so the operand still runs. 'command -p rm -rf /important/data' ]) { @@ -346,7 +360,11 @@ function runTests() { 'command -V git reset --hard', 'command -pv git reset --hard', // A benign split string must stay benign. - 'env -S "npm run build"' + 'env -S "npm run build"', + 'env -vS "npm test"', + // `-uS` is `-u` unsetting a variable named S, not a split string. + 'env -uS FOO', + 'env -C /tmp npm run build' ]) { clearState(); if ( From d29d8a3503a515c1aef07fc1f9731e2e43a633ae Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Tue, 25 Aug 2026 20:22:44 +0700 Subject: [PATCH 23/78] fix(gateguard): classify the command a find -exec shell wrapper runs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `find . -exec sh -c 'rm -rf {}' \;` was allowed while both `find . -exec rm {} \;` and a bare `sh -c 'rm -rf ...'` were denied. `isDestructiveFindExec` classified only the executable named after `-exec`, so a shell wrapper ended the inspection exactly where the destructive command began. The quote-aware pass already looks through `sh -c`; this was the sibling that did not. Two things had to change for that recursion to see the payload: - `isDestructiveQuoteAware` handed `isDestructiveFindExec` a re-joined string, which flattened the quoted payload back into separate words. It now passes the tokens it already holds, through a token-taking half of the same check. - `-c` was matched only as a bare token. Short options cluster, so `sh -ec ''`, `sh -xc ''`, and `sh -ce ''` run the same string `sh -c ''` runs — verified against the shell, as was the fact that the payload always comes from the next argument (`sh -c'cmd'` is an invalid option, not an attached value). That gap was reachable without `find` at all: `sh -ec 'rm -rf /important/data'` was allowed. `-o`/`-O` take a value, so a `c` behind one of them is that value, and `--` ends the options. The shell rejects both spellings instead of running the string, so the scan stops there rather than reporting a deletion that cannot happen. Tests cover each spelling in both directions. The two allow-list cases carry a destructive payload deliberately: with a benign one they pass whether or not the arity and `--` stops are present, and pin nothing. --- scripts/hooks/gateguard-fact-force.js | 84 ++++++++++++++++++++---- tests/hooks/gateguard-fact-force.test.js | 35 +++++++++- 2 files changed, 106 insertions(+), 13 deletions(-) diff --git a/scripts/hooks/gateguard-fact-force.js b/scripts/hooks/gateguard-fact-force.js index 8eaf5cccd..f68ca5bbb 100644 --- a/scripts/hooks/gateguard-fact-force.js +++ b/scripts/hooks/gateguard-fact-force.js @@ -333,6 +333,48 @@ function quoteAwareSegments(input) { const SHELL_WRAPPERS = new Set(['sh', 'bash', 'zsh', 'dash', 'ksh']); +// Short shell options that take a value. Reaching one inside a cluster means +// the rest of the token is that value, so a `c` behind it is not `-c`. +const SHELL_SHORT_OPTIONS_WITH_VALUE = new Set(['o', 'O']); + +/** + * Return the command string a shell would run for `-c`, or null. + * + * `-c` reads its payload from the FOLLOWING argument (`sh -c'cmd'` is an + * invalid option, not an attached value), and short options cluster — so + * `sh -ec ''`, `sh -xc ''`, and `sh -ce ''` all run exactly + * what `sh -c ''` runs. Matching only a bare `-c` token left every + * clustered spelling unclassified. + * + * `-o`/`-O` take a value, so `c` behind one of them is that value rather + * than a flag; the shell rejects those forms instead of running the payload + * (`sh -oc 'cmd'` → "invalid option name"), so stopping there loses nothing. + * + * @param {string[]} tokens command words, wrappers already stripped + * @returns {string|null} + */ +function shellDashCPayload(tokens) { + if (tokens.length === 0) return null; + if (!SHELL_WRAPPERS.has(commandBasename(tokens[0]))) return null; + + for (let i = 1; i < tokens.length; i++) { + const token = tokens[i]; + // `--` ends the options, and a bare operand is the script name — after + // either one there is no `-c` left to find. + if (token === '--' || token === '-' || !token.startsWith('-')) return null; + if (token.startsWith('--')) continue; + + for (const flag of token.slice(1)) { + if (flag === 'c') { + const payload = tokens[i + 1]; + return typeof payload === 'string' ? payload : null; + } + if (SHELL_SHORT_OPTIONS_WITH_VALUE.has(flag)) return null; + } + } + return null; +} + /** * Quote-aware destructive check: catches quoted command words, newline * separators, quoted `find -exec`, and `sh -c`/`bash -c` wrappers that evade @@ -352,14 +394,9 @@ function isDestructiveQuoteAware(raw, depth = 0) { if (tokens.length === 0) continue; if (isDestructiveRm(tokens)) return true; if (isDestructiveGit(tokens)) return true; - if (isDestructiveFindExec(tokens.join(' '))) return true; - const base = commandBasename(tokens[0]); - if (SHELL_WRAPPERS.has(base)) { - const ci = tokens.indexOf('-c'); - if (ci !== -1 && tokens[ci + 1] && isDestructiveQuoteAware(tokens[ci + 1], depth + 1)) { - return true; - } - } + if (isDestructiveFindExecTokens(tokens, depth)) return true; + const payload = shellDashCPayload(tokens); + if (payload && isDestructiveQuoteAware(payload, depth + 1)) return true; } return false; } @@ -767,17 +804,33 @@ function collectExecutableBodies(raw) { * `-exec unlink {} \;`, `-exec git reset --hard {} \;`. * * @param {string} command + * @param {number} [depth] recursion guard shared with isDestructiveQuoteAware * @returns {boolean} */ -function isDestructiveFindExec(command) { +function isDestructiveFindExec(command, depth = 0) { const raw = String(command || ''); const trimmed = raw.trim(); if (!trimmed) { return false; } - // Tokenize the whole command line - const tokens = stripCommandWrappers(tokenize(trimmed)); + return isDestructiveFindExecTokens(tokenize(trimmed), depth); +} + +/** + * Token-taking half of `isDestructiveFindExec`. + * + * The quote-aware pass already holds correctly split tokens. Joining them + * back into one string so this check could re-tokenize it flattened a quoted + * `-exec sh -c ''` payload into separate words, which is precisely the + * command that needed classifying. + * + * @param {string[]} rawTokens + * @param {number} [depth] recursion guard shared with isDestructiveQuoteAware + * @returns {boolean} + */ +function isDestructiveFindExecTokens(rawTokens, depth = 0) { + const tokens = stripCommandWrappers(rawTokens); if (!tokens || tokens.length === 0) { return false; } @@ -814,6 +867,15 @@ function isDestructiveFindExec(command) { return false; } + // `-exec sh -c '' \;` runs just as a bare `sh -c ''` does. + // Classifying only the `sh` executable stopped at the wrapper, so the + // deletion inside it was never seen — the quote-aware pass already looks + // through the same wrapper, and this is the sibling that did not. + const execPayload = shellDashCPayload(execCommand); + if (execPayload) { + return isDestructiveQuoteAware(execPayload, depth + 1); + } + const baseCmd = commandBasename(execCommand[0]); // Directly destructive commands inside -exec diff --git a/tests/hooks/gateguard-fact-force.test.js b/tests/hooks/gateguard-fact-force.test.js index 18de33680..5a423c002 100644 --- a/tests/hooks/gateguard-fact-force.test.js +++ b/tests/hooks/gateguard-fact-force.test.js @@ -315,7 +315,26 @@ function runTests() { 'env -uSHELL rm -rf /important/data', 'env -uS rm -rf /important/data', // `-p` is not a lookup mode, so the operand still runs. - 'command -p rm -rf /important/data' + 'command -p rm -rf /important/data', + // `-exec sh -c ''` runs . Classifying only the `sh` executable + // stopped at the wrapper, so every deletion behind one was allowed while + // the bare `-exec rm` spelling was denied. + 'find . -exec sh -c "rm -rf {}" ;', + "find . -exec sh -c 'rm -rf {}' ;", + 'find . -exec bash -c "rm -rf /important/data" ;', + 'find . -exec zsh -c "rm -rf /important/data" ;', + 'find /tmp -type f -exec sh -c "rm -rf {}" ;', + // `+` terminates -exec too, and the payload keeps its own wrappers. + 'find . -exec sh -c "rm -rf {}" +', + 'find . -exec sh -c "git reset --hard" ;', + 'find . -exec sh -c "sudo rm -rf /important/data" ;', + // Short options cluster, so `-c` is reached through `-e`/`-x` as well — + // attached or not, and whether or not `c` comes first. + 'sh -ec "rm -rf /important/data"', + 'sh -xc "rm -rf /important/data"', + 'sh -ce "rm -rf /important/data"', + 'bash -ec "rm -rf /important/data"', + 'find . -exec sh -ec "rm -rf {}" ;' ]) { clearState(); if ( @@ -364,7 +383,19 @@ function runTests() { 'env -vS "npm test"', // `-uS` is `-u` unsetting a variable named S, not a split string. 'env -uS FOO', - 'env -C /tmp npm run build' + 'env -C /tmp npm run build', + // Looking inside `-c` must classify the payload, not assume the worst of + // every shell wrapper. + 'find . -exec sh -c "echo hello" ;', + 'sh -c "npm test"', + 'sh -ec "npm run build"', + 'bash --norc -c "npm test"', + // These two carry a destructive payload on purpose: with a benign one the + // assertion passes either way and pins nothing. `-o` takes a value, so `c` + // behind it is that value ("invalid option name"), and after `--` the next + // word is the script name — neither shell runs the string as a command. + 'sh -oc "rm -rf /important/data"', + 'sh -- -c "rm -rf /important/data"' ]) { clearState(); if ( From 788bb6a8ff41bd161a0fc8073dc51cd640ba9aff Mon Sep 17 00:00:00 2001 From: Nguyen Thanh Dat Date: Tue, 25 Aug 2026 20:46:50 +0700 Subject: [PATCH 24/78] fix(gateguard): resume the option scan past a value, and stop capping expansion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two review findings, both reproduced against the built hook first. The `-c` scan gave up when it met an option that takes a value. But such an option consumes exactly one value and the scan should continue after it — `sh -o errexit -c ''` and `bash --init-file /dev/null -c ''` both run the payload, and both were denied before this branch and allowed after it. That is a regression I introduced with the cluster reader, and the shape of the mistake was reading "this option takes a value" as "there is nothing further to find". Only a `c` sharing a token with that value is excluded (`sh -oc`, which the shell rejects outright). Long options that take a value are skipped for the same reason. `env -S` expansion stopped after a fixed number of layers and then fell through to the branch that treats the split string as an opaque option value — putting the command back behind the option, which is the bypass the expansion exists to close. The verdict flipped at exactly the cap: with `env -Senv ... -S "rm -rf /important/data"`, seven layers denied and eight allowed, and `-Senv` is env's attached split-string form, so that command is valid and runs. Raising the number would only move the edge. Each expansion replaces the option with the words of a string that is a strict substring of it, so the remaining character count decreases every time and the walk terminates on its own; bounding the loop by that count keeps the guarantee while making the bound unreachable. A thousand nested layers classify in 11ms. Suite 221 -> 230. --- scripts/hooks/gateguard-fact-force.js | 69 +++++++++++++++++------- tests/hooks/gateguard-fact-force.test.js | 23 +++++++- 2 files changed, 72 insertions(+), 20 deletions(-) diff --git a/scripts/hooks/gateguard-fact-force.js b/scripts/hooks/gateguard-fact-force.js index f68ca5bbb..37c64f6eb 100644 --- a/scripts/hooks/gateguard-fact-force.js +++ b/scripts/hooks/gateguard-fact-force.js @@ -333,9 +333,11 @@ function quoteAwareSegments(input) { const SHELL_WRAPPERS = new Set(['sh', 'bash', 'zsh', 'dash', 'ksh']); -// Short shell options that take a value. Reaching one inside a cluster means -// the rest of the token is that value, so a `c` behind it is not `-c`. +// Shell options that take a value. A `c` behind one of these inside the same +// token is that value, not `-c` — but the option only swallows one value, so +// the scan has to resume after it rather than give up. const SHELL_SHORT_OPTIONS_WITH_VALUE = new Set(['o', 'O']); +const SHELL_LONG_OPTIONS_WITH_VALUE = new Set(['--rcfile', '--init-file']); /** * Return the command string a shell would run for `-c`, or null. @@ -346,9 +348,12 @@ const SHELL_SHORT_OPTIONS_WITH_VALUE = new Set(['o', 'O']); * what `sh -c ''` runs. Matching only a bare `-c` token left every * clustered spelling unclassified. * - * `-o`/`-O` take a value, so `c` behind one of them is that value rather - * than a flag; the shell rejects those forms instead of running the payload - * (`sh -oc 'cmd'` → "invalid option name"), so stopping there loses nothing. + * `-o`/`-O` and `--rcfile`/`--init-file` take a value. That only rules out a + * `c` sitting inside the same token as its value (`sh -oc 'cmd'`, which the + * shell rejects with "invalid option name" rather than running it) — the + * option consumes exactly one value, so the scan skips it and keeps looking. + * `sh -o errexit -c ''` and `bash --init-file /dev/null -c ''` both + * run the payload. * * @param {string[]} tokens command words, wrappers already stripped * @returns {string|null} @@ -362,15 +367,35 @@ function shellDashCPayload(tokens) { // `--` ends the options, and a bare operand is the script name — after // either one there is no `-c` left to find. if (token === '--' || token === '-' || !token.startsWith('-')) return null; - if (token.startsWith('--')) continue; - - for (const flag of token.slice(1)) { - if (flag === 'c') { - const payload = tokens[i + 1]; - return typeof payload === 'string' ? payload : null; - } - if (SHELL_SHORT_OPTIONS_WITH_VALUE.has(flag)) return null; + if (token.startsWith('--')) { + // `--rcfile FILE` holds its value in the next token; `--rcfile=FILE` + // holds it in this one and needs no skip. + if (SHELL_LONG_OPTIONS_WITH_VALUE.has(token)) i += 1; + continue; } + + const body = token.slice(1); + let consumesNextToken = false; + let carriesCommand = false; + for (let j = 0; j < body.length; j++) { + const flag = body[j]; + if (flag === 'c') { + carriesCommand = true; + break; + } + if (SHELL_SHORT_OPTIONS_WITH_VALUE.has(flag)) { + // Its value is the rest of this token, or the next token when the + // option ends the cluster. Either way there is no `-c` in here. + consumesNextToken = j === body.length - 1; + break; + } + } + + if (carriesCommand) { + const payload = tokens[i + 1]; + return typeof payload === 'string' ? payload : null; + } + if (consumesNextToken) i += 1; } return null; } @@ -455,9 +480,6 @@ const COMMAND_WRAPPERS = new Map([ ], ]); -// Bound `env -S` expansion so a self-referential split string cannot spin. -const MAX_WRAPPER_EXPANSIONS = 8; - // `env`'s short options that take an argument. Needed to read a cluster the way // getopt does: in `-uS` the `S` is `-u`'s value, not a split-string flag. const ENV_SHORT_OPTIONS_WITH_VALUE = new Set(['u', 'C']); @@ -527,6 +549,15 @@ function stripCommandWrappers(tokens) { let valueFlags = null; let wrapper = null; let expansions = 0; + // Every expansion replaces `-S` with the words of that string, which + // is a strict substring of the token it came from, so the character count of + // what is left strictly decreases and the walk terminates on its own. + // Bounding the loop by that count keeps the guarantee without the bound + // being reachable. A fixed cap was reachable: past it the split string went + // back to being an opaque option value, so the command it runs was hidden + // again — `env -Senv -Senv ... -S "rm -rf /x"` is a valid spelling of that + // and executes, and it flipped from denied to allowed at exactly the cap. + const maxExpansions = tokens.reduce((total, token) => total + String(token).length, 0); while (index < rest.length) { const token = rest[index]; const base = commandBasename(token); @@ -547,14 +578,16 @@ function stripCommandWrappers(tokens) { // `env -S "rm -rf /"` RUNS that string. Consuming it as an opaque option // value hid the whole command behind the option, so expand it and keep // walking. Bounded so a self-referential string cannot spin. - if (wrapper === 'env' && expansions < MAX_WRAPPER_EXPANSIONS) { + if (wrapper === 'env') { const split = envSplitString(token, rest[index + 1]); if (split) { // Quote-aware, because the split string carries its own quoting: // `env -S '"rm" -rf /'` must yield `rm`, not `"rm"`, or the command // word never matches. Falls back to a plain split if parsing fails. const words = tokenizeAllowlistedShellWords(split.value) || tokenize(split.value); - rest = words.concat(rest.slice(index + split.consumed)); + const expanded = words.concat(rest.slice(index + split.consumed)); + if (expansions >= maxExpansions) return expanded; + rest = expanded; index = 0; valueFlags = null; wrapper = null; diff --git a/tests/hooks/gateguard-fact-force.test.js b/tests/hooks/gateguard-fact-force.test.js index 5a423c002..dc3cf4271 100644 --- a/tests/hooks/gateguard-fact-force.test.js +++ b/tests/hooks/gateguard-fact-force.test.js @@ -334,7 +334,22 @@ function runTests() { 'sh -xc "rm -rf /important/data"', 'sh -ce "rm -rf /important/data"', 'bash -ec "rm -rf /important/data"', - 'find . -exec sh -ec "rm -rf {}" ;' + 'find . -exec sh -ec "rm -rf {}" ;', + // A value-taking option consumes exactly one value and the scan continues + // past it. Stopping at one instead cost the plain `-c` that follows, which + // is a spelling the shell does run. + 'sh -o errexit -c "rm -rf /important/data"', + 'bash --init-file /dev/null -c "rm -rf /important/data"', + 'bash --rcfile /dev/null -ic "rm -rf /important/data"', + 'find . -exec sh -o errexit -c "rm -rf {}" ;', + // `-Senv` is env's attached split-string form, so these nest for real and + // run. Expansion used to stop after a fixed number of layers and hand the + // split string back as an opaque option value, which is exactly the thing + // expansion exists to prevent: the verdict flipped from denied to allowed + // at the cap, and one more wrapper bought a pass. + `env ${'-Senv '.repeat(8)}-S "rm -rf /important/data"`, + `env ${'-Senv '.repeat(9)}-S "rm -rf /important/data"`, + `env ${'-Senv '.repeat(40)}-S "rm -rf /important/data"` ]) { clearState(); if ( @@ -395,7 +410,11 @@ function runTests() { // behind it is that value ("invalid option name"), and after `--` the next // word is the script name — neither shell runs the string as a command. 'sh -oc "rm -rf /important/data"', - 'sh -- -c "rm -rf /important/data"' + 'sh -- -c "rm -rf /important/data"', + // Deep nesting is not destructive by itself; only what it ends up running + // is. A bound that gave up and denied would gate this. + `env ${'-Senv '.repeat(40)}-S "npm test"`, + 'sh -o errexit -c "npm test"' ]) { clearState(); if ( From 2a42ce188919c2cf26e6b376402d1a62852e919d Mon Sep 17 00:00:00 2001 From: lege962 <1515808962@qq.com> Date: Sun, 6 Sep 2026 00:09:04 +0800 Subject: [PATCH 25/78] feat: add OpenSpec validators foundation (v1 schema, file-level freshness) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Standalone read-only tooling for OpenSpec specs — no CI gating in this PR. - validate-openspec-syntax.js: documented metadata allowlist + typo guard, ordinary comments allowed, per-block delta validation (every declared ADDED/MODIFIED/REMOVED block must be non-empty), repo-relative path::symbol anchors that reject traversal; YAML frontmatter optional. - check-spec-freshness.js: file-level freshness. Git invoked only via execFileSync argv arrays (hostile filename/date fixtures prove no shell escape); project root and targets resolved via realpaths and contained (symlinked root / escaping target rejected); shallow clones report UNVERIFIED, never ORPHANED/STALE; ECC_SPEC_STALE_WARN_ONLY implemented. - Real git-backed test fixtures (27 + 23 tests). - Register existing spec-miner agent in install-components.json. --- manifests/install-components.json | 8 + scripts/ci/check-spec-freshness.js | 411 +++++++++++++++++++++ scripts/ci/validate-openspec-syntax.js | 339 ++++++++++++++++++ tests/ci/check-spec-freshness.test.js | 384 ++++++++++++++++++++ tests/ci/validate-openspec-syntax.test.js | 414 ++++++++++++++++++++++ 5 files changed, 1556 insertions(+) create mode 100755 scripts/ci/check-spec-freshness.js create mode 100755 scripts/ci/validate-openspec-syntax.js create mode 100644 tests/ci/check-spec-freshness.test.js create mode 100644 tests/ci/validate-openspec-syntax.test.js diff --git a/manifests/install-components.json b/manifests/install-components.json index 8fbc925f6..454c88b72 100644 --- a/manifests/install-components.json +++ b/manifests/install-components.json @@ -398,6 +398,14 @@ "agents-core" ] }, + { + "id": "agent:spec-miner", + "family": "agent", + "description": "Behavioral spec extraction agent for brownfield codebases.", + "modules": [ + "agents-core" + ] + }, { "id": "agent:tdd-guide", "family": "agent", diff --git a/scripts/ci/check-spec-freshness.js b/scripts/ci/check-spec-freshness.js new file mode 100755 index 000000000..ff1442182 --- /dev/null +++ b/scripts/ci/check-spec-freshness.js @@ -0,0 +1,411 @@ +#!/usr/bin/env node +/** + * Check OpenSpec freshness at FILE level. + * + * ── v1 contract ───────────────────────────────────────────────── + * For each spec file under /openspec/, parse its `` + * anchors and the `Last verified:` date, then ask git whether the anchor's + * TARGET FILE changed after that date. This is a FILE-LEVEL freshness check: + * the `::symbol` part of an anchor is recorded but never resolved — verifying + * that a symbol exists inside a file is out of scope for v1. + * + * Truthful verdicts (a spec resolves to the strongest of these): + * FRESH every enforced target exists, is inside the project, is + * committed, and has not changed since `Last verified` + * STALE an enforced target changed after `Last verified`, or the + * verification itself is older than ECC_SPEC_STALE_DAYS + * ORPHANED an enforced target file is missing from the tree or escapes + * the project (via `..` or a symlink out of the root) + * UNVERIFIED no git / not a repo / SHALLOW clone / missing or invalid + * `Last verified` date / target file never committed — i.e. + * evidence is unavailable, NOT a sign of staleness + * UNKNOWN an enforced anchor does not parse to path::symbol + * + * Safety: + * - git is always invoked through execFileSync with an argv array. Paths are + * passed after `--`; the date is validated to YYYY-MM-DD first and passed + * as a single argument. Nothing from spec Markdown reaches a shell. + * - the project root must not be a symlink; every enforced target is resolved + * through fs.realpathSync and must stay inside the real project root. + * - shallow clones report UNVERIFIED — incomplete history is never + * mislabelled ORPHANED or STALE. + * + * Exit contract: + * 0 = no stale specs (or ECC_SPEC_STALE_WARN_ONLY === "true") + * 1 = at least one stale spec (STALE only; ORPHANED/UNVERIFIED are reported, + * not gating failures) + * 2 = configuration / input error + * + * Output: single JSON line to stdout {specs[], staleCount, totalCount} + * Diagnostics: all prose to stderr + */ + +'use strict'; + +const fs = require('fs'); +const path = require('path'); +const { execFileSync } = require('child_process'); + +// ── CLI args & env ────────────────────────────────────────────── + +function resolveProjectRoot() { + const rootIdx = process.argv.indexOf('--project-root'); + if (rootIdx !== -1 && rootIdx + 1 < process.argv.length) { + return process.argv[rootIdx + 1]; + } + if (process.env.ECC_SPEC_PROJECT_ROOT) { + return process.env.ECC_SPEC_PROJECT_ROOT; + } + return process.cwd(); +} + +function resolveStaleDays() { + const envVal = process.env.ECC_SPEC_STALE_DAYS; + if (envVal === undefined || envVal === '') { + return 30; // Default + } + // Strict integer (reject "1.5", "0x10", "+3", etc.), not parseInt coercion. + if (!/^\d+$/.test(envVal)) { + console.error(`FATAL: ECC_SPEC_STALE_DAYS must be an integer 1-365, got: "${envVal}"`); + process.exit(2); + } + const days = parseInt(envVal, 10); + if (days <= 0 || days > 365) { + console.error(`FATAL: ECC_SPEC_STALE_DAYS must be an integer 1-365, got: "${envVal}"`); + process.exit(2); + } + return days; +} + +const WARN_ONLY = process.env.ECC_SPEC_STALE_WARN_ONLY === 'true'; + +function die(message) { + console.error(`FATAL: ${message}`); + process.exit(2); +} + +// ── Root validation (real-path contained) ─────────────────────── + +const projectRootArg = resolveProjectRoot(); +const staleDays = resolveStaleDays(); + +let rootStat; +try { + rootStat = fs.lstatSync(projectRootArg); +} catch (err) { + die(`Cannot access --project-root: ${projectRootArg} (${err.message})`); +} +if (!rootStat.isDirectory()) { + die(`--project-root is not a directory: ${projectRootArg}`); +} +if (rootStat.isSymbolicLink()) { + die(`--project-root must not be a symlink: ${projectRootArg}`); +} + +const projectRoot = fs.realpathSync(projectRootArg); +const openspecDir = path.join(projectRoot, 'openspec'); + +// ── v1 parsing constants ──────────────────────────────────────── + +const ENFORCED_RE = //g; +const LAST_VERIFIED_RE = /^[>\s]*last\s+verified:\s*(.*)$/im; +const DATE_RE = /(\d{4}-\d{2}-\d{2})/; + +/** Parse `path::symbol`; reject whitespace, absolute paths, `..`, backslashes. */ +function parseAnchor(raw) { + const trimmed = raw.trim(); + if (trimmed === '' || /\s/.test(trimmed)) { + return { invalid: true, reason: 'must not contain whitespace' }; + } + const sep = trimmed.indexOf('::'); + if (sep <= 0 || sep === trimmed.length - 2) { + return { invalid: true, reason: 'expected ::' }; + } + const anchorPath = trimmed.slice(0, sep); + const symbol = trimmed.slice(sep + 2); + if (anchorPath.startsWith('/')) { + return { invalid: true, reason: 'path must be repo-relative (no leading "/")' }; + } + if (anchorPath.includes('\\')) { + return { invalid: true, reason: 'path must use forward slashes' }; + } + if (anchorPath.split('/').includes('..')) { + return { invalid: true, reason: 'path must not traverse outside the project ("../")' }; + } + return { path: anchorPath, symbol }; +} + +/** Extract a validated calendar date (YYYY-MM-DD) from a `Last verified` value. */ +function parseVerifiedDate(rawValue) { + const m = rawValue.match(DATE_RE); + if (!m) return null; + const time = new Date(`${m[1]}T00:00:00Z`).getTime(); + if (Number.isNaN(time)) return null; + return { date: m[1], time }; +} + +function isInside(base, candidate) { + const rel = path.relative(base, candidate); + return rel === '' || (!rel.startsWith(`..${path.sep}`) && rel !== '..' && !path.isAbsolute(rel)); +} + +// ── Git helpers (argv only, never a shell string) ─────────────── + +let gitState = null; + +function gitProbe() { + if (gitState !== null) return gitState; + gitState = { available: false, repo: false, shallow: false }; + try { + execFileSync('git', ['--version'], { stdio: 'ignore', cwd: projectRoot }); + gitState.available = true; + } catch { + return gitState; + } + try { + execFileSync('git', ['rev-parse', '--git-dir'], { stdio: 'ignore', cwd: projectRoot }); + gitState.repo = true; + } catch { + return gitState; + } + try { + const out = execFileSync('git', ['rev-parse', '--is-shallow-repository'], { + encoding: 'utf8', + cwd: projectRoot, + stdio: ['pipe', 'pipe', 'pipe'], + }).trim(); + gitState.shallow = out === 'true'; + } catch { + gitState.shallow = false; + } + return gitState; +} + +/** stdout of `git log --format=%H --after= -- ` (empty when none). */ +function gitHashesAfter(date, anchorPath) { + const out = execFileSync( + 'git', + ['log', '--format=%H', `--after=${date}`, '--', anchorPath], + { encoding: 'utf8', cwd: projectRoot, stdio: ['pipe', 'pipe', 'pipe'] } + ); + return out.trim().split('\n').filter(Boolean); +} + +function gitAllHashes(anchorPath) { + const out = execFileSync( + 'git', + ['log', '--format=%H', '--', anchorPath], + { encoding: 'utf8', cwd: projectRoot, stdio: ['pipe', 'pipe', 'pipe'] } + ); + return out.trim().split('\n').filter(Boolean); +} + +/** + * File-level freshness for one enforced target. + * @returns {{ status: string, reason?: string }} + */ +function targetFreshness(anchorPath) { + const probe = gitProbe(); + if (!probe.available || !probe.repo) { + return { status: 'UNVERIFIED', reason: 'git unavailable or not a repository' }; + } + if (probe.shallow) { + return { status: 'UNVERIFIED', reason: 'shallow clone — history incomplete' }; + } + + const resolved = path.resolve(projectRoot, anchorPath); + if (!isInside(projectRoot, resolved)) { + return { status: 'ORPHANED', reason: `target escapes project root: ${anchorPath}` }; + } + + let real; + try { + real = fs.realpathSync(resolved); + } catch { + return { status: 'ORPHANED', reason: `target file not found: ${anchorPath}` }; + } + if (!isInside(projectRoot, real)) { + return { status: 'ORPHANED', reason: `target resolves outside project (symlink): ${anchorPath}` }; + } + + let all; + try { + all = gitAllHashes(anchorPath); + } catch (err) { + return { status: 'UNVERIFIED', reason: `git error: ${err.message}` }; + } + if (all.length === 0) { + return { status: 'UNVERIFIED', reason: `target has no git history: ${anchorPath}` }; + } + return { status: 'FRESH' }; // changed-after is decided by the caller with the date +} + +// ── Spec walking & parsing ────────────────────────────────────── + +function walkMdFiles(dir) { + const results = []; + if (!fs.existsSync(dir)) return results; + let stat; + try { + stat = fs.statSync(dir); + } catch { + return results; + } + if (!stat.isDirectory()) return results; + for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { + const fullPath = path.join(dir, entry.name); + if (entry.isDirectory()) { + results.push(...walkMdFiles(fullPath)); + } else if (entry.isFile() && entry.name.endsWith('.md')) { + results.push(fullPath); + } + } + return results; +} + +function parseSpecFile(filePath) { + let content; + try { + content = fs.readFileSync(filePath, 'utf8'); + } catch { + return { error: 'unreadable' }; + } + + const enforced = []; + let m; + const re = new RegExp(ENFORCED_RE.source, 'g'); + while ((m = re.exec(content)) !== null) { + enforced.push(m[1].trim()); + } + + const lv = content.match(LAST_VERIFIED_RE); + const lastVerifiedRaw = lv ? lv[1].trim() : null; + + return { enforced, lastVerifiedRaw, error: null }; +} + +/** + * @returns {{ status, path, lastVerified?, enforced?, reasons? }} + */ +function evaluateSpec(relPath, parsed) { + const { enforced, lastVerifiedRaw } = parsed; + const base = { path: relPath }; + + if (lastVerifiedRaw === null) { + return { + ...base, + status: 'UNVERIFIED', + enforced: enforced.length > 0 ? enforced : undefined, + reasons: ['missing "Last verified:" date'], + }; + } + + const verified = parseVerifiedDate(lastVerifiedRaw); + if (!verified) { + return { + ...base, + status: 'UNVERIFIED', + enforced: enforced.length > 0 ? enforced : undefined, + lastVerified: lastVerifiedRaw, + reasons: [`unparseable "Last verified:" value: "${lastVerifiedRaw}"`], + }; + } + + if (enforced.length === 0) { + return { ...base, status: 'FRESH', lastVerified: verified.date }; + } + + const ageDays = (Date.now() - verified.time) / 86400000; + const reasons = []; + const weights = { STALE: 4, ORPHANED: 3, UNVERIFIED: 2, UNKNOWN: 1, FRESH: 0 }; + let status = 'FRESH'; + const bump = (s) => { + if (weights[s] > weights[status]) status = s; + }; + + for (const raw of enforced) { + const anchor = parseAnchor(raw); + if (anchor.invalid) { + bump('UNKNOWN'); + reasons.push(`invalid enforced anchor "${raw}" (${anchor.reason})`); + continue; + } + if (ageDays > staleDays) { + bump('STALE'); + reasons.push(`Last verified ${Math.round(ageDays)} days ago (threshold: ${staleDays} days)`); + } + const verdict = targetFreshness(anchor.path); + if (verdict.status !== 'FRESH') { + bump(verdict.status); + reasons.push(`"${anchor.path}": ${verdict.reason}`); + continue; + } + // File exists & is committed: was it changed after the verification date? + let changed; + try { + changed = gitHashesAfter(verified.date, anchor.path).length > 0; + } catch (err) { + bump('UNVERIFIED'); + reasons.push(`"${anchor.path}": git error: ${err.message}`); + continue; + } + if (changed) { + bump('STALE'); + reasons.push(`"${anchor.path}" changed after last verified ${verified.date}`); + } + } + + return { + ...base, + status, + enforced, + lastVerified: verified.date, + reasons: reasons.length > 0 ? reasons : undefined, + }; +} + +// ── Main ──────────────────────────────────────────────────────── + +function main() { + if (!fs.existsSync(openspecDir)) { + console.log(JSON.stringify({ specs: [], staleCount: 0, totalCount: 0 })); + process.exit(0); + } + + const mdFiles = walkMdFiles(openspecDir); + if (mdFiles.length === 0) { + console.log(JSON.stringify({ specs: [], staleCount: 0, totalCount: 0 })); + process.exit(0); + } + + const specs = []; + for (const filePath of mdFiles) { + const parsed = parseSpecFile(filePath); + const relPath = path.relative(openspecDir, filePath); + if (parsed.error) { + specs.push({ path: relPath, status: 'UNKNOWN' }); + console.error(`WARNING: could not parse ${relPath}: ${parsed.error}`); + continue; + } + specs.push(evaluateSpec(relPath, parsed)); + } + + const staleCount = specs.filter((s) => s.status === 'STALE').length; + const result = { specs, staleCount, totalCount: specs.length }; + + for (const spec of specs) { + if (spec.reasons) { + console.error(`INFO: ${spec.path}: ${spec.status} — ${spec.reasons.join('; ')}`); + } + } + console.error(`Checked ${specs.length} spec(s): ${staleCount} stale.`); + + console.log(JSON.stringify(result)); + + if (staleCount > 0 && !WARN_ONLY) { + process.exit(1); + } + process.exit(0); +} + +main(); diff --git a/scripts/ci/validate-openspec-syntax.js b/scripts/ci/validate-openspec-syntax.js new file mode 100755 index 000000000..83adfc9b2 --- /dev/null +++ b/scripts/ci/validate-openspec-syntax.js @@ -0,0 +1,339 @@ +#!/usr/bin/env node +/** + * Validate OpenSpec markdown against the v1 schema contract. + * + * ── v1 schema contract (source of truth) ───────────────────────── + * Baseline spec file (contains Requirement/Invariant blocks): + * - `### Requirement: ` MUST have at least one + * `#### Scenario: <name>` child. + * - `### Invariant: <title>` MUST carry an `<!-- enforced: -->` anchor. + * - YAML frontmatter is OPTIONAL. When present it is not validated here. + * Delta file (contains `<!-- ADDED: -->`, `<!-- MODIFIED: -->`, + * `<!-- REMOVED: -->` markers): + * - Each DECLARED block MUST be non-empty. An empty block is an error even + * when a later block has content. + * + * Metadata HTML comments — keys are an explicit allowlist: + * id, entities, enforced, test, depends_on, triggers, verified_by, + * status, removal_reason, deferred, uncertainty + * - key on the allowlist → metadata (no value rule beyond non-marker) + * - key machine-shaped (`[a-z][a-z0-9_-]*`) but NOT on the allowlist + * → ERROR (typo guard) + * - everything else (`Note:`, `TODO:`, no colon) → ordinary comment, allowed + * ADDED/MODIFIED/REMOVED are structural delta markers, not metadata. + * + * Enforced anchor grammar: + * <!-- enforced: <repo-relative/path.ext>::<symbol> --> + * relative path + symbol, no whitespace, no leading "/", no "../" or + * backslash traversal. This is the FILE-LEVEL anchor; symbol resolution is + * out of scope for v1 (freshness checks target the file, not the symbol). + * + * Output: single JSON line to stdout {valid, errors[]} + * Diagnostics: all prose to stderr + * Exit: 0 = valid, 1 = one or more validation errors, 2 = config/input error + */ + +'use strict'; + +const fs = require('fs'); +const path = require('path'); + +// ── CLI args & env ────────────────────────────────────────────── + +function resolveOpenspecRoot() { + const rootIdx = process.argv.indexOf('--openspec-root'); + if (rootIdx !== -1 && rootIdx + 1 < process.argv.length) { + return process.argv[rootIdx + 1]; + } + if (process.env.ECC_OPENSPEC_ROOT) { + return process.env.ECC_OPENSPEC_ROOT; + } + return process.cwd(); +} + +const openspecRoot = resolveOpenspecRoot(); + +function die(message, exitCode) { + console.error(`FATAL: ${message}`); + process.exit(exitCode); +} + +try { + const stat = fs.statSync(openspecRoot); + if (!stat.isDirectory()) { + die(`--openspec-root is not a directory: ${openspecRoot}`, 2); + } +} catch (err) { + die(`Cannot access --openspec-root: ${openspecRoot} (${err.message})`, 2); +} + +const openspecDir = path.join(openspecRoot, 'openspec'); + +// ── v1 schema constants ───────────────────────────────────────── + +const METADATA_ALLOWLIST = new Set([ + 'id', + 'entities', + 'enforced', + 'test', + 'depends_on', + 'triggers', + 'verified_by', + 'status', + 'removal_reason', + 'deferred', + 'uncertainty', +]); + +const MACHINE_KEY_RE = /^[a-z][a-z0-9_-]*$/; +const REQUIREMENT_RE = /^###\s+Requirement:\s*(.+)$/; +const INVARIANT_RE = /^###\s+Invariant:\s*(.+)$/; +const SCENARIO_RE = /^####\s+Scenario:\s*/m; +const HTML_COMMENT_RE = /<!--([\s\S]*?)-->/g; +const ENFORCED_RE = /<!--\s*enforced:\s*(.*?)\s*-->/g; +const DELTA_MARKER_RE = /<!--\s*(ADDED|MODIFIED|REMOVED)\s*:\s*-->/g; + +// ── Helpers ───────────────────────────────────────────────────── + +function walkMdFiles(dir) { + const results = []; + if (!fs.existsSync(dir)) return results; + let stat; + try { + stat = fs.statSync(dir); + } catch { + return results; + } + if (!stat.isDirectory()) return results; + + const entries = fs.readdirSync(dir, { withFileTypes: true }); + for (const entry of entries) { + const fullPath = path.join(dir, entry.name); + if (entry.isDirectory()) { + results.push(...walkMdFiles(fullPath)); + } else if (entry.isFile() && entry.name.endsWith('.md')) { + results.push(fullPath); + } + } + return results; +} + +/** + * Validate an enforced anchor string against the v1 grammar. + * @returns {{ path: string, symbol: string } | { invalid: true, reason: string }} + */ +function parseAnchor(raw) { + const trimmed = raw.trim(); + if (trimmed === '' || /\s/.test(trimmed)) { + return { invalid: true, reason: 'must not contain whitespace' }; + } + const sep = trimmed.indexOf('::'); + if (sep <= 0 || sep === trimmed.length - 2) { + return { invalid: true, reason: 'expected <path>::<symbol>' }; + } + const anchorPath = trimmed.slice(0, sep); + const symbol = trimmed.slice(sep + 2); + if (anchorPath.startsWith('/')) { + return { invalid: true, reason: 'path must be repo-relative (no leading "/")' }; + } + if (anchorPath.includes('\\')) { + return { invalid: true, reason: 'path must use forward slashes' }; + } + const segments = anchorPath.split('/'); + if (segments.includes('..')) { + return { invalid: true, reason: 'path must not traverse outside the project ("../")' }; + } + return { path: anchorPath, symbol }; +} + +const INVALID_ANCHOR_MSG = (rel, raw, reason) => + `${rel}: Invalid enforced anchor "${raw}" (${reason}; expected <relative/path.ext>::<symbol>)`; + +/** + * Walk every HTML comment in a file and classify it. + * Returns { errors, metadata[] } — metadata entries not currently consumed by + * structural checks, but presence of an error means the file is invalid. + */ +function classifyComments(rel, content, errors) { + const meta = []; + let match; + const re = new RegExp(HTML_COMMENT_RE.source, 'g'); + while ((match = re.exec(content)) !== null) { + const body = match[1].trim(); + if (body === '') continue; + const colon = body.indexOf(':'); + if (colon === -1) continue; // ordinary comment + const key = body.slice(0, colon).trim(); + const value = body.slice(colon + 1).trim(); + + // Structural delta markers are not metadata. + if (key === 'ADDED' || key === 'MODIFIED' || key === 'REMOVED') continue; + + if (METADATA_ALLOWLIST.has(key)) { + meta.push({ key, value }); + continue; + } + if (MACHINE_KEY_RE.test(key)) { + errors.push(`${rel}: Unknown metadata key "${key}" (not in allowlist)`); + continue; + } + // Uppercase / prose keys (`Note:`, `TODO:`, `PR:`) are ordinary comments. + } + return meta; +} + +/** Collect every enforced anchor string in the file (any location). */ +function collectEnforcedAnchors(content) { + const anchors = []; + let match; + const re = new RegExp(ENFORCED_RE.source, 'g'); + while ((match = re.exec(content)) !== null) { + anchors.push(match[1].trim()); + } + return anchors; +} + +/** + * Split content into top-level sections by `### Requirement:` / `### Invariant:` + * headings. Returns [{ type, title, body }]. Text before the first heading is + * dropped from block validation (document preamble is allowed). + */ +function splitBlocks(content) { + const blocks = []; + const lines = content.split('\n'); + let current = null; + for (const line of lines) { + let m = line.match(REQUIREMENT_RE); + if (m) { + current = { type: 'Requirement', title: m[1].trim(), body: [] }; + blocks.push(current); + continue; + } + m = line.match(INVARIANT_RE); + if (m) { + current = { type: 'Invariant', title: m[1].trim(), body: [] }; + blocks.push(current); + continue; + } + if (current) current.body.push(line); + } + return blocks; +} + +/** Validate a baseline spec file (Requirement/Invariant blocks). */ +function validateBaseline(rel, content, errors) { + const blocks = splitBlocks(content); + + for (const block of blocks) { + const body = block.body.join('\n'); + if (block.type === 'Requirement' && !SCENARIO_RE.test(body)) { + errors.push(`${rel}: Requirement "${block.title}" has no Scenario`); + } + if (block.type === 'Invariant') { + const enforcedIn = collectEnforcedAnchors(body); + if (enforcedIn.length === 0) { + errors.push(`${rel}: Invariant "${block.title}" missing <!-- enforced: --> anchor`); + } + } + } +} + +/** Validate a delta file: every declared ADDED/MODIFIED/REMOVED block is non-empty. */ +function validateDelta(rel, content, errors) { + // Each marker opens a block whose body runs from the END of that marker to + // the START of the next marker (or EOF). Using the next marker's end as the + // boundary would swallow the next marker's text into the current block. + const markers = []; + let match; + const re = new RegExp(DELTA_MARKER_RE.source, 'g'); + while ((match = re.exec(content)) !== null) { + markers.push({ + name: match[1], + bodyStart: match.index + match[0].length, // end of this marker's "-->" + markerStart: match.index, // start of this marker, used as the NEXT block's end + }); + } + + markers.forEach((m, i) => { + const blockEnd = i + 1 < markers.length ? markers[i + 1].markerStart : content.length; + const body = content.slice(m.bodyStart, blockEnd).trim(); + if (body === '') { + errors.push(`${rel}: Empty ${m.name} block (declared but no content)`); + } + }); +} + +// ── Per-file validation ───────────────────────────────────────── + +function validateSpecFile(filePath) { + const errors = []; + const rel = path.relative(openspecDir, filePath); + + let content; + try { + content = fs.readFileSync(filePath, 'utf8'); + } catch (err) { + return [`${rel}: Cannot read file: ${err.message}`]; + } + + if (content.trim() === '') { + return [`${rel}: Empty spec file`]; + } + + // Metadata allowlist + typo guard + ordinary-comment handling. + classifyComments(rel, content, errors); + + // Every enforced anchor anywhere in the file must satisfy the grammar. + for (const raw of collectEnforcedAnchors(content)) { + const parsed = parseAnchor(raw); + if (parsed.invalid) { + errors.push(INVALID_ANCHOR_MSG(rel, raw, parsed.reason)); + } + } + + // Fresh regex per call: /g regexes are stateful across .test() calls. + const isDelta = new RegExp(DELTA_MARKER_RE.source, 'g').test(content); + if (isDelta) { + validateDelta(rel, content, errors); + return errors; + } + + validateBaseline(rel, content, errors); + return errors; +} + +// ── Main ──────────────────────────────────────────────────────── + +function main() { + if (!fs.existsSync(openspecDir)) { + console.log(JSON.stringify({ valid: true, errors: [] })); + process.exit(0); + } + + const mdFiles = walkMdFiles(openspecDir); + if (mdFiles.length === 0) { + console.log(JSON.stringify({ valid: true, errors: [] })); + process.exit(0); + } + + const allErrors = []; + for (const filePath of mdFiles) { + const fileErrors = validateSpecFile(filePath); + allErrors.push(...fileErrors); + } + + if (allErrors.length > 0) { + console.error(`Found ${allErrors.length} validation error(s):`); + for (const err of allErrors) { + console.error(` - ${err}`); + } + } else { + console.error(`Validated ${mdFiles.length} spec file(s): no errors found.`); + } + + console.log(JSON.stringify({ valid: allErrors.length === 0, errors: allErrors })); + + process.exit(allErrors.length > 0 ? 1 : 0); +} + +main(); diff --git a/tests/ci/check-spec-freshness.test.js b/tests/ci/check-spec-freshness.test.js new file mode 100644 index 000000000..266f5933e --- /dev/null +++ b/tests/ci/check-spec-freshness.test.js @@ -0,0 +1,384 @@ +'use strict'; +/** + * Tests for scripts/ci/check-spec-freshness.js + * + * v1 contract (file-level freshness): + * - git invoked via argv array (execFileSync), never via shell string + * - project root and every enforced target resolved through realpaths and + * contained inside the project; symlinked root / escaping target rejected + * - shallow clones report UNVERIFIED (never ORPHANED/STALE) + * - truthful verdicts: FRESH / STALE / ORPHANED (target missing or escaping) + * / UNVERIFIED (no git, not a repo, shallow, missing/invalid date, + * target never committed) + * - ECC_SPEC_STALE_WARN_ONLY honored (=== "true") → stale no longer fails + * + * Date strategy: commits are made at offsets relative to "today" (daysAgo) + * because ECC_SPEC_STALE_DAYS is capped at 365 — a verification dated years in + * the past would always trip the age check and mask the change-detection tests. + * + * Uses the Node native test runner and real (mini) git repositories. + */ + +const { describe, it, before, after } = require('node:test'); +const assert = require('node:assert'); +const { execSync, execFileSync } = require('child_process'); +const path = require('path'); +const fs = require('fs'); +const os = require('os'); + +const SCRIPT = path.join(__dirname, '..', '..', 'scripts', 'ci', 'check-spec-freshness.js'); + +// ── Helpers ───────────────────────────────────────────────────── + +function runChecker(projectRoot, envOverrides = {}) { + const env = { ...process.env, ...envOverrides }; + for (const key of ['GIT_DIR', 'GIT_WORK_TREE', 'GIT_INDEX_FILE', 'GIT_COMMON_DIR', 'GIT_PREFIX']) { + delete env[key]; + } + env.GIT_CONFIG_NOSYSTEM = '1'; + env.GIT_CONFIG_GLOBAL = '/dev/null'; + const opts = { encoding: 'utf8', env, stdio: ['pipe', 'pipe', 'pipe'] }; + let isDir = false; + try { + isDir = fs.statSync(projectRoot).isDirectory(); + } catch { + isDir = false; + } + if (isDir) { + // Run with the project as cwd so any (buggy) shell execution would land a + // marker inside the repo where the hostile-input tests can see it. + opts.cwd = projectRoot; + } + try { + const result = execFileSync(process.execPath, [SCRIPT, '--project-root', projectRoot], opts); + return { exitCode: 0, stdout: result, stderr: '' }; + } catch (err) { + return { + exitCode: err.status || 1, + stdout: err.stdout || '', + stderr: err.stderr || '', + }; + } +} + +function parseJson(result) { + const line = result.stdout.trim().split('\n').pop(); + return JSON.parse(line); +} + +function git(repo, args) { + return execSync(`git ${args}`, { cwd: repo, stdio: ['pipe', 'pipe', 'pipe'] }) + .toString() + .trim(); +} + +/** Init an isolated git repo (full history) and return its path. */ +function initRepo() { + const repo = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-fresh-')); + git(repo, 'init -q'); + git(repo, 'config user.email "test@example.com"'); + git(repo, 'config user.name "Test Runner"'); + return repo; +} + +/** Commit `content` as `relPath` at `date` (YYYY-MM-DD). */ +function commitFile(repo, relPath, content, date, message = `commit ${relPath}`) { + const full = path.join(repo, relPath); + fs.mkdirSync(path.dirname(full), { recursive: true }); + fs.writeFileSync(full, content); + git(repo, 'add -A'); + const env = { ...process.env, GIT_AUTHOR_DATE: `${date}T00:00:00`, GIT_COMMITTER_DATE: `${date}T00:00:00` }; + execSync(`git commit -q -m "${message}"`, { cwd: repo, env, stdio: ['pipe', 'pipe', 'pipe'] }); +} + +/** Write a spec under openspec/specs/<sub>/spec.md with enforced anchors + date. */ +function writeSpec(repo, sub, { lastVerified, anchors = [] }) { + const dir = path.join(repo, 'openspec', 'specs', sub); + fs.mkdirSync(dir, { recursive: true }); + const anchorLines = anchors.map((a) => `<!-- enforced: ${a} -->`).join('\n'); + const lv = lastVerified === undefined ? '' : `Last verified: ${lastVerified}\n`; + const content = + `---\ntitle: ${sub}\n---\n\n` + + `<!-- id: ${sub} -->\n\n` + + `${lv}` + + `### Requirement: ${sub} behavior\n\n` + + `#### Scenario: holds\n` + + `- **WHEN** trigger\n` + + `- **THEN** outcome\n\n` + + `${anchorLines}\n`; + fs.writeFileSync(path.join(dir, 'spec.md'), content); +} + +function daysAgo(n) { + return new Date(Date.now() - n * 86400000).toISOString().split('T')[0]; +} + +let repos = []; +function track(repo) { + repos.push(repo); + return repo; +} + +after(() => { + for (const r of repos) { + try { + fs.rmSync(r, { recursive: true, force: true }); + } catch { + /* ignore */ + } + } + repos = []; +}); + +describe('check-spec-freshness (v1, file-level)', () => { + describe('container / config errors', () => { + it('returns valid for a missing openspec dir (exit 0)', () => { + const repo = track(initRepo()); + const result = runChecker(repo); + assert.strictEqual(result.exitCode, 0); + assert.deepStrictEqual(parseJson(result).specs, []); + }); + + it('returns valid for an empty openspec dir (exit 0)', () => { + const repo = track(initRepo()); + fs.mkdirSync(path.join(repo, 'openspec'), { recursive: true }); + const result = runChecker(repo); + assert.strictEqual(result.exitCode, 0); + }); + + it('exits 2 for a non-existent project root', () => { + const result = runChecker(path.join(os.tmpdir(), 'ecc-missing-' + Date.now())); + assert.strictEqual(result.exitCode, 2); + }); + + it('exits 2 for a project root that is a file', () => { + const file = path.join(os.tmpdir(), 'ecc-file-' + Date.now()); + fs.writeFileSync(file, 'x'); + try { + const result = runChecker(file); + assert.strictEqual(result.exitCode, 2); + } finally { + fs.rmSync(file, { force: true }); + } + }); + + it('exits 2 for a symlinked project root', () => { + const real = track(initRepo()); + const link = path.join(os.tmpdir(), 'ecc-link-' + Date.now()); + fs.symlinkSync(real, link); + try { + const result = runChecker(link); + assert.strictEqual(result.exitCode, 2, result.stderr); + } finally { + fs.rmSync(link, { force: true }); + } + }); + + it('exits 2 for invalid ECC_SPEC_STALE_DAYS values', () => { + const repo = track(initRepo()); + for (const bad of ['0', '-5', 'abc', '400', '1.5', '0x10']) { + const result = runChecker(repo, { ECC_SPEC_STALE_DAYS: bad }); + assert.strictEqual(result.exitCode, 2, `expected exit 2 for "${bad}"`); + } + }); + + it('accepts the boundary ECC_SPEC_STALE_DAYS value 365', () => { + const repo = track(initRepo()); + const result = runChecker(repo, { ECC_SPEC_STALE_DAYS: '365' }); + assert.strictEqual(result.exitCode, 0); + }); + }); + + describe('verdicts on a real repo with history', () => { + // Timeline: src/lib.js committed 300 days ago (v1) and 50 days ago (v2). + let repo; + before(() => { + repo = track(initRepo()); + commitFile(repo, 'src/lib.js', 'v1\n', daysAgo(300), 'lib v1'); + commitFile(repo, 'src/lib.js', 'v2\n', daysAgo(50), 'lib v2'); + }); + + it('marks FRESH a spec verified after the last change', () => { + writeSpec(repo, 'fresh', { lastVerified: daysAgo(1), anchors: ['src/lib.js::run'] }); + const result = runChecker(repo); + assert.strictEqual(result.exitCode, 0, result.stderr); + const spec = parseJson(result).specs.find((s) => s.path.includes('fresh')); + assert.strictEqual(spec.status, 'FRESH', JSON.stringify(spec)); + }); + + it('marks STALE a spec whose enforced file changed after verification', () => { + // Verification 100 days ago: after v1 (300d), before v2 (50d); age 100d is + // under the 365-day cap, so STALE here is caused by the file change alone. + writeSpec(repo, 'stale-change', { lastVerified: daysAgo(100), anchors: ['src/lib.js::run'] }); + const result = runChecker(repo, { ECC_SPEC_STALE_DAYS: '365' }); + assert.strictEqual(result.exitCode, 1); + const spec = parseJson(result).specs.find((s) => s.path.includes('stale-change')); + assert.strictEqual(spec.status, 'STALE', JSON.stringify(spec)); + }); + + it('marks STALE purely from an old verification date (age threshold)', () => { + // Verification 40 days ago (after the last commit 50d ago → no change), + // over the default 30-day threshold → STALE by age only. + writeSpec(repo, 'stale-age', { lastVerified: daysAgo(40), anchors: ['src/lib.js::run'] }); + const result = runChecker(repo); // default threshold 30 + const spec = parseJson(result).specs.find((s) => s.path.includes('stale-age')); + assert.strictEqual(spec.status, 'STALE', JSON.stringify(spec)); + }); + + it('marks UNVERIFIED when Last verified is absent', () => { + writeSpec(repo, 'unverified', { anchors: ['src/lib.js::run'] }); + const result = runChecker(repo); + const spec = parseJson(result).specs.find((s) => s.path.includes('unverified')); + assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); + }); + + it('marks UNVERIFIED when Last verified is not a parseable date', () => { + writeSpec(repo, 'baddate', { lastVerified: 'not-a-date', anchors: ['src/lib.js::run'] }); + const result = runChecker(repo); + const spec = parseJson(result).specs.find((s) => s.path.includes('baddate')); + assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); + }); + + it('marks ORPHANED when the enforced target file does not exist', () => { + writeSpec(repo, 'orphaned', { lastVerified: daysAgo(1), anchors: ['src/missing.js::ghost'] }); + const result = runChecker(repo); + const spec = parseJson(result).specs.find((s) => s.path.includes('orphaned')); + assert.strictEqual(spec.status, 'ORPHANED', JSON.stringify(spec)); + }); + + it('marks UNVERIFIED (not ORPHANED) when the target has no git history', () => { + // File exists on disk but was never committed. + fs.writeFileSync(path.join(repo, 'src', 'untracked.js'), '// never committed\n'); + writeSpec(repo, 'nohistory', { lastVerified: daysAgo(1), anchors: ['src/untracked.js::fn'] }); + const result = runChecker(repo); + const spec = parseJson(result).specs.find((s) => s.path.includes('nohistory')); + assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); + }); + + it('marks ORPHANED when an enforced target escapes via a symlink', () => { + const outside = path.join(os.tmpdir(), 'ecc-outside-' + Date.now() + '.txt'); + fs.writeFileSync(outside, 'outside\n'); + fs.mkdirSync(path.join(repo, 'src'), { recursive: true }); + fs.symlinkSync(outside, path.join(repo, 'src', 'link.js')); + try { + writeSpec(repo, 'escape', { lastVerified: daysAgo(1), anchors: ['src/link.js::x'] }); + const result = runChecker(repo); + const spec = parseJson(result).specs.find((s) => s.path.includes('escape')); + assert.strictEqual(spec.status, 'ORPHANED', JSON.stringify(spec)); + } finally { + fs.rmSync(outside, { force: true }); + } + }); + + it('emits stable JSON on stdout and diagnostics on stderr', () => { + const result = runChecker(repo, { ECC_SPEC_STALE_DAYS: '365' }); + const parsed = parseJson(result); + assert.ok(Array.isArray(parsed.specs)); + assert.ok(typeof parsed.staleCount === 'number'); + assert.ok(typeof parsed.totalCount === 'number'); + assert.strictEqual(parsed.totalCount, parsed.specs.length); + for (const s of parsed.specs) { + assert.ok(s.path); + assert.ok(['FRESH', 'STALE', 'ORPHANED', 'UNVERIFIED', 'UNKNOWN'].includes(s.status)); + } + }); + }); + + describe('warning mode / exit contract', () => { + let staleRepo; + before(() => { + staleRepo = track(initRepo()); + commitFile(staleRepo, 'src/lib.js', 'v1\n', daysAgo(300), 'v1'); + commitFile(staleRepo, 'src/lib.js', 'v2\n', daysAgo(50), 'v2'); + writeSpec(staleRepo, 'stale', { lastVerified: daysAgo(100), anchors: ['src/lib.js::run'] }); + }); + + it('exits 1 on stale by default', () => { + const result = runChecker(staleRepo, { ECC_SPEC_STALE_DAYS: '365' }); + assert.strictEqual(result.exitCode, 1); + }); + + it('exits 0 on stale when ECC_SPEC_STALE_WARN_ONLY=true', () => { + const result = runChecker(staleRepo, { + ECC_SPEC_STALE_DAYS: '365', + ECC_SPEC_STALE_WARN_ONLY: 'true', + }); + assert.strictEqual(result.exitCode, 0, result.stderr); + const parsed = parseJson(result); + assert.ok(parsed.specs.some((s) => s.status === 'STALE'), 'stale specs must still be reported'); + }); + + it('does not honor non-"true" spellings of the warning flag', () => { + const result = runChecker(staleRepo, { + ECC_SPEC_STALE_DAYS: '365', + ECC_SPEC_STALE_WARN_ONLY: 'TRUE', + }); + assert.strictEqual(result.exitCode, 1); + }); + }); + + describe('hostile inputs (shell-escape proof)', () => { + it('does not execute a hostile enforced filename (no command substitution)', () => { + const repo = track(initRepo()); + const hostileName = 'evil$(touch${IFS}ECCPWNMARK).js'; + commitFile(repo, `src/${hostileName}`, '// evil\n', daysAgo(200), 'evil file'); + writeSpec(repo, 'hostile', { lastVerified: daysAgo(400), anchors: [`src/${hostileName}::evil`] }); + + const marker = path.join(repo, 'ECCPWNMARK'); + const result = runChecker(repo); + assert.strictEqual(fs.existsSync(marker), false, 'shell command substitution must not run'); + // The hostile file genuinely changed after the verification date → STALE. + assert.strictEqual(result.exitCode, 1, result.stderr); + }); + + it('does not execute a hostile date string', () => { + const repo = track(initRepo()); + commitFile(repo, 'src/lib.js', 'v1\n', daysAgo(50), 'v1'); + const marker = path.join(repo, 'ECCDATEMARK'); + // The date carries shell payload after a valid date prefix. The checker + // must only pass the extracted, validated date to git as one argv item — + // never hand the whole line to a shell. + writeSpec(repo, 'hostiledate', { + lastVerified: `${daysAgo(50)}; touch ECCDATEMARK`, + anchors: ['src/lib.js::run'], + }); + const result = runChecker(repo); + assert.strictEqual(fs.existsSync(marker), false, 'hostile date must not execute'); + assert.ok([0, 1].includes(result.exitCode), 'must not crash on hostile date'); + assert.doesNotThrow(() => parseJson(result)); + }); + }); + + describe('shallow clones', () => { + it('reports UNVERIFIED (never ORPHANED/STALE) on shallow history', () => { + const full = track(initRepo()); + commitFile(full, 'src/lib.js', 'v1\n', daysAgo(300), 'v1'); + commitFile(full, 'src/lib.js', 'v2\n', daysAgo(50), 'v2'); + + const shallow = track(fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-shallow-'))); + // file:// URL is required: git ignores --depth for plain local paths. + execFileSync('git', ['clone', '-q', '--depth', '1', `file://${full}`, shallow], { + stdio: 'ignore', + }); + + // A spec that would be FRESH or STALE on full history must be UNVERIFIED. + writeSpec(shallow, 'spec', { lastVerified: daysAgo(1), anchors: ['src/lib.js::run'] }); + const result = runChecker(shallow); + const spec = parseJson(result).specs.find((s) => s.path.includes('spec')); + assert.ok(spec, 'expected a spec entry'); + assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); + assert.strictEqual(result.exitCode, 0, 'UNVERIFIED must not fail the check'); + }); + }); + + describe('no enforced anchors', () => { + it('marks a dated spec with no anchors as FRESH (nothing to verify)', () => { + const repo = track(initRepo()); + commitFile(repo, 'src/lib.js', 'v1\n', daysAgo(50), 'v1'); + writeSpec(repo, 'noanchors', { lastVerified: daysAgo(1), anchors: [] }); + const result = runChecker(repo); + const spec = parseJson(result).specs.find((s) => s.path.includes('noanchors')); + assert.strictEqual(spec.status, 'FRESH', JSON.stringify(spec)); + }); + }); +}); diff --git a/tests/ci/validate-openspec-syntax.test.js b/tests/ci/validate-openspec-syntax.test.js new file mode 100644 index 000000000..ada42a431 --- /dev/null +++ b/tests/ci/validate-openspec-syntax.test.js @@ -0,0 +1,414 @@ +'use strict'; +/** + * Tests for scripts/ci/validate-openspec-syntax.js + * + * Covers the v1 OpenSpec schema contract: + * - baseline specs (Requirement + Scenario, Invariant + enforced anchor) + * - per-block delta validation (every declared block must be non-empty) + * - metadata allowlist + unknown-key guard + ordinary comments allowed + * - enforced anchor grammar (path::symbol, repo-relative, no traversal) + * + * The validator expects <root>/openspec/ structure; fixtures are built inline + * as real files in a temp dir so each case is exercised end-to-end. + */ + +const { describe, it } = require('node:test'); +const assert = require('node:assert'); +const { execSync } = require('child_process'); +const path = require('path'); +const fs = require('fs'); +const os = require('os'); + +const SCRIPT = path.join(__dirname, '..', '..', 'scripts', 'ci', 'validate-openspec-syntax.js'); + +function runValidator(openspecRoot) { + try { + const result = execSync( + `node "${SCRIPT}" --openspec-root "${openspecRoot}"`, + { encoding: 'utf8', stdio: ['pipe', 'pipe', 'pipe'] } + ); + return { + exitCode: 0, + stdout: (result.stdout || result).trim(), + stderr: (result.stderr || '').trim(), + }; + } catch (err) { + return { + exitCode: err.status || 1, + stdout: (err.stdout || '').trim(), + stderr: (err.stderr || '').trim(), + }; + } +} + +/** Create a temp project root with openspec/specs/ containing given files */ +function makeTempProject(files) { + const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-vs-')); + const specsDir = path.join(root, 'openspec', 'specs'); + fs.mkdirSync(specsDir, { recursive: true }); + for (const [name, content] of Object.entries(files)) { + const filePath = path.join(specsDir, name); + fs.mkdirSync(path.dirname(filePath), { recursive: true }); + fs.writeFileSync(filePath, content); + } + return root; +} + +// ── Shared content builders ──────────────────────────────────── + +function requirementSpec(extra = '') { + return ( + '---\ntitle: Capability\n---\n\n' + + '### Requirement: Some Req\n' + + 'The system SHALL do the thing.\n\n' + + '#### Scenario: happy path\n' + + '- **WHEN** x\n' + + '- **THEN** y\n\n' + + extra + ); +} + +function invariantSpec(anchor = 'src/lib.js::enforceCheck', extra = '') { + return ( + '### Invariant: Some Invariant\n' + + 'The system SHALL always hold.\n\n' + + `<!-- enforced: ${anchor} -->\n\n` + + extra + ); +} + +function deltaSpec(blocks) { + // blocks: array of { marker: 'ADDED'|'MODIFIED'|'REMOVED', body: string } + let out = '---\ntitle: Delta\n---\n\n'; + for (const b of blocks) { + out += `<!-- ${b.marker}: -->\n${b.body}\n`; + } + return out; +} + +describe('validate-openspec-syntax (v1 schema)', () => { + describe('container / exit codes', () => { + it('is valid when openspec dir is missing', () => { + const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-vs-missing-')); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0); + const parsed = JSON.parse(result.stdout.split('\n').pop()); + assert.strictEqual(parsed.valid, true); + assert.deepStrictEqual(parsed.errors, []); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('is valid for an empty openspec directory', () => { + const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-vs-empty-')); + try { + fs.mkdirSync(path.join(root, 'openspec')); + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('exits 2 for a non-existent root', () => { + const result = runValidator('/tmp/nonexistent-openspec-root-' + Date.now()); + assert.strictEqual(result.exitCode, 2); + }); + + it('exits 2 when root is a file, not a directory', () => { + const file = path.join(os.tmpdir(), 'ecc-vs-file-' + Date.now()); + fs.writeFileSync(file, 'x'); + try { + const result = runValidator(file); + assert.strictEqual(result.exitCode, 2); + } finally { + fs.rmSync(file, { force: true }); + } + }); + }); + + describe('valid baseline specs', () => { + it('passes a Requirement with a Scenario', () => { + const root = makeTempProject({ 'valid/spec.md': requirementSpec() }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + const parsed = JSON.parse(result.stdout.split('\n').pop()); + assert.strictEqual(parsed.valid, true); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('passes a spec without YAML frontmatter (frontmatter optional)', () => { + const root = makeTempProject({ + 'nofm/spec.md': + '# Spec: nofm\n\n' + + '### Requirement: Req\n' + + 'SHALL pass.\n\n' + + '#### Scenario: s\n' + + '- **WHEN** a\n' + + '- **THEN** b\n', + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('passes an Invariant with a well-formed enforced anchor', () => { + const root = makeTempProject({ 'inv/spec.md': invariantSpec() }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('passes allowlisted metadata on Requirement and Invariant', () => { + const root = makeTempProject({ + 'meta/spec.md': + requirementSpec( + '<!-- id: some-req -->\n' + + '<!-- entities: User, Order -->\n' + + '<!-- test: OrderTest.placesOrder() -->\n' + + '<!-- depends_on: Earlier Behavior -->\n' + + '<!-- triggers: Later Behavior -->\n' + ) + + invariantSpec('src/orders.js::rejectInvalid', '<!-- verified_by: OrderTest.rejects() -->\n') + + '<!-- deferred: file1.md, file2.md -->\n', + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + }); + + describe('structural validation', () => { + it('flags a Requirement with no Scenario', () => { + const root = makeTempProject({ + 'noscen/spec.md': + '### Requirement: Missing Scenario Req\n' + + 'This requirement has no scenario.\n', + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 1); + const parsed = JSON.parse(result.stdout.split('\n').pop()); + const hit = parsed.errors.some((e) => e.includes('has no Scenario')); + assert.ok(hit, `expected missing-Scenario error, got: ${JSON.stringify(parsed.errors)}`); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('flags an Invariant with no enforced anchor', () => { + const root = makeTempProject({ + 'noenf/spec.md': + '### Invariant: No Anchor\n' + + 'Must have an anchor.\n', + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 1); + const parsed = JSON.parse(result.stdout.split('\n').pop()); + const hit = parsed.errors.some((e) => e.includes('enforced')); + assert.ok(hit, `expected missing-enforced error, got: ${JSON.stringify(parsed.errors)}`); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + }); + + describe('enforced anchor grammar', () => { + const CASES = [ + ['spaces instead of ::', 'not a valid anchor'], + ['empty symbol', 'src/lib.js::'], + ['empty path', '::check'], + ['absolute path', '/etc/passwd::x'], + ['dot-dot traversal', '../secret.js::x'], + ['nested dot-dot traversal', 'src/../../secret.js::x'], + ['backslash path', 'src\\lib.js::x'], + ]; + + for (const [label, anchor] of CASES) { + it(`rejects ${label}`, () => { + const root = makeTempProject({ 'badanchor/spec.md': invariantSpec(anchor) }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 1, anchor); + const parsed = JSON.parse(result.stdout.split('\n').pop()); + const hit = parsed.errors.some((e) => e.includes('Invalid enforced anchor')); + assert.ok(hit, `expected anchor error for "${anchor}", got: ${JSON.stringify(parsed.errors)}`); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + } + + it('accepts a nested relative path anchor', () => { + const root = makeTempProject({ + 'nested/spec.md': invariantSpec('packages/core/src/checker.js::verify'), + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + }); + + describe('metadata comments', () => { + it('flags an unknown machine-shaped metadata key (typo guard)', () => { + const root = makeTempProject({ + 'unk/spec.md': + requirementSpec('<!-- enforcd: src/lib.js::check -->\n'), + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 1); + const parsed = JSON.parse(result.stdout.split('\n').pop()); + const hit = parsed.errors.some((e) => e.includes('Unknown metadata key')); + assert.ok(hit, `expected unknown-key error, got: ${JSON.stringify(parsed.errors)}`); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('allows ordinary prose comments even with a colon', () => { + const root = makeTempProject({ + 'prose/spec.md': + requirementSpec( + '<!-- Note: this is a human note, keep it -->\n' + + '<!-- TODO(team): address in follow-up -->\n' + ), + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('allows colon-less comments anywhere', () => { + const root = makeTempProject({ + 'plain/spec.md': requirementSpec('<!-- just a comment -->\n'), + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + }); + + describe('delta files', () => { + it('passes a delta with three non-empty blocks', () => { + const root = makeTempProject({ + 'deltas/valid.md': deltaSpec([ + { marker: 'ADDED', body: 'Added validation logic.' }, + { marker: 'MODIFIED', body: 'Now uses structured errors.' }, + { marker: 'REMOVED', body: 'Dropped legacy path.' }, + ]), + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('rejects a delta where the FIRST block is empty but a later one has content', () => { + // Regression for: "content in any later block made all earlier empty blocks pass" + const root = makeTempProject({ + 'deltas/first-empty.md': deltaSpec([ + { marker: 'ADDED', body: '' }, + { marker: 'MODIFIED', body: 'Some real content.' }, + ]), + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 1); + const parsed = JSON.parse(result.stdout.split('\n').pop()); + const hit = parsed.errors.some((e) => e.includes('Empty ADDED block')); + assert.ok(hit, `expected empty-ADDED error, got: ${JSON.stringify(parsed.errors)}`); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('rejects a delta where every declared block is empty', () => { + const root = makeTempProject({ + 'deltas/all-empty.md': deltaSpec([ + { marker: 'ADDED', body: '' }, + { marker: 'REMOVED', body: '' }, + ]), + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 1); + const parsed = JSON.parse(result.stdout.split('\n').pop()); + const added = parsed.errors.some((e) => e.includes('Empty ADDED block')); + const removed = parsed.errors.some((e) => e.includes('Empty REMOVED block')); + assert.ok(added, 'expected empty-ADDED error'); + assert.ok(removed, 'expected empty-REMOVED error'); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('rejects an empty file as an empty spec', () => { + const root = makeTempProject({ 'deltas/empty.md': '' }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 1); + const parsed = JSON.parse(result.stdout.split('\n').pop()); + const hit = parsed.errors.some((e) => e.toLowerCase().includes('empty')); + assert.ok(hit, `expected empty error, got: ${JSON.stringify(parsed.errors)}`); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + }); + + describe('output format', () => { + it('emits JSON on stdout only', () => { + const root = makeTempProject({ 'bad.md': '' }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 1); + const stdoutLines = result.stdout.split('\n').filter((l) => l.trim().length > 0); + for (const line of stdoutLines) { + assert.doesNotThrow(() => JSON.parse(line), `stdout must be JSON only: ${line}`); + } + assert.ok(result.stderr.length > 0, 'diagnostics should go to stderr'); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('reports valid:false with errors on stdout when invalid', () => { + const root = makeTempProject({ 'bad.md': '' }); + try { + const result = runValidator(root); + const parsed = JSON.parse(result.stdout.split('\n').pop()); + assert.strictEqual(parsed.valid, false); + assert.ok(Array.isArray(parsed.errors) && parsed.errors.length > 0); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + }); +}); From a6784aee21dc1464459c935d81fb593aa7a76f00 Mon Sep 17 00:00:00 2001 From: wellkilo <wellkilo@foxmail.com> Date: Sat, 12 Sep 2026 22:13:59 +0800 Subject: [PATCH 26/78] feat(vibe): add native skill target --- README.md | 7 +- docs/MISTRAL-VIBE-GUIDE.md | 64 ++++ package.json | 1 + schemas/ecc-install-config.schema.json | 7 +- schemas/install-modules.schema.json | 3 +- scripts/consult.js | 7 + scripts/install-apply.js | 1 + scripts/install-plan.js | 1 + scripts/lib/harness-capabilities.js | 17 + scripts/lib/install-executor.js | 6 + scripts/lib/install-manifests.js | 140 +++++--- scripts/lib/install-targets/helpers.js | 1 + .../install-targets/mistral-vibe-project.js | 60 ++++ scripts/lib/install-targets/registry.js | 2 + tests/ci/packed-artifact-lifecycle.js | 15 +- tests/ci/packed-artifact-lifecycle.test.js | 11 + tests/docs/mistral-vibe-guide.test.js | 55 ++++ tests/lib/harness-capabilities.test.js | 19 +- tests/lib/install-config.test.js | 20 ++ tests/lib/install-manifests.test.js | 38 +++ tests/lib/install-targets.test.js | 1 + tests/lib/mistral-vibe-install-target.test.js | 304 ++++++++++++++++++ tests/scripts/consult.test.js | 17 + tests/scripts/install-apply.test.js | 29 ++ tests/scripts/install-plan.test.js | 28 ++ tests/scripts/npm-publish-surface.test.js | 2 + tests/scripts/ownership-guard.test.js | 5 +- 27 files changed, 810 insertions(+), 51 deletions(-) create mode 100644 docs/MISTRAL-VIBE-GUIDE.md create mode 100644 scripts/lib/install-targets/mistral-vibe-project.js create mode 100644 tests/docs/mistral-vibe-guide.test.js create mode 100644 tests/lib/mistral-vibe-install-target.test.js diff --git a/README.md b/README.md index 86dba5120..7fa0ce083 100644 --- a/README.md +++ b/README.md @@ -232,7 +232,7 @@ npx ecc-universal@2.2.1 doctor --target kimi Do not use `npx ecc-install --profile minimal --target claude`: `ecc-install` is a binary name inside `ecc-universal`, not a separately published npm package. -ECC also ships advanced managed adapters for `cursor`, `antigravity`, `gemini`, `opencode`, `codebuddy`, `joycode`, `qwen`, `zed`, `hermes`, and `openclaw`. Those targets still use their documented `ecc install --target ...` paths until each adapter has passed the guided collision, update, repair, and uninstall lifecycle matrix. Neither wizard silently installs into every detected harness. +ECC also ships advanced managed adapters for `cursor`, `antigravity`, `gemini`, `opencode`, `codebuddy`, `joycode`, `qwen`, `zed`, `hermes`, `openclaw`, and `mistral-vibe`. Those targets still use their documented `ecc install --target ...` paths until each adapter has passed the guided collision, update, repair, and uninstall lifecycle matrix. Neither wizard silently installs into every detected harness. ### Pick one path only (per harness) @@ -357,7 +357,7 @@ For repo navigation, surface ownership, and PR diff packet guidance, read the [C ### Other agents and editors <details> -<summary><strong>Cursor, OpenCode, Gemini, Zed, Antigravity, Qwen, Hermes, OpenClaw, Kimi, CodeBuddy, JoyCode, Copilot</strong></summary> +<summary><strong>Cursor, OpenCode, Gemini, Zed, Antigravity, Qwen, Hermes, OpenClaw, Kimi, Mistral Vibe, CodeBuddy, JoyCode, Copilot</strong></summary> Clone ECC once, then choose the target that matches your harness: @@ -377,6 +377,7 @@ cd ECC | Hermes | `./install.sh --profile minimal --target hermes` | See the [Hermes setup guide](docs/HERMES-SETUP.md) | | OpenClaw | `./install.sh --profile minimal --target openclaw` | Managed home-directory install | | Kimi Code CLI | `./install.sh --profile minimal --target kimi` | Project-local `.kimi-code/` install · [Get Kimi Code](https://www.kimi.com/code?aff=ecc) | +| Mistral Vibe | `./install.sh --target mistral-vibe --skills tdd-workflow` | Project-local `.vibe/skills/` install · [Mistral Vibe guide](docs/MISTRAL-VIBE-GUIDE.md) | | CodeBuddy | `./install.sh --profile minimal --target codebuddy` | Project-local `.codebuddy/` install | | JoyCode | `./install.sh --profile minimal --target joycode` | Project-local `.joycode/` install | @@ -1260,7 +1261,7 @@ Treat `stable`, `beta`, `experimental`, and `instruction-only` below as capabili | Cursor | Beta project adapter | Selective installer into `.cursor/` | Agent discovery varies by Cursor build, and ECC's installer paths do not yet expose identical hook sets ([#2419](https://github.com/affaan-m/ECC/issues/2419)). | | OpenCode | Beta built plugin | Build plugin, then selective installer | ECC ships a subset of the catalog; connect a provider and select a model in OpenCode ([#2617](https://github.com/affaan-m/ECC/issues/2617)). | | GitHub Copilot | Instruction-only | Checked-in instructions and prompt files | No ECC hooks, runtime agents, delegation, or native skill discovery. | -| Gemini, Zed, Antigravity, Qwen, Hermes, OpenClaw, Kimi, CodeBuddy, JoyCode | Experimental/minimal adapters | Harness-specific selective target | File placement and instruction portability are tested; full Claude feature parity is not claimed. | +| Gemini, Zed, Antigravity, Qwen, Hermes, OpenClaw, Kimi, Mistral Vibe, CodeBuddy, JoyCode | Experimental/minimal adapters | Harness-specific selective target | File placement and instruction portability are tested; full Claude feature parity is not claimed. | <details> <summary><strong>Package manager detection</strong></summary> diff --git a/docs/MISTRAL-VIBE-GUIDE.md b/docs/MISTRAL-VIBE-GUIDE.md new file mode 100644 index 000000000..cc42d64cc --- /dev/null +++ b/docs/MISTRAL-VIBE-GUIDE.md @@ -0,0 +1,64 @@ +# Mistral Vibe integration + +ECC provides a project-local, skills-first integration for Mistral Vibe. The +contract in this guide is verified against **Mistral Vibe v2.25.3**. + +## Install a skill + +Run the installer from the project that Vibe will open. Keep the ECC source +checkout separate so managed files are written to the target project: + +```bash +ECC_ROOT="/absolute/path/to/ECC" +"$ECC_ROOT/install.sh" --target mistral-vibe --skills tdd-workflow +``` + +After a release containing this target is published, verify the registry +version and pin that released version: + +```bash +npm view ecc-universal version +npx ecc-universal@<released-version> install --target mistral-vibe --skills tdd-workflow +``` + +Install multiple skills with a comma-separated list: + +```bash +"$ECC_ROOT/install.sh" --target mistral-vibe --skills tdd-workflow,security-review +``` + +ECC writes each selected skill to `.vibe/skills/<name>/`. Vibe discovers this +directory natively for trusted projects and loads each `SKILL.md` through its +Agent Skills implementation. ECC records only its managed files in +`.vibe/ecc-install-state.json`; an existing user-owned skill file is preserved. + +## Verify and maintain the install + +```bash +node "$ECC_ROOT/scripts/list-installed.js" --target mistral-vibe +node "$ECC_ROOT/scripts/doctor.js" --target mistral-vibe +node "$ECC_ROOT/scripts/repair.js" --target mistral-vibe +node "$ECC_ROOT/scripts/uninstall.js" --target mistral-vibe +``` + +Use `--dry-run --json` with install, repair, or uninstall to inspect changes +before writing them. Repair restores missing or drifted ECC-managed skill files. +Uninstall removes unchanged managed files, but preserves modified files and the +install-state so they can be reviewed. + +## Compatibility boundary + +This first integration deliberately installs Agent Skills only. It does not +configure Vibe model/provider credentials, `.vibe/config.toml`, MCP servers, or +`.vibe/hooks.toml`. It also does not translate ECC's Claude-oriented agent +Markdown into `.vibe/agents/*.toml`, and it does not claim that ECC command or +rule directories are native Vibe surfaces. + +Vibe also discovers project-level `.agents/skills/` and root `AGENTS.md`, but +ECC uses `.vibe/skills/` so every managed write and lifecycle action stays +inside one project-local ownership boundary. + +Official references: + +- [Mistral Vibe](https://github.com/mistralai/mistral-vibe) +- [Agent Skills specification](https://agentskills.io/specification) diff --git a/package.json b/package.json index 87487a914..19f2fec20 100644 --- a/package.json +++ b/package.json @@ -71,6 +71,7 @@ "docs/CODEX-NAVIGATION-GUIDE.md", "docs/COMMAND-AGENT-MAP.md", "docs/ROADMAP.md", + "docs/MISTRAL-VIBE-GUIDE.md", "docs/design/ecc-memory-vault.md", "docs/ja-JP/", "docs/ko-KR/", diff --git a/schemas/ecc-install-config.schema.json b/schemas/ecc-install-config.schema.json index 29b57538f..d26628498 100644 --- a/schemas/ecc-install-config.schema.json +++ b/schemas/ecc-install-config.schema.json @@ -32,7 +32,8 @@ "hermes", "openclaw", "kimi", - "adal" + "adal", + "mistral-vibe" ] }, "profile": { @@ -50,14 +51,14 @@ "type": "array", "items": { "type": "string", - "pattern": "^(baseline|lang|framework|capability):[a-z0-9-]+$" + "pattern": "^(baseline|lang|framework|capability|skill):[a-z0-9-]+$" } }, "exclude": { "type": "array", "items": { "type": "string", - "pattern": "^(baseline|lang|framework|capability):[a-z0-9-]+$" + "pattern": "^(baseline|lang|framework|capability|skill):[a-z0-9-]+$" } }, "options": { diff --git a/schemas/install-modules.schema.json b/schemas/install-modules.schema.json index 620f616dc..8d81d6fb5 100644 --- a/schemas/install-modules.schema.json +++ b/schemas/install-modules.schema.json @@ -62,7 +62,8 @@ "hermes", "openclaw", "kimi", - "adal" + "adal", + "mistral-vibe" ] } }, diff --git a/scripts/consult.js b/scripts/consult.js index 4a9d6ba6d..2ffb59f2a 100644 --- a/scripts/consult.js +++ b/scripts/consult.js @@ -242,11 +242,17 @@ function commandFor(kind, id, target) { if (kind === 'profile') { return `npx ecc-universal install --profile ${id} --target ${target}`; } + if (target === 'mistral-vibe' && id.startsWith('skill:')) { + return `npx ecc-universal install --target mistral-vibe --skills ${id.slice('skill:'.length)}`; + } return `npx ecc-universal install --profile minimal --target ${target} --with ${id}`; } function planCommandFor(componentId, target) { + if (target === 'mistral-vibe' && componentId.startsWith('skill:')) { + return `npx ecc-universal plan --target mistral-vibe --skills ${componentId.slice('skill:'.length)}`; + } return `npx ecc-universal plan --profile minimal --target ${target} --with ${componentId}`; } @@ -358,6 +364,7 @@ function rankComponents({ queryTokens, target, limit }) { } function rankProfiles({ queryTokens, target, limit }) { + if (target === 'mistral-vibe') return []; const manifests = loadInstallManifests(); return listInstallProfiles() .map(profile => { diff --git a/scripts/install-apply.js b/scripts/install-apply.js index 1435d2ff6..627e23771 100755 --- a/scripts/install-apply.js +++ b/scripts/install-apply.js @@ -49,6 +49,7 @@ Targets: kimi - Install Kimi Code project instructions, skills, and MCP config into ./.kimi-code/ (ECC hooks not configured) openclaw - Install shared rules/skills/commands into ~/.openclaw/ adal - Install shared rules/skills/commands into ./.adal/ + mistral-vibe - Install selected skills into ./.vibe/skills/ (Vibe hooks and agents not configured) Options: --profile <name> Resolve and install a manifest profile diff --git a/scripts/install-plan.js b/scripts/install-plan.js index e2d5fc653..28e7006eb 100644 --- a/scripts/install-plan.js +++ b/scripts/install-plan.js @@ -261,6 +261,7 @@ function main() { includeComponentIds: request.includeComponentIds, excludeComponentIds: request.excludeComponentIds, target: request.target, + projectRoot: process.cwd(), }); if (options.json) { diff --git a/scripts/lib/harness-capabilities.js b/scripts/lib/harness-capabilities.js index c42f0488e..13ecddf09 100644 --- a/scripts/lib/harness-capabilities.js +++ b/scripts/lib/harness-capabilities.js @@ -214,6 +214,23 @@ const HARNESS_CAPABILITIES = deepFreeze([ hooks: hooks('not-configured', false, 'ECC hooks are not configured by this adapter.'), aliases: ['adal-cli'], }, + { + id: 'mistral-vibe', + label: 'Mistral Vibe', + targetIds: ['mistral-vibe'], + channel: 'managed-project', + installMode: 'managed-project', + guidedReady: false, + availability: 'advanced', + destination: './.vibe', + scopes: [scope('project', 'mistral-vibe', './.vibe')], + hooks: hooks( + 'not-configured', + false, + 'ECC installs selected Agent Skills only; Vibe hooks, agents, and provider configuration are not configured.' + ), + aliases: ['vibe'], + }, { id: 'hermes', label: 'Hermes', diff --git a/scripts/lib/install-executor.js b/scripts/lib/install-executor.js index 72eac5e8a..f19e2dcf1 100644 --- a/scripts/lib/install-executor.js +++ b/scripts/lib/install-executor.js @@ -47,6 +47,12 @@ function validateLegacyTarget(target) { // positional syntax (which is legacy-only). Guide the user to the right mode // instead of implying the target is unknown (#2282). if (SUPPORTED_INSTALL_TARGETS.includes(target)) { + if (target === 'mistral-vibe') { + throw new Error( + "Target 'mistral-vibe' supports explicit Agent Skill installs only. " + + "Use `install.sh --target mistral-vibe --skills <id,...>`." + ); + } throw new Error( `Target '${target}' is supported, but the bare-language install syntax only accepts ${LEGACY_INSTALL_TARGETS.join(', ')}. ` + `Install '${target}' with a component selection instead, e.g. \`install.sh --target ${target} --profile full\` ` + diff --git a/scripts/lib/install-manifests.js b/scripts/lib/install-manifests.js index bb16cc93c..f57632f66 100644 --- a/scripts/lib/install-manifests.js +++ b/scripts/lib/install-manifests.js @@ -5,7 +5,7 @@ const { getInstallTargetAdapter, planInstallTargetScaffold } = require('./instal const { resolveInvocationEnvironment } = require('./invocation-environment'); const DEFAULT_REPO_ROOT = path.join(__dirname, '../..'); -const SUPPORTED_INSTALL_TARGETS = ['claude', 'claude-project', 'cursor', 'antigravity', 'codex', 'gemini', 'opencode', 'codebuddy', 'joycode', 'qwen', 'zed', 'hermes', 'openclaw', 'kimi', 'adal']; +const SUPPORTED_INSTALL_TARGETS = ['claude', 'claude-project', 'cursor', 'antigravity', 'codex', 'gemini', 'opencode', 'codebuddy', 'joycode', 'qwen', 'zed', 'hermes', 'openclaw', 'kimi', 'adal', 'mistral-vibe']; const COMPONENT_FAMILY_PREFIXES = { baseline: 'baseline:', language: 'lang:', @@ -189,42 +189,58 @@ function listSkillDirectoryIds(repoRoot) { .sort(); } -function addSyntheticSkillComponents({ repoRoot, modules, components }) { - const moduleIds = new Set(modules.map(module => module.id)); +function addSyntheticSkillComponents({ repoRoot, modules, components, target = null }) { + const originalModuleIds = new Set(modules.map(module => module.id)); const componentIds = new Set(components.map(component => component.id)); + const syntheticModules = []; + const syntheticComponents = []; for (const skillId of listSkillDirectoryIds(repoRoot)) { const componentId = `skill:${skillId}`; + const needsTargetSpecificModule = target === 'mistral-vibe'; + if (componentIds.has(componentId) && !needsTargetSpecificModule) { + continue; + } + const moduleId = `skill-${skillId}`; + const exactSkillModule = { + id: moduleId, + kind: 'skills', + description: `Single-skill install surface for ${skillId}.`, + paths: [`skills/${skillId}`], + targets: needsTargetSpecificModule + ? ['mistral-vibe'] + : SUPPORTED_INSTALL_TARGETS.slice(), + dependencies: [], + defaultInstall: false, + cost: 'light', + stability: 'stable', + synthetic: true, + }; + if (needsTargetSpecificModule || !originalModuleIds.has(moduleId)) { + syntheticModules.push(exactSkillModule); + } + if (componentIds.has(componentId)) { continue; } - const moduleId = `skill-${skillId}`; - if (!moduleIds.has(moduleId)) { - modules.push({ - id: moduleId, - kind: 'skills', - description: `Single-skill install surface for ${skillId}.`, - paths: [`skills/${skillId}`], - targets: SUPPORTED_INSTALL_TARGETS.slice(), - dependencies: [], - defaultInstall: false, - cost: 'light', - stability: 'stable', - synthetic: true, - }); - moduleIds.add(moduleId); - } - - components.push({ + syntheticComponents.push({ id: componentId, family: 'skill', description: `Install only the ${skillId} skill directory.`, modules: [moduleId], synthetic: true, }); - componentIds.add(componentId); } + + const replacementModuleIds = new Set(syntheticModules.map(module => module.id)); + return { + modules: [ + ...modules.filter(module => !replacementModuleIds.has(module.id)), + ...syntheticModules, + ], + components: [...components, ...syntheticComponents], + }; } function readOptionalStringOption(options, key) { @@ -292,6 +308,21 @@ function intersectTargets(modules) { )); } +function getComponentModuleIds(component, manifests, target = null) { + const skillId = component.id.startsWith(COMPONENT_FAMILY_PREFIXES.skill) + ? component.id.slice(COMPONENT_FAMILY_PREFIXES.skill.length) + : null; + const exactSkillModuleId = skillId ? `skill-${skillId}` : null; + if ( + target === 'mistral-vibe' + && exactSkillModuleId + && manifests.modulesById.has(exactSkillModuleId) + ) { + return [exactSkillModuleId]; + } + return dedupeStrings(component.modules); +} + function getManifestPaths(repoRoot = DEFAULT_REPO_ROOT) { return { modulesPath: path.join(repoRoot, 'manifests', 'install-modules.json'), @@ -319,23 +350,30 @@ function loadInstallManifests(options = {}) { : {}; const components = Array.isArray(componentsData.components) ? componentsData.components.slice() : []; - addSyntheticSkillComponents({ repoRoot, modules, components }); + const withSyntheticSkills = addSyntheticSkillComponents({ + repoRoot, + modules, + components, + target: options.target || null, + }); + const resolvedModules = withSyntheticSkills.modules; + const resolvedComponents = withSyntheticSkills.components; - for (const module of modules) { + for (const module of resolvedModules) { readModuleTargetsOrThrow(module); } - const modulesById = new Map(modules.map(module => [module.id, module])); - const componentsById = new Map(components.map(component => [component.id, component])); + const modulesById = new Map(resolvedModules.map(module => [module.id, module])); + const componentsById = new Map(resolvedComponents.map(component => [component.id, component])); return { repoRoot, modulesPath, profilesPath, componentsPath, - modules, + modules: resolvedModules, profiles, - components, + components: resolvedComponents, modulesById, componentsById, modulesVersion: modulesData.version, @@ -398,7 +436,7 @@ function listInstallComponents(options = {}) { return manifests.components .filter(component => !family || component.family === family) .map(component => { - const moduleIds = dedupeStrings(component.modules); + const moduleIds = getComponentModuleIds(component, manifests, target); const modules = moduleIds .map(moduleId => manifests.modulesById.get(moduleId)) .filter(Boolean); @@ -429,7 +467,7 @@ function getInstallComponent(componentId, options = {}) { throw new Error(`Unknown install component: ${normalizedComponentId}`); } - const moduleIds = dedupeStrings(component.modules); + const moduleIds = getComponentModuleIds(component, manifests, options.target || null); const modules = moduleIds .map(moduleId => manifests.modulesById.get(moduleId)) .filter(Boolean) @@ -455,7 +493,7 @@ function getInstallComponent(componentId, options = {}) { }; } -function expandComponentIdsToModuleIds(componentIds, manifests) { +function expandComponentIdsToModuleIds(componentIds, manifests, options = {}) { const expandedModuleIds = []; for (const componentId of dedupeStrings(componentIds)) { @@ -463,7 +501,11 @@ function expandComponentIdsToModuleIds(componentIds, manifests) { if (!component) { throw new Error(`Unknown install component: ${componentId}`); } - expandedModuleIds.push(...component.modules); + expandedModuleIds.push(...getComponentModuleIds( + component, + manifests, + options.target || null + )); } return dedupeStrings(expandedModuleIds); @@ -543,13 +585,19 @@ function resolveLegacyCompatibilitySelection(options = {}) { } function resolveInstallPlan(options = {}) { - const manifests = loadInstallManifests(options); + const target = options.target || null; + const manifests = loadInstallManifests({ ...options, target }); const requestedProfileId = options.profileId || null; const explicitModuleIds = dedupeStrings(options.moduleIds); const includedComponentIds = dedupeStrings(options.includeComponentIds); const excludedComponentIds = dedupeStrings(options.excludeComponentIds); const requestedModuleIds = []; - const target = options.target || null; + + if (target === 'mistral-vibe' && requestedProfileId) { + throw new Error( + 'Mistral Vibe currently supports explicit Agent Skill installs only; use --skills <id,...> instead of a profile.' + ); + } if (target && !SUPPORTED_INSTALL_TARGETS.includes(target)) { throw new Error( @@ -577,16 +625,24 @@ function resolveInstallPlan(options = {}) { } requestedModuleIds.push(...explicitModuleIds); - requestedModuleIds.push(...expandComponentIdsToModuleIds(includedComponentIds, manifests)); + requestedModuleIds.push(...expandComponentIdsToModuleIds( + includedComponentIds, + manifests, + { target } + )); - const excludedModuleIds = expandComponentIdsToModuleIds(excludedComponentIds, manifests); + const excludedModuleIds = expandComponentIdsToModuleIds( + excludedComponentIds, + manifests, + { target } + ); const excludedModuleOwners = new Map(); for (const componentId of excludedComponentIds) { const component = manifests.componentsById.get(componentId); if (!component) { throw new Error(`Unknown install component: ${componentId}`); } - for (const moduleId of component.modules) { + for (const moduleId of getComponentModuleIds(component, manifests, target)) { const owners = excludedModuleOwners.get(moduleId) || []; owners.push(componentId); excludedModuleOwners.set(moduleId, owners); @@ -615,6 +671,11 @@ function resolveInstallPlan(options = {}) { ); if (requestedModuleIds.length === 0) { + if (target === 'mistral-vibe') { + throw new Error( + 'Mistral Vibe currently supports explicit Agent Skill installs only; use --skills <id,...>.' + ); + } throw new Error('No install profile, module IDs, or included component IDs were provided'); } @@ -698,6 +759,11 @@ function resolveInstallPlan(options = {}) { const selectedModules = manifests.modules.filter(module => selectedIds.has(module.id)); const skippedModules = manifests.modules.filter(module => skippedTargetIds.has(module.id)); const excludedModules = manifests.modules.filter(module => excludedIds.has(module.id)); + if (target === 'mistral-vibe' && selectedModules.length === 0) { + throw new Error( + 'Mistral Vibe currently supports explicit Agent Skill installs only; use --skills <id,...>.' + ); + } const scaffoldPlan = target ? planInstallTargetScaffold({ target, diff --git a/scripts/lib/install-targets/helpers.js b/scripts/lib/install-targets/helpers.js index f69d75e86..0897aa2a3 100644 --- a/scripts/lib/install-targets/helpers.js +++ b/scripts/lib/install-targets/helpers.js @@ -15,6 +15,7 @@ const PLATFORM_SOURCE_PATH_OWNERS = Object.freeze({ '.hermes': 'hermes', '.kimi': 'kimi', '.kimi-code': 'kimi', + '.vibe': 'mistral-vibe', '.joycode': 'joycode', '.opencode': 'opencode', '.openclaw': 'openclaw', diff --git a/scripts/lib/install-targets/mistral-vibe-project.js b/scripts/lib/install-targets/mistral-vibe-project.js new file mode 100644 index 000000000..5fb70fef7 --- /dev/null +++ b/scripts/lib/install-targets/mistral-vibe-project.js @@ -0,0 +1,60 @@ +'use strict'; + +const path = require('path'); + +const { + createInstallTargetAdapter, + createManagedScaffoldOperation, +} = require('./helpers'); + +function parseSkillSourcePath(sourceRelativePath) { + if (typeof sourceRelativePath !== 'string' || sourceRelativePath.length === 0) { + throw new Error('Unsafe Mistral Vibe skill source path: expected skills/<name>'); + } + if (path.isAbsolute(sourceRelativePath) || path.win32.isAbsolute(sourceRelativePath)) { + throw new Error(`Unsafe Mistral Vibe skill source path: ${sourceRelativePath}`); + } + + const segments = sourceRelativePath.replace(/\\/g, '/').split('/'); + if ( + segments.length < 2 + || segments[0] !== 'skills' + || segments.some(segment => !segment || segment === '.' || segment === '..' || segment.includes('\0')) + ) { + throw new Error(`Unsafe Mistral Vibe skill source path: ${sourceRelativePath}`); + } + + return segments; +} + +module.exports = createInstallTargetAdapter({ + id: 'mistral-vibe-project', + target: 'mistral-vibe', + kind: 'project', + rootSegments: ['.vibe'], + installStatePathSegments: ['ecc-install-state.json'], + supportsModule(module) { + const paths = Array.isArray(module && module.paths) ? module.paths : []; + return module && module.kind === 'skills' && paths.length > 0; + }, + planOperations(input, adapter) { + const modules = Array.isArray(input.modules) + ? input.modules + : (input.module ? [input.module] : []); + const targetRoot = adapter.resolveRoot(input); + + return modules.flatMap(module => { + if (!adapter.supportsModule(module, input)) return []; + + return module.paths.map(sourceRelativePath => { + const segments = parseSkillSourcePath(sourceRelativePath); + return createManagedScaffoldOperation( + module.id, + sourceRelativePath, + path.join(targetRoot, 'skills', ...segments.slice(1)), + 'preserve-relative-path' + ); + }); + }); + }, +}); diff --git a/scripts/lib/install-targets/registry.js b/scripts/lib/install-targets/registry.js index 8dd7cf848..587f67fe3 100644 --- a/scripts/lib/install-targets/registry.js +++ b/scripts/lib/install-targets/registry.js @@ -9,6 +9,7 @@ const geminiProject = require('./gemini-project'); const hermesHome = require('./hermes-home'); const joycodeProject = require('./joycode-project'); const kimiProject = require('./kimi-project'); +const mistralVibeProject = require('./mistral-vibe-project'); const openclawHome = require('./openclaw-home'); const opencodeHome = require('./opencode-home'); const qwenHome = require('./qwen-home'); @@ -28,6 +29,7 @@ const ADAPTERS = Object.freeze([ codebuddyProject, joycodeProject, kimiProject, + mistralVibeProject, qwenHome, zedProject, adalProject, diff --git a/tests/ci/packed-artifact-lifecycle.js b/tests/ci/packed-artifact-lifecycle.js index af75e51c8..1d01537ad 100644 --- a/tests/ci/packed-artifact-lifecycle.js +++ b/tests/ci/packed-artifact-lifecycle.js @@ -377,12 +377,14 @@ function findDriftCandidate(state, cursorRoot) { } function runTargetSmoke(options) { + const selectionArgs = Array.isArray(options.selectionArgs) + ? options.selectionArgs + : ['--modules', 'workflow-quality', '--enable-hooks']; parseJsonOutput( options.runCli([ 'install', - '--modules', 'workflow-quality', + ...selectionArgs, '--target', options.target, - '--enable-hooks', '--json', ]), `${options.target} packed install` @@ -858,6 +860,14 @@ function runLifecycle(options) { }); assert.ok(!fs.existsSync(path.join(homeDir, '.opencode'))); + const mistralVibeRoot = path.join(projectDir, '.vibe'); + runTargetSmoke({ + runCli, + target: 'mistral-vibe', + targetRoot: mistralVibeRoot, + selectionArgs: ['--skills', 'skill-comply'], + }); + return { packageSha256: options.expectedSha256, platform: process.platform, @@ -889,6 +899,7 @@ function runLifecycle(options) { 'sentinel-preserved', 'antigravity-install-doctor-uninstall', 'opencode-install-doctor-uninstall', + 'mistral-vibe-skill-install-doctor-uninstall', ], }; } finally { diff --git a/tests/ci/packed-artifact-lifecycle.test.js b/tests/ci/packed-artifact-lifecycle.test.js index d35175f35..803eff545 100644 --- a/tests/ci/packed-artifact-lifecycle.test.js +++ b/tests/ci/packed-artifact-lifecycle.test.js @@ -155,6 +155,17 @@ test('workflow-quality target smoke explicitly opts into hooks', () => { ); }); +test('packed lifecycle exercises the Mistral Vibe skills-only target', () => { + const source = fs.readFileSync( + path.join(__dirname, 'packed-artifact-lifecycle.js'), + 'utf8' + ); + assert.match( + source, + /target: 'mistral-vibe',[\s\S]*selectionArgs: \['--skills', 'skill-comply'\]/ + ); +}); + test('lifecycle cleanup retries Windows file locks without masking results', () => { const source = fs.readFileSync( path.join(__dirname, 'packed-artifact-lifecycle.js'), diff --git a/tests/docs/mistral-vibe-guide.test.js b/tests/docs/mistral-vibe-guide.test.js new file mode 100644 index 000000000..2339d4ddb --- /dev/null +++ b/tests/docs/mistral-vibe-guide.test.js @@ -0,0 +1,55 @@ +/** Contract tests for the Mistral Vibe installation guide. */ + +'use strict'; + +const assert = require('assert'); +const fs = require('fs'); +const path = require('path'); + +const repoRoot = path.resolve(__dirname, '..', '..'); +const guide = fs.readFileSync(path.join(repoRoot, 'docs', 'MISTRAL-VIBE-GUIDE.md'), 'utf8'); +const readme = fs.readFileSync(path.join(repoRoot, 'README.md'), 'utf8'); + +let passed = 0; +let failed = 0; + +function test(name, fn) { + try { + fn(); + console.log(` ✓ ${name}`); + passed += 1; + } catch (error) { + console.log(` ✗ ${name}`); + console.log(` Error: ${error.message}`); + failed += 1; + } +} + +console.log('\n=== Testing Mistral Vibe guide ===\n'); + +test('documents the native project skill install and lifecycle', () => { + assert.ok(guide.includes('"$ECC_ROOT/install.sh" --target mistral-vibe --skills tdd-workflow')); + assert.ok(guide.includes('node "$ECC_ROOT/scripts/doctor.js" --target mistral-vibe')); + assert.ok(guide.includes('node "$ECC_ROOT/scripts/repair.js" --target mistral-vibe')); + assert.ok(guide.includes('node "$ECC_ROOT/scripts/uninstall.js" --target mistral-vibe')); + assert.ok(guide.includes('.vibe/skills/')); + assert.ok(guide.includes('npm view ecc-universal version')); + assert.ok(!guide.includes('ecc-universal@2.2.1 install --target mistral-vibe')); +}); + +test('states the verified compatibility boundary without false parity claims', () => { + assert.match(guide, /Mistral Vibe v2.25.3/); + assert.match(guide, /\.vibe\/agents\/.*TOML/i); + assert.match(guide, /\.vibe\/hooks\.toml/); + assert.match(guide, /does not\s+configure/i); + assert.ok(!guide.includes('--profile minimal')); +}); + +test('links the Vibe target from the primary README', () => { + assert.ok(readme.includes('--target mistral-vibe --skills tdd-workflow')); + assert.ok(readme.includes('[Mistral Vibe guide](docs/MISTRAL-VIBE-GUIDE.md)')); +}); + +console.log(`\nPassed: ${passed}`); +console.log(`Failed: ${failed}`); +process.exitCode = failed > 0 ? 1 : 0; diff --git a/tests/lib/harness-capabilities.test.js b/tests/lib/harness-capabilities.test.js index 4591403d4..5d7654bf7 100644 --- a/tests/lib/harness-capabilities.test.js +++ b/tests/lib/harness-capabilities.test.js @@ -33,12 +33,12 @@ function runTests() { let passed = 0; let failed = 0; - if (test('represents all 15 registered targets exactly once across 14 harnesses', () => { + if (test('represents all 16 registered targets exactly once across 15 harnesses', () => { const catalogTargetIds = HARNESS_CAPABILITIES.flatMap(harness => harness.targetIds); const adapterTargetIds = listInstallTargetAdapters().map(adapter => adapter.target); - assert.strictEqual(HARNESS_CAPABILITIES.length, 14); - assert.strictEqual(new Set(catalogTargetIds).size, 15); + assert.strictEqual(HARNESS_CAPABILITIES.length, 15); + assert.strictEqual(new Set(catalogTargetIds).size, 16); assert.deepStrictEqual([...catalogTargetIds].sort(), [...SUPPORTED_INSTALL_TARGETS].sort()); assert.deepStrictEqual([...catalogTargetIds].sort(), [...adapterTargetIds].sort()); })) passed++; else failed++; @@ -103,6 +103,7 @@ function runTests() { adal: ['project', './.adal'], hermes: ['home', '~/.hermes'], openclaw: ['home', '~/.openclaw'], + 'mistral-vibe': ['project', './.vibe'], }; for (const [id, [scopeId, root]] of Object.entries(expected)) { @@ -138,6 +139,16 @@ function runTests() { } })) passed++; else failed++; + if (test('describes Mistral Vibe as a skills-only managed project target', () => { + const vibe = getHarnessCapability('vibe'); + assert.strictEqual(vibe.id, 'mistral-vibe'); + assert.deepStrictEqual(vibe.targetIds, ['mistral-vibe']); + assert.strictEqual(vibe.destination, './.vibe'); + assert.strictEqual(vibe.hooks.mode, 'not-configured'); + assert.strictEqual(vibe.hooks.eccConfigured, false); + assert.match(vibe.hooks.note, /skills/i); + })) passed++; else failed++; + if (test('normalizes wizard selections into canonical guided order', () => { assert.deepStrictEqual( normalizeHarnessSelection(' KIMI CODE, Claude Code, kimi '), @@ -171,7 +182,7 @@ function runTests() { const first = listHarnessCapabilities(); first.pop(); - assert.strictEqual(listHarnessCapabilities().length, 14); + assert.strictEqual(listHarnessCapabilities().length, 15); const guided = listGuidedHarnesses(); guided.reverse(); diff --git a/tests/lib/install-config.test.js b/tests/lib/install-config.test.js index 7ff455208..6a7d5b37f 100644 --- a/tests/lib/install-config.test.js +++ b/tests/lib/install-config.test.js @@ -106,6 +106,26 @@ function runTests() { } })) passed++; else failed++; + if (test('accepts a Mistral Vibe skills-only install config', () => { + const cwd = createTempDir('install-config-vibe-'); + try { + const configPath = path.join(cwd, 'ecc-install.json'); + writeJson(configPath, { + version: 1, + target: 'mistral-vibe', + include: ['skill:tdd-workflow'], + exclude: ['skill:security-review'], + }); + + const config = loadInstallConfig(configPath); + assert.strictEqual(config.target, 'mistral-vibe'); + assert.deepStrictEqual(config.includeComponentIds, ['skill:tdd-workflow']); + assert.deepStrictEqual(config.excludeComponentIds, ['skill:security-review']); + } finally { + cleanup(cwd); + } + })) passed++; else failed++; + if (test('rejects invalid config schema values', () => { const cwd = createTempDir('install-config-'); diff --git a/tests/lib/install-manifests.test.js b/tests/lib/install-manifests.test.js index cd91e6e3a..492b843c5 100644 --- a/tests/lib/install-manifests.test.js +++ b/tests/lib/install-manifests.test.js @@ -192,6 +192,44 @@ function runTests() { ); })) passed++; else failed++; + if (test('resolves existing skill components to exact modules for Mistral Vibe', () => { + const plan = resolveInstallPlan({ + includeComponentIds: ['skill:tdd-workflow'], + target: 'mistral-vibe', + projectRoot: '/workspace/app', + }); + + assert.deepStrictEqual(plan.selectedModuleIds, ['skill-tdd-workflow']); + assert.deepStrictEqual(plan.skippedModuleIds, []); + assert.deepStrictEqual( + plan.operations.map(operation => operation.sourceRelativePath), + ['skills/tdd-workflow'] + ); + })) passed++; else failed++; + + if (test('lists existing skill components as installable for Mistral Vibe', () => { + const components = listInstallComponents({ family: 'skill', target: 'mistral-vibe' }); + const tdd = components.find(component => component.id === 'skill:tdd-workflow'); + assert.ok(tdd, 'Should expose tdd-workflow to Mistral Vibe users'); + assert.deepStrictEqual(tdd.moduleIds, ['skill-tdd-workflow']); + assert.deepStrictEqual(tdd.targets, ['mistral-vibe']); + const detail = getInstallComponent('skill:tdd-workflow', { target: 'mistral-vibe' }); + assert.deepStrictEqual(detail.moduleIds, ['skill-tdd-workflow']); + assert.deepStrictEqual(detail.targets, ['mistral-vibe']); + })) passed++; else failed++; + + if (test('applies Mistral Vibe exclusions to the exact selected skill module', () => { + assert.throws( + () => resolveInstallPlan({ + target: 'mistral-vibe', + projectRoot: '/workspace/app', + includeComponentIds: ['skill:tdd-workflow'], + excludeComponentIds: ['skill:tdd-workflow'], + }), + /Selection excludes every requested install module/ + ); + })) passed++; else failed++; + if (test('marks unified-memory install surfaces as requiring the separate ECC runtime', () => { const component = getInstallComponent('skill:unified-memory'); assert.deepStrictEqual(component.moduleIds, ['skill-unified-memory']); diff --git a/tests/lib/install-targets.test.js b/tests/lib/install-targets.test.js index 295898aae..da2bb3d64 100644 --- a/tests/lib/install-targets.test.js +++ b/tests/lib/install-targets.test.js @@ -51,6 +51,7 @@ function runTests() { assert.ok(targets.includes('joycode'), 'Should include joycode target'); assert.ok(targets.includes('qwen'), 'Should include qwen target'); assert.ok(targets.includes('zed'), 'Should include zed target'); + assert.ok(targets.includes('mistral-vibe'), 'Should include mistral-vibe target'); })) passed++; else failed++; if (test('resolves cursor adapter root and install-state path from project root', () => { diff --git a/tests/lib/mistral-vibe-install-target.test.js b/tests/lib/mistral-vibe-install-target.test.js new file mode 100644 index 000000000..08d6128ce --- /dev/null +++ b/tests/lib/mistral-vibe-install-target.test.js @@ -0,0 +1,304 @@ +/** + * Contract and lifecycle tests for the Mistral Vibe project target. + */ + +'use strict'; + +const assert = require('assert'); +const fs = require('fs'); +const os = require('os'); +const path = require('path'); + +const { createManifestInstallPlan } = require('../../scripts/lib/install/plan'); +const { applyInstallPlan } = require('../../scripts/lib/install/apply'); +const { + buildDoctorReport, + repairInstalledStates, + uninstallInstalledStates, +} = require('../../scripts/lib/install-lifecycle'); +const { resolveInstallPlan } = require('../../scripts/lib/install-manifests'); +const { + getInstallTargetAdapter, + planInstallTargetScaffold, +} = require('../../scripts/lib/install-targets/registry'); +const { createLegacyCompatInstallPlan } = require('../../scripts/lib/install-executor'); + +const REPO_ROOT = path.resolve(__dirname, '..', '..'); + +let passed = 0; +let failed = 0; + +function test(name, fn) { + try { + fn(); + console.log(` ✓ ${name}`); + passed += 1; + } catch (error) { + console.log(` ✗ ${name}`); + console.log(` Error: ${error.message}`); + failed += 1; + } +} + +function createFixture() { + return { + homeDir: fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-vibe-home-')), + projectRoot: fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-vibe-project-')), + }; +} + +function cleanupFixture(fixture) { + fs.rmSync(fixture.homeDir, { recursive: true, force: true }); + fs.rmSync(fixture.projectRoot, { recursive: true, force: true }); +} + +function createSkillPlan(fixture) { + return createManifestInstallPlan({ + sourceRoot: REPO_ROOT, + target: 'mistral-vibe', + includeComponentIds: ['skill:tdd-workflow'], + projectRoot: fixture.projectRoot, + homeDir: fixture.homeDir, + }); +} + +console.log('\n=== Mistral Vibe install target tests ===\n'); + +test('registers a project adapter rooted at .vibe', () => { + const adapter = getInstallTargetAdapter('mistral-vibe'); + const projectRoot = path.resolve('/workspace/app'); + + assert.strictEqual(adapter.id, 'mistral-vibe-project'); + assert.strictEqual(adapter.target, 'mistral-vibe'); + assert.strictEqual(adapter.kind, 'project'); + assert.strictEqual(adapter.resolveRoot({ projectRoot }), path.join(projectRoot, '.vibe')); + assert.strictEqual( + adapter.getInstallStatePath({ projectRoot }), + path.join(projectRoot, '.vibe', 'ecc-install-state.json') + ); +}); + +test('maps only canonical skill sources into the native Vibe skills directory', () => { + const projectRoot = path.resolve('/workspace/app'); + const plan = planInstallTargetScaffold({ + target: 'mistral-vibe', + repoRoot: REPO_ROOT, + projectRoot, + modules: [ + { id: 'skill-tdd-workflow', kind: 'skills', paths: ['skills/tdd-workflow'] }, + { id: 'agents-core', kind: 'agents', paths: ['AGENTS.md', 'agents', '.agents'] }, + { id: 'commands-core', kind: 'commands', paths: ['commands'] }, + { id: 'rules-core', kind: 'rules', paths: ['rules'] }, + { id: 'hooks-runtime', kind: 'hooks', paths: ['hooks'] }, + { id: 'platform-configs', kind: 'platform', paths: ['.vibe', '.mcp.json'] }, + ], + }); + + assert.deepStrictEqual(plan.operations, [{ + kind: 'copy-path', + moduleId: 'skill-tdd-workflow', + sourceRelativePath: 'skills/tdd-workflow', + destinationPath: path.join(projectRoot, '.vibe', 'skills', 'tdd-workflow'), + strategy: 'preserve-relative-path', + ownership: 'managed', + scaffoldOnly: true, + }]); +}); + +test('rejects unsafe Vibe skill source paths before planning writes', () => { + for (const sourceRelativePath of [ + 'skills/../AGENTS.md', + 'skills\\..\\AGENTS.md', + '/tmp/skills/escape', + 'skills//escape', + ]) { + assert.throws( + () => planInstallTargetScaffold({ + target: 'mistral-vibe', + repoRoot: REPO_ROOT, + projectRoot: '/workspace/app', + modules: [{ id: 'unsafe-skill', kind: 'skills', paths: [sourceRelativePath] }], + }), + /unsafe Mistral Vibe skill source path/i, + sourceRelativePath + ); + } +}); + +test('resolves a single-skill install without claiming unsupported profiles', () => { + assert.throws( + () => resolveInstallPlan({ + repoRoot: REPO_ROOT, + target: 'mistral-vibe', + projectRoot: '/workspace/app', + }), + /Mistral Vibe.*--skills/i + ); + const plan = resolveInstallPlan({ + repoRoot: REPO_ROOT, + target: 'mistral-vibe', + projectRoot: '/workspace/app', + includeComponentIds: ['skill:tdd-workflow'], + }); + + assert.deepStrictEqual(plan.selectedModuleIds, ['skill-tdd-workflow']); + assert.deepStrictEqual(plan.skippedModuleIds, []); + assert.strictEqual(plan.operations.length, 1); + const existingExactModulePlan = resolveInstallPlan({ + repoRoot: REPO_ROOT, + target: 'mistral-vibe', + projectRoot: '/workspace/app', + includeComponentIds: ['skill:unified-memory'], + }); + assert.deepStrictEqual(existingExactModulePlan.selectedModuleIds, ['skill-unified-memory']); + assert.deepStrictEqual( + existingExactModulePlan.operations.map(operation => operation.sourceRelativePath), + ['skills/unified-memory'] + ); + assert.throws( + () => resolveInstallPlan({ + repoRoot: REPO_ROOT, + target: 'mistral-vibe', + projectRoot: '/workspace/app', + profileId: 'minimal', + }), + /Mistral Vibe.*--skills/i + ); + assert.throws( + () => resolveInstallPlan({ + repoRoot: REPO_ROOT, + target: 'mistral-vibe', + projectRoot: '/workspace/app', + moduleIds: ['workflow-quality'], + }), + /Mistral Vibe.*--skills/i + ); +}); + +test('guides legacy language requests to the supported Vibe skill surface', () => { + assert.throws( + () => createLegacyCompatInstallPlan({ + sourceRoot: REPO_ROOT, + target: 'mistral-vibe', + legacyLanguages: ['typescript'], + projectRoot: '/workspace/app', + }), + /--target mistral-vibe --skills <id,...>/ + ); +}); + +test('installs, diagnoses, repairs, and uninstalls a Vibe skill', () => { + const fixture = createFixture(); + try { + const plan = createSkillPlan(fixture); + applyInstallPlan(plan); + + const skillPath = path.join(fixture.projectRoot, '.vibe', 'skills', 'tdd-workflow', 'SKILL.md'); + const statePath = path.join(fixture.projectRoot, '.vibe', 'ecc-install-state.json'); + assert.ok(fs.existsSync(skillPath)); + assert.ok(fs.existsSync(statePath)); + + const healthy = buildDoctorReport({ + repoRoot: REPO_ROOT, + projectRoot: fixture.projectRoot, + homeDir: fixture.homeDir, + targets: ['mistral-vibe'], + }); + assert.strictEqual(healthy.results[0].status, 'ok'); + + fs.unlinkSync(skillPath); + const broken = buildDoctorReport({ + repoRoot: REPO_ROOT, + projectRoot: fixture.projectRoot, + homeDir: fixture.homeDir, + targets: ['mistral-vibe'], + }); + assert.strictEqual(broken.results[0].status, 'error'); + + const repaired = repairInstalledStates({ + repoRoot: REPO_ROOT, + projectRoot: fixture.projectRoot, + homeDir: fixture.homeDir, + targets: ['mistral-vibe'], + }); + assert.strictEqual(repaired.results[0].status, 'repaired'); + assert.ok(fs.existsSync(skillPath)); + + const uninstalled = uninstallInstalledStates({ + repoRoot: REPO_ROOT, + projectRoot: fixture.projectRoot, + homeDir: fixture.homeDir, + targets: ['mistral-vibe'], + }); + assert.strictEqual(uninstalled.results[0].status, 'uninstalled'); + assert.ok(!fs.existsSync(skillPath)); + assert.ok(!fs.existsSync(statePath)); + } finally { + cleanupFixture(fixture); + } +}); + +test('never overwrites or claims a user-owned Vibe skill file', () => { + const fixture = createFixture(); + const skillPath = path.join(fixture.projectRoot, '.vibe', 'skills', 'tdd-workflow', 'SKILL.md'); + try { + fs.mkdirSync(path.dirname(skillPath), { recursive: true }); + fs.writeFileSync(skillPath, '# User-owned Vibe skill\n', 'utf8'); + + const result = applyInstallPlan(createSkillPlan(fixture)); + assert.strictEqual(fs.readFileSync(skillPath, 'utf8'), '# User-owned Vibe skill\n'); + assert.ok(result.skippedOperations.some(operation => operation.destinationPath === skillPath)); + assert.ok(!result.statePreview.operations.some(operation => operation.destinationPath === skillPath)); + } finally { + cleanupFixture(fixture); + } +}); + +test('rejects a Vibe skill file created after preflight without overwriting it', () => { + const fixture = createFixture(); + const skillPath = path.join(fixture.projectRoot, '.vibe', 'skills', 'tdd-workflow', 'SKILL.md'); + try { + const plan = createSkillPlan(fixture); + assert.throws( + () => applyInstallPlan(plan, { + beforeOperationWrite({ operation }) { + if (operation.destinationPath === skillPath) { + fs.writeFileSync(skillPath, '# Concurrent user-owned Vibe skill\n', 'utf8'); + } + }, + }), + /user-owned file appeared.*after planning/i + ); + assert.strictEqual( + fs.readFileSync(skillPath, 'utf8'), + '# Concurrent user-owned Vibe skill\n' + ); + } finally { + cleanupFixture(fixture); + } +}); + +test('preserves a modified managed Vibe skill during uninstall', () => { + const fixture = createFixture(); + const skillPath = path.join(fixture.projectRoot, '.vibe', 'skills', 'tdd-workflow', 'SKILL.md'); + try { + applyInstallPlan(createSkillPlan(fixture)); + fs.appendFileSync(skillPath, '\nUser change.\n', 'utf8'); + + const result = uninstallInstalledStates({ + repoRoot: REPO_ROOT, + projectRoot: fixture.projectRoot, + homeDir: fixture.homeDir, + targets: ['mistral-vibe'], + }); + assert.strictEqual(result.results[0].status, 'partial'); + assert.ok(fs.existsSync(skillPath)); + assert.ok(fs.existsSync(path.join(fixture.projectRoot, '.vibe', 'ecc-install-state.json'))); + } finally { + cleanupFixture(fixture); + } +}); + +console.log(`\nPassed: ${passed}`); +console.log(`Failed: ${failed}`); +process.exit(failed > 0 ? 1 : 0); diff --git a/tests/scripts/consult.test.js b/tests/scripts/consult.test.js index 17a9701df..d48aa3e23 100644 --- a/tests/scripts/consult.test.js +++ b/tests/scripts/consult.test.js @@ -173,6 +173,23 @@ function runTests() { assert.ok(payload.matches[0].installCommand.includes('--target codex')); })) passed++; else failed++; + if (test('recommends only exact skill installs for Mistral Vibe', () => { + const result = run(['test-driven', 'development', '--target', 'mistral-vibe', '--json']); + + assert.strictEqual(result.status, 0, result.stderr); + const payload = parseJson(result.stdout); + assert.strictEqual(payload.target, 'mistral-vibe'); + assert.deepStrictEqual(payload.profiles, []); + assert.ok(payload.matches.length > 0); + assert.ok(payload.matches.every(match => match.family === 'skill')); + assert.ok(payload.matches.every(match => match.installCommand.startsWith( + 'npx ecc-universal install --target mistral-vibe --skills ' + ))); + assert.ok(payload.matches.every(match => match.planCommand.startsWith( + 'npx ecc-universal plan --target mistral-vibe --skills ' + ))); + })) passed++; else failed++; + if (test('rejects unknown targets', () => { const result = run(['security', '--target', 'not-a-target']); diff --git a/tests/scripts/install-apply.test.js b/tests/scripts/install-apply.test.js index 270339cb9..eb49b8461 100644 --- a/tests/scripts/install-apply.test.js +++ b/tests/scripts/install-apply.test.js @@ -113,6 +113,35 @@ function runTests() { assert.ok(result.stdout.includes('--dry-run')); assert.ok(result.stdout.includes('--profile <name>')); assert.ok(result.stdout.includes('--modules <id,id,...>')); + assert.ok(result.stdout.includes('mistral-vibe')); + assert.ok(result.stdout.includes('Install selected skills into ./.vibe/skills/')); + })) passed++; else failed++; + + if (test('installs a selected skill into Mistral Vibe without unrelated surfaces', () => { + const homeDir = createTempDir('install-apply-vibe-home-'); + const projectDir = createTempDir('install-apply-vibe-project-'); + try { + const result = run( + ['--target', 'mistral-vibe', '--skills', 'tdd-workflow', '--json'], + { cwd: projectDir, homeDir } + ); + assert.strictEqual(result.code, 0, result.stderr); + assert.ok(fs.existsSync(path.join(projectDir, '.vibe', 'skills', 'tdd-workflow', 'SKILL.md'))); + assert.ok(!fs.existsSync(path.join(projectDir, '.vibe', 'agents'))); + assert.ok(!fs.existsSync(path.join(projectDir, '.vibe', 'hooks.toml'))); + + const state = readJson(path.join(projectDir, '.vibe', 'ecc-install-state.json')); + assert.strictEqual(state.target.id, 'mistral-vibe-project'); + assert.deepStrictEqual(state.resolution.selectedModules, ['skill-tdd-workflow']); + assert.ok(state.operations.every(operation => ( + operation.destinationPath.startsWith( + `${path.join(fs.realpathSync(projectDir), '.vibe', 'skills')}${path.sep}` + ) + ))); + } finally { + cleanup(homeDir); + cleanup(projectDir); + } })) passed++; else failed++; if (test('Claude hook dry-run validates settings without mutating malformed input', () => { diff --git a/tests/scripts/install-plan.test.js b/tests/scripts/install-plan.test.js index d1823024a..4a727bd33 100644 --- a/tests/scripts/install-plan.test.js +++ b/tests/scripts/install-plan.test.js @@ -123,6 +123,34 @@ function runTests() { assert.ok(!parsed.operations.some(operation => operation.sourceRelativePath === 'skills/tdd-workflow')); })) passed++; else failed++; + if (test('resolves Mistral Vibe preview paths from the caller project', () => { + const projectDir = require('fs').mkdtempSync( + path.join(require('os').tmpdir(), 'ecc-vibe-plan-project-') + ); + try { + const realProjectDir = require('fs').realpathSync(projectDir); + const result = run([ + '--skills', 'tdd-workflow', + '--target', 'mistral-vibe', + '--json', + ], { cwd: projectDir }); + assert.strictEqual(result.code, 0, result.stderr); + const parsed = JSON.parse(result.stdout); + assert.strictEqual(parsed.targetRoot, path.join(realProjectDir, '.vibe')); + assert.strictEqual( + parsed.installStatePath, + path.join(realProjectDir, '.vibe', 'ecc-install-state.json') + ); + assert.ok(parsed.operations.every(operation => ( + operation.destinationPath.startsWith( + `${path.join(realProjectDir, '.vibe', 'skills')}${path.sep}` + ) + ))); + } finally { + require('fs').rmSync(projectDir, { recursive: true, force: true }); + } + })) passed++; else failed++; + if (test('loads planning intent from ecc-install.json', () => { const configDir = path.join(__dirname, '..', 'fixtures', 'tmp-install-plan-config'); const configPath = path.join(configDir, 'ecc-install.json'); diff --git a/tests/scripts/npm-publish-surface.test.js b/tests/scripts/npm-publish-surface.test.js index 0ca2fc05f..608cbe88c 100644 --- a/tests/scripts/npm-publish-surface.test.js +++ b/tests/scripts/npm-publish-surface.test.js @@ -107,6 +107,7 @@ function buildExpectedPublishPaths(repoRoot) { "docs/CODEX-NAVIGATION-GUIDE.md", "docs/COMMAND-AGENT-MAP.md", "docs/ROADMAP.md", + "docs/MISTRAL-VIBE-GUIDE.md", "docs/design/ecc-memory-vault.md", "assets/images/sponsors", ] @@ -223,6 +224,7 @@ function main() { "docs/CODEX-NAVIGATION-GUIDE.md", "docs/COMMAND-AGENT-MAP.md", "docs/ROADMAP.md", + "docs/MISTRAL-VIBE-GUIDE.md", "docs/design/ecc-memory-vault.md", "schemas/install-state.schema.json", "schemas/memory.schema.json", diff --git a/tests/scripts/ownership-guard.test.js b/tests/scripts/ownership-guard.test.js index 4c16afd2e..4783c92d1 100644 --- a/tests/scripts/ownership-guard.test.js +++ b/tests/scripts/ownership-guard.test.js @@ -37,9 +37,12 @@ function readState(plan) { for (const adapter of listInstallTargetAdapters()) { test(`${adapter.target}: preserve user files through preview, install, reinstall and uninstall`, context => { const nativeTarget = ['codex', 'gemini', 'opencode'].includes(adapter.target); + const moduleId = adapter.target === 'mistral-vibe' + ? 'skill-tdd-workflow' + : (nativeTarget ? 'platform-configs' : 'rules-core'); const resolved = createManifestInstallPlan({ ...context, target: adapter.target, - moduleIds: [nativeTarget ? 'platform-configs' : 'rules-core'], + moduleIds: [moduleId], // This test exercises ownership of source files, not plugin compilation. exemptValidationCodes: ['opencode-plugin-not-built'], }); From 7e7ca11f218b2baebf0ef8aaa290683b05c27b47 Mon Sep 17 00:00:00 2001 From: MohamedAfrash <afrazzz51@gmail.com> Date: Wed, 23 Sep 2026 09:55:46 +0100 Subject: [PATCH 27/78] feat(antigravity): elevate Google Antigravity to Tier 1 native plugin and lifecycle hooks - Add antigravity-home target adapter installing directly into ~/.gemini/config/plugins/ecc/ - Support full Antigravity lifecycle hooks (PreToolUse, Stop) adhering to the protojson contract ({ decision, reason }) via scripts/hooks/antigravity-hook-bridge.js - Generate native Antigravity plugin manifest (plugin.json) and shared ECC memory vault MCP config (mcp_config.json) - Support dual scope (user and project) with full harness capability integration - Update install schemas and manifests to recognize antigravity-home - Fix upstream regressions in plan.js scaffoldOnly, plan-canvas child_process spawn, codex-hooks pre-push test, and claude-plugin-setup hook arguments - Add comprehensive Tier 1 test suite (13 passing tests) with 100% pass across all 4919 repository tests --- docs/ANTIGRAVITY-GUIDE.md | 34 ++ manifests/install-modules.json | 29 +- schemas/ecc-install-config.schema.json | 1 + schemas/install-modules.schema.json | 1 + scripts/hooks/antigravity-hook-bridge.js | 162 ++++++++ scripts/lib/antigravity-hooks.js | 79 ++++ scripts/lib/antigravity-mcp.js | 28 ++ scripts/lib/antigravity-plugin.js | 20 + scripts/lib/claude-plugin-setup.js | 19 +- scripts/lib/harness-capabilities.js | 23 +- scripts/lib/install-manifests.js | 10 +- .../lib/install-targets/antigravity-home.js | 209 ++++++++++ .../install-targets/antigravity-project.js | 108 +++++- scripts/lib/install-targets/registry.js | 2 + scripts/lib/install/codex-user-config.js | 2 +- scripts/lib/install/hook-consent.js | 1 + scripts/lib/install/plan.js | 6 +- scripts/lib/resolve-ecc-root.js | 8 +- scripts/plan-canvas.js | 1 + tests/lib/antigravity-tier1.test.js | 356 ++++++++++++++++++ tests/lib/harness-capabilities.test.js | 15 +- tests/scripts/codex-hooks.test.js | 3 +- tests/scripts/control-pane.test.js | 5 +- 23 files changed, 1094 insertions(+), 28 deletions(-) create mode 100644 scripts/hooks/antigravity-hook-bridge.js create mode 100644 scripts/lib/antigravity-hooks.js create mode 100644 scripts/lib/antigravity-mcp.js create mode 100644 scripts/lib/antigravity-plugin.js create mode 100644 scripts/lib/install-targets/antigravity-home.js create mode 100644 tests/lib/antigravity-tier1.test.js diff --git a/docs/ANTIGRAVITY-GUIDE.md b/docs/ANTIGRAVITY-GUIDE.md index 998915216..80c03fa27 100644 --- a/docs/ANTIGRAVITY-GUIDE.md +++ b/docs/ANTIGRAVITY-GUIDE.md @@ -150,6 +150,40 @@ node "$EccRoot\scripts\uninstall.js" --target antigravity --dry-run - Confirm the files are under `.agents/workflows/`. - Invoke a workflow with `/<workflow-name>` after restarting Antigravity. +## Tier 1 Native Plugin and Global Installation (`antigravity-home`) + +Antigravity supports global plugins located in `~/.gemini/config/plugins/<name>/`. Installing ECC as a native Antigravity plugin enables: +1. **Global Scope**: ECC rules, skills, agents, workflows, and memory MCP are active across all projects automatically, without requiring a `.agents/` folder in every repository. +2. **Lifecycle Hooks (`hooks.json`)**: Full support for `PreToolUse` (command security gates, file modification guards) and `Stop` hooks using Antigravity's protojson protocol (`{ decision, reason }`). +3. **Shared Memory Vault (`mcp_config.json`)**: Direct integration with `ecc-memory-mcp` across all Antigravity sessions. +4. **Native Plugin Manifest (`plugin.json`)**: Declares the ECC plugin metadata. + +### Installing Globally + +```bash +# Using install.sh from source +"$ECC_ROOT/install.sh" --target antigravity-home --profile core --enable-hooks +``` + +PowerShell: + +```powershell +& "$EccRoot\install.ps1" --target antigravity-home --profile core --enable-hooks +``` + +### Global Plugin Structure + +```text +~/.gemini/config/plugins/ecc/ +├── plugin.json # Antigravity plugin manifest +├── hooks.json # PreToolUse and Stop lifecycle hooks +├── mcp_config.json # Shared ECC Memory Vault MCP server +├── rules/ # Rules applied to all workspaces +├── workflows/ # Global slash workflows +├── skills/ # Global Agent Skills +└── scripts/hooks/ # Antigravity hook bridge +``` + ## Official Antigravity references - [Skills](https://antigravity.google/docs/skills) diff --git a/manifests/install-modules.json b/manifests/install-modules.json index 884c7d39d..85ebc638c 100644 --- a/manifests/install-modules.json +++ b/manifests/install-modules.json @@ -13,6 +13,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codebuddy", "joycode", "qwen", @@ -41,6 +42,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "codebuddy", "joycode", @@ -70,6 +72,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "opencode", "codebuddy", "joycode", @@ -99,7 +102,8 @@ "claude-project", "cursor", "opencode", - "codebuddy" + "codebuddy", + "antigravity-home" ], "dependencies": [], "defaultInstall": true, @@ -132,6 +136,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "gemini", "opencode", @@ -229,6 +234,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -264,6 +270,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -290,6 +297,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "gemini", "opencode", @@ -367,6 +375,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -404,6 +413,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -450,6 +460,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -484,6 +495,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -523,6 +535,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -567,6 +580,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -595,6 +609,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -626,6 +641,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -641,7 +657,7 @@ { "id": "ito-compute", "kind": "skills", - "description": "Authenticated It\u00f4 GPU inventory, RFQ, status, device revocation, and explicitly gated node-qualification workflows through the separately installed canonical CLI.", + "description": "Authenticated Itô GPU inventory, RFQ, status, device revocation, and explicitly gated node-qualification workflows through the separately installed canonical CLI.", "paths": [ "skills/ito-compute", "skills/ito-inference", @@ -652,6 +668,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "gemini", "opencode", @@ -683,6 +700,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "gemini", "opencode", @@ -715,6 +733,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -808,6 +827,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -869,6 +889,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -911,6 +932,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -940,6 +962,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -977,6 +1000,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -1004,6 +1028,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", diff --git a/schemas/ecc-install-config.schema.json b/schemas/ecc-install-config.schema.json index 29b57538f..44f3566a1 100644 --- a/schemas/ecc-install-config.schema.json +++ b/schemas/ecc-install-config.schema.json @@ -22,6 +22,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "gemini", "opencode", diff --git a/schemas/install-modules.schema.json b/schemas/install-modules.schema.json index 620f616dc..bcc055d46 100644 --- a/schemas/install-modules.schema.json +++ b/schemas/install-modules.schema.json @@ -52,6 +52,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "gemini", "opencode", diff --git a/scripts/hooks/antigravity-hook-bridge.js b/scripts/hooks/antigravity-hook-bridge.js new file mode 100644 index 000000000..f0dc01dea --- /dev/null +++ b/scripts/hooks/antigravity-hook-bridge.js @@ -0,0 +1,162 @@ +#!/usr/bin/env node +'use strict'; + +/** + * Antigravity Lifecycle Hook Bridge + * + * Bridges Google Antigravity's protojson hook contract (stdin/stdout JSON with + * camelCase keys and { decision, reason } responses) to ECC's internal hook + * runtime (exit-code/stderr based). + */ + +const path = require('path'); +const { spawnSync } = require('child_process'); +const { runPreBash } = require('./bash-hook-dispatcher'); +const { run: runGateGuard } = require('./gateguard-fact-force'); +const { run: runDocFileWarning } = require('./doc-file-warning'); +const { run: runStopFormatTypecheck } = require('./stop-format-typecheck'); +const { readStdinRaw, resolveMaxStdin } = require('./hook-input'); + +function parseArgs(argv) { + const options = { + mode: 'pre-tool-use', + hook: null, + }; + + for (let i = 2; i < argv.length; i += 1) { + if (argv[i] === '--mode') { + options.mode = argv[i + 1] || options.mode; + i += 1; + } else if (argv[i] === '--hook') { + options.hook = argv[i + 1] || options.hook; + i += 1; + } + } + + return options; +} + +function adaptAntigravityInputToEcc(antigravityData) { + if (!antigravityData || typeof antigravityData !== 'object') { + return { tool_name: '', tool_input: {} }; + } + + const toolCall = antigravityData.toolCall || {}; + const toolName = toolCall.name || antigravityData.tool_name || ''; + const args = toolCall.args || antigravityData.tool_input || {}; + + // Normalize Antigravity tools to ECC tool conventions + const toolInput = { + ...args, + command: args.CommandLine || args.command || '', + file_path: args.TargetFile || args.file_path || args.path || '', + }; + + return { + tool_name: toolName, + tool_input: toolInput, + conversation_id: antigravityData.conversationId || '', + workspace_paths: antigravityData.workspacePaths || [], + }; +} + +async function main() { + const options = parseArgs(process.argv); + const maxStdin = resolveMaxStdin(process.env.ECC_HOOK_INPUT_MAX_BYTES); + + let raw = ''; + try { + const inputResult = await readStdinRaw(process.stdin, { maxStdin }); + raw = inputResult.raw; + } catch (_err) { + // If stdin read fails, fail open safely + process.stdout.write(JSON.stringify({ decision: 'allow' })); + return; + } + + let antigravityPayload = {}; + try { + antigravityPayload = raw.trim() ? JSON.parse(raw) : {}; + } catch (_parseErr) { + // Malformed JSON on stdin + process.stdout.write(JSON.stringify({ decision: 'allow' })); + return; + } + + const eccPayload = adaptAntigravityInputToEcc(antigravityPayload); + const eccJsonString = JSON.stringify(eccPayload); + + if (options.mode === 'pre-tool-use') { + let result = { exitCode: 0, stderr: '' }; + + if (options.hook === 'pre:bash:dispatcher') { + result = runPreBash(eccJsonString); + } else if (options.hook === 'pre:edit-write:gateguard-fact-force') { + result = runGateGuard(eccJsonString); + } else if (options.hook === 'pre:config-protection') { + const child = spawnSync(process.execPath, [path.join(__dirname, 'config-protection.js')], { + input: eccJsonString, + encoding: 'utf8', + }); + result = { + exitCode: child.status || 0, + stderr: child.stderr || '', + }; + } else if (options.hook === 'pre:write:doc-file-warning') { + result = runDocFileWarning(eccJsonString); + } + + if (result && (result.exitCode === 2 || result.denied || result.blocked)) { + const reason = result.stderr || result.reason || 'Blocked by ECC safety hook'; + process.stdout.write(JSON.stringify({ + decision: 'deny', + reason: reason.replace(/\r?\n/g, ' ').trim(), + })); + return; + } + + process.stdout.write(JSON.stringify({ decision: 'allow' })); + return; + } + + if (options.mode === 'stop') { + let stopResult = { exitCode: 0, stderr: '' }; + + if (options.hook === 'stop:format-typecheck') { + stopResult = runStopFormatTypecheck(eccJsonString); + } else if (options.hook === 'stop:check-console-log') { + const child = spawnSync(process.execPath, [path.join(__dirname, 'check-console-log.js')], { + input: eccJsonString, + encoding: 'utf8', + }); + stopResult = { + exitCode: child.status || 0, + stderr: child.stderr || '', + }; + } + + if (stopResult && stopResult.exitCode !== 0 && stopResult.stderr) { + process.stdout.write(JSON.stringify({ + decision: 'continue', + reason: stopResult.stderr.replace(/\r?\n/g, ' ').trim(), + })); + return; + } + + process.stdout.write(JSON.stringify({})); + return; + } + + // Default passthrough + process.stdout.write(JSON.stringify({ decision: 'allow' })); +} + +if (require.main === module) { + main().catch(() => { + process.stdout.write(JSON.stringify({ decision: 'allow' })); + }); +} + +module.exports = { + adaptAntigravityInputToEcc, +}; diff --git a/scripts/lib/antigravity-hooks.js b/scripts/lib/antigravity-hooks.js new file mode 100644 index 000000000..b7ae6327c --- /dev/null +++ b/scripts/lib/antigravity-hooks.js @@ -0,0 +1,79 @@ +'use strict'; + +/** + * Antigravity Hooks Generator + * + * Generates valid Antigravity hooks.json configuration matching Antigravity's + * lifecycle schema (PreToolUse, PostToolUse, Stop) and pointing to the ECC + * hook bridge. + */ + +function buildAntigravityHooksConfig(options = {}) { + const profile = options.profile || 'standard'; + const bridgeScript = options.bridgeScript || 'scripts/hooks/antigravity-hook-bridge.js'; + + const preToolUseHandlers = [ + { + matcher: 'run_command', + hooks: [ + { + type: 'command', + command: `node ${bridgeScript} --mode pre-tool-use --hook pre:bash:dispatcher`, + timeout: 15, + }, + ], + }, + { + matcher: 'write_to_file|replace_file_content', + hooks: [ + { + type: 'command', + command: `node ${bridgeScript} --mode pre-tool-use --hook pre:edit-write:gateguard-fact-force`, + timeout: 10, + }, + { + type: 'command', + command: `node ${bridgeScript} --mode pre-tool-use --hook pre:config-protection`, + timeout: 5, + }, + ], + }, + ]; + + if (profile === 'standard' || profile === 'strict') { + preToolUseHandlers.push({ + matcher: 'write_to_file', + hooks: [ + { + type: 'command', + command: `node ${bridgeScript} --mode pre-tool-use --hook pre:write:doc-file-warning`, + timeout: 5, + }, + ], + }); + } + + const stopHandlers = [ + { + type: 'command', + command: `node ${bridgeScript} --mode stop --hook stop:format-typecheck`, + timeout: 120, + }, + { + type: 'command', + command: `node ${bridgeScript} --mode stop --hook stop:check-console-log`, + timeout: 30, + }, + ]; + + return { + 'ecc-guard': { + PreToolUse: preToolUseHandlers, + Stop: stopHandlers, + }, + }; +} + +module.exports = { + buildAntigravityHooksConfig, +}; diff --git a/scripts/lib/antigravity-mcp.js b/scripts/lib/antigravity-mcp.js new file mode 100644 index 000000000..dc726e54c --- /dev/null +++ b/scripts/lib/antigravity-mcp.js @@ -0,0 +1,28 @@ +'use strict'; + +/** + * Antigravity MCP Configuration Generator + * + * Generates valid Antigravity mcp_config.json containing the ECC Memory Vault + * stdio server so that Antigravity agents have native access to .ecc/memory/. + */ + +function buildAntigravityMcpConfig(options = {}) { + const memoryScript = options.memoryScript || 'scripts/memory-mcp.mjs'; + + return { + mcpServers: { + 'ecc-memory': { + command: 'node', + args: [memoryScript], + env: { + ECC_MEMORY_HARNESS: 'antigravity', + }, + }, + }, + }; +} + +module.exports = { + buildAntigravityMcpConfig, +}; diff --git a/scripts/lib/antigravity-plugin.js b/scripts/lib/antigravity-plugin.js new file mode 100644 index 000000000..a93f0a90b --- /dev/null +++ b/scripts/lib/antigravity-plugin.js @@ -0,0 +1,20 @@ +'use strict'; + +/** + * Antigravity Plugin Manifest Generator + * + * Generates valid Antigravity plugin.json declaring the ECC plugin. + */ + +function buildAntigravityPluginManifest(options = {}) { + const version = options.version || '2.2.2'; + return { + name: 'ecc', + description: 'ECC - The Agent Harness Operating System for Antigravity', + version, + }; +} + +module.exports = { + buildAntigravityPluginManifest, +}; diff --git a/scripts/lib/claude-plugin-setup.js b/scripts/lib/claude-plugin-setup.js index 63c116759..47b0232fd 100644 --- a/scripts/lib/claude-plugin-setup.js +++ b/scripts/lib/claude-plugin-setup.js @@ -570,6 +570,7 @@ function verifyPluginAtScope(options) { function ensurePluginAtScope(options) { const run = options.run || runClaude; + const configuredHooks = options.hookConfiguration; if (options.installed) { run( ['plugin', 'update', CURRENT_PLUGIN_ID, '--scope', options.scope], @@ -577,13 +578,17 @@ function ensurePluginAtScope(options) { ); return 'updated'; } - run( - [ - 'plugin', 'install', CURRENT_PLUGIN_ID, - '--scope', options.scope, - ], - { cwd: options.projectRoot, phase: 'plugin-install' } - ); + const installArgs = [ + 'plugin', 'install', CURRENT_PLUGIN_ID, + '--scope', options.scope, + ]; + if (configuredHooks) { + installArgs.push( + '--config', `hooks_enabled=${configuredHooks.hooks_enabled}`, + '--config', `hook_profile=${configuredHooks.hook_profile}` + ); + } + run(installArgs, { cwd: options.projectRoot, phase: 'plugin-install' }); return 'installed'; } diff --git a/scripts/lib/harness-capabilities.js b/scripts/lib/harness-capabilities.js index c42f0488e..8e606cff9 100644 --- a/scripts/lib/harness-capabilities.js +++ b/scripts/lib/harness-capabilities.js @@ -103,16 +103,23 @@ const HARNESS_CAPABILITIES = deepFreeze([ }, { id: 'antigravity', - label: 'Antigravity', - targetIds: ['antigravity'], - channel: 'managed-project', - installMode: 'managed-project', + label: 'Google Antigravity', + targetIds: ['antigravity-home', 'antigravity'], + channel: 'native-plugin', + installMode: 'native-plugin', guidedReady: false, availability: 'advanced', - destination: './.agents', - scopes: [scope('project', 'antigravity', './.agents')], - hooks: hooks('not-configured', false, 'ECC hooks are not configured by this adapter.'), - aliases: ['google-antigravity'], + destination: 'Selected Antigravity scope: ~/.gemini/config/plugins/ecc or ./.agents', + scopes: [ + scope('user', 'antigravity-home', '~/.gemini/config/plugins/ecc'), + scope('project', 'antigravity', './.agents'), + ], + hooks: hooks( + 'profile-selection', + true, + 'ECC hooks are configured through Antigravity PreToolUse and Stop lifecycle hooks.' + ), + aliases: ['google-antigravity', 'gemini-antigravity', 'agy'], }, { id: 'gemini', diff --git a/scripts/lib/install-manifests.js b/scripts/lib/install-manifests.js index bb16cc93c..926948f34 100644 --- a/scripts/lib/install-manifests.js +++ b/scripts/lib/install-manifests.js @@ -5,7 +5,7 @@ const { getInstallTargetAdapter, planInstallTargetScaffold } = require('./instal const { resolveInvocationEnvironment } = require('./invocation-environment'); const DEFAULT_REPO_ROOT = path.join(__dirname, '../..'); -const SUPPORTED_INSTALL_TARGETS = ['claude', 'claude-project', 'cursor', 'antigravity', 'codex', 'gemini', 'opencode', 'codebuddy', 'joycode', 'qwen', 'zed', 'hermes', 'openclaw', 'kimi', 'adal']; +const SUPPORTED_INSTALL_TARGETS = ['claude', 'claude-project', 'cursor', 'antigravity', 'antigravity-home', 'codex', 'gemini', 'opencode', 'codebuddy', 'joycode', 'qwen', 'zed', 'hermes', 'openclaw', 'kimi', 'adal']; const COMPONENT_FAMILY_PREFIXES = { baseline: 'baseline:', language: 'lang:', @@ -71,6 +71,14 @@ const LEGACY_COMPAT_BASE_MODULE_IDS_BY_TARGET = Object.freeze({ 'skill-unified-memory', 'workflow-quality', ], + 'antigravity-home': [ + 'rules-core', + 'agents-core', + 'commands-core', + 'hooks-runtime', + 'platform-configs', + 'workflow-quality', + ], zed: [ 'rules-core', 'agents-core', diff --git a/scripts/lib/install-targets/antigravity-home.js b/scripts/lib/install-targets/antigravity-home.js new file mode 100644 index 000000000..553ebd175 --- /dev/null +++ b/scripts/lib/install-targets/antigravity-home.js @@ -0,0 +1,209 @@ +'use strict'; + +const fs = require('fs'); +const path = require('path'); + +const { + HOME_INSTALL_EXCLUDED_SOURCE_PATHS, + createFlatRuleOperations, + createInstallTargetAdapter, + createManagedOperation, + createManagedScaffoldOperation, + isForeignPlatformPath, + normalizeRelativePath, +} = require('./helpers'); +const { buildAntigravityHooksConfig } = require('../antigravity-hooks'); +const { buildAntigravityMcpConfig } = require('../antigravity-mcp'); +const { buildAntigravityPluginManifest } = require('../antigravity-plugin'); + +function readJsonObject(filePath, label) { + let parsed; + try { + parsed = JSON.parse(fs.readFileSync(filePath, 'utf8')); + } catch (error) { + throw new Error(`Failed to parse ${label} at ${filePath}: ${error.message}`); + } + + if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) { + throw new Error(`Invalid ${label} at ${filePath}: expected a JSON object`); + } + + return parsed; +} + +module.exports = createInstallTargetAdapter({ + id: 'antigravity-home', + target: 'antigravity-home', + kind: 'home', + rootSegments: ['.gemini', 'config', 'plugins', 'ecc'], + installStatePathSegments: ['ecc-install-state.json'], + nativeRootRelativePath: '.gemini', + excludedSourcePaths: HOME_INSTALL_EXCLUDED_SOURCE_PATHS, + planOperations(input, adapter) { + const modules = Array.isArray(input.modules) + ? input.modules + : (input.module ? [input.module] : []); + const { + repoRoot, + projectRoot, + homeDir, + } = input; + const planningInput = { + repoRoot, + projectRoot, + homeDir, + }; + const targetRoot = adapter.resolveRoot(planningInput); + + return modules.flatMap(module => { + const paths = Array.isArray(module.paths) ? module.paths : []; + return paths + .filter(p => !isForeignPlatformPath(p, 'antigravity') && !adapter.excludesSourcePath(p)) + .flatMap(sourceRelativePath => { + const normalizedSourcePath = normalizeRelativePath(sourceRelativePath); + + if ( + normalizedSourcePath === 'rules' + || normalizedSourcePath.startsWith('rules/') + ) { + return createFlatRuleOperations({ + moduleId: module.id, + repoRoot, + sourceRelativePath: normalizedSourcePath, + destinationDir: path.join(targetRoot, 'rules'), + }); + } + + if ( + normalizedSourcePath === 'commands' + || normalizedSourcePath.startsWith('commands/') + ) { + const commandRelativePath = normalizedSourcePath === 'commands' + ? '' + : normalizedSourcePath.slice('commands/'.length); + return [ + createManagedScaffoldOperation( + module.id, + normalizedSourcePath, + path.join(targetRoot, 'workflows', commandRelativePath), + 'preserve-relative-path' + ), + ]; + } + + if ( + normalizedSourcePath === 'agents' + || normalizedSourcePath.startsWith('agents/') + ) { + const agentRelativePath = normalizedSourcePath === 'agents' + ? '' + : normalizedSourcePath.slice('agents/'.length); + return [ + createManagedOperation({ + moduleId: module.id, + sourceRelativePath: normalizedSourcePath, + destinationPath: path.join(targetRoot, 'agents', agentRelativePath), + strategy: 'preserve-relative-path', + contentTransform: 'antigravity-agent-frontmatter', + }), + ]; + } + + if ( + normalizedSourcePath === 'skills' + || normalizedSourcePath.startsWith('skills/') + ) { + const skillRelativePath = normalizedSourcePath === 'skills' + ? '' + : normalizedSourcePath.slice('skills/'.length); + return [ + createManagedScaffoldOperation( + module.id, + normalizedSourcePath, + path.join(targetRoot, 'skills', skillRelativePath), + 'preserve-relative-path' + ), + ]; + } + + if ( + module.id === 'hooks-runtime' + && normalizedSourcePath === 'hooks' + ) { + return [ + createManagedOperation({ + kind: 'merge-json', + moduleId: module.id, + sourceRelativePath: 'hooks/hooks.json', + destinationPath: path.join(targetRoot, 'hooks.json'), + strategy: 'merge-json', + ownership: 'managed', + scaffoldOnly: false, + mergePayload: buildAntigravityHooksConfig({ + profile: input.hookProfile || 'standard', + }), + }), + ]; + } + + if ( + module.id === 'platform-configs' + && (normalizedSourcePath === 'mcp-configs' || normalizedSourcePath === '.mcp.json') + ) { + const baseMcp = (repoRoot && fs.existsSync(path.join(repoRoot, '.mcp.json'))) + ? readJsonObject(path.join(repoRoot, '.mcp.json'), '.mcp.json') + : { mcpServers: {} }; + const antigravityMcp = buildAntigravityMcpConfig(); + const mergedMcp = { + mcpServers: { + ...(baseMcp.mcpServers || {}), + ...(antigravityMcp.mcpServers || {}), + }, + }; + + const operations = [ + createManagedOperation({ + kind: 'merge-json', + moduleId: module.id, + sourceRelativePath: '.mcp.json', + destinationPath: path.join(targetRoot, 'mcp_config.json'), + strategy: 'merge-json', + ownership: 'managed', + scaffoldOnly: false, + mergePayload: mergedMcp, + }), + createManagedOperation({ + kind: 'merge-json', + moduleId: module.id, + sourceRelativePath: 'plugin.json', + destinationPath: path.join(targetRoot, 'plugin.json'), + strategy: 'merge-json', + ownership: 'managed', + scaffoldOnly: false, + mergePayload: buildAntigravityPluginManifest(), + }), + ]; + + if (repoRoot && fs.existsSync(path.join(repoRoot, 'scripts', 'memory-mcp.mjs'))) { + operations.push( + createManagedScaffoldOperation( + module.id, + 'scripts/memory-mcp.mjs', + path.join(targetRoot, 'scripts', 'memory-mcp.mjs'), + 'preserve-relative-path' + ) + ); + } + + return operations; + } + + if (normalizedSourcePath === 'scripts/hooks' || normalizedSourcePath === 'scripts/lib') { + return [adapter.createScaffoldOperation(module.id, normalizedSourcePath, planningInput)]; + } + + return []; + }); + }); + }, +}); diff --git a/scripts/lib/install-targets/antigravity-project.js b/scripts/lib/install-targets/antigravity-project.js index 7861bbc25..9f5b8a8fd 100644 --- a/scripts/lib/install-targets/antigravity-project.js +++ b/scripts/lib/install-targets/antigravity-project.js @@ -1,3 +1,4 @@ +const fs = require('fs'); const path = require('path'); const { @@ -7,8 +8,21 @@ const { createManagedScaffoldOperation, normalizeRelativePath, } = require('./helpers'); +const { buildAntigravityHooksConfig } = require('../antigravity-hooks'); +const { buildAntigravityMcpConfig } = require('../antigravity-mcp'); +const { buildAntigravityPluginManifest } = require('../antigravity-plugin'); -const SUPPORTED_SOURCE_PREFIXES = ['rules', 'commands', 'agents', 'skills']; +const SUPPORTED_SOURCE_PREFIXES = [ + 'rules', + 'commands', + 'agents', + 'skills', + 'hooks', + 'scripts/hooks', + 'scripts/lib', + 'mcp-configs', + '.mcp.json', +]; function supportsAntigravitySourcePath(sourceRelativePath) { const normalizedPath = normalizeRelativePath(sourceRelativePath); @@ -17,12 +31,28 @@ function supportsAntigravitySourcePath(sourceRelativePath) { )); } +function readJsonObject(filePath, label) { + let parsed; + try { + parsed = JSON.parse(fs.readFileSync(filePath, 'utf8')); + } catch (error) { + throw new Error(`Failed to parse ${label} at ${filePath}: ${error.message}`); + } + + if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) { + throw new Error(`Invalid ${label} at ${filePath}: expected a JSON object`); + } + + return parsed; +} + module.exports = createInstallTargetAdapter({ id: 'antigravity-project', target: 'antigravity', kind: 'project', rootSegments: ['.agents'], installStatePathSegments: ['ecc-install-state.json'], + nativeRootRelativePath: '.agents', supportsModule(module) { const paths = Array.isArray(module && module.paths) ? module.paths : []; return paths.length > 0; @@ -114,6 +144,82 @@ module.exports = createInstallTargetAdapter({ ]; } + if ( + module.id === 'hooks-runtime' + && normalizedSourcePath === 'hooks' + ) { + return [ + createManagedOperation({ + kind: 'merge-json', + moduleId: module.id, + sourceRelativePath: 'hooks/hooks.json', + destinationPath: path.join(targetRoot, 'hooks.json'), + strategy: 'merge-json', + ownership: 'managed', + scaffoldOnly: false, + mergePayload: buildAntigravityHooksConfig({ + profile: input.hookProfile || 'standard', + }), + }), + ]; + } + + if ( + module.id === 'platform-configs' + && (normalizedSourcePath === 'mcp-configs' || normalizedSourcePath === '.mcp.json') + ) { + const baseMcp = (repoRoot && fs.existsSync(path.join(repoRoot, '.mcp.json'))) + ? readJsonObject(path.join(repoRoot, '.mcp.json'), '.mcp.json') + : { mcpServers: {} }; + const antigravityMcp = buildAntigravityMcpConfig(); + const mergedMcp = { + mcpServers: { + ...(baseMcp.mcpServers || {}), + ...(antigravityMcp.mcpServers || {}), + }, + }; + + const operations = [ + createManagedOperation({ + kind: 'merge-json', + moduleId: module.id, + sourceRelativePath: '.mcp.json', + destinationPath: path.join(targetRoot, 'mcp_config.json'), + strategy: 'merge-json', + ownership: 'managed', + scaffoldOnly: false, + mergePayload: mergedMcp, + }), + createManagedOperation({ + kind: 'merge-json', + moduleId: module.id, + sourceRelativePath: 'plugin.json', + destinationPath: path.join(targetRoot, 'plugins', 'ecc', 'plugin.json'), + strategy: 'merge-json', + ownership: 'managed', + scaffoldOnly: false, + mergePayload: buildAntigravityPluginManifest(), + }), + ]; + + if (repoRoot && fs.existsSync(path.join(repoRoot, 'scripts', 'memory-mcp.mjs'))) { + operations.push( + createManagedScaffoldOperation( + module.id, + 'scripts/memory-mcp.mjs', + path.join(targetRoot, 'scripts', 'memory-mcp.mjs'), + 'preserve-relative-path' + ) + ); + } + + return operations; + } + + if (normalizedSourcePath === 'scripts/hooks' || normalizedSourcePath === 'scripts/lib') { + return [adapter.createScaffoldOperation(module.id, normalizedSourcePath, planningInput)]; + } + return []; }); }); diff --git a/scripts/lib/install-targets/registry.js b/scripts/lib/install-targets/registry.js index 8dd7cf848..864a91a22 100644 --- a/scripts/lib/install-targets/registry.js +++ b/scripts/lib/install-targets/registry.js @@ -1,4 +1,5 @@ const adalProject = require('./adal-project'); +const antigravityHome = require('./antigravity-home'); const antigravityProject = require('./antigravity-project'); const claudeHome = require('./claude-home'); const claudeProject = require('./claude-project'); @@ -19,6 +20,7 @@ const ADAPTERS = Object.freeze([ claudeHome, claudeProject, cursorProject, + antigravityHome, antigravityProject, codexHome, geminiProject, diff --git a/scripts/lib/install/codex-user-config.js b/scripts/lib/install/codex-user-config.js index 5b7aa612c..a4e95df05 100644 --- a/scripts/lib/install/codex-user-config.js +++ b/scripts/lib/install/codex-user-config.js @@ -6,7 +6,7 @@ const path = require('path'); const { assertWithinTrustedRoot } = require('../path-safety'); function isCodexUserConfig(plan, operation) { - if (plan.adapter.id !== 'codex-home' || operation.kind !== 'copy-file') { + if (plan?.adapter?.id !== 'codex-home' || operation?.kind !== 'copy-file') { return false; } const relativePath = path.relative(plan.targetRoot, operation.destinationPath); diff --git a/scripts/lib/install/hook-consent.js b/scripts/lib/install/hook-consent.js index 883c121d7..4b84a6b4e 100644 --- a/scripts/lib/install/hook-consent.js +++ b/scripts/lib/install/hook-consent.js @@ -60,6 +60,7 @@ function isHookRuntimeOperation(operation = {}) { || source.startsWith('.cursor/hooks/') || source === '.cursor/hooks.json' || destination.endsWith('/hooks/hooks.json') + || destination.endsWith('/hooks.json') || destination.endsWith('/.cursor/hooks.json') || destination.includes('/.cursor/hooks/') ); diff --git a/scripts/lib/install/plan.js b/scripts/lib/install/plan.js index 1400557c7..91774b6e0 100644 --- a/scripts/lib/install/plan.js +++ b/scripts/lib/install/plan.js @@ -167,8 +167,10 @@ function materializeScaffoldOperation(sourceRoot, operation) { destinationPath: operation.destinationPath, strategy: operation.strategy || 'merge-json', ownership: operation.ownership || 'managed', - scaffoldOnly: Object.hasOwn(operation, 'scaffoldOnly') ? operation.scaffoldOnly : false, - mergePayload: readJsonObject(path.join(sourceRoot, operation.sourceRelativePath), operation.sourceRelativePath) + scaffoldOnly: typeof operation.scaffoldOnly === 'boolean' ? operation.scaffoldOnly : false, + mergePayload: operation.mergePayload !== undefined + ? JSON.parse(JSON.stringify(operation.mergePayload)) + : readJsonObject(path.join(sourceRoot, operation.sourceRelativePath), operation.sourceRelativePath) } ]; } diff --git a/scripts/lib/resolve-ecc-root.js b/scripts/lib/resolve-ecc-root.js index c9b8ee423..1b2da3684 100644 --- a/scripts/lib/resolve-ecc-root.js +++ b/scripts/lib/resolve-ecc-root.js @@ -55,7 +55,7 @@ const DEFAULT_SKILL_PROBE = path.join('skills', 'continuous-learning-v2'); function resolveEccRoot(options = {}) { const envRoot = options.envRoot !== undefined ? options.envRoot - : (process.env.CLAUDE_PLUGIN_ROOT || ''); + : (process.env.CLAUDE_PLUGIN_ROOT || process.env.ANTIGRAVITY_PLUGIN_ROOT || process.env.GEMINI_PLUGIN_ROOT || ''); if (envRoot && envRoot.trim()) { return envRoot.trim(); @@ -80,6 +80,12 @@ function resolveEccRoot(options = {}) { return claudeDir; } + // Antigravity global plugin install — ~/.gemini/config/plugins/ecc + const antigravityPluginDir = path.join(homeDir, '.gemini', 'config', 'plugins', 'ecc'); + if (isRoot(antigravityPluginDir)) { + return antigravityPluginDir; + } + // Exact legacy plugin install locations. These preserve backwards // compatibility without scanning arbitrary plugin trees. const legacyPluginRoots = PLUGIN_ROOT_SEGMENTS.map((segments) => diff --git a/scripts/plan-canvas.js b/scripts/plan-canvas.js index 6ecefe49a..9b692821a 100755 --- a/scripts/plan-canvas.js +++ b/scripts/plan-canvas.js @@ -17,6 +17,7 @@ * so stdout stays parseable. */ +const { spawn } = require('child_process'); const fs = require('fs'); const http = require('http'); const path = require('path'); diff --git a/tests/lib/antigravity-tier1.test.js b/tests/lib/antigravity-tier1.test.js new file mode 100644 index 000000000..145947bcd --- /dev/null +++ b/tests/lib/antigravity-tier1.test.js @@ -0,0 +1,356 @@ +'use strict'; + +const assert = require('assert'); +const fs = require('fs'); +const os = require('os'); +const path = require('path'); +const { spawnSync } = require('child_process'); + +const { adaptAntigravityInputToEcc } = require('../../scripts/hooks/antigravity-hook-bridge'); +const { buildAntigravityHooksConfig } = require('../../scripts/lib/antigravity-hooks'); +const { buildAntigravityMcpConfig } = require('../../scripts/lib/antigravity-mcp'); +const { buildAntigravityPluginManifest } = require('../../scripts/lib/antigravity-plugin'); +const { getInstallTargetAdapter, listInstallTargetAdapters } = require('../../scripts/lib/install-targets/registry'); +const { resolveInstallPlan } = require('../../scripts/lib/install-manifests'); +const { resolveEccRoot } = require('../../scripts/lib/resolve-ecc-root'); + +let passed = 0; +let failed = 0; + +function test(name, fn) { + try { + fn(); + console.log(` ✓ ${name}`); + passed += 1; + return true; + } catch (error) { + console.log(` ✗ ${name}`); + console.log(` Error: ${error.message}`); + failed += 1; + return false; + } +} + +function createTempDir(prefix) { + return fs.mkdtempSync(path.join(os.tmpdir(), prefix)); +} + +function cleanup(dirPath) { + fs.rmSync(dirPath, { recursive: true, force: true }); +} + +function runTests() { + console.log('\n=== Testing Antigravity Tier 1 Parity ===\n'); + + test('adaptAntigravityInputToEcc normalizes run_command tool calls', () => { + const rawInput = { + conversationId: 'conv-1234', + workspacePaths: ['/workspace/app'], + stepIdx: 5, + toolCall: { + name: 'run_command', + args: { + CommandLine: 'npm test', + Cwd: '/workspace/app', + }, + }, + }; + + const adapted = adaptAntigravityInputToEcc(rawInput); + assert.strictEqual(adapted.tool_name, 'run_command'); + assert.strictEqual(adapted.tool_input.command, 'npm test'); + assert.strictEqual(adapted.tool_input.CommandLine, 'npm test'); + assert.strictEqual(adapted.conversation_id, 'conv-1234'); + assert.deepStrictEqual(adapted.workspace_paths, ['/workspace/app']); + }); + + test('adaptAntigravityInputToEcc normalizes write_to_file and replace_file_content tool calls', () => { + const writeInput = { + toolCall: { + name: 'write_to_file', + args: { + TargetFile: '/workspace/app/src/index.js', + CodeContent: 'console.log("hello");', + }, + }, + }; + const adaptedWrite = adaptAntigravityInputToEcc(writeInput); + assert.strictEqual(adaptedWrite.tool_name, 'write_to_file'); + assert.strictEqual(adaptedWrite.tool_input.file_path, '/workspace/app/src/index.js'); + + const replaceInput = { + toolCall: { + name: 'replace_file_content', + args: { + TargetFile: '/workspace/app/src/index.js', + TargetContent: 'hello', + ReplacementContent: 'world', + }, + }, + }; + const adaptedReplace = adaptAntigravityInputToEcc(replaceInput); + assert.strictEqual(adaptedReplace.tool_name, 'replace_file_content'); + assert.strictEqual(adaptedReplace.tool_input.file_path, '/workspace/app/src/index.js'); + }); + + test('adaptAntigravityInputToEcc handles malformed or empty payloads safely', () => { + const emptyAdapted = adaptAntigravityInputToEcc(null); + assert.strictEqual(emptyAdapted.tool_name, ''); + assert.deepStrictEqual(emptyAdapted.tool_input, {}); + + const emptyObjAdapted = adaptAntigravityInputToEcc({}); + assert.strictEqual(emptyObjAdapted.tool_name, ''); + assert.deepStrictEqual(emptyObjAdapted.tool_input, { command: '', file_path: '' }); + }); + + test('buildAntigravityHooksConfig generates valid Antigravity hooks specification', () => { + const config = buildAntigravityHooksConfig({ profile: 'standard' }); + assert.ok(config['ecc-guard'], 'Should have ecc-guard hook entry'); + const guard = config['ecc-guard']; + + assert.ok(Array.isArray(guard.PreToolUse), 'PreToolUse should be an array'); + assert.ok(Array.isArray(guard.Stop), 'Stop should be an array'); + + const commandMatcher = guard.PreToolUse.find(entry => entry.matcher === 'run_command'); + assert.ok(commandMatcher, 'Should have run_command matcher in PreToolUse'); + assert.ok( + commandMatcher.hooks.some(h => h.command.includes('pre:bash:dispatcher')), + 'Should invoke pre:bash:dispatcher on run_command' + ); + + const editMatcher = guard.PreToolUse.find(entry => entry.matcher === 'write_to_file|replace_file_content'); + assert.ok(editMatcher, 'Should have write_to_file|replace_file_content matcher'); + assert.ok( + editMatcher.hooks.some(h => h.command.includes('pre:edit-write:gateguard-fact-force')), + 'Should invoke GateGuard on write operations' + ); + }); + + test('buildAntigravityMcpConfig generates valid stdio MCP configuration for ecc-memory', () => { + const config = buildAntigravityMcpConfig(); + assert.ok(config.mcpServers, 'Should declare mcpServers'); + assert.ok(config.mcpServers['ecc-memory'], 'Should declare ecc-memory server'); + const memoryServer = config.mcpServers['ecc-memory']; + assert.strictEqual(memoryServer.command, 'node'); + assert.strictEqual(memoryServer.env.ECC_MEMORY_HARNESS, 'antigravity'); + }); + + test('buildAntigravityPluginManifest generates valid Antigravity plugin manifest', () => { + const manifest = buildAntigravityPluginManifest({ version: '2.2.2' }); + assert.strictEqual(manifest.name, 'ecc'); + assert.strictEqual(manifest.version, '2.2.2'); + assert.ok(manifest.description.includes('Antigravity')); + }); + + test('antigravity-home adapter resolves root to ~/.gemini/config/plugins/ecc', () => { + const homeDir = '/home/testuser'; + const adapter = getInstallTargetAdapter('antigravity-home'); + assert.strictEqual(adapter.id, 'antigravity-home'); + assert.strictEqual(adapter.kind, 'home'); + assert.strictEqual( + adapter.resolveRoot({ homeDir }), + path.join(homeDir, '.gemini', 'config', 'plugins', 'ecc') + ); + }); + + test('antigravity-home plans complete native plugin structure for core profile', () => { + const homeDir = createTempDir('antigravity-home-test-'); + const projectRoot = createTempDir('antigravity-proj-test-'); + + try { + const plan = resolveInstallPlan({ + profileId: 'core', + target: 'antigravity-home', + homeDir, + projectRoot, + enableHooks: true, + }); + + assert.strictEqual(plan.targetAdapterId, 'antigravity-home'); + assert.strictEqual( + plan.targetRoot, + path.join(homeDir, '.gemini', 'config', 'plugins', 'ecc') + ); + + const targetRoot = plan.targetRoot; + + // Check plugin.json + assert.ok( + plan.operations.some(op => ( + op.destinationPath === path.join(targetRoot, 'plugin.json') + && op.kind === 'merge-json' + )), + 'Should plan plugin.json merge' + ); + + // Check mcp_config.json + assert.ok( + plan.operations.some(op => ( + op.destinationPath === path.join(targetRoot, 'mcp_config.json') + && op.kind === 'merge-json' + )), + 'Should plan mcp_config.json merge' + ); + + // Check hooks.json + assert.ok( + plan.operations.some(op => ( + op.destinationPath === path.join(targetRoot, 'hooks.json') + && op.kind === 'merge-json' + )), + 'Should plan hooks.json merge' + ); + + // Check rules + assert.ok( + plan.operations.some(op => ( + op.destinationPath.startsWith(path.join(targetRoot, 'rules')) + )), + 'Should plan rules into plugin rules directory' + ); + + // Check workflows + assert.ok( + plan.operations.some(op => ( + op.destinationPath.startsWith(path.join(targetRoot, 'workflows')) + )), + 'Should plan workflows' + ); + } finally { + cleanup(homeDir); + cleanup(projectRoot); + } + }); + + test('antigravity-hook-bridge handles allow decision for safe command', () => { + const bridgePath = path.join(__dirname, '..', '..', 'scripts', 'hooks', 'antigravity-hook-bridge.js'); + const input = JSON.stringify({ + conversationId: 'test-conv', + workspacePaths: ['/tmp'], + toolCall: { + name: 'run_command', + args: { + CommandLine: 'echo "hello from safe command"', + }, + }, + }); + + const run = spawnSync(process.execPath, [bridgePath, '--mode', 'pre-tool-use', '--hook', 'pre:bash:dispatcher'], { + input, + encoding: 'utf8', + }); + + assert.strictEqual(run.status, 0); + const output = JSON.parse(run.stdout); + assert.strictEqual(output.decision, 'allow'); + }); + + test('antigravity-hook-bridge returns deny for blocked git push --no-verify', () => { + const bridgePath = path.join(__dirname, '..', '..', 'scripts', 'hooks', 'antigravity-hook-bridge.js'); + const input = JSON.stringify({ + conversationId: 'test-conv', + workspacePaths: ['/tmp'], + toolCall: { + name: 'run_command', + args: { + CommandLine: 'git push origin main --no-verify', + }, + }, + }); + + const run = spawnSync(process.execPath, [bridgePath, '--mode', 'pre-tool-use', '--hook', 'pre:bash:dispatcher'], { + input, + encoding: 'utf8', + }); + + assert.strictEqual(run.status, 0); + const output = JSON.parse(run.stdout); + assert.strictEqual(output.decision, 'deny'); + assert.match(output.reason, /no-verify/i); + }); + + test('antigravity-project plans mcp_config.json when platform configs are selected', () => { + const projectRoot = createTempDir('antigravity-proj-mcp-'); + try { + const plan = resolveInstallPlan({ + moduleIds: ['platform-configs'], + target: 'antigravity', + projectRoot, + }); + + assert.strictEqual(plan.targetAdapterId, 'antigravity-project'); + const targetRoot = path.join(projectRoot, '.agents'); + + assert.ok( + plan.operations.some(op => op.destinationPath === path.join(targetRoot, 'mcp_config.json') && op.kind === 'merge-json'), + 'Should plan mcp_config.json in project .agents' + ); + } finally { + cleanup(projectRoot); + } + }); + + test('antigravity-home end-to-end install applies complete plugin directory and install state', () => { + const homeDir = createTempDir('antigravity-home-e2e-'); + const projectDir = createTempDir('antigravity-proj-e2e-'); + + try { + const { createManifestInstallPlan } = require('../../scripts/lib/install/plan'); + const { applyInstallPlan } = require('../../scripts/lib/install/apply'); + const { withHookConsent } = require('../../scripts/lib/install/hook-consent'); + const plan = withHookConsent(createManifestInstallPlan({ + profileId: 'core', + target: 'antigravity-home', + homeDir, + projectRoot: projectDir, + }), 'enabled'); + + const result = applyInstallPlan(plan); + const pluginDir = path.join(homeDir, '.gemini', 'config', 'plugins', 'ecc'); + + assert.ok(fs.existsSync(path.join(pluginDir, 'plugin.json')), 'plugin.json should exist'); + assert.ok(fs.existsSync(path.join(pluginDir, 'hooks.json')), 'hooks.json should exist'); + assert.ok(fs.existsSync(path.join(pluginDir, 'mcp_config.json')), 'mcp_config.json should exist'); + assert.ok(fs.existsSync(path.join(pluginDir, 'ecc-install-state.json')), 'install-state should exist'); + assert.ok(fs.existsSync(path.join(pluginDir, 'rules', 'common-coding-style.md')), 'rules should exist'); + assert.ok(fs.existsSync(path.join(pluginDir, 'skills', 'tdd-workflow', 'SKILL.md')), 'skills should exist'); + assert.ok(fs.existsSync(path.join(pluginDir, 'scripts', 'hooks', 'antigravity-hook-bridge.js')), 'hook bridge should exist'); + + const pluginJson = JSON.parse(fs.readFileSync(path.join(pluginDir, 'plugin.json'), 'utf8')); + assert.strictEqual(pluginJson.name, 'ecc'); + + const hooksJson = JSON.parse(fs.readFileSync(path.join(pluginDir, 'hooks.json'), 'utf8')); + assert.ok(hooksJson['ecc-guard']); + assert.ok(Array.isArray(hooksJson['ecc-guard'].PreToolUse)); + assert.ok(Array.isArray(hooksJson['ecc-guard'].Stop)); + + const mcpConfig = JSON.parse(fs.readFileSync(path.join(pluginDir, 'mcp_config.json'), 'utf8')); + assert.ok(mcpConfig.mcpServers['ecc-memory']); + } finally { + cleanup(homeDir); + cleanup(projectDir); + } + }); + + test('resolveEccRoot recognizes Antigravity global plugin install', () => { + const tempHome = createTempDir('ecc-root-test-'); + try { + const pluginDir = path.join(tempHome, '.gemini', 'config', 'plugins', 'ecc'); + fs.mkdirSync(path.join(pluginDir, 'scripts', 'lib'), { recursive: true }); + fs.mkdirSync(path.join(pluginDir, 'skills', 'continuous-learning-v2'), { recursive: true }); + fs.writeFileSync(path.join(pluginDir, 'scripts', 'lib', 'utils.js'), '// utils'); + + const resolved = resolveEccRoot({ homeDir: tempHome }); + assert.strictEqual(resolved, pluginDir); + } finally { + cleanup(tempHome); + } + }); + + console.log(`\nResults: Passed: ${passed}, Failed: ${failed}\n`); + if (failed > 0) { + process.exit(1); + } +} + +runTests(); diff --git a/tests/lib/harness-capabilities.test.js b/tests/lib/harness-capabilities.test.js index 4591403d4..35d1abb8b 100644 --- a/tests/lib/harness-capabilities.test.js +++ b/tests/lib/harness-capabilities.test.js @@ -33,12 +33,12 @@ function runTests() { let passed = 0; let failed = 0; - if (test('represents all 15 registered targets exactly once across 14 harnesses', () => { + if (test('represents all 16 registered targets exactly once across 14 harnesses', () => { const catalogTargetIds = HARNESS_CAPABILITIES.flatMap(harness => harness.targetIds); const adapterTargetIds = listInstallTargetAdapters().map(adapter => adapter.target); assert.strictEqual(HARNESS_CAPABILITIES.length, 14); - assert.strictEqual(new Set(catalogTargetIds).size, 15); + assert.strictEqual(new Set(catalogTargetIds).size, 16); assert.deepStrictEqual([...catalogTargetIds].sort(), [...SUPPORTED_INSTALL_TARGETS].sort()); assert.deepStrictEqual([...catalogTargetIds].sort(), [...adapterTargetIds].sort()); })) passed++; else failed++; @@ -84,6 +84,16 @@ function runTests() { { id: 'project', targetId: 'kimi', root: './.kimi-code' }, ]); + const antigravity = getHarnessCapability('antigravity'); + assert.deepStrictEqual(antigravity.targetIds, ['antigravity-home', 'antigravity']); + assert.strictEqual(antigravity.channel, 'native-plugin'); + assert.strictEqual(antigravity.installMode, 'native-plugin'); + assert.match(antigravity.destination, /selected Antigravity scope/i); + assert.deepStrictEqual(antigravity.scopes, [ + { id: 'user', targetId: 'antigravity-home', root: '~/.gemini/config/plugins/ecc' }, + { id: 'project', targetId: 'antigravity', root: './.agents' }, + ]); + const opencode = getHarnessCapability('opencode'); assert.match(opencode.destinationResolution, /OPENCODE_CONFIG_DIR/); assert.match(opencode.destinationResolution, /XDG_CONFIG_HOME/); @@ -93,7 +103,6 @@ function runTests() { if (test('keeps every advanced target attached to its registered root and scope', () => { const expected = { cursor: ['project', './.cursor'], - antigravity: ['project', './.agents'], gemini: ['project', './.gemini'], opencode: ['home', '~/.config/opencode'], codebuddy: ['project', './.codebuddy'], diff --git a/tests/scripts/codex-hooks.test.js b/tests/scripts/codex-hooks.test.js index c47f6d986..17efc10b4 100644 --- a/tests/scripts/codex-hooks.test.js +++ b/tests/scripts/codex-hooks.test.js @@ -406,6 +406,7 @@ function runHermeticPythonPrePush({ HOME: process.env.HOME ?? '', ECC_SKIP_GIT_HOOKS: '0', ECC_SKIP_PREPUSH: '0', + ECC_PREPUSH_RUN_CHECKS: '1', MSYS_NO_PATHCONV: '1', ...(venvDir === null || trackVenv ? {} : { VIRTUAL_ENV: toBashPath(venvDir) }), ...(override === null ? {} : { ECC_PYTEST_CMD: override }), @@ -452,7 +453,7 @@ else failed++; // A case-folded spelling, because macOS resolves `$venv/bin/python` to a committed // `Python` while git matches index pathspecs case-sensitively. Skipped where the // filesystem is case-sensitive and the two names cannot collide. -if (fs.existsSync(__filename.toUpperCase()) || fs.existsSync(__filename.toLowerCase())) { +if (fs.existsSync(__filename.toUpperCase()) && fs.existsSync(__filename.toLowerCase())) { if ( test('pre-push refuses a tracked interpreter committed under a folded case', () => { const { result, calls } = runHermeticPythonPrePush({ diff --git a/tests/scripts/control-pane.test.js b/tests/scripts/control-pane.test.js index 5503bcf95..406e09c72 100644 --- a/tests/scripts/control-pane.test.js +++ b/tests/scripts/control-pane.test.js @@ -603,7 +603,10 @@ async function runTests() { if ( await test('CLI browser opener handles spawn errors', async () => { - const source = fs.readFileSync(SCRIPT, 'utf8'); + const source = fs.readFileSync( + path.join(REPO_ROOT, 'scripts', 'lib', 'platform-launch.js'), + 'utf8' + ); assert.match(source, /child\.on\('error'/); assert.match(source, /child\.unref\(\)/); From 689160048ad51361e6b4d86d6173409a9f0179a5 Mon Sep 17 00:00:00 2001 From: MohamedAfrash <afrazzz51@gmail.com> Date: Wed, 23 Sep 2026 11:15:35 +0100 Subject: [PATCH 28/78] docs(readme): document Antigravity native plugin and global install target --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9156c729a..6c284c359 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ Instead of rebuilding that process in every prompt, you install it once and make > Optimize the context window. Persist everything else. -ECC is MIT-licensed open source. It works best with Claude Code today, has a supported Codex sync path, and provides capability-limited adapters for Cursor, OpenCode, Gemini, Zed, GitHub Copilot, Antigravity, Qwen, and other harnesses. See the [support status matrix](#platform-support) before assuming feature parity. +ECC is MIT-licensed open source. It works best with Claude Code today, has supported native plugin paths for Codex and Antigravity, and provides capability-limited adapters for Cursor, OpenCode, Gemini, Zed, GitHub Copilot, Qwen, and other harnesses. See the [support status matrix](#platform-support) before assuming feature parity. Access to 68 agents, 292 skills, and 94 legacy command shims, plus hooks, rules, memory, continuous learning, and AgentShield security scanning. The agents are specialized for planning, review, build repair, security, architecture, and domain work. @@ -259,7 +259,7 @@ npx ecc-universal@2.2.2 doctor --target kimi Do not use `npx ecc-install --profile minimal --target claude`: `ecc-install` is a binary name inside `ecc-universal`, not a separately published npm package. -ECC also ships advanced managed adapters for `cursor`, `antigravity`, `gemini`, `opencode`, `codebuddy`, `joycode`, `qwen`, `zed`, `hermes`, and `openclaw`. Those targets still use their documented `ecc install --target ...` paths until each adapter has passed the guided collision, update, repair, and uninstall lifecycle matrix. Neither wizard silently installs into every detected harness. +ECC also ships advanced managed adapters for `cursor`, `antigravity`, `antigravity-home`, `gemini`, `opencode`, `codebuddy`, `joycode`, `qwen`, `zed`, `hermes`, and `openclaw`. Those targets still use their documented `ecc install --target ...` paths until each adapter has passed the guided collision, update, repair, and uninstall lifecycle matrix. Neither wizard silently installs into every detected harness. ### Pick one path only (per harness) @@ -399,7 +399,8 @@ cd ECC | OpenCode | `npm install && npm run build:opencode && ./install.sh --profile full --target opencode --enable-hooks` | Builds the plugin payload before the full install | | Gemini CLI | `./install.sh --profile minimal --target gemini` | Project-local `.gemini/` config | | Zed | `./install.sh --profile minimal --target zed` | Project-local `.zed/` adapter | -| Antigravity | `./install.sh --profile minimal --target antigravity` | See the [Antigravity guide](docs/ANTIGRAVITY-GUIDE.md) | +| Antigravity (Global Plugin) | `./install.sh --target antigravity-home --profile core --enable-hooks` | Native Tier 1 global plugin (`~/.gemini/config/plugins/ecc/`) with lifecycle hooks · [Guide](docs/ANTIGRAVITY-GUIDE.md) | +| Antigravity (Project-Local) | `./install.sh --target antigravity --profile minimal` | Project-local `.agents/` adapter · [Guide](docs/ANTIGRAVITY-GUIDE.md) | | Qwen CLI | `./install.sh --profile minimal --target qwen` | See the [Qwen guide](docs/QWEN-GUIDE.md) | | Hermes | `./install.sh --profile minimal --target hermes` | See the [Hermes setup guide](docs/HERMES-SETUP.md) | | OpenClaw | `./install.sh --profile minimal --target openclaw` | Managed home-directory install | @@ -1284,10 +1285,11 @@ Treat `stable`, `beta`, `experimental`, and `instruction-only` below as capabili |---|---|---|---| | Claude Code | Stable primary | Plugin or selective installer | The plugin advertises the installed catalog to the model; use a selective/manual profile when context footprint matters. Optional shell-backed skills are not portable to every OS. | | Codex | Supported native plugin | Codex marketplace plugin or repo config | Native hooks require an explicit trust decision and do not use Claude's hook profiles. The legacy sync is compatibility-only. | +| Antigravity | Supported native plugin | Native plugin (`~/.gemini/config/plugins/ecc`) or project `.agents/` | Global native plugin with lifecycle hooks (`PreToolUse`, `Stop`) via protojson bridge, rules, workflows, skills, and memory MCP. | | Cursor | Beta project adapter | Selective installer into `.cursor/` | Agent discovery varies by Cursor build, and ECC's installer paths do not yet expose identical hook sets ([#2419](https://github.com/affaan-m/ECC/issues/2419)). | | OpenCode | Beta built plugin | Build plugin, then selective installer | ECC ships a subset of the catalog; connect a provider and select a model in OpenCode ([#2617](https://github.com/affaan-m/ECC/issues/2617)). | | GitHub Copilot | Instruction-only | Checked-in instructions and prompt files | No ECC hooks, runtime agents, delegation, or native skill discovery. | -| Gemini, Zed, Antigravity, Qwen, Hermes, OpenClaw, Kimi, CodeBuddy, JoyCode | Experimental/minimal adapters | Harness-specific selective target | File placement and instruction portability are tested; full Claude feature parity is not claimed. | +| Gemini, Zed, Qwen, Hermes, OpenClaw, Kimi, CodeBuddy, JoyCode | Experimental/minimal adapters | Harness-specific selective target | File placement and instruction portability are tested; full Claude feature parity is not claimed. | <details> <summary><strong>Package manager detection</strong></summary> From aa457babfc787fd647f61e3130398fefbbb7a7f8 Mon Sep 17 00:00:00 2001 From: MohamedAfrash <afrazzz51@gmail.com> Date: Thu, 24 Sep 2026 03:01:29 +0100 Subject: [PATCH 29/78] fix(antigravity): resolve PR review comments on hooks bridge, mcp runtime, and quoting --- docs/ANTIGRAVITY-GUIDE.md | 16 +- manifests/install-modules.json | 1 + scripts/hooks/antigravity-hook-bridge.js | 83 +++++-- scripts/lib/antigravity-hooks.js | 41 +++- scripts/lib/antigravity-mcp.js | 44 +++- scripts/lib/antigravity-plugin.js | 2 +- scripts/lib/claude-plugin-setup.js | 1 + .../lib/install-targets/antigravity-home.js | 17 +- .../install-targets/antigravity-project.js | 17 +- tests/lib/antigravity-tier1.test.js | 229 +++++++++++++++++- tests/lib/claude-plugin-setup.test.js | 17 ++ tests/lib/install-manifests.test.js | 4 +- tests/scripts/antigravity-hook-bridge.test.js | 102 ++++++++ tests/scripts/install-apply.test.js | 6 +- 14 files changed, 507 insertions(+), 73 deletions(-) create mode 100644 tests/scripts/antigravity-hook-bridge.test.js diff --git a/docs/ANTIGRAVITY-GUIDE.md b/docs/ANTIGRAVITY-GUIDE.md index 80c03fa27..2637f1acd 100644 --- a/docs/ANTIGRAVITY-GUIDE.md +++ b/docs/ANTIGRAVITY-GUIDE.md @@ -153,8 +153,9 @@ node "$EccRoot\scripts\uninstall.js" --target antigravity --dry-run ## Tier 1 Native Plugin and Global Installation (`antigravity-home`) Antigravity supports global plugins located in `~/.gemini/config/plugins/<name>/`. Installing ECC as a native Antigravity plugin enables: + 1. **Global Scope**: ECC rules, skills, agents, workflows, and memory MCP are active across all projects automatically, without requiring a `.agents/` folder in every repository. -2. **Lifecycle Hooks (`hooks.json`)**: Full support for `PreToolUse` (command security gates, file modification guards) and `Stop` hooks using Antigravity's protojson protocol (`{ decision, reason }`). +2. **Lifecycle Hooks (`hooks.json`)**: Full support for `PreToolUse` (command security gates, file modification guards) `PostToolUse` edit tracking, and `Stop` formatting and diagnostics using Antigravity's protojson protocol (`{ decision, reason }`). 3. **Shared Memory Vault (`mcp_config.json`)**: Direct integration with `ecc-memory-mcp` across all Antigravity sessions. 4. **Native Plugin Manifest (`plugin.json`)**: Declares the ECC plugin metadata. @@ -171,17 +172,25 @@ PowerShell: & "$EccRoot\install.ps1" --target antigravity-home --profile core --enable-hooks ``` +The installer copies the memory server and its runtime dependencies into the +managed target. Generated hook and MCP commands use absolute installed paths, +so they also work when Antigravity runs from another workspace. + +Project-local hooks use the same runtime; select `--profile core --enable-hooks` +with `--target antigravity`. Use `--no-hooks` to omit automatic hooks. + ### Global Plugin Structure ```text ~/.gemini/config/plugins/ecc/ ├── plugin.json # Antigravity plugin manifest -├── hooks.json # PreToolUse and Stop lifecycle hooks +├── hooks.json # PreToolUse, PostToolUse, and Stop hooks ├── mcp_config.json # Shared ECC Memory Vault MCP server ├── rules/ # Rules applied to all workspaces ├── workflows/ # Global slash workflows ├── skills/ # Global Agent Skills -└── scripts/hooks/ # Antigravity hook bridge +├── scripts/ # Hook bridge and memory runtime +└── node_modules/ # Memory server dependencies ``` ## Official Antigravity references @@ -190,6 +199,7 @@ PowerShell: - [Rules and workflows](https://antigravity.google/docs/rules-workflows) - [Custom agents and subagents](https://antigravity.google/docs/subagents) - [Plugins](https://antigravity.google/docs/plugins) +- [Lifecycle hooks](https://antigravity.google/docs/hooks) See [CONTRIBUTING.md](../CONTRIBUTING.md) for ECC contribution guidance and [SELECTIVE-INSTALL-ARCHITECTURE.md](SELECTIVE-INSTALL-ARCHITECTURE.md) for the diff --git a/manifests/install-modules.json b/manifests/install-modules.json index 85ebc638c..6484fa7a7 100644 --- a/manifests/install-modules.json +++ b/manifests/install-modules.json @@ -103,6 +103,7 @@ "cursor", "opencode", "codebuddy", + "antigravity", "antigravity-home" ], "dependencies": [], diff --git a/scripts/hooks/antigravity-hook-bridge.js b/scripts/hooks/antigravity-hook-bridge.js index f0dc01dea..9fa65d7d8 100644 --- a/scripts/hooks/antigravity-hook-bridge.js +++ b/scripts/hooks/antigravity-hook-bridge.js @@ -14,7 +14,7 @@ const { spawnSync } = require('child_process'); const { runPreBash } = require('./bash-hook-dispatcher'); const { run: runGateGuard } = require('./gateguard-fact-force'); const { run: runDocFileWarning } = require('./doc-file-warning'); -const { run: runStopFormatTypecheck } = require('./stop-format-typecheck'); +const { run: runPostEditAccumulator } = require('./post-edit-accumulator'); const { readStdinRaw, resolveMaxStdin } = require('./hook-input'); function parseArgs(argv) { @@ -53,13 +53,22 @@ function adaptAntigravityInputToEcc(antigravityData) { }; return { - tool_name: toolName, + tool_name: ({ run_command: 'Bash', write_to_file: 'Write', replace_file_content: 'Edit', multi_replace_file_content: 'Edit' })[toolName] || toolName, tool_input: toolInput, + session_id: antigravityData.conversationId || antigravityData.session_id || '', + cwd: args.Cwd || antigravityData.cwd || antigravityData.workspacePaths?.[0] || '', conversation_id: antigravityData.conversationId || '', workspace_paths: antigravityData.workspacePaths || [], }; } +function writeFailure(mode, reason) { + process.stdout.write(JSON.stringify({ + decision: mode === 'pre-tool-use' ? 'deny' : 'allow', + ...(mode === 'pre-tool-use' ? { reason } : {}), + })); +} + async function main() { const options = parseArgs(process.argv); const maxStdin = resolveMaxStdin(process.env.ECC_HOOK_INPUT_MAX_BYTES); @@ -67,19 +76,21 @@ async function main() { let raw = ''; try { const inputResult = await readStdinRaw(process.stdin, { maxStdin }); + if (inputResult.truncated) throw new Error('Incomplete hook input'); raw = inputResult.raw; } catch (_err) { - // If stdin read fails, fail open safely - process.stdout.write(JSON.stringify({ decision: 'allow' })); + writeFailure(options.mode, 'ECC hook input could not be read completely'); return; } let antigravityPayload = {}; try { - antigravityPayload = raw.trim() ? JSON.parse(raw) : {}; + antigravityPayload = JSON.parse(raw); + if (!antigravityPayload || typeof antigravityPayload !== 'object' || Array.isArray(antigravityPayload)) { + throw new Error('Invalid hook input'); + } } catch (_parseErr) { - // Malformed JSON on stdin - process.stdout.write(JSON.stringify({ decision: 'allow' })); + writeFailure(options.mode, 'ECC hook input must be a valid JSON object'); return; } @@ -97,45 +108,65 @@ async function main() { const child = spawnSync(process.execPath, [path.join(__dirname, 'config-protection.js')], { input: eccJsonString, encoding: 'utf8', + timeout: 4000, }); result = { - exitCode: child.status || 0, + exitCode: child.error || child.status === null ? 2 : child.status, stderr: child.stderr || '', }; } else if (options.hook === 'pre:write:doc-file-warning') { result = runDocFileWarning(eccJsonString); } - if (result && (result.exitCode === 2 || result.denied || result.blocked)) { - const reason = result.stderr || result.reason || 'Blocked by ECC safety hook'; - process.stdout.write(JSON.stringify({ - decision: 'deny', - reason: reason.replace(/\r?\n/g, ' ').trim(), - })); - return; - } + const output = result && (result.stdout || result.output); + const hookOutput = output ? JSON.parse(output).hookSpecificOutput : null; + const denied = result && ((result.exitCode !== undefined && result.exitCode !== 0) || result.denied || result.blocked) + || hookOutput?.permissionDecision === 'deny'; + const context = result?.additionalContext || hookOutput?.additionalContext; + const reason = denied + ? hookOutput?.permissionDecisionReason || result.stderr || result.reason || 'Blocked by ECC safety hook' + : Array.isArray(context) ? context.join(' ') : context; + process.stdout.write(JSON.stringify({ + decision: denied ? 'deny' : 'allow', + ...(reason ? { reason: String(reason).replace(/\r?\n/g, ' ').trim() } : {}), + })); + return; + } - process.stdout.write(JSON.stringify({ decision: 'allow' })); + // Both accumulator and batch formatter use the same session-scoped temp file. + if (eccPayload.session_id) process.env.CLAUDE_SESSION_ID = String(eccPayload.session_id); + + if (options.mode === 'post-tool-use') { + if (options.hook === 'post:edit:accumulator' && !antigravityPayload.error) { + runPostEditAccumulator(eccJsonString); + } + process.stdout.write(JSON.stringify({})); return; } if (options.mode === 'stop') { + if (antigravityPayload.fullyIdle === false) { + process.stdout.write(JSON.stringify({ decision: 'allow' })); + return; + } let stopResult = { exitCode: 0, stderr: '' }; - if (options.hook === 'stop:format-typecheck') { - stopResult = runStopFormatTypecheck(eccJsonString); - } else if (options.hook === 'stop:check-console-log') { - const child = spawnSync(process.execPath, [path.join(__dirname, 'check-console-log.js')], { + const stopScript = { + 'stop:format-typecheck': 'stop-format-typecheck.js', + 'stop:check-console-log': 'check-console-log.js', + }[options.hook]; + if (stopScript) { + const child = spawnSync(process.execPath, [path.join(__dirname, stopScript)], { input: eccJsonString, encoding: 'utf8', + timeout: options.hook === 'stop:format-typecheck' ? 280000 : 25000, }); stopResult = { - exitCode: child.status || 0, - stderr: child.stderr || '', + stderr: child.stderr || (child.error ? 'ECC stop hook failed: ' + child.error.message : ''), }; } - if (stopResult && stopResult.exitCode !== 0 && stopResult.stderr) { + if (stopResult && stopResult.stderr) { process.stdout.write(JSON.stringify({ decision: 'continue', reason: stopResult.stderr.replace(/\r?\n/g, ' ').trim(), @@ -143,7 +174,7 @@ async function main() { return; } - process.stdout.write(JSON.stringify({})); + process.stdout.write(JSON.stringify({ decision: 'allow' })); return; } @@ -153,7 +184,7 @@ async function main() { if (require.main === module) { main().catch(() => { - process.stdout.write(JSON.stringify({ decision: 'allow' })); + writeFailure(parseArgs(process.argv).mode, 'ECC safety hook failed unexpectedly'); }); } diff --git a/scripts/lib/antigravity-hooks.js b/scripts/lib/antigravity-hooks.js index b7ae6327c..9b301b6b9 100644 --- a/scripts/lib/antigravity-hooks.js +++ b/scripts/lib/antigravity-hooks.js @@ -1,5 +1,8 @@ 'use strict'; +const path = require('path'); +const { shellQuote } = require('./control-pane/actions'); + /** * Antigravity Hooks Generator * @@ -10,7 +13,19 @@ function buildAntigravityHooksConfig(options = {}) { const profile = options.profile || 'standard'; - const bridgeScript = options.bridgeScript || 'scripts/hooks/antigravity-hook-bridge.js'; + const { bridgeScript } = options; + if (typeof bridgeScript !== 'string' || !path.isAbsolute(bridgeScript) || bridgeScript.includes('\0')) { + throw new Error('bridgeScript must be an absolute path'); + } + let quotedBridgeScript; + if (process.platform === 'win32') { + if (/[%"!$`\r\n]/.test(bridgeScript)) { + throw new Error('bridgeScript contains unsafe shell expansion characters'); + } + quotedBridgeScript = bridgeScript.includes(' ') ? `"${bridgeScript}"` : bridgeScript; + } else { + quotedBridgeScript = shellQuote(bridgeScript); + } const preToolUseHandlers = [ { @@ -18,22 +33,22 @@ function buildAntigravityHooksConfig(options = {}) { hooks: [ { type: 'command', - command: `node ${bridgeScript} --mode pre-tool-use --hook pre:bash:dispatcher`, + command: `node ${quotedBridgeScript} --mode pre-tool-use --hook pre:bash:dispatcher`, timeout: 15, }, ], }, { - matcher: 'write_to_file|replace_file_content', + matcher: 'write_to_file|replace_file_content|multi_replace_file_content', hooks: [ { type: 'command', - command: `node ${bridgeScript} --mode pre-tool-use --hook pre:edit-write:gateguard-fact-force`, + command: `node ${quotedBridgeScript} --mode pre-tool-use --hook pre:edit-write:gateguard-fact-force`, timeout: 10, }, { type: 'command', - command: `node ${bridgeScript} --mode pre-tool-use --hook pre:config-protection`, + command: `node ${quotedBridgeScript} --mode pre-tool-use --hook pre:config-protection`, timeout: 5, }, ], @@ -46,7 +61,7 @@ function buildAntigravityHooksConfig(options = {}) { hooks: [ { type: 'command', - command: `node ${bridgeScript} --mode pre-tool-use --hook pre:write:doc-file-warning`, + command: `node ${quotedBridgeScript} --mode pre-tool-use --hook pre:write:doc-file-warning`, timeout: 5, }, ], @@ -56,12 +71,12 @@ function buildAntigravityHooksConfig(options = {}) { const stopHandlers = [ { type: 'command', - command: `node ${bridgeScript} --mode stop --hook stop:format-typecheck`, - timeout: 120, + command: `node ${quotedBridgeScript} --mode stop --hook stop:format-typecheck`, + timeout: 300, }, { type: 'command', - command: `node ${bridgeScript} --mode stop --hook stop:check-console-log`, + command: `node ${quotedBridgeScript} --mode stop --hook stop:check-console-log`, timeout: 30, }, ]; @@ -69,6 +84,14 @@ function buildAntigravityHooksConfig(options = {}) { return { 'ecc-guard': { PreToolUse: preToolUseHandlers, + PostToolUse: [{ + matcher: 'write_to_file|replace_file_content|multi_replace_file_content', + hooks: [{ + type: 'command', + command: `node ${quotedBridgeScript} --mode post-tool-use --hook post:edit:accumulator`, + timeout: 10, + }], + }], Stop: stopHandlers, }, }; diff --git a/scripts/lib/antigravity-mcp.js b/scripts/lib/antigravity-mcp.js index dc726e54c..a8689630a 100644 --- a/scripts/lib/antigravity-mcp.js +++ b/scripts/lib/antigravity-mcp.js @@ -1,5 +1,9 @@ 'use strict'; +const fs = require('fs'); +const path = require('path'); +const { createManagedScaffoldOperation } = require('./install-targets/helpers'); + /** * Antigravity MCP Configuration Generator * @@ -8,7 +12,10 @@ */ function buildAntigravityMcpConfig(options = {}) { - const memoryScript = options.memoryScript || 'scripts/memory-mcp.mjs'; + const { memoryScript } = options; + if (typeof memoryScript !== 'string' || !path.isAbsolute(memoryScript) || memoryScript.includes('\0')) { + throw new Error('memoryScript must be an absolute path'); + } return { mcpServers: { @@ -23,6 +30,41 @@ function buildAntigravityMcpConfig(options = {}) { }; } +function planAntigravityMemoryRuntime(moduleId, repoRoot, targetRoot) { + const sourcePaths = [ + 'package.json', + 'scripts/memory-mcp.mjs', + 'scripts/lib/missing-dependency.js', + 'scripts/lib/memory-vault.js', + 'scripts/lib/memory-vault-format.js', + 'scripts/lib/path-safety.js', + ]; + const operations = sourcePaths.map(sourcePath => createManagedScaffoldOperation( + moduleId, sourcePath, path.join(targetRoot, sourcePath), 'preserve-relative-path' + )); + function addDependency(name, fromRoot, destinationRoot, ancestors = []) { + let manifestPath; + try { + manifestPath = require.resolve(`${name}/package.json`, { paths: [fromRoot] }); + } catch (error) { + throw new Error(`Cannot install Antigravity memory dependency ${name}. Run npm install in ${repoRoot}: ${error.message}`); + } + if (ancestors.includes(manifestPath)) return; + const packageRoot = path.dirname(manifestPath); + const destinationPath = path.join(destinationRoot, 'node_modules', name); + operations.push(createManagedScaffoldOperation( + moduleId, path.relative(repoRoot, packageRoot), destinationPath, 'preserve-relative-path' + )); + const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8')); + for (const dependency of Object.keys(manifest.dependencies || {})) { + addDependency(dependency, packageRoot, destinationPath, [...ancestors, manifestPath]); + } + } + addDependency('ajv', repoRoot, targetRoot); + return operations; +} + module.exports = { buildAntigravityMcpConfig, + planAntigravityMemoryRuntime, }; diff --git a/scripts/lib/antigravity-plugin.js b/scripts/lib/antigravity-plugin.js index a93f0a90b..92b43c120 100644 --- a/scripts/lib/antigravity-plugin.js +++ b/scripts/lib/antigravity-plugin.js @@ -7,7 +7,7 @@ */ function buildAntigravityPluginManifest(options = {}) { - const version = options.version || '2.2.2'; + const version = options.version || require('../../package.json').version; return { name: 'ecc', description: 'ECC - The Agent Harness Operating System for Antigravity', diff --git a/scripts/lib/claude-plugin-setup.js b/scripts/lib/claude-plugin-setup.js index 47b0232fd..dd59cbbcd 100644 --- a/scripts/lib/claude-plugin-setup.js +++ b/scripts/lib/claude-plugin-setup.js @@ -658,6 +658,7 @@ function setupClaudePlugin(options = {}, dependencies = {}) { spawnSync: dependencies.spawnSync, }); const action = ensurePluginAtScope({ + hookConfiguration: hookOptions(hooks), hooks, installed: inventory.installed, projectRoot: paths.projectRoot, diff --git a/scripts/lib/install-targets/antigravity-home.js b/scripts/lib/install-targets/antigravity-home.js index 553ebd175..5e362718d 100644 --- a/scripts/lib/install-targets/antigravity-home.js +++ b/scripts/lib/install-targets/antigravity-home.js @@ -13,7 +13,7 @@ const { normalizeRelativePath, } = require('./helpers'); const { buildAntigravityHooksConfig } = require('../antigravity-hooks'); -const { buildAntigravityMcpConfig } = require('../antigravity-mcp'); +const { buildAntigravityMcpConfig, planAntigravityMemoryRuntime } = require('../antigravity-mcp'); const { buildAntigravityPluginManifest } = require('../antigravity-plugin'); function readJsonObject(filePath, label) { @@ -131,6 +131,7 @@ module.exports = createInstallTargetAdapter({ && normalizedSourcePath === 'hooks' ) { return [ + createManagedScaffoldOperation(module.id, 'package.json', path.join(targetRoot, 'package.json'), 'preserve-relative-path'), createManagedOperation({ kind: 'merge-json', moduleId: module.id, @@ -141,6 +142,7 @@ module.exports = createInstallTargetAdapter({ scaffoldOnly: false, mergePayload: buildAntigravityHooksConfig({ profile: input.hookProfile || 'standard', + bridgeScript: path.join(targetRoot, 'scripts', 'hooks', 'antigravity-hook-bridge.js'), }), }), ]; @@ -153,7 +155,9 @@ module.exports = createInstallTargetAdapter({ const baseMcp = (repoRoot && fs.existsSync(path.join(repoRoot, '.mcp.json'))) ? readJsonObject(path.join(repoRoot, '.mcp.json'), '.mcp.json') : { mcpServers: {} }; - const antigravityMcp = buildAntigravityMcpConfig(); + const antigravityMcp = buildAntigravityMcpConfig({ + memoryScript: path.join(targetRoot, 'scripts', 'memory-mcp.mjs'), + }); const mergedMcp = { mcpServers: { ...(baseMcp.mcpServers || {}), @@ -185,14 +189,7 @@ module.exports = createInstallTargetAdapter({ ]; if (repoRoot && fs.existsSync(path.join(repoRoot, 'scripts', 'memory-mcp.mjs'))) { - operations.push( - createManagedScaffoldOperation( - module.id, - 'scripts/memory-mcp.mjs', - path.join(targetRoot, 'scripts', 'memory-mcp.mjs'), - 'preserve-relative-path' - ) - ); + operations.push(...planAntigravityMemoryRuntime(module.id, repoRoot, targetRoot)); } return operations; diff --git a/scripts/lib/install-targets/antigravity-project.js b/scripts/lib/install-targets/antigravity-project.js index 9f5b8a8fd..647c4eb7d 100644 --- a/scripts/lib/install-targets/antigravity-project.js +++ b/scripts/lib/install-targets/antigravity-project.js @@ -9,7 +9,7 @@ const { normalizeRelativePath, } = require('./helpers'); const { buildAntigravityHooksConfig } = require('../antigravity-hooks'); -const { buildAntigravityMcpConfig } = require('../antigravity-mcp'); +const { buildAntigravityMcpConfig, planAntigravityMemoryRuntime } = require('../antigravity-mcp'); const { buildAntigravityPluginManifest } = require('../antigravity-plugin'); const SUPPORTED_SOURCE_PREFIXES = [ @@ -149,6 +149,7 @@ module.exports = createInstallTargetAdapter({ && normalizedSourcePath === 'hooks' ) { return [ + createManagedScaffoldOperation(module.id, 'package.json', path.join(targetRoot, 'package.json'), 'preserve-relative-path'), createManagedOperation({ kind: 'merge-json', moduleId: module.id, @@ -159,6 +160,7 @@ module.exports = createInstallTargetAdapter({ scaffoldOnly: false, mergePayload: buildAntigravityHooksConfig({ profile: input.hookProfile || 'standard', + bridgeScript: path.join(targetRoot, 'scripts', 'hooks', 'antigravity-hook-bridge.js'), }), }), ]; @@ -171,7 +173,9 @@ module.exports = createInstallTargetAdapter({ const baseMcp = (repoRoot && fs.existsSync(path.join(repoRoot, '.mcp.json'))) ? readJsonObject(path.join(repoRoot, '.mcp.json'), '.mcp.json') : { mcpServers: {} }; - const antigravityMcp = buildAntigravityMcpConfig(); + const antigravityMcp = buildAntigravityMcpConfig({ + memoryScript: path.join(targetRoot, 'scripts', 'memory-mcp.mjs'), + }); const mergedMcp = { mcpServers: { ...(baseMcp.mcpServers || {}), @@ -203,14 +207,7 @@ module.exports = createInstallTargetAdapter({ ]; if (repoRoot && fs.existsSync(path.join(repoRoot, 'scripts', 'memory-mcp.mjs'))) { - operations.push( - createManagedScaffoldOperation( - module.id, - 'scripts/memory-mcp.mjs', - path.join(targetRoot, 'scripts', 'memory-mcp.mjs'), - 'preserve-relative-path' - ) - ); + operations.push(...planAntigravityMemoryRuntime(module.id, repoRoot, targetRoot)); } return operations; diff --git a/tests/lib/antigravity-tier1.test.js b/tests/lib/antigravity-tier1.test.js index 145947bcd..e8e8fa98a 100644 --- a/tests/lib/antigravity-tier1.test.js +++ b/tests/lib/antigravity-tier1.test.js @@ -10,7 +10,7 @@ const { adaptAntigravityInputToEcc } = require('../../scripts/hooks/antigravity- const { buildAntigravityHooksConfig } = require('../../scripts/lib/antigravity-hooks'); const { buildAntigravityMcpConfig } = require('../../scripts/lib/antigravity-mcp'); const { buildAntigravityPluginManifest } = require('../../scripts/lib/antigravity-plugin'); -const { getInstallTargetAdapter, listInstallTargetAdapters } = require('../../scripts/lib/install-targets/registry'); +const { getInstallTargetAdapter } = require('../../scripts/lib/install-targets/registry'); const { resolveInstallPlan } = require('../../scripts/lib/install-manifests'); const { resolveEccRoot } = require('../../scripts/lib/resolve-ecc-root'); @@ -57,7 +57,7 @@ function runTests() { }; const adapted = adaptAntigravityInputToEcc(rawInput); - assert.strictEqual(adapted.tool_name, 'run_command'); + assert.strictEqual(adapted.tool_name, 'Bash'); assert.strictEqual(adapted.tool_input.command, 'npm test'); assert.strictEqual(adapted.tool_input.CommandLine, 'npm test'); assert.strictEqual(adapted.conversation_id, 'conv-1234'); @@ -75,7 +75,7 @@ function runTests() { }, }; const adaptedWrite = adaptAntigravityInputToEcc(writeInput); - assert.strictEqual(adaptedWrite.tool_name, 'write_to_file'); + assert.strictEqual(adaptedWrite.tool_name, 'Write'); assert.strictEqual(adaptedWrite.tool_input.file_path, '/workspace/app/src/index.js'); const replaceInput = { @@ -89,7 +89,7 @@ function runTests() { }, }; const adaptedReplace = adaptAntigravityInputToEcc(replaceInput); - assert.strictEqual(adaptedReplace.tool_name, 'replace_file_content'); + assert.strictEqual(adaptedReplace.tool_name, 'Edit'); assert.strictEqual(adaptedReplace.tool_input.file_path, '/workspace/app/src/index.js'); }); @@ -104,12 +104,14 @@ function runTests() { }); test('buildAntigravityHooksConfig generates valid Antigravity hooks specification', () => { - const config = buildAntigravityHooksConfig({ profile: 'standard' }); + const config = buildAntigravityHooksConfig({ profile: 'standard', bridgeScript: path.resolve('scripts/hooks/antigravity-hook-bridge.js') }); assert.ok(config['ecc-guard'], 'Should have ecc-guard hook entry'); const guard = config['ecc-guard']; assert.ok(Array.isArray(guard.PreToolUse), 'PreToolUse should be an array'); assert.ok(Array.isArray(guard.Stop), 'Stop should be an array'); + assert.ok(guard.PostToolUse.some(entry => entry.matcher.includes('multi_replace_file_content') && entry.hooks.some(hook => hook.command.includes('post:edit:accumulator')))); + assert.ok(guard.Stop.find(hook => hook.command.includes('stop:format-typecheck')).timeout >= 270); const commandMatcher = guard.PreToolUse.find(entry => entry.matcher === 'run_command'); assert.ok(commandMatcher, 'Should have run_command matcher in PreToolUse'); @@ -118,7 +120,7 @@ function runTests() { 'Should invoke pre:bash:dispatcher on run_command' ); - const editMatcher = guard.PreToolUse.find(entry => entry.matcher === 'write_to_file|replace_file_content'); + const editMatcher = guard.PreToolUse.find(entry => entry.matcher === 'write_to_file|replace_file_content|multi_replace_file_content'); assert.ok(editMatcher, 'Should have write_to_file|replace_file_content matcher'); assert.ok( editMatcher.hooks.some(h => h.command.includes('pre:edit-write:gateguard-fact-force')), @@ -127,7 +129,7 @@ function runTests() { }); test('buildAntigravityMcpConfig generates valid stdio MCP configuration for ecc-memory', () => { - const config = buildAntigravityMcpConfig(); + const config = buildAntigravityMcpConfig({ memoryScript: path.resolve('scripts/memory-mcp.mjs') }); assert.ok(config.mcpServers, 'Should declare mcpServers'); assert.ok(config.mcpServers['ecc-memory'], 'Should declare ecc-memory server'); const memoryServer = config.mcpServers['ecc-memory']; @@ -142,6 +144,146 @@ function runTests() { assert.ok(manifest.description.includes('Antigravity')); }); + test('generators reject missing, relative, and malformed executable paths', () => { + for (const value of [undefined, '', 'relative/script.js', 7, '/tmp/bad\0path']) { + assert.throws(() => buildAntigravityHooksConfig({ bridgeScript: value }), /absolute path/); + assert.throws(() => buildAntigravityMcpConfig({ memoryScript: value }), /absolute path/); + } + assert.strictEqual(buildAntigravityPluginManifest().version, require('../../package.json').version); + }); + + test('hook commands preserve shell metacharacters in the installed path', () => { + const dir = createTempDir("ecc space ' $HOME `echo x` "); + try { + const script = path.join(dir, 'bridge.js'); + fs.writeFileSync(script, 'process.stdout.write(JSON.stringify(process.argv.slice(2)))'); + const config = buildAntigravityHooksConfig({ bridgeScript: script }); + const command = config['ecc-guard'].PreToolUse[0].hooks[0].command; + const run = spawnSync(command, { shell: true, encoding: 'utf8' }); + assert.strictEqual(run.status, 0, run.stderr); + assert.deepStrictEqual(JSON.parse(run.stdout), ['--mode', 'pre-tool-use', '--hook', 'pre:bash:dispatcher']); + } finally { + cleanup(dir); + } + }); + + for (const target of ['antigravity', 'antigravity-home']) { + test(`${target} installed memory server starts outside the source checkout`, () => { + const root = createTempDir('ecc-memory-install-'); + try { + const projectRoot = path.join(root, 'project'); + fs.mkdirSync(projectRoot); + fs.writeFileSync(path.join(projectRoot, 'package.json'), '{"type":"module"}'); + const { createManifestInstallPlan } = require('../../scripts/lib/install/plan'); + const { applyInstallPlan } = require('../../scripts/lib/install/apply'); + const plan = createManifestInstallPlan({ moduleIds: ['platform-configs'], target, homeDir: root, projectRoot }); + applyInstallPlan(plan); + const config = JSON.parse(fs.readFileSync(path.join(plan.targetRoot, 'mcp_config.json'), 'utf8')); + const server = config.mcpServers['ecc-memory']; + assert.strictEqual(server.args[0], path.join(plan.targetRoot, 'scripts', 'memory-mcp.mjs')); + const run = spawnSync(process.execPath, server.args, { + cwd: root, + env: { ...process.env, ...server.env, NODE_PATH: '' }, + input: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'initialize', params: { protocolVersion: '2025-11-25', capabilities: {}, clientInfo: { name: 'test', version: '1' } } }) + '\n', + encoding: 'utf8', + timeout: 10000, + }); + assert.strictEqual(run.status, 0, run.stderr); + assert.strictEqual(JSON.parse(run.stdout.trim()).id, 1); + } finally { + cleanup(root); + } + }); + } + + test('project hooks install and run with explicit consent in an ESM project', () => { + const root = createTempDir('ecc-project-hooks-'); + try { + fs.writeFileSync(path.join(root, 'package.json'), '{"type":"module"}'); + const { createManifestInstallPlan } = require('../../scripts/lib/install/plan'); + const { applyInstallPlan } = require('../../scripts/lib/install/apply'); + const { withHookConsent } = require('../../scripts/lib/install/hook-consent'); + const plan = withHookConsent(createManifestInstallPlan({ moduleIds: ['hooks-runtime'], target: 'antigravity', projectRoot: root }), 'enabled'); + applyInstallPlan(plan); + const config = JSON.parse(fs.readFileSync(path.join(plan.targetRoot, 'hooks.json'), 'utf8')); + const run = spawnSync(config['ecc-guard'].PreToolUse[0].hooks[0].command, { + cwd: root, + shell: true, + env: { ...process.env, GATEGUARD_BASH_ROUTINE_DISABLED: '1' }, + input: JSON.stringify({ workspacePaths: [root], toolCall: { name: 'run_command', args: { CommandLine: 'pwd' } } }), + encoding: 'utf8', + timeout: 10000, + }); + assert.strictEqual(run.status, 0, run.stderr); + assert.strictEqual(JSON.parse(run.stdout).decision, 'allow', run.stdout); + } finally { + cleanup(root); + } + }); + + test('memory runtime installs from npm-hoisted dependencies', () => { + const root = createTempDir('ecc-hoisted-memory-'); + try { + const sourceRoot = path.join(root, 'node_modules', 'ecc-universal'); + const repoRoot = path.resolve(__dirname, '../..'); + for (const relative of ['package.json', 'scripts/memory-mcp.mjs', 'scripts/lib/missing-dependency.js', 'scripts/lib/memory-vault.js', 'scripts/lib/memory-vault-format.js', 'scripts/lib/path-safety.js']) { + const destination = path.join(sourceRoot, relative); + fs.mkdirSync(path.dirname(destination), { recursive: true }); + fs.copyFileSync(path.join(repoRoot, relative), destination); + } + const ajvManifest = require('ajv/package.json'); + for (const name of ['ajv', ...Object.keys(ajvManifest.dependencies)]) { + fs.cpSync(path.dirname(require.resolve(`${name}/package.json`)), path.join(root, 'node_modules', name), { recursive: true }); + } + fs.cpSync(path.join(repoRoot, 'manifests'), path.join(sourceRoot, 'manifests'), { recursive: true }); + const projectRoot = path.join(root, 'app'); + const { createManifestInstallPlan } = require('../../scripts/lib/install/plan'); + const { applyInstallPlan } = require('../../scripts/lib/install/apply'); + const plan = createManifestInstallPlan({ sourceRoot, moduleIds: ['platform-configs'], target: 'antigravity', projectRoot }); + applyInstallPlan(plan); + fs.rmSync(path.join(root, 'node_modules'), { recursive: true }); + const run = spawnSync(process.execPath, [path.join(plan.targetRoot, 'scripts/memory-mcp.mjs')], { + cwd: root, + env: { ...process.env, ECC_MEMORY_HARNESS: 'antigravity', NODE_PATH: '' }, + input: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'initialize', params: { protocolVersion: '2025-11-25', capabilities: {}, clientInfo: { name: 'test', version: '1' } } }) + '\n', + encoding: 'utf8', + timeout: 10000, + }); + assert.strictEqual(run.status, 0, run.stderr); + assert.strictEqual(JSON.parse(run.stdout.trim()).id, 1); + } finally { + cleanup(root); + } + }); + + test('missing memory dependencies give installation instructions', () => { + const root = createTempDir('ecc-missing-memory-dependency-'); + try { + const ajvRoot = path.join(root, 'node_modules', 'ajv'); + fs.mkdirSync(ajvRoot, { recursive: true }); + fs.writeFileSync(path.join(ajvRoot, 'package.json'), JSON.stringify({ dependencies: { 'ecc-test-nonexistent-dependency': '1.0.0' } })); + const { planAntigravityMemoryRuntime } = require('../../scripts/lib/antigravity-mcp'); + assert.throws(() => planAntigravityMemoryRuntime('platform-configs', root, path.join(root, 'target')), /Run npm install/); + } finally { + cleanup(root); + } + }); + + test('Windows hook commands quote spaces and reject shell expansion characters', () => { + const descriptor = Object.getOwnPropertyDescriptor(process, 'platform'); + try { + Object.defineProperty(process, 'platform', { value: 'win32' }); + const bridgeScript = path.resolve('folder with spaces/bridge.js'); + const config = buildAntigravityHooksConfig({ bridgeScript }); + assert.ok(config['ecc-guard'].PreToolUse[0].hooks[0].command.startsWith(`node "${bridgeScript}" `)); + for (const character of ['"', '%', '!', '$', '`', '\r', '\n']) { + assert.throws(() => buildAntigravityHooksConfig({ bridgeScript: bridgeScript + character }), /shell/); + } + } finally { + Object.defineProperty(process, 'platform', descriptor); + } + }); + test('antigravity-home adapter resolves root to ~/.gemini/config/plugins/ecc', () => { const homeDir = '/home/testuser'; const adapter = getInstallTargetAdapter('antigravity-home'); @@ -163,7 +305,6 @@ function runTests() { target: 'antigravity-home', homeDir, projectRoot, - enableHooks: true, }); assert.strictEqual(plan.targetAdapterId, 'antigravity-home'); @@ -230,7 +371,7 @@ function runTests() { toolCall: { name: 'run_command', args: { - CommandLine: 'echo "hello from safe command"', + CommandLine: 'pwd', }, }, }); @@ -269,6 +410,72 @@ function runTests() { assert.match(output.reason, /no-verify/i); }); + test('antigravity-hook-bridge returns deny for GateGuard write_to_file on first touch', () => { + const bridgePath = path.join(__dirname, '..', '..', 'scripts', 'hooks', 'antigravity-hook-bridge.js'); + const root = createTempDir('ecc-bridge-deny-'); + try { + const targetFile = path.join(root, 'index.js'); + const input = JSON.stringify({ + conversationId: path.basename(root), + workspacePaths: [root], + toolCall: { + name: 'write_to_file', + args: { + TargetFile: targetFile, + CodeContent: 'console.log("hello");', + }, + }, + }); + + const run = spawnSync(process.execPath, [bridgePath, '--mode', 'pre-tool-use', '--hook', 'pre:edit-write:gateguard-fact-force'], { + input, + encoding: 'utf8', + env: { + ...process.env, + GATEGUARD_STATE_DIR: root, + GATEGUARD_DISABLED: '0', + GATEGUARD_EXEMPT_PATHS: '', + GATEGUARD_EXEMPT_GLOBS: '', + }, + }); + + assert.strictEqual(run.status, 0); + const output = JSON.parse(run.stdout); + assert.strictEqual(output.decision, 'deny'); + assert.ok(output.reason); + } finally { + cleanup(root); + } + }); + + test('antigravity-hook-bridge returns deny for oversized input in pre-tool-use', () => { + const bridgePath = path.join(__dirname, '..', '..', 'scripts', 'hooks', 'antigravity-hook-bridge.js'); + const input = JSON.stringify({ + conversationId: 'test-oversized', + workspacePaths: ['/tmp'], + toolCall: { + name: 'run_command', + args: { + CommandLine: 'echo ' + 'x'.repeat(100), + }, + }, + }); + + const run = spawnSync(process.execPath, [bridgePath, '--mode', 'pre-tool-use', '--hook', 'pre:bash:dispatcher'], { + input, + encoding: 'utf8', + env: { + ...process.env, + ECC_HOOK_INPUT_MAX_BYTES: '10', + }, + }); + + assert.strictEqual(run.status, 0); + const output = JSON.parse(run.stdout); + assert.strictEqual(output.decision, 'deny'); + assert.match(output.reason, /completely|input/i); + }); + test('antigravity-project plans mcp_config.json when platform configs are selected', () => { const projectRoot = createTempDir('antigravity-proj-mcp-'); try { @@ -305,7 +512,7 @@ function runTests() { projectRoot: projectDir, }), 'enabled'); - const result = applyInstallPlan(plan); + applyInstallPlan(plan); const pluginDir = path.join(homeDir, '.gemini', 'config', 'plugins', 'ecc'); assert.ok(fs.existsSync(path.join(pluginDir, 'plugin.json')), 'plugin.json should exist'); @@ -326,6 +533,8 @@ function runTests() { const mcpConfig = JSON.parse(fs.readFileSync(path.join(pluginDir, 'mcp_config.json'), 'utf8')); assert.ok(mcpConfig.mcpServers['ecc-memory']); + const hookCommand = hooksJson['ecc-guard'].PreToolUse[0].hooks[0].command; + assert.ok(hookCommand.includes(path.join(pluginDir, 'scripts', 'hooks', 'antigravity-hook-bridge.js'))); } finally { cleanup(homeDir); cleanup(projectDir); diff --git a/tests/lib/claude-plugin-setup.test.js b/tests/lib/claude-plugin-setup.test.js index cdda9f5f0..700ec1a3f 100644 --- a/tests/lib/claude-plugin-setup.test.js +++ b/tests/lib/claude-plugin-setup.test.js @@ -294,6 +294,8 @@ test('fresh install uses supported Claude arguments and follows the verification [ 'plugin', 'install', 'ecc@ecc', '--scope', 'project', + '--config', 'hooks_enabled=true', + '--config', 'hook_profile=strict', ], ['plugin', 'list', '--json'], ]); @@ -324,6 +326,19 @@ test('fresh installs support all Claude scopes while hook preferences stay user- } }); +test('fresh installs pass disabled hooks to the provider before activation', () => { + withFixture({}, fixture => { + setupClaudePlugin(setupOptions(fixture, { scope: 'user', hooks: 'off' })); + const install = readCalls(fixture).find(argv => argv[1] === 'install'); + assert.deepStrictEqual(install, [ + 'plugin', 'install', 'ecc@ecc', '--scope', 'user', + '--config', 'hooks_enabled=false', '--config', 'hook_profile=standard', + ]); + const settings = JSON.parse(fs.readFileSync(fixture.settingsPath, 'utf8')); + assert.strictEqual(settings.pluginConfigs['ecc@ecc'].options.hooks_enabled, false); + }); +}); + test('same-scope repeat setup updates ECC and changes durable user hook preferences', () => { withFixture({ plugins: [installedPlugin('local')], @@ -722,6 +737,8 @@ test('provider failures stop later operations and leave settings untouched', () const installArgv = [ 'plugin', 'install', 'ecc@ecc', '--scope', 'user', + '--config', 'hooks_enabled=true', + '--config', 'hook_profile=standard', ]; withFixture({ failures: [{ diff --git a/tests/lib/install-manifests.test.js b/tests/lib/install-manifests.test.js index cd91e6e3a..bf6fe62b8 100644 --- a/tests/lib/install-manifests.test.js +++ b/tests/lib/install-manifests.test.js @@ -280,12 +280,14 @@ function runTests() { 'rules-core', 'agents-core', 'commands-core', + 'hooks-runtime', 'platform-configs', 'skill-unified-memory', 'workflow-quality' ] ); - assert.ok(plan.skippedModuleIds.includes('hooks-runtime')); + assert.ok(!plan.skippedModuleIds.includes('hooks-runtime')); + assert.ok(plan.operations.some(operation => operation.destinationPath === path.join(projectRoot, '.agents', 'hooks.json'))); assert.ok(!plan.skippedModuleIds.includes('platform-configs')); assert.ok(!plan.skippedModuleIds.includes('workflow-quality')); assert.strictEqual(plan.targetAdapterId, 'antigravity-project'); diff --git a/tests/scripts/antigravity-hook-bridge.test.js b/tests/scripts/antigravity-hook-bridge.test.js new file mode 100644 index 000000000..d967bbd63 --- /dev/null +++ b/tests/scripts/antigravity-hook-bridge.test.js @@ -0,0 +1,102 @@ +'use strict'; + +const assert = require('assert'); +const fs = require('fs'); +const path = require('path'); +const vm = require('vm'); +const os = require('os'); +const { spawnSync } = require('child_process'); +const { adaptAntigravityInputToEcc } = require('../../scripts/hooks/antigravity-hook-bridge'); + +const bridgePath = path.resolve(__dirname, '../../scripts/hooks/antigravity-hook-bridge.js'); +async function invoke({ hook = 'pre:edit-write:gateguard-fact-force', mode = 'pre-tool-use', raw = '{}', truncated = false, result = {}, child, readError = false, hookError = false } = {}) { + let output = ''; + let spawnOptions; + let hookCalls = 0; + const module = { exports: {} }; + const run = () => { hookCalls += 1; if (hookError) throw new Error('hook failed'); return result; }; + const imports = { + path, + child_process: { spawnSync: (_file, _args, options) => { spawnOptions = options; return child; } }, + './bash-hook-dispatcher': { runPreBash: run }, + './gateguard-fact-force': { run }, + './doc-file-warning': { run }, + './post-edit-accumulator': { run }, + './stop-format-typecheck': { run }, + './hook-input': { + resolveMaxStdin: () => 1024, + readStdinRaw: async () => { if (readError) throw new Error('read failed'); return { raw, truncated }; }, + }, + }; + const requireStub = name => imports[name]; + requireStub.main = module; + vm.runInNewContext(fs.readFileSync(bridgePath, 'utf8'), { + require: requireStub, module, __dirname: path.dirname(bridgePath), + process: { argv: ['node', bridgePath, '--mode', mode, '--hook', hook], env: {}, execPath: process.execPath, stdin: {}, stdout: { write: text => { output += text; } } }, + }); + await new Promise(resolve => setImmediate(resolve)); + return { response: JSON.parse(output), spawnOptions, hookCalls }; +} + +async function main() { + for (const [native, expected] of [['run_command', 'Bash'], ['write_to_file', 'Write'], ['replace_file_content', 'Edit'], ['multi_replace_file_content', 'Edit']]) { + const input = adaptAntigravityInputToEcc({ toolCall: { name: native, args: { CommandLine: 'echo ok', TargetFile: '/tmp/code.js' } } }); + assert.strictEqual(input.tool_name, expected); + assert.strictEqual(input.tool_input.command, 'echo ok'); + assert.strictEqual(input.tool_input.file_path, '/tmp/code.js'); + } + const session = adaptAntigravityInputToEcc({ conversationId: 'session-a', workspacePaths: ['/workspace/app'] }); + assert.strictEqual(session.session_id, 'session-a'); + assert.strictEqual(session.cwd, '/workspace/app'); + const denial = { hookSpecificOutput: { permissionDecision: 'deny', permissionDecisionReason: 'Inspect first\nThen retry' } }; + assert.deepStrictEqual((await invoke({ result: { exitCode: 0, stdout: JSON.stringify(denial) } })).response, { decision: 'deny', reason: 'Inspect first Then retry' }); + assert.strictEqual((await invoke({ hook: 'pre:bash:dispatcher', result: { exitCode: 0, output: JSON.stringify(denial) } })).response.decision, 'deny'); + assert.match((await invoke({ hook: 'pre:write:doc-file-warning', result: { exitCode: 0, additionalContext: ['warning one', 'warning two'] } })).response.reason, /warning one.*warning two/); + for (const failure of [{ raw: '{' }, { raw: '' }, { raw: 'null' }, { raw: '[]' }, { truncated: true }, { readError: true }, { hookError: true }]) { + assert.strictEqual((await invoke(failure)).response.decision, 'deny', JSON.stringify(failure)); + } + for (const child of [{ status: null, error: new Error('timed out') }, { status: 1, stderr: 'failed' }, { status: 2, stderr: 'blocked' }]) { + const result = await invoke({ hook: 'pre:config-protection', child }); + assert.strictEqual(result.response.decision, 'deny'); + assert.ok(result.spawnOptions.timeout > 0 && result.spawnOptions.timeout <= 10000); + } + assert.strictEqual((await invoke({ hook: 'pre:config-protection', child: { status: 0, stderr: '' } })).response.decision, 'allow'); + assert.strictEqual((await invoke({ result: '{}' })).response.decision, 'allow'); + assert.strictEqual((await invoke({ mode: 'stop', raw: '{' })).response.decision, 'allow'); + assert.strictEqual((await invoke({ mode: 'post-tool-use', hook: 'post:edit:accumulator' })).hookCalls, 1); + assert.strictEqual((await invoke({ mode: 'post-tool-use', hook: 'post:edit:accumulator', raw: JSON.stringify({ error: 'write failed' }) })).hookCalls, 0); + assert.deepStrictEqual((await invoke({ mode: 'stop', hook: 'stop:format-typecheck', raw: JSON.stringify({ fullyIdle: false }) })).response, { decision: 'allow' }); + assert.deepStrictEqual((await invoke({ mode: 'stop', hook: 'stop:format-typecheck', child: { status: 0, stderr: '' } })).response, { decision: 'allow' }); + for (const hook of ['stop:check-console-log', 'stop:format-typecheck']) { + const stop = await invoke({ mode: 'stop', hook, child: { status: 0, stderr: 'Remove console.log' } }); + assert.deepStrictEqual(stop.response, { decision: 'continue', reason: 'Remove console.log' }); + } + const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-bridge-')); + const conversationId = path.basename(root); + const accumulator = path.join(os.tmpdir(), `ecc-edited-${conversationId}.txt`); + const target = path.join(root, 'component.js'); + const payload = { conversationId, workspacePaths: [root], toolCall: { name: 'multi_replace_file_content', args: { TargetFile: target } } }; + const cli = (mode, hook, input = payload, extraEnv = {}) => { + const child = spawnSync(process.execPath, [bridgePath, '--mode', mode, '--hook', hook], { + input: JSON.stringify(input), encoding: 'utf8', + env: { ...process.env, GATEGUARD_STATE_DIR: root, GATEGUARD_DISABLED: '0', GATEGUARD_EXEMPT_PATHS: '', ...extraEnv }, + }); + assert.strictEqual(child.status, 0, child.stderr); + return JSON.parse(child.stdout); + }; + try { + assert.strictEqual(cli('pre-tool-use', 'pre:edit-write:gateguard-fact-force').decision, 'deny'); + const warning = cli('pre-tool-use', 'pre:write:doc-file-warning', { toolCall: { name: 'write_to_file', args: { TargetFile: path.join(root, 'NOTES.md') } } }); + assert.match(warning.reason, /Ad-hoc documentation/); + assert.strictEqual(cli('pre-tool-use', 'pre:config-protection', payload, { ECC_HOOK_INPUT_MAX_BYTES: '2' }).decision, 'deny'); + cli('post-tool-use', 'post:edit:accumulator'); + assert.strictEqual(fs.readFileSync(accumulator, 'utf8').trim(), target); + cli('stop', 'stop:format-typecheck', { conversationId }); + assert.ok(!fs.existsSync(accumulator) || fs.readFileSync(accumulator, 'utf8') === ''); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + fs.rmSync(accumulator, { force: true }); + } + console.log('antigravity-hook-bridge regression checks passed'); +} +main().catch(error => { console.error(error); process.exitCode = 1; }); diff --git a/tests/scripts/install-apply.test.js b/tests/scripts/install-apply.test.js index f2846495f..c072d6f31 100644 --- a/tests/scripts/install-apply.test.js +++ b/tests/scripts/install-apply.test.js @@ -891,7 +891,7 @@ function runTests() { const projectDir = createTempDir('install-apply-project-'); try { - const result = run(['--target', 'antigravity', '--profile', 'core'], { cwd: projectDir, homeDir }); + const result = run(['--target', 'antigravity', '--profile', 'core', '--enable-hooks'], { cwd: projectDir, homeDir }); assert.strictEqual(result.code, 0, result.stderr); assert.ok(fs.existsSync(path.join(projectDir, '.agents', 'rules', 'common-coding-style.md'))); @@ -902,6 +902,7 @@ function runTests() { assert.ok(fs.existsSync(path.join(projectDir, '.agents', 'agents', 'architect.md'))); assert.ok(fs.existsSync(path.join(projectDir, '.agents', 'workflows', 'plan.md'))); assert.ok(fs.existsSync(path.join(projectDir, '.agents', 'skills', 'tdd-workflow', 'SKILL.md'))); + assert.ok(fs.existsSync(path.join(projectDir, '.agents', 'hooks.json')), 'hooks.json should exist'); const state = readJson(path.join(projectDir, '.agents', 'ecc-install-state.json')); assert.strictEqual(state.request.profile, 'core'); @@ -912,12 +913,13 @@ function runTests() { 'rules-core', 'agents-core', 'commands-core', + 'hooks-runtime', 'platform-configs', 'skill-unified-memory', 'workflow-quality' ] ); - assert.ok(state.resolution.skippedModules.includes('hooks-runtime')); + assert.ok(!state.resolution.skippedModules.includes('hooks-runtime')); assert.ok(!state.resolution.skippedModules.includes('workflow-quality')); assert.ok(!state.resolution.skippedModules.includes('platform-configs')); } finally { From 9dfa26f24d9f03cec33a49cff429cbdfb9168a8a Mon Sep 17 00:00:00 2001 From: MohamedAfrash <afrazzz51@gmail.com> Date: Thu, 24 Sep 2026 03:36:29 +0100 Subject: [PATCH 30/78] fix(antigravity): route global workflows to config dir and quote bridgeScript on windows --- docs/ANTIGRAVITY-GUIDE.md | 19 ++++++++++--------- docs/releases/2.2.0/release-notes.md | 2 +- scripts/lib/antigravity-hooks.js | 2 +- scripts/lib/install-lifecycle.js | 13 ++++++++++--- scripts/lib/install-manifests.js | 1 + .../lib/install-targets/antigravity-home.js | 13 ++++++++++++- scripts/lib/install-targets/helpers.js | 7 +++++++ scripts/lib/install-targets/registry.js | 4 ++++ scripts/lib/install/apply.js | 14 ++++++++++++-- scripts/lib/install/plan.js | 1 + scripts/lib/multi-harness-setup.js | 8 ++++++-- tests/lib/antigravity-tier1.test.js | 4 +++- 12 files changed, 68 insertions(+), 20 deletions(-) diff --git a/docs/ANTIGRAVITY-GUIDE.md b/docs/ANTIGRAVITY-GUIDE.md index 2637f1acd..b498492e7 100644 --- a/docs/ANTIGRAVITY-GUIDE.md +++ b/docs/ANTIGRAVITY-GUIDE.md @@ -155,7 +155,7 @@ node "$EccRoot\scripts\uninstall.js" --target antigravity --dry-run Antigravity supports global plugins located in `~/.gemini/config/plugins/<name>/`. Installing ECC as a native Antigravity plugin enables: 1. **Global Scope**: ECC rules, skills, agents, workflows, and memory MCP are active across all projects automatically, without requiring a `.agents/` folder in every repository. -2. **Lifecycle Hooks (`hooks.json`)**: Full support for `PreToolUse` (command security gates, file modification guards) `PostToolUse` edit tracking, and `Stop` formatting and diagnostics using Antigravity's protojson protocol (`{ decision, reason }`). +2. **Lifecycle Hooks (`hooks.json`)**: Full support for `PreToolUse` (command security gates, file modification guards), `PostToolUse` edit tracking, and `Stop` formatting and diagnostics using Antigravity's protojson protocol (`{ decision, reason }`). 3. **Shared Memory Vault (`mcp_config.json`)**: Direct integration with `ecc-memory-mcp` across all Antigravity sessions. 4. **Native Plugin Manifest (`plugin.json`)**: Declares the ECC plugin metadata. @@ -182,15 +182,16 @@ with `--target antigravity`. Use `--no-hooks` to omit automatic hooks. ### Global Plugin Structure ```text -~/.gemini/config/plugins/ecc/ -├── plugin.json # Antigravity plugin manifest -├── hooks.json # PreToolUse, PostToolUse, and Stop hooks -├── mcp_config.json # Shared ECC Memory Vault MCP server -├── rules/ # Rules applied to all workspaces +~/.gemini/config/ ├── workflows/ # Global slash workflows -├── skills/ # Global Agent Skills -├── scripts/ # Hook bridge and memory runtime -└── node_modules/ # Memory server dependencies +└── plugins/ecc/ + ├── plugin.json # Antigravity plugin manifest + ├── hooks.json # PreToolUse, PostToolUse, and Stop hooks + ├── mcp_config.json # Shared ECC Memory Vault MCP server + ├── rules/ # Rules applied to all workspaces + ├── skills/ # Global Agent Skills + ├── scripts/ # Hook bridge and memory runtime + └── node_modules/ # Memory server dependencies ``` ## Official Antigravity references diff --git a/docs/releases/2.2.0/release-notes.md b/docs/releases/2.2.0/release-notes.md index 6aa336ddf..447cd6379 100644 --- a/docs/releases/2.2.0/release-notes.md +++ b/docs/releases/2.2.0/release-notes.md @@ -32,7 +32,7 @@ Install or update the published package, then run the same ECC install command y ```bash npm install -g ecc-universal@2.2.0 -ecc install --target antigravity --profile full +ecc install --target antigravity --profile full --enable-hooks ``` Use `ecc doctor --target <target>` after installation. For Antigravity, start a new conversation and verify workspace skills under Settings > Customizations. diff --git a/scripts/lib/antigravity-hooks.js b/scripts/lib/antigravity-hooks.js index 9b301b6b9..cc496665c 100644 --- a/scripts/lib/antigravity-hooks.js +++ b/scripts/lib/antigravity-hooks.js @@ -22,7 +22,7 @@ function buildAntigravityHooksConfig(options = {}) { if (/[%"!$`\r\n]/.test(bridgeScript)) { throw new Error('bridgeScript contains unsafe shell expansion characters'); } - quotedBridgeScript = bridgeScript.includes(' ') ? `"${bridgeScript}"` : bridgeScript; + quotedBridgeScript = `"${bridgeScript}"`; } else { quotedBridgeScript = shellQuote(bridgeScript); } diff --git a/scripts/lib/install-lifecycle.js b/scripts/lib/install-lifecycle.js index 7da0ae78a..f54809513 100644 --- a/scripts/lib/install-lifecycle.js +++ b/scripts/lib/install-lifecycle.js @@ -7,7 +7,7 @@ const { isDeepStrictEqual } = require('util'); const { loadInstallManifests } = require('./install-manifests'); const { readInstallState, validateInstallState } = require('./install-state'); -const { assertWithinTrustedRoot } = require('./path-safety'); +const { assertWithinTrustedRoot, isWithinRoot } = require('./path-safety'); const { createInstallPlanFromRequest } = require('./install/runtime'); const { assertNoNewUserOwnedFile, prepareUserOwnedFileGuard } = require('./install/ownership-guard'); const { isCodexUserConfig } = require('./install/codex-user-config'); @@ -2364,8 +2364,14 @@ function uninstallInstalledStates(options = {}) { ); } + const adapter = record.adapter && getInstallTargetAdapter(record.adapter.id || record.adapter.target); + const trustedRoots = adapter && typeof adapter.resolveTrustedRoots === 'function' + ? adapter.resolveTrustedRoots({ homeDir: options.homeDir, projectRoot: options.projectRoot }) + : [record.targetRoot]; + for (const operation of operations) { - const outcome = executeUninstallOperation(operation, record.targetRoot, { + const matchingRoot = trustedRoots.find(root => isWithinRoot(operation.destinationPath, root)) || record.targetRoot; + const outcome = executeUninstallOperation(operation, matchingRoot, { preserveDriftedCopies: true, target: record.adapter.target, settingsLockHeld: Boolean(releaseSettingsLock), @@ -2389,7 +2395,8 @@ function uninstallInstalledStates(options = {}) { } for (const cleanupTarget of cleanupTargets) { - cleanupEmptyParentDirs(cleanupTarget, record.targetRoot); + const matchingRoot = trustedRoots.find(root => isWithinRoot(cleanupTarget, root)) || record.targetRoot; + cleanupEmptyParentDirs(cleanupTarget, matchingRoot); } return { diff --git a/scripts/lib/install-manifests.js b/scripts/lib/install-manifests.js index 926948f34..f77a476d5 100644 --- a/scripts/lib/install-manifests.js +++ b/scripts/lib/install-manifests.js @@ -741,6 +741,7 @@ function resolveInstallPlan(options = {}) { targetAdapterId: scaffoldPlan ? scaffoldPlan.adapter.id : null, homeDir: targetPlanningInput ? targetPlanningInput.homeDir : null, targetRoot: scaffoldPlan ? scaffoldPlan.targetRoot : null, + trustedRoots: scaffoldPlan ? scaffoldPlan.trustedRoots : (scaffoldPlan?.targetRoot ? [scaffoldPlan.targetRoot] : []), installStatePath: scaffoldPlan ? scaffoldPlan.installStatePath : null, operations: scaffoldPlan ? scaffoldPlan.operations : [], }; diff --git a/scripts/lib/install-targets/antigravity-home.js b/scripts/lib/install-targets/antigravity-home.js index 5e362718d..2be18d0d9 100644 --- a/scripts/lib/install-targets/antigravity-home.js +++ b/scripts/lib/install-targets/antigravity-home.js @@ -39,6 +39,13 @@ module.exports = createInstallTargetAdapter({ installStatePathSegments: ['ecc-install-state.json'], nativeRootRelativePath: '.gemini', excludedSourcePaths: HOME_INSTALL_EXCLUDED_SOURCE_PATHS, + resolveTrustedRoots(input, targetRoot) { + const workflowsRoot = path.join( + path.dirname(path.dirname(targetRoot)), + 'workflows' + ); + return [targetRoot, workflowsRoot]; + }, planOperations(input, adapter) { const modules = Array.isArray(input.modules) ? input.modules @@ -81,11 +88,15 @@ module.exports = createInstallTargetAdapter({ const commandRelativePath = normalizedSourcePath === 'commands' ? '' : normalizedSourcePath.slice('commands/'.length); + const workflowsRoot = path.join( + path.dirname(path.dirname(targetRoot)), + 'workflows' + ); return [ createManagedScaffoldOperation( module.id, normalizedSourcePath, - path.join(targetRoot, 'workflows', commandRelativePath), + path.join(workflowsRoot, commandRelativePath), 'preserve-relative-path' ), ]; diff --git a/scripts/lib/install-targets/helpers.js b/scripts/lib/install-targets/helpers.js index 5df5ae1c4..dca6b4481 100644 --- a/scripts/lib/install-targets/helpers.js +++ b/scripts/lib/install-targets/helpers.js @@ -329,6 +329,13 @@ function createInstallTargetAdapter(config) { } return path.join(baseRoot, ...config.rootSegments); }, + resolveTrustedRoots(input = {}) { + const root = adapter.resolveRoot(input); + if (typeof config.resolveTrustedRoots === 'function') { + return config.resolveTrustedRoots(input, root); + } + return [root]; + }, getInstallStatePath(input = {}) { const root = adapter.resolveRoot(input); return path.join(root, ...config.installStatePathSegments); diff --git a/scripts/lib/install-targets/registry.js b/scripts/lib/install-targets/registry.js index 864a91a22..f50d973db 100644 --- a/scripts/lib/install-targets/registry.js +++ b/scripts/lib/install-targets/registry.js @@ -68,6 +68,9 @@ function planInstallTargetScaffold(options = {}) { } const targetRoot = adapter.resolveRoot(planningInput); const installStatePath = adapter.getInstallStatePath(planningInput); + const trustedRoots = typeof adapter.resolveTrustedRoots === 'function' + ? adapter.resolveTrustedRoots(planningInput) + : [targetRoot]; const operations = adapter.planOperations({ ...planningInput, modules, @@ -80,6 +83,7 @@ function planInstallTargetScaffold(options = {}) { kind: adapter.kind, }, targetRoot, + trustedRoots, installStatePath, validationIssues, operations, diff --git a/scripts/lib/install/apply.js b/scripts/lib/install/apply.js index 1776cb6ca..f08b7f7eb 100644 --- a/scripts/lib/install/apply.js +++ b/scripts/lib/install/apply.js @@ -21,7 +21,7 @@ const { validateRecordedManagedHooks, } = require('./claude-settings'); const { filterMcpConfig, parseDisabledMcpServers } = require('../mcp-config'); -const { assertWithinTrustedRoot } = require('../path-safety'); +const { assertWithinTrustedRoot, isWithinRoot } = require('../path-safety'); const { assertSafeClaudeSkillOperation, prepareClaudeSkillMigration, @@ -248,12 +248,22 @@ function isMcpConfigPath(filePath) { return basename === '.mcp.json' || basename === 'mcp.json'; } +function getTrustedRootsForPlan(plan) { + if (!plan) return []; + if (Array.isArray(plan.trustedRoots) && plan.trustedRoots.length > 0) { + return plan.trustedRoots; + } + return plan.targetRoot ? [plan.targetRoot] : []; +} + function assertSafeInstallOperation(plan, operation) { if (!operation || typeof operation.destinationPath !== 'string') { throw new Error('Refusing to apply install operation: missing destination path.'); } - const targetRoot = plan && plan.targetRoot; + const trustedRoots = getTrustedRootsForPlan(plan); + const matchingRoot = trustedRoots.find(root => isWithinRoot(operation.destinationPath, root)); + const targetRoot = matchingRoot || (plan && plan.targetRoot); assertWithinTrustedRoot(operation.destinationPath, targetRoot, 'install ECC file'); const resolvedRoot = path.resolve(targetRoot); diff --git a/scripts/lib/install/plan.js b/scripts/lib/install/plan.js index 91774b6e0..64d376ddd 100644 --- a/scripts/lib/install/plan.js +++ b/scripts/lib/install/plan.js @@ -328,6 +328,7 @@ function createManifestInstallPlan(options = {}) { }, homeDir: plan.homeDir, targetRoot: plan.targetRoot, + trustedRoots: plan.trustedRoots || (plan.targetRoot ? [plan.targetRoot] : []), installRoot: plan.targetRoot, installStatePath: plan.installStatePath, warnings: Array.isArray(options.warnings) ? [...options.warnings] : [], diff --git a/scripts/lib/multi-harness-setup.js b/scripts/lib/multi-harness-setup.js index 141eb4206..2367ac838 100644 --- a/scripts/lib/multi-harness-setup.js +++ b/scripts/lib/multi-harness-setup.js @@ -6,7 +6,7 @@ const os = require('os'); const path = require('path'); const { assertSafeInstallOperation } = require('./install/apply'); -const { assertWithinTrustedRoot, realpathNearestExisting } = require('./path-safety'); +const { assertWithinTrustedRoot, isWithinRoot, realpathNearestExisting } = require('./path-safety'); const VALID_CLAUDE_SCOPES = new Set(['user', 'project', 'local']); const VALID_CLAUDE_HOOKS = new Set(['off', 'minimal', 'standard', 'strict']); @@ -208,7 +208,11 @@ function readOwnedDestinations(plan, dependencies) { ); } const destinationPath = operation.destinationPath; - assertWithinTrustedRoot(destinationPath, plan.targetRoot, 'trust install-state ownership'); + const trustedRoots = Array.isArray(plan.trustedRoots) && plan.trustedRoots.length > 0 + ? plan.trustedRoots + : [plan.targetRoot]; + const matchingRoot = trustedRoots.find(root => isWithinRoot(destinationPath, root)) || plan.targetRoot; + assertWithinTrustedRoot(destinationPath, matchingRoot, 'trust install-state ownership'); const canonicalDestination = canonicalPath(destinationPath); const plannedOperation = plannedByDestination.get(canonicalDestination); if (!plannedOperation) continue; diff --git a/tests/lib/antigravity-tier1.test.js b/tests/lib/antigravity-tier1.test.js index e8e8fa98a..c274f513b 100644 --- a/tests/lib/antigravity-tier1.test.js +++ b/tests/lib/antigravity-tier1.test.js @@ -153,6 +153,7 @@ function runTests() { }); test('hook commands preserve shell metacharacters in the installed path', () => { + if (process.platform === 'win32') return; const dir = createTempDir("ecc space ' $HOME `echo x` "); try { const script = path.join(dir, 'bridge.js'); @@ -353,7 +354,7 @@ function runTests() { // Check workflows assert.ok( plan.operations.some(op => ( - op.destinationPath.startsWith(path.join(targetRoot, 'workflows')) + op.destinationPath.startsWith(path.join(homeDir, '.gemini', 'config', 'workflows')) )), 'Should plan workflows' ); @@ -522,6 +523,7 @@ function runTests() { assert.ok(fs.existsSync(path.join(pluginDir, 'rules', 'common-coding-style.md')), 'rules should exist'); assert.ok(fs.existsSync(path.join(pluginDir, 'skills', 'tdd-workflow', 'SKILL.md')), 'skills should exist'); assert.ok(fs.existsSync(path.join(pluginDir, 'scripts', 'hooks', 'antigravity-hook-bridge.js')), 'hook bridge should exist'); + assert.ok(fs.existsSync(path.join(homeDir, '.gemini', 'config', 'workflows', 'plan.md')), 'workflow plan.md should exist in global workflows dir'); const pluginJson = JSON.parse(fs.readFileSync(path.join(pluginDir, 'plugin.json'), 'utf8')); assert.strictEqual(pluginJson.name, 'ecc'); From 611ec0d3abd59fcfc6d70c7a19030dd4f38ef0a2 Mon Sep 17 00:00:00 2001 From: MohamedAfrash <afrazzz51@gmail.com> Date: Fri, 25 Sep 2026 03:19:35 +0100 Subject: [PATCH 31/78] fix(antigravity): guard hook stdout json parse to prevent false denials --- scripts/hooks/antigravity-hook-bridge.js | 25 ++++++++++++++----- tests/lib/antigravity-tier1.test.js | 23 +++++++++++++++++ tests/scripts/antigravity-hook-bridge.test.js | 3 +++ 3 files changed, 45 insertions(+), 6 deletions(-) diff --git a/scripts/hooks/antigravity-hook-bridge.js b/scripts/hooks/antigravity-hook-bridge.js index 9fa65d7d8..177a0ae0f 100644 --- a/scripts/hooks/antigravity-hook-bridge.js +++ b/scripts/hooks/antigravity-hook-bridge.js @@ -113,19 +113,32 @@ async function main() { result = { exitCode: child.error || child.status === null ? 2 : child.status, stderr: child.stderr || '', + stdout: typeof child.stdout === 'string' ? child.stdout : '', }; } else if (options.hook === 'pre:write:doc-file-warning') { result = runDocFileWarning(eccJsonString); } - const output = result && (result.stdout || result.output); - const hookOutput = output ? JSON.parse(output).hookSpecificOutput : null; - const denied = result && ((result.exitCode !== undefined && result.exitCode !== 0) || result.denied || result.blocked) - || hookOutput?.permissionDecision === 'deny'; + const output = typeof result?.stdout === 'string' + ? result.stdout + : (typeof result?.output === 'string' ? result.output : null); + let hookOutput = null; + if (output) { + try { + const parsed = JSON.parse(output); + hookOutput = parsed && typeof parsed === 'object' ? parsed.hookSpecificOutput : null; + } catch { + hookOutput = null; + } + } + const denied = Boolean( + (result && ((result.exitCode !== undefined && result.exitCode !== 0) || result.denied || result.blocked)) + || hookOutput?.permissionDecision === 'deny' + ); const context = result?.additionalContext || hookOutput?.additionalContext; const reason = denied - ? hookOutput?.permissionDecisionReason || result.stderr || result.reason || 'Blocked by ECC safety hook' - : Array.isArray(context) ? context.join(' ') : context; + ? hookOutput?.permissionDecisionReason || result?.stderr || result?.reason || 'Blocked by ECC safety hook' + : (Array.isArray(context) ? context.join(' ') : context); process.stdout.write(JSON.stringify({ decision: denied ? 'deny' : 'allow', ...(reason ? { reason: String(reason).replace(/\r?\n/g, ' ').trim() } : {}), diff --git a/tests/lib/antigravity-tier1.test.js b/tests/lib/antigravity-tier1.test.js index c274f513b..56725d202 100644 --- a/tests/lib/antigravity-tier1.test.js +++ b/tests/lib/antigravity-tier1.test.js @@ -477,6 +477,29 @@ function runTests() { assert.match(output.reason, /completely|input/i); }); + test('antigravity-hook-bridge safely ignores non-JSON hook stdout and allows safe tool call', () => { + const bridgePath = path.join(__dirname, '..', '..', 'scripts', 'hooks', 'antigravity-hook-bridge.js'); + const input = JSON.stringify({ + conversationId: 'test-conv', + workspacePaths: ['/tmp'], + toolCall: { + name: 'run_command', + args: { + CommandLine: 'echo safe', + }, + }, + }); + + const run = spawnSync(process.execPath, [bridgePath, '--mode', 'pre-tool-use', '--hook', 'pre:write:doc-file-warning'], { + input, + encoding: 'utf8', + }); + + assert.strictEqual(run.status, 0); + const output = JSON.parse(run.stdout); + assert.strictEqual(output.decision, 'allow'); + }); + test('antigravity-project plans mcp_config.json when platform configs are selected', () => { const projectRoot = createTempDir('antigravity-proj-mcp-'); try { diff --git a/tests/scripts/antigravity-hook-bridge.test.js b/tests/scripts/antigravity-hook-bridge.test.js index d967bbd63..2393607ba 100644 --- a/tests/scripts/antigravity-hook-bridge.test.js +++ b/tests/scripts/antigravity-hook-bridge.test.js @@ -62,6 +62,9 @@ async function main() { } assert.strictEqual((await invoke({ hook: 'pre:config-protection', child: { status: 0, stderr: '' } })).response.decision, 'allow'); assert.strictEqual((await invoke({ result: '{}' })).response.decision, 'allow'); + assert.strictEqual((await invoke({ result: { exitCode: 0, stdout: 'warning: non-json line' } })).response.decision, 'allow'); + assert.strictEqual((await invoke({ result: { exitCode: 0, output: ['ignored', 'output array'] } })).response.decision, 'allow'); + assert.strictEqual((await invoke({ hook: 'pre:config-protection', child: { status: 0, stdout: 'non-json warning', stderr: '' } })).response.decision, 'allow'); assert.strictEqual((await invoke({ mode: 'stop', raw: '{' })).response.decision, 'allow'); assert.strictEqual((await invoke({ mode: 'post-tool-use', hook: 'post:edit:accumulator' })).hookCalls, 1); assert.strictEqual((await invoke({ mode: 'post-tool-use', hook: 'post:edit:accumulator', raw: JSON.stringify({ error: 'write failed' }) })).hookCalls, 0); From 528eab1e494f1362f1c2048bcdc9e0688c007543 Mon Sep 17 00:00:00 2001 From: legeZZZ <17621286647@163.com> Date: Sat, 26 Sep 2026 10:36:55 +0800 Subject: [PATCH 32/78] fix: strip code blocks/spans before anchor and metadata sweeps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Address review feedback on PR #2679: collectEnforcedAnchors had no fence awareness, so a spec merely SHOWING the anchor or delta syntax inside a fenced code block or inline code span was collected and validated as if the spec declared it — silent over-constraint (a target file could fail freshness for a spec that never enforced it) or grammar errors on an otherwise-fine file. Both validators now strip fenced code blocks (``` / ~~~) and inline code spans (`...`) before any comment/anchor/marker sweep; fenced blocks are replaced with an equal number of blank lines so line-oriented parsing is unaffected. The documented contract gains one line: code is illustrative, never declarative. Adds fixtures proving: fenced/tilde-fenced/inline example anchors are ignored, fenced unknown-key and ADDED markers are ignored, a fenced anchor does NOT satisfy an Invariant, and freshness only enforces the real anchor. --- scripts/ci/check-spec-freshness.js | 25 ++++++- scripts/ci/validate-openspec-syntax.js | 37 ++++++++-- tests/ci/check-spec-freshness.test.js | 34 +++++++++ tests/ci/validate-openspec-syntax.test.js | 89 +++++++++++++++++++++++ 4 files changed, 177 insertions(+), 8 deletions(-) mode change 100755 => 100644 scripts/ci/check-spec-freshness.js mode change 100755 => 100644 scripts/ci/validate-openspec-syntax.js diff --git a/scripts/ci/check-spec-freshness.js b/scripts/ci/check-spec-freshness.js old mode 100755 new mode 100644 index ff1442182..0c019846f --- a/scripts/ci/check-spec-freshness.js +++ b/scripts/ci/check-spec-freshness.js @@ -29,6 +29,9 @@ * through fs.realpathSync and must stay inside the real project root. * - shallow clones report UNVERIFIED — incomplete history is never * mislabelled ORPHANED or STALE. + * - code is never declarative: fenced code blocks (``` / ~~~) and inline + * code spans (`...`) are stripped before anchor/date sweeps, so an + * example showing the anchor syntax never becomes an enforced target. * * Exit contract: * 0 = no stale specs (or ECC_SPEC_STALE_WARN_ONLY === "true") @@ -263,6 +266,21 @@ function walkMdFiles(dir) { return results; } +/** + * Remove fenced code blocks (``` / ~~~, up to 3 leading spaces) and inline + * code spans (`...`, no newlines inside). Content inside code is illustrative + * and must never be collected as enforced anchors or a Last verified date. + * Fenced blocks are replaced with an equal number of blank lines so that + * line-oriented matches downstream keep working on the same line numbers. + */ +function stripCodeSpans(content) { + const withoutFences = content.replace( + /^[ \t]{0,3}(`{3,}|~{3,})[^\n]*\n[\s\S]*?^[ \t]{0,3}\1[ \t]*$/gm, + (block) => '\n'.repeat(block.split('\n').length - 1) + ); + return withoutFences.replace(/`[^`\n]*`/g, ''); +} + function parseSpecFile(filePath) { let content; try { @@ -271,14 +289,17 @@ function parseSpecFile(filePath) { return { error: 'unreadable' }; } + // Code blocks/spans are illustrative, never declarative. + const declarative = stripCodeSpans(content); + const enforced = []; let m; const re = new RegExp(ENFORCED_RE.source, 'g'); - while ((m = re.exec(content)) !== null) { + while ((m = re.exec(declarative)) !== null) { enforced.push(m[1].trim()); } - const lv = content.match(LAST_VERIFIED_RE); + const lv = declarative.match(LAST_VERIFIED_RE); const lastVerifiedRaw = lv ? lv[1].trim() : null; return { enforced, lastVerifiedRaw, error: null }; diff --git a/scripts/ci/validate-openspec-syntax.js b/scripts/ci/validate-openspec-syntax.js old mode 100755 new mode 100644 index 83adfc9b2..d77538b35 --- a/scripts/ci/validate-openspec-syntax.js +++ b/scripts/ci/validate-openspec-syntax.js @@ -22,6 +22,12 @@ * - everything else (`Note:`, `TODO:`, no colon) → ordinary comment, allowed * ADDED/MODIFIED/REMOVED are structural delta markers, not metadata. * + * Code is never declarative: + * Content inside fenced code blocks (``` / ~~~) and inline code spans + * (`...`) is illustrative. It is stripped before any comment/anchor/marker + * sweep, so an example showing the anchor or delta syntax is never + * validated as a declaration and never marks a block as non-empty. + * * Enforced anchor grammar: * <!-- enforced: <repo-relative/path.ext>::<symbol> --> * relative path + symbol, no whitespace, no leading "/", no "../" or @@ -149,6 +155,21 @@ function parseAnchor(raw) { const INVALID_ANCHOR_MSG = (rel, raw, reason) => `${rel}: Invalid enforced anchor "${raw}" (${reason}; expected <relative/path.ext>::<symbol>)`; +/** + * Remove fenced code blocks (``` / ~~~, up to 3 leading spaces) and inline + * code spans (`...`, no newlines inside). Content inside code is illustrative + * and must never be read as enforced anchors, metadata, or delta markers. + * Fenced blocks are replaced with an equal number of blank lines so that + * line-oriented splitting downstream keeps working on the same line numbers. + */ +function stripCodeSpans(content) { + const withoutFences = content.replace( + /^[ \t]{0,3}(`{3,}|~{3,})[^\n]*\n[\s\S]*?^[ \t]{0,3}\1[ \t]*$/gm, + (block) => '\n'.repeat(block.split('\n').length - 1) + ); + return withoutFences.replace(/`[^`\n]*`/g, ''); +} + /** * Walk every HTML comment in a file and classify it. * Returns { errors, metadata[] } — metadata entries not currently consumed by @@ -182,7 +203,7 @@ function classifyComments(rel, content, errors) { return meta; } -/** Collect every enforced anchor string in the file (any location). */ +/** Collect every enforced anchor string in declarative content (code spans already stripped). */ function collectEnforcedAnchors(content) { const anchors = []; let match; @@ -280,11 +301,15 @@ function validateSpecFile(filePath) { return [`${rel}: Empty spec file`]; } + // Code blocks/spans are illustrative, never declarative: validate the + // stripped view so examples cannot inject anchors, metadata, or markers. + const declarative = stripCodeSpans(content); + // Metadata allowlist + typo guard + ordinary-comment handling. - classifyComments(rel, content, errors); + classifyComments(rel, declarative, errors); // Every enforced anchor anywhere in the file must satisfy the grammar. - for (const raw of collectEnforcedAnchors(content)) { + for (const raw of collectEnforcedAnchors(declarative)) { const parsed = parseAnchor(raw); if (parsed.invalid) { errors.push(INVALID_ANCHOR_MSG(rel, raw, parsed.reason)); @@ -292,13 +317,13 @@ function validateSpecFile(filePath) { } // Fresh regex per call: /g regexes are stateful across .test() calls. - const isDelta = new RegExp(DELTA_MARKER_RE.source, 'g').test(content); + const isDelta = new RegExp(DELTA_MARKER_RE.source, 'g').test(declarative); if (isDelta) { - validateDelta(rel, content, errors); + validateDelta(rel, declarative, errors); return errors; } - validateBaseline(rel, content, errors); + validateBaseline(rel, declarative, errors); return errors; } diff --git a/tests/ci/check-spec-freshness.test.js b/tests/ci/check-spec-freshness.test.js index 266f5933e..ad3566705 100644 --- a/tests/ci/check-spec-freshness.test.js +++ b/tests/ci/check-spec-freshness.test.js @@ -349,6 +349,40 @@ describe('check-spec-freshness (v1, file-level)', () => { }); }); + describe('code fences (illustrative content)', () => { + it('ignores anchors and Last verified dates inside fenced / inline code', () => { + const repo = track(initRepo()); + commitFile(repo, 'src/lib.js', 'v1\n', daysAgo(300), 'v1'); + commitFile(repo, 'src/lib.js', 'v2\n', daysAgo(50), 'v2'); + + const dir = path.join(repo, 'openspec', 'specs', 'fence'); + fs.mkdirSync(dir, { recursive: true }); + fs.writeFileSync( + path.join(dir, 'spec.md'), + '---\ntitle: fence\n---\n\n' + + `Last verified: ${daysAgo(1)}\n\n` + + '### Requirement: fence\n\n' + + '#### Scenario: holds\n' + + '- **WHEN** trigger\n' + + '- **THEN** outcome\n\n' + + '<!-- enforced: src/lib.js::run -->\n\n' + + 'Example (illustrative only):\n\n' + + '```md\n' + + '<!-- enforced: src/ghost.js::missing -->\n' + + 'Last verified: 1999-01-01\n' + + '```\n\n' + + 'Inline: `<!-- enforced: src/other.js::x -->`\n' + ); + + const result = runChecker(repo, { ECC_SPEC_STALE_DAYS: '365' }); + assert.strictEqual(result.exitCode, 0, result.stderr); + const spec = parseJson(result).specs.find((s) => s.path.includes('fence')); + assert.strictEqual(spec.status, 'FRESH', JSON.stringify(spec)); + // Only the real anchor is collected; example anchors must not over-constrain. + assert.deepStrictEqual(spec.enforced, ['src/lib.js::run']); + }); + }); + describe('shallow clones', () => { it('reports UNVERIFIED (never ORPHANED/STALE) on shallow history', () => { const full = track(initRepo()); diff --git a/tests/ci/validate-openspec-syntax.test.js b/tests/ci/validate-openspec-syntax.test.js index ada42a431..95a4877c1 100644 --- a/tests/ci/validate-openspec-syntax.test.js +++ b/tests/ci/validate-openspec-syntax.test.js @@ -313,6 +313,95 @@ describe('validate-openspec-syntax (v1 schema)', () => { }); }); + describe('code fences (illustrative content)', () => { + it('ignores an enforced anchor inside a fenced code block', () => { + const root = makeTempProject({ + 'fence/spec.md': + invariantSpec('src/lib.js::enforceCheck') + + 'Example of what NOT to write:\n\n' + + '```md\n' + + '<!-- enforced: /etc/passwd::x -->\n' + + '```\n', + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('ignores a tilde-fenced block too', () => { + const root = makeTempProject({ + 'fence-tilde/spec.md': + invariantSpec('src/lib.js::enforceCheck') + + '~~~md\n' + + '<!-- enforced: ::broken -->\n' + + '~~~\n', + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('ignores inline code spans containing anchor syntax', () => { + const root = makeTempProject({ + 'inline/spec.md': + invariantSpec('src/lib.js::enforceCheck') + + 'Never write `<!-- enforced: not a real anchor -->` in prose.\n', + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('ignores metadata-looking comments and delta markers inside fences', () => { + // 'enforcd' would trip the unknown-key typo guard, and 'ADDED' would + // flip the file into delta mode + an empty-block error — if code were + // treated as declarative. Both must be ignored. + const root = makeTempProject({ + 'fence-meta/spec.md': + requirementSpec() + + '```md\n' + + '<!-- enforcd: typo-in-example -->\n' + + '<!-- ADDED: -->\n' + + '```\n', + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 0, result.stderr); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + + it('does not treat a fenced anchor as satisfying the Invariant requirement', () => { + const root = makeTempProject({ + 'fence-only/spec.md': + '### Invariant: Shown Only In Example\n' + + 'The anchor below is illustrative, not a declaration.\n\n' + + '```md\n' + + '<!-- enforced: src/lib.js::check -->\n' + + '```\n', + }); + try { + const result = runValidator(root); + assert.strictEqual(result.exitCode, 1); + const parsed = JSON.parse(result.stdout.split('\n').pop()); + const hit = parsed.errors.some((e) => e.includes('missing <!-- enforced: --> anchor')); + assert.ok(hit, `expected missing-enforced error, got: ${JSON.stringify(parsed.errors)}`); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + }); + describe('delta files', () => { it('passes a delta with three non-empty blocks', () => { const root = makeTempProject({ From b68877b142af86196148a6d58ec834b0a502ecbf Mon Sep 17 00:00:00 2001 From: wellkilo <wellkilo@foxmail.com> Date: Mon, 28 Sep 2026 11:22:58 +0800 Subject: [PATCH 33/78] fix(ci): refresh skill triggers manifest after main sync --- manifests/context-packs/skill-triggers@1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/context-packs/skill-triggers@1.json b/manifests/context-packs/skill-triggers@1.json index d591dee56..497eeccb2 100644 --- a/manifests/context-packs/skill-triggers@1.json +++ b/manifests/context-packs/skill-triggers@1.json @@ -1 +1 @@ -{"coverage":{"skills":292,"withTriggers":32},"generatedAt":"2026-09-24T23:51:22.784Z","id":"skill-triggers@1","model":{"effort":null,"id":"hand-seeded","source":"manual-curation-pending-regeneration"},"registryDigest":"2c24ec8ddbe6837f0187e2c953e17e14d83b45d348850643e9bd806e00efe70c","schemaVersion":1,"triggers":{"skill:api-connector-builder":["add api integration","new provider connector","match existing integration pattern"],"skill:api-design":["rest endpoint design","pagination api","status codes","api versioning","rate limiting api","resource naming","filtering api","api error responses","offset pagination","limit query parameter","pagination defaults"],"skill:backend-patterns":["express api","node backend architecture","nextjs api routes","server side patterns","data access layer","static file server","url path handling","file server"],"skill:browser-qa":["deployed feature test","visual regression screenshots","core web vitals check","axe accessibility audit","ship do not ship","staging verification"],"skill:canary-watch":["post deploy monitoring","smoke test url","production url check","console errors production","sse stream check","after deploy verification"],"skill:code-tour":["onboarding walkthrough","explain subsystem","architecture tour","pr walkthrough","rca tour"],"skill:coding-standards":["code review standards","naming conventions","readability review","immutability conventions","fix naming typo","export naming","consistent exports"],"skill:content-hash-cache-pattern":["cache file processing","content addressed cache","sha256 hash cache"],"skill:database-migrations":["zero downtime migration","schema change production","add column large table","backfill data","expand contract","concurrent index","migration rollback","prisma migration","django migration"],"skill:deployment-patterns":["ci cd setup","dockerize app","health checks","rollback strategy","production readiness","deploy pipeline","containerize application"],"skill:design-system":["design tokens","visual consistency audit","css custom properties","ui audit","design system bootstrap"],"skill:django-patterns":["django orm","drf api","django rest framework","django caching","django signals","django middleware"],"skill:django-security":["django authentication","csrf protection","sql injection prevention","xss prevention","django deployment security","role based access control","authorization middleware","permissions checks"],"skill:docker-patterns":["dockerfile review","docker compose setup","container security","multi service orchestration"],"skill:error-handling":["error types","retry logic","circuit breaker","user facing errors","exception handling patterns","typed errors","error boundaries","go error handling","custom error class","error codes","config validation"],"skill:evm-token-decimals":["token decimals","wei conversion","erc20 balance off","bridge token precision"],"skill:frontend-a11y":["aria attributes","screen reader support","focus management","semantic html","form labeling","keyboard navigation react","a11y lint errors"],"skill:git-workflow":["merge vs rebase","commit conventions","resolve merge conflict","branching strategy","clean up commits","pull request cleanup","git history tidy"],"skill:hexagonal-architecture":["ports and adapters","dependency injection boundaries","decouple domain from io"],"skill:kubernetes-patterns":["kubernetes manifests","kubectl debugging","pod probes","k8s rbac","autoscaling config","configmap secrets"],"skill:orch-fix-defect":["fix a bug","broken behavior","regression fix","reproduce bug","defect repair"],"skill:postgres-patterns":["slow postgres query","query optimization","index design","rls policies","supabase schema","postgres indexing","database performance","schema design postgres","postgres driver","node postgres","query planner"],"skill:python-patterns":["pythonic code","pep 8","type hints python","python code review","idiomatic python"],"skill:python-testing":["pytest fixtures","mocking python","parametrized tests","coverage python","tdd python"],"skill:redis-patterns":["cache aside pattern","distributed lock","redis rate limiting","cache invalidation"],"skill:regex-vs-llm-structured-text":["parse invoice","extract receipt data","text extraction pipeline","parse form fields","cheap document parser","extract table data","parse log lines","parse access logs","common log format","log line parsing"],"skill:rust-patterns":["rust ownership","borrow checker","rust error handling","traits rust","rust concurrency","idiomatic rust"],"skill:search-first":["find existing library","npm package research","before writing custom code","evaluate existing tools","add dependency research"],"skill:security-review":["security audit","authentication review","sanitize user input","secrets handling","payment security checklist","prevent injection attacks","secure api endpoints","authn authz review","vulnerability checklist","input validation security","parameterized queries","sql injection"],"skill:security-scan":["audit claude config","claudemd security","mcp server audit","agentshield scan","hook configuration audit","settings json security"],"skill:tdd-workflow":["write test first","failing test","red green refactor","test driven development","regression test first","write a regression test"],"skill:verification-loop":["pre pr checks","verification report","quality gates","build lint test coverage","before creating a pr"]},"triggersDigest":"25b97a9e06fc336c7cf95ab854ed1a41033a54bcd6e1fb1cf69dc906332462aa"} +{"coverage":{"skills":292,"withTriggers":32},"generatedAt":"2026-09-24T23:51:22.784Z","id":"skill-triggers@1","model":{"effort":null,"id":"hand-seeded","source":"manual-curation-pending-regeneration"},"registryDigest":"2f183562d6a3c2d64476e1a04caf8366c85b9111c393d4a9e22076ca482dc2f0","schemaVersion":1,"triggers":{"skill:api-connector-builder":["add api integration","new provider connector","match existing integration pattern"],"skill:api-design":["rest endpoint design","pagination api","status codes","api versioning","rate limiting api","resource naming","filtering api","api error responses","offset pagination","limit query parameter","pagination defaults"],"skill:backend-patterns":["express api","node backend architecture","nextjs api routes","server side patterns","data access layer","static file server","url path handling","file server"],"skill:browser-qa":["deployed feature test","visual regression screenshots","core web vitals check","axe accessibility audit","ship do not ship","staging verification"],"skill:canary-watch":["post deploy monitoring","smoke test url","production url check","console errors production","sse stream check","after deploy verification"],"skill:code-tour":["onboarding walkthrough","explain subsystem","architecture tour","pr walkthrough","rca tour"],"skill:coding-standards":["code review standards","naming conventions","readability review","immutability conventions","fix naming typo","export naming","consistent exports"],"skill:content-hash-cache-pattern":["cache file processing","content addressed cache","sha256 hash cache"],"skill:database-migrations":["zero downtime migration","schema change production","add column large table","backfill data","expand contract","concurrent index","migration rollback","prisma migration","django migration"],"skill:deployment-patterns":["ci cd setup","dockerize app","health checks","rollback strategy","production readiness","deploy pipeline","containerize application"],"skill:design-system":["design tokens","visual consistency audit","css custom properties","ui audit","design system bootstrap"],"skill:django-patterns":["django orm","drf api","django rest framework","django caching","django signals","django middleware"],"skill:django-security":["django authentication","csrf protection","sql injection prevention","xss prevention","django deployment security","role based access control","authorization middleware","permissions checks"],"skill:docker-patterns":["dockerfile review","docker compose setup","container security","multi service orchestration"],"skill:error-handling":["error types","retry logic","circuit breaker","user facing errors","exception handling patterns","typed errors","error boundaries","go error handling","custom error class","error codes","config validation"],"skill:evm-token-decimals":["token decimals","wei conversion","erc20 balance off","bridge token precision"],"skill:frontend-a11y":["aria attributes","screen reader support","focus management","semantic html","form labeling","keyboard navigation react","a11y lint errors"],"skill:git-workflow":["merge vs rebase","commit conventions","resolve merge conflict","branching strategy","clean up commits","pull request cleanup","git history tidy"],"skill:hexagonal-architecture":["ports and adapters","dependency injection boundaries","decouple domain from io"],"skill:kubernetes-patterns":["kubernetes manifests","kubectl debugging","pod probes","k8s rbac","autoscaling config","configmap secrets"],"skill:orch-fix-defect":["fix a bug","broken behavior","regression fix","reproduce bug","defect repair"],"skill:postgres-patterns":["slow postgres query","query optimization","index design","rls policies","supabase schema","postgres indexing","database performance","schema design postgres","postgres driver","node postgres","query planner"],"skill:python-patterns":["pythonic code","pep 8","type hints python","python code review","idiomatic python"],"skill:python-testing":["pytest fixtures","mocking python","parametrized tests","coverage python","tdd python"],"skill:redis-patterns":["cache aside pattern","distributed lock","redis rate limiting","cache invalidation"],"skill:regex-vs-llm-structured-text":["parse invoice","extract receipt data","text extraction pipeline","parse form fields","cheap document parser","extract table data","parse log lines","parse access logs","common log format","log line parsing"],"skill:rust-patterns":["rust ownership","borrow checker","rust error handling","traits rust","rust concurrency","idiomatic rust"],"skill:search-first":["find existing library","npm package research","before writing custom code","evaluate existing tools","add dependency research"],"skill:security-review":["security audit","authentication review","sanitize user input","secrets handling","payment security checklist","prevent injection attacks","secure api endpoints","authn authz review","vulnerability checklist","input validation security","parameterized queries","sql injection"],"skill:security-scan":["audit claude config","claudemd security","mcp server audit","agentshield scan","hook configuration audit","settings json security"],"skill:tdd-workflow":["write test first","failing test","red green refactor","test driven development","regression test first","write a regression test"],"skill:verification-loop":["pre pr checks","verification report","quality gates","build lint test coverage","before creating a pr"]},"triggersDigest":"25b97a9e06fc336c7cf95ab854ed1a41033a54bcd6e1fb1cf69dc906332462aa"} From 88124af9b75ad8b1869a303bce1d749be97e6374 Mon Sep 17 00:00:00 2001 From: wellkilo <wellkilo@foxmail.com> Date: Mon, 28 Sep 2026 11:48:09 +0800 Subject: [PATCH 34/78] fix(schema): include mistral-vibe context target --- schemas/context-carrier.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/context-carrier.schema.json b/schemas/context-carrier.schema.json index 228aadaef..7cf8aa741 100644 --- a/schemas/context-carrier.schema.json +++ b/schemas/context-carrier.schema.json @@ -10,7 +10,7 @@ "active": { "const": false }, "disposition": { "const": "proposed" }, "nativeSupport": { "const": "unobserved" }, - "target": { "enum": ["adal", "antigravity", "claude", "claude-project", "codebuddy", "codex", "cursor", "gemini", "hermes", "joycode", "kimi", "openclaw", "opencode", "pi", "qwen", "zed"] }, + "target": { "enum": ["adal", "antigravity", "claude", "claude-project", "codebuddy", "codex", "cursor", "gemini", "hermes", "joycode", "kimi", "mistral-vibe", "openclaw", "opencode", "pi", "qwen", "zed"] }, "profileId": { "enum": ["lean@1", "full@1"] }, "selectionMode": { "enum": ["manual", "suggest", "auto"] }, "registryDigest": { "$ref": "#/definitions/digest" }, From 6443b39a7ae0e7c3d302e0b72c039708a836a440 Mon Sep 17 00:00:00 2001 From: MohamedAfrash <afrazzz51@gmail.com> Date: Tue, 13 Oct 2026 14:52:53 +0100 Subject: [PATCH 35/78] test: cover Antigravity runtime profile overrides RED: minimal installs omit the warning handler, so selecting strict at runtime cannot enable it. Existing suppression, formatting and managed-profile tests pass. --- tests/scripts/antigravity-hook-policy.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/scripts/antigravity-hook-policy.test.js b/tests/scripts/antigravity-hook-policy.test.js index 27a32ab39..0bd564ac9 100644 --- a/tests/scripts/antigravity-hook-policy.test.js +++ b/tests/scripts/antigravity-hook-policy.test.js @@ -6,6 +6,7 @@ const os = require('node:os'); const path = require('node:path'); const { spawnSync } = require('node:child_process'); const { test } = require('node:test'); +const { buildAntigravityHooksConfig } = require('../../scripts/lib/antigravity-hooks'); const bridge = path.resolve(__dirname, '../../scripts/hooks/antigravity-hook-bridge.js'); const controls = [ @@ -15,6 +16,12 @@ const controls = [ { ECC_DRY_RUN: '1' }, ]; +test('minimal installs retain warning handlers for explicit runtime profile overrides', () => { + const config = buildAntigravityHooksConfig({ profile: 'minimal', bridgeScript: bridge }); + assert.ok(config['ecc-guard'].PreToolUse.some(entry => + entry.hooks.some(hook => hook.command.includes('pre:write:doc-file-warning')))); +}); + function invoke(mode, hook, payload, env = {}) { const child = spawnSync(process.execPath, [bridge, '--mode', mode, '--hook', hook], { input: JSON.stringify(payload), encoding: 'utf8', timeout: 15000, From 31ecd4b1c3459c6f1ff9e4e002fec064f33d7ac0 Mon Sep 17 00:00:00 2001 From: MohamedAfrash <afrazzz51@gmail.com> Date: Tue, 13 Oct 2026 16:23:24 +0100 Subject: [PATCH 36/78] fix: honor Antigravity runtime policy and contain managed installs GREEN: hook policy 4/4, MCP policy 8/8, native Antigravity 1.2.9 import, tier suite 24/24, lifecycle 5/5 plus 73 existing checks. Use shared enable/profile/dry-run decisions and managed setup; stop importing source MCP definitions and filter mcp_config.json. Derive sibling workflow roots for doctor/repair/uninstall and refuse escapes. Restore upstream Claude setup behavior after four migration regressions. Update module targets, carrier schema, unchanged trigger binding, and native validation limits. --- README.md | 2 +- docs/ANTIGRAVITY-GUIDE.md | 52 +++++++++++++- manifests/context-packs/skill-triggers@1.json | 2 +- manifests/install-modules.json | 5 ++ schemas/context-carrier.schema.json | 2 +- scripts/hooks/antigravity-hook-bridge.js | 7 ++ scripts/lib/antigravity-hooks.js | 8 +-- scripts/lib/claude-plugin-setup.js | 20 ++---- scripts/lib/install-lifecycle.js | 3 +- .../lib/install-targets/antigravity-home.js | 50 ++++++-------- .../install-targets/antigravity-project.js | 40 ++++------- scripts/lib/install/apply.js | 2 +- scripts/plan-canvas.js | 1 - tests/lib/antigravity-lifecycle.test.js | 67 +++++++++++++------ tests/lib/antigravity-tier1.test.js | 1 + tests/lib/claude-plugin-setup.test.js | 17 ----- tests/scripts/antigravity-hook-bridge.test.js | 1 + .../scripts/antigravity-native-plugin.test.js | 16 +++-- tests/scripts/codex-hooks.test.js | 1 - 19 files changed, 169 insertions(+), 128 deletions(-) diff --git a/README.md b/README.md index bd9f1f22b..3f0c9e2a6 100644 --- a/README.md +++ b/README.md @@ -1325,7 +1325,7 @@ Treat `stable`, `beta`, `experimental`, and `instruction-only` below as capabili |---|---|---|---| | Claude Code | Stable primary | Plugin or selective installer | The plugin advertises the installed catalog to the model; use a selective/manual profile when context footprint matters. Optional shell-backed skills are not portable to every OS. | | Codex | Supported native plugin | Codex marketplace plugin or repo config | Native hooks require an explicit trust decision and do not use Claude's hook profiles. The legacy sync is compatibility-only. | -| Antigravity | Supported native plugin | Native plugin (`~/.gemini/config/plugins/ecc`) or project `.agents/` | Global native plugin with lifecycle hooks (`PreToolUse`, `PostToolUse`, `Stop`) via protojson bridge, rules, workflows, skills, and memory MCP. | +| Antigravity | Native plugin adapter | Antigravity 2.0/IDE plugin (`~/.gemini/config/plugins/ecc`) or project `.agents/` | Profile-gated lifecycle hooks, rules, workflows, skills, and memory MCP. CLI 1.2.9 validates local import; authenticated native tool and Stop execution remain unverified. | | Qoder | Supported native plugin | Local plugin directory in Qoder CLI or ZIP upload in Qoder IDE | Loads the canonical skills, agents, commands, and MCP config; only the reviewed SessionStart hook is enabled, and Node.js 18+ must be on the non-interactive PATH. | | Cursor | Beta project adapter | Selective installer into `.cursor/` | Agent discovery varies by Cursor build; hook events use profile-gated dispatchers, but full Claude feature parity is not claimed. | | OpenCode | Beta built plugin | Build plugin, then selective installer | ECC ships a subset of the catalog; connect a provider and select a model in OpenCode ([#2617](https://github.com/affaan-m/ECC/issues/2617)). | diff --git a/docs/ANTIGRAVITY-GUIDE.md b/docs/ANTIGRAVITY-GUIDE.md index b498492e7..0ca21be6a 100644 --- a/docs/ANTIGRAVITY-GUIDE.md +++ b/docs/ANTIGRAVITY-GUIDE.md @@ -150,12 +150,12 @@ node "$EccRoot\scripts\uninstall.js" --target antigravity --dry-run - Confirm the files are under `.agents/workflows/`. - Invoke a workflow with `/<workflow-name>` after restarting Antigravity. -## Tier 1 Native Plugin and Global Installation (`antigravity-home`) +## Native Plugin and Global Installation (`antigravity-home`) Antigravity supports global plugins located in `~/.gemini/config/plugins/<name>/`. Installing ECC as a native Antigravity plugin enables: 1. **Global Scope**: ECC rules, skills, agents, workflows, and memory MCP are active across all projects automatically, without requiring a `.agents/` folder in every repository. -2. **Lifecycle Hooks (`hooks.json`)**: Full support for `PreToolUse` (command security gates, file modification guards), `PostToolUse` edit tracking, and `Stop` formatting and diagnostics using Antigravity's protojson protocol (`{ decision, reason }`). +2. **Lifecycle Hooks (`hooks.json`)**: Handlers for `PreToolUse` command and file guards, `PostToolUse` edit tracking, and `Stop` formatting and diagnostics using Antigravity's protojson protocol (`{ decision, reason }`). 3. **Shared Memory Vault (`mcp_config.json`)**: Direct integration with `ecc-memory-mcp` across all Antigravity sessions. 4. **Native Plugin Manifest (`plugin.json`)**: Declares the ECC plugin metadata. @@ -173,11 +173,23 @@ PowerShell: ``` The installer copies the memory server and its runtime dependencies into the -managed target. Generated hook and MCP commands use absolute installed paths, +managed target. Only ECC memory is included in the generated MCP configuration; +repository `.mcp.json` commands are not imported automatically. Set +`ECC_DISABLED_MCPS=ecc-memory` during installation to omit that server. +Existing MCP entries are preserved on upgrades, including servers generated by +older ECC versions. Review `mcp_config.json` and remove any unwanted existing +entries explicitly; installation does not delete user configuration. +Generated hook and MCP commands use absolute installed paths, so they also work when Antigravity runs from another workspace. Project-local hooks use the same runtime; select `--profile core --enable-hooks` with `--target antigravity`. Use `--no-hooks` to omit automatic hooks. +Choose a hook profile at installation with the existing environment setting, for +example `ECC_HOOK_PROFILE=minimal "$ECC_ROOT/install.sh" --target antigravity-home --profile core --enable-hooks`. +The installer retains it in managed `ecc/setup.json` for runtime execution. +`ECC_HOOK_PROFILE` overrides that profile; `ECC_DISABLED_HOOKS` disables individual +hook IDs, and `ECC_DRY_RUN=1` suppresses hook execution. These controls also apply +to the Antigravity bridge. ### Global Plugin Structure @@ -188,12 +200,46 @@ with `--target antigravity`. Use `--no-hooks` to omit automatic hooks. ├── plugin.json # Antigravity plugin manifest ├── hooks.json # PreToolUse, PostToolUse, and Stop hooks ├── mcp_config.json # Shared ECC Memory Vault MCP server + ├── ecc/setup.json # Managed hook enable/profile configuration ├── rules/ # Rules applied to all workspaces ├── skills/ # Global Agent Skills ├── scripts/ # Hook bridge and memory runtime └── node_modules/ # Memory server dependencies ``` +### Native validation and limits + +Run the optional native check from the ECC source checkout: + +```bash +node tests/scripts/antigravity-native-plugin.test.js +``` + +The test requires an already installed **Antigravity CLI 1.2.9** and skips with an +explicit message if that version is unavailable. It does not download the CLI. +It installs ECC into one temporary home, runs `agy plugin validate`, imports the +local plugin into a separate disposable CLI home with `agy plugin install`, and +checks `agy plugin list --json`. +Every CLI subprocess uses disposable home and configuration directories without +inheriting authentication credentials. The test makes no model requests. + +This validates the CLI's local plugin importer and component registration. +CLI 1.2.9 does not list a manually placed `~/.gemini/config/plugins/ecc` plugin +until explicitly imported; its CLI staging location differs from the Antigravity +2.0 and IDE global location. Importing directly from the same home plugin directory +fails in CLI 1.2.9 because its importer attempts to copy onto the source directory. +The test uses separate install and loader homes to exercise the importer without +that collision; this does not establish in-place CLI activation of the home target. + +The CLI exposes no standalone tool-event or Stop-event runner. The existing +bridge tests check allowed and denied tool payloads and Stop behavior directly; +they do **not** establish native loader execution. Automatic IDE discovery, +allowed and denied tool execution, and Stop execution still require a real +Antigravity session. In Settings > Customizations, verify ECC appears, then use +a disposable workspace to verify an ordinary command proceeds, a destructive +command is denied before execution, and an edit triggers the expected Stop +formatting or diagnostics. Never use valuable files for the denial check. + ## Official Antigravity references - [Skills](https://antigravity.google/docs/skills) diff --git a/manifests/context-packs/skill-triggers@1.json b/manifests/context-packs/skill-triggers@1.json index a49a8c824..5d980781e 100644 --- a/manifests/context-packs/skill-triggers@1.json +++ b/manifests/context-packs/skill-triggers@1.json @@ -10,7 +10,7 @@ "id": "hand-seeded", "source": "manual-curation-pending-regeneration" }, - "registryDigest": "498caee2738006d64530e9be34883111cf67742d8c4389f39d61299e1a1c4400", + "registryDigest": "25fdb7f75a02286ffddaa5902c0803be09d7e5a9a55797bb9f0224816e3d18e7", "schemaVersion": 1, "triggers": { "skill:agent-runtime-gateway-smoke-test": [ diff --git a/manifests/install-modules.json b/manifests/install-modules.json index bf6e9f38b..a26e24358 100644 --- a/manifests/install-modules.json +++ b/manifests/install-modules.json @@ -372,6 +372,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -453,6 +454,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "copilot", "opencode", @@ -1397,6 +1399,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -1428,6 +1431,7 @@ "claude-project", "cursor", "antigravity", + "antigravity-home", "codex", "opencode", "codebuddy", @@ -1461,6 +1465,7 @@ "cursor", "copilot", "antigravity", + "antigravity-home", "opencode", "codebuddy", "joycode", diff --git a/schemas/context-carrier.schema.json b/schemas/context-carrier.schema.json index 03a48ce67..87905bf48 100644 --- a/schemas/context-carrier.schema.json +++ b/schemas/context-carrier.schema.json @@ -10,7 +10,7 @@ "active": { "const": false }, "disposition": { "const": "proposed" }, "nativeSupport": { "const": "unobserved" }, - "target": { "enum": ["adal", "antigravity", "claude", "claude-project", "codebuddy", "codex", "copilot", "cursor", "gemini", "hermes", "joycode", "kimi", "openclaw", "opencode", "pi", "qwen", "zed"] }, + "target": { "enum": ["adal", "antigravity", "antigravity-home", "claude", "claude-project", "codebuddy", "codex", "copilot", "cursor", "gemini", "hermes", "joycode", "kimi", "openclaw", "opencode", "pi", "qwen", "zed"] }, "profileId": { "enum": ["lean@1", "full@1"] }, "selectionMode": { "enum": ["manual", "suggest", "auto"] }, "registryDigest": { "$ref": "#/definitions/digest" }, diff --git a/scripts/hooks/antigravity-hook-bridge.js b/scripts/hooks/antigravity-hook-bridge.js index 177a0ae0f..5d2699298 100644 --- a/scripts/hooks/antigravity-hook-bridge.js +++ b/scripts/hooks/antigravity-hook-bridge.js @@ -16,6 +16,7 @@ const { run: runGateGuard } = require('./gateguard-fact-force'); const { run: runDocFileWarning } = require('./doc-file-warning'); const { run: runPostEditAccumulator } = require('./post-edit-accumulator'); const { readStdinRaw, resolveMaxStdin } = require('./hook-input'); +const { isHookEnabled, isDryRun } = require('../lib/hook-flags'); function parseArgs(argv) { const options = { @@ -71,6 +72,12 @@ function writeFailure(mode, reason) { async function main() { const options = parseArgs(process.argv); + process.env.ECC_HOOK_CONFIG ||= path.resolve(__dirname, '../../ecc/setup.json'); + const profiles = options.hook === 'pre:bash:dispatcher' ? 'minimal,standard,strict' : undefined; + if (!isHookEnabled(options.hook, { profiles }) || isDryRun()) { + process.stdout.write(JSON.stringify(options.mode === 'post-tool-use' ? {} : { decision: 'allow' })); + return; + } const maxStdin = resolveMaxStdin(process.env.ECC_HOOK_INPUT_MAX_BYTES); let raw = ''; diff --git a/scripts/lib/antigravity-hooks.js b/scripts/lib/antigravity-hooks.js index cc496665c..d5977fea7 100644 --- a/scripts/lib/antigravity-hooks.js +++ b/scripts/lib/antigravity-hooks.js @@ -12,7 +12,6 @@ const { shellQuote } = require('./control-pane/actions'); */ function buildAntigravityHooksConfig(options = {}) { - const profile = options.profile || 'standard'; const { bridgeScript } = options; if (typeof bridgeScript !== 'string' || !path.isAbsolute(bridgeScript) || bridgeScript.includes('\0')) { throw new Error('bridgeScript must be an absolute path'); @@ -55,8 +54,8 @@ function buildAntigravityHooksConfig(options = {}) { }, ]; - if (profile === 'standard' || profile === 'strict') { - preToolUseHandlers.push({ + // Runtime hook flags select the profile, including explicit environment overrides. + preToolUseHandlers.push({ matcher: 'write_to_file', hooks: [ { @@ -65,8 +64,7 @@ function buildAntigravityHooksConfig(options = {}) { timeout: 5, }, ], - }); - } + }); const stopHandlers = [ { diff --git a/scripts/lib/claude-plugin-setup.js b/scripts/lib/claude-plugin-setup.js index bde0f3ff6..97f5969b2 100644 --- a/scripts/lib/claude-plugin-setup.js +++ b/scripts/lib/claude-plugin-setup.js @@ -572,7 +572,6 @@ function verifyPluginAtScope(options) { function ensurePluginAtScope(options) { const run = options.run || runClaude; - const configuredHooks = options.hookConfiguration; if (options.installed) { run( ['plugin', 'update', CURRENT_PLUGIN_ID, '--scope', options.scope], @@ -580,17 +579,13 @@ function ensurePluginAtScope(options) { ); return 'updated'; } - const installArgs = [ - 'plugin', 'install', CURRENT_PLUGIN_ID, - '--scope', options.scope, - ]; - if (configuredHooks) { - installArgs.push( - '--config', `hooks_enabled=${configuredHooks.hooks_enabled}`, - '--config', `hook_profile=${configuredHooks.hook_profile}` - ); - } - run(installArgs, { cwd: options.projectRoot, phase: 'plugin-install' }); + run( + [ + 'plugin', 'install', CURRENT_PLUGIN_ID, + '--scope', options.scope, + ], + { cwd: options.projectRoot, phase: 'plugin-install' } + ); return 'installed'; } @@ -660,7 +655,6 @@ function setupClaudePlugin(options = {}, dependencies = {}) { spawnSync: dependencies.spawnSync, }); const action = ensurePluginAtScope({ - hookConfiguration: hookOptions(hooks), hooks, installed: inventory.installed, projectRoot: paths.projectRoot, diff --git a/scripts/lib/install-lifecycle.js b/scripts/lib/install-lifecycle.js index f4fba36b7..76805cfc6 100644 --- a/scripts/lib/install-lifecycle.js +++ b/scripts/lib/install-lifecycle.js @@ -874,7 +874,8 @@ function inspectManagedOperation(repoRoot, trustedRoot, operation, linkIndex = n } function trustedRootForDestination(destinationPath, targetRoot, trustedRoots = [targetRoot]) { - return trustedRoots.find(root => isWithinRoot(destinationPath, root)) || targetRoot; + const parent = typeof destinationPath === 'string' ? path.dirname(destinationPath) : destinationPath; + return trustedRoots.find(root => isWithinRoot(parent, root)) || targetRoot; } function summarizeManagedOperationHealth(repoRoot, trustedRoot, operations, target = null, trustedRoots = [trustedRoot]) { diff --git a/scripts/lib/install-targets/antigravity-home.js b/scripts/lib/install-targets/antigravity-home.js index 2be18d0d9..c3a53372a 100644 --- a/scripts/lib/install-targets/antigravity-home.js +++ b/scripts/lib/install-targets/antigravity-home.js @@ -15,21 +15,8 @@ const { const { buildAntigravityHooksConfig } = require('../antigravity-hooks'); const { buildAntigravityMcpConfig, planAntigravityMemoryRuntime } = require('../antigravity-mcp'); const { buildAntigravityPluginManifest } = require('../antigravity-plugin'); - -function readJsonObject(filePath, label) { - let parsed; - try { - parsed = JSON.parse(fs.readFileSync(filePath, 'utf8')); - } catch (error) { - throw new Error(`Failed to parse ${label} at ${filePath}: ${error.message}`); - } - - if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) { - throw new Error(`Invalid ${label} at ${filePath}: expected a JSON object`); - } - - return parsed; -} +const { getHookProfile } = require('../hook-flags'); +const { isWithinRoot } = require('../path-safety'); module.exports = createInstallTargetAdapter({ id: 'antigravity-home', @@ -40,10 +27,11 @@ module.exports = createInstallTargetAdapter({ nativeRootRelativePath: '.gemini', excludedSourcePaths: HOME_INSTALL_EXCLUDED_SOURCE_PATHS, resolveTrustedRoots(input, targetRoot) { - const workflowsRoot = path.join( - path.dirname(path.dirname(targetRoot)), - 'workflows' - ); + const configRoot = path.dirname(path.dirname(targetRoot)); + const workflowsRoot = path.join(configRoot, 'workflows'); + if (!isWithinRoot(workflowsRoot, configRoot)) { + throw new Error('Refusing Antigravity workflows outside the trusted config root.'); + } return [targetRoot, workflowsRoot]; }, planOperations(input, adapter) { @@ -141,6 +129,7 @@ module.exports = createInstallTargetAdapter({ module.id === 'hooks-runtime' && normalizedSourcePath === 'hooks' ) { + const profile = getHookProfile(input.env); return [ createManagedScaffoldOperation(module.id, 'package.json', path.join(targetRoot, 'package.json'), 'preserve-relative-path'), createManagedOperation({ @@ -152,10 +141,20 @@ module.exports = createInstallTargetAdapter({ ownership: 'managed', scaffoldOnly: false, mergePayload: buildAntigravityHooksConfig({ - profile: input.hookProfile || 'standard', + profile, bridgeScript: path.join(targetRoot, 'scripts', 'hooks', 'antigravity-hook-bridge.js'), }), }), + createManagedOperation({ + kind: 'merge-json', + moduleId: module.id, + sourceRelativePath: 'hooks/hooks.json', + destinationPath: path.join(targetRoot, 'ecc', 'setup.json'), + strategy: 'merge-json', + ownership: 'managed', + scaffoldOnly: false, + mergePayload: { hooks: { enabled: true, profile } }, + }), ]; } @@ -163,18 +162,9 @@ module.exports = createInstallTargetAdapter({ module.id === 'platform-configs' && (normalizedSourcePath === 'mcp-configs' || normalizedSourcePath === '.mcp.json') ) { - const baseMcp = (repoRoot && fs.existsSync(path.join(repoRoot, '.mcp.json'))) - ? readJsonObject(path.join(repoRoot, '.mcp.json'), '.mcp.json') - : { mcpServers: {} }; const antigravityMcp = buildAntigravityMcpConfig({ memoryScript: path.join(targetRoot, 'scripts', 'memory-mcp.mjs'), }); - const mergedMcp = { - mcpServers: { - ...(baseMcp.mcpServers || {}), - ...(antigravityMcp.mcpServers || {}), - }, - }; const operations = [ createManagedOperation({ @@ -185,7 +175,7 @@ module.exports = createInstallTargetAdapter({ strategy: 'merge-json', ownership: 'managed', scaffoldOnly: false, - mergePayload: mergedMcp, + mergePayload: antigravityMcp, }), createManagedOperation({ kind: 'merge-json', diff --git a/scripts/lib/install-targets/antigravity-project.js b/scripts/lib/install-targets/antigravity-project.js index 647c4eb7d..375976844 100644 --- a/scripts/lib/install-targets/antigravity-project.js +++ b/scripts/lib/install-targets/antigravity-project.js @@ -11,6 +11,7 @@ const { const { buildAntigravityHooksConfig } = require('../antigravity-hooks'); const { buildAntigravityMcpConfig, planAntigravityMemoryRuntime } = require('../antigravity-mcp'); const { buildAntigravityPluginManifest } = require('../antigravity-plugin'); +const { getHookProfile } = require('../hook-flags'); const SUPPORTED_SOURCE_PREFIXES = [ 'rules', @@ -31,21 +32,6 @@ function supportsAntigravitySourcePath(sourceRelativePath) { )); } -function readJsonObject(filePath, label) { - let parsed; - try { - parsed = JSON.parse(fs.readFileSync(filePath, 'utf8')); - } catch (error) { - throw new Error(`Failed to parse ${label} at ${filePath}: ${error.message}`); - } - - if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) { - throw new Error(`Invalid ${label} at ${filePath}: expected a JSON object`); - } - - return parsed; -} - module.exports = createInstallTargetAdapter({ id: 'antigravity-project', target: 'antigravity', @@ -148,6 +134,7 @@ module.exports = createInstallTargetAdapter({ module.id === 'hooks-runtime' && normalizedSourcePath === 'hooks' ) { + const profile = getHookProfile(input.env); return [ createManagedScaffoldOperation(module.id, 'package.json', path.join(targetRoot, 'package.json'), 'preserve-relative-path'), createManagedOperation({ @@ -159,10 +146,20 @@ module.exports = createInstallTargetAdapter({ ownership: 'managed', scaffoldOnly: false, mergePayload: buildAntigravityHooksConfig({ - profile: input.hookProfile || 'standard', + profile, bridgeScript: path.join(targetRoot, 'scripts', 'hooks', 'antigravity-hook-bridge.js'), }), }), + createManagedOperation({ + kind: 'merge-json', + moduleId: module.id, + sourceRelativePath: 'hooks/hooks.json', + destinationPath: path.join(targetRoot, 'ecc', 'setup.json'), + strategy: 'merge-json', + ownership: 'managed', + scaffoldOnly: false, + mergePayload: { hooks: { enabled: true, profile } }, + }), ]; } @@ -170,18 +167,9 @@ module.exports = createInstallTargetAdapter({ module.id === 'platform-configs' && (normalizedSourcePath === 'mcp-configs' || normalizedSourcePath === '.mcp.json') ) { - const baseMcp = (repoRoot && fs.existsSync(path.join(repoRoot, '.mcp.json'))) - ? readJsonObject(path.join(repoRoot, '.mcp.json'), '.mcp.json') - : { mcpServers: {} }; const antigravityMcp = buildAntigravityMcpConfig({ memoryScript: path.join(targetRoot, 'scripts', 'memory-mcp.mjs'), }); - const mergedMcp = { - mcpServers: { - ...(baseMcp.mcpServers || {}), - ...(antigravityMcp.mcpServers || {}), - }, - }; const operations = [ createManagedOperation({ @@ -192,7 +180,7 @@ module.exports = createInstallTargetAdapter({ strategy: 'merge-json', ownership: 'managed', scaffoldOnly: false, - mergePayload: mergedMcp, + mergePayload: antigravityMcp, }), createManagedOperation({ kind: 'merge-json', diff --git a/scripts/lib/install/apply.js b/scripts/lib/install/apply.js index cec446c98..82fef1ffd 100644 --- a/scripts/lib/install/apply.js +++ b/scripts/lib/install/apply.js @@ -254,7 +254,7 @@ function writeClaudeCommitAttributionPreference(settingsPath, options = {}) { function isMcpConfigPath(filePath) { const basename = path.basename(String(filePath || '')); - return basename === '.mcp.json' || basename === 'mcp.json'; + return basename === '.mcp.json' || basename === 'mcp.json' || basename === 'mcp_config.json'; } function getTrustedRootsForPlan(plan) { diff --git a/scripts/plan-canvas.js b/scripts/plan-canvas.js index 96d075e93..bc8f49d45 100755 --- a/scripts/plan-canvas.js +++ b/scripts/plan-canvas.js @@ -17,7 +17,6 @@ * so stdout stays parseable. */ -const { spawn } = require('child_process'); const fs = require('fs'); const http = require('http'); const path = require('path'); diff --git a/tests/lib/antigravity-lifecycle.test.js b/tests/lib/antigravity-lifecycle.test.js index 84c0692ec..0851c3019 100644 --- a/tests/lib/antigravity-lifecycle.test.js +++ b/tests/lib/antigravity-lifecycle.test.js @@ -8,7 +8,7 @@ const path = require('path'); const { createManifestInstallPlan } = require('../../scripts/lib/install/plan'); const { applyInstallPlan } = require('../../scripts/lib/install/apply'); const { withHookConsent } = require('../../scripts/lib/install/hook-consent'); -const { buildDoctorReport, repairInstalledStates } = require('../../scripts/lib/install-lifecycle'); +const { buildDoctorReport, repairInstalledStates, uninstallInstalledStates } = require('../../scripts/lib/install-lifecycle'); const repoRoot = path.join(__dirname, '..', '..'); const fixtureRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'antigravity-lifecycle-')); @@ -25,24 +25,7 @@ try { projectRoot, }), 'enabled'); const workflowPath = path.join(homeDir, '.gemini', 'config', 'workflows', 'plan.md'); - const workflowOperation = { - kind: 'copy-file', - moduleId: 'commands-core', - sourcePath: path.join(repoRoot, 'commands', 'plan.md'), - sourceRelativePath: 'commands/plan.md', - destinationPath: workflowPath, - strategy: 'preserve-relative-path', - ownership: 'managed', - scaffoldOnly: false, - }; - applyInstallPlan({ - ...plan, - operations: [...plan.operations, workflowOperation], - statePreview: { - ...plan.statePreview, - operations: [...plan.statePreview.operations, workflowOperation], - }, - }); + applyInstallPlan(plan); const original = fs.readFileSync(workflowPath, 'utf8'); fs.unlinkSync(workflowPath); @@ -77,7 +60,51 @@ try { assert.strictEqual(refused.status, 'error'); assert.match(refused.error, /unsafe managed destination|symlink/i); assert.strictEqual(fs.readFileSync(outsidePath, 'utf8'), 'user content'); - console.log('Results: Passed: 3, Failed: 0'); + + const uninstalled = uninstallInstalledStates({ + homeDir, + projectRoot, + targets: ['antigravity-home'], + }).results[0]; + assert.strictEqual(uninstalled.status, 'partial', uninstalled.error); + assert.ok(uninstalled.retainedPaths.includes(workflowPath)); + assert.ok(fs.lstatSync(workflowPath).isSymbolicLink()); + assert.strictEqual(fs.readFileSync(outsidePath, 'utf8'), 'user content'); + + const symlinkHome = path.join(fixtureRoot, 'symlink-home'); + const symlinkProject = path.join(fixtureRoot, 'symlink-project'); + fs.mkdirSync(symlinkHome); + fs.mkdirSync(symlinkProject); + const symlinkPlan = withHookConsent(createManifestInstallPlan({ + profileId: 'core', + target: 'antigravity-home', + homeDir: symlinkHome, + projectRoot: symlinkProject, + }), 'enabled'); + applyInstallPlan(symlinkPlan); + const workflowsRoot = path.join(symlinkHome, '.gemini', 'config', 'workflows'); + const externalRoot = path.join(fixtureRoot, 'external-workflows'); + fs.renameSync(workflowsRoot, externalRoot); + fs.symlinkSync(externalRoot, workflowsRoot, 'dir'); + const externalWorkflow = path.join(externalRoot, 'plan.md'); + const externalContent = fs.readFileSync(externalWorkflow, 'utf8'); + + assert.throws(() => applyInstallPlan(symlinkPlan), /outside|symlink|trusted/i); + const rootSymlinkRepair = repairInstalledStates({ + repoRoot, + homeDir: symlinkHome, + projectRoot: symlinkProject, + targets: ['antigravity-home'], + }).results[0]; + const rootSymlinkUninstall = uninstallInstalledStates({ + homeDir: symlinkHome, + projectRoot: symlinkProject, + targets: ['antigravity-home'], + }).results[0]; + assert.strictEqual(rootSymlinkRepair.status, 'error'); + assert.strictEqual(rootSymlinkUninstall.status, 'error'); + assert.strictEqual(fs.readFileSync(externalWorkflow, 'utf8'), externalContent); + console.log('Results: Passed: 5, Failed: 0'); } finally { fs.rmSync(fixtureRoot, { recursive: true, force: true }); } diff --git a/tests/lib/antigravity-tier1.test.js b/tests/lib/antigravity-tier1.test.js index 56725d202..1d5ca5034 100644 --- a/tests/lib/antigravity-tier1.test.js +++ b/tests/lib/antigravity-tier1.test.js @@ -380,6 +380,7 @@ function runTests() { const run = spawnSync(process.execPath, [bridgePath, '--mode', 'pre-tool-use', '--hook', 'pre:bash:dispatcher'], { input, encoding: 'utf8', + env: { ...process.env, GATEGUARD_BASH_ROUTINE_DISABLED: '1' }, }); assert.strictEqual(run.status, 0); diff --git a/tests/lib/claude-plugin-setup.test.js b/tests/lib/claude-plugin-setup.test.js index fa752342b..f80014a45 100644 --- a/tests/lib/claude-plugin-setup.test.js +++ b/tests/lib/claude-plugin-setup.test.js @@ -295,8 +295,6 @@ test('fresh install uses supported Claude arguments and follows the verification [ 'plugin', 'install', 'ecc@ecc', '--scope', 'project', - '--config', 'hooks_enabled=true', - '--config', 'hook_profile=strict', ], ['plugin', 'list', '--json'], ]); @@ -327,19 +325,6 @@ test('fresh installs support all Claude scopes while hook preferences stay user- } }); -test('fresh installs pass disabled hooks to the provider before activation', () => { - withFixture({}, fixture => { - setupClaudePlugin(setupOptions(fixture, { scope: 'user', hooks: 'off' })); - const install = readCalls(fixture).find(argv => argv[1] === 'install'); - assert.deepStrictEqual(install, [ - 'plugin', 'install', 'ecc@ecc', '--scope', 'user', - '--config', 'hooks_enabled=false', '--config', 'hook_profile=standard', - ]); - const settings = JSON.parse(fs.readFileSync(fixture.settingsPath, 'utf8')); - assert.strictEqual(settings.pluginConfigs['ecc@ecc'].options.hooks_enabled, false); - }); -}); - test('same-scope repeat setup updates ECC and changes durable user hook preferences', () => { withFixture({ plugins: [installedPlugin('local')], @@ -747,8 +732,6 @@ test('provider failures stop later operations and leave settings untouched', () const installArgv = [ 'plugin', 'install', 'ecc@ecc', '--scope', 'user', - '--config', 'hooks_enabled=true', - '--config', 'hook_profile=standard', ]; withFixture({ failures: [{ diff --git a/tests/scripts/antigravity-hook-bridge.test.js b/tests/scripts/antigravity-hook-bridge.test.js index 2393607ba..2566de33b 100644 --- a/tests/scripts/antigravity-hook-bridge.test.js +++ b/tests/scripts/antigravity-hook-bridge.test.js @@ -23,6 +23,7 @@ async function invoke({ hook = 'pre:edit-write:gateguard-fact-force', mode = 'pr './doc-file-warning': { run }, './post-edit-accumulator': { run }, './stop-format-typecheck': { run }, + '../lib/hook-flags': { isHookEnabled: () => true, isDryRun: () => false }, './hook-input': { resolveMaxStdin: () => 1024, readStdinRaw: async () => { if (readError) throw new Error('read failed'); return { raw, truncated }; }, diff --git a/tests/scripts/antigravity-native-plugin.test.js b/tests/scripts/antigravity-native-plugin.test.js index 26d1706c3..28f069127 100644 --- a/tests/scripts/antigravity-native-plugin.test.js +++ b/tests/scripts/antigravity-native-plugin.test.js @@ -10,15 +10,17 @@ const { applyInstallPlan } = require('../../scripts/lib/install/apply'); const { withHookConsent } = require('../../scripts/lib/install/hook-consent'); const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-agy-native-')); +const loaderHome = path.join(root, 'loader-home'); +fs.mkdirSync(loaderHome); // Only pass filesystem locations owned by this test; never inherit authentication. const env = { PATH: process.env.PATH, - HOME: root, - USERPROFILE: root, - XDG_CONFIG_HOME: path.join(root, '.config'), - XDG_DATA_HOME: path.join(root, '.local', 'share'), - XDG_CACHE_HOME: path.join(root, '.cache'), - ...(process.platform === 'win32' ? { SystemRoot: process.env.SystemRoot, APPDATA: root, LOCALAPPDATA: root } : {}), + HOME: loaderHome, + USERPROFILE: loaderHome, + XDG_CONFIG_HOME: path.join(loaderHome, '.config'), + XDG_DATA_HOME: path.join(loaderHome, '.local', 'share'), + XDG_CACHE_HOME: path.join(loaderHome, '.cache'), + ...(process.platform === 'win32' ? { SystemRoot: process.env.SystemRoot, APPDATA: loaderHome, LOCALAPPDATA: loaderHome } : {}), }; function agy(args) { @@ -42,7 +44,7 @@ try { profileId: 'core', target: 'antigravity-home', projectRoot: path.join(root, 'workspace'), - homeDir: root, + homeDir: path.join(root, 'install-home'), }), 'enabled'); applyInstallPlan(plan); assert.ok(fs.existsSync(path.join(plan.targetRoot, 'plugin.json'))); diff --git a/tests/scripts/codex-hooks.test.js b/tests/scripts/codex-hooks.test.js index fc31f103d..85e2f31af 100644 --- a/tests/scripts/codex-hooks.test.js +++ b/tests/scripts/codex-hooks.test.js @@ -493,7 +493,6 @@ function runHermeticPythonPrePush({ ECC_PREPUSH_RUN_CHECKS: '1', ECC_SKIP_GIT_HOOKS: '0', ECC_SKIP_PREPUSH: '0', - ECC_PREPUSH_RUN_CHECKS: '1', MSYS_NO_PATHCONV: '1', ...(venvDir === null || trackVenv ? {} : { VIRTUAL_ENV: toBashPath(venvDir) }), ...(override === null ? {} : { ECC_PYTEST_CMD: override }), From dcacfd6eab249d2242be9810567c716d58fffb5a Mon Sep 17 00:00:00 2001 From: MohamedAfrash <afrazzz51@gmail.com> Date: Tue, 13 Oct 2026 16:44:26 +0100 Subject: [PATCH 37/78] test: reproduce Antigravity opt-out and Stop workspace regressions RED: enabled-to-declined reinstalls retain executable hooks for both targets, including legacy bridges; Stop diagnostics inspect launch cwd instead of payload workspace. Add current/legacy/re-enable/fresh consent controls and disposable workspace diagnostics. --- tests/lib/antigravity-hook-consent.test.js | 102 ++++++++++++++++++ tests/scripts/antigravity-hook-policy.test.js | 35 +++++- 2 files changed, 136 insertions(+), 1 deletion(-) create mode 100644 tests/lib/antigravity-hook-consent.test.js diff --git a/tests/lib/antigravity-hook-consent.test.js b/tests/lib/antigravity-hook-consent.test.js new file mode 100644 index 000000000..97570ac5d --- /dev/null +++ b/tests/lib/antigravity-hook-consent.test.js @@ -0,0 +1,102 @@ +'use strict'; + +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const os = require('node:os'); +const path = require('node:path'); +const { spawnSync } = require('node:child_process'); +const { test } = require('node:test'); +const { createManifestInstallPlan } = require('../../scripts/lib/install/plan'); +const { applyInstallPlan } = require('../../scripts/lib/install/apply'); +const { withHookConsent } = require('../../scripts/lib/install/hook-consent'); + +for (const target of ['antigravity', 'antigravity-home']) { + for (const legacy of [false, true]) { + test(`${target} revokes ${legacy ? 'legacy' : 'current'} hooks and can re-enable them`, () => { + const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-hook-consent-')); + try { + const options = { moduleIds: ['hooks-runtime'], target, homeDir: root, projectRoot: root }; + const enabled = withHookConsent(createManifestInstallPlan(options), 'enabled'); + applyInstallPlan(enabled); + const hooksPath = path.join(enabled.targetRoot, 'hooks.json'); + const setupPath = path.join(enabled.targetRoot, 'ecc', 'setup.json'); + const bridgePath = path.join(enabled.targetRoot, 'scripts', 'hooks', 'antigravity-hook-bridge.js'); + const marker = path.join(root, 'hook-ran'); + // Simulate an already installed bridge that predates managed flag support. + if (legacy) { + fs.rmSync(setupPath); + fs.writeFileSync(bridgePath, `require('node:fs').writeFileSync(${JSON.stringify(marker)}, 'ran');`); + } + const config = JSON.parse(fs.readFileSync(hooksPath, 'utf8')); + const userHook = { Stop: [{ type: 'command', command: 'user-selected-hook' }] }; + fs.writeFileSync(hooksPath, JSON.stringify({ ...config, 'user-hook': userHook })); + applyInstallPlan(withHookConsent(createManifestInstallPlan(options), 'declined')); + const declined = JSON.parse(fs.readFileSync(hooksPath, 'utf8')); + assert.deepEqual(declined['user-hook'], userHook); + for (const handler of declined['ecc-guard']?.PostToolUse || []) { + for (const hook of handler.hooks || []) { + const result = spawnSync(hook.command, { + shell: true, cwd: root, encoding: 'utf8', + input: JSON.stringify({ toolCall: { name: 'write_to_file', args: { TargetFile: path.join(root, 'file.js') } } }), + }); + assert.equal(result.status, 0, result.stderr); + } + } + assert.equal(fs.existsSync(marker), false, 'Declined legacy hook must not execute'); + assert.equal(Object.hasOwn(declined, 'ecc-guard'), false); + assert.equal(JSON.parse(fs.readFileSync(setupPath, 'utf8')).hooks.enabled, false); + applyInstallPlan(withHookConsent(createManifestInstallPlan(options), 'declined')); + assert.deepEqual(JSON.parse(fs.readFileSync(hooksPath, 'utf8'))['user-hook'], userHook); + applyInstallPlan(withHookConsent(createManifestInstallPlan(options), 'enabled')); + assert.ok(JSON.parse(fs.readFileSync(hooksPath, 'utf8'))['ecc-guard']); + assert.equal(JSON.parse(fs.readFileSync(setupPath, 'utf8')).hooks.enabled, true); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + } + + for (const unsafe of ['modified-hooks', 'symlinked-setup']) { + test(`${target} refuses ${unsafe} before recording declined consent`, () => { + const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-unsafe-revocation-')); + try { + const options = { moduleIds: ['hooks-runtime'], target, homeDir: root, projectRoot: root }; + const enabled = withHookConsent(createManifestInstallPlan(options), 'enabled'); + applyInstallPlan(enabled); + const hooksPath = path.join(enabled.targetRoot, 'hooks.json'); + const setupPath = path.join(enabled.targetRoot, 'ecc', 'setup.json'); + const original = fs.readFileSync(hooksPath, 'utf8'); + if (unsafe === 'modified-hooks') { + const hooks = JSON.parse(original); + fs.writeFileSync(hooksPath, JSON.stringify({ + ...hooks, 'ecc-guard': { ...hooks['ecc-guard'], Stop: [{ command: 'user-customized-hook' }] }, + })); + } else { + fs.rmSync(setupPath); + fs.symlinkSync(path.join(root, 'outside.json'), setupPath); + } + const before = fs.readFileSync(hooksPath, 'utf8'); + assert.throws(() => applyInstallPlan(withHookConsent(createManifestInstallPlan(options), 'declined')), + /modified Antigravity hooks|symlink|outside the install root/i); + assert.equal(fs.readFileSync(hooksPath, 'utf8'), before); + assert.equal(fs.existsSync(path.join(root, 'outside.json')), false); + assert.equal(JSON.parse(fs.readFileSync(enabled.installStatePath, 'utf8')).request.hookConsent, 'enabled'); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); + } + + test(`${target} fresh declined installation creates no hook runtime`, () => { + const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-fresh-declined-')); + try { + const plan = withHookConsent(createManifestInstallPlan({ moduleIds: ['hooks-runtime'], target, homeDir: root, projectRoot: root }), 'declined'); + applyInstallPlan(plan); + assert.equal(fs.existsSync(path.join(plan.targetRoot, 'hooks.json')), false); + assert.equal(fs.existsSync(path.join(plan.targetRoot, 'ecc', 'setup.json')), false); + assert.equal(fs.existsSync(path.join(plan.targetRoot, 'scripts', 'hooks')), false); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); +} diff --git a/tests/scripts/antigravity-hook-policy.test.js b/tests/scripts/antigravity-hook-policy.test.js index 0bd564ac9..0d791fdf1 100644 --- a/tests/scripts/antigravity-hook-policy.test.js +++ b/tests/scripts/antigravity-hook-policy.test.js @@ -4,7 +4,7 @@ const assert = require('node:assert/strict'); const fs = require('node:fs'); const os = require('node:os'); const path = require('node:path'); -const { spawnSync } = require('node:child_process'); +const { spawnSync, execFileSync } = require('node:child_process'); const { test } = require('node:test'); const { buildAntigravityHooksConfig } = require('../../scripts/lib/antigravity-hooks'); @@ -109,3 +109,36 @@ test('managed profile is used unless an explicit environment choice overrides it fs.rmSync(root, { recursive: true, force: true }); } }); + +test('Stop diagnostics inspect the payload workspace rather than the launch directory', () => { + const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-agy-stop-cwd-')); + try { + const workspace = path.join(root, 'workspace'); + const unrelated = path.join(root, 'unrelated'); + const env = { + ...process.env, ECC_HOOK_PROFILE: 'standard', ECC_HOOKS_ENABLED: 'true', + ECC_DISABLED_HOOKS: '', ECC_DRY_RUN: '0', ECC_HOOK_CONFIG: '', + GIT_CONFIG_GLOBAL: path.join(root, 'no-global-config'), GIT_CONFIG_NOSYSTEM: '1', + }; + for (const [dir, name] of [[workspace, 'intended.js'], [unrelated, 'unrelated.js']]) { + fs.mkdirSync(dir); + execFileSync('git', ['init', '--quiet', dir], { env }); + fs.writeFileSync(path.join(dir, name), 'const value = 1;\n'); + execFileSync('git', ['-C', dir, 'add', name], { env }); + fs.appendFileSync(path.join(dir, name), 'console.log(value);\n'); + } + for (const cwd of [root, unrelated]) { + const child = spawnSync(process.execPath, [bridge, '--mode', 'stop', '--hook', 'stop:check-console-log'], { + cwd, env, encoding: 'utf8', timeout: 15000, + input: JSON.stringify({ workspacePaths: [workspace], fullyIdle: true }), + }); + assert.equal(child.status, 0, child.stderr); + const response = JSON.parse(child.stdout); + assert.equal(response.decision, 'continue'); + assert.match(response.reason, /intended\.js/); + assert.doesNotMatch(response.reason, /unrelated\.js/); + } + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } +}); From 80558fe144e8de82fd74426c09bc54f38b3a6e7d Mon Sep 17 00:00:00 2001 From: MohamedAfrash <afrazzz51@gmail.com> Date: Tue, 13 Oct 2026 16:55:26 +0100 Subject: [PATCH 38/78] fix: deactivate opted-out Antigravity hooks and use workspace diagnostics GREEN: 14 consent cases cover current/legacy upgrades, fresh decline, re-enable, retry, dry-run and symlink races; 48 installer checks and 8 MCP policy cases pass. Stop workspace regression fails under original execution and passes with payload cwd; uninstall defaults match discovery. Keep deactivation operations ephemeral and use guarded no-follow CAS writes before recording declined consent. Preserve custom user namespaces and refuse modified ECC registrations. Native test emits countable pass/skip summaries. --- docs/ANTIGRAVITY-GUIDE.md | 4 + scripts/hooks/antigravity-hook-bridge.js | 1 + scripts/lib/install-lifecycle.js | 13 ++- scripts/lib/install/apply.js | 97 ++++++++++++++++++- scripts/lib/install/hook-consent.js | 6 ++ tests/lib/antigravity-hook-consent.test.js | 54 +++++++++-- tests/lib/antigravity-lifecycle.test.js | 26 ++++- tests/scripts/antigravity-hook-policy.test.js | 2 + .../scripts/antigravity-native-plugin.test.js | 2 + 9 files changed, 190 insertions(+), 15 deletions(-) diff --git a/docs/ANTIGRAVITY-GUIDE.md b/docs/ANTIGRAVITY-GUIDE.md index 0ca21be6a..87e16b584 100644 --- a/docs/ANTIGRAVITY-GUIDE.md +++ b/docs/ANTIGRAVITY-GUIDE.md @@ -184,6 +184,10 @@ so they also work when Antigravity runs from another workspace. Project-local hooks use the same runtime; select `--profile core --enable-hooks` with `--target antigravity`. Use `--no-hooks` to omit automatic hooks. +On reinstall, `--no-hooks` also deactivates previously installed ECC hooks, +including legacy bridges. Other hook namespaces are preserved. If the managed +`ecc-guard` registration was customized, installation refuses the change; +review that customization before retrying. Choose a hook profile at installation with the existing environment setting, for example `ECC_HOOK_PROFILE=minimal "$ECC_ROOT/install.sh" --target antigravity-home --profile core --enable-hooks`. The installer retains it in managed `ecc/setup.json` for runtime execution. diff --git a/scripts/hooks/antigravity-hook-bridge.js b/scripts/hooks/antigravity-hook-bridge.js index 5d2699298..485a2c457 100644 --- a/scripts/hooks/antigravity-hook-bridge.js +++ b/scripts/hooks/antigravity-hook-bridge.js @@ -178,6 +178,7 @@ async function main() { if (stopScript) { const child = spawnSync(process.execPath, [path.join(__dirname, stopScript)], { input: eccJsonString, + cwd: eccPayload.cwd || undefined, encoding: 'utf8', timeout: options.hook === 'stop:format-typecheck' ? 280000 : 25000, }); diff --git a/scripts/lib/install-lifecycle.js b/scripts/lib/install-lifecycle.js index 76805cfc6..391d1bc0b 100644 --- a/scripts/lib/install-lifecycle.js +++ b/scripts/lib/install-lifecycle.js @@ -1951,11 +1951,14 @@ function repairInstalledStates(options = {}) { function uninstallInstalledStates(options = {}) { - const records = discoverInstalledStates({ - homeDir: options.homeDir, - projectRoot: options.projectRoot, - targets: options.targets, + const context = { + homeDir: options.homeDir || process.env.HOME || os.homedir(), + projectRoot: options.projectRoot || process.cwd(), env: resolveInvocationEnvironment(options), + }; + const records = discoverInstalledStates({ + ...context, + targets: options.targets, }).filter(record => record.exists); const results = records.map(record => { @@ -2014,7 +2017,7 @@ function uninstallInstalledStates(options = {}) { const adapter = record.adapter && getInstallTargetAdapter(record.adapter.id || record.adapter.target); const trustedRoots = adapter && typeof adapter.resolveTrustedRoots === 'function' - ? adapter.resolveTrustedRoots({ homeDir: options.homeDir, projectRoot: options.projectRoot }) + ? adapter.resolveTrustedRoots(context) : [record.targetRoot]; const { isScriptBoundary, retainScriptBoundary } = require('./install/opencode-script-boundary'); diff --git a/scripts/lib/install/apply.js b/scripts/lib/install/apply.js index 82fef1ffd..9c955029d 100644 --- a/scripts/lib/install/apply.js +++ b/scripts/lib/install/apply.js @@ -3,6 +3,7 @@ const crypto = require('crypto'); const fs = require('fs'); const path = require('path'); +const { isDeepStrictEqual } = require('util'); const { hasExplicitCommitAttributionPreference, @@ -18,6 +19,7 @@ const { getOpenCodeSourceActivationKind, planMaterializesHookRuntime, shouldDisableOpenCodeHooks, + shouldDisableAntigravityHooks, } = require('./hook-consent'); const { getClaudeSettingsPath, @@ -83,10 +85,10 @@ function buildLinkIndexForPlan(plan) { return buildInstallIndex(mappings); } -function readJsonObject(filePath, label) { +function readJsonObject(filePath, label, readContent = () => fs.readFileSync(filePath, 'utf8')) { let parsed; try { - parsed = JSON.parse(fs.readFileSync(filePath, 'utf8')); + parsed = JSON.parse(readContent()); } catch (error) { const wrappedError = new Error(`Failed to parse ${label} at ${filePath}: ${error.message}`); wrappedError.code = error.code; @@ -629,6 +631,68 @@ function preflightClaudeSettingsOperations(plan) { })); } +function withoutManagedAntigravityHooks(plan, operation) { + const content = readInstalledFileNoFollow(plan, operation); + const config = content === null ? {} : JSON.parse(content.toString('utf8')); + if (!config || typeof config !== 'object' || Array.isArray(config)) { + throw new Error(`Invalid Antigravity hooks config: ${operation.destinationPath}`); + } + if (Object.hasOwn(config, 'ecc-guard') + && !isDeepStrictEqual(config['ecc-guard'], operation.mergePayload?.['ecc-guard'])) { + throw new Error(`Refusing to disable modified Antigravity hooks in ${operation.destinationPath}.`); + } + const userHooks = Object.fromEntries(Object.entries(config).filter(([name]) => name !== 'ecc-guard')); + return { + content: formatJson(userHooks), + expectedContent: content === null ? { kind: 'absent' } : { + kind: 'sha256', digest: crypto.createHash('sha256').update(content).digest('hex'), + }, + }; +} + +function prepareAntigravityHookDeactivation(plan, migration, previousState) { + if (!shouldDisableAntigravityHooks(plan)) return migration; + const hooksPath = path.join(plan.targetRoot, 'hooks.json'); + const previousHooks = previousState.operations.find(operation => ( + operation.ownership === 'managed' && operation.kind === 'merge-json' + && operation.moduleId === 'hooks-runtime' + && comparablePath(operation.destinationPath) === comparablePath(hooksPath) + )); + if (!previousHooks) return migration; + const removal = { ...previousHooks, kind: 'remove-antigravity-hooks' }; + // Check before ordinary writes, then re-read at the guarded write boundary. + withoutManagedAntigravityHooks(plan, removal); + const disabledSetup = { + ...previousHooks, + kind: 'merge-json', + destinationPath: path.join(plan.targetRoot, 'ecc', 'setup.json'), + mergePayload: { hooks: { enabled: false } }, + }; + assertSafeInstallOperation(plan, disabledSetup); + readOptionalJsonObject(disabledSetup.destinationPath, 'managed hook setup'); + const changed = new Set([hooksPath, disabledSetup.destinationPath].map(comparablePath)); + return { + ...migration, + appliedOperations: [ + ...migration.appliedOperations, removal, + { ...disabledSetup, kind: 'disable-antigravity-hook-setup' }, + ], + warnings: [...migration.warnings, 'Disabling previously installed Antigravity hooks; preserving user hook namespaces.'], + finalState: { + ...migration.finalState, + operations: [ + ...migration.finalState.operations.filter(operation => !changed.has(comparablePath(operation.destinationPath))), + { ...previousHooks, mergePayload: {} }, disabledSetup, + ], + }, + bridgeState: { + ...migration.bridgeState, + request: { ...migration.bridgeState.request, hookConsent: getRecordedHookConsent(previousState) }, + }, + requiresBridgeState: true, + }; +} + function prepareHookConsentMigration(plan, migration) { if (shouldDisableOpenCodeHooks(plan) && migration.requiresBridgeState) { const previousState = readPreviousInstallState(plan); @@ -658,6 +722,9 @@ function prepareHookConsentMigration(plan, migration) { if (!previousState) { return migration; } + if (shouldDisableAntigravityHooks(plan)) { + return prepareAntigravityHookDeactivation(plan, migration, previousState); + } const removals = (previousState.operations || []) .filter(operation => operation.kind === 'update-claude-settings') @@ -845,6 +912,32 @@ function applyInstallPlanLocked(plan, dependencies = {}, settingsLockHeld = fals } assertOpenCodeActivationUnchanged(appliedPlan, operation, activationSnapshot); + if (['remove-antigravity-hooks', 'disable-antigravity-hook-setup'].includes(operation.kind)) { + const current = operation.kind === 'disable-antigravity-hook-setup' + ? readInstalledFileNoFollow(appliedPlan, operation) : null; + const disabled = operation.kind === 'remove-antigravity-hooks' + ? withoutManagedAntigravityHooks(appliedPlan, operation) + : { + content: formatJson(deepMergeJson( + readJsonObject(operation.destinationPath, 'managed hook setup', () => current || '{}'), + operation.mergePayload + )), + expectedContent: current === null ? { kind: 'absent' } : { + kind: 'sha256', digest: crypto.createHash('sha256').update(current).digest('hex'), + }, + }; + writeFileNoFollow(operation.destinationPath, disabled.content, { + action: 'disable Antigravity hooks', + expectedContent: disabled.expectedContent, + validateDestination(destinationPath) { + assertSafeInstallOperation(appliedPlan, { destinationPath }); + return destinationPath; + }, + }); + writtenDestinations.add(operation.destinationPath); + continue; + } + if ( operation.kind === 'update-claude-settings' || operation.kind === 'remove-claude-settings-hooks' diff --git a/scripts/lib/install/hook-consent.js b/scripts/lib/install/hook-consent.js index c7a82a227..9fcc0a49f 100644 --- a/scripts/lib/install/hook-consent.js +++ b/scripts/lib/install/hook-consent.js @@ -216,6 +216,11 @@ function shouldDisableOpenCodeHooks(plan = {}) { && (plan.hookConsent === 'declined' || !planSelectsHookRuntime(plan)); } +function shouldDisableAntigravityHooks(plan = {}) { + return ['antigravity', 'antigravity-home'].includes(plan.target) + && plan.hookConsent === 'declined'; +} + function setStatePreviewHookConsent(statePreview, hookConsent) { if (!statePreview || !statePreview.request) { return statePreview; @@ -340,5 +345,6 @@ module.exports = { planMaterializesHookRuntime, resolveHookConsentFlags, shouldDisableOpenCodeHooks, + shouldDisableAntigravityHooks, withHookConsent, }; diff --git a/tests/lib/antigravity-hook-consent.test.js b/tests/lib/antigravity-hook-consent.test.js index 97570ac5d..88ad5f163 100644 --- a/tests/lib/antigravity-hook-consent.test.js +++ b/tests/lib/antigravity-hook-consent.test.js @@ -7,7 +7,8 @@ const path = require('node:path'); const { spawnSync } = require('node:child_process'); const { test } = require('node:test'); const { createManifestInstallPlan } = require('../../scripts/lib/install/plan'); -const { applyInstallPlan } = require('../../scripts/lib/install/apply'); +const { applyInstallPlan, previewInstallPlan } = require('../../scripts/lib/install/apply'); +const { readInstallState } = require('../../scripts/lib/install-state'); const { withHookConsent } = require('../../scripts/lib/install/hook-consent'); for (const target of ['antigravity', 'antigravity-home']) { @@ -30,7 +31,13 @@ for (const target of ['antigravity', 'antigravity-home']) { const config = JSON.parse(fs.readFileSync(hooksPath, 'utf8')); const userHook = { Stop: [{ type: 'command', command: 'user-selected-hook' }] }; fs.writeFileSync(hooksPath, JSON.stringify({ ...config, 'user-hook': userHook })); - applyInstallPlan(withHookConsent(createManifestInstallPlan(options), 'declined')); + const declinePlan = withHookConsent(createManifestInstallPlan(options), 'declined'); + const beforePreview = fs.readFileSync(hooksPath, 'utf8'); + const preview = previewInstallPlan(declinePlan); + assert.ok(preview.operations.some(operation => operation.kind === 'remove-antigravity-hooks')); + assert.ok(preview.warnings.some(warning => /disabl.*Antigravity hooks/i.test(warning))); + assert.equal(fs.readFileSync(hooksPath, 'utf8'), beforePreview); + applyInstallPlan(declinePlan); const declined = JSON.parse(fs.readFileSync(hooksPath, 'utf8')); assert.deepEqual(declined['user-hook'], userHook); for (const handler of declined['ecc-guard']?.PostToolUse || []) { @@ -45,6 +52,7 @@ for (const target of ['antigravity', 'antigravity-home']) { assert.equal(fs.existsSync(marker), false, 'Declined legacy hook must not execute'); assert.equal(Object.hasOwn(declined, 'ecc-guard'), false); assert.equal(JSON.parse(fs.readFileSync(setupPath, 'utf8')).hooks.enabled, false); + assert.equal(readInstallState(enabled.installStatePath).request.hookConsent, 'declined'); applyInstallPlan(withHookConsent(createManifestInstallPlan(options), 'declined')); assert.deepEqual(JSON.parse(fs.readFileSync(hooksPath, 'utf8'))['user-hook'], userHook); applyInstallPlan(withHookConsent(createManifestInstallPlan(options), 'enabled')); @@ -56,8 +64,11 @@ for (const target of ['antigravity', 'antigravity-home']) { }); } - for (const unsafe of ['modified-hooks', 'symlinked-setup']) { - test(`${target} refuses ${unsafe} before recording declined consent`, () => { + for (const unsafe of ['modified-hooks', 'symlinked-setup', 'swapped-setup']) { + test(`${target} refuses ${unsafe} before recording declined consent`, { + skip: process.platform === 'win32' && unsafe !== 'modified-hooks' + ? 'Creating file symlinks requires Windows developer mode or elevation' : false, + }, () => { const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-unsafe-revocation-')); try { const options = { moduleIds: ['hooks-runtime'], target, homeDir: root, projectRoot: root }; @@ -71,14 +82,21 @@ for (const target of ['antigravity', 'antigravity-home']) { fs.writeFileSync(hooksPath, JSON.stringify({ ...hooks, 'ecc-guard': { ...hooks['ecc-guard'], Stop: [{ command: 'user-customized-hook' }] }, })); - } else { + } else if (unsafe === 'symlinked-setup') { fs.rmSync(setupPath); fs.symlinkSync(path.join(root, 'outside.json'), setupPath); } const before = fs.readFileSync(hooksPath, 'utf8'); - assert.throws(() => applyInstallPlan(withHookConsent(createManifestInstallPlan(options), 'declined')), + assert.throws(() => applyInstallPlan(withHookConsent(createManifestInstallPlan(options), 'declined'), { + beforeOperationWrite({ operation }) { + if (unsafe === 'swapped-setup' && operation.destinationPath === setupPath) { + fs.rmSync(setupPath); + fs.symlinkSync(path.join(root, 'outside.json'), setupPath); + } + }, + }), /modified Antigravity hooks|symlink|outside the install root/i); - assert.equal(fs.readFileSync(hooksPath, 'utf8'), before); + if (unsafe !== 'swapped-setup') assert.equal(fs.readFileSync(hooksPath, 'utf8'), before); assert.equal(fs.existsSync(path.join(root, 'outside.json')), false); assert.equal(JSON.parse(fs.readFileSync(enabled.installStatePath, 'utf8')).request.hookConsent, 'enabled'); } finally { @@ -99,4 +117,26 @@ for (const target of ['antigravity', 'antigravity-home']) { fs.rmSync(root, { recursive: true, force: true }); } }); + + test(`${target} failed deactivation does not record declined consent`, () => { + const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-decline-failure-')); + try { + const options = { moduleIds: ['hooks-runtime'], target, homeDir: root, projectRoot: root }; + const enabled = withHookConsent(createManifestInstallPlan(options), 'enabled'); + applyInstallPlan(enabled); + const declined = withHookConsent(createManifestInstallPlan(options), 'declined'); + assert.throws(() => applyInstallPlan(declined, { + beforeOperationWrite({ operation }) { + if (operation.destinationPath === path.join(enabled.targetRoot, 'ecc', 'setup.json')) { + throw new Error('injected setup write failure'); + } + }, + }), /injected setup write failure/); + assert.equal(readInstallState(enabled.installStatePath).request.hookConsent, 'enabled'); + applyInstallPlan(declined); + assert.equal(readInstallState(enabled.installStatePath).request.hookConsent, 'declined'); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } + }); } diff --git a/tests/lib/antigravity-lifecycle.test.js b/tests/lib/antigravity-lifecycle.test.js index 0851c3019..4ee9801b8 100644 --- a/tests/lib/antigravity-lifecycle.test.js +++ b/tests/lib/antigravity-lifecycle.test.js @@ -104,7 +104,31 @@ try { assert.strictEqual(rootSymlinkRepair.status, 'error'); assert.strictEqual(rootSymlinkUninstall.status, 'error'); assert.strictEqual(fs.readFileSync(externalWorkflow, 'utf8'), externalContent); - console.log('Results: Passed: 5, Failed: 0'); + + const defaultHome = path.join(fixtureRoot, 'default-home'); + const defaultProject = path.join(fixtureRoot, 'default-project'); + fs.mkdirSync(defaultHome); + fs.mkdirSync(defaultProject); + applyInstallPlan(withHookConsent(createManifestInstallPlan({ + profileId: 'core', + target: 'antigravity', + homeDir: defaultHome, + projectRoot: defaultProject, + }), 'enabled')); + const previousHome = process.env.HOME; + const previousCwd = process.cwd(); + try { + process.env.HOME = defaultHome; + process.chdir(defaultProject); + const defaultUninstall = uninstallInstalledStates({ targets: ['antigravity'] }).results[0]; + assert.strictEqual(defaultUninstall.status, 'uninstalled', defaultUninstall.error); + assert.ok(!fs.existsSync(path.join(defaultProject, '.agents', 'ecc-install-state.json'))); + } finally { + process.chdir(previousCwd); + if (previousHome === undefined) delete process.env.HOME; + else process.env.HOME = previousHome; + } + console.log('Results: Passed: 6, Failed: 0'); } finally { fs.rmSync(fixtureRoot, { recursive: true, force: true }); } diff --git a/tests/scripts/antigravity-hook-policy.test.js b/tests/scripts/antigravity-hook-policy.test.js index 0d791fdf1..f232c269f 100644 --- a/tests/scripts/antigravity-hook-policy.test.js +++ b/tests/scripts/antigravity-hook-policy.test.js @@ -125,6 +125,8 @@ test('Stop diagnostics inspect the payload workspace rather than the launch dire execFileSync('git', ['init', '--quiet', dir], { env }); fs.writeFileSync(path.join(dir, name), 'const value = 1;\n'); execFileSync('git', ['-C', dir, 'add', name], { env }); + execFileSync('git', ['-C', dir, '-c', 'user.name=ECC fixture', '-c', 'user.email=fixture@example.invalid', + '-c', 'commit.gpgSign=false', 'commit', '--quiet', '-m', 'fixture'], { env }); fs.appendFileSync(path.join(dir, name), 'console.log(value);\n'); } for (const cwd of [root, unrelated]) { diff --git a/tests/scripts/antigravity-native-plugin.test.js b/tests/scripts/antigravity-native-plugin.test.js index 28f069127..241e1d1d3 100644 --- a/tests/scripts/antigravity-native-plugin.test.js +++ b/tests/scripts/antigravity-native-plugin.test.js @@ -37,6 +37,7 @@ try { const version = agy(['--version']); if (version.error?.code === 'ENOENT' || (version.status === 0 && version.stdout.trim() !== '1.2.9')) { console.log(`SKIP: native plugin validation requires installed agy 1.2.9 (found ${version.stdout?.trim() || 'none'}); no download attempted.`); + console.log('Results: Passed: 0, Failed: 0'); } else { assert.strictEqual(version.status, 0, version.error?.message || version.stderr); const plan = withHookConsent(createManifestInstallPlan({ @@ -58,6 +59,7 @@ try { assert.ok(plugin.components.includes('mcpServers'), 'Native importer must register ECC memory'); console.log('PASS: agy 1.2.9 validates and imports the generated ECC plugin in a disposable HOME.'); console.log('NOT CHECKED: authenticated tool execution, Stop execution, and automatic IDE discovery.'); + console.log('Results: Passed: 1, Failed: 0'); } } finally { fs.rmSync(root, { recursive: true, force: true }); From ef1e82311b6ef50330d0edd2dcc4c8ae61f8ff04 Mon Sep 17 00:00:00 2001 From: Tivonsico <173276029+Tivonsico@users.noreply.github.com> Date: Thu, 15 Oct 2026 09:13:53 +0800 Subject: [PATCH 39/78] fix(worktrees): preserve exact lifecycle worktree paths --- scripts/lib/worktree-lifecycle/git.js | 12 +++--- scripts/worktree-lifecycle.js | 2 + tests/lib/worktree-lifecycle.test.js | 62 ++++++++++++++++++++++++--- 3 files changed, 65 insertions(+), 11 deletions(-) mode change 100755 => 100644 scripts/worktree-lifecycle.js diff --git a/scripts/lib/worktree-lifecycle/git.js b/scripts/lib/worktree-lifecycle/git.js index 86f09fa1e..acf9e13a1 100644 --- a/scripts/lib/worktree-lifecycle/git.js +++ b/scripts/lib/worktree-lifecycle/git.js @@ -60,23 +60,23 @@ function createGitRunner(repoRoot, runImpl = defaultRunImpl) { return succeeds(['show-ref', '--verify', '--quiet', `refs/heads/${branch}`]); }, - // Porcelain worktree list -> [{ path, branch, head, detached, bare }] + // Git 2.36+ NUL-delimited porcelain preserves whitespace within paths. listWorktrees() { - const result = run(['worktree', 'list', '--porcelain']); + const result = run(['worktree', 'list', '--porcelain', '-z']); if (result.status !== 0) { - return []; + const reason = (result.stderr || '').trim() || `git exited with status ${result.status}`; + throw new Error(`Unable to list worktrees safely (Git 2.36+ required): ${reason}`); } const worktrees = []; let current = null; - for (const rawLine of (result.stdout || '').split('\n')) { - const line = rawLine.trim(); + for (const line of (result.stdout || '').split('\0')) { if (line.startsWith('worktree ')) { if (current) { worktrees.push(current); } - current = { path: line.slice('worktree '.length).trim(), branch: null, head: null, detached: false, bare: false }; + current = { path: line.slice('worktree '.length), branch: null, head: null, detached: false, bare: false }; } else if (current && line.startsWith('branch ')) { current.branch = line.slice('branch '.length).replace(/^refs\/heads\//, '').trim(); } else if (current && line.startsWith('HEAD ')) { diff --git a/scripts/worktree-lifecycle.js b/scripts/worktree-lifecycle.js old mode 100755 new mode 100644 index 36d7d0ed5..ce64a02e4 --- a/scripts/worktree-lifecycle.js +++ b/scripts/worktree-lifecycle.js @@ -55,6 +55,8 @@ function usage() { 'conflicts without touching the working tree (git merge-tree) and proposes', 'a safe cleanup plan that never removes dirty or unmerged worktrees.', '', + 'Requires Git 2.36+ for NUL-delimited worktree paths.', + '', 'Options:', ' --json Print the full ecc.worktree-lifecycle.v1 report as JSON', ' --conflicts Only show worktrees that would conflict on merge', diff --git a/tests/lib/worktree-lifecycle.test.js b/tests/lib/worktree-lifecycle.test.js index 12cb2560e..c8d721e6a 100644 --- a/tests/lib/worktree-lifecycle.test.js +++ b/tests/lib/worktree-lifecycle.test.js @@ -83,12 +83,12 @@ test('classifyWorktree maps git facts to lifecycle states', () => { test('git.listWorktrees parses porcelain output', () => { const git = fakeGit('/repo', { - 'worktree list --porcelain': { + 'worktree list --porcelain -z': { stdout: [ 'worktree /repo', 'HEAD abc', 'branch refs/heads/main', '', 'worktree /repo/.wt/feature', 'HEAD def', 'branch refs/heads/feature', '', 'worktree /repo/.wt/detached', 'HEAD 999', 'detached', '' - ].join('\n') + ].join('\0') } }); const list = git.listWorktrees(); @@ -114,6 +114,17 @@ test('git.predictMergeConflicts: clean merge (exit 0) and conflict (exit !=0)', assert.deepStrictEqual(result.files, ['src/app.js', 'src/util.js']); }); +test('git.listWorktrees fails instead of returning an empty successful listing', () => { + for (const result of [ + { status: 129, stdout: '', stderr: "error: unknown switch `z'" }, + { status: 128, stdout: '', stderr: 'fatal: not a git repository' } + ]) { + const git = createGitRunner('/repo', () => result); + assert.throws(() => git.listWorktrees(), error => + error.message.includes('Git 2.36+') && error.message.includes(result.stderr)); + } +}); + test('git.aheadBehind + lastCommitMs parse rev-list/log output', () => { const git = fakeGit('/repo', { 'rev-list --left-right --count main...feature': { stdout: '3\t5\n' }, @@ -129,7 +140,7 @@ function fullRepoGit() { const recent = Math.floor((NOW - 1 * DAY) / 1000); const old = Math.floor((NOW - 30 * DAY) / 1000); return fakeGit('/repo', { - 'worktree list --porcelain': { + 'worktree list --porcelain -z': { stdout: [ 'worktree /repo', 'HEAD a', 'branch refs/heads/main', '', 'worktree /repo/.wt/ready', 'HEAD b', 'branch refs/heads/ready', '', @@ -137,7 +148,7 @@ function fullRepoGit() { 'worktree /repo/.wt/merged', 'HEAD d', 'branch refs/heads/merged', '', 'worktree /repo/.wt/stale', 'HEAD e', 'branch refs/heads/stale', '', 'worktree /repo/.wt/dirty', 'HEAD f', 'branch refs/heads/dirty', '' - ].join('\n') + ].join('\0') }, // ready: 2 ahead, clean merge 'rev-list --left-right --count main...ready': { stdout: '0\t2\n' }, @@ -222,7 +233,7 @@ test('CLI usage() and main(--help) print help', () => { test('empty-queue branches: no conflicts / no stale render friendly messages', () => { const git = fakeGit('/repo', { - 'worktree list --porcelain': { stdout: 'worktree /repo\nHEAD a\nbranch refs/heads/main\n' } + 'worktree list --porcelain -z': { stdout: 'worktree /repo\0HEAD a\0branch refs/heads/main\0' } }); const report = buildLifecycleReport('/repo', { baseBranch: 'main', nowMs: NOW }, { git }); assert.ok(formatReport(report, { conflictsOnly: true }).includes('No worktrees would conflict')); @@ -230,6 +241,47 @@ test('empty-queue branches: no conflicts / no stale render friendly messages', ( }); +test('real git: whitespace in worktree paths cannot turn dirty work into cleanup candidates', () => { + if (process.platform === 'win32') { + console.log(' (skipped POSIX newline/trailing-space path fixture on Windows)'); + return; + } + const root = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-wl-paths-'))); + const env = { ...process.env, GIT_CONFIG_NOSYSTEM: '1', GIT_CONFIG_GLOBAL: os.devNull }; + for (const key of ['GIT_DIR', 'GIT_WORK_TREE', 'GIT_INDEX_FILE', 'GIT_COMMON_DIR', 'GIT_PREFIX']) delete env[key]; + const git = args => execFileSync('git', args, { cwd: root, env, encoding: 'utf8' }); + try { + git(['init', '-q', '-b', 'main']); + git(['-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.invalid', + '-c', 'commit.gpgsign=false', 'commit', '-q', '--allow-empty', '-m', 'fixture']); + const fixtures = [ + { name: 'newline\nworker', branch: 'dirty-newline', dirty: true }, + { name: 'trailing ', branch: 'dirty-trailing', dirty: true }, + { name: 'ordinary-clean', branch: 'clean-control', dirty: false } + ]; + for (const fixture of fixtures) { + const directory = path.join(root, fixture.name); + git(['worktree', 'add', '-q', '-b', fixture.branch, directory]); + if (fixture.dirty) fs.writeFileSync(path.join(directory, 'dirty.txt'), 'uncommitted fixture\n'); + } + const report = JSON.parse(execFileSync(process.execPath, [ + path.join(__dirname, '..', '..', 'scripts', 'worktree-lifecycle.js'), '--repo', root, '--json' + ], { env, encoding: 'utf8' })); + const plan = planCleanup(report); + for (const fixture of fixtures) { + const directory = path.join(root, fixture.name); + const worktree = report.worktrees.find(entry => entry.branch === fixture.branch); + assert.strictEqual(worktree.path, directory); + assert.strictEqual(worktree.state, fixture.dirty ? STATES.DIRTY : STATES.MERGED); + assert.strictEqual(worktree.dirty, fixture.dirty); + assert.strictEqual(plan.remove.some(entry => entry.path === directory), !fixture.dirty); + assert.strictEqual(plan.keep.some(entry => entry.path === directory), fixture.dirty); + } + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } +}); + test('real git: createGitRunner drives an actual repo (covers default spawn path)', () => { const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-wl-realgit-')); const cleanEnv = { ...process.env }; From 7300998999cf015d2b1221c6ff11c517b0ae5339 Mon Sep 17 00:00:00 2001 From: legeZZZ <17621286647@163.com> Date: Fri, 16 Oct 2026 00:19:09 +0800 Subject: [PATCH 40/78] fix: decide history availability before staleness; strict YYYY-MM-DD dates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addressing maintainer review (two truthfulness gaps): 1. evaluateSpec gated repository/history availability (no git / not a repo / shallow clone) and per-target history (never committed) BEFORE any age rule. Previously the age check bumped STALE first and the weight table could not let UNVERIFIED override it, so old-date specs in shallow clones or against uncommitted targets were reported STALE — contradicting the documented "shallow clones report UNVERIFIED, never STALE" contract. New fixtures: old-date shallow, no-git, and old-date no-history specs all remain UNVERIFIED. 2. parseVerifiedDate now accepts an exact YYYY-MM-DD only: full-string match (no prefix extraction from arbitrary text), UTC round-trip of components (rejects impossible dates like 2026-02-30 that JS Date silently normalizes), and rejects future dates. Trailing text, impossible dates, and future dates are covered as UNVERIFIED. spec-miner generator intentionally untouched per review: the contract stays explicitly file-level and optional. --- scripts/ci/check-spec-freshness.js | 61 +++++++++++++++--- tests/ci/check-spec-freshness.test.js | 92 +++++++++++++++++++++++++-- 2 files changed, 139 insertions(+), 14 deletions(-) diff --git a/scripts/ci/check-spec-freshness.js b/scripts/ci/check-spec-freshness.js index 0c019846f..da7c3cd29 100644 --- a/scripts/ci/check-spec-freshness.js +++ b/scripts/ci/check-spec-freshness.js @@ -112,7 +112,6 @@ const openspecDir = path.join(projectRoot, 'openspec'); const ENFORCED_RE = /<!--\s*enforced:\s*(.*?)\s*-->/g; const LAST_VERIFIED_RE = /^[>\s]*last\s+verified:\s*(.*)$/im; -const DATE_RE = /(\d{4}-\d{2}-\d{2})/; /** Parse `path::symbol`; reject whitespace, absolute paths, `..`, backslashes. */ function parseAnchor(raw) { @@ -138,13 +137,33 @@ function parseAnchor(raw) { return { path: anchorPath, symbol }; } -/** Extract a validated calendar date (YYYY-MM-DD) from a `Last verified` value. */ +/** + * Parse a `Last verified` value as an EXACT YYYY-MM-DD calendar date. + * + * Strict on purpose: a prefix-extracting regex would accept trailing junk + * ("2024-03-01; rm -rf /"), and `new Date("2026-02-30")` silently rolls + * impossible dates over into the next month. Both would let malformed or + * future evidence look verified. So: full-string match, UTC round-trip of + * the components, and no future dates. + */ function parseVerifiedDate(rawValue) { - const m = rawValue.match(DATE_RE); + const m = rawValue.trim().match(/^(\d{4})-(\d{2})-(\d{2})$/); if (!m) return null; - const time = new Date(`${m[1]}T00:00:00Z`).getTime(); + const year = Number(m[1]); + const month = Number(m[2]); + const day = Number(m[3]); + const time = Date.UTC(year, month - 1, day); if (Number.isNaN(time)) return null; - return { date: m[1], time }; + const roundTripped = new Date(time); + if ( + roundTripped.getUTCFullYear() !== year || + roundTripped.getUTCMonth() !== month - 1 || + roundTripped.getUTCDate() !== day + ) { + return null; // impossible date (e.g. 2026-02-30 normalized by Date) + } + if (time > Date.now()) return null; // future evidence cannot be verified + return { date: `${m[1]}-${m[2]}-${m[3]}`, time }; } function isInside(base, candidate) { @@ -336,6 +355,25 @@ function evaluateSpec(relPath, parsed) { return { ...base, status: 'FRESH', lastVerified: verified.date }; } + // Repository/history availability is decided BEFORE any staleness rule: + // an old verification date must never downgrade "evidence unavailable" to + // STALE (the weight table could not repair that — STALE outranks UNVERIFIED). + const probe = gitProbe(); + if (!probe.available || !probe.repo || probe.shallow) { + const reason = !probe.available + ? 'git is not available' + : !probe.repo + ? 'project root is not a git repository' + : 'shallow clone — history incomplete'; + return { + ...base, + status: 'UNVERIFIED', + enforced, + lastVerified: verified.date, + reasons: [reason], + }; + } + const ageDays = (Date.now() - verified.time) / 86400000; const reasons = []; const weights = { STALE: 4, ORPHANED: 3, UNVERIFIED: 2, UNKNOWN: 1, FRESH: 0 }; @@ -351,16 +389,21 @@ function evaluateSpec(relPath, parsed) { reasons.push(`invalid enforced anchor "${raw}" (${anchor.reason})`); continue; } - if (ageDays > staleDays) { - bump('STALE'); - reasons.push(`Last verified ${Math.round(ageDays)} days ago (threshold: ${staleDays} days)`); - } + // Evidence availability for THIS target comes before the age rule: an + // uncommitted target (no history) is UNVERIFIED no matter how old the + // date is — missing history is not staleness. const verdict = targetFreshness(anchor.path); if (verdict.status !== 'FRESH') { bump(verdict.status); reasons.push(`"${anchor.path}": ${verdict.reason}`); continue; } + // History is complete and the target is committed: now staleness rules + // apply — age threshold first, then change-after-verification. + if (ageDays > staleDays) { + bump('STALE'); + reasons.push(`Last verified ${Math.round(ageDays)} days ago (threshold: ${staleDays} days)`); + } // File exists & is committed: was it changed after the verification date? let changed; try { diff --git a/tests/ci/check-spec-freshness.test.js b/tests/ci/check-spec-freshness.test.js index ad3566705..2a0041c2e 100644 --- a/tests/ci/check-spec-freshness.test.js +++ b/tests/ci/check-spec-freshness.test.js @@ -239,6 +239,40 @@ describe('check-spec-freshness (v1, file-level)', () => { assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); }); + it('marks UNVERIFIED on trailing text after the date', () => { + // Strict YYYY-MM-DD only: a valid-looking prefix inside arbitrary text + // must not count as verified evidence. + writeSpec(repo, 'traildate', { + lastVerified: `${daysAgo(1)} reviewed and approved`, + anchors: ['src/lib.js::run'], + }); + const result = runChecker(repo); + const spec = parseJson(result).specs.find((s) => s.path.includes('traildate')); + assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); + }); + + it('marks UNVERIFIED on impossible calendar dates', () => { + // JS Date silently normalizes 2026-02-30 into March; the checker must + // round-trip the components and reject it. + writeSpec(repo, 'impossible', { + lastVerified: '2026-02-30', + anchors: ['src/lib.js::run'], + }); + const result = runChecker(repo); + const spec = parseJson(result).specs.find((s) => s.path.includes('impossible')); + assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); + }); + + it('marks UNVERIFIED on future dates', () => { + writeSpec(repo, 'futuredate', { + lastVerified: '2999-01-01', + anchors: ['src/lib.js::run'], + }); + const result = runChecker(repo); + const spec = parseJson(result).specs.find((s) => s.path.includes('futuredate')); + assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); + }); + it('marks ORPHANED when the enforced target file does not exist', () => { writeSpec(repo, 'orphaned', { lastVerified: daysAgo(1), anchors: ['src/missing.js::ghost'] }); const result = runChecker(repo); @@ -255,6 +289,19 @@ describe('check-spec-freshness (v1, file-level)', () => { assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); }); + it('keeps an old-date target with no git history UNVERIFIED (age must not downgrade it)', () => { + fs.writeFileSync(path.join(repo, 'src', 'untracked-old.js'), '// never committed\n'); + writeSpec(repo, 'nohistory-old', { + lastVerified: daysAgo(400), + anchors: ['src/untracked-old.js::fn'], + }); + const result = runChecker(repo); + const spec = parseJson(result).specs.find((s) => s.path.includes('nohistory-old')); + assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); + // Note: no exit-code assertion — this shared repo intentionally + // accumulates STALE specs from the other verdict tests above. + }); + it('marks ORPHANED when an enforced target escapes via a symlink', () => { const outside = path.join(os.tmpdir(), 'ecc-outside-' + Date.now() + '.txt'); fs.writeFileSync(outside, 'outside\n'); @@ -335,17 +382,18 @@ describe('check-spec-freshness (v1, file-level)', () => { const repo = track(initRepo()); commitFile(repo, 'src/lib.js', 'v1\n', daysAgo(50), 'v1'); const marker = path.join(repo, 'ECCDATEMARK'); - // The date carries shell payload after a valid date prefix. The checker - // must only pass the extracted, validated date to git as one argv item — - // never hand the whole line to a shell. + // The date carries shell payload after a valid date prefix. The strict + // YYYY-MM-DD parser rejects the whole value (UNVERIFIED), and nothing + // from the line ever reaches a shell or git argv. writeSpec(repo, 'hostiledate', { lastVerified: `${daysAgo(50)}; touch ECCDATEMARK`, anchors: ['src/lib.js::run'], }); const result = runChecker(repo); assert.strictEqual(fs.existsSync(marker), false, 'hostile date must not execute'); - assert.ok([0, 1].includes(result.exitCode), 'must not crash on hostile date'); - assert.doesNotThrow(() => parseJson(result)); + assert.strictEqual(result.exitCode, 0, 'rejected date must not fail the check'); + const spec = parseJson(result).specs.find((s) => s.path.includes('hostiledate')); + assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); }); }); @@ -403,6 +451,40 @@ describe('check-spec-freshness (v1, file-level)', () => { assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); assert.strictEqual(result.exitCode, 0, 'UNVERIFIED must not fail the check'); }); + + it('keeps an OLD-date spec UNVERIFIED on shallow history (age must not fire first)', () => { + const full = track(initRepo()); + commitFile(full, 'src/lib.js', 'v1\n', daysAgo(300), 'v1'); + + const shallow = track(fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-shallow-old-'))); + execFileSync('git', ['clone', '-q', '--depth', '1', `file://${full}`, shallow], { + stdio: 'ignore', + }); + + // 400 days ago is far past any staleDays threshold: if age were evaluated + // before availability, this would be STALE — the documented contract + // demands UNVERIFIED because the history is incomplete. + writeSpec(shallow, 'oldspec', { lastVerified: daysAgo(400), anchors: ['src/lib.js::run'] }); + const result = runChecker(shallow); + const spec = parseJson(result).specs.find((s) => s.path.includes('oldspec')); + assert.ok(spec, 'expected a spec entry'); + assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); + assert.strictEqual(result.exitCode, 0, 'UNVERIFIED must not fail the check'); + }); + }); + + describe('no git available / not a repository', () => { + it('keeps an old-date spec UNVERIFIED outside a git repository', () => { + // Plain directory that was never `git init`-ed. + const dir = track(fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-nogit-'))); + fs.writeFileSync(path.join(dir, 'lib.js'), '// not versioned\n'); + writeSpec(dir, 'oldspec', { lastVerified: daysAgo(400), anchors: ['lib.js::run'] }); + const result = runChecker(dir); + const spec = parseJson(result).specs.find((s) => s.path.includes('oldspec')); + assert.ok(spec, 'expected a spec entry'); + assert.strictEqual(spec.status, 'UNVERIFIED', JSON.stringify(spec)); + assert.strictEqual(result.exitCode, 0, 'UNVERIFIED must not fail the check'); + }); }); describe('no enforced anchors', () => { From f8a10d84ff7e9f5681dfcbf16c10356633be9a23 Mon Sep 17 00:00:00 2001 From: MohamedAfrash <afrazzz51@gmail.com> Date: Thu, 15 Oct 2026 17:44:17 +0100 Subject: [PATCH 41/78] test: pin Antigravity native validation to CLI 1.3.5 --- docs/ANTIGRAVITY-GUIDE.md | 2 +- tests/scripts/antigravity-native-plugin.test.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/ANTIGRAVITY-GUIDE.md b/docs/ANTIGRAVITY-GUIDE.md index 87e16b584..aab304dd6 100644 --- a/docs/ANTIGRAVITY-GUIDE.md +++ b/docs/ANTIGRAVITY-GUIDE.md @@ -219,7 +219,7 @@ Run the optional native check from the ECC source checkout: node tests/scripts/antigravity-native-plugin.test.js ``` -The test requires an already installed **Antigravity CLI 1.2.9** and skips with an +The test requires an already installed **Antigravity CLI 1.3.5** and skips with an explicit message if that version is unavailable. It does not download the CLI. It installs ECC into one temporary home, runs `agy plugin validate`, imports the local plugin into a separate disposable CLI home with `agy plugin install`, and diff --git a/tests/scripts/antigravity-native-plugin.test.js b/tests/scripts/antigravity-native-plugin.test.js index 241e1d1d3..e2515b338 100644 --- a/tests/scripts/antigravity-native-plugin.test.js +++ b/tests/scripts/antigravity-native-plugin.test.js @@ -35,8 +35,8 @@ function checked(args) { try { const version = agy(['--version']); - if (version.error?.code === 'ENOENT' || (version.status === 0 && version.stdout.trim() !== '1.2.9')) { - console.log(`SKIP: native plugin validation requires installed agy 1.2.9 (found ${version.stdout?.trim() || 'none'}); no download attempted.`); + if (version.error?.code === 'ENOENT' || (version.status === 0 && version.stdout.trim() !== '1.3.5')) { + console.log(`SKIP: native plugin validation requires installed agy 1.3.5 (found ${version.stdout?.trim() || 'none'}); no download attempted.`); console.log('Results: Passed: 0, Failed: 0'); } else { assert.strictEqual(version.status, 0, version.error?.message || version.stderr); @@ -53,11 +53,11 @@ try { assert.match(validation, /\[ok\]/); checked(['plugin', 'install', plan.targetRoot]); const listed = JSON.parse(checked(['plugin', 'list', '--json'])); - const plugin = listed.imports.find(entry => entry.name === 'ecc'); + const plugin = listed.find(entry => entry.name === 'ecc'); assert.ok(plugin, 'Native CLI must discover ECC after explicit local import'); - assert.ok(plugin.components.includes('hooks'), 'Native importer must register lifecycle hooks'); - assert.ok(plugin.components.includes('mcpServers'), 'Native importer must register ECC memory'); - console.log('PASS: agy 1.2.9 validates and imports the generated ECC plugin in a disposable HOME.'); + assert.ok(plugin.hooks.includes('ecc-guard'), 'Native importer must register lifecycle hooks'); + assert.ok(plugin.mcpServers.includes('ecc-memory'), 'Native importer must register ECC memory'); + console.log('PASS: agy 1.3.5 validates and imports the generated ECC plugin in a disposable HOME.'); console.log('NOT CHECKED: authenticated tool execution, Stop execution, and automatic IDE discovery.'); console.log('Results: Passed: 1, Failed: 0'); } From ca70aa2ff3c7162a8f1ab13f59913edf48e15666 Mon Sep 17 00:00:00 2001 From: MohamedAfrash <afrazzz51@gmail.com> Date: Mon, 26 Oct 2026 12:59:08 +0000 Subject: [PATCH 42/78] fix: record Antigravity memory dependencies as repairable package sources When npm hoists ajv beside ecc-universal, path.relative(repoRoot, ...) recorded sources like ../ajv/..., which doctor flags as unsafe-repair-source and repair refuses. Record dependency sources as node_modules/<name>[/node_modules/<name>...]/<file>, mirroring the installed layout, and resolve each package from the repository with Node module resolution at plan and repair time. Paths still reject traversal, absolute paths, and malformed package names, and resolved files must stay inside their package root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- scripts/lib/antigravity-mcp.js | 8 ++- scripts/lib/install-lifecycle.js | 12 ++++ scripts/lib/install/package-source.js | 64 ++++++++++++++++++++ scripts/lib/install/plan.js | 7 ++- tests/lib/antigravity-tier1.test.js | 19 ++++++ tests/lib/package-source.test.js | 85 +++++++++++++++++++++++++++ 6 files changed, 190 insertions(+), 5 deletions(-) create mode 100644 scripts/lib/install/package-source.js create mode 100644 tests/lib/package-source.test.js diff --git a/scripts/lib/antigravity-mcp.js b/scripts/lib/antigravity-mcp.js index a8689630a..54a347931 100644 --- a/scripts/lib/antigravity-mcp.js +++ b/scripts/lib/antigravity-mcp.js @@ -3,6 +3,7 @@ const fs = require('fs'); const path = require('path'); const { createManagedScaffoldOperation } = require('./install-targets/helpers'); +const { formatPackageSourcePath } = require('./install/package-source'); /** * Antigravity MCP Configuration Generator @@ -42,7 +43,7 @@ function planAntigravityMemoryRuntime(moduleId, repoRoot, targetRoot) { const operations = sourcePaths.map(sourcePath => createManagedScaffoldOperation( moduleId, sourcePath, path.join(targetRoot, sourcePath), 'preserve-relative-path' )); - function addDependency(name, fromRoot, destinationRoot, ancestors = []) { + function addDependency(name, fromRoot, destinationRoot, ancestors = [], packageChain = []) { let manifestPath; try { manifestPath = require.resolve(`${name}/package.json`, { paths: [fromRoot] }); @@ -52,12 +53,13 @@ function planAntigravityMemoryRuntime(moduleId, repoRoot, targetRoot) { if (ancestors.includes(manifestPath)) return; const packageRoot = path.dirname(manifestPath); const destinationPath = path.join(destinationRoot, 'node_modules', name); + const sourceChain = [...packageChain, name]; operations.push(createManagedScaffoldOperation( - moduleId, path.relative(repoRoot, packageRoot), destinationPath, 'preserve-relative-path' + moduleId, formatPackageSourcePath(sourceChain), destinationPath, 'preserve-relative-path' )); const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8')); for (const dependency of Object.keys(manifest.dependencies || {})) { - addDependency(dependency, packageRoot, destinationPath, [...ancestors, manifestPath]); + addDependency(dependency, packageRoot, destinationPath, [...ancestors, manifestPath], sourceChain); } } addDependency('ajv', repoRoot, targetRoot); diff --git a/scripts/lib/install-lifecycle.js b/scripts/lib/install-lifecycle.js index 74e69f3a3..a4d0854bc 100644 --- a/scripts/lib/install-lifecycle.js +++ b/scripts/lib/install-lifecycle.js @@ -8,6 +8,7 @@ const { isDeepStrictEqual } = require('util'); const { loadInstallManifests } = require('./install-manifests'); const { readInstallState, validateInstallState } = require('./install-state'); const { assertWithinTrustedRoot, isWithinRoot } = require('./path-safety'); +const { isPackageSourcePath, resolvePackageSourcePath } = require('./install/package-source'); const { createInstallPlanFromRequest } = require('./install/runtime'); const { assertNoNewUserOwnedFile, prepareUserOwnedFileGuard } = require('./install/ownership-guard'); const { withOpenCodeInstallLocks } = require('./install/opencode-install-lock'); @@ -194,6 +195,17 @@ function resolveOperationSourcePath(repoRoot, operation) { throw createUnsafeRepairSourceError(); } + if (isPackageSourcePath(sourceRelativePath)) { + let packageSourcePath; + try { + packageSourcePath = resolvePackageSourcePath(repoRoot, sourceRelativePath); + } catch { + throw createUnsafeRepairSourceError(); + } + // An unresolvable package reports as a missing source, not an unsafe one. + return packageSourcePath || path.resolve(repoRoot, sourceRelativePath); + } + return assertSafeRepairSourcePath( path.resolve(repoRoot, sourceRelativePath), repoRoot diff --git a/scripts/lib/install/package-source.js b/scripts/lib/install/package-source.js new file mode 100644 index 000000000..744a2f334 --- /dev/null +++ b/scripts/lib/install/package-source.js @@ -0,0 +1,64 @@ +'use strict'; + +const path = require('path'); +const { assertWithinTrustedRoot } = require('../path-safety'); + +// npm may hoist a dependency beside the ECC package instead of nesting it, so +// a path relative to the repository would need `..`. Dependency sources are +// recorded as `node_modules/<name>[/node_modules/<name>...]/<file>` instead, +// mirroring the installed layout, and Node resolves each package from the +// repository when the source is read. +const PACKAGE_DIR = 'node_modules'; +const PACKAGE_NAME = /^(?:@[a-z0-9][a-z0-9._~-]*\/)?[a-z0-9][a-z0-9._~-]*$/; + +function isPackageSourcePath(sourceRelativePath) { + return typeof sourceRelativePath === 'string' + && sourceRelativePath.split(/[/\\]+/)[0] === PACKAGE_DIR; +} + +function formatPackageSourcePath(packageChain, relativeFile = '') { + const segments = packageChain.flatMap(name => [PACKAGE_DIR, ...name.split('/')]); + return path.posix.join(...segments, ...relativeFile.split(/[/\\]+/).filter(Boolean)); +} + +function parsePackageSourcePath(sourceRelativePath) { + const parts = String(sourceRelativePath).split(/[/\\]+/); + const packageChain = []; + let index = 0; + while (parts[index] === PACKAGE_DIR) { + const scoped = String(parts[index + 1] || '').startsWith('@'); + const name = scoped ? `${parts[index + 1]}/${parts[index + 2] || ''}` : parts[index + 1]; + if (!PACKAGE_NAME.test(String(name || ''))) { + throw new Error(`Invalid package source path: ${sourceRelativePath}`); + } + packageChain.push(name); + index += scoped ? 3 : 2; + } + const relativeFile = parts.slice(index); + if (packageChain.length === 0 || relativeFile.some(part => part === '' || part === '.' || part === '..')) { + throw new Error(`Invalid package source path: ${sourceRelativePath}`); + } + return { packageChain, relativeFile }; +} + +// Returns null when a package in the chain cannot be resolved. Throws when the +// path itself is malformed. +function resolvePackageSourcePath(repoRoot, sourceRelativePath) { + const { packageChain, relativeFile } = parsePackageSourcePath(sourceRelativePath); + let packageRoot = repoRoot; + for (const name of packageChain) { + try { + packageRoot = path.dirname(require.resolve(`${name}/package.json`, { paths: [packageRoot] })); + } catch { + return null; + } + } + return assertWithinTrustedRoot(path.join(packageRoot, ...relativeFile), packageRoot, 'read package source'); +} + +module.exports = { + formatPackageSourcePath, + isPackageSourcePath, + parsePackageSourcePath, + resolvePackageSourcePath, +}; diff --git a/scripts/lib/install/plan.js b/scripts/lib/install/plan.js index 0f4df094a..624ffaf52 100644 --- a/scripts/lib/install/plan.js +++ b/scripts/lib/install/plan.js @@ -9,6 +9,7 @@ const { getInstallTargetAdapter } = require('../install-targets/registry'); const { resolveInvocationEnvironment } = require('../invocation-environment'); const { disableUnselectedOpenCodeHooks } = require('./hook-consent'); const { readHooksConfig } = require('../hooks-config'); +const { isPackageSourcePath, resolvePackageSourcePath } = require('./package-source'); const { materializeManagedHooks, } = require('./claude-settings'); @@ -181,8 +182,10 @@ function materializeScaffoldOperation(sourceRoot, operation) { ]; } - const sourcePath = path.join(sourceRoot, operation.sourceRelativePath); - if (!fs.existsSync(sourcePath)) { + const sourcePath = isPackageSourcePath(operation.sourceRelativePath) + ? resolvePackageSourcePath(sourceRoot, operation.sourceRelativePath) + : path.join(sourceRoot, operation.sourceRelativePath); + if (!sourcePath || !fs.existsSync(sourcePath)) { return []; } diff --git a/tests/lib/antigravity-tier1.test.js b/tests/lib/antigravity-tier1.test.js index 1d5ca5034..6cf035f7c 100644 --- a/tests/lib/antigravity-tier1.test.js +++ b/tests/lib/antigravity-tier1.test.js @@ -242,6 +242,25 @@ function runTests() { const { applyInstallPlan } = require('../../scripts/lib/install/apply'); const plan = createManifestInstallPlan({ sourceRoot, moduleIds: ['platform-configs'], target: 'antigravity', projectRoot }); applyInstallPlan(plan); + + const state = JSON.parse(fs.readFileSync(plan.installStatePath, 'utf8')); + const dependencySources = state.operations + .map(operation => operation.sourceRelativePath || '') + .filter(source => source.split(/[/\\]+/)[0] === 'node_modules'); + assert.ok(dependencySources.length > 0); + assert.ok(state.operations.every(operation => !String(operation.sourceRelativePath || '').split(/[/\\]+/).includes('..'))); + + const { buildDoctorReport, repairInstalledStates } = require('../../scripts/lib/install-lifecycle'); + const lifecycleOptions = { repoRoot: sourceRoot, homeDir: path.join(root, 'home'), projectRoot, targets: ['antigravity'] }; + const doctor = buildDoctorReport(lifecycleOptions).results[0]; + assert.ok(!doctor.issues.some(issue => issue.code === 'unsafe-repair-source'), JSON.stringify(doctor.issues)); + const installedAjv = path.join(plan.targetRoot, 'node_modules', 'ajv', 'package.json'); + const originalAjv = fs.readFileSync(installedAjv, 'utf8'); + fs.unlinkSync(installedAjv); + const repaired = repairInstalledStates(lifecycleOptions).results[0]; + assert.strictEqual(repaired.status, 'repaired', repaired.error); + assert.strictEqual(fs.readFileSync(installedAjv, 'utf8'), originalAjv); + fs.rmSync(path.join(root, 'node_modules'), { recursive: true }); const run = spawnSync(process.execPath, [path.join(plan.targetRoot, 'scripts/memory-mcp.mjs')], { cwd: root, diff --git a/tests/lib/package-source.test.js b/tests/lib/package-source.test.js new file mode 100644 index 000000000..b5ed1fc59 --- /dev/null +++ b/tests/lib/package-source.test.js @@ -0,0 +1,85 @@ +'use strict'; + +const assert = require('assert'); +const fs = require('fs'); +const os = require('os'); +const path = require('path'); + +const { + formatPackageSourcePath, + isPackageSourcePath, + parsePackageSourcePath, + resolvePackageSourcePath, +} = require('../../scripts/lib/install/package-source'); + +let passed = 0; +let failed = 0; + +function test(name, fn) { + try { + fn(); + console.log(` ✓ ${name}`); + passed += 1; + } catch (error) { + console.log(` ✗ ${name}`); + console.log(` Error: ${error.message}`); + failed += 1; + } +} + +function writePackage(packageRoot, name, files = {}) { + fs.mkdirSync(packageRoot, { recursive: true }); + fs.writeFileSync(path.join(packageRoot, 'package.json'), JSON.stringify({ name, version: '1.0.0' })); + for (const [relativePath, content] of Object.entries(files)) { + fs.mkdirSync(path.dirname(path.join(packageRoot, relativePath)), { recursive: true }); + fs.writeFileSync(path.join(packageRoot, relativePath), content); + } +} + +console.log('\n=== Testing install/package-source.js ===\n'); + +test('formats package chains as the installed node_modules layout', () => { + assert.strictEqual(formatPackageSourcePath(['ajv']), 'node_modules/ajv'); + assert.strictEqual( + formatPackageSourcePath(['ajv', '@scope/dep'], 'dist\\index.js'), + 'node_modules/ajv/node_modules/@scope/dep/dist/index.js' + ); +}); + +test('recognizes only node_modules-rooted sources', () => { + assert.strictEqual(isPackageSourcePath('node_modules/ajv/package.json'), true); + assert.strictEqual(isPackageSourcePath('scripts/node_modules/x.js'), false); + assert.strictEqual(isPackageSourcePath(undefined), false); +}); + +test('rejects traversal and malformed package names', () => { + for (const source of [ + 'node_modules/ajv/../../secret', + 'node_modules/../etc/passwd', + 'node_modules/ajv/./x', + 'node_modules/Bad Name/x', + 'node_modules/@scope', + 'node_modules', + ]) { + assert.throws(() => parsePackageSourcePath(source), /Invalid package source path/, source); + } +}); + +test('resolves hoisted sibling packages through Node resolution', () => { + const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-package-source-')); + try { + const repoRoot = path.join(root, 'node_modules', 'ecc-universal'); + writePackage(repoRoot, 'ecc-universal'); + writePackage(path.join(root, 'node_modules', 'dep-a'), 'dep-a', { 'lib/a.js': 'a' }); + writePackage(path.join(root, 'node_modules', 'dep-b'), 'dep-b', { 'b.js': 'b' }); + + const resolved = resolvePackageSourcePath(repoRoot, 'node_modules/dep-a/node_modules/dep-b/b.js'); + assert.strictEqual(fs.realpathSync(resolved), fs.realpathSync(path.join(root, 'node_modules', 'dep-b', 'b.js'))); + assert.strictEqual(resolvePackageSourcePath(repoRoot, 'node_modules/ecc-missing-package/x.js'), null); + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } +}); + +console.log(`\nResults: Passed: ${passed}, Failed: ${failed}`); +process.exit(failed > 0 ? 1 : 0); From 882ba18c10064b7fd1be02a5a013d3b7655236f0 Mon Sep 17 00:00:00 2001 From: Rahul Selvaraj <55731288+Laihu08@users.noreply.github.com> Date: Fri, 6 Nov 2026 09:00:11 +0800 Subject: [PATCH 43/78] fix(hooks): recognize the longer classifier notice form CLASSIFIER_NOTICE only matched the short notice. Accept the longer form ("The rest of it was withheld ... even reworded.") too, and add fixtures for both the LLM-summary and mechanical session-end paths. User text after either notice is still kept. Refs #3867 Assisted-by: Claude <noreply@anthropic.com> --- scripts/lib/llm-summary.js | 2 +- tests/hooks/session-end.test.js | 13 +++++++++++++ tests/lib/llm-summary.test.js | 15 +++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/scripts/lib/llm-summary.js b/scripts/lib/llm-summary.js index c7c215a09..dd85b39a2 100644 --- a/scripts/lib/llm-summary.js +++ b/scripts/lib/llm-summary.js @@ -21,7 +21,7 @@ const LLM_TIMEOUT_MS = 90000; // Leave the Stop hook time to persist its mechanical fallback after a timeout. const HOOK_FINISH_RESERVE_MS = 1000; // Harness notice shown after a safety-classifier stop; it is not a user ask (#3867). -const CLASSIFIER_NOTICE = /^Your response above was stopped by a safety classifier\s*[—–-]\s*this is not a tool or API error\.?$/i; +const CLASSIFIER_NOTICE = /^Your response above was stopped by a safety classifier\s*[—–-]\s*this is not a tool or API error\.?(?:\s+The rest of it was withheld, and tool calls in it that had not finished did not run\.\s+Do not produce that content again, even reworded\.)?$/i; function getLLMModel() { return process.env.ECC_LLM_SUMMARY_MODEL || 'haiku'; diff --git a/tests/hooks/session-end.test.js b/tests/hooks/session-end.test.js index 8027fbbe9..044b3766c 100644 --- a/tests/hooks/session-end.test.js +++ b/tests/hooks/session-end.test.js @@ -86,6 +86,18 @@ function testDropsClassifierNotice() { }); } +function testDropsLongClassifierNotice() { + const longNotice = `${CLASSIFIER_NOTICE_TEXT} The rest of it was withheld, and tool calls in it that had not finished did not run. Do not produce that content again, even reworded.`; + withTranscript('3867dddd-eeee-4fff-8aaa-bbbbbbbb3867', [ + JSON.stringify({ type: 'user', message: { role: 'user', content: 'Refactor the config loader' } }), + JSON.stringify({ type: 'user', content: longNotice }), + JSON.stringify({ type: 'user', content: 'Why did this happen?' }), + ], out => { + assert.ok(out.includes('- Refactor the config loader') && out.includes('Why did this happen?'), `expected real user asks in:\n${out}`); + assert.ok(!out.includes('withheld') && !out.includes('safety classifier'), `long notice must not be summarized:\n${out}`); + }); +} + function testNoticeOnlyTranscript() { withTranscript('3867bbbb-cccc-4ddd-8eee-ffffffff3867', [JSON.stringify({ type: 'user', content: CLASSIFIER_NOTICE_TEXT })], out => { assert.ok(!out.includes(START), `a notice-only transcript must not produce a summary block:\n${out}`); @@ -103,6 +115,7 @@ function testKeepsMessageQuotingNotice() { function runClassifierNoticeTests() { const results = [ test('drops safety-classifier notices from summary tasks', testDropsClassifierNotice), + test('drops the longer classifier notice from summary tasks', testDropsLongClassifierNotice), test('writes no summary for a transcript holding only a classifier notice', testNoticeOnlyTranscript), test('keeps a user message that only mentions the classifier notice', testKeepsMessageQuotingNotice), ]; diff --git a/tests/lib/llm-summary.test.js b/tests/lib/llm-summary.test.js index 52ffc7a40..49b792cf6 100644 --- a/tests/lib/llm-summary.test.js +++ b/tests/lib/llm-summary.test.js @@ -157,6 +157,19 @@ test('collapses newlines to spaces', () => { // Regression (#3867): the harness notice after a safety-classifier stop is // recorded as a user entry; it must not reach the LLM summary input. const CLASSIFIER_NOTICE_TEXT = 'Your response above was stopped by a safety classifier — this is not a tool or API error.'; +const CLASSIFIER_NOTICE_LONG_TEXT = `${CLASSIFIER_NOTICE_TEXT} The rest of it was withheld, and tool calls in it that had not finished did not run. Do not produce that content again, even reworded.`; + +test('drops the longer classifier notice from the LLM input', () => { + const p = writeTranscript([userEntry('Refactor the config loader'), userEntry(CLASSIFIER_NOTICE_LONG_TEXT), assistantEntry('Done.')]); + const result = extractConversationText(p); + assert.ok(result.includes('Refactor the config loader')); + assert.ok(!result.includes('withheld') && !result.includes('safety classifier'), result); +}); + +test('keeps user text following the longer notice', () => { + const text = `${CLASSIFIER_NOTICE_LONG_TEXT} Why did this happen?`; + assert.ok(extractConversationText(writeTranscript([userEntry(text)])).includes('Why did this happen?')); +}); test('drops safety-classifier notices from the LLM input', () => { const p = writeTranscript([userEntry('Refactor the config loader'), userEntry(CLASSIFIER_NOTICE_TEXT), assistantEntry('Done.')]); @@ -177,6 +190,8 @@ test('returns null when the only user turn is a classifier notice', () => { test('isClassifierNotice matches only the whole notice', () => { assert.strictEqual(isClassifierNotice(CLASSIFIER_NOTICE_TEXT), true); + assert.strictEqual(isClassifierNotice(CLASSIFIER_NOTICE_LONG_TEXT), true); + assert.strictEqual(isClassifierNotice(`${CLASSIFIER_NOTICE_LONG_TEXT} Why did this happen?`), false); assert.strictEqual(isClassifierNotice(`${CLASSIFIER_NOTICE_TEXT} Why did this happen?`), false); assert.strictEqual(isClassifierNotice('Why did I see "Your response above was stopped by a safety classifier"?'), false); }); From 5f72adbd83fb83d15bb4134ac0161e83f1f3cfef Mon Sep 17 00:00:00 2001 From: Gaurav Dubey <gauravdubey0107@gmail.com> Date: Sat, 7 Nov 2026 03:31:34 +0000 Subject: [PATCH 44/78] fix(hooks): try later JWT header candidates after a failed prefix match A word prefix such as `eyewear_session_` was taken as the only JWT header candidate; when it failed validation the real header after `_` was never tried and the token stayed in the command log. Keep scanning eligible candidates, with a constant-time prefilter and a per-segment decode cap so long candidate runs stay linear. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- scripts/hooks/post-bash-command-log.js | 62 +++++++++++++-------- tests/scripts/post-bash-command-log.test.js | 27 +++++++++ 2 files changed, 65 insertions(+), 24 deletions(-) diff --git a/scripts/hooks/post-bash-command-log.js b/scripts/hooks/post-bash-command-log.js index d3f214ff4..b231a9e5e 100644 --- a/scripts/hooks/post-bash-command-log.js +++ b/scripts/hooks/post-bash-command-log.js @@ -22,22 +22,50 @@ const MODE_CONFIG = { // A JWT header is base64url JSON, so it starts with `ey` (`{"`, `{ `) or // `ew` (`{` followed by a newline or tab). The common `eyJ` form is always // redacted; other headers must decode to an object with an `alg` field. -function redactJwt(token) { - if (token.startsWith('eyJ')) return '<REDACTED>'; +function isJwtHeader(header) { + if (header.startsWith('eyJ')) return true; try { - const header = JSON.parse(Buffer.from(token.split('.')[0], 'base64url').toString('utf8')); - if (header && typeof header === 'object' && typeof header.alg === 'string') return '<REDACTED>'; + const decoded = JSON.parse(Buffer.from(header, 'base64url').toString('utf8')); + return Boolean(decoded && typeof decoded === 'object' && typeof decoded.alg === 'string'); } catch { // Not a JWT header; keep the text. + return false; } - return token; +} + +// Constant-time prefilter: the second decoded byte of a JSON object header is +// whitespace or `"`. Rejects word prefixes such as `eyewear` without decoding +// the whole segment. +function mayBeJwtHeader(seg, j) { + const bytes = Buffer.from(seg.slice(j, j + 4), 'base64url'); + return bytes.length >= 2 && (bytes[1] === 0x22 || bytes[1] === 0x20 || bytes[1] === 0x09 || bytes[1] === 0x0a || bytes[1] === 0x0d); +} + +// Full header decodes allowed per segment; keeps adversarial `eyAg-eyAg-...` +// runs linear while still trying every realistic candidate. +const MAX_HEADER_DECODES = 8; + +// Index of the first JWT header in `seg`, starting at its beginning or after a +// `-` or `_`, or -1. A candidate that fails validation (e.g. `eyewear` in +// `eyewear_session_<JWT>`) does not stop the scan. +function findJwtHeader(seg) { + let decodes = 0; + for (let j = 0; j + 10 <= seg.length; j++) { + if (!((j === 0 || seg[j - 1] === '-' || seg[j - 1] === '_') && seg[j] === 'e' && (seg[j + 1] === 'y' || seg[j + 1] === 'w'))) continue; + if (seg.startsWith('eyJ', j)) return j; + if (decodes < MAX_HEADER_DECODES && mayBeJwtHeader(seg, j)) { + decodes++; + if (isJwtHeader(seg.slice(j))) return j; + } + } + return -1; } // Redact JWTs inside one run of `[A-Za-z0-9_.-]` characters. A JWT may follow // a word prefix joined by `-` or `_` (`session=jwt-<JWT>`, `session_<JWT>`), so // each dot-separated segment is checked for a header starting at its beginning // or after a `-` or `_`. -// Every segment is scanned once and decoded at most once, keeping long +// Every segment is scanned once with a bounded number of decodes, keeping long // `ey-ey-...` runs linear (a `\b`-anchored regex retries at each `-`). function redactJwtsInChain(chain) { if (!chain.includes('.')) return chain; @@ -47,25 +75,11 @@ function redactJwtsInChain(chain) { while (i < segs.length) { const seg = segs[i]; if (i + 2 < segs.length && segs[i + 1].length > 0) { - let first = -1; - let preferred = -1; - for (let j = 0; j + 10 <= seg.length; j++) { - if ((j === 0 || seg[j - 1] === '-' || seg[j - 1] === '_') && seg[j] === 'e' && (seg[j + 1] === 'y' || seg[j + 1] === 'w')) { - if (first < 0) first = j; - if (seg.startsWith('eyJ', j)) { - preferred = j; - break; - } - } - } - const start = preferred >= 0 ? preferred : first; + const start = findJwtHeader(seg); if (start >= 0) { - const token = [seg.slice(start), segs[i + 1], segs[i + 2]].join('.'); - if (redactJwt(token) !== token) { - out.push(`${seg.slice(0, start)}<REDACTED>`); - i += 3; - continue; - } + out.push(`${seg.slice(0, start)}<REDACTED>`); + i += 3; + continue; } } out.push(seg); diff --git a/tests/scripts/post-bash-command-log.test.js b/tests/scripts/post-bash-command-log.test.js index ec3280c0f..d4a769f83 100644 --- a/tests/scripts/post-bash-command-log.test.js +++ b/tests/scripts/post-bash-command-log.test.js @@ -182,6 +182,33 @@ if ( passed++; else failed++; +if ( + test('sanitizeCommand tries later JWT headers after a prefix candidate fails', () => { + const spacedHeader = Buffer.from('{ "alg": "HS256" }').toString('base64url'); + const newlineHeader = Buffer.from('{\n"alg":"HS256"}').toString('base64url'); + for (const header of [spacedHeader, newlineHeader]) { + const token = [header, 'eyJzdWIiOiJmYWtlIn0', 'ZmFrZXNpZ25hdHVyZQ'].join('.'); + assert.strictEqual(sanitizeCommand(`echo eyewear_session_${token}`), 'echo eyewear_session_<REDACTED>'); + assert.strictEqual(sanitizeCommand(`echo ey-eye-${token}`), 'echo ey-eye-<REDACTED>'); + } + assert.strictEqual(sanitizeCommand('ls eyewear_session_eyebrows.backup.tar'), 'ls eyewear_session_eyebrows.backup.tar'); + }) +) + passed++; +else failed++; + +if ( + test('sanitizeCommand stays linear on long runs of plausible JWT header candidates', () => { + const start = Date.now(); + sanitizeCommand(`${'eyAg-'.repeat(200000)}x.y.z`); + sanitizeCommand(`${'ewog_'.repeat(200000)}x.y.z`); + const elapsed = Date.now() - start; + assert.ok(elapsed < 2000, `took ${elapsed} ms`); + }) +) + passed++; +else failed++; + if ( test('sanitizeCommand stays linear on long ey- runs followed by dots', () => { const start = Date.now(); From f64a9b5d04e8f1affc2cec375e76e8306095d300 Mon Sep 17 00:00:00 2001 From: Muhammad Mirza <114640561+mirzasnowy@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:11:03 +0700 Subject: [PATCH 45/78] fix(continuous-learning): flush Stop JSON before exit so the nudge is not truncated The Stop nudge JSON was written with console.log and main() called process.exit(0) immediately after. When stdout is a pipe the write is asynchronous, so the exit can truncate the payload and the model never sees the nudge. deliverStopNudge now returns whether it delivered, and writes the JSON with process.stdout.write and exits from the flush callback; main() exits immediately only when nothing was delivered. Test: new case in tests/hooks/evaluate-session.test.js forces every stdout write to be asynchronous with a preload, so the race reproduces deterministically. It fails on the old code (empty stdout) and passes with this fix. Full evaluate-session suite: 26/26 pass. --- scripts/hooks/evaluate-session.js | 35 +++++++++++------ tests/hooks/evaluate-session.test.js | 59 ++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 13 deletions(-) diff --git a/scripts/hooks/evaluate-session.js b/scripts/hooks/evaluate-session.js index ce41f0f3a..bbb2f7252 100644 --- a/scripts/hooks/evaluate-session.js +++ b/scripts/hooks/evaluate-session.js @@ -20,8 +20,7 @@ const { readFile, countInFile, getTempDir, - log, - output + log } = require('../lib/utils'); const { resolveHookSessionId } = require('../lib/hook-session'); const { @@ -121,9 +120,12 @@ async function main() { log(`[ContinuousLearning] Session has ${messageCount} messages - evaluate for extractable patterns`); log(`[ContinuousLearning] Save learned skills to: ${learnedSkillsPath}`); - deliverStopNudge({ input, stdinData, messageCount, learnedSkillsPath, stopNudgeOptIn }); - - process.exit(0); + // When a nudge was delivered, the process exits from the stdout-write + // callback, only after the Stop JSON has flushed. Exiting here instead + // would race the flush and could truncate the payload. + if (!deliverStopNudge({ input, stdinData, messageCount, learnedSkillsPath, stopNudgeOptIn })) { + process.exit(0); + } } /** @@ -133,35 +135,38 @@ async function main() { * decision "block" + reason, which continues the turn with the reason as * context. Plain stdout text is not a delivery channel on Stop, so nothing * else is ever written to stdout here. Every gate fails closed. + * + * Returns true when the Stop JSON was written (the process then exits from + * the write callback, once the payload has flushed), false otherwise. */ function deliverStopNudge({ input, stdinData, messageCount, learnedSkillsPath, stopNudgeOptIn }) { if (!stopNudgeOptIn) { log('[ContinuousLearning] Stop nudge opt-in is off, skipping delivery'); - return; + return false; } // A payload that names a different event means this script is running // under the wrong registration; an absent field is tolerated (older // harnesses omit it), a mismatched one is not. if (input && input.hook_event_name && input.hook_event_name !== 'Stop') { log(`[ContinuousLearning] Skipping delivery: hook event is ${input.hook_event_name}, not Stop`); - return; + return false; } // Stop-loop protection: when a previous Stop already continued this stop, // the hook is re-firing and must pass through, never block again. if (input && input.stop_hook_active === true) { log('[ContinuousLearning] Skipping delivery: Stop hook already fired for this stop'); - return; + return false; } // The payload session id identifies the harness conversation; env ids are // only fallbacks, never preferred over it. const sessionId = resolveSessionId(resolveHookSessionId(stdinData)); if (!sessionId) { log('[ContinuousLearning] Skipping delivery: no session id available'); - return; + return false; } if (!hasRegisteredSessionLease(input, sessionId)) { log('[ContinuousLearning] Skipping delivery: no SessionStart lease for this session'); - return; + return false; } // The session id is sanitized upstream by resolveSessionId, so the // marker filename cannot traverse out of the temp dir. @@ -181,12 +186,16 @@ function deliverStopNudge({ input, stdinData, messageCount, learnedSkillsPath, s } else { log(`[ContinuousLearning] Warning: could not record delivery marker, skipping delivery: ${err.message}`); } - return; + return false; } - output({ + // Write the Stop JSON with a flush callback and exit from it: a plain + // console.log followed by process.exit(0) can truncate the payload when + // stdout is a pipe, because the write is asynchronous. + process.stdout.write(`${JSON.stringify({ decision: 'block', reason: `[ContinuousLearning] Session has ${messageCount} messages - evaluate for extractable patterns. Save learned skills to: ${learnedSkillsPath}` - }); + })}\n`, () => process.exit(0)); + return true; } /** diff --git a/tests/hooks/evaluate-session.test.js b/tests/hooks/evaluate-session.test.js index b7cb86ccd..c8d27e13e 100644 --- a/tests/hooks/evaluate-session.test.js +++ b/tests/hooks/evaluate-session.test.js @@ -579,6 +579,65 @@ function runTests() { } })) passed++; else failed++; + if (test('delivers the full Stop JSON even when stdout writes are asynchronous', () => { + // Regression: the Stop JSON was written with console.log and main() + // called process.exit(0) immediately after, so when stdout is a pipe + // the write is asynchronous and the exit can truncate the payload + // (Node documents this process.exit truncation for piped stdout). + // Force every stdout write to be asynchronous with a preload, so the + // race reproduces deterministically instead of relying on pipe timing. + const testDir = createTestDir(); + const transcript = createTranscript(testDir, 12); + const homunculusDir = fs.mkdtempSync(path.join(os.tmpdir(), 'eval-delivery-home-')); + const sessionId = 'delivery-flush-1'; + const marker = deliveryMarkerPath(sessionId); + const preloadPath = path.join(testDir, 'async-stdout-preload.js'); + fs.writeFileSync(preloadPath, [ + '// Test-only preload: defer every stdout write to the next macrotask,', + '// so a process.exit(0) before the flush drops the data.', + 'const origWrite = process.stdout.write.bind(process.stdout);', + 'process.stdout.write = function (chunk, encoding, cb) {', + ' if (typeof encoding === \'function\') { cb = encoding; encoding = undefined; }', + ' setImmediate(() => origWrite(chunk, encoding, cb));', + ' return true;', + '};', + '', + ].join('\n')); + try { + fs.rmSync(marker, { force: true }); + registerLeaseFor(testDir, homunculusDir, sessionId); + const result = withOptInConfig(true, () => { + const spawned = spawnSync('node', ['-r', preloadPath, evaluateScript], { + encoding: 'utf8', + input: JSON.stringify(stopPayload(transcript, sessionId, testDir)), + timeout: 10000, + env: isolatedEnv({ CLV2_HOMUNCULUS_DIR: homunculusDir, CLAUDE_PROJECT_DIR: testDir }), + }); + return { + code: spawned.error || spawned.signal ? null : spawned.status, + stdout: spawned.stdout || '', + stderr: spawned.stderr || '', + }; + }); + assert.strictEqual(result.code, 0); + let parsed; + try { + parsed = JSON.parse(result.stdout); + } catch { + assert.fail(`Stdout must arrive complete even with async stdout writes. Got: ${result.stdout}`); + } + assert.strictEqual(parsed.decision, 'block', 'Native Stop delivery blocks the stop'); + assert.ok( + typeof parsed.reason === 'string' && parsed.reason.includes('12 messages'), + `Reason must carry the session signal. Got: ${parsed.reason}` + ); + } finally { + fs.rmSync(marker, { force: true }); + cleanupTestDir(testDir); + fs.rmSync(homunculusDir, { recursive: true, force: true }); + } + })) passed++; else failed++; + if (test('skips delivery when the delivery marker cannot be written', () => { const testDir = createTestDir(); const transcript = createTranscript(testDir, 12); From dd9f8abb0cd075e24998fe13ba787dc885d7b555 Mon Sep 17 00:00:00 2001 From: Rahul Selvaraj <55731288+Laihu08@users.noreply.github.com> Date: Wed, 11 Nov 2026 18:33:02 +0800 Subject: [PATCH 46/78] fix(hooks): normalize whitespace before matching the classifier notice isClassifierNotice now collapses whitespace runs itself, so the session-end hook drops a notice wrapped across lines the same way the LLM summary path already did. Assisted-by: Claude <noreply@anthropic.com> --- scripts/lib/llm-summary.js | 5 +++-- tests/hooks/session-end.test.js | 12 ++++++++++++ tests/lib/llm-summary.test.js | 9 +++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/scripts/lib/llm-summary.js b/scripts/lib/llm-summary.js index dd85b39a2..71bfc21c7 100644 --- a/scripts/lib/llm-summary.js +++ b/scripts/lib/llm-summary.js @@ -35,10 +35,11 @@ function getContextThreshold() { /** * True when a user-turn text is the harness notice left after a * safety-classifier stop. Anchored to the whole message so user text that - * quotes or follows the notice is kept. + * quotes or follows the notice is kept. Whitespace runs (including + * newlines) are collapsed first so every caller matches the same text. */ function isClassifierNotice(text) { - return CLASSIFIER_NOTICE.test(text); + return CLASSIFIER_NOTICE.test(String(text).replace(/\s+/g, ' ').trim()); } /** diff --git a/tests/hooks/session-end.test.js b/tests/hooks/session-end.test.js index 044b3766c..875e5f58e 100644 --- a/tests/hooks/session-end.test.js +++ b/tests/hooks/session-end.test.js @@ -105,6 +105,17 @@ function testNoticeOnlyTranscript() { }); } +function testDropsMultilineClassifierNotice() { + const wrapped = CLASSIFIER_NOTICE_TEXT.replace('safety classifier', 'safety\nclassifier'); + withTranscript('3867eeee-ffff-4aaa-8bbb-cccccccc3867', [ + JSON.stringify({ type: 'user', content: 'Refactor the config loader' }), + JSON.stringify({ type: 'user', content: wrapped }), + ], out => { + assert.ok(out.includes('- Refactor the config loader'), `expected the real user task in:\n${out}`); + assert.ok(!/safety\s+classifier/.test(out), `wrapped notice must not be summarized:\n${out}`); + }); +} + function testKeepsMessageQuotingNotice() { const userText = 'Why did I see "Your response above was stopped by a safety classifier" earlier?'; withTranscript('3867cccc-dddd-4eee-8fff-aaaaaaaa3867', [JSON.stringify({ type: 'user', content: userText })], out => { @@ -116,6 +127,7 @@ function runClassifierNoticeTests() { const results = [ test('drops safety-classifier notices from summary tasks', testDropsClassifierNotice), test('drops the longer classifier notice from summary tasks', testDropsLongClassifierNotice), + test('drops a classifier notice wrapped across lines', testDropsMultilineClassifierNotice), test('writes no summary for a transcript holding only a classifier notice', testNoticeOnlyTranscript), test('keeps a user message that only mentions the classifier notice', testKeepsMessageQuotingNotice), ]; diff --git a/tests/lib/llm-summary.test.js b/tests/lib/llm-summary.test.js index 49b792cf6..322436d6c 100644 --- a/tests/lib/llm-summary.test.js +++ b/tests/lib/llm-summary.test.js @@ -196,6 +196,15 @@ test('isClassifierNotice matches only the whole notice', () => { assert.strictEqual(isClassifierNotice('Why did I see "Your response above was stopped by a safety classifier"?'), false); }); +test('drops a classifier notice wrapped across lines', () => { + const wrapped = CLASSIFIER_NOTICE_LONG_TEXT.replace('safety classifier', 'safety\nclassifier').replace(' The rest', ' \nThe rest'); + assert.strictEqual(isClassifierNotice(wrapped), true); + const p = writeTranscript([userEntry('Refactor the config loader'), userEntry(wrapped), assistantEntry('Done.')]); + const result = extractConversationText(p); + assert.ok(result.includes('Refactor the config loader')); + assert.ok(!result.includes('withheld') && !result.includes('safety classifier'), result); +}); + // --- getContextRemainingPct --- console.log('\ngetContextRemainingPct:'); From 0de42c8e85cb17686eb9fde7cf191f7d6277587e Mon Sep 17 00:00:00 2001 From: YAKA <yakacommuniquer@gmail.com> Date: Mon, 16 Nov 2026 16:53:53 -0400 Subject: [PATCH 47/78] fix(mcp): pin mnemosyne-os to @mnemosyne_os/mcp@2.4.0 In 2.2.0, mnemosyne_vault_list gave a row, with description and folder path, to every vault on the machine, even outside MNEMO_VAULTS. In 2.4.0 it lists only the vaults in MNEMO_VAULTS. --- mcp-configs/mcp-servers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp-configs/mcp-servers.json b/mcp-configs/mcp-servers.json index 369c8b58e..3337ed166 100644 --- a/mcp-configs/mcp-servers.json +++ b/mcp-configs/mcp-servers.json @@ -225,7 +225,7 @@ }, "mnemosyne-os": { "command": "npx", - "args": ["-y", "-p", "@mnemosyne_os/mcp@2.2.0", "mnemosyne-mcp"], + "args": ["-y", "-p", "@mnemosyne_os/mcp@2.4.0", "mnemosyne-mcp"], "env": { "MNEMO_VAULTS": "YOUR_APPROVED_VAULT_NAMES", "MNEMO_DEFAULT_VAULT": "" }, "description": "Opt-in Mnemosyne OS desktop-app memory and dashboard. Replace MNEMO_VAULTS with approved vault names before enabling; the app ingests selected folders into persistent vaults, and memory_ingest can save content for later agents. Vault scope does not restrict session tools, which read local coding-agent transcripts. Review folder and transcript access before enabling. Memory tools use the app at ws://127.0.0.1:7799. Tool results, including private memory and session data, go to the MCP client and its model provider. Not enabled by default." } From 2ca82b30dd950ab12dc0d99ac365a16d336ac9b5 Mon Sep 17 00:00:00 2001 From: Anthya1104 <48214756+yusaanthya@users.noreply.github.com> Date: Tue, 17 Nov 2026 05:37:23 +0800 Subject: [PATCH 48/78] chore(ecc2): update Rust security dependencies --- ecc2/Cargo.lock | 22 +++++++++++----------- ecc2/Cargo.toml | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ecc2/Cargo.lock b/ecc2/Cargo.lock index 78178d0fe..46bab11c2 100644 --- a/ecc2/Cargo.lock +++ b/ecc2/Cargo.lock @@ -162,9 +162,9 @@ dependencies = [ [[package]] name = "block-buffer" -version = "0.12.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdd35008169921d80bc60d3d0ab416eecb028c4cd653352907921d95084790be" +checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa" dependencies = [ "hybrid-array", ] @@ -538,7 +538,7 @@ version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" dependencies = [ - "block-buffer 0.12.0", + "block-buffer 0.12.1", "const-oid", "crypto-common 0.2.2", ] @@ -1152,9 +1152,9 @@ dependencies = [ [[package]] name = "libsqlite3-sys" -version = "0.38.2" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1d20bef17f513b9b3004532233187769cd072d790971f4e4da0e346eb6401e8" +checksum = "14a5f01b87b92705d07b433c06f96cbc764637d81a0bffb5734ce17cf0f9a2b3" dependencies = [ "cc", "pkg-config", @@ -1834,9 +1834,9 @@ dependencies = [ [[package]] name = "rusqlite" -version = "0.40.2" +version = "0.41.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23f2a97da3e3873c73cb2a2e71b35c40ff95e0b1eefa8d72d8499a6928c3b5b3" +checksum = "da9bba6f3506135e120a6586df05be18b48d18896600646a4bec8f993d91a594" dependencies = [ "bitflags 2.13.0", "fallible-iterator", @@ -1858,9 +1858,9 @@ dependencies = [ [[package]] name = "rustix" -version = "1.1.4" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" dependencies = [ "bitflags 2.13.0", "errno", @@ -1895,9 +1895,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.15" +version = "0.103.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281" dependencies = [ "ring", "rustls-pki-types", diff --git a/ecc2/Cargo.toml b/ecc2/Cargo.toml index 4130d98ee..ed9ba02d3 100644 --- a/ecc2/Cargo.toml +++ b/ecc2/Cargo.toml @@ -20,7 +20,7 @@ crossterm = "0.29" tokio = { version = "1", features = ["full"] } # State store -rusqlite = { version = "0.40", features = ["bundled"] } +rusqlite = { version = "0.41", features = ["bundled"] } # Git integration git2 = { version = "0.21", features = ["ssh"] } From ec3922ef99fcc616c85d3b2595d5f405da2db60f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 22:10:32 +0000 Subject: [PATCH 49/78] chore(deps): bump the npm-minor-and-patch group across 1 directory with 8 updates Bumps the npm-minor-and-patch group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [sql.js](https://github.com/sql-js/sql.js) | `1.15.2` | `1.16.0` | | @opencode-ai/plugin | `1.4.3` | `1.19.5` | | [@x402/core](https://github.com/x402-foundation/x402) | `2.29.0` | `2.31.0` | | [@x402/evm](https://github.com/x402-foundation/x402) | `2.29.0` | `2.31.0` | | [@x402/express](https://github.com/x402-foundation/x402) | `2.29.0` | `2.31.0` | | [eslint](https://github.com/eslint/eslint) | `10.13.0` | `10.15.0` | | [globals](https://github.com/sindresorhus/globals) | `17.13.0` | `17.14.0` | | [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli) | `0.49.1` | `0.50.0` | Updates `sql.js` from 1.15.2 to 1.16.0 - [Release notes](https://github.com/sql-js/sql.js/releases) - [Commits](https://github.com/sql-js/sql.js/compare/v1.15.2...v1.16.0) Updates `@opencode-ai/plugin` from 1.4.3 to 1.19.5 Updates `@x402/core` from 2.29.0 to 2.31.0 - [Commits](https://github.com/x402-foundation/x402/compare/npm-@x402/core@v2.29.0...npm-@x402/core@v2.31.0) Updates `@x402/evm` from 2.29.0 to 2.31.0 - [Commits](https://github.com/x402-foundation/x402/compare/npm-@x402/evm@v2.29.0...npm-@x402/evm@v2.31.0) Updates `@x402/express` from 2.29.0 to 2.31.0 - [Commits](https://github.com/x402-foundation/x402/compare/npm-@x402/express@v2.29.0...npm-@x402/express@v2.31.0) Updates `eslint` from 10.13.0 to 10.15.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](https://github.com/eslint/eslint/compare/v10.13.0...v10.15.0) Updates `globals` from 17.13.0 to 17.14.0 - [Release notes](https://github.com/sindresorhus/globals/releases) - [Commits](https://github.com/sindresorhus/globals/compare/v17.13.0...v17.14.0) Updates `markdownlint-cli` from 0.49.1 to 0.50.0 - [Release notes](https://github.com/igorshubovych/markdownlint-cli/releases) - [Commits](https://github.com/igorshubovych/markdownlint-cli/compare/v0.49.1...v0.50.0) --- updated-dependencies: - dependency-name: "@opencode-ai/plugin" dependency-version: 1.19.5 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-and-patch - dependency-name: "@x402/core" dependency-version: 2.31.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-and-patch - dependency-name: "@x402/evm" dependency-version: 2.31.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-and-patch - dependency-name: "@x402/express" dependency-version: 2.31.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-and-patch - dependency-name: eslint dependency-version: 10.14.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-and-patch - dependency-name: globals dependency-version: 17.14.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-and-patch - dependency-name: markdownlint-cli dependency-version: 0.50.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-minor-and-patch - dependency-name: sql.js dependency-version: 1.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: npm-minor-and-patch ... Signed-off-by: dependabot[bot] <support@github.com> --- package.json | 16 +- yarn.lock | 618 ++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 526 insertions(+), 108 deletions(-) diff --git a/package.json b/package.json index 32eecbf01..9afa8316f 100644 --- a/package.json +++ b/package.json @@ -570,7 +570,7 @@ "@iarna/toml": "2.2.5", "ajv": "8.20.0", "js-yaml": "5.5.0", - "sql.js": "1.15.2", + "sql.js": "1.16.0", "zod": "4.6.7" }, "pi": { @@ -586,16 +586,16 @@ }, "devDependencies": { "@eslint/js": "9.39.2", - "@opencode-ai/plugin": "1.4.3", + "@opencode-ai/plugin": "1.19.5", "@types/node": "26.6.6", - "@x402/core": "2.29.0", - "@x402/evm": "2.29.0", - "@x402/express": "2.29.0", + "@x402/core": "2.31.0", + "@x402/evm": "2.31.0", + "@x402/express": "2.31.0", "c8": "11.0.0", - "eslint": "10.13.0", + "eslint": "10.15.0", "express": "4.22.3", - "globals": "17.13.0", - "markdownlint-cli": "0.49.1", + "globals": "17.14.0", + "markdownlint-cli": "0.50.0", "typescript": "6.0.3" }, "engines": { diff --git a/yarn.lock b/yarn.lock index 255b1dcbc..8a2513a35 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,6 +12,15 @@ __metadata: languageName: node linkType: hard +"@ai-sdk/provider@npm:3.0.8": + version: 3.0.8 + resolution: "@ai-sdk/provider@npm:3.0.8" + dependencies: + json-schema: "npm:^0.4.0" + checksum: 10c0/c68637c0139a6ce8af17bac1d7d539f531860026237c5c971dcecda2daa8b1e42d8c05e1e664ece60c15edb325c0253fd5b091ee54d32f870a750a493acbb0b7 + languageName: node + linkType: hard + "@bcoe/v8-coverage@npm:^1.0.1": version: 1.0.2 resolution: "@bcoe/v8-coverage@npm:1.0.2" @@ -59,14 +68,14 @@ __metadata: languageName: node linkType: hard -"@eslint/config-array@npm:^0.23.5": - version: 0.23.5 - resolution: "@eslint/config-array@npm:0.23.5" +"@eslint/config-array@npm:^0.23.6": + version: 0.23.6 + resolution: "@eslint/config-array@npm:0.23.6" dependencies: "@eslint/object-schema": "npm:^3.0.5" debug: "npm:^4.3.1" - minimatch: "npm:^10.2.4" - checksum: 10c0/b24833c4c76e78ee075d306cd3f095db46b2db0f90cc13a6ee6e4275f9889731c05bf5403ab5fefb79c756e07ac9184ed0e04570341382f9eccbccc80e6d1a0c + minimatch: "npm:^11.0.5" + checksum: 10c0/adf798a55b4f58e1db954347633ca2c07c51d413590f274f77d1d94d3413de3d321e3558e313f616a822cb76d90e9c378ec6dd2f49b3e51a2070e61f4405f2ae languageName: node linkType: hard @@ -160,6 +169,15 @@ __metadata: languageName: node linkType: hard +"@isaacs/fs-minipass@npm:^4.0.0": + version: 4.0.1 + resolution: "@isaacs/fs-minipass@npm:4.0.1" + dependencies: + minipass: "npm:^7.0.4" + checksum: 10c0/c25b6dc1598790d5b55c0947a9b7d111cfa92594db5296c3b907e2f533c033666f692a3939eadac17b1c7c40d362d0b0635dc874cbfe3e70db7c2b07cc97a5d2 + languageName: node + linkType: hard + "@isaacs/nonrecursive-glob-match@npm:^1.0.2": version: 1.1.0 resolution: "@isaacs/nonrecursive-glob-match@npm:1.1.0" @@ -217,6 +235,48 @@ __metadata: languageName: node linkType: hard +"@msgpackr-extract/msgpackr-extract-darwin-arm64@npm:3.0.7": + version: 3.0.7 + resolution: "@msgpackr-extract/msgpackr-extract-darwin-arm64@npm:3.0.7" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@msgpackr-extract/msgpackr-extract-darwin-x64@npm:3.0.7": + version: 3.0.7 + resolution: "@msgpackr-extract/msgpackr-extract-darwin-x64@npm:3.0.7" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@msgpackr-extract/msgpackr-extract-linux-arm64@npm:3.0.7": + version: 3.0.7 + resolution: "@msgpackr-extract/msgpackr-extract-linux-arm64@npm:3.0.7" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + +"@msgpackr-extract/msgpackr-extract-linux-arm@npm:3.0.7": + version: 3.0.7 + resolution: "@msgpackr-extract/msgpackr-extract-linux-arm@npm:3.0.7" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"@msgpackr-extract/msgpackr-extract-linux-x64@npm:3.0.7": + version: 3.0.7 + resolution: "@msgpackr-extract/msgpackr-extract-linux-x64@npm:3.0.7" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + +"@msgpackr-extract/msgpackr-extract-win32-x64@npm:3.0.7": + version: 3.0.7 + resolution: "@msgpackr-extract/msgpackr-extract-win32-x64@npm:3.0.7" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@noble/ciphers@npm:^1.3.0": version: 1.3.0 resolution: "@noble/ciphers@npm:1.3.0" @@ -249,30 +309,35 @@ __metadata: languageName: node linkType: hard -"@opencode-ai/plugin@npm:1.4.3": - version: 1.4.3 - resolution: "@opencode-ai/plugin@npm:1.4.3" +"@opencode-ai/plugin@npm:1.19.5": + version: 1.19.5 + resolution: "@opencode-ai/plugin@npm:1.19.5" dependencies: - "@opencode-ai/sdk": "npm:1.4.3" + "@ai-sdk/provider": "npm:3.0.8" + "@opencode-ai/sdk": "npm:1.19.5" + effect: "npm:4.0.0-beta.83" zod: "npm:4.1.8" peerDependencies: - "@opentui/core": ">=0.1.97" - "@opentui/solid": ">=0.1.97" + "@opentui/core": ">=0.4.5" + "@opentui/keymap": ">=0.4.5" + "@opentui/solid": ">=0.4.5" peerDependenciesMeta: "@opentui/core": optional: true + "@opentui/keymap": + optional: true "@opentui/solid": optional: true - checksum: 10c0/a20328a691a674638e4718c1fb911ea68b60fc7560f1bf314324114ccdcabbddc12e98c4fc9f3aad69e92aaaac7edbd44216bf036955ec5d1f50282430ab06ae + checksum: 10c0/a77baa868e319ccb65fc0614b6c00aa914d66fc63a5c7bb23329712de0a2eb432c0f41191b1d5618dac02a16e6ac91590a9f5c0724a6dc483c86eadc1dcf7c31 languageName: node linkType: hard -"@opencode-ai/sdk@npm:1.4.3": - version: 1.4.3 - resolution: "@opencode-ai/sdk@npm:1.4.3" +"@opencode-ai/sdk@npm:1.19.5": + version: 1.19.5 + resolution: "@opencode-ai/sdk@npm:1.19.5" dependencies: cross-spawn: "npm:7.0.6" - checksum: 10c0/edba27ef01ecfb6fde7df2348f953aab64f2e7b99e9cd5b155474e7e02cc0db62da242d9edcd5b704110b9ef82bc16633d99d25eaa812d4279badede71ae419f + checksum: 10c0/490d115f7f4654d4cdc5c13c03aed3d60486021b57d8e9a5932b67f46ff4fb5a3ee74188c50159444cbac88e309ef49018e098caded017498764766d06ed72cb languageName: node linkType: hard @@ -331,6 +396,13 @@ __metadata: languageName: node linkType: hard +"@standard-schema/spec@npm:^1.1.0": + version: 1.1.0 + resolution: "@standard-schema/spec@npm:1.1.0" + checksum: 10c0/d90f55acde4b2deb983529c87e8025fa693de1a5e8b49ecc6eb84d1fd96328add0e03d7d551442156c7432fd78165b2c26ff561b970a9a881f046abb78d6a526 + languageName: node + linkType: hard + "@types/debug@npm:^4.0.0": version: 4.1.13 resolution: "@types/debug@npm:4.1.13" @@ -398,56 +470,63 @@ __metadata: languageName: node linkType: hard -"@x402/core@npm:2.29.0, @x402/core@npm:~2.29.0": - version: 2.29.0 - resolution: "@x402/core@npm:2.29.0" +"@x402/core@npm:2.31.0, @x402/core@npm:~2.31.0": + version: 2.31.0 + resolution: "@x402/core@npm:2.31.0" dependencies: zod: "npm:^4.6.6" - checksum: 10c0/1fd86190caf9286671acddad6523d040f6dcbe7b054ddbc21d885e18252125e515fefe745c67ebf60ef271a2bbdecb3a122dee272bb6f2cf4ec9c4d5b21519d6 + checksum: 10c0/67333e7049fc0dccc85723f25582e64ab83a4aec7d360b0781028d189535568a4789a948e9f7f6229d2380e353b3355e553f44ed0a5e1517b08d64f64bcee0f3 languageName: node linkType: hard -"@x402/evm@npm:2.29.0": - version: 2.29.0 - resolution: "@x402/evm@npm:2.29.0" +"@x402/evm@npm:2.31.0": + version: 2.31.0 + resolution: "@x402/evm@npm:2.31.0" dependencies: - "@x402/core": "npm:~2.29.0" + "@x402/core": "npm:~2.31.0" viem: "npm:^2.48.11" zod: "npm:^4.6.6" - checksum: 10c0/77ec52e48971036aab1e6349cce4814621aa61776a6160259959502f47721cfa6403c4ca641c48cdb6ff2ec1d953d312e65d3c8fe37c178f1e4f98069a295169 + checksum: 10c0/9705d9b9b9418cd2cd829d89f311c3e885285b1d78929b6e7149b1f4a891cac7a9b31dc2ad8d0a90eac8fe394e13405a426a2bdf690e4088791e2aef3b3ca6f6 languageName: node linkType: hard -"@x402/express@npm:2.29.0": - version: 2.29.0 - resolution: "@x402/express@npm:2.29.0" +"@x402/express@npm:2.31.0": + version: 2.31.0 + resolution: "@x402/express@npm:2.31.0" dependencies: - "@x402/core": "npm:~2.29.0" - "@x402/extensions": "npm:~2.29.0" + "@x402/core": "npm:~2.31.0" + "@x402/extensions": "npm:~2.31.0" peerDependencies: - "@x402/paywall": ^2.29.0 + "@x402/paywall": ^2.31.0 express: ^4.22.3 || ^5.3.0 peerDependenciesMeta: "@x402/paywall": optional: true - checksum: 10c0/a0f8f30a79db918f5bcadb8dc39578a8ee0111bd89ea3f97f9911ab6d6bdc867264206d25f9417e4cafe0529efd2c22c7a62a634a25fe36eb75dfb404c0c3658 + checksum: 10c0/65e3a52dae523f58b1c4b11b60b99d9209da859b7ec9fc0523c6046ce40d589cc51a9706be19f8c34805b04132aea541b893b1036a30732bf03c89df722231d7 languageName: node linkType: hard -"@x402/extensions@npm:~2.29.0": - version: 2.29.0 - resolution: "@x402/extensions@npm:2.29.0" +"@x402/extensions@npm:~2.31.0": + version: 2.31.0 + resolution: "@x402/extensions@npm:2.31.0" dependencies: "@noble/curves": "npm:^1.9.0" "@scure/base": "npm:^1.2.6" "@signinwithethereum/siwe": "npm:^4.1.0" - "@x402/core": "npm:~2.29.0" + "@x402/core": "npm:~2.31.0" ajv: "npm:^8.18.0" jose: "npm:^5.9.6" tweetnacl: "npm:^1.0.3" viem: "npm:^2.48.11" zod: "npm:^4.6.6" - checksum: 10c0/966a9593a81ebcf942ff0a098dd86a9732757abd69fd5316b17ca83326d0dbb23555b68afdf5d09f64604904b59edd86c9732557fb1de474387ac8c089dc5582 + checksum: 10c0/3ec7adb56608734d16493e3adc9d32ed3a229733dca43dd53d50406d6ec79ad0eedc007acca213411adadbc0e8538140707466c239217270836db2a3fc453795 + languageName: node + linkType: hard + +"abbrev@npm:^5.0.0": + version: 5.0.0 + resolution: "abbrev@npm:5.0.0" + checksum: 10c0/8e88f5c798ea4562d28c5a3e9ad69e3879890bc5d695d8f2dffb8609be4c890aacc8f80ef4553fdd2c6a62d70c2ce8bc57b38074e383beb7487bdafa9ed42ea5 languageName: node linkType: hard @@ -692,6 +771,13 @@ __metadata: languageName: node linkType: hard +"chownr@npm:^3.0.0": + version: 3.0.0 + resolution: "chownr@npm:3.0.0" + checksum: 10c0/43925b87700f7e3893296c8e9c56cc58f926411cce3a6e5898136daaf08f08b9a8eb76d37d3267e707d0dcc17aed2e2ebdf5848c0c3ce95cf910a919935c1b10 + languageName: node + linkType: hard + "cliui@npm:^8.0.1": version: 8.0.1 resolution: "cliui@npm:8.0.1" @@ -846,6 +932,13 @@ __metadata: languageName: node linkType: hard +"detect-libc@npm:^2.0.1": + version: 2.1.2 + resolution: "detect-libc@npm:2.1.2" + checksum: 10c0/acc675c29a5649fa1fb6e255f993b8ee829e510b6b56b0910666949c80c364738833417d0edb5f90e4e46be17228b0f2b66a010513984e18b15deeeac49369c4 + languageName: node + linkType: hard + "devlop@npm:^1.0.0": version: 1.1.0 resolution: "devlop@npm:1.1.0" @@ -872,19 +965,19 @@ __metadata: dependencies: "@eslint/js": "npm:9.39.2" "@iarna/toml": "npm:2.2.5" - "@opencode-ai/plugin": "npm:1.4.3" + "@opencode-ai/plugin": "npm:1.19.5" "@types/node": "npm:26.6.6" - "@x402/core": "npm:2.29.0" - "@x402/evm": "npm:2.29.0" - "@x402/express": "npm:2.29.0" + "@x402/core": "npm:2.31.0" + "@x402/evm": "npm:2.31.0" + "@x402/express": "npm:2.31.0" ajv: "npm:8.20.0" c8: "npm:11.0.0" - eslint: "npm:10.13.0" + eslint: "npm:10.15.0" express: "npm:4.22.3" - globals: "npm:17.13.0" + globals: "npm:17.14.0" js-yaml: "npm:5.5.0" - markdownlint-cli: "npm:0.49.1" - sql.js: "npm:1.15.2" + markdownlint-cli: "npm:0.50.0" + sql.js: "npm:1.16.0" typescript: "npm:6.0.3" zod: "npm:4.6.7" bin: @@ -904,6 +997,24 @@ __metadata: languageName: node linkType: hard +"effect@npm:4.0.0-beta.83": + version: 4.0.0-beta.83 + resolution: "effect@npm:4.0.0-beta.83" + dependencies: + "@standard-schema/spec": "npm:^1.1.0" + fast-check: "npm:^4.8.0" + find-my-way-ts: "npm:^0.1.6" + ini: "npm:^7.0.0" + kubernetes-types: "npm:^1.30.0" + msgpackr: "npm:^2.0.1" + multipasta: "npm:^0.2.7" + toml: "npm:^4.1.1" + uuid: "npm:^14.0.0" + yaml: "npm:^2.9.0" + checksum: 10c0/1eaa03aee6e8bf7190645fc032cb7541aafe2b07ed9de8ebe13525971cd5fcea2d003b327fbed626439458dc619ef5c1371f27f6d1ec52c8acf851ead1237c22 + languageName: node + linkType: hard + "emoji-regex@npm:^8.0.0": version: 8.0.0 resolution: "emoji-regex@npm:8.0.0" @@ -925,6 +1036,13 @@ __metadata: languageName: node linkType: hard +"env-paths@npm:^2.2.0": + version: 2.2.1 + resolution: "env-paths@npm:2.2.1" + checksum: 10c0/285325677bf00e30845e330eec32894f5105529db97496ee3f598478e50f008c5352a41a30e5e72ec9de8a542b5a570b85699cd63bd2bc646dbcb9f311d83bc4 + languageName: node + linkType: hard + "es-define-property@npm:^1.0.1": version: 1.0.1 resolution: "es-define-property@npm:1.0.1" @@ -995,17 +1113,17 @@ __metadata: languageName: node linkType: hard -"eslint@npm:10.13.0": - version: 10.13.0 - resolution: "eslint@npm:10.13.0" +"eslint@npm:10.15.0": + version: 10.15.0 + resolution: "eslint@npm:10.15.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.8.0" "@eslint-community/regexpp": "npm:^4.12.2" - "@eslint/config-array": "npm:^0.23.5" + "@eslint/config-array": "npm:^0.23.6" "@eslint/config-helpers": "npm:^0.7.0" "@eslint/core": "npm:^1.2.1" "@eslint/plugin-kit": "npm:^0.7.3" - "@humanfs/node": "npm:^0.16.6" + "@humanfs/node": "npm:^0.16.8" "@humanwhocodes/module-importer": "npm:^1.0.1" "@humanwhocodes/retry": "npm:^0.4.2" "@types/estree": "npm:^1.0.6" @@ -1026,7 +1144,7 @@ __metadata: imurmurhash: "npm:^0.1.4" is-glob: "npm:^4.0.0" json-stable-stringify-without-jsonify: "npm:^1.0.1" - minimatch: "npm:^10.2.5" + minimatch: "npm:^11.0.5" natural-compare: "npm:^1.4.0" optionator: "npm:^0.9.3" peerDependencies: @@ -1036,7 +1154,7 @@ __metadata: optional: true bin: eslint: bin/eslint.js - checksum: 10c0/4a28e85de458f13306d30f07df21b58109056bd8bd691b6158952d95e126cf742db2eb09562e3f1c1cc0154ee44dedc789f8ced8d0d8da48e82a689aa9cb1c0d + checksum: 10c0/81775d3bc273007b3b6f08d114f57b0c83527e8ebbb89674726bbd29b66883a6fef016a0271e05014a067d1c1079514c5523df96b86740fdfe65ef56abacb030 languageName: node linkType: hard @@ -1097,6 +1215,13 @@ __metadata: languageName: node linkType: hard +"exponential-backoff@npm:^3.1.1": + version: 3.1.3 + resolution: "exponential-backoff@npm:3.1.3" + checksum: 10c0/77e3ae682b7b1f4972f563c6dbcd2b0d54ac679e62d5d32f3e5085feba20483cf28bd505543f520e287a56d4d55a28d7874299941faf637e779a1aa5994d1267 + languageName: node + linkType: hard + "express@npm:4.22.3": version: 4.22.3 resolution: "express@npm:4.22.3" @@ -1136,6 +1261,15 @@ __metadata: languageName: node linkType: hard +"fast-check@npm:^4.8.0": + version: 4.10.2 + resolution: "fast-check@npm:4.10.2" + dependencies: + pure-rand: "npm:^8.0.0" + checksum: 10c0/ee9329018cc98d7fb3d7e5c944c4c667796b37133cd96aeb8dd1aeba901cf8561c2cc1355ffd54e1a16d262170a04bcfdc335da2e865294166e7bb8d97313f7d + languageName: node + linkType: hard + "fast-deep-equal@npm:^3.1.1, fast-deep-equal@npm:^3.1.3": version: 3.1.3 resolution: "fast-deep-equal@npm:3.1.3" @@ -1200,6 +1334,13 @@ __metadata: languageName: node linkType: hard +"find-my-way-ts@npm:^0.1.6": + version: 0.1.6 + resolution: "find-my-way-ts@npm:0.1.6" + checksum: 10c0/16ad4b15275b56ee0ec361d0c61afbdff4c75bd0ac04112f6910f188cb1058096ba63529c2363914da6bb60266aa4def1025af04af26368ff87eb0df52f2862f + languageName: node + linkType: hard + "find-up@npm:^5.0.0": version: 5.0.0 resolution: "find-up@npm:5.0.0" @@ -1321,10 +1462,10 @@ __metadata: languageName: node linkType: hard -"globals@npm:17.13.0": - version: 17.13.0 - resolution: "globals@npm:17.13.0" - checksum: 10c0/8371d9e4e5581640141b5cce70a098edd765d2e3ab063b14998e590698071e0afb4a4a6739ccfbdcbdeb2565c5553697ba07d95703c51039912cf341a7dba7a7 +"globals@npm:17.14.0": + version: 17.14.0 + resolution: "globals@npm:17.14.0" + checksum: 10c0/422d17c24e87170d4aa566b97a53339ae451c2f4d78512594a7ca951cdb939bc4a85c10071e6dcf77ca63de48713a77f2e71eb9214e44880233dff2090e92731 languageName: node linkType: hard @@ -1335,6 +1476,13 @@ __metadata: languageName: node linkType: hard +"graceful-fs@npm:^4.2.6": + version: 4.2.12 + resolution: "graceful-fs@npm:4.2.12" + checksum: 10c0/a4e2ccd9fe7ed384ed0d466363028978c1b1537f0719db826dfa6a850abd8fc418596f14d9a9609f830ba8137df3da1acc1132a6afd635d8633fbe53530c3e6d + languageName: node + linkType: hard + "has-flag@npm:^4.0.0": version: 4.0.0 resolution: "has-flag@npm:4.0.0" @@ -1417,10 +1565,10 @@ __metadata: languageName: node linkType: hard -"ignore@npm:~7.0.6": - version: 7.0.8 - resolution: "ignore@npm:7.0.8" - checksum: 10c0/95ed888e66ad46c478680af1628ac1d242a623fcac418bd5533b91549f609a6756985a32ebfe087b1d97806f52a20f991c804e3b074e9cf16fd1404f2bcd9c0a +"ignore@npm:~7.0.13": + version: 7.0.14 + resolution: "ignore@npm:7.0.14" + checksum: 10c0/9845d63a5fd29c738b7b94bef4a304c0812453b5360f5edc0859c1428902058753dffeed0e17b9e88bf529815803ec2d31eefa9bdaea8f32154128143fae2ea9 languageName: node linkType: hard @@ -1438,7 +1586,7 @@ __metadata: languageName: node linkType: hard -"ini@npm:~7.0.0": +"ini@npm:^7.0.0, ini@npm:~7.0.0": version: 7.0.0 resolution: "ini@npm:7.0.0" checksum: 10c0/7520cae38bd5587e1cbca4637bb5fc0e157f38e0816522756456010ef703772d0018f9f4987cb9977bf3b10c1feccaad7800744dd1f5d85fb435e58a1baa9754 @@ -1513,6 +1661,13 @@ __metadata: languageName: node linkType: hard +"isexe@npm:^4.0.0": + version: 4.0.0 + resolution: "isexe@npm:4.0.0" + checksum: 10c0/5884815115bceac452877659a9c7726382531592f43dc29e5d48b7c4100661aed54018cb90bd36cb2eaeba521092570769167acbb95c18d39afdccbcca06c5ce + languageName: node + linkType: hard + "isows@npm:1.0.7": version: 1.0.7 resolution: "isows@npm:1.0.7" @@ -1582,6 +1737,13 @@ __metadata: languageName: node linkType: hard +"json-schema@npm:^0.4.0": + version: 0.4.0 + resolution: "json-schema@npm:0.4.0" + checksum: 10c0/d4a637ec1d83544857c1c163232f3da46912e971d5bf054ba44fdb88f07d8d359a462b4aec46f2745efbc57053365608d88bc1d7b1729f7b4fc3369765639ed3 + languageName: node + linkType: hard + "json-stable-stringify-without-jsonify@npm:^1.0.1": version: 1.0.1 resolution: "json-stable-stringify-without-jsonify@npm:1.0.1" @@ -1623,6 +1785,13 @@ __metadata: languageName: node linkType: hard +"kubernetes-types@npm:^1.30.0": + version: 1.30.0 + resolution: "kubernetes-types@npm:1.30.0" + checksum: 10c0/de3641e4f50cfc123c4102a73c12932e1db8e51783c7cae4ea8ad3561bd56fab0f1c2346801f84a4c36aae8cea0b25d21e9514cc0fcecd4d64b1314043263076 + languageName: node + linkType: hard + "levn@npm:^0.4.1": version: 0.4.1 resolution: "levn@npm:0.4.1" @@ -1683,42 +1852,43 @@ __metadata: languageName: node linkType: hard -"markdownlint-cli@npm:0.49.1": - version: 0.49.1 - resolution: "markdownlint-cli@npm:0.49.1" +"markdownlint-cli@npm:0.50.0": + version: 0.50.0 + resolution: "markdownlint-cli@npm:0.50.0" dependencies: commander: "npm:~15.0.0" deep-extend: "npm:~0.6.0" - ignore: "npm:~7.0.6" - js-yaml: "npm:~5.2.1" + ignore: "npm:~7.0.13" + js-yaml: "npm:~5.5.0" jsonc-parser: "npm:~3.3.1" jsonpointer: "npm:~5.0.1" - markdown-it: "npm:~14.3.0" - markdownlint: "npm:~0.41.1" - minimatch: "npm:~10.2.5" + markdown-it: "npm:~15.0.3" + markdownlint: "npm:~0.42.0" + minimatch: "npm:~10.2.6" run-con: "npm:~1.3.3" - smol-toml: "npm:~1.7.0" + smol-toml: "npm:~1.9.1" tinyglobby: "npm:~0.2.17" bin: markdownlint: markdownlint.js - checksum: 10c0/bd218220f3db819c4a52fb2a705dfd725bddde9311df12409711be0b11faab60a4fec8ded2883e44f0137f9873b846e3ee444d168064fab71d17261391ea3e1c + checksum: 10c0/66f66b3853339c2aa44524bc96200b61c56f50dc6e530cdf07de1d87bb03eb8414660c1d8510296b878f3938c94619e511324b94e3dbc427f01bb9e48690dc97 languageName: node linkType: hard -"markdownlint@npm:~0.41.1": - version: 0.41.1 - resolution: "markdownlint@npm:0.41.1" +"markdownlint@npm:~0.42.0": + version: 0.42.1 + resolution: "markdownlint@npm:0.42.1" dependencies: - micromark: "npm:4.0.2" - micromark-core-commonmark: "npm:2.0.3" + micromark: "npm:4.0.3" + micromark-core-commonmark: "npm:2.0.4" micromark-extension-directive: "npm:4.0.0" micromark-extension-gfm-autolink-literal: "npm:2.1.0" micromark-extension-gfm-footnote: "npm:2.1.0" - micromark-extension-gfm-table: "npm:2.1.1" + micromark-extension-gfm-table: "npm:2.1.2" micromark-extension-math: "npm:3.1.0" - micromark-util-types: "npm:2.0.2" - string-width: "npm:8.2.1" - checksum: 10c0/ad1012c4723ebfca0b4578d6ef46f46f5c9d7d3e3cfd935933f23f7174b62b4ae153b56d62e9ef6250b511eec2a4b719faaaad32bdda7fee4763bf38dffef972 + micromark-util-types: "npm:2.0.3" + re2js: "npm:2.9.1" + string-width: "npm:8.3.0" + checksum: 10c0/f052eebb2b7e27282a66ba8fcc4619fbcb3ca2fcf80f5df763c3d999dfc786e19cb95d6bb78f1ad6258bb88e1c3c3bbbfa33a61d7ac72e9ae888e17e7964440d languageName: node linkType: hard @@ -1757,7 +1927,32 @@ __metadata: languageName: node linkType: hard -"micromark-core-commonmark@npm:2.0.3, micromark-core-commonmark@npm:^2.0.0": +"micromark-core-commonmark@npm:2.0.4": + version: 2.0.4 + resolution: "micromark-core-commonmark@npm:2.0.4" + dependencies: + decode-named-character-reference: "npm:^1.0.0" + devlop: "npm:^1.0.0" + micromark-factory-destination: "npm:^2.0.0" + micromark-factory-label: "npm:^2.0.0" + micromark-factory-space: "npm:^2.1.0" + micromark-factory-title: "npm:^2.0.0" + micromark-factory-whitespace: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-chunked: "npm:^2.0.0" + micromark-util-classify-character: "npm:^2.0.0" + micromark-util-edit-map: "npm:^1.0.0" + micromark-util-html-tag-name: "npm:^2.0.0" + micromark-util-normalize-identifier: "npm:^2.0.0" + micromark-util-resolve-all: "npm:^2.0.0" + micromark-util-subtokenize: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.3" + checksum: 10c0/19f0ff7113e0f836aa178e041ab8cc5011c70750ceee584979df990c6a3db08f35c8b34673d05ae6108fedfd9db80291f3d5b0367f3d355872b39a94b35c3d63 + languageName: node + linkType: hard + +"micromark-core-commonmark@npm:^2.0.0": version: 2.0.3 resolution: "micromark-core-commonmark@npm:2.0.3" dependencies: @@ -1824,16 +2019,16 @@ __metadata: languageName: node linkType: hard -"micromark-extension-gfm-table@npm:2.1.1": - version: 2.1.1 - resolution: "micromark-extension-gfm-table@npm:2.1.1" +"micromark-extension-gfm-table@npm:2.1.2": + version: 2.1.2 + resolution: "micromark-extension-gfm-table@npm:2.1.2" dependencies: devlop: "npm:^1.0.0" micromark-factory-space: "npm:^2.0.0" micromark-util-character: "npm:^2.0.0" micromark-util-symbol: "npm:^2.0.0" micromark-util-types: "npm:^2.0.0" - checksum: 10c0/04bc00e19b435fa0add62cd029d8b7eb6137522f77832186b1d5ef34544a9bd030c9cf85e92ddfcc5c31f6f0a58a43d4b96dba4fc21316037c734630ee12c912 + checksum: 10c0/cb373e2a1df6700a884b3fc85bdf47fee1dd06664e72cf866dd1e5828f017517cbc3e3a58b9256d6b5c5a21b067151806afbf780188c47d2fc027004ea3ab07c languageName: node linkType: hard @@ -1885,6 +2080,16 @@ __metadata: languageName: node linkType: hard +"micromark-factory-space@npm:^2.1.0": + version: 2.1.0 + resolution: "micromark-factory-space@npm:2.1.0" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/4a8674b3688e958a290bf193eab123cb6634f76bb21f8b3c9e1a8a3c8e25380080d4735b179cf68cada61b49de2c8a0b9e2e90f274105a84803672fa0a933e7b + languageName: node + linkType: hard + "micromark-factory-title@npm:^2.0.0": version: 2.0.1 resolution: "micromark-factory-title@npm:2.0.1" @@ -1958,6 +2163,15 @@ __metadata: languageName: node linkType: hard +"micromark-util-edit-map@npm:^1.0.0": + version: 1.0.0 + resolution: "micromark-util-edit-map@npm:1.0.0" + dependencies: + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/5f6caaa4d8a3c5b95632c8ab66ffaa488d496583ba37bbf7f5f7dd5c7bc3a5c51af97bc5767aa92c6aa906c5c031f0b09a5239284a6d0f1707d4f953bb7d8e4e + languageName: node + linkType: hard + "micromark-util-encode@npm:^2.0.0": version: 2.0.1 resolution: "micromark-util-encode@npm:2.0.1" @@ -2020,16 +2234,23 @@ __metadata: languageName: node linkType: hard -"micromark-util-types@npm:2.0.2, micromark-util-types@npm:^2.0.0": +"micromark-util-types@npm:2.0.3, micromark-util-types@npm:^2.0.3": + version: 2.0.3 + resolution: "micromark-util-types@npm:2.0.3" + checksum: 10c0/fc37f4e5d58c06bb6dba16b608abbf8db6949a141bd21802c1110121ef7c093811145de2e22fc277cce8ba5e5a38788e14b5f0d142ef1cd0fcfd918ce6c7940c + languageName: node + linkType: hard + +"micromark-util-types@npm:^2.0.0": version: 2.0.2 resolution: "micromark-util-types@npm:2.0.2" checksum: 10c0/c8c15b96c858db781c4393f55feec10004bf7df95487636c9a9f7209e51002a5cca6a047c5d2a5dc669ff92da20e57aaa881e81a268d9ccadb647f9dce305298 languageName: node linkType: hard -"micromark@npm:4.0.2": - version: 4.0.2 - resolution: "micromark@npm:4.0.2" +"micromark@npm:4.0.3": + version: 4.0.3 + resolution: "micromark@npm:4.0.3" dependencies: "@types/debug": "npm:^4.0.0" debug: "npm:^4.0.0" @@ -2041,6 +2262,7 @@ __metadata: micromark-util-chunked: "npm:^2.0.0" micromark-util-combine-extensions: "npm:^2.0.0" micromark-util-decode-numeric-character-reference: "npm:^2.0.0" + micromark-util-edit-map: "npm:^1.0.0" micromark-util-encode: "npm:^2.0.0" micromark-util-normalize-identifier: "npm:^2.0.0" micromark-util-resolve-all: "npm:^2.0.0" @@ -2048,7 +2270,7 @@ __metadata: micromark-util-subtokenize: "npm:^2.0.0" micromark-util-symbol: "npm:^2.0.0" micromark-util-types: "npm:^2.0.0" - checksum: 10c0/07462287254219d6eda6eac8a3cebaff2994e0575499e7088027b825105e096e4f51e466b14b2a81b71933a3b6c48ee069049d87bc2c2127eee50d9cc69e8af6 + checksum: 10c0/f1710d5c255e3d20127127223263aee539a04c3ca7423019d18f668656cd82eb9282362cf281cac31b7e9b282d04e297c17bf3e302201e2621ed32af24e69ba9 languageName: node linkType: hard @@ -2094,13 +2316,22 @@ __metadata: languageName: node linkType: hard -"minipass@npm:^7.1.2, minipass@npm:^7.1.3": +"minipass@npm:^7.0.4, minipass@npm:^7.1.2, minipass@npm:^7.1.3": version: 7.1.3 resolution: "minipass@npm:7.1.3" checksum: 10c0/539da88daca16533211ea5a9ee98dc62ff5742f531f54640dd34429e621955e91cc280a91a776026264b7f9f6735947629f920944e9c1558369e8bf22eb33fbb languageName: node linkType: hard +"minizlib@npm:^3.1.0": + version: 3.1.0 + resolution: "minizlib@npm:3.1.0" + dependencies: + minipass: "npm:^7.1.2" + checksum: 10c0/5aad75ab0090b8266069c9aabe582c021ae53eb33c6c691054a13a45db3b4f91a7fb1bd79151e6b4e9e9a86727b522527c0a06ec7d45206b745d54cd3097bcec + languageName: node + linkType: hard + "ms@npm:2.0.0": version: 2.0.0 resolution: "ms@npm:2.0.0" @@ -2115,6 +2346,56 @@ __metadata: languageName: node linkType: hard +"msgpackr-extract@npm:^3.0.6": + version: 3.0.7 + resolution: "msgpackr-extract@npm:3.0.7" + dependencies: + "@msgpackr-extract/msgpackr-extract-darwin-arm64": "npm:3.0.7" + "@msgpackr-extract/msgpackr-extract-darwin-x64": "npm:3.0.7" + "@msgpackr-extract/msgpackr-extract-linux-arm": "npm:3.0.7" + "@msgpackr-extract/msgpackr-extract-linux-arm64": "npm:3.0.7" + "@msgpackr-extract/msgpackr-extract-linux-x64": "npm:3.0.7" + "@msgpackr-extract/msgpackr-extract-win32-x64": "npm:3.0.7" + node-gyp: "npm:latest" + node-gyp-build-optional-packages: "npm:5.2.2" + dependenciesMeta: + "@msgpackr-extract/msgpackr-extract-darwin-arm64": + optional: true + "@msgpackr-extract/msgpackr-extract-darwin-x64": + optional: true + "@msgpackr-extract/msgpackr-extract-linux-arm": + optional: true + "@msgpackr-extract/msgpackr-extract-linux-arm64": + optional: true + "@msgpackr-extract/msgpackr-extract-linux-x64": + optional: true + "@msgpackr-extract/msgpackr-extract-win32-x64": + optional: true + bin: + download-msgpackr-prebuilds: bin/download-prebuilds.js + checksum: 10c0/60e392bd77afc92b954adfd3501703d58a9baae2bcafd894e47c92820ec2b4c20483c5b959c03f8802b8b579f596877510a9f9c0e8f486c9e3780ff1362e4a54 + languageName: node + linkType: hard + +"msgpackr@npm:^2.0.1": + version: 2.1.4 + resolution: "msgpackr@npm:2.1.4" + dependencies: + msgpackr-extract: "npm:^3.0.6" + dependenciesMeta: + msgpackr-extract: + optional: true + checksum: 10c0/5c562c2546f06ed093ad5d637481f2442afee19ccc6d426f37d4d6dbdeccdcd185fc4053deb0199f52d5313a6c6927d90c56edd53cda843115baf81e086a8b6e + languageName: node + linkType: hard + +"multipasta@npm:^0.2.7": + version: 0.2.9 + resolution: "multipasta@npm:0.2.9" + checksum: 10c0/c5e3e73ee0f037fedf51285653a73addf670a8f546206ae3ce5c48f0512f696e5ff3108a8b4ac9e52f7305a58468ef274a2b12ca28c7d16afc6620bda647aac8 + languageName: node + linkType: hard + "natural-compare@npm:^1.4.0": version: 1.4.0 resolution: "natural-compare@npm:1.4.0" @@ -2129,6 +2410,50 @@ __metadata: languageName: node linkType: hard +"node-gyp-build-optional-packages@npm:5.2.2": + version: 5.2.2 + resolution: "node-gyp-build-optional-packages@npm:5.2.2" + dependencies: + detect-libc: "npm:^2.0.1" + bin: + node-gyp-build-optional-packages: bin.js + node-gyp-build-optional-packages-optional: optional.js + node-gyp-build-optional-packages-test: build-test.js + checksum: 10c0/c81128c6f91873381be178c5eddcbdf66a148a6a89a427ce2bcd457593ce69baf2a8662b6d22cac092d24aa9c43c230dec4e69b3a0da604503f4777cd77e282b + languageName: node + linkType: hard + +"node-gyp@npm:latest": + version: 13.1.0 + resolution: "node-gyp@npm:13.1.0" + dependencies: + env-paths: "npm:^2.2.0" + exponential-backoff: "npm:^3.1.1" + graceful-fs: "npm:^4.2.6" + nopt: "npm:^10.0.0" + proc-log: "npm:^7.0.0" + semver: "npm:^7.3.5" + tar: "npm:^7.5.7" + tinyglobby: "npm:^0.2.12" + undici: "npm:^8.4.1" + which: "npm:^7.0.0" + bin: + node-gyp: bin/node-gyp.js + checksum: 10c0/c6693e52e0e111b21f5cd8ff303b41b51f40338adcc79ac5c6a02399eba7039d50dc816dcafcc485870291a641f7cb75db8887a9bdd0de537fe635a3a81cba5b + languageName: node + linkType: hard + +"nopt@npm:^10.0.0": + version: 10.0.1 + resolution: "nopt@npm:10.0.1" + dependencies: + abbrev: "npm:^5.0.0" + bin: + nopt: bin/nopt.js + checksum: 10c0/980d89257f9587f3e1f77877ddbf905d6aa3b738ec33e49a4fa1a059a0dd82eb28063982b150654a7ae9de386f2ead60e56172db7d37cf56de545f7392a2a26a + languageName: node + linkType: hard + "object-inspect@npm:^1.13.3, object-inspect@npm:^1.13.4": version: 1.13.4 resolution: "object-inspect@npm:1.13.4" @@ -2265,6 +2590,13 @@ __metadata: languageName: node linkType: hard +"proc-log@npm:^7.0.0": + version: 7.0.0 + resolution: "proc-log@npm:7.0.0" + checksum: 10c0/b89c2d862604f35fec795477b0c7e376feab3ba0d4f4d291c4e959567442697cf451ac557d0623c1cc38af45a78128b983410f397a10c5d3a67f76c33de4754b + languageName: node + linkType: hard + "proxy-addr@npm:~2.0.7": version: 2.0.8 resolution: "proxy-addr@npm:2.0.8" @@ -2289,6 +2621,13 @@ __metadata: languageName: node linkType: hard +"pure-rand@npm:^8.0.0": + version: 8.4.2 + resolution: "pure-rand@npm:8.4.2" + checksum: 10c0/4b2ef2a2e68a258fb311efd26b65305b4865856e28d6b40ff61f7d65bb6a39b4f8ebbcf7dfc843193b3cfe54e7501dbc2c7aba0ecdb97d13cd634db709df83fd + languageName: node + linkType: hard + "qified@npm:^0.10.1": version: 0.10.1 resolution: "qified@npm:0.10.1" @@ -2327,6 +2666,13 @@ __metadata: languageName: node linkType: hard +"re2js@npm:2.9.1": + version: 2.9.1 + resolution: "re2js@npm:2.9.1" + checksum: 10c0/799c179ab563b8c16422b80cbcccdfdc0e940c50999930c1aa91bd5fe54e08a00a50abcf5510ab1bb3d881c90235c6fb177ed9d710cf3e5b4e843f026407ba9b + languageName: node + linkType: hard + "require-directory@npm:^2.1.1": version: 2.1.1 resolution: "require-directory@npm:2.1.1" @@ -2369,6 +2715,15 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.3.5": + version: 7.8.6 + resolution: "semver@npm:7.8.6" + bin: + semver: bin/semver.js + checksum: 10c0/bf0a4d16eb067e5391323649e46b4a268644d7f8ee88e37c7668d35e861ec145b6e7df576d898007fc0d9a2cedcbc33f71460aa3bbea18eedfa5af58c064d7fe + languageName: node + linkType: hard + "semver@npm:^7.5.3": version: 7.7.4 resolution: "semver@npm:7.7.4" @@ -2496,10 +2851,10 @@ __metadata: languageName: node linkType: hard -"sql.js@npm:1.15.2": - version: 1.15.2 - resolution: "sql.js@npm:1.15.2" - checksum: 10c0/734faff4e430c4dbc0b347f03b55bb72a475395c6e0b51cd458fd53c47db89997c4c584e827cf869dab286f92f417a725f21024999ece3973d03969afc025437 +"sql.js@npm:1.16.0": + version: 1.16.0 + resolution: "sql.js@npm:1.16.0" + checksum: 10c0/6b16130f79e6bd7b60e9104ab19e816e6370d9d09689e9ac2922367a37d84754dd97b03b8d48f746014dae53867c8c0a065bf52fb828c4585f401ab21520ea52 languageName: node linkType: hard @@ -2510,13 +2865,13 @@ __metadata: languageName: node linkType: hard -"string-width@npm:8.2.1": - version: 8.2.1 - resolution: "string-width@npm:8.2.1" +"string-width@npm:8.3.0": + version: 8.3.0 + resolution: "string-width@npm:8.3.0" dependencies: get-east-asian-width: "npm:^1.5.0" strip-ansi: "npm:^7.1.2" - checksum: 10c0/d467b4eaf4c40a01bb438a2620e77badd2456ffd5131c9973abe4f3acf7c802d5b21f3b6a00a5e33a7fc28ca8f9c103226e01bac61e9f259659c6f46d78e353a + checksum: 10c0/bc354b27772777c314e6792106f01586e959f36abb3d4b8ad46c4d4ee92d5e906acb10c1f3be97a85ae0ba1b11389094bc5672999fc5f03f12d22a4725fa30fe languageName: node linkType: hard @@ -2565,6 +2920,19 @@ __metadata: languageName: node linkType: hard +"tar@npm:^7.5.7": + version: 7.5.23 + resolution: "tar@npm:7.5.23" + dependencies: + "@isaacs/fs-minipass": "npm:^4.0.0" + chownr: "npm:^3.0.0" + minipass: "npm:^7.1.2" + minizlib: "npm:^3.1.0" + yallist: "npm:^5.0.0" + checksum: 10c0/41324dc475f655e6a322729dacac14e3114ed4b18cba350be5d1eb52b1aa2794a1c78c2a5b7f49d3d15f53c058158168121eaf6c5d2f75a0a9565b344bf3a18a + languageName: node + linkType: hard + "test-exclude@npm:^8.0.0": version: 8.0.0 resolution: "test-exclude@npm:8.0.0" @@ -2576,7 +2944,7 @@ __metadata: languageName: node linkType: hard -"tinyglobby@npm:~0.2.17": +"tinyglobby@npm:^0.2.12, tinyglobby@npm:~0.2.17": version: 0.2.17 resolution: "tinyglobby@npm:0.2.17" dependencies: @@ -2593,6 +2961,13 @@ __metadata: languageName: node linkType: hard +"toml@npm:^4.1.1": + version: 4.3.0 + resolution: "toml@npm:4.3.0" + checksum: 10c0/4a0ad64d4ef0b47f672a7b6bd7e776b9e03ad845998968fb105f8d561c3648eaff0217baca3f562d17e865e5bd7393441a8e54528920f0c171e41fdc8dfb39d6 + languageName: node + linkType: hard + "tweetnacl@npm:^1.0.3": version: 1.0.3 resolution: "tweetnacl@npm:1.0.3" @@ -2653,6 +3028,13 @@ __metadata: languageName: node linkType: hard +"undici@npm:^8.4.1": + version: 8.12.4 + resolution: "undici@npm:8.12.4" + checksum: 10c0/2a83590ce3347ca4e8fb83917bd7ad1d0bcb72ecb6d1a5066f01a89b4941becac569412aa27d7318119ea1a20d217018cce535f8eeed3c1b307d87426f96cfe3 + languageName: node + linkType: hard + "unpipe@npm:~1.0.0": version: 1.0.0 resolution: "unpipe@npm:1.0.0" @@ -2676,6 +3058,15 @@ __metadata: languageName: node linkType: hard +"uuid@npm:^14.0.0": + version: 14.0.3 + resolution: "uuid@npm:14.0.3" + bin: + uuid: dist-node/bin/uuid + checksum: 10c0/e56e610ae3bd1ca099244e01ee5eff502675ede4601d971b80fff993ad97236c80197340113f759e6ead501ee6a8d52648f6deef1332ce9f192c4720f4891f62 + languageName: node + linkType: hard + "v8-to-istanbul@npm:^9.0.0": version: 9.3.0 resolution: "v8-to-istanbul@npm:9.3.0" @@ -2726,6 +3117,17 @@ __metadata: languageName: node linkType: hard +"which@npm:^7.0.0": + version: 7.0.0 + resolution: "which@npm:7.0.0" + dependencies: + isexe: "npm:^4.0.0" + bin: + node-which: bin/which.js + checksum: 10c0/ca0b54f198f78bbc4b7c02e34bda8d335cb352e0adb4cbca1c37b1a957af3a879a82c4c27ca6525bc942f548d8b64f816ef6528360af9f3de55ffb9b979b620d + languageName: node + linkType: hard + "word-wrap@npm:^1.2.5": version: 1.2.5 resolution: "word-wrap@npm:1.2.5" @@ -2766,6 +3168,22 @@ __metadata: languageName: node linkType: hard +"yallist@npm:^5.0.0": + version: 5.0.0 + resolution: "yallist@npm:5.0.0" + checksum: 10c0/a499c81ce6d4a1d260d4ea0f6d49ab4da09681e32c3f0472dee16667ed69d01dae63a3b81745a24bd78476ec4fcf856114cb4896ace738e01da34b2c42235416 + languageName: node + linkType: hard + +"yaml@npm:^2.9.0": + version: 2.9.1 + resolution: "yaml@npm:2.9.1" + bin: + yaml: bin.mjs + checksum: 10c0/9d06676ef02b89559a8b10a71882bd2cdae81e8393dc8dbc871615c3259475d9609ad973d19cb3c9e71e72d6206e3d1e7aa241c7e55f3d16fd2e77db305827d6 + languageName: node + linkType: hard + "yargs-parser@npm:^21.1.1": version: 21.1.1 resolution: "yargs-parser@npm:21.1.1" From 087686af59d7efa077354c2659e9b823c3ccb029 Mon Sep 17 00:00:00 2001 From: Afloat <ShuffleMonkey@163.com> Date: Tue, 17 Nov 2026 06:25:09 +0800 Subject: [PATCH 50/78] fix(session): report the latest model from Codex rollouts --- .../lib/session-adapters/codex-worktree.js | 3 +- tests/lib/session-adapters-codex.test.js | 65 +++++++++++++++++++ 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/scripts/lib/session-adapters/codex-worktree.js b/scripts/lib/session-adapters/codex-worktree.js index f90db16ca..0016bf15d 100644 --- a/scripts/lib/session-adapters/codex-worktree.js +++ b/scripts/lib/session-adapters/codex-worktree.js @@ -228,7 +228,8 @@ function deriveLastActivityMs(records, fallbackPath) { } function deriveModel(meta, records) { - for (const record of records) { + for (let index = records.length - 1; index >= 0; index -= 1) { + const record = records[index]; if (record && record.type === 'turn_context' && record.payload) { if (typeof record.payload.model === 'string' && record.payload.model.length > 0) { return record.payload.model; diff --git a/tests/lib/session-adapters-codex.test.js b/tests/lib/session-adapters-codex.test.js index 584af3252..f4891f8cd 100644 --- a/tests/lib/session-adapters-codex.test.js +++ b/tests/lib/session-adapters-codex.test.js @@ -204,5 +204,70 @@ test('resolveGitBranch returns null when cwd is not a git repo (real path)', () assert.strictEqual(parsed.branch, null); }); + +test('snapshot follows model changes appended to the same Codex rollout', () => { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-codex-model-change-')); + try { + const rolloutPath = writeRollout(dir, 'rollout-model-change.jsonl', [ + { type: 'session_meta', payload: { id: 'model-change', model: 'metadata-model' } }, + { type: 'turn_context', payload: { model: 'initial-model' } }, + ]); + const adapter = createCodexWorktreeAdapter({ sessionsDir: dir, persistSnapshots: false }); + const session = adapter.open(rolloutPath); + assert.strictEqual(session.getSnapshot().workers[0].artifacts.model, 'initial-model'); + fs.appendFileSync(rolloutPath, JSON.stringify({ + type: 'turn_context', payload: { model: 'selected-model' }, + }) + '\n'); + assert.strictEqual(session.getSnapshot().workers[0].artifacts.model, 'selected-model'); + const contents = fs.readFileSync(rolloutPath, 'utf8'); + const parsed = parseCodexRollout(rolloutPath); + assert.strictEqual(parsed.model, 'selected-model'); + assert.strictEqual(fs.readFileSync(rolloutPath, 'utf8'), contents); + } finally { + fs.rmSync(dir, { recursive: true, force: true }); + } +}); + +test('latest valid turn model survives trailing unrelated or incomplete records', () => { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-codex-model-tail-')); + try { + const rolloutPath = writeRollout(dir, 'rollout-model-tail.jsonl', [ + { type: 'session_meta', payload: { id: 'model-tail', model: 'metadata-model' } }, + { type: 'turn_context', payload: { model: 'initial-model' } }, + { type: 'turn_context', payload: { model: 'selected-model' } }, + { type: 'response_item', payload: { model: 'unrelated-model' } }, + { type: 'turn_context', payload: { model: '' } }, + { type: 'turn_context', payload: { model: null } }, + { type: 'turn_context', payload: { model: 42 } }, + { type: 'turn_context', payload: null }, + null, + ]); + fs.appendFileSync(rolloutPath, '{"type":"turn_context","payload":'); + assert.strictEqual(parseCodexRollout(rolloutPath).model, 'selected-model'); + } finally { + fs.rmSync(dir, { recursive: true, force: true }); + } +}); + +for (const [metadata, expected] of [ + [{ model: 'metadata-model', model_provider: 'provider-name' }, 'metadata-model'], + [{ model_provider: 'provider-name' }, 'provider-name'], + [{}, null], +]) { + test('model metadata fallback remains available: ' + String(expected), () => { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-codex-model-fallback-')); + try { + const rolloutPath = writeRollout(dir, 'rollout-model-fallback.jsonl', [ + { type: 'session_meta', payload: { id: 'model-fallback', ...metadata } }, + { type: 'turn_context', payload: { model: '' } }, + { type: 'turn_context', payload: { model: null } }, + ]); + assert.strictEqual(parseCodexRollout(rolloutPath).model, expected); + } finally { + fs.rmSync(dir, { recursive: true, force: true }); + } + }); +} + console.log(`\n=== Results: ${passed} passed, ${failed} failed ===`); if (failed > 0) process.exit(1); From 0083c6e8ec334e3875e621540ce62420f7a999d0 Mon Sep 17 00:00:00 2001 From: Afloat <ShuffleMonkey@163.com> Date: Tue, 17 Nov 2026 06:44:03 +0800 Subject: [PATCH 51/78] fix(session): publish fallback recordings atomically --- scripts/lib/atomic-write.js | 12 ++ .../lib/session-adapters/canonical-session.js | 9 +- tests/lib/session-recording-atomic.test.js | 139 ++++++++++++++++++ 3 files changed, 157 insertions(+), 3 deletions(-) create mode 100644 tests/lib/session-recording-atomic.test.js diff --git a/scripts/lib/atomic-write.js b/scripts/lib/atomic-write.js index 76ff40c4a..adcee0e60 100644 --- a/scripts/lib/atomic-write.js +++ b/scripts/lib/atomic-write.js @@ -51,6 +51,15 @@ function renameAtomic(tempPath, resolvedPath, options) { } } +function readExistingFileMode(filePath) { + try { + return fs.statSync(filePath).mode & 0o777; + } catch (error) { + if (error.code === 'ENOENT') return undefined; + throw error; + } +} + function writeFileAtomic(filePath, content, options = {}) { const resolvedPath = path.resolve(filePath); const parentDir = path.dirname(resolvedPath); @@ -68,7 +77,10 @@ function writeFileAtomic(filePath, content, options = {}) { if (options.validateParent) options.validateParent(); descriptor = fs.openSync(tempPath, 'wx', mode); if (options.validateParent) options.validateParent(); + const existingMode = options.preserveExistingMode ? readExistingFileMode(resolvedPath) : undefined; fs.writeFileSync(descriptor, content, { encoding: options.encoding || 'utf8' }); + // Restore existing permissions after writing, without applying the process umask a second time. + if (existingMode !== undefined) fs.fchmodSync(descriptor, existingMode); fs.fsyncSync(descriptor); fs.closeSync(descriptor); descriptor = undefined; diff --git a/scripts/lib/session-adapters/canonical-session.js b/scripts/lib/session-adapters/canonical-session.js index 0ef73efd0..321416427 100644 --- a/scripts/lib/session-adapters/canonical-session.js +++ b/scripts/lib/session-adapters/canonical-session.js @@ -3,6 +3,7 @@ const fs = require('fs'); const os = require('os'); const path = require('path'); +const { readFileWithSharingRetry, writeFileAtomic } = require('../atomic-write'); const SESSION_SCHEMA_VERSION = 'ecc.session.v1'; const SESSION_RECORDING_SCHEMA_VERSION = 'ecc.session.recording.v1'; @@ -290,7 +291,7 @@ function readExistingRecording(filePath) { } try { - return JSON.parse(fs.readFileSync(filePath, 'utf8')); + return JSON.parse(readFileWithSharingRetry(filePath, 'utf8')); } catch { return null; } @@ -319,8 +320,10 @@ function writeFallbackSessionRecording(snapshot, options = {}) { : [{ recordedAt, snapshot }] }; - fs.mkdirSync(path.dirname(filePath), { recursive: true }); - fs.writeFileSync(filePath, JSON.stringify(payload, null, 2) + '\n', 'utf8'); + writeFileAtomic(filePath, JSON.stringify(payload, null, 2) + '\n', { + mode: 0o666, + preserveExistingMode: true + }); return { backend: 'json-file', diff --git a/tests/lib/session-recording-atomic.test.js b/tests/lib/session-recording-atomic.test.js new file mode 100644 index 000000000..85cf7c4b9 --- /dev/null +++ b/tests/lib/session-recording-atomic.test.js @@ -0,0 +1,139 @@ +'use strict'; + +const assert = require('assert'); +const fs = require('fs'); +const os = require('os'); +const path = require('path'); + +const { + getFallbackSessionRecordingPath, + normalizeClaudeHistorySession, + persistCanonicalSnapshot +} = require('../../scripts/lib/session-adapters/canonical-session'); + +let passed = 0; +let failed = 0; + +function test(name, fn) { + try { + fn(); + console.log(` PASS ${name}`); + passed += 1; + } catch (error) { + console.log(` FAIL ${name}: ${error.message}`); + failed += 1; + } +} + +function snapshot(title) { + return normalizeClaudeHistorySession({ + shortId: 'recording-session', + sessionPath: '/fixture/session.tmp', + metadata: { title } + }, { type: 'claude-history', value: 'recording-session' }); +} + +function failAfterPartialWrite(callback, observe) { + const originalWrite = fs.writeFileSync; + const error = Object.assign(new Error('Simulated disk full after partial write'), { code: 'ENOSPC' }); + let calls = 0; + fs.writeFileSync = (destination, _contents, options) => { + calls += 1; + originalWrite(destination, '{"incomplete":', options); + observe(); + throw error; + }; + try { + assert.throws(callback, caught => caught === error); + assert.strictEqual(calls, 1, 'the failure must occur during an actual write'); + } finally { + fs.writeFileSync = originalWrite; + } +} + +const backends = [ + ['missing state store', () => null], + ['factory state store', () => ({ createStateStore() {} })] +]; + +for (const [backend, loadStateStoreImpl] of backends) { + test(`failed replacement preserves prior snapshot and history: ${backend}`, () => { + const recordingDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-recording-replace-')); + try { + const options = { recordingDir, loadStateStoreImpl }; + const first = snapshot('Existing session'); + const next = snapshot('Next session state — 已完成'); + persistCanonicalSnapshot(first, options); + const filePath = getFallbackSessionRecordingPath(first, options); + const before = fs.readFileSync(filePath, 'utf8'); + let observed; + + failAfterPartialWrite(() => persistCanonicalSnapshot(next, options), () => { + observed = fs.readFileSync(filePath, 'utf8'); + }); + + assert.strictEqual(observed, before, 'readers must retain the prior complete recording during a write'); + assert.strictEqual(fs.readFileSync(filePath, 'utf8'), before, 'a failed write must not truncate saved history'); + assert.deepStrictEqual(fs.readdirSync(path.dirname(filePath)), [path.basename(filePath)]); + + persistCanonicalSnapshot(next, options); + const recovered = JSON.parse(fs.readFileSync(filePath, 'utf8')); + assert.strictEqual(recovered.createdAt, JSON.parse(before).createdAt); + assert.deepStrictEqual(recovered.latest, next); + assert.deepStrictEqual(recovered.history.map(entry => entry.snapshot), [first, next]); + } finally { + fs.rmSync(recordingDir, { recursive: true, force: true }); + } + }); + + test(`failed first write does not publish an invalid recording: ${backend}`, () => { + const recordingDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-recording-initial-')); + try { + const options = { recordingDir, loadStateStoreImpl }; + const first = snapshot('First session'); + const filePath = getFallbackSessionRecordingPath(first, options); + let visibleDuringWrite; + + failAfterPartialWrite(() => persistCanonicalSnapshot(first, options), () => { + visibleDuringWrite = fs.existsSync(filePath); + }); + + assert.strictEqual(visibleDuringWrite, false, 'the first recording must only become visible when complete'); + assert.strictEqual(fs.existsSync(filePath), false); + assert.deepStrictEqual(fs.readdirSync(path.dirname(filePath)), []); + + persistCanonicalSnapshot(first, options); + const recovered = JSON.parse(fs.readFileSync(filePath, 'utf8')); + assert.deepStrictEqual(recovered.latest, first); + assert.strictEqual(recovered.history.length, 1); + } finally { + fs.rmSync(recordingDir, { recursive: true, force: true }); + } + }); +} + +if (process.platform !== 'win32') { + test('recording publication preserves creation umask and existing POSIX permissions', () => { + const recordingDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-recording-mode-')); + try { + const options = { recordingDir, loadStateStoreImpl: () => null }; + const first = snapshot('Initial permissions'); + const filePath = getFallbackSessionRecordingPath(first, options); + persistCanonicalSnapshot(first, options); + assert.strictEqual(fs.statSync(filePath).mode & 0o777, 0o666 & ~process.umask()); + + for (const mode of [0o600, 0o640, 0o660]) { + fs.chmodSync(filePath, mode); + const next = snapshot(`Permissions ${mode.toString(8)}`); + persistCanonicalSnapshot(next, options); + assert.strictEqual(fs.statSync(filePath).mode & 0o777, mode); + assert.deepStrictEqual(JSON.parse(fs.readFileSync(filePath, 'utf8')).latest, next); + } + } finally { + fs.rmSync(recordingDir, { recursive: true, force: true }); + } + }); +} + +console.log(`\nPassed: ${passed}, Failed: ${failed}`); +if (failed > 0) process.exit(1); From b504f3cdd73090dc9f4f51b8ebacf8bb5777c641 Mon Sep 17 00:00:00 2001 From: Afloat <ShuffleMonkey@163.com> Date: Tue, 17 Nov 2026 07:04:23 +0800 Subject: [PATCH 52/78] fix(session): treat aliases as own JSON keys --- scripts/lib/session-aliases.js | 42 ++++-- tests/lib/session-aliases-own-keys.test.js | 145 +++++++++++++++++++++ 2 files changed, 174 insertions(+), 13 deletions(-) create mode 100644 tests/lib/session-aliases-own-keys.test.js diff --git a/scripts/lib/session-aliases.js b/scripts/lib/session-aliases.js index 2e4e109d4..f4eb15c91 100644 --- a/scripts/lib/session-aliases.js +++ b/scripts/lib/session-aliases.js @@ -20,6 +20,20 @@ function getAliasesPath() { // Current alias storage format version const ALIAS_VERSION = '1.0'; +function getAliasRecord(aliases, name) { + return Object.hasOwn(aliases, name) ? aliases[name] : undefined; +} + +function setAliasRecord(aliases, name, record) { + // Valid names such as __proto__ must become JSON entries, not invoke setters. + Object.defineProperty(aliases, name, { + value: record, + enumerable: true, + writable: true, + configurable: true + }); +} + /** * Default aliases file structure */ @@ -183,7 +197,7 @@ function resolveAlias(alias) { } const data = loadAliases(); - const aliasData = data.aliases[alias]; + const aliasData = getAliasRecord(data.aliases, alias); if (!aliasData) { return null; @@ -234,15 +248,16 @@ function setAliasUnlocked(alias, sessionPath, title = null) { } const data = loadAliases(); - const existing = data.aliases[alias]; + const existing = getAliasRecord(data.aliases, alias); const isNew = !existing; - data.aliases[alias] = { + const record = { sessionPath, createdAt: existing ? existing.createdAt : new Date().toISOString(), updatedAt: new Date().toISOString(), title: title || null }; + setAliasRecord(data.aliases, alias, record); if (saveAliasesUnlocked(data)) { return { @@ -250,7 +265,7 @@ function setAliasUnlocked(alias, sessionPath, title = null) { isNew, alias, sessionPath, - title: data.aliases[alias].title + title: record.title }; } @@ -303,12 +318,12 @@ function listAliases(options = {}) { */ function deleteAliasUnlocked(alias) { const data = loadAliases(); + const deleted = getAliasRecord(data.aliases, alias); - if (!data.aliases[alias]) { + if (!deleted) { return { success: false, error: `Alias '${alias}' not found` }; } - const deleted = data.aliases[alias]; delete data.aliases[alias]; if (saveAliasesUnlocked(data)) { @@ -330,8 +345,9 @@ function deleteAliasUnlocked(alias) { */ function renameAliasUnlocked(oldAlias, newAlias) { const data = loadAliases(); + const aliasData = getAliasRecord(data.aliases, oldAlias); - if (!data.aliases[oldAlias]) { + if (!aliasData) { return { success: false, error: `Alias '${oldAlias}' not found` }; } @@ -353,15 +369,14 @@ function renameAliasUnlocked(oldAlias, newAlias) { return { success: false, error: `'${newAlias}' is a reserved alias name` }; } - if (data.aliases[newAlias]) { + if (getAliasRecord(data.aliases, newAlias)) { return { success: false, error: `Alias '${newAlias}' already exists` }; } - const aliasData = data.aliases[oldAlias]; delete data.aliases[oldAlias]; aliasData.updatedAt = new Date().toISOString(); - data.aliases[newAlias] = aliasData; + setAliasRecord(data.aliases, newAlias, aliasData); if (saveAliasesUnlocked(data)) { return { @@ -405,12 +420,13 @@ function updateAliasTitleUnlocked(alias, title) { const data = loadAliases(); - if (!data.aliases[alias]) { + const aliasData = getAliasRecord(data.aliases, alias); + if (!aliasData) { return { success: false, error: `Alias '${alias}' not found` }; } - data.aliases[alias].title = title || null; - data.aliases[alias].updatedAt = new Date().toISOString(); + aliasData.title = title || null; + aliasData.updatedAt = new Date().toISOString(); if (saveAliasesUnlocked(data)) { return { diff --git a/tests/lib/session-aliases-own-keys.test.js b/tests/lib/session-aliases-own-keys.test.js new file mode 100644 index 000000000..1cf489336 --- /dev/null +++ b/tests/lib/session-aliases-own-keys.test.js @@ -0,0 +1,145 @@ +'use strict'; + +const assert = require('assert'); +const fs = require('fs'); +const os = require('os'); +const path = require('path'); +const aliases = require('../../scripts/lib/session-aliases'); + +const names = ['__proto__', 'constructor', 'toString', 'hasOwnProperty']; +let passed = 0; +let failed = 0; + +function test(name, callback) { + const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-alias-own-')); + const originalDataHome = process.env.ECC_AGENT_DATA_HOME; + // Restore these even when testing the old implementation, which can mutate + // inherited objects before an assertion reports the regression. + const targets = [Object.prototype, Object, Object.prototype.toString, Object.prototype.hasOwnProperty]; + const descriptors = targets.map(target => ({ + target, + title: Object.getOwnPropertyDescriptor(target, 'title'), + updatedAt: Object.getOwnPropertyDescriptor(target, 'updatedAt') + })); + try { + process.env.ECC_AGENT_DATA_HOME = fixture; + const filePath = path.join(fixture, 'session-aliases.json'); + assert.strictEqual(aliases.getAliasesPath(), filePath); + callback(filePath); + console.log(` PASS ${name}`); + passed += 1; + } catch (error) { + console.log(` FAIL ${name}: ${error.message}`); + failed += 1; + } finally { + for (const descriptor of descriptors) { + for (const key of ['title', 'updatedAt']) { + if (descriptor[key]) Object.defineProperty(descriptor.target, key, descriptor[key]); + else delete descriptor.target[key]; + } + } + if (originalDataHome === undefined) delete process.env.ECC_AGENT_DATA_HOME; + else process.env.ECC_AGENT_DATA_HOME = originalDataHome; + fs.rmSync(fixture, { recursive: true, force: true }); + } +} + +function read(filePath) { + return JSON.parse(fs.readFileSync(filePath, 'utf8')); +} + +for (const name of names) { + test(`an absent ${name} is not a session alias`, filePath => { + assert.strictEqual(aliases.resolveAlias(name), null); + assert.strictEqual(aliases.resolveSessionAlias(name), name); + assert.strictEqual(fs.existsSync(filePath), false); + }); + + test(`${name} can be created, updated and removed without losing its record`, filePath => { + const created = aliases.setAlias(name, '/fixture/session-one', 'First title'); + assert.strictEqual(created.success, true); + assert.strictEqual(created.isNew, true); + const first = read(filePath); + assert.strictEqual(Object.hasOwn(first.aliases, name), true); + assert.strictEqual(first.metadata.totalCount, 1); + assert.ok(first.aliases[name].createdAt); + assert.strictEqual(aliases.resolveAlias(name).sessionPath, '/fixture/session-one'); + assert.deepStrictEqual(aliases.listAliases().map(entry => entry.name), [name]); + + const updated = aliases.setAlias(name, '/fixture/session-two', 'Second title'); + assert.strictEqual(updated.success, true); + assert.strictEqual(updated.isNew, false); + assert.strictEqual(read(filePath).aliases[name].createdAt, first.aliases[name].createdAt); + assert.strictEqual(aliases.resolveAlias(name).sessionPath, '/fixture/session-two'); + assert.strictEqual(aliases.deleteAlias(name).success, true); + assert.strictEqual(aliases.resolveAlias(name), null); + assert.strictEqual(read(filePath).metadata.totalCount, 0); + }); + + test(`renaming to an unused ${name} publishes an own alias entry`, filePath => { + assert.strictEqual(aliases.setAlias('original', '/fixture/session', 'Keep this title').success, true); + const first = read(filePath).aliases.original; + assert.strictEqual(aliases.renameAlias('original', name).success, true); + const renamed = read(filePath); + assert.strictEqual(Object.hasOwn(renamed.aliases, name), true); + assert.strictEqual(Object.hasOwn(renamed.aliases, 'original'), false); + assert.strictEqual(renamed.metadata.totalCount, 1); + assert.strictEqual(renamed.aliases[name].createdAt, first.createdAt); + assert.strictEqual(aliases.resolveAlias(name).sessionPath, first.sessionPath); + assert.strictEqual(aliases.resolveAlias(name).title, first.title); + }); +} + +for (const [operation, mutate] of [ + ['delete', name => aliases.deleteAlias(name)], + ['rename', name => aliases.renameAlias(name, 'destination')], + ['update title', name => aliases.updateAliasTitle(name, 'Must not be stored')] +]) { + test(`${operation} rejects inherited names without changing the store or built-ins`, filePath => { + assert.strictEqual(aliases.setAlias('ordinary', '/fixture/session').success, true); + const before = fs.readFileSync(filePath, 'utf8'); + for (const name of names) { + const target = ({})[name]; + const beforeTitle = Object.getOwnPropertyDescriptor(target, 'title'); + const beforeUpdatedAt = Object.getOwnPropertyDescriptor(target, 'updatedAt'); + const result = mutate(name); + assert.strictEqual(result.success, false, `${name} must be absent`); + assert.match(result.error, /not found/); + assert.strictEqual(fs.readFileSync(filePath, 'utf8'), before); + assert.deepStrictEqual(Object.getOwnPropertyDescriptor(target, 'title'), beforeTitle); + assert.deepStrictEqual(Object.getOwnPropertyDescriptor(target, 'updatedAt'), beforeUpdatedAt); + } + }); +} + +test('existing JSON-owned special names remain readable and writable', filePath => { + const createdAt = '2024-01-01T00:00:00.000Z'; + const entries = Object.fromEntries(names.map(name => [name, { + sessionPath: `/fixture/${name}`, createdAt, updatedAt: createdAt, title: 'Imported' + }])); + assert.strictEqual(aliases.saveAliases({ version: '1.0', aliases: entries }), true); + assert.strictEqual(Object.getPrototypeOf(aliases.loadAliases().aliases), Object.prototype); + for (const name of names) { + assert.strictEqual(aliases.resolveAlias(name).sessionPath, `/fixture/${name}`); + assert.strictEqual(aliases.updateAliasTitle(name, 'Changed').success, true); + assert.strictEqual(aliases.resolveAlias(name).title, 'Changed'); + const result = aliases.setAlias(name, `/fixture/updated/${name}`); + assert.strictEqual(result.success, true); + assert.strictEqual(result.isNew, false); + assert.strictEqual(read(filePath).aliases[name].createdAt, createdAt); + } + assert.strictEqual(read(filePath).metadata.totalCount, names.length); +}); + +test('an existing own __proto__ entry still blocks a conflicting rename', filePath => { + const record = { sessionPath: '/fixture/existing', createdAt: '2024-01-01T00:00:00.000Z', title: null }; + assert.strictEqual(aliases.saveAliases({ version: '1.0', aliases: { ['__proto__']: record, ordinary: record } }), true); + const before = fs.readFileSync(filePath, 'utf8'); + const result = aliases.renameAlias('ordinary', '__proto__'); + assert.strictEqual(result.success, false); + assert.match(result.error, /already exists/); + assert.strictEqual(fs.readFileSync(filePath, 'utf8'), before); +}); + +console.log(`\nPassed: ${passed}, Failed: ${failed}`); +if (failed > 0) process.exit(1); From f314b2f2e309134ea48097f475276a3a6e14089d Mon Sep 17 00:00:00 2001 From: Afloat <ShuffleMonkey@163.com> Date: Tue, 17 Nov 2026 07:06:30 +0800 Subject: [PATCH 53/78] fix(session): preserve recording permissions during staging --- scripts/lib/atomic-write.js | 4 ++-- tests/lib/session-recording-atomic.test.js | 21 ++++++++++++++++++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/scripts/lib/atomic-write.js b/scripts/lib/atomic-write.js index adcee0e60..5aa285eab 100644 --- a/scripts/lib/atomic-write.js +++ b/scripts/lib/atomic-write.js @@ -74,10 +74,10 @@ function writeFileAtomic(filePath, content, options = {}) { let descriptor; try { - if (options.validateParent) options.validateParent(); - descriptor = fs.openSync(tempPath, 'wx', mode); if (options.validateParent) options.validateParent(); const existingMode = options.preserveExistingMode ? readExistingFileMode(resolvedPath) : undefined; + descriptor = fs.openSync(tempPath, 'wx', existingMode ?? mode); + if (options.validateParent) options.validateParent(); fs.writeFileSync(descriptor, content, { encoding: options.encoding || 'utf8' }); // Restore existing permissions after writing, without applying the process umask a second time. if (existingMode !== undefined) fs.fchmodSync(descriptor, existingMode); diff --git a/tests/lib/session-recording-atomic.test.js b/tests/lib/session-recording-atomic.test.js index 85cf7c4b9..8dfbb02c2 100644 --- a/tests/lib/session-recording-atomic.test.js +++ b/tests/lib/session-recording-atomic.test.js @@ -125,7 +125,26 @@ if (process.platform !== 'win32') { for (const mode of [0o600, 0o640, 0o660]) { fs.chmodSync(filePath, mode); const next = snapshot(`Permissions ${mode.toString(8)}`); - persistCanonicalSnapshot(next, options); + const originalWrite = fs.writeFileSync; + const observedModes = []; + fs.writeFileSync = (destination, contents, writeOptions) => { + const readMode = () => (typeof destination === 'number' + ? fs.fstatSync(destination) + : fs.statSync(destination)).mode & 0o777; + observedModes.push(readMode()); + const result = originalWrite(destination, contents, writeOptions); + observedModes.push(readMode()); + return result; + }; + try { + persistCanonicalSnapshot(next, options); + } finally { + fs.writeFileSync = originalWrite; + } + assert.strictEqual(observedModes.length, 2); + for (const observed of observedModes) { + assert.strictEqual(observed & ~mode, 0, 'staging must not grant permissions absent from the saved recording'); + } assert.strictEqual(fs.statSync(filePath).mode & 0o777, mode); assert.deepStrictEqual(JSON.parse(fs.readFileSync(filePath, 'utf8')).latest, next); } From 7e48bc976f6ef9aa4e36314136271cd5c1b5941d Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:30:17 -0500 Subject: [PATCH 54/78] fix(deps): sync npm lockfile and keep Node 18 OpenCode plugin Dependabot updated yarn.lock but not package-lock.json, so every `npm ci` job failed with "package.json and package-lock.json are not in sync". Regenerate both lockfiles. Keep @opencode-ai/plugin at 1.4.3. Version 1.19.5 pulls effect -> toml@4.3.0, whose engines field requires Node >=20, which breaks ECC's Node 18 support and strict-engine packed installs. Add a Dependabot ignore rule for its minor and major updates, with a config test so the pin is not silently bumped again. --- .github/dependabot.yml | 7 + package-lock.json | 205 +- package.json | 2 +- tests/ci/dependabot-config.test.js | 9 + yarn.lock | 5321 +++++++++++----------------- 5 files changed, 2236 insertions(+), 3308 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0621cc6a3..acc5e35e9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,6 +9,13 @@ updates: labels: - "dependencies" - "npm" + ignore: + # ECC supports Node 18. @opencode-ai/plugin newer than 1.4.x pulls + # effect -> toml@4, which requires Node 20 and fails strict-engine installs. + - dependency-name: "@opencode-ai/plugin" + update-types: + - "version-update:semver-minor" + - "version-update:semver-major" groups: npm-minor-and-patch: patterns: diff --git a/package-lock.json b/package-lock.json index 2f4a1ff0f..0d5f64b8d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@iarna/toml": "2.2.5", "ajv": "8.20.0", "js-yaml": "5.5.0", - "sql.js": "1.15.2", + "sql.js": "1.16.0", "zod": "4.6.7" }, "bin": { @@ -27,14 +27,14 @@ "@eslint/js": "9.39.2", "@opencode-ai/plugin": "1.4.3", "@types/node": "26.6.6", - "@x402/core": "2.29.0", - "@x402/evm": "2.29.0", - "@x402/express": "2.29.0", + "@x402/core": "2.31.0", + "@x402/evm": "2.31.0", + "@x402/express": "2.31.0", "c8": "11.0.0", - "eslint": "10.13.0", + "eslint": "10.15.0", "express": "4.22.3", - "globals": "17.13.0", - "markdownlint-cli": "0.49.1", + "globals": "17.14.0", + "markdownlint-cli": "0.50.0", "typescript": "6.0.3" }, "engines": { @@ -125,15 +125,15 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.23.5", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", - "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", + "version": "0.23.6", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.6.tgz", + "integrity": "sha512-WrTH7nioI9QPY4NZGnsywmecswJdgeq4BCM76qok9VgjTO29ZgUzUvcuJLVPYVQM4uDbaPBU0M33R9DIxI8X3w==", "dev": true, "license": "Apache-2.0", "dependencies": { "@eslint/object-schema": "^3.0.5", "debug": "^4.3.1", - "minimatch": "^10.2.4" + "minimatch": "^11.0.5" }, "engines": { "node": "^20.19.0 || ^22.13.0 || >=24" @@ -560,9 +560,9 @@ "license": "MIT" }, "node_modules/@x402/core": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/@x402/core/-/core-2.29.0.tgz", - "integrity": "sha512-fkS0JqVwHgczteDlwItLRipOlIzm28U9HWLvYnYpnNbfmepoBT/4ux7LjrR0xGD51JHoC8/r+Qo7uCfoAQYeuw==", + "version": "2.31.0", + "resolved": "https://registry.npmjs.org/@x402/core/-/core-2.31.0.tgz", + "integrity": "sha512-7ToCOwHfftfFEERW5Mp6Fc5U1+JrtCLTkbQnEVsBl13IutltP9lWIBYi/J+zy8vQWaLUmACq8A2qywzdt/RRIQ==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -570,29 +570,29 @@ } }, "node_modules/@x402/evm": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/@x402/evm/-/evm-2.29.0.tgz", - "integrity": "sha512-Gk4bJ6WoRR3jeT2+vERSPMSkSr1nRL5kjtVh14uoynRm8y+fGFH8xmvlGzuwKT0liA6OLjdr9xjZtN8i0WYk9g==", + "version": "2.31.0", + "resolved": "https://registry.npmjs.org/@x402/evm/-/evm-2.31.0.tgz", + "integrity": "sha512-CCOqou/7f0/5kKQXlcVvWbiVnFmk/CqaSCs8YkJ2GPzxDYoQD13iKAjo0Uv7y/dVlkkOH0p/eJVxgcrO6aagbw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@x402/core": "~2.29.0", + "@x402/core": "~2.31.0", "viem": "^2.48.11", "zod": "^4.6.6" } }, "node_modules/@x402/express": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/@x402/express/-/express-2.29.0.tgz", - "integrity": "sha512-0Ka1740ye02ZjSN3VeiEt3Gt7iINvTCl9nlP6ttGKSsySLMeMuDXJOzSOuzUnkJxy4LBxpG4Z+w3F46mhn6AUA==", + "version": "2.31.0", + "resolved": "https://registry.npmjs.org/@x402/express/-/express-2.31.0.tgz", + "integrity": "sha512-hUumfQGb8mNdwkpLAZuuoHCJ3p5gNtu5/yRaZNRNqQILp155Ur2tJQCizPQZR1XNsZ6mXwJG4+5rE1iW0f/9sg==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@x402/core": "~2.29.0", - "@x402/extensions": "~2.29.0" + "@x402/core": "~2.31.0", + "@x402/extensions": "~2.31.0" }, "peerDependencies": { - "@x402/paywall": "^2.29.0", + "@x402/paywall": "^2.31.0", "express": "^4.22.3 || ^5.3.0" }, "peerDependenciesMeta": { @@ -602,16 +602,16 @@ } }, "node_modules/@x402/extensions": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/@x402/extensions/-/extensions-2.29.0.tgz", - "integrity": "sha512-FCpjZ6QR6ZtHTRZBV7VHMt7tc66LnTrpKDERiL3atXlLu4PlmgiulHt9PWE+Ktm5iUbXr3dAYZu2e7XrVd/XgA==", + "version": "2.31.0", + "resolved": "https://registry.npmjs.org/@x402/extensions/-/extensions-2.31.0.tgz", + "integrity": "sha512-hFq11UtXNWPirZSZjZuWFHvjetYvFQmkQSZcNEMaQYxOz70ZLNFmIdXfG2J/B8YGE2nS2d223Hz9Lnkrxw+Sqw==", "dev": true, "license": "Apache-2.0", "dependencies": { "@noble/curves": "^1.9.0", "@scure/base": "^1.2.6", "@signinwithethereum/siwe": "^4.1.0", - "@x402/core": "~2.29.0", + "@x402/core": "~2.31.0", "ajv": "^8.18.0", "jose": "^5.9.6", "tweetnacl": "^1.0.3", @@ -695,9 +695,9 @@ } }, "node_modules/ansi-regex": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.3.0.tgz", - "integrity": "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz", + "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==", "dev": true, "license": "MIT", "engines": { @@ -1307,9 +1307,9 @@ } }, "node_modules/eslint": { - "version": "10.13.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.13.0.tgz", - "integrity": "sha512-UohDjD4zSzEwhf58M3O7vc/ycc8O1I7dNlhtD0WxE8Px8EHNJKtUwzBqrzeGhisRuv2ag4sAYswszCJRgKXYUg==", + "version": "10.15.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.15.0.tgz", + "integrity": "sha512-+5Wg4p+ze3sG1WErYgUO/3H1IQIfFBymVUA0Fo/XTeBOLS6UQIUekpSJ8sdRkn7O7wjh84b55w/roqavH2aScg==", "dev": true, "license": "MIT", "workspaces": [ @@ -1318,11 +1318,11 @@ "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.2", - "@eslint/config-array": "^0.23.5", + "@eslint/config-array": "^0.23.6", "@eslint/config-helpers": "^0.7.0", "@eslint/core": "^1.2.1", "@eslint/plugin-kit": "^0.7.3", - "@humanfs/node": "^0.16.6", + "@humanfs/node": "^0.16.8", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", @@ -1343,7 +1343,7 @@ "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", - "minimatch": "^10.2.5", + "minimatch": "^11.0.5", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, @@ -1760,9 +1760,9 @@ } }, "node_modules/get-east-asian-width": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz", - "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz", + "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==", "dev": true, "license": "MIT", "engines": { @@ -1843,9 +1843,9 @@ } }, "node_modules/globals": { - "version": "17.13.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-17.13.0.tgz", - "integrity": "sha512-RwMTC61u7hrG3ZJMkZQOK4JLJrKS8QtoTii63EmWvFXHqycY9FObBJQCbsLxSO8kjKhWE5kV1GC+Vb1g3RI0Zg==", + "version": "17.14.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.14.0.tgz", + "integrity": "sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==", "dev": true, "license": "MIT", "engines": { @@ -2375,21 +2375,22 @@ } }, "node_modules/markdownlint": { - "version": "0.41.1", - "resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.41.1.tgz", - "integrity": "sha512-qHKeU2E1bdyNAT077go2FVTNXvYcktN5IHtF6XyeD1l0PClxzSp2tUApAV14ORI8DGX4H9bNKZEzelZp4qn8IA==", + "version": "0.42.1", + "resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.42.1.tgz", + "integrity": "sha512-Otolm9JX12iO2NG5cetlKfzGygpiLSlHuqXKxoT6HGhN5HtbxprJPicKZqqCQd88qOvUi/TEs3o1AmcYioVscA==", "dev": true, "license": "MIT", "dependencies": { - "micromark": "4.0.2", - "micromark-core-commonmark": "2.0.3", + "micromark": "4.0.3", + "micromark-core-commonmark": "2.0.4", "micromark-extension-directive": "4.0.0", "micromark-extension-gfm-autolink-literal": "2.1.0", "micromark-extension-gfm-footnote": "2.1.0", - "micromark-extension-gfm-table": "2.1.1", + "micromark-extension-gfm-table": "2.1.2", "micromark-extension-math": "3.1.0", - "micromark-util-types": "2.0.2", - "string-width": "8.2.1" + "micromark-util-types": "2.0.3", + "re2js": "2.9.1", + "string-width": "8.3.0" }, "engines": { "node": ">=22" @@ -2399,23 +2400,23 @@ } }, "node_modules/markdownlint-cli": { - "version": "0.49.1", - "resolved": "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.49.1.tgz", - "integrity": "sha512-qpYqJbSYf3jv57bdnFmCaZ/Wlu6IYHp2b6SOKrKBJ7OnPrDHIKmx4NERWH49QH9viTI6yO6raVDDn5nrf60VQQ==", + "version": "0.50.0", + "resolved": "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.50.0.tgz", + "integrity": "sha512-4GqP/CqpF74ihrlLTOPc3I5b/tZabiiKnIVQ27xTzsS4hjU3oIHKg1YBzWP7fsa9AH48LPF0KcmCqDccpSeMEg==", "dev": true, "license": "MIT", "dependencies": { "commander": "~15.0.0", "deep-extend": "~0.6.0", - "ignore": "~7.0.6", - "js-yaml": "~5.2.1", + "ignore": "~7.0.13", + "js-yaml": "~5.5.0", "jsonc-parser": "~3.3.1", "jsonpointer": "~5.0.1", - "markdown-it": "~14.3.0", - "markdownlint": "~0.41.1", - "minimatch": "~10.2.5", + "markdown-it": "~15.0.3", + "markdownlint": "~0.42.0", + "minimatch": "~10.2.6", "run-con": "~1.3.3", - "smol-toml": "~1.7.0", + "smol-toml": "~1.9.1", "tinyglobby": "~0.2.17" }, "bin": { @@ -2426,9 +2427,9 @@ } }, "node_modules/markdownlint-cli/node_modules/ignore": { - "version": "7.0.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.8.tgz", - "integrity": "sha512-YYNsSlXBjMk92SKnkwvB5LOVSa6OznlFUGcsvrFgNJbJCd0M1XKeFVRc8ZByeCqz32FivYNHJVooLmdqrmvp/Q==", + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz", + "integrity": "sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==", "dev": true, "license": "MIT", "engines": { @@ -2482,9 +2483,9 @@ } }, "node_modules/micromark": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz", - "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.3.tgz", + "integrity": "sha512-oGYfQzHSG5dOMovQcJ3fyTmZlWAWpi0XA0sJwJs+i6OT88o1+Jtw/8z0CmdowSLxGhhFK89rQ/oXph/wN02PNw==", "dev": true, "funding": [ { @@ -2508,6 +2509,7 @@ "micromark-util-chunked": "^2.0.0", "micromark-util-combine-extensions": "^2.0.0", "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-edit-map": "^1.0.0", "micromark-util-encode": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-resolve-all": "^2.0.0", @@ -2518,9 +2520,9 @@ } }, "node_modules/micromark-core-commonmark": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz", - "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.4.tgz", + "integrity": "sha512-wxEeE8v8XVvOrxn1TZj74qYhAtTQsSqufHVS3uNVyT1MupXxhyaHk8/9xDNPh9BmL77QNDgWTkZ3RsYHB2ry7w==", "dev": true, "funding": [ { @@ -2538,18 +2540,19 @@ "devlop": "^1.0.0", "micromark-factory-destination": "^2.0.0", "micromark-factory-label": "^2.0.0", - "micromark-factory-space": "^2.0.0", + "micromark-factory-space": "^2.1.0", "micromark-factory-title": "^2.0.0", "micromark-factory-whitespace": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-chunked": "^2.0.0", "micromark-util-classify-character": "^2.0.0", + "micromark-util-edit-map": "^1.0.0", "micromark-util-html-tag-name": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-resolve-all": "^2.0.0", "micromark-util-subtokenize": "^2.0.0", "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" + "micromark-util-types": "^2.0.3" } }, "node_modules/micromark-extension-directive": { @@ -2611,9 +2614,9 @@ } }, "node_modules/micromark-extension-gfm-table": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz", - "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.2.tgz", + "integrity": "sha512-pRzm4kDTu0MjlmBkxmS9yYhw60nncfcEwu9NNdPFSQEFXS95ZKyIIyTSHu/o3ReBUrLKYEq+7YaXCRn/bPB4MA==", "dev": true, "license": "MIT", "dependencies": { @@ -2694,9 +2697,9 @@ } }, "node_modules/micromark-factory-space": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz", - "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.1.0.tgz", + "integrity": "sha512-fS8hnLIjnjvdQIj39Geug8wWsR0HrYZ43KShKxNfwT7t2LOHo/LbWZEzEaSOjwtjdCsjoE6syHhonEzW0zv0+Q==", "dev": true, "funding": [ { @@ -2864,6 +2867,26 @@ "micromark-util-symbol": "^2.0.0" } }, + "node_modules/micromark-util-edit-map": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-edit-map/-/micromark-util-edit-map-1.0.0.tgz", + "integrity": "sha512-Pa2ljlsEL6sVwFaYeyrOLSYbQt73JvGbPOYFq+9AElXiSnfI5Q4465RRZ1sHv7lDjDOnGRDDaqPXqClqWK/q1Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, "node_modules/micromark-util-encode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", @@ -3001,9 +3024,9 @@ "license": "MIT" }, "node_modules/micromark-util-types": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz", - "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz", + "integrity": "sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==", "dev": true, "funding": [ { @@ -3438,6 +3461,16 @@ "node": ">= 0.8" } }, + "node_modules/re2js": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/re2js/-/re2js-2.9.1.tgz", + "integrity": "sha512-JIT3bEEUZTOR2YS1walNEIfH4cF/cQeZcBUFq7ldqO6lR6g0X5CBq/S8rsa9omzZcsNf8qc36jCkWpKKtncrZg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -3705,9 +3738,9 @@ } }, "node_modules/sql.js": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/sql.js/-/sql.js-1.15.2.tgz", - "integrity": "sha512-ZmMYFsZPZWDKIJUh3A5rdnpRV3hB/r7AijwAzSzLnfv/9CSx4obUmDtA8brAjWJWjGtUVh43nIEJ+6nl6HuOUg==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/sql.js/-/sql.js-1.16.0.tgz", + "integrity": "sha512-q/JOZuJfmVh8Zf8Eo+cMJvtxAWeWBqTfJ6AQYGXZmcaLGHMwhA2niH3fQYHrBtPeOss1ttzHec07K5+rHaMRMw==", "license": "MIT" }, "node_modules/statuses": { @@ -3721,9 +3754,9 @@ } }, "node_modules/string-width": { - "version": "8.2.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.2.1.tgz", - "integrity": "sha512-IIaP0g3iy9Cyy18w3M9YcaDudujEAVHKt3a3QJg1+sr/oX96TbaGUubG0hJyCjCBThFH+tFpcIyoUHUn1ogaLA==", + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz", + "integrity": "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 9afa8316f..9e464021c 100644 --- a/package.json +++ b/package.json @@ -586,7 +586,7 @@ }, "devDependencies": { "@eslint/js": "9.39.2", - "@opencode-ai/plugin": "1.19.5", + "@opencode-ai/plugin": "1.4.3", "@types/node": "26.6.6", "@x402/core": "2.31.0", "@x402/evm": "2.31.0", diff --git a/tests/ci/dependabot-config.test.js b/tests/ci/dependabot-config.test.js index e9b076287..e0840dfb1 100644 --- a/tests/ci/dependabot-config.test.js +++ b/tests/ci/dependabot-config.test.js @@ -54,6 +54,15 @@ function run() { } })) passed++; else failed++; + if (test('keeps the Node 18 compatible OpenCode plugin line out of npm bumps', () => { + const npmRoot = config.updates.find(update => update['package-ecosystem'] === 'npm' && update.directory === '/'); + assert.ok(npmRoot, 'missing root npm update entry'); + const rule = (npmRoot.ignore || []).find(entry => entry['dependency-name'] === '@opencode-ai/plugin'); + assert.ok(rule, 'missing @opencode-ai/plugin ignore rule'); + assert.ok(rule['update-types'].includes('version-update:semver-minor')); + assert.ok(rule['update-types'].includes('version-update:semver-major')); + })) passed++; else failed++; + console.log(`\nPassed: ${passed}`); console.log(`Failed: ${failed}`); process.exit(failed > 0 ? 1 : 0); diff --git a/yarn.lock b/yarn.lock index 8a2513a35..3cad2c963 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1,3221 +1,2100 @@ -# This file is generated by running "yarn install" inside your project. -# Manual changes might be lost - proceed with caution! - -__metadata: - version: 8 - cacheKey: 10c0 - -"@adraffy/ens-normalize@npm:^1.11.0": - version: 1.11.1 - resolution: "@adraffy/ens-normalize@npm:1.11.1" - checksum: 10c0/b364e2a57131db278ebf2f22d1a1ac6d8aea95c49dd2bbbc1825870b38aa91fd8816aba580a1f84edc50a45eb6389213dacfd1889f32893afc8549a82d304767 - languageName: node - linkType: hard - -"@ai-sdk/provider@npm:3.0.8": - version: 3.0.8 - resolution: "@ai-sdk/provider@npm:3.0.8" - dependencies: - json-schema: "npm:^0.4.0" - checksum: 10c0/c68637c0139a6ce8af17bac1d7d539f531860026237c5c971dcecda2daa8b1e42d8c05e1e664ece60c15edb325c0253fd5b091ee54d32f870a750a493acbb0b7 - languageName: node - linkType: hard - -"@bcoe/v8-coverage@npm:^1.0.1": - version: 1.0.2 - resolution: "@bcoe/v8-coverage@npm:1.0.2" - checksum: 10c0/1eb1dc93cc17fb7abdcef21a6e7b867d6aa99a7ec88ec8207402b23d9083ab22a8011213f04b2cf26d535f1d22dc26139b7929e6c2134c254bd1e14ba5e678c3 - languageName: node - linkType: hard - -"@cacheable/memory@npm:^2.2.0": - version: 2.2.0 - resolution: "@cacheable/memory@npm:2.2.0" - dependencies: - "@cacheable/utils": "npm:^2.5.0" - "@keyv/bigmap": "npm:^1.3.1" - hookified: "npm:^1.15.1" - keyv: "npm:^5.6.0" - checksum: 10c0/c74889eb09871be0696065778fff013a498ddc73b538d113c2cb6ece361746f2959fbddfa4ce03ce53c9259998be05949e393212e72413dbd07616744eabd261 - languageName: node - linkType: hard - -"@cacheable/utils@npm:^2.5.0": - version: 2.5.0 - resolution: "@cacheable/utils@npm:2.5.0" - dependencies: - hashery: "npm:^1.5.1" - keyv: "npm:^5.6.0" - checksum: 10c0/99e901accd71eeb0bce91484d6c66d7ef2c731b541561eb5dc9ea7fed78bdc0b65e5dd2a80edde50191143bcfc5f238fc4742475b32e82d43b43eea224038e35 - languageName: node - linkType: hard - -"@eslint-community/eslint-utils@npm:^4.8.0": - version: 4.9.1 - resolution: "@eslint-community/eslint-utils@npm:4.9.1" - dependencies: - eslint-visitor-keys: "npm:^3.4.3" - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - checksum: 10c0/dc4ab5e3e364ef27e33666b11f4b86e1a6c1d7cbf16f0c6ff87b1619b3562335e9201a3d6ce806221887ff780ec9d828962a290bb910759fd40a674686503f02 - languageName: node - linkType: hard - -"@eslint-community/regexpp@npm:^4.12.2": - version: 4.12.2 - resolution: "@eslint-community/regexpp@npm:4.12.2" - checksum: 10c0/fddcbc66851b308478d04e302a4d771d6917a0b3740dc351513c0da9ca2eab8a1adf99f5e0aa7ab8b13fa0df005c81adeee7e63a92f3effd7d367a163b721c2d - languageName: node - linkType: hard - -"@eslint/config-array@npm:^0.23.6": - version: 0.23.6 - resolution: "@eslint/config-array@npm:0.23.6" - dependencies: - "@eslint/object-schema": "npm:^3.0.5" - debug: "npm:^4.3.1" - minimatch: "npm:^11.0.5" - checksum: 10c0/adf798a55b4f58e1db954347633ca2c07c51d413590f274f77d1d94d3413de3d321e3558e313f616a822cb76d90e9c378ec6dd2f49b3e51a2070e61f4405f2ae - languageName: node - linkType: hard - -"@eslint/config-helpers@npm:^0.7.0": - version: 0.7.0 - resolution: "@eslint/config-helpers@npm:0.7.0" - dependencies: - "@eslint/core": "npm:^1.2.1" - checksum: 10c0/fd40d57d6f1db49f7b647048b88a433dc7f6522ef3edf855a43cb526ef4fc40622ceed0dc8de2e03d254f30f8e035370570de1d4bd8e7c2b1200131451e0d331 - languageName: node - linkType: hard - -"@eslint/core@npm:^1.2.1": - version: 1.2.1 - resolution: "@eslint/core@npm:1.2.1" - dependencies: - "@types/json-schema": "npm:^7.0.15" - checksum: 10c0/10979b40588ecfef771fcb5013a542a35fb30692cc95a65f3481b0b36fbd89f5679efeb30d57f4eed35203d859aabace2a620177d6c536f71b299a1af2f3398f - languageName: node - linkType: hard - -"@eslint/js@npm:9.39.2": - version: 9.39.2 - resolution: "@eslint/js@npm:9.39.2" - checksum: 10c0/00f51c52b04ac79faebfaa65a9652b2093b9c924e945479f1f3945473f78aee83cbc76c8d70bbffbf06f7024626575b16d97b66eab16182e1d0d39daff2f26f5 - languageName: node - linkType: hard - -"@eslint/object-schema@npm:^3.0.5": - version: 3.0.5 - resolution: "@eslint/object-schema@npm:3.0.5" - checksum: 10c0/1db337431f520b99e9edda64ef5fafd7ec6a029843eeb608753025125b6649d861d843cffafafd3c4e37926d7d5f9ec0c6a8e3665c13c3da2144e8132892e92e - languageName: node - linkType: hard - -"@eslint/plugin-kit@npm:^0.7.3": - version: 0.7.3 - resolution: "@eslint/plugin-kit@npm:0.7.3" - dependencies: - "@eslint/core": "npm:^1.2.1" - levn: "npm:^0.4.1" - checksum: 10c0/2daebaedcfbd261478e8b87dfb46d3118f48277c19eb298483ebc6f3b438e9688b86ddca13b3aeb08dfb06be00fb6073506852386aa124645c1170e7e33d140c - languageName: node - linkType: hard - -"@humanfs/core@npm:^0.19.2": - version: 0.19.2 - resolution: "@humanfs/core@npm:0.19.2" - dependencies: - "@humanfs/types": "npm:^0.15.0" - checksum: 10c0/d0a1d52d7b30c27d49475a53072d1510b81c5803e44b342fb8faf3887f1aa27593a1e6dc76a45268e7892d3f4e198146659281f6b6d55eacf3fd5a38bac30c5c - languageName: node - linkType: hard - -"@humanfs/node@npm:0.16.8": - version: 0.16.8 - resolution: "@humanfs/node@npm:0.16.8" - dependencies: - "@humanfs/core": "npm:^0.19.2" - "@humanfs/types": "npm:^0.15.0" - "@humanwhocodes/retry": "npm:^0.4.0" - checksum: 10c0/56140579db811af4e160b195d45d0f29acf644d192c93fe24c9e594ebf06f19dfc157494a07c84540b8a071c0e4b37209c2362765d31734f4d0be869c2422e25 - languageName: node - linkType: hard - -"@humanfs/types@npm:^0.15.0": - version: 0.15.0 - resolution: "@humanfs/types@npm:0.15.0" - checksum: 10c0/fc26b9a024b0e55f7eaf64036df94345bf5d36d6a41ef80ef38e78f1f7430ce26cf435af736adae58913baae18eac3f38c18739054a3d379102015978eae862e - languageName: node - linkType: hard - -"@humanwhocodes/module-importer@npm:^1.0.1": - version: 1.0.1 - resolution: "@humanwhocodes/module-importer@npm:1.0.1" - checksum: 10c0/909b69c3b86d482c26b3359db16e46a32e0fb30bd306a3c176b8313b9e7313dba0f37f519de6aa8b0a1921349e505f259d19475e123182416a506d7f87e7f529 - languageName: node - linkType: hard - -"@humanwhocodes/retry@npm:^0.4.0, @humanwhocodes/retry@npm:^0.4.2": - version: 0.4.3 - resolution: "@humanwhocodes/retry@npm:0.4.3" - checksum: 10c0/3775bb30087d4440b3f7406d5a057777d90e4b9f435af488a4923ef249e93615fb78565a85f173a186a076c7706a81d0d57d563a2624e4de2c5c9c66c486ce42 - languageName: node - linkType: hard - -"@iarna/toml@npm:2.2.5": - version: 2.2.5 - resolution: "@iarna/toml@npm:2.2.5" - checksum: 10c0/d095381ad4554aca233b7cf5a91f243ef619e5e15efd3157bc640feac320545450d14b394aebbf6f02a2047437ced778ae598d5879a995441ab7b6c0b2c2f201 - languageName: node - linkType: hard - -"@isaacs/fs-minipass@npm:^4.0.0": - version: 4.0.1 - resolution: "@isaacs/fs-minipass@npm:4.0.1" - dependencies: - minipass: "npm:^7.0.4" - checksum: 10c0/c25b6dc1598790d5b55c0947a9b7d111cfa92594db5296c3b907e2f533c033666f692a3939eadac17b1c7c40d362d0b0635dc874cbfe3e70db7c2b07cc97a5d2 - languageName: node - linkType: hard - -"@isaacs/nonrecursive-glob-match@npm:^1.0.2": - version: 1.1.0 - resolution: "@isaacs/nonrecursive-glob-match@npm:1.1.0" - checksum: 10c0/89f8535f3d8147649360de992f58fba2b0e97b687e18cdc16c5b34a6c52afff4f474d05c5a0b6411708614f368cf19c41b037d3a1c6c6821e02aee967d888e98 - languageName: node - linkType: hard - -"@istanbuljs/schema@npm:^0.1.2, @istanbuljs/schema@npm:^0.1.3": - version: 0.1.3 - resolution: "@istanbuljs/schema@npm:0.1.3" - checksum: 10c0/61c5286771676c9ca3eb2bd8a7310a9c063fb6e0e9712225c8471c582d157392c88f5353581c8c9adbe0dff98892317d2fdfc56c3499aa42e0194405206a963a - languageName: node - linkType: hard - -"@jridgewell/resolve-uri@npm:^3.1.0": - version: 3.1.2 - resolution: "@jridgewell/resolve-uri@npm:3.1.2" - checksum: 10c0/d502e6fb516b35032331406d4e962c21fe77cdf1cbdb49c6142bcbd9e30507094b18972778a6e27cbad756209cfe34b1a27729e6fa08a2eb92b33943f680cf1e - languageName: node - linkType: hard - -"@jridgewell/sourcemap-codec@npm:^1.4.14": - version: 1.5.5 - resolution: "@jridgewell/sourcemap-codec@npm:1.5.5" - checksum: 10c0/f9e538f302b63c0ebc06eecb1dd9918dd4289ed36147a0ddce35d6ea4d7ebbda243cda7b2213b6a5e1d8087a298d5cf630fb2bd39329cdecb82017023f6081a0 - languageName: node - linkType: hard - -"@jridgewell/trace-mapping@npm:^0.3.12": - version: 0.3.31 - resolution: "@jridgewell/trace-mapping@npm:0.3.31" - dependencies: - "@jridgewell/resolve-uri": "npm:^3.1.0" - "@jridgewell/sourcemap-codec": "npm:^1.4.14" - checksum: 10c0/4b30ec8cd56c5fd9a661f088230af01e0c1a3888d11ffb6b47639700f71225be21d1f7e168048d6d4f9449207b978a235c07c8f15c07705685d16dc06280e9d9 - languageName: node - linkType: hard - -"@keyv/bigmap@npm:^1.3.1": - version: 1.3.1 - resolution: "@keyv/bigmap@npm:1.3.1" - dependencies: - hashery: "npm:^1.4.0" - hookified: "npm:^1.15.0" - peerDependencies: - keyv: ^5.6.0 - checksum: 10c0/acc6a4a5edf462ce23e95672ab4bfaf7cd1941dff6bf3a2f671ce467961ace1fac9d3eb75a9ed9a8e92012e00a7d8b16ad1677bc539a52c3ad0cec31473e2349 - languageName: node - linkType: hard - -"@keyv/serialize@npm:^1.1.1": - version: 1.1.1 - resolution: "@keyv/serialize@npm:1.1.1" - checksum: 10c0/b0008cae4a54400c3abf587b8cc2474c6f528ee58969ce6cf9cb07a04006f80c73c85971d6be6544408318a2bc40108236a19a82aea0a6de95aae49533317374 - languageName: node - linkType: hard - -"@msgpackr-extract/msgpackr-extract-darwin-arm64@npm:3.0.7": - version: 3.0.7 - resolution: "@msgpackr-extract/msgpackr-extract-darwin-arm64@npm:3.0.7" - conditions: os=darwin & cpu=arm64 - languageName: node - linkType: hard - -"@msgpackr-extract/msgpackr-extract-darwin-x64@npm:3.0.7": - version: 3.0.7 - resolution: "@msgpackr-extract/msgpackr-extract-darwin-x64@npm:3.0.7" - conditions: os=darwin & cpu=x64 - languageName: node - linkType: hard - -"@msgpackr-extract/msgpackr-extract-linux-arm64@npm:3.0.7": - version: 3.0.7 - resolution: "@msgpackr-extract/msgpackr-extract-linux-arm64@npm:3.0.7" - conditions: os=linux & cpu=arm64 - languageName: node - linkType: hard - -"@msgpackr-extract/msgpackr-extract-linux-arm@npm:3.0.7": - version: 3.0.7 - resolution: "@msgpackr-extract/msgpackr-extract-linux-arm@npm:3.0.7" - conditions: os=linux & cpu=arm - languageName: node - linkType: hard - -"@msgpackr-extract/msgpackr-extract-linux-x64@npm:3.0.7": - version: 3.0.7 - resolution: "@msgpackr-extract/msgpackr-extract-linux-x64@npm:3.0.7" - conditions: os=linux & cpu=x64 - languageName: node - linkType: hard - -"@msgpackr-extract/msgpackr-extract-win32-x64@npm:3.0.7": - version: 3.0.7 - resolution: "@msgpackr-extract/msgpackr-extract-win32-x64@npm:3.0.7" - conditions: os=win32 & cpu=x64 - languageName: node - linkType: hard - -"@noble/ciphers@npm:^1.3.0": - version: 1.3.0 - resolution: "@noble/ciphers@npm:1.3.0" - checksum: 10c0/3ba6da645ce45e2f35e3b2e5c87ceba86b21dfa62b9466ede9edfb397f8116dae284f06652c0cd81d99445a2262b606632e868103d54ecc99fd946ae1af8cd37 - languageName: node - linkType: hard - -"@noble/curves@npm:1.9.1": - version: 1.9.1 - resolution: "@noble/curves@npm:1.9.1" - dependencies: - "@noble/hashes": "npm:1.8.0" - checksum: 10c0/39c84dbfecdca80cfde2ecea4b06ef2ec1255a4df40158d22491d1400057a283f57b2b26c8b1331006e6e061db791f31d47764961c239437032e2f45e8888c1e - languageName: node - linkType: hard - -"@noble/curves@npm:^1.9.0, @noble/curves@npm:~1.9.0": - version: 1.9.7 - resolution: "@noble/curves@npm:1.9.7" - dependencies: - "@noble/hashes": "npm:1.8.0" - checksum: 10c0/150014751ebe8ca06a8654ca2525108452ea9ee0be23430332769f06808cddabfe84f248b6dbf836916bc869c27c2092957eec62c7506d68a1ed0a624017c2a3 - languageName: node - linkType: hard - -"@noble/hashes@npm:1.8.0, @noble/hashes@npm:^1.7.0, @noble/hashes@npm:^1.8.0, @noble/hashes@npm:~1.8.0": - version: 1.8.0 - resolution: "@noble/hashes@npm:1.8.0" - checksum: 10c0/06a0b52c81a6fa7f04d67762e08b2c476a00285858150caeaaff4037356dd5e119f45b2a530f638b77a5eeca013168ec1b655db41bae3236cb2e9d511484fc77 - languageName: node - linkType: hard - -"@opencode-ai/plugin@npm:1.19.5": - version: 1.19.5 - resolution: "@opencode-ai/plugin@npm:1.19.5" - dependencies: - "@ai-sdk/provider": "npm:3.0.8" - "@opencode-ai/sdk": "npm:1.19.5" - effect: "npm:4.0.0-beta.83" - zod: "npm:4.1.8" - peerDependencies: - "@opentui/core": ">=0.4.5" - "@opentui/keymap": ">=0.4.5" - "@opentui/solid": ">=0.4.5" - peerDependenciesMeta: - "@opentui/core": - optional: true - "@opentui/keymap": - optional: true - "@opentui/solid": - optional: true - checksum: 10c0/a77baa868e319ccb65fc0614b6c00aa914d66fc63a5c7bb23329712de0a2eb432c0f41191b1d5618dac02a16e6ac91590a9f5c0724a6dc483c86eadc1dcf7c31 - languageName: node - linkType: hard - -"@opencode-ai/sdk@npm:1.19.5": - version: 1.19.5 - resolution: "@opencode-ai/sdk@npm:1.19.5" - dependencies: - cross-spawn: "npm:7.0.6" - checksum: 10c0/490d115f7f4654d4cdc5c13c03aed3d60486021b57d8e9a5932b67f46ff4fb5a3ee74188c50159444cbac88e309ef49018e098caded017498764766d06ed72cb - languageName: node - linkType: hard - -"@scure/base@npm:^1.2.6, @scure/base@npm:~1.2.5": - version: 1.2.6 - resolution: "@scure/base@npm:1.2.6" - checksum: 10c0/49bd5293371c4e062cb6ba689c8fe3ea3981b7bb9c000400dc4eafa29f56814cdcdd27c04311c2fec34de26bc373c593a1d6ca6d754398a488d587943b7c128a - languageName: node - linkType: hard - -"@scure/bip32@npm:1.7.0, @scure/bip32@npm:^1.7.0": - version: 1.7.0 - resolution: "@scure/bip32@npm:1.7.0" - dependencies: - "@noble/curves": "npm:~1.9.0" - "@noble/hashes": "npm:~1.8.0" - "@scure/base": "npm:~1.2.5" - checksum: 10c0/e3d4c1f207df16abcd79babcdb74d36f89bdafc90bf02218a5140cc5cba25821d80d42957c6705f35210cc5769714ea9501d4ae34732cdd1c26c9ff182a219f7 - languageName: node - linkType: hard - -"@scure/bip39@npm:1.6.0, @scure/bip39@npm:^1.6.0": - version: 1.6.0 - resolution: "@scure/bip39@npm:1.6.0" - dependencies: - "@noble/hashes": "npm:~1.8.0" - "@scure/base": "npm:~1.2.5" - checksum: 10c0/73a54b5566a50a3f8348a5cfd74d2092efeefc485efbed83d7a7374ffd9a75defddf446e8e5ea0385e4adb49a94b8ae83c5bad3e16333af400e932f7da3aaff8 - languageName: node - linkType: hard - -"@signinwithethereum/siwe-parser@npm:^4.2.1": - version: 4.2.1 - resolution: "@signinwithethereum/siwe-parser@npm:4.2.1" - dependencies: - "@noble/hashes": "npm:^1.7.0" - apg-js: "npm:^4.4.0" - checksum: 10c0/a277cb2061b20756ffd59e169164f9e10e447ffc7a301629268aaa08b4dfc4b804e105e1d7b13a71149c856fb1ba7c088be7b29bb6d41d1e4ac8f99d1d4c0592 - languageName: node - linkType: hard - -"@signinwithethereum/siwe@npm:^4.1.0": - version: 4.2.1 - resolution: "@signinwithethereum/siwe@npm:4.2.1" - dependencies: - "@signinwithethereum/siwe-parser": "npm:^4.2.1" - peerDependencies: - ethers: ^5.7.0 || ^6.13.0 - viem: ^2.7.0 - peerDependenciesMeta: - ethers: - optional: true - viem: - optional: true - checksum: 10c0/42e3194466ff9f0b9d446346067c67e5d49daf91442fef22b8fd5e4c4a80fc729c3009f4a6f4f9afeab842218c3a90de6331d5a256b7331a27017d80206ef08d - languageName: node - linkType: hard - -"@standard-schema/spec@npm:^1.1.0": - version: 1.1.0 - resolution: "@standard-schema/spec@npm:1.1.0" - checksum: 10c0/d90f55acde4b2deb983529c87e8025fa693de1a5e8b49ecc6eb84d1fd96328add0e03d7d551442156c7432fd78165b2c26ff561b970a9a881f046abb78d6a526 - languageName: node - linkType: hard - -"@types/debug@npm:^4.0.0": - version: 4.1.13 - resolution: "@types/debug@npm:4.1.13" - dependencies: - "@types/ms": "npm:*" - checksum: 10c0/e5e124021bbdb23a82727eee0a726ae0fc8a3ae1f57253cbcc47497f259afb357de7f6941375e773e1abbfa1604c1555b901a409d762ec2bb4c1612131d4afb7 - languageName: node - linkType: hard - -"@types/esrecurse@npm:^4.3.1": - version: 4.3.1 - resolution: "@types/esrecurse@npm:4.3.1" - checksum: 10c0/90dad74d5da3ad27606d8e8e757322f33171cfeaa15ad558b615cf71bb2a516492d18f55f4816384685a3eb2412142e732bbae9a4a7cd2cf3deb7572aa4ebe03 - languageName: node - linkType: hard - -"@types/estree@npm:^1.0.6, @types/estree@npm:^1.0.8": - version: 1.0.8 - resolution: "@types/estree@npm:1.0.8" - checksum: 10c0/39d34d1afaa338ab9763f37ad6066e3f349444f9052b9676a7cc0252ef9485a41c6d81c9c4e0d26e9077993354edf25efc853f3224dd4b447175ef62bdcc86a5 - languageName: node - linkType: hard - -"@types/istanbul-lib-coverage@npm:^2.0.1": - version: 2.0.6 - resolution: "@types/istanbul-lib-coverage@npm:2.0.6" - checksum: 10c0/3948088654f3eeb45363f1db158354fb013b362dba2a5c2c18c559484d5eb9f6fd85b23d66c0a7c2fcfab7308d0a585b14dadaca6cc8bf89ebfdc7f8f5102fb7 - languageName: node - linkType: hard - -"@types/json-schema@npm:^7.0.15": - version: 7.0.15 - resolution: "@types/json-schema@npm:7.0.15" - checksum: 10c0/a996a745e6c5d60292f36731dd41341339d4eeed8180bb09226e5c8d23759067692b1d88e5d91d72ee83dfc00d3aca8e7bd43ea120516c17922cbcb7c3e252db - languageName: node - linkType: hard - -"@types/katex@npm:^0.16.0": - version: 0.16.8 - resolution: "@types/katex@npm:0.16.8" - checksum: 10c0/0661609353f4f5e62bd2dc78da99e842761c6474b19f2268b195bbe9dbf20e6f766a31155d79eec2e7c3eff4e7eba4b30f4f519e9c6a11c75bb45e257a2ddb69 - languageName: node - linkType: hard - -"@types/ms@npm:*": - version: 2.1.0 - resolution: "@types/ms@npm:2.1.0" - checksum: 10c0/5ce692ffe1549e1b827d99ef8ff71187457e0eb44adbae38fdf7b9a74bae8d20642ee963c14516db1d35fa2652e65f47680fdf679dcbde52bbfadd021f497225 - languageName: node - linkType: hard - -"@types/node@npm:26.6.6": - version: 26.6.6 - resolution: "@types/node@npm:26.6.6" - dependencies: - undici-types: "npm:~8.9.0" - checksum: 10c0/5cb63f644f6e85a257a9cd2403cbcbe196760e2a35fd3ec9fb8b5cff663e14cc832b198cc17b53f870a2e30900ed45a1fb3f53e6589aba26b8e8c484aa672053 - languageName: node - linkType: hard - -"@types/unist@npm:^2.0.0": - version: 2.0.11 - resolution: "@types/unist@npm:2.0.11" - checksum: 10c0/24dcdf25a168f453bb70298145eb043cfdbb82472db0bc0b56d6d51cd2e484b9ed8271d4ac93000a80da568f2402e9339723db262d0869e2bf13bc58e081768d - languageName: node - linkType: hard - -"@x402/core@npm:2.31.0, @x402/core@npm:~2.31.0": - version: 2.31.0 - resolution: "@x402/core@npm:2.31.0" - dependencies: - zod: "npm:^4.6.6" - checksum: 10c0/67333e7049fc0dccc85723f25582e64ab83a4aec7d360b0781028d189535568a4789a948e9f7f6229d2380e353b3355e553f44ed0a5e1517b08d64f64bcee0f3 - languageName: node - linkType: hard - -"@x402/evm@npm:2.31.0": - version: 2.31.0 - resolution: "@x402/evm@npm:2.31.0" - dependencies: - "@x402/core": "npm:~2.31.0" - viem: "npm:^2.48.11" - zod: "npm:^4.6.6" - checksum: 10c0/9705d9b9b9418cd2cd829d89f311c3e885285b1d78929b6e7149b1f4a891cac7a9b31dc2ad8d0a90eac8fe394e13405a426a2bdf690e4088791e2aef3b3ca6f6 - languageName: node - linkType: hard - -"@x402/express@npm:2.31.0": - version: 2.31.0 - resolution: "@x402/express@npm:2.31.0" - dependencies: - "@x402/core": "npm:~2.31.0" - "@x402/extensions": "npm:~2.31.0" - peerDependencies: - "@x402/paywall": ^2.31.0 - express: ^4.22.3 || ^5.3.0 - peerDependenciesMeta: - "@x402/paywall": - optional: true - checksum: 10c0/65e3a52dae523f58b1c4b11b60b99d9209da859b7ec9fc0523c6046ce40d589cc51a9706be19f8c34805b04132aea541b893b1036a30732bf03c89df722231d7 - languageName: node - linkType: hard - -"@x402/extensions@npm:~2.31.0": - version: 2.31.0 - resolution: "@x402/extensions@npm:2.31.0" - dependencies: - "@noble/curves": "npm:^1.9.0" - "@scure/base": "npm:^1.2.6" - "@signinwithethereum/siwe": "npm:^4.1.0" - "@x402/core": "npm:~2.31.0" - ajv: "npm:^8.18.0" - jose: "npm:^5.9.6" - tweetnacl: "npm:^1.0.3" - viem: "npm:^2.48.11" - zod: "npm:^4.6.6" - checksum: 10c0/3ec7adb56608734d16493e3adc9d32ed3a229733dca43dd53d50406d6ec79ad0eedc007acca213411adadbc0e8538140707466c239217270836db2a3fc453795 - languageName: node - linkType: hard - -"abbrev@npm:^5.0.0": - version: 5.0.0 - resolution: "abbrev@npm:5.0.0" - checksum: 10c0/8e88f5c798ea4562d28c5a3e9ad69e3879890bc5d695d8f2dffb8609be4c890aacc8f80ef4553fdd2c6a62d70c2ce8bc57b38074e383beb7487bdafa9ed42ea5 - languageName: node - linkType: hard - -"abitype@npm:1.2.3, abitype@npm:^1.2.3": - version: 1.2.3 - resolution: "abitype@npm:1.2.3" - peerDependencies: - typescript: ">=5.0.4" - zod: ^3.22.0 || ^4.0.0 - peerDependenciesMeta: - typescript: - optional: true - zod: - optional: true - checksum: 10c0/c8740de1ae4961723a153224a52cb9a34a57903fb5c2ad61d5082b0b79b53033c9335381aa8c663c7ec213c9955a9853f694d51e95baceedef27356f7745c634 - languageName: node - linkType: hard - -"accepts@npm:~1.3.8": - version: 1.3.8 - resolution: "accepts@npm:1.3.8" - dependencies: - mime-types: "npm:~2.1.34" - negotiator: "npm:0.6.3" - checksum: 10c0/3a35c5f5586cfb9a21163ca47a5f77ac34fa8ceb5d17d2fa2c0d81f41cbd7f8c6fa52c77e2c039acc0f4d09e71abdc51144246900f6bef5e3c4b333f77d89362 - languageName: node - linkType: hard - -"acorn-jsx@npm:^5.3.2": - version: 5.3.2 - resolution: "acorn-jsx@npm:5.3.2" - peerDependencies: - acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - checksum: 10c0/4c54868fbef3b8d58927d5e33f0a4de35f59012fe7b12cf9dfbb345fb8f46607709e1c4431be869a23fb63c151033d84c4198fa9f79385cec34fcb1dd53974c1 - languageName: node - linkType: hard - -"acorn@npm:^8.16.0": - version: 8.17.0 - resolution: "acorn@npm:8.17.0" - bin: - acorn: bin/acorn - checksum: 10c0/5dcefea5f8f023b6cc24cbe71fb5a8112b601d36c4fa07d14e4e6ffc2ee47383332c46b36c766d9437725aa6660156eae50efa0c838719823b50d7c327c4ed42 - languageName: node - linkType: hard - -"ajv@npm:8.20.0, ajv@npm:^8.18.0": - version: 8.20.0 - resolution: "ajv@npm:8.20.0" - dependencies: - fast-deep-equal: "npm:^3.1.3" - fast-uri: "npm:^3.0.1" - json-schema-traverse: "npm:^1.0.0" - require-from-string: "npm:^2.0.2" - checksum: 10c0/5df9a1c8f83863cde1bd3a9ddb426f599718f88e3dc9153616c79fb28e0be455335830d7f21d745576519f057b371352daa31047b6a33d7036fe08777d60cf2a - languageName: node - linkType: hard - -"ajv@npm:^6.14.0": - version: 6.14.0 - resolution: "ajv@npm:6.14.0" - dependencies: - fast-deep-equal: "npm:^3.1.1" - fast-json-stable-stringify: "npm:^2.0.0" - json-schema-traverse: "npm:^0.4.1" - uri-js: "npm:^4.2.2" - checksum: 10c0/a2bc39b0555dc9802c899f86990eb8eed6e366cddbf65be43d5aa7e4f3c4e1a199d5460fd7ca4fb3d864000dbbc049253b72faa83b3b30e641ca52cb29a68c22 - languageName: node - linkType: hard - -"ansi-regex@npm:^5.0.1": - version: 5.0.1 - resolution: "ansi-regex@npm:5.0.1" - checksum: 10c0/9a64bb8627b434ba9327b60c027742e5d17ac69277960d041898596271d992d4d52ba7267a63ca10232e29f6107fc8a835f6ce8d719b88c5f8493f8254813737 - languageName: node - linkType: hard - -"ansi-regex@npm:^6.2.2": - version: 6.3.0 - resolution: "ansi-regex@npm:6.3.0" - checksum: 10c0/bc047786d0531f1f22d1e22e9863e8554488a399f1ee5270b753efa6de938a788d27456f2b256770f11fdd8b1e847483bc1b55ddc2b3ffe82ec45c875292c651 - languageName: node - linkType: hard - -"ansi-styles@npm:^4.0.0": - version: 4.3.0 - resolution: "ansi-styles@npm:4.3.0" - dependencies: - color-convert: "npm:^2.0.1" - checksum: 10c0/895a23929da416f2bd3de7e9cb4eabd340949328ab85ddd6e484a637d8f6820d485f53933446f5291c3b760cbc488beb8e88573dd0f9c7daf83dccc8fe81b041 - languageName: node - linkType: hard - -"apg-js@npm:^4.4.0": - version: 4.4.0 - resolution: "apg-js@npm:4.4.0" - checksum: 10c0/b3e60e2ba8b25fe1c9fcc648f43b98f02f0eff3bbd593fd2866302fe57b1b7840ee9be894ebed6214876a6feecd543cc717d7b68351bf2df831db110ae01e6bb - languageName: node - linkType: hard - -"argparse@npm:^2.0.1": - version: 2.0.1 - resolution: "argparse@npm:2.0.1" - checksum: 10c0/c5640c2d89045371c7cedd6a70212a04e360fd34d6edeae32f6952c63949e3525ea77dbec0289d8213a99bbaeab5abfa860b5c12cf88a2e6cf8106e90dd27a7e - languageName: node - linkType: hard - -"argparse@npm:^3.0.3": - version: 3.0.4 - resolution: "argparse@npm:3.0.4" - checksum: 10c0/845346e39e677b46f8558cece7c8dad1f7045f8b86af33356d8565b26a16940bf770a14a51d6da40ce76554a141e0e95b514d055d1da17a2f1b42df7d523fa0f - languageName: node - linkType: hard - -"array-flatten@npm:1.1.1": - version: 1.1.1 - resolution: "array-flatten@npm:1.1.1" - checksum: 10c0/806966c8abb2f858b08f5324d9d18d7737480610f3bd5d3498aaae6eb5efdc501a884ba019c9b4a8f02ff67002058749d05548fd42fa8643f02c9c7f22198b91 - languageName: node - linkType: hard - -"balanced-match@npm:^4.0.2": - version: 4.0.4 - resolution: "balanced-match@npm:4.0.4" - checksum: 10c0/07e86102a3eb2ee2a6a1a89164f29d0dbaebd28f2ca3f5ca786f36b8b23d9e417eb3be45a4acf754f837be5ac0a2317de90d3fcb7f4f4dc95720a1f36b26a17b - languageName: node - linkType: hard - -"body-parser@npm:~1.20.5": - version: 1.20.9 - resolution: "body-parser@npm:1.20.9" - dependencies: - bytes: "npm:~3.1.2" - content-type: "npm:~1.0.5" - debug: "npm:2.6.9" - depd: "npm:2.0.0" - destroy: "npm:~1.2.0" - http-errors: "npm:~2.0.1" - iconv-lite: "npm:~0.4.24" - on-finished: "npm:~2.4.1" - qs: "npm:~6.16.0" - raw-body: "npm:~2.5.3" - type-is: "npm:~1.6.18" - unpipe: "npm:~1.0.0" - checksum: 10c0/685d3208335377a3dfc6d7bc8b2af6d40d38b9a72e25bab4d9f7aff19d059729d5b1b3a9f5561274f460020bb9166c211d5302abe0b45452665420ca5e16013b - languageName: node - linkType: hard - -"brace-expansion@npm:5.0.12": - version: 5.0.12 - resolution: "brace-expansion@npm:5.0.12" - dependencies: - balanced-match: "npm:^4.0.2" - checksum: 10c0/a40ac64d3bdb5bb222456514d3633c1f627f03b844f509c69e70f98b78be0ce85e21b44bbfecdd0ddd4cc0855ca4242b41ea96ddccf88c7c3c7a84405474bb3a - languageName: node - linkType: hard - -"bytes@npm:~3.1.2": - version: 3.1.2 - resolution: "bytes@npm:3.1.2" - checksum: 10c0/76d1c43cbd602794ad8ad2ae94095cddeb1de78c5dddaa7005c51af10b0176c69971a6d88e805a90c2b6550d76636e43c40d8427a808b8645ede885de4a0358e - languageName: node - linkType: hard - -"c8@npm:11.0.0": - version: 11.0.0 - resolution: "c8@npm:11.0.0" - dependencies: - "@bcoe/v8-coverage": "npm:^1.0.1" - "@istanbuljs/schema": "npm:^0.1.3" - find-up: "npm:^5.0.0" - foreground-child: "npm:^3.1.1" - istanbul-lib-coverage: "npm:^3.2.0" - istanbul-lib-report: "npm:^3.0.1" - istanbul-reports: "npm:^3.1.6" - test-exclude: "npm:^8.0.0" - v8-to-istanbul: "npm:^9.0.0" - yargs: "npm:^17.7.2" - yargs-parser: "npm:^21.1.1" - peerDependencies: - monocart-coverage-reports: ^2 - peerDependenciesMeta: - monocart-coverage-reports: - optional: true - bin: - c8: bin/c8.js - checksum: 10c0/94b0cf8756715ca8fedb9331c61ebda0c5bbd63c5eeea523d18904af790f6f197a02f547c066fa2d8d0544bb9f9547a6a67d653f3575953139c74ca915771963 - languageName: node - linkType: hard - -"cacheable@npm:^2.5.0": - version: 2.5.0 - resolution: "cacheable@npm:2.5.0" - dependencies: - "@cacheable/memory": "npm:^2.2.0" - "@cacheable/utils": "npm:^2.5.0" - hookified: "npm:^1.15.0" - keyv: "npm:^5.6.0" - qified: "npm:^0.10.1" - checksum: 10c0/ad4086a60ed327196901c16360312705e35bfde5118457449cfabaf4ece0fecad046985ea8b66b3ece46dd469cb33798d87e1dac3ed2c00746578054bccbf74d - languageName: node - linkType: hard - -"call-bind-apply-helpers@npm:^1.0.1, call-bind-apply-helpers@npm:^1.0.2": - version: 1.0.2 - resolution: "call-bind-apply-helpers@npm:1.0.2" - dependencies: - es-errors: "npm:^1.3.0" - function-bind: "npm:^1.1.2" - checksum: 10c0/47bd9901d57b857590431243fea704ff18078b16890a6b3e021e12d279bbf211d039155e27d7566b374d49ee1f8189344bac9833dec7a20cdec370506361c938 - languageName: node - linkType: hard - -"call-bound@npm:^1.0.2": - version: 1.0.4 - resolution: "call-bound@npm:1.0.4" - dependencies: - call-bind-apply-helpers: "npm:^1.0.2" - get-intrinsic: "npm:^1.3.0" - checksum: 10c0/f4796a6a0941e71c766aea672f63b72bc61234c4f4964dc6d7606e3664c307e7d77845328a8f3359ce39ddb377fed67318f9ee203dea1d47e46165dcf2917644 - languageName: node - linkType: hard - -"character-entities-legacy@npm:^3.0.0": - version: 3.0.0 - resolution: "character-entities-legacy@npm:3.0.0" - checksum: 10c0/ec4b430af873661aa754a896a2b55af089b4e938d3d010fad5219299a6b6d32ab175142699ee250640678cd64bdecd6db3c9af0b8759ab7b155d970d84c4c7d1 - languageName: node - linkType: hard - -"character-entities@npm:^2.0.0": - version: 2.0.2 - resolution: "character-entities@npm:2.0.2" - checksum: 10c0/b0c645a45bcc90ff24f0e0140f4875a8436b8ef13b6bcd31ec02cfb2ca502b680362aa95386f7815bdc04b6464d48cf191210b3840d7c04241a149ede591a308 - languageName: node - linkType: hard - -"character-reference-invalid@npm:^2.0.0": - version: 2.0.1 - resolution: "character-reference-invalid@npm:2.0.1" - checksum: 10c0/2ae0dec770cd8659d7e8b0ce24392d83b4c2f0eb4a3395c955dce5528edd4cc030a794cfa06600fcdd700b3f2de2f9b8e40e309c0011c4180e3be64a0b42e6a1 - languageName: node - linkType: hard - -"chownr@npm:^3.0.0": - version: 3.0.0 - resolution: "chownr@npm:3.0.0" - checksum: 10c0/43925b87700f7e3893296c8e9c56cc58f926411cce3a6e5898136daaf08f08b9a8eb76d37d3267e707d0dcc17aed2e2ebdf5848c0c3ce95cf910a919935c1b10 - languageName: node - linkType: hard - -"cliui@npm:^8.0.1": - version: 8.0.1 - resolution: "cliui@npm:8.0.1" - dependencies: - string-width: "npm:^4.2.0" - strip-ansi: "npm:^6.0.1" - wrap-ansi: "npm:^7.0.0" - checksum: 10c0/4bda0f09c340cbb6dfdc1ed508b3ca080f12992c18d68c6be4d9cf51756033d5266e61ec57529e610dacbf4da1c634423b0c1b11037709cc6b09045cbd815df5 - languageName: node - linkType: hard - -"color-convert@npm:^2.0.1": - version: 2.0.1 - resolution: "color-convert@npm:2.0.1" - dependencies: - color-name: "npm:~1.1.4" - checksum: 10c0/37e1150172f2e311fe1b2df62c6293a342ee7380da7b9cfdba67ea539909afbd74da27033208d01d6d5cfc65ee7868a22e18d7e7648e004425441c0f8a15a7d7 - languageName: node - linkType: hard - -"color-name@npm:~1.1.4": - version: 1.1.4 - resolution: "color-name@npm:1.1.4" - checksum: 10c0/a1a3f914156960902f46f7f56bc62effc6c94e84b2cae157a526b1c1f74b677a47ec602bf68a61abfa2b42d15b7c5651c6dbe72a43af720bc588dff885b10f95 - languageName: node - linkType: hard - -"commander@npm:^8.3.0": - version: 8.3.0 - resolution: "commander@npm:8.3.0" - checksum: 10c0/8b043bb8322ea1c39664a1598a95e0495bfe4ca2fad0d84a92d7d1d8d213e2a155b441d2470c8e08de7c4a28cf2bc6e169211c49e1b21d9f7edc6ae4d9356060 - languageName: node - linkType: hard - -"commander@npm:~15.0.0": - version: 15.0.0 - resolution: "commander@npm:15.0.0" - checksum: 10c0/539229c171914ea1ccd45ee5f10d924289a12a684ea3a7a44147abe54003c35ed6de9ae4ad198d88c29fdf403dca0428451a388234e6dc01b6faa978fb207206 - languageName: node - linkType: hard - -"content-disposition@npm:~0.5.4": - version: 0.5.4 - resolution: "content-disposition@npm:0.5.4" - dependencies: - safe-buffer: "npm:5.2.1" - checksum: 10c0/bac0316ebfeacb8f381b38285dc691c9939bf0a78b0b7c2d5758acadad242d04783cee5337ba7d12a565a19075af1b3c11c728e1e4946de73c6ff7ce45f3f1bb - languageName: node - linkType: hard - -"content-type@npm:~1.0.4, content-type@npm:~1.0.5": - version: 1.0.5 - resolution: "content-type@npm:1.0.5" - checksum: 10c0/b76ebed15c000aee4678c3707e0860cb6abd4e680a598c0a26e17f0bfae723ec9cc2802f0ff1bc6e4d80603719010431d2231018373d4dde10f9ccff9dadf5af - languageName: node - linkType: hard - -"convert-source-map@npm:^2.0.0": - version: 2.0.0 - resolution: "convert-source-map@npm:2.0.0" - checksum: 10c0/8f2f7a27a1a011cc6cc88cc4da2d7d0cfa5ee0369508baae3d98c260bb3ac520691464e5bbe4ae7cdf09860c1d69ecc6f70c63c6e7c7f7e3f18ec08484dc7d9b - languageName: node - linkType: hard - -"cookie-signature@npm:~1.0.6": - version: 1.0.7 - resolution: "cookie-signature@npm:1.0.7" - checksum: 10c0/e7731ad2995ae2efeed6435ec1e22cdd21afef29d300c27281438b1eab2bae04ef0d1a203928c0afec2cee72aa36540b8747406ebe308ad23c8e8cc3c26c9c51 - languageName: node - linkType: hard - -"cookie@npm:~0.7.1": - version: 0.7.2 - resolution: "cookie@npm:0.7.2" - checksum: 10c0/9596e8ccdbf1a3a88ae02cf5ee80c1c50959423e1022e4e60b91dd87c622af1da309253d8abdb258fb5e3eacb4f08e579dc58b4897b8087574eee0fd35dfa5d2 - languageName: node - linkType: hard - -"cross-spawn@npm:7.0.6, cross-spawn@npm:^7.0.6": - version: 7.0.6 - resolution: "cross-spawn@npm:7.0.6" - dependencies: - path-key: "npm:^3.1.0" - shebang-command: "npm:^2.0.0" - which: "npm:^2.0.1" - checksum: 10c0/053ea8b2135caff68a9e81470e845613e374e7309a47731e81639de3eaeb90c3d01af0e0b44d2ab9d50b43467223b88567dfeb3262db942dc063b9976718ffc1 - languageName: node - linkType: hard - -"debug@npm:2.6.9": - version: 2.6.9 - resolution: "debug@npm:2.6.9" - dependencies: - ms: "npm:2.0.0" - checksum: 10c0/121908fb839f7801180b69a7e218a40b5a0b718813b886b7d6bdb82001b931c938e2941d1e4450f33a1b1df1da653f5f7a0440c197f29fbf8a6e9d45ff6ef589 - languageName: node - linkType: hard - -"debug@npm:^4.0.0, debug@npm:^4.3.1, debug@npm:^4.3.2": - version: 4.4.3 - resolution: "debug@npm:4.4.3" - dependencies: - ms: "npm:^2.1.3" - peerDependenciesMeta: - supports-color: - optional: true - checksum: 10c0/d79136ec6c83ecbefd0f6a5593da6a9c91ec4d7ddc4b54c883d6e71ec9accb5f67a1a5e96d00a328196b5b5c86d365e98d8a3a70856aaf16b4e7b1985e67f5a6 - languageName: node - linkType: hard - -"decode-named-character-reference@npm:^1.0.0": - version: 1.3.0 - resolution: "decode-named-character-reference@npm:1.3.0" - dependencies: - character-entities: "npm:^2.0.0" - checksum: 10c0/787f4c87f3b82ea342aa7c2d7b1882b6fb9511bb77f72ae44dcaabea0470bacd1e9c6a0080ab886545019fa0cb3a7109573fad6b61a362844c3a0ac52b36e4bb - languageName: node - linkType: hard - -"deep-extend@npm:^0.6.0, deep-extend@npm:~0.6.0": - version: 0.6.0 - resolution: "deep-extend@npm:0.6.0" - checksum: 10c0/1c6b0abcdb901e13a44c7d699116d3d4279fdb261983122a3783e7273844d5f2537dc2e1c454a23fcf645917f93fbf8d07101c1d03c015a87faa662755212566 - languageName: node - linkType: hard - -"deep-is@npm:^0.1.3": - version: 0.1.4 - resolution: "deep-is@npm:0.1.4" - checksum: 10c0/7f0ee496e0dff14a573dc6127f14c95061b448b87b995fc96c017ce0a1e66af1675e73f1d6064407975bc4ea6ab679497a29fff7b5b9c4e99cb10797c1ad0b4c - languageName: node - linkType: hard - -"depd@npm:2.0.0, depd@npm:~2.0.0": - version: 2.0.0 - resolution: "depd@npm:2.0.0" - checksum: 10c0/58bd06ec20e19529b06f7ad07ddab60e504d9e0faca4bd23079fac2d279c3594334d736508dc350e06e510aba5e22e4594483b3a6562ce7c17dd797f4cc4ad2c - languageName: node - linkType: hard - -"dequal@npm:^2.0.0": - version: 2.0.3 - resolution: "dequal@npm:2.0.3" - checksum: 10c0/f98860cdf58b64991ae10205137c0e97d384c3a4edc7f807603887b7c4b850af1224a33d88012009f150861cbee4fa2d322c4cc04b9313bee312e47f6ecaa888 - languageName: node - linkType: hard - -"destroy@npm:1.2.0, destroy@npm:~1.2.0": - version: 1.2.0 - resolution: "destroy@npm:1.2.0" - checksum: 10c0/bd7633942f57418f5a3b80d5cb53898127bcf53e24cdf5d5f4396be471417671f0fee48a4ebe9a1e9defbde2a31280011af58a57e090ff822f589b443ed4e643 - languageName: node - linkType: hard - -"detect-libc@npm:^2.0.1": - version: 2.1.2 - resolution: "detect-libc@npm:2.1.2" - checksum: 10c0/acc675c29a5649fa1fb6e255f993b8ee829e510b6b56b0910666949c80c364738833417d0edb5f90e4e46be17228b0f2b66a010513984e18b15deeeac49369c4 - languageName: node - linkType: hard - -"devlop@npm:^1.0.0": - version: 1.1.0 - resolution: "devlop@npm:1.1.0" - dependencies: - dequal: "npm:^2.0.0" - checksum: 10c0/e0928ab8f94c59417a2b8389c45c55ce0a02d9ac7fd74ef62d01ba48060129e1d594501b77de01f3eeafc7cb00773819b0df74d96251cf20b31c5b3071f45c0e - languageName: node - linkType: hard - -"dunder-proto@npm:^1.0.1": - version: 1.0.1 - resolution: "dunder-proto@npm:1.0.1" - dependencies: - call-bind-apply-helpers: "npm:^1.0.1" - es-errors: "npm:^1.3.0" - gopd: "npm:^1.2.0" - checksum: 10c0/199f2a0c1c16593ca0a145dbf76a962f8033ce3129f01284d48c45ed4e14fea9bbacd7b3610b6cdc33486cef20385ac054948fefc6272fcce645c09468f93031 - languageName: node - linkType: hard - -"ecc-universal@workspace:.": - version: 0.0.0-use.local - resolution: "ecc-universal@workspace:." - dependencies: - "@eslint/js": "npm:9.39.2" - "@iarna/toml": "npm:2.2.5" - "@opencode-ai/plugin": "npm:1.19.5" - "@types/node": "npm:26.6.6" - "@x402/core": "npm:2.31.0" - "@x402/evm": "npm:2.31.0" - "@x402/express": "npm:2.31.0" - ajv: "npm:8.20.0" - c8: "npm:11.0.0" - eslint: "npm:10.15.0" - express: "npm:4.22.3" - globals: "npm:17.14.0" - js-yaml: "npm:5.5.0" - markdownlint-cli: "npm:0.50.0" - sql.js: "npm:1.16.0" - typescript: "npm:6.0.3" - zod: "npm:4.6.7" - bin: - ecc: scripts/ecc.js - ecc-control-pane: scripts/control-pane.js - ecc-install: scripts/install-apply.js - ecc-memory-mcp: scripts/memory-mcp.mjs - ecc-plan-canvas: scripts/plan-canvas.js - ecc-universal: scripts/ecc.js - languageName: unknown - linkType: soft - -"ee-first@npm:1.1.1": - version: 1.1.1 - resolution: "ee-first@npm:1.1.1" - checksum: 10c0/b5bb125ee93161bc16bfe6e56c6b04de5ad2aa44234d8f644813cc95d861a6910903132b05093706de2b706599367c4130eb6d170f6b46895686b95f87d017b7 - languageName: node - linkType: hard - -"effect@npm:4.0.0-beta.83": - version: 4.0.0-beta.83 - resolution: "effect@npm:4.0.0-beta.83" - dependencies: - "@standard-schema/spec": "npm:^1.1.0" - fast-check: "npm:^4.8.0" - find-my-way-ts: "npm:^0.1.6" - ini: "npm:^7.0.0" - kubernetes-types: "npm:^1.30.0" - msgpackr: "npm:^2.0.1" - multipasta: "npm:^0.2.7" - toml: "npm:^4.1.1" - uuid: "npm:^14.0.0" - yaml: "npm:^2.9.0" - checksum: 10c0/1eaa03aee6e8bf7190645fc032cb7541aafe2b07ed9de8ebe13525971cd5fcea2d003b327fbed626439458dc619ef5c1371f27f6d1ec52c8acf851ead1237c22 - languageName: node - linkType: hard - -"emoji-regex@npm:^8.0.0": - version: 8.0.0 - resolution: "emoji-regex@npm:8.0.0" - checksum: 10c0/b6053ad39951c4cf338f9092d7bfba448cdfd46fe6a2a034700b149ac9ffbc137e361cbd3c442297f86bed2e5f7576c1b54cc0a6bf8ef5106cc62f496af35010 - languageName: node - linkType: hard - -"encodeurl@npm:~2.0.0": - version: 2.0.1 - resolution: "encodeurl@npm:2.0.1" - checksum: 10c0/b592ab79be68b052e8364dbc0f7faf71ed5a64ff6d8771cda7004dbea8dc4084de9c314b21220dc2566f5f1373e280e0b72c297b535177db3c0753620f1059ca - languageName: node - linkType: hard - -"entities@npm:^4.5.0": - version: 4.5.0 - resolution: "entities@npm:4.5.0" - checksum: 10c0/5b039739f7621f5d1ad996715e53d964035f75ad3b9a4d38c6b3804bb226e282ffeae2443624d8fdd9c47d8e926ae9ac009c54671243f0c3294c26af7cc85250 - languageName: node - linkType: hard - -"env-paths@npm:^2.2.0": - version: 2.2.1 - resolution: "env-paths@npm:2.2.1" - checksum: 10c0/285325677bf00e30845e330eec32894f5105529db97496ee3f598478e50f008c5352a41a30e5e72ec9de8a542b5a570b85699cd63bd2bc646dbcb9f311d83bc4 - languageName: node - linkType: hard - -"es-define-property@npm:^1.0.1": - version: 1.0.1 - resolution: "es-define-property@npm:1.0.1" - checksum: 10c0/3f54eb49c16c18707949ff25a1456728c883e81259f045003499efba399c08bad00deebf65cccde8c0e07908c1a225c9d472b7107e558f2a48e28d530e34527c - languageName: node - linkType: hard - -"es-errors@npm:^1.3.0": - version: 1.3.0 - resolution: "es-errors@npm:1.3.0" - checksum: 10c0/0a61325670072f98d8ae3b914edab3559b6caa980f08054a3b872052640d91da01d38df55df797fcc916389d77fc92b8d5906cf028f4db46d7e3003abecbca85 - languageName: node - linkType: hard - -"es-object-atoms@npm:^1.0.0, es-object-atoms@npm:^1.1.1": - version: 1.1.2 - resolution: "es-object-atoms@npm:1.1.2" - dependencies: - es-errors: "npm:^1.3.0" - checksum: 10c0/1772861f094f739d6f41b579cfb9a18579daffeb434552a370a5fbef50a32d22227e27b63fdbb757b7ddd429d1b42fe52ccae7966d9302a2ec221b6f1b41bbc4 - languageName: node - linkType: hard - -"escalade@npm:^3.1.1": - version: 3.2.0 - resolution: "escalade@npm:3.2.0" - checksum: 10c0/ced4dd3a78e15897ed3be74e635110bbf3b08877b0a41be50dcb325ee0e0b5f65fc2d50e9845194d7c4633f327e2e1c6cce00a71b617c5673df0374201d67f65 - languageName: node - linkType: hard - -"escape-html@npm:~1.0.3": - version: 1.0.3 - resolution: "escape-html@npm:1.0.3" - checksum: 10c0/524c739d776b36c3d29fa08a22e03e8824e3b2fd57500e5e44ecf3cc4707c34c60f9ca0781c0e33d191f2991161504c295e98f68c78fe7baa6e57081ec6ac0a3 - languageName: node - linkType: hard - -"escape-string-regexp@npm:^4.0.0": - version: 4.0.0 - resolution: "escape-string-regexp@npm:4.0.0" - checksum: 10c0/9497d4dd307d845bd7f75180d8188bb17ea8c151c1edbf6b6717c100e104d629dc2dfb687686181b0f4b7d732c7dfdc4d5e7a8ff72de1b0ca283a75bbb3a9cd9 - languageName: node - linkType: hard - -"eslint-scope@npm:^9.1.2": - version: 9.1.2 - resolution: "eslint-scope@npm:9.1.2" - dependencies: - "@types/esrecurse": "npm:^4.3.1" - "@types/estree": "npm:^1.0.8" - esrecurse: "npm:^4.3.0" - estraverse: "npm:^5.2.0" - checksum: 10c0/9fb8bca5a73e5741efb6cec84467027b6cb6f4203ff9b43a938e272c5cd30800bde46a5c20dfd1609f840225f0b62b7673be391b20acadf8658ca9fa4729b3dd - languageName: node - linkType: hard - -"eslint-visitor-keys@npm:^3.4.3": - version: 3.4.3 - resolution: "eslint-visitor-keys@npm:3.4.3" - checksum: 10c0/92708e882c0a5ffd88c23c0b404ac1628cf20104a108c745f240a13c332a11aac54f49a22d5762efbffc18ecbc9a580d1b7ad034bf5f3cc3307e5cbff2ec9820 - languageName: node - linkType: hard - -"eslint-visitor-keys@npm:^5.0.1": - version: 5.0.1 - resolution: "eslint-visitor-keys@npm:5.0.1" - checksum: 10c0/16190bdf2cbae40a1109384c94450c526a79b0b9c3cb21e544256ed85ac48a4b84db66b74a6561d20fe6ab77447f150d711c2ad5ad74df4fcc133736bce99678 - languageName: node - linkType: hard - -"eslint@npm:10.15.0": - version: 10.15.0 - resolution: "eslint@npm:10.15.0" - dependencies: - "@eslint-community/eslint-utils": "npm:^4.8.0" - "@eslint-community/regexpp": "npm:^4.12.2" - "@eslint/config-array": "npm:^0.23.6" - "@eslint/config-helpers": "npm:^0.7.0" - "@eslint/core": "npm:^1.2.1" - "@eslint/plugin-kit": "npm:^0.7.3" - "@humanfs/node": "npm:^0.16.8" - "@humanwhocodes/module-importer": "npm:^1.0.1" - "@humanwhocodes/retry": "npm:^0.4.2" - "@types/estree": "npm:^1.0.6" - ajv: "npm:^6.14.0" - cross-spawn: "npm:^7.0.6" - debug: "npm:^4.3.2" - escape-string-regexp: "npm:^4.0.0" - eslint-scope: "npm:^9.1.2" - eslint-visitor-keys: "npm:^5.0.1" - espree: "npm:^11.2.0" - esquery: "npm:^1.7.0" - esutils: "npm:^2.0.2" - fast-deep-equal: "npm:^3.1.3" - file-entry-cache: "npm:11.1.5 || >11.1.6 <12" - find-up: "npm:^5.0.0" - glob-parent: "npm:^6.0.2" - ignore: "npm:^5.2.0" - imurmurhash: "npm:^0.1.4" - is-glob: "npm:^4.0.0" - json-stable-stringify-without-jsonify: "npm:^1.0.1" - minimatch: "npm:^11.0.5" - natural-compare: "npm:^1.4.0" - optionator: "npm:^0.9.3" - peerDependencies: - jiti: "*" - peerDependenciesMeta: - jiti: - optional: true - bin: - eslint: bin/eslint.js - checksum: 10c0/81775d3bc273007b3b6f08d114f57b0c83527e8ebbb89674726bbd29b66883a6fef016a0271e05014a067d1c1079514c5523df96b86740fdfe65ef56abacb030 - languageName: node - linkType: hard - -"espree@npm:^11.2.0": - version: 11.2.0 - resolution: "espree@npm:11.2.0" - dependencies: - acorn: "npm:^8.16.0" - acorn-jsx: "npm:^5.3.2" - eslint-visitor-keys: "npm:^5.0.1" - checksum: 10c0/cf87e18ffd9dc113eb8d16588e7757701bc10c9934a71cce8b89c2611d51672681a918307bd6b19ac3ccd0e7ba1cbccc2f815b36b52fa7e73097b251014c3d81 - languageName: node - linkType: hard - -"esquery@npm:^1.7.0": - version: 1.7.0 - resolution: "esquery@npm:1.7.0" - dependencies: - estraverse: "npm:^5.1.0" - checksum: 10c0/77d5173db450b66f3bc685d11af4c90cffeedb340f34a39af96d43509a335ce39c894fd79233df32d38f5e4e219fa0f7076f6ec90bae8320170ba082c0db4793 - languageName: node - linkType: hard - -"esrecurse@npm:^4.3.0": - version: 4.3.0 - resolution: "esrecurse@npm:4.3.0" - dependencies: - estraverse: "npm:^5.2.0" - checksum: 10c0/81a37116d1408ded88ada45b9fb16dbd26fba3aadc369ce50fcaf82a0bac12772ebd7b24cd7b91fc66786bf2c1ac7b5f196bc990a473efff972f5cb338877cf5 - languageName: node - linkType: hard - -"estraverse@npm:^5.1.0, estraverse@npm:^5.2.0": - version: 5.3.0 - resolution: "estraverse@npm:5.3.0" - checksum: 10c0/1ff9447b96263dec95d6d67431c5e0771eb9776427421260a3e2f0fdd5d6bd4f8e37a7338f5ad2880c9f143450c9b1e4fc2069060724570a49cf9cf0312bd107 - languageName: node - linkType: hard - -"esutils@npm:^2.0.2": - version: 2.0.3 - resolution: "esutils@npm:2.0.3" - checksum: 10c0/9a2fe69a41bfdade834ba7c42de4723c97ec776e40656919c62cbd13607c45e127a003f05f724a1ea55e5029a4cf2de444b13009f2af71271e42d93a637137c7 - languageName: node - linkType: hard - -"etag@npm:~1.8.1": - version: 1.8.1 - resolution: "etag@npm:1.8.1" - checksum: 10c0/12be11ef62fb9817314d790089a0a49fae4e1b50594135dcb8076312b7d7e470884b5100d249b28c18581b7fd52f8b485689ffae22a11ed9ec17377a33a08f84 - languageName: node - linkType: hard - -"eventemitter3@npm:5.0.1": - version: 5.0.1 - resolution: "eventemitter3@npm:5.0.1" - checksum: 10c0/4ba5c00c506e6c786b4d6262cfbce90ddc14c10d4667e5c83ae993c9de88aa856033994dd2b35b83e8dc1170e224e66a319fa80adc4c32adcd2379bbc75da814 - languageName: node - linkType: hard - -"exponential-backoff@npm:^3.1.1": - version: 3.1.3 - resolution: "exponential-backoff@npm:3.1.3" - checksum: 10c0/77e3ae682b7b1f4972f563c6dbcd2b0d54ac679e62d5d32f3e5085feba20483cf28bd505543f520e287a56d4d55a28d7874299941faf637e779a1aa5994d1267 - languageName: node - linkType: hard - -"express@npm:4.22.3": - version: 4.22.3 - resolution: "express@npm:4.22.3" - dependencies: - accepts: "npm:~1.3.8" - array-flatten: "npm:1.1.1" - body-parser: "npm:~1.20.5" - content-disposition: "npm:~0.5.4" - content-type: "npm:~1.0.4" - cookie: "npm:~0.7.1" - cookie-signature: "npm:~1.0.6" - debug: "npm:2.6.9" - depd: "npm:2.0.0" - encodeurl: "npm:~2.0.0" - escape-html: "npm:~1.0.3" - etag: "npm:~1.8.1" - finalhandler: "npm:~1.3.1" - fresh: "npm:~0.5.2" - http-errors: "npm:~2.0.0" - merge-descriptors: "npm:1.0.3" - methods: "npm:~1.1.2" - on-finished: "npm:~2.4.1" - parseurl: "npm:~1.3.3" - path-to-regexp: "npm:~0.1.13" - proxy-addr: "npm:~2.0.7" - qs: "npm:~6.16.0" - range-parser: "npm:~1.2.1" - safe-buffer: "npm:5.2.1" - send: "npm:~0.19.0" - serve-static: "npm:~1.16.2" - setprototypeof: "npm:1.2.0" - statuses: "npm:~2.0.1" - type-is: "npm:~1.6.18" - utils-merge: "npm:1.0.1" - vary: "npm:~1.1.2" - checksum: 10c0/6345a6d460d94afbab42608ea7c13d633b9f4b08df7074869ee1ef493f6a46102437bd32290635f7040858f24de5f0992f541723478d5f3fbc6428e9446cb8ea - languageName: node - linkType: hard - -"fast-check@npm:^4.8.0": - version: 4.10.2 - resolution: "fast-check@npm:4.10.2" - dependencies: - pure-rand: "npm:^8.0.0" - checksum: 10c0/ee9329018cc98d7fb3d7e5c944c4c667796b37133cd96aeb8dd1aeba901cf8561c2cc1355ffd54e1a16d262170a04bcfdc335da2e865294166e7bb8d97313f7d - languageName: node - linkType: hard - -"fast-deep-equal@npm:^3.1.1, fast-deep-equal@npm:^3.1.3": - version: 3.1.3 - resolution: "fast-deep-equal@npm:3.1.3" - checksum: 10c0/40dedc862eb8992c54579c66d914635afbec43350afbbe991235fdcb4e3a8d5af1b23ae7e79bef7d4882d0ecee06c3197488026998fb19f72dc95acff1d1b1d0 - languageName: node - linkType: hard - -"fast-json-stable-stringify@npm:^2.0.0": - version: 2.1.0 - resolution: "fast-json-stable-stringify@npm:2.1.0" - checksum: 10c0/7f081eb0b8a64e0057b3bb03f974b3ef00135fbf36c1c710895cd9300f13c94ba809bb3a81cf4e1b03f6e5285610a61abbd7602d0652de423144dfee5a389c9b - languageName: node - linkType: hard - -"fast-levenshtein@npm:^2.0.6": - version: 2.0.6 - resolution: "fast-levenshtein@npm:2.0.6" - checksum: 10c0/111972b37338bcb88f7d9e2c5907862c280ebf4234433b95bc611e518d192ccb2d38119c4ac86e26b668d75f7f3894f4ff5c4982899afced7ca78633b08287c4 - languageName: node - linkType: hard - -"fast-uri@npm:3.1.9": - version: 3.1.9 - resolution: "fast-uri@npm:3.1.9" - checksum: 10c0/052757540d8c0bbc16bb124a45b8f5cb5d0932f9b89f019221ee41cdb3cafc1db44b2e809d6b888b87922af3e5560a863124454e9d9193e1fc955887357b5add - languageName: node - linkType: hard - -"fdir@npm:^6.5.0": - version: 6.5.0 - resolution: "fdir@npm:6.5.0" - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - checksum: 10c0/e345083c4306b3aed6cb8ec551e26c36bab5c511e99ea4576a16750ddc8d3240e63826cc624f5ae17ad4dc82e68a253213b60d556c11bfad064b7607847ed07f - languageName: node - linkType: hard - -"file-entry-cache@npm:11.1.5 || >11.1.6 <12": - version: 11.1.5 - resolution: "file-entry-cache@npm:11.1.5" - dependencies: - flat-cache: "npm:^6.1.23" - checksum: 10c0/d05eca8794b27824d79a0f1a0bc76b81ca7232b6c9634bc086f365a6d9ddac749c4826b2b2d36bb7ef9ed84fdf0097f34979527daeb9255b4f17673a4ae50fc5 - languageName: node - linkType: hard - -"finalhandler@npm:~1.3.1": - version: 1.3.2 - resolution: "finalhandler@npm:1.3.2" - dependencies: - debug: "npm:2.6.9" - encodeurl: "npm:~2.0.0" - escape-html: "npm:~1.0.3" - on-finished: "npm:~2.4.1" - parseurl: "npm:~1.3.3" - statuses: "npm:~2.0.2" - unpipe: "npm:~1.0.0" - checksum: 10c0/435a4fd65e4e4e4c71bb5474980090b73c353a123dd415583f67836bdd6516e528cf07298e219a82b94631dee7830eae5eece38d3c178073cf7df4e8c182f413 - languageName: node - linkType: hard - -"find-my-way-ts@npm:^0.1.6": - version: 0.1.6 - resolution: "find-my-way-ts@npm:0.1.6" - checksum: 10c0/16ad4b15275b56ee0ec361d0c61afbdff4c75bd0ac04112f6910f188cb1058096ba63529c2363914da6bb60266aa4def1025af04af26368ff87eb0df52f2862f - languageName: node - linkType: hard - -"find-up@npm:^5.0.0": - version: 5.0.0 - resolution: "find-up@npm:5.0.0" - dependencies: - locate-path: "npm:^6.0.0" - path-exists: "npm:^4.0.0" - checksum: 10c0/062c5a83a9c02f53cdd6d175a37ecf8f87ea5bbff1fdfb828f04bfa021441bc7583e8ebc0872a4c1baab96221fb8a8a275a19809fb93fbc40bd69ec35634069a - languageName: node - linkType: hard - -"flat-cache@npm:^6.1.23": - version: 6.1.23 - resolution: "flat-cache@npm:6.1.23" - dependencies: - cacheable: "npm:^2.5.0" - flatted: "npm:^3.4.2" - hookified: "npm:^1.15.0" - checksum: 10c0/c757c24f51334e1917958cd9d62d4ed3d520a3815d5a1ec50d993ac3a93fa81b6de7e28264231914bb0d990babd426e4d713d3e2f3d782dae65c42a2ded1e651 - languageName: node - linkType: hard - -"flatted@npm:^3.4.2": - version: 3.4.4 - resolution: "flatted@npm:3.4.4" - checksum: 10c0/a3a52a88ea5a4c333e5a1f097dcd87a037fa31c236a77cf46222c2aa4036ef895ab9bc76138a66d9dc22bdb3652128f9598cd26e7439561bf19f67276e2bc37e - languageName: node - linkType: hard - -"foreground-child@npm:^3.1.1": - version: 3.3.1 - resolution: "foreground-child@npm:3.3.1" - dependencies: - cross-spawn: "npm:^7.0.6" - signal-exit: "npm:^4.0.1" - checksum: 10c0/8986e4af2430896e65bc2788d6679067294d6aee9545daefc84923a0a4b399ad9c7a3ea7bd8c0b2b80fdf4a92de4c69df3f628233ff3224260e9c1541a9e9ed3 - languageName: node - linkType: hard - -"forwarded@npm:0.2.0": - version: 0.2.0 - resolution: "forwarded@npm:0.2.0" - checksum: 10c0/9b67c3fac86acdbc9ae47ba1ddd5f2f81526fa4c8226863ede5600a3f7c7416ef451f6f1e240a3cc32d0fd79fcfe6beb08fd0da454f360032bde70bf80afbb33 - languageName: node - linkType: hard - -"fresh@npm:~0.5.2": - version: 0.5.2 - resolution: "fresh@npm:0.5.2" - checksum: 10c0/c6d27f3ed86cc5b601404822f31c900dd165ba63fff8152a3ef714e2012e7535027063bc67ded4cb5b3a49fa596495d46cacd9f47d6328459cf570f08b7d9e5a - languageName: node - linkType: hard - -"function-bind@npm:^1.1.2": - version: 1.1.2 - resolution: "function-bind@npm:1.1.2" - checksum: 10c0/d8680ee1e5fcd4c197e4ac33b2b4dce03c71f4d91717292785703db200f5c21f977c568d28061226f9b5900cbcd2c84463646134fd5337e7925e0942bc3f46d5 - languageName: node - linkType: hard - -"get-caller-file@npm:^2.0.5": - version: 2.0.5 - resolution: "get-caller-file@npm:2.0.5" - checksum: 10c0/c6c7b60271931fa752aeb92f2b47e355eac1af3a2673f47c9589e8f8a41adc74d45551c1bc57b5e66a80609f10ffb72b6f575e4370d61cc3f7f3aaff01757cde - languageName: node - linkType: hard - -"get-east-asian-width@npm:^1.5.0": - version: 1.6.0 - resolution: "get-east-asian-width@npm:1.6.0" - checksum: 10c0/7e72e9550fd49ca5b246f9af6bb2afc129c96412845ff6556b3274fd44817a381702ca17028efe9866b261a3d44254cbf21e6c90cf05b4b61675630af776d431 - languageName: node - linkType: hard - -"get-intrinsic@npm:^1.2.5, get-intrinsic@npm:^1.3.0": - version: 1.3.0 - resolution: "get-intrinsic@npm:1.3.0" - dependencies: - call-bind-apply-helpers: "npm:^1.0.2" - es-define-property: "npm:^1.0.1" - es-errors: "npm:^1.3.0" - es-object-atoms: "npm:^1.1.1" - function-bind: "npm:^1.1.2" - get-proto: "npm:^1.0.1" - gopd: "npm:^1.2.0" - has-symbols: "npm:^1.1.0" - hasown: "npm:^2.0.2" - math-intrinsics: "npm:^1.1.0" - checksum: 10c0/52c81808af9a8130f581e6a6a83e1ba4a9f703359e7a438d1369a5267a25412322f03dcbd7c549edaef0b6214a0630a28511d7df0130c93cfd380f4fa0b5b66a - languageName: node - linkType: hard - -"get-proto@npm:^1.0.1": - version: 1.0.1 - resolution: "get-proto@npm:1.0.1" - dependencies: - dunder-proto: "npm:^1.0.1" - es-object-atoms: "npm:^1.0.0" - checksum: 10c0/9224acb44603c5526955e83510b9da41baf6ae73f7398875fba50edc5e944223a89c4a72b070fcd78beb5f7bdda58ecb6294adc28f7acfc0da05f76a2399643c - languageName: node - linkType: hard - -"glob-parent@npm:^6.0.2": - version: 6.0.2 - resolution: "glob-parent@npm:6.0.2" - dependencies: - is-glob: "npm:^4.0.3" - checksum: 10c0/317034d88654730230b3f43bb7ad4f7c90257a426e872ea0bf157473ac61c99bf5d205fad8f0185f989be8d2fa6d3c7dce1645d99d545b6ea9089c39f838e7f8 - languageName: node - linkType: hard - -"glob@npm:14.0.3": - version: 14.0.3 - resolution: "glob@npm:14.0.3" - dependencies: - minimatch: "npm:^11.0.2" - minipass: "npm:^7.1.3" - path-scurry: "npm:^3.0.0" - checksum: 10c0/762d4b6e2dc3648e7dbc7f7aa4264fe62cce85014d004c0d0690f9e64471d898ba828c69d2dcd449ac949908fdf02934a9d2c51e444a84171a8f4158a42ef496 - languageName: node - linkType: hard - -"globals@npm:17.14.0": - version: 17.14.0 - resolution: "globals@npm:17.14.0" - checksum: 10c0/422d17c24e87170d4aa566b97a53339ae451c2f4d78512594a7ca951cdb939bc4a85c10071e6dcf77ca63de48713a77f2e71eb9214e44880233dff2090e92731 - languageName: node - linkType: hard - -"gopd@npm:^1.2.0": - version: 1.2.0 - resolution: "gopd@npm:1.2.0" - checksum: 10c0/50fff1e04ba2b7737c097358534eacadad1e68d24cccee3272e04e007bed008e68d2614f3987788428fd192a5ae3889d08fb2331417e4fc4a9ab366b2043cead - languageName: node - linkType: hard - -"graceful-fs@npm:^4.2.6": - version: 4.2.12 - resolution: "graceful-fs@npm:4.2.12" - checksum: 10c0/a4e2ccd9fe7ed384ed0d466363028978c1b1537f0719db826dfa6a850abd8fc418596f14d9a9609f830ba8137df3da1acc1132a6afd635d8633fbe53530c3e6d - languageName: node - linkType: hard - -"has-flag@npm:^4.0.0": - version: 4.0.0 - resolution: "has-flag@npm:4.0.0" - checksum: 10c0/2e789c61b7888d66993e14e8331449e525ef42aac53c627cc53d1c3334e768bcb6abdc4f5f0de1478a25beec6f0bd62c7549058b7ac53e924040d4f301f02fd1 - languageName: node - linkType: hard - -"has-symbols@npm:^1.1.0": - version: 1.1.0 - resolution: "has-symbols@npm:1.1.0" - checksum: 10c0/dde0a734b17ae51e84b10986e651c664379018d10b91b6b0e9b293eddb32f0f069688c841fb40f19e9611546130153e0a2a48fd7f512891fb000ddfa36f5a20e - languageName: node - linkType: hard - -"hashery@npm:^1.4.0, hashery@npm:^1.5.1": - version: 1.5.1 - resolution: "hashery@npm:1.5.1" - dependencies: - hookified: "npm:^1.15.0" - checksum: 10c0/ab4225b655a7b0d05df99b1a59d5b3a51fe433f82422ca25e6f3f4c4ddd30adb49ebd38e0047ef9bded93319c1e9fc857e16aa382e554929c871cb77d39fc463 - languageName: node - linkType: hard - -"hasown@npm:^2.0.2": - version: 2.0.4 - resolution: "hasown@npm:2.0.4" - dependencies: - function-bind: "npm:^1.1.2" - checksum: 10c0/2d8de939e270b70618f8cebb69746620db10617dbb495bc66ddad326955ea24d3ca4af133aff3eb7c1853e0218f867bc2b050ec26fe02e3aea58f880ffc5e506 - languageName: node - linkType: hard - -"hookified@npm:^1.15.0, hookified@npm:^1.15.1": - version: 1.15.1 - resolution: "hookified@npm:1.15.1" - checksum: 10c0/6b691374fa97ae57169fb29f90e723499fda5e85494654fbe55c4768b3ccbf3e14c0adc8d0f365f32c503b60d7c06f907781f5966c03d41c423575eb5e16860c - languageName: node - linkType: hard - -"hookified@npm:^2.1.1": - version: 2.2.0 - resolution: "hookified@npm:2.2.0" - checksum: 10c0/7017d2b66945490293a5aba239e7b39f39071dd940fa019348c7ffea92b91b8c267853c4c51680ed0f3687b33352582fa4d2cff6dd4c5a1c5c44b037276f07aa - languageName: node - linkType: hard - -"html-escaper@npm:^2.0.0": - version: 2.0.2 - resolution: "html-escaper@npm:2.0.2" - checksum: 10c0/208e8a12de1a6569edbb14544f4567e6ce8ecc30b9394fcaa4e7bb1e60c12a7c9a1ed27e31290817157e8626f3a4f29e76c8747030822eb84a6abb15c255f0a0 - languageName: node - linkType: hard - -"http-errors@npm:~2.0.0, http-errors@npm:~2.0.1": - version: 2.0.1 - resolution: "http-errors@npm:2.0.1" - dependencies: - depd: "npm:~2.0.0" - inherits: "npm:~2.0.4" - setprototypeof: "npm:~1.2.0" - statuses: "npm:~2.0.2" - toidentifier: "npm:~1.0.1" - checksum: 10c0/fb38906cef4f5c83952d97661fe14dc156cb59fe54812a42cd448fa57b5c5dfcb38a40a916957737bd6b87aab257c0648d63eb5b6a9ca9f548e105b6072712d4 - languageName: node - linkType: hard - -"iconv-lite@npm:~0.4.24": - version: 0.4.24 - resolution: "iconv-lite@npm:0.4.24" - dependencies: - safer-buffer: "npm:>= 2.1.2 < 3" - checksum: 10c0/c6886a24cc00f2a059767440ec1bc00d334a89f250db8e0f7feb4961c8727118457e27c495ba94d082e51d3baca378726cd110aaf7ded8b9bbfd6a44760cf1d4 - languageName: node - linkType: hard - -"ignore@npm:^5.2.0": - version: 5.3.2 - resolution: "ignore@npm:5.3.2" - checksum: 10c0/f9f652c957983634ded1e7f02da3b559a0d4cc210fca3792cb67f1b153623c9c42efdc1c4121af171e295444459fc4a9201101fb041b1104a3c000bccb188337 - languageName: node - linkType: hard - -"ignore@npm:~7.0.13": - version: 7.0.14 - resolution: "ignore@npm:7.0.14" - checksum: 10c0/9845d63a5fd29c738b7b94bef4a304c0812453b5360f5edc0859c1428902058753dffeed0e17b9e88bf529815803ec2d31eefa9bdaea8f32154128143fae2ea9 - languageName: node - linkType: hard - -"imurmurhash@npm:^0.1.4": - version: 0.1.4 - resolution: "imurmurhash@npm:0.1.4" - checksum: 10c0/8b51313850dd33605c6c9d3fd9638b714f4c4c40250cff658209f30d40da60f78992fb2df5dabee4acf589a6a82bbc79ad5486550754bd9ec4e3fc0d4a57d6a6 - languageName: node - linkType: hard - -"inherits@npm:~2.0.4": - version: 2.0.4 - resolution: "inherits@npm:2.0.4" - checksum: 10c0/4e531f648b29039fb7426fb94075e6545faa1eb9fe83c29f0b6d9e7263aceb4289d2d4557db0d428188eeb449cc7c5e77b0a0b2c4e248ff2a65933a0dee49ef2 - languageName: node - linkType: hard - -"ini@npm:^7.0.0, ini@npm:~7.0.0": - version: 7.0.0 - resolution: "ini@npm:7.0.0" - checksum: 10c0/7520cae38bd5587e1cbca4637bb5fc0e157f38e0816522756456010ef703772d0018f9f4987cb9977bf3b10c1feccaad7800744dd1f5d85fb435e58a1baa9754 - languageName: node - linkType: hard - -"ipaddr.js@npm:1.9.1": - version: 1.9.1 - resolution: "ipaddr.js@npm:1.9.1" - checksum: 10c0/0486e775047971d3fdb5fb4f063829bac45af299ae0b82dcf3afa2145338e08290563a2a70f34b732d795ecc8311902e541a8530eeb30d75860a78ff4e94ce2a - languageName: node - linkType: hard - -"is-alphabetical@npm:^2.0.0": - version: 2.0.1 - resolution: "is-alphabetical@npm:2.0.1" - checksum: 10c0/932367456f17237533fd1fc9fe179df77957271020b83ea31da50e5cc472d35ef6b5fb8147453274ffd251134472ce24eb6f8d8398d96dee98237cdb81a6c9a7 - languageName: node - linkType: hard - -"is-alphanumerical@npm:^2.0.0": - version: 2.0.1 - resolution: "is-alphanumerical@npm:2.0.1" - dependencies: - is-alphabetical: "npm:^2.0.0" - is-decimal: "npm:^2.0.0" - checksum: 10c0/4b35c42b18e40d41378293f82a3ecd9de77049b476f748db5697c297f686e1e05b072a6aaae2d16f54d2a57f85b00cbbe755c75f6d583d1c77d6657bd0feb5a2 - languageName: node - linkType: hard - -"is-decimal@npm:^2.0.0": - version: 2.0.1 - resolution: "is-decimal@npm:2.0.1" - checksum: 10c0/8085dd66f7d82f9de818fba48b9e9c0429cb4291824e6c5f2622e96b9680b54a07a624cfc663b24148b8e853c62a1c987cfe8b0b5a13f5156991afaf6736e334 - languageName: node - linkType: hard - -"is-extglob@npm:^2.1.1": - version: 2.1.1 - resolution: "is-extglob@npm:2.1.1" - checksum: 10c0/5487da35691fbc339700bbb2730430b07777a3c21b9ebaecb3072512dfd7b4ba78ac2381a87e8d78d20ea08affb3f1971b4af629173a6bf435ff8a4c47747912 - languageName: node - linkType: hard - -"is-fullwidth-code-point@npm:^3.0.0": - version: 3.0.0 - resolution: "is-fullwidth-code-point@npm:3.0.0" - checksum: 10c0/bb11d825e049f38e04c06373a8d72782eee0205bda9d908cc550ccb3c59b99d750ff9537982e01733c1c94a58e35400661f57042158ff5e8f3e90cf936daf0fc - languageName: node - linkType: hard - -"is-glob@npm:^4.0.0, is-glob@npm:^4.0.3": - version: 4.0.3 - resolution: "is-glob@npm:4.0.3" - dependencies: - is-extglob: "npm:^2.1.1" - checksum: 10c0/17fb4014e22be3bbecea9b2e3a76e9e34ff645466be702f1693e8f1ee1adac84710d0be0bd9f967d6354036fd51ab7c2741d954d6e91dae6bb69714de92c197a - languageName: node - linkType: hard - -"is-hexadecimal@npm:^2.0.0": - version: 2.0.1 - resolution: "is-hexadecimal@npm:2.0.1" - checksum: 10c0/3eb60fe2f1e2bbc760b927dcad4d51eaa0c60138cf7fc671803f66353ad90c301605b502c7ea4c6bb0548e1c7e79dfd37b73b632652e3b76030bba603a7e9626 - languageName: node - linkType: hard - -"isexe@npm:^2.0.0": - version: 2.0.0 - resolution: "isexe@npm:2.0.0" - checksum: 10c0/228cfa503fadc2c31596ab06ed6aa82c9976eec2bfd83397e7eaf06d0ccf42cd1dfd6743bf9aeb01aebd4156d009994c5f76ea898d2832c1fe342da923ca457d - languageName: node - linkType: hard - -"isexe@npm:^4.0.0": - version: 4.0.0 - resolution: "isexe@npm:4.0.0" - checksum: 10c0/5884815115bceac452877659a9c7726382531592f43dc29e5d48b7c4100661aed54018cb90bd36cb2eaeba521092570769167acbb95c18d39afdccbcca06c5ce - languageName: node - linkType: hard - -"isows@npm:1.0.7": - version: 1.0.7 - resolution: "isows@npm:1.0.7" - peerDependencies: - ws: "*" - checksum: 10c0/43c41fe89c7c07258d0be3825f87e12da8ac9023c5b5ae6741ec00b2b8169675c04331ea73ef8c172d37a6747066f4dc93947b17cd369f92828a3b3e741afbda - languageName: node - linkType: hard - -"istanbul-lib-coverage@npm:^3.0.0, istanbul-lib-coverage@npm:^3.2.0": - version: 3.2.2 - resolution: "istanbul-lib-coverage@npm:3.2.2" - checksum: 10c0/6c7ff2106769e5f592ded1fb418f9f73b4411fd5a084387a5410538332b6567cd1763ff6b6cadca9b9eb2c443cce2f7ea7d7f1b8d315f9ce58539793b1e0922b - languageName: node - linkType: hard - -"istanbul-lib-report@npm:^3.0.0, istanbul-lib-report@npm:^3.0.1": - version: 3.0.1 - resolution: "istanbul-lib-report@npm:3.0.1" - dependencies: - istanbul-lib-coverage: "npm:^3.0.0" - make-dir: "npm:^4.0.0" - supports-color: "npm:^7.1.0" - checksum: 10c0/84323afb14392de8b6a5714bd7e9af845cfbd56cfe71ed276cda2f5f1201aea673c7111901227ee33e68e4364e288d73861eb2ed48f6679d1e69a43b6d9b3ba7 - languageName: node - linkType: hard - -"istanbul-reports@npm:^3.1.6": - version: 3.2.0 - resolution: "istanbul-reports@npm:3.2.0" - dependencies: - html-escaper: "npm:^2.0.0" - istanbul-lib-report: "npm:^3.0.0" - checksum: 10c0/d596317cfd9c22e1394f22a8d8ba0303d2074fe2e971887b32d870e4b33f8464b10f8ccbe6847808f7db485f084eba09e6c2ed706b3a978e4b52f07085b8f9bc - languageName: node - linkType: hard - -"jose@npm:^5.9.6": - version: 5.10.0 - resolution: "jose@npm:5.10.0" - checksum: 10c0/e20d9fc58d7e402f2e5f04e824b8897d5579aae60e64cb88ebdea1395311c24537bf4892f7de413fab1acf11e922797fb1b42269bc8fc65089a3749265ccb7b0 - languageName: node - linkType: hard - -"js-yaml@npm:5.5.0": - version: 5.5.0 - resolution: "js-yaml@npm:5.5.0" - dependencies: - argparse: "npm:^3.0.3" - bin: - js-yaml: bin/js-yaml.mjs - checksum: 10c0/311619f44dd788657e9b81d4b5c60ff367441f364045e3796bc604a41f25819852748fb173ae82f2553d53cb609d7fdb79e0a74148892cb2c085eebe91839b53 - languageName: node - linkType: hard - -"json-schema-traverse@npm:^0.4.1": - version: 0.4.1 - resolution: "json-schema-traverse@npm:0.4.1" - checksum: 10c0/108fa90d4cc6f08243aedc6da16c408daf81793bf903e9fd5ab21983cda433d5d2da49e40711da016289465ec2e62e0324dcdfbc06275a607fe3233fde4942ce - languageName: node - linkType: hard - -"json-schema-traverse@npm:^1.0.0": - version: 1.0.0 - resolution: "json-schema-traverse@npm:1.0.0" - checksum: 10c0/71e30015d7f3d6dc1c316d6298047c8ef98a06d31ad064919976583eb61e1018a60a0067338f0f79cabc00d84af3fcc489bd48ce8a46ea165d9541ba17fb30c6 - languageName: node - linkType: hard - -"json-schema@npm:^0.4.0": - version: 0.4.0 - resolution: "json-schema@npm:0.4.0" - checksum: 10c0/d4a637ec1d83544857c1c163232f3da46912e971d5bf054ba44fdb88f07d8d359a462b4aec46f2745efbc57053365608d88bc1d7b1729f7b4fc3369765639ed3 - languageName: node - linkType: hard - -"json-stable-stringify-without-jsonify@npm:^1.0.1": - version: 1.0.1 - resolution: "json-stable-stringify-without-jsonify@npm:1.0.1" - checksum: 10c0/cb168b61fd4de83e58d09aaa6425ef71001bae30d260e2c57e7d09a5fd82223e2f22a042dedaab8db23b7d9ae46854b08bb1f91675a8be11c5cffebef5fb66a5 - languageName: node - linkType: hard - -"jsonc-parser@npm:~3.3.1": - version: 3.3.1 - resolution: "jsonc-parser@npm:3.3.1" - checksum: 10c0/269c3ae0a0e4f907a914bf334306c384aabb9929bd8c99f909275ebd5c2d3bc70b9bcd119ad794f339dec9f24b6a4ee9cd5a8ab2e6435e730ad4075388fc2ab6 - languageName: node - linkType: hard - -"jsonpointer@npm:~5.0.1": - version: 5.0.1 - resolution: "jsonpointer@npm:5.0.1" - checksum: 10c0/89929e58b400fcb96928c0504fcf4fc3f919d81e9543ceb055df125538470ee25290bb4984251e172e6ef8fcc55761eb998c118da763a82051ad89d4cb073fe7 - languageName: node - linkType: hard - -"katex@npm:0.18.2": - version: 0.18.2 - resolution: "katex@npm:0.18.2" - dependencies: - commander: "npm:^8.3.0" - bin: - katex: cli.js - checksum: 10c0/05f0eadc718cbf18d805089cfe7d930f15199b2781087f2055b25f93b0adaad5cfa7c50311366ced324e85f382edae7ed20ba09819ff8eab62b96bba5fe97029 - languageName: node - linkType: hard - -"keyv@npm:^5.6.0": - version: 5.6.0 - resolution: "keyv@npm:5.6.0" - dependencies: - "@keyv/serialize": "npm:^1.1.1" - checksum: 10c0/c3ea795b6e03593ca57c8f70928a69bad14c13389a7fb75649a115ff55615244b04d8902798d841c17f0bb4a8a8866c97133b543b93f151b440170bba09176db - languageName: node - linkType: hard - -"kubernetes-types@npm:^1.30.0": - version: 1.30.0 - resolution: "kubernetes-types@npm:1.30.0" - checksum: 10c0/de3641e4f50cfc123c4102a73c12932e1db8e51783c7cae4ea8ad3561bd56fab0f1c2346801f84a4c36aae8cea0b25d21e9514cc0fcecd4d64b1314043263076 - languageName: node - linkType: hard - -"levn@npm:^0.4.1": - version: 0.4.1 - resolution: "levn@npm:0.4.1" - dependencies: - prelude-ls: "npm:^1.2.1" - type-check: "npm:~0.4.0" - checksum: 10c0/effb03cad7c89dfa5bd4f6989364bfc79994c2042ec5966cb9b95990e2edee5cd8969ddf42616a0373ac49fac1403437deaf6e9050fbbaa3546093a59b9ac94e - languageName: node - linkType: hard - -"linkify-it@npm:^5.0.2": - version: 5.0.2 - resolution: "linkify-it@npm:5.0.2" - dependencies: - uc.micro: "npm:^2.0.0" - checksum: 10c0/dd70b1735a13d41a2cff0a058ac3771166038f23f6aff004dd53873cf985c64b107902fe0b544a5b3d1ff6e63249cf9c648fb3ae9f285481db48f56887adb0d6 - languageName: node - linkType: hard - -"locate-path@npm:^6.0.0": - version: 6.0.0 - resolution: "locate-path@npm:6.0.0" - dependencies: - p-locate: "npm:^5.0.0" - checksum: 10c0/d3972ab70dfe58ce620e64265f90162d247e87159b6126b01314dd67be43d50e96a50b517bce2d9452a79409c7614054c277b5232377de50416564a77ac7aad3 - languageName: node - linkType: hard - -"lru-cache@npm:^11.0.0": - version: 11.5.3 - resolution: "lru-cache@npm:11.5.3" - checksum: 10c0/2ad9bce6343a3544a1fd15364d8b35609aa52b2593d21fdc4877cabfe003b0f3deca4f9d6e9d13262f06e9e3d159de45c0a2f3edfc3adb46192333b5f146d8ed - languageName: node - linkType: hard - -"make-dir@npm:^4.0.0": - version: 4.0.0 - resolution: "make-dir@npm:4.0.0" - dependencies: - semver: "npm:^7.5.3" - checksum: 10c0/69b98a6c0b8e5c4fe9acb61608a9fbcfca1756d910f51e5dbe7a9e5cfb74fca9b8a0c8a0ffdf1294a740826c1ab4871d5bf3f62f72a3049e5eac6541ddffed68 - languageName: node - linkType: hard - -"markdown-it@npm:14.3.3": - version: 14.3.3 - resolution: "markdown-it@npm:14.3.3" - dependencies: - argparse: "npm:^2.0.1" - entities: "npm:^4.5.0" - linkify-it: "npm:^5.0.2" - mdurl: "npm:^2.0.0" - punycode.js: "npm:^2.3.1" - uc.micro: "npm:^2.1.0" - bin: - markdown-it: bin/markdown-it.mjs - checksum: 10c0/d6075ad320731d7fb9f127e496677f4e36cbdba839d7387dabf1f0d07b5c02bdffb46fb3969033817c04e60017e05d4269e4aa74bee58cc0a562a17cc0b6b8ff - languageName: node - linkType: hard - -"markdownlint-cli@npm:0.50.0": - version: 0.50.0 - resolution: "markdownlint-cli@npm:0.50.0" - dependencies: - commander: "npm:~15.0.0" - deep-extend: "npm:~0.6.0" - ignore: "npm:~7.0.13" - js-yaml: "npm:~5.5.0" - jsonc-parser: "npm:~3.3.1" - jsonpointer: "npm:~5.0.1" - markdown-it: "npm:~15.0.3" - markdownlint: "npm:~0.42.0" - minimatch: "npm:~10.2.6" - run-con: "npm:~1.3.3" - smol-toml: "npm:~1.9.1" - tinyglobby: "npm:~0.2.17" - bin: - markdownlint: markdownlint.js - checksum: 10c0/66f66b3853339c2aa44524bc96200b61c56f50dc6e530cdf07de1d87bb03eb8414660c1d8510296b878f3938c94619e511324b94e3dbc427f01bb9e48690dc97 - languageName: node - linkType: hard - -"markdownlint@npm:~0.42.0": - version: 0.42.1 - resolution: "markdownlint@npm:0.42.1" - dependencies: - micromark: "npm:4.0.3" - micromark-core-commonmark: "npm:2.0.4" - micromark-extension-directive: "npm:4.0.0" - micromark-extension-gfm-autolink-literal: "npm:2.1.0" - micromark-extension-gfm-footnote: "npm:2.1.0" - micromark-extension-gfm-table: "npm:2.1.2" - micromark-extension-math: "npm:3.1.0" - micromark-util-types: "npm:2.0.3" - re2js: "npm:2.9.1" - string-width: "npm:8.3.0" - checksum: 10c0/f052eebb2b7e27282a66ba8fcc4619fbcb3ca2fcf80f5df763c3d999dfc786e19cb95d6bb78f1ad6258bb88e1c3c3bbbfa33a61d7ac72e9ae888e17e7964440d - languageName: node - linkType: hard - -"math-intrinsics@npm:^1.1.0": - version: 1.1.0 - resolution: "math-intrinsics@npm:1.1.0" - checksum: 10c0/7579ff94e899e2f76ab64491d76cf606274c874d8f2af4a442c016bd85688927fcfca157ba6bf74b08e9439dc010b248ce05b96cc7c126a354c3bae7fcb48b7f - languageName: node - linkType: hard - -"mdurl@npm:^2.0.0": - version: 2.0.0 - resolution: "mdurl@npm:2.0.0" - checksum: 10c0/633db522272f75ce4788440669137c77540d74a83e9015666a9557a152c02e245b192edc20bc90ae953bbab727503994a53b236b4d9c99bdaee594d0e7dd2ce0 - languageName: node - linkType: hard - -"media-typer@npm:0.3.0": - version: 0.3.0 - resolution: "media-typer@npm:0.3.0" - checksum: 10c0/d160f31246907e79fed398470285f21bafb45a62869dc469b1c8877f3f064f5eabc4bcc122f9479b8b605bc5c76187d7871cf84c4ee3ecd3e487da1993279928 - languageName: node - linkType: hard - -"merge-descriptors@npm:1.0.3": - version: 1.0.3 - resolution: "merge-descriptors@npm:1.0.3" - checksum: 10c0/866b7094afd9293b5ea5dcd82d71f80e51514bed33b4c4e9f516795dc366612a4cbb4dc94356e943a8a6914889a914530badff27f397191b9b75cda20b6bae93 - languageName: node - linkType: hard - -"methods@npm:~1.1.2": - version: 1.1.2 - resolution: "methods@npm:1.1.2" - checksum: 10c0/bdf7cc72ff0a33e3eede03708c08983c4d7a173f91348b4b1e4f47d4cdbf734433ad971e7d1e8c77247d9e5cd8adb81ea4c67b0a2db526b758b2233d7814b8b2 - languageName: node - linkType: hard - -"micromark-core-commonmark@npm:2.0.4": - version: 2.0.4 - resolution: "micromark-core-commonmark@npm:2.0.4" - dependencies: - decode-named-character-reference: "npm:^1.0.0" - devlop: "npm:^1.0.0" - micromark-factory-destination: "npm:^2.0.0" - micromark-factory-label: "npm:^2.0.0" - micromark-factory-space: "npm:^2.1.0" - micromark-factory-title: "npm:^2.0.0" - micromark-factory-whitespace: "npm:^2.0.0" - micromark-util-character: "npm:^2.0.0" - micromark-util-chunked: "npm:^2.0.0" - micromark-util-classify-character: "npm:^2.0.0" - micromark-util-edit-map: "npm:^1.0.0" - micromark-util-html-tag-name: "npm:^2.0.0" - micromark-util-normalize-identifier: "npm:^2.0.0" - micromark-util-resolve-all: "npm:^2.0.0" - micromark-util-subtokenize: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.3" - checksum: 10c0/19f0ff7113e0f836aa178e041ab8cc5011c70750ceee584979df990c6a3db08f35c8b34673d05ae6108fedfd9db80291f3d5b0367f3d355872b39a94b35c3d63 - languageName: node - linkType: hard - -"micromark-core-commonmark@npm:^2.0.0": - version: 2.0.3 - resolution: "micromark-core-commonmark@npm:2.0.3" - dependencies: - decode-named-character-reference: "npm:^1.0.0" - devlop: "npm:^1.0.0" - micromark-factory-destination: "npm:^2.0.0" - micromark-factory-label: "npm:^2.0.0" - micromark-factory-space: "npm:^2.0.0" - micromark-factory-title: "npm:^2.0.0" - micromark-factory-whitespace: "npm:^2.0.0" - micromark-util-character: "npm:^2.0.0" - micromark-util-chunked: "npm:^2.0.0" - micromark-util-classify-character: "npm:^2.0.0" - micromark-util-html-tag-name: "npm:^2.0.0" - micromark-util-normalize-identifier: "npm:^2.0.0" - micromark-util-resolve-all: "npm:^2.0.0" - micromark-util-subtokenize: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/bd4a794fdc9e88dbdf59eaf1c507ddf26e5f7ddf4e52566c72239c0f1b66adbcd219ba2cd42350debbe24471434d5f5e50099d2b3f4e5762ca222ba8e5b549ee - languageName: node - linkType: hard - -"micromark-extension-directive@npm:4.0.0": - version: 4.0.0 - resolution: "micromark-extension-directive@npm:4.0.0" - dependencies: - devlop: "npm:^1.0.0" - micromark-factory-space: "npm:^2.0.0" - micromark-factory-whitespace: "npm:^2.0.0" - micromark-util-character: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - parse-entities: "npm:^4.0.0" - checksum: 10c0/b4aef0f44339543466ae186130a4514985837b6b12d0c155bd1162e740f631e58f0883a39d0c723206fa0ff53a9b579965c79116f902236f6f123c3340b5fefb - languageName: node - linkType: hard - -"micromark-extension-gfm-autolink-literal@npm:2.1.0": - version: 2.1.0 - resolution: "micromark-extension-gfm-autolink-literal@npm:2.1.0" - dependencies: - micromark-util-character: "npm:^2.0.0" - micromark-util-sanitize-uri: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/84e6fbb84ea7c161dfa179665dc90d51116de4c28f3e958260c0423e5a745372b7dcbc87d3cde98213b532e6812f847eef5ae561c9397d7f7da1e59872ef3efe - languageName: node - linkType: hard - -"micromark-extension-gfm-footnote@npm:2.1.0": - version: 2.1.0 - resolution: "micromark-extension-gfm-footnote@npm:2.1.0" - dependencies: - devlop: "npm:^1.0.0" - micromark-core-commonmark: "npm:^2.0.0" - micromark-factory-space: "npm:^2.0.0" - micromark-util-character: "npm:^2.0.0" - micromark-util-normalize-identifier: "npm:^2.0.0" - micromark-util-sanitize-uri: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/d172e4218968b7371b9321af5cde8c77423f73b233b2b0fcf3ff6fd6f61d2e0d52c49123a9b7910612478bf1f0d5e88c75a3990dd68f70f3933fe812b9f77edc - languageName: node - linkType: hard - -"micromark-extension-gfm-table@npm:2.1.2": - version: 2.1.2 - resolution: "micromark-extension-gfm-table@npm:2.1.2" - dependencies: - devlop: "npm:^1.0.0" - micromark-factory-space: "npm:^2.0.0" - micromark-util-character: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/cb373e2a1df6700a884b3fc85bdf47fee1dd06664e72cf866dd1e5828f017517cbc3e3a58b9256d6b5c5a21b067151806afbf780188c47d2fc027004ea3ab07c - languageName: node - linkType: hard - -"micromark-extension-math@npm:3.1.0": - version: 3.1.0 - resolution: "micromark-extension-math@npm:3.1.0" - dependencies: - "@types/katex": "npm:^0.16.0" - devlop: "npm:^1.0.0" - katex: "npm:^0.16.0" - micromark-factory-space: "npm:^2.0.0" - micromark-util-character: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/56e6f2185a4613f9d47e7e98cf8605851c990957d9229c942b005e286c8087b61dc9149448d38b2f8be6d42cc6a64aad7e1f2778ddd86fbbb1a2f48a3ca1872f - languageName: node - linkType: hard - -"micromark-factory-destination@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-factory-destination@npm:2.0.1" - dependencies: - micromark-util-character: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/bbafcf869cee5bf511161354cb87d61c142592fbecea051000ff116068dc85216e6d48519d147890b9ea5d7e2864a6341c0c09d9948c203bff624a80a476023c - languageName: node - linkType: hard - -"micromark-factory-label@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-factory-label@npm:2.0.1" - dependencies: - devlop: "npm:^1.0.0" - micromark-util-character: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/0137716b4ecb428114165505e94a2f18855c8bbea21b07a8b5ce514b32a595ed789d2b967125718fc44c4197ceaa48f6609d58807a68e778138d2e6b91b824e8 - languageName: node - linkType: hard - -"micromark-factory-space@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-factory-space@npm:2.0.1" - dependencies: - micromark-util-character: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/f9ed43f1c0652d8d898de0ac2be3f77f776fffe7dd96bdbba1e02d7ce33d3853c6ff5daa52568fc4fa32cdf3a62d86b85ead9b9189f7211e1d69ff2163c450fb - languageName: node - linkType: hard - -"micromark-factory-space@npm:^2.1.0": - version: 2.1.0 - resolution: "micromark-factory-space@npm:2.1.0" - dependencies: - micromark-util-character: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/4a8674b3688e958a290bf193eab123cb6634f76bb21f8b3c9e1a8a3c8e25380080d4735b179cf68cada61b49de2c8a0b9e2e90f274105a84803672fa0a933e7b - languageName: node - linkType: hard - -"micromark-factory-title@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-factory-title@npm:2.0.1" - dependencies: - micromark-factory-space: "npm:^2.0.0" - micromark-util-character: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/e72fad8d6e88823514916890099a5af20b6a9178ccf78e7e5e05f4de99bb8797acb756257d7a3a57a53854cb0086bf8aab15b1a9e9db8982500dd2c9ff5948b6 - languageName: node - linkType: hard - -"micromark-factory-whitespace@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-factory-whitespace@npm:2.0.1" - dependencies: - micromark-factory-space: "npm:^2.0.0" - micromark-util-character: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/20a1ec58698f24b766510a309b23a10175034fcf1551eaa9da3adcbed3e00cd53d1ebe5f030cf873f76a1cec3c34eb8c50cc227be3344caa9ed25d56cf611224 - languageName: node - linkType: hard - -"micromark-util-character@npm:^2.0.0": - version: 2.1.1 - resolution: "micromark-util-character@npm:2.1.1" - dependencies: - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/d3fe7a5e2c4060fc2a076f9ce699c82a2e87190a3946e1e5eea77f563869b504961f5668d9c9c014724db28ac32fa909070ea8b30c3a39bd0483cc6c04cc76a1 - languageName: node - linkType: hard - -"micromark-util-chunked@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-util-chunked@npm:2.0.1" - dependencies: - micromark-util-symbol: "npm:^2.0.0" - checksum: 10c0/b68c0c16fe8106949537bdcfe1be9cf36c0ccd3bc54c4007003cb0984c3750b6cdd0fd77d03f269a3382b85b0de58bde4f6eedbe7ecdf7244759112289b1ab56 - languageName: node - linkType: hard - -"micromark-util-classify-character@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-util-classify-character@npm:2.0.1" - dependencies: - micromark-util-character: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/8a02e59304005c475c332f581697e92e8c585bcd45d5d225a66c1c1b14ab5a8062705188c2ccec33cc998d33502514121478b2091feddbc751887fc9c290ed08 - languageName: node - linkType: hard - -"micromark-util-combine-extensions@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-util-combine-extensions@npm:2.0.1" - dependencies: - micromark-util-chunked: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/f15e282af24c8372cbb10b9b0b3e2c0aa681fea0ca323a44d6bc537dc1d9382c819c3689f14eaa000118f5a163245358ce6276b2cda9a84439cdb221f5d86ae7 - languageName: node - linkType: hard - -"micromark-util-decode-numeric-character-reference@npm:^2.0.0": - version: 2.0.2 - resolution: "micromark-util-decode-numeric-character-reference@npm:2.0.2" - dependencies: - micromark-util-symbol: "npm:^2.0.0" - checksum: 10c0/9c8a9f2c790e5593ffe513901c3a110e9ec8882a08f466da014112a25e5059b51551ca0aeb7ff494657d86eceb2f02ee556c6558b8d66aadc61eae4a240da0df - languageName: node - linkType: hard - -"micromark-util-edit-map@npm:^1.0.0": - version: 1.0.0 - resolution: "micromark-util-edit-map@npm:1.0.0" - dependencies: - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/5f6caaa4d8a3c5b95632c8ab66ffaa488d496583ba37bbf7f5f7dd5c7bc3a5c51af97bc5767aa92c6aa906c5c031f0b09a5239284a6d0f1707d4f953bb7d8e4e - languageName: node - linkType: hard - -"micromark-util-encode@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-util-encode@npm:2.0.1" - checksum: 10c0/b2b29f901093845da8a1bf997ea8b7f5e061ffdba85070dfe14b0197c48fda64ffcf82bfe53c90cf9dc185e69eef8c5d41cae3ba918b96bc279326921b59008a - languageName: node - linkType: hard - -"micromark-util-html-tag-name@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-util-html-tag-name@npm:2.0.1" - checksum: 10c0/ae80444db786fde908e9295f19a27a4aa304171852c77414516418650097b8afb401961c9edb09d677b06e97e8370cfa65638dde8438ebd41d60c0a8678b85b9 - languageName: node - linkType: hard - -"micromark-util-normalize-identifier@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-util-normalize-identifier@npm:2.0.1" - dependencies: - micromark-util-symbol: "npm:^2.0.0" - checksum: 10c0/5299265fa360769fc499a89f40142f10a9d4a5c3dd8e6eac8a8ef3c2e4a6570e4c009cf75ea46dce5ee31c01f25587bde2f4a5cc0a935584ae86dd857f2babbd - languageName: node - linkType: hard - -"micromark-util-resolve-all@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-util-resolve-all@npm:2.0.1" - dependencies: - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/bb6ca28764696bb479dc44a2d5b5fe003e7177aeae1d6b0d43f24cc223bab90234092d9c3ce4a4d2b8df095ccfd820537b10eb96bb7044d635f385d65a4c984a - languageName: node - linkType: hard - -"micromark-util-sanitize-uri@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-util-sanitize-uri@npm:2.0.1" - dependencies: - micromark-util-character: "npm:^2.0.0" - micromark-util-encode: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - checksum: 10c0/60e92166e1870fd4f1961468c2651013ff760617342918e0e0c3c4e872433aa2e60c1e5a672bfe5d89dc98f742d6b33897585cf86ae002cda23e905a3c02527c - languageName: node - linkType: hard - -"micromark-util-subtokenize@npm:^2.0.0": - version: 2.1.0 - resolution: "micromark-util-subtokenize@npm:2.1.0" - dependencies: - devlop: "npm:^1.0.0" - micromark-util-chunked: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/bee69eece4393308e657c293ba80d92ebcb637e5f55e21dcf9c3fa732b91a8eda8ac248d76ff375e675175bfadeae4712e5158ef97eef1111789da1ce7ab5067 - languageName: node - linkType: hard - -"micromark-util-symbol@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-util-symbol@npm:2.0.1" - checksum: 10c0/f2d1b207771e573232436618e78c5e46cd4b5c560dd4a6d63863d58018abbf49cb96ec69f7007471e51434c60de3c9268ef2bf46852f26ff4aacd10f9da16fe9 - languageName: node - linkType: hard - -"micromark-util-types@npm:2.0.3, micromark-util-types@npm:^2.0.3": - version: 2.0.3 - resolution: "micromark-util-types@npm:2.0.3" - checksum: 10c0/fc37f4e5d58c06bb6dba16b608abbf8db6949a141bd21802c1110121ef7c093811145de2e22fc277cce8ba5e5a38788e14b5f0d142ef1cd0fcfd918ce6c7940c - languageName: node - linkType: hard - -"micromark-util-types@npm:^2.0.0": - version: 2.0.2 - resolution: "micromark-util-types@npm:2.0.2" - checksum: 10c0/c8c15b96c858db781c4393f55feec10004bf7df95487636c9a9f7209e51002a5cca6a047c5d2a5dc669ff92da20e57aaa881e81a268d9ccadb647f9dce305298 - languageName: node - linkType: hard - -"micromark@npm:4.0.3": - version: 4.0.3 - resolution: "micromark@npm:4.0.3" - dependencies: - "@types/debug": "npm:^4.0.0" - debug: "npm:^4.0.0" - decode-named-character-reference: "npm:^1.0.0" - devlop: "npm:^1.0.0" - micromark-core-commonmark: "npm:^2.0.0" - micromark-factory-space: "npm:^2.0.0" - micromark-util-character: "npm:^2.0.0" - micromark-util-chunked: "npm:^2.0.0" - micromark-util-combine-extensions: "npm:^2.0.0" - micromark-util-decode-numeric-character-reference: "npm:^2.0.0" - micromark-util-edit-map: "npm:^1.0.0" - micromark-util-encode: "npm:^2.0.0" - micromark-util-normalize-identifier: "npm:^2.0.0" - micromark-util-resolve-all: "npm:^2.0.0" - micromark-util-sanitize-uri: "npm:^2.0.0" - micromark-util-subtokenize: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/f1710d5c255e3d20127127223263aee539a04c3ca7423019d18f668656cd82eb9282362cf281cac31b7e9b282d04e297c17bf3e302201e2621ed32af24e69ba9 - languageName: node - linkType: hard - -"mime-db@npm:1.52.0": - version: 1.52.0 - resolution: "mime-db@npm:1.52.0" - checksum: 10c0/0557a01deebf45ac5f5777fe7740b2a5c309c6d62d40ceab4e23da9f821899ce7a900b7ac8157d4548ddbb7beffe9abc621250e6d182b0397ec7f10c7b91a5aa - languageName: node - linkType: hard - -"mime-types@npm:~2.1.24, mime-types@npm:~2.1.34": - version: 2.1.35 - resolution: "mime-types@npm:2.1.35" - dependencies: - mime-db: "npm:1.52.0" - checksum: 10c0/82fb07ec56d8ff1fc999a84f2f217aa46cb6ed1033fefaabd5785b9a974ed225c90dc72fff460259e66b95b73648596dbcc50d51ed69cdf464af2d237d3149b2 - languageName: node - linkType: hard - -"mime@npm:1.6.0": - version: 1.6.0 - resolution: "mime@npm:1.6.0" - bin: - mime: cli.js - checksum: 10c0/b92cd0adc44888c7135a185bfd0dddc42c32606401c72896a842ae15da71eb88858f17669af41e498b463cd7eb998f7b48939a25b08374c7924a9c8a6f8a81b0 - languageName: node - linkType: hard - -"minimatch@npm:11.0.2": - version: 11.0.2 - resolution: "minimatch@npm:11.0.2" - dependencies: - "@isaacs/nonrecursive-glob-match": "npm:^1.0.2" - brace-expansion: "npm:^5.0.12" - checksum: 10c0/d51bad3e041232d23bf5f3f3858153b273e43c72deecab4528db9c61cff78d16e914cf551a1bcae05d10bf942ebf9d16ce8d9467cc3d289bee939401b405895e - languageName: node - linkType: hard - -"minimist@npm:^1.2.8": - version: 1.2.8 - resolution: "minimist@npm:1.2.8" - checksum: 10c0/19d3fcdca050087b84c2029841a093691a91259a47def2f18222f41e7645a0b7c44ef4b40e88a1e58a40c84d2ef0ee6047c55594d298146d0eb3f6b737c20ce6 - languageName: node - linkType: hard - -"minipass@npm:^7.0.4, minipass@npm:^7.1.2, minipass@npm:^7.1.3": - version: 7.1.3 - resolution: "minipass@npm:7.1.3" - checksum: 10c0/539da88daca16533211ea5a9ee98dc62ff5742f531f54640dd34429e621955e91cc280a91a776026264b7f9f6735947629f920944e9c1558369e8bf22eb33fbb - languageName: node - linkType: hard - -"minizlib@npm:^3.1.0": - version: 3.1.0 - resolution: "minizlib@npm:3.1.0" - dependencies: - minipass: "npm:^7.1.2" - checksum: 10c0/5aad75ab0090b8266069c9aabe582c021ae53eb33c6c691054a13a45db3b4f91a7fb1bd79151e6b4e9e9a86727b522527c0a06ec7d45206b745d54cd3097bcec - languageName: node - linkType: hard - -"ms@npm:2.0.0": - version: 2.0.0 - resolution: "ms@npm:2.0.0" - checksum: 10c0/f8fda810b39fd7255bbdc451c46286e549794fcc700dc9cd1d25658bbc4dc2563a5de6fe7c60f798a16a60c6ceb53f033cb353f493f0cf63e5199b702943159d - languageName: node - linkType: hard - -"ms@npm:2.1.3, ms@npm:^2.1.3": - version: 2.1.3 - resolution: "ms@npm:2.1.3" - checksum: 10c0/d924b57e7312b3b63ad21fc5b3dc0af5e78d61a1fc7cfb5457edaf26326bf62be5307cc87ffb6862ef1c2b33b0233cdb5d4f01c4c958cc0d660948b65a287a48 - languageName: node - linkType: hard - -"msgpackr-extract@npm:^3.0.6": - version: 3.0.7 - resolution: "msgpackr-extract@npm:3.0.7" - dependencies: - "@msgpackr-extract/msgpackr-extract-darwin-arm64": "npm:3.0.7" - "@msgpackr-extract/msgpackr-extract-darwin-x64": "npm:3.0.7" - "@msgpackr-extract/msgpackr-extract-linux-arm": "npm:3.0.7" - "@msgpackr-extract/msgpackr-extract-linux-arm64": "npm:3.0.7" - "@msgpackr-extract/msgpackr-extract-linux-x64": "npm:3.0.7" - "@msgpackr-extract/msgpackr-extract-win32-x64": "npm:3.0.7" - node-gyp: "npm:latest" - node-gyp-build-optional-packages: "npm:5.2.2" - dependenciesMeta: - "@msgpackr-extract/msgpackr-extract-darwin-arm64": - optional: true - "@msgpackr-extract/msgpackr-extract-darwin-x64": - optional: true - "@msgpackr-extract/msgpackr-extract-linux-arm": - optional: true - "@msgpackr-extract/msgpackr-extract-linux-arm64": - optional: true - "@msgpackr-extract/msgpackr-extract-linux-x64": - optional: true - "@msgpackr-extract/msgpackr-extract-win32-x64": - optional: true - bin: - download-msgpackr-prebuilds: bin/download-prebuilds.js - checksum: 10c0/60e392bd77afc92b954adfd3501703d58a9baae2bcafd894e47c92820ec2b4c20483c5b959c03f8802b8b579f596877510a9f9c0e8f486c9e3780ff1362e4a54 - languageName: node - linkType: hard - -"msgpackr@npm:^2.0.1": - version: 2.1.4 - resolution: "msgpackr@npm:2.1.4" - dependencies: - msgpackr-extract: "npm:^3.0.6" - dependenciesMeta: - msgpackr-extract: - optional: true - checksum: 10c0/5c562c2546f06ed093ad5d637481f2442afee19ccc6d426f37d4d6dbdeccdcd185fc4053deb0199f52d5313a6c6927d90c56edd53cda843115baf81e086a8b6e - languageName: node - linkType: hard - -"multipasta@npm:^0.2.7": - version: 0.2.9 - resolution: "multipasta@npm:0.2.9" - checksum: 10c0/c5e3e73ee0f037fedf51285653a73addf670a8f546206ae3ce5c48f0512f696e5ff3108a8b4ac9e52f7305a58468ef274a2b12ca28c7d16afc6620bda647aac8 - languageName: node - linkType: hard - -"natural-compare@npm:^1.4.0": - version: 1.4.0 - resolution: "natural-compare@npm:1.4.0" - checksum: 10c0/f5f9a7974bfb28a91afafa254b197f0f22c684d4a1731763dda960d2c8e375b36c7d690e0d9dc8fba774c537af14a7e979129bca23d88d052fbeb9466955e447 - languageName: node - linkType: hard - -"negotiator@npm:0.6.3": - version: 0.6.3 - resolution: "negotiator@npm:0.6.3" - checksum: 10c0/3ec9fd413e7bf071c937ae60d572bc67155262068ed522cf4b3be5edbe6ddf67d095ec03a3a14ebf8fc8e95f8e1d61be4869db0dbb0de696f6b837358bd43fc2 - languageName: node - linkType: hard - -"node-gyp-build-optional-packages@npm:5.2.2": - version: 5.2.2 - resolution: "node-gyp-build-optional-packages@npm:5.2.2" - dependencies: - detect-libc: "npm:^2.0.1" - bin: - node-gyp-build-optional-packages: bin.js - node-gyp-build-optional-packages-optional: optional.js - node-gyp-build-optional-packages-test: build-test.js - checksum: 10c0/c81128c6f91873381be178c5eddcbdf66a148a6a89a427ce2bcd457593ce69baf2a8662b6d22cac092d24aa9c43c230dec4e69b3a0da604503f4777cd77e282b - languageName: node - linkType: hard - -"node-gyp@npm:latest": - version: 13.1.0 - resolution: "node-gyp@npm:13.1.0" - dependencies: - env-paths: "npm:^2.2.0" - exponential-backoff: "npm:^3.1.1" - graceful-fs: "npm:^4.2.6" - nopt: "npm:^10.0.0" - proc-log: "npm:^7.0.0" - semver: "npm:^7.3.5" - tar: "npm:^7.5.7" - tinyglobby: "npm:^0.2.12" - undici: "npm:^8.4.1" - which: "npm:^7.0.0" - bin: - node-gyp: bin/node-gyp.js - checksum: 10c0/c6693e52e0e111b21f5cd8ff303b41b51f40338adcc79ac5c6a02399eba7039d50dc816dcafcc485870291a641f7cb75db8887a9bdd0de537fe635a3a81cba5b - languageName: node - linkType: hard - -"nopt@npm:^10.0.0": - version: 10.0.1 - resolution: "nopt@npm:10.0.1" - dependencies: - abbrev: "npm:^5.0.0" - bin: - nopt: bin/nopt.js - checksum: 10c0/980d89257f9587f3e1f77877ddbf905d6aa3b738ec33e49a4fa1a059a0dd82eb28063982b150654a7ae9de386f2ead60e56172db7d37cf56de545f7392a2a26a - languageName: node - linkType: hard - -"object-inspect@npm:^1.13.3, object-inspect@npm:^1.13.4": - version: 1.13.4 - resolution: "object-inspect@npm:1.13.4" - checksum: 10c0/d7f8711e803b96ea3191c745d6f8056ce1f2496e530e6a19a0e92d89b0fa3c76d910c31f0aa270432db6bd3b2f85500a376a83aaba849a8d518c8845b3211692 - languageName: node - linkType: hard - -"on-finished@npm:~2.4.1": - version: 2.4.2 - resolution: "on-finished@npm:2.4.2" - dependencies: - ee-first: "npm:1.1.1" - checksum: 10c0/e2cdfcadbdca1421fd62c452b728f62c9dd67f73009b98e58d3340dcfad0367f3c98f18081dc58a54f36b6a13c503aadba72c4ddb6ad13ac0c372f956e9943f4 - languageName: node - linkType: hard - -"optionator@npm:^0.9.3": - version: 0.9.4 - resolution: "optionator@npm:0.9.4" - dependencies: - deep-is: "npm:^0.1.3" - fast-levenshtein: "npm:^2.0.6" - levn: "npm:^0.4.1" - prelude-ls: "npm:^1.2.1" - type-check: "npm:^0.4.0" - word-wrap: "npm:^1.2.5" - checksum: 10c0/4afb687a059ee65b61df74dfe87d8d6815cd6883cb8b3d5883a910df72d0f5d029821f37025e4bccf4048873dbdb09acc6d303d27b8f76b1a80dd5a7d5334675 - languageName: node - linkType: hard - -"ox@npm:0.14.57": - version: 0.14.57 - resolution: "ox@npm:0.14.57" - dependencies: - "@adraffy/ens-normalize": "npm:^1.11.0" - "@noble/ciphers": "npm:^1.3.0" - "@noble/curves": "npm:1.9.1" - "@noble/hashes": "npm:^1.8.0" - "@scure/bip32": "npm:^1.7.0" - "@scure/bip39": "npm:^1.6.0" - abitype: "npm:^1.2.3" - eventemitter3: "npm:5.0.1" - peerDependencies: - typescript: ">=5.4.0" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10c0/b3d7d9c8847c7f4b6858247fd6b4c4c4f1f9be90de7b11d48608fa4740642326f4362e369fd6a150c0e1b34bda6c2721521221d7a700ffee611dbf03e62753c6 - languageName: node - linkType: hard - -"p-limit@npm:^3.0.2": - version: 3.1.0 - resolution: "p-limit@npm:3.1.0" - dependencies: - yocto-queue: "npm:^0.1.0" - checksum: 10c0/9db675949dbdc9c3763c89e748d0ef8bdad0afbb24d49ceaf4c46c02c77d30db4e0652ed36d0a0a7a95154335fab810d95c86153105bb73b3a90448e2bb14e1a - languageName: node - linkType: hard - -"p-locate@npm:^5.0.0": - version: 5.0.0 - resolution: "p-locate@npm:5.0.0" - dependencies: - p-limit: "npm:^3.0.2" - checksum: 10c0/2290d627ab7903b8b70d11d384fee714b797f6040d9278932754a6860845c4d3190603a0772a663c8cb5a7b21d1b16acb3a6487ebcafa9773094edc3dfe6009a - languageName: node - linkType: hard - -"parse-entities@npm:^4.0.0": - version: 4.0.2 - resolution: "parse-entities@npm:4.0.2" - dependencies: - "@types/unist": "npm:^2.0.0" - character-entities-legacy: "npm:^3.0.0" - character-reference-invalid: "npm:^2.0.0" - decode-named-character-reference: "npm:^1.0.0" - is-alphanumerical: "npm:^2.0.0" - is-decimal: "npm:^2.0.0" - is-hexadecimal: "npm:^2.0.0" - checksum: 10c0/a13906b1151750b78ed83d386294066daf5fb559e08c5af9591b2d98cc209123103016a01df776f65f8219ad26652d6d6b210d0974d452049cddfc53a8916c34 - languageName: node - linkType: hard - -"parseurl@npm:~1.3.3": - version: 1.3.3 - resolution: "parseurl@npm:1.3.3" - checksum: 10c0/90dd4760d6f6174adb9f20cf0965ae12e23879b5f5464f38e92fce8073354341e4b3b76fa3d878351efe7d01e617121955284cfd002ab087fba1a0726ec0b4f5 - languageName: node - linkType: hard - -"path-exists@npm:^4.0.0": - version: 4.0.0 - resolution: "path-exists@npm:4.0.0" - checksum: 10c0/8c0bd3f5238188197dc78dced15207a4716c51cc4e3624c44fc97acf69558f5ebb9a2afff486fe1b4ee148e0c133e96c5e11a9aa5c48a3006e3467da070e5e1b - languageName: node - linkType: hard - -"path-key@npm:^3.1.0": - version: 3.1.1 - resolution: "path-key@npm:3.1.1" - checksum: 10c0/748c43efd5a569c039d7a00a03b58eecd1d75f3999f5a28303d75f521288df4823bc057d8784eb72358b2895a05f29a070bc9f1f17d28226cc4e62494cc58c4c - languageName: node - linkType: hard - -"path-scurry@npm:^3.0.0": - version: 3.0.0 - resolution: "path-scurry@npm:3.0.0" - dependencies: - lru-cache: "npm:^11.0.0" - minipass: "npm:^7.1.2" - checksum: 10c0/3256223b51952732bc5460f574143d7d9904cd6d68fac3072906162c90e9f27fdf6f3fe812287e65a876f92d73c12a58368b28749ed07a58bdb04dc76f60a938 - languageName: node - linkType: hard - -"path-to-regexp@npm:~0.1.13": - version: 0.1.13 - resolution: "path-to-regexp@npm:0.1.13" - checksum: 10c0/1cae3921739c154a8926e136185a10c916f79a249b9072a5001b266d96e193860ca03867e8e8cc808b786862d750f427ed93686bc259355442c3407a62deab1a - languageName: node - linkType: hard - -"picomatch@npm:^4.0.4": - version: 4.0.7 - resolution: "picomatch@npm:4.0.7" - checksum: 10c0/beb6ae02c43ae44e84883b90830196d9046b1726ead292adcf7f57945e0bb0d992d68563d87e03b484b6f3c9a5c6defda7523477f047d7f0e663f126cc01787f - languageName: node - linkType: hard - -"prelude-ls@npm:^1.2.1": - version: 1.2.1 - resolution: "prelude-ls@npm:1.2.1" - checksum: 10c0/b00d617431e7886c520a6f498a2e14c75ec58f6d93ba48c3b639cf241b54232d90daa05d83a9e9b9fef6baa63cb7e1e4602c2372fea5bc169668401eb127d0cd - languageName: node - linkType: hard - -"proc-log@npm:^7.0.0": - version: 7.0.0 - resolution: "proc-log@npm:7.0.0" - checksum: 10c0/b89c2d862604f35fec795477b0c7e376feab3ba0d4f4d291c4e959567442697cf451ac557d0623c1cc38af45a78128b983410f397a10c5d3a67f76c33de4754b - languageName: node - linkType: hard - -"proxy-addr@npm:~2.0.7": - version: 2.0.8 - resolution: "proxy-addr@npm:2.0.8" - dependencies: - forwarded: "npm:0.2.0" - ipaddr.js: "npm:1.9.1" - checksum: 10c0/58398f36e5b1f72b1011ca21844c0c41a9a3b6f2f0d101bcdb19abb3f3dd9626b27a96e53da777ded901eb67faed0304a4bc1d435b235e436f66f8e5e1fe1f5e - languageName: node - linkType: hard - -"punycode.js@npm:^2.3.1": - version: 2.3.1 - resolution: "punycode.js@npm:2.3.1" - checksum: 10c0/1d12c1c0e06127fa5db56bd7fdf698daf9a78104456a6b67326877afc21feaa821257b171539caedd2f0524027fa38e67b13dd094159c8d70b6d26d2bea4dfdb - languageName: node - linkType: hard - -"punycode@npm:^2.1.0": - version: 2.3.1 - resolution: "punycode@npm:2.3.1" - checksum: 10c0/14f76a8206bc3464f794fb2e3d3cc665ae416c01893ad7a02b23766eb07159144ee612ad67af5e84fa4479ccfe67678c4feb126b0485651b302babf66f04f9e9 - languageName: node - linkType: hard - -"pure-rand@npm:^8.0.0": - version: 8.4.2 - resolution: "pure-rand@npm:8.4.2" - checksum: 10c0/4b2ef2a2e68a258fb311efd26b65305b4865856e28d6b40ff61f7d65bb6a39b4f8ebbcf7dfc843193b3cfe54e7501dbc2c7aba0ecdb97d13cd634db709df83fd - languageName: node - linkType: hard - -"qified@npm:^0.10.1": - version: 0.10.1 - resolution: "qified@npm:0.10.1" - dependencies: - hookified: "npm:^2.1.1" - checksum: 10c0/4a39d45492c65a4b9795381acede1bd566028ce9764ead5b41d776b391a898bf0855dd2b59d724a6711fe253ba3cacf7c9a8832887cf9dc6d48a2c5e4997c82d - languageName: node - linkType: hard - -"qs@npm:~6.16.0": - version: 6.16.2 - resolution: "qs@npm:6.16.2" - dependencies: - es-define-property: "npm:^1.0.1" - side-channel: "npm:^1.1.1" - checksum: 10c0/945e933f943e419bcd0ca54eeacff7d7bb5a098de886249425cbba3b5ed1be10e177b84b97d7d2c4099e90afa09bb3489112672b89dfa56edc0b5bcb829c456b - languageName: node - linkType: hard - -"range-parser@npm:~1.2.1": - version: 1.2.1 - resolution: "range-parser@npm:1.2.1" - checksum: 10c0/96c032ac2475c8027b7a4e9fe22dc0dfe0f6d90b85e496e0f016fbdb99d6d066de0112e680805075bd989905e2123b3b3d002765149294dce0c1f7f01fcc2ea0 - languageName: node - linkType: hard - -"raw-body@npm:~2.5.3": - version: 2.5.3 - resolution: "raw-body@npm:2.5.3" - dependencies: - bytes: "npm:~3.1.2" - http-errors: "npm:~2.0.1" - iconv-lite: "npm:~0.4.24" - unpipe: "npm:~1.0.0" - checksum: 10c0/449844344fc90547fb994383a494b83300e4f22199f146a79f68d78a199a8f2a923ea9fd29c3be979bfd50291a3884733619ffc15ba02a32e703b612f8d3f74a - languageName: node - linkType: hard - -"re2js@npm:2.9.1": - version: 2.9.1 - resolution: "re2js@npm:2.9.1" - checksum: 10c0/799c179ab563b8c16422b80cbcccdfdc0e940c50999930c1aa91bd5fe54e08a00a50abcf5510ab1bb3d881c90235c6fb177ed9d710cf3e5b4e843f026407ba9b - languageName: node - linkType: hard - -"require-directory@npm:^2.1.1": - version: 2.1.1 - resolution: "require-directory@npm:2.1.1" - checksum: 10c0/83aa76a7bc1531f68d92c75a2ca2f54f1b01463cb566cf3fbc787d0de8be30c9dbc211d1d46be3497dac5785fe296f2dd11d531945ac29730643357978966e99 - languageName: node - linkType: hard - -"require-from-string@npm:^2.0.2": - version: 2.0.2 - resolution: "require-from-string@npm:2.0.2" - checksum: 10c0/aaa267e0c5b022fc5fd4eef49d8285086b15f2a1c54b28240fdf03599cbd9c26049fee3eab894f2e1f6ca65e513b030a7c264201e3f005601e80c49fb2937ce2 - languageName: node - linkType: hard - -"run-con@npm:~1.3.3": - version: 1.3.3 - resolution: "run-con@npm:1.3.3" - dependencies: - deep-extend: "npm:^0.6.0" - ini: "npm:~7.0.0" - minimist: "npm:^1.2.8" - strip-json-comments: "npm:~3.1.1" - bin: - run-con: cli.js - checksum: 10c0/9460fed6f5cd047a1deb05f233eb8aae2bcc4c5dd1eb4edc4c9d31d2b5a0c37f430a048b6d23e5af66a68e4c0db1da0936d58a74f067d9a52d89b44fd2a01a1d - languageName: node - linkType: hard - -"safe-buffer@npm:5.2.1": - version: 5.2.1 - resolution: "safe-buffer@npm:5.2.1" - checksum: 10c0/6501914237c0a86e9675d4e51d89ca3c21ffd6a31642efeba25ad65720bce6921c9e7e974e5be91a786b25aa058b5303285d3c15dbabf983a919f5f630d349f3 - languageName: node - linkType: hard - -"safer-buffer@npm:>= 2.1.2 < 3": - version: 2.1.2 - resolution: "safer-buffer@npm:2.1.2" - checksum: 10c0/7e3c8b2e88a1841c9671094bbaeebd94448111dd90a81a1f606f3f67708a6ec57763b3b47f06da09fc6054193e0e6709e77325415dc8422b04497a8070fa02d4 - languageName: node - linkType: hard - -"semver@npm:^7.3.5": - version: 7.8.6 - resolution: "semver@npm:7.8.6" - bin: - semver: bin/semver.js - checksum: 10c0/bf0a4d16eb067e5391323649e46b4a268644d7f8ee88e37c7668d35e861ec145b6e7df576d898007fc0d9a2cedcbc33f71460aa3bbea18eedfa5af58c064d7fe - languageName: node - linkType: hard - -"semver@npm:^7.5.3": - version: 7.7.4 - resolution: "semver@npm:7.7.4" - bin: - semver: bin/semver.js - checksum: 10c0/5215ad0234e2845d4ea5bb9d836d42b03499546ddafb12075566899fc617f68794bb6f146076b6881d755de17d6c6cc73372555879ec7dce2c2feee947866ad2 - languageName: node - linkType: hard - -"send@npm:~0.19.0, send@npm:~0.19.1": - version: 0.19.2 - resolution: "send@npm:0.19.2" - dependencies: - debug: "npm:2.6.9" - depd: "npm:2.0.0" - destroy: "npm:1.2.0" - encodeurl: "npm:~2.0.0" - escape-html: "npm:~1.0.3" - etag: "npm:~1.8.1" - fresh: "npm:~0.5.2" - http-errors: "npm:~2.0.1" - mime: "npm:1.6.0" - ms: "npm:2.1.3" - on-finished: "npm:~2.4.1" - range-parser: "npm:~1.2.1" - statuses: "npm:~2.0.2" - checksum: 10c0/20c2389fe0fdf3fc499938cac598bc32272287e993c4960717381a10de8550028feadfb9076f959a3a3ebdea42e1f690e116f0d16468fa56b9fd41866d3dc267 - languageName: node - linkType: hard - -"serve-static@npm:~1.16.2": - version: 1.16.3 - resolution: "serve-static@npm:1.16.3" - dependencies: - encodeurl: "npm:~2.0.0" - escape-html: "npm:~1.0.3" - parseurl: "npm:~1.3.3" - send: "npm:~0.19.1" - checksum: 10c0/36320397a073c71bedf58af48a4a100fe6d93f07459af4d6f08b9a7217c04ce2a4939e0effd842dc7bece93ffcd59eb52f58c4fff2a8e002dc29ae6b219cd42b - languageName: node - linkType: hard - -"setprototypeof@npm:1.2.0, setprototypeof@npm:~1.2.0": - version: 1.2.0 - resolution: "setprototypeof@npm:1.2.0" - checksum: 10c0/68733173026766fa0d9ecaeb07f0483f4c2dc70ca376b3b7c40b7cda909f94b0918f6c5ad5ce27a9160bdfb475efaa9d5e705a11d8eaae18f9835d20976028bc - languageName: node - linkType: hard - -"shebang-command@npm:^2.0.0": - version: 2.0.0 - resolution: "shebang-command@npm:2.0.0" - dependencies: - shebang-regex: "npm:^3.0.0" - checksum: 10c0/a41692e7d89a553ef21d324a5cceb5f686d1f3c040759c50aab69688634688c5c327f26f3ecf7001ebfd78c01f3c7c0a11a7c8bfd0a8bc9f6240d4f40b224e4e - languageName: node - linkType: hard - -"shebang-regex@npm:^3.0.0": - version: 3.0.0 - resolution: "shebang-regex@npm:3.0.0" - checksum: 10c0/1dbed0726dd0e1152a92696c76c7f06084eb32a90f0528d11acd764043aacf76994b2fb30aa1291a21bd019d6699164d048286309a278855ee7bec06cf6fb690 - languageName: node - linkType: hard - -"side-channel-list@npm:^1.0.1": - version: 1.0.1 - resolution: "side-channel-list@npm:1.0.1" - dependencies: - es-errors: "npm:^1.3.0" - object-inspect: "npm:^1.13.4" - checksum: 10c0/d346c787fd2f9f1c2fdea14f00e8250118db0e7596d85a6cb9faa75f105d31a73a8f7a341c93d7df2a2429098c3d37a77bd3be9e88c37094b8c01807bc77c7a2 - languageName: node - linkType: hard - -"side-channel-map@npm:^1.0.1": - version: 1.0.1 - resolution: "side-channel-map@npm:1.0.1" - dependencies: - call-bound: "npm:^1.0.2" - es-errors: "npm:^1.3.0" - get-intrinsic: "npm:^1.2.5" - object-inspect: "npm:^1.13.3" - checksum: 10c0/010584e6444dd8a20b85bc926d934424bd809e1a3af941cace229f7fdcb751aada0fb7164f60c2e22292b7fa3c0ff0bce237081fd4cdbc80de1dc68e95430672 - languageName: node - linkType: hard - -"side-channel-weakmap@npm:^1.0.2": - version: 1.0.2 - resolution: "side-channel-weakmap@npm:1.0.2" - dependencies: - call-bound: "npm:^1.0.2" - es-errors: "npm:^1.3.0" - get-intrinsic: "npm:^1.2.5" - object-inspect: "npm:^1.13.3" - side-channel-map: "npm:^1.0.1" - checksum: 10c0/71362709ac233e08807ccd980101c3e2d7efe849edc51455030327b059f6c4d292c237f94dc0685031dd11c07dd17a68afde235d6cf2102d949567f98ab58185 - languageName: node - linkType: hard - -"side-channel@npm:^1.1.1": - version: 1.1.1 - resolution: "side-channel@npm:1.1.1" - dependencies: - es-errors: "npm:^1.3.0" - object-inspect: "npm:^1.13.4" - side-channel-list: "npm:^1.0.1" - side-channel-map: "npm:^1.0.1" - side-channel-weakmap: "npm:^1.0.2" - checksum: 10c0/dc0ab81d67f61bda9247d053ce93f41c3fd8ad2bdcb9cf9d8d2f8540d488f26d87a5e99ebfc07eea49ec025867b2452b705442d974b1478f0395e69f6bfb3270 - languageName: node - linkType: hard - -"signal-exit@npm:^4.0.1": - version: 4.1.0 - resolution: "signal-exit@npm:4.1.0" - checksum: 10c0/41602dce540e46d599edba9d9860193398d135f7ff72cab629db5171516cfae628d21e7bfccde1bbfdf11c48726bc2a6d1a8fb8701125852fbfda7cf19c6aa83 - languageName: node - linkType: hard - -"smol-toml@npm:1.9.1": - version: 1.9.1 - resolution: "smol-toml@npm:1.9.1" - checksum: 10c0/8acccf7bbc063f29405f58f5014ab39bf4eb9d7f0e000e5e3f140f7d4d6ead5696681a7c15260d1f2910213012c0af43b31a05bf94f704b0bdf39989fba08c02 - languageName: node - linkType: hard - -"sql.js@npm:1.16.0": - version: 1.16.0 - resolution: "sql.js@npm:1.16.0" - checksum: 10c0/6b16130f79e6bd7b60e9104ab19e816e6370d9d09689e9ac2922367a37d84754dd97b03b8d48f746014dae53867c8c0a065bf52fb828c4585f401ab21520ea52 - languageName: node - linkType: hard - -"statuses@npm:~2.0.1, statuses@npm:~2.0.2": - version: 2.0.2 - resolution: "statuses@npm:2.0.2" - checksum: 10c0/a9947d98ad60d01f6b26727570f3bcceb6c8fa789da64fe6889908fe2e294d57503b14bf2b5af7605c2d36647259e856635cd4c49eab41667658ec9d0080ec3f - languageName: node - linkType: hard - -"string-width@npm:8.3.0": - version: 8.3.0 - resolution: "string-width@npm:8.3.0" - dependencies: - get-east-asian-width: "npm:^1.5.0" - strip-ansi: "npm:^7.1.2" - checksum: 10c0/bc354b27772777c314e6792106f01586e959f36abb3d4b8ad46c4d4ee92d5e906acb10c1f3be97a85ae0ba1b11389094bc5672999fc5f03f12d22a4725fa30fe - languageName: node - linkType: hard - -"string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": - version: 4.2.3 - resolution: "string-width@npm:4.2.3" - dependencies: - emoji-regex: "npm:^8.0.0" - is-fullwidth-code-point: "npm:^3.0.0" - strip-ansi: "npm:^6.0.1" - checksum: 10c0/1e525e92e5eae0afd7454086eed9c818ee84374bb80328fc41217ae72ff5f065ef1c9d7f72da41de40c75fa8bb3dee63d92373fd492c84260a552c636392a47b - languageName: node - linkType: hard - -"strip-ansi@npm:^6.0.0, strip-ansi@npm:^6.0.1": - version: 6.0.1 - resolution: "strip-ansi@npm:6.0.1" - dependencies: - ansi-regex: "npm:^5.0.1" - checksum: 10c0/1ae5f212a126fe5b167707f716942490e3933085a5ff6c008ab97ab2f272c8025d3aa218b7bd6ab25729ca20cc81cddb252102f8751e13482a5199e873680952 - languageName: node - linkType: hard - -"strip-ansi@npm:^7.1.2": - version: 7.2.0 - resolution: "strip-ansi@npm:7.2.0" - dependencies: - ansi-regex: "npm:^6.2.2" - checksum: 10c0/544d13b7582f8254811ea97db202f519e189e59d35740c46095897e254e4f1aa9fe1524a83ad6bc5ad67d4dd6c0281d2e0219ed62b880a6238a16a17d375f221 - languageName: node - linkType: hard - -"strip-json-comments@npm:~3.1.1": - version: 3.1.1 - resolution: "strip-json-comments@npm:3.1.1" - checksum: 10c0/9681a6257b925a7fa0f285851c0e613cc934a50661fa7bb41ca9cbbff89686bb4a0ee366e6ecedc4daafd01e83eee0720111ab294366fe7c185e935475ebcecd - languageName: node - linkType: hard - -"supports-color@npm:^7.1.0": - version: 7.2.0 - resolution: "supports-color@npm:7.2.0" - dependencies: - has-flag: "npm:^4.0.0" - checksum: 10c0/afb4c88521b8b136b5f5f95160c98dee7243dc79d5432db7efc27efb219385bbc7d9427398e43dd6cc730a0f87d5085ce1652af7efbe391327bc0a7d0f7fc124 - languageName: node - linkType: hard - -"tar@npm:^7.5.7": - version: 7.5.23 - resolution: "tar@npm:7.5.23" - dependencies: - "@isaacs/fs-minipass": "npm:^4.0.0" - chownr: "npm:^3.0.0" - minipass: "npm:^7.1.2" - minizlib: "npm:^3.1.0" - yallist: "npm:^5.0.0" - checksum: 10c0/41324dc475f655e6a322729dacac14e3114ed4b18cba350be5d1eb52b1aa2794a1c78c2a5b7f49d3d15f53c058158168121eaf6c5d2f75a0a9565b344bf3a18a - languageName: node - linkType: hard - -"test-exclude@npm:^8.0.0": - version: 8.0.0 - resolution: "test-exclude@npm:8.0.0" - dependencies: - "@istanbuljs/schema": "npm:^0.1.2" - glob: "npm:^13.0.6" - minimatch: "npm:^10.2.2" - checksum: 10c0/f2b613cb5ddc05d1357892f5da965a6f7af42b19a6b2fc30c9b93cb74adf5059a3a9f29818adb75c96c1747b3934caac90a9058f73ce0640ea101de828a11600 - languageName: node - linkType: hard - -"tinyglobby@npm:^0.2.12, tinyglobby@npm:~0.2.17": - version: 0.2.17 - resolution: "tinyglobby@npm:0.2.17" - dependencies: - fdir: "npm:^6.5.0" - picomatch: "npm:^4.0.4" - checksum: 10c0/7f7bb0f197c88bc4b20c231e0deca4240ca3bf313a88f5a7fee93a872b84966a4d50220947c0455ad07a60b3b360961c5b7fd979222aeb716a9f99b412002e4c - languageName: node - linkType: hard - -"toidentifier@npm:~1.0.1": - version: 1.0.1 - resolution: "toidentifier@npm:1.0.1" - checksum: 10c0/93937279934bd66cc3270016dd8d0afec14fb7c94a05c72dc57321f8bd1fa97e5bea6d1f7c89e728d077ca31ea125b78320a616a6c6cd0e6b9cb94cb864381c1 - languageName: node - linkType: hard - -"toml@npm:^4.1.1": - version: 4.3.0 - resolution: "toml@npm:4.3.0" - checksum: 10c0/4a0ad64d4ef0b47f672a7b6bd7e776b9e03ad845998968fb105f8d561c3648eaff0217baca3f562d17e865e5bd7393441a8e54528920f0c171e41fdc8dfb39d6 - languageName: node - linkType: hard - -"tweetnacl@npm:^1.0.3": - version: 1.0.3 - resolution: "tweetnacl@npm:1.0.3" - checksum: 10c0/069d9df51e8ad4a89fbe6f9806c68e06c65be3c7d42f0701cc43dba5f0d6064686b238bbff206c5addef8854e3ce00c643bff59432ea2f2c639feab0ee1a93f9 - languageName: node - linkType: hard - -"type-check@npm:^0.4.0, type-check@npm:~0.4.0": - version: 0.4.0 - resolution: "type-check@npm:0.4.0" - dependencies: - prelude-ls: "npm:^1.2.1" - checksum: 10c0/7b3fd0ed43891e2080bf0c5c504b418fbb3e5c7b9708d3d015037ba2e6323a28152ec163bcb65212741fa5d2022e3075ac3c76440dbd344c9035f818e8ecee58 - languageName: node - linkType: hard - -"type-is@npm:~1.6.18": - version: 1.6.18 - resolution: "type-is@npm:1.6.18" - dependencies: - media-typer: "npm:0.3.0" - mime-types: "npm:~2.1.24" - checksum: 10c0/a23daeb538591b7efbd61ecf06b6feb2501b683ffdc9a19c74ef5baba362b4347e42f1b4ed81f5882a8c96a3bfff7f93ce3ffaf0cbbc879b532b04c97a55db9d - languageName: node - linkType: hard - -"typescript@npm:6.0.3": - version: 6.0.3 - resolution: "typescript@npm:6.0.3" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/4a25ff5045b984370f48f196b3a0120779b1b343d40b9a68d114ea5e5fff099809b2bb777576991a63a5cd59cf7bffd96ff6fe10afcefbcb8bd6fb96ad4b6606 - languageName: node - linkType: hard - -"typescript@patch:typescript@npm%3A6.0.3#optional!builtin<compat/typescript>": - version: 6.0.3 - resolution: "typescript@patch:typescript@npm%3A6.0.3#optional!builtin<compat/typescript>::version=6.0.3&hash=5786d5" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/2f25c74e65663c248fa1ade2b8459d9ce5372ff9dad07067310f132966ebec1d93f6c42f0baf77a6b6a7a91460463f708e6887013aaade22111037457c6b25df - languageName: node - linkType: hard - -"uc.micro@npm:^2.0.0, uc.micro@npm:^2.1.0": - version: 2.1.0 - resolution: "uc.micro@npm:2.1.0" - checksum: 10c0/8862eddb412dda76f15db8ad1c640ccc2f47cdf8252a4a30be908d535602c8d33f9855dfcccb8b8837855c1ce1eaa563f7fa7ebe3c98fd0794351aab9b9c55fa - languageName: node - linkType: hard - -"undici-types@npm:~8.9.0": - version: 8.9.0 - resolution: "undici-types@npm:8.9.0" - checksum: 10c0/51c712c20c087368f62c6fc0f2bc49fa76bfe5dec28ff01584bb677ff29b0622569783c02d43e151143808c48c0503f804093bd2c491b10f2a830138034cb451 - languageName: node - linkType: hard - -"undici@npm:^8.4.1": - version: 8.12.4 - resolution: "undici@npm:8.12.4" - checksum: 10c0/2a83590ce3347ca4e8fb83917bd7ad1d0bcb72ecb6d1a5066f01a89b4941becac569412aa27d7318119ea1a20d217018cce535f8eeed3c1b307d87426f96cfe3 - languageName: node - linkType: hard - -"unpipe@npm:~1.0.0": - version: 1.0.0 - resolution: "unpipe@npm:1.0.0" - checksum: 10c0/193400255bd48968e5c5383730344fbb4fa114cdedfab26e329e50dd2d81b134244bb8a72c6ac1b10ab0281a58b363d06405632c9d49ca9dfd5e90cbd7d0f32c - languageName: node - linkType: hard - -"uri-js@npm:^4.2.2": - version: 4.4.1 - resolution: "uri-js@npm:4.4.1" - dependencies: - punycode: "npm:^2.1.0" - checksum: 10c0/4ef57b45aa820d7ac6496e9208559986c665e49447cb072744c13b66925a362d96dd5a46c4530a6b8e203e5db5fe849369444440cb22ecfc26c679359e5dfa3c - languageName: node - linkType: hard - -"utils-merge@npm:1.0.1": - version: 1.0.1 - resolution: "utils-merge@npm:1.0.1" - checksum: 10c0/02ba649de1b7ca8854bfe20a82f1dfbdda3fb57a22ab4a8972a63a34553cf7aa51bc9081cf7e001b035b88186d23689d69e71b510e610a09a4c66f68aa95b672 - languageName: node - linkType: hard - -"uuid@npm:^14.0.0": - version: 14.0.3 - resolution: "uuid@npm:14.0.3" - bin: - uuid: dist-node/bin/uuid - checksum: 10c0/e56e610ae3bd1ca099244e01ee5eff502675ede4601d971b80fff993ad97236c80197340113f759e6ead501ee6a8d52648f6deef1332ce9f192c4720f4891f62 - languageName: node - linkType: hard - -"v8-to-istanbul@npm:^9.0.0": - version: 9.3.0 - resolution: "v8-to-istanbul@npm:9.3.0" - dependencies: - "@jridgewell/trace-mapping": "npm:^0.3.12" - "@types/istanbul-lib-coverage": "npm:^2.0.1" - convert-source-map: "npm:^2.0.0" - checksum: 10c0/968bcf1c7c88c04df1ffb463c179558a2ec17aa49e49376120504958239d9e9dad5281aa05f2a78542b8557f2be0b0b4c325710262f3b838b40d703d5ed30c23 - languageName: node - linkType: hard - -"vary@npm:~1.1.2": - version: 1.1.2 - resolution: "vary@npm:1.1.2" - checksum: 10c0/f15d588d79f3675135ba783c91a4083dcd290a2a5be9fcb6514220a1634e23df116847b1cc51f66bfb0644cf9353b2abb7815ae499bab06e46dd33c1a6bf1f4f - languageName: node - linkType: hard - -"viem@npm:^2.48.11": - version: 2.57.11 - resolution: "viem@npm:2.57.11" - dependencies: - "@noble/curves": "npm:1.9.1" - "@noble/hashes": "npm:1.8.0" - "@scure/bip32": "npm:1.7.0" - "@scure/bip39": "npm:1.6.0" - abitype: "npm:1.2.3" - isows: "npm:1.0.7" - ox: "npm:0.14.57" - ws: "npm:8.21.0" - peerDependencies: - typescript: ">=5.0.4" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10c0/79a8347fbec3bea4e1761747c9d54fdadb3c4be76f35b7b4f28bc26b080f0c736087ea5734d8a192caa5c1670a99d5820a98b3789ccb22e09db761c13a1a431f - languageName: node - linkType: hard - -"which@npm:^2.0.1": - version: 2.0.2 - resolution: "which@npm:2.0.2" - dependencies: - isexe: "npm:^2.0.0" - bin: - node-which: ./bin/node-which - checksum: 10c0/66522872a768b60c2a65a57e8ad184e5372f5b6a9ca6d5f033d4b0dc98aff63995655a7503b9c0a2598936f532120e81dd8cc155e2e92ed662a2b9377cc4374f - languageName: node - linkType: hard - -"which@npm:^7.0.0": - version: 7.0.0 - resolution: "which@npm:7.0.0" - dependencies: - isexe: "npm:^4.0.0" - bin: - node-which: bin/which.js - checksum: 10c0/ca0b54f198f78bbc4b7c02e34bda8d335cb352e0adb4cbca1c37b1a957af3a879a82c4c27ca6525bc942f548d8b64f816ef6528360af9f3de55ffb9b979b620d - languageName: node - linkType: hard - -"word-wrap@npm:^1.2.5": - version: 1.2.5 - resolution: "word-wrap@npm:1.2.5" - checksum: 10c0/e0e4a1ca27599c92a6ca4c32260e8a92e8a44f4ef6ef93f803f8ed823f486e0889fc0b93be4db59c8d51b3064951d25e43d434e95dc8c960cc3a63d65d00ba20 - languageName: node - linkType: hard - -"wrap-ansi@npm:^7.0.0": - version: 7.0.0 - resolution: "wrap-ansi@npm:7.0.0" - dependencies: - ansi-styles: "npm:^4.0.0" - string-width: "npm:^4.1.0" - strip-ansi: "npm:^6.0.0" - checksum: 10c0/d15fc12c11e4cbc4044a552129ebc75ee3f57aa9c1958373a4db0292d72282f54373b536103987a4a7594db1ef6a4f10acf92978f79b98c49306a4b58c77d4da - languageName: node - linkType: hard - -"ws@npm:8.21.0": - version: 8.21.0 - resolution: "ws@npm:8.21.0" - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ">=5.0.2" - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - checksum: 10c0/ef4a243476283fc49bc7550966c4af4aa0eef56273837211e700de3b664e08604a760cdddcb5ba43c049140e74ccfec5b0ee0bb439e08c2adf9138902fdde5f9 - languageName: node - linkType: hard - -"y18n@npm:^5.0.5": - version: 5.0.8 - resolution: "y18n@npm:5.0.8" - checksum: 10c0/4df2842c36e468590c3691c894bc9cdbac41f520566e76e24f59401ba7d8b4811eb1e34524d57e54bc6d864bcb66baab7ffd9ca42bf1eda596618f9162b91249 - languageName: node - linkType: hard - -"yallist@npm:^5.0.0": - version: 5.0.0 - resolution: "yallist@npm:5.0.0" - checksum: 10c0/a499c81ce6d4a1d260d4ea0f6d49ab4da09681e32c3f0472dee16667ed69d01dae63a3b81745a24bd78476ec4fcf856114cb4896ace738e01da34b2c42235416 - languageName: node - linkType: hard - -"yaml@npm:^2.9.0": - version: 2.9.1 - resolution: "yaml@npm:2.9.1" - bin: - yaml: bin.mjs - checksum: 10c0/9d06676ef02b89559a8b10a71882bd2cdae81e8393dc8dbc871615c3259475d9609ad973d19cb3c9e71e72d6206e3d1e7aa241c7e55f3d16fd2e77db305827d6 - languageName: node - linkType: hard - -"yargs-parser@npm:^21.1.1": - version: 21.1.1 - resolution: "yargs-parser@npm:21.1.1" - checksum: 10c0/f84b5e48169479d2f402239c59f084cfd1c3acc197a05c59b98bab067452e6b3ea46d4dd8ba2985ba7b3d32a343d77df0debd6b343e5dae3da2aab2cdf5886b2 - languageName: node - linkType: hard - -"yargs@npm:^17.7.2": - version: 17.7.2 - resolution: "yargs@npm:17.7.2" - dependencies: - cliui: "npm:^8.0.1" - escalade: "npm:^3.1.1" - get-caller-file: "npm:^2.0.5" - require-directory: "npm:^2.1.1" - string-width: "npm:^4.2.3" - y18n: "npm:^5.0.5" - yargs-parser: "npm:^21.1.1" - checksum: 10c0/ccd7e723e61ad5965fffbb791366db689572b80cca80e0f96aad968dfff4156cd7cd1ad18607afe1046d8241e6fb2d6c08bf7fa7bfb5eaec818735d8feac8f05 - languageName: node - linkType: hard - -"yocto-queue@npm:^0.1.0": - version: 0.1.0 - resolution: "yocto-queue@npm:0.1.0" - checksum: 10c0/dceb44c28578b31641e13695d200d34ec4ab3966a5729814d5445b194933c096b7ced71494ce53a0e8820685d1d010df8b2422e5bf2cdea7e469d97ffbea306f - languageName: node - linkType: hard - -"zod@npm:4.6.7": - version: 4.6.7 - resolution: "zod@npm:4.6.7" - checksum: 10c0/4ce2eb14034317b7254e347ca37b5ad591cf8333147030cf05b9b5d31692d45073f7f2747aa50cf8c6b29012194d2b22978cecc89969cf34a0d18e89d0ee7d7b - languageName: node - linkType: hard +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@adraffy/ens-normalize@^1.11.0": + version "1.11.1" + resolved "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.1.tgz" + integrity sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ== + +"@bcoe/v8-coverage@^1.0.1": + version "1.0.2" + resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz" + integrity sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA== + +"@cacheable/memory@^2.2.0": + version "2.2.0" + resolved "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz" + integrity sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ== + dependencies: + "@cacheable/utils" "^2.5.0" + "@keyv/bigmap" "^1.3.1" + hookified "^1.15.1" + keyv "^5.6.0" + +"@cacheable/utils@^2.5.0": + version "2.5.0" + resolved "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz" + integrity sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA== + dependencies: + hashery "^1.5.1" + keyv "^5.6.0" + +"@eslint-community/eslint-utils@^4.8.0": + version "4.9.1" + resolved "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz" + integrity sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ== + dependencies: + eslint-visitor-keys "^3.4.3" + +"@eslint-community/regexpp@^4.12.2": + version "4.12.2" + resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz" + integrity sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew== + +"@eslint/config-array@^0.23.6": + version "0.23.6" + resolved "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.6.tgz" + integrity sha512-WrTH7nioI9QPY4NZGnsywmecswJdgeq4BCM76qok9VgjTO29ZgUzUvcuJLVPYVQM4uDbaPBU0M33R9DIxI8X3w== + dependencies: + "@eslint/object-schema" "^3.0.5" + debug "^4.3.1" + minimatch "^11.0.5" + +"@eslint/config-helpers@^0.7.0": + version "0.7.0" + resolved "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz" + integrity sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw== + dependencies: + "@eslint/core" "^1.2.1" + +"@eslint/core@^1.2.1": + version "1.2.1" + resolved "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz" + integrity sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ== + dependencies: + "@types/json-schema" "^7.0.15" + +"@eslint/js@9.39.2": + version "9.39.2" + resolved "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz" + integrity sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA== + +"@eslint/object-schema@^3.0.5": + version "3.0.5" + resolved "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz" + integrity sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw== + +"@eslint/plugin-kit@^0.7.3": + version "0.7.3" + resolved "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz" + integrity sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q== + dependencies: + "@eslint/core" "^1.2.1" + levn "^0.4.1" + +"@humanfs/core@^0.19.2": + version "0.19.2" + resolved "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz" + integrity sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA== + dependencies: + "@humanfs/types" "^0.15.0" + +"@humanfs/node@0.16.8": + version "0.16.8" + resolved "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz" + integrity sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ== + dependencies: + "@humanfs/core" "^0.19.2" + "@humanfs/types" "^0.15.0" + "@humanwhocodes/retry" "^0.4.0" + +"@humanfs/types@^0.15.0": + version "0.15.0" + resolved "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz" + integrity sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q== + +"@humanwhocodes/module-importer@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz" + integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== + +"@humanwhocodes/retry@^0.4.0", "@humanwhocodes/retry@^0.4.2": + version "0.4.3" + resolved "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz" + integrity sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ== + +"@iarna/toml@2.2.5": + version "2.2.5" + resolved "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz" + integrity sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg== + +"@isaacs/nonrecursive-glob-match@^1.0.2": + version "1.1.0" + resolved "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz" + integrity sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw== + +"@istanbuljs/schema@^0.1.2", "@istanbuljs/schema@^0.1.3": + version "0.1.3" + resolved "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz" + integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== + +"@jridgewell/resolve-uri@^3.1.0": + version "3.1.2" + resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== + +"@jridgewell/sourcemap-codec@^1.4.14": + version "1.5.5" + resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz" + integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== + +"@jridgewell/trace-mapping@^0.3.12": + version "0.3.31" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz" + integrity sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + +"@keyv/bigmap@^1.3.1": + version "1.3.1" + resolved "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz" + integrity sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ== + dependencies: + hashery "^1.4.0" + hookified "^1.15.0" + +"@keyv/serialize@^1.1.1": + version "1.1.1" + resolved "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz" + integrity sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA== + +"@noble/ciphers@^1.3.0": + version "1.3.0" + resolved "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz" + integrity sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw== + +"@noble/curves@^1.9.0", "@noble/curves@~1.9.0": + version "1.9.7" + resolved "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz" + integrity sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw== + dependencies: + "@noble/hashes" "1.8.0" + +"@noble/curves@1.9.1": + version "1.9.1" + resolved "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz" + integrity sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA== + dependencies: + "@noble/hashes" "1.8.0" + +"@noble/hashes@^1.7.0", "@noble/hashes@^1.8.0", "@noble/hashes@~1.8.0", "@noble/hashes@1.8.0": + version "1.8.0" + resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz" + integrity sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A== + +"@opencode-ai/plugin@1.4.3": + version "1.4.3" + resolved "https://registry.npmjs.org/@opencode-ai/plugin/-/plugin-1.4.3.tgz" + integrity sha512-Ob/3tVSIeuMRJBr2O23RtrnC5djRe01Lglx+TwGEmjrH9yDBJ2tftegYLnNEjRoMuzITgq9LD8168p4pzv+U/A== + dependencies: + "@opencode-ai/sdk" "1.4.3" + zod "4.1.8" + +"@opencode-ai/sdk@1.4.3": + version "1.4.3" + resolved "https://registry.npmjs.org/@opencode-ai/sdk/-/sdk-1.4.3.tgz" + integrity sha512-X0CAVbwoGAjTY2iecpWkx2B+GAa2jSaQKYpJ+xILopeF/OGKZUN15mjqci+L7cEuwLHV5wk3x2TStUOVCa5p0A== + dependencies: + cross-spawn "7.0.6" + +"@scure/base@^1.2.6", "@scure/base@~1.2.5": + version "1.2.6" + resolved "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz" + integrity sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg== + +"@scure/bip32@^1.7.0", "@scure/bip32@1.7.0": + version "1.7.0" + resolved "https://registry.npmjs.org/@scure/bip32/-/bip32-1.7.0.tgz" + integrity sha512-E4FFX/N3f4B80AKWp5dP6ow+flD1LQZo/w8UnLGYZO674jS6YnYeepycOOksv+vLPSpgN35wgKgy+ybfTb2SMw== + dependencies: + "@noble/curves" "~1.9.0" + "@noble/hashes" "~1.8.0" + "@scure/base" "~1.2.5" + +"@scure/bip39@^1.6.0", "@scure/bip39@1.6.0": + version "1.6.0" + resolved "https://registry.npmjs.org/@scure/bip39/-/bip39-1.6.0.tgz" + integrity sha512-+lF0BbLiJNwVlev4eKelw1WWLaiKXw7sSl8T6FvBlWkdX+94aGJ4o8XjUdlyhTCjd8c+B3KT3JfS8P0bLRNU6A== + dependencies: + "@noble/hashes" "~1.8.0" + "@scure/base" "~1.2.5" + +"@signinwithethereum/siwe-parser@^4.2.1": + version "4.2.1" + resolved "https://registry.npmjs.org/@signinwithethereum/siwe-parser/-/siwe-parser-4.2.1.tgz" + integrity sha512-GAdwNiBaRpUMTiFfPrbQ3e/RBhPbEhRRN1sZmDMLgLEZuKqKwO7V0ksVzCerE9l8HFKTNw5R/q3kPDCWJRz4zA== + dependencies: + "@noble/hashes" "^1.7.0" + apg-js "^4.4.0" + +"@signinwithethereum/siwe@^4.1.0": + version "4.2.1" + resolved "https://registry.npmjs.org/@signinwithethereum/siwe/-/siwe-4.2.1.tgz" + integrity sha512-CQEQhCIgN9blil1YpaGR+wvGPdsBVK6zed5DBu03s1IdbSO3kA/n7Zp+SAkZGiHy3HY6OJm1Su0/Bd33vKK6nQ== + dependencies: + "@signinwithethereum/siwe-parser" "^4.2.1" + +"@types/debug@^4.0.0": + version "4.1.13" + resolved "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz" + integrity sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw== + dependencies: + "@types/ms" "*" + +"@types/esrecurse@^4.3.1": + version "4.3.1" + resolved "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz" + integrity sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw== + +"@types/estree@^1.0.6", "@types/estree@^1.0.8": + version "1.0.8" + resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz" + integrity sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w== + +"@types/istanbul-lib-coverage@^2.0.1": + version "2.0.6" + resolved "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz" + integrity sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w== + +"@types/json-schema@^7.0.15": + version "7.0.15" + resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz" + integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== + +"@types/katex@^0.16.0": + version "0.16.8" + resolved "https://registry.npmjs.org/@types/katex/-/katex-0.16.8.tgz" + integrity sha512-trgaNyfU+Xh2Tc+ABIb44a5AYUpicB3uwirOioeOkNPPbmgRNtcWyDeeFRzjPZENO9Vq8gvVqfhaaXWLlevVwg== + +"@types/ms@*": + version "2.1.0" + resolved "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz" + integrity sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA== + +"@types/node@26.6.6": + version "26.6.6" + resolved "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz" + integrity sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog== + dependencies: + undici-types "~8.9.0" + +"@types/unist@^2.0.0": + version "2.0.11" + resolved "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz" + integrity sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA== + +"@x402/core@~2.31.0", "@x402/core@2.31.0": + version "2.31.0" + resolved "https://registry.npmjs.org/@x402/core/-/core-2.31.0.tgz" + integrity sha512-7ToCOwHfftfFEERW5Mp6Fc5U1+JrtCLTkbQnEVsBl13IutltP9lWIBYi/J+zy8vQWaLUmACq8A2qywzdt/RRIQ== + dependencies: + zod "^4.6.6" + +"@x402/evm@2.31.0": + version "2.31.0" + resolved "https://registry.npmjs.org/@x402/evm/-/evm-2.31.0.tgz" + integrity sha512-CCOqou/7f0/5kKQXlcVvWbiVnFmk/CqaSCs8YkJ2GPzxDYoQD13iKAjo0Uv7y/dVlkkOH0p/eJVxgcrO6aagbw== + dependencies: + "@x402/core" "~2.31.0" + viem "^2.48.11" + zod "^4.6.6" + +"@x402/express@2.31.0": + version "2.31.0" + resolved "https://registry.npmjs.org/@x402/express/-/express-2.31.0.tgz" + integrity sha512-hUumfQGb8mNdwkpLAZuuoHCJ3p5gNtu5/yRaZNRNqQILp155Ur2tJQCizPQZR1XNsZ6mXwJG4+5rE1iW0f/9sg== + dependencies: + "@x402/core" "~2.31.0" + "@x402/extensions" "~2.31.0" + +"@x402/extensions@~2.31.0": + version "2.31.0" + resolved "https://registry.npmjs.org/@x402/extensions/-/extensions-2.31.0.tgz" + integrity sha512-hFq11UtXNWPirZSZjZuWFHvjetYvFQmkQSZcNEMaQYxOz70ZLNFmIdXfG2J/B8YGE2nS2d223Hz9Lnkrxw+Sqw== + dependencies: + "@noble/curves" "^1.9.0" + "@scure/base" "^1.2.6" + "@signinwithethereum/siwe" "^4.1.0" + "@x402/core" "~2.31.0" + ajv "^8.18.0" + jose "^5.9.6" + tweetnacl "^1.0.3" + viem "^2.48.11" + zod "^4.6.6" + +abitype@^1.2.3, abitype@1.2.3: + version "1.2.3" + resolved "https://registry.npmjs.org/abitype/-/abitype-1.2.3.tgz" + integrity sha512-Ofer5QUnuUdTFsBRwARMoWKOH1ND5ehwYhJ3OJ/BQO+StkwQjHw0XyVh4vDttzHB7QOFhPHa/o413PJ82gU/Tg== + +accepts@~1.3.8: + version "1.3.8" + resolved "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + +acorn-jsx@^5.3.2: + version "5.3.2" + resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + +"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.16.0: + version "8.17.0" + resolved "https://registry.npmjs.org/acorn/-/acorn-8.17.0.tgz" + integrity sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg== + +ajv@^6.14.0: + version "6.14.0" + resolved "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz" + integrity sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ajv@^8.18.0, ajv@8.20.0: + version "8.20.0" + resolved "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz" + integrity sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA== + dependencies: + fast-deep-equal "^3.1.3" + fast-uri "^3.0.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-regex@^6.2.2: + version "6.6.0" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz" + integrity sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g== + +ansi-styles@^4.0.0: + version "4.3.0" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +apg-js@^4.4.0: + version "4.4.0" + resolved "https://registry.npmjs.org/apg-js/-/apg-js-4.4.0.tgz" + integrity sha512-fefmXFknJmtgtNEXfPwZKYkMFX4Fyeyz+fNF6JWp87biGOPslJbCBVU158zvKRZfHBKnJDy8CMM40oLFGkXT8Q== + +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + +argparse@^3.0.3: + version "3.0.4" + resolved "https://registry.npmjs.org/argparse/-/argparse-3.0.4.tgz" + integrity sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA== + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz" + integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== + +balanced-match@^4.0.2: + version "4.0.4" + resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz" + integrity sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA== + +body-parser@~1.20.5: + version "1.20.9" + resolved "https://registry.npmjs.org/body-parser/-/body-parser-1.20.9.tgz" + integrity sha512-FISIQxV5u91Y9gvuFq3q/tA/qTqLJn3AhRcEvyozyhJTh5OBFFtv827AdHU7Rbyct4r+Ba1/99oFa1Y3yuFsdw== + dependencies: + bytes "~3.1.2" + content-type "~1.0.5" + debug "2.6.9" + depd "2.0.0" + destroy "~1.2.0" + http-errors "~2.0.1" + iconv-lite "~0.4.24" + on-finished "~2.4.1" + qs "~6.16.0" + raw-body "~2.5.3" + type-is "~1.6.18" + unpipe "~1.0.0" + +brace-expansion@5.0.12: + version "5.0.12" + resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz" + integrity sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ== + dependencies: + balanced-match "^4.0.2" + +bytes@~3.1.2: + version "3.1.2" + resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== + +c8@11.0.0: + version "11.0.0" + resolved "https://registry.npmjs.org/c8/-/c8-11.0.0.tgz" + integrity sha512-e/uRViGHSVIJv7zsaDKM7VRn2390TgHXqUSvYwPHBQaU6L7E9L0n9JbdkwdYPvshDT0KymBmmlwSpms3yBaMNg== + dependencies: + "@bcoe/v8-coverage" "^1.0.1" + "@istanbuljs/schema" "^0.1.3" + find-up "^5.0.0" + foreground-child "^3.1.1" + istanbul-lib-coverage "^3.2.0" + istanbul-lib-report "^3.0.1" + istanbul-reports "^3.1.6" + test-exclude "^8.0.0" + v8-to-istanbul "^9.0.0" + yargs "^17.7.2" + yargs-parser "^21.1.1" + +cacheable@^2.5.0: + version "2.5.0" + resolved "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz" + integrity sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g== + dependencies: + "@cacheable/memory" "^2.2.0" + "@cacheable/utils" "^2.5.0" + hookified "^1.15.0" + keyv "^5.6.0" + qified "^0.10.1" + +call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz" + integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + +call-bound@^1.0.2: + version "1.0.4" + resolved "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz" + integrity sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== + dependencies: + call-bind-apply-helpers "^1.0.2" + get-intrinsic "^1.3.0" + +character-entities-legacy@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz" + integrity sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ== + +character-entities@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz" + integrity sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ== + +character-reference-invalid@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz" + integrity sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw== + +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +commander@^8.3.0: + version "8.3.0" + resolved "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz" + integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== + +commander@~15.0.0: + version "15.0.0" + resolved "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz" + integrity sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg== + +content-disposition@~0.5.4: + version "0.5.4" + resolved "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz" + integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== + dependencies: + safe-buffer "5.2.1" + +content-type@~1.0.4, content-type@~1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz" + integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== + +convert-source-map@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz" + integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== + +cookie-signature@~1.0.6: + version "1.0.7" + resolved "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz" + integrity sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA== + +cookie@~0.7.1: + version "0.7.2" + resolved "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz" + integrity sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w== + +cross-spawn@^7.0.6, cross-spawn@7.0.6: + version "7.0.6" + resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz" + integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +debug@^4.0.0, debug@^4.3.1, debug@^4.3.2: + version "4.4.3" + resolved "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz" + integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== + dependencies: + ms "^2.1.3" + +debug@2.6.9: + version "2.6.9" + resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +decode-named-character-reference@^1.0.0: + version "1.3.0" + resolved "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz" + integrity sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q== + dependencies: + character-entities "^2.0.0" + +deep-extend@^0.6.0, deep-extend@~0.6.0: + version "0.6.0" + resolved "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + +deep-is@^0.1.3: + version "0.1.4" + resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + +depd@~2.0.0, depd@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== + +dequal@^2.0.0: + version "2.0.3" + resolved "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz" + integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== + +destroy@~1.2.0, destroy@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" + integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== + +devlop@^1.0.0: + version "1.1.0" + resolved "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz" + integrity sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA== + dependencies: + dequal "^2.0.0" + +dunder-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz" + integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== + dependencies: + call-bind-apply-helpers "^1.0.1" + es-errors "^1.3.0" + gopd "^1.2.0" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +encodeurl@~2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.1.tgz" + integrity sha512-Ev/hIyePLZtpL98x562lvPtenrUfGr0lfaf44HFZ+hDEwso7ccV9QAZrEVLg0hxNAzygaAFxy2dYaAKKM0G06A== + +entities@^4.5.0: + version "4.5.0" + resolved "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz" + integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== + +es-define-property@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz" + integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + +es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: + version "1.1.2" + resolved "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz" + integrity sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw== + dependencies: + es-errors "^1.3.0" + +escalade@^3.1.1: + version "3.2.0" + resolved "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== + +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +eslint-scope@^9.1.2: + version "9.1.2" + resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz" + integrity sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ== + dependencies: + "@types/esrecurse" "^4.3.1" + "@types/estree" "^1.0.8" + esrecurse "^4.3.0" + estraverse "^5.2.0" + +eslint-visitor-keys@^3.4.3: + version "3.4.3" + resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== + +eslint-visitor-keys@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz" + integrity sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA== + +"eslint@^6.0.0 || ^7.0.0 || >=8.0.0", eslint@10.15.0: + version "10.15.0" + resolved "https://registry.npmjs.org/eslint/-/eslint-10.15.0.tgz" + integrity sha512-+5Wg4p+ze3sG1WErYgUO/3H1IQIfFBymVUA0Fo/XTeBOLS6UQIUekpSJ8sdRkn7O7wjh84b55w/roqavH2aScg== + dependencies: + "@eslint-community/eslint-utils" "^4.8.0" + "@eslint-community/regexpp" "^4.12.2" + "@eslint/config-array" "^0.23.6" + "@eslint/config-helpers" "^0.7.0" + "@eslint/core" "^1.2.1" + "@eslint/plugin-kit" "^0.7.3" + "@humanfs/node" "^0.16.8" + "@humanwhocodes/module-importer" "^1.0.1" + "@humanwhocodes/retry" "^0.4.2" + "@types/estree" "^1.0.6" + ajv "^6.14.0" + cross-spawn "^7.0.6" + debug "^4.3.2" + escape-string-regexp "^4.0.0" + eslint-scope "^9.1.2" + eslint-visitor-keys "^5.0.1" + espree "^11.2.0" + esquery "^1.7.0" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "11.1.5 || >11.1.6 <12" + find-up "^5.0.0" + glob-parent "^6.0.2" + ignore "^5.2.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + json-stable-stringify-without-jsonify "^1.0.1" + minimatch "^11.0.5" + natural-compare "^1.4.0" + optionator "^0.9.3" + +espree@^11.2.0: + version "11.2.0" + resolved "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz" + integrity sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw== + dependencies: + acorn "^8.16.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^5.0.1" + +esquery@^1.7.0: + version "1.7.0" + resolved "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz" + integrity sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g== + dependencies: + estraverse "^5.1.0" + +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + +estraverse@^5.1.0, estraverse@^5.2.0: + version "5.3.0" + resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz" + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== + +eventemitter3@5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz" + integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== + +"express@^4.22.3 || ^5.3.0", express@4.22.3: + version "4.22.3" + resolved "https://registry.npmjs.org/express/-/express-4.22.3.tgz" + integrity sha512-Bdcs4+3qlpVlx2NRn6fgX2Ue2/gGRaPeawebgclM0ERSCqDpA+owF1fdPwjJUTAJWMTuAaxjDf+hzb0/4eKvvw== + dependencies: + accepts "~1.3.8" + array-flatten "1.1.1" + body-parser "~1.20.5" + content-disposition "~0.5.4" + content-type "~1.0.4" + cookie "~0.7.1" + cookie-signature "~1.0.6" + debug "2.6.9" + depd "2.0.0" + encodeurl "~2.0.0" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "~1.3.1" + fresh "~0.5.2" + http-errors "~2.0.0" + merge-descriptors "1.0.3" + methods "~1.1.2" + on-finished "~2.4.1" + parseurl "~1.3.3" + path-to-regexp "~0.1.13" + proxy-addr "~2.0.7" + qs "~6.16.0" + range-parser "~1.2.1" + safe-buffer "5.2.1" + send "~0.19.0" + serve-static "~1.16.2" + setprototypeof "1.2.0" + statuses "~2.0.1" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" + +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: + version "3.1.3" + resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fast-levenshtein@^2.0.6: + version "2.0.6" + resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + +fast-uri@3.1.9: + version "3.1.9" + resolved "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz" + integrity sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ== + +fdir@^6.5.0: + version "6.5.0" + resolved "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz" + integrity sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg== + +"file-entry-cache@11.1.5 || >11.1.6 <12": + version "11.1.5" + resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz" + integrity sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q== + dependencies: + flat-cache "^6.1.23" + +finalhandler@~1.3.1: + version "1.3.2" + resolved "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz" + integrity sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg== + dependencies: + debug "2.6.9" + encodeurl "~2.0.0" + escape-html "~1.0.3" + on-finished "~2.4.1" + parseurl "~1.3.3" + statuses "~2.0.2" + unpipe "~1.0.0" + +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + +flat-cache@^6.1.23: + version "6.1.23" + resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz" + integrity sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA== + dependencies: + cacheable "^2.5.0" + flatted "^3.4.2" + hookified "^1.15.0" + +flatted@^3.4.2: + version "3.4.4" + resolved "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz" + integrity sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q== + +foreground-child@^3.1.1: + version "3.3.1" + resolved "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz" + integrity sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw== + dependencies: + cross-spawn "^7.0.6" + signal-exit "^4.0.1" + +forwarded@0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz" + integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== + +fresh@~0.5.2: + version "0.5.2" + resolved "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-east-asian-width@^1.5.0: + version "1.7.0" + resolved "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz" + integrity sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q== + +get-intrinsic@^1.2.5, get-intrinsic@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz" + integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== + dependencies: + call-bind-apply-helpers "^1.0.2" + es-define-property "^1.0.1" + es-errors "^1.3.0" + es-object-atoms "^1.1.1" + function-bind "^1.1.2" + get-proto "^1.0.1" + gopd "^1.2.0" + has-symbols "^1.1.0" + hasown "^2.0.2" + math-intrinsics "^1.1.0" + +get-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz" + integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== + dependencies: + dunder-proto "^1.0.1" + es-object-atoms "^1.0.0" + +glob-parent@^6.0.2: + version "6.0.2" + resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + +glob@14.0.3: + version "14.0.3" + resolved "https://registry.npmjs.org/glob/-/glob-14.0.3.tgz" + integrity sha512-A1vjIwC3qpdCso45Iw127gnp7sPhqgY8lUQhDrArIs+GbmfaaVPFuoyy7WyLT9EPZCRZ7j7aLdwUhQmHWesEow== + dependencies: + minimatch "^11.0.2" + minipass "^7.1.3" + path-scurry "^3.0.0" + +globals@17.14.0: + version "17.14.0" + resolved "https://registry.npmjs.org/globals/-/globals-17.14.0.tgz" + integrity sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg== + +gopd@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz" + integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-symbols@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz" + integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== + +hashery@^1.4.0, hashery@^1.5.1: + version "1.5.1" + resolved "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz" + integrity sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ== + dependencies: + hookified "^1.15.0" + +hasown@^2.0.2: + version "2.0.4" + resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz" + integrity sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A== + dependencies: + function-bind "^1.1.2" + +hookified@^1.15.0, hookified@^1.15.1: + version "1.15.1" + resolved "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz" + integrity sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg== + +hookified@^2.1.1: + version "2.2.0" + resolved "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz" + integrity sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA== + +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + +http-errors@~2.0.0, http-errors@~2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz" + integrity sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ== + dependencies: + depd "~2.0.0" + inherits "~2.0.4" + setprototypeof "~1.2.0" + statuses "~2.0.2" + toidentifier "~1.0.1" + +iconv-lite@~0.4.24: + version "0.4.24" + resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ignore@^5.2.0: + version "5.3.2" + resolved "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz" + integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== + +ignore@~7.0.13: + version "7.0.14" + resolved "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz" + integrity sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ== + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" + integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== + +inherits@~2.0.4: + version "2.0.4" + resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +ini@~7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/ini/-/ini-7.0.0.tgz" + integrity sha512-ifK0CgjALofS5bkrcTy4RaQ9Vx2Knf/eLeIO+NaswQEpH1UblrtTSCIvN71qQDMq0PeQ/SSPojvEJp9vvvfr+w== + +ipaddr.js@1.9.1: + version "1.9.1" + resolved "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz" + integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== + +is-alphabetical@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz" + integrity sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ== + +is-alphanumerical@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz" + integrity sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw== + dependencies: + is-alphabetical "^2.0.0" + is-decimal "^2.0.0" + +is-decimal@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz" + integrity sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A== + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-glob@^4.0.0, is-glob@^4.0.3: + version "4.0.3" + resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-hexadecimal@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz" + integrity sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== + +isows@1.0.7: + version "1.0.7" + resolved "https://registry.npmjs.org/isows/-/isows-1.0.7.tgz" + integrity sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg== + +istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: + version "3.2.2" + resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz" + integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== + +istanbul-lib-report@^3.0.0, istanbul-lib-report@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz" + integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== + dependencies: + istanbul-lib-coverage "^3.0.0" + make-dir "^4.0.0" + supports-color "^7.1.0" + +istanbul-reports@^3.1.6: + version "3.2.0" + resolved "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz" + integrity sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA== + dependencies: + html-escaper "^2.0.0" + istanbul-lib-report "^3.0.0" + +jose@^5.9.6: + version "5.10.0" + resolved "https://registry.npmjs.org/jose/-/jose-5.10.0.tgz" + integrity sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg== + +js-yaml@5.5.0: + version "5.5.0" + resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-5.5.0.tgz" + integrity sha512-paNr4LFIFPjeeSmwNYdrb8FafLLG/Cr2Af3GjbsHJ5CxIjH4r0c2emlmRdAtpPAieP1gRVzk6buBbVP5gBMGAg== + dependencies: + argparse "^3.0.3" + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== + +jsonc-parser@~3.3.1: + version "3.3.1" + resolved "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz" + integrity sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ== + +jsonpointer@~5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz" + integrity sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ== + +katex@0.18.2: + version "0.18.2" + resolved "https://registry.npmjs.org/katex/-/katex-0.18.2.tgz" + integrity sha512-3snve4y0SXTMequLim1FMiPvLGElySam0blN5xQZBqEY3lOJz1TnuaaiugnBZBqHzlSAGmFTYL7MCQkORuLKCA== + dependencies: + commander "^8.3.0" + +keyv@^5.6.0: + version "5.6.0" + resolved "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz" + integrity sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw== + dependencies: + "@keyv/serialize" "^1.1.1" + +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + +linkify-it@^5.0.2: + version "5.0.2" + resolved "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz" + integrity sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q== + dependencies: + uc.micro "^2.0.0" + +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + +lru-cache@^11.0.0: + version "11.5.3" + resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz" + integrity sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg== + +make-dir@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz" + integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== + dependencies: + semver "^7.5.3" + +markdown-it@14.3.3: + version "14.3.3" + resolved "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.3.tgz" + integrity sha512-L//tDAkjTjJCU6pBUSBTgs3Kg4InVaZuUZog/b6V12UKhcDQ7S78877ibbCanRExwPuYP1CZD7Gd2dxSy1GXRg== + dependencies: + argparse "^2.0.1" + entities "^4.5.0" + linkify-it "^5.0.2" + mdurl "^2.0.0" + punycode.js "^2.3.1" + uc.micro "^2.1.0" + +markdownlint-cli@0.50.0: + version "0.50.0" + resolved "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.50.0.tgz" + integrity sha512-4GqP/CqpF74ihrlLTOPc3I5b/tZabiiKnIVQ27xTzsS4hjU3oIHKg1YBzWP7fsa9AH48LPF0KcmCqDccpSeMEg== + dependencies: + commander "~15.0.0" + deep-extend "~0.6.0" + ignore "~7.0.13" + js-yaml "~5.5.0" + jsonc-parser "~3.3.1" + jsonpointer "~5.0.1" + markdown-it "~15.0.3" + markdownlint "~0.42.0" + minimatch "~10.2.6" + run-con "~1.3.3" + smol-toml "~1.9.1" + tinyglobby "~0.2.17" + +markdownlint@~0.42.0: + version "0.42.1" + resolved "https://registry.npmjs.org/markdownlint/-/markdownlint-0.42.1.tgz" + integrity sha512-Otolm9JX12iO2NG5cetlKfzGygpiLSlHuqXKxoT6HGhN5HtbxprJPicKZqqCQd88qOvUi/TEs3o1AmcYioVscA== + dependencies: + micromark "4.0.3" + micromark-core-commonmark "2.0.4" + micromark-extension-directive "4.0.0" + micromark-extension-gfm-autolink-literal "2.1.0" + micromark-extension-gfm-footnote "2.1.0" + micromark-extension-gfm-table "2.1.2" + micromark-extension-math "3.1.0" + micromark-util-types "2.0.3" + re2js "2.9.1" + string-width "8.3.0" + +math-intrinsics@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz" + integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== + +mdurl@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz" + integrity sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w== + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" + integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== + +merge-descriptors@1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz" + integrity sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ== + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz" + integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== + +micromark-core-commonmark@^2.0.0, micromark-core-commonmark@2.0.4: + version "2.0.4" + resolved "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.4.tgz" + integrity sha512-wxEeE8v8XVvOrxn1TZj74qYhAtTQsSqufHVS3uNVyT1MupXxhyaHk8/9xDNPh9BmL77QNDgWTkZ3RsYHB2ry7w== + dependencies: + decode-named-character-reference "^1.0.0" + devlop "^1.0.0" + micromark-factory-destination "^2.0.0" + micromark-factory-label "^2.0.0" + micromark-factory-space "^2.1.0" + micromark-factory-title "^2.0.0" + micromark-factory-whitespace "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-chunked "^2.0.0" + micromark-util-classify-character "^2.0.0" + micromark-util-edit-map "^1.0.0" + micromark-util-html-tag-name "^2.0.0" + micromark-util-normalize-identifier "^2.0.0" + micromark-util-resolve-all "^2.0.0" + micromark-util-subtokenize "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.3" + +micromark-extension-directive@4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/micromark-extension-directive/-/micromark-extension-directive-4.0.0.tgz" + integrity sha512-/C2nqVmXXmiseSSuCdItCMho7ybwwop6RrrRPk0KbOHW21JKoCldC+8rFOaundDoRBUWBnJJcxeA/Kvi34WQXg== + dependencies: + devlop "^1.0.0" + micromark-factory-space "^2.0.0" + micromark-factory-whitespace "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + parse-entities "^4.0.0" + +micromark-extension-gfm-autolink-literal@2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz" + integrity sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw== + dependencies: + micromark-util-character "^2.0.0" + micromark-util-sanitize-uri "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-extension-gfm-footnote@2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz" + integrity sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw== + dependencies: + devlop "^1.0.0" + micromark-core-commonmark "^2.0.0" + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-normalize-identifier "^2.0.0" + micromark-util-sanitize-uri "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-extension-gfm-table@2.1.2: + version "2.1.2" + resolved "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.2.tgz" + integrity sha512-pRzm4kDTu0MjlmBkxmS9yYhw60nncfcEwu9NNdPFSQEFXS95ZKyIIyTSHu/o3ReBUrLKYEq+7YaXCRn/bPB4MA== + dependencies: + devlop "^1.0.0" + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-extension-math@3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/micromark-extension-math/-/micromark-extension-math-3.1.0.tgz" + integrity sha512-lvEqd+fHjATVs+2v/8kg9i5Q0AP2k85H0WUOwpIVvUML8BapsMvh1XAogmQjOCsLpoKRCVQqEkQBB3NhVBcsOg== + dependencies: + "@types/katex" "^0.16.0" + devlop "^1.0.0" + katex "^0.16.0" + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-factory-destination@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz" + integrity sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA== + dependencies: + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-factory-label@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz" + integrity sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg== + dependencies: + devlop "^1.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-factory-space@^2.0.0, micromark-factory-space@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.1.0.tgz" + integrity sha512-fS8hnLIjnjvdQIj39Geug8wWsR0HrYZ43KShKxNfwT7t2LOHo/LbWZEzEaSOjwtjdCsjoE6syHhonEzW0zv0+Q== + dependencies: + micromark-util-character "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-factory-title@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz" + integrity sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw== + dependencies: + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-factory-whitespace@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz" + integrity sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ== + dependencies: + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-util-character@^2.0.0: + version "2.1.1" + resolved "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz" + integrity sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q== + dependencies: + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-util-chunked@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz" + integrity sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA== + dependencies: + micromark-util-symbol "^2.0.0" + +micromark-util-classify-character@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz" + integrity sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q== + dependencies: + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-util-combine-extensions@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz" + integrity sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg== + dependencies: + micromark-util-chunked "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-util-decode-numeric-character-reference@^2.0.0: + version "2.0.2" + resolved "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz" + integrity sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw== + dependencies: + micromark-util-symbol "^2.0.0" + +micromark-util-edit-map@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/micromark-util-edit-map/-/micromark-util-edit-map-1.0.0.tgz" + integrity sha512-Pa2ljlsEL6sVwFaYeyrOLSYbQt73JvGbPOYFq+9AElXiSnfI5Q4465RRZ1sHv7lDjDOnGRDDaqPXqClqWK/q1Q== + dependencies: + micromark-util-types "^2.0.0" + +micromark-util-encode@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz" + integrity sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw== + +micromark-util-html-tag-name@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz" + integrity sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA== + +micromark-util-normalize-identifier@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz" + integrity sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q== + dependencies: + micromark-util-symbol "^2.0.0" + +micromark-util-resolve-all@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz" + integrity sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg== + dependencies: + micromark-util-types "^2.0.0" + +micromark-util-sanitize-uri@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz" + integrity sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ== + dependencies: + micromark-util-character "^2.0.0" + micromark-util-encode "^2.0.0" + micromark-util-symbol "^2.0.0" + +micromark-util-subtokenize@^2.0.0: + version "2.1.0" + resolved "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz" + integrity sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA== + dependencies: + devlop "^1.0.0" + micromark-util-chunked "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +micromark-util-symbol@^2.0.0: + version "2.0.1" + resolved "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz" + integrity sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q== + +micromark-util-types@^2.0.0, micromark-util-types@^2.0.3, micromark-util-types@2.0.3: + version "2.0.3" + resolved "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz" + integrity sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg== + +micromark@4.0.3: + version "4.0.3" + resolved "https://registry.npmjs.org/micromark/-/micromark-4.0.3.tgz" + integrity sha512-oGYfQzHSG5dOMovQcJ3fyTmZlWAWpi0XA0sJwJs+i6OT88o1+Jtw/8z0CmdowSLxGhhFK89rQ/oXph/wN02PNw== + dependencies: + "@types/debug" "^4.0.0" + debug "^4.0.0" + decode-named-character-reference "^1.0.0" + devlop "^1.0.0" + micromark-core-commonmark "^2.0.0" + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-chunked "^2.0.0" + micromark-util-combine-extensions "^2.0.0" + micromark-util-decode-numeric-character-reference "^2.0.0" + micromark-util-edit-map "^1.0.0" + micromark-util-encode "^2.0.0" + micromark-util-normalize-identifier "^2.0.0" + micromark-util-resolve-all "^2.0.0" + micromark-util-sanitize-uri "^2.0.0" + micromark-util-subtokenize "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@~2.1.24, mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +minimatch@11.0.2: + version "11.0.2" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-11.0.2.tgz" + integrity sha512-pWTgz5CN3tjqyZNSK2tePlSmu9IwM41q8yn8Usdqqwe9TIHh+9dEpLLjF4uApsfPEAZY71qtSiA2B2APEr+1Yw== + dependencies: + "@isaacs/nonrecursive-glob-match" "^1.0.2" + brace-expansion "^5.0.12" + +minimist@^1.2.8: + version "1.2.8" + resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== + +minipass@^7.1.2, minipass@^7.1.3: + version "7.1.3" + resolved "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz" + integrity sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A== + +ms@^2.1.3, ms@2.1.3: + version "2.1.3" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" + integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== + +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + +object-inspect@^1.13.3, object-inspect@^1.13.4: + version "1.13.4" + resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz" + integrity sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew== + +on-finished@~2.4.1: + version "2.4.2" + resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.4.2.tgz" + integrity sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ== + dependencies: + ee-first "1.1.1" + +optionator@^0.9.3: + version "0.9.4" + resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz" + integrity sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.5" + +ox@0.14.57: + version "0.14.57" + resolved "https://registry.npmjs.org/ox/-/ox-0.14.57.tgz" + integrity sha512-CPF6aEFyAuqgL0x7VaFM0vI2/CUd5Qk8+BIL6OnViPw+gF07O/VAhqEPOPw5GYnYPwomIk8mD91gTcQ1RAtupA== + dependencies: + "@adraffy/ens-normalize" "^1.11.0" + "@noble/ciphers" "^1.3.0" + "@noble/curves" "1.9.1" + "@noble/hashes" "^1.8.0" + "@scure/bip32" "^1.7.0" + "@scure/bip39" "^1.6.0" + abitype "^1.2.3" + eventemitter3 "5.0.1" + +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + +parse-entities@^4.0.0: + version "4.0.2" + resolved "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz" + integrity sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw== + dependencies: + "@types/unist" "^2.0.0" + character-entities-legacy "^3.0.0" + character-reference-invalid "^2.0.0" + decode-named-character-reference "^1.0.0" + is-alphanumerical "^2.0.0" + is-decimal "^2.0.0" + is-hexadecimal "^2.0.0" + +parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" + integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + +path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-scurry@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/path-scurry/-/path-scurry-3.0.0.tgz" + integrity sha512-1pTbQqH1wIwMi/eleQ5leFTTCkzFsPcgXNjwOA8YGGW/W4/kHT3dssE7Z6NH+zuqNLOzOB0uaD61yl7cAcVhgg== + dependencies: + lru-cache "^11.0.0" + minipass "^7.1.2" + +path-to-regexp@~0.1.13: + version "0.1.13" + resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz" + integrity sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA== + +"picomatch@^3 || ^4", picomatch@^4.0.4: + version "4.0.7" + resolved "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz" + integrity sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA== + +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + +proxy-addr@~2.0.7: + version "2.0.8" + resolved "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz" + integrity sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ== + dependencies: + forwarded "0.2.0" + ipaddr.js "1.9.1" + +punycode.js@^2.3.1: + version "2.3.1" + resolved "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz" + integrity sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA== + +punycode@^2.1.0: + version "2.3.1" + resolved "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz" + integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== + +qified@^0.10.1: + version "0.10.1" + resolved "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz" + integrity sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA== + dependencies: + hookified "^2.1.1" + +qs@~6.16.0: + version "6.16.2" + resolved "https://registry.npmjs.org/qs/-/qs-6.16.2.tgz" + integrity sha512-VYdnB5S7/0IeXzBacUtwNAaM6d7Y/PgYnNC7bJCI6meqA/OgnsQbZMtVW8Dt2D1PHgbHGtYmhSoEIgvt7xZ2ZA== + dependencies: + es-define-property "^1.0.1" + side-channel "^1.1.1" + +range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +raw-body@~2.5.3: + version "2.5.3" + resolved "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz" + integrity sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA== + dependencies: + bytes "~3.1.2" + http-errors "~2.0.1" + iconv-lite "~0.4.24" + unpipe "~1.0.0" + +re2js@2.9.1: + version "2.9.1" + resolved "https://registry.npmjs.org/re2js/-/re2js-2.9.1.tgz" + integrity sha512-JIT3bEEUZTOR2YS1walNEIfH4cF/cQeZcBUFq7ldqO6lR6g0X5CBq/S8rsa9omzZcsNf8qc36jCkWpKKtncrZg== + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== + +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + +run-con@~1.3.3: + version "1.3.3" + resolved "https://registry.npmjs.org/run-con/-/run-con-1.3.3.tgz" + integrity sha512-Lb7OKM9aaykzyoNiHGhSVCjZsvbyy6qDMp2vDXL+MoCfz3GfNJtHYH7uYsU3QNMyInBk++xx+EZ8xZ8Sxs5fNQ== + dependencies: + deep-extend "^0.6.0" + ini "~7.0.0" + minimist "^1.2.8" + strip-json-comments "~3.1.1" + +safe-buffer@5.2.1: + version "5.2.1" + resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +"safer-buffer@>= 2.1.2 < 3": + version "2.1.2" + resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +semver@^7.5.3: + version "7.7.4" + resolved "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz" + integrity sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA== + +send@~0.19.0, send@~0.19.1: + version "0.19.2" + resolved "https://registry.npmjs.org/send/-/send-0.19.2.tgz" + integrity sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg== + dependencies: + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + encodeurl "~2.0.0" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "~0.5.2" + http-errors "~2.0.1" + mime "1.6.0" + ms "2.1.3" + on-finished "~2.4.1" + range-parser "~1.2.1" + statuses "~2.0.2" + +serve-static@~1.16.2: + version "1.16.3" + resolved "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz" + integrity sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA== + dependencies: + encodeurl "~2.0.0" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "~0.19.1" + +setprototypeof@~1.2.0, setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +side-channel-list@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz" + integrity sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.4" + +side-channel-map@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz" + integrity sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + +side-channel-weakmap@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz" + integrity sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + side-channel-map "^1.0.1" + +side-channel@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz" + integrity sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.4" + side-channel-list "^1.0.1" + side-channel-map "^1.0.1" + side-channel-weakmap "^1.0.2" + +signal-exit@^4.0.1: + version "4.1.0" + resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz" + integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== + +smol-toml@1.9.1: + version "1.9.1" + resolved "https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.1.tgz" + integrity sha512-j7WyPdf0CJoutMzMoPLF/bVXHtKZIT9Rb4eGeEbWw8X2t5oirjPgpL+OpaENZrILYaXqYwnVH+qgUwVbl+pUJQ== + +sql.js@1.16.0: + version "1.16.0" + resolved "https://registry.npmjs.org/sql.js/-/sql.js-1.16.0.tgz" + integrity sha512-q/JOZuJfmVh8Zf8Eo+cMJvtxAWeWBqTfJ6AQYGXZmcaLGHMwhA2niH3fQYHrBtPeOss1ttzHec07K5+rHaMRMw== + +statuses@~2.0.1, statuses@~2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz" + integrity sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw== + +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.3" + resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@8.3.0: + version "8.3.0" + resolved "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz" + integrity sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ== + dependencies: + get-east-asian-width "^1.5.0" + strip-ansi "^7.1.2" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^7.1.2: + version "7.2.0" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz" + integrity sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w== + dependencies: + ansi-regex "^6.2.2" + +strip-json-comments@~3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +test-exclude@^8.0.0: + version "8.0.0" + resolved "https://registry.npmjs.org/test-exclude/-/test-exclude-8.0.0.tgz" + integrity sha512-ZOffsNrXYggvU1mDGHk54I96r26P8SyMjO5slMKSc7+IWmtB/MQKnEC2fP51imB3/pT6YK5cT5E8f+Dd9KdyOQ== + dependencies: + "@istanbuljs/schema" "^0.1.2" + glob "^13.0.6" + minimatch "^10.2.2" + +tinyglobby@~0.2.17: + version "0.2.17" + resolved "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz" + integrity sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g== + dependencies: + fdir "^6.5.0" + picomatch "^4.0.4" + +toidentifier@~1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + +tweetnacl@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz" + integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw== + +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + +type-is@~1.6.18: + version "1.6.18" + resolved "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz" + integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.24" + +typescript@>=5.0.4, typescript@>=5.4.0, typescript@6.0.3: + version "6.0.3" + resolved "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz" + integrity sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw== + +uc.micro@^2.0.0, uc.micro@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz" + integrity sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A== + +undici-types@~8.9.0: + version "8.9.0" + resolved "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz" + integrity sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg== + +unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== + +uri-js@^4.2.2: + version "4.4.1" + resolved "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== + dependencies: + punycode "^2.1.0" + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" + integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== + +v8-to-istanbul@^9.0.0: + version "9.3.0" + resolved "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz" + integrity sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA== + dependencies: + "@jridgewell/trace-mapping" "^0.3.12" + "@types/istanbul-lib-coverage" "^2.0.1" + convert-source-map "^2.0.0" + +vary@~1.1.2: + version "1.1.2" + resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz" + integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== + +viem@^2.48.11, viem@^2.7.0: + version "2.57.11" + resolved "https://registry.npmjs.org/viem/-/viem-2.57.11.tgz" + integrity sha512-kvcBGXzIGmZu3GqaA83ZOLzVC57YO7WCgQrGcUHNKqZ8Cjqc9vV//uGna4Nhv0NGHn2gekw1FNdSvQePNnYePQ== + dependencies: + "@noble/curves" "1.9.1" + "@noble/hashes" "1.8.0" + "@scure/bip32" "1.7.0" + "@scure/bip39" "1.6.0" + abitype "1.2.3" + isows "1.0.7" + ox "0.14.57" + ws "8.21.0" + +which@^2.0.1: + version "2.0.2" + resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +word-wrap@^1.2.5: + version "1.2.5" + resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz" + integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +ws@*, ws@8.21.0: + version "8.21.0" + resolved "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz" + integrity sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g== + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== + +yargs-parser@^21.1.1: + version "21.1.1" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== + +yargs@^17.7.2: + version "17.7.2" + resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== + +zod@4.6.7: + version "4.6.7" + resolved "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz" + integrity sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg== From 09e599e2d18e7d1fc9af0c73b31a2e7faa05f482 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:40:31 -0500 Subject: [PATCH 55/78] fix(deps): regenerate yarn.lock with Yarn 4 so hardened installs stay immutable The previous commit carried a yarn.lock rewritten by npm ci in Yarn v1 format, which Yarn 4 hardened mode rejects (YN0028). --- yarn.lock | 4963 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 2863 insertions(+), 2100 deletions(-) diff --git a/yarn.lock b/yarn.lock index 3cad2c963..b0bccc176 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1,2100 +1,2863 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@adraffy/ens-normalize@^1.11.0": - version "1.11.1" - resolved "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.1.tgz" - integrity sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ== - -"@bcoe/v8-coverage@^1.0.1": - version "1.0.2" - resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz" - integrity sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA== - -"@cacheable/memory@^2.2.0": - version "2.2.0" - resolved "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz" - integrity sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ== - dependencies: - "@cacheable/utils" "^2.5.0" - "@keyv/bigmap" "^1.3.1" - hookified "^1.15.1" - keyv "^5.6.0" - -"@cacheable/utils@^2.5.0": - version "2.5.0" - resolved "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz" - integrity sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA== - dependencies: - hashery "^1.5.1" - keyv "^5.6.0" - -"@eslint-community/eslint-utils@^4.8.0": - version "4.9.1" - resolved "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz" - integrity sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ== - dependencies: - eslint-visitor-keys "^3.4.3" - -"@eslint-community/regexpp@^4.12.2": - version "4.12.2" - resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz" - integrity sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew== - -"@eslint/config-array@^0.23.6": - version "0.23.6" - resolved "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.6.tgz" - integrity sha512-WrTH7nioI9QPY4NZGnsywmecswJdgeq4BCM76qok9VgjTO29ZgUzUvcuJLVPYVQM4uDbaPBU0M33R9DIxI8X3w== - dependencies: - "@eslint/object-schema" "^3.0.5" - debug "^4.3.1" - minimatch "^11.0.5" - -"@eslint/config-helpers@^0.7.0": - version "0.7.0" - resolved "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz" - integrity sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw== - dependencies: - "@eslint/core" "^1.2.1" - -"@eslint/core@^1.2.1": - version "1.2.1" - resolved "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz" - integrity sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ== - dependencies: - "@types/json-schema" "^7.0.15" - -"@eslint/js@9.39.2": - version "9.39.2" - resolved "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz" - integrity sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA== - -"@eslint/object-schema@^3.0.5": - version "3.0.5" - resolved "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz" - integrity sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw== - -"@eslint/plugin-kit@^0.7.3": - version "0.7.3" - resolved "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz" - integrity sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q== - dependencies: - "@eslint/core" "^1.2.1" - levn "^0.4.1" - -"@humanfs/core@^0.19.2": - version "0.19.2" - resolved "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz" - integrity sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA== - dependencies: - "@humanfs/types" "^0.15.0" - -"@humanfs/node@0.16.8": - version "0.16.8" - resolved "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz" - integrity sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ== - dependencies: - "@humanfs/core" "^0.19.2" - "@humanfs/types" "^0.15.0" - "@humanwhocodes/retry" "^0.4.0" - -"@humanfs/types@^0.15.0": - version "0.15.0" - resolved "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz" - integrity sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q== - -"@humanwhocodes/module-importer@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz" - integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== - -"@humanwhocodes/retry@^0.4.0", "@humanwhocodes/retry@^0.4.2": - version "0.4.3" - resolved "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz" - integrity sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ== - -"@iarna/toml@2.2.5": - version "2.2.5" - resolved "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz" - integrity sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg== - -"@isaacs/nonrecursive-glob-match@^1.0.2": - version "1.1.0" - resolved "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz" - integrity sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw== - -"@istanbuljs/schema@^0.1.2", "@istanbuljs/schema@^0.1.3": - version "0.1.3" - resolved "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz" - integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== - -"@jridgewell/resolve-uri@^3.1.0": - version "3.1.2" - resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz" - integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== - -"@jridgewell/sourcemap-codec@^1.4.14": - version "1.5.5" - resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz" - integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== - -"@jridgewell/trace-mapping@^0.3.12": - version "0.3.31" - resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz" - integrity sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== - dependencies: - "@jridgewell/resolve-uri" "^3.1.0" - "@jridgewell/sourcemap-codec" "^1.4.14" - -"@keyv/bigmap@^1.3.1": - version "1.3.1" - resolved "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz" - integrity sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ== - dependencies: - hashery "^1.4.0" - hookified "^1.15.0" - -"@keyv/serialize@^1.1.1": - version "1.1.1" - resolved "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz" - integrity sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA== - -"@noble/ciphers@^1.3.0": - version "1.3.0" - resolved "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz" - integrity sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw== - -"@noble/curves@^1.9.0", "@noble/curves@~1.9.0": - version "1.9.7" - resolved "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz" - integrity sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw== - dependencies: - "@noble/hashes" "1.8.0" - -"@noble/curves@1.9.1": - version "1.9.1" - resolved "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz" - integrity sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA== - dependencies: - "@noble/hashes" "1.8.0" - -"@noble/hashes@^1.7.0", "@noble/hashes@^1.8.0", "@noble/hashes@~1.8.0", "@noble/hashes@1.8.0": - version "1.8.0" - resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz" - integrity sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A== - -"@opencode-ai/plugin@1.4.3": - version "1.4.3" - resolved "https://registry.npmjs.org/@opencode-ai/plugin/-/plugin-1.4.3.tgz" - integrity sha512-Ob/3tVSIeuMRJBr2O23RtrnC5djRe01Lglx+TwGEmjrH9yDBJ2tftegYLnNEjRoMuzITgq9LD8168p4pzv+U/A== - dependencies: - "@opencode-ai/sdk" "1.4.3" - zod "4.1.8" - -"@opencode-ai/sdk@1.4.3": - version "1.4.3" - resolved "https://registry.npmjs.org/@opencode-ai/sdk/-/sdk-1.4.3.tgz" - integrity sha512-X0CAVbwoGAjTY2iecpWkx2B+GAa2jSaQKYpJ+xILopeF/OGKZUN15mjqci+L7cEuwLHV5wk3x2TStUOVCa5p0A== - dependencies: - cross-spawn "7.0.6" - -"@scure/base@^1.2.6", "@scure/base@~1.2.5": - version "1.2.6" - resolved "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz" - integrity sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg== - -"@scure/bip32@^1.7.0", "@scure/bip32@1.7.0": - version "1.7.0" - resolved "https://registry.npmjs.org/@scure/bip32/-/bip32-1.7.0.tgz" - integrity sha512-E4FFX/N3f4B80AKWp5dP6ow+flD1LQZo/w8UnLGYZO674jS6YnYeepycOOksv+vLPSpgN35wgKgy+ybfTb2SMw== - dependencies: - "@noble/curves" "~1.9.0" - "@noble/hashes" "~1.8.0" - "@scure/base" "~1.2.5" - -"@scure/bip39@^1.6.0", "@scure/bip39@1.6.0": - version "1.6.0" - resolved "https://registry.npmjs.org/@scure/bip39/-/bip39-1.6.0.tgz" - integrity sha512-+lF0BbLiJNwVlev4eKelw1WWLaiKXw7sSl8T6FvBlWkdX+94aGJ4o8XjUdlyhTCjd8c+B3KT3JfS8P0bLRNU6A== - dependencies: - "@noble/hashes" "~1.8.0" - "@scure/base" "~1.2.5" - -"@signinwithethereum/siwe-parser@^4.2.1": - version "4.2.1" - resolved "https://registry.npmjs.org/@signinwithethereum/siwe-parser/-/siwe-parser-4.2.1.tgz" - integrity sha512-GAdwNiBaRpUMTiFfPrbQ3e/RBhPbEhRRN1sZmDMLgLEZuKqKwO7V0ksVzCerE9l8HFKTNw5R/q3kPDCWJRz4zA== - dependencies: - "@noble/hashes" "^1.7.0" - apg-js "^4.4.0" - -"@signinwithethereum/siwe@^4.1.0": - version "4.2.1" - resolved "https://registry.npmjs.org/@signinwithethereum/siwe/-/siwe-4.2.1.tgz" - integrity sha512-CQEQhCIgN9blil1YpaGR+wvGPdsBVK6zed5DBu03s1IdbSO3kA/n7Zp+SAkZGiHy3HY6OJm1Su0/Bd33vKK6nQ== - dependencies: - "@signinwithethereum/siwe-parser" "^4.2.1" - -"@types/debug@^4.0.0": - version "4.1.13" - resolved "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz" - integrity sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw== - dependencies: - "@types/ms" "*" - -"@types/esrecurse@^4.3.1": - version "4.3.1" - resolved "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz" - integrity sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw== - -"@types/estree@^1.0.6", "@types/estree@^1.0.8": - version "1.0.8" - resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz" - integrity sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w== - -"@types/istanbul-lib-coverage@^2.0.1": - version "2.0.6" - resolved "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz" - integrity sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w== - -"@types/json-schema@^7.0.15": - version "7.0.15" - resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz" - integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== - -"@types/katex@^0.16.0": - version "0.16.8" - resolved "https://registry.npmjs.org/@types/katex/-/katex-0.16.8.tgz" - integrity sha512-trgaNyfU+Xh2Tc+ABIb44a5AYUpicB3uwirOioeOkNPPbmgRNtcWyDeeFRzjPZENO9Vq8gvVqfhaaXWLlevVwg== - -"@types/ms@*": - version "2.1.0" - resolved "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz" - integrity sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA== - -"@types/node@26.6.6": - version "26.6.6" - resolved "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz" - integrity sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog== - dependencies: - undici-types "~8.9.0" - -"@types/unist@^2.0.0": - version "2.0.11" - resolved "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz" - integrity sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA== - -"@x402/core@~2.31.0", "@x402/core@2.31.0": - version "2.31.0" - resolved "https://registry.npmjs.org/@x402/core/-/core-2.31.0.tgz" - integrity sha512-7ToCOwHfftfFEERW5Mp6Fc5U1+JrtCLTkbQnEVsBl13IutltP9lWIBYi/J+zy8vQWaLUmACq8A2qywzdt/RRIQ== - dependencies: - zod "^4.6.6" - -"@x402/evm@2.31.0": - version "2.31.0" - resolved "https://registry.npmjs.org/@x402/evm/-/evm-2.31.0.tgz" - integrity sha512-CCOqou/7f0/5kKQXlcVvWbiVnFmk/CqaSCs8YkJ2GPzxDYoQD13iKAjo0Uv7y/dVlkkOH0p/eJVxgcrO6aagbw== - dependencies: - "@x402/core" "~2.31.0" - viem "^2.48.11" - zod "^4.6.6" - -"@x402/express@2.31.0": - version "2.31.0" - resolved "https://registry.npmjs.org/@x402/express/-/express-2.31.0.tgz" - integrity sha512-hUumfQGb8mNdwkpLAZuuoHCJ3p5gNtu5/yRaZNRNqQILp155Ur2tJQCizPQZR1XNsZ6mXwJG4+5rE1iW0f/9sg== - dependencies: - "@x402/core" "~2.31.0" - "@x402/extensions" "~2.31.0" - -"@x402/extensions@~2.31.0": - version "2.31.0" - resolved "https://registry.npmjs.org/@x402/extensions/-/extensions-2.31.0.tgz" - integrity sha512-hFq11UtXNWPirZSZjZuWFHvjetYvFQmkQSZcNEMaQYxOz70ZLNFmIdXfG2J/B8YGE2nS2d223Hz9Lnkrxw+Sqw== - dependencies: - "@noble/curves" "^1.9.0" - "@scure/base" "^1.2.6" - "@signinwithethereum/siwe" "^4.1.0" - "@x402/core" "~2.31.0" - ajv "^8.18.0" - jose "^5.9.6" - tweetnacl "^1.0.3" - viem "^2.48.11" - zod "^4.6.6" - -abitype@^1.2.3, abitype@1.2.3: - version "1.2.3" - resolved "https://registry.npmjs.org/abitype/-/abitype-1.2.3.tgz" - integrity sha512-Ofer5QUnuUdTFsBRwARMoWKOH1ND5ehwYhJ3OJ/BQO+StkwQjHw0XyVh4vDttzHB7QOFhPHa/o413PJ82gU/Tg== - -accepts@~1.3.8: - version "1.3.8" - resolved "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz" - integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== - dependencies: - mime-types "~2.1.34" - negotiator "0.6.3" - -acorn-jsx@^5.3.2: - version "5.3.2" - resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - -"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.16.0: - version "8.17.0" - resolved "https://registry.npmjs.org/acorn/-/acorn-8.17.0.tgz" - integrity sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg== - -ajv@^6.14.0: - version "6.14.0" - resolved "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz" - integrity sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ajv@^8.18.0, ajv@8.20.0: - version "8.20.0" - resolved "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz" - integrity sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA== - dependencies: - fast-deep-equal "^3.1.3" - fast-uri "^3.0.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - -ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-regex@^6.2.2: - version "6.6.0" - resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz" - integrity sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g== - -ansi-styles@^4.0.0: - version "4.3.0" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -apg-js@^4.4.0: - version "4.4.0" - resolved "https://registry.npmjs.org/apg-js/-/apg-js-4.4.0.tgz" - integrity sha512-fefmXFknJmtgtNEXfPwZKYkMFX4Fyeyz+fNF6JWp87biGOPslJbCBVU158zvKRZfHBKnJDy8CMM40oLFGkXT8Q== - -argparse@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" - integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== - -argparse@^3.0.3: - version "3.0.4" - resolved "https://registry.npmjs.org/argparse/-/argparse-3.0.4.tgz" - integrity sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA== - -array-flatten@1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz" - integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== - -balanced-match@^4.0.2: - version "4.0.4" - resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz" - integrity sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA== - -body-parser@~1.20.5: - version "1.20.9" - resolved "https://registry.npmjs.org/body-parser/-/body-parser-1.20.9.tgz" - integrity sha512-FISIQxV5u91Y9gvuFq3q/tA/qTqLJn3AhRcEvyozyhJTh5OBFFtv827AdHU7Rbyct4r+Ba1/99oFa1Y3yuFsdw== - dependencies: - bytes "~3.1.2" - content-type "~1.0.5" - debug "2.6.9" - depd "2.0.0" - destroy "~1.2.0" - http-errors "~2.0.1" - iconv-lite "~0.4.24" - on-finished "~2.4.1" - qs "~6.16.0" - raw-body "~2.5.3" - type-is "~1.6.18" - unpipe "~1.0.0" - -brace-expansion@5.0.12: - version "5.0.12" - resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz" - integrity sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ== - dependencies: - balanced-match "^4.0.2" - -bytes@~3.1.2: - version "3.1.2" - resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" - integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== - -c8@11.0.0: - version "11.0.0" - resolved "https://registry.npmjs.org/c8/-/c8-11.0.0.tgz" - integrity sha512-e/uRViGHSVIJv7zsaDKM7VRn2390TgHXqUSvYwPHBQaU6L7E9L0n9JbdkwdYPvshDT0KymBmmlwSpms3yBaMNg== - dependencies: - "@bcoe/v8-coverage" "^1.0.1" - "@istanbuljs/schema" "^0.1.3" - find-up "^5.0.0" - foreground-child "^3.1.1" - istanbul-lib-coverage "^3.2.0" - istanbul-lib-report "^3.0.1" - istanbul-reports "^3.1.6" - test-exclude "^8.0.0" - v8-to-istanbul "^9.0.0" - yargs "^17.7.2" - yargs-parser "^21.1.1" - -cacheable@^2.5.0: - version "2.5.0" - resolved "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz" - integrity sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g== - dependencies: - "@cacheable/memory" "^2.2.0" - "@cacheable/utils" "^2.5.0" - hookified "^1.15.0" - keyv "^5.6.0" - qified "^0.10.1" - -call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz" - integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== - dependencies: - es-errors "^1.3.0" - function-bind "^1.1.2" - -call-bound@^1.0.2: - version "1.0.4" - resolved "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz" - integrity sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== - dependencies: - call-bind-apply-helpers "^1.0.2" - get-intrinsic "^1.3.0" - -character-entities-legacy@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz" - integrity sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ== - -character-entities@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz" - integrity sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ== - -character-reference-invalid@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz" - integrity sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw== - -cliui@^8.0.1: - version "8.0.1" - resolved "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" - integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.1" - wrap-ansi "^7.0.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -commander@^8.3.0: - version "8.3.0" - resolved "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz" - integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== - -commander@~15.0.0: - version "15.0.0" - resolved "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz" - integrity sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg== - -content-disposition@~0.5.4: - version "0.5.4" - resolved "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz" - integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== - dependencies: - safe-buffer "5.2.1" - -content-type@~1.0.4, content-type@~1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz" - integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== - -convert-source-map@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz" - integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== - -cookie-signature@~1.0.6: - version "1.0.7" - resolved "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz" - integrity sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA== - -cookie@~0.7.1: - version "0.7.2" - resolved "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz" - integrity sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w== - -cross-spawn@^7.0.6, cross-spawn@7.0.6: - version "7.0.6" - resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz" - integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -debug@^4.0.0, debug@^4.3.1, debug@^4.3.2: - version "4.4.3" - resolved "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz" - integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== - dependencies: - ms "^2.1.3" - -debug@2.6.9: - version "2.6.9" - resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -decode-named-character-reference@^1.0.0: - version "1.3.0" - resolved "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz" - integrity sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q== - dependencies: - character-entities "^2.0.0" - -deep-extend@^0.6.0, deep-extend@~0.6.0: - version "0.6.0" - resolved "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz" - integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== - -deep-is@^0.1.3: - version "0.1.4" - resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - -depd@~2.0.0, depd@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" - integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== - -dequal@^2.0.0: - version "2.0.3" - resolved "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz" - integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== - -destroy@~1.2.0, destroy@1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" - integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== - -devlop@^1.0.0: - version "1.1.0" - resolved "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz" - integrity sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA== - dependencies: - dequal "^2.0.0" - -dunder-proto@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz" - integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== - dependencies: - call-bind-apply-helpers "^1.0.1" - es-errors "^1.3.0" - gopd "^1.2.0" - -ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" - integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -encodeurl@~2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.1.tgz" - integrity sha512-Ev/hIyePLZtpL98x562lvPtenrUfGr0lfaf44HFZ+hDEwso7ccV9QAZrEVLg0hxNAzygaAFxy2dYaAKKM0G06A== - -entities@^4.5.0: - version "4.5.0" - resolved "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz" - integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== - -es-define-property@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz" - integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== - -es-errors@^1.3.0: - version "1.3.0" - resolved "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz" - integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== - -es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: - version "1.1.2" - resolved "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz" - integrity sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw== - dependencies: - es-errors "^1.3.0" - -escalade@^3.1.1: - version "3.2.0" - resolved "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz" - integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== - -escape-html@~1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" - integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== - -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -eslint-scope@^9.1.2: - version "9.1.2" - resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz" - integrity sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ== - dependencies: - "@types/esrecurse" "^4.3.1" - "@types/estree" "^1.0.8" - esrecurse "^4.3.0" - estraverse "^5.2.0" - -eslint-visitor-keys@^3.4.3: - version "3.4.3" - resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" - integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== - -eslint-visitor-keys@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz" - integrity sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA== - -"eslint@^6.0.0 || ^7.0.0 || >=8.0.0", eslint@10.15.0: - version "10.15.0" - resolved "https://registry.npmjs.org/eslint/-/eslint-10.15.0.tgz" - integrity sha512-+5Wg4p+ze3sG1WErYgUO/3H1IQIfFBymVUA0Fo/XTeBOLS6UQIUekpSJ8sdRkn7O7wjh84b55w/roqavH2aScg== - dependencies: - "@eslint-community/eslint-utils" "^4.8.0" - "@eslint-community/regexpp" "^4.12.2" - "@eslint/config-array" "^0.23.6" - "@eslint/config-helpers" "^0.7.0" - "@eslint/core" "^1.2.1" - "@eslint/plugin-kit" "^0.7.3" - "@humanfs/node" "^0.16.8" - "@humanwhocodes/module-importer" "^1.0.1" - "@humanwhocodes/retry" "^0.4.2" - "@types/estree" "^1.0.6" - ajv "^6.14.0" - cross-spawn "^7.0.6" - debug "^4.3.2" - escape-string-regexp "^4.0.0" - eslint-scope "^9.1.2" - eslint-visitor-keys "^5.0.1" - espree "^11.2.0" - esquery "^1.7.0" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "11.1.5 || >11.1.6 <12" - find-up "^5.0.0" - glob-parent "^6.0.2" - ignore "^5.2.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - json-stable-stringify-without-jsonify "^1.0.1" - minimatch "^11.0.5" - natural-compare "^1.4.0" - optionator "^0.9.3" - -espree@^11.2.0: - version "11.2.0" - resolved "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz" - integrity sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw== - dependencies: - acorn "^8.16.0" - acorn-jsx "^5.3.2" - eslint-visitor-keys "^5.0.1" - -esquery@^1.7.0: - version "1.7.0" - resolved "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz" - integrity sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^5.1.0, estraverse@^5.2.0: - version "5.3.0" - resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -etag@~1.8.1: - version "1.8.1" - resolved "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz" - integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== - -eventemitter3@5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz" - integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== - -"express@^4.22.3 || ^5.3.0", express@4.22.3: - version "4.22.3" - resolved "https://registry.npmjs.org/express/-/express-4.22.3.tgz" - integrity sha512-Bdcs4+3qlpVlx2NRn6fgX2Ue2/gGRaPeawebgclM0ERSCqDpA+owF1fdPwjJUTAJWMTuAaxjDf+hzb0/4eKvvw== - dependencies: - accepts "~1.3.8" - array-flatten "1.1.1" - body-parser "~1.20.5" - content-disposition "~0.5.4" - content-type "~1.0.4" - cookie "~0.7.1" - cookie-signature "~1.0.6" - debug "2.6.9" - depd "2.0.0" - encodeurl "~2.0.0" - escape-html "~1.0.3" - etag "~1.8.1" - finalhandler "~1.3.1" - fresh "~0.5.2" - http-errors "~2.0.0" - merge-descriptors "1.0.3" - methods "~1.1.2" - on-finished "~2.4.1" - parseurl "~1.3.3" - path-to-regexp "~0.1.13" - proxy-addr "~2.0.7" - qs "~6.16.0" - range-parser "~1.2.1" - safe-buffer "5.2.1" - send "~0.19.0" - serve-static "~1.16.2" - setprototypeof "1.2.0" - statuses "~2.0.1" - type-is "~1.6.18" - utils-merge "1.0.1" - vary "~1.1.2" - -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@^2.0.6: - version "2.0.6" - resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" - integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== - -fast-uri@3.1.9: - version "3.1.9" - resolved "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz" - integrity sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ== - -fdir@^6.5.0: - version "6.5.0" - resolved "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz" - integrity sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg== - -"file-entry-cache@11.1.5 || >11.1.6 <12": - version "11.1.5" - resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz" - integrity sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q== - dependencies: - flat-cache "^6.1.23" - -finalhandler@~1.3.1: - version "1.3.2" - resolved "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz" - integrity sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg== - dependencies: - debug "2.6.9" - encodeurl "~2.0.0" - escape-html "~1.0.3" - on-finished "~2.4.1" - parseurl "~1.3.3" - statuses "~2.0.2" - unpipe "~1.0.0" - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -flat-cache@^6.1.23: - version "6.1.23" - resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz" - integrity sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA== - dependencies: - cacheable "^2.5.0" - flatted "^3.4.2" - hookified "^1.15.0" - -flatted@^3.4.2: - version "3.4.4" - resolved "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz" - integrity sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q== - -foreground-child@^3.1.1: - version "3.3.1" - resolved "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz" - integrity sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw== - dependencies: - cross-spawn "^7.0.6" - signal-exit "^4.0.1" - -forwarded@0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz" - integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== - -fresh@~0.5.2: - version "0.5.2" - resolved "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz" - integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== - -function-bind@^1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" - integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-east-asian-width@^1.5.0: - version "1.7.0" - resolved "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz" - integrity sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q== - -get-intrinsic@^1.2.5, get-intrinsic@^1.3.0: - version "1.3.0" - resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz" - integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== - dependencies: - call-bind-apply-helpers "^1.0.2" - es-define-property "^1.0.1" - es-errors "^1.3.0" - es-object-atoms "^1.1.1" - function-bind "^1.1.2" - get-proto "^1.0.1" - gopd "^1.2.0" - has-symbols "^1.1.0" - hasown "^2.0.2" - math-intrinsics "^1.1.0" - -get-proto@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz" - integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== - dependencies: - dunder-proto "^1.0.1" - es-object-atoms "^1.0.0" - -glob-parent@^6.0.2: - version "6.0.2" - resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz" - integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== - dependencies: - is-glob "^4.0.3" - -glob@14.0.3: - version "14.0.3" - resolved "https://registry.npmjs.org/glob/-/glob-14.0.3.tgz" - integrity sha512-A1vjIwC3qpdCso45Iw127gnp7sPhqgY8lUQhDrArIs+GbmfaaVPFuoyy7WyLT9EPZCRZ7j7aLdwUhQmHWesEow== - dependencies: - minimatch "^11.0.2" - minipass "^7.1.3" - path-scurry "^3.0.0" - -globals@17.14.0: - version "17.14.0" - resolved "https://registry.npmjs.org/globals/-/globals-17.14.0.tgz" - integrity sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg== - -gopd@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz" - integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-symbols@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz" - integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== - -hashery@^1.4.0, hashery@^1.5.1: - version "1.5.1" - resolved "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz" - integrity sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ== - dependencies: - hookified "^1.15.0" - -hasown@^2.0.2: - version "2.0.4" - resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz" - integrity sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A== - dependencies: - function-bind "^1.1.2" - -hookified@^1.15.0, hookified@^1.15.1: - version "1.15.1" - resolved "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz" - integrity sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg== - -hookified@^2.1.1: - version "2.2.0" - resolved "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz" - integrity sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA== - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -http-errors@~2.0.0, http-errors@~2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz" - integrity sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ== - dependencies: - depd "~2.0.0" - inherits "~2.0.4" - setprototypeof "~1.2.0" - statuses "~2.0.2" - toidentifier "~1.0.1" - -iconv-lite@~0.4.24: - version "0.4.24" - resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -ignore@^5.2.0: - version "5.3.2" - resolved "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz" - integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== - -ignore@~7.0.13: - version "7.0.14" - resolved "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz" - integrity sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ== - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" - integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== - -inherits@~2.0.4: - version "2.0.4" - resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -ini@~7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/ini/-/ini-7.0.0.tgz" - integrity sha512-ifK0CgjALofS5bkrcTy4RaQ9Vx2Knf/eLeIO+NaswQEpH1UblrtTSCIvN71qQDMq0PeQ/SSPojvEJp9vvvfr+w== - -ipaddr.js@1.9.1: - version "1.9.1" - resolved "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz" - integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== - -is-alphabetical@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz" - integrity sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ== - -is-alphanumerical@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz" - integrity sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw== - dependencies: - is-alphabetical "^2.0.0" - is-decimal "^2.0.0" - -is-decimal@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz" - integrity sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A== - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" - integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-glob@^4.0.0, is-glob@^4.0.3: - version "4.0.3" - resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - -is-hexadecimal@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz" - integrity sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - -isows@1.0.7: - version "1.0.7" - resolved "https://registry.npmjs.org/isows/-/isows-1.0.7.tgz" - integrity sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg== - -istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: - version "3.2.2" - resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz" - integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== - -istanbul-lib-report@^3.0.0, istanbul-lib-report@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz" - integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^4.0.0" - supports-color "^7.1.0" - -istanbul-reports@^3.1.6: - version "3.2.0" - resolved "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz" - integrity sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -jose@^5.9.6: - version "5.10.0" - resolved "https://registry.npmjs.org/jose/-/jose-5.10.0.tgz" - integrity sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg== - -js-yaml@5.5.0: - version "5.5.0" - resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-5.5.0.tgz" - integrity sha512-paNr4LFIFPjeeSmwNYdrb8FafLLG/Cr2Af3GjbsHJ5CxIjH4r0c2emlmRdAtpPAieP1gRVzk6buBbVP5gBMGAg== - dependencies: - argparse "^3.0.3" - -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-schema-traverse@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" - integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" - integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== - -jsonc-parser@~3.3.1: - version "3.3.1" - resolved "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz" - integrity sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ== - -jsonpointer@~5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz" - integrity sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ== - -katex@0.18.2: - version "0.18.2" - resolved "https://registry.npmjs.org/katex/-/katex-0.18.2.tgz" - integrity sha512-3snve4y0SXTMequLim1FMiPvLGElySam0blN5xQZBqEY3lOJz1TnuaaiugnBZBqHzlSAGmFTYL7MCQkORuLKCA== - dependencies: - commander "^8.3.0" - -keyv@^5.6.0: - version "5.6.0" - resolved "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz" - integrity sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw== - dependencies: - "@keyv/serialize" "^1.1.1" - -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - -linkify-it@^5.0.2: - version "5.0.2" - resolved "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz" - integrity sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q== - dependencies: - uc.micro "^2.0.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -lru-cache@^11.0.0: - version "11.5.3" - resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz" - integrity sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg== - -make-dir@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz" - integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== - dependencies: - semver "^7.5.3" - -markdown-it@14.3.3: - version "14.3.3" - resolved "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.3.tgz" - integrity sha512-L//tDAkjTjJCU6pBUSBTgs3Kg4InVaZuUZog/b6V12UKhcDQ7S78877ibbCanRExwPuYP1CZD7Gd2dxSy1GXRg== - dependencies: - argparse "^2.0.1" - entities "^4.5.0" - linkify-it "^5.0.2" - mdurl "^2.0.0" - punycode.js "^2.3.1" - uc.micro "^2.1.0" - -markdownlint-cli@0.50.0: - version "0.50.0" - resolved "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.50.0.tgz" - integrity sha512-4GqP/CqpF74ihrlLTOPc3I5b/tZabiiKnIVQ27xTzsS4hjU3oIHKg1YBzWP7fsa9AH48LPF0KcmCqDccpSeMEg== - dependencies: - commander "~15.0.0" - deep-extend "~0.6.0" - ignore "~7.0.13" - js-yaml "~5.5.0" - jsonc-parser "~3.3.1" - jsonpointer "~5.0.1" - markdown-it "~15.0.3" - markdownlint "~0.42.0" - minimatch "~10.2.6" - run-con "~1.3.3" - smol-toml "~1.9.1" - tinyglobby "~0.2.17" - -markdownlint@~0.42.0: - version "0.42.1" - resolved "https://registry.npmjs.org/markdownlint/-/markdownlint-0.42.1.tgz" - integrity sha512-Otolm9JX12iO2NG5cetlKfzGygpiLSlHuqXKxoT6HGhN5HtbxprJPicKZqqCQd88qOvUi/TEs3o1AmcYioVscA== - dependencies: - micromark "4.0.3" - micromark-core-commonmark "2.0.4" - micromark-extension-directive "4.0.0" - micromark-extension-gfm-autolink-literal "2.1.0" - micromark-extension-gfm-footnote "2.1.0" - micromark-extension-gfm-table "2.1.2" - micromark-extension-math "3.1.0" - micromark-util-types "2.0.3" - re2js "2.9.1" - string-width "8.3.0" - -math-intrinsics@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz" - integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== - -mdurl@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz" - integrity sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w== - -media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" - integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== - -merge-descriptors@1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz" - integrity sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ== - -methods@~1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz" - integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== - -micromark-core-commonmark@^2.0.0, micromark-core-commonmark@2.0.4: - version "2.0.4" - resolved "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.4.tgz" - integrity sha512-wxEeE8v8XVvOrxn1TZj74qYhAtTQsSqufHVS3uNVyT1MupXxhyaHk8/9xDNPh9BmL77QNDgWTkZ3RsYHB2ry7w== - dependencies: - decode-named-character-reference "^1.0.0" - devlop "^1.0.0" - micromark-factory-destination "^2.0.0" - micromark-factory-label "^2.0.0" - micromark-factory-space "^2.1.0" - micromark-factory-title "^2.0.0" - micromark-factory-whitespace "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-chunked "^2.0.0" - micromark-util-classify-character "^2.0.0" - micromark-util-edit-map "^1.0.0" - micromark-util-html-tag-name "^2.0.0" - micromark-util-normalize-identifier "^2.0.0" - micromark-util-resolve-all "^2.0.0" - micromark-util-subtokenize "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.3" - -micromark-extension-directive@4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/micromark-extension-directive/-/micromark-extension-directive-4.0.0.tgz" - integrity sha512-/C2nqVmXXmiseSSuCdItCMho7ybwwop6RrrRPk0KbOHW21JKoCldC+8rFOaundDoRBUWBnJJcxeA/Kvi34WQXg== - dependencies: - devlop "^1.0.0" - micromark-factory-space "^2.0.0" - micromark-factory-whitespace "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - parse-entities "^4.0.0" - -micromark-extension-gfm-autolink-literal@2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz" - integrity sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw== - dependencies: - micromark-util-character "^2.0.0" - micromark-util-sanitize-uri "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-extension-gfm-footnote@2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz" - integrity sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw== - dependencies: - devlop "^1.0.0" - micromark-core-commonmark "^2.0.0" - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-normalize-identifier "^2.0.0" - micromark-util-sanitize-uri "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-extension-gfm-table@2.1.2: - version "2.1.2" - resolved "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.2.tgz" - integrity sha512-pRzm4kDTu0MjlmBkxmS9yYhw60nncfcEwu9NNdPFSQEFXS95ZKyIIyTSHu/o3ReBUrLKYEq+7YaXCRn/bPB4MA== - dependencies: - devlop "^1.0.0" - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-extension-math@3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/micromark-extension-math/-/micromark-extension-math-3.1.0.tgz" - integrity sha512-lvEqd+fHjATVs+2v/8kg9i5Q0AP2k85H0WUOwpIVvUML8BapsMvh1XAogmQjOCsLpoKRCVQqEkQBB3NhVBcsOg== - dependencies: - "@types/katex" "^0.16.0" - devlop "^1.0.0" - katex "^0.16.0" - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-factory-destination@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz" - integrity sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA== - dependencies: - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-factory-label@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz" - integrity sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg== - dependencies: - devlop "^1.0.0" - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-factory-space@^2.0.0, micromark-factory-space@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.1.0.tgz" - integrity sha512-fS8hnLIjnjvdQIj39Geug8wWsR0HrYZ43KShKxNfwT7t2LOHo/LbWZEzEaSOjwtjdCsjoE6syHhonEzW0zv0+Q== - dependencies: - micromark-util-character "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-factory-title@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz" - integrity sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw== - dependencies: - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-factory-whitespace@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz" - integrity sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ== - dependencies: - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-util-character@^2.0.0: - version "2.1.1" - resolved "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz" - integrity sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q== - dependencies: - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-util-chunked@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz" - integrity sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA== - dependencies: - micromark-util-symbol "^2.0.0" - -micromark-util-classify-character@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz" - integrity sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q== - dependencies: - micromark-util-character "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-util-combine-extensions@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz" - integrity sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg== - dependencies: - micromark-util-chunked "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-util-decode-numeric-character-reference@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz" - integrity sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw== - dependencies: - micromark-util-symbol "^2.0.0" - -micromark-util-edit-map@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/micromark-util-edit-map/-/micromark-util-edit-map-1.0.0.tgz" - integrity sha512-Pa2ljlsEL6sVwFaYeyrOLSYbQt73JvGbPOYFq+9AElXiSnfI5Q4465RRZ1sHv7lDjDOnGRDDaqPXqClqWK/q1Q== - dependencies: - micromark-util-types "^2.0.0" - -micromark-util-encode@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz" - integrity sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw== - -micromark-util-html-tag-name@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz" - integrity sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA== - -micromark-util-normalize-identifier@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz" - integrity sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q== - dependencies: - micromark-util-symbol "^2.0.0" - -micromark-util-resolve-all@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz" - integrity sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg== - dependencies: - micromark-util-types "^2.0.0" - -micromark-util-sanitize-uri@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz" - integrity sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ== - dependencies: - micromark-util-character "^2.0.0" - micromark-util-encode "^2.0.0" - micromark-util-symbol "^2.0.0" - -micromark-util-subtokenize@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz" - integrity sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA== - dependencies: - devlop "^1.0.0" - micromark-util-chunked "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -micromark-util-symbol@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz" - integrity sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q== - -micromark-util-types@^2.0.0, micromark-util-types@^2.0.3, micromark-util-types@2.0.3: - version "2.0.3" - resolved "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz" - integrity sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg== - -micromark@4.0.3: - version "4.0.3" - resolved "https://registry.npmjs.org/micromark/-/micromark-4.0.3.tgz" - integrity sha512-oGYfQzHSG5dOMovQcJ3fyTmZlWAWpi0XA0sJwJs+i6OT88o1+Jtw/8z0CmdowSLxGhhFK89rQ/oXph/wN02PNw== - dependencies: - "@types/debug" "^4.0.0" - debug "^4.0.0" - decode-named-character-reference "^1.0.0" - devlop "^1.0.0" - micromark-core-commonmark "^2.0.0" - micromark-factory-space "^2.0.0" - micromark-util-character "^2.0.0" - micromark-util-chunked "^2.0.0" - micromark-util-combine-extensions "^2.0.0" - micromark-util-decode-numeric-character-reference "^2.0.0" - micromark-util-edit-map "^1.0.0" - micromark-util-encode "^2.0.0" - micromark-util-normalize-identifier "^2.0.0" - micromark-util-resolve-all "^2.0.0" - micromark-util-sanitize-uri "^2.0.0" - micromark-util-subtokenize "^2.0.0" - micromark-util-symbol "^2.0.0" - micromark-util-types "^2.0.0" - -mime-db@1.52.0: - version "1.52.0" - resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - -mime-types@~2.1.24, mime-types@~2.1.34: - version "2.1.35" - resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== - dependencies: - mime-db "1.52.0" - -mime@1.6.0: - version "1.6.0" - resolved "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz" - integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== - -minimatch@11.0.2: - version "11.0.2" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-11.0.2.tgz" - integrity sha512-pWTgz5CN3tjqyZNSK2tePlSmu9IwM41q8yn8Usdqqwe9TIHh+9dEpLLjF4uApsfPEAZY71qtSiA2B2APEr+1Yw== - dependencies: - "@isaacs/nonrecursive-glob-match" "^1.0.2" - brace-expansion "^5.0.12" - -minimist@^1.2.8: - version "1.2.8" - resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz" - integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== - -minipass@^7.1.2, minipass@^7.1.3: - version "7.1.3" - resolved "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz" - integrity sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A== - -ms@^2.1.3, ms@2.1.3: - version "2.1.3" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" - integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" - integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== - -negotiator@0.6.3: - version "0.6.3" - resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz" - integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== - -object-inspect@^1.13.3, object-inspect@^1.13.4: - version "1.13.4" - resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz" - integrity sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew== - -on-finished@~2.4.1: - version "2.4.2" - resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.4.2.tgz" - integrity sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ== - dependencies: - ee-first "1.1.1" - -optionator@^0.9.3: - version "0.9.4" - resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz" - integrity sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.5" - -ox@0.14.57: - version "0.14.57" - resolved "https://registry.npmjs.org/ox/-/ox-0.14.57.tgz" - integrity sha512-CPF6aEFyAuqgL0x7VaFM0vI2/CUd5Qk8+BIL6OnViPw+gF07O/VAhqEPOPw5GYnYPwomIk8mD91gTcQ1RAtupA== - dependencies: - "@adraffy/ens-normalize" "^1.11.0" - "@noble/ciphers" "^1.3.0" - "@noble/curves" "1.9.1" - "@noble/hashes" "^1.8.0" - "@scure/bip32" "^1.7.0" - "@scure/bip39" "^1.6.0" - abitype "^1.2.3" - eventemitter3 "5.0.1" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -parse-entities@^4.0.0: - version "4.0.2" - resolved "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz" - integrity sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw== - dependencies: - "@types/unist" "^2.0.0" - character-entities-legacy "^3.0.0" - character-reference-invalid "^2.0.0" - decode-named-character-reference "^1.0.0" - is-alphanumerical "^2.0.0" - is-decimal "^2.0.0" - is-hexadecimal "^2.0.0" - -parseurl@~1.3.3: - version "1.3.3" - resolved "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" - integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -path-scurry@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/path-scurry/-/path-scurry-3.0.0.tgz" - integrity sha512-1pTbQqH1wIwMi/eleQ5leFTTCkzFsPcgXNjwOA8YGGW/W4/kHT3dssE7Z6NH+zuqNLOzOB0uaD61yl7cAcVhgg== - dependencies: - lru-cache "^11.0.0" - minipass "^7.1.2" - -path-to-regexp@~0.1.13: - version "0.1.13" - resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz" - integrity sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA== - -"picomatch@^3 || ^4", picomatch@^4.0.4: - version "4.0.7" - resolved "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz" - integrity sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA== - -prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - -proxy-addr@~2.0.7: - version "2.0.8" - resolved "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz" - integrity sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ== - dependencies: - forwarded "0.2.0" - ipaddr.js "1.9.1" - -punycode.js@^2.3.1: - version "2.3.1" - resolved "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz" - integrity sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA== - -punycode@^2.1.0: - version "2.3.1" - resolved "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz" - integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== - -qified@^0.10.1: - version "0.10.1" - resolved "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz" - integrity sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA== - dependencies: - hookified "^2.1.1" - -qs@~6.16.0: - version "6.16.2" - resolved "https://registry.npmjs.org/qs/-/qs-6.16.2.tgz" - integrity sha512-VYdnB5S7/0IeXzBacUtwNAaM6d7Y/PgYnNC7bJCI6meqA/OgnsQbZMtVW8Dt2D1PHgbHGtYmhSoEIgvt7xZ2ZA== - dependencies: - es-define-property "^1.0.1" - side-channel "^1.1.1" - -range-parser@~1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz" - integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== - -raw-body@~2.5.3: - version "2.5.3" - resolved "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz" - integrity sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA== - dependencies: - bytes "~3.1.2" - http-errors "~2.0.1" - iconv-lite "~0.4.24" - unpipe "~1.0.0" - -re2js@2.9.1: - version "2.9.1" - resolved "https://registry.npmjs.org/re2js/-/re2js-2.9.1.tgz" - integrity sha512-JIT3bEEUZTOR2YS1walNEIfH4cF/cQeZcBUFq7ldqO6lR6g0X5CBq/S8rsa9omzZcsNf8qc36jCkWpKKtncrZg== - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" - integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== - -require-from-string@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz" - integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== - -run-con@~1.3.3: - version "1.3.3" - resolved "https://registry.npmjs.org/run-con/-/run-con-1.3.3.tgz" - integrity sha512-Lb7OKM9aaykzyoNiHGhSVCjZsvbyy6qDMp2vDXL+MoCfz3GfNJtHYH7uYsU3QNMyInBk++xx+EZ8xZ8Sxs5fNQ== - dependencies: - deep-extend "^0.6.0" - ini "~7.0.0" - minimist "^1.2.8" - strip-json-comments "~3.1.1" - -safe-buffer@5.2.1: - version "5.2.1" - resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -"safer-buffer@>= 2.1.2 < 3": - version "2.1.2" - resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -semver@^7.5.3: - version "7.7.4" - resolved "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz" - integrity sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA== - -send@~0.19.0, send@~0.19.1: - version "0.19.2" - resolved "https://registry.npmjs.org/send/-/send-0.19.2.tgz" - integrity sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg== - dependencies: - debug "2.6.9" - depd "2.0.0" - destroy "1.2.0" - encodeurl "~2.0.0" - escape-html "~1.0.3" - etag "~1.8.1" - fresh "~0.5.2" - http-errors "~2.0.1" - mime "1.6.0" - ms "2.1.3" - on-finished "~2.4.1" - range-parser "~1.2.1" - statuses "~2.0.2" - -serve-static@~1.16.2: - version "1.16.3" - resolved "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz" - integrity sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA== - dependencies: - encodeurl "~2.0.0" - escape-html "~1.0.3" - parseurl "~1.3.3" - send "~0.19.1" - -setprototypeof@~1.2.0, setprototypeof@1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" - integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -side-channel-list@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz" - integrity sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w== - dependencies: - es-errors "^1.3.0" - object-inspect "^1.13.4" - -side-channel-map@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz" - integrity sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA== - dependencies: - call-bound "^1.0.2" - es-errors "^1.3.0" - get-intrinsic "^1.2.5" - object-inspect "^1.13.3" - -side-channel-weakmap@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz" - integrity sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A== - dependencies: - call-bound "^1.0.2" - es-errors "^1.3.0" - get-intrinsic "^1.2.5" - object-inspect "^1.13.3" - side-channel-map "^1.0.1" - -side-channel@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz" - integrity sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ== - dependencies: - es-errors "^1.3.0" - object-inspect "^1.13.4" - side-channel-list "^1.0.1" - side-channel-map "^1.0.1" - side-channel-weakmap "^1.0.2" - -signal-exit@^4.0.1: - version "4.1.0" - resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz" - integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== - -smol-toml@1.9.1: - version "1.9.1" - resolved "https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.1.tgz" - integrity sha512-j7WyPdf0CJoutMzMoPLF/bVXHtKZIT9Rb4eGeEbWw8X2t5oirjPgpL+OpaENZrILYaXqYwnVH+qgUwVbl+pUJQ== - -sql.js@1.16.0: - version "1.16.0" - resolved "https://registry.npmjs.org/sql.js/-/sql.js-1.16.0.tgz" - integrity sha512-q/JOZuJfmVh8Zf8Eo+cMJvtxAWeWBqTfJ6AQYGXZmcaLGHMwhA2niH3fQYHrBtPeOss1ttzHec07K5+rHaMRMw== - -statuses@~2.0.1, statuses@~2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz" - integrity sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw== - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.3" - resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^4.2.3: - version "4.2.3" - resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@8.3.0: - version "8.3.0" - resolved "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz" - integrity sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ== - dependencies: - get-east-asian-width "^1.5.0" - strip-ansi "^7.1.2" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^7.1.2: - version "7.2.0" - resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz" - integrity sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w== - dependencies: - ansi-regex "^6.2.2" - -strip-json-comments@~3.1.1: - version "3.1.1" - resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -test-exclude@^8.0.0: - version "8.0.0" - resolved "https://registry.npmjs.org/test-exclude/-/test-exclude-8.0.0.tgz" - integrity sha512-ZOffsNrXYggvU1mDGHk54I96r26P8SyMjO5slMKSc7+IWmtB/MQKnEC2fP51imB3/pT6YK5cT5E8f+Dd9KdyOQ== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^13.0.6" - minimatch "^10.2.2" - -tinyglobby@~0.2.17: - version "0.2.17" - resolved "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz" - integrity sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g== - dependencies: - fdir "^6.5.0" - picomatch "^4.0.4" - -toidentifier@~1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz" - integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== - -tweetnacl@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz" - integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw== - -type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - -type-is@~1.6.18: - version "1.6.18" - resolved "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz" - integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== - dependencies: - media-typer "0.3.0" - mime-types "~2.1.24" - -typescript@>=5.0.4, typescript@>=5.4.0, typescript@6.0.3: - version "6.0.3" - resolved "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz" - integrity sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw== - -uc.micro@^2.0.0, uc.micro@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz" - integrity sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A== - -undici-types@~8.9.0: - version "8.9.0" - resolved "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz" - integrity sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg== - -unpipe@~1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" - integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== - -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - -utils-merge@1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" - integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== - -v8-to-istanbul@^9.0.0: - version "9.3.0" - resolved "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz" - integrity sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA== - dependencies: - "@jridgewell/trace-mapping" "^0.3.12" - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^2.0.0" - -vary@~1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz" - integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== - -viem@^2.48.11, viem@^2.7.0: - version "2.57.11" - resolved "https://registry.npmjs.org/viem/-/viem-2.57.11.tgz" - integrity sha512-kvcBGXzIGmZu3GqaA83ZOLzVC57YO7WCgQrGcUHNKqZ8Cjqc9vV//uGna4Nhv0NGHn2gekw1FNdSvQePNnYePQ== - dependencies: - "@noble/curves" "1.9.1" - "@noble/hashes" "1.8.0" - "@scure/bip32" "1.7.0" - "@scure/bip39" "1.6.0" - abitype "1.2.3" - isows "1.0.7" - ox "0.14.57" - ws "8.21.0" - -which@^2.0.1: - version "2.0.2" - resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -word-wrap@^1.2.5: - version "1.2.5" - resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz" - integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -ws@*, ws@8.21.0: - version "8.21.0" - resolved "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz" - integrity sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g== - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" - integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== - -yargs-parser@^21.1.1: - version "21.1.1" - resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" - integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== - -yargs@^17.7.2: - version "17.7.2" - resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz" - integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== - dependencies: - cliui "^8.0.1" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.3" - y18n "^5.0.5" - yargs-parser "^21.1.1" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== - -zod@4.6.7: - version "4.6.7" - resolved "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz" - integrity sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg== +# This file is generated by running "yarn install" inside your project. +# Manual changes might be lost - proceed with caution! + +__metadata: + version: 8 + cacheKey: 10c0 + +"@adraffy/ens-normalize@npm:^1.11.0": + version: 1.11.1 + resolution: "@adraffy/ens-normalize@npm:1.11.1" + checksum: 10c0/b364e2a57131db278ebf2f22d1a1ac6d8aea95c49dd2bbbc1825870b38aa91fd8816aba580a1f84edc50a45eb6389213dacfd1889f32893afc8549a82d304767 + languageName: node + linkType: hard + +"@bcoe/v8-coverage@npm:^1.0.1": + version: 1.0.2 + resolution: "@bcoe/v8-coverage@npm:1.0.2" + checksum: 10c0/1eb1dc93cc17fb7abdcef21a6e7b867d6aa99a7ec88ec8207402b23d9083ab22a8011213f04b2cf26d535f1d22dc26139b7929e6c2134c254bd1e14ba5e678c3 + languageName: node + linkType: hard + +"@cacheable/memory@npm:^2.2.0": + version: 2.2.0 + resolution: "@cacheable/memory@npm:2.2.0" + dependencies: + "@cacheable/utils": "npm:^2.5.0" + "@keyv/bigmap": "npm:^1.3.1" + hookified: "npm:^1.15.1" + keyv: "npm:^5.6.0" + checksum: 10c0/c74889eb09871be0696065778fff013a498ddc73b538d113c2cb6ece361746f2959fbddfa4ce03ce53c9259998be05949e393212e72413dbd07616744eabd261 + languageName: node + linkType: hard + +"@cacheable/utils@npm:^2.5.0": + version: 2.5.0 + resolution: "@cacheable/utils@npm:2.5.0" + dependencies: + hashery: "npm:^1.5.1" + keyv: "npm:^5.6.0" + checksum: 10c0/99e901accd71eeb0bce91484d6c66d7ef2c731b541561eb5dc9ea7fed78bdc0b65e5dd2a80edde50191143bcfc5f238fc4742475b32e82d43b43eea224038e35 + languageName: node + linkType: hard + +"@eslint-community/eslint-utils@npm:^4.8.0": + version: 4.9.1 + resolution: "@eslint-community/eslint-utils@npm:4.9.1" + dependencies: + eslint-visitor-keys: "npm:^3.4.3" + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + checksum: 10c0/dc4ab5e3e364ef27e33666b11f4b86e1a6c1d7cbf16f0c6ff87b1619b3562335e9201a3d6ce806221887ff780ec9d828962a290bb910759fd40a674686503f02 + languageName: node + linkType: hard + +"@eslint-community/regexpp@npm:^4.12.2": + version: 4.12.2 + resolution: "@eslint-community/regexpp@npm:4.12.2" + checksum: 10c0/fddcbc66851b308478d04e302a4d771d6917a0b3740dc351513c0da9ca2eab8a1adf99f5e0aa7ab8b13fa0df005c81adeee7e63a92f3effd7d367a163b721c2d + languageName: node + linkType: hard + +"@eslint/config-array@npm:^0.23.6": + version: 0.23.6 + resolution: "@eslint/config-array@npm:0.23.6" + dependencies: + "@eslint/object-schema": "npm:^3.0.5" + debug: "npm:^4.3.1" + minimatch: "npm:^11.0.5" + checksum: 10c0/adf798a55b4f58e1db954347633ca2c07c51d413590f274f77d1d94d3413de3d321e3558e313f616a822cb76d90e9c378ec6dd2f49b3e51a2070e61f4405f2ae + languageName: node + linkType: hard + +"@eslint/config-helpers@npm:^0.7.0": + version: 0.7.0 + resolution: "@eslint/config-helpers@npm:0.7.0" + dependencies: + "@eslint/core": "npm:^1.2.1" + checksum: 10c0/fd40d57d6f1db49f7b647048b88a433dc7f6522ef3edf855a43cb526ef4fc40622ceed0dc8de2e03d254f30f8e035370570de1d4bd8e7c2b1200131451e0d331 + languageName: node + linkType: hard + +"@eslint/core@npm:^1.2.1": + version: 1.2.1 + resolution: "@eslint/core@npm:1.2.1" + dependencies: + "@types/json-schema": "npm:^7.0.15" + checksum: 10c0/10979b40588ecfef771fcb5013a542a35fb30692cc95a65f3481b0b36fbd89f5679efeb30d57f4eed35203d859aabace2a620177d6c536f71b299a1af2f3398f + languageName: node + linkType: hard + +"@eslint/js@npm:9.39.2": + version: 9.39.2 + resolution: "@eslint/js@npm:9.39.2" + checksum: 10c0/00f51c52b04ac79faebfaa65a9652b2093b9c924e945479f1f3945473f78aee83cbc76c8d70bbffbf06f7024626575b16d97b66eab16182e1d0d39daff2f26f5 + languageName: node + linkType: hard + +"@eslint/object-schema@npm:^3.0.5": + version: 3.0.5 + resolution: "@eslint/object-schema@npm:3.0.5" + checksum: 10c0/1db337431f520b99e9edda64ef5fafd7ec6a029843eeb608753025125b6649d861d843cffafafd3c4e37926d7d5f9ec0c6a8e3665c13c3da2144e8132892e92e + languageName: node + linkType: hard + +"@eslint/plugin-kit@npm:^0.7.3": + version: 0.7.3 + resolution: "@eslint/plugin-kit@npm:0.7.3" + dependencies: + "@eslint/core": "npm:^1.2.1" + levn: "npm:^0.4.1" + checksum: 10c0/2daebaedcfbd261478e8b87dfb46d3118f48277c19eb298483ebc6f3b438e9688b86ddca13b3aeb08dfb06be00fb6073506852386aa124645c1170e7e33d140c + languageName: node + linkType: hard + +"@humanfs/core@npm:^0.19.2": + version: 0.19.2 + resolution: "@humanfs/core@npm:0.19.2" + dependencies: + "@humanfs/types": "npm:^0.15.0" + checksum: 10c0/d0a1d52d7b30c27d49475a53072d1510b81c5803e44b342fb8faf3887f1aa27593a1e6dc76a45268e7892d3f4e198146659281f6b6d55eacf3fd5a38bac30c5c + languageName: node + linkType: hard + +"@humanfs/node@npm:0.16.8": + version: 0.16.8 + resolution: "@humanfs/node@npm:0.16.8" + dependencies: + "@humanfs/core": "npm:^0.19.2" + "@humanfs/types": "npm:^0.15.0" + "@humanwhocodes/retry": "npm:^0.4.0" + checksum: 10c0/56140579db811af4e160b195d45d0f29acf644d192c93fe24c9e594ebf06f19dfc157494a07c84540b8a071c0e4b37209c2362765d31734f4d0be869c2422e25 + languageName: node + linkType: hard + +"@humanfs/types@npm:^0.15.0": + version: 0.15.0 + resolution: "@humanfs/types@npm:0.15.0" + checksum: 10c0/fc26b9a024b0e55f7eaf64036df94345bf5d36d6a41ef80ef38e78f1f7430ce26cf435af736adae58913baae18eac3f38c18739054a3d379102015978eae862e + languageName: node + linkType: hard + +"@humanwhocodes/module-importer@npm:^1.0.1": + version: 1.0.1 + resolution: "@humanwhocodes/module-importer@npm:1.0.1" + checksum: 10c0/909b69c3b86d482c26b3359db16e46a32e0fb30bd306a3c176b8313b9e7313dba0f37f519de6aa8b0a1921349e505f259d19475e123182416a506d7f87e7f529 + languageName: node + linkType: hard + +"@humanwhocodes/retry@npm:^0.4.0, @humanwhocodes/retry@npm:^0.4.2": + version: 0.4.3 + resolution: "@humanwhocodes/retry@npm:0.4.3" + checksum: 10c0/3775bb30087d4440b3f7406d5a057777d90e4b9f435af488a4923ef249e93615fb78565a85f173a186a076c7706a81d0d57d563a2624e4de2c5c9c66c486ce42 + languageName: node + linkType: hard + +"@iarna/toml@npm:2.2.5": + version: 2.2.5 + resolution: "@iarna/toml@npm:2.2.5" + checksum: 10c0/d095381ad4554aca233b7cf5a91f243ef619e5e15efd3157bc640feac320545450d14b394aebbf6f02a2047437ced778ae598d5879a995441ab7b6c0b2c2f201 + languageName: node + linkType: hard + +"@isaacs/nonrecursive-glob-match@npm:^1.0.2": + version: 1.1.0 + resolution: "@isaacs/nonrecursive-glob-match@npm:1.1.0" + checksum: 10c0/89f8535f3d8147649360de992f58fba2b0e97b687e18cdc16c5b34a6c52afff4f474d05c5a0b6411708614f368cf19c41b037d3a1c6c6821e02aee967d888e98 + languageName: node + linkType: hard + +"@istanbuljs/schema@npm:^0.1.2, @istanbuljs/schema@npm:^0.1.3": + version: 0.1.3 + resolution: "@istanbuljs/schema@npm:0.1.3" + checksum: 10c0/61c5286771676c9ca3eb2bd8a7310a9c063fb6e0e9712225c8471c582d157392c88f5353581c8c9adbe0dff98892317d2fdfc56c3499aa42e0194405206a963a + languageName: node + linkType: hard + +"@jridgewell/resolve-uri@npm:^3.1.0": + version: 3.1.2 + resolution: "@jridgewell/resolve-uri@npm:3.1.2" + checksum: 10c0/d502e6fb516b35032331406d4e962c21fe77cdf1cbdb49c6142bcbd9e30507094b18972778a6e27cbad756209cfe34b1a27729e6fa08a2eb92b33943f680cf1e + languageName: node + linkType: hard + +"@jridgewell/sourcemap-codec@npm:^1.4.14": + version: 1.5.5 + resolution: "@jridgewell/sourcemap-codec@npm:1.5.5" + checksum: 10c0/f9e538f302b63c0ebc06eecb1dd9918dd4289ed36147a0ddce35d6ea4d7ebbda243cda7b2213b6a5e1d8087a298d5cf630fb2bd39329cdecb82017023f6081a0 + languageName: node + linkType: hard + +"@jridgewell/trace-mapping@npm:^0.3.12": + version: 0.3.31 + resolution: "@jridgewell/trace-mapping@npm:0.3.31" + dependencies: + "@jridgewell/resolve-uri": "npm:^3.1.0" + "@jridgewell/sourcemap-codec": "npm:^1.4.14" + checksum: 10c0/4b30ec8cd56c5fd9a661f088230af01e0c1a3888d11ffb6b47639700f71225be21d1f7e168048d6d4f9449207b978a235c07c8f15c07705685d16dc06280e9d9 + languageName: node + linkType: hard + +"@keyv/bigmap@npm:^1.3.1": + version: 1.3.1 + resolution: "@keyv/bigmap@npm:1.3.1" + dependencies: + hashery: "npm:^1.4.0" + hookified: "npm:^1.15.0" + peerDependencies: + keyv: ^5.6.0 + checksum: 10c0/acc6a4a5edf462ce23e95672ab4bfaf7cd1941dff6bf3a2f671ce467961ace1fac9d3eb75a9ed9a8e92012e00a7d8b16ad1677bc539a52c3ad0cec31473e2349 + languageName: node + linkType: hard + +"@keyv/serialize@npm:^1.1.1": + version: 1.1.1 + resolution: "@keyv/serialize@npm:1.1.1" + checksum: 10c0/b0008cae4a54400c3abf587b8cc2474c6f528ee58969ce6cf9cb07a04006f80c73c85971d6be6544408318a2bc40108236a19a82aea0a6de95aae49533317374 + languageName: node + linkType: hard + +"@noble/ciphers@npm:^1.3.0": + version: 1.3.0 + resolution: "@noble/ciphers@npm:1.3.0" + checksum: 10c0/3ba6da645ce45e2f35e3b2e5c87ceba86b21dfa62b9466ede9edfb397f8116dae284f06652c0cd81d99445a2262b606632e868103d54ecc99fd946ae1af8cd37 + languageName: node + linkType: hard + +"@noble/curves@npm:1.9.1": + version: 1.9.1 + resolution: "@noble/curves@npm:1.9.1" + dependencies: + "@noble/hashes": "npm:1.8.0" + checksum: 10c0/39c84dbfecdca80cfde2ecea4b06ef2ec1255a4df40158d22491d1400057a283f57b2b26c8b1331006e6e061db791f31d47764961c239437032e2f45e8888c1e + languageName: node + linkType: hard + +"@noble/curves@npm:^1.9.0, @noble/curves@npm:~1.9.0": + version: 1.9.7 + resolution: "@noble/curves@npm:1.9.7" + dependencies: + "@noble/hashes": "npm:1.8.0" + checksum: 10c0/150014751ebe8ca06a8654ca2525108452ea9ee0be23430332769f06808cddabfe84f248b6dbf836916bc869c27c2092957eec62c7506d68a1ed0a624017c2a3 + languageName: node + linkType: hard + +"@noble/hashes@npm:1.8.0, @noble/hashes@npm:^1.7.0, @noble/hashes@npm:^1.8.0, @noble/hashes@npm:~1.8.0": + version: 1.8.0 + resolution: "@noble/hashes@npm:1.8.0" + checksum: 10c0/06a0b52c81a6fa7f04d67762e08b2c476a00285858150caeaaff4037356dd5e119f45b2a530f638b77a5eeca013168ec1b655db41bae3236cb2e9d511484fc77 + languageName: node + linkType: hard + +"@opencode-ai/plugin@npm:1.4.3": + version: 1.4.3 + resolution: "@opencode-ai/plugin@npm:1.4.3" + dependencies: + "@opencode-ai/sdk": "npm:1.4.3" + zod: "npm:4.1.8" + peerDependencies: + "@opentui/core": ">=0.1.97" + "@opentui/solid": ">=0.1.97" + peerDependenciesMeta: + "@opentui/core": + optional: true + "@opentui/solid": + optional: true + checksum: 10c0/a20328a691a674638e4718c1fb911ea68b60fc7560f1bf314324114ccdcabbddc12e98c4fc9f3aad69e92aaaac7edbd44216bf036955ec5d1f50282430ab06ae + languageName: node + linkType: hard + +"@opencode-ai/sdk@npm:1.4.3": + version: 1.4.3 + resolution: "@opencode-ai/sdk@npm:1.4.3" + dependencies: + cross-spawn: "npm:7.0.6" + checksum: 10c0/edba27ef01ecfb6fde7df2348f953aab64f2e7b99e9cd5b155474e7e02cc0db62da242d9edcd5b704110b9ef82bc16633d99d25eaa812d4279badede71ae419f + languageName: node + linkType: hard + +"@scure/base@npm:^1.2.6, @scure/base@npm:~1.2.5": + version: 1.2.6 + resolution: "@scure/base@npm:1.2.6" + checksum: 10c0/49bd5293371c4e062cb6ba689c8fe3ea3981b7bb9c000400dc4eafa29f56814cdcdd27c04311c2fec34de26bc373c593a1d6ca6d754398a488d587943b7c128a + languageName: node + linkType: hard + +"@scure/bip32@npm:1.7.0, @scure/bip32@npm:^1.7.0": + version: 1.7.0 + resolution: "@scure/bip32@npm:1.7.0" + dependencies: + "@noble/curves": "npm:~1.9.0" + "@noble/hashes": "npm:~1.8.0" + "@scure/base": "npm:~1.2.5" + checksum: 10c0/e3d4c1f207df16abcd79babcdb74d36f89bdafc90bf02218a5140cc5cba25821d80d42957c6705f35210cc5769714ea9501d4ae34732cdd1c26c9ff182a219f7 + languageName: node + linkType: hard + +"@scure/bip39@npm:1.6.0, @scure/bip39@npm:^1.6.0": + version: 1.6.0 + resolution: "@scure/bip39@npm:1.6.0" + dependencies: + "@noble/hashes": "npm:~1.8.0" + "@scure/base": "npm:~1.2.5" + checksum: 10c0/73a54b5566a50a3f8348a5cfd74d2092efeefc485efbed83d7a7374ffd9a75defddf446e8e5ea0385e4adb49a94b8ae83c5bad3e16333af400e932f7da3aaff8 + languageName: node + linkType: hard + +"@signinwithethereum/siwe-parser@npm:^4.2.1": + version: 4.2.1 + resolution: "@signinwithethereum/siwe-parser@npm:4.2.1" + dependencies: + "@noble/hashes": "npm:^1.7.0" + apg-js: "npm:^4.4.0" + checksum: 10c0/a277cb2061b20756ffd59e169164f9e10e447ffc7a301629268aaa08b4dfc4b804e105e1d7b13a71149c856fb1ba7c088be7b29bb6d41d1e4ac8f99d1d4c0592 + languageName: node + linkType: hard + +"@signinwithethereum/siwe@npm:^4.1.0": + version: 4.2.1 + resolution: "@signinwithethereum/siwe@npm:4.2.1" + dependencies: + "@signinwithethereum/siwe-parser": "npm:^4.2.1" + peerDependencies: + ethers: ^5.7.0 || ^6.13.0 + viem: ^2.7.0 + peerDependenciesMeta: + ethers: + optional: true + viem: + optional: true + checksum: 10c0/42e3194466ff9f0b9d446346067c67e5d49daf91442fef22b8fd5e4c4a80fc729c3009f4a6f4f9afeab842218c3a90de6331d5a256b7331a27017d80206ef08d + languageName: node + linkType: hard + +"@types/debug@npm:^4.0.0": + version: 4.1.13 + resolution: "@types/debug@npm:4.1.13" + dependencies: + "@types/ms": "npm:*" + checksum: 10c0/e5e124021bbdb23a82727eee0a726ae0fc8a3ae1f57253cbcc47497f259afb357de7f6941375e773e1abbfa1604c1555b901a409d762ec2bb4c1612131d4afb7 + languageName: node + linkType: hard + +"@types/esrecurse@npm:^4.3.1": + version: 4.3.1 + resolution: "@types/esrecurse@npm:4.3.1" + checksum: 10c0/90dad74d5da3ad27606d8e8e757322f33171cfeaa15ad558b615cf71bb2a516492d18f55f4816384685a3eb2412142e732bbae9a4a7cd2cf3deb7572aa4ebe03 + languageName: node + linkType: hard + +"@types/estree@npm:^1.0.6, @types/estree@npm:^1.0.8": + version: 1.0.8 + resolution: "@types/estree@npm:1.0.8" + checksum: 10c0/39d34d1afaa338ab9763f37ad6066e3f349444f9052b9676a7cc0252ef9485a41c6d81c9c4e0d26e9077993354edf25efc853f3224dd4b447175ef62bdcc86a5 + languageName: node + linkType: hard + +"@types/istanbul-lib-coverage@npm:^2.0.1": + version: 2.0.6 + resolution: "@types/istanbul-lib-coverage@npm:2.0.6" + checksum: 10c0/3948088654f3eeb45363f1db158354fb013b362dba2a5c2c18c559484d5eb9f6fd85b23d66c0a7c2fcfab7308d0a585b14dadaca6cc8bf89ebfdc7f8f5102fb7 + languageName: node + linkType: hard + +"@types/json-schema@npm:^7.0.15": + version: 7.0.15 + resolution: "@types/json-schema@npm:7.0.15" + checksum: 10c0/a996a745e6c5d60292f36731dd41341339d4eeed8180bb09226e5c8d23759067692b1d88e5d91d72ee83dfc00d3aca8e7bd43ea120516c17922cbcb7c3e252db + languageName: node + linkType: hard + +"@types/katex@npm:^0.16.0": + version: 0.16.8 + resolution: "@types/katex@npm:0.16.8" + checksum: 10c0/0661609353f4f5e62bd2dc78da99e842761c6474b19f2268b195bbe9dbf20e6f766a31155d79eec2e7c3eff4e7eba4b30f4f519e9c6a11c75bb45e257a2ddb69 + languageName: node + linkType: hard + +"@types/ms@npm:*": + version: 2.1.0 + resolution: "@types/ms@npm:2.1.0" + checksum: 10c0/5ce692ffe1549e1b827d99ef8ff71187457e0eb44adbae38fdf7b9a74bae8d20642ee963c14516db1d35fa2652e65f47680fdf679dcbde52bbfadd021f497225 + languageName: node + linkType: hard + +"@types/node@npm:26.6.6": + version: 26.6.6 + resolution: "@types/node@npm:26.6.6" + dependencies: + undici-types: "npm:~8.9.0" + checksum: 10c0/5cb63f644f6e85a257a9cd2403cbcbe196760e2a35fd3ec9fb8b5cff663e14cc832b198cc17b53f870a2e30900ed45a1fb3f53e6589aba26b8e8c484aa672053 + languageName: node + linkType: hard + +"@types/unist@npm:^2.0.0": + version: 2.0.11 + resolution: "@types/unist@npm:2.0.11" + checksum: 10c0/24dcdf25a168f453bb70298145eb043cfdbb82472db0bc0b56d6d51cd2e484b9ed8271d4ac93000a80da568f2402e9339723db262d0869e2bf13bc58e081768d + languageName: node + linkType: hard + +"@x402/core@npm:2.31.0, @x402/core@npm:~2.31.0": + version: 2.31.0 + resolution: "@x402/core@npm:2.31.0" + dependencies: + zod: "npm:^4.6.6" + checksum: 10c0/67333e7049fc0dccc85723f25582e64ab83a4aec7d360b0781028d189535568a4789a948e9f7f6229d2380e353b3355e553f44ed0a5e1517b08d64f64bcee0f3 + languageName: node + linkType: hard + +"@x402/evm@npm:2.31.0": + version: 2.31.0 + resolution: "@x402/evm@npm:2.31.0" + dependencies: + "@x402/core": "npm:~2.31.0" + viem: "npm:^2.48.11" + zod: "npm:^4.6.6" + checksum: 10c0/9705d9b9b9418cd2cd829d89f311c3e885285b1d78929b6e7149b1f4a891cac7a9b31dc2ad8d0a90eac8fe394e13405a426a2bdf690e4088791e2aef3b3ca6f6 + languageName: node + linkType: hard + +"@x402/express@npm:2.31.0": + version: 2.31.0 + resolution: "@x402/express@npm:2.31.0" + dependencies: + "@x402/core": "npm:~2.31.0" + "@x402/extensions": "npm:~2.31.0" + peerDependencies: + "@x402/paywall": ^2.31.0 + express: ^4.22.3 || ^5.3.0 + peerDependenciesMeta: + "@x402/paywall": + optional: true + checksum: 10c0/65e3a52dae523f58b1c4b11b60b99d9209da859b7ec9fc0523c6046ce40d589cc51a9706be19f8c34805b04132aea541b893b1036a30732bf03c89df722231d7 + languageName: node + linkType: hard + +"@x402/extensions@npm:~2.31.0": + version: 2.31.0 + resolution: "@x402/extensions@npm:2.31.0" + dependencies: + "@noble/curves": "npm:^1.9.0" + "@scure/base": "npm:^1.2.6" + "@signinwithethereum/siwe": "npm:^4.1.0" + "@x402/core": "npm:~2.31.0" + ajv: "npm:^8.18.0" + jose: "npm:^5.9.6" + tweetnacl: "npm:^1.0.3" + viem: "npm:^2.48.11" + zod: "npm:^4.6.6" + checksum: 10c0/3ec7adb56608734d16493e3adc9d32ed3a229733dca43dd53d50406d6ec79ad0eedc007acca213411adadbc0e8538140707466c239217270836db2a3fc453795 + languageName: node + linkType: hard + +"abitype@npm:1.2.3, abitype@npm:^1.2.3": + version: 1.2.3 + resolution: "abitype@npm:1.2.3" + peerDependencies: + typescript: ">=5.0.4" + zod: ^3.22.0 || ^4.0.0 + peerDependenciesMeta: + typescript: + optional: true + zod: + optional: true + checksum: 10c0/c8740de1ae4961723a153224a52cb9a34a57903fb5c2ad61d5082b0b79b53033c9335381aa8c663c7ec213c9955a9853f694d51e95baceedef27356f7745c634 + languageName: node + linkType: hard + +"accepts@npm:~1.3.8": + version: 1.3.8 + resolution: "accepts@npm:1.3.8" + dependencies: + mime-types: "npm:~2.1.34" + negotiator: "npm:0.6.3" + checksum: 10c0/3a35c5f5586cfb9a21163ca47a5f77ac34fa8ceb5d17d2fa2c0d81f41cbd7f8c6fa52c77e2c039acc0f4d09e71abdc51144246900f6bef5e3c4b333f77d89362 + languageName: node + linkType: hard + +"acorn-jsx@npm:^5.3.2": + version: 5.3.2 + resolution: "acorn-jsx@npm:5.3.2" + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + checksum: 10c0/4c54868fbef3b8d58927d5e33f0a4de35f59012fe7b12cf9dfbb345fb8f46607709e1c4431be869a23fb63c151033d84c4198fa9f79385cec34fcb1dd53974c1 + languageName: node + linkType: hard + +"acorn@npm:^8.16.0": + version: 8.17.0 + resolution: "acorn@npm:8.17.0" + bin: + acorn: bin/acorn + checksum: 10c0/5dcefea5f8f023b6cc24cbe71fb5a8112b601d36c4fa07d14e4e6ffc2ee47383332c46b36c766d9437725aa6660156eae50efa0c838719823b50d7c327c4ed42 + languageName: node + linkType: hard + +"ajv@npm:8.20.0, ajv@npm:^8.18.0": + version: 8.20.0 + resolution: "ajv@npm:8.20.0" + dependencies: + fast-deep-equal: "npm:^3.1.3" + fast-uri: "npm:^3.0.1" + json-schema-traverse: "npm:^1.0.0" + require-from-string: "npm:^2.0.2" + checksum: 10c0/5df9a1c8f83863cde1bd3a9ddb426f599718f88e3dc9153616c79fb28e0be455335830d7f21d745576519f057b371352daa31047b6a33d7036fe08777d60cf2a + languageName: node + linkType: hard + +"ajv@npm:^6.14.0": + version: 6.14.0 + resolution: "ajv@npm:6.14.0" + dependencies: + fast-deep-equal: "npm:^3.1.1" + fast-json-stable-stringify: "npm:^2.0.0" + json-schema-traverse: "npm:^0.4.1" + uri-js: "npm:^4.2.2" + checksum: 10c0/a2bc39b0555dc9802c899f86990eb8eed6e366cddbf65be43d5aa7e4f3c4e1a199d5460fd7ca4fb3d864000dbbc049253b72faa83b3b30e641ca52cb29a68c22 + languageName: node + linkType: hard + +"ansi-regex@npm:^5.0.1": + version: 5.0.1 + resolution: "ansi-regex@npm:5.0.1" + checksum: 10c0/9a64bb8627b434ba9327b60c027742e5d17ac69277960d041898596271d992d4d52ba7267a63ca10232e29f6107fc8a835f6ce8d719b88c5f8493f8254813737 + languageName: node + linkType: hard + +"ansi-regex@npm:^6.2.2": + version: 6.3.0 + resolution: "ansi-regex@npm:6.3.0" + checksum: 10c0/bc047786d0531f1f22d1e22e9863e8554488a399f1ee5270b753efa6de938a788d27456f2b256770f11fdd8b1e847483bc1b55ddc2b3ffe82ec45c875292c651 + languageName: node + linkType: hard + +"ansi-styles@npm:^4.0.0": + version: 4.3.0 + resolution: "ansi-styles@npm:4.3.0" + dependencies: + color-convert: "npm:^2.0.1" + checksum: 10c0/895a23929da416f2bd3de7e9cb4eabd340949328ab85ddd6e484a637d8f6820d485f53933446f5291c3b760cbc488beb8e88573dd0f9c7daf83dccc8fe81b041 + languageName: node + linkType: hard + +"apg-js@npm:^4.4.0": + version: 4.4.0 + resolution: "apg-js@npm:4.4.0" + checksum: 10c0/b3e60e2ba8b25fe1c9fcc648f43b98f02f0eff3bbd593fd2866302fe57b1b7840ee9be894ebed6214876a6feecd543cc717d7b68351bf2df831db110ae01e6bb + languageName: node + linkType: hard + +"argparse@npm:^2.0.1": + version: 2.0.1 + resolution: "argparse@npm:2.0.1" + checksum: 10c0/c5640c2d89045371c7cedd6a70212a04e360fd34d6edeae32f6952c63949e3525ea77dbec0289d8213a99bbaeab5abfa860b5c12cf88a2e6cf8106e90dd27a7e + languageName: node + linkType: hard + +"argparse@npm:^3.0.3": + version: 3.0.4 + resolution: "argparse@npm:3.0.4" + checksum: 10c0/845346e39e677b46f8558cece7c8dad1f7045f8b86af33356d8565b26a16940bf770a14a51d6da40ce76554a141e0e95b514d055d1da17a2f1b42df7d523fa0f + languageName: node + linkType: hard + +"array-flatten@npm:1.1.1": + version: 1.1.1 + resolution: "array-flatten@npm:1.1.1" + checksum: 10c0/806966c8abb2f858b08f5324d9d18d7737480610f3bd5d3498aaae6eb5efdc501a884ba019c9b4a8f02ff67002058749d05548fd42fa8643f02c9c7f22198b91 + languageName: node + linkType: hard + +"balanced-match@npm:^4.0.2": + version: 4.0.4 + resolution: "balanced-match@npm:4.0.4" + checksum: 10c0/07e86102a3eb2ee2a6a1a89164f29d0dbaebd28f2ca3f5ca786f36b8b23d9e417eb3be45a4acf754f837be5ac0a2317de90d3fcb7f4f4dc95720a1f36b26a17b + languageName: node + linkType: hard + +"body-parser@npm:~1.20.5": + version: 1.20.9 + resolution: "body-parser@npm:1.20.9" + dependencies: + bytes: "npm:~3.1.2" + content-type: "npm:~1.0.5" + debug: "npm:2.6.9" + depd: "npm:2.0.0" + destroy: "npm:~1.2.0" + http-errors: "npm:~2.0.1" + iconv-lite: "npm:~0.4.24" + on-finished: "npm:~2.4.1" + qs: "npm:~6.16.0" + raw-body: "npm:~2.5.3" + type-is: "npm:~1.6.18" + unpipe: "npm:~1.0.0" + checksum: 10c0/685d3208335377a3dfc6d7bc8b2af6d40d38b9a72e25bab4d9f7aff19d059729d5b1b3a9f5561274f460020bb9166c211d5302abe0b45452665420ca5e16013b + languageName: node + linkType: hard + +"brace-expansion@npm:5.0.12": + version: 5.0.12 + resolution: "brace-expansion@npm:5.0.12" + dependencies: + balanced-match: "npm:^4.0.2" + checksum: 10c0/a40ac64d3bdb5bb222456514d3633c1f627f03b844f509c69e70f98b78be0ce85e21b44bbfecdd0ddd4cc0855ca4242b41ea96ddccf88c7c3c7a84405474bb3a + languageName: node + linkType: hard + +"bytes@npm:~3.1.2": + version: 3.1.2 + resolution: "bytes@npm:3.1.2" + checksum: 10c0/76d1c43cbd602794ad8ad2ae94095cddeb1de78c5dddaa7005c51af10b0176c69971a6d88e805a90c2b6550d76636e43c40d8427a808b8645ede885de4a0358e + languageName: node + linkType: hard + +"c8@npm:11.0.0": + version: 11.0.0 + resolution: "c8@npm:11.0.0" + dependencies: + "@bcoe/v8-coverage": "npm:^1.0.1" + "@istanbuljs/schema": "npm:^0.1.3" + find-up: "npm:^5.0.0" + foreground-child: "npm:^3.1.1" + istanbul-lib-coverage: "npm:^3.2.0" + istanbul-lib-report: "npm:^3.0.1" + istanbul-reports: "npm:^3.1.6" + test-exclude: "npm:^8.0.0" + v8-to-istanbul: "npm:^9.0.0" + yargs: "npm:^17.7.2" + yargs-parser: "npm:^21.1.1" + peerDependencies: + monocart-coverage-reports: ^2 + peerDependenciesMeta: + monocart-coverage-reports: + optional: true + bin: + c8: bin/c8.js + checksum: 10c0/94b0cf8756715ca8fedb9331c61ebda0c5bbd63c5eeea523d18904af790f6f197a02f547c066fa2d8d0544bb9f9547a6a67d653f3575953139c74ca915771963 + languageName: node + linkType: hard + +"cacheable@npm:^2.5.0": + version: 2.5.0 + resolution: "cacheable@npm:2.5.0" + dependencies: + "@cacheable/memory": "npm:^2.2.0" + "@cacheable/utils": "npm:^2.5.0" + hookified: "npm:^1.15.0" + keyv: "npm:^5.6.0" + qified: "npm:^0.10.1" + checksum: 10c0/ad4086a60ed327196901c16360312705e35bfde5118457449cfabaf4ece0fecad046985ea8b66b3ece46dd469cb33798d87e1dac3ed2c00746578054bccbf74d + languageName: node + linkType: hard + +"call-bind-apply-helpers@npm:^1.0.1, call-bind-apply-helpers@npm:^1.0.2": + version: 1.0.2 + resolution: "call-bind-apply-helpers@npm:1.0.2" + dependencies: + es-errors: "npm:^1.3.0" + function-bind: "npm:^1.1.2" + checksum: 10c0/47bd9901d57b857590431243fea704ff18078b16890a6b3e021e12d279bbf211d039155e27d7566b374d49ee1f8189344bac9833dec7a20cdec370506361c938 + languageName: node + linkType: hard + +"call-bound@npm:^1.0.2": + version: 1.0.4 + resolution: "call-bound@npm:1.0.4" + dependencies: + call-bind-apply-helpers: "npm:^1.0.2" + get-intrinsic: "npm:^1.3.0" + checksum: 10c0/f4796a6a0941e71c766aea672f63b72bc61234c4f4964dc6d7606e3664c307e7d77845328a8f3359ce39ddb377fed67318f9ee203dea1d47e46165dcf2917644 + languageName: node + linkType: hard + +"character-entities-legacy@npm:^3.0.0": + version: 3.0.0 + resolution: "character-entities-legacy@npm:3.0.0" + checksum: 10c0/ec4b430af873661aa754a896a2b55af089b4e938d3d010fad5219299a6b6d32ab175142699ee250640678cd64bdecd6db3c9af0b8759ab7b155d970d84c4c7d1 + languageName: node + linkType: hard + +"character-entities@npm:^2.0.0": + version: 2.0.2 + resolution: "character-entities@npm:2.0.2" + checksum: 10c0/b0c645a45bcc90ff24f0e0140f4875a8436b8ef13b6bcd31ec02cfb2ca502b680362aa95386f7815bdc04b6464d48cf191210b3840d7c04241a149ede591a308 + languageName: node + linkType: hard + +"character-reference-invalid@npm:^2.0.0": + version: 2.0.1 + resolution: "character-reference-invalid@npm:2.0.1" + checksum: 10c0/2ae0dec770cd8659d7e8b0ce24392d83b4c2f0eb4a3395c955dce5528edd4cc030a794cfa06600fcdd700b3f2de2f9b8e40e309c0011c4180e3be64a0b42e6a1 + languageName: node + linkType: hard + +"cliui@npm:^8.0.1": + version: 8.0.1 + resolution: "cliui@npm:8.0.1" + dependencies: + string-width: "npm:^4.2.0" + strip-ansi: "npm:^6.0.1" + wrap-ansi: "npm:^7.0.0" + checksum: 10c0/4bda0f09c340cbb6dfdc1ed508b3ca080f12992c18d68c6be4d9cf51756033d5266e61ec57529e610dacbf4da1c634423b0c1b11037709cc6b09045cbd815df5 + languageName: node + linkType: hard + +"color-convert@npm:^2.0.1": + version: 2.0.1 + resolution: "color-convert@npm:2.0.1" + dependencies: + color-name: "npm:~1.1.4" + checksum: 10c0/37e1150172f2e311fe1b2df62c6293a342ee7380da7b9cfdba67ea539909afbd74da27033208d01d6d5cfc65ee7868a22e18d7e7648e004425441c0f8a15a7d7 + languageName: node + linkType: hard + +"color-name@npm:~1.1.4": + version: 1.1.4 + resolution: "color-name@npm:1.1.4" + checksum: 10c0/a1a3f914156960902f46f7f56bc62effc6c94e84b2cae157a526b1c1f74b677a47ec602bf68a61abfa2b42d15b7c5651c6dbe72a43af720bc588dff885b10f95 + languageName: node + linkType: hard + +"commander@npm:^8.3.0": + version: 8.3.0 + resolution: "commander@npm:8.3.0" + checksum: 10c0/8b043bb8322ea1c39664a1598a95e0495bfe4ca2fad0d84a92d7d1d8d213e2a155b441d2470c8e08de7c4a28cf2bc6e169211c49e1b21d9f7edc6ae4d9356060 + languageName: node + linkType: hard + +"commander@npm:~15.0.0": + version: 15.0.0 + resolution: "commander@npm:15.0.0" + checksum: 10c0/539229c171914ea1ccd45ee5f10d924289a12a684ea3a7a44147abe54003c35ed6de9ae4ad198d88c29fdf403dca0428451a388234e6dc01b6faa978fb207206 + languageName: node + linkType: hard + +"content-disposition@npm:~0.5.4": + version: 0.5.4 + resolution: "content-disposition@npm:0.5.4" + dependencies: + safe-buffer: "npm:5.2.1" + checksum: 10c0/bac0316ebfeacb8f381b38285dc691c9939bf0a78b0b7c2d5758acadad242d04783cee5337ba7d12a565a19075af1b3c11c728e1e4946de73c6ff7ce45f3f1bb + languageName: node + linkType: hard + +"content-type@npm:~1.0.4, content-type@npm:~1.0.5": + version: 1.0.5 + resolution: "content-type@npm:1.0.5" + checksum: 10c0/b76ebed15c000aee4678c3707e0860cb6abd4e680a598c0a26e17f0bfae723ec9cc2802f0ff1bc6e4d80603719010431d2231018373d4dde10f9ccff9dadf5af + languageName: node + linkType: hard + +"convert-source-map@npm:^2.0.0": + version: 2.0.0 + resolution: "convert-source-map@npm:2.0.0" + checksum: 10c0/8f2f7a27a1a011cc6cc88cc4da2d7d0cfa5ee0369508baae3d98c260bb3ac520691464e5bbe4ae7cdf09860c1d69ecc6f70c63c6e7c7f7e3f18ec08484dc7d9b + languageName: node + linkType: hard + +"cookie-signature@npm:~1.0.6": + version: 1.0.7 + resolution: "cookie-signature@npm:1.0.7" + checksum: 10c0/e7731ad2995ae2efeed6435ec1e22cdd21afef29d300c27281438b1eab2bae04ef0d1a203928c0afec2cee72aa36540b8747406ebe308ad23c8e8cc3c26c9c51 + languageName: node + linkType: hard + +"cookie@npm:~0.7.1": + version: 0.7.2 + resolution: "cookie@npm:0.7.2" + checksum: 10c0/9596e8ccdbf1a3a88ae02cf5ee80c1c50959423e1022e4e60b91dd87c622af1da309253d8abdb258fb5e3eacb4f08e579dc58b4897b8087574eee0fd35dfa5d2 + languageName: node + linkType: hard + +"cross-spawn@npm:7.0.6, cross-spawn@npm:^7.0.6": + version: 7.0.6 + resolution: "cross-spawn@npm:7.0.6" + dependencies: + path-key: "npm:^3.1.0" + shebang-command: "npm:^2.0.0" + which: "npm:^2.0.1" + checksum: 10c0/053ea8b2135caff68a9e81470e845613e374e7309a47731e81639de3eaeb90c3d01af0e0b44d2ab9d50b43467223b88567dfeb3262db942dc063b9976718ffc1 + languageName: node + linkType: hard + +"debug@npm:2.6.9": + version: 2.6.9 + resolution: "debug@npm:2.6.9" + dependencies: + ms: "npm:2.0.0" + checksum: 10c0/121908fb839f7801180b69a7e218a40b5a0b718813b886b7d6bdb82001b931c938e2941d1e4450f33a1b1df1da653f5f7a0440c197f29fbf8a6e9d45ff6ef589 + languageName: node + linkType: hard + +"debug@npm:^4.0.0, debug@npm:^4.3.1, debug@npm:^4.3.2": + version: 4.4.3 + resolution: "debug@npm:4.4.3" + dependencies: + ms: "npm:^2.1.3" + peerDependenciesMeta: + supports-color: + optional: true + checksum: 10c0/d79136ec6c83ecbefd0f6a5593da6a9c91ec4d7ddc4b54c883d6e71ec9accb5f67a1a5e96d00a328196b5b5c86d365e98d8a3a70856aaf16b4e7b1985e67f5a6 + languageName: node + linkType: hard + +"decode-named-character-reference@npm:^1.0.0": + version: 1.3.0 + resolution: "decode-named-character-reference@npm:1.3.0" + dependencies: + character-entities: "npm:^2.0.0" + checksum: 10c0/787f4c87f3b82ea342aa7c2d7b1882b6fb9511bb77f72ae44dcaabea0470bacd1e9c6a0080ab886545019fa0cb3a7109573fad6b61a362844c3a0ac52b36e4bb + languageName: node + linkType: hard + +"deep-extend@npm:^0.6.0, deep-extend@npm:~0.6.0": + version: 0.6.0 + resolution: "deep-extend@npm:0.6.0" + checksum: 10c0/1c6b0abcdb901e13a44c7d699116d3d4279fdb261983122a3783e7273844d5f2537dc2e1c454a23fcf645917f93fbf8d07101c1d03c015a87faa662755212566 + languageName: node + linkType: hard + +"deep-is@npm:^0.1.3": + version: 0.1.4 + resolution: "deep-is@npm:0.1.4" + checksum: 10c0/7f0ee496e0dff14a573dc6127f14c95061b448b87b995fc96c017ce0a1e66af1675e73f1d6064407975bc4ea6ab679497a29fff7b5b9c4e99cb10797c1ad0b4c + languageName: node + linkType: hard + +"depd@npm:2.0.0, depd@npm:~2.0.0": + version: 2.0.0 + resolution: "depd@npm:2.0.0" + checksum: 10c0/58bd06ec20e19529b06f7ad07ddab60e504d9e0faca4bd23079fac2d279c3594334d736508dc350e06e510aba5e22e4594483b3a6562ce7c17dd797f4cc4ad2c + languageName: node + linkType: hard + +"dequal@npm:^2.0.0": + version: 2.0.3 + resolution: "dequal@npm:2.0.3" + checksum: 10c0/f98860cdf58b64991ae10205137c0e97d384c3a4edc7f807603887b7c4b850af1224a33d88012009f150861cbee4fa2d322c4cc04b9313bee312e47f6ecaa888 + languageName: node + linkType: hard + +"destroy@npm:1.2.0, destroy@npm:~1.2.0": + version: 1.2.0 + resolution: "destroy@npm:1.2.0" + checksum: 10c0/bd7633942f57418f5a3b80d5cb53898127bcf53e24cdf5d5f4396be471417671f0fee48a4ebe9a1e9defbde2a31280011af58a57e090ff822f589b443ed4e643 + languageName: node + linkType: hard + +"devlop@npm:^1.0.0": + version: 1.1.0 + resolution: "devlop@npm:1.1.0" + dependencies: + dequal: "npm:^2.0.0" + checksum: 10c0/e0928ab8f94c59417a2b8389c45c55ce0a02d9ac7fd74ef62d01ba48060129e1d594501b77de01f3eeafc7cb00773819b0df74d96251cf20b31c5b3071f45c0e + languageName: node + linkType: hard + +"dunder-proto@npm:^1.0.1": + version: 1.0.1 + resolution: "dunder-proto@npm:1.0.1" + dependencies: + call-bind-apply-helpers: "npm:^1.0.1" + es-errors: "npm:^1.3.0" + gopd: "npm:^1.2.0" + checksum: 10c0/199f2a0c1c16593ca0a145dbf76a962f8033ce3129f01284d48c45ed4e14fea9bbacd7b3610b6cdc33486cef20385ac054948fefc6272fcce645c09468f93031 + languageName: node + linkType: hard + +"ecc-universal@workspace:.": + version: 0.0.0-use.local + resolution: "ecc-universal@workspace:." + dependencies: + "@eslint/js": "npm:9.39.2" + "@iarna/toml": "npm:2.2.5" + "@opencode-ai/plugin": "npm:1.4.3" + "@types/node": "npm:26.6.6" + "@x402/core": "npm:2.31.0" + "@x402/evm": "npm:2.31.0" + "@x402/express": "npm:2.31.0" + ajv: "npm:8.20.0" + c8: "npm:11.0.0" + eslint: "npm:10.15.0" + express: "npm:4.22.3" + globals: "npm:17.14.0" + js-yaml: "npm:5.5.0" + markdownlint-cli: "npm:0.50.0" + sql.js: "npm:1.16.0" + typescript: "npm:6.0.3" + zod: "npm:4.6.7" + bin: + ecc: scripts/ecc.js + ecc-control-pane: scripts/control-pane.js + ecc-install: scripts/install-apply.js + ecc-memory-mcp: scripts/memory-mcp.mjs + ecc-plan-canvas: scripts/plan-canvas.js + ecc-universal: scripts/ecc.js + languageName: unknown + linkType: soft + +"ee-first@npm:1.1.1": + version: 1.1.1 + resolution: "ee-first@npm:1.1.1" + checksum: 10c0/b5bb125ee93161bc16bfe6e56c6b04de5ad2aa44234d8f644813cc95d861a6910903132b05093706de2b706599367c4130eb6d170f6b46895686b95f87d017b7 + languageName: node + linkType: hard + +"emoji-regex@npm:^8.0.0": + version: 8.0.0 + resolution: "emoji-regex@npm:8.0.0" + checksum: 10c0/b6053ad39951c4cf338f9092d7bfba448cdfd46fe6a2a034700b149ac9ffbc137e361cbd3c442297f86bed2e5f7576c1b54cc0a6bf8ef5106cc62f496af35010 + languageName: node + linkType: hard + +"encodeurl@npm:~2.0.0": + version: 2.0.1 + resolution: "encodeurl@npm:2.0.1" + checksum: 10c0/b592ab79be68b052e8364dbc0f7faf71ed5a64ff6d8771cda7004dbea8dc4084de9c314b21220dc2566f5f1373e280e0b72c297b535177db3c0753620f1059ca + languageName: node + linkType: hard + +"entities@npm:^4.5.0": + version: 4.5.0 + resolution: "entities@npm:4.5.0" + checksum: 10c0/5b039739f7621f5d1ad996715e53d964035f75ad3b9a4d38c6b3804bb226e282ffeae2443624d8fdd9c47d8e926ae9ac009c54671243f0c3294c26af7cc85250 + languageName: node + linkType: hard + +"es-define-property@npm:^1.0.1": + version: 1.0.1 + resolution: "es-define-property@npm:1.0.1" + checksum: 10c0/3f54eb49c16c18707949ff25a1456728c883e81259f045003499efba399c08bad00deebf65cccde8c0e07908c1a225c9d472b7107e558f2a48e28d530e34527c + languageName: node + linkType: hard + +"es-errors@npm:^1.3.0": + version: 1.3.0 + resolution: "es-errors@npm:1.3.0" + checksum: 10c0/0a61325670072f98d8ae3b914edab3559b6caa980f08054a3b872052640d91da01d38df55df797fcc916389d77fc92b8d5906cf028f4db46d7e3003abecbca85 + languageName: node + linkType: hard + +"es-object-atoms@npm:^1.0.0, es-object-atoms@npm:^1.1.1": + version: 1.1.2 + resolution: "es-object-atoms@npm:1.1.2" + dependencies: + es-errors: "npm:^1.3.0" + checksum: 10c0/1772861f094f739d6f41b579cfb9a18579daffeb434552a370a5fbef50a32d22227e27b63fdbb757b7ddd429d1b42fe52ccae7966d9302a2ec221b6f1b41bbc4 + languageName: node + linkType: hard + +"escalade@npm:^3.1.1": + version: 3.2.0 + resolution: "escalade@npm:3.2.0" + checksum: 10c0/ced4dd3a78e15897ed3be74e635110bbf3b08877b0a41be50dcb325ee0e0b5f65fc2d50e9845194d7c4633f327e2e1c6cce00a71b617c5673df0374201d67f65 + languageName: node + linkType: hard + +"escape-html@npm:~1.0.3": + version: 1.0.3 + resolution: "escape-html@npm:1.0.3" + checksum: 10c0/524c739d776b36c3d29fa08a22e03e8824e3b2fd57500e5e44ecf3cc4707c34c60f9ca0781c0e33d191f2991161504c295e98f68c78fe7baa6e57081ec6ac0a3 + languageName: node + linkType: hard + +"escape-string-regexp@npm:^4.0.0": + version: 4.0.0 + resolution: "escape-string-regexp@npm:4.0.0" + checksum: 10c0/9497d4dd307d845bd7f75180d8188bb17ea8c151c1edbf6b6717c100e104d629dc2dfb687686181b0f4b7d732c7dfdc4d5e7a8ff72de1b0ca283a75bbb3a9cd9 + languageName: node + linkType: hard + +"eslint-scope@npm:^9.1.2": + version: 9.1.2 + resolution: "eslint-scope@npm:9.1.2" + dependencies: + "@types/esrecurse": "npm:^4.3.1" + "@types/estree": "npm:^1.0.8" + esrecurse: "npm:^4.3.0" + estraverse: "npm:^5.2.0" + checksum: 10c0/9fb8bca5a73e5741efb6cec84467027b6cb6f4203ff9b43a938e272c5cd30800bde46a5c20dfd1609f840225f0b62b7673be391b20acadf8658ca9fa4729b3dd + languageName: node + linkType: hard + +"eslint-visitor-keys@npm:^3.4.3": + version: 3.4.3 + resolution: "eslint-visitor-keys@npm:3.4.3" + checksum: 10c0/92708e882c0a5ffd88c23c0b404ac1628cf20104a108c745f240a13c332a11aac54f49a22d5762efbffc18ecbc9a580d1b7ad034bf5f3cc3307e5cbff2ec9820 + languageName: node + linkType: hard + +"eslint-visitor-keys@npm:^5.0.1": + version: 5.0.1 + resolution: "eslint-visitor-keys@npm:5.0.1" + checksum: 10c0/16190bdf2cbae40a1109384c94450c526a79b0b9c3cb21e544256ed85ac48a4b84db66b74a6561d20fe6ab77447f150d711c2ad5ad74df4fcc133736bce99678 + languageName: node + linkType: hard + +"eslint@npm:10.15.0": + version: 10.15.0 + resolution: "eslint@npm:10.15.0" + dependencies: + "@eslint-community/eslint-utils": "npm:^4.8.0" + "@eslint-community/regexpp": "npm:^4.12.2" + "@eslint/config-array": "npm:^0.23.6" + "@eslint/config-helpers": "npm:^0.7.0" + "@eslint/core": "npm:^1.2.1" + "@eslint/plugin-kit": "npm:^0.7.3" + "@humanfs/node": "npm:^0.16.8" + "@humanwhocodes/module-importer": "npm:^1.0.1" + "@humanwhocodes/retry": "npm:^0.4.2" + "@types/estree": "npm:^1.0.6" + ajv: "npm:^6.14.0" + cross-spawn: "npm:^7.0.6" + debug: "npm:^4.3.2" + escape-string-regexp: "npm:^4.0.0" + eslint-scope: "npm:^9.1.2" + eslint-visitor-keys: "npm:^5.0.1" + espree: "npm:^11.2.0" + esquery: "npm:^1.7.0" + esutils: "npm:^2.0.2" + fast-deep-equal: "npm:^3.1.3" + file-entry-cache: "npm:11.1.5 || >11.1.6 <12" + find-up: "npm:^5.0.0" + glob-parent: "npm:^6.0.2" + ignore: "npm:^5.2.0" + imurmurhash: "npm:^0.1.4" + is-glob: "npm:^4.0.0" + json-stable-stringify-without-jsonify: "npm:^1.0.1" + minimatch: "npm:^11.0.5" + natural-compare: "npm:^1.4.0" + optionator: "npm:^0.9.3" + peerDependencies: + jiti: "*" + peerDependenciesMeta: + jiti: + optional: true + bin: + eslint: bin/eslint.js + checksum: 10c0/81775d3bc273007b3b6f08d114f57b0c83527e8ebbb89674726bbd29b66883a6fef016a0271e05014a067d1c1079514c5523df96b86740fdfe65ef56abacb030 + languageName: node + linkType: hard + +"espree@npm:^11.2.0": + version: 11.2.0 + resolution: "espree@npm:11.2.0" + dependencies: + acorn: "npm:^8.16.0" + acorn-jsx: "npm:^5.3.2" + eslint-visitor-keys: "npm:^5.0.1" + checksum: 10c0/cf87e18ffd9dc113eb8d16588e7757701bc10c9934a71cce8b89c2611d51672681a918307bd6b19ac3ccd0e7ba1cbccc2f815b36b52fa7e73097b251014c3d81 + languageName: node + linkType: hard + +"esquery@npm:^1.7.0": + version: 1.7.0 + resolution: "esquery@npm:1.7.0" + dependencies: + estraverse: "npm:^5.1.0" + checksum: 10c0/77d5173db450b66f3bc685d11af4c90cffeedb340f34a39af96d43509a335ce39c894fd79233df32d38f5e4e219fa0f7076f6ec90bae8320170ba082c0db4793 + languageName: node + linkType: hard + +"esrecurse@npm:^4.3.0": + version: 4.3.0 + resolution: "esrecurse@npm:4.3.0" + dependencies: + estraverse: "npm:^5.2.0" + checksum: 10c0/81a37116d1408ded88ada45b9fb16dbd26fba3aadc369ce50fcaf82a0bac12772ebd7b24cd7b91fc66786bf2c1ac7b5f196bc990a473efff972f5cb338877cf5 + languageName: node + linkType: hard + +"estraverse@npm:^5.1.0, estraverse@npm:^5.2.0": + version: 5.3.0 + resolution: "estraverse@npm:5.3.0" + checksum: 10c0/1ff9447b96263dec95d6d67431c5e0771eb9776427421260a3e2f0fdd5d6bd4f8e37a7338f5ad2880c9f143450c9b1e4fc2069060724570a49cf9cf0312bd107 + languageName: node + linkType: hard + +"esutils@npm:^2.0.2": + version: 2.0.3 + resolution: "esutils@npm:2.0.3" + checksum: 10c0/9a2fe69a41bfdade834ba7c42de4723c97ec776e40656919c62cbd13607c45e127a003f05f724a1ea55e5029a4cf2de444b13009f2af71271e42d93a637137c7 + languageName: node + linkType: hard + +"etag@npm:~1.8.1": + version: 1.8.1 + resolution: "etag@npm:1.8.1" + checksum: 10c0/12be11ef62fb9817314d790089a0a49fae4e1b50594135dcb8076312b7d7e470884b5100d249b28c18581b7fd52f8b485689ffae22a11ed9ec17377a33a08f84 + languageName: node + linkType: hard + +"eventemitter3@npm:5.0.1": + version: 5.0.1 + resolution: "eventemitter3@npm:5.0.1" + checksum: 10c0/4ba5c00c506e6c786b4d6262cfbce90ddc14c10d4667e5c83ae993c9de88aa856033994dd2b35b83e8dc1170e224e66a319fa80adc4c32adcd2379bbc75da814 + languageName: node + linkType: hard + +"express@npm:4.22.3": + version: 4.22.3 + resolution: "express@npm:4.22.3" + dependencies: + accepts: "npm:~1.3.8" + array-flatten: "npm:1.1.1" + body-parser: "npm:~1.20.5" + content-disposition: "npm:~0.5.4" + content-type: "npm:~1.0.4" + cookie: "npm:~0.7.1" + cookie-signature: "npm:~1.0.6" + debug: "npm:2.6.9" + depd: "npm:2.0.0" + encodeurl: "npm:~2.0.0" + escape-html: "npm:~1.0.3" + etag: "npm:~1.8.1" + finalhandler: "npm:~1.3.1" + fresh: "npm:~0.5.2" + http-errors: "npm:~2.0.0" + merge-descriptors: "npm:1.0.3" + methods: "npm:~1.1.2" + on-finished: "npm:~2.4.1" + parseurl: "npm:~1.3.3" + path-to-regexp: "npm:~0.1.13" + proxy-addr: "npm:~2.0.7" + qs: "npm:~6.16.0" + range-parser: "npm:~1.2.1" + safe-buffer: "npm:5.2.1" + send: "npm:~0.19.0" + serve-static: "npm:~1.16.2" + setprototypeof: "npm:1.2.0" + statuses: "npm:~2.0.1" + type-is: "npm:~1.6.18" + utils-merge: "npm:1.0.1" + vary: "npm:~1.1.2" + checksum: 10c0/6345a6d460d94afbab42608ea7c13d633b9f4b08df7074869ee1ef493f6a46102437bd32290635f7040858f24de5f0992f541723478d5f3fbc6428e9446cb8ea + languageName: node + linkType: hard + +"fast-deep-equal@npm:^3.1.1, fast-deep-equal@npm:^3.1.3": + version: 3.1.3 + resolution: "fast-deep-equal@npm:3.1.3" + checksum: 10c0/40dedc862eb8992c54579c66d914635afbec43350afbbe991235fdcb4e3a8d5af1b23ae7e79bef7d4882d0ecee06c3197488026998fb19f72dc95acff1d1b1d0 + languageName: node + linkType: hard + +"fast-json-stable-stringify@npm:^2.0.0": + version: 2.1.0 + resolution: "fast-json-stable-stringify@npm:2.1.0" + checksum: 10c0/7f081eb0b8a64e0057b3bb03f974b3ef00135fbf36c1c710895cd9300f13c94ba809bb3a81cf4e1b03f6e5285610a61abbd7602d0652de423144dfee5a389c9b + languageName: node + linkType: hard + +"fast-levenshtein@npm:^2.0.6": + version: 2.0.6 + resolution: "fast-levenshtein@npm:2.0.6" + checksum: 10c0/111972b37338bcb88f7d9e2c5907862c280ebf4234433b95bc611e518d192ccb2d38119c4ac86e26b668d75f7f3894f4ff5c4982899afced7ca78633b08287c4 + languageName: node + linkType: hard + +"fast-uri@npm:3.1.9": + version: 3.1.9 + resolution: "fast-uri@npm:3.1.9" + checksum: 10c0/052757540d8c0bbc16bb124a45b8f5cb5d0932f9b89f019221ee41cdb3cafc1db44b2e809d6b888b87922af3e5560a863124454e9d9193e1fc955887357b5add + languageName: node + linkType: hard + +"fdir@npm:^6.5.0": + version: 6.5.0 + resolution: "fdir@npm:6.5.0" + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + checksum: 10c0/e345083c4306b3aed6cb8ec551e26c36bab5c511e99ea4576a16750ddc8d3240e63826cc624f5ae17ad4dc82e68a253213b60d556c11bfad064b7607847ed07f + languageName: node + linkType: hard + +"file-entry-cache@npm:11.1.5 || >11.1.6 <12": + version: 11.1.5 + resolution: "file-entry-cache@npm:11.1.5" + dependencies: + flat-cache: "npm:^6.1.23" + checksum: 10c0/d05eca8794b27824d79a0f1a0bc76b81ca7232b6c9634bc086f365a6d9ddac749c4826b2b2d36bb7ef9ed84fdf0097f34979527daeb9255b4f17673a4ae50fc5 + languageName: node + linkType: hard + +"finalhandler@npm:~1.3.1": + version: 1.3.2 + resolution: "finalhandler@npm:1.3.2" + dependencies: + debug: "npm:2.6.9" + encodeurl: "npm:~2.0.0" + escape-html: "npm:~1.0.3" + on-finished: "npm:~2.4.1" + parseurl: "npm:~1.3.3" + statuses: "npm:~2.0.2" + unpipe: "npm:~1.0.0" + checksum: 10c0/435a4fd65e4e4e4c71bb5474980090b73c353a123dd415583f67836bdd6516e528cf07298e219a82b94631dee7830eae5eece38d3c178073cf7df4e8c182f413 + languageName: node + linkType: hard + +"find-up@npm:^5.0.0": + version: 5.0.0 + resolution: "find-up@npm:5.0.0" + dependencies: + locate-path: "npm:^6.0.0" + path-exists: "npm:^4.0.0" + checksum: 10c0/062c5a83a9c02f53cdd6d175a37ecf8f87ea5bbff1fdfb828f04bfa021441bc7583e8ebc0872a4c1baab96221fb8a8a275a19809fb93fbc40bd69ec35634069a + languageName: node + linkType: hard + +"flat-cache@npm:^6.1.23": + version: 6.1.23 + resolution: "flat-cache@npm:6.1.23" + dependencies: + cacheable: "npm:^2.5.0" + flatted: "npm:^3.4.2" + hookified: "npm:^1.15.0" + checksum: 10c0/c757c24f51334e1917958cd9d62d4ed3d520a3815d5a1ec50d993ac3a93fa81b6de7e28264231914bb0d990babd426e4d713d3e2f3d782dae65c42a2ded1e651 + languageName: node + linkType: hard + +"flatted@npm:^3.4.2": + version: 3.4.4 + resolution: "flatted@npm:3.4.4" + checksum: 10c0/a3a52a88ea5a4c333e5a1f097dcd87a037fa31c236a77cf46222c2aa4036ef895ab9bc76138a66d9dc22bdb3652128f9598cd26e7439561bf19f67276e2bc37e + languageName: node + linkType: hard + +"foreground-child@npm:^3.1.1": + version: 3.3.1 + resolution: "foreground-child@npm:3.3.1" + dependencies: + cross-spawn: "npm:^7.0.6" + signal-exit: "npm:^4.0.1" + checksum: 10c0/8986e4af2430896e65bc2788d6679067294d6aee9545daefc84923a0a4b399ad9c7a3ea7bd8c0b2b80fdf4a92de4c69df3f628233ff3224260e9c1541a9e9ed3 + languageName: node + linkType: hard + +"forwarded@npm:0.2.0": + version: 0.2.0 + resolution: "forwarded@npm:0.2.0" + checksum: 10c0/9b67c3fac86acdbc9ae47ba1ddd5f2f81526fa4c8226863ede5600a3f7c7416ef451f6f1e240a3cc32d0fd79fcfe6beb08fd0da454f360032bde70bf80afbb33 + languageName: node + linkType: hard + +"fresh@npm:~0.5.2": + version: 0.5.2 + resolution: "fresh@npm:0.5.2" + checksum: 10c0/c6d27f3ed86cc5b601404822f31c900dd165ba63fff8152a3ef714e2012e7535027063bc67ded4cb5b3a49fa596495d46cacd9f47d6328459cf570f08b7d9e5a + languageName: node + linkType: hard + +"function-bind@npm:^1.1.2": + version: 1.1.2 + resolution: "function-bind@npm:1.1.2" + checksum: 10c0/d8680ee1e5fcd4c197e4ac33b2b4dce03c71f4d91717292785703db200f5c21f977c568d28061226f9b5900cbcd2c84463646134fd5337e7925e0942bc3f46d5 + languageName: node + linkType: hard + +"get-caller-file@npm:^2.0.5": + version: 2.0.5 + resolution: "get-caller-file@npm:2.0.5" + checksum: 10c0/c6c7b60271931fa752aeb92f2b47e355eac1af3a2673f47c9589e8f8a41adc74d45551c1bc57b5e66a80609f10ffb72b6f575e4370d61cc3f7f3aaff01757cde + languageName: node + linkType: hard + +"get-east-asian-width@npm:^1.5.0": + version: 1.6.0 + resolution: "get-east-asian-width@npm:1.6.0" + checksum: 10c0/7e72e9550fd49ca5b246f9af6bb2afc129c96412845ff6556b3274fd44817a381702ca17028efe9866b261a3d44254cbf21e6c90cf05b4b61675630af776d431 + languageName: node + linkType: hard + +"get-intrinsic@npm:^1.2.5, get-intrinsic@npm:^1.3.0": + version: 1.3.0 + resolution: "get-intrinsic@npm:1.3.0" + dependencies: + call-bind-apply-helpers: "npm:^1.0.2" + es-define-property: "npm:^1.0.1" + es-errors: "npm:^1.3.0" + es-object-atoms: "npm:^1.1.1" + function-bind: "npm:^1.1.2" + get-proto: "npm:^1.0.1" + gopd: "npm:^1.2.0" + has-symbols: "npm:^1.1.0" + hasown: "npm:^2.0.2" + math-intrinsics: "npm:^1.1.0" + checksum: 10c0/52c81808af9a8130f581e6a6a83e1ba4a9f703359e7a438d1369a5267a25412322f03dcbd7c549edaef0b6214a0630a28511d7df0130c93cfd380f4fa0b5b66a + languageName: node + linkType: hard + +"get-proto@npm:^1.0.1": + version: 1.0.1 + resolution: "get-proto@npm:1.0.1" + dependencies: + dunder-proto: "npm:^1.0.1" + es-object-atoms: "npm:^1.0.0" + checksum: 10c0/9224acb44603c5526955e83510b9da41baf6ae73f7398875fba50edc5e944223a89c4a72b070fcd78beb5f7bdda58ecb6294adc28f7acfc0da05f76a2399643c + languageName: node + linkType: hard + +"glob-parent@npm:^6.0.2": + version: 6.0.2 + resolution: "glob-parent@npm:6.0.2" + dependencies: + is-glob: "npm:^4.0.3" + checksum: 10c0/317034d88654730230b3f43bb7ad4f7c90257a426e872ea0bf157473ac61c99bf5d205fad8f0185f989be8d2fa6d3c7dce1645d99d545b6ea9089c39f838e7f8 + languageName: node + linkType: hard + +"glob@npm:14.0.3": + version: 14.0.3 + resolution: "glob@npm:14.0.3" + dependencies: + minimatch: "npm:^11.0.2" + minipass: "npm:^7.1.3" + path-scurry: "npm:^3.0.0" + checksum: 10c0/762d4b6e2dc3648e7dbc7f7aa4264fe62cce85014d004c0d0690f9e64471d898ba828c69d2dcd449ac949908fdf02934a9d2c51e444a84171a8f4158a42ef496 + languageName: node + linkType: hard + +"globals@npm:17.14.0": + version: 17.14.0 + resolution: "globals@npm:17.14.0" + checksum: 10c0/422d17c24e87170d4aa566b97a53339ae451c2f4d78512594a7ca951cdb939bc4a85c10071e6dcf77ca63de48713a77f2e71eb9214e44880233dff2090e92731 + languageName: node + linkType: hard + +"gopd@npm:^1.2.0": + version: 1.2.0 + resolution: "gopd@npm:1.2.0" + checksum: 10c0/50fff1e04ba2b7737c097358534eacadad1e68d24cccee3272e04e007bed008e68d2614f3987788428fd192a5ae3889d08fb2331417e4fc4a9ab366b2043cead + languageName: node + linkType: hard + +"has-flag@npm:^4.0.0": + version: 4.0.0 + resolution: "has-flag@npm:4.0.0" + checksum: 10c0/2e789c61b7888d66993e14e8331449e525ef42aac53c627cc53d1c3334e768bcb6abdc4f5f0de1478a25beec6f0bd62c7549058b7ac53e924040d4f301f02fd1 + languageName: node + linkType: hard + +"has-symbols@npm:^1.1.0": + version: 1.1.0 + resolution: "has-symbols@npm:1.1.0" + checksum: 10c0/dde0a734b17ae51e84b10986e651c664379018d10b91b6b0e9b293eddb32f0f069688c841fb40f19e9611546130153e0a2a48fd7f512891fb000ddfa36f5a20e + languageName: node + linkType: hard + +"hashery@npm:^1.4.0, hashery@npm:^1.5.1": + version: 1.5.1 + resolution: "hashery@npm:1.5.1" + dependencies: + hookified: "npm:^1.15.0" + checksum: 10c0/ab4225b655a7b0d05df99b1a59d5b3a51fe433f82422ca25e6f3f4c4ddd30adb49ebd38e0047ef9bded93319c1e9fc857e16aa382e554929c871cb77d39fc463 + languageName: node + linkType: hard + +"hasown@npm:^2.0.2": + version: 2.0.4 + resolution: "hasown@npm:2.0.4" + dependencies: + function-bind: "npm:^1.1.2" + checksum: 10c0/2d8de939e270b70618f8cebb69746620db10617dbb495bc66ddad326955ea24d3ca4af133aff3eb7c1853e0218f867bc2b050ec26fe02e3aea58f880ffc5e506 + languageName: node + linkType: hard + +"hookified@npm:^1.15.0, hookified@npm:^1.15.1": + version: 1.15.1 + resolution: "hookified@npm:1.15.1" + checksum: 10c0/6b691374fa97ae57169fb29f90e723499fda5e85494654fbe55c4768b3ccbf3e14c0adc8d0f365f32c503b60d7c06f907781f5966c03d41c423575eb5e16860c + languageName: node + linkType: hard + +"hookified@npm:^2.1.1": + version: 2.2.0 + resolution: "hookified@npm:2.2.0" + checksum: 10c0/7017d2b66945490293a5aba239e7b39f39071dd940fa019348c7ffea92b91b8c267853c4c51680ed0f3687b33352582fa4d2cff6dd4c5a1c5c44b037276f07aa + languageName: node + linkType: hard + +"html-escaper@npm:^2.0.0": + version: 2.0.2 + resolution: "html-escaper@npm:2.0.2" + checksum: 10c0/208e8a12de1a6569edbb14544f4567e6ce8ecc30b9394fcaa4e7bb1e60c12a7c9a1ed27e31290817157e8626f3a4f29e76c8747030822eb84a6abb15c255f0a0 + languageName: node + linkType: hard + +"http-errors@npm:~2.0.0, http-errors@npm:~2.0.1": + version: 2.0.1 + resolution: "http-errors@npm:2.0.1" + dependencies: + depd: "npm:~2.0.0" + inherits: "npm:~2.0.4" + setprototypeof: "npm:~1.2.0" + statuses: "npm:~2.0.2" + toidentifier: "npm:~1.0.1" + checksum: 10c0/fb38906cef4f5c83952d97661fe14dc156cb59fe54812a42cd448fa57b5c5dfcb38a40a916957737bd6b87aab257c0648d63eb5b6a9ca9f548e105b6072712d4 + languageName: node + linkType: hard + +"iconv-lite@npm:~0.4.24": + version: 0.4.24 + resolution: "iconv-lite@npm:0.4.24" + dependencies: + safer-buffer: "npm:>= 2.1.2 < 3" + checksum: 10c0/c6886a24cc00f2a059767440ec1bc00d334a89f250db8e0f7feb4961c8727118457e27c495ba94d082e51d3baca378726cd110aaf7ded8b9bbfd6a44760cf1d4 + languageName: node + linkType: hard + +"ignore@npm:^5.2.0": + version: 5.3.2 + resolution: "ignore@npm:5.3.2" + checksum: 10c0/f9f652c957983634ded1e7f02da3b559a0d4cc210fca3792cb67f1b153623c9c42efdc1c4121af171e295444459fc4a9201101fb041b1104a3c000bccb188337 + languageName: node + linkType: hard + +"ignore@npm:~7.0.13": + version: 7.0.14 + resolution: "ignore@npm:7.0.14" + checksum: 10c0/9845d63a5fd29c738b7b94bef4a304c0812453b5360f5edc0859c1428902058753dffeed0e17b9e88bf529815803ec2d31eefa9bdaea8f32154128143fae2ea9 + languageName: node + linkType: hard + +"imurmurhash@npm:^0.1.4": + version: 0.1.4 + resolution: "imurmurhash@npm:0.1.4" + checksum: 10c0/8b51313850dd33605c6c9d3fd9638b714f4c4c40250cff658209f30d40da60f78992fb2df5dabee4acf589a6a82bbc79ad5486550754bd9ec4e3fc0d4a57d6a6 + languageName: node + linkType: hard + +"inherits@npm:~2.0.4": + version: 2.0.4 + resolution: "inherits@npm:2.0.4" + checksum: 10c0/4e531f648b29039fb7426fb94075e6545faa1eb9fe83c29f0b6d9e7263aceb4289d2d4557db0d428188eeb449cc7c5e77b0a0b2c4e248ff2a65933a0dee49ef2 + languageName: node + linkType: hard + +"ini@npm:~7.0.0": + version: 7.0.0 + resolution: "ini@npm:7.0.0" + checksum: 10c0/7520cae38bd5587e1cbca4637bb5fc0e157f38e0816522756456010ef703772d0018f9f4987cb9977bf3b10c1feccaad7800744dd1f5d85fb435e58a1baa9754 + languageName: node + linkType: hard + +"ipaddr.js@npm:1.9.1": + version: 1.9.1 + resolution: "ipaddr.js@npm:1.9.1" + checksum: 10c0/0486e775047971d3fdb5fb4f063829bac45af299ae0b82dcf3afa2145338e08290563a2a70f34b732d795ecc8311902e541a8530eeb30d75860a78ff4e94ce2a + languageName: node + linkType: hard + +"is-alphabetical@npm:^2.0.0": + version: 2.0.1 + resolution: "is-alphabetical@npm:2.0.1" + checksum: 10c0/932367456f17237533fd1fc9fe179df77957271020b83ea31da50e5cc472d35ef6b5fb8147453274ffd251134472ce24eb6f8d8398d96dee98237cdb81a6c9a7 + languageName: node + linkType: hard + +"is-alphanumerical@npm:^2.0.0": + version: 2.0.1 + resolution: "is-alphanumerical@npm:2.0.1" + dependencies: + is-alphabetical: "npm:^2.0.0" + is-decimal: "npm:^2.0.0" + checksum: 10c0/4b35c42b18e40d41378293f82a3ecd9de77049b476f748db5697c297f686e1e05b072a6aaae2d16f54d2a57f85b00cbbe755c75f6d583d1c77d6657bd0feb5a2 + languageName: node + linkType: hard + +"is-decimal@npm:^2.0.0": + version: 2.0.1 + resolution: "is-decimal@npm:2.0.1" + checksum: 10c0/8085dd66f7d82f9de818fba48b9e9c0429cb4291824e6c5f2622e96b9680b54a07a624cfc663b24148b8e853c62a1c987cfe8b0b5a13f5156991afaf6736e334 + languageName: node + linkType: hard + +"is-extglob@npm:^2.1.1": + version: 2.1.1 + resolution: "is-extglob@npm:2.1.1" + checksum: 10c0/5487da35691fbc339700bbb2730430b07777a3c21b9ebaecb3072512dfd7b4ba78ac2381a87e8d78d20ea08affb3f1971b4af629173a6bf435ff8a4c47747912 + languageName: node + linkType: hard + +"is-fullwidth-code-point@npm:^3.0.0": + version: 3.0.0 + resolution: "is-fullwidth-code-point@npm:3.0.0" + checksum: 10c0/bb11d825e049f38e04c06373a8d72782eee0205bda9d908cc550ccb3c59b99d750ff9537982e01733c1c94a58e35400661f57042158ff5e8f3e90cf936daf0fc + languageName: node + linkType: hard + +"is-glob@npm:^4.0.0, is-glob@npm:^4.0.3": + version: 4.0.3 + resolution: "is-glob@npm:4.0.3" + dependencies: + is-extglob: "npm:^2.1.1" + checksum: 10c0/17fb4014e22be3bbecea9b2e3a76e9e34ff645466be702f1693e8f1ee1adac84710d0be0bd9f967d6354036fd51ab7c2741d954d6e91dae6bb69714de92c197a + languageName: node + linkType: hard + +"is-hexadecimal@npm:^2.0.0": + version: 2.0.1 + resolution: "is-hexadecimal@npm:2.0.1" + checksum: 10c0/3eb60fe2f1e2bbc760b927dcad4d51eaa0c60138cf7fc671803f66353ad90c301605b502c7ea4c6bb0548e1c7e79dfd37b73b632652e3b76030bba603a7e9626 + languageName: node + linkType: hard + +"isexe@npm:^2.0.0": + version: 2.0.0 + resolution: "isexe@npm:2.0.0" + checksum: 10c0/228cfa503fadc2c31596ab06ed6aa82c9976eec2bfd83397e7eaf06d0ccf42cd1dfd6743bf9aeb01aebd4156d009994c5f76ea898d2832c1fe342da923ca457d + languageName: node + linkType: hard + +"isows@npm:1.0.7": + version: 1.0.7 + resolution: "isows@npm:1.0.7" + peerDependencies: + ws: "*" + checksum: 10c0/43c41fe89c7c07258d0be3825f87e12da8ac9023c5b5ae6741ec00b2b8169675c04331ea73ef8c172d37a6747066f4dc93947b17cd369f92828a3b3e741afbda + languageName: node + linkType: hard + +"istanbul-lib-coverage@npm:^3.0.0, istanbul-lib-coverage@npm:^3.2.0": + version: 3.2.2 + resolution: "istanbul-lib-coverage@npm:3.2.2" + checksum: 10c0/6c7ff2106769e5f592ded1fb418f9f73b4411fd5a084387a5410538332b6567cd1763ff6b6cadca9b9eb2c443cce2f7ea7d7f1b8d315f9ce58539793b1e0922b + languageName: node + linkType: hard + +"istanbul-lib-report@npm:^3.0.0, istanbul-lib-report@npm:^3.0.1": + version: 3.0.1 + resolution: "istanbul-lib-report@npm:3.0.1" + dependencies: + istanbul-lib-coverage: "npm:^3.0.0" + make-dir: "npm:^4.0.0" + supports-color: "npm:^7.1.0" + checksum: 10c0/84323afb14392de8b6a5714bd7e9af845cfbd56cfe71ed276cda2f5f1201aea673c7111901227ee33e68e4364e288d73861eb2ed48f6679d1e69a43b6d9b3ba7 + languageName: node + linkType: hard + +"istanbul-reports@npm:^3.1.6": + version: 3.2.0 + resolution: "istanbul-reports@npm:3.2.0" + dependencies: + html-escaper: "npm:^2.0.0" + istanbul-lib-report: "npm:^3.0.0" + checksum: 10c0/d596317cfd9c22e1394f22a8d8ba0303d2074fe2e971887b32d870e4b33f8464b10f8ccbe6847808f7db485f084eba09e6c2ed706b3a978e4b52f07085b8f9bc + languageName: node + linkType: hard + +"jose@npm:^5.9.6": + version: 5.10.0 + resolution: "jose@npm:5.10.0" + checksum: 10c0/e20d9fc58d7e402f2e5f04e824b8897d5579aae60e64cb88ebdea1395311c24537bf4892f7de413fab1acf11e922797fb1b42269bc8fc65089a3749265ccb7b0 + languageName: node + linkType: hard + +"js-yaml@npm:5.5.0": + version: 5.5.0 + resolution: "js-yaml@npm:5.5.0" + dependencies: + argparse: "npm:^3.0.3" + bin: + js-yaml: bin/js-yaml.mjs + checksum: 10c0/311619f44dd788657e9b81d4b5c60ff367441f364045e3796bc604a41f25819852748fb173ae82f2553d53cb609d7fdb79e0a74148892cb2c085eebe91839b53 + languageName: node + linkType: hard + +"json-schema-traverse@npm:^0.4.1": + version: 0.4.1 + resolution: "json-schema-traverse@npm:0.4.1" + checksum: 10c0/108fa90d4cc6f08243aedc6da16c408daf81793bf903e9fd5ab21983cda433d5d2da49e40711da016289465ec2e62e0324dcdfbc06275a607fe3233fde4942ce + languageName: node + linkType: hard + +"json-schema-traverse@npm:^1.0.0": + version: 1.0.0 + resolution: "json-schema-traverse@npm:1.0.0" + checksum: 10c0/71e30015d7f3d6dc1c316d6298047c8ef98a06d31ad064919976583eb61e1018a60a0067338f0f79cabc00d84af3fcc489bd48ce8a46ea165d9541ba17fb30c6 + languageName: node + linkType: hard + +"json-stable-stringify-without-jsonify@npm:^1.0.1": + version: 1.0.1 + resolution: "json-stable-stringify-without-jsonify@npm:1.0.1" + checksum: 10c0/cb168b61fd4de83e58d09aaa6425ef71001bae30d260e2c57e7d09a5fd82223e2f22a042dedaab8db23b7d9ae46854b08bb1f91675a8be11c5cffebef5fb66a5 + languageName: node + linkType: hard + +"jsonc-parser@npm:~3.3.1": + version: 3.3.1 + resolution: "jsonc-parser@npm:3.3.1" + checksum: 10c0/269c3ae0a0e4f907a914bf334306c384aabb9929bd8c99f909275ebd5c2d3bc70b9bcd119ad794f339dec9f24b6a4ee9cd5a8ab2e6435e730ad4075388fc2ab6 + languageName: node + linkType: hard + +"jsonpointer@npm:~5.0.1": + version: 5.0.1 + resolution: "jsonpointer@npm:5.0.1" + checksum: 10c0/89929e58b400fcb96928c0504fcf4fc3f919d81e9543ceb055df125538470ee25290bb4984251e172e6ef8fcc55761eb998c118da763a82051ad89d4cb073fe7 + languageName: node + linkType: hard + +"katex@npm:0.18.2": + version: 0.18.2 + resolution: "katex@npm:0.18.2" + dependencies: + commander: "npm:^8.3.0" + bin: + katex: cli.js + checksum: 10c0/05f0eadc718cbf18d805089cfe7d930f15199b2781087f2055b25f93b0adaad5cfa7c50311366ced324e85f382edae7ed20ba09819ff8eab62b96bba5fe97029 + languageName: node + linkType: hard + +"keyv@npm:^5.6.0": + version: 5.6.0 + resolution: "keyv@npm:5.6.0" + dependencies: + "@keyv/serialize": "npm:^1.1.1" + checksum: 10c0/c3ea795b6e03593ca57c8f70928a69bad14c13389a7fb75649a115ff55615244b04d8902798d841c17f0bb4a8a8866c97133b543b93f151b440170bba09176db + languageName: node + linkType: hard + +"levn@npm:^0.4.1": + version: 0.4.1 + resolution: "levn@npm:0.4.1" + dependencies: + prelude-ls: "npm:^1.2.1" + type-check: "npm:~0.4.0" + checksum: 10c0/effb03cad7c89dfa5bd4f6989364bfc79994c2042ec5966cb9b95990e2edee5cd8969ddf42616a0373ac49fac1403437deaf6e9050fbbaa3546093a59b9ac94e + languageName: node + linkType: hard + +"linkify-it@npm:^5.0.2": + version: 5.0.2 + resolution: "linkify-it@npm:5.0.2" + dependencies: + uc.micro: "npm:^2.0.0" + checksum: 10c0/dd70b1735a13d41a2cff0a058ac3771166038f23f6aff004dd53873cf985c64b107902fe0b544a5b3d1ff6e63249cf9c648fb3ae9f285481db48f56887adb0d6 + languageName: node + linkType: hard + +"locate-path@npm:^6.0.0": + version: 6.0.0 + resolution: "locate-path@npm:6.0.0" + dependencies: + p-locate: "npm:^5.0.0" + checksum: 10c0/d3972ab70dfe58ce620e64265f90162d247e87159b6126b01314dd67be43d50e96a50b517bce2d9452a79409c7614054c277b5232377de50416564a77ac7aad3 + languageName: node + linkType: hard + +"lru-cache@npm:^11.0.0": + version: 11.5.3 + resolution: "lru-cache@npm:11.5.3" + checksum: 10c0/2ad9bce6343a3544a1fd15364d8b35609aa52b2593d21fdc4877cabfe003b0f3deca4f9d6e9d13262f06e9e3d159de45c0a2f3edfc3adb46192333b5f146d8ed + languageName: node + linkType: hard + +"make-dir@npm:^4.0.0": + version: 4.0.0 + resolution: "make-dir@npm:4.0.0" + dependencies: + semver: "npm:^7.5.3" + checksum: 10c0/69b98a6c0b8e5c4fe9acb61608a9fbcfca1756d910f51e5dbe7a9e5cfb74fca9b8a0c8a0ffdf1294a740826c1ab4871d5bf3f62f72a3049e5eac6541ddffed68 + languageName: node + linkType: hard + +"markdown-it@npm:14.3.3": + version: 14.3.3 + resolution: "markdown-it@npm:14.3.3" + dependencies: + argparse: "npm:^2.0.1" + entities: "npm:^4.5.0" + linkify-it: "npm:^5.0.2" + mdurl: "npm:^2.0.0" + punycode.js: "npm:^2.3.1" + uc.micro: "npm:^2.1.0" + bin: + markdown-it: bin/markdown-it.mjs + checksum: 10c0/d6075ad320731d7fb9f127e496677f4e36cbdba839d7387dabf1f0d07b5c02bdffb46fb3969033817c04e60017e05d4269e4aa74bee58cc0a562a17cc0b6b8ff + languageName: node + linkType: hard + +"markdownlint-cli@npm:0.50.0": + version: 0.50.0 + resolution: "markdownlint-cli@npm:0.50.0" + dependencies: + commander: "npm:~15.0.0" + deep-extend: "npm:~0.6.0" + ignore: "npm:~7.0.13" + js-yaml: "npm:~5.5.0" + jsonc-parser: "npm:~3.3.1" + jsonpointer: "npm:~5.0.1" + markdown-it: "npm:~15.0.3" + markdownlint: "npm:~0.42.0" + minimatch: "npm:~10.2.6" + run-con: "npm:~1.3.3" + smol-toml: "npm:~1.9.1" + tinyglobby: "npm:~0.2.17" + bin: + markdownlint: markdownlint.js + checksum: 10c0/66f66b3853339c2aa44524bc96200b61c56f50dc6e530cdf07de1d87bb03eb8414660c1d8510296b878f3938c94619e511324b94e3dbc427f01bb9e48690dc97 + languageName: node + linkType: hard + +"markdownlint@npm:~0.42.0": + version: 0.42.1 + resolution: "markdownlint@npm:0.42.1" + dependencies: + micromark: "npm:4.0.3" + micromark-core-commonmark: "npm:2.0.4" + micromark-extension-directive: "npm:4.0.0" + micromark-extension-gfm-autolink-literal: "npm:2.1.0" + micromark-extension-gfm-footnote: "npm:2.1.0" + micromark-extension-gfm-table: "npm:2.1.2" + micromark-extension-math: "npm:3.1.0" + micromark-util-types: "npm:2.0.3" + re2js: "npm:2.9.1" + string-width: "npm:8.3.0" + checksum: 10c0/f052eebb2b7e27282a66ba8fcc4619fbcb3ca2fcf80f5df763c3d999dfc786e19cb95d6bb78f1ad6258bb88e1c3c3bbbfa33a61d7ac72e9ae888e17e7964440d + languageName: node + linkType: hard + +"math-intrinsics@npm:^1.1.0": + version: 1.1.0 + resolution: "math-intrinsics@npm:1.1.0" + checksum: 10c0/7579ff94e899e2f76ab64491d76cf606274c874d8f2af4a442c016bd85688927fcfca157ba6bf74b08e9439dc010b248ce05b96cc7c126a354c3bae7fcb48b7f + languageName: node + linkType: hard + +"mdurl@npm:^2.0.0": + version: 2.0.0 + resolution: "mdurl@npm:2.0.0" + checksum: 10c0/633db522272f75ce4788440669137c77540d74a83e9015666a9557a152c02e245b192edc20bc90ae953bbab727503994a53b236b4d9c99bdaee594d0e7dd2ce0 + languageName: node + linkType: hard + +"media-typer@npm:0.3.0": + version: 0.3.0 + resolution: "media-typer@npm:0.3.0" + checksum: 10c0/d160f31246907e79fed398470285f21bafb45a62869dc469b1c8877f3f064f5eabc4bcc122f9479b8b605bc5c76187d7871cf84c4ee3ecd3e487da1993279928 + languageName: node + linkType: hard + +"merge-descriptors@npm:1.0.3": + version: 1.0.3 + resolution: "merge-descriptors@npm:1.0.3" + checksum: 10c0/866b7094afd9293b5ea5dcd82d71f80e51514bed33b4c4e9f516795dc366612a4cbb4dc94356e943a8a6914889a914530badff27f397191b9b75cda20b6bae93 + languageName: node + linkType: hard + +"methods@npm:~1.1.2": + version: 1.1.2 + resolution: "methods@npm:1.1.2" + checksum: 10c0/bdf7cc72ff0a33e3eede03708c08983c4d7a173f91348b4b1e4f47d4cdbf734433ad971e7d1e8c77247d9e5cd8adb81ea4c67b0a2db526b758b2233d7814b8b2 + languageName: node + linkType: hard + +"micromark-core-commonmark@npm:2.0.4": + version: 2.0.4 + resolution: "micromark-core-commonmark@npm:2.0.4" + dependencies: + decode-named-character-reference: "npm:^1.0.0" + devlop: "npm:^1.0.0" + micromark-factory-destination: "npm:^2.0.0" + micromark-factory-label: "npm:^2.0.0" + micromark-factory-space: "npm:^2.1.0" + micromark-factory-title: "npm:^2.0.0" + micromark-factory-whitespace: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-chunked: "npm:^2.0.0" + micromark-util-classify-character: "npm:^2.0.0" + micromark-util-edit-map: "npm:^1.0.0" + micromark-util-html-tag-name: "npm:^2.0.0" + micromark-util-normalize-identifier: "npm:^2.0.0" + micromark-util-resolve-all: "npm:^2.0.0" + micromark-util-subtokenize: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.3" + checksum: 10c0/19f0ff7113e0f836aa178e041ab8cc5011c70750ceee584979df990c6a3db08f35c8b34673d05ae6108fedfd9db80291f3d5b0367f3d355872b39a94b35c3d63 + languageName: node + linkType: hard + +"micromark-core-commonmark@npm:^2.0.0": + version: 2.0.3 + resolution: "micromark-core-commonmark@npm:2.0.3" + dependencies: + decode-named-character-reference: "npm:^1.0.0" + devlop: "npm:^1.0.0" + micromark-factory-destination: "npm:^2.0.0" + micromark-factory-label: "npm:^2.0.0" + micromark-factory-space: "npm:^2.0.0" + micromark-factory-title: "npm:^2.0.0" + micromark-factory-whitespace: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-chunked: "npm:^2.0.0" + micromark-util-classify-character: "npm:^2.0.0" + micromark-util-html-tag-name: "npm:^2.0.0" + micromark-util-normalize-identifier: "npm:^2.0.0" + micromark-util-resolve-all: "npm:^2.0.0" + micromark-util-subtokenize: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/bd4a794fdc9e88dbdf59eaf1c507ddf26e5f7ddf4e52566c72239c0f1b66adbcd219ba2cd42350debbe24471434d5f5e50099d2b3f4e5762ca222ba8e5b549ee + languageName: node + linkType: hard + +"micromark-extension-directive@npm:4.0.0": + version: 4.0.0 + resolution: "micromark-extension-directive@npm:4.0.0" + dependencies: + devlop: "npm:^1.0.0" + micromark-factory-space: "npm:^2.0.0" + micromark-factory-whitespace: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + parse-entities: "npm:^4.0.0" + checksum: 10c0/b4aef0f44339543466ae186130a4514985837b6b12d0c155bd1162e740f631e58f0883a39d0c723206fa0ff53a9b579965c79116f902236f6f123c3340b5fefb + languageName: node + linkType: hard + +"micromark-extension-gfm-autolink-literal@npm:2.1.0": + version: 2.1.0 + resolution: "micromark-extension-gfm-autolink-literal@npm:2.1.0" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-sanitize-uri: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/84e6fbb84ea7c161dfa179665dc90d51116de4c28f3e958260c0423e5a745372b7dcbc87d3cde98213b532e6812f847eef5ae561c9397d7f7da1e59872ef3efe + languageName: node + linkType: hard + +"micromark-extension-gfm-footnote@npm:2.1.0": + version: 2.1.0 + resolution: "micromark-extension-gfm-footnote@npm:2.1.0" + dependencies: + devlop: "npm:^1.0.0" + micromark-core-commonmark: "npm:^2.0.0" + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-normalize-identifier: "npm:^2.0.0" + micromark-util-sanitize-uri: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/d172e4218968b7371b9321af5cde8c77423f73b233b2b0fcf3ff6fd6f61d2e0d52c49123a9b7910612478bf1f0d5e88c75a3990dd68f70f3933fe812b9f77edc + languageName: node + linkType: hard + +"micromark-extension-gfm-table@npm:2.1.2": + version: 2.1.2 + resolution: "micromark-extension-gfm-table@npm:2.1.2" + dependencies: + devlop: "npm:^1.0.0" + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/cb373e2a1df6700a884b3fc85bdf47fee1dd06664e72cf866dd1e5828f017517cbc3e3a58b9256d6b5c5a21b067151806afbf780188c47d2fc027004ea3ab07c + languageName: node + linkType: hard + +"micromark-extension-math@npm:3.1.0": + version: 3.1.0 + resolution: "micromark-extension-math@npm:3.1.0" + dependencies: + "@types/katex": "npm:^0.16.0" + devlop: "npm:^1.0.0" + katex: "npm:^0.16.0" + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/56e6f2185a4613f9d47e7e98cf8605851c990957d9229c942b005e286c8087b61dc9149448d38b2f8be6d42cc6a64aad7e1f2778ddd86fbbb1a2f48a3ca1872f + languageName: node + linkType: hard + +"micromark-factory-destination@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-factory-destination@npm:2.0.1" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/bbafcf869cee5bf511161354cb87d61c142592fbecea051000ff116068dc85216e6d48519d147890b9ea5d7e2864a6341c0c09d9948c203bff624a80a476023c + languageName: node + linkType: hard + +"micromark-factory-label@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-factory-label@npm:2.0.1" + dependencies: + devlop: "npm:^1.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/0137716b4ecb428114165505e94a2f18855c8bbea21b07a8b5ce514b32a595ed789d2b967125718fc44c4197ceaa48f6609d58807a68e778138d2e6b91b824e8 + languageName: node + linkType: hard + +"micromark-factory-space@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-factory-space@npm:2.0.1" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/f9ed43f1c0652d8d898de0ac2be3f77f776fffe7dd96bdbba1e02d7ce33d3853c6ff5daa52568fc4fa32cdf3a62d86b85ead9b9189f7211e1d69ff2163c450fb + languageName: node + linkType: hard + +"micromark-factory-space@npm:^2.1.0": + version: 2.1.0 + resolution: "micromark-factory-space@npm:2.1.0" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/4a8674b3688e958a290bf193eab123cb6634f76bb21f8b3c9e1a8a3c8e25380080d4735b179cf68cada61b49de2c8a0b9e2e90f274105a84803672fa0a933e7b + languageName: node + linkType: hard + +"micromark-factory-title@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-factory-title@npm:2.0.1" + dependencies: + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/e72fad8d6e88823514916890099a5af20b6a9178ccf78e7e5e05f4de99bb8797acb756257d7a3a57a53854cb0086bf8aab15b1a9e9db8982500dd2c9ff5948b6 + languageName: node + linkType: hard + +"micromark-factory-whitespace@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-factory-whitespace@npm:2.0.1" + dependencies: + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/20a1ec58698f24b766510a309b23a10175034fcf1551eaa9da3adcbed3e00cd53d1ebe5f030cf873f76a1cec3c34eb8c50cc227be3344caa9ed25d56cf611224 + languageName: node + linkType: hard + +"micromark-util-character@npm:^2.0.0": + version: 2.1.1 + resolution: "micromark-util-character@npm:2.1.1" + dependencies: + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/d3fe7a5e2c4060fc2a076f9ce699c82a2e87190a3946e1e5eea77f563869b504961f5668d9c9c014724db28ac32fa909070ea8b30c3a39bd0483cc6c04cc76a1 + languageName: node + linkType: hard + +"micromark-util-chunked@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-util-chunked@npm:2.0.1" + dependencies: + micromark-util-symbol: "npm:^2.0.0" + checksum: 10c0/b68c0c16fe8106949537bdcfe1be9cf36c0ccd3bc54c4007003cb0984c3750b6cdd0fd77d03f269a3382b85b0de58bde4f6eedbe7ecdf7244759112289b1ab56 + languageName: node + linkType: hard + +"micromark-util-classify-character@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-util-classify-character@npm:2.0.1" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/8a02e59304005c475c332f581697e92e8c585bcd45d5d225a66c1c1b14ab5a8062705188c2ccec33cc998d33502514121478b2091feddbc751887fc9c290ed08 + languageName: node + linkType: hard + +"micromark-util-combine-extensions@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-util-combine-extensions@npm:2.0.1" + dependencies: + micromark-util-chunked: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/f15e282af24c8372cbb10b9b0b3e2c0aa681fea0ca323a44d6bc537dc1d9382c819c3689f14eaa000118f5a163245358ce6276b2cda9a84439cdb221f5d86ae7 + languageName: node + linkType: hard + +"micromark-util-decode-numeric-character-reference@npm:^2.0.0": + version: 2.0.2 + resolution: "micromark-util-decode-numeric-character-reference@npm:2.0.2" + dependencies: + micromark-util-symbol: "npm:^2.0.0" + checksum: 10c0/9c8a9f2c790e5593ffe513901c3a110e9ec8882a08f466da014112a25e5059b51551ca0aeb7ff494657d86eceb2f02ee556c6558b8d66aadc61eae4a240da0df + languageName: node + linkType: hard + +"micromark-util-edit-map@npm:^1.0.0": + version: 1.0.0 + resolution: "micromark-util-edit-map@npm:1.0.0" + dependencies: + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/5f6caaa4d8a3c5b95632c8ab66ffaa488d496583ba37bbf7f5f7dd5c7bc3a5c51af97bc5767aa92c6aa906c5c031f0b09a5239284a6d0f1707d4f953bb7d8e4e + languageName: node + linkType: hard + +"micromark-util-encode@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-util-encode@npm:2.0.1" + checksum: 10c0/b2b29f901093845da8a1bf997ea8b7f5e061ffdba85070dfe14b0197c48fda64ffcf82bfe53c90cf9dc185e69eef8c5d41cae3ba918b96bc279326921b59008a + languageName: node + linkType: hard + +"micromark-util-html-tag-name@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-util-html-tag-name@npm:2.0.1" + checksum: 10c0/ae80444db786fde908e9295f19a27a4aa304171852c77414516418650097b8afb401961c9edb09d677b06e97e8370cfa65638dde8438ebd41d60c0a8678b85b9 + languageName: node + linkType: hard + +"micromark-util-normalize-identifier@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-util-normalize-identifier@npm:2.0.1" + dependencies: + micromark-util-symbol: "npm:^2.0.0" + checksum: 10c0/5299265fa360769fc499a89f40142f10a9d4a5c3dd8e6eac8a8ef3c2e4a6570e4c009cf75ea46dce5ee31c01f25587bde2f4a5cc0a935584ae86dd857f2babbd + languageName: node + linkType: hard + +"micromark-util-resolve-all@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-util-resolve-all@npm:2.0.1" + dependencies: + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/bb6ca28764696bb479dc44a2d5b5fe003e7177aeae1d6b0d43f24cc223bab90234092d9c3ce4a4d2b8df095ccfd820537b10eb96bb7044d635f385d65a4c984a + languageName: node + linkType: hard + +"micromark-util-sanitize-uri@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-util-sanitize-uri@npm:2.0.1" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-encode: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + checksum: 10c0/60e92166e1870fd4f1961468c2651013ff760617342918e0e0c3c4e872433aa2e60c1e5a672bfe5d89dc98f742d6b33897585cf86ae002cda23e905a3c02527c + languageName: node + linkType: hard + +"micromark-util-subtokenize@npm:^2.0.0": + version: 2.1.0 + resolution: "micromark-util-subtokenize@npm:2.1.0" + dependencies: + devlop: "npm:^1.0.0" + micromark-util-chunked: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/bee69eece4393308e657c293ba80d92ebcb637e5f55e21dcf9c3fa732b91a8eda8ac248d76ff375e675175bfadeae4712e5158ef97eef1111789da1ce7ab5067 + languageName: node + linkType: hard + +"micromark-util-symbol@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-util-symbol@npm:2.0.1" + checksum: 10c0/f2d1b207771e573232436618e78c5e46cd4b5c560dd4a6d63863d58018abbf49cb96ec69f7007471e51434c60de3c9268ef2bf46852f26ff4aacd10f9da16fe9 + languageName: node + linkType: hard + +"micromark-util-types@npm:2.0.3, micromark-util-types@npm:^2.0.3": + version: 2.0.3 + resolution: "micromark-util-types@npm:2.0.3" + checksum: 10c0/fc37f4e5d58c06bb6dba16b608abbf8db6949a141bd21802c1110121ef7c093811145de2e22fc277cce8ba5e5a38788e14b5f0d142ef1cd0fcfd918ce6c7940c + languageName: node + linkType: hard + +"micromark-util-types@npm:^2.0.0": + version: 2.0.2 + resolution: "micromark-util-types@npm:2.0.2" + checksum: 10c0/c8c15b96c858db781c4393f55feec10004bf7df95487636c9a9f7209e51002a5cca6a047c5d2a5dc669ff92da20e57aaa881e81a268d9ccadb647f9dce305298 + languageName: node + linkType: hard + +"micromark@npm:4.0.3": + version: 4.0.3 + resolution: "micromark@npm:4.0.3" + dependencies: + "@types/debug": "npm:^4.0.0" + debug: "npm:^4.0.0" + decode-named-character-reference: "npm:^1.0.0" + devlop: "npm:^1.0.0" + micromark-core-commonmark: "npm:^2.0.0" + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-chunked: "npm:^2.0.0" + micromark-util-combine-extensions: "npm:^2.0.0" + micromark-util-decode-numeric-character-reference: "npm:^2.0.0" + micromark-util-edit-map: "npm:^1.0.0" + micromark-util-encode: "npm:^2.0.0" + micromark-util-normalize-identifier: "npm:^2.0.0" + micromark-util-resolve-all: "npm:^2.0.0" + micromark-util-sanitize-uri: "npm:^2.0.0" + micromark-util-subtokenize: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/f1710d5c255e3d20127127223263aee539a04c3ca7423019d18f668656cd82eb9282362cf281cac31b7e9b282d04e297c17bf3e302201e2621ed32af24e69ba9 + languageName: node + linkType: hard + +"mime-db@npm:1.52.0": + version: 1.52.0 + resolution: "mime-db@npm:1.52.0" + checksum: 10c0/0557a01deebf45ac5f5777fe7740b2a5c309c6d62d40ceab4e23da9f821899ce7a900b7ac8157d4548ddbb7beffe9abc621250e6d182b0397ec7f10c7b91a5aa + languageName: node + linkType: hard + +"mime-types@npm:~2.1.24, mime-types@npm:~2.1.34": + version: 2.1.35 + resolution: "mime-types@npm:2.1.35" + dependencies: + mime-db: "npm:1.52.0" + checksum: 10c0/82fb07ec56d8ff1fc999a84f2f217aa46cb6ed1033fefaabd5785b9a974ed225c90dc72fff460259e66b95b73648596dbcc50d51ed69cdf464af2d237d3149b2 + languageName: node + linkType: hard + +"mime@npm:1.6.0": + version: 1.6.0 + resolution: "mime@npm:1.6.0" + bin: + mime: cli.js + checksum: 10c0/b92cd0adc44888c7135a185bfd0dddc42c32606401c72896a842ae15da71eb88858f17669af41e498b463cd7eb998f7b48939a25b08374c7924a9c8a6f8a81b0 + languageName: node + linkType: hard + +"minimatch@npm:11.0.2": + version: 11.0.2 + resolution: "minimatch@npm:11.0.2" + dependencies: + "@isaacs/nonrecursive-glob-match": "npm:^1.0.2" + brace-expansion: "npm:^5.0.12" + checksum: 10c0/d51bad3e041232d23bf5f3f3858153b273e43c72deecab4528db9c61cff78d16e914cf551a1bcae05d10bf942ebf9d16ce8d9467cc3d289bee939401b405895e + languageName: node + linkType: hard + +"minimist@npm:^1.2.8": + version: 1.2.8 + resolution: "minimist@npm:1.2.8" + checksum: 10c0/19d3fcdca050087b84c2029841a093691a91259a47def2f18222f41e7645a0b7c44ef4b40e88a1e58a40c84d2ef0ee6047c55594d298146d0eb3f6b737c20ce6 + languageName: node + linkType: hard + +"minipass@npm:^7.1.2, minipass@npm:^7.1.3": + version: 7.1.3 + resolution: "minipass@npm:7.1.3" + checksum: 10c0/539da88daca16533211ea5a9ee98dc62ff5742f531f54640dd34429e621955e91cc280a91a776026264b7f9f6735947629f920944e9c1558369e8bf22eb33fbb + languageName: node + linkType: hard + +"ms@npm:2.0.0": + version: 2.0.0 + resolution: "ms@npm:2.0.0" + checksum: 10c0/f8fda810b39fd7255bbdc451c46286e549794fcc700dc9cd1d25658bbc4dc2563a5de6fe7c60f798a16a60c6ceb53f033cb353f493f0cf63e5199b702943159d + languageName: node + linkType: hard + +"ms@npm:2.1.3, ms@npm:^2.1.3": + version: 2.1.3 + resolution: "ms@npm:2.1.3" + checksum: 10c0/d924b57e7312b3b63ad21fc5b3dc0af5e78d61a1fc7cfb5457edaf26326bf62be5307cc87ffb6862ef1c2b33b0233cdb5d4f01c4c958cc0d660948b65a287a48 + languageName: node + linkType: hard + +"natural-compare@npm:^1.4.0": + version: 1.4.0 + resolution: "natural-compare@npm:1.4.0" + checksum: 10c0/f5f9a7974bfb28a91afafa254b197f0f22c684d4a1731763dda960d2c8e375b36c7d690e0d9dc8fba774c537af14a7e979129bca23d88d052fbeb9466955e447 + languageName: node + linkType: hard + +"negotiator@npm:0.6.3": + version: 0.6.3 + resolution: "negotiator@npm:0.6.3" + checksum: 10c0/3ec9fd413e7bf071c937ae60d572bc67155262068ed522cf4b3be5edbe6ddf67d095ec03a3a14ebf8fc8e95f8e1d61be4869db0dbb0de696f6b837358bd43fc2 + languageName: node + linkType: hard + +"object-inspect@npm:^1.13.3, object-inspect@npm:^1.13.4": + version: 1.13.4 + resolution: "object-inspect@npm:1.13.4" + checksum: 10c0/d7f8711e803b96ea3191c745d6f8056ce1f2496e530e6a19a0e92d89b0fa3c76d910c31f0aa270432db6bd3b2f85500a376a83aaba849a8d518c8845b3211692 + languageName: node + linkType: hard + +"on-finished@npm:~2.4.1": + version: 2.4.2 + resolution: "on-finished@npm:2.4.2" + dependencies: + ee-first: "npm:1.1.1" + checksum: 10c0/e2cdfcadbdca1421fd62c452b728f62c9dd67f73009b98e58d3340dcfad0367f3c98f18081dc58a54f36b6a13c503aadba72c4ddb6ad13ac0c372f956e9943f4 + languageName: node + linkType: hard + +"optionator@npm:^0.9.3": + version: 0.9.4 + resolution: "optionator@npm:0.9.4" + dependencies: + deep-is: "npm:^0.1.3" + fast-levenshtein: "npm:^2.0.6" + levn: "npm:^0.4.1" + prelude-ls: "npm:^1.2.1" + type-check: "npm:^0.4.0" + word-wrap: "npm:^1.2.5" + checksum: 10c0/4afb687a059ee65b61df74dfe87d8d6815cd6883cb8b3d5883a910df72d0f5d029821f37025e4bccf4048873dbdb09acc6d303d27b8f76b1a80dd5a7d5334675 + languageName: node + linkType: hard + +"ox@npm:0.14.57": + version: 0.14.57 + resolution: "ox@npm:0.14.57" + dependencies: + "@adraffy/ens-normalize": "npm:^1.11.0" + "@noble/ciphers": "npm:^1.3.0" + "@noble/curves": "npm:1.9.1" + "@noble/hashes": "npm:^1.8.0" + "@scure/bip32": "npm:^1.7.0" + "@scure/bip39": "npm:^1.6.0" + abitype: "npm:^1.2.3" + eventemitter3: "npm:5.0.1" + peerDependencies: + typescript: ">=5.4.0" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/b3d7d9c8847c7f4b6858247fd6b4c4c4f1f9be90de7b11d48608fa4740642326f4362e369fd6a150c0e1b34bda6c2721521221d7a700ffee611dbf03e62753c6 + languageName: node + linkType: hard + +"p-limit@npm:^3.0.2": + version: 3.1.0 + resolution: "p-limit@npm:3.1.0" + dependencies: + yocto-queue: "npm:^0.1.0" + checksum: 10c0/9db675949dbdc9c3763c89e748d0ef8bdad0afbb24d49ceaf4c46c02c77d30db4e0652ed36d0a0a7a95154335fab810d95c86153105bb73b3a90448e2bb14e1a + languageName: node + linkType: hard + +"p-locate@npm:^5.0.0": + version: 5.0.0 + resolution: "p-locate@npm:5.0.0" + dependencies: + p-limit: "npm:^3.0.2" + checksum: 10c0/2290d627ab7903b8b70d11d384fee714b797f6040d9278932754a6860845c4d3190603a0772a663c8cb5a7b21d1b16acb3a6487ebcafa9773094edc3dfe6009a + languageName: node + linkType: hard + +"parse-entities@npm:^4.0.0": + version: 4.0.2 + resolution: "parse-entities@npm:4.0.2" + dependencies: + "@types/unist": "npm:^2.0.0" + character-entities-legacy: "npm:^3.0.0" + character-reference-invalid: "npm:^2.0.0" + decode-named-character-reference: "npm:^1.0.0" + is-alphanumerical: "npm:^2.0.0" + is-decimal: "npm:^2.0.0" + is-hexadecimal: "npm:^2.0.0" + checksum: 10c0/a13906b1151750b78ed83d386294066daf5fb559e08c5af9591b2d98cc209123103016a01df776f65f8219ad26652d6d6b210d0974d452049cddfc53a8916c34 + languageName: node + linkType: hard + +"parseurl@npm:~1.3.3": + version: 1.3.3 + resolution: "parseurl@npm:1.3.3" + checksum: 10c0/90dd4760d6f6174adb9f20cf0965ae12e23879b5f5464f38e92fce8073354341e4b3b76fa3d878351efe7d01e617121955284cfd002ab087fba1a0726ec0b4f5 + languageName: node + linkType: hard + +"path-exists@npm:^4.0.0": + version: 4.0.0 + resolution: "path-exists@npm:4.0.0" + checksum: 10c0/8c0bd3f5238188197dc78dced15207a4716c51cc4e3624c44fc97acf69558f5ebb9a2afff486fe1b4ee148e0c133e96c5e11a9aa5c48a3006e3467da070e5e1b + languageName: node + linkType: hard + +"path-key@npm:^3.1.0": + version: 3.1.1 + resolution: "path-key@npm:3.1.1" + checksum: 10c0/748c43efd5a569c039d7a00a03b58eecd1d75f3999f5a28303d75f521288df4823bc057d8784eb72358b2895a05f29a070bc9f1f17d28226cc4e62494cc58c4c + languageName: node + linkType: hard + +"path-scurry@npm:^3.0.0": + version: 3.0.0 + resolution: "path-scurry@npm:3.0.0" + dependencies: + lru-cache: "npm:^11.0.0" + minipass: "npm:^7.1.2" + checksum: 10c0/3256223b51952732bc5460f574143d7d9904cd6d68fac3072906162c90e9f27fdf6f3fe812287e65a876f92d73c12a58368b28749ed07a58bdb04dc76f60a938 + languageName: node + linkType: hard + +"path-to-regexp@npm:~0.1.13": + version: 0.1.13 + resolution: "path-to-regexp@npm:0.1.13" + checksum: 10c0/1cae3921739c154a8926e136185a10c916f79a249b9072a5001b266d96e193860ca03867e8e8cc808b786862d750f427ed93686bc259355442c3407a62deab1a + languageName: node + linkType: hard + +"picomatch@npm:^4.0.4": + version: 4.0.7 + resolution: "picomatch@npm:4.0.7" + checksum: 10c0/beb6ae02c43ae44e84883b90830196d9046b1726ead292adcf7f57945e0bb0d992d68563d87e03b484b6f3c9a5c6defda7523477f047d7f0e663f126cc01787f + languageName: node + linkType: hard + +"prelude-ls@npm:^1.2.1": + version: 1.2.1 + resolution: "prelude-ls@npm:1.2.1" + checksum: 10c0/b00d617431e7886c520a6f498a2e14c75ec58f6d93ba48c3b639cf241b54232d90daa05d83a9e9b9fef6baa63cb7e1e4602c2372fea5bc169668401eb127d0cd + languageName: node + linkType: hard + +"proxy-addr@npm:~2.0.7": + version: 2.0.8 + resolution: "proxy-addr@npm:2.0.8" + dependencies: + forwarded: "npm:0.2.0" + ipaddr.js: "npm:1.9.1" + checksum: 10c0/58398f36e5b1f72b1011ca21844c0c41a9a3b6f2f0d101bcdb19abb3f3dd9626b27a96e53da777ded901eb67faed0304a4bc1d435b235e436f66f8e5e1fe1f5e + languageName: node + linkType: hard + +"punycode.js@npm:^2.3.1": + version: 2.3.1 + resolution: "punycode.js@npm:2.3.1" + checksum: 10c0/1d12c1c0e06127fa5db56bd7fdf698daf9a78104456a6b67326877afc21feaa821257b171539caedd2f0524027fa38e67b13dd094159c8d70b6d26d2bea4dfdb + languageName: node + linkType: hard + +"punycode@npm:^2.1.0": + version: 2.3.1 + resolution: "punycode@npm:2.3.1" + checksum: 10c0/14f76a8206bc3464f794fb2e3d3cc665ae416c01893ad7a02b23766eb07159144ee612ad67af5e84fa4479ccfe67678c4feb126b0485651b302babf66f04f9e9 + languageName: node + linkType: hard + +"qified@npm:^0.10.1": + version: 0.10.1 + resolution: "qified@npm:0.10.1" + dependencies: + hookified: "npm:^2.1.1" + checksum: 10c0/4a39d45492c65a4b9795381acede1bd566028ce9764ead5b41d776b391a898bf0855dd2b59d724a6711fe253ba3cacf7c9a8832887cf9dc6d48a2c5e4997c82d + languageName: node + linkType: hard + +"qs@npm:~6.16.0": + version: 6.16.2 + resolution: "qs@npm:6.16.2" + dependencies: + es-define-property: "npm:^1.0.1" + side-channel: "npm:^1.1.1" + checksum: 10c0/945e933f943e419bcd0ca54eeacff7d7bb5a098de886249425cbba3b5ed1be10e177b84b97d7d2c4099e90afa09bb3489112672b89dfa56edc0b5bcb829c456b + languageName: node + linkType: hard + +"range-parser@npm:~1.2.1": + version: 1.2.1 + resolution: "range-parser@npm:1.2.1" + checksum: 10c0/96c032ac2475c8027b7a4e9fe22dc0dfe0f6d90b85e496e0f016fbdb99d6d066de0112e680805075bd989905e2123b3b3d002765149294dce0c1f7f01fcc2ea0 + languageName: node + linkType: hard + +"raw-body@npm:~2.5.3": + version: 2.5.3 + resolution: "raw-body@npm:2.5.3" + dependencies: + bytes: "npm:~3.1.2" + http-errors: "npm:~2.0.1" + iconv-lite: "npm:~0.4.24" + unpipe: "npm:~1.0.0" + checksum: 10c0/449844344fc90547fb994383a494b83300e4f22199f146a79f68d78a199a8f2a923ea9fd29c3be979bfd50291a3884733619ffc15ba02a32e703b612f8d3f74a + languageName: node + linkType: hard + +"re2js@npm:2.9.1": + version: 2.9.1 + resolution: "re2js@npm:2.9.1" + checksum: 10c0/799c179ab563b8c16422b80cbcccdfdc0e940c50999930c1aa91bd5fe54e08a00a50abcf5510ab1bb3d881c90235c6fb177ed9d710cf3e5b4e843f026407ba9b + languageName: node + linkType: hard + +"require-directory@npm:^2.1.1": + version: 2.1.1 + resolution: "require-directory@npm:2.1.1" + checksum: 10c0/83aa76a7bc1531f68d92c75a2ca2f54f1b01463cb566cf3fbc787d0de8be30c9dbc211d1d46be3497dac5785fe296f2dd11d531945ac29730643357978966e99 + languageName: node + linkType: hard + +"require-from-string@npm:^2.0.2": + version: 2.0.2 + resolution: "require-from-string@npm:2.0.2" + checksum: 10c0/aaa267e0c5b022fc5fd4eef49d8285086b15f2a1c54b28240fdf03599cbd9c26049fee3eab894f2e1f6ca65e513b030a7c264201e3f005601e80c49fb2937ce2 + languageName: node + linkType: hard + +"run-con@npm:~1.3.3": + version: 1.3.3 + resolution: "run-con@npm:1.3.3" + dependencies: + deep-extend: "npm:^0.6.0" + ini: "npm:~7.0.0" + minimist: "npm:^1.2.8" + strip-json-comments: "npm:~3.1.1" + bin: + run-con: cli.js + checksum: 10c0/9460fed6f5cd047a1deb05f233eb8aae2bcc4c5dd1eb4edc4c9d31d2b5a0c37f430a048b6d23e5af66a68e4c0db1da0936d58a74f067d9a52d89b44fd2a01a1d + languageName: node + linkType: hard + +"safe-buffer@npm:5.2.1": + version: 5.2.1 + resolution: "safe-buffer@npm:5.2.1" + checksum: 10c0/6501914237c0a86e9675d4e51d89ca3c21ffd6a31642efeba25ad65720bce6921c9e7e974e5be91a786b25aa058b5303285d3c15dbabf983a919f5f630d349f3 + languageName: node + linkType: hard + +"safer-buffer@npm:>= 2.1.2 < 3": + version: 2.1.2 + resolution: "safer-buffer@npm:2.1.2" + checksum: 10c0/7e3c8b2e88a1841c9671094bbaeebd94448111dd90a81a1f606f3f67708a6ec57763b3b47f06da09fc6054193e0e6709e77325415dc8422b04497a8070fa02d4 + languageName: node + linkType: hard + +"semver@npm:^7.5.3": + version: 7.7.4 + resolution: "semver@npm:7.7.4" + bin: + semver: bin/semver.js + checksum: 10c0/5215ad0234e2845d4ea5bb9d836d42b03499546ddafb12075566899fc617f68794bb6f146076b6881d755de17d6c6cc73372555879ec7dce2c2feee947866ad2 + languageName: node + linkType: hard + +"send@npm:~0.19.0, send@npm:~0.19.1": + version: 0.19.2 + resolution: "send@npm:0.19.2" + dependencies: + debug: "npm:2.6.9" + depd: "npm:2.0.0" + destroy: "npm:1.2.0" + encodeurl: "npm:~2.0.0" + escape-html: "npm:~1.0.3" + etag: "npm:~1.8.1" + fresh: "npm:~0.5.2" + http-errors: "npm:~2.0.1" + mime: "npm:1.6.0" + ms: "npm:2.1.3" + on-finished: "npm:~2.4.1" + range-parser: "npm:~1.2.1" + statuses: "npm:~2.0.2" + checksum: 10c0/20c2389fe0fdf3fc499938cac598bc32272287e993c4960717381a10de8550028feadfb9076f959a3a3ebdea42e1f690e116f0d16468fa56b9fd41866d3dc267 + languageName: node + linkType: hard + +"serve-static@npm:~1.16.2": + version: 1.16.3 + resolution: "serve-static@npm:1.16.3" + dependencies: + encodeurl: "npm:~2.0.0" + escape-html: "npm:~1.0.3" + parseurl: "npm:~1.3.3" + send: "npm:~0.19.1" + checksum: 10c0/36320397a073c71bedf58af48a4a100fe6d93f07459af4d6f08b9a7217c04ce2a4939e0effd842dc7bece93ffcd59eb52f58c4fff2a8e002dc29ae6b219cd42b + languageName: node + linkType: hard + +"setprototypeof@npm:1.2.0, setprototypeof@npm:~1.2.0": + version: 1.2.0 + resolution: "setprototypeof@npm:1.2.0" + checksum: 10c0/68733173026766fa0d9ecaeb07f0483f4c2dc70ca376b3b7c40b7cda909f94b0918f6c5ad5ce27a9160bdfb475efaa9d5e705a11d8eaae18f9835d20976028bc + languageName: node + linkType: hard + +"shebang-command@npm:^2.0.0": + version: 2.0.0 + resolution: "shebang-command@npm:2.0.0" + dependencies: + shebang-regex: "npm:^3.0.0" + checksum: 10c0/a41692e7d89a553ef21d324a5cceb5f686d1f3c040759c50aab69688634688c5c327f26f3ecf7001ebfd78c01f3c7c0a11a7c8bfd0a8bc9f6240d4f40b224e4e + languageName: node + linkType: hard + +"shebang-regex@npm:^3.0.0": + version: 3.0.0 + resolution: "shebang-regex@npm:3.0.0" + checksum: 10c0/1dbed0726dd0e1152a92696c76c7f06084eb32a90f0528d11acd764043aacf76994b2fb30aa1291a21bd019d6699164d048286309a278855ee7bec06cf6fb690 + languageName: node + linkType: hard + +"side-channel-list@npm:^1.0.1": + version: 1.0.1 + resolution: "side-channel-list@npm:1.0.1" + dependencies: + es-errors: "npm:^1.3.0" + object-inspect: "npm:^1.13.4" + checksum: 10c0/d346c787fd2f9f1c2fdea14f00e8250118db0e7596d85a6cb9faa75f105d31a73a8f7a341c93d7df2a2429098c3d37a77bd3be9e88c37094b8c01807bc77c7a2 + languageName: node + linkType: hard + +"side-channel-map@npm:^1.0.1": + version: 1.0.1 + resolution: "side-channel-map@npm:1.0.1" + dependencies: + call-bound: "npm:^1.0.2" + es-errors: "npm:^1.3.0" + get-intrinsic: "npm:^1.2.5" + object-inspect: "npm:^1.13.3" + checksum: 10c0/010584e6444dd8a20b85bc926d934424bd809e1a3af941cace229f7fdcb751aada0fb7164f60c2e22292b7fa3c0ff0bce237081fd4cdbc80de1dc68e95430672 + languageName: node + linkType: hard + +"side-channel-weakmap@npm:^1.0.2": + version: 1.0.2 + resolution: "side-channel-weakmap@npm:1.0.2" + dependencies: + call-bound: "npm:^1.0.2" + es-errors: "npm:^1.3.0" + get-intrinsic: "npm:^1.2.5" + object-inspect: "npm:^1.13.3" + side-channel-map: "npm:^1.0.1" + checksum: 10c0/71362709ac233e08807ccd980101c3e2d7efe849edc51455030327b059f6c4d292c237f94dc0685031dd11c07dd17a68afde235d6cf2102d949567f98ab58185 + languageName: node + linkType: hard + +"side-channel@npm:^1.1.1": + version: 1.1.1 + resolution: "side-channel@npm:1.1.1" + dependencies: + es-errors: "npm:^1.3.0" + object-inspect: "npm:^1.13.4" + side-channel-list: "npm:^1.0.1" + side-channel-map: "npm:^1.0.1" + side-channel-weakmap: "npm:^1.0.2" + checksum: 10c0/dc0ab81d67f61bda9247d053ce93f41c3fd8ad2bdcb9cf9d8d2f8540d488f26d87a5e99ebfc07eea49ec025867b2452b705442d974b1478f0395e69f6bfb3270 + languageName: node + linkType: hard + +"signal-exit@npm:^4.0.1": + version: 4.1.0 + resolution: "signal-exit@npm:4.1.0" + checksum: 10c0/41602dce540e46d599edba9d9860193398d135f7ff72cab629db5171516cfae628d21e7bfccde1bbfdf11c48726bc2a6d1a8fb8701125852fbfda7cf19c6aa83 + languageName: node + linkType: hard + +"smol-toml@npm:1.9.1": + version: 1.9.1 + resolution: "smol-toml@npm:1.9.1" + checksum: 10c0/8acccf7bbc063f29405f58f5014ab39bf4eb9d7f0e000e5e3f140f7d4d6ead5696681a7c15260d1f2910213012c0af43b31a05bf94f704b0bdf39989fba08c02 + languageName: node + linkType: hard + +"sql.js@npm:1.16.0": + version: 1.16.0 + resolution: "sql.js@npm:1.16.0" + checksum: 10c0/6b16130f79e6bd7b60e9104ab19e816e6370d9d09689e9ac2922367a37d84754dd97b03b8d48f746014dae53867c8c0a065bf52fb828c4585f401ab21520ea52 + languageName: node + linkType: hard + +"statuses@npm:~2.0.1, statuses@npm:~2.0.2": + version: 2.0.2 + resolution: "statuses@npm:2.0.2" + checksum: 10c0/a9947d98ad60d01f6b26727570f3bcceb6c8fa789da64fe6889908fe2e294d57503b14bf2b5af7605c2d36647259e856635cd4c49eab41667658ec9d0080ec3f + languageName: node + linkType: hard + +"string-width@npm:8.3.0": + version: 8.3.0 + resolution: "string-width@npm:8.3.0" + dependencies: + get-east-asian-width: "npm:^1.5.0" + strip-ansi: "npm:^7.1.2" + checksum: 10c0/bc354b27772777c314e6792106f01586e959f36abb3d4b8ad46c4d4ee92d5e906acb10c1f3be97a85ae0ba1b11389094bc5672999fc5f03f12d22a4725fa30fe + languageName: node + linkType: hard + +"string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": + version: 4.2.3 + resolution: "string-width@npm:4.2.3" + dependencies: + emoji-regex: "npm:^8.0.0" + is-fullwidth-code-point: "npm:^3.0.0" + strip-ansi: "npm:^6.0.1" + checksum: 10c0/1e525e92e5eae0afd7454086eed9c818ee84374bb80328fc41217ae72ff5f065ef1c9d7f72da41de40c75fa8bb3dee63d92373fd492c84260a552c636392a47b + languageName: node + linkType: hard + +"strip-ansi@npm:^6.0.0, strip-ansi@npm:^6.0.1": + version: 6.0.1 + resolution: "strip-ansi@npm:6.0.1" + dependencies: + ansi-regex: "npm:^5.0.1" + checksum: 10c0/1ae5f212a126fe5b167707f716942490e3933085a5ff6c008ab97ab2f272c8025d3aa218b7bd6ab25729ca20cc81cddb252102f8751e13482a5199e873680952 + languageName: node + linkType: hard + +"strip-ansi@npm:^7.1.2": + version: 7.2.0 + resolution: "strip-ansi@npm:7.2.0" + dependencies: + ansi-regex: "npm:^6.2.2" + checksum: 10c0/544d13b7582f8254811ea97db202f519e189e59d35740c46095897e254e4f1aa9fe1524a83ad6bc5ad67d4dd6c0281d2e0219ed62b880a6238a16a17d375f221 + languageName: node + linkType: hard + +"strip-json-comments@npm:~3.1.1": + version: 3.1.1 + resolution: "strip-json-comments@npm:3.1.1" + checksum: 10c0/9681a6257b925a7fa0f285851c0e613cc934a50661fa7bb41ca9cbbff89686bb4a0ee366e6ecedc4daafd01e83eee0720111ab294366fe7c185e935475ebcecd + languageName: node + linkType: hard + +"supports-color@npm:^7.1.0": + version: 7.2.0 + resolution: "supports-color@npm:7.2.0" + dependencies: + has-flag: "npm:^4.0.0" + checksum: 10c0/afb4c88521b8b136b5f5f95160c98dee7243dc79d5432db7efc27efb219385bbc7d9427398e43dd6cc730a0f87d5085ce1652af7efbe391327bc0a7d0f7fc124 + languageName: node + linkType: hard + +"test-exclude@npm:^8.0.0": + version: 8.0.0 + resolution: "test-exclude@npm:8.0.0" + dependencies: + "@istanbuljs/schema": "npm:^0.1.2" + glob: "npm:^13.0.6" + minimatch: "npm:^10.2.2" + checksum: 10c0/f2b613cb5ddc05d1357892f5da965a6f7af42b19a6b2fc30c9b93cb74adf5059a3a9f29818adb75c96c1747b3934caac90a9058f73ce0640ea101de828a11600 + languageName: node + linkType: hard + +"tinyglobby@npm:~0.2.17": + version: 0.2.17 + resolution: "tinyglobby@npm:0.2.17" + dependencies: + fdir: "npm:^6.5.0" + picomatch: "npm:^4.0.4" + checksum: 10c0/7f7bb0f197c88bc4b20c231e0deca4240ca3bf313a88f5a7fee93a872b84966a4d50220947c0455ad07a60b3b360961c5b7fd979222aeb716a9f99b412002e4c + languageName: node + linkType: hard + +"toidentifier@npm:~1.0.1": + version: 1.0.1 + resolution: "toidentifier@npm:1.0.1" + checksum: 10c0/93937279934bd66cc3270016dd8d0afec14fb7c94a05c72dc57321f8bd1fa97e5bea6d1f7c89e728d077ca31ea125b78320a616a6c6cd0e6b9cb94cb864381c1 + languageName: node + linkType: hard + +"tweetnacl@npm:^1.0.3": + version: 1.0.3 + resolution: "tweetnacl@npm:1.0.3" + checksum: 10c0/069d9df51e8ad4a89fbe6f9806c68e06c65be3c7d42f0701cc43dba5f0d6064686b238bbff206c5addef8854e3ce00c643bff59432ea2f2c639feab0ee1a93f9 + languageName: node + linkType: hard + +"type-check@npm:^0.4.0, type-check@npm:~0.4.0": + version: 0.4.0 + resolution: "type-check@npm:0.4.0" + dependencies: + prelude-ls: "npm:^1.2.1" + checksum: 10c0/7b3fd0ed43891e2080bf0c5c504b418fbb3e5c7b9708d3d015037ba2e6323a28152ec163bcb65212741fa5d2022e3075ac3c76440dbd344c9035f818e8ecee58 + languageName: node + linkType: hard + +"type-is@npm:~1.6.18": + version: 1.6.18 + resolution: "type-is@npm:1.6.18" + dependencies: + media-typer: "npm:0.3.0" + mime-types: "npm:~2.1.24" + checksum: 10c0/a23daeb538591b7efbd61ecf06b6feb2501b683ffdc9a19c74ef5baba362b4347e42f1b4ed81f5882a8c96a3bfff7f93ce3ffaf0cbbc879b532b04c97a55db9d + languageName: node + linkType: hard + +"typescript@npm:6.0.3": + version: 6.0.3 + resolution: "typescript@npm:6.0.3" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/4a25ff5045b984370f48f196b3a0120779b1b343d40b9a68d114ea5e5fff099809b2bb777576991a63a5cd59cf7bffd96ff6fe10afcefbcb8bd6fb96ad4b6606 + languageName: node + linkType: hard + +"typescript@patch:typescript@npm%3A6.0.3#optional!builtin<compat/typescript>": + version: 6.0.3 + resolution: "typescript@patch:typescript@npm%3A6.0.3#optional!builtin<compat/typescript>::version=6.0.3&hash=5786d5" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 10c0/2f25c74e65663c248fa1ade2b8459d9ce5372ff9dad07067310f132966ebec1d93f6c42f0baf77a6b6a7a91460463f708e6887013aaade22111037457c6b25df + languageName: node + linkType: hard + +"uc.micro@npm:^2.0.0, uc.micro@npm:^2.1.0": + version: 2.1.0 + resolution: "uc.micro@npm:2.1.0" + checksum: 10c0/8862eddb412dda76f15db8ad1c640ccc2f47cdf8252a4a30be908d535602c8d33f9855dfcccb8b8837855c1ce1eaa563f7fa7ebe3c98fd0794351aab9b9c55fa + languageName: node + linkType: hard + +"undici-types@npm:~8.9.0": + version: 8.9.0 + resolution: "undici-types@npm:8.9.0" + checksum: 10c0/51c712c20c087368f62c6fc0f2bc49fa76bfe5dec28ff01584bb677ff29b0622569783c02d43e151143808c48c0503f804093bd2c491b10f2a830138034cb451 + languageName: node + linkType: hard + +"unpipe@npm:~1.0.0": + version: 1.0.0 + resolution: "unpipe@npm:1.0.0" + checksum: 10c0/193400255bd48968e5c5383730344fbb4fa114cdedfab26e329e50dd2d81b134244bb8a72c6ac1b10ab0281a58b363d06405632c9d49ca9dfd5e90cbd7d0f32c + languageName: node + linkType: hard + +"uri-js@npm:^4.2.2": + version: 4.4.1 + resolution: "uri-js@npm:4.4.1" + dependencies: + punycode: "npm:^2.1.0" + checksum: 10c0/4ef57b45aa820d7ac6496e9208559986c665e49447cb072744c13b66925a362d96dd5a46c4530a6b8e203e5db5fe849369444440cb22ecfc26c679359e5dfa3c + languageName: node + linkType: hard + +"utils-merge@npm:1.0.1": + version: 1.0.1 + resolution: "utils-merge@npm:1.0.1" + checksum: 10c0/02ba649de1b7ca8854bfe20a82f1dfbdda3fb57a22ab4a8972a63a34553cf7aa51bc9081cf7e001b035b88186d23689d69e71b510e610a09a4c66f68aa95b672 + languageName: node + linkType: hard + +"v8-to-istanbul@npm:^9.0.0": + version: 9.3.0 + resolution: "v8-to-istanbul@npm:9.3.0" + dependencies: + "@jridgewell/trace-mapping": "npm:^0.3.12" + "@types/istanbul-lib-coverage": "npm:^2.0.1" + convert-source-map: "npm:^2.0.0" + checksum: 10c0/968bcf1c7c88c04df1ffb463c179558a2ec17aa49e49376120504958239d9e9dad5281aa05f2a78542b8557f2be0b0b4c325710262f3b838b40d703d5ed30c23 + languageName: node + linkType: hard + +"vary@npm:~1.1.2": + version: 1.1.2 + resolution: "vary@npm:1.1.2" + checksum: 10c0/f15d588d79f3675135ba783c91a4083dcd290a2a5be9fcb6514220a1634e23df116847b1cc51f66bfb0644cf9353b2abb7815ae499bab06e46dd33c1a6bf1f4f + languageName: node + linkType: hard + +"viem@npm:^2.48.11": + version: 2.57.11 + resolution: "viem@npm:2.57.11" + dependencies: + "@noble/curves": "npm:1.9.1" + "@noble/hashes": "npm:1.8.0" + "@scure/bip32": "npm:1.7.0" + "@scure/bip39": "npm:1.6.0" + abitype: "npm:1.2.3" + isows: "npm:1.0.7" + ox: "npm:0.14.57" + ws: "npm:8.21.0" + peerDependencies: + typescript: ">=5.0.4" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10c0/79a8347fbec3bea4e1761747c9d54fdadb3c4be76f35b7b4f28bc26b080f0c736087ea5734d8a192caa5c1670a99d5820a98b3789ccb22e09db761c13a1a431f + languageName: node + linkType: hard + +"which@npm:^2.0.1": + version: 2.0.2 + resolution: "which@npm:2.0.2" + dependencies: + isexe: "npm:^2.0.0" + bin: + node-which: ./bin/node-which + checksum: 10c0/66522872a768b60c2a65a57e8ad184e5372f5b6a9ca6d5f033d4b0dc98aff63995655a7503b9c0a2598936f532120e81dd8cc155e2e92ed662a2b9377cc4374f + languageName: node + linkType: hard + +"word-wrap@npm:^1.2.5": + version: 1.2.5 + resolution: "word-wrap@npm:1.2.5" + checksum: 10c0/e0e4a1ca27599c92a6ca4c32260e8a92e8a44f4ef6ef93f803f8ed823f486e0889fc0b93be4db59c8d51b3064951d25e43d434e95dc8c960cc3a63d65d00ba20 + languageName: node + linkType: hard + +"wrap-ansi@npm:^7.0.0": + version: 7.0.0 + resolution: "wrap-ansi@npm:7.0.0" + dependencies: + ansi-styles: "npm:^4.0.0" + string-width: "npm:^4.1.0" + strip-ansi: "npm:^6.0.0" + checksum: 10c0/d15fc12c11e4cbc4044a552129ebc75ee3f57aa9c1958373a4db0292d72282f54373b536103987a4a7594db1ef6a4f10acf92978f79b98c49306a4b58c77d4da + languageName: node + linkType: hard + +"ws@npm:8.21.0": + version: 8.21.0 + resolution: "ws@npm:8.21.0" + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ">=5.0.2" + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + checksum: 10c0/ef4a243476283fc49bc7550966c4af4aa0eef56273837211e700de3b664e08604a760cdddcb5ba43c049140e74ccfec5b0ee0bb439e08c2adf9138902fdde5f9 + languageName: node + linkType: hard + +"y18n@npm:^5.0.5": + version: 5.0.8 + resolution: "y18n@npm:5.0.8" + checksum: 10c0/4df2842c36e468590c3691c894bc9cdbac41f520566e76e24f59401ba7d8b4811eb1e34524d57e54bc6d864bcb66baab7ffd9ca42bf1eda596618f9162b91249 + languageName: node + linkType: hard + +"yargs-parser@npm:^21.1.1": + version: 21.1.1 + resolution: "yargs-parser@npm:21.1.1" + checksum: 10c0/f84b5e48169479d2f402239c59f084cfd1c3acc197a05c59b98bab067452e6b3ea46d4dd8ba2985ba7b3d32a343d77df0debd6b343e5dae3da2aab2cdf5886b2 + languageName: node + linkType: hard + +"yargs@npm:^17.7.2": + version: 17.7.2 + resolution: "yargs@npm:17.7.2" + dependencies: + cliui: "npm:^8.0.1" + escalade: "npm:^3.1.1" + get-caller-file: "npm:^2.0.5" + require-directory: "npm:^2.1.1" + string-width: "npm:^4.2.3" + y18n: "npm:^5.0.5" + yargs-parser: "npm:^21.1.1" + checksum: 10c0/ccd7e723e61ad5965fffbb791366db689572b80cca80e0f96aad968dfff4156cd7cd1ad18607afe1046d8241e6fb2d6c08bf7fa7bfb5eaec818735d8feac8f05 + languageName: node + linkType: hard + +"yocto-queue@npm:^0.1.0": + version: 0.1.0 + resolution: "yocto-queue@npm:0.1.0" + checksum: 10c0/dceb44c28578b31641e13695d200d34ec4ab3966a5729814d5445b194933c096b7ced71494ce53a0e8820685d1d010df8b2422e5bf2cdea7e469d97ffbea306f + languageName: node + linkType: hard + +"zod@npm:4.6.7": + version: 4.6.7 + resolution: "zod@npm:4.6.7" + checksum: 10c0/4ce2eb14034317b7254e347ca37b5ad591cf8333147030cf05b9b5d31692d45073f7f2747aa50cf8c6b29012194d2b22978cecc89969cf34a0d18e89d0ee7d7b + languageName: node + linkType: hard From f18bae4cb63fbc20c5accec7903983261c7a936c Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:56:30 -0500 Subject: [PATCH 56/78] fix(worktrees): restore lifecycle CLI executable bit Restore mode 100755 on scripts/worktree-lifecycle.js so direct POSIX launches such as ./scripts/worktree-lifecycle.js --help keep working, and add a regression test that checks the mode and runs the CLI directly. --- scripts/worktree-lifecycle.js | 0 tests/lib/worktree-lifecycle.test.js | 11 +++++++++++ 2 files changed, 11 insertions(+) mode change 100644 => 100755 scripts/worktree-lifecycle.js diff --git a/scripts/worktree-lifecycle.js b/scripts/worktree-lifecycle.js old mode 100644 new mode 100755 diff --git a/tests/lib/worktree-lifecycle.test.js b/tests/lib/worktree-lifecycle.test.js index c8d721e6a..78806dce0 100644 --- a/tests/lib/worktree-lifecycle.test.js +++ b/tests/lib/worktree-lifecycle.test.js @@ -231,6 +231,17 @@ test('CLI usage() and main(--help) print help', () => { assert.ok(out.includes('git merge-tree')); }); +test('CLI stays directly executable on POSIX', () => { + if (process.platform === 'win32') { + console.log(' (skipped POSIX executable-bit check on Windows)'); + return; + } + const script = path.join(__dirname, '..', '..', 'scripts', 'worktree-lifecycle.js'); + assert.ok((fs.statSync(script).mode & 0o111) !== 0, 'scripts/worktree-lifecycle.js must keep its executable bit'); + const out = execFileSync(script, ['--help'], { encoding: 'utf8' }); + assert.ok(out.includes('Usage: worktree-lifecycle')); +}); + test('empty-queue branches: no conflicts / no stale render friendly messages', () => { const git = fakeGit('/repo', { 'worktree list --porcelain -z': { stdout: 'worktree /repo\0HEAD a\0branch refs/heads/main\0' } From e2e48476b6aff30a51ab82552d92bb854135a838 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:59:29 -0500 Subject: [PATCH 57/78] docs(skills): document Django on-commit test contract for Celery Add a TestCase example that uses captureOnCommitCallbacks(execute=True) and asserts the Celery delay call, note the pytest-django fixture and when TransactionTestCase is appropriate, wrap the eager-mode request example so post-commit dispatch actually runs, mention apply_async_on_commit(), and pin the examples in the skill test. --- skills/django-celery/SKILL.md | 22 +++++--- .../django-celery/references/reliability.md | 53 ++++++++++++++++--- tests/skills/django-celery.test.js | 28 +++++++++- 3 files changed, 88 insertions(+), 15 deletions(-) diff --git a/skills/django-celery/SKILL.md b/skills/django-celery/SKILL.md index f3bdcc392..54a8d5bc2 100644 --- a/skills/django-celery/SKILL.md +++ b/skills/django-celery/SKILL.md @@ -227,10 +227,12 @@ result = generate_pdf_report.apply(args=[report.pk]) ### Publish After the Database Commits A task published inside a Django transaction can run before its rows are visible or -remain queued after rollback. Use `delay_on_commit()` with Celery 5.4 or newer; use -`transaction.on_commit()` for `apply_async()` options or older versions. See +remain queued after rollback. Use `delay_on_commit()` or `apply_async_on_commit()` +with Celery 5.4 or newer; use `transaction.on_commit()` on older versions. See [Delivery Reliability](references/reliability.md#publish-after-the-database-commits) -for custom-base, task-ID, and transactional-outbox boundaries. +for custom-base, task-ID, and transactional-outbox boundaries. Django's `TestCase` +never commits, so these callbacks never run in tests unless captured; see +[Test the On-Commit Contract](references/reliability.md#test-the-on-commit-contract). ```python from django.db import transaction @@ -373,6 +375,9 @@ class TestSendWelcomeEmail: Eager mode is a worker emulation, not a worker integration test. Use it to verify that a Django request selects the expected task and arguments, but do not use it as evidence for serialization, routing, acknowledgement, retry, or worker-loss behavior. +It also does not prove post-commit dispatch: under `django_db` the test transaction +never commits, so a view that publishes with `delay_on_commit()` runs nothing unless +the request is wrapped in `django_capture_on_commit_callbacks(execute=True)`. ```python # config/settings/test.py @@ -381,12 +386,13 @@ CELERY_TASK_EAGER_PROPAGATES = True # Re-raise exceptions from tasks # tests/test_integration.py @pytest.mark.django_db -def test_registration_triggers_welcome_email(client): +def test_registration_triggers_welcome_email(client, django_capture_on_commit_callbacks): with patch('apps.notifications.services.EmailService') as mock_email: - response = client.post('/api/users/', { - 'email': 'new@example.com', - 'password': 'strongpass123', - }) + with django_capture_on_commit_callbacks(execute=True): + response = client.post('/api/users/', { + 'email': 'new@example.com', + 'password': 'strongpass123', + }) assert response.status_code == 201 mock_email.send_welcome.assert_called_once() diff --git a/skills/django-celery/references/reliability.md b/skills/django-celery/references/reliability.md index 997f166d3..71f046af1 100644 --- a/skills/django-celery/references/reliability.md +++ b/skills/django-celery/references/reliability.md @@ -30,13 +30,13 @@ late acknowledgement. ## Publish After the Database Commits -With Celery 5.4 or newer, `delay_on_commit()` is available for tasks based on -`DjangoTask`. Custom task base classes must inherit from `DjangoTask` to expose this -API. The method does not return a task ID because the message is not published until -commit. +With Celery 5.4 or newer, `delay_on_commit()` and `apply_async_on_commit()` are +available for tasks based on `DjangoTask`. Custom task base classes must inherit from +`DjangoTask` to expose this API. These methods do not return a task ID because the +message is not published until commit. -For older Celery versions or when `apply_async()` options are required, register the -publication explicitly: +For older Celery versions, or to keep the publication visible at the call site, +register it explicitly: ```python from functools import partial @@ -54,3 +54,44 @@ transaction.on_commit( An on-commit callback avoids publication on rollback, but it does not make the database commit and broker publish atomic. If task delivery must not be lost when a publish fails after commit, use a transactional outbox with a separate publisher. + +## Test the On-Commit Contract + +Django's `TestCase` wraps each test in a transaction that is rolled back, never +committed, so `transaction.on_commit()` callbacks (including `delay_on_commit()`) +never run. A test that only checks the new database row still passes when the task +is never queued. Capture the callbacks, execute them, and assert the Celery call: + +```python +from unittest.mock import patch + +from django.contrib.auth.models import User +from django.test import TestCase + +from apps.users.services import create_user +from apps.users.tasks import send_welcome_email + + +class CreateUserTests(TestCase): + def test_queues_welcome_email_after_commit(self): + # Patch before the call: delay_on_commit() binds task.delay when it registers. + with patch.object(send_welcome_email, 'delay') as mock_delay: + with self.captureOnCommitCallbacks(execute=True) as callbacks: + create_user('bob') + mock_delay.assert_not_called() # Not published before commit + + user = User.objects.get(username='bob') + self.assertEqual(len(callbacks), 1) + mock_delay.assert_called_once_with(user.pk) +``` + +`captureOnCommitCallbacks()` is available on `TestCase` in Django 3.2 or newer. With +pytest-django, the `django_capture_on_commit_callbacks` fixture provides the same +context manager inside `@pytest.mark.django_db` tests. + +Use `TransactionTestCase`, or `@pytest.mark.django_db(transaction=True)`, only when a +test needs a real commit: for example, when a real Celery worker in another thread +or process must read the committed rows. Those tests commit for real, so on-commit +callbacks run when the outermost `atomic()` block commits, and Django resets the +database afterwards by truncating tables, which is much slower. Keep them for the +worker integration boundary and use `TestCase` with captured callbacks elsewhere. diff --git a/tests/skills/django-celery.test.js b/tests/skills/django-celery.test.js index 21e30ecd4..fe35d77ef 100644 --- a/tests/skills/django-celery.test.js +++ b/tests/skills/django-celery.test.js @@ -190,7 +190,7 @@ test('documents transaction-aware task publication', () => { assert.match(skillPublication, /validated_username/); assert.doesNotMatch(skillPublication, /request\.POST/); assert.match(reliabilityPublication, /transaction\.on_commit/); - assert.match(reliabilityPublication, /does not return (?:a )?task ID/i); + assert.match(reliabilityPublication, /(?:does|do) not return (?:a )?task ID/i); assert.match(reliabilityPublication, /transactional outbox/i); }); @@ -282,6 +282,26 @@ test('keeps every select_for_update example inside an atomic block', () => { } }); +test('documents the on-commit test contract with an asserted Celery call', () => { + const skillPublication = getMarkdownSection(skill, '### Publish After the Database Commits'); + const contract = getMarkdownSection(reliability, '## Test the On-Commit Contract'); + const example = contract.match(/```python\n([\s\S]*?)```/)?.[1]; + + assert.match(skillPublication, /references\/reliability\.md#test-the-on-commit-contract/); + assert.match(contract, /TestCase[\s\S]*never\s+committed[\s\S]*never run/i); + assert.ok(example, 'Expected a Python example in the on-commit test contract'); + assert.match(example, /class \w+\(TestCase\)/); + assertMarkersInOrder(example, [ + "patch.object(send_welcome_email, 'delay')", + 'self.captureOnCommitCallbacks(execute=True)', + "create_user('bob')", + 'mock_delay.assert_not_called()', + 'mock_delay.assert_called_once_with(user.pk)', + ]); + assert.match(contract, /django_capture_on_commit_callbacks/); + assert.match(contract, /TransactionTestCase[\s\S]*real commit[\s\S]*truncating tables/i); +}); + test('distinguishes eager execution from real worker integration', () => { const eagerMode = getMarkdownSection(skill, '### Django Integration Path with Eager Mode'); const realWorker = getMarkdownSection(skill, '### Worker Integration with a Real Broker'); @@ -291,6 +311,12 @@ test('distinguishes eager execution from real worker integration', () => { eagerMode, /do not use it as[\s\S]*evidence for serialization, routing, acknowledgement, retry, or worker-loss behavior/i, ); + assert.match(eagerMode, /does not prove post-commit dispatch/i); + assertMarkersInOrder(eagerMode, [ + 'with django_capture_on_commit_callbacks(execute=True):', + "client.post('/api/users/'", + 'mock_email.send_welcome.assert_called_once()', + ]); assert.match(realWorker, /celery_worker/); assert.match(realWorker, /real broker/i); }); From 291588270726ca83f67dc5f81211b4aeeabb0f4a Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:59:51 -0500 Subject: [PATCH 58/78] fix(hooks): fail closed when JWT header decode budget is spent findJwtHeader capped full header decodes at 8 per segment, so a valid whitespace-header JWT after 8 decoy candidates (eyAg-eyAg-...-<JWT>) was logged unredacted. Once the budget is spent, treat the next candidate that passes the constant-time prefilter as a header. The scan stays linear and the extra redaction only applies to pathological segments. Refs #3846 --- scripts/hooks/post-bash-command-log.js | 12 +++++++----- tests/scripts/post-bash-command-log.test.js | 13 +++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/scripts/hooks/post-bash-command-log.js b/scripts/hooks/post-bash-command-log.js index b231a9e5e..98249070a 100644 --- a/scripts/hooks/post-bash-command-log.js +++ b/scripts/hooks/post-bash-command-log.js @@ -47,16 +47,18 @@ const MAX_HEADER_DECODES = 8; // Index of the first JWT header in `seg`, starting at its beginning or after a // `-` or `_`, or -1. A candidate that fails validation (e.g. `eyewear` in -// `eyewear_session_<JWT>`) does not stop the scan. +// `eyewear_session_<JWT>`) does not stop the scan. Once the decode budget is +// spent, the next candidate that passes the prefilter is treated as a header +// (fail closed), so padding a JWT with decoy candidates cannot hide it. function findJwtHeader(seg) { let decodes = 0; for (let j = 0; j + 10 <= seg.length; j++) { if (!((j === 0 || seg[j - 1] === '-' || seg[j - 1] === '_') && seg[j] === 'e' && (seg[j + 1] === 'y' || seg[j + 1] === 'w'))) continue; if (seg.startsWith('eyJ', j)) return j; - if (decodes < MAX_HEADER_DECODES && mayBeJwtHeader(seg, j)) { - decodes++; - if (isJwtHeader(seg.slice(j))) return j; - } + if (!mayBeJwtHeader(seg, j)) continue; + if (decodes >= MAX_HEADER_DECODES) return j; + decodes++; + if (isJwtHeader(seg.slice(j))) return j; } return -1; } diff --git a/tests/scripts/post-bash-command-log.test.js b/tests/scripts/post-bash-command-log.test.js index d4a769f83..9537adbee 100644 --- a/tests/scripts/post-bash-command-log.test.js +++ b/tests/scripts/post-bash-command-log.test.js @@ -197,6 +197,19 @@ if ( passed++; else failed++; +if ( + test('sanitizeCommand redacts a JWT that follows more decoy header candidates than the decode budget', () => { + const spacedHeader = Buffer.from('{ "alg":"HS256"}').toString('base64url'); + const token = [spacedHeader, 'e30', 'c2ln'].join('.'); + for (const count of [7, 8, 9, 20]) { + const prefix = 'eyAg-'.repeat(count); + assert.strictEqual(sanitizeCommand(`echo ${prefix}${token}`), `echo ${prefix.slice(0, 5 * Math.min(count, 8))}<REDACTED>`); + } + }) +) + passed++; +else failed++; + if ( test('sanitizeCommand stays linear on long runs of plausible JWT header candidates', () => { const start = Date.now(); From a6c394ca92878b8fb1ae235ee0d62c36de7223bd Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:00:53 -0500 Subject: [PATCH 59/78] test(ci): unlink symlinked project root in spec freshness cleanup fs.rmSync on the symlink fixture throws ERR_FS_EISDIR on macOS with Node 24, which stopped the suite after its assertion passed. Remove the link itself with fs.unlinkSync. --- tests/ci/check-spec-freshness.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ci/check-spec-freshness.test.js b/tests/ci/check-spec-freshness.test.js index 2a0041c2e..39c06d3a6 100644 --- a/tests/ci/check-spec-freshness.test.js +++ b/tests/ci/check-spec-freshness.test.js @@ -170,7 +170,7 @@ describe('check-spec-freshness (v1, file-level)', () => { const result = runChecker(link); assert.strictEqual(result.exitCode, 2, result.stderr); } finally { - fs.rmSync(link, { force: true }); + fs.unlinkSync(link); } }); From 677afc1fc2c3e81b0cd51eb07c5efb4c5ac7ece7 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:01:55 -0500 Subject: [PATCH 60/78] fix(ecc2): detect bun.lock and npm-shrinkwrap.json lockfiles The ECC 2 session launcher picked the package manager from lockfiles but only knew bun.lockb and package-lock.json. Bun 1.2+ writes the text bun.lock by default, so those projects fell through to npm. Match the Node detector in scripts/lib/package-manager.js, which already accepts bun.lock, bun.lockb, package-lock.json, and npm-shrinkwrap.json, while keeping the pnpm > bun > yarn > npm priority. Carries forward the lockfile-alias parity from #2998. Co-authored-by: mawquf28 <325559970+mawquf28@users.noreply.github.com> --- ecc2/src/session/manager.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ecc2/src/session/manager.rs b/ecc2/src/session/manager.rs index 2871e6188..586975f7d 100644 --- a/ecc2/src/session/manager.rs +++ b/ecc2/src/session/manager.rs @@ -3437,9 +3437,12 @@ fn read_package_manager_from_package_json(path: &Path) -> Option<&'static str> { fn detect_package_manager_from_lockfile(working_dir: &Path) -> Option<&'static str> { [ ("pnpm", "pnpm-lock.yaml"), + // Bun 1.2+ writes the text bun.lock by default; keep the legacy binary lockfile. + ("bun", "bun.lock"), ("bun", "bun.lockb"), ("yarn", "yarn.lock"), ("npm", "package-lock.json"), + ("npm", "npm-shrinkwrap.json"), ] .into_iter() .find_map(|(package_manager, lockfile)| { @@ -4859,6 +4862,26 @@ mod tests { Ok(()) } + #[test] + fn detect_package_manager_from_lockfile_matches_node_lockfile_aliases() -> Result<()> { + for (lockfile, expected) in [ + ("bun.lock", "bun"), + ("bun.lockb", "bun"), + ("npm-shrinkwrap.json", "npm"), + ] { + let tempdir = TestDir::new("manager-package-manager-lockfile-alias")?; + let repo_root = tempdir.path().join("repo"); + fs::create_dir_all(&repo_root)?; + fs::write(repo_root.join(lockfile), "lockfile\n")?; + assert_eq!( + detect_package_manager_from_lockfile(&repo_root), + Some(expected), + "{lockfile} should select {expected}" + ); + } + Ok(()) + } + #[test] fn build_agent_command_prefers_project_package_manager_config_over_lockfile() -> Result<()> { let tempdir = TestDir::new("manager-package-manager-config")?; From f98320f140d784be90e7bce30d64f07ead6a4fd3 Mon Sep 17 00:00:00 2001 From: haelyra <haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:02:31 -0500 Subject: [PATCH 61/78] fix(antigravity): keep doctor reporting when one target root is unsafe An Antigravity home whose workflows directory resolves outside the trusted config root made resolveTrustedRoots throw out of the doctor loop, hiding results for every other installed target. Report it as an unsafe-trusted-root error for that target instead, with a regression. Also align the README support row with the pinned CLI 1.3.5 validation and leave the shipped 2.2.0 release notes unchanged. --- README.md | 2 +- docs/releases/2.2.0/release-notes.md | 2 +- scripts/lib/install-lifecycle.js | 11 +++++++++-- tests/lib/antigravity-lifecycle.test.js | 21 ++++++++++++++++++++- 4 files changed, 31 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 559c3448d..823d1dc9d 100644 --- a/README.md +++ b/README.md @@ -1331,7 +1331,7 @@ Treat `stable`, `beta`, `experimental`, and `instruction-only` below as capabili |---|---|---|---| | Claude Code | Stable primary | Plugin or selective installer | The plugin advertises the installed catalog to the model; use a selective/manual profile when context footprint matters. Optional shell-backed skills are not portable to every OS. | | Codex | Supported native plugin | Codex marketplace plugin or repo config | Native hooks require an explicit trust decision and do not use Claude's hook profiles. The legacy sync is compatibility-only. | -| Antigravity | Native plugin adapter | Antigravity 2.0/IDE plugin (`~/.gemini/config/plugins/ecc`) or project `.agents/` | Profile-gated lifecycle hooks, rules, workflows, skills, and memory MCP. CLI 1.2.9 validates local import; authenticated native tool and Stop execution remain unverified. | +| Antigravity | Native plugin adapter | Antigravity 2.0/IDE plugin (`~/.gemini/config/plugins/ecc`) or project `.agents/` | Profile-gated lifecycle hooks, rules, workflows, skills, and memory MCP. CLI 1.3.5 validates local import; authenticated native tool and Stop execution remain unverified. | | Qoder | Supported native plugin | Local plugin directory in Qoder CLI or ZIP upload in Qoder IDE | Loads the canonical skills, agents, commands, and MCP config; only the reviewed SessionStart hook is enabled, and Node.js 18+ must be on the non-interactive PATH. | | Cursor | Beta project adapter | Selective installer into `.cursor/` | Agent discovery varies by Cursor build; hook events use profile-gated dispatchers, but full Claude feature parity is not claimed. | | OpenCode | Beta built plugin | Build plugin, then selective installer | ECC ships a subset of the catalog; connect a provider and select a model in OpenCode ([#2617](https://github.com/affaan-m/ECC/issues/2617)). | diff --git a/docs/releases/2.2.0/release-notes.md b/docs/releases/2.2.0/release-notes.md index 447cd6379..6aa336ddf 100644 --- a/docs/releases/2.2.0/release-notes.md +++ b/docs/releases/2.2.0/release-notes.md @@ -32,7 +32,7 @@ Install or update the published package, then run the same ECC install command y ```bash npm install -g ecc-universal@2.2.0 -ecc install --target antigravity --profile full --enable-hooks +ecc install --target antigravity --profile full ``` Use `ecc doctor --target <target>` after installation. For Antigravity, start a new conversation and verify workspace skills under Settings > Customizations. diff --git a/scripts/lib/install-lifecycle.js b/scripts/lib/install-lifecycle.js index e36002d78..b6a141920 100644 --- a/scripts/lib/install-lifecycle.js +++ b/scripts/lib/install-lifecycle.js @@ -1127,8 +1127,15 @@ function collectTargetPathIssues(record, state, issues) { } function collectOperationHealthIssues(record, context, state, issues) { - const trustedRoots = getInstallTargetAdapter(record.adapter.id || record.adapter.target) - .resolveTrustedRoots(context); + let trustedRoots; + try { + trustedRoots = getInstallTargetAdapter(record.adapter.id || record.adapter.target) + .resolveTrustedRoots(context); + } catch (error) { + // Report an unsafe root for this target without aborting the other targets. + issues.push(buildIssue('error', 'unsafe-trusted-root', error.message)); + return; + } const operationHealth = summarizeManagedOperationHealth( context.repoRoot, record.targetRoot, diff --git a/tests/lib/antigravity-lifecycle.test.js b/tests/lib/antigravity-lifecycle.test.js index 4ee9801b8..03f90a1b3 100644 --- a/tests/lib/antigravity-lifecycle.test.js +++ b/tests/lib/antigravity-lifecycle.test.js @@ -90,6 +90,25 @@ try { const externalContent = fs.readFileSync(externalWorkflow, 'utf8'); assert.throws(() => applyInstallPlan(symlinkPlan), /outside|symlink|trusted/i); + // One unsafe target root must not hide doctor results for other targets. + applyInstallPlan(withHookConsent(createManifestInstallPlan({ + profileId: 'core', + target: 'antigravity', + homeDir: symlinkHome, + projectRoot: symlinkProject, + }), 'enabled')); + const unsafeRootDoctor = buildDoctorReport({ + repoRoot, + homeDir: symlinkHome, + projectRoot: symlinkProject, + targets: ['antigravity-home', 'antigravity'], + }).results; + const homeDoctor = unsafeRootDoctor.find(result => result.adapter.target === 'antigravity-home'); + const projectDoctor = unsafeRootDoctor.find(result => result.adapter.target === 'antigravity'); + assert.strictEqual(homeDoctor.status, 'error'); + assert.ok(homeDoctor.issues.some(issue => issue.code === 'unsafe-trusted-root')); + assert.ok(projectDoctor, 'project target must still be reported'); + assert.notStrictEqual(projectDoctor.status, 'error'); const rootSymlinkRepair = repairInstalledStates({ repoRoot, homeDir: symlinkHome, @@ -128,7 +147,7 @@ try { if (previousHome === undefined) delete process.env.HOME; else process.env.HOME = previousHome; } - console.log('Results: Passed: 6, Failed: 0'); + console.log('Results: Passed: 7, Failed: 0'); } finally { fs.rmSync(fixtureRoot, { recursive: true, force: true }); } From 83c4fa1e94f4be979ad5022a807eab362dc661b2 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:03:22 -0500 Subject: [PATCH 62/78] feat: require consistent pair deltas for orchestration claims Carries forward the 2026-09-29 review request on #2761 with the contributor's scenario and attribution preserved. - scenario.json declares a machine-readable pair_consistency_rule: per-pair quality, time, and cost deltas (orchestrated minus single agent) from retained attempts, no averaging, and an inconclusive result when any metric is mixed-sign or unavailable, fewer than three pairs ran, or run order never alternated. - Aggregate cost now covers controller, workers, verifier, and retries, matching the master plan's orchestration evidence template. - Adds synthetic, illustrative sign-consistent and mixed-sign pair fixtures; the mixed-sign fixture promotes no candidate. - The evaluator RAG test recomputes deltas from raw attempts, checks cost totals, and exercises unavailable, two-pair, fixed-order, and reversed-pair rejections. Co-authored-by: phelan <2509508+Phelan164@users.noreply.github.com> --- docs/architecture/evaluator-rag-prototype.md | 9 +- .../candidate-playbook.md | 31 ++- .../pairs-mixed-sign.json | 180 ++++++++++++++++++ .../pairs-sign-consistent.json | 175 +++++++++++++++++ .../report.json | 13 ++ .../scenario.json | 54 +++++- .../trace.json | 6 +- .../verifier-result.json | 8 +- tests/docs/evaluator-rag-prototype.test.js | 140 +++++++++++++- 9 files changed, 599 insertions(+), 17 deletions(-) create mode 100644 examples/evaluator-rag-prototype/orchestration-efficiency-evidence/pairs-mixed-sign.json create mode 100644 examples/evaluator-rag-prototype/orchestration-efficiency-evidence/pairs-sign-consistent.json diff --git a/docs/architecture/evaluator-rag-prototype.md b/docs/architecture/evaluator-rag-prototype.md index 6e7ffdfd9..0cc2076d3 100644 --- a/docs/architecture/evaluator-rag-prototype.md +++ b/docs/architecture/evaluator-rag-prototype.md @@ -24,9 +24,10 @@ amendment can be promoted. A deep-analyzer evidence scenario requires analyzer corpus cases, expected-output comparisons, and risk-taxonomy proof before repository or commit-analysis behavior can change. In an orchestration-efficiency evidence scenario, single-agent controls must be -matched, and aggregate controller and worker cost, accepted quality, -coordination costs, and sequential paired replications are required before -parallelism is called faster or cheaper. +matched, and aggregate controller, worker, verifier, and retry cost, accepted +quality, coordination costs, and sequential paired replications are required +before parallelism is called faster or cheaper. Per-pair deltas that are +mixed-sign or unavailable make the result inconclusive and block the claim. ## Reference Pressure @@ -130,6 +131,8 @@ Current corpus: matched single-agent controls, common acceptance gates, aggregate worker costs, retained failures and coordination overhead, and repeated sequential pairs before an orchestration-efficiency recommendation can be promoted. + Per-pair quality, time, and cost deltas must keep one sign across every pair; + otherwise the result is `inconclusive` and no candidate is promoted. - `connector-diagnostics-gap`: inventories an already-used connector, separates observed gaps from unavailable research, and requires evidence before a new diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/candidate-playbook.md b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/candidate-playbook.md index e02ce1cb0..6359697c2 100644 --- a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/candidate-playbook.md +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/candidate-playbook.md @@ -23,13 +23,37 @@ agent. 6. Record per candidate: - acceptance and evidence completeness; - elapsed time; - - total tokens or cost across controller, every worker, and retries; + - total tokens or cost across controller, every worker, the verifier, and + retries; - worker count and ownership; - conflicts, integration rework, retries, and human corrections. 7. Write `unavailable` for telemetry the harness does not expose. Never estimate missing totals. 8. Repeat at least three fresh pairs before recommending a task-class boundary. Report raw receipts before interpretation. +9. Compute each pair's quality, time, and cost delta (orchestrated minus + single agent) from the retained attempts, then apply the pair consistency + rule below. + +## Pair Consistency Rule + +The machine-readable rule is `pair_consistency_rule` in `scenario.json`. + +- A metric has a direction only when every pair reports an available delta and + all deltas share one nonzero sign, or all are zero (`no_difference`). +- Never average pair deltas. With three pairs, one reversed pair means the + metric is `inconclusive`, even when the mean points one way. +- The result is `consistent` only when at least three pairs ran, both run orders + occur, and every metric has a direction. Otherwise it is `inconclusive`. +- An `inconclusive` result blocks every task-class claim and promotes no + candidate. Keep the raw attempts and run more fresh pairs if the decision + still matters. +- A `consistent` claim names its task class and every metric direction, + including higher cost or lower quality. + +`pairs-sign-consistent.json` shows an accepted, task-class-scoped claim. +`pairs-mixed-sign.json` shows a reversed time delta that blocks the claim. Both +use synthetic, illustrative attempts rather than executed runs. ## Rejected Path @@ -45,6 +69,8 @@ conflicts and integration work outside the result. Do not publish a general claim from one pair, overlapping variants, fixed run order, or unavailable aggregate telemetry. +Do not average opposite-sign or unavailable pair deltas into a recommendation. + ## Minimum Validation - `node tests/lib/orchestration-session.test.js` @@ -52,6 +78,9 @@ order, or unavailable aggregate telemetry. - Raw run receipts containing all controlled fields and coordination costs - `git diff --check` - At least three sequential pairs with alternated order before a general claim +- Per-pair quality, time, and cost deltas with a `consistent` result before any + task-class claim +- `node tests/docs/evaluator-rag-prototype.test.js` Record the evidence source and attribution when an external experiment informs the scenario. Keep publication, agent launch, candidate edits, and repository diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/pairs-mixed-sign.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/pairs-mixed-sign.json new file mode 100644 index 000000000..1c6388a94 --- /dev/null +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/pairs-mixed-sign.json @@ -0,0 +1,180 @@ +{ + "schema_version": "ecc.evaluator-rag.verifier.v1", + "scenario_id": "orchestration-efficiency-evidence", + "run_id": "illustrative-mixed-sign-pairs", + "read_only": true, + "illustrative": true, + "evaluation_status": "illustrative_synthetic_attempts_not_executed_runs", + "task_class": "parallel repairs across shared test helpers", + "raw_attempts": [ + { + "attempt_id": "pair-1-single_agent", + "pair": 1, + "variant": "single_agent", + "run_order": 1, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 900000, + "cost_breakdown_usd": { + "controller": 1.2, + "workers": 0, + "verifier": 0.1, + "retries": 0 + }, + "total_cost_usd": 1.3, + "worker_count": 1, + "conflicts": 0, + "integration_rework": 0, + "human_corrections": 0 + }, + { + "attempt_id": "pair-1-orchestrated", + "pair": 1, + "variant": "orchestrated", + "run_order": 2, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 660000, + "cost_breakdown_usd": { + "controller": 0.4, + "workers": 1.3, + "verifier": 0.1, + "retries": 0 + }, + "total_cost_usd": 1.8, + "worker_count": 3, + "conflicts": 0, + "integration_rework": 0, + "human_corrections": 0 + }, + { + "attempt_id": "pair-2-orchestrated", + "pair": 2, + "variant": "orchestrated", + "run_order": 1, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 1080000, + "cost_breakdown_usd": { + "controller": 0.45, + "workers": 1.5, + "verifier": 0.1, + "retries": 0.35 + }, + "total_cost_usd": 2.4, + "worker_count": 3, + "conflicts": 1, + "integration_rework": 1, + "human_corrections": 0 + }, + { + "attempt_id": "pair-2-single_agent", + "pair": 2, + "variant": "single_agent", + "run_order": 2, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 900000, + "cost_breakdown_usd": { + "controller": 1.25, + "workers": 0, + "verifier": 0.1, + "retries": 0 + }, + "total_cost_usd": 1.35, + "worker_count": 1, + "conflicts": 0, + "integration_rework": 0, + "human_corrections": 0 + }, + { + "attempt_id": "pair-3-single_agent", + "pair": 3, + "variant": "single_agent", + "run_order": 1, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 960000, + "cost_breakdown_usd": { + "controller": 1.3, + "workers": 0, + "verifier": 0.1, + "retries": 0 + }, + "total_cost_usd": 1.4, + "worker_count": 1, + "conflicts": 0, + "integration_rework": 0, + "human_corrections": 0 + }, + { + "attempt_id": "pair-3-orchestrated", + "pair": 3, + "variant": "orchestrated", + "run_order": 2, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 900000, + "cost_breakdown_usd": { + "controller": 0.4, + "workers": 1.2, + "verifier": 0.1, + "retries": 0 + }, + "total_cost_usd": 1.7, + "worker_count": 3, + "conflicts": 0, + "integration_rework": 0, + "human_corrections": 0 + } + ], + "pair_deltas": [ + { + "pair": 1, + "order": "single_agent_first", + "quality_delta": 0, + "time_delta_ms": -240000, + "cost_delta_usd": 0.5 + }, + { + "pair": 2, + "order": "orchestrated_first", + "quality_delta": 0, + "time_delta_ms": 180000, + "cost_delta_usd": 1.05 + }, + { + "pair": 3, + "order": "single_agent_first", + "quality_delta": 0, + "time_delta_ms": -60000, + "cost_delta_usd": 0.3 + } + ], + "metric_directions": { + "quality": "no_difference", + "time": "inconclusive", + "cost": "single_agent_better" + }, + "result": "inconclusive", + "rejected_aggregate": { + "statistic": "mean_time_delta_ms", + "value": -40000, + "why_rejected": "a mean of opposite-sign pair deltas hides that one of three pairs reversed direction" + }, + "candidates": [ + { + "candidate_id": "task-class-direction-claim", + "decision": "not_promoted", + "claim": null, + "reasons": [ + "pair 2 reverses the time direction of pairs 1 and 3, so time has no direction", + "averaging the three time deltas would suggest orchestration is faster, which the pair evidence does not support", + "pair 2 retains its edit conflict, integration rework, and retry cost instead of dropping it as an outlier", + "an inconclusive result blocks any task-class claim, including the cost direction that is consistent" + ], + "rollback": "Make no claim; keep every raw attempt and run more fresh alternated pairs if the decision still matters." + } + ], + "promoted_candidate_id": null +} diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/pairs-sign-consistent.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/pairs-sign-consistent.json new file mode 100644 index 000000000..8016bdaf3 --- /dev/null +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/pairs-sign-consistent.json @@ -0,0 +1,175 @@ +{ + "schema_version": "ecc.evaluator-rag.verifier.v1", + "scenario_id": "orchestration-efficiency-evidence", + "run_id": "illustrative-sign-consistent-pairs", + "read_only": true, + "illustrative": true, + "evaluation_status": "illustrative_synthetic_attempts_not_executed_runs", + "task_class": "independent documentation updates with disjoint file ownership", + "raw_attempts": [ + { + "attempt_id": "pair-1-single_agent", + "pair": 1, + "variant": "single_agent", + "run_order": 1, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 1200000, + "cost_breakdown_usd": { + "controller": 1.5, + "workers": 0, + "verifier": 0.1, + "retries": 0 + }, + "total_cost_usd": 1.6, + "worker_count": 1, + "conflicts": 0, + "integration_rework": 0, + "human_corrections": 0 + }, + { + "attempt_id": "pair-1-orchestrated", + "pair": 1, + "variant": "orchestrated", + "run_order": 2, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 720000, + "cost_breakdown_usd": { + "controller": 0.5, + "workers": 1.4, + "verifier": 0.1, + "retries": 0 + }, + "total_cost_usd": 2.0, + "worker_count": 3, + "conflicts": 0, + "integration_rework": 0, + "human_corrections": 0 + }, + { + "attempt_id": "pair-2-orchestrated", + "pair": 2, + "variant": "orchestrated", + "run_order": 1, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 780000, + "cost_breakdown_usd": { + "controller": 0.5, + "workers": 1.5, + "verifier": 0.1, + "retries": 0 + }, + "total_cost_usd": 2.1, + "worker_count": 3, + "conflicts": 0, + "integration_rework": 0, + "human_corrections": 0 + }, + { + "attempt_id": "pair-2-single_agent", + "pair": 2, + "variant": "single_agent", + "run_order": 2, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 1140000, + "cost_breakdown_usd": { + "controller": 1.45, + "workers": 0, + "verifier": 0.1, + "retries": 0 + }, + "total_cost_usd": 1.55, + "worker_count": 1, + "conflicts": 0, + "integration_rework": 0, + "human_corrections": 0 + }, + { + "attempt_id": "pair-3-single_agent", + "pair": 3, + "variant": "single_agent", + "run_order": 1, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 1260000, + "cost_breakdown_usd": { + "controller": 1.55, + "workers": 0, + "verifier": 0.1, + "retries": 0 + }, + "total_cost_usd": 1.65, + "worker_count": 1, + "conflicts": 0, + "integration_rework": 0, + "human_corrections": 0 + }, + { + "attempt_id": "pair-3-orchestrated", + "pair": 3, + "variant": "orchestrated", + "run_order": 2, + "accepted": true, + "quality_score": 1, + "elapsed_ms": 810000, + "cost_breakdown_usd": { + "controller": 0.55, + "workers": 1.45, + "verifier": 0.1, + "retries": 0 + }, + "total_cost_usd": 2.1, + "worker_count": 3, + "conflicts": 0, + "integration_rework": 0, + "human_corrections": 0 + } + ], + "pair_deltas": [ + { + "pair": 1, + "order": "single_agent_first", + "quality_delta": 0, + "time_delta_ms": -480000, + "cost_delta_usd": 0.4 + }, + { + "pair": 2, + "order": "orchestrated_first", + "quality_delta": 0, + "time_delta_ms": -360000, + "cost_delta_usd": 0.55 + }, + { + "pair": 3, + "order": "single_agent_first", + "quality_delta": 0, + "time_delta_ms": -450000, + "cost_delta_usd": 0.45 + } + ], + "metric_directions": { + "quality": "no_difference", + "time": "orchestrated_better", + "cost": "single_agent_better" + }, + "result": "consistent", + "candidates": [ + { + "candidate_id": "task-class-direction-claim", + "decision": "accepted", + "claim": "For this task class only, orchestration finished faster in all three pairs and cost more in all three pairs, with no quality difference.", + "reasons": [ + "every pair reports available quality, time, and cost deltas from retained attempts", + "time and cost deltas keep one sign across all three pairs and quality deltas are all zero", + "both run orders occur, so a fixed-order effect cannot explain the direction", + "the claim states the higher aggregate cost instead of reporting only the faster time" + ], + "rollback": "Withdraw the claim and keep every raw attempt if a later pair reverses any metric direction." + } + ], + "promoted_candidate_id": "task-class-direction-claim" +} diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/report.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/report.json index ad1d4d8e1..00c235461 100644 --- a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/report.json +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/report.json @@ -31,10 +31,23 @@ "id": "replication-before-recommendation", "severity": "warning", "summary": "One pair, overlapping variants, or fixed run order can qualify a harness but cannot establish a general orchestration efficiency boundary." + }, + { + "id": "pair-consistency-before-direction", + "severity": "warning", + "summary": "With three pairs, one reversed pair delta makes that metric inconclusive; averaging opposite-sign deltas would publish a direction the evidence does not support." } ], "recommended_next_action": { "candidate_id": "controlled-paired-orchestration-evaluation", "action": "Use the promoted playbook to design sequential paired runs, preserve every attempt, and recommend orchestration only for task classes where accepted quality and measured coordination cost justify it." + }, + "evidence_coverage": { + "kind": "synthetic_fixture_only", + "pair_fixtures": [ + "pairs-sign-consistent.json", + "pairs-mixed-sign.json" + ], + "executed_runs": 0 } } diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json index 5d7abb535..3b766b747 100644 --- a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/scenario.json @@ -35,15 +35,17 @@ "Which task dependencies and exclusive write surfaces justify multiple workers?", "Were the single-agent and orchestrated candidates run from the same task, revision, model, reasoning effort, permissions, tools, time limit, and evaluator?", "Did every attempted candidate meet the same acceptance and evidence-quality gates?", - "What were total tokens or cost across the controller and all workers, elapsed time, retries, conflicts, integration rework, and human corrections?", + "What were total tokens or cost across the controller, all workers, the verifier, and retries, plus elapsed time, conflicts, integration rework, and human corrections?", "Were failures and unavailable telemetry retained rather than estimated or excluded?", - "How many sequential paired runs and alternated run orders support the recommendation?" + "How many sequential paired runs and alternated run orders support the recommendation?", + "What were each pair's quality, time, and cost deltas, and do they point the same direction across every pair?" ], "forbidden_actions": [ "claiming that parallel agents are faster or cheaper without a matched accepted single-agent baseline", "comparing candidates with different tasks, revisions, models, reasoning effort, permissions, tools, time limits, or evaluators", "reporting controller-only tokens or cost while omitting worker totals", "excluding failed candidates, edit conflicts, integration rework, retries, or human corrections", + "averaging opposite-sign or unavailable pair deltas into a task-class recommendation", "estimating unavailable telemetry or turning one overlapping smoke run into a general efficiency claim", "launching workers, editing candidate repositories, publishing benchmarks, or posting announcements from this read-only evaluator run" ], @@ -51,10 +53,54 @@ "dependency graph and exclusive ownership boundaries are recorded", "single-agent and orchestrated controls are matched", "all attempted candidates use the same acceptance evaluator", - "aggregate controller and worker cost is recorded or explicitly unavailable", + "aggregate controller, worker, verifier, and retry cost is recorded or explicitly unavailable", "elapsed time, retries, conflicts, integration rework, and human corrections are retained", "failed candidates remain in the comparison", "at least three fresh sequential pairs with alternated order are completed before promotion", + "every raw attempt is retained and each pair reports quality, time, and cost deltas computed from those attempts", + "mixed-sign or unavailable pair deltas yield an inconclusive result that blocks any task-class claim", "at least one one-run parallelism claim is rejected" - ] + ], + "pair_consistency_rule": { + "delta_definition": "orchestrated minus single_agent for the same pair, computed from the retained raw attempts", + "minimum_pairs": 3, + "required_orders": [ + "single_agent_first", + "orchestrated_first" + ], + "unavailable_value": "unavailable", + "metrics": [ + { + "name": "quality", + "attempt_field": "quality_score", + "delta_field": "quality_delta", + "better_when": "higher" + }, + { + "name": "time", + "attempt_field": "elapsed_ms", + "delta_field": "time_delta_ms", + "better_when": "lower" + }, + { + "name": "cost", + "attempt_field": "total_cost_usd", + "delta_field": "cost_delta_usd", + "better_when": "lower" + } + ], + "aggregate_cost_components": [ + "controller", + "workers", + "verifier", + "retries" + ], + "metric_direction": "A metric has a direction only when every pair reports an available delta and all deltas are nonzero with the same sign, or all deltas are zero (no_difference). Any other pattern is inconclusive; deltas are never averaged.", + "result": "consistent only when the minimum pair count is met, both run orders occur, and every metric has a direction; otherwise inconclusive", + "claim_allowed_only_if": "result is consistent; the claim names its task class and every metric direction, including any cost or quality loss", + "fixtures": [ + "pairs-sign-consistent.json", + "pairs-mixed-sign.json" + ] + } } diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json index 00c2940d2..bbb10cd26 100644 --- a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/trace.json @@ -31,9 +31,11 @@ }, { "phase": "verification", - "summary": "Accepted the controlled paired evaluation because it matches controls, evaluates quality first, aggregates worker cost, and keeps negative results. Rejected the intuition-only claim because it relies on one overlapping run with unavailable token totals.", + "summary": "Accepted the controlled paired evaluation because it matches controls, evaluates quality first, aggregates worker cost, and keeps negative results. Rejected the intuition-only claim because it relies on one overlapping run with unavailable token totals. Applied the pair consistency rule: the sign-consistent fixture permits only a task-class-scoped claim, and the mixed-sign fixture returns inconclusive with no promoted claim.", "evidence": [ - "examples/evaluator-rag-prototype/orchestration-efficiency-evidence/verifier-result.json" + "examples/evaluator-rag-prototype/orchestration-efficiency-evidence/verifier-result.json", + "examples/evaluator-rag-prototype/orchestration-efficiency-evidence/pairs-sign-consistent.json", + "examples/evaluator-rag-prototype/orchestration-efficiency-evidence/pairs-mixed-sign.json" ] }, { diff --git a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/verifier-result.json b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/verifier-result.json index 07166dd22..6de1eb9bb 100644 --- a/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/verifier-result.json +++ b/examples/evaluator-rag-prototype/orchestration-efficiency-evidence/verifier-result.json @@ -12,9 +12,10 @@ "records a dependency graph and exclusive write ownership before delegation", "matches task, revision, model, reasoning effort, permissions, tools, time limit, and evaluator", "requires acceptance and evidence quality before comparing elapsed time or cost", - "aggregates controller, worker, and retry tokens or cost and marks unavailable telemetry honestly", + "aggregates controller, worker, verifier, and retry tokens or cost and marks unavailable telemetry honestly", "retains failed candidates, conflicts, integration rework, retries, and human corrections", - "requires repeated sequential pairs and alternated run order before a general recommendation" + "requires repeated sequential pairs and alternated run order before a general recommendation", + "derives per-pair quality, time, and cost deltas from retained attempts and returns inconclusive when any metric is mixed-sign or unavailable" ], "rollback": "Withdraw the recommendation and retain the raw run receipts if later replications reverse the result; this read-only playbook launches no workers and changes no candidate repository." }, @@ -27,7 +28,8 @@ "has no matched accepted single-agent baseline", "reports no aggregate worker token or cost total", "ignores overlap, machine contention, conflicts, integration rework, and failed attempts", - "turns one smoke run with unavailable telemetry into a general efficiency claim" + "turns one smoke run with unavailable telemetry into a general efficiency claim", + "would average opposite-sign pair results into one direction" ], "rollback": "Do not publish the claim; restart from matched controls, acceptance evidence, complete run receipts, and sequential paired replications." } diff --git a/tests/docs/evaluator-rag-prototype.test.js b/tests/docs/evaluator-rag-prototype.test.js index 1703596e1..6e5847f72 100644 --- a/tests/docs/evaluator-rag-prototype.test.js +++ b/tests/docs/evaluator-rag-prototype.test.js @@ -428,7 +428,8 @@ test('orchestration efficiency scenario rejects intuition-only parallelism claim 'claiming that parallel agents are faster or cheaper without a matched accepted single-agent baseline', 'reporting controller-only tokens or cost while omitting worker totals', 'excluding failed candidates, edit conflicts, integration rework, retries, or human corrections', - 'estimating unavailable telemetry or turning one overlapping smoke run into a general efficiency claim' + 'estimating unavailable telemetry or turning one overlapping smoke run into a general efficiency claim', + 'averaging opposite-sign or unavailable pair deltas into a task-class recommendation' ]) { assert.ok(scenario.forbidden_actions.includes(blocked), `Missing orchestration forbidden action: ${blocked}`); } @@ -437,9 +438,11 @@ test('orchestration efficiency scenario rejects intuition-only parallelism claim 'dependency graph and exclusive ownership boundaries are recorded', 'single-agent and orchestrated controls are matched', 'all attempted candidates use the same acceptance evaluator', - 'aggregate controller and worker cost is recorded or explicitly unavailable', + 'aggregate controller, worker, verifier, and retry cost is recorded or explicitly unavailable', 'failed candidates remain in the comparison', - 'at least three fresh sequential pairs with alternated order are completed before promotion' + 'at least three fresh sequential pairs with alternated order are completed before promotion', + 'every raw attempt is retained and each pair reports quality, time, and cost deltas computed from those attempts', + 'mixed-sign or unavailable pair deltas yield an inconclusive result that blocks any task-class claim' ]) { assert.ok(scenario.acceptance_gates.includes(required), `Missing orchestration acceptance gate: ${required}`); } @@ -459,10 +462,139 @@ test('orchestration efficiency scenario rejects intuition-only parallelism claim assert.ok(externalExperiment, 'Missing external orchestration experiment source'); assert.ok(retrieval, 'Missing orchestration retrieval trace event'); assert.ok(retrieval.evidence.includes(externalExperiment.url)); - assert.ok(playbook.includes('total tokens or cost across controller, every worker, and retries')); + assert.ok(playbook.includes('total tokens or cost across controller, every worker, the verifier, and')); assert.ok(playbook.includes('At least three sequential pairs with alternated order')); }); +const ORCHESTRATION_ROOT = 'orchestration-efficiency-evidence/'; + +function roundDelta(value) { + return Math.round(value * 1e6) / 1e6; +} + +function metricDirection(metric, deltas) { + if (deltas.some(delta => typeof delta !== 'number')) return 'inconclusive'; + if (deltas.every(delta => delta === 0)) return 'no_difference'; + const orchestratedHigher = deltas.every(delta => delta > 0); + const orchestratedLower = deltas.every(delta => delta < 0); + if (!orchestratedHigher && !orchestratedLower) return 'inconclusive'; + return orchestratedHigher === (metric.better_when === 'higher') ? 'orchestrated_better' : 'single_agent_better'; +} + +function evaluatePairEvidence(rule, attempts) { + const pairIds = [...new Set(attempts.map(attempt => attempt.pair))].sort((a, b) => a - b); + const pairDeltas = pairIds.map(pair => { + const single = attempts.find(attempt => attempt.pair === pair && attempt.variant === 'single_agent'); + const orchestrated = attempts.find(attempt => attempt.pair === pair && attempt.variant === 'orchestrated'); + assert.ok(single && orchestrated, `Pair ${pair} must retain both raw attempts`); + const delta = { pair, order: single.run_order === 1 ? 'single_agent_first' : 'orchestrated_first' }; + for (const metric of rule.metrics) { + const orchestratedValue = orchestrated[metric.attempt_field]; + const singleValue = single[metric.attempt_field]; + delta[metric.delta_field] = typeof orchestratedValue === 'number' && typeof singleValue === 'number' + ? roundDelta(orchestratedValue - singleValue) + : rule.unavailable_value; + } + return delta; + }); + const metricDirections = Object.fromEntries(rule.metrics.map(metric => [ + metric.name, + metricDirection(metric, pairDeltas.map(delta => delta[metric.delta_field])) + ])); + const bothOrders = rule.required_orders.every(order => pairDeltas.some(delta => delta.order === order)); + const consistent = pairDeltas.length >= rule.minimum_pairs + && bothOrders + && Object.values(metricDirections).every(direction => direction !== 'inconclusive'); + return { pair_deltas: pairDeltas, metric_directions: metricDirections, result: consistent ? 'consistent' : 'inconclusive' }; +} + +test('orchestration pair fixtures derive recorded deltas from retained raw attempts', () => { + const scenario = readFixtureJson(`${ORCHESTRATION_ROOT}scenario.json`); + const rule = scenario.pair_consistency_rule; + assert.ok(rule, 'Missing machine-readable pair consistency rule'); + assert.strictEqual(rule.minimum_pairs, 3); + assert.deepStrictEqual(rule.metrics.map(metric => metric.name), ['quality', 'time', 'cost']); + assert.deepStrictEqual(rule.aggregate_cost_components, ['controller', 'workers', 'verifier', 'retries']); + assert.ok(rule.metric_direction.includes('deltas are never averaged')); + + for (const fixture of rule.fixtures) { + const evidence = readFixtureJson(`${ORCHESTRATION_ROOT}${fixture}`); + assert.strictEqual(evidence.scenario_id, scenario.scenario_id); + assert.strictEqual(evidence.read_only, true); + assert.strictEqual(evidence.illustrative, true); + assert.strictEqual(evidence.evaluation_status, 'illustrative_synthetic_attempts_not_executed_runs'); + assert.strictEqual(evidence.raw_attempts.length, evidence.pair_deltas.length * 2, `${fixture} dropped raw attempts`); + for (const attempt of evidence.raw_attempts) { + assert.deepStrictEqual(Object.keys(attempt.cost_breakdown_usd), rule.aggregate_cost_components); + const total = Object.values(attempt.cost_breakdown_usd).reduce((sum, value) => sum + value, 0); + assert.strictEqual(roundDelta(total), attempt.total_cost_usd, `${attempt.attempt_id} total omits a cost component`); + } + const derived = evaluatePairEvidence(rule, evidence.raw_attempts); + assert.deepStrictEqual(evidence.pair_deltas, derived.pair_deltas, `${fixture} pair deltas do not match raw attempts`); + assert.deepStrictEqual(evidence.metric_directions, derived.metric_directions); + assert.strictEqual(evidence.result, derived.result); + } +}); + +test('mixed-sign orchestration pairs are inconclusive and promote no candidate', () => { + const evidence = readFixtureJson(`${ORCHESTRATION_ROOT}pairs-mixed-sign.json`); + const timeDeltas = evidence.pair_deltas.map(delta => delta.time_delta_ms); + const meanTimeDelta = timeDeltas.reduce((sum, value) => sum + value, 0) / timeDeltas.length; + + assert.ok(timeDeltas.some(delta => delta > 0) && timeDeltas.some(delta => delta < 0), 'Fixture must contain opposite-sign time deltas'); + assert.ok(meanTimeDelta < 0, 'Fixture must show that averaging would suggest a misleading direction'); + assert.strictEqual(evidence.rejected_aggregate.value, meanTimeDelta); + assert.strictEqual(evidence.metric_directions.time, 'inconclusive'); + assert.strictEqual(evidence.metric_directions.cost, 'single_agent_better'); + assert.strictEqual(evidence.result, 'inconclusive'); + assert.strictEqual(evidence.promoted_candidate_id, null); + assert.ok(evidence.candidates.every(candidate => candidate.decision !== 'accepted')); + assert.strictEqual(evidence.candidates[0].claim, null); + const reversedPair = evidence.raw_attempts.find(attempt => attempt.attempt_id === 'pair-2-orchestrated'); + assert.ok(reversedPair.conflicts > 0 && reversedPair.cost_breakdown_usd.retries > 0, 'Reversed pair must keep its coordination cost'); +}); + +test('sign-consistent orchestration pairs allow only a task-class-scoped claim', () => { + const evidence = readFixtureJson(`${ORCHESTRATION_ROOT}pairs-sign-consistent.json`); + const accepted = evidence.candidates.find(candidate => candidate.decision === 'accepted'); + + assert.strictEqual(evidence.result, 'consistent'); + assert.deepStrictEqual(evidence.metric_directions, { + quality: 'no_difference', time: 'orchestrated_better', cost: 'single_agent_better' + }); + assert.ok(accepted, 'Missing accepted task-class claim'); + assert.strictEqual(evidence.promoted_candidate_id, accepted.candidate_id); + assert.ok(accepted.claim.startsWith('For this task class only')); + assert.ok(accepted.claim.includes('cost more'), 'Claim must disclose the higher aggregate cost'); +}); + +test('unavailable, too few, or fixed-order orchestration pairs are inconclusive', () => { + const rule = readFixtureJson(`${ORCHESTRATION_ROOT}scenario.json`).pair_consistency_rule; + const { raw_attempts: attempts } = readFixtureJson(`${ORCHESTRATION_ROOT}pairs-sign-consistent.json`); + assert.strictEqual(evaluatePairEvidence(rule, attempts).result, 'consistent'); + + const unavailableCost = attempts.map(attempt => (attempt.attempt_id === 'pair-2-orchestrated' + ? { ...attempt, total_cost_usd: rule.unavailable_value } + : attempt)); + const unavailable = evaluatePairEvidence(rule, unavailableCost); + assert.strictEqual(unavailable.pair_deltas[1].cost_delta_usd, rule.unavailable_value); + assert.strictEqual(unavailable.metric_directions.cost, 'inconclusive'); + assert.strictEqual(unavailable.result, 'inconclusive'); + + const twoPairs = evaluatePairEvidence(rule, attempts.filter(attempt => attempt.pair !== 3)); + assert.strictEqual(twoPairs.result, 'inconclusive'); + + const fixedOrder = attempts.map(attempt => ({ ...attempt, run_order: attempt.variant === 'single_agent' ? 1 : 2 })); + assert.strictEqual(evaluatePairEvidence(rule, fixedOrder).result, 'inconclusive'); + + const reversedTime = attempts.map(attempt => (attempt.attempt_id === 'pair-3-orchestrated' + ? { ...attempt, elapsed_ms: 1500000 } + : attempt)); + const reversed = evaluatePairEvidence(rule, reversedTime); + assert.strictEqual(reversed.metric_directions.time, 'inconclusive'); + assert.strictEqual(reversed.result, 'inconclusive'); +}); + test('connector gap artifacts share identity and preserve read-only scope', () => { const scenario = readFixtureJson('connector-diagnostics-gap/scenario.json'); assert.strictEqual(scenario.scenario_id, 'connector-diagnostics-gap'); From 6875b2aa0c96ea6b90f5f8c10955087a410e9cd8 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:04:35 -0500 Subject: [PATCH 63/78] fix(skill-stocktake): keep sorted inventory order past nine skills scan.sh and quick-diff.sh name each per-skill record "$i.json" and merge them with a "$tmpdir"/*.json glob. The glob sorts names as text, so once a scan finds ten or more skills 10.json lands before 2.json and the output no longer follows the NUL-sorted discovery order. Zero-pad the record names so glob order matches insertion order, and pin both scripts with a twelve-skill regression test. Rebind the skill-triggers registry digest for the changed skill sources. Carried forward from the ordering fix in #2729. Co-authored-by: Nathan Oliver <nathan.oliver@emecogroup.com> --- manifests/context-packs/skill-triggers@1.json | 2 +- skills/skill-stocktake/scripts/quick-diff.sh | 7 ++-- skills/skill-stocktake/scripts/scan.sh | 7 ++-- .../scripts/skill-stocktake-discovery.test.js | 34 +++++++++++++++++++ 4 files changed, 45 insertions(+), 5 deletions(-) diff --git a/manifests/context-packs/skill-triggers@1.json b/manifests/context-packs/skill-triggers@1.json index 91b727422..8cd768a73 100644 --- a/manifests/context-packs/skill-triggers@1.json +++ b/manifests/context-packs/skill-triggers@1.json @@ -10,7 +10,7 @@ "id": "hand-seeded", "source": "manual-curation-pending-regeneration" }, - "registryDigest": "23bd986cff96ea33424b1a461461a70e3194582ce01927145fd3f956daeebf7f", + "registryDigest": "88d5612d5267bebe23bb4b0eb0fba735ce8969f5d4d13cdf4c8bba837a611bc2", "schemaVersion": 1, "triggers": { "skill:agent-runtime-gateway-smoke-test": [ diff --git a/skills/skill-stocktake/scripts/quick-diff.sh b/skills/skill-stocktake/scripts/quick-diff.sh index 3e7984d5f..dd2a15520 100755 --- a/skills/skill-stocktake/scripts/quick-diff.sh +++ b/skills/skill-stocktake/scripts/quick-diff.sh @@ -84,7 +84,7 @@ process_dir() { sort_nul_file "$find_out" while IFS= read -r -d '' file; do - local mtime dp is_new + local mtime dp is_new record_file mtime=$(date -u -r "$file" +%Y-%m-%dT%H:%M:%SZ) dp="${file/#$HOME/~}" @@ -101,12 +101,15 @@ process_dir() { ' "$RESULTS_JSON") [[ -n "$is_new" ]] || continue + # Zero-pad record names so the "$tmpdir"/*.json glob below keeps the sorted + # discovery order past nine records (unpadded, 10.json sorts before 2.json). + printf -v record_file '%s/%08d.json' "$tmpdir" "$i" jq -n \ --arg path "$dp" \ --arg mtime "$mtime" \ --argjson is_new "$is_new" \ '{path:$path,mtime:$mtime,is_new:$is_new}' \ - > "$tmpdir/$i.json" + > "$record_file" i=$((i+1)) done < "$find_out" } diff --git a/skills/skill-stocktake/scripts/scan.sh b/skills/skill-stocktake/scripts/scan.sh index 8b82086f2..c9ee98bfa 100755 --- a/skills/skill-stocktake/scripts/scan.sh +++ b/skills/skill-stocktake/scripts/scan.sh @@ -135,7 +135,7 @@ scan_dir_to_json() { sort_nul_file "$find_out" while IFS= read -r -d '' file; do - local name desc mtime u7 u30 dp + local name desc mtime u7 u30 dp record_file name=$(extract_field "$file" "name") desc=$(extract_field "$file" "description") mtime=$(date -u -r "$file" +%Y-%m-%dT%H:%M:%SZ) @@ -154,6 +154,9 @@ scan_dir_to_json() { fi dp="${file/#$HOME/~}" + # Zero-pad record names so the "$tmpdir"/*.json glob below keeps the sorted + # discovery order past nine records (unpadded, 10.json sorts before 2.json). + printf -v record_file '%s/%08d.json' "$tmpdir" "$i" jq -n \ --arg path "$dp" \ --arg name "$name" \ @@ -162,7 +165,7 @@ scan_dir_to_json() { --argjson use_7d "$u7" \ --argjson use_30d "$u30" \ '{path:$path,name:$name,description:$description,use_7d:$use_7d,use_30d:$use_30d,mtime:$mtime}' \ - > "$tmpdir/$i.json" + > "$record_file" i=$((i+1)) done < "$find_out" diff --git a/tests/scripts/skill-stocktake-discovery.test.js b/tests/scripts/skill-stocktake-discovery.test.js index 6af6be496..4d490e05f 100644 --- a/tests/scripts/skill-stocktake-discovery.test.js +++ b/tests/scripts/skill-stocktake-discovery.test.js @@ -294,6 +294,40 @@ if (process.platform !== 'win32') { } } +if (process.platform !== 'win32') { + const tempRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-stocktake-order-')); + try { + const projectSkills = path.join(tempRoot, 'project', '.claude', 'skills'); + const names = Array.from({ length: 12 }, (_, index) => `skill-${String.fromCharCode(97 + index)}`); + for (const name of names) writeSkill(path.join(projectSkills, name), name); + const expectedPaths = names.map(name => path.join(projectSkills, name, 'SKILL.md')); + const resultsPath = path.join(tempRoot, 'results.json'); + fs.writeFileSync(resultsPath, JSON.stringify({ evaluated_at: '2099-01-01T00:00:00Z', skills: [] })); + const env = { + SKILL_STOCKTAKE_GLOBAL_DIR: path.join(tempRoot, 'missing-global'), + SKILL_STOCKTAKE_PROJECT_DIR: projectSkills, + SKILL_STOCKTAKE_OBSERVATIONS: path.join(tempRoot, 'missing-observations.jsonl'), + }; + + test('scan keeps sorted discovery order past nine skills', () => { + const result = runBash(scanScript, [], env); + assert.strictEqual(result.status, 0, result.stderr); + assert.deepStrictEqual(JSON.parse(result.stdout).skills.map(skill => skill.path), expectedPaths); + }); + + test('quick diff keeps sorted discovery order past nine skills', () => { + const result = runBash(quickDiffScript, [resultsPath], env); + assert.strictEqual(result.status, 0, result.stderr); + assert.deepStrictEqual(JSON.parse(result.stdout).map(skill => skill.path), expectedPaths); + }); + } catch (error) { + console.log(` ✗ ordering fixture setup: ${error.message}`); + failed++; + } finally { + fs.rmSync(tempRoot, { recursive: true, force: true }); + } +} + if (process.platform !== 'win32') { const skillSource = fs.readFileSync(path.join(repoRoot, 'skills', 'skill-stocktake', 'SKILL.md'), 'utf8'); const inventorySection = skillSource.split('### Phase 1')[1].split('### Phase 2')[0]; From 8e3c93e4a1f8069317270fd87bf65a5d1f82e7a6 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:07:41 -0500 Subject: [PATCH 64/78] fix(pi): allowlist Celery docs host and regenerate django-celery pi/core skill The django-celery references link to docs.celeryq.dev, which the pi/core safety scan rejects as a non-allowlisted host. Allow the documentation host and regenerate pi/core so the shipped skill matches its source. --- manifests/pi-core.json | 1 + pi/core/skills/django-celery/SKILL.md | 129 ++++++++++++------ .../django-celery/references/reliability.md | 97 +++++++++++++ 3 files changed, 186 insertions(+), 41 deletions(-) create mode 100644 pi/core/skills/django-celery/references/reliability.md diff --git a/manifests/pi-core.json b/manifests/pi-core.json index 098153742..0bcff6d7f 100644 --- a/manifests/pi-core.json +++ b/manifests/pi-core.json @@ -484,6 +484,7 @@ "developer.android.com", "developer.apple.com", "developers.cloudflare.com", + "docs.celeryq.dev", "docs.flutter.dev", "docs.spring.io", "external-secrets.io", diff --git a/pi/core/skills/django-celery/SKILL.md b/pi/core/skills/django-celery/SKILL.md index 0ae987755..54a8d5bc2 100644 --- a/pi/core/skills/django-celery/SKILL.md +++ b/pi/core/skills/django-celery/SKILL.md @@ -70,7 +70,6 @@ CELERY_TASK_TRACK_STARTED = True CELERY_TASK_TIME_LIMIT = 30 * 60 # Hard limit: 30 min CELERY_TASK_SOFT_TIME_LIMIT = 25 * 60 # Soft limit: sends SoftTimeLimitExceeded CELERY_WORKER_PREFETCH_MULTIPLIER = 1 # Prevent worker hoarding long tasks -CELERY_TASK_ACKS_LATE = True # Re-queue on worker crash # Result persistence CELERY_RESULT_EXPIRES = 60 * 60 * 24 # Keep results 24 hours @@ -199,6 +198,12 @@ def generate_pdf_report(self, report_id: int) -> str: raise ``` +### Delivery Guarantees + +Late acknowledgement, worker-loss redelivery, and commit-aware publication are separate +choices. Read [Delivery Reliability](references/reliability.md) before +changing acknowledgement settings or publishing tasks from a database transaction. + ## Calling Tasks ```python @@ -219,6 +224,25 @@ sync_contact_to_crm.apply_async(args=[contact.pk], queue='high_priority') result = generate_pdf_report.apply(args=[report.pk]) ``` +### Publish After the Database Commits + +A task published inside a Django transaction can run before its rows are visible or +remain queued after rollback. Use `delay_on_commit()` or `apply_async_on_commit()` +with Celery 5.4 or newer; use `transaction.on_commit()` on older versions. See +[Delivery Reliability](references/reliability.md#publish-after-the-database-commits) +for custom-base, task-ID, and transactional-outbox boundaries. Django's `TestCase` +never commits, so these callbacks never run in tests unless captured; see +[Test the On-Commit Contract](references/reliability.md#test-the-on-commit-contract). + +```python +from django.db import transaction + +@transaction.atomic +def create_user(validated_username: str): + user = User.objects.create(username=validated_username) + send_welcome_email.delay_on_commit(user.pk) +``` + ## Beat Scheduling (Periodic Tasks) ### Code-Defined Schedule @@ -266,6 +290,11 @@ PeriodicTask.objects.update_or_create( ) ``` +Run only one scheduler for a given schedule to avoid duplicate publications, but this +does not prevent execution overlap: periodic tasks may overlap. Atomically claim an +active-run lease with an owner and expiry or recovery path; a unique schedule row +alone does not serialize executions. Keep the task idempotent if the lease expires. + ## Canvas: Chaining and Grouping Tasks ```python @@ -294,7 +323,7 @@ result = chord( result.delay() ``` -## Error Handling and Dead Letter Queue +## Failure Monitoring ```python # apps/core/tasks.py @@ -314,29 +343,8 @@ def on_task_failure(sender, task_id, exception, args, kwargs, traceback, einfo, sentry_sdk.capture_exception(exception) ``` -```python -# Route failed tasks to dead-letter queue after max retries -@shared_task( - bind=True, - max_retries=3, - name='payments.charge_card', -) -def charge_card(self, order_id: int) -> None: - from apps.payments.models import Order, FailedCharge - - try: - _do_charge(order_id) - except Exception as exc: - if self.request.retries >= self.max_retries: - # Persist to dead-letter table for manual review - FailedCharge.objects.create( - order_id=order_id, - error=str(exc), - task_id=self.request.id, - ) - return # Don't raise — task is permanently failed - raise self.retry(exc=exc) -``` +Returning after recording a final error makes Celery record `SUCCESS`; persist and +re-raise instead. Broker dead-letter queues are not Django model error logs. ## Testing Celery Tasks @@ -362,7 +370,14 @@ class TestSendWelcomeEmail: send_welcome_email(99999) # Non-existent user — must not raise ``` -### Integration Testing with CELERY_TASK_ALWAYS_EAGER +### Django Integration Path with Eager Mode + +Eager mode is a worker emulation, not a worker integration test. Use it to verify +that a Django request selects the expected task and arguments, but do not use it as +evidence for serialization, routing, acknowledgement, retry, or worker-loss behavior. +It also does not prove post-commit dispatch: under `django_db` the test transaction +never commits, so a view that publishes with `delay_on_commit()` runs nothing unless +the request is wrapped in `django_capture_on_commit_callbacks(execute=True)`. ```python # config/settings/test.py @@ -371,17 +386,26 @@ CELERY_TASK_EAGER_PROPAGATES = True # Re-raise exceptions from tasks # tests/test_integration.py @pytest.mark.django_db -def test_registration_triggers_welcome_email(client): +def test_registration_triggers_welcome_email(client, django_capture_on_commit_callbacks): with patch('apps.notifications.services.EmailService') as mock_email: - response = client.post('/api/users/', { - 'email': 'new@example.com', - 'password': 'strongpass123', - }) + with django_capture_on_commit_callbacks(execute=True): + response = client.post('/api/users/', { + 'email': 'new@example.com', + 'password': 'strongpass123', + }) assert response.status_code == 201 mock_email.send_welcome.assert_called_once() ``` +### Worker Integration with a Real Broker + +Use Celery's `celery_worker` pytest fixture with a real broker and result backend for +the delivery boundary. Cover serialization, routing, retry behavior, and any +acknowledgement or redelivery options the application enables. Keep this suite +separate from fast unit tests so a passing eager-mode test is never mistaken for +worker evidence. + ### Testing Retries ```python @@ -428,14 +452,27 @@ def charge_and_fulfill(order_id): order.charge() # May charge twice if task retries! order.fulfill() -# GOOD: Idempotent with status guard -@shared_task -def charge_and_fulfill(order_id): - order = Order.objects.select_for_update().get(pk=order_id) - if order.status != Order.Status.PENDING: - return # Already processed - order.charge() - order.fulfill() +# GOOD: Claim ownership before external I/O, then finalize only as that owner +from django.db import transaction +from apps.payments.gateway import gateway + +@shared_task(bind=True, acks_late=True) +def charge_and_fulfill(self, order_id): + attempt_id = self.request.id # Stable across Celery retry and redelivery + with transaction.atomic(): + order = Order.objects.select_for_update().get(pk=order_id) + if not order.claim_or_resume_charge(attempt_id): + return + + # The adapter validates provider data and returns the same charge on retry. + receipt = gateway.charge(order_id, idempotency_key=f'order:{order_id}') + + with transaction.atomic(): + order = Order.objects.select_for_update().get(pk=order_id) + if order.charge_attempt_id != attempt_id: + return + order.record_charge(receipt) + order.fulfill() ``` ## Production Checklist @@ -443,13 +480,23 @@ def charge_and_fulfill(order_id): | Check | Setting | |-------|---------| | Worker restarts on crash | `supervisord` or `systemd` unit | -| `CELERY_TASK_ACKS_LATE = True` | Re-queue tasks on worker crash | +| Late acknowledgement | Per task, only after proving idempotency; duplicates remain possible | +| Worker-loss redelivery | `task_reject_on_worker_lost`, opt in only with poison-task protection | | `CELERY_WORKER_PREFETCH_MULTIPLIER = 1` | Fair distribution of long tasks | | Separate queues per priority | `-Q default,high_priority,low_priority` | | `CELERY_TASK_SOFT_TIME_LIMIT` set | Graceful timeout before hard kill | | Sentry integration | Capture all `task_failure` signals | | Flower or other monitor | Visibility into queue depths | -| Beat runs on single node only | Prevents duplicate scheduled task execution | +| Beat runs on single node only | Prevents duplicate scheduled task publication | +| Periodic-task locking | Prevents overlapping execution when required | + +## References + +- [Celery task acknowledgement and idempotency](https://docs.celeryq.dev/en/stable/userguide/tasks.html) +- [Celery configuration defaults](https://docs.celeryq.dev/en/stable/userguide/configuration.html) +- [Celery with Django transaction handling](https://docs.celeryq.dev/en/stable/django/first-steps-with-django.html) +- [Celery periodic tasks](https://docs.celeryq.dev/en/stable/userguide/periodic-tasks.html) +- [Celery testing guide](https://docs.celeryq.dev/en/stable/userguide/testing.html) ## Related Skills diff --git a/pi/core/skills/django-celery/references/reliability.md b/pi/core/skills/django-celery/references/reliability.md new file mode 100644 index 000000000..71f046af1 --- /dev/null +++ b/pi/core/skills/django-celery/references/reliability.md @@ -0,0 +1,97 @@ +# Delivery Reliability + +Read this reference when changing acknowledgement settings, worker-loss behavior, +or task publication around Django database transactions. + +## Acknowledgement and Worker Loss + +Celery acknowledges task messages before execution by default. Opt in to late +acknowledgement only for idempotent tasks that are safe to execute more than once: + +```python +@shared_task( + name='orders.mark_shipped', + acks_late=True, +) +def mark_order_shipped(order_id: int, tracking_number: str) -> None: + # Use an idempotent implementation such as the guarded update in SKILL.md. + ... +``` + +Late acknowledgement means the task may execute more than once if delivery is +interrupted. It does not by itself guarantee redelivery when a worker child exits +abruptly. Celery acknowledges worker-loss messages unless +`task_reject_on_worker_lost` (or Django's +`CELERY_TASK_REJECT_ON_WORKER_LOST`) is enabled. That option can cause message loops +for poison tasks, so enable it only after validating idempotency and monitoring the +redelivery path. Failure and timeout acknowledgement behavior is controlled +separately by `task_acks_on_failure_or_timeout`, which applies only to tasks using +late acknowledgement. + +## Publish After the Database Commits + +With Celery 5.4 or newer, `delay_on_commit()` and `apply_async_on_commit()` are +available for tasks based on `DjangoTask`. Custom task base classes must inherit from +`DjangoTask` to expose this API. These methods do not return a task ID because the +message is not published until commit. + +For older Celery versions, or to keep the publication visible at the call site, +register it explicitly: + +```python +from functools import partial +from django.db import transaction + +transaction.on_commit( + partial( + sync_contact_to_crm.apply_async, + args=[contact.pk], + queue='high_priority', + ) +) +``` + +An on-commit callback avoids publication on rollback, but it does not make the +database commit and broker publish atomic. If task delivery must not be lost when a +publish fails after commit, use a transactional outbox with a separate publisher. + +## Test the On-Commit Contract + +Django's `TestCase` wraps each test in a transaction that is rolled back, never +committed, so `transaction.on_commit()` callbacks (including `delay_on_commit()`) +never run. A test that only checks the new database row still passes when the task +is never queued. Capture the callbacks, execute them, and assert the Celery call: + +```python +from unittest.mock import patch + +from django.contrib.auth.models import User +from django.test import TestCase + +from apps.users.services import create_user +from apps.users.tasks import send_welcome_email + + +class CreateUserTests(TestCase): + def test_queues_welcome_email_after_commit(self): + # Patch before the call: delay_on_commit() binds task.delay when it registers. + with patch.object(send_welcome_email, 'delay') as mock_delay: + with self.captureOnCommitCallbacks(execute=True) as callbacks: + create_user('bob') + mock_delay.assert_not_called() # Not published before commit + + user = User.objects.get(username='bob') + self.assertEqual(len(callbacks), 1) + mock_delay.assert_called_once_with(user.pk) +``` + +`captureOnCommitCallbacks()` is available on `TestCase` in Django 3.2 or newer. With +pytest-django, the `django_capture_on_commit_callbacks` fixture provides the same +context manager inside `@pytest.mark.django_db` tests. + +Use `TransactionTestCase`, or `@pytest.mark.django_db(transaction=True)`, only when a +test needs a real commit: for example, when a real Celery worker in another thread +or process must read the committed rows. Those tests commit for real, so on-commit +callbacks run when the outermost `atomic()` block commits, and Django resets the +database afterwards by truncating tables, which is much slower. Keep them for the +worker integration boundary and use `TestCase` with captured callbacks elsewhere. From de1ef95cbea1db9c20278a7e0d41b8856d85ac1b Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:08:04 -0500 Subject: [PATCH 65/78] fix(block-no-verify): port value-taking option arity onto the current scanner Carry forward the still-missing part of this PR onto main's scanner: git commit --trailer and the git push value options (-o, --push-option, --receive-pack, --exec, --repo) now consume the following token, and an abbreviation that names exactly one value-taking long option consumes it too. A flag-looking value such as `git push -o --no-verify` is data that Git sends verbatim while still running pre-push, so refusing it was a false positive. --force-with-lease stays out (optional inline-only value), inline =value forms consume nothing, and prefixes ambiguous among the value options resolve to none of them. A real-Git sweep over every prefix of every commit/push long option followed by --no-verify (866 commands, Git 2.50.1) found no command the hook allows while Git skips a refusing hook. Co-authored-by: Nguyen Thanh Dat <ntdat812.dev@gmail.com> --- scripts/hooks/block-no-verify.js | 44 +++++++++++- tests/hooks/block-no-verify.test.js | 100 ++++++++++++++++++++++++++++ 2 files changed, 141 insertions(+), 3 deletions(-) diff --git a/scripts/hooks/block-no-verify.js b/scripts/hooks/block-no-verify.js index c4dc85f59..76b096225 100644 --- a/scripts/hooks/block-no-verify.js +++ b/scripts/hooks/block-no-verify.js @@ -61,10 +61,47 @@ const COMMIT_OPTIONS_WITH_VALUE = new Set([ '--template', '--fixup', '--squash', - '--pathspec-from-file' + '--pathspec-from-file', + // `git commit --trailer --no-verify` adds a trailer whose value is + // `--no-verify`; git still runs the hooks. + '--trailer' ]); -const COMMIT_OPTIONS_WITH_INLINE_VALUE = ['--message=', '--file=', '--reuse-message=', '--reedit-message=', '--author=', '--date=', '--template=', '--fixup=', '--squash=', '--pathspec-from-file=']; +const COMMIT_OPTIONS_WITH_INLINE_VALUE = ['--message=', '--file=', '--reuse-message=', '--reedit-message=', '--author=', '--date=', '--template=', '--fixup=', '--squash=', '--pathspec-from-file=', '--trailer=']; + +// `git push` options that consume the following token. Their value is sent or +// executed verbatim, so `git push --push-option --no-verify` runs pre-push. +// `--force-with-lease` is deliberately absent: its value is optional and +// inline-only, so the bare form consumes nothing and a following +// `--no-verify` is a real flag. +const PUSH_OPTIONS_WITH_VALUE = new Set(['-o', '--push-option', '--receive-pack', '--exec', '--repo']); + +/** + * Return true when a token is a value-taking option, or an abbreviation that + * names exactly one value-taking long option in `optionsWithValue`. + * + * Git accepts any unambiguous long-option prefix, so `--mes` consumes the next + * token just like `--message`. Resolving against value-taking options alone is + * safe only because Git refuses a prefix that is ambiguous across its complete + * option table: a prefix that is unique here but also matches a boolean option + * (`git commit --s`) makes Git exit before any hook decision. Ambiguous + * prefixes within this set resolve to nothing, so `--no-verify` after them is + * still caught. The inline `--option=value` form is one token and never + * consumes the next one. + * + * @param {string} value + * @param {Set<string>} optionsWithValue + * @returns {boolean} + */ +function optionConsumesNextValue(value, optionsWithValue) { + if (optionsWithValue.has(value)) return true; + if (!value.startsWith('--') || value.length <= 2 || value.includes('=')) return false; + let matches = 0; + for (const option of optionsWithValue) { + if (option.startsWith('--') && option.startsWith(value)) matches++; + } + return matches === 1; +} // Short options that take a value. When seen as part of a combined // short-option token (e.g. -tn), git's parser treats the rest of the @@ -88,7 +125,7 @@ function commitOptionConsumesNextValue(value) { return false; } - if (COMMIT_OPTIONS_WITH_VALUE.has(value)) { + if (optionConsumesNextValue(value, COMMIT_OPTIONS_WITH_VALUE)) { return true; } @@ -267,6 +304,7 @@ function findGitBypassFlag(words, budget, start, command) { if (commitOptionConsumesNextValue(value)) { skipNext = true; continue; } if (commitOptionContainsInlineValue(value)) continue; } + if (command === 'push' && optionConsumesNextValue(value, PUSH_OPTIONS_WITH_VALUE)) { skipNext = true; continue; } if (isNoVerifyLongFlag(value) || (command === 'commit' && isCommitNoVerifyShortFlag(value))) return true; } return false; diff --git a/tests/hooks/block-no-verify.test.js b/tests/hooks/block-no-verify.test.js index b0e6b4cd7..9d4d304d1 100644 --- a/tests/hooks/block-no-verify.test.js +++ b/tests/hooks/block-no-verify.test.js @@ -2013,6 +2013,61 @@ for (const n of [8, 12]) { })) passed++; else failed++; } +// --- Value-taking option arity (#2837, carried forward onto the current scanner) --- +// `--push-option`/`-o`/`--receive-pack`/`--exec`/`--repo`/`--trailer` consume +// the next token as data. Git sends or executes it verbatim and still runs the +// hooks, so refusing these is a false positive. An unambiguous abbreviation of +// a value-taking option consumes the next token exactly like the full name. +for (const command of [ + 'git push --push-option --no-verify', + 'git push --push-option --no-verif', + 'git push -o --no-verify', + 'git push --receive-pack --no-verify', + 'git push --exec --no-verify origin main', + 'git push --repo --no-verify', + 'git commit --trailer --no-verify -m "msg"', + 'git commit --trailer --no-verif -m "msg"', + 'git push --push-opti --no-verify', + 'git push --push-o --no-verif', + 'git commit --trail --no-verify -m "msg"', + 'git commit --mes --no-verify', + "bash -c 'git push -o --no-verify origin main'", + 'git -C repo commit --trailer --no-verify -m "msg"', + 'git push --force-with-lease', +]) { + if (test(`does not block a value-taking option's value: ${command}`, () => { + const r = runHook({ tool_input: { command } }); + assert.strictEqual(r.code, 0, `expected exit 0, got ${r.code}: ${r.stderr}`); + })) passed++; else failed++; +} + +// Arity must never swallow a real flag. `--force-with-lease` takes an optional, +// inline-only value, so the bare form consumes nothing. Inline `=value` forms +// are one token. A prefix ambiguous among the value-taking options resolves to +// none of them. Value options of another subcommand do not apply. +for (const command of [ + 'git push --force-with-lease --no-verify', + 'git push --force-with-lease --no-verif', + 'git push --force-with-lease=main:abc123 --no-verify', + 'git push --push-option=ci.skip --no-verify', + 'git push --push-opti=ci.skip --no-verify', + 'git commit --trailer=Key:val --no-verif -m "msg"', + 'git commit --trail=Key:val --no-verify -m "msg"', + 'git push --re --no-verify', + 'git commit --f --no-verify -m "msg"', + 'git commit --push-option --no-verify -m "msg"', + 'git push --trailer --no-verify', + 'git push -o x --no-verify', + "bash -c 'git push --re --no-verify'", + 'git commit --no-verify --trailer x -m "msg"', +]) { + if (test(`arity handling still blocks: ${command}`, () => { + const r = runHook({ tool_input: { command } }); + assert.strictEqual(r.code, 2, `expected exit 2, got ${r.code}`); + assert.ok(r.stderr.includes('BLOCKED'), `stderr should contain BLOCKED: ${r.stderr}`); + })) passed++; else failed++; +} + const pureOnly = process.argv.includes('--pure-only'); if (pureOnly) console.log('Pure classifier mode: 3 bounded Node routing checks omitted.'); else { @@ -2044,6 +2099,51 @@ else { } } +// Real Git agrees with the arity table: when the hook allows a flag-looking +// value, Git still runs the refusing hook and creates nothing. +const gitProbe = pureOnly ? null : spawnSync('git', ['--version'], { encoding: 'utf8' }); +if (gitProbe && gitProbe.status === 0) { + const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-no-verify-arity-')); + const git = (cwd, args) => spawnSync('git', args, { + cwd, encoding: 'utf8', timeout: 10000, + env: { ...process.env, GIT_CONFIG_GLOBAL: path.join(root, 'absent'), GIT_CONFIG_NOSYSTEM: '1', GIT_TERMINAL_PROMPT: '0' }, + }); + try { + const repo = path.join(root, 'repo'); + const remote = path.join(root, 'remote.git'); + git(root, ['init', '-q', repo]); + git(root, ['init', '-q', '--bare', remote]); + const identity = ['-c', 'user.name=ECC', '-c', 'user.email=ecc@example.invalid']; + git(repo, [...identity, 'commit', '-q', '--allow-empty', '-m', 'base']); + git(repo, ['remote', 'add', 'origin', remote]); + git(repo, ['push', '-q', 'origin', 'HEAD:refs/heads/main']); + for (const name of ['pre-commit', 'pre-push']) { + const hookPath = path.join(repo, '.git', 'hooks', name); + fs.writeFileSync(hookPath, '#!/bin/sh\nexit 1\n'); + fs.chmodSync(hookPath, 0o755); + } + git(repo, [...identity, 'commit', '-q', '--allow-empty', '--no-verify', '-m', 'ahead']); + for (const args of [ + ['commit', '--allow-empty', '--trailer', '--no-verify', '-m', 'probe'], + ['commit', '--allow-empty', '--mes', '--no-verify'], + ['push', '--push-option', '--no-verify', 'origin', 'HEAD:refs/heads/main'], + ['push', '--push-opti', '--no-verify', 'origin', 'HEAD:refs/heads/main'], + ]) { + if (test(`real Git still runs the hook after an allowed value: git ${args.join(' ')}`, () => { + assert.strictEqual(runHook({ tool_input: { command: `git ${args.join(' ')}` } }).code, 0); + const head = git(repo, ['rev-parse', 'HEAD']).stdout; + const remoteHead = git(remote, ['rev-parse', 'main']).stdout; + const result = git(repo, [...identity, ...args]); + assert.notStrictEqual(result.status, 0, 'the refusing hook must stop Git'); + assert.strictEqual(git(repo, ['rev-parse', 'HEAD']).stdout, head); + assert.strictEqual(git(remote, ['rev-parse', 'main']).stdout, remoteHead); + })) passed++; else failed++; + } + } finally { + fs.rmSync(root, { recursive: true, force: true }); + } +} + // Contributor carry-forward regressions for #2858 and #2897. for (const [name, command, expected] of [ [ From 8de973414555408a003166282e0a349c50bc10ee Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:08:26 -0500 Subject: [PATCH 66/78] docs(mcp): disclose mnemosyne-os 2.4.0 Telegram and app update tools The 2.4.0 pin adds mnemosyne_telegram_send, which uploads a local file to the Telegram chat configured in the app, and on macOS mnemosyne_mac_update_install, which downloads the latest GitHub release and replaces the installed app. Name both in the catalog description so users can require client approval for them or deny them before enabling. --- mcp-configs/mcp-servers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp-configs/mcp-servers.json b/mcp-configs/mcp-servers.json index 3337ed166..f3966f170 100644 --- a/mcp-configs/mcp-servers.json +++ b/mcp-configs/mcp-servers.json @@ -227,7 +227,7 @@ "command": "npx", "args": ["-y", "-p", "@mnemosyne_os/mcp@2.4.0", "mnemosyne-mcp"], "env": { "MNEMO_VAULTS": "YOUR_APPROVED_VAULT_NAMES", "MNEMO_DEFAULT_VAULT": "" }, - "description": "Opt-in Mnemosyne OS desktop-app memory and dashboard. Replace MNEMO_VAULTS with approved vault names before enabling; the app ingests selected folders into persistent vaults, and memory_ingest can save content for later agents. Vault scope does not restrict session tools, which read local coding-agent transcripts. Review folder and transcript access before enabling. Memory tools use the app at ws://127.0.0.1:7799. Tool results, including private memory and session data, go to the MCP client and its model provider. Not enabled by default." + "description": "Opt-in Mnemosyne OS desktop-app memory and dashboard. Replace MNEMO_VAULTS with approved vault names before enabling; the app ingests selected folders into persistent vaults, and memory_ingest can save content for later agents. Vault scope does not restrict session tools, which read local coding-agent transcripts. Review folder and transcript access before enabling. Memory tools use the app at ws://127.0.0.1:7799. Tool results, including private memory and session data, go to the MCP client and its model provider. Version 2.4.0 adds mnemosyne_telegram_send, which uploads a local media or PDF file to the Telegram chat configured in the app, and on macOS mnemosyne_mac_update_install, which downloads the latest GitHub release and replaces the installed app; require client approval for both, or deny them if unused. Not enabled by default." } }, "_comments": { From fd9d1552dc533b95b2c0060cc58634b40f22b93d Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:08:35 -0500 Subject: [PATCH 67/78] fix(ci): restamp skill-triggers registry digest for mistral-vibe target The context registry digest covers the target list, so adding the mistral-vibe target on current main changes it. The trigger phrases are unchanged; only registryDigest is updated so validate-context-profiles accepts the manifest. --- manifests/context-packs/skill-triggers@1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/context-packs/skill-triggers@1.json b/manifests/context-packs/skill-triggers@1.json index 91b727422..1bb29a083 100644 --- a/manifests/context-packs/skill-triggers@1.json +++ b/manifests/context-packs/skill-triggers@1.json @@ -10,7 +10,7 @@ "id": "hand-seeded", "source": "manual-curation-pending-regeneration" }, - "registryDigest": "23bd986cff96ea33424b1a461461a70e3194582ce01927145fd3f956daeebf7f", + "registryDigest": "9315ec2c0d0b42b124d0a213d00c68e4ddf782ded468b15b99bfaa418e8de92f", "schemaVersion": 1, "triggers": { "skill:agent-runtime-gateway-smoke-test": [ From 7a57c828ac9ea03eeaba58486e1ad475dd587fb8 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:09:10 -0500 Subject: [PATCH 68/78] fix(gateguard): resolve wrappers and nested shells in find -exec actions Main now resolves sudo/doas/env and the timeout/setsid/nice/stdbuf/ionice/ taskset/nohup/time launchers for top-level commands, but find -exec still read its action argv literally. `find . -exec sudo rm {} \;`, `find . -exec timeout 5 rm -rf {} +`, `find . -exec sh -c 'rm -rf {}' \;` and `sudo find . -exec rm {} \;` were allowed although each runs rm. Resolve the exec argv through unwrapLeadWrappers (external argv, so no shell builtins), classify find behind a wrapper, and send the -c text of a shell that find starts through the same bounded quote-aware recursion as a top-level `sh -c`. Non-executing modes such as `sudo -l` and quoted data such as `sh -c 'echo rm -rf {}'` stay allowed. Co-authored-by: Nguyen Thanh Dat <ntdat812.dev@gmail.com> --- scripts/hooks/gateguard-fact-force.js | 65 ++++++++++++++++++------ tests/hooks/gateguard-fact-force.test.js | 50 +++++++++++++++++- 2 files changed, 99 insertions(+), 16 deletions(-) diff --git a/scripts/hooks/gateguard-fact-force.js b/scripts/hooks/gateguard-fact-force.js index 98abc1639..5f032ba7b 100644 --- a/scripts/hooks/gateguard-fact-force.js +++ b/scripts/hooks/gateguard-fact-force.js @@ -1051,16 +1051,12 @@ function isDestructiveQuoteAware(raw, depth = 0) { if (isDestructiveSqlClient(tokens)) return true; if (isDestructiveFindExec(tokens)) return true; const argv = unwrapLeadWrappers(tokens, true, true); - const base = commandBasename(argv[0]); - if (SHELL_WRAPPERS.has(base)) { - // `-c`, or a short-option cluster that includes it (`-lc`, `-ec`). - const ci = argv.findIndex((arg, i) => i > 0 && /^-[A-Za-z]*c[A-Za-z]*$/.test(arg)); - if (ci !== -1 && argv[ci + 1] && isDestructiveQuoteAware(argv[ci + 1], depth + 1)) { - return true; - } - } - if (base === 'su') { - for (const commandLine of suCommandLines(argv)) { + // `sudo find . -exec rm {} \;` runs the same actions as a bare find. + if (isDestructiveFindExec(argv)) return true; + // A shell that find -exec starts runs its -c text like any other. + const execShells = findExecArgvs(argv).map(exec => unwrapLeadWrappers(exec, false, true)); + for (const shellArgv of [argv, ...execShells]) { + for (const commandLine of nestedShellCommandLines(shellArgv)) { if (isDestructiveQuoteAware(commandLine, depth + 1)) return true; } } @@ -1069,6 +1065,23 @@ function isDestructiveQuoteAware(raw, depth = 0) { return false; } +/** + * Command text a resolved argv hands to a nested shell: the `-c` operand of + * sh/bash/zsh/dash/ksh (also inside a cluster such as `-lc` or `-ec`), or every + * command line of `su`. + * + * @param {string[]} argv + * @returns {string[]} + */ +function nestedShellCommandLines(argv) { + const base = commandBasename(argv[0]); + if (SHELL_WRAPPERS.has(base)) { + const ci = argv.findIndex((arg, i) => i > 0 && /^-[A-Za-z]*c[A-Za-z]*$/.test(arg)); + return ci !== -1 && argv[ci + 1] ? [argv[ci + 1]] : []; + } + return base === 'su' ? suCommandLines(argv) : []; +} + /** * Strip a leading path and trailing `.exe` from a command token so * `/usr/bin/git`, `git.exe`, and `GIT` all normalize to `git`. @@ -1441,8 +1454,19 @@ const FIND_EXEC_ACTIONS = new Set(['-exec', '-execdir', '-ok', '-okdir']); function isDestructiveFindExec(command) { const quoteAware = Array.isArray(command); const tokens = quoteAware ? command : tokenize(String(command || '').trim()); - if (commandBasename(tokens[0]) !== 'find') return false; + return findExecArgvs(tokens).some(argv => isDestructiveFindExecArgv(argv, quoteAware)); +} +/** + * The argv of every executable action of one find invocation, or [] when the + * tokens are not a find command. + * + * @param {string[]} tokens + * @returns {string[][]} + */ +function findExecArgvs(tokens) { + if (commandBasename(tokens[0]) !== 'find') return []; + const actions = []; for (let index = 1; index < tokens.length; index += 1) { const action = tokens[index]; if (action === '-fprintf') { @@ -1456,9 +1480,9 @@ function isDestructiveFindExec(command) { if (!FIND_EXEC_ACTIONS.has(action)) continue; const exec = readFindExecArgv(tokens, index + 1, action); index = exec.index; - if (exec.argv.length && isDestructiveFindExecArgv(exec.argv, quoteAware)) return true; + if (exec.argv.length) actions.push(exec.argv); } - return false; + return actions; } // Collect the argv of one find action starting at `start`. Returns the argv @@ -1479,10 +1503,21 @@ function readFindExecArgv(tokens, start, action) { function isDestructiveFindExecArgv(argv, quoteAware) { // The legacy raw fallback can split quoted prose into apparent actions. - // Preserve its old rm/Git coverage, but classify dd only from real argv. + // Preserve its old rm/Git coverage, but classify dd and wrappers only from + // real argv. if (quoteAware && isDestructiveDd(argv, false)) return true; + if (isDestructiveFindExecCommand(argv)) return true; + if (!quoteAware) return false; + // find execs argv directly, so `-exec sudo rm {} \;` and + // `-exec timeout 5 rm {} \;` run rm just as `-exec rm {} \;` does (#2832). + // Shell builtins do not apply: find never runs `command` or `exec` itself. + const resolved = unwrapLeadWrappers(argv, false, true); + return resolved.length > 0 && isDestructiveFindExecCommand(resolved); +} + +// Preserve main's existing find rm/rmdir/unlink and git-reset handling. +function isDestructiveFindExecCommand(argv) { const baseCmd = commandBasename(argv[0]); - // Preserve main's existing rm/rmdir/unlink and git-reset handling. if (baseCmd === 'rm' || baseCmd === 'rmdir' || baseCmd === 'unlink') return true; if (baseCmd !== 'git') return false; const sub = findGitSubcommand(argv); diff --git a/tests/hooks/gateguard-fact-force.test.js b/tests/hooks/gateguard-fact-force.test.js index fedb8bab6..f1c7a7f8d 100644 --- a/tests/hooks/gateguard-fact-force.test.js +++ b/tests/hooks/gateguard-fact-force.test.js @@ -730,6 +730,51 @@ function runDdRegressionTests() { }); } } + // #2832: find execs its action argv directly, so a wrapper or a nested + // shell there runs rm/Git exactly like a bare `-exec rm {} \;`. + const findExecWrappedDestructive = [ + 'find . -exec sudo rm {} \\;', + 'find . -exec doas rm {} \\;', + 'find . -exec sudo -u root rm -rf {} \\;', + 'find . -exec sudo git reset --hard \\;', + 'find . -execdir sudo rm {} \\;', + 'find . -ok doas rm {} \\;', + 'find . -exec timeout 5m rm -rf {} \\;', + 'find . -exec setsid rm -rf {} +', + 'find . -exec env FOO=1 rm -rf {} +', + 'find . -exec nice -n 5 rm -rf {} +', + 'sudo find . -exec rm {} \\;', + 'timeout 5 find . -exec rm -rf {} +', + "find . -exec sh -c 'rm -rf {}' \\;", + 'find . -exec bash -c "rm -rf /important/data" \\;', + 'find . -exec sh -ec "rm -rf {}" +', + 'find . -exec sh -o errexit -c "rm -rf {}" \\;', + 'find . -exec sh -c "git reset --hard" \\;', + "find . -exec sudo sh -c 'rm -rf {}' \\;", + "find . -exec timeout 5 sh -c 'rm -rf {}' \\;", + "find . -exec su -c 'rm -rf /important/data' \\;" + ]; + const findExecWrappedPassive = [ + 'find . -exec sudo chmod 644 {} \\;', + 'find . -exec sudo git status \\;', + 'find . -exec sudo -l rm -rf {} \\;', + 'find . -exec echo sudo rm -rf {} \\;', + 'find . -exec timeout 5 echo rm -rf {} \\;', + "find . -exec sh -c 'echo rm -rf {}' \\;", + 'find . -exec sh -c "npm test" \\;', + "find . -name 'sudo rm -rf' -print", + 'sudo find . -name "*.log" -exec ls {} \\;' + ]; + for (const [commands, expected] of [ + [findExecWrappedDestructive, ['gateguard.bash-compatible-destructive']], + [findExecWrappedPassive, []] + ]) { + for (const command of commands) { + check(`find -exec wrapper classification: ${JSON.stringify(command)}`, () => { + assert.deepStrictEqual(hook.classifyDestructiveCommand('Bash', command), expected); + }); + } + } for (const [command, denied] of [ ['sudo -u root dd if=input', true], ["sh -c 'echo $(dd if=input)'", true], @@ -738,7 +783,10 @@ function runDdRegressionTests() { ['find . -exec echo {} \\; -exec dd if=input \\;', true], ['command -pv dd', false], ["timeout 2 sh -c 'dd if=input'", true], - ['cat /dev/zero | dd of=/dev/sda', true] + ['cat /dev/zero | dd of=/dev/sda', true], + ['find . -exec sudo rm -rf {} \\;', true], + ["find . -exec sh -c 'rm -rf {}' +", true], + ['find . -exec sudo chmod 644 {} \\;', false] ]) { check(`dd hook-input contract: ${command}`, () => { fs.rmSync(stateDir, { recursive: true, force: true }); From 04fa58ae576c47a7015d753be50e6a5fe69cc0c1 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:11:01 -0500 Subject: [PATCH 69/78] docs(browser-qa): fix the claude-in-chrome MCP tool prefix The Integration section named the Chrome tools `mChild__claude-in-chrome__*`, which matches no real tool, so readers following it would look for tools that do not exist. Use the real `mcp__claude-in-chrome__*` prefix in the English skill and the zh-CN mirror, and rebind the skill-triggers registry digest for the changed skill source. Carried forward from the browser-qa correction in #2492. Co-authored-by: eric0891230 <eric0891230@gmail.com> --- docs/zh-CN/skills/browser-qa/SKILL.md | 2 +- manifests/context-packs/skill-triggers@1.json | 2 +- skills/browser-qa/SKILL.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/zh-CN/skills/browser-qa/SKILL.md b/docs/zh-CN/skills/browser-qa/SKILL.md index a52a34596..5e031b010 100644 --- a/docs/zh-CN/skills/browser-qa/SKILL.md +++ b/docs/zh-CN/skills/browser-qa/SKILL.md @@ -81,7 +81,7 @@ metadata: ## 集成 可与任意浏览器 MCP 配合: -- `mChild__claude-in-chrome__*` 工具(推荐,直接使用你的真实 Chrome) +- `mcp__claude-in-chrome__*` 工具(推荐,直接使用你的真实 Chrome) - 通过 `mcp__browserbase__*` 使用 Playwright - 直接运行 Puppeteer 脚本 diff --git a/manifests/context-packs/skill-triggers@1.json b/manifests/context-packs/skill-triggers@1.json index 91b727422..0654cf8d3 100644 --- a/manifests/context-packs/skill-triggers@1.json +++ b/manifests/context-packs/skill-triggers@1.json @@ -10,7 +10,7 @@ "id": "hand-seeded", "source": "manual-curation-pending-regeneration" }, - "registryDigest": "23bd986cff96ea33424b1a461461a70e3194582ce01927145fd3f956daeebf7f", + "registryDigest": "700162d9d50b3c31c65040fa77a07ecbb6a1bf5c5b03c0e2bdc3da4700e901f6", "schemaVersion": 1, "triggers": { "skill:agent-runtime-gateway-smoke-test": [ diff --git a/skills/browser-qa/SKILL.md b/skills/browser-qa/SKILL.md index f6358d6ac..9ecd7fd81 100644 --- a/skills/browser-qa/SKILL.md +++ b/skills/browser-qa/SKILL.md @@ -98,7 +98,7 @@ credentials/tokens/PII before saving any screenshot. ## Integration Works with any browser MCP: -- `mChild__claude-in-chrome__*` tools (preferred — uses your actual Chrome) +- `mcp__claude-in-chrome__*` tools (preferred — uses your actual Chrome) - Playwright via `mcp__browserbase__*` - Direct Puppeteer scripts From 4674f9109746ff19e165cc464a8c1413b81bbb0c Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:15:56 -0500 Subject: [PATCH 70/78] test(dev-command): cover manager-specific option arity across both dev hooks Add cross-manager fixtures for the same short flag with different meanings (npm/pnpm -d, pnpm -w, bun -d, bun -c optional value), options before and after run, -- boundaries, quoted script names and missing values, through the real pre-bash-dev-server-block entry point and auto-tmux-dev. The new tests/lib/dev-command.test.js rows for npm and Yarn match real npm 11.6.0 and Yarn 4.9.2 runs of a scratch project whose dev script writes a marker. --- tests/hooks/auto-tmux-dev.test.js | 5 +- tests/hooks/pre-bash-dev-server-block.test.js | 201 ++++++++++++++++++ tests/lib/dev-command.test.js | 94 ++++++++ 3 files changed, 299 insertions(+), 1 deletion(-) create mode 100644 tests/lib/dev-command.test.js diff --git a/tests/hooks/auto-tmux-dev.test.js b/tests/hooks/auto-tmux-dev.test.js index d3b2a97f1..51335bec2 100644 --- a/tests/hooks/auto-tmux-dev.test.js +++ b/tests/hooks/auto-tmux-dev.test.js @@ -162,7 +162,10 @@ function runTests() { 'yarn --cwd app dev', // npm takes any config key as `--key value`, so an unknown option must // not swallow the script name. - 'npm --userconfig /tmp/npmrc run dev' + 'npm --userconfig /tmp/npmrc run dev', + // Option arity is per manager: npm -d and pnpm -w are boolean flags. + 'npm -d run dev', + 'pnpm -w dev' ]) { (test(`detects a quoted or option-separated dev script: ${command}`, () => { const result = runScript({ tool_input: { command } }); diff --git a/tests/hooks/pre-bash-dev-server-block.test.js b/tests/hooks/pre-bash-dev-server-block.test.js index 19b36c835..3c0856266 100644 --- a/tests/hooks/pre-bash-dev-server-block.test.js +++ b/tests/hooks/pre-bash-dev-server-block.test.js @@ -68,6 +68,30 @@ function runTests() { assert.ok(result.stderr.includes('BLOCKED'), `Expected stderr to contain BLOCKED, got: ${result.stderr}`); }) ? passed++ : failed++); + (test('blocks dev launch after an ANSI-C escaped apostrophe', () => { + for (const command of ["export x=$'it\\'s here'; npm run dev", "export x=$'it\\'s here'\nnpm run dev"]) { + const result = runScript(command); + assert.strictEqual(result.code, 2, `Expected exit code 2 for ${command}, got ${result.code}`); + } + }) ? passed++ : failed++); + + (test('blocks dev launch after a $$ that a quote follows', () => { + for (const command of ["echo $$'\\'; npm run dev", "cat <<$$'EOF'\nbody\n$$EOF\nnpm run dev"]) { + const result = runScript(command); + assert.strictEqual(result.code, 2, `Expected exit code 2 for ${JSON.stringify(command)}, got ${result.code}`); + } + }) ? passed++ : failed++); + + (test('allows a dev command quoted after a $$', () => { + const result = runScript("echo $$'; npm run dev'"); + assert.strictEqual(result.code, 0, `Expected exit code 0, got ${result.code}`); + }) ? passed++ : failed++); + + (test('allows a dev command mentioned inside an ANSI-C quoted string', () => { + const result = runScript("echo $'x\\' && npm run dev'"); + assert.strictEqual(result.code, 0, `Expected exit code 0, got ${result.code}`); + }) ? passed++ : failed++); + (test('blocks pnpm dev (exit code 2)', () => { const result = runScript('pnpm dev'); assert.strictEqual(result.code, 2, `Expected exit code 2, got ${result.code}`); @@ -87,6 +111,25 @@ function runTests() { const result = runScript('npm run dev:ssr'); assert.strictEqual(result.code, 2, `Expected exit code 2, got ${result.code}`); }) ? passed++ : failed++); + + (test('still blocks tmux run-shell and tmux -c — no pane keeps the log (exit 2)', () => { + for (const command of [ + 'tmux run-shell "npm run dev"', + 'tmux -L work run-shell "npm run dev"', + 'tmux -c "npm run dev"', + "tmux -c'npm run dev'", + // In -vL the L takes `new-session` as its socket name, so run-shell is the command. + 'tmux -vL new-session run-shell "npm run dev"', + // A pane command earlier in a sequence does not cover a later run-shell. + 'tmux new-session -d \\; run-shell "npm run dev"', + 'tmux -L work new-session -d \\; run-shell "npm run dev"', + // A `;` that ends an argument separates tmux commands too. + "tmux -L work new-session -d 'npm run dev;' run-shell 'npm run dev'" + ]) { + const result = runScript(command); + assert.strictEqual(result.code, 2, `Expected exit code 2 for ${command}, got ${result.code}`); + } + }) ? passed++ : failed++); } else { console.log(' (skipping blocking tests on Windows)\n'); } @@ -98,6 +141,34 @@ function runTests() { assert.strictEqual(result.code, 0, `Expected exit code 0, got ${result.code}`); }) ? passed++ : failed++); + (test('allows a tmux launch after tmux options, a path, an env prefix or a command alias (exit code 0)', () => { + for (const command of [ + 'tmux -L work new-session -d -s dev "npm run dev"', + 'tmux -f ~/.tmux.dev.conf new-session -d "npm run dev"', + '/opt/homebrew/bin/tmux new-session -d -s dev "npm run dev"', + 'env TERM=xterm-256color tmux new-session -d "npm run dev"', + 'tmux neww "npm run dev"', + 'tmux splitw -h "pnpm dev"' + ]) { + const result = runScript(command); + assert.strictEqual(result.code, 0, `Expected exit code 0 for ${command}, got ${result.code}`); + } + }) ? passed++ : failed++); + + (test('allows npm run dev sent to or respawned in a tmux pane (exit code 0)', () => { + for (const command of [ + 'tmux send-keys -t dev "npm run dev" Enter', + 'tmux respawn-pane -k -t dev "npm run dev"', + 'tmux new-session -d -s dev \\; send-keys -t dev "npm run dev" Enter', + "tmux new-session -d 'echo start;' send-keys -t dev 'npm run dev' Enter", + // In double quotes bash keeps the backslash before ;, so tmux reads a literal ; + 'tmux send-keys -t dev "echo ready\\;" "npm run dev" Enter' + ]) { + const result = runScript(command); + assert.strictEqual(result.code, 0, `Expected exit code 0 for ${command}, got ${result.code}`); + } + }) ? passed++ : failed++); + (test('allows npm install (exit code 0)', () => { const result = runScript('npm install'); assert.strictEqual(result.code, 0, `Expected exit code 0, got ${result.code}`); @@ -198,6 +269,11 @@ function runTests() { assert.strictEqual(result.code, 2, `Expected exit code 2, got ${result.code}`); }) ? passed++ : failed++); + (test("blocks echo $'it\\'s'; (npm run dev) — escaped apostrophe does not close $'...'", () => { + const result = runScript("echo $'it\\'s'; (npm run dev)"); + assert.strictEqual(result.code, 2, `Expected exit code 2, got ${result.code}`); + }) ? passed++ : failed++); + (test('allows $(echo "(npm run dev)") — () inside double-quoted substitution body is literal', () => { const result = runScript('$(echo "(npm run dev)")'); assert.strictEqual(result.code, 0, `Expected exit code 0, got ${result.code}`); @@ -234,6 +310,78 @@ function runTests() { }) ? passed++ : failed++); } + // --- Newlines --- + + if (!isWindows) { + (test('blocks a dev server after a single-quoted backslash and a separator', () => { + for (const command of ["echo 'x\\'; npm run dev", "echo 'x\\'\nnpm run dev"]) { + const result = runScript(command); + assert.strictEqual(result.code, 2, `Expected exit code 2 for ${JSON.stringify(command)}, got ${result.code}`); + } + }) ? passed++ : failed++); + + (test('blocks a dev server started on a later line of a multi-line command', () => { + const result = runScript('cd app\nnpm run dev'); + assert.strictEqual(result.code, 2, `Expected exit code 2, got ${result.code}`); + }) ? passed++ : failed++); + + (test('blocks a dev server after a here-document with an ANSI-C quoted delimiter', () => { + const result = runScript("cat <<$'EOF'\ntext\nEOF\nnpm run dev"); + assert.strictEqual(result.code, 2, `Expected exit code 2, got ${result.code}`); + }) ? passed++ : failed++); + + (test('blocks a dev server after a here-document with an escaped quote in its delimiter', () => { + const command = 'cat <<E"F\\"O"\nEF"O\nnpm run dev'; + const result = runScript(command); + assert.strictEqual(result.code, 2, `Expected exit code 2 for ${JSON.stringify(command)}, got ${result.code}`); + }) ? passed++ : failed++); + + (test('blocks a dev server started by a substitution in a here-document body', () => { + for (const command of ["npm --version <<EOF\n'$(npm run dev)'\nEOF", "cat <<EOF\n'$(npm run dev)'\nEOF"]) { + const result = runScript(command); + assert.strictEqual(result.code, 2, `Expected exit code 2 for ${JSON.stringify(command)}, got ${result.code}`); + } + }) ? passed++ : failed++); + + (test('blocks a dev command in a substitution with a very long body', () => { + const command = `echo "$(npm run dev; ${'true; '.repeat(150000)})"`; + const result = runScript(command); + assert.strictEqual(result.code, 2, `Expected exit code 2, got ${result.code}`); + }) ? passed++ : failed++); + + (test('blocks nested dev commands in expanded here-document substitutions', () => { + for (const command of [ + 'cat <<EOF\n\'$(echo "$(npm run dev)")\'\nEOF', + "cat <<EOF\n'$( (npm run dev) )'\nEOF", + ]) { + const result = runScript(command); + assert.strictEqual(result.code, 2, `Expected exit code 2 for ${JSON.stringify(command)}, got ${result.code}`); + } + const quoted = "cat <<'EOF'\n'$(echo \"$(npm run dev)\")'\nEOF"; + assert.strictEqual(runScript(quoted).code, 0, 'quoted here-document must remain literal'); + }) ? passed++ : failed++); + } + + (test('allows a here-document that only mentions a dev server', () => { + const result = runScript('cat <<EOF > README.md\nStart it with:\nnpm run dev\nEOF'); + assert.strictEqual(result.code, 0, `Expected exit code 0, got ${result.code}`); + }) ? passed++ : failed++); + + (test('allows a here-document body that follows an operator', () => { + const result = runScript('cat <<EOF &&\nnpm run dev\nEOF\necho done'); + assert.strictEqual(result.code, 0, `Expected exit code 0, got ${result.code}`); + }) ? passed++ : failed++); + + (test('allows a here-document body whose ANSI-C quoted delimiter has an escape', () => { + const result = runScript("cat <<$'E\\x4fF'\nE\\x4fF\nnpm run dev\nEOF"); + assert.strictEqual(result.code, 0, `Expected exit code 0, got ${result.code}`); + }) ? passed++ : failed++); + + (test('allows a here-document body fed to a package manager command', () => { + const result = runScript('npm --version <<EOF && cat\nnpm run dev\nEOF'); + assert.strictEqual(result.code, 0, `Expected exit code 0, got ${result.code}`); + }) ? passed++ : failed++); + // --- Edge cases --- (test('empty/invalid input passes through (exit code 0)', () => { @@ -327,6 +475,59 @@ function runTests() { }) ? passed++ : failed++); } + // --- Manager-specific option arity --- + // + // The same short flag means different things per manager: npm -d and pnpm -d + // are loglevel flags, bun -d is --define <K:V>, pnpm -w is the boolean + // --workspace-root. A shared value table swallowed `run` or `dev` after the + // boolean spellings, so `npm -d run dev` escaped tmux. + for (const command of [ + 'npm -d run dev', + 'npm -dd run dev', + 'npm -w app run dev', + 'pnpm -d dev', + 'pnpm -d run dev', + 'pnpm -w dev', + 'pnpm -C app dev', + 'pnpm --dir app run dev', + 'pnpm --filter web dev', + 'yarn -s dev', + 'yarn --cwd app run dev', + 'bun -d K:V dev', + 'bun --define K:V run dev', + 'bun --cwd app dev', + // bun -c takes an optional value, so both readings are checked. + 'bun -c dev', + 'bun -c bunfig.toml dev', + 'npm run dev -- --port 3000', + "tmux run-shell 'npm run \"dev\"'" + ]) { + (test(`blocks across manager grammars: ${command}`, () => { + const result = runScriptAsPosix(command); + assert.strictEqual(result.code, 2, `Expected exit code 2, got ${result.code}`); + assert.ok(result.stderr.includes('BLOCKED'), `Expected BLOCKED, got: ${result.stderr}`); + }) ? passed++ : failed++); + } + + for (const command of [ + 'pnpm --filter dev run build', + 'pnpm -F dev build', + 'pnpm -C dev build', + 'bun -d dev:1 build', + 'yarn --cwd dev build', + 'pnpm run build -- dev', + 'npm run lint -- "npm run dev"', + "tmux new-session -d -s dev 'npm run \"dev\"'", + // A value-taking option with no value consumes nothing that runs. + 'pnpm --filter', + 'npm run' + ]) { + (test(`allows across manager grammars: ${command}`, () => { + const result = runScriptAsPosix(command); + assert.strictEqual(result.code, 0, `Expected exit code 0, got ${result.code}: ${result.stderr}`); + }) ? passed++ : failed++); + } + (test('blocks the bare `pnpm dev` / `yarn dev` / `bun dev` forms', () => { for (const command of ['pnpm dev', 'yarn dev', 'bun dev', 'npm run dev:ssr']) { const result = runScriptAsPosix(command); diff --git a/tests/lib/dev-command.test.js b/tests/lib/dev-command.test.js new file mode 100644 index 000000000..379a3e2ba --- /dev/null +++ b/tests/lib/dev-command.test.js @@ -0,0 +1,94 @@ +/** + * Tests for scripts/lib/dev-command.js, the dev-server classifier shared by + * pre-bash-dev-server-block.js and auto-tmux-dev.js. + */ + +const assert = require('assert'); +const { isDevServerCommand, isDevServerSegment } = require('../../scripts/lib/dev-command'); + +let passed = 0; +let failed = 0; + +function test(name, fn) { + try { + fn(); + console.log(` ✓ ${name}`); + passed++; + } catch (error) { + console.log(` ✗ ${name}`); + console.log(` Error: ${error.message}`); + failed++; + } +} + +console.log('\n=== Testing dev-command.js ===\n'); + +// Each row was compared with real npm 11 / Yarn 4 runs of a scratch project +// whose `dev` script writes a marker: blocked exactly when the dev script ran. +for (const [command, expected] of [ + ['npm run dev', true], + ['npm run "dev"', true], + ['npm run de"v"', true], + ['npm -d run dev', true], + ['npm -s run dev', true], + ['npm --userconfig /dev/null run dev', true], + ['npm --prefix app run dev', true], + ['npm -w app run dev', true], + ['npm run-script dev', true], + ['npm run dev:ssr', true], + ['npm run build dev', false], + ['npm run run dev', false], + ['npm run dev-setup', false], + ['npm test -- --grep dev', false], + ['npm run build -- dev', false], + ['yarn dev', true], + ['yarn "dev"', true], + ['yarn --cwd app dev', true], + ['yarn run build dev', false], + ['yarn build dev', false], + ['yarn test -- dev', false], + ['yarn --cwd app run build', false] +]) { + test(`${expected ? 'detects' : 'ignores'}: ${command}`, () => { + assert.strictEqual(isDevServerCommand(command), expected); + }); +} + +// Grammar-derived rows for managers not installed in the verification run. +for (const [command, expected] of [ + ['pnpm -d dev', true], + ['pnpm -w dev', true], + ['pnpm -C app dev', true], + ['pnpm --filter dev run build', false], + ['bun -d K:V dev', true], + ['bun -c dev', true], + ['bun -c bunfig.toml dev', true], + ['bun -d dev:1 build', false] +]) { + test(`${expected ? 'detects' : 'ignores'} by documented grammar: ${command}`, () => { + assert.strictEqual(isDevServerCommand(command), expected); + }); +} + +test('tmux pane launches are exempt, run-shell is not', () => { + assert.strictEqual(isDevServerCommand('tmux new-session -d -s dev "npm run dev"'), false); + assert.strictEqual(isDevServerCommand('tmux run-shell \'npm run "dev"\''), true); +}); + +test('quoted documentation of a dev command is not a dev server', () => { + assert.strictEqual(isDevServerCommand('echo "npm run dev"'), false); + assert.strictEqual(isDevServerCommand('npm run lint -- "npm run dev"'), false); +}); + +test('substitutions and subshells are scanned', () => { + assert.strictEqual(isDevServerCommand('echo $(npm run dev)'), true); + assert.strictEqual(isDevServerCommand('(pnpm dev)'), true); +}); + +test('isDevServerSegment reads one segment', () => { + assert.strictEqual(isDevServerSegment('sudo -u me pnpm --dir app dev'), true); + assert.strictEqual(isDevServerSegment('npx eslint .'), false); +}); + +console.log(`\nResults: Passed: ${passed}, Failed: ${failed}`); +process.exit(failed > 0 ? 1 : 0); From 6c168ce9030e5a96b74be413f4fef54ebae0b319 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:18:48 -0500 Subject: [PATCH 71/78] docs(vibe): record native skill discovery on Vibe 3.1.2 A packed ecc-universal install with --target mistral-vibe --skills tdd-workflow,security-review was discovered as two project-scope skills by the SkillManager of both mistral-vibe 2.25.3 and 3.1.2 once the project was trusted, and by neither before trust. --- docs/MISTRAL-VIBE-GUIDE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/MISTRAL-VIBE-GUIDE.md b/docs/MISTRAL-VIBE-GUIDE.md index cc42d64cc..8a9fcca5e 100644 --- a/docs/MISTRAL-VIBE-GUIDE.md +++ b/docs/MISTRAL-VIBE-GUIDE.md @@ -1,7 +1,8 @@ # Mistral Vibe integration ECC provides a project-local, skills-first integration for Mistral Vibe. The -contract in this guide is verified against **Mistral Vibe v2.25.3**. +contract in this guide is verified against **Mistral Vibe v2.25.3** and +**Mistral Vibe v3.1.2**. ## Install a skill From 0269ac06055d92bc705d2050799385d8529b786f Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:19:25 -0500 Subject: [PATCH 72/78] fix(opencode): run V2 shell reminders and post-edit hooks OpenCode 2 renamed the V1 `bash` tool to `shell`, passes `{ path }` to `write`/`edit`, and publishes no `file.edited` event. The V2 adapter from #3854 forwarded those names unchanged, so on OpenCode 2 the git-push and long-running-command reminders, the PR-created log, the strict typecheck, the strict formatter, and the console.log warning never ran. Map `shell` to `bash` and `path` to `filePath` in the V2 tool input normalizer, and run the shared `file.edited` hook after a completed write/edit tool call. Failed tool calls do not trigger it. Carried forward from #3224, which found both gaps by live testing OpenCode 2.0.12; #3635 proposed the same edit derivation. Co-authored-by: Swapnil Sharma <swap.sha96@gmail.com> --- .opencode/plugins/ecc-hooks.ts | 47 ++++++++++++++++----- tests/opencode-plugin-hooks.test.js | 65 +++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 11 deletions(-) diff --git a/.opencode/plugins/ecc-hooks.ts b/.opencode/plugins/ecc-hooks.ts index 75df39c22..e71e0b07b 100644 --- a/.opencode/plugins/ecc-hooks.ts +++ b/.opencode/plugins/ecc-hooks.ts @@ -21,7 +21,10 @@ * Hook Event Mapping (V1 key -> V2 registration): * - tool.execute.before -> ctx.tool.hook("execute.before") * - tool.execute.after -> ctx.tool.hook("execute.after") - * - file.edited / file.watcher / session.* / todo.updated + * (V2 tool id `shell` is matched as V1 `bash`) + * - file.edited -> completed write/edit in execute.after + * (V2 publishes no file.edited event) + * - file.watcher / session.* / todo.updated * -> ctx.event.subscribe() filtered by type * - shell.env -> ctx.shell.hook("create.before") * - experimental.session.compacting -> ctx.session.hook("compaction") @@ -111,12 +114,31 @@ export const ECCHooksPluginDefinition = { const { hooks, worktreePath } = runtime // Normalize a V2 tool-hook event into the V1 ToolInput shape so both - // surfaces share one implementation. - const toToolInput = (event: LooseRecord): ToolInput => ({ - tool: String(event.tool ?? event.name ?? ""), - callID: event.callID ?? event.id, - args: (event.input ?? event.args) as ToolArgs | undefined, - }) + // surfaces share one implementation. OpenCode 2 renamed the V1 `bash` + // tool to `shell` and passes `{ path }` to `write`/`edit`, so map both + // back to the V1 names the shared runtime matches on. + const toToolInput = (event: LooseRecord): ToolInput => { + const rawTool = String(event.tool ?? event.name ?? "") + const tool = rawTool === "shell" ? "bash" : rawTool + let args = (event.input ?? event.args) as ToolArgs | undefined + if ( + (tool === "write" || tool === "edit") && + args && typeof args === "object" && + typeof args.filePath !== "string" && typeof args.path === "string" + ) { + args = { ...args, filePath: args.path } + } + return { tool, callID: event.callID ?? event.id, args } + } + + // OpenCode 2's public event stream has no `file.edited`, so V1's + // post-edit hook (formatter, console.log warning, idle audit input) is + // driven from the completed write/edit tool call instead. + const editedPath = (input: ToolInput): string | null => { + if (input.tool !== "write" && input.tool !== "edit") return null + const p = input.args?.filePath ?? input.args?.path + return typeof p === "string" && p.trim() ? p : null + } logStartup(directory) @@ -147,15 +169,18 @@ export const ECCHooksPluginDefinition = { if (typeof ctx?.tool?.hook === "function") { registrations.push(await ctx.tool.hook("execute.before", safe("execute.before", (event: LooseRecord) => hooks["tool.execute.before"](toToolInput(event), {})))) registrations.push( - await ctx.tool.hook("execute.after", safe("execute.after", (event: LooseRecord) => + await ctx.tool.hook("execute.after", safe("execute.after", async (event: LooseRecord) => { + const input = toToolInput(event) // R2-1: hand the shared handler the tool output object directly. The // skill tracker reads error fields (isError/is_error/status/error) off // `tool_response` itself; a `{ result: … }` wrapper made failed skill // runs look like successes. - hooks["tool.execute.after"](toToolInput(event), event.status === "error" + await hooks["tool.execute.after"](input, event.status === "error" ? { is_error: true } - : event.result ?? event.output), - )), + : event.result ?? event.output) + const edited = event.status === "error" ? null : editedPath(input) + if (edited) await hooks["file.edited"]({ path: edited }) + })), ) } diff --git a/tests/opencode-plugin-hooks.test.js b/tests/opencode-plugin-hooks.test.js index 7560224c1..d1878783c 100644 --- a/tests/opencode-plugin-hooks.test.js +++ b/tests/opencode-plugin-hooks.test.js @@ -1109,6 +1109,71 @@ async function main() { await dispose3() }), ], + [ + "V2 maps the shell tool id and runs post-edit hooks from completed write/edit calls", + async () => withTempProject([], async (projectDir) => { + const mod = await loadPlugin() + const definition = mod.default + fs.mkdirSync(path.join(projectDir, "src"), { recursive: true }) + fs.writeFileSync(path.join(projectDir, "src", "a.ts"), "console.log('debug')\n") + + const previousProfile = process.env.ECC_HOOK_PROFILE + process.env.ECC_HOOK_PROFILE = "strict" + resetSpawns() + const lines = [] + const originals = { info: console.info, warn: console.warn, debug: console.debug } + console.info = (...args) => lines.push(args.join(" ")) + console.warn = (...args) => lines.push(args.join(" ")) + console.debug = () => {} + const ctx = createMockV2Context(projectDir) + let dispose = async () => {} + try { + dispose = await definition.setup(ctx) + + // OpenCode 2 names the V1 `bash` tool `shell`. + await ctx.state.handlers["tool.execute.before"]({ tool: "shell", id: "s1", input: { command: "git push origin main" } }) + assert.ok( + lines.some((line) => line.includes("Remember to review changes before pushing")), + "the git-push reminder must fire for the V2 shell tool", + ) + + // OpenCode 2 publishes no file.edited event; a completed edit with + // V2's `{ path }` input must still run the post-edit hook. + lines.length = 0 + await ctx.state.handlers["tool.execute.after"]({ + tool: "edit", id: "e1", input: { path: "src/a.ts" }, status: "completed", result: {}, + }) + assert.ok( + lines.some((line) => line.includes("console.log found in src/a.ts")), + "the console.log warning must fire for a completed V2 edit", + ) + assert.ok( + spawnCalls.some((call) => call.args.join(" ").includes("prettier")), + "the strict-profile formatter must run for a completed V2 edit", + ) + + // A failed edit must not run the post-edit hook. + lines.length = 0 + resetSpawns() + await ctx.state.handlers["tool.execute.after"]({ + tool: "edit", id: "e2", input: { path: "src/a.ts" }, status: "error", error: { message: "no match" }, + }) + assert.ok( + !lines.some((line) => line.includes("console.log found")), + "a failed V2 edit must not trigger the post-edit hook", + ) + assert.ok( + !spawnCalls.some((call) => call.args.join(" ").includes("prettier")), + "a failed V2 edit must not run the formatter", + ) + } finally { + await dispose() + Object.assign(console, originals) + restoreEnv({ ECC_HOOK_PROFILE: previousProfile }) + resetSpawns() + } + }), + ], [ "setup() rolls back registrations when a later domain fails (T10)", async () => withTempProject([], async (projectDir) => { From 35335c95f4669262c699637f49cbf64cc7449734 Mon Sep 17 00:00:00 2001 From: haelyra <haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:22:26 -0500 Subject: [PATCH 73/78] docs(antigravity): label the native plugin adapter experimental Native validation proves plugin import with CLI 1.3.5, but authenticated tool and Stop execution through the native host is not yet verified. Keep the README install table and support matrix at experimental until a pinned native loader receipt covers lifecycle execution. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 823d1dc9d..1c88c91ed 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ Instead of rebuilding that process in every prompt, you install it once and make > Optimize the context window. Persist everything else. -ECC is MIT-licensed open source. It works best with Claude Code today, has native Codex, Qoder, and Antigravity plugin paths, and provides capability-limited adapters for Cursor, OpenCode, Gemini, Zed, GitHub Copilot, Qwen, and other harnesses. See the [support status matrix](#platform-support) before assuming feature parity. +ECC is MIT-licensed open source. It works best with Claude Code today, has native Codex and Qoder plugin paths, and provides capability-limited adapters for Cursor, OpenCode, Gemini, Zed, GitHub Copilot, Antigravity, Qwen, and other harnesses. See the [support status matrix](#platform-support) before assuming feature parity. Access to 72 agents, 327 skills, and 98 legacy command shims, plus hooks, rules, memory, continuous learning, and AgentShield security scanning. The agents are specialized for planning, review, build repair, security, architecture, and domain work. @@ -428,7 +428,7 @@ cd ECC | OpenCode | `npm install && npm run build:opencode && ./install.sh --profile full --target opencode --enable-hooks` | Builds the plugin payload before the full install | | Gemini CLI | `./install.sh --profile minimal --target gemini` | Project-local `.gemini/` config | | Zed | `./install.sh --profile minimal --target zed` | Project-local `.zed/` adapter | -| Antigravity (Global Plugin) | `./install.sh --target antigravity-home --profile core --enable-hooks` | Native Tier 1 global plugin (`~/.gemini/config/plugins/ecc/`) with lifecycle hooks · [Guide](docs/ANTIGRAVITY-GUIDE.md) | +| Antigravity (Global Plugin) | `./install.sh --target antigravity-home --profile core --enable-hooks` | Experimental global plugin (`~/.gemini/config/plugins/ecc/`) with lifecycle hooks · [Guide](docs/ANTIGRAVITY-GUIDE.md) | | Antigravity (Project-Local) | `./install.sh --target antigravity --profile minimal` | Project-local `.agents/` adapter · [Guide](docs/ANTIGRAVITY-GUIDE.md) | | Qwen CLI | `./install.sh --profile minimal --target qwen` | See the [Qwen guide](docs/QWEN-GUIDE.md) | | Hermes | `./install.sh --profile minimal --target hermes` | See the [Hermes setup guide](docs/HERMES-SETUP.md) | @@ -1331,7 +1331,7 @@ Treat `stable`, `beta`, `experimental`, and `instruction-only` below as capabili |---|---|---|---| | Claude Code | Stable primary | Plugin or selective installer | The plugin advertises the installed catalog to the model; use a selective/manual profile when context footprint matters. Optional shell-backed skills are not portable to every OS. | | Codex | Supported native plugin | Codex marketplace plugin or repo config | Native hooks require an explicit trust decision and do not use Claude's hook profiles. The legacy sync is compatibility-only. | -| Antigravity | Native plugin adapter | Antigravity 2.0/IDE plugin (`~/.gemini/config/plugins/ecc`) or project `.agents/` | Profile-gated lifecycle hooks, rules, workflows, skills, and memory MCP. CLI 1.3.5 validates local import; authenticated native tool and Stop execution remain unverified. | +| Antigravity | Experimental native plugin adapter | Antigravity 2.0/IDE plugin (`~/.gemini/config/plugins/ecc`) or project `.agents/` | Profile-gated lifecycle hooks, rules, workflows, skills, and memory MCP. CLI 1.3.5 validates local import; authenticated native tool and Stop execution remain unverified. | | Qoder | Supported native plugin | Local plugin directory in Qoder CLI or ZIP upload in Qoder IDE | Loads the canonical skills, agents, commands, and MCP config; only the reviewed SessionStart hook is enabled, and Node.js 18+ must be on the non-interactive PATH. | | Cursor | Beta project adapter | Selective installer into `.cursor/` | Agent discovery varies by Cursor build; hook events use profile-gated dispatchers, but full Claude feature parity is not claimed. | | OpenCode | Beta built plugin | Build plugin, then selective installer | ECC ships a subset of the catalog; connect a provider and select a model in OpenCode ([#2617](https://github.com/affaan-m/ECC/issues/2617)). | From e70034a4d55bc807a86796403f8ce9d9532fe28b Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:27:49 -0500 Subject: [PATCH 74/78] chore: bind skill trigger digest to updated django-celery guidance --- manifests/context-packs/skill-triggers@1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/context-packs/skill-triggers@1.json b/manifests/context-packs/skill-triggers@1.json index 91b727422..0f95f9b55 100644 --- a/manifests/context-packs/skill-triggers@1.json +++ b/manifests/context-packs/skill-triggers@1.json @@ -10,7 +10,7 @@ "id": "hand-seeded", "source": "manual-curation-pending-regeneration" }, - "registryDigest": "23bd986cff96ea33424b1a461461a70e3194582ce01927145fd3f956daeebf7f", + "registryDigest": "f4644a4db6f15bb5127343cc63503fbe13e2948e767472ac5ce2881c77a359a1", "schemaVersion": 1, "triggers": { "skill:agent-runtime-gateway-smoke-test": [ From fa47c22778c4d3e50c2916aea8c668e1eaf91f66 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 21:28:22 -0500 Subject: [PATCH 75/78] fix(deps): dedupe yarn.lock to match npm lock resolutions Yarn kept older transitive resolutions that npm had already moved past: ansi-regex 6.3.0, get-east-asian-width 1.6.0, micromark-core-commonmark 2.0.3, micromark-factory-space 2.0.1 and micromark-util-types 2.0.2. Run yarn dedupe and refresh ansi-regex and get-east-asian-width so both lockfiles resolve the same 294 package versions, as on main. --- yarn.lock | 59 +++++++++---------------------------------------------- 1 file changed, 9 insertions(+), 50 deletions(-) diff --git a/yarn.lock b/yarn.lock index b0bccc176..5a5274338 100644 --- a/yarn.lock +++ b/yarn.lock @@ -526,9 +526,9 @@ __metadata: linkType: hard "ansi-regex@npm:^6.2.2": - version: 6.3.0 - resolution: "ansi-regex@npm:6.3.0" - checksum: 10c0/bc047786d0531f1f22d1e22e9863e8554488a399f1ee5270b753efa6de938a788d27456f2b256770f11fdd8b1e847483bc1b55ddc2b3ffe82ec45c875292c651 + version: 6.6.0 + resolution: "ansi-regex@npm:6.6.0" + checksum: 10c0/a151a7bee21f74765c1bbc50cb778ca8d5138e01683b123aa63a5e5f4ae02cb9cff50598bd2ace4429917be7d312ec70a6d140e53030da76597202a018ce9899 languageName: node linkType: hard @@ -1267,9 +1267,9 @@ __metadata: linkType: hard "get-east-asian-width@npm:^1.5.0": - version: 1.6.0 - resolution: "get-east-asian-width@npm:1.6.0" - checksum: 10c0/7e72e9550fd49ca5b246f9af6bb2afc129c96412845ff6556b3274fd44817a381702ca17028efe9866b261a3d44254cbf21e6c90cf05b4b61675630af776d431 + version: 1.7.0 + resolution: "get-east-asian-width@npm:1.7.0" + checksum: 10c0/680a5f611a186e4a065291f31821f7e4ad7742625be814e05b8ab5535c6fa53562bc0333a83138fca5f2e1030ed960a561b2fd4629e0cff0dc68b19cf46d7c53 languageName: node linkType: hard @@ -1758,7 +1758,7 @@ __metadata: languageName: node linkType: hard -"micromark-core-commonmark@npm:2.0.4": +"micromark-core-commonmark@npm:2.0.4, micromark-core-commonmark@npm:^2.0.0": version: 2.0.4 resolution: "micromark-core-commonmark@npm:2.0.4" dependencies: @@ -1783,30 +1783,6 @@ __metadata: languageName: node linkType: hard -"micromark-core-commonmark@npm:^2.0.0": - version: 2.0.3 - resolution: "micromark-core-commonmark@npm:2.0.3" - dependencies: - decode-named-character-reference: "npm:^1.0.0" - devlop: "npm:^1.0.0" - micromark-factory-destination: "npm:^2.0.0" - micromark-factory-label: "npm:^2.0.0" - micromark-factory-space: "npm:^2.0.0" - micromark-factory-title: "npm:^2.0.0" - micromark-factory-whitespace: "npm:^2.0.0" - micromark-util-character: "npm:^2.0.0" - micromark-util-chunked: "npm:^2.0.0" - micromark-util-classify-character: "npm:^2.0.0" - micromark-util-html-tag-name: "npm:^2.0.0" - micromark-util-normalize-identifier: "npm:^2.0.0" - micromark-util-resolve-all: "npm:^2.0.0" - micromark-util-subtokenize: "npm:^2.0.0" - micromark-util-symbol: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/bd4a794fdc9e88dbdf59eaf1c507ddf26e5f7ddf4e52566c72239c0f1b66adbcd219ba2cd42350debbe24471434d5f5e50099d2b3f4e5762ca222ba8e5b549ee - languageName: node - linkType: hard - "micromark-extension-directive@npm:4.0.0": version: 4.0.0 resolution: "micromark-extension-directive@npm:4.0.0" @@ -1901,17 +1877,7 @@ __metadata: languageName: node linkType: hard -"micromark-factory-space@npm:^2.0.0": - version: 2.0.1 - resolution: "micromark-factory-space@npm:2.0.1" - dependencies: - micromark-util-character: "npm:^2.0.0" - micromark-util-types: "npm:^2.0.0" - checksum: 10c0/f9ed43f1c0652d8d898de0ac2be3f77f776fffe7dd96bdbba1e02d7ce33d3853c6ff5daa52568fc4fa32cdf3a62d86b85ead9b9189f7211e1d69ff2163c450fb - languageName: node - linkType: hard - -"micromark-factory-space@npm:^2.1.0": +"micromark-factory-space@npm:^2.0.0, micromark-factory-space@npm:^2.1.0": version: 2.1.0 resolution: "micromark-factory-space@npm:2.1.0" dependencies: @@ -2065,20 +2031,13 @@ __metadata: languageName: node linkType: hard -"micromark-util-types@npm:2.0.3, micromark-util-types@npm:^2.0.3": +"micromark-util-types@npm:2.0.3, micromark-util-types@npm:^2.0.0, micromark-util-types@npm:^2.0.3": version: 2.0.3 resolution: "micromark-util-types@npm:2.0.3" checksum: 10c0/fc37f4e5d58c06bb6dba16b608abbf8db6949a141bd21802c1110121ef7c093811145de2e22fc277cce8ba5e5a38788e14b5f0d142ef1cd0fcfd918ce6c7940c languageName: node linkType: hard -"micromark-util-types@npm:^2.0.0": - version: 2.0.2 - resolution: "micromark-util-types@npm:2.0.2" - checksum: 10c0/c8c15b96c858db781c4393f55feec10004bf7df95487636c9a9f7209e51002a5cca6a047c5d2a5dc669ff92da20e57aaa881e81a268d9ccadb647f9dce305298 - languageName: node - linkType: hard - "micromark@npm:4.0.3": version: 4.0.3 resolution: "micromark@npm:4.0.3" From 4b28aa9fe4d4b4f929da6d46db3a8f10f29629f9 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 22:03:55 -0500 Subject: [PATCH 76/78] test: keep integrated fixtures out of the shared temp directory Repair the CodeQL findings introduced by this integration without dismissing any alert: - OpenSpec validators: express the empty-symbol check as an explicit slice instead of an index-versus-length comparison (#2679). - OpenSpec tests: create file and outside-target fixtures inside private mkdtemp directories (#2679). - Antigravity policy test: give the bridge a private TMPDIR/TEMP/TMP so its edit accumulator never lands in the shared temp directory (#3221). - Session recording test: write partial bytes through the staging descriptor and read the saved file through one opened handle (#3952). Behavior and assertions are unchanged; each focused suite passes. --- scripts/ci/check-spec-freshness.js | 2 +- scripts/ci/validate-openspec-syntax.js | 2 +- tests/ci/check-spec-freshness.test.js | 10 ++++--- tests/ci/validate-openspec-syntax.test.js | 5 ++-- tests/lib/session-recording-atomic.test.js | 26 ++++++++++++------- tests/scripts/antigravity-hook-policy.test.js | 19 ++++++++++---- 6 files changed, 41 insertions(+), 23 deletions(-) diff --git a/scripts/ci/check-spec-freshness.js b/scripts/ci/check-spec-freshness.js index da7c3cd29..cb74b3507 100644 --- a/scripts/ci/check-spec-freshness.js +++ b/scripts/ci/check-spec-freshness.js @@ -120,7 +120,7 @@ function parseAnchor(raw) { return { invalid: true, reason: 'must not contain whitespace' }; } const sep = trimmed.indexOf('::'); - if (sep <= 0 || sep === trimmed.length - 2) { + if (sep <= 0 || trimmed.slice(sep + 2) === '') { return { invalid: true, reason: 'expected <path>::<symbol>' }; } const anchorPath = trimmed.slice(0, sep); diff --git a/scripts/ci/validate-openspec-syntax.js b/scripts/ci/validate-openspec-syntax.js index d77538b35..3c0649817 100644 --- a/scripts/ci/validate-openspec-syntax.js +++ b/scripts/ci/validate-openspec-syntax.js @@ -134,7 +134,7 @@ function parseAnchor(raw) { return { invalid: true, reason: 'must not contain whitespace' }; } const sep = trimmed.indexOf('::'); - if (sep <= 0 || sep === trimmed.length - 2) { + if (sep <= 0 || trimmed.slice(sep + 2) === '') { return { invalid: true, reason: 'expected <path>::<symbol>' }; } const anchorPath = trimmed.slice(0, sep); diff --git a/tests/ci/check-spec-freshness.test.js b/tests/ci/check-spec-freshness.test.js index 39c06d3a6..927b0db72 100644 --- a/tests/ci/check-spec-freshness.test.js +++ b/tests/ci/check-spec-freshness.test.js @@ -152,13 +152,14 @@ describe('check-spec-freshness (v1, file-level)', () => { }); it('exits 2 for a project root that is a file', () => { - const file = path.join(os.tmpdir(), 'ecc-file-' + Date.now()); + const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-file-')); + const file = path.join(dir, 'root-file'); fs.writeFileSync(file, 'x'); try { const result = runChecker(file); assert.strictEqual(result.exitCode, 2); } finally { - fs.rmSync(file, { force: true }); + fs.rmSync(dir, { recursive: true, force: true }); } }); @@ -303,7 +304,8 @@ describe('check-spec-freshness (v1, file-level)', () => { }); it('marks ORPHANED when an enforced target escapes via a symlink', () => { - const outside = path.join(os.tmpdir(), 'ecc-outside-' + Date.now() + '.txt'); + const outsideDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-outside-')); + const outside = path.join(outsideDir, 'outside.txt'); fs.writeFileSync(outside, 'outside\n'); fs.mkdirSync(path.join(repo, 'src'), { recursive: true }); fs.symlinkSync(outside, path.join(repo, 'src', 'link.js')); @@ -313,7 +315,7 @@ describe('check-spec-freshness (v1, file-level)', () => { const spec = parseJson(result).specs.find((s) => s.path.includes('escape')); assert.strictEqual(spec.status, 'ORPHANED', JSON.stringify(spec)); } finally { - fs.rmSync(outside, { force: true }); + fs.rmSync(outsideDir, { recursive: true, force: true }); } }); diff --git a/tests/ci/validate-openspec-syntax.test.js b/tests/ci/validate-openspec-syntax.test.js index 95a4877c1..f2ae4d73e 100644 --- a/tests/ci/validate-openspec-syntax.test.js +++ b/tests/ci/validate-openspec-syntax.test.js @@ -118,13 +118,14 @@ describe('validate-openspec-syntax (v1 schema)', () => { }); it('exits 2 when root is a file, not a directory', () => { - const file = path.join(os.tmpdir(), 'ecc-vs-file-' + Date.now()); + const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-vs-file-')); + const file = path.join(dir, 'root-file'); fs.writeFileSync(file, 'x'); try { const result = runValidator(file); assert.strictEqual(result.exitCode, 2); } finally { - fs.rmSync(file, { force: true }); + fs.rmSync(dir, { recursive: true, force: true }); } }); }); diff --git a/tests/lib/session-recording-atomic.test.js b/tests/lib/session-recording-atomic.test.js index 8dfbb02c2..87b07a4cf 100644 --- a/tests/lib/session-recording-atomic.test.js +++ b/tests/lib/session-recording-atomic.test.js @@ -37,9 +37,12 @@ function failAfterPartialWrite(callback, observe) { const originalWrite = fs.writeFileSync; const error = Object.assign(new Error('Simulated disk full after partial write'), { code: 'ENOSPC' }); let calls = 0; - fs.writeFileSync = (destination, _contents, options) => { + fs.writeFileSync = destination => { calls += 1; - originalWrite(destination, '{"incomplete":', options); + // The atomic writer stages through an open descriptor; write the partial + // bytes to that same descriptor instead of re-opening any path. + assert.strictEqual(typeof destination, 'number', 'staging must write through a descriptor'); + fs.writeSync(destination, '{"incomplete":'); observe(); throw error; }; @@ -127,14 +130,12 @@ if (process.platform !== 'win32') { const next = snapshot(`Permissions ${mode.toString(8)}`); const originalWrite = fs.writeFileSync; const observedModes = []; - fs.writeFileSync = (destination, contents, writeOptions) => { - const readMode = () => (typeof destination === 'number' - ? fs.fstatSync(destination) - : fs.statSync(destination)).mode & 0o777; + fs.writeFileSync = (destination, contents) => { + assert.strictEqual(typeof destination, 'number', 'staging must write through a descriptor'); + const readMode = () => fs.fstatSync(destination).mode & 0o777; observedModes.push(readMode()); - const result = originalWrite(destination, contents, writeOptions); + fs.writeSync(destination, contents); observedModes.push(readMode()); - return result; }; try { persistCanonicalSnapshot(next, options); @@ -145,8 +146,13 @@ if (process.platform !== 'win32') { for (const observed of observedModes) { assert.strictEqual(observed & ~mode, 0, 'staging must not grant permissions absent from the saved recording'); } - assert.strictEqual(fs.statSync(filePath).mode & 0o777, mode); - assert.deepStrictEqual(JSON.parse(fs.readFileSync(filePath, 'utf8')).latest, next); + const savedFd = fs.openSync(filePath, 'r'); + try { + assert.strictEqual(fs.fstatSync(savedFd).mode & 0o777, mode); + assert.deepStrictEqual(JSON.parse(fs.readFileSync(savedFd, 'utf8')).latest, next); + } finally { + fs.closeSync(savedFd); + } } } finally { fs.rmSync(recordingDir, { recursive: true, force: true }); diff --git a/tests/scripts/antigravity-hook-policy.test.js b/tests/scripts/antigravity-hook-policy.test.js index f232c269f..1ec259d18 100644 --- a/tests/scripts/antigravity-hook-policy.test.js +++ b/tests/scripts/antigravity-hook-policy.test.js @@ -22,12 +22,15 @@ test('minimal installs retain warning handlers for explicit runtime profile over entry.hooks.some(hook => hook.command.includes('pre:write:doc-file-warning')))); }); +// Per-test private temp root so the bridge's accumulator never lands in the shared temp dir. +let tmpEnv = {}; + function invoke(mode, hook, payload, env = {}) { const child = spawnSync(process.execPath, [bridge, '--mode', mode, '--hook', hook], { input: JSON.stringify(payload), encoding: 'utf8', timeout: 15000, env: { ...process.env, ECC_HOOKS_ENABLED: 'true', ECC_HOOK_PROFILE: 'standard', - ECC_DISABLED_HOOKS: '', ECC_DRY_RUN: '0', ECC_HOOK_CONFIG: '', ...env, + ECC_DISABLED_HOOKS: '', ECC_DRY_RUN: '0', ECC_HOOK_CONFIG: '', ...tmpEnv, ...env, }, }); assert.equal(child.status, 0, child.stderr); @@ -37,7 +40,9 @@ function invoke(mode, hook, payload, env = {}) { test('Stop formatting writes only when enabled; disabled, minimal and dry-run preserve edits', () => { const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-agy-policy-')); const conversationId = path.basename(root); - const accumulator = path.join(os.tmpdir(), `ecc-edited-${conversationId}.txt`); + const privateTmp = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-agy-tmp-')); + tmpEnv = { TMPDIR: privateTmp, TEMP: privateTmp, TMP: privateTmp }; + const accumulator = path.join(privateTmp, `ecc-edited-${conversationId}.txt`); try { const target = path.join(root, 'component.js'); const marker = path.join(root, 'formatter-args.json'); @@ -66,14 +71,17 @@ test('Stop formatting writes only when enabled; disabled, minimal and dry-run pr } } finally { fs.rmSync(root, { recursive: true, force: true }); - fs.rmSync(accumulator, { force: true }); + fs.rmSync(privateTmp, { recursive: true, force: true }); + tmpEnv = {}; } }); test('PostToolUse and warnings honor the same execution controls', () => { const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-agy-flags-')); const conversationId = path.basename(root); - const accumulator = path.join(os.tmpdir(), `ecc-edited-${conversationId}.txt`); + const privateTmp = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-agy-tmp-')); + tmpEnv = { TMPDIR: privateTmp, TEMP: privateTmp, TMP: privateTmp }; + const accumulator = path.join(privateTmp, `ecc-edited-${conversationId}.txt`); try { const edit = { conversationId, toolCall: { name: 'write_to_file', args: { TargetFile: path.join(root, 'app.js') } } }; for (const env of [...controls.slice(0, 2), { ECC_DISABLED_HOOKS: 'post:edit:accumulator' }, controls[3]]) { @@ -89,7 +97,8 @@ test('PostToolUse and warnings honor the same execution controls', () => { assert.equal(fs.readFileSync(accumulator, 'utf8').trim(), edit.toolCall.args.TargetFile); } finally { fs.rmSync(root, { recursive: true, force: true }); - fs.rmSync(accumulator, { force: true }); + fs.rmSync(privateTmp, { recursive: true, force: true }); + tmpEnv = {}; } }); From 6ad1587064a4cfb89f80016f096128a71143aafe Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 22:35:15 -0500 Subject: [PATCH 77/78] test(session): inspect saved recordings through one handle Resolve each recording fixture root with realpath after mkdtemp, and check or change the published file's mode through a single opened descriptor instead of a stat/chmod followed by a later open. This removes the remaining CodeQL temp-file and check-then-use findings from #3952's regression test without changing its assertions. --- tests/lib/session-recording-atomic.test.js | 33 ++++++++++++++-------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/tests/lib/session-recording-atomic.test.js b/tests/lib/session-recording-atomic.test.js index 87b07a4cf..13f48fdb6 100644 --- a/tests/lib/session-recording-atomic.test.js +++ b/tests/lib/session-recording-atomic.test.js @@ -61,7 +61,7 @@ const backends = [ for (const [backend, loadStateStoreImpl] of backends) { test(`failed replacement preserves prior snapshot and history: ${backend}`, () => { - const recordingDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-recording-replace-')); + const recordingDir = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-recording-replace-'))); try { const options = { recordingDir, loadStateStoreImpl }; const first = snapshot('Existing session'); @@ -90,7 +90,7 @@ for (const [backend, loadStateStoreImpl] of backends) { }); test(`failed first write does not publish an invalid recording: ${backend}`, () => { - const recordingDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-recording-initial-')); + const recordingDir = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-recording-initial-'))); try { const options = { recordingDir, loadStateStoreImpl }; const first = snapshot('First session'); @@ -115,18 +115,30 @@ for (const [backend, loadStateStoreImpl] of backends) { }); } +/** Inspect or adjust the published recording through one opened handle. */ +function withSavedRecording(filePath, inspect) { + const fd = fs.openSync(filePath, 'r'); + try { + return inspect(fd); + } finally { + fs.closeSync(fd); + } +} + if (process.platform !== 'win32') { test('recording publication preserves creation umask and existing POSIX permissions', () => { - const recordingDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-recording-mode-')); + const recordingDir = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-recording-mode-'))); try { const options = { recordingDir, loadStateStoreImpl: () => null }; const first = snapshot('Initial permissions'); const filePath = getFallbackSessionRecordingPath(first, options); persistCanonicalSnapshot(first, options); - assert.strictEqual(fs.statSync(filePath).mode & 0o777, 0o666 & ~process.umask()); + withSavedRecording(filePath, fd => { + assert.strictEqual(fs.fstatSync(fd).mode & 0o777, 0o666 & ~process.umask()); + }); for (const mode of [0o600, 0o640, 0o660]) { - fs.chmodSync(filePath, mode); + withSavedRecording(filePath, fd => fs.fchmodSync(fd, mode)); const next = snapshot(`Permissions ${mode.toString(8)}`); const originalWrite = fs.writeFileSync; const observedModes = []; @@ -146,13 +158,10 @@ if (process.platform !== 'win32') { for (const observed of observedModes) { assert.strictEqual(observed & ~mode, 0, 'staging must not grant permissions absent from the saved recording'); } - const savedFd = fs.openSync(filePath, 'r'); - try { - assert.strictEqual(fs.fstatSync(savedFd).mode & 0o777, mode); - assert.deepStrictEqual(JSON.parse(fs.readFileSync(savedFd, 'utf8')).latest, next); - } finally { - fs.closeSync(savedFd); - } + withSavedRecording(filePath, fd => { + assert.strictEqual(fs.fstatSync(fd).mode & 0o777, mode); + assert.deepStrictEqual(JSON.parse(fs.readFileSync(fd, 'utf8')).latest, next); + }); } } finally { fs.rmSync(recordingDir, { recursive: true, force: true }); From 94638582873593bcc359ac8dc4004b22c7077343 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Mon, 16 Nov 2026 23:20:43 -0500 Subject: [PATCH 78/78] test(session): locate the mode fixture inside its private directory Find the published recording by walking the test's mkdtemp directory instead of reusing the library path helper, whose shared-temp default CodeQL traces into the read handle. The basename is still asserted against getFallbackSessionRecordingPath. (cherry picked from commit 856f9e81ffb89aea02bd276d8ec819fad7f9f827) --- tests/lib/session-recording-atomic.test.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tests/lib/session-recording-atomic.test.js b/tests/lib/session-recording-atomic.test.js index 13f48fdb6..62b5fccdc 100644 --- a/tests/lib/session-recording-atomic.test.js +++ b/tests/lib/session-recording-atomic.test.js @@ -115,6 +115,21 @@ for (const [backend, loadStateStoreImpl] of backends) { }); } +/** The single published recording under a private fixture directory. */ +function findOnlyRecording(directory) { + const found = []; + const walk = current => { + for (const entry of fs.readdirSync(current, { withFileTypes: true })) { + const child = path.join(current, entry.name); + if (entry.isDirectory()) walk(child); + else if (entry.isFile() && entry.name.endsWith('.json')) found.push(child); + } + }; + walk(directory); + assert.strictEqual(found.length, 1, `expected one recording, found ${found.length}`); + return found[0]; +} + /** Inspect or adjust the published recording through one opened handle. */ function withSavedRecording(filePath, inspect) { const fd = fs.openSync(filePath, 'r'); @@ -131,8 +146,11 @@ if (process.platform !== 'win32') { try { const options = { recordingDir, loadStateStoreImpl: () => null }; const first = snapshot('Initial permissions'); - const filePath = getFallbackSessionRecordingPath(first, options); persistCanonicalSnapshot(first, options); + // Locate the published file inside this test's private directory so the + // path never derives from the library's shared-temp default. + const filePath = findOnlyRecording(recordingDir); + assert.strictEqual(path.basename(filePath), path.basename(getFallbackSessionRecordingPath(first, options))); withSavedRecording(filePath, fd => { assert.strictEqual(fs.fstatSync(fd).mode & 0o777, 0o666 & ~process.umask()); });