audit-tools 0.32.68 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/audit/cli/advanceAuditCommand.d.ts.map +1 -1
- package/dist/audit/cli/advanceAuditCommand.js +8 -3
- package/dist/audit/cli/advanceAuditCommand.js.map +1 -1
- package/dist/audit/cli/args.d.ts +9 -27
- package/dist/audit/cli/args.d.ts.map +1 -1
- package/dist/audit/cli/args.js +119 -50
- package/dist/audit/cli/args.js.map +1 -1
- package/dist/audit/cli/auditStep.d.ts +15 -1
- package/dist/audit/cli/auditStep.d.ts.map +1 -1
- package/dist/audit/cli/auditStep.js +2 -0
- package/dist/audit/cli/auditStep.js.map +1 -1
- package/dist/audit/cli/dispatch/quotaPool.d.ts +2 -1
- package/dist/audit/cli/dispatch/quotaPool.d.ts.map +1 -1
- package/dist/audit/cli/dispatch/quotaPool.js +43 -77
- package/dist/audit/cli/dispatch/quotaPool.js.map +1 -1
- package/dist/audit/cli/dispatch.d.ts.map +1 -1
- package/dist/audit/cli/dispatch.js +14 -6
- package/dist/audit/cli/dispatch.js.map +1 -1
- package/dist/audit/cli/hybridDispatch.d.ts +3 -1
- package/dist/audit/cli/hybridDispatch.d.ts.map +1 -1
- package/dist/audit/cli/hybridDispatch.js +6 -0
- package/dist/audit/cli/hybridDispatch.js.map +1 -1
- package/dist/audit/cli/nextStepCommand.d.ts +0 -9
- package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
- package/dist/audit/cli/nextStepCommand.js +173 -92
- package/dist/audit/cli/nextStepCommand.js.map +1 -1
- package/dist/audit/cli/nextStepHelpers.d.ts +11 -2
- package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
- package/dist/audit/cli/nextStepHelpers.js +56 -8
- package/dist/audit/cli/nextStepHelpers.js.map +1 -1
- package/dist/audit/cli/prepareDispatchCommand.d.ts.map +1 -1
- package/dist/audit/cli/prepareDispatchCommand.js +15 -9
- package/dist/audit/cli/prepareDispatchCommand.js.map +1 -1
- package/dist/audit/cli/prompts.d.ts +12 -32
- package/dist/audit/cli/prompts.d.ts.map +1 -1
- package/dist/audit/cli/prompts.js +19 -33
- package/dist/audit/cli/prompts.js.map +1 -1
- package/dist/audit/cli/providerConfirmationStep.d.ts +13 -5
- package/dist/audit/cli/providerConfirmationStep.d.ts.map +1 -1
- package/dist/audit/cli/providerConfirmationStep.js +47 -8
- package/dist/audit/cli/providerConfirmationStep.js.map +1 -1
- package/dist/audit/cli/quotaCommand.d.ts.map +1 -1
- package/dist/audit/cli/quotaCommand.js +16 -10
- package/dist/audit/cli/quotaCommand.js.map +1 -1
- package/dist/audit/cli/rollingAuditDispatch.d.ts.map +1 -1
- package/dist/audit/cli/rollingAuditDispatch.js +14 -1
- package/dist/audit/cli/rollingAuditDispatch.js.map +1 -1
- package/dist/audit/cli/semanticReviewStep.d.ts +11 -1
- package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -1
- package/dist/audit/cli/semanticReviewStep.js +11 -15
- package/dist/audit/cli/semanticReviewStep.js.map +1 -1
- package/dist/audit/cli/validateCommand.d.ts.map +1 -1
- package/dist/audit/cli/validateCommand.js +3 -3
- package/dist/audit/cli/validateCommand.js.map +1 -1
- package/dist/audit/cli.js +3 -3
- package/dist/audit/cli.js.map +1 -1
- package/dist/audit/contracts/wrapperResponse.d.ts +6 -6
- package/dist/audit/orchestrator/advance.d.ts.map +1 -1
- package/dist/audit/orchestrator/advance.js +39 -7
- package/dist/audit/orchestrator/advance.js.map +1 -1
- package/dist/audit/orchestrator/advanceTypes.d.ts +52 -1
- package/dist/audit/orchestrator/advanceTypes.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.js +9 -1
- package/dist/audit/orchestrator/executorRunners.js.map +1 -1
- package/dist/audit/orchestrator/intakeExecutors.d.ts +27 -3
- package/dist/audit/orchestrator/intakeExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/intakeExecutors.js +119 -19
- package/dist/audit/orchestrator/intakeExecutors.js.map +1 -1
- package/dist/audit/orchestrator/nextStep.d.ts +7 -0
- package/dist/audit/orchestrator/nextStep.d.ts.map +1 -1
- package/dist/audit/orchestrator/nextStep.js +3 -0
- package/dist/audit/orchestrator/nextStep.js.map +1 -1
- package/dist/audit/orchestrator/providerConfirmation.d.ts.map +1 -1
- package/dist/audit/orchestrator/providerConfirmation.js +0 -2
- package/dist/audit/orchestrator/providerConfirmation.js.map +1 -1
- package/dist/audit/orchestrator/rollingDispatch.d.ts.map +1 -1
- package/dist/audit/orchestrator/rollingDispatch.js +2 -0
- package/dist/audit/orchestrator/rollingDispatch.js.map +1 -1
- package/dist/audit/orchestrator/state.d.ts +17 -0
- package/dist/audit/orchestrator/state.d.ts.map +1 -1
- package/dist/audit/orchestrator/state.js +13 -1
- package/dist/audit/orchestrator/state.js.map +1 -1
- package/dist/audit/providers/claudeWorkerProvider.d.ts +10 -0
- package/dist/audit/providers/claudeWorkerProvider.d.ts.map +1 -0
- package/dist/audit/providers/claudeWorkerProvider.js +15 -0
- package/dist/audit/providers/claudeWorkerProvider.js.map +1 -0
- package/dist/audit/providers/index.d.ts.map +1 -1
- package/dist/audit/providers/index.js +2 -0
- package/dist/audit/providers/index.js.map +1 -1
- package/dist/audit/quota/index.d.ts +133 -128
- package/dist/audit/quota/index.d.ts.map +1 -1
- package/dist/audit/supervisor/sessionConfig.d.ts +3 -11
- package/dist/audit/supervisor/sessionConfig.d.ts.map +1 -1
- package/dist/audit/supervisor/sessionConfig.js +3 -25
- package/dist/audit/supervisor/sessionConfig.js.map +1 -1
- package/dist/audit/types/analyzerCapability.d.ts +6 -6
- package/dist/audit/types/externalAnalyzer.d.ts +10 -10
- package/dist/remediate/index.d.ts.map +1 -1
- package/dist/remediate/index.js +2 -2
- package/dist/remediate/index.js.map +1 -1
- package/dist/remediate/phases/plan.d.ts.map +1 -1
- package/dist/remediate/phases/plan.js +5 -4
- package/dist/remediate/phases/plan.js.map +1 -1
- package/dist/remediate/providers/claudeWorkerProvider.d.ts +11 -0
- package/dist/remediate/providers/claudeWorkerProvider.d.ts.map +1 -0
- package/dist/remediate/providers/claudeWorkerProvider.js +16 -0
- package/dist/remediate/providers/claudeWorkerProvider.js.map +1 -0
- package/dist/remediate/providers/index.d.ts.map +1 -1
- package/dist/remediate/providers/index.js +2 -0
- package/dist/remediate/providers/index.js.map +1 -1
- package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipeline.js +9 -3
- package/dist/remediate/steps/contractPipeline.js.map +1 -1
- package/dist/remediate/steps/dispatch/acceptNode.d.ts +1 -1
- package/dist/remediate/steps/dispatch/acceptNode.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/acceptNode.js.map +1 -1
- package/dist/remediate/steps/dispatch/marshal.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/marshal.js +5 -4
- package/dist/remediate/steps/dispatch/marshal.js.map +1 -1
- package/dist/remediate/steps/dispatch/waveScheduling.d.ts +4 -2
- package/dist/remediate/steps/dispatch/waveScheduling.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/waveScheduling.js +33 -85
- package/dist/remediate/steps/dispatch/waveScheduling.js.map +1 -1
- package/dist/remediate/steps/nextStep.d.ts +21 -10
- package/dist/remediate/steps/nextStep.d.ts.map +1 -1
- package/dist/remediate/steps/nextStep.js +45 -25
- package/dist/remediate/steps/nextStep.js.map +1 -1
- package/dist/remediate/steps/sessionConfigLoad.d.ts +46 -0
- package/dist/remediate/steps/sessionConfigLoad.d.ts.map +1 -0
- package/dist/remediate/steps/sessionConfigLoad.js +39 -0
- package/dist/remediate/steps/sessionConfigLoad.js.map +1 -0
- package/dist/shared/config/resolveSessionConfig.d.ts +75 -0
- package/dist/shared/config/resolveSessionConfig.d.ts.map +1 -0
- package/dist/shared/config/resolveSessionConfig.js +125 -0
- package/dist/shared/config/resolveSessionConfig.js.map +1 -0
- package/dist/shared/dispatch/admissionLoop.d.ts +12 -12
- package/dist/shared/dispatch/coordinator.d.ts.map +1 -1
- package/dist/shared/dispatch/coordinator.js +52 -6
- package/dist/shared/dispatch/coordinator.js.map +1 -1
- package/dist/shared/dispatch/hybridDispatch.d.ts +6 -0
- package/dist/shared/dispatch/hybridDispatch.d.ts.map +1 -1
- package/dist/shared/dispatch/hybridDispatch.js +6 -0
- package/dist/shared/dispatch/hybridDispatch.js.map +1 -1
- package/dist/shared/dispatch/providerLaunchFinalize.d.ts +2 -1
- package/dist/shared/dispatch/providerLaunchFinalize.d.ts.map +1 -1
- package/dist/shared/dispatch/providerLaunchFinalize.js +123 -68
- package/dist/shared/dispatch/providerLaunchFinalize.js.map +1 -1
- package/dist/shared/dispatch/rollingDispatch.d.ts +69 -2
- package/dist/shared/dispatch/rollingDispatch.d.ts.map +1 -1
- package/dist/shared/dispatch/rollingDispatch.js +177 -7
- package/dist/shared/dispatch/rollingDispatch.js.map +1 -1
- package/dist/shared/dispatch/unifiedRolling.d.ts +23 -0
- package/dist/shared/dispatch/unifiedRolling.d.ts.map +1 -1
- package/dist/shared/dispatch/unifiedRolling.js +2 -0
- package/dist/shared/dispatch/unifiedRolling.js.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.d.ts +52 -1
- package/dist/shared/friction/stepBoundaryCapture.d.ts.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.js +87 -0
- package/dist/shared/friction/stepBoundaryCapture.js.map +1 -1
- package/dist/shared/index.d.ts +20 -10
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +20 -6
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/io/stateDir.d.ts +27 -0
- package/dist/shared/io/stateDir.d.ts.map +1 -0
- package/dist/shared/io/stateDir.js +40 -0
- package/dist/shared/io/stateDir.js.map +1 -0
- package/dist/shared/providers/auditorSources.d.ts +169 -0
- package/dist/shared/providers/auditorSources.d.ts.map +1 -0
- package/dist/shared/providers/auditorSources.js +453 -0
- package/dist/shared/providers/auditorSources.js.map +1 -0
- package/dist/shared/providers/claudeWorkerProvider.d.ts +71 -0
- package/dist/shared/providers/claudeWorkerProvider.d.ts.map +1 -0
- package/dist/shared/providers/claudeWorkerProvider.js +133 -0
- package/dist/shared/providers/claudeWorkerProvider.js.map +1 -0
- package/dist/shared/providers/providerConfirmation.d.ts +3 -20
- package/dist/shared/providers/providerConfirmation.d.ts.map +1 -1
- package/dist/shared/providers/providerConfirmation.js +27 -40
- package/dist/shared/providers/providerConfirmation.js.map +1 -1
- package/dist/shared/providers/providerFactory.d.ts +13 -1
- package/dist/shared/providers/providerFactory.d.ts.map +1 -1
- package/dist/shared/providers/providerFactory.js +12 -0
- package/dist/shared/providers/providerFactory.js.map +1 -1
- package/dist/shared/providers/proxyCatalog.d.ts +95 -0
- package/dist/shared/providers/proxyCatalog.d.ts.map +1 -0
- package/dist/shared/providers/proxyCatalog.js +426 -0
- package/dist/shared/providers/proxyCatalog.js.map +1 -0
- package/dist/shared/providers/sharedProviderConfirmation.d.ts +264 -75
- package/dist/shared/providers/sharedProviderConfirmation.d.ts.map +1 -1
- package/dist/shared/providers/sharedProviderConfirmation.js +534 -113
- package/dist/shared/providers/sharedProviderConfirmation.js.map +1 -1
- package/dist/shared/quota/apiPool.d.ts +34 -11
- package/dist/shared/quota/apiPool.d.ts.map +1 -1
- package/dist/shared/quota/apiPool.js +52 -23
- package/dist/shared/quota/apiPool.js.map +1 -1
- package/dist/shared/quota/capacity.d.ts +79 -50
- package/dist/shared/quota/capacity.d.ts.map +1 -1
- package/dist/shared/quota/capacity.js +40 -5
- package/dist/shared/quota/capacity.js.map +1 -1
- package/dist/shared/quota/errorParsing.d.ts +39 -0
- package/dist/shared/quota/errorParsing.d.ts.map +1 -1
- package/dist/shared/quota/errorParsing.js +76 -0
- package/dist/shared/quota/errorParsing.js.map +1 -1
- package/dist/shared/quota/hostPool.d.ts +107 -0
- package/dist/shared/quota/hostPool.d.ts.map +1 -0
- package/dist/shared/quota/hostPool.js +103 -0
- package/dist/shared/quota/hostPool.js.map +1 -0
- package/dist/shared/quota/quotaSource.d.ts +2 -2
- package/dist/shared/types/auditorDescriptor.d.ts +120 -0
- package/dist/shared/types/auditorDescriptor.d.ts.map +1 -0
- package/dist/shared/types/auditorDescriptor.js +28 -0
- package/dist/shared/types/auditorDescriptor.js.map +1 -0
- package/dist/shared/types/providerConfirmation.d.ts +64 -6
- package/dist/shared/types/providerConfirmation.d.ts.map +1 -1
- package/dist/shared/types/providerConfirmation.js +1 -1
- package/dist/shared/types/rollingDispatch.d.ts +45 -1
- package/dist/shared/types/rollingDispatch.d.ts.map +1 -1
- package/dist/shared/types/sessionConfig.d.ts +149 -67
- package/dist/shared/types/sessionConfig.d.ts.map +1 -1
- package/dist/shared/types/sessionConfig.js +87 -2
- package/dist/shared/types/sessionConfig.js.map +1 -1
- package/dist/shared/validation/sessionConfig.d.ts +26 -14
- package/dist/shared/validation/sessionConfig.d.ts.map +1 -1
- package/dist/shared/validation/sessionConfig.js +95 -69
- package/dist/shared/validation/sessionConfig.js.map +1 -1
- package/docs/audit-pkg/contracts.md +4 -4
- package/docs/audit-pkg/operator-guide.md +43 -24
- package/package.json +1 -1
- package/skills/audit-code/SKILL.md +17 -14
- package/skills/audit-code/audit-code.prompt.md +17 -16
- package/wrapper/audit-code-wrapper-install-hosts.mjs +6 -10
- package/wrapper/remediate-code-wrapper-install-hosts.mjs +4 -8
- package/dist/shared/quota/repairProxyRegistry.d.ts +0 -84
- package/dist/shared/quota/repairProxyRegistry.d.ts.map +0 -1
- package/dist/shared/quota/repairProxyRegistry.js +0 -144
- package/dist/shared/quota/repairProxyRegistry.js.map +0 -1
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { HostModelRosterEntry } from "../quota/scheduler.js";
|
|
2
|
+
import type { AntigravityConfig, ClaudeCodeConfig, DispatchableSource, ProviderName, VSCodeTaskConfig } from "./sessionConfig.js";
|
|
3
|
+
/**
|
|
4
|
+
* The host-emitted description of the auditor DRIVING this run — its provider
|
|
5
|
+
* identity, own launch transport, and dispatch-capability handshake for its own
|
|
6
|
+
* model/context. All optional: a field is present only when the host declared it
|
|
7
|
+
* this invocation. (G1: collapsed the former `--host-*` flag bag onto
|
|
8
|
+
* `descriptor.self`. G2: folded the driver's provider identity + its own launch
|
|
9
|
+
* blocks onto `self`, so the descriptor fully describes WHO drives + HOW to launch
|
|
10
|
+
* it, with the reachable dispatch pool on {@link AuditorDescriptor.sources}.)
|
|
11
|
+
*/
|
|
12
|
+
export interface AuditorSelf {
|
|
13
|
+
/**
|
|
14
|
+
* The driver's provider identity — the conversation-host/quota-attribution key
|
|
15
|
+
* for THIS run (collapsed from the retired inventory's `provider` /
|
|
16
|
+
* `host_provider`, which were the same identity). Absent ⇒ resolve() leaves the
|
|
17
|
+
* effective provider to env auto-detection (`resolveConversationHostProvider`).
|
|
18
|
+
*/
|
|
19
|
+
provider?: ProviderName;
|
|
20
|
+
/** Opaque model identity (was `--host-model-id`); a quota-key segment only. */
|
|
21
|
+
model_id?: string;
|
|
22
|
+
/** Ordered model roster, lowest rank first (was `--host-models`). */
|
|
23
|
+
roster?: HostModelRosterEntry[];
|
|
24
|
+
/** Context-window (input) tokens the host reports (was `--host-context-tokens`). */
|
|
25
|
+
context_tokens?: number;
|
|
26
|
+
/** Output-token cap the host reports (was `--host-output-tokens`). */
|
|
27
|
+
output_tokens?: number;
|
|
28
|
+
/** Operator override for in-flight subagent cap (was `--host-max-active-subagents`). */
|
|
29
|
+
max_active_subagents?: number;
|
|
30
|
+
/**
|
|
31
|
+
* The driver's declared parallel-worker concurrency cap (the former
|
|
32
|
+
* `sessionConfig.parallel_workers`) — dispatch capability, so it rides the
|
|
33
|
+
* descriptor, not the repo config. Feeds `resolveHostConcurrencyLimit` /
|
|
34
|
+
* `resolveHostActiveSubagentLimit` via the resolved effective config.
|
|
35
|
+
*/
|
|
36
|
+
parallel_workers?: number;
|
|
37
|
+
/** Tristate: host can dispatch subagents (was `--host-can-dispatch-subagents`). */
|
|
38
|
+
can_dispatch_subagents?: boolean;
|
|
39
|
+
/** Host can restrict subagent tools (was `--host-can-restrict-subagent-tools`). */
|
|
40
|
+
can_restrict_subagent_tools?: boolean;
|
|
41
|
+
/** Host can select subagent model (was `--host-can-select-subagent-model`). */
|
|
42
|
+
can_select_subagent_model?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* This host's own subagents are proxy-fronted (the session was started behind the
|
|
45
|
+
* repair-proxy, so anything the host spawns through its Agent tool inherits that
|
|
46
|
+
* front). Consumed by the FUTURE Agent-tool carrier — nothing reads it this
|
|
47
|
+
* commit; it rides the handshake so a proxy-fronted session can declare itself
|
|
48
|
+
* (docs/reviews/commit3-proxy-kind1-transport-plan-2026-07-16.md §Descriptor).
|
|
49
|
+
*/
|
|
50
|
+
proxy_transport?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The driver's OWN launch transport, for the host/IDE providers that are NOT
|
|
53
|
+
* generic dispatchable sources ({@link DispatchableSource} excludes exactly
|
|
54
|
+
* `claude-code`/`vscode-task`/`antigravity`, which are driven through their
|
|
55
|
+
* host/IDE, not an endpoint+parameters source). The dispatchable backends'
|
|
56
|
+
* launch config rides `sources[]` instead. Present only for a configured
|
|
57
|
+
* non-default host command or IDE-task template; absent ⇒ the driver
|
|
58
|
+
* self-launches with defaults.
|
|
59
|
+
*/
|
|
60
|
+
claude_code?: ClaudeCodeConfig;
|
|
61
|
+
vscode_task?: VSCodeTaskConfig;
|
|
62
|
+
antigravity?: AntigravityConfig;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The current driver's dispatch handshake, carried as ONE `--auditor <json>` flag
|
|
66
|
+
* (G1 replaced the N `--host-*` flags with this single JSON transport). Re-emitted
|
|
67
|
+
* onto every continue-command so the descriptor RIDES the command the driver runs
|
|
68
|
+
* to advance — surviving that driver's own steps without the host re-appending
|
|
69
|
+
* flags each time (auditor-agnostic robustness; the founding capability-inheritance
|
|
70
|
+
* bug was that a bare continue-command dropped the handshake, so a resume fell back
|
|
71
|
+
* to the stored session config). A *different* driver entering through its own
|
|
72
|
+
* loader supplies its own `--auditor`, overriding this descriptor.
|
|
73
|
+
* [[capability-is-per-auditor-not-per-audit]] [[unified-dispatch-worker-model]]
|
|
74
|
+
*/
|
|
75
|
+
export interface AuditorDescriptor {
|
|
76
|
+
/** Never-inherit auditor id STAMP — wired in G5; optional/unused in G1. */
|
|
77
|
+
auditor_id?: string;
|
|
78
|
+
/** When the descriptor was resolved — wired in G5; optional/unused in G1. */
|
|
79
|
+
resolved_at?: number;
|
|
80
|
+
/** The driving auditor's identity, own launch transport, and model scalars. */
|
|
81
|
+
self: AuditorSelf;
|
|
82
|
+
/**
|
|
83
|
+
* The reachable dispatch pool the CURRENT auditor can spill work onto — the
|
|
84
|
+
* uniform `DispatchableSource[]` (NIM/vLLM endpoints, headless CLIs, subprocess
|
|
85
|
+
* templates), each with its own endpoint/parameters/quota. Resolved from the
|
|
86
|
+
* auditor's OWN environment (the deterministic source-emitter's `declared ∩
|
|
87
|
+
* ambient-verifiable` intersection), never the repo session-config
|
|
88
|
+
* ([[capability-is-per-auditor-not-per-audit]]). Absent/empty ⇒ the driver
|
|
89
|
+
* self-drives with no additional backends. (G2 resliced the retired
|
|
90
|
+
* `inventory` — provider + host/IDE launch blocks moved to {@link self}, the
|
|
91
|
+
* per-backend dispatch blocks folded here as sources.)
|
|
92
|
+
*/
|
|
93
|
+
sources?: DispatchableSource[];
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The descriptor for a driver that had NO host handshake — it can report nothing
|
|
97
|
+
* about itself, but it still has an environment.
|
|
98
|
+
*
|
|
99
|
+
* The descriptor's fields split along a verified line, and this helper is that line
|
|
100
|
+
* made explicit:
|
|
101
|
+
* - **ENVIRONMENT-class** (`sources[]`, provider identity, dispatch capability) — the
|
|
102
|
+
* backends THIS PROCESS can spawn. Resolved in-process; a handshake was never
|
|
103
|
+
* needed for them (`resolveAmbientSources`: `declared ∩ ambient-verifiable`).
|
|
104
|
+
* - **HOST-SELF-class** (`model_id` / `context_tokens` / `output_tokens` / `roster`) —
|
|
105
|
+
* "I am model X with an N-token window." Genuinely unknowable to a spawned CLI: the
|
|
106
|
+
* running agent's model identity is not on PATH, not an env var, not a file. Absent
|
|
107
|
+
* here, so the host pool sizes to the conservative floor. That is a fidelity
|
|
108
|
+
* degradation, never a block.
|
|
109
|
+
*
|
|
110
|
+
* ⚠ NOT interchangeable with a `null` descriptor. `resolveSessionConfig(intent, null)`
|
|
111
|
+
* FAILS CLOSED to driver-self-only — "resolve no pool at all" — and short-circuits
|
|
112
|
+
* before ambient resolution. This says "resolve my pool from ambient reach; I just
|
|
113
|
+
* can't tell you about myself." Remediate passing `null` (it has no `--auditor` flag)
|
|
114
|
+
* is what made it dispatch with NO pool — an un-released capability regression vs
|
|
115
|
+
* v0.32.68, where `sources[]` was read straight off disk. Returns a FRESH object per
|
|
116
|
+
* call so no caller can mutate a shared literal.
|
|
117
|
+
* [[capability-is-per-auditor-not-per-audit]]
|
|
118
|
+
*/
|
|
119
|
+
export declare function ambientAuditorDescriptor(): AuditorDescriptor;
|
|
120
|
+
//# sourceMappingURL=auditorDescriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditorDescriptor.d.ts","sourceRoot":"","sources":["../../../src/shared/types/auditorDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAChC,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mFAAmF;IACnF,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,mFAAmF;IACnF,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,+EAA+E;IAC/E,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,IAAI,EAAE,WAAW,CAAC;IAClB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,wBAAwB,IAAI,iBAAiB,CAE5D"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The descriptor for a driver that had NO host handshake — it can report nothing
|
|
3
|
+
* about itself, but it still has an environment.
|
|
4
|
+
*
|
|
5
|
+
* The descriptor's fields split along a verified line, and this helper is that line
|
|
6
|
+
* made explicit:
|
|
7
|
+
* - **ENVIRONMENT-class** (`sources[]`, provider identity, dispatch capability) — the
|
|
8
|
+
* backends THIS PROCESS can spawn. Resolved in-process; a handshake was never
|
|
9
|
+
* needed for them (`resolveAmbientSources`: `declared ∩ ambient-verifiable`).
|
|
10
|
+
* - **HOST-SELF-class** (`model_id` / `context_tokens` / `output_tokens` / `roster`) —
|
|
11
|
+
* "I am model X with an N-token window." Genuinely unknowable to a spawned CLI: the
|
|
12
|
+
* running agent's model identity is not on PATH, not an env var, not a file. Absent
|
|
13
|
+
* here, so the host pool sizes to the conservative floor. That is a fidelity
|
|
14
|
+
* degradation, never a block.
|
|
15
|
+
*
|
|
16
|
+
* ⚠ NOT interchangeable with a `null` descriptor. `resolveSessionConfig(intent, null)`
|
|
17
|
+
* FAILS CLOSED to driver-self-only — "resolve no pool at all" — and short-circuits
|
|
18
|
+
* before ambient resolution. This says "resolve my pool from ambient reach; I just
|
|
19
|
+
* can't tell you about myself." Remediate passing `null` (it has no `--auditor` flag)
|
|
20
|
+
* is what made it dispatch with NO pool — an un-released capability regression vs
|
|
21
|
+
* v0.32.68, where `sources[]` was read straight off disk. Returns a FRESH object per
|
|
22
|
+
* call so no caller can mutate a shared literal.
|
|
23
|
+
* [[capability-is-per-auditor-not-per-audit]]
|
|
24
|
+
*/
|
|
25
|
+
export function ambientAuditorDescriptor() {
|
|
26
|
+
return { self: {} };
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=auditorDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditorDescriptor.js","sourceRoot":"","sources":["../../../src/shared/types/auditorDescriptor.ts"],"names":[],"mappings":"AAuGA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,wBAAwB;IACtC,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AACtB,CAAC"}
|
|
@@ -25,7 +25,7 @@ export declare const PROVIDER_CONFIRMATION_RESULT_VERSION: "1.1.0";
|
|
|
25
25
|
* plain input; the tool owns the canonical envelope it is promoted into (the
|
|
26
26
|
* per-tool `provider_confirmation.json` seam + the shared
|
|
27
27
|
* `provider-confirmation.json`) — the input/envelope split so the tool stays the
|
|
28
|
-
* sole writer of the
|
|
28
|
+
* sole writer of the discovered pool + cost annotation.
|
|
29
29
|
*/
|
|
30
30
|
export declare const PROVIDER_CONFIRMATION_INPUT_VERSION: "provider-confirmation-input/v1";
|
|
31
31
|
/**
|
|
@@ -58,8 +58,14 @@ export interface ProviderConfirmationInput {
|
|
|
58
58
|
* both provider pools and host models so one total cost order drives dispatch.
|
|
59
59
|
*/
|
|
60
60
|
cost_order?: string[];
|
|
61
|
-
/**
|
|
62
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Exclusion patterns ruling backends out of the dispatchable pool
|
|
63
|
+
* (`DispatchExclusionPattern`): `provider:model` (the default granularity — the
|
|
64
|
+
* operator confirms *model* choices), the coarser bare `provider`, or an
|
|
65
|
+
* endpoint host. Kept verbatim: the grammar is open, so an unrecognized pattern
|
|
66
|
+
* is inert rather than dropped.
|
|
67
|
+
*/
|
|
68
|
+
exclude?: string[];
|
|
63
69
|
/** Self-spawn-blocked provider names the operator opts back IN. */
|
|
64
70
|
include?: ResolvedProviderName[];
|
|
65
71
|
/**
|
|
@@ -127,6 +133,60 @@ export interface SourcePoolCostEntry {
|
|
|
127
133
|
cost_order: number;
|
|
128
134
|
}
|
|
129
135
|
/** One entry in the confirmed provider pool. */
|
|
136
|
+
/**
|
|
137
|
+
* One entry of the PERSISTED confirmed pool — the operator's DECISION, and nothing
|
|
138
|
+
* else (G3 B+D).
|
|
139
|
+
*
|
|
140
|
+
* Deliberately a strict subset of {@link ConfirmedPoolEntry}: the reach half
|
|
141
|
+
* (`capability_tier` / `self_spawn_blocked` / `excluded` / `reason` /
|
|
142
|
+
* `blended_price_usd_per_mtok`) is the WRITING auditor's assessment of its own
|
|
143
|
+
* environment and must never be inherited by a reading auditor — reach is
|
|
144
|
+
* re-resolved per-auditor at the moment of use. Those fields live only on the
|
|
145
|
+
* in-memory render DTO, which never reaches disk.
|
|
146
|
+
*
|
|
147
|
+
* This is enforced by TYPE, not by a projection at the write site: if the persisted
|
|
148
|
+
* field were typed `ConfirmedPoolEntry[]`, `writeJsonFile` would serialize the reach
|
|
149
|
+
* fields regardless of intent. Unrepresentable, not guarded.
|
|
150
|
+
*/
|
|
151
|
+
export interface PersistedPoolEntry {
|
|
152
|
+
/** Canonical provider name. Half of the gate's `model_id ?? name` compare key. */
|
|
153
|
+
name: ResolvedProviderName;
|
|
154
|
+
/**
|
|
155
|
+
* The reach half, branded `never` so it is genuinely UNREPRESENTABLE here.
|
|
156
|
+
*
|
|
157
|
+
* ⚠ These are load-bearing, not documentation. `PersistedPoolEntry` is otherwise a
|
|
158
|
+
* structural SUBSET of {@link ConfirmedPoolEntry}, and TypeScript's excess-property
|
|
159
|
+
* check fires only on fresh object literals — so without these, a `ConfirmedPoolEntry`
|
|
160
|
+
* (or a `RenderedProviderConfirmation`) assigns cleanly to the persisted type and the
|
|
161
|
+
* writer's whole reach assessment serializes to disk with NO compiler signal. An
|
|
162
|
+
* independent review proved exactly that against this file. The two builders take
|
|
163
|
+
* identical parameter lists and differ by one word, so a swapped call site is a real
|
|
164
|
+
* hazard; this is what makes the swap a type error instead of a silent leak.
|
|
165
|
+
*/
|
|
166
|
+
capability_tier?: never;
|
|
167
|
+
self_spawn_blocked?: never;
|
|
168
|
+
excluded?: never;
|
|
169
|
+
reason?: never;
|
|
170
|
+
blended_price_usd_per_mtok?: never;
|
|
171
|
+
/**
|
|
172
|
+
* Representative model id this entry is priced/ordered by. The dispatch
|
|
173
|
+
* cost-position key, and the finer half of the gate's compare key. Absent when the
|
|
174
|
+
* model is not knowable at confirmation time (a CLI backend's model arrives only
|
|
175
|
+
* at the dispatch handshake).
|
|
176
|
+
*/
|
|
177
|
+
model_id?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Operator-confirmed 0-based cost position (rung 1 of costRank). Lower routes
|
|
180
|
+
* first. Read back at dispatch via `resolveConfirmedCostPositions`.
|
|
181
|
+
*/
|
|
182
|
+
cost_order?: number;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* The FULL in-memory pool entry — the Gate-0 RENDER DTO. Carries the persisted
|
|
186
|
+
* decision ({@link PersistedPoolEntry}) plus this auditor's freshly-derived reach,
|
|
187
|
+
* which the operator needs to SEE (tier, price, why a backend is excluded) but which
|
|
188
|
+
* must never be persisted for another auditor to inherit.
|
|
189
|
+
*/
|
|
130
190
|
export interface ConfirmedPoolEntry {
|
|
131
191
|
/** Canonical provider name. */
|
|
132
192
|
name: ResolvedProviderName;
|
|
@@ -143,11 +203,9 @@ export interface ConfirmedPoolEntry {
|
|
|
143
203
|
* active session of that same agent (claude-code under `CLAUDECODE`, codex
|
|
144
204
|
* under `CODEX`). Such an entry is `excluded: true` by default — and so out of
|
|
145
205
|
* the dispatchable pool — unless the operator explicitly re-includes it. This
|
|
146
|
-
* flag is the security signal
|
|
206
|
+
* flag is the security signal.
|
|
147
207
|
*/
|
|
148
208
|
self_spawn_blocked?: boolean;
|
|
149
|
-
/** Optional reason for exclusion or detection restriction. */
|
|
150
|
-
reason?: string;
|
|
151
209
|
/**
|
|
152
210
|
* Representative model id this entry is priced/ordered by (cost-first routing;
|
|
153
211
|
* spec/cost-first-routing.md). For a configured API pool it is the configured
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerConfirmation.d.ts","sourceRoot":"","sources":["../../../src/shared/types/providerConfirmation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAM3E;;;;;;;GAOG;AACH,eAAO,MAAM,oCAAoC,EAAG,OAAgB,CAAC;AAMrE;;;;;;;GAOG;AACH,eAAO,MAAM,mCAAmC,EAC9C,gCAAyC,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,sDAAsD;IACtD,cAAc,EAAE,OAAO,mCAAmC,CAAC;IAC3D;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB
|
|
1
|
+
{"version":3,"file":"providerConfirmation.d.ts","sourceRoot":"","sources":["../../../src/shared/types/providerConfirmation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAM3E;;;;;;;GAOG;AACH,eAAO,MAAM,oCAAoC,EAAG,OAAgB,CAAC;AAMrE;;;;;;;GAOG;AACH,eAAO,MAAM,mCAAmC,EAC9C,gCAAyC,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,sDAAsD;IACtD,cAAc,EAAE,OAAO,mCAAmC,CAAC;IAC3D;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,mEAAmE;IACnE,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;IAChC;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,0BAA0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AC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,WAAW,0BAA0B;IACzC,wEAAwE;IACxE,cAAc,EAAE,OAAO,oCAAoC,CAAC;IAC5D,yDAAyD;IACzD,YAAY,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,aAAa,EAAE,kBAAkB,EAAE,CAAC;IACpC;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -29,7 +29,7 @@ export const PROVIDER_CONFIRMATION_RESULT_VERSION = "1.1.0";
|
|
|
29
29
|
* plain input; the tool owns the canonical envelope it is promoted into (the
|
|
30
30
|
* per-tool `provider_confirmation.json` seam + the shared
|
|
31
31
|
* `provider-confirmation.json`) — the input/envelope split so the tool stays the
|
|
32
|
-
* sole writer of the
|
|
32
|
+
* sole writer of the discovered pool + cost annotation.
|
|
33
33
|
*/
|
|
34
34
|
export const PROVIDER_CONFIRMATION_INPUT_VERSION = "provider-confirmation-input/v1";
|
|
35
35
|
//# sourceMappingURL=providerConfirmation.js.map
|
|
@@ -33,7 +33,7 @@ export interface RollingDispatchEnginePacket<TPacket = unknown> {
|
|
|
33
33
|
/** Outcome returned after each packet completes. */
|
|
34
34
|
export interface RollingDispatchEngineResult<TPacket = unknown> {
|
|
35
35
|
packet: RollingDispatchEnginePacket<TPacket>;
|
|
36
|
-
outcome: "success" | "rate_limited" | "timeout" | "error" | "credit_exhausted" | "quota_unclassified";
|
|
36
|
+
outcome: "success" | "rate_limited" | "timeout" | "error" | "credit_exhausted" | "model_unavailable" | "packet_too_large" | "quota_unclassified";
|
|
37
37
|
actualTokens?: number;
|
|
38
38
|
error?: unknown;
|
|
39
39
|
/**
|
|
@@ -56,6 +56,26 @@ export interface RollingDispatchEngineResult<TPacket = unknown> {
|
|
|
56
56
|
text: string;
|
|
57
57
|
rawMatch: string | null;
|
|
58
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* Worker ERROR/STATUS channel evidence that classified a `model_unavailable`
|
|
61
|
+
* outcome (HTTP 404, model not found — permanent pool exclusion). Absent on
|
|
62
|
+
* non-model_unavailable outcomes.
|
|
63
|
+
*/
|
|
64
|
+
modelUnavailable?: {
|
|
65
|
+
channel: "error" | "status" | "result";
|
|
66
|
+
text: string;
|
|
67
|
+
rawMatch: string | null;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Worker ERROR/STATUS channel evidence that classified a `packet_too_large`
|
|
71
|
+
* outcome (HTTP 413, request/payload too large — per-packet sizing fault).
|
|
72
|
+
* Absent on non-packet_too_large outcomes.
|
|
73
|
+
*/
|
|
74
|
+
packetTooLarge?: {
|
|
75
|
+
channel: "error" | "status" | "result";
|
|
76
|
+
text: string;
|
|
77
|
+
rawMatch: string | null;
|
|
78
|
+
};
|
|
59
79
|
/**
|
|
60
80
|
* Worker ERROR/STATUS channel VERBATIM evidence that classified a
|
|
61
81
|
* `quota_unclassified` outcome (Slice A2b, TIER 2): the broad
|
|
@@ -140,5 +160,29 @@ export interface RollingDispatchEngineContract<TPacket = unknown> {
|
|
|
140
160
|
poolId: string;
|
|
141
161
|
text: string;
|
|
142
162
|
}) => void;
|
|
163
|
+
/**
|
|
164
|
+
* Model-unavailable exclusion (HTTP 404 class — the model is not served by
|
|
165
|
+
* this provider; availability analog of cost drift): invoked once per pool
|
|
166
|
+
* the first time a `model_unavailable` result lands, after the engine has
|
|
167
|
+
* already permanently excluded the pool from this run's admissible set. The
|
|
168
|
+
* consumer wires it to friction emission. Optional — omit to leave the
|
|
169
|
+
* exclusion silent (no friction, exclusion still happens).
|
|
170
|
+
*/
|
|
171
|
+
onModelUnavailable?: (info: {
|
|
172
|
+
poolId: string;
|
|
173
|
+
rawMatch: string | null;
|
|
174
|
+
}) => void;
|
|
175
|
+
/**
|
|
176
|
+
* Packet-too-large (HTTP 413 class — a per-packet sizing fault): invoked once
|
|
177
|
+
* per (packet, pool) pair, after the engine has already recorded the
|
|
178
|
+
* per-packet pool skip (the pool is NOT excluded and no cooldown applies).
|
|
179
|
+
* The consumer wires it to friction emission. Optional — omit to leave the
|
|
180
|
+
* skip silent (no friction, skip still happens).
|
|
181
|
+
*/
|
|
182
|
+
onPacketTooLarge?: (info: {
|
|
183
|
+
poolId: string;
|
|
184
|
+
packetId: string;
|
|
185
|
+
rawMatch: string | null;
|
|
186
|
+
}) => void;
|
|
143
187
|
}
|
|
144
188
|
//# sourceMappingURL=rollingDispatch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollingDispatch.d.ts","sourceRoot":"","sources":["../../../src/shared/types/rollingDispatch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAG,OAAgB,CAAC;AAMhE,mEAAmE;AACnE,MAAM,WAAW,2BAA2B,CAAC,OAAO,GAAG,OAAO;IAC5D,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAC;IACX,gEAAgE;IAChE,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,oDAAoD;AACpD,MAAM,WAAW,2BAA2B,CAAC,OAAO,GAAG,OAAO;IAC5D,MAAM,EAAE,2BAA2B,CAAC,OAAO,CAAC,CAAC;IAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"rollingDispatch.d.ts","sourceRoot":"","sources":["../../../src/shared/types/rollingDispatch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAG,OAAgB,CAAC;AAMhE,mEAAmE;AACnE,MAAM,WAAW,2BAA2B,CAAC,OAAO,GAAG,OAAO;IAC5D,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAC;IACX,gEAAgE;IAChE,OAAO,EAAE,OAAO,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