@claudexor/schema 3.4.2 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accounts-migration.d.ts +112 -0
- package/dist/accounts-migration.d.ts.map +1 -0
- package/dist/accounts-migration.js +74 -0
- package/dist/accounts-migration.js.map +1 -0
- package/dist/budget.d.ts +3 -0
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +4 -0
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +38 -22
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +26 -6
- package/dist/config.js.map +1 -1
- package/dist/control-operation-responses.d.ts +7 -7
- package/dist/control-run-detail.d.ts +19 -19
- package/dist/control-run-failure.d.ts +4 -4
- package/dist/control-run-failure.d.ts.map +1 -1
- package/dist/control-run-failure.js +7 -1
- package/dist/control-run-failure.js.map +1 -1
- package/dist/control.d.ts +23 -23
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +8 -8
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +254 -14
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/credential-profile.d.ts +307 -7
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +104 -9
- package/dist/credential-profile.js.map +1 -1
- package/dist/credential-store.d.ts +26 -0
- package/dist/credential-store.d.ts.map +1 -0
- package/dist/credential-store.js +30 -0
- package/dist/credential-store.js.map +1 -0
- package/dist/events.d.ts +44 -4
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +34 -0
- package/dist/events.js.map +1 -1
- package/dist/harness.d.ts +12 -5
- package/dist/harness.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +10 -10
- package/dist/quota.d.ts +96 -14
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +60 -2
- package/dist/quota.js.map +1 -1
- package/dist/rate-limit.d.ts +9 -0
- package/dist/rate-limit.d.ts.map +1 -1
- package/dist/rate-limit.js +21 -0
- package/dist/rate-limit.js.map +1 -1
- package/dist/setup-login-input.js +1 -1
- package/dist/setup-login-input.js.map +1 -1
- package/dist/setup-login.d.ts +446 -0
- package/dist/setup-login.d.ts.map +1 -0
- package/dist/setup-login.js +161 -0
- package/dist/setup-login.js.map +1 -0
- package/dist/setup.d.ts +130 -491
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +8 -138
- package/dist/setup.js.map +1 -1
- package/generated/AccountsUnifiedMigrationFile.schema.json +61 -0
- package/generated/BudgetObservation.schema.json +4 -0
- package/generated/ControlAccountPoolsResponse.schema.json +93 -0
- package/generated/ControlAccountsMigrationRollbackRequest.schema.json +18 -0
- package/generated/ControlAccountsMigrationRollbackResponse.schema.json +63 -0
- package/generated/ControlCredentialProfileDeleteResponse.schema.json +1 -1
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +87 -3
- package/generated/ControlCredentialProfilesResponse.schema.json +77 -1
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +84 -3
- package/generated/ControlHarnessAccountPool.schema.json +79 -0
- package/generated/ControlHarnessSettingsPatch.schema.json +2 -1
- package/generated/ControlPoolNextUp.schema.json +63 -0
- package/generated/ControlQuotaResponse.schema.json +7 -2
- package/generated/ControlRunDetail.schema.json +2 -1
- package/generated/ControlRunListResponse.schema.json +2 -1
- package/generated/ControlRunSummary.schema.json +2 -1
- package/generated/ControlSettingsSnapshot.schema.json +3 -2
- package/generated/ControlSettingsUpdateRequest.schema.json +2 -1
- package/generated/ControlSetupJob.schema.json +6 -1
- package/generated/ControlSetupJobCreateRequest.schema.json +2 -1
- package/generated/ControlSetupJobEvent.schema.json +6 -1
- package/generated/ControlSetupJobListFilter.schema.json +2 -1
- package/generated/ControlSetupJobListResponse.schema.json +6 -1
- package/generated/ControlSetupJobSnapshot.schema.json +6 -1
- package/generated/GlobalConfig.schema.json +3 -2
- package/generated/HarnessEvent.schema.json +6 -1
- package/generated/McpRunHandleResult.schema.json +2 -1
- package/generated/McpRunToolResult.schema.json +2 -1
- package/generated/RunEvent.schema.json +4 -0
- package/generated/RunFailure.schema.json +2 -1
- package/package.json +2 -2
package/dist/events.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare const ThreadHeadPing: z.ZodObject<{
|
|
|
36
36
|
revision: number;
|
|
37
37
|
}>;
|
|
38
38
|
export type ThreadHeadPing = z.infer<typeof ThreadHeadPing>;
|
|
39
|
-
export declare const RunEventType: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied"]>;
|
|
39
|
+
export declare const RunEventType: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied"]>;
|
|
40
40
|
export type RunEventType = z.infer<typeof RunEventType>;
|
|
41
41
|
/**
|
|
42
42
|
* Typed receipt emitted only after a user-facing run artifact has materialized.
|
|
@@ -58,6 +58,46 @@ export declare const OutputReadyPayload: z.ZodObject<{
|
|
|
58
58
|
state?: "diagnostic" | "ready" | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
export type OutputReadyPayload = z.infer<typeof OutputReadyPayload>;
|
|
61
|
+
/**
|
|
62
|
+
* Typed payload for `route.profile.credential_unusable` (A7): the differential
|
|
63
|
+
* probe's observation plus the attempt it fired in. The rotation module
|
|
64
|
+
* validates this before stamping it onto the RunEvent payload, so the
|
|
65
|
+
* unusable verdict is always evidence-backed — code, source, and expiry come
|
|
66
|
+
* from the observation itself, never invented at emit time.
|
|
67
|
+
*/
|
|
68
|
+
export declare const RouteCredentialUnusablePayload: z.ZodObject<{
|
|
69
|
+
harness_id: z.ZodString;
|
|
70
|
+
profile_id: z.ZodNullable<z.ZodString>;
|
|
71
|
+
model: z.ZodNullable<z.ZodString>;
|
|
72
|
+
code: z.ZodEnum<["auth_revoked", "capability_refused", "verification_failed"]>;
|
|
73
|
+
source: z.ZodEnum<["vendor_poller", "attempt_stream", "local_probe"]>;
|
|
74
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
75
|
+
observed_at: z.ZodString;
|
|
76
|
+
expires_at: z.ZodString;
|
|
77
|
+
} & {
|
|
78
|
+
attempt_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
}, "strict", z.ZodTypeAny, {
|
|
80
|
+
harness_id: string;
|
|
81
|
+
profile_id: string | null;
|
|
82
|
+
model: string | null;
|
|
83
|
+
code: "auth_revoked" | "capability_refused" | "verification_failed";
|
|
84
|
+
source: "attempt_stream" | "local_probe" | "vendor_poller";
|
|
85
|
+
detail: string | null;
|
|
86
|
+
observed_at: string;
|
|
87
|
+
expires_at: string;
|
|
88
|
+
attempt_id: string | null;
|
|
89
|
+
}, {
|
|
90
|
+
harness_id: string;
|
|
91
|
+
profile_id: string | null;
|
|
92
|
+
model: string | null;
|
|
93
|
+
code: "auth_revoked" | "capability_refused" | "verification_failed";
|
|
94
|
+
source: "attempt_stream" | "local_probe" | "vendor_poller";
|
|
95
|
+
detail: string | null;
|
|
96
|
+
observed_at: string;
|
|
97
|
+
expires_at: string;
|
|
98
|
+
attempt_id?: string | null | undefined;
|
|
99
|
+
}>;
|
|
100
|
+
export type RouteCredentialUnusablePayload = z.infer<typeof RouteCredentialUnusablePayload>;
|
|
61
101
|
/**
|
|
62
102
|
* Typed payload for `route.fallback.*` events. The orchestrator validates this
|
|
63
103
|
* before stamping it onto the (otherwise free-form) RunEvent.payload, so a
|
|
@@ -185,7 +225,7 @@ export declare const RunEvent: z.ZodObject<{
|
|
|
185
225
|
/** Thread this run is a turn of, when any. Lets the global event multiplex
|
|
186
226
|
* route live progress to a chat surface without a reverse job lookup. */
|
|
187
227
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
188
|
-
type: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied"]>;
|
|
228
|
+
type: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied"]>;
|
|
189
229
|
payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
190
230
|
}, "strip", z.ZodTypeAny, {
|
|
191
231
|
seq?: number | undefined;
|
|
@@ -193,7 +233,7 @@ export declare const RunEvent: z.ZodObject<{
|
|
|
193
233
|
run_id: string;
|
|
194
234
|
task_id: string;
|
|
195
235
|
thread_id?: string | undefined;
|
|
196
|
-
type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted";
|
|
236
|
+
type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted";
|
|
197
237
|
payload: Record<string, unknown>;
|
|
198
238
|
}, {
|
|
199
239
|
seq?: number | undefined;
|
|
@@ -201,7 +241,7 @@ export declare const RunEvent: z.ZodObject<{
|
|
|
201
241
|
run_id: string;
|
|
202
242
|
task_id: string;
|
|
203
243
|
thread_id?: string | undefined;
|
|
204
|
-
type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted";
|
|
244
|
+
type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted";
|
|
205
245
|
payload?: Record<string, unknown> | undefined;
|
|
206
246
|
}>;
|
|
207
247
|
export type RunEvent = z.infer<typeof RunEvent>;
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAU4C,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,eAAO,MAAM,cAAc;;;;;;;;;;;;EAoBxB,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,YAAY,klDA8ItB,CAAC;AACJ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAY+B,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ1C,CAAC;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;EAoB9B,CAAC;AACJ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAiBrC,CAAC;AACJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEtF;;4EAE4E;AAC5E,eAAO,MAAM,cAAc,2GAW6C,CAAC;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBlC,CAAC;AACJ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,iDAAiD;AACjD,eAAO,MAAM,QAAQ;IAEjB;;;;OAIG;;;;;IAYH;6EACyE;;;;;;;;;;;;;;;;;;;;EAKO,CAAC;AACrF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
package/dist/events.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v3";
|
|
2
2
|
import { FallbackReason, Id } from "./primitives.js";
|
|
3
3
|
import { AuthMode } from "./budget.js";
|
|
4
|
+
import { CredentialUnusableObservation } from "./credential-profile.js";
|
|
4
5
|
export const ControlJournalEvent = z
|
|
5
6
|
.object({
|
|
6
7
|
schemaVersion: z.literal(1),
|
|
@@ -59,6 +60,25 @@ export const RunEventType = z
|
|
|
59
60
|
"route.profile.headroom_exceeded",
|
|
60
61
|
"route.profile.rotated",
|
|
61
62
|
"route.profile.rotation_exhausted",
|
|
63
|
+
/** A7 differential probe: on a rotation-eligible failure the CURRENT
|
|
64
|
+
* credential subject was probed (existing poller/doctor evidence only —
|
|
65
|
+
* never a quota-spending mini-run) and found UNUSABLE (dead credential,
|
|
66
|
+
* not spent quota). Payload: RouteCredentialUnusablePayload. */
|
|
67
|
+
"route.profile.credential_unusable",
|
|
68
|
+
/** Unified account model (D-U1): an unpinned run's pool selection — the
|
|
69
|
+
* quota-aware pool of enabled+ready rows picked this account. */
|
|
70
|
+
"route.account.pool_selected",
|
|
71
|
+
/** Q1=A disclosed lane switch: the thread's bound account became
|
|
72
|
+
* disabled/deleted/revoked/exhausted and the run moved to a pool sibling
|
|
73
|
+
* (the vendor session starts fresh; continuity hydration is disclosed on
|
|
74
|
+
* the turn). Never silent. */
|
|
75
|
+
"route.account.lane_switch",
|
|
76
|
+
/** Q3=A: the pool is empty or every ready row is exhausted. A null
|
|
77
|
+
* fallback precedes the typed `credential_pool_exhausted` terminal
|
|
78
|
+
* (waiting for the earliest reset is the default);
|
|
79
|
+
* `fallback: "api_key_route"` means the EXPLICIT api_key preference opted
|
|
80
|
+
* the run onto the typed PAID route (INV-061) — never silently under auto. */
|
|
81
|
+
"route.account.pool_exhausted",
|
|
62
82
|
"route.transient.exhausted",
|
|
63
83
|
/** A subscription->API (or harness->harness) auth switch driven by a typed
|
|
64
84
|
* quota/money signal. Distinct from a plain harness rotation; never silent. */
|
|
@@ -172,6 +192,20 @@ export const OutputReadyPayload = z
|
|
|
172
192
|
})
|
|
173
193
|
.strict()
|
|
174
194
|
.describe("Validated payload of an output.ready run event.");
|
|
195
|
+
/**
|
|
196
|
+
* Typed payload for `route.profile.credential_unusable` (A7): the differential
|
|
197
|
+
* probe's observation plus the attempt it fired in. The rotation module
|
|
198
|
+
* validates this before stamping it onto the RunEvent payload, so the
|
|
199
|
+
* unusable verdict is always evidence-backed — code, source, and expiry come
|
|
200
|
+
* from the observation itself, never invented at emit time.
|
|
201
|
+
*/
|
|
202
|
+
export const RouteCredentialUnusablePayload = CredentialUnusableObservation.extend({
|
|
203
|
+
attempt_id: z
|
|
204
|
+
.string()
|
|
205
|
+
.nullable()
|
|
206
|
+
.default(null)
|
|
207
|
+
.describe("Attempt whose rotation-eligible failure triggered the probe, when known."),
|
|
208
|
+
}).describe("Typed payload for route.profile.credential_unusable: the differential probe's typed observation of a dead credential, validated before being stamped onto the RunEvent payload.");
|
|
175
209
|
/**
|
|
176
210
|
* Typed payload for `route.fallback.*` events. The orchestrator validates this
|
|
177
211
|
* before stamping it onto the (otherwise free-form) RunEvent.payload, so a
|
package/dist/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,wCAAwC,CAAC;IAC5E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GA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870
|
/** Vendor-owned quota windows. All reported windows remain independent. */
|
|
1871
1871
|
quota: z.ZodOptional<z.ZodObject<{
|
|
1872
|
-
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage"]>;
|
|
1872
|
+
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit"]>;
|
|
1873
1873
|
plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1874
1874
|
subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1875
1875
|
constraints: z.ZodArray<z.ZodObject<{
|
|
1876
1876
|
id: z.ZodString;
|
|
1877
1877
|
label: z.ZodString;
|
|
1878
1878
|
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
1879
|
+
applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
|
|
1879
1880
|
used_ratio: z.ZodNullable<z.ZodNumber>;
|
|
1880
1881
|
window_seconds: z.ZodNullable<z.ZodNumber>;
|
|
1881
1882
|
resets_at: z.ZodNullable<z.ZodString>;
|
|
@@ -1884,6 +1885,7 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1884
1885
|
id: string;
|
|
1885
1886
|
label: string;
|
|
1886
1887
|
applies_to_models?: string[] | null | undefined;
|
|
1888
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
1887
1889
|
used_ratio: number | null;
|
|
1888
1890
|
window_seconds: number | null;
|
|
1889
1891
|
resets_at: string | null;
|
|
@@ -1892,32 +1894,35 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
1892
1894
|
id: string;
|
|
1893
1895
|
label: string;
|
|
1894
1896
|
applies_to_models?: string[] | null | undefined;
|
|
1897
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
1895
1898
|
used_ratio: number | null;
|
|
1896
1899
|
window_seconds: number | null;
|
|
1897
1900
|
resets_at: string | null;
|
|
1898
1901
|
cooldown_until?: string | null | undefined;
|
|
1899
1902
|
}>, "many">;
|
|
1900
1903
|
}, "strict", z.ZodTypeAny, {
|
|
1901
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1904
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
1902
1905
|
plan_label: string | null;
|
|
1903
1906
|
subject_id: string | null;
|
|
1904
1907
|
constraints: {
|
|
1905
1908
|
id: string;
|
|
1906
1909
|
label: string;
|
|
1907
1910
|
applies_to_models?: string[] | null | undefined;
|
|
1911
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
1908
1912
|
used_ratio: number | null;
|
|
1909
1913
|
window_seconds: number | null;
|
|
1910
1914
|
resets_at: string | null;
|
|
1911
1915
|
cooldown_until: string | null;
|
|
1912
1916
|
}[];
|
|
1913
1917
|
}, {
|
|
1914
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
1918
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
1915
1919
|
plan_label?: string | null | undefined;
|
|
1916
1920
|
subject_id?: string | null | undefined;
|
|
1917
1921
|
constraints: {
|
|
1918
1922
|
id: string;
|
|
1919
1923
|
label: string;
|
|
1920
1924
|
applies_to_models?: string[] | null | undefined;
|
|
1925
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
1921
1926
|
used_ratio: number | null;
|
|
1922
1927
|
window_seconds: number | null;
|
|
1923
1928
|
resets_at: string | null;
|
|
@@ -2109,13 +2114,14 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2109
2114
|
credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
|
|
2110
2115
|
credential_profile_id?: string | undefined;
|
|
2111
2116
|
quota?: {
|
|
2112
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
2117
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
2113
2118
|
plan_label: string | null;
|
|
2114
2119
|
subject_id: string | null;
|
|
2115
2120
|
constraints: {
|
|
2116
2121
|
id: string;
|
|
2117
2122
|
label: string;
|
|
2118
2123
|
applies_to_models?: string[] | null | undefined;
|
|
2124
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
2119
2125
|
used_ratio: number | null;
|
|
2120
2126
|
window_seconds: number | null;
|
|
2121
2127
|
resets_at: string | null;
|
|
@@ -2211,13 +2217,14 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2211
2217
|
credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
|
|
2212
2218
|
credential_profile_id?: string | undefined;
|
|
2213
2219
|
quota?: {
|
|
2214
|
-
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
2220
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
2215
2221
|
plan_label?: string | null | undefined;
|
|
2216
2222
|
subject_id?: string | null | undefined;
|
|
2217
2223
|
constraints: {
|
|
2218
2224
|
id: string;
|
|
2219
2225
|
label: string;
|
|
2220
2226
|
applies_to_models?: string[] | null | undefined;
|
|
2227
|
+
applies_to_unspecified_model?: boolean | undefined;
|
|
2221
2228
|
used_ratio: number | null;
|
|
2222
2229
|
window_seconds: number | null;
|
|
2223
2230
|
resets_at: string | null;
|
package/dist/harness.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness.d.ts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,6CAA6C;;;;;;YAjG7C,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2BlE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8FhE,gFAAgF;;;;;;;;;;;;;;;;;;IAepF;;6EAEyE;;IAIzE,2EAA2E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAa3E;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoBH;;;;;OAKG;;;;;;;;;;;;;;;;;IAIH;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;IAsCH;;;;OAIG;;;;;;;;;;;IAmBH;;;;;;;;;OASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0D+E,CAAC;AACvF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
* (see scripts/gen-jsonschema.ts).
|
|
7
7
|
*/
|
|
8
8
|
export * from "./primitives.js";
|
|
9
|
+
export * from "./credential-store.js";
|
|
10
|
+
export * from "./setup-login.js";
|
|
9
11
|
export * from "./work-report.js";
|
|
10
12
|
export * from "./output-schema.js";
|
|
11
13
|
export * from "./output-schema-dialect.js";
|
|
12
14
|
export * from "./auth.js";
|
|
13
15
|
export * from "./harness-confinement.js";
|
|
16
|
+
export * from "./accounts-migration.js";
|
|
14
17
|
export * from "./credential-profile.js";
|
|
15
18
|
export * from "./credential-profile-snapshot.js";
|
|
16
19
|
export * from "./git-capability.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;A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* from "./setup-login.js";
|
|
9
11
|
export * from "./work-report.js";
|
|
10
12
|
export * from "./output-schema.js";
|
|
11
13
|
export * from "./output-schema-dialect.js";
|
|
12
14
|
export * from "./auth.js";
|
|
13
15
|
export * from "./harness-confinement.js";
|
|
16
|
+
export * from "./accounts-migration.js";
|
|
14
17
|
export * from "./credential-profile.js";
|
|
15
18
|
export * from "./credential-profile-snapshot.js";
|
|
16
19
|
export * from "./git-capability.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe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,cAAc,qBAAqB,CAAC"}
|
package/dist/mcp-run-result.d.ts
CHANGED
|
@@ -475,7 +475,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
475
475
|
failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
476
476
|
phase: z.ZodDefault<z.ZodString>;
|
|
477
477
|
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
478
|
-
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete"]>>>;
|
|
478
|
+
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete"]>>>;
|
|
479
479
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
480
480
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
481
481
|
safeMessage: z.ZodString;
|
|
@@ -488,7 +488,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
488
488
|
}, "strip", z.ZodTypeAny, {
|
|
489
489
|
phase: string;
|
|
490
490
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
491
|
-
code: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
|
|
491
|
+
code: "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
|
|
492
492
|
harnessId: string | null;
|
|
493
493
|
attemptId: string | null;
|
|
494
494
|
safeMessage: string;
|
|
@@ -501,7 +501,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
501
501
|
}, {
|
|
502
502
|
phase?: string | undefined;
|
|
503
503
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
504
|
-
code?: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
|
|
504
|
+
code?: "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
|
|
505
505
|
harnessId?: string | null | undefined;
|
|
506
506
|
attemptId?: string | null | undefined;
|
|
507
507
|
safeMessage: string;
|
|
@@ -731,7 +731,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
731
731
|
failure: {
|
|
732
732
|
phase: string;
|
|
733
733
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
734
|
-
code: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
|
|
734
|
+
code: "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
|
|
735
735
|
harnessId: string | null;
|
|
736
736
|
attemptId: string | null;
|
|
737
737
|
safeMessage: string;
|
|
@@ -875,7 +875,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
875
875
|
failure?: {
|
|
876
876
|
phase?: string | undefined;
|
|
877
877
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
878
|
-
code?: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
|
|
878
|
+
code?: "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
|
|
879
879
|
harnessId?: string | null | undefined;
|
|
880
880
|
attemptId?: string | null | undefined;
|
|
881
881
|
safeMessage: string;
|
|
@@ -1392,7 +1392,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
1392
1392
|
failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1393
1393
|
phase: z.ZodDefault<z.ZodString>;
|
|
1394
1394
|
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
1395
|
-
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete"]>>>;
|
|
1395
|
+
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete"]>>>;
|
|
1396
1396
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1397
1397
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1398
1398
|
safeMessage: z.ZodString;
|
|
@@ -1405,7 +1405,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
1405
1405
|
}, "strip", z.ZodTypeAny, {
|
|
1406
1406
|
phase: string;
|
|
1407
1407
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
1408
|
-
code: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
|
|
1408
|
+
code: "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
|
|
1409
1409
|
harnessId: string | null;
|
|
1410
1410
|
attemptId: string | null;
|
|
1411
1411
|
safeMessage: string;
|
|
@@ -1418,7 +1418,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
1418
1418
|
}, {
|
|
1419
1419
|
phase?: string | undefined;
|
|
1420
1420
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1421
|
-
code?: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
|
|
1421
|
+
code?: "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
|
|
1422
1422
|
harnessId?: string | null | undefined;
|
|
1423
1423
|
attemptId?: string | null | undefined;
|
|
1424
1424
|
safeMessage: string;
|
|
@@ -1703,7 +1703,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
1703
1703
|
failure: {
|
|
1704
1704
|
phase: string;
|
|
1705
1705
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
1706
|
-
code: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
|
|
1706
|
+
code: "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
|
|
1707
1707
|
harnessId: string | null;
|
|
1708
1708
|
attemptId: string | null;
|
|
1709
1709
|
safeMessage: string;
|
|
@@ -1864,7 +1864,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
1864
1864
|
failure?: {
|
|
1865
1865
|
phase?: string | undefined;
|
|
1866
1866
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1867
|
-
code?: "budget_overshoot" | "cost_unverifiable" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
|
|
1867
|
+
code?: "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
|
|
1868
1868
|
harnessId?: string | null | undefined;
|
|
1869
1869
|
attemptId?: string | null | undefined;
|
|
1870
1870
|
safeMessage: string;
|