@claudexor/schema 3.1.2 → 3.2.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/dist/agent-capabilities.d.ts +157 -129
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +4 -2
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts +462 -273
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +25 -2
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +17 -17
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +1 -1
- package/dist/attachment.js.map +1 -1
- package/dist/auth.d.ts +475 -475
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/budget.d.ts +62 -59
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +6 -1
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +320 -316
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +26 -19
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +38 -38
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/context.js.map +1 -1
- package/dist/control-auth-route.d.ts +46 -0
- package/dist/control-auth-route.d.ts.map +1 -0
- package/dist/control-auth-route.js +24 -0
- package/dist/control-auth-route.js.map +1 -0
- package/dist/control-gc.d.ts +15 -15
- package/dist/control-gc.d.ts.map +1 -1
- package/dist/control-gc.js +1 -1
- package/dist/control-gc.js.map +1 -1
- package/dist/control-harness-list.d.ts +896 -0
- package/dist/control-harness-list.d.ts.map +1 -0
- package/dist/control-harness-list.js +13 -0
- package/dist/control-harness-list.js.map +1 -0
- package/dist/control-operation-responses.d.ts +630 -628
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +5 -1
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +2113 -1578
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +7 -1
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +16 -16
- package/dist/control-run-retry.d.ts.map +1 -1
- package/dist/control-run-retry.js +1 -1
- package/dist/control-run-retry.js.map +1 -1
- package/dist/control-run-scope.d.ts +2 -2
- package/dist/control-run-scope.d.ts.map +1 -1
- package/dist/control-run-scope.js +1 -1
- package/dist/control-run-scope.js.map +1 -1
- package/dist/control-secret.d.ts +7 -7
- package/dist/control-secret.d.ts.map +1 -1
- package/dist/control-secret.js +1 -1
- package/dist/control-secret.js.map +1 -1
- package/dist/control-thread-apply.d.ts +65 -65
- package/dist/control-thread-apply.d.ts.map +1 -1
- package/dist/control-thread-apply.js +1 -1
- package/dist/control-thread-apply.js.map +1 -1
- package/dist/control-trust.d.ts +23 -23
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +1 -1
- package/dist/control-trust.js.map +1 -1
- package/dist/control.d.ts +1523 -2354
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +23 -45
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +3203 -0
- package/dist/credential-profile-snapshot.d.ts.map +1 -0
- package/dist/credential-profile-snapshot.js +28 -0
- package/dist/credential-profile-snapshot.js.map +1 -0
- package/dist/credential-profile.d.ts +122 -107
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +12 -6
- package/dist/credential-profile.js.map +1 -1
- package/dist/decision.d.ts +121 -121
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +2 -1
- package/dist/decision.js.map +1 -1
- package/dist/deep-scan.d.ts +5 -5
- package/dist/deep-scan.d.ts.map +1 -1
- package/dist/deep-scan.js +1 -1
- package/dist/deep-scan.js.map +1 -1
- package/dist/delegation.d.ts +13 -13
- package/dist/delegation.d.ts.map +1 -1
- package/dist/delegation.js +1 -1
- package/dist/delegation.js.map +1 -1
- package/dist/delivery.d.ts +32 -32
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +1 -1
- package/dist/delivery.js.map +1 -1
- package/dist/effort.d.ts +1 -1
- package/dist/effort.d.ts.map +1 -1
- package/dist/effort.js +1 -1
- package/dist/effort.js.map +1 -1
- package/dist/events.d.ts +55 -35
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +20 -1
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +7 -7
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +1 -1
- package/dist/gate.js.map +1 -1
- package/dist/git-capability.d.ts +23 -0
- package/dist/git-capability.d.ts.map +1 -0
- package/dist/git-capability.js +15 -0
- package/dist/git-capability.js.map +1 -0
- package/dist/harness.d.ts +417 -400
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +11 -25
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +10 -0
- package/dist/interaction.d.ts.map +1 -0
- package/dist/interaction.js +2 -0
- package/dist/interaction.js.map +1 -0
- package/dist/operation.d.ts +113 -113
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +1 -1
- package/dist/operation.js.map +1 -1
- package/dist/output-schema-dialect.d.ts +1 -1
- package/dist/output-schema-dialect.d.ts.map +1 -1
- package/dist/output-schema-dialect.js +1 -1
- package/dist/output-schema-dialect.js.map +1 -1
- package/dist/output-schema.d.ts +2 -2
- package/dist/output-schema.js +2 -2
- package/dist/plan.d.ts +29 -29
- package/dist/plan.d.ts.map +1 -1
- package/dist/plan.js +2 -2
- package/dist/plan.js.map +1 -1
- package/dist/primitives.d.ts +3 -5
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +4 -6
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +6 -6
- package/dist/problem.d.ts.map +1 -1
- package/dist/problem.js +1 -1
- package/dist/problem.js.map +1 -1
- package/dist/project.d.ts +87 -25
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +21 -1
- package/dist/project.js.map +1 -1
- package/dist/quota.d.ts +72 -48
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +6 -2
- package/dist/quota.js.map +1 -1
- package/dist/rate-limit.d.ts +20 -0
- package/dist/rate-limit.d.ts.map +1 -0
- package/dist/rate-limit.js +24 -0
- package/dist/rate-limit.js.map +1 -0
- package/dist/raw.d.ts +16 -16
- package/dist/raw.d.ts.map +1 -1
- package/dist/raw.js +1 -1
- package/dist/raw.js.map +1 -1
- package/dist/readiness.d.ts +242 -242
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +1 -1
- package/dist/readiness.js.map +1 -1
- package/dist/recovery.d.ts +106 -106
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +1 -1
- package/dist/recovery.js.map +1 -1
- package/dist/request-requirements.d.ts +9 -9
- package/dist/request-requirements.d.ts.map +1 -1
- package/dist/request-requirements.js +1 -1
- package/dist/request-requirements.js.map +1 -1
- package/dist/review.d.ts +29 -29
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +1 -1
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +11 -11
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +1 -1
- package/dist/route.js.map +1 -1
- package/dist/run-applicability.d.ts +764 -0
- package/dist/run-applicability.d.ts.map +1 -0
- package/dist/run-applicability.js +56 -0
- package/dist/run-applicability.js.map +1 -0
- package/dist/run-facts.d.ts +628 -0
- package/dist/run-facts.d.ts.map +1 -0
- package/dist/run-facts.js +429 -0
- package/dist/run-facts.js.map +1 -0
- package/dist/run-strategy.d.ts +40 -0
- package/dist/run-strategy.d.ts.map +1 -1
- package/dist/run-strategy.js +68 -1
- package/dist/run-strategy.js.map +1 -1
- package/dist/setup-device-code-envelope.d.ts +67 -0
- package/dist/setup-device-code-envelope.d.ts.map +1 -0
- package/dist/setup-device-code-envelope.js +25 -0
- package/dist/setup-device-code-envelope.js.map +1 -0
- package/dist/setup-login-protocol.d.ts +6 -0
- package/dist/setup-login-protocol.d.ts.map +1 -0
- package/dist/setup-login-protocol.js +12 -0
- package/dist/setup-login-protocol.js.map +1 -0
- package/dist/setup-transport.d.ts +12 -0
- package/dist/setup-transport.d.ts.map +1 -0
- package/dist/setup-transport.js +22 -0
- package/dist/setup-transport.js.map +1 -0
- package/dist/setup.d.ts +12572 -3749
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +34 -38
- package/dist/setup.js.map +1 -1
- package/dist/status-projection.d.ts +7 -5
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +11 -6
- package/dist/status-projection.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +10 -1
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +303 -303
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +1 -1
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +1157 -633
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +7 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +133 -84
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +21 -2
- package/dist/thread.js.map +1 -1
- package/dist/tool-ref.d.ts +7 -7
- package/dist/tool-ref.d.ts.map +1 -1
- package/dist/tool-ref.js +1 -1
- package/dist/tool-ref.js.map +1 -1
- package/dist/work-report.d.ts +28 -28
- package/dist/work-report.d.ts.map +1 -1
- package/dist/work-report.js +3 -3
- package/dist/work-report.js.map +1 -1
- package/dist/workproduct.d.ts +6 -9
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js +1 -2
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +13 -13
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +1 -1
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +43 -2
- package/generated/BudgetObservation.schema.json +16 -0
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +1346 -0
- package/generated/ControlCredentialProfilesResponse.schema.json +10 -2
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1325 -0
- package/generated/ControlDirectoryEntry.schema.json +36 -0
- package/generated/ControlDirectoryListing.schema.json +77 -0
- package/generated/ControlHarnessListResponse.schema.json +41 -1
- package/generated/ControlQuotaResponse.schema.json +14 -1
- package/generated/ControlRunAgainDraft.schema.json +2 -2
- package/generated/ControlRunApplicabilityResponse.schema.json +217 -0
- package/generated/ControlRunDetail.schema.json +429 -68
- package/generated/ControlRunListResponse.schema.json +12 -3
- package/generated/ControlRunStartRequest.schema.json +2 -2
- package/generated/ControlRunSummary.schema.json +12 -3
- package/generated/ControlSettingsSnapshot.schema.json +12 -3
- package/generated/ControlSettingsUpdateRequest.schema.json +12 -3
- package/generated/ControlSetupJob.schema.json +9 -0
- package/generated/ControlSetupJobCreateRequest.schema.json +9 -0
- package/generated/ControlSetupJobEvent.schema.json +858 -758
- package/generated/ControlSetupJobListResponse.schema.json +9 -0
- package/generated/ControlSetupJobSnapshot.schema.json +811 -736
- package/generated/ControlThreadDetail.schema.json +32 -2
- package/generated/ControlThreadTurnRequest.schema.json +6 -25
- package/generated/DecisionRecord.schema.json +2 -1
- package/generated/GitCapability.schema.json +46 -0
- package/generated/GlobalConfig.schema.json +13 -4
- package/generated/HarnessEvent.schema.json +34 -2
- package/generated/HarnessManifest.schema.json +1 -1
- package/generated/HarnessStatusDto.schema.json +1 -1
- package/generated/McpRunHandleResult.schema.json +165 -1
- package/generated/McpRunToolResult.schema.json +165 -1
- package/generated/OutputReadyPayload.schema.json +44 -0
- package/generated/RunFacts.schema.json +569 -0
- package/generated/RunTelemetry.schema.json +493 -3
- package/generated/TaskContract.schema.json +1 -1
- package/generated/ThreadTurn.schema.json +29 -0
- package/generated/WorkProduct.schema.json +0 -4
- package/package.json +3 -3
package/dist/quota.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
export declare const QuotaSource: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage"]>;
|
|
3
3
|
export type QuotaSource = z.infer<typeof QuotaSource>;
|
|
4
4
|
export declare const QuotaFreshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
|
|
@@ -16,12 +16,12 @@ export declare const QuotaSubject: z.ZodObject<{
|
|
|
16
16
|
subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
}, "strict", z.ZodTypeAny, {
|
|
18
18
|
harness: string;
|
|
19
|
-
credential_route: "local" | "
|
|
19
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
20
20
|
plan_label: string | null;
|
|
21
21
|
subject_id: string | null;
|
|
22
22
|
}, {
|
|
23
23
|
harness: string;
|
|
24
|
-
credential_route: "local" | "
|
|
24
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
25
25
|
plan_label?: string | null | undefined;
|
|
26
26
|
subject_id?: string | null | undefined;
|
|
27
27
|
}>;
|
|
@@ -29,6 +29,10 @@ export type QuotaSubject = z.infer<typeof QuotaSubject>;
|
|
|
29
29
|
export declare const QuotaConstraint: z.ZodObject<{
|
|
30
30
|
id: z.ZodString;
|
|
31
31
|
label: z.ZodString;
|
|
32
|
+
/** omitted/null = this vendor window applies to every model. A non-null
|
|
33
|
+
* list is the producer's canonical model-id/alias scope, so a
|
|
34
|
+
* model-specific cap never cools a different model on the same subject. */
|
|
35
|
+
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
32
36
|
used_ratio: z.ZodNullable<z.ZodNumber>;
|
|
33
37
|
window_seconds: z.ZodNullable<z.ZodNumber>;
|
|
34
38
|
resets_at: z.ZodNullable<z.ZodString>;
|
|
@@ -36,6 +40,7 @@ export declare const QuotaConstraint: z.ZodObject<{
|
|
|
36
40
|
}, "strict", z.ZodTypeAny, {
|
|
37
41
|
id: string;
|
|
38
42
|
label: string;
|
|
43
|
+
applies_to_models?: string[] | null | undefined;
|
|
39
44
|
used_ratio: number | null;
|
|
40
45
|
window_seconds: number | null;
|
|
41
46
|
resets_at: string | null;
|
|
@@ -43,6 +48,7 @@ export declare const QuotaConstraint: z.ZodObject<{
|
|
|
43
48
|
}, {
|
|
44
49
|
id: string;
|
|
45
50
|
label: string;
|
|
51
|
+
applies_to_models?: string[] | null | undefined;
|
|
46
52
|
used_ratio: number | null;
|
|
47
53
|
window_seconds: number | null;
|
|
48
54
|
resets_at: string | null;
|
|
@@ -63,18 +69,22 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
63
69
|
subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
64
70
|
}, "strict", z.ZodTypeAny, {
|
|
65
71
|
harness: string;
|
|
66
|
-
credential_route: "local" | "
|
|
72
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
67
73
|
plan_label: string | null;
|
|
68
74
|
subject_id: string | null;
|
|
69
75
|
}, {
|
|
70
76
|
harness: string;
|
|
71
|
-
credential_route: "local" | "
|
|
77
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
72
78
|
plan_label?: string | null | undefined;
|
|
73
79
|
subject_id?: string | null | undefined;
|
|
74
80
|
}>;
|
|
75
81
|
constraints: z.ZodArray<z.ZodObject<{
|
|
76
82
|
id: z.ZodString;
|
|
77
83
|
label: z.ZodString;
|
|
84
|
+
/** omitted/null = this vendor window applies to every model. A non-null
|
|
85
|
+
* list is the producer's canonical model-id/alias scope, so a
|
|
86
|
+
* model-specific cap never cools a different model on the same subject. */
|
|
87
|
+
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
78
88
|
used_ratio: z.ZodNullable<z.ZodNumber>;
|
|
79
89
|
window_seconds: z.ZodNullable<z.ZodNumber>;
|
|
80
90
|
resets_at: z.ZodNullable<z.ZodString>;
|
|
@@ -82,6 +92,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
82
92
|
}, "strict", z.ZodTypeAny, {
|
|
83
93
|
id: string;
|
|
84
94
|
label: string;
|
|
95
|
+
applies_to_models?: string[] | null | undefined;
|
|
85
96
|
used_ratio: number | null;
|
|
86
97
|
window_seconds: number | null;
|
|
87
98
|
resets_at: string | null;
|
|
@@ -89,6 +100,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
89
100
|
}, {
|
|
90
101
|
id: string;
|
|
91
102
|
label: string;
|
|
103
|
+
applies_to_models?: string[] | null | undefined;
|
|
92
104
|
used_ratio: number | null;
|
|
93
105
|
window_seconds: number | null;
|
|
94
106
|
resets_at: string | null;
|
|
@@ -98,41 +110,43 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
98
110
|
observed_at: z.ZodString;
|
|
99
111
|
freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
|
|
100
112
|
}, "strict", z.ZodTypeAny, {
|
|
101
|
-
source: "codex_app_server" | "codex_rollout" | "claude_statusline" | "claude_api_retry" | "claude_oauth_usage";
|
|
102
113
|
subject: {
|
|
103
114
|
harness: string;
|
|
104
|
-
credential_route: "local" | "
|
|
115
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
105
116
|
plan_label: string | null;
|
|
106
117
|
subject_id: string | null;
|
|
107
118
|
};
|
|
108
119
|
constraints: {
|
|
109
120
|
id: string;
|
|
110
121
|
label: string;
|
|
122
|
+
applies_to_models?: string[] | null | undefined;
|
|
111
123
|
used_ratio: number | null;
|
|
112
124
|
window_seconds: number | null;
|
|
113
125
|
resets_at: string | null;
|
|
114
126
|
cooldown_until: string | null;
|
|
115
127
|
}[];
|
|
128
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
116
129
|
observed_at: string;
|
|
117
|
-
freshness: "
|
|
130
|
+
freshness: "fresh" | "stale" | "unknown";
|
|
118
131
|
}, {
|
|
119
|
-
source: "codex_app_server" | "codex_rollout" | "claude_statusline" | "claude_api_retry" | "claude_oauth_usage";
|
|
120
132
|
subject: {
|
|
121
133
|
harness: string;
|
|
122
|
-
credential_route: "local" | "
|
|
134
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
123
135
|
plan_label?: string | null | undefined;
|
|
124
136
|
subject_id?: string | null | undefined;
|
|
125
137
|
};
|
|
126
138
|
constraints: {
|
|
127
139
|
id: string;
|
|
128
140
|
label: string;
|
|
141
|
+
applies_to_models?: string[] | null | undefined;
|
|
129
142
|
used_ratio: number | null;
|
|
130
143
|
window_seconds: number | null;
|
|
131
144
|
resets_at: string | null;
|
|
132
145
|
cooldown_until?: string | null | undefined;
|
|
133
146
|
}[];
|
|
147
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
134
148
|
observed_at: string;
|
|
135
|
-
freshness: "
|
|
149
|
+
freshness: "fresh" | "stale" | "unknown";
|
|
136
150
|
}>;
|
|
137
151
|
export type QuotaSnapshot = z.infer<typeof QuotaSnapshot>;
|
|
138
152
|
export declare const QuotaAbsenceReason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source"]>;
|
|
@@ -151,12 +165,12 @@ export declare const QuotaAbsence: z.ZodObject<{
|
|
|
151
165
|
subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
152
166
|
}, "strict", z.ZodTypeAny, {
|
|
153
167
|
harness: string;
|
|
154
|
-
credential_route: "local" | "
|
|
168
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
155
169
|
plan_label: string | null;
|
|
156
170
|
subject_id: string | null;
|
|
157
171
|
}, {
|
|
158
172
|
harness: string;
|
|
159
|
-
credential_route: "local" | "
|
|
173
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
160
174
|
plan_label?: string | null | undefined;
|
|
161
175
|
subject_id?: string | null | undefined;
|
|
162
176
|
}>;
|
|
@@ -164,25 +178,25 @@ export declare const QuotaAbsence: z.ZodObject<{
|
|
|
164
178
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
165
179
|
observed_at: z.ZodString;
|
|
166
180
|
}, "strict", z.ZodTypeAny, {
|
|
167
|
-
detail: string | null;
|
|
168
|
-
reason: "not_logged_in" | "transport_unavailable" | "platform_unsupported" | "refresh_failed" | "no_source";
|
|
169
181
|
subject: {
|
|
170
182
|
harness: string;
|
|
171
|
-
credential_route: "local" | "
|
|
183
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
172
184
|
plan_label: string | null;
|
|
173
185
|
subject_id: string | null;
|
|
174
186
|
};
|
|
187
|
+
reason: "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
188
|
+
detail: string | null;
|
|
175
189
|
observed_at: string;
|
|
176
190
|
}, {
|
|
177
|
-
reason: "not_logged_in" | "transport_unavailable" | "platform_unsupported" | "refresh_failed" | "no_source";
|
|
178
191
|
subject: {
|
|
179
192
|
harness: string;
|
|
180
|
-
credential_route: "local" | "
|
|
193
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
181
194
|
plan_label?: string | null | undefined;
|
|
182
195
|
subject_id?: string | null | undefined;
|
|
183
196
|
};
|
|
184
|
-
|
|
197
|
+
reason: "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
185
198
|
detail?: string | null | undefined;
|
|
199
|
+
observed_at: string;
|
|
186
200
|
}>;
|
|
187
201
|
export type QuotaAbsence = z.infer<typeof QuotaAbsence>;
|
|
188
202
|
export declare const ControlQuotaResponse: z.ZodObject<{
|
|
@@ -200,18 +214,22 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
200
214
|
subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
201
215
|
}, "strict", z.ZodTypeAny, {
|
|
202
216
|
harness: string;
|
|
203
|
-
credential_route: "local" | "
|
|
217
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
204
218
|
plan_label: string | null;
|
|
205
219
|
subject_id: string | null;
|
|
206
220
|
}, {
|
|
207
221
|
harness: string;
|
|
208
|
-
credential_route: "local" | "
|
|
222
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
209
223
|
plan_label?: string | null | undefined;
|
|
210
224
|
subject_id?: string | null | undefined;
|
|
211
225
|
}>;
|
|
212
226
|
constraints: z.ZodArray<z.ZodObject<{
|
|
213
227
|
id: z.ZodString;
|
|
214
228
|
label: z.ZodString;
|
|
229
|
+
/** omitted/null = this vendor window applies to every model. A non-null
|
|
230
|
+
* list is the producer's canonical model-id/alias scope, so a
|
|
231
|
+
* model-specific cap never cools a different model on the same subject. */
|
|
232
|
+
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
215
233
|
used_ratio: z.ZodNullable<z.ZodNumber>;
|
|
216
234
|
window_seconds: z.ZodNullable<z.ZodNumber>;
|
|
217
235
|
resets_at: z.ZodNullable<z.ZodString>;
|
|
@@ -219,6 +237,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
219
237
|
}, "strict", z.ZodTypeAny, {
|
|
220
238
|
id: string;
|
|
221
239
|
label: string;
|
|
240
|
+
applies_to_models?: string[] | null | undefined;
|
|
222
241
|
used_ratio: number | null;
|
|
223
242
|
window_seconds: number | null;
|
|
224
243
|
resets_at: string | null;
|
|
@@ -226,6 +245,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
226
245
|
}, {
|
|
227
246
|
id: string;
|
|
228
247
|
label: string;
|
|
248
|
+
applies_to_models?: string[] | null | undefined;
|
|
229
249
|
used_ratio: number | null;
|
|
230
250
|
window_seconds: number | null;
|
|
231
251
|
resets_at: string | null;
|
|
@@ -235,41 +255,43 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
235
255
|
observed_at: z.ZodString;
|
|
236
256
|
freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
|
|
237
257
|
}, "strict", z.ZodTypeAny, {
|
|
238
|
-
source: "codex_app_server" | "codex_rollout" | "claude_statusline" | "claude_api_retry" | "claude_oauth_usage";
|
|
239
258
|
subject: {
|
|
240
259
|
harness: string;
|
|
241
|
-
credential_route: "local" | "
|
|
260
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
242
261
|
plan_label: string | null;
|
|
243
262
|
subject_id: string | null;
|
|
244
263
|
};
|
|
245
264
|
constraints: {
|
|
246
265
|
id: string;
|
|
247
266
|
label: string;
|
|
267
|
+
applies_to_models?: string[] | null | undefined;
|
|
248
268
|
used_ratio: number | null;
|
|
249
269
|
window_seconds: number | null;
|
|
250
270
|
resets_at: string | null;
|
|
251
271
|
cooldown_until: string | null;
|
|
252
272
|
}[];
|
|
273
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
253
274
|
observed_at: string;
|
|
254
|
-
freshness: "
|
|
275
|
+
freshness: "fresh" | "stale" | "unknown";
|
|
255
276
|
}, {
|
|
256
|
-
source: "codex_app_server" | "codex_rollout" | "claude_statusline" | "claude_api_retry" | "claude_oauth_usage";
|
|
257
277
|
subject: {
|
|
258
278
|
harness: string;
|
|
259
|
-
credential_route: "local" | "
|
|
279
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
260
280
|
plan_label?: string | null | undefined;
|
|
261
281
|
subject_id?: string | null | undefined;
|
|
262
282
|
};
|
|
263
283
|
constraints: {
|
|
264
284
|
id: string;
|
|
265
285
|
label: string;
|
|
286
|
+
applies_to_models?: string[] | null | undefined;
|
|
266
287
|
used_ratio: number | null;
|
|
267
288
|
window_seconds: number | null;
|
|
268
289
|
resets_at: string | null;
|
|
269
290
|
cooldown_until?: string | null | undefined;
|
|
270
291
|
}[];
|
|
292
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
271
293
|
observed_at: string;
|
|
272
|
-
freshness: "
|
|
294
|
+
freshness: "fresh" | "stale" | "unknown";
|
|
273
295
|
}>, "many">;
|
|
274
296
|
absences: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
275
297
|
subject: z.ZodObject<{
|
|
@@ -285,12 +307,12 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
285
307
|
subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
286
308
|
}, "strict", z.ZodTypeAny, {
|
|
287
309
|
harness: string;
|
|
288
|
-
credential_route: "local" | "
|
|
310
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
289
311
|
plan_label: string | null;
|
|
290
312
|
subject_id: string | null;
|
|
291
313
|
}, {
|
|
292
314
|
harness: string;
|
|
293
|
-
credential_route: "local" | "
|
|
315
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
294
316
|
plan_label?: string | null | undefined;
|
|
295
317
|
subject_id?: string | null | undefined;
|
|
296
318
|
}>;
|
|
@@ -298,91 +320,93 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
298
320
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
299
321
|
observed_at: z.ZodString;
|
|
300
322
|
}, "strict", z.ZodTypeAny, {
|
|
301
|
-
detail: string | null;
|
|
302
|
-
reason: "not_logged_in" | "transport_unavailable" | "platform_unsupported" | "refresh_failed" | "no_source";
|
|
303
323
|
subject: {
|
|
304
324
|
harness: string;
|
|
305
|
-
credential_route: "local" | "
|
|
325
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
306
326
|
plan_label: string | null;
|
|
307
327
|
subject_id: string | null;
|
|
308
328
|
};
|
|
329
|
+
reason: "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
330
|
+
detail: string | null;
|
|
309
331
|
observed_at: string;
|
|
310
332
|
}, {
|
|
311
|
-
reason: "not_logged_in" | "transport_unavailable" | "platform_unsupported" | "refresh_failed" | "no_source";
|
|
312
333
|
subject: {
|
|
313
334
|
harness: string;
|
|
314
|
-
credential_route: "local" | "
|
|
335
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
315
336
|
plan_label?: string | null | undefined;
|
|
316
337
|
subject_id?: string | null | undefined;
|
|
317
338
|
};
|
|
318
|
-
|
|
339
|
+
reason: "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
319
340
|
detail?: string | null | undefined;
|
|
341
|
+
observed_at: string;
|
|
320
342
|
}>, "many">>;
|
|
321
343
|
refreshed_at: z.ZodNullable<z.ZodString>;
|
|
322
344
|
}, "strict", z.ZodTypeAny, {
|
|
323
345
|
snapshots: {
|
|
324
|
-
source: "codex_app_server" | "codex_rollout" | "claude_statusline" | "claude_api_retry" | "claude_oauth_usage";
|
|
325
346
|
subject: {
|
|
326
347
|
harness: string;
|
|
327
|
-
credential_route: "local" | "
|
|
348
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
328
349
|
plan_label: string | null;
|
|
329
350
|
subject_id: string | null;
|
|
330
351
|
};
|
|
331
352
|
constraints: {
|
|
332
353
|
id: string;
|
|
333
354
|
label: string;
|
|
355
|
+
applies_to_models?: string[] | null | undefined;
|
|
334
356
|
used_ratio: number | null;
|
|
335
357
|
window_seconds: number | null;
|
|
336
358
|
resets_at: string | null;
|
|
337
359
|
cooldown_until: string | null;
|
|
338
360
|
}[];
|
|
361
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
339
362
|
observed_at: string;
|
|
340
|
-
freshness: "
|
|
363
|
+
freshness: "fresh" | "stale" | "unknown";
|
|
341
364
|
}[];
|
|
342
365
|
absences: {
|
|
343
|
-
detail: string | null;
|
|
344
|
-
reason: "not_logged_in" | "transport_unavailable" | "platform_unsupported" | "refresh_failed" | "no_source";
|
|
345
366
|
subject: {
|
|
346
367
|
harness: string;
|
|
347
|
-
credential_route: "local" | "
|
|
368
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
348
369
|
plan_label: string | null;
|
|
349
370
|
subject_id: string | null;
|
|
350
371
|
};
|
|
372
|
+
reason: "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
373
|
+
detail: string | null;
|
|
351
374
|
observed_at: string;
|
|
352
375
|
}[];
|
|
353
376
|
refreshed_at: string | null;
|
|
354
377
|
}, {
|
|
355
378
|
snapshots: {
|
|
356
|
-
source: "codex_app_server" | "codex_rollout" | "claude_statusline" | "claude_api_retry" | "claude_oauth_usage";
|
|
357
379
|
subject: {
|
|
358
380
|
harness: string;
|
|
359
|
-
credential_route: "local" | "
|
|
381
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
360
382
|
plan_label?: string | null | undefined;
|
|
361
383
|
subject_id?: string | null | undefined;
|
|
362
384
|
};
|
|
363
385
|
constraints: {
|
|
364
386
|
id: string;
|
|
365
387
|
label: string;
|
|
388
|
+
applies_to_models?: string[] | null | undefined;
|
|
366
389
|
used_ratio: number | null;
|
|
367
390
|
window_seconds: number | null;
|
|
368
391
|
resets_at: string | null;
|
|
369
392
|
cooldown_until?: string | null | undefined;
|
|
370
393
|
}[];
|
|
394
|
+
source: "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
371
395
|
observed_at: string;
|
|
372
|
-
freshness: "
|
|
396
|
+
freshness: "fresh" | "stale" | "unknown";
|
|
373
397
|
}[];
|
|
374
|
-
refreshed_at: string | null;
|
|
375
398
|
absences?: {
|
|
376
|
-
reason: "not_logged_in" | "transport_unavailable" | "platform_unsupported" | "refresh_failed" | "no_source";
|
|
377
399
|
subject: {
|
|
378
400
|
harness: string;
|
|
379
|
-
credential_route: "local" | "
|
|
401
|
+
credential_route: "local" | "managed_api_key" | "vendor_native";
|
|
380
402
|
plan_label?: string | null | undefined;
|
|
381
403
|
subject_id?: string | null | undefined;
|
|
382
404
|
};
|
|
383
|
-
|
|
405
|
+
reason: "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
384
406
|
detail?: string | null | undefined;
|
|
407
|
+
observed_at: string;
|
|
385
408
|
}[] | undefined;
|
|
409
|
+
refreshed_at: string | null;
|
|
386
410
|
}>;
|
|
387
411
|
export type ControlQuotaResponse = z.infer<typeof ControlQuotaResponse>;
|
|
388
412
|
//# sourceMappingURL=quota.d.ts.map
|
package/dist/quota.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quota.d.ts","sourceRoot":"","sources":["../src/quota.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"quota.d.ts","sourceRoot":"","sources":["../src/quota.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,eAAO,MAAM,WAAW,iHAQgD,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,cAAc,0CAE+B,CAAC;AAC3D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,YAAY;;;;IAKrB;;;;;mDAK+C;;;;;;;;;;;;EAMhD,CAAC;AACJ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,eAAe;;;IAIxB;;+EAE2E;;;;;;;;;;;;;;;;;;;;;;EAU5E,CAAC;AACJ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,aAAa;;;;;QAjCtB;;;;;uDAK+C;;;;;;;;;;;;;;;;QAa/C;;mFAE2E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBM,CAAC;AACtF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,kBAAkB,8GAQ+D,CAAC;AAC/F,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,YAAY;;;;;QAxDrB;;;;;uDAK+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2D8C,CAAC;AAClG,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,oBAAoB;;;;;;YAnE7B;;;;;2DAK+C;;;;;;;;;;;;;;;;YAa/C;;uFAE2E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YApB3E;;;;;2DAK+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0EmB,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/quota.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
import { Id } from "./primitives.js";
|
|
3
3
|
export const QuotaSource = z
|
|
4
4
|
.enum([
|
|
@@ -31,13 +31,17 @@ export const QuotaConstraint = z
|
|
|
31
31
|
.object({
|
|
32
32
|
id: Id,
|
|
33
33
|
label: z.string().min(1),
|
|
34
|
+
/** omitted/null = this vendor window applies to every model. A non-null
|
|
35
|
+
* list is the producer's canonical model-id/alias scope, so a
|
|
36
|
+
* model-specific cap never cools a different model on the same subject. */
|
|
37
|
+
applies_to_models: z.array(Id).nullable().optional(),
|
|
34
38
|
used_ratio: z.number().min(0).max(1).nullable(),
|
|
35
39
|
window_seconds: z.number().positive().nullable(),
|
|
36
40
|
resets_at: z.string().datetime({ offset: true }).nullable(),
|
|
37
41
|
cooldown_until: z.string().datetime({ offset: true }).nullable().default(null),
|
|
38
42
|
})
|
|
39
43
|
.strict()
|
|
40
|
-
.describe("One independent vendor quota window; null usage stays unknown.");
|
|
44
|
+
.describe("One independent vendor quota window; omitted/null applies_to_models means every model, and null usage stays unknown.");
|
|
41
45
|
export const QuotaSnapshot = z
|
|
42
46
|
.object({
|
|
43
47
|
subject: QuotaSubject,
|
package/dist/quota.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quota.js","sourceRoot":"","sources":["../src/quota.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"quota.js","sourceRoot":"","sources":["../src/quota.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,IAAI,CAAC;IACJ,kBAAkB;IAClB,eAAe;IACf,mBAAmB;IACnB,kBAAkB;IAClB,oBAAoB;CACrB,CAAC;KACD,QAAQ,CAAC,2DAA2D,CAAC,CAAC;AAGzE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;KACnC,QAAQ,CAAC,6CAA6C,CAAC,CAAC;AAG3D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC1B,MAAM,CAAC;IACN,OAAO,EAAE,EAAE;IACX,gB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AAyD,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
/** Typed rate-limit/quota signal produced from native adapter evidence. */
|
|
3
|
+
export declare const RateLimitSignal: z.ZodObject<{
|
|
4
|
+
constraint_id: z.ZodOptional<z.ZodString>;
|
|
5
|
+
applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
6
|
+
resets_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
retry_delay_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
constraint_id?: string | undefined;
|
|
10
|
+
applies_to_models?: string[] | null | undefined;
|
|
11
|
+
resets_at: string | null;
|
|
12
|
+
retry_delay_ms: number | null;
|
|
13
|
+
}, {
|
|
14
|
+
constraint_id?: string | undefined;
|
|
15
|
+
applies_to_models?: string[] | null | undefined;
|
|
16
|
+
resets_at?: string | null | undefined;
|
|
17
|
+
retry_delay_ms?: number | null | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export type RateLimitSignal = z.infer<typeof RateLimitSignal>;
|
|
20
|
+
//# sourceMappingURL=rate-limit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rate-limit.d.ts","sourceRoot":"","sources":["../src/rate-limit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,2EAA2E;AAC3E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAuB1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
import { Id } from "./primitives.js";
|
|
3
|
+
/** Typed rate-limit/quota signal produced from native adapter evidence. */
|
|
4
|
+
export const RateLimitSignal = z.object({
|
|
5
|
+
constraint_id: Id.optional().describe("Vendor-owned rate-window identity, when the adapter can map it from a typed field."),
|
|
6
|
+
applies_to_models: z
|
|
7
|
+
.array(Id)
|
|
8
|
+
.nullable()
|
|
9
|
+
.optional()
|
|
10
|
+
.describe("Canonical model ids/aliases this rejection applies to; omitted/null means every model."),
|
|
11
|
+
resets_at: z
|
|
12
|
+
.string()
|
|
13
|
+
.nullable()
|
|
14
|
+
.default(null)
|
|
15
|
+
.describe("When the rate window resets, when reported."),
|
|
16
|
+
retry_delay_ms: z
|
|
17
|
+
.number()
|
|
18
|
+
.int()
|
|
19
|
+
.nonnegative()
|
|
20
|
+
.nullable()
|
|
21
|
+
.default(null)
|
|
22
|
+
.describe("Suggested retry delay in milliseconds, when reported."),
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=rate-limit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rate-limit.js","sourceRoot":"","sources":["../src/rate-limit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,2EAA2E;AAC3E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,aAAa,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACnC,oFAAoF,CACrF;IACD,iBAAiB,EAAE,CAAC;SACjB,KAAK,CAAC,EAAE,CAAC;SACT,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACP,wFAAwF,CACzF;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,6CAA6C,CAAC;IAC1D,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,GAAG,EAAE;SACL,WAAW,EAAE;SACb,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,uDAAuD,CAAC;CACrE,CAAC,CAAC"}
|
package/dist/raw.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
2
|
export declare const ImplementationTransport: z.ZodEnum<["workspace", "git_patch_envelope"]>;
|
|
3
3
|
export type ImplementationTransport = z.infer<typeof ImplementationTransport>;
|
|
4
4
|
export declare const RawContextFile: z.ZodObject<{
|
|
@@ -55,16 +55,16 @@ export declare const RawContextPacket: z.ZodObject<{
|
|
|
55
55
|
reason: z.ZodOptional<z.ZodString>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
path: string;
|
|
58
|
-
disposition: "
|
|
59
|
-
reason?: string | undefined;
|
|
58
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
60
59
|
hash?: string | undefined;
|
|
61
60
|
bytes?: number | undefined;
|
|
61
|
+
reason?: string | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
path: string;
|
|
64
|
-
disposition: "
|
|
65
|
-
reason?: string | undefined;
|
|
64
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
66
65
|
hash?: string | undefined;
|
|
67
66
|
bytes?: number | undefined;
|
|
67
|
+
reason?: string | undefined;
|
|
68
68
|
}>, "many">;
|
|
69
69
|
omissions: z.ZodArray<z.ZodObject<{
|
|
70
70
|
path: z.ZodString;
|
|
@@ -74,13 +74,13 @@ export declare const RawContextPacket: z.ZodObject<{
|
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
75
|
path: string;
|
|
76
76
|
reason: string;
|
|
77
|
-
replacement: "
|
|
77
|
+
replacement: "index" | "map" | "none" | "summary";
|
|
78
78
|
hash?: string | undefined;
|
|
79
79
|
}, {
|
|
80
80
|
path: string;
|
|
81
81
|
reason: string;
|
|
82
|
+
replacement?: "index" | "map" | "none" | "summary" | undefined;
|
|
82
83
|
hash?: string | undefined;
|
|
83
|
-
replacement?: "map" | "none" | "summary" | "index" | undefined;
|
|
84
84
|
}>, "many">;
|
|
85
85
|
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -99,15 +99,15 @@ export declare const RawContextPacket: z.ZodObject<{
|
|
|
99
99
|
creatable_roots: string[];
|
|
100
100
|
file_manifest: {
|
|
101
101
|
path: string;
|
|
102
|
-
disposition: "
|
|
103
|
-
reason?: string | undefined;
|
|
102
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
104
103
|
hash?: string | undefined;
|
|
105
104
|
bytes?: number | undefined;
|
|
105
|
+
reason?: string | undefined;
|
|
106
106
|
}[];
|
|
107
107
|
omissions: {
|
|
108
108
|
path: string;
|
|
109
109
|
reason: string;
|
|
110
|
-
replacement: "
|
|
110
|
+
replacement: "index" | "map" | "none" | "summary";
|
|
111
111
|
hash?: string | undefined;
|
|
112
112
|
}[];
|
|
113
113
|
evidence_refs: string[];
|
|
@@ -124,21 +124,21 @@ export declare const RawContextPacket: z.ZodObject<{
|
|
|
124
124
|
content: string;
|
|
125
125
|
}[];
|
|
126
126
|
editable_paths: string[];
|
|
127
|
+
creatable_roots?: string[] | undefined;
|
|
127
128
|
file_manifest: {
|
|
128
129
|
path: string;
|
|
129
|
-
disposition: "
|
|
130
|
-
reason?: string | undefined;
|
|
130
|
+
disposition: "binary" | "excluded" | "full" | "included" | "manifest_only" | "omitted" | "oversized" | "read_error" | "sensitive" | "vendored";
|
|
131
131
|
hash?: string | undefined;
|
|
132
132
|
bytes?: number | undefined;
|
|
133
|
+
reason?: string | undefined;
|
|
133
134
|
}[];
|
|
134
135
|
omissions: {
|
|
135
136
|
path: string;
|
|
136
137
|
reason: string;
|
|
138
|
+
replacement?: "index" | "map" | "none" | "summary" | undefined;
|
|
137
139
|
hash?: string | undefined;
|
|
138
|
-
replacement?: "map" | "none" | "summary" | "index" | undefined;
|
|
139
140
|
}[];
|
|
140
141
|
evidence_refs: string[];
|
|
141
|
-
creatable_roots?: string[] | undefined;
|
|
142
142
|
}>;
|
|
143
143
|
export type RawContextPacket = z.infer<typeof RawContextPacket>;
|
|
144
144
|
export declare const RawPatchPathEvidence: z.ZodObject<{
|
|
@@ -170,8 +170,8 @@ export declare const RawGitPatchEnvelope: z.ZodObject<{
|
|
|
170
170
|
}>, "many">;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
172
|
schema_version: 1;
|
|
173
|
-
base_tree_sha: string;
|
|
174
173
|
context_packet_hash: string;
|
|
174
|
+
base_tree_sha: string;
|
|
175
175
|
patch: string;
|
|
176
176
|
patch_hash: string;
|
|
177
177
|
touched_paths: {
|
|
@@ -180,8 +180,8 @@ export declare const RawGitPatchEnvelope: z.ZodObject<{
|
|
|
180
180
|
}[];
|
|
181
181
|
}, {
|
|
182
182
|
schema_version: 1;
|
|
183
|
-
base_tree_sha: string;
|
|
184
183
|
context_packet_hash: string;
|
|
184
|
+
base_tree_sha: string;
|
|
185
185
|
patch: string;
|
|
186
186
|
patch_hash: string;
|
|
187
187
|
touched_paths: {
|
package/dist/raw.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raw.d.ts","sourceRoot":"","sources":["../src/raw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"raw.d.ts","sourceRoot":"","sources":["../src/raw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,eAAO,MAAM,uBAAuB,gDAIjC,CAAC;AACJ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAMzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;;;;;;;EAO/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,eAAO,MAAM,mBAAmB,sUAY9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/dist/raw.js
CHANGED
package/dist/raw.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raw.js","sourceRoot":"","sources":["../src/raw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"raw.js","sourceRoot":"","sources":["../src/raw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,cA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