@claudexor/schema 3.23.2 → 3.25.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.
Files changed (51) hide show
  1. package/dist/account-resources.d.ts +5842 -0
  2. package/dist/account-resources.d.ts.map +1 -0
  3. package/dist/account-resources.js +161 -0
  4. package/dist/account-resources.js.map +1 -0
  5. package/dist/account-target.d.ts +39 -0
  6. package/dist/account-target.d.ts.map +1 -0
  7. package/dist/account-target.js +16 -0
  8. package/dist/account-target.js.map +1 -0
  9. package/dist/credential-profile-snapshot.d.ts +5987 -126
  10. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  11. package/dist/credential-profile-snapshot.js +9 -1
  12. package/dist/credential-profile-snapshot.js.map +1 -1
  13. package/dist/harness-maintenance.d.ts +938 -0
  14. package/dist/harness-maintenance.d.ts.map +1 -0
  15. package/dist/harness-maintenance.js +150 -0
  16. package/dist/harness-maintenance.js.map +1 -0
  17. package/dist/harness-quota.d.ts +81 -0
  18. package/dist/harness-quota.d.ts.map +1 -0
  19. package/dist/harness-quota.js +20 -0
  20. package/dist/harness-quota.js.map +1 -0
  21. package/dist/harness.d.ts +116 -99
  22. package/dist/harness.d.ts.map +1 -1
  23. package/dist/harness.js +2 -12
  24. package/dist/harness.js.map +1 -1
  25. package/dist/index.d.ts +2 -0
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +2 -0
  28. package/dist/index.js.map +1 -1
  29. package/dist/model-operation.d.ts +116 -16
  30. package/dist/model-operation.d.ts.map +1 -1
  31. package/dist/model-operation.js +13 -5
  32. package/dist/model-operation.js.map +1 -1
  33. package/dist/quota.d.ts +1 -8
  34. package/dist/quota.d.ts.map +1 -1
  35. package/dist/quota.js +1 -10
  36. package/dist/quota.js.map +1 -1
  37. package/generated/ControlAccountResetRequest.schema.json +42 -0
  38. package/generated/ControlAccountResetResponse.schema.json +1024 -0
  39. package/generated/ControlAccountResourcesResponse.schema.json +912 -0
  40. package/generated/ControlCredentialProfilesQueryResponse.schema.json +600 -0
  41. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +2324 -0
  42. package/generated/ControlHarnessMaintenanceCreateRequest.schema.json +84 -0
  43. package/generated/ControlHarnessMaintenanceInventory.schema.json +345 -0
  44. package/generated/ControlHarnessMaintenanceOperation.schema.json +298 -0
  45. package/generated/ControlModelAccountCatalogResponse.schema.json +22 -1
  46. package/generated/ControlModelCatalogQueryResponse.schema.json +22 -1
  47. package/generated/ControlModelCatalogResponse.schema.json +22 -1
  48. package/generated/ControlQuotaQueryResponse.schema.json +939 -0
  49. package/generated/ControlQuotaRefreshRequest.schema.json +18 -0
  50. package/generated/HarnessEvent.schema.json +23 -0
  51. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness-maintenance.d.ts","sourceRoot":"","sources":["../src/harness-maintenance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,uEAAuE;AACvE,eAAO,MAAM,oBAAoB,aAKO,CAAC;AAEzC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;IASlC,CAAC;AACJ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAchF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8DzB,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASgD,CAAC;AAChG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
@@ -0,0 +1,150 @@
1
+ import { z } from "zod/v3";
2
+ import { ControlProblem } from "./problem.js";
3
+ import { IsoTimestamp } from "./primitives.js";
4
+ /** One exact vendor registry version (no range, tag or `v` prefix). */
5
+ export const HarnessVendorVersion = z
6
+ .string()
7
+ .regex(/^\d+\.\d+\.\d+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/)
8
+ .describe("One exact vendor version.");
9
+ export const HarnessMaintenanceTarget = z
10
+ .discriminatedUnion("kind", [
11
+ z.object({ kind: z.literal("latest") }).strict(),
12
+ z.object({ kind: z.literal("version"), version: HarnessVendorVersion }).strict(),
13
+ z.object({ kind: z.literal("previous") }).strict(),
14
+ z.object({ kind: z.literal("baseline") }).strict(),
15
+ ])
16
+ .describe("latest = the vendor's newest release; version = one exact version (up or down); previous = the proved version recorded before an earlier maintenance mutation; baseline = this release's tested pin.");
17
+ const TargetKind = z.enum(["latest", "version", "previous", "baseline"]);
18
+ const SelectionKind = z
19
+ .enum(["managed", "override", "path", "missing"])
20
+ .describe("managed = Claudexor's managed npm copy; override = the explicit CLAUDEXOR_<HARNESS>_BIN program; path = another copy found on the harness PATH; missing = nothing launchable.");
21
+ const Mechanism = z
22
+ .enum(["managed_npm", "vendor_updater", "vendor_script"])
23
+ .describe("managed_npm installs one exact registry version in place; vendor_updater runs the vendor's own `update` on its canonical launcher (latest only); vendor_script has no engine-run update.");
24
+ export const HarnessMaintenanceEntry = z
25
+ .object({
26
+ harness: z.string(),
27
+ mechanism: Mechanism,
28
+ maintainable: z.boolean().describe("Whether the engine can run an operation for it now."),
29
+ canCheckLatest: z
30
+ .boolean()
31
+ .describe("Whether checkLatest can observe the newest release for this mechanism (npm registry); false for vendor updaters, whose Update still targets latest."),
32
+ targets: z
33
+ .array(TargetKind)
34
+ .describe("Targets an operation may name; empty when not maintainable."),
35
+ remedy: z.string().nullable().describe("Manual remedy when not maintainable."),
36
+ selection: z
37
+ .object({
38
+ kind: SelectionKind,
39
+ binary: z.string().nullable().describe("The program the harness resolves and runs."),
40
+ version: z
41
+ .string()
42
+ .nullable()
43
+ .describe("That selected program's own --version answer; never the managed copy's."),
44
+ overrideEnv: z.string().nullable(),
45
+ })
46
+ .strict(),
47
+ installed: z
48
+ .object({
49
+ version: z.string().nullable().describe("The managed npm copy's package version."),
50
+ binary: z.string().nullable(),
51
+ proved: z.boolean().describe("The managed launcher reported exactly that version."),
52
+ })
53
+ .strict(),
54
+ releaseTested: z
55
+ .object({
56
+ version: z.string().nullable(),
57
+ verification: z.enum(["release_verified", "deterministic_only"]).nullable(),
58
+ })
59
+ .strict()
60
+ .describe("This release's tested pin: a separate fact, never the selected target."),
61
+ available: z
62
+ .object({ version: z.string(), observedAt: IsoTimestamp })
63
+ .strict()
64
+ .nullable()
65
+ .describe("Last observed newest release; null = not checked (not 'up to date')."),
66
+ availableProblem: ControlProblem.nullable(),
67
+ previous: z
68
+ .object({ version: z.string(), operationId: z.string() })
69
+ .strict()
70
+ .nullable()
71
+ .describe("Proved earlier version from retained operation evidence; null when unknown."),
72
+ operation: z
73
+ .object({
74
+ id: z.string(),
75
+ state: z.string(),
76
+ phase: z.string(),
77
+ targetVersion: z.string().nullable(),
78
+ finishedAt: IsoTimestamp.nullable(),
79
+ })
80
+ .strict()
81
+ .nullable(),
82
+ observedAt: IsoTimestamp,
83
+ })
84
+ .strict();
85
+ export const ControlHarnessMaintenanceInventory = z
86
+ .object({ observedAt: IsoTimestamp, harnesses: z.array(HarnessMaintenanceEntry) })
87
+ .strict()
88
+ .describe("Response for GET /v2/maintenance/harnesses.");
89
+ export const ControlHarnessMaintenanceCreateRequest = z
90
+ .object({ harness: z.string().min(1).max(64), target: HarnessMaintenanceTarget })
91
+ .strict();
92
+ /** Durable command params; `target.version` is bound at acceptance for
93
+ * previous/baseline/version and stays null for latest until execution. */
94
+ export const HarnessMaintenanceParams = z
95
+ .object({
96
+ kind: z.literal("harness_maintenance"),
97
+ harness: z.string().min(1).max(64),
98
+ target: z.object({ kind: TargetKind, version: HarnessVendorVersion.nullable() }).strict(),
99
+ })
100
+ .strict();
101
+ export function isHarnessMaintenanceOperation(params) {
102
+ return (typeof params === "object" &&
103
+ params !== null &&
104
+ "kind" in params &&
105
+ params.kind === "harness_maintenance");
106
+ }
107
+ const Before = z
108
+ .object({
109
+ version: z.string().nullable(),
110
+ binary: z.string().nullable(),
111
+ selection: SelectionKind,
112
+ proved: z.boolean(),
113
+ })
114
+ .strict();
115
+ const After = z
116
+ .object({
117
+ version: z.string().nullable(),
118
+ binary: z.string().nullable(),
119
+ selected: z.boolean().describe("The harness now resolves this program."),
120
+ proved: z.boolean(),
121
+ })
122
+ .strict();
123
+ /** Evidence kept in the generic command record (JobRecord.result). */
124
+ export const HarnessMaintenanceEvidence = z
125
+ .object({
126
+ phase: z.enum(["accepted", "preparing", "installing", "settled"]),
127
+ mechanism: Mechanism.nullable(),
128
+ target: z.object({ kind: TargetKind, version: z.string().nullable() }).strict(),
129
+ before: Before.nullable(),
130
+ after: After.nullable(),
131
+ mutation: z
132
+ .enum(["none", "applied", "unknown"])
133
+ .describe("Whether installed bytes could have changed."),
134
+ termination: z.enum(["not_applicable", "confirmed", "unconfirmed"]),
135
+ limitations: z.array(z.string()),
136
+ progress: z.array(z.string()).max(40),
137
+ problem: ControlProblem.nullable(),
138
+ })
139
+ .strict();
140
+ export const ControlHarnessMaintenanceOperation = HarnessMaintenanceEvidence.extend({
141
+ id: z.string(),
142
+ harness: z.string(),
143
+ state: z.enum(["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]),
144
+ createdAt: IsoTimestamp,
145
+ startedAt: IsoTimestamp.nullable(),
146
+ finishedAt: IsoTimestamp.nullable(),
147
+ })
148
+ .strict()
149
+ .describe("A durable harness maintenance operation; 202 on create is a handle, not success.");
150
+ //# sourceMappingURL=harness-maintenance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness-maintenance.js","sourceRoot":"","sources":["../src/harness-maintenance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,uEAAuE;AACvE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,EAAE;KACR,KAAK,CACJ,gGAAgG,CACjG;KACA,QAAQ,CAAC,2BAA2B,CAAC,CAAC;AAEzC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,kBAAkB,CAAC,MAAM,EAAE;IAC1B,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IAChD,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE;IAChF,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IAClD,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;CACnD,CAAC;KACD,QAAQ,CACP,sMAAsM,CACvM,CAAC;AAGJ,MAAM,UAAU,GAAG,CAAC,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AAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IACrC,OAAO,EAAE,cAAc,CAAC,QAAQ,EAAE;CACnC,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC,MAAM,CAAC;IAClF,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;IACvF,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,YAAY,CAAC,QAAQ,EAAE;CACpC,CAAC;KACC,MAAM,EAAE;KACR,QAAQ,CAAC,kFAAkF,CAAC,CAAC"}
@@ -0,0 +1,81 @@
1
+ import { z } from "zod/v3";
2
+ export declare const HarnessAccountUsageFields: {
3
+ account_usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
4
+ code: z.ZodString;
5
+ detail: z.ZodNullable<z.ZodString>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ code: string;
8
+ detail: string | null;
9
+ }, {
10
+ code: string;
11
+ detail: string | null;
12
+ }>, "many">>;
13
+ /** Vendor-owned quota windows. All reported windows remain independent. */
14
+ quota: z.ZodOptional<z.ZodObject<{
15
+ source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit", "claude_rate_limit_event", "codex_app_server_event"]>;
16
+ plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17
+ subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
18
+ constraints: z.ZodArray<z.ZodObject<{
19
+ id: z.ZodString;
20
+ label: z.ZodString;
21
+ applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
22
+ applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
+ applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
24
+ used_ratio: z.ZodNullable<z.ZodNumber>;
25
+ window_seconds: z.ZodNullable<z.ZodNumber>;
26
+ resets_at: z.ZodNullable<z.ZodString>;
27
+ cooldown_until: z.ZodDefault<z.ZodNullable<z.ZodString>>;
28
+ }, "strict", z.ZodTypeAny, {
29
+ id: string;
30
+ label: string;
31
+ applies_to_models?: string[] | null | undefined;
32
+ applies_to_model_prefixes?: string[] | undefined;
33
+ applies_to_unspecified_model?: boolean | undefined;
34
+ used_ratio: number | null;
35
+ window_seconds: number | null;
36
+ resets_at: string | null;
37
+ cooldown_until: string | null;
38
+ }, {
39
+ id: string;
40
+ label: string;
41
+ applies_to_models?: string[] | null | undefined;
42
+ applies_to_model_prefixes?: string[] | undefined;
43
+ applies_to_unspecified_model?: boolean | undefined;
44
+ used_ratio: number | null;
45
+ window_seconds: number | null;
46
+ resets_at: string | null;
47
+ cooldown_until?: string | null | undefined;
48
+ }>, "many">;
49
+ }, "strict", z.ZodTypeAny, {
50
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
51
+ plan_label: string | null;
52
+ subject_id: string | null;
53
+ constraints: {
54
+ id: string;
55
+ label: string;
56
+ applies_to_models?: string[] | null | undefined;
57
+ applies_to_model_prefixes?: string[] | undefined;
58
+ applies_to_unspecified_model?: boolean | undefined;
59
+ used_ratio: number | null;
60
+ window_seconds: number | null;
61
+ resets_at: string | null;
62
+ cooldown_until: string | null;
63
+ }[];
64
+ }, {
65
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
66
+ plan_label?: string | null | undefined;
67
+ subject_id?: string | null | undefined;
68
+ constraints: {
69
+ id: string;
70
+ label: string;
71
+ applies_to_models?: string[] | null | undefined;
72
+ applies_to_model_prefixes?: string[] | undefined;
73
+ applies_to_unspecified_model?: boolean | undefined;
74
+ used_ratio: number | null;
75
+ window_seconds: number | null;
76
+ resets_at: string | null;
77
+ cooldown_until?: string | null | undefined;
78
+ }[];
79
+ }>>;
80
+ };
81
+ //# sourceMappingURL=harness-quota.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness-quota.d.ts","sourceRoot":"","sources":["../src/harness-quota.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,yBAAyB;IACpC,aAAa;;;;;;;;;;IAMb,2EAA2E;IAC3E,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYN,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { z } from "zod/v3";
2
+ import { QuotaConstraint, QuotaSource } from "./quota.js";
3
+ export const HarnessAccountUsageFields = {
4
+ account_usage: z
5
+ .array(z.object({ code: z.string(), detail: z.string().nullable() }).strict())
6
+ .optional()
7
+ .describe("Native informational overage diagnostics translated by the adapter; never inference admission authority."),
8
+ /** Vendor-owned quota windows. All reported windows remain independent. */
9
+ quota: z
10
+ .object({
11
+ source: QuotaSource,
12
+ plan_label: z.string().nullable().default(null),
13
+ subject_id: z.string().nullable().default(null),
14
+ constraints: z.array(QuotaConstraint),
15
+ })
16
+ .strict()
17
+ .optional()
18
+ .describe("All quota windows from a vendor-owned machine-readable source; never scraped from prose or collapsed into a fake aggregate."),
19
+ };
20
+ //# sourceMappingURL=harness-quota.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness-quota.js","sourceRoot":"","sources":["../src/harness-quota.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC1D,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,aAAa,EAAE,CAAC;SACb,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;SAC7E,QAAQ,EAAE;SACV,QAAQ,CACP,0GAA0G,CAC3G;IACH,2EAA2E;IAC3E,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,MAAM,EAAE,WAAW;QACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QAC/C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QAC/C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;KACtC,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,6HAA6H,CAC9H;CACJ,CAAC"}
package/dist/harness.d.ts CHANGED
@@ -1930,6 +1930,82 @@ export declare const InputTokenUsage: z.ZodObject<{
1930
1930
  export type InputTokenUsage = z.infer<typeof InputTokenUsage>;
1931
1931
  /** Normalized event emitted by every adapter (the SSOT of adapter output). */
1932
1932
  export declare const HarnessEvent: z.ZodObject<{
1933
+ account_usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
1934
+ code: z.ZodString;
1935
+ detail: z.ZodNullable<z.ZodString>;
1936
+ }, "strict", z.ZodTypeAny, {
1937
+ code: string;
1938
+ detail: string | null;
1939
+ }, {
1940
+ code: string;
1941
+ detail: string | null;
1942
+ }>, "many">>;
1943
+ quota: z.ZodOptional<z.ZodObject<{
1944
+ source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit", "claude_rate_limit_event", "codex_app_server_event"]>;
1945
+ plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1946
+ subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1947
+ constraints: z.ZodArray<z.ZodObject<{
1948
+ id: z.ZodString;
1949
+ label: z.ZodString;
1950
+ applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1951
+ applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1952
+ applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
1953
+ used_ratio: z.ZodNullable<z.ZodNumber>;
1954
+ window_seconds: z.ZodNullable<z.ZodNumber>;
1955
+ resets_at: z.ZodNullable<z.ZodString>;
1956
+ cooldown_until: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1957
+ }, "strict", z.ZodTypeAny, {
1958
+ id: string;
1959
+ label: string;
1960
+ applies_to_models?: string[] | null | undefined;
1961
+ applies_to_model_prefixes?: string[] | undefined;
1962
+ applies_to_unspecified_model?: boolean | undefined;
1963
+ used_ratio: number | null;
1964
+ window_seconds: number | null;
1965
+ resets_at: string | null;
1966
+ cooldown_until: string | null;
1967
+ }, {
1968
+ id: string;
1969
+ label: string;
1970
+ applies_to_models?: string[] | null | undefined;
1971
+ applies_to_model_prefixes?: string[] | undefined;
1972
+ applies_to_unspecified_model?: boolean | undefined;
1973
+ used_ratio: number | null;
1974
+ window_seconds: number | null;
1975
+ resets_at: string | null;
1976
+ cooldown_until?: string | null | undefined;
1977
+ }>, "many">;
1978
+ }, "strict", z.ZodTypeAny, {
1979
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
1980
+ plan_label: string | null;
1981
+ subject_id: string | null;
1982
+ constraints: {
1983
+ id: string;
1984
+ label: string;
1985
+ applies_to_models?: string[] | null | undefined;
1986
+ applies_to_model_prefixes?: string[] | undefined;
1987
+ applies_to_unspecified_model?: boolean | undefined;
1988
+ used_ratio: number | null;
1989
+ window_seconds: number | null;
1990
+ resets_at: string | null;
1991
+ cooldown_until: string | null;
1992
+ }[];
1993
+ }, {
1994
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
1995
+ plan_label?: string | null | undefined;
1996
+ subject_id?: string | null | undefined;
1997
+ constraints: {
1998
+ id: string;
1999
+ label: string;
2000
+ applies_to_models?: string[] | null | undefined;
2001
+ applies_to_model_prefixes?: string[] | undefined;
2002
+ applies_to_unspecified_model?: boolean | undefined;
2003
+ used_ratio: number | null;
2004
+ window_seconds: number | null;
2005
+ resets_at: string | null;
2006
+ cooldown_until?: string | null | undefined;
2007
+ }[];
2008
+ }>>;
1933
2009
  request_refusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1934
2010
  scope: z.ZodLiteral<"turn_text">;
1935
2011
  unit: z.ZodLiteral<"unicode_scalars">;
@@ -2254,73 +2330,6 @@ export declare const HarnessEvent: z.ZodObject<{
2254
2330
  * adapter alongside credential_route so quota/api_retry records stay
2255
2331
  * independently attributable to the profile. Absent = engine default. */
2256
2332
  credential_profile_id: z.ZodOptional<z.ZodString>;
2257
- /** Vendor-owned quota windows. All reported windows remain independent. */
2258
- quota: z.ZodOptional<z.ZodObject<{
2259
- source: z.ZodEnum<["codex_app_server", "codex_rollout", "claude_statusline", "claude_api_retry", "claude_oauth_usage", "agy_command_usage", "cursor_rate_limit", "claude_rate_limit_event", "codex_app_server_event"]>;
2260
- plan_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2261
- subject_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2262
- constraints: z.ZodArray<z.ZodObject<{
2263
- id: z.ZodString;
2264
- label: z.ZodString;
2265
- applies_to_models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2266
- applies_to_model_prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2267
- applies_to_unspecified_model: z.ZodOptional<z.ZodBoolean>;
2268
- used_ratio: z.ZodNullable<z.ZodNumber>;
2269
- window_seconds: z.ZodNullable<z.ZodNumber>;
2270
- resets_at: z.ZodNullable<z.ZodString>;
2271
- cooldown_until: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2272
- }, "strict", z.ZodTypeAny, {
2273
- id: string;
2274
- label: string;
2275
- applies_to_models?: string[] | null | undefined;
2276
- applies_to_model_prefixes?: string[] | undefined;
2277
- applies_to_unspecified_model?: boolean | undefined;
2278
- used_ratio: number | null;
2279
- window_seconds: number | null;
2280
- resets_at: string | null;
2281
- cooldown_until: string | null;
2282
- }, {
2283
- id: string;
2284
- label: string;
2285
- applies_to_models?: string[] | null | undefined;
2286
- applies_to_model_prefixes?: string[] | undefined;
2287
- applies_to_unspecified_model?: boolean | undefined;
2288
- used_ratio: number | null;
2289
- window_seconds: number | null;
2290
- resets_at: string | null;
2291
- cooldown_until?: string | null | undefined;
2292
- }>, "many">;
2293
- }, "strict", z.ZodTypeAny, {
2294
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
2295
- plan_label: string | null;
2296
- subject_id: string | null;
2297
- constraints: {
2298
- id: string;
2299
- label: string;
2300
- applies_to_models?: string[] | null | undefined;
2301
- applies_to_model_prefixes?: string[] | undefined;
2302
- applies_to_unspecified_model?: boolean | undefined;
2303
- used_ratio: number | null;
2304
- window_seconds: number | null;
2305
- resets_at: string | null;
2306
- cooldown_until: string | null;
2307
- }[];
2308
- }, {
2309
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
2310
- plan_label?: string | null | undefined;
2311
- subject_id?: string | null | undefined;
2312
- constraints: {
2313
- id: string;
2314
- label: string;
2315
- applies_to_models?: string[] | null | undefined;
2316
- applies_to_model_prefixes?: string[] | undefined;
2317
- applies_to_unspecified_model?: boolean | undefined;
2318
- used_ratio: number | null;
2319
- window_seconds: number | null;
2320
- resets_at: string | null;
2321
- cooldown_until?: string | null | undefined;
2322
- }[];
2323
- }>>;
2324
2333
  /**
2325
2334
  * Typed live plan/todo progress: adapters map their native plan tools
2326
2335
  * (codex `todo_list` items, claude `TodoWrite` todos) into this shape in
@@ -2452,6 +2461,26 @@ export declare const HarnessEvent: z.ZodObject<{
2452
2461
  aborted: z.ZodOptional<z.ZodBoolean>;
2453
2462
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2454
2463
  }, "strip", z.ZodTypeAny, {
2464
+ account_usage?: {
2465
+ code: string;
2466
+ detail: string | null;
2467
+ }[] | undefined;
2468
+ quota?: {
2469
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
2470
+ plan_label: string | null;
2471
+ subject_id: string | null;
2472
+ constraints: {
2473
+ id: string;
2474
+ label: string;
2475
+ applies_to_models?: string[] | null | undefined;
2476
+ applies_to_model_prefixes?: string[] | undefined;
2477
+ applies_to_unspecified_model?: boolean | undefined;
2478
+ used_ratio: number | null;
2479
+ window_seconds: number | null;
2480
+ resets_at: string | null;
2481
+ cooldown_until: string | null;
2482
+ }[];
2483
+ } | undefined;
2455
2484
  request_refusal?: {
2456
2485
  scope: "turn_text";
2457
2486
  unit: "unicode_scalars";
@@ -2553,22 +2582,6 @@ export declare const HarnessEvent: z.ZodObject<{
2553
2582
  credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
2554
2583
  credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
2555
2584
  credential_profile_id?: string | undefined;
2556
- quota?: {
2557
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
2558
- plan_label: string | null;
2559
- subject_id: string | null;
2560
- constraints: {
2561
- id: string;
2562
- label: string;
2563
- applies_to_models?: string[] | null | undefined;
2564
- applies_to_model_prefixes?: string[] | undefined;
2565
- applies_to_unspecified_model?: boolean | undefined;
2566
- used_ratio: number | null;
2567
- window_seconds: number | null;
2568
- resets_at: string | null;
2569
- cooldown_until: string | null;
2570
- }[];
2571
- } | undefined;
2572
2585
  plan_progress?: {
2573
2586
  items: {
2574
2587
  id: string;
@@ -2604,6 +2617,26 @@ export declare const HarnessEvent: z.ZodObject<{
2604
2617
  aborted?: boolean | undefined;
2605
2618
  payload?: Record<string, unknown> | undefined;
2606
2619
  }, {
2620
+ account_usage?: {
2621
+ code: string;
2622
+ detail: string | null;
2623
+ }[] | undefined;
2624
+ quota?: {
2625
+ source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
2626
+ plan_label?: string | null | undefined;
2627
+ subject_id?: string | null | undefined;
2628
+ constraints: {
2629
+ id: string;
2630
+ label: string;
2631
+ applies_to_models?: string[] | null | undefined;
2632
+ applies_to_model_prefixes?: string[] | undefined;
2633
+ applies_to_unspecified_model?: boolean | undefined;
2634
+ used_ratio: number | null;
2635
+ window_seconds: number | null;
2636
+ resets_at: string | null;
2637
+ cooldown_until?: string | null | undefined;
2638
+ }[];
2639
+ } | undefined;
2607
2640
  request_refusal?: {
2608
2641
  scope: "turn_text";
2609
2642
  unit: "unicode_scalars";
@@ -2705,22 +2738,6 @@ export declare const HarnessEvent: z.ZodObject<{
2705
2738
  credential_route?: "local" | "managed_api_key" | "vendor_native" | undefined;
2706
2739
  credential_source?: "api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file" | undefined;
2707
2740
  credential_profile_id?: string | undefined;
2708
- quota?: {
2709
- source: "agy_command_usage" | "claude_api_retry" | "claude_oauth_usage" | "claude_rate_limit_event" | "claude_statusline" | "codex_app_server" | "codex_app_server_event" | "codex_rollout" | "cursor_rate_limit";
2710
- plan_label?: string | null | undefined;
2711
- subject_id?: string | null | undefined;
2712
- constraints: {
2713
- id: string;
2714
- label: string;
2715
- applies_to_models?: string[] | null | undefined;
2716
- applies_to_model_prefixes?: string[] | undefined;
2717
- applies_to_unspecified_model?: boolean | undefined;
2718
- used_ratio: number | null;
2719
- window_seconds: number | null;
2720
- resets_at: string | null;
2721
- cooldown_until?: string | null | undefined;
2722
- }[];
2723
- } | undefined;
2724
2741
  plan_progress?: {
2725
2742
  items?: {
2726
2743
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../src/harness.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAgC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,0DAA0D;AAC1D,eAAO,MAAM,aAAa,iEAIvB,CAAC;AACJ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAK1D,eAAO,MAAM,WAAW,gDAE2E,CAAC;AACpG,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;;;;;;;GAQG;AACH,eAAO,M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;;;;;;;;IAmBH;;;;;;;;;OASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0D+E,CAAC;AACvF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
package/dist/harness.js CHANGED
@@ -7,7 +7,7 @@ import { IsolationCapabilities } from "./harness-confinement.js";
7
7
  import { AccessProfile, AuthPreference, ExternalContextPolicy, Id, Intent, ProviderFamily, } from "./primitives.js";
8
8
  import { Attachment, AttachmentInputClass } from "./attachment.js";
9
9
  import { ImplementationTransport, RawContextPacket, RawGitPatchEnvelope, RawPatchRefusalCode, } from "./raw.js";
10
- import { QuotaConstraint, QuotaSource } from "./quota.js";
10
+ import { HarnessAccountUsageFields } from "./harness-quota.js";
11
11
  import { RateLimitSignal } from "./rate-limit.js";
12
12
  import { EffortHint, ModelEffortCapability } from "./effort.js";
13
13
  import { ProcessingCostBasis, ProcessingPreference, ProcessingReceipt, UsageCostBasis, } from "./processing.js";
@@ -642,17 +642,7 @@ export const HarnessEvent = z
642
642
  * adapter alongside credential_route so quota/api_retry records stay
643
643
  * independently attributable to the profile. Absent = engine default. */
644
644
  credential_profile_id: Id.optional().describe("Credential profile the attempt runs under; absent = engine-default credentials (INV-135 attribution)."),
645
- /** Vendor-owned quota windows. All reported windows remain independent. */
646
- quota: z
647
- .object({
648
- source: QuotaSource,
649
- plan_label: z.string().nullable().default(null),
650
- subject_id: z.string().nullable().default(null),
651
- constraints: z.array(QuotaConstraint),
652
- })
653
- .strict()
654
- .optional()
655
- .describe("All quota windows from a vendor-owned machine-readable source; never scraped from prose or collapsed into a fake aggregate."),
645
+ ...HarnessAccountUsageFields,
656
646
  /**
657
647
  * Typed live plan/todo progress: adapters map their native plan tools
658
648
  * (codex `todo_list` items, claude `TodoWrite` todos) into this shape in