@claudexor/schema 3.3.7-rc.0 → 3.3.8
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.js +1 -1
- package/dist/budget.d.ts +3 -0
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +5 -0
- package/dist/budget.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +18 -0
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/credential-profile.d.ts +5 -5
- package/dist/credential-profile.d.ts.map +1 -1
- package/dist/credential-profile.js +6 -6
- package/dist/credential-profile.js.map +1 -1
- package/dist/harness.d.ts +17 -0
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +2 -17
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/primitives.d.ts +2 -4
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +4 -6
- package/dist/primitives.js.map +1 -1
- package/dist/quota.d.ts +24 -0
- package/dist/quota.d.ts.map +1 -1
- package/dist/quota.js +5 -1
- 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/setup-device-code-envelope.d.ts +7 -10
- package/dist/setup-device-code-envelope.d.ts.map +1 -1
- package/dist/setup-device-code-envelope.js +7 -2
- package/dist/setup-device-code-envelope.js.map +1 -1
- package/dist/setup-login-input.d.ts +38 -0
- package/dist/setup-login-input.d.ts.map +1 -0
- package/dist/setup-login-input.js +32 -0
- package/dist/setup-login-input.js.map +1 -0
- package/dist/setup.d.ts +50 -43
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +59 -61
- package/dist/setup.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +3 -3
- package/generated/BudgetObservation.schema.json +16 -0
- package/generated/ControlCredentialProfileCreateRequest.schema.json +1 -1
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +15 -2
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +15 -2
- package/generated/ControlHarnessListResponse.schema.json +1 -1
- package/generated/ControlQuotaResponse.schema.json +14 -1
- package/generated/ControlRunAgainDraft.schema.json +1 -1
- package/generated/ControlRunDetail.schema.json +1 -1
- package/generated/ControlRunListResponse.schema.json +1 -1
- package/generated/ControlRunStartRequest.schema.json +1 -1
- package/generated/ControlRunSummary.schema.json +1 -1
- package/generated/ControlSetupJobEvent.schema.json +4 -7
- package/generated/ControlSetupJobInputRequest.schema.json +22 -0
- package/generated/ControlSetupJobSnapshot.schema.json +4 -7
- package/generated/ControlThread.schema.json +1 -1
- package/generated/ControlThreadDetail.schema.json +2 -2
- package/generated/ControlThreadListResponse.schema.json +1 -1
- package/generated/ControlThreadTurnRequest.schema.json +1 -1
- package/generated/ControlThreadUpdateRequest.schema.json +1 -1
- package/generated/HarnessEvent.schema.json +32 -1
- package/generated/HarnessManifest.schema.json +1 -1
- package/generated/HarnessStatusDto.schema.json +1 -1
- package/generated/RunFacts.schema.json +1 -1
- package/generated/RunTelemetry.schema.json +1 -1
- package/generated/TaskContract.schema.json +1 -1
- package/generated/Thread.schema.json +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ export * from "./review.js";
|
|
|
34
34
|
export * from "./workproduct.js";
|
|
35
35
|
export * from "./budget.js";
|
|
36
36
|
export * from "./quota.js";
|
|
37
|
+
export * from "./rate-limit.js";
|
|
37
38
|
export * from "./route.js";
|
|
38
39
|
export * from "./decision.js";
|
|
39
40
|
export * from "./delivery.js";
|
|
@@ -56,6 +57,7 @@ export * from "./control-thread-apply.js";
|
|
|
56
57
|
export * from "./control-run-scope.js";
|
|
57
58
|
export * from "./control-run-failure.js";
|
|
58
59
|
export * from "./setup.js";
|
|
60
|
+
export * from "./setup-login-input.js";
|
|
59
61
|
export * from "./control-trust.js";
|
|
60
62
|
export * from "./control-gc.js";
|
|
61
63
|
export * from "./control-secret.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,C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c,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC"}
|
package/dist/primitives.d.ts
CHANGED
|
@@ -31,10 +31,8 @@ export type ProviderFamily = z.infer<typeof ProviderFamily>;
|
|
|
31
31
|
* Canonical modes (v3.0.0 collapse, BREAKING): three conversation intents —
|
|
32
32
|
* ask (read-only answer; `deep_scan` widens it into the bounded multi-scout
|
|
33
33
|
* research sweep that used to be `audit --swarm`/`explore`), plan
|
|
34
|
-
* (read-only planning), agent (writes).
|
|
35
|
-
*
|
|
36
|
-
* / `until_clean` (agent convergence), `create` (agent from-scratch),
|
|
37
|
-
* `deep_scan` (ask sweep). Retired ids (`audit`, `explore`,
|
|
34
|
+
* (read-only planning), agent (writes). Strategy controls are separate
|
|
35
|
+
* schema-owned fields on those modes, never modes themselves. Retired ids (`audit`, `explore`,
|
|
38
36
|
* `readonly_audit`, `best_of_n`, …) hard-error at every wire boundary
|
|
39
37
|
* (Bible: modes are canonical and breaking, never silent aliases). The former
|
|
40
38
|
* `orchestrate` mode was deleted once its delegation replacement landed
|
package/dist/primitives.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../src/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,oFAAoF;AACpF,eAAO,MAAM,cAAc,EAAG,CAAU,CAAC;AAEzC,eAAO,MAAM,aAAa,iBAEoD,CAAC;AAE/E,qCAAqC;AACrC,eAAO,MAAM,EAAE,aAA6D,CAAC;AAC7E,MAAM,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;AAEpC,iFAAiF;AACjF,eAAO,MAAM,cAAc,aAIgE,CAAC;AAC5F,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,iCAAiC;AACjC,eAAO,MAAM,YAAY,aAA2D,CAAC;AACrF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,wDAAwD;AACxD,eAAO,MAAM,WAAW,aAG4C,CAAC;AACrE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,SAAS,kDAE0D,CAAC;AACjF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,eAAO,MAAM,aAAa,+FAIvB,CAAC;AACJ,MAAM,MAAM,aAAa,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xB,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/primitives.js
CHANGED
|
@@ -24,7 +24,7 @@ export const RiskLevel = z
|
|
|
24
24
|
.describe("Risk classification of a change or finding, from low to critical.");
|
|
25
25
|
export const AccessProfile = z
|
|
26
26
|
.enum(["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"])
|
|
27
|
-
.describe("Filesystem/command access profile for a run: readonly (no writes), workspace_write (writes inside the workspace only), full (unrestricted; requires the per-repo trust allow), external_sandbox_full (
|
|
27
|
+
.describe("Filesystem/command access profile for a run: readonly (no writes), workspace_write (writes inside the workspace only), full (unrestricted; requires the per-repo trust allow), external_sandbox_full (the harness stands its native sandbox down; the engine applies its own OS boundary only on delegated runs — requested directly this is unrestricted, and not behind the trust allow), inherit_native (defer to the harness's own native sandbox settings).");
|
|
28
28
|
/** External context policy is separate from process/network sandboxing. */
|
|
29
29
|
export const ExternalContextPolicy = z
|
|
30
30
|
.enum(["off", "auto", "cached", "live"])
|
|
@@ -41,10 +41,8 @@ export const ProviderFamily = z
|
|
|
41
41
|
* Canonical modes (v3.0.0 collapse, BREAKING): three conversation intents —
|
|
42
42
|
* ask (read-only answer; `deep_scan` widens it into the bounded multi-scout
|
|
43
43
|
* research sweep that used to be `audit --swarm`/`explore`), plan
|
|
44
|
-
* (read-only planning), agent (writes).
|
|
45
|
-
*
|
|
46
|
-
* / `until_clean` (agent convergence), `create` (agent from-scratch),
|
|
47
|
-
* `deep_scan` (ask sweep). Retired ids (`audit`, `explore`,
|
|
44
|
+
* (read-only planning), agent (writes). Strategy controls are separate
|
|
45
|
+
* schema-owned fields on those modes, never modes themselves. Retired ids (`audit`, `explore`,
|
|
48
46
|
* `readonly_audit`, `best_of_n`, …) hard-error at every wire boundary
|
|
49
47
|
* (Bible: modes are canonical and breaking, never silent aliases). The former
|
|
50
48
|
* `orchestrate` mode was deleted once its delegation replacement landed
|
|
@@ -52,7 +50,7 @@ export const ProviderFamily = z
|
|
|
52
50
|
*/
|
|
53
51
|
export const ModeKind = z
|
|
54
52
|
.enum(["ask", "plan", "agent"])
|
|
55
|
-
.describe("Canonical run mode: ask and plan are read-only, agent writes.
|
|
53
|
+
.describe("Canonical run mode: ask and plan are read-only, agent writes. Strategy controls are separate schema-owned fields, never modes.");
|
|
56
54
|
/** Canonical intents a harness can be assigned. Roles are intents, never fixed
|
|
57
55
|
* classes. (`compare`/`arbitrate` were retired in the v0.15 triage: no run
|
|
58
56
|
* site ever requested them — comparison/arbitration are engine phases, not
|
package/dist/primitives.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../src/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,oFAAoF;AACpF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAU,CAAC;AAEzC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,OAAO,CAAC,cAAc,CAAC;KACvB,QAAQ,CAAC,iEAAiE,CAAC,CAAC;AAE/E,qCAAqC;AACrC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC;AAG7E,iFAAiF;AACjF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,KAAK,CAAC,IAAI,EAAE,6BAA6B,CAAC;KAC1C,QAAQ,CAAC,8EAA8E,CAAC,CAAC;AAG5F,iCAAiC;AACjC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC;AAGrF,wDAAwD;AACxD,MAAM,CAAC,MA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AGJ;;;iEAGiE;AACjE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC;KACpB,IAAI,CAAC;IACJ,MAAM;IACN,MAAM;IACN,WAAW;IACX,qBAAqB;IACrB,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,OAAO;CACR,CAAC;KACD,QAAQ,CACP,oGAAoG,CACrG,CAAC;AAGJ;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;KAC5B,QAAQ,CACP,uKAAuK,CACxK,CAAC;AAGJ;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,IAAI,CAAC,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;KACzC,QAAQ,CACP,oLAAoL,CACrL,CAAC;AAGJ;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,IAAI,CAAC;IACJ,iBAAiB;IACjB,iBAAiB;IACjB,wBAAwB;IACxB,cAAc;IACd,eAAe;IACf,OAAO;IACP,0BAA0B;IAC1B,gBAAgB;IAChB;+EAC2E;IAC3E,cAAc;IACd,kFAAkF;IAClF,kBAAkB;IAClB;;mCAE+B;IAC/B,qBAAqB;IACrB,QAAQ;CACT,CAAC;KACD,QAAQ,CACP,4JAA4J,CAC7J,CAAC"}
|
package/dist/quota.d.ts
CHANGED
|
@@ -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;
|
|
@@ -75,6 +81,10 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
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;
|
|
@@ -107,6 +119,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
107
119
|
constraints: {
|
|
108
120
|
id: string;
|
|
109
121
|
label: string;
|
|
122
|
+
applies_to_models?: string[] | null | undefined;
|
|
110
123
|
used_ratio: number | null;
|
|
111
124
|
window_seconds: number | null;
|
|
112
125
|
resets_at: string | null;
|
|
@@ -125,6 +138,7 @@ export declare const QuotaSnapshot: z.ZodObject<{
|
|
|
125
138
|
constraints: {
|
|
126
139
|
id: string;
|
|
127
140
|
label: string;
|
|
141
|
+
applies_to_models?: string[] | null | undefined;
|
|
128
142
|
used_ratio: number | null;
|
|
129
143
|
window_seconds: number | null;
|
|
130
144
|
resets_at: string | null;
|
|
@@ -212,6 +226,10 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
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;
|
|
@@ -244,6 +264,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
244
264
|
constraints: {
|
|
245
265
|
id: string;
|
|
246
266
|
label: string;
|
|
267
|
+
applies_to_models?: string[] | null | undefined;
|
|
247
268
|
used_ratio: number | null;
|
|
248
269
|
window_seconds: number | null;
|
|
249
270
|
resets_at: string | null;
|
|
@@ -262,6 +283,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
262
283
|
constraints: {
|
|
263
284
|
id: string;
|
|
264
285
|
label: string;
|
|
286
|
+
applies_to_models?: string[] | null | undefined;
|
|
265
287
|
used_ratio: number | null;
|
|
266
288
|
window_seconds: number | null;
|
|
267
289
|
resets_at: string | null;
|
|
@@ -330,6 +352,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
330
352
|
constraints: {
|
|
331
353
|
id: string;
|
|
332
354
|
label: string;
|
|
355
|
+
applies_to_models?: string[] | null | undefined;
|
|
333
356
|
used_ratio: number | null;
|
|
334
357
|
window_seconds: number | null;
|
|
335
358
|
resets_at: string | null;
|
|
@@ -362,6 +385,7 @@ export declare const ControlQuotaResponse: z.ZodObject<{
|
|
|
362
385
|
constraints: {
|
|
363
386
|
id: string;
|
|
364
387
|
label: string;
|
|
388
|
+
applies_to_models?: string[] | null | undefined;
|
|
365
389
|
used_ratio: number | null;
|
|
366
390
|
window_seconds: number | null;
|
|
367
391
|
resets_at: string | null;
|
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,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
|
|
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,8HAa+D,CAAC;AAC/F,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,YAAY;;;;;QA7DrB;;;;;uDAK+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgE8C,CAAC;AAClG,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,oBAAoB;;;;;;YAxE7B;;;;;2DAK+C;;;;;;;;;;;;;;;;YAa/C;;uFAE2E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YApB3E;;;;;2DAK+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+EmB,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/quota.js
CHANGED
|
@@ -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,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,gBAAgB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACvE,UAAU,EAAE,CAAC,C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K,CAAC,aAAa,CAAC;IACjC,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,YAAY,CAAC;SACnB,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CACP,mIAAmI,CACpI;IACH,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/D,CAAC;KACD,MAAM,EAAE;KACR,QAAQ,CAAC,yDAAyD,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"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { z } from "zod/v3";
|
|
2
2
|
/** Keep the setup overlay invariant declarative so Zod and generated draft-07
|
|
3
|
-
* enforce the same two strict branches; custom refinements cannot do that.
|
|
3
|
+
* enforce the same two strict branches; custom refinements cannot do that.
|
|
4
|
+
*
|
|
5
|
+
* Eligibility is the job's LIFECYCLE, not its vendor: every managed login
|
|
6
|
+
* writes the same disclosure sidecar, and a terminal-mode claude/cursor login
|
|
7
|
+
* discloses its captured `oauth_url` through it. `job` already constrains
|
|
8
|
+
* `harness` to the managed set, so naming one vendor here only rejected
|
|
9
|
+
* payloads the producer really emits. */
|
|
4
10
|
export declare function setupDeviceCodeProjectionEnvelope<Job extends z.ZodTypeAny, Shape extends z.ZodRawShape & {
|
|
5
11
|
job: z.ZodTypeAny;
|
|
6
12
|
}, ActiveState extends z.ZodTypeAny, Disclosure extends z.ZodTypeAny>(shape: Shape, job: Job, activeState: ActiveState, disclosure: Disclosure): z.ZodUnion<[z.ZodObject<Shape & {
|
|
@@ -11,17 +17,14 @@ export declare function setupDeviceCodeProjectionEnvelope<Job extends z.ZodTypeA
|
|
|
11
17
|
deviceCode: z.ZodOptional<z.ZodNever>;
|
|
12
18
|
}> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never>, z.ZodObject<Shape & {
|
|
13
19
|
job: z.ZodIntersection<Job, z.ZodObject<{
|
|
14
|
-
harness: z.ZodLiteral<"codex">;
|
|
15
20
|
action: z.ZodLiteral<"login">;
|
|
16
21
|
state: ActiveState;
|
|
17
22
|
phase: z.ZodLiteral<"awaiting_user">;
|
|
18
23
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
19
|
-
harness: z.ZodLiteral<"codex">;
|
|
20
24
|
action: z.ZodLiteral<"login">;
|
|
21
25
|
state: ActiveState;
|
|
22
26
|
phase: z.ZodLiteral<"awaiting_user">;
|
|
23
27
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
24
|
-
harness: z.ZodLiteral<"codex">;
|
|
25
28
|
action: z.ZodLiteral<"login">;
|
|
26
29
|
state: ActiveState;
|
|
27
30
|
phase: z.ZodLiteral<"awaiting_user">;
|
|
@@ -29,17 +32,14 @@ export declare function setupDeviceCodeProjectionEnvelope<Job extends z.ZodTypeA
|
|
|
29
32
|
deviceCode: Disclosure;
|
|
30
33
|
}, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<Shape & {
|
|
31
34
|
job: z.ZodIntersection<Job, z.ZodObject<{
|
|
32
|
-
harness: z.ZodLiteral<"codex">;
|
|
33
35
|
action: z.ZodLiteral<"login">;
|
|
34
36
|
state: ActiveState;
|
|
35
37
|
phase: z.ZodLiteral<"awaiting_user">;
|
|
36
38
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
37
|
-
harness: z.ZodLiteral<"codex">;
|
|
38
39
|
action: z.ZodLiteral<"login">;
|
|
39
40
|
state: ActiveState;
|
|
40
41
|
phase: z.ZodLiteral<"awaiting_user">;
|
|
41
42
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
42
|
-
harness: z.ZodLiteral<"codex">;
|
|
43
43
|
action: z.ZodLiteral<"login">;
|
|
44
44
|
state: ActiveState;
|
|
45
45
|
phase: z.ZodLiteral<"awaiting_user">;
|
|
@@ -47,17 +47,14 @@ export declare function setupDeviceCodeProjectionEnvelope<Job extends z.ZodTypeA
|
|
|
47
47
|
deviceCode: Disclosure;
|
|
48
48
|
}>, any> extends infer T_2 ? { [k in keyof T_2]: T_2[k]; } : never, z.baseObjectInputType<Shape & {
|
|
49
49
|
job: z.ZodIntersection<Job, z.ZodObject<{
|
|
50
|
-
harness: z.ZodLiteral<"codex">;
|
|
51
50
|
action: z.ZodLiteral<"login">;
|
|
52
51
|
state: ActiveState;
|
|
53
52
|
phase: z.ZodLiteral<"awaiting_user">;
|
|
54
53
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
55
|
-
harness: z.ZodLiteral<"codex">;
|
|
56
54
|
action: z.ZodLiteral<"login">;
|
|
57
55
|
state: ActiveState;
|
|
58
56
|
phase: z.ZodLiteral<"awaiting_user">;
|
|
59
57
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
60
|
-
harness: z.ZodLiteral<"codex">;
|
|
61
58
|
action: z.ZodLiteral<"login">;
|
|
62
59
|
state: ActiveState;
|
|
63
60
|
phase: z.ZodLiteral<"awaiting_user">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-device-code-envelope.d.ts","sourceRoot":"","sources":["../src/setup-device-code-envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B;
|
|
1
|
+
{"version":3,"file":"setup-device-code-envelope.d.ts","sourceRoot":"","sources":["../src/setup-device-code-envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B;;;;;;;yCAOyC;AACzC,wBAAgB,iCAAiC,CAC/C,GAAG,SAAS,CAAC,CAAC,UAAU,EACxB,KAAK,SAAS,CAAC,CAAC,WAAW,GAAG;IAAE,GAAG,EAAE,CAAC,CAAC,UAAU,CAAA;CAAE,EACnD,WAAW,SAAS,CAAC,CAAC,UAAU,EAChC,UAAU,SAAS,CAAC,CAAC,UAAU,EAC/B,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAoBzE"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { z } from "zod/v3";
|
|
2
2
|
const DISCLOSURE_DESCRIPTION = "Transient device-code disclosure overlaid at read time from the runner sidecar; never part of the journaled job.";
|
|
3
3
|
/** Keep the setup overlay invariant declarative so Zod and generated draft-07
|
|
4
|
-
* enforce the same two strict branches; custom refinements cannot do that.
|
|
4
|
+
* enforce the same two strict branches; custom refinements cannot do that.
|
|
5
|
+
*
|
|
6
|
+
* Eligibility is the job's LIFECYCLE, not its vendor: every managed login
|
|
7
|
+
* writes the same disclosure sidecar, and a terminal-mode claude/cursor login
|
|
8
|
+
* discloses its captured `oauth_url` through it. `job` already constrains
|
|
9
|
+
* `harness` to the managed set, so naming one vendor here only rejected
|
|
10
|
+
* payloads the producer really emits. */
|
|
5
11
|
export function setupDeviceCodeProjectionEnvelope(shape, job, activeState, disclosure) {
|
|
6
12
|
const eligibleJob = job.and(z
|
|
7
13
|
.object({
|
|
8
|
-
harness: z.literal("codex"),
|
|
9
14
|
action: z.literal("login"),
|
|
10
15
|
state: activeState,
|
|
11
16
|
phase: z.literal("awaiting_user"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-device-code-envelope.js","sourceRoot":"","sources":["../src/setup-device-code-envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,sBAAsB,GAC1B,kHAAkH,CAAC;AAErH;
|
|
1
|
+
{"version":3,"file":"setup-device-code-envelope.js","sourceRoot":"","sources":["../src/setup-device-code-envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,sBAAsB,GAC1B,kHAAkH,CAAC;AAErH;;;;;;;yCAOyC;AACzC,MAAM,UAAU,iCAAiC,CAK/C,KAAY,EAAE,GAAQ,EAAE,WAAwB,EAAE,UAAsB;IACxE,MAAM,WAAW,GAAG,GAAG,CAAC,GAAG,CACzB,CAAC;SACE,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;QAC1B,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;KAClC,CAAC;SACD,WAAW,EAAE,CACjB,CAAC;IACF,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACjE,CAAC;aACE,MAAM,CAAC;YACN,GAAG,KAAK;YACR,GAAG,EAAE,WAAW;YAChB,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,sBAAsB,CAAC;SACxD,CAAC;aACD,MAAM,EAAE;KACZ,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
/** One-shot sign-in input for a url_disclosure_with_input login job (claude's
|
|
3
|
+
* manual paste-code completion). TRANSIENT: the value rides the runner's
|
|
4
|
+
* private input sidecar to the vendor CLI's stdin and is never journaled,
|
|
5
|
+
* logged, or persisted anywhere durable (the same rule the one-time
|
|
6
|
+
* `userCode` follows). */
|
|
7
|
+
export declare const ControlSetupJobInputRequest: z.ZodObject<{
|
|
8
|
+
value: z.ZodString;
|
|
9
|
+
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
value: string;
|
|
11
|
+
}, {
|
|
12
|
+
value: string;
|
|
13
|
+
}>;
|
|
14
|
+
export type ControlSetupJobInputRequest = z.infer<typeof ControlSetupJobInputRequest>;
|
|
15
|
+
/** TRANSIENT one-shot input sidecar (url_disclosure_with_input): written once
|
|
16
|
+
* by the daemon from POST /v2/setup/jobs/:id/input, read once by the runner,
|
|
17
|
+
* delivered to the vendor CLI's stdin. The value is never journaled. */
|
|
18
|
+
export declare const SetupLoginInput: z.ZodObject<{
|
|
19
|
+
version: z.ZodLiteral<2>;
|
|
20
|
+
jobId: z.ZodString;
|
|
21
|
+
executionId: z.ZodString;
|
|
22
|
+
value: z.ZodString;
|
|
23
|
+
submittedAt: z.ZodString;
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
version: 2;
|
|
26
|
+
jobId: string;
|
|
27
|
+
executionId: string;
|
|
28
|
+
value: string;
|
|
29
|
+
submittedAt: string;
|
|
30
|
+
}, {
|
|
31
|
+
version: 2;
|
|
32
|
+
jobId: string;
|
|
33
|
+
executionId: string;
|
|
34
|
+
value: string;
|
|
35
|
+
submittedAt: string;
|
|
36
|
+
}>;
|
|
37
|
+
export type SetupLoginInput = z.infer<typeof SetupLoginInput>;
|
|
38
|
+
//# sourceMappingURL=setup-login-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-login-input.d.ts","sourceRoot":"","sources":["../src/setup-login-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAM3B;;;;0BAI0B;AAC1B,eAAO,MAAM,2BAA2B;;;;;;EAS4C,CAAC;AACrF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEtF;;wEAEwE;AACxE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAQjB,CAAC;AACZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
import * as SetupLoginProtocol from "./setup-login-protocol.js";
|
|
3
|
+
import { SetupLoginProtocolVersion } from "./setup.js";
|
|
4
|
+
const SetupTimestamp = z.string().datetime({ offset: true });
|
|
5
|
+
/** One-shot sign-in input for a url_disclosure_with_input login job (claude's
|
|
6
|
+
* manual paste-code completion). TRANSIENT: the value rides the runner's
|
|
7
|
+
* private input sidecar to the vendor CLI's stdin and is never journaled,
|
|
8
|
+
* logged, or persisted anywhere durable (the same rule the one-time
|
|
9
|
+
* `userCode` follows). */
|
|
10
|
+
export const ControlSetupJobInputRequest = z
|
|
11
|
+
.object({
|
|
12
|
+
value: z
|
|
13
|
+
.string()
|
|
14
|
+
.min(1)
|
|
15
|
+
.max(1024)
|
|
16
|
+
.describe("The user's one-time sign-in input (e.g. the pasted OAuth code); never persisted."),
|
|
17
|
+
})
|
|
18
|
+
.strict()
|
|
19
|
+
.describe("One-shot sign-in input delivered to a waiting login job's vendor CLI.");
|
|
20
|
+
/** TRANSIENT one-shot input sidecar (url_disclosure_with_input): written once
|
|
21
|
+
* by the daemon from POST /v2/setup/jobs/:id/input, read once by the runner,
|
|
22
|
+
* delivered to the vendor CLI's stdin. The value is never journaled. */
|
|
23
|
+
export const SetupLoginInput = z
|
|
24
|
+
.object({
|
|
25
|
+
version: SetupLoginProtocolVersion,
|
|
26
|
+
jobId: SetupLoginProtocol.SetupLoginJobId,
|
|
27
|
+
executionId: SetupLoginProtocol.SetupLoginExecutionId,
|
|
28
|
+
value: z.string().min(1).max(1024),
|
|
29
|
+
submittedAt: SetupTimestamp,
|
|
30
|
+
})
|
|
31
|
+
.strict();
|
|
32
|
+
//# sourceMappingURL=setup-login-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-login-input.js","sourceRoot":"","sources":["../src/setup-login-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEvD,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAE7D;;;;0BAI0B;AAC1B,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,MAAM,CAAC;IACN,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,IAAI,CAAC;SACT,QAAQ,CAAC,kFAAkF,CAAC;CAChG,CAAC;KACD,MAAM,EAAE;KACR,QAAQ,CAAC,uEAAuE,CAAC,CAAC;AAGrF;;wEAEwE;AACxE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC;IACN,OAAO,EAAE,yBAAyB;IAClC,KAAK,EAAE,kBAAkB,CAAC,eAAe;IACzC,WAAW,EAAE,kBAAkB,CAAC,qBAAqB;IACrD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IAClC,WAAW,EAAE,cAAc;CAC5B,CAAC;KACD,MAAM,EAAE,CAAC"}
|