@claudexor/schema 3.5.0 → 3.8.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/agent-capabilities.d.ts +32 -0
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +4 -0
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/config.d.ts +48 -30
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +32 -11
- package/dist/config.js.map +1 -1
- package/dist/control-harness-list.d.ts +197 -1
- package/dist/control-harness-list.d.ts.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 +644 -30
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/credential-profile.d.ts +365 -38
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +140 -28
- package/dist/credential-profile.js.map +1 -1
- package/dist/credential-store.d.ts +19 -6
- package/dist/credential-store.d.ts.map +1 -1
- package/dist/credential-store.js +21 -6
- package/dist/credential-store.js.map +1 -1
- 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 +252 -59
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +2 -32
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +10 -10
- package/dist/platform-auth.d.ts +196 -0
- package/dist/platform-auth.d.ts.map +1 -0
- package/dist/platform-auth.js +142 -0
- package/dist/platform-auth.js.map +1 -0
- package/dist/quota.d.ts +42 -21
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +35 -0
- 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/readiness.d.ts +178 -1
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +12 -0
- package/dist/readiness.js.map +1 -1
- package/dist/setup-login.d.ts +5 -5
- package/dist/setup.d.ts +102 -95
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +29 -5
- package/dist/setup.js.map +1 -1
- package/generated/AccountsUnifiedMigrationFile.schema.json +61 -0
- package/generated/AgentCapabilityCatalog.schema.json +26 -0
- package/generated/ControlAccountPoolsResponse.schema.json +93 -0
- package/generated/ControlAccountsMigrationRollbackRequest.schema.json +18 -0
- package/generated/ControlAccountsMigrationRollbackResponse.schema.json +63 -0
- package/generated/ControlCredentialProfileCreateRequest.schema.json +1 -1
- package/generated/ControlCredentialProfileCreateResponse.schema.json +4 -4
- package/generated/ControlCredentialProfileDeleteResponse.schema.json +28 -4
- package/generated/ControlCredentialProfileUpdateResponse.schema.json +4 -4
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +212 -7
- package/generated/ControlCredentialProfilesResponse.schema.json +81 -5
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +209 -7
- package/generated/ControlHarnessAccountPool.schema.json +79 -0
- package/generated/ControlHarnessListResponse.schema.json +124 -0
- package/generated/ControlHarnessSettingsPatch.schema.json +2 -1
- package/generated/ControlPoolNextUp.schema.json +63 -0
- package/generated/ControlQuotaResponse.schema.json +4 -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 +5 -1
- package/generated/ControlSetupJobCreateRequest.schema.json +1 -1
- package/generated/ControlSetupJobEvent.schema.json +5 -1
- package/generated/ControlSetupJobListResponse.schema.json +5 -1
- package/generated/ControlSetupJobSnapshot.schema.json +5 -1
- package/generated/CredentialProfile.schema.json +3 -3
- package/generated/CredentialProfileStatus.schema.json +1 -1
- package/generated/GlobalConfig.schema.json +7 -6
- package/generated/HarnessEvent.schema.json +2 -1
- package/generated/HarnessManifest.schema.json +98 -0
- package/generated/HarnessStatusDto.schema.json +124 -0
- 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/quota.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod/v3";
|
|
2
|
-
export declare const QuotaSource: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage"]>;
|
|
2
|
+
export declare const QuotaSource: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit"]>;
|
|
3
3
|
export type QuotaSource = z.infer<typeof QuotaSource>;
|
|
4
4
|
/** Orthogonal capabilities of every quota evidence source. Keep this
|
|
5
5
|
* exhaustive registry beside the QuotaSource vocabulary so consumers cannot
|
|
@@ -46,8 +46,29 @@ export declare const QUOTA_SOURCE_TRAITS: {
|
|
|
46
46
|
readonly refreshDemandHarness: "agy";
|
|
47
47
|
readonly producedByRefresher: true;
|
|
48
48
|
};
|
|
49
|
+
readonly cursor_rate_limit: {
|
|
50
|
+
readonly vendorAuthenticated: false;
|
|
51
|
+
readonly refreshDemandHarness: null;
|
|
52
|
+
readonly producedByRefresher: false;
|
|
53
|
+
};
|
|
49
54
|
};
|
|
50
55
|
export declare function quotaSourceTraits(source: QuotaSource): QuotaSourceTraits;
|
|
56
|
+
/** Harness → source label for reactive `rate_limit` cooldown evidence. This
|
|
57
|
+
* map IS the daemon's cooldown-ingest allowlist and its expiry-predicate
|
|
58
|
+
* scope: agy stays deliberately absent because its adapter emits no
|
|
59
|
+
* `rate_limit` event, and a branch with no producer is a dead knob
|
|
60
|
+
* (INV-022/023) — a harness joins in the same change that makes its adapter
|
|
61
|
+
* emit one (cursor joined with the A1 retry-signals classifier). */
|
|
62
|
+
export declare const REACTIVE_COOLDOWN_SOURCE: Partial<Record<string, QuotaSource>>;
|
|
63
|
+
/** Durable-journal source label the strict v3.2.0 rollback runtime can parse.
|
|
64
|
+
* `cursor_rate_limit` postdates that enum, so a base upsert record carrying it
|
|
65
|
+
* would crash a rolled-back engine's replay; the base record carries the
|
|
66
|
+
* nearest v3.2.0 vocabulary instead (claude_api_retry has the same
|
|
67
|
+
* reactive-spool trait row), while the paired scoped-prepare record preserves
|
|
68
|
+
* the true source for current runtimes. `agy_command_usage` also postdates
|
|
69
|
+
* v3.2.0 but predates this mapping: remapping it now would orphan its already
|
|
70
|
+
* journaled prepare/commit hashes, so it stays a disclosed rollback residual. */
|
|
71
|
+
export declare function legacyV320QuotaSource(source: QuotaSource): QuotaSource;
|
|
51
72
|
export declare function quotaRefreshDemandHarnesses(): Array<"claude" | "codex" | "agy">;
|
|
52
73
|
export declare function quotaSourcesProducedByRefreshers(): QuotaSource[];
|
|
53
74
|
export declare const QuotaFreshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
|
|
@@ -179,7 +200,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
179
200
|
resets_at: string | null;
|
|
180
201
|
cooldown_until?: string | null | undefined;
|
|
181
202
|
}>, "many">;
|
|
182
|
-
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage"]>;
|
|
203
|
+
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit"]>;
|
|
183
204
|
observed_at: z.ZodString;
|
|
184
205
|
freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
|
|
185
206
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -199,7 +220,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
199
220
|
resets_at: string | null;
|
|
200
221
|
cooldown_until: string | null;
|
|
201
222
|
}[];
|
|
202
|
-
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
223
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
203
224
|
observed_at: string;
|
|
204
225
|
freshness: "fresh" | "stale" | "unknown";
|
|
205
226
|
}, {
|
|
@@ -219,12 +240,12 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
219
240
|
resets_at: string | null;
|
|
220
241
|
cooldown_until?: string | null | undefined;
|
|
221
242
|
}[];
|
|
222
|
-
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
243
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
223
244
|
observed_at: string;
|
|
224
245
|
freshness: "fresh" | "stale" | "unknown";
|
|
225
246
|
}>;
|
|
226
247
|
export type QuotaSnapshot = z.infer<typeof QuotaSnapshot>;
|
|
227
|
-
export declare const QuotaAbsenceReason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked"]>;
|
|
248
|
+
export declare const QuotaAbsenceReason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked", "credential_profile_ambiguous"]>;
|
|
228
249
|
export type QuotaAbsenceReason = z.infer<typeof QuotaAbsenceReason>;
|
|
229
250
|
export declare const QuotaAbsence: z.ZodObject<{
|
|
230
251
|
subject: z.ZodObject<{
|
|
@@ -249,7 +270,7 @@ export declare const QuotaAbsence: z.ZodObject<{
|
|
|
249
270
|
plan_label?: string | null | undefined;
|
|
250
271
|
subject_id?: string | null | undefined;
|
|
251
272
|
}>;
|
|
252
|
-
reason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked"]>;
|
|
273
|
+
reason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked", "credential_profile_ambiguous"]>;
|
|
253
274
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
254
275
|
observed_at: z.ZodString;
|
|
255
276
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -259,7 +280,7 @@ export declare const QuotaAbsence: z.ZodObject<{
|
|
|
259
280
|
plan_label: string | null;
|
|
260
281
|
subject_id: string | null;
|
|
261
282
|
};
|
|
262
|
-
reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
283
|
+
reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
263
284
|
detail: string | null;
|
|
264
285
|
observed_at: string;
|
|
265
286
|
}, {
|
|
@@ -269,7 +290,7 @@ export declare const QuotaAbsence: z.ZodObject<{
|
|
|
269
290
|
plan_label?: string | null | undefined;
|
|
270
291
|
subject_id?: string | null | undefined;
|
|
271
292
|
};
|
|
272
|
-
reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
293
|
+
reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
273
294
|
detail?: string | null | undefined;
|
|
274
295
|
observed_at: string;
|
|
275
296
|
}>;
|
|
@@ -390,7 +411,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
390
411
|
resets_at: string | null;
|
|
391
412
|
cooldown_until?: string | null | undefined;
|
|
392
413
|
}>, "many">;
|
|
393
|
-
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage"]>;
|
|
414
|
+
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit"]>;
|
|
394
415
|
observed_at: z.ZodString;
|
|
395
416
|
freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
|
|
396
417
|
} & {
|
|
@@ -447,7 +468,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
447
468
|
resets_at: string | null;
|
|
448
469
|
cooldown_until: string | null;
|
|
449
470
|
}[];
|
|
450
|
-
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
471
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
451
472
|
observed_at: string;
|
|
452
473
|
freshness: "fresh" | "stale" | "unknown";
|
|
453
474
|
availability?: {
|
|
@@ -477,7 +498,7 @@ export declare const ControlQuotaSnapshot: z.ZodObject<{
|
|
|
477
498
|
resets_at: string | null;
|
|
478
499
|
cooldown_until?: string | null | undefined;
|
|
479
500
|
}[];
|
|
480
|
-
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
501
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
481
502
|
observed_at: string;
|
|
482
503
|
freshness: "fresh" | "stale" | "unknown";
|
|
483
504
|
availability?: {
|
|
@@ -564,7 +585,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
564
585
|
resets_at: string | null;
|
|
565
586
|
cooldown_until?: string | null | undefined;
|
|
566
587
|
}>, "many">;
|
|
567
|
-
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage"]>;
|
|
588
|
+
source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit"]>;
|
|
568
589
|
observed_at: z.ZodString;
|
|
569
590
|
freshness: z.ZodEnum<["fresh", "stale", "unknown"]>;
|
|
570
591
|
} & {
|
|
@@ -621,7 +642,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
621
642
|
resets_at: string | null;
|
|
622
643
|
cooldown_until: string | null;
|
|
623
644
|
}[];
|
|
624
|
-
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
645
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
625
646
|
observed_at: string;
|
|
626
647
|
freshness: "fresh" | "stale" | "unknown";
|
|
627
648
|
availability?: {
|
|
@@ -651,7 +672,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
651
672
|
resets_at: string | null;
|
|
652
673
|
cooldown_until?: string | null | undefined;
|
|
653
674
|
}[];
|
|
654
|
-
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
675
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
655
676
|
observed_at: string;
|
|
656
677
|
freshness: "fresh" | "stale" | "unknown";
|
|
657
678
|
availability?: {
|
|
@@ -688,7 +709,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
688
709
|
plan_label?: string | null | undefined;
|
|
689
710
|
subject_id?: string | null | undefined;
|
|
690
711
|
}>;
|
|
691
|
-
reason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked"]>;
|
|
712
|
+
reason: z.ZodEnum<["not_logged_in", "transport_unavailable", "platform_unsupported", "refresh_failed", "no_source", "auth_revoked", "credential_profile_ambiguous"]>;
|
|
692
713
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
693
714
|
observed_at: z.ZodString;
|
|
694
715
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -698,7 +719,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
698
719
|
plan_label: string | null;
|
|
699
720
|
subject_id: string | null;
|
|
700
721
|
};
|
|
701
|
-
reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
722
|
+
reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
702
723
|
detail: string | null;
|
|
703
724
|
observed_at: string;
|
|
704
725
|
}, {
|
|
@@ -708,7 +729,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
708
729
|
plan_label?: string | null | undefined;
|
|
709
730
|
subject_id?: string | null | undefined;
|
|
710
731
|
};
|
|
711
|
-
reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
732
|
+
reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
712
733
|
detail?: string | null | undefined;
|
|
713
734
|
observed_at: string;
|
|
714
735
|
}>, "many">>;
|
|
@@ -731,7 +752,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
731
752
|
resets_at: string | null;
|
|
732
753
|
cooldown_until: string | null;
|
|
733
754
|
}[];
|
|
734
|
-
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
755
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
735
756
|
observed_at: string;
|
|
736
757
|
freshness: "fresh" | "stale" | "unknown";
|
|
737
758
|
availability?: {
|
|
@@ -752,7 +773,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
752
773
|
plan_label: string | null;
|
|
753
774
|
subject_id: string | null;
|
|
754
775
|
};
|
|
755
|
-
reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
776
|
+
reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
756
777
|
detail: string | null;
|
|
757
778
|
observed_at: string;
|
|
758
779
|
}[];
|
|
@@ -775,7 +796,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
775
796
|
resets_at: string | null;
|
|
776
797
|
cooldown_until?: string | null | undefined;
|
|
777
798
|
}[];
|
|
778
|
-
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout";
|
|
799
|
+
source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_statusline" | "codex_app_server" | "codex_rollout" | "cursor_rate_limit";
|
|
779
800
|
observed_at: string;
|
|
780
801
|
freshness: "fresh" | "stale" | "unknown";
|
|
781
802
|
availability?: {
|
|
@@ -796,7 +817,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
796
817
|
plan_label?: string | null | undefined;
|
|
797
818
|
subject_id?: string | null | undefined;
|
|
798
819
|
};
|
|
799
|
-
reason: "auth_revoked" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
820
|
+
reason: "auth_revoked" | "credential_profile_ambiguous" | "no_source" | "not_logged_in" | "platform_unsupported" | "refresh_failed" | "transport_unavailable";
|
|
800
821
|
detail?: string | null | undefined;
|
|
801
822
|
observed_at: string;
|
|
802
823
|
}[] | undefined;
|
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,QAAQ,CAAC;AAG3B,eAAO,MAAM,WAAW,
|
|
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,2JAUoE,CAAC;AAC7F,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;uDAEuD;AACvD,MAAM,WAAW,iBAAiB;IAChC;oEACgE;IAChE,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACtC;2EACuE;IACvE,QAAQ,CAAC,oBAAoB,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC;IACjE;6EACyE;IACzE,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,mBAAmB;;iBAE5B,mBAAmB;iBACnB,oBAAoB,EAAE,OAAO;iBAC7B,mBAAmB;;;iBAGnB,mBAAmB;iBACnB,oBAAoB;iBACpB,mBAAmB;;;iBAGnB,mBAAmB;iBACnB,oBAAoB;iBACpB,mBAAmB;;;iBAGnB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10
|
"agy_command_usage",
|
|
11
|
+
"cursor_rate_limit",
|
|
11
12
|
])
|
|
12
13
|
.describe("Machine-readable source of quota evidence, classified by schema-owned traits.");
|
|
13
14
|
export const QUOTA_SOURCE_TRAITS = {
|
|
@@ -44,10 +45,41 @@ export const QUOTA_SOURCE_TRAITS = {
|
|
|
44
45
|
refreshDemandHarness: "agy",
|
|
45
46
|
producedByRefresher: true,
|
|
46
47
|
},
|
|
48
|
+
cursor_rate_limit: {
|
|
49
|
+
// Reactive spool evidence classified from cursor-agent's vendor-limit
|
|
50
|
+
// prose (A1/A4): cursor exposes no quota API, so no refresher can produce
|
|
51
|
+
// or refresh this source — like claude_api_retry it exists only while a
|
|
52
|
+
// typed `rate_limit` event's cooldown does.
|
|
53
|
+
vendorAuthenticated: false,
|
|
54
|
+
refreshDemandHarness: null,
|
|
55
|
+
producedByRefresher: false,
|
|
56
|
+
},
|
|
47
57
|
};
|
|
48
58
|
export function quotaSourceTraits(source) {
|
|
49
59
|
return QUOTA_SOURCE_TRAITS[source];
|
|
50
60
|
}
|
|
61
|
+
/** Harness → source label for reactive `rate_limit` cooldown evidence. This
|
|
62
|
+
* map IS the daemon's cooldown-ingest allowlist and its expiry-predicate
|
|
63
|
+
* scope: agy stays deliberately absent because its adapter emits no
|
|
64
|
+
* `rate_limit` event, and a branch with no producer is a dead knob
|
|
65
|
+
* (INV-022/023) — a harness joins in the same change that makes its adapter
|
|
66
|
+
* emit one (cursor joined with the A1 retry-signals classifier). */
|
|
67
|
+
export const REACTIVE_COOLDOWN_SOURCE = {
|
|
68
|
+
codex: "codex_rollout",
|
|
69
|
+
claude: "claude_api_retry",
|
|
70
|
+
cursor: "cursor_rate_limit",
|
|
71
|
+
};
|
|
72
|
+
/** Durable-journal source label the strict v3.2.0 rollback runtime can parse.
|
|
73
|
+
* `cursor_rate_limit` postdates that enum, so a base upsert record carrying it
|
|
74
|
+
* would crash a rolled-back engine's replay; the base record carries the
|
|
75
|
+
* nearest v3.2.0 vocabulary instead (claude_api_retry has the same
|
|
76
|
+
* reactive-spool trait row), while the paired scoped-prepare record preserves
|
|
77
|
+
* the true source for current runtimes. `agy_command_usage` also postdates
|
|
78
|
+
* v3.2.0 but predates this mapping: remapping it now would orphan its already
|
|
79
|
+
* journaled prepare/commit hashes, so it stays a disclosed rollback residual. */
|
|
80
|
+
export function legacyV320QuotaSource(source) {
|
|
81
|
+
return source === "cursor_rate_limit" ? "claude_api_retry" : source;
|
|
82
|
+
}
|
|
51
83
|
export function quotaRefreshDemandHarnesses() {
|
|
52
84
|
return [
|
|
53
85
|
...new Set(Object.values(QUOTA_SOURCE_TRAITS)
|
|
@@ -123,6 +155,9 @@ export const QuotaAbsenceReason = z
|
|
|
123
155
|
* network) and from `not_logged_in` (there IS a stored login): the local
|
|
124
156
|
* store looks healthy while the token behind it is no longer honored. */
|
|
125
157
|
"auth_revoked",
|
|
158
|
+
/** The current platform policy allows only one enabled binding, but the
|
|
159
|
+
* persisted registry contains several. No row was selected or probed. */
|
|
160
|
+
"credential_profile_ambiguous",
|
|
126
161
|
])
|
|
127
162
|
.describe("Why a registered subject has no quota snapshot, in the source's own vocabulary.");
|
|
128
163
|
export const QuotaAbsence = z
|
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,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;IACpB,mBAAmB;CACpB,CAAC;KACD,QAAQ,CAAC,+EAA+E,CAAC,CAAC;AAkB7F,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,gBAAgB,EAAE;QAChB,mBAAmB,EAAE,I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UAAU,qBAAqB,CACnC,QAA8B,EAC9B,IAAI,GAA0C,EAAE;IAEhD,OAAO;QACL,GAAG,QAAQ;QACX,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAC/C,GAAG,QAAQ;YACX,YAAY,EAAE,yBAAyB,CAAC,QAAQ,EAAE,IAAI,CAAC;SACxD,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC"}
|
package/dist/rate-limit.d.ts
CHANGED
|
@@ -17,4 +17,13 @@ export declare const RateLimitSignal: z.ZodObject<{
|
|
|
17
17
|
retry_delay_ms?: number | null | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
export type RateLimitSignal = z.infer<typeof RateLimitSignal>;
|
|
20
|
+
/**
|
|
21
|
+
* End of a vendor-reported DAY-granular reset day as a UTC instant — the
|
|
22
|
+
* honest cooldown bound when a vendor names the reset day but no instant
|
|
23
|
+
* (cursor's "your monthly cycle ends on M/D/YYYY", carried by the adapter as
|
|
24
|
+
* `payload.vendor_reset_day = "YYYY-MM-DD"` precisely because fabricating a
|
|
25
|
+
* midnight `resets_at` would overclaim). Next-midnight UTC covers the whole
|
|
26
|
+
* named day; null for an absent, malformed, or non-calendar value.
|
|
27
|
+
*/
|
|
28
|
+
export declare function vendorResetDayCooldownEnd(payload: unknown): string | null;
|
|
20
29
|
//# sourceMappingURL=rate-limit.d.ts.map
|
package/dist/rate-limit.d.ts.map
CHANGED
|
@@ -1 +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"}
|
|
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;AAE9D;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAWzE"}
|
package/dist/rate-limit.js
CHANGED
|
@@ -21,4 +21,25 @@ export const RateLimitSignal = z.object({
|
|
|
21
21
|
.default(null)
|
|
22
22
|
.describe("Suggested retry delay in milliseconds, when reported."),
|
|
23
23
|
});
|
|
24
|
+
/**
|
|
25
|
+
* End of a vendor-reported DAY-granular reset day as a UTC instant — the
|
|
26
|
+
* honest cooldown bound when a vendor names the reset day but no instant
|
|
27
|
+
* (cursor's "your monthly cycle ends on M/D/YYYY", carried by the adapter as
|
|
28
|
+
* `payload.vendor_reset_day = "YYYY-MM-DD"` precisely because fabricating a
|
|
29
|
+
* midnight `resets_at` would overclaim). Next-midnight UTC covers the whole
|
|
30
|
+
* named day; null for an absent, malformed, or non-calendar value.
|
|
31
|
+
*/
|
|
32
|
+
export function vendorResetDayCooldownEnd(payload) {
|
|
33
|
+
const day = typeof payload === "object" && payload !== null && !Array.isArray(payload)
|
|
34
|
+
? payload["vendor_reset_day"]
|
|
35
|
+
: null;
|
|
36
|
+
if (typeof day !== "string" || !/^\d{4}-\d{2}-\d{2}$/.test(day))
|
|
37
|
+
return null;
|
|
38
|
+
const start = Date.parse(`${day}T00:00:00.000Z`);
|
|
39
|
+
// Date.parse rolls invalid calendar days over (Feb 31 -> Mar 3); the
|
|
40
|
+
// round-trip check rejects a value that names no real day.
|
|
41
|
+
if (!Number.isFinite(start) || !new Date(start).toISOString().startsWith(day))
|
|
42
|
+
return null;
|
|
43
|
+
return new Date(start + 24 * 60 * 60_000).toISOString();
|
|
44
|
+
}
|
|
24
45
|
//# sourceMappingURL=rate-limit.js.map
|
package/dist/rate-limit.js.map
CHANGED
|
@@ -1 +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"}
|
|
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,CAC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