@intentic/sandbox-contract 1.239.0 → 1.242.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/README.md +52 -16
- package/dist/agent-catalog.d.ts +5 -28
- package/dist/agent-catalog.d.ts.map +1 -1
- package/dist/agent-catalog.js +21 -157
- package/dist/agent-catalog.js.map +1 -1
- package/dist/agent-run-model.d.ts +3 -2
- package/dist/agent-run-model.d.ts.map +1 -1
- package/dist/agent-run-model.js +9 -6
- package/dist/agent-run-model.js.map +1 -1
- package/dist/agent-runtimes.d.ts +27 -0
- package/dist/agent-runtimes.d.ts.map +1 -0
- package/dist/agent-runtimes.js +113 -0
- package/dist/agent-runtimes.js.map +1 -0
- package/dist/approvals-execution.d.ts +11 -0
- package/dist/approvals-execution.d.ts.map +1 -0
- package/dist/approvals-execution.js +44 -0
- package/dist/approvals-execution.js.map +1 -0
- package/dist/arrival.d.ts +151 -0
- package/dist/arrival.d.ts.map +1 -0
- package/dist/arrival.js +56 -0
- package/dist/arrival.js.map +1 -0
- package/dist/card-status.d.ts +5 -0
- package/dist/card-status.d.ts.map +1 -0
- package/dist/card-status.js +74 -0
- package/dist/card-status.js.map +1 -0
- package/dist/chores/chores.d.ts.map +1 -1
- package/dist/chores/chores.js +1 -1
- package/dist/chores/chores.js.map +1 -1
- package/dist/command-classes.d.ts +0 -1
- package/dist/command-classes.d.ts.map +1 -1
- package/dist/command-classes.js +9 -2
- package/dist/command-classes.js.map +1 -1
- package/dist/command-run.d.ts +10 -0
- package/dist/command-run.d.ts.map +1 -0
- package/dist/command-run.js +46 -0
- package/dist/command-run.js.map +1 -0
- package/dist/contracts/agent.contract.d.ts +991 -771
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +483 -1
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +20 -2
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/approvals.contract.d.ts +99 -0
- package/dist/contracts/approvals.contract.d.ts.map +1 -0
- package/dist/contracts/approvals.contract.js +32 -0
- package/dist/contracts/approvals.contract.js.map +1 -0
- package/dist/contracts/ci.contract.d.ts +1 -4
- package/dist/contracts/ci.contract.d.ts.map +1 -1
- package/dist/contracts/ci.contract.js +1 -9
- package/dist/contracts/ci.contract.js.map +1 -1
- package/dist/contracts/claude.contract.d.ts +9 -0
- package/dist/contracts/claude.contract.d.ts.map +1 -1
- package/dist/contracts/cursor.contract.d.ts +6 -0
- package/dist/contracts/cursor.contract.d.ts.map +1 -1
- package/dist/contracts/git.contract.d.ts +63 -1
- package/dist/contracts/git.contract.d.ts.map +1 -1
- package/dist/contracts/git.contract.js +22 -4
- package/dist/contracts/git.contract.js.map +1 -1
- package/dist/contracts/grok.contract.d.ts +3 -0
- package/dist/contracts/grok.contract.d.ts.map +1 -1
- package/dist/contracts/keys.contract.d.ts +81 -0
- package/dist/contracts/keys.contract.d.ts.map +1 -0
- package/dist/contracts/keys.contract.js +51 -0
- package/dist/contracts/keys.contract.js.map +1 -0
- package/dist/contracts/panels.contract.d.ts +7 -0
- package/dist/contracts/panels.contract.d.ts.map +1 -1
- package/dist/contracts/prepush.contract.js +2 -2
- package/dist/contracts/providers.contract.d.ts +2 -0
- package/dist/contracts/providers.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.d.ts +99 -101
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/safety.contract.d.ts +35 -0
- package/dist/contracts/safety.contract.d.ts.map +1 -0
- package/dist/contracts/safety.contract.js +32 -0
- package/dist/contracts/safety.contract.js.map +1 -0
- package/dist/contracts/sessions.contract.d.ts +211 -1
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +30 -32
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +277 -1
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/translator.contract.d.ts +31 -3
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/contracts/usage.contract.d.ts +29 -20
- package/dist/contracts/usage.contract.d.ts.map +1 -1
- package/dist/contracts/usage.contract.js +13 -0
- package/dist/contracts/usage.contract.js.map +1 -1
- package/dist/contracts/workspace.contract.d.ts +8 -0
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/conversation-ids.d.ts +2 -0
- package/dist/conversation-ids.d.ts.map +1 -1
- package/dist/conversation-ids.js +8 -0
- package/dist/conversation-ids.js.map +1 -1
- package/dist/credential-material.d.ts +1 -0
- package/dist/credential-material.d.ts.map +1 -1
- package/dist/credential-material.js +24 -2
- package/dist/credential-material.js.map +1 -1
- package/dist/definition.d.ts +51 -93
- package/dist/definition.d.ts.map +1 -1
- package/dist/definition.js +6 -28
- package/dist/definition.js.map +1 -1
- package/dist/events.d.ts +2947 -991
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +233 -82
- package/dist/events.js.map +1 -1
- package/dist/history-state.d.ts.map +1 -1
- package/dist/history-state.js +1 -0
- package/dist/history-state.js.map +1 -1
- package/dist/index.d.ts +2532 -1054
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/ingress-protocol.d.ts +13 -1
- package/dist/ingress-protocol.d.ts.map +1 -1
- package/dist/ingress-protocol.js +19 -0
- package/dist/ingress-protocol.js.map +1 -1
- package/dist/mentions.d.ts +3 -0
- package/dist/mentions.d.ts.map +1 -0
- package/dist/mentions.js +13 -0
- package/dist/mentions.js.map +1 -0
- package/dist/needs-action.d.ts +7 -0
- package/dist/needs-action.d.ts.map +1 -0
- package/dist/needs-action.js +3 -0
- package/dist/needs-action.js.map +1 -0
- package/dist/overlay-lint.d.ts +7 -0
- package/dist/overlay-lint.d.ts.map +1 -0
- package/dist/overlay-lint.js +68 -0
- package/dist/overlay-lint.js.map +1 -0
- package/dist/owner-ticket.d.ts +18 -0
- package/dist/owner-ticket.d.ts.map +1 -0
- package/dist/owner-ticket.js +51 -0
- package/dist/owner-ticket.js.map +1 -0
- package/dist/plan-pools.d.ts +12 -0
- package/dist/plan-pools.d.ts.map +1 -0
- package/dist/plan-pools.js +30 -0
- package/dist/plan-pools.js.map +1 -0
- package/dist/provider-specs.d.ts +228 -0
- package/dist/provider-specs.d.ts.map +1 -0
- package/dist/provider-specs.js +124 -0
- package/dist/provider-specs.js.map +1 -0
- package/dist/quick-model.d.ts.map +1 -1
- package/dist/quick-model.js +2 -1
- package/dist/quick-model.js.map +1 -1
- package/dist/runner-protocol.js +2 -2
- package/dist/runner-protocol.js.map +1 -1
- package/dist/runtime-state.d.ts +2 -2
- package/dist/runtime-state.d.ts.map +1 -1
- package/dist/runtime-state.js +1 -1
- package/dist/runtime-state.js.map +1 -1
- package/dist/safety-policy.d.ts +49 -0
- package/dist/safety-policy.d.ts.map +1 -0
- package/dist/safety-policy.js +52 -0
- package/dist/safety-policy.js.map +1 -0
- package/dist/schemas/agent.d.ts +21 -3
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +18 -8
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents.d.ts +19 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +15 -0
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/approvals.d.ts +241 -0
- package/dist/schemas/approvals.d.ts.map +1 -0
- package/dist/schemas/approvals.js +63 -0
- package/dist/schemas/approvals.js.map +1 -0
- package/dist/schemas/automations.d.ts +5 -0
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/ci.d.ts +5 -9
- package/dist/schemas/ci.d.ts.map +1 -1
- package/dist/schemas/ci.js +3 -10
- package/dist/schemas/ci.js.map +1 -1
- package/dist/schemas/computers.d.ts +31 -5
- package/dist/schemas/computers.d.ts.map +1 -1
- package/dist/schemas/computers.js +7 -5
- package/dist/schemas/computers.js.map +1 -1
- package/dist/schemas/environment.d.ts +11 -131
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js +5 -42
- package/dist/schemas/environment.js.map +1 -1
- package/dist/schemas/git-history.d.ts +4 -0
- package/dist/schemas/git-history.d.ts.map +1 -1
- package/dist/schemas/git.d.ts +179 -0
- package/dist/schemas/git.d.ts.map +1 -1
- package/dist/schemas/git.js +39 -1
- package/dist/schemas/git.js.map +1 -1
- package/dist/schemas/panels.d.ts +21 -0
- package/dist/schemas/panels.d.ts.map +1 -1
- package/dist/schemas/panels.js +5 -0
- package/dist/schemas/panels.js.map +1 -1
- package/dist/schemas/plan-limits.d.ts +50 -3
- package/dist/schemas/plan-limits.d.ts.map +1 -1
- package/dist/schemas/plan-limits.js +11 -6
- package/dist/schemas/plan-limits.js.map +1 -1
- package/dist/schemas/provider-oauth.d.ts +6 -0
- package/dist/schemas/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/provider-subscriptions.d.ts +2 -1
- package/dist/schemas/provider-subscriptions.d.ts.map +1 -1
- package/dist/schemas/provider-subscriptions.js +2 -1
- package/dist/schemas/provider-subscriptions.js.map +1 -1
- package/dist/schemas/settings.d.ts +29 -16
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +13 -20
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/system.d.ts +3 -0
- package/dist/schemas/system.d.ts.map +1 -1
- package/dist/schemas/system.js +5 -1
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/workspace-repos.d.ts +14 -0
- package/dist/schemas/workspace-repos.d.ts.map +1 -1
- package/dist/schemas/workspace-repos.js +5 -0
- package/dist/schemas/workspace-repos.js.map +1 -1
- package/dist/schemas/workspace-tree.d.ts +1 -0
- package/dist/schemas/workspace-tree.d.ts.map +1 -1
- package/dist/schemas/workspace-tree.js +3 -0
- package/dist/schemas/workspace-tree.js.map +1 -1
- package/dist/transcript-fold.d.ts +31 -0
- package/dist/transcript-fold.d.ts.map +1 -0
- package/dist/transcript-fold.js +457 -0
- package/dist/transcript-fold.js.map +1 -0
- package/dist/workspace-state.d.ts +20 -3
- package/dist/workspace-state.d.ts.map +1 -1
- package/dist/workspace-state.js +22 -2
- package/dist/workspace-state.js.map +1 -1
- package/package.json +27 -5
- package/src/agent-catalog.test.ts +1 -1
- package/src/agent-catalog.ts +76 -555
- package/src/agent-run-model.test.ts +31 -15
- package/src/agent-run-model.ts +26 -12
- package/src/agent-runtimes.ts +419 -0
- package/src/approvals-execution.ts +96 -0
- package/src/arrival.ts +160 -0
- package/src/capability-ledger.test.ts +6 -4
- package/src/card-status.ts +93 -0
- package/src/chores/chores.ts +6 -3
- package/src/command-classes.test.ts +25 -0
- package/src/command-classes.ts +47 -5
- package/src/command-run.ts +78 -0
- package/src/contract-lock.test.ts +1 -1
- package/src/contract-lock.ts +2 -2
- package/src/contracts/agents.contract.ts +35 -2
- package/src/contracts/approvals.contract.ts +37 -0
- package/src/contracts/ci.contract.ts +0 -13
- package/src/contracts/git.contract.ts +28 -3
- package/src/contracts/keys.contract.ts +79 -0
- package/src/contracts/prepush.contract.ts +3 -3
- package/src/contracts/safety.contract.ts +48 -0
- package/src/contracts/usage.contract.ts +22 -0
- package/src/conversation-ids.test.ts +31 -1
- package/src/conversation-ids.ts +37 -3
- package/src/credential-material.test.ts +69 -1
- package/src/credential-material.ts +86 -5
- package/src/definition.ts +25 -53
- package/src/events.ts +508 -198
- package/src/history-state.ts +6 -0
- package/src/index.ts +24 -5
- package/src/ingress-protocol.ts +52 -1
- package/src/mentions.test.ts +22 -0
- package/src/mentions.ts +25 -0
- package/src/needs-action.ts +14 -0
- package/src/overlay-lint.test.ts +89 -0
- package/src/overlay-lint.ts +116 -0
- package/src/owner-ticket.test.ts +54 -0
- package/src/owner-ticket.ts +102 -0
- package/src/plan-pools.test.ts +71 -0
- package/src/plan-pools.ts +82 -0
- package/src/provider-specs.test.ts +130 -0
- package/src/provider-specs.ts +352 -0
- package/src/quick-model.ts +9 -5
- package/src/runner-protocol.ts +2 -2
- package/src/runtime-state.ts +6 -6
- package/src/safety-policy.ts +165 -0
- package/src/schemas/agent.ts +62 -17
- package/src/schemas/agents.ts +71 -0
- package/src/schemas/approvals.ts +174 -0
- package/src/schemas/ci.ts +19 -26
- package/src/schemas/computers.ts +52 -11
- package/src/schemas/environment.ts +21 -100
- package/src/schemas/git.ts +121 -6
- package/src/schemas/issues.ts +1 -1
- package/src/schemas/panels.ts +20 -0
- package/src/schemas/plan-limits.ts +58 -11
- package/src/schemas/provider-subscriptions.ts +7 -2
- package/src/schemas/settings.ts +67 -93
- package/src/schemas/system.ts +12 -1
- package/src/schemas/workspace-repos.ts +9 -0
- package/src/schemas/workspace-tree.ts +11 -0
- package/src/transcript-fold.test.ts +493 -0
- package/src/transcript-fold.ts +655 -0
- package/src/workspace-state.test.ts +77 -29
- package/src/workspace-state.ts +99 -31
- package/dist/contracts/drafts.contract.d.ts +0 -57
- package/dist/contracts/drafts.contract.d.ts.map +0 -1
- package/dist/contracts/drafts.contract.js +0 -32
- package/dist/contracts/drafts.contract.js.map +0 -1
- package/dist/definition-action.d.ts +0 -7
- package/dist/definition-action.d.ts.map +0 -1
- package/dist/definition-action.js +0 -3
- package/dist/definition-action.js.map +0 -1
- package/dist/publish-drafts.d.ts +0 -7
- package/dist/publish-drafts.d.ts.map +0 -1
- package/dist/publish-drafts.js +0 -20
- package/dist/publish-drafts.js.map +0 -1
- package/dist/schemas/drafts.d.ts +0 -84
- package/dist/schemas/drafts.d.ts.map +0 -1
- package/dist/schemas/drafts.js +0 -44
- package/dist/schemas/drafts.js.map +0 -1
- package/src/contracts/drafts.contract.ts +0 -35
- package/src/definition-action.ts +0 -8
- package/src/publish-drafts.ts +0 -59
- package/src/schemas/drafts.ts +0 -108
|
@@ -36,6 +36,7 @@ export declare const systemContract: {
|
|
|
36
36
|
}>;
|
|
37
37
|
detail: z.ZodString;
|
|
38
38
|
suggestion: z.ZodOptional<z.ZodString>;
|
|
39
|
+
fix: z.ZodOptional<z.ZodString>;
|
|
39
40
|
}, z.core.$strip>>;
|
|
40
41
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
41
42
|
session: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
@@ -106,6 +107,10 @@ export declare const systemContract: {
|
|
|
106
107
|
title?: string | undefined;
|
|
107
108
|
status: "awaiting" | "conflict" | "dismissing" | "error" | "idle" | "interrupted" | "landed" | "ready" | "resuming" | "running" | "stopped" | "stopping";
|
|
108
109
|
failure?: string | undefined;
|
|
110
|
+
failureCode?: string | undefined;
|
|
111
|
+
limitResetsAt?: number | undefined;
|
|
112
|
+
limitHeld?: boolean | undefined;
|
|
113
|
+
limitScheduled?: boolean | undefined;
|
|
109
114
|
provider: string;
|
|
110
115
|
harness: "claude-code" | "native";
|
|
111
116
|
runner?: string | undefined;
|
|
@@ -119,6 +124,7 @@ export declare const systemContract: {
|
|
|
119
124
|
branch?: string | undefined;
|
|
120
125
|
autoLand?: boolean | undefined;
|
|
121
126
|
resumeAfterOutage?: boolean | undefined;
|
|
127
|
+
resumeAfterLimit?: boolean | undefined;
|
|
122
128
|
landRequested?: {
|
|
123
129
|
email: string;
|
|
124
130
|
name?: string | undefined;
|
|
@@ -213,6 +219,32 @@ export declare const systemContract: {
|
|
|
213
219
|
archivedAt?: number | undefined;
|
|
214
220
|
}[];
|
|
215
221
|
rev: number;
|
|
222
|
+
} | {
|
|
223
|
+
kind: "accountUsage";
|
|
224
|
+
provider: string;
|
|
225
|
+
account: string;
|
|
226
|
+
usage?: {
|
|
227
|
+
windows: {
|
|
228
|
+
kind: string;
|
|
229
|
+
label?: string | undefined;
|
|
230
|
+
utilization: number;
|
|
231
|
+
resetsAt?: number | undefined;
|
|
232
|
+
gates: "all" | "none" | {
|
|
233
|
+
models: string[];
|
|
234
|
+
};
|
|
235
|
+
}[];
|
|
236
|
+
measuredAt: number;
|
|
237
|
+
} | undefined;
|
|
238
|
+
} | {
|
|
239
|
+
kind: "providerRefusal";
|
|
240
|
+
provider: string;
|
|
241
|
+
refusal?: {
|
|
242
|
+
at: number;
|
|
243
|
+
kind: "auth" | "entitlement" | "limit";
|
|
244
|
+
message: string;
|
|
245
|
+
account?: string | undefined;
|
|
246
|
+
model?: string | undefined;
|
|
247
|
+
} | undefined;
|
|
216
248
|
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
217
249
|
kind: "hello";
|
|
218
250
|
workspaceId: string;
|
|
@@ -274,6 +306,10 @@ export declare const systemContract: {
|
|
|
274
306
|
title?: string | undefined;
|
|
275
307
|
status: "awaiting" | "conflict" | "dismissing" | "error" | "idle" | "interrupted" | "landed" | "ready" | "resuming" | "running" | "stopped" | "stopping";
|
|
276
308
|
failure?: string | undefined;
|
|
309
|
+
failureCode?: string | undefined;
|
|
310
|
+
limitResetsAt?: number | undefined;
|
|
311
|
+
limitHeld?: boolean | undefined;
|
|
312
|
+
limitScheduled?: boolean | undefined;
|
|
277
313
|
provider: string;
|
|
278
314
|
harness: "claude-code" | "native";
|
|
279
315
|
runner?: string | undefined;
|
|
@@ -287,6 +323,7 @@ export declare const systemContract: {
|
|
|
287
323
|
branch?: string | undefined;
|
|
288
324
|
autoLand?: boolean | undefined;
|
|
289
325
|
resumeAfterOutage?: boolean | undefined;
|
|
326
|
+
resumeAfterLimit?: boolean | undefined;
|
|
290
327
|
landRequested?: {
|
|
291
328
|
email: string;
|
|
292
329
|
name?: string | undefined;
|
|
@@ -381,6 +418,32 @@ export declare const systemContract: {
|
|
|
381
418
|
archivedAt?: number | undefined;
|
|
382
419
|
}[];
|
|
383
420
|
rev: number;
|
|
421
|
+
} | {
|
|
422
|
+
kind: "accountUsage";
|
|
423
|
+
provider: string;
|
|
424
|
+
account: string;
|
|
425
|
+
usage?: {
|
|
426
|
+
windows: {
|
|
427
|
+
kind: string;
|
|
428
|
+
label?: string | undefined;
|
|
429
|
+
utilization: number;
|
|
430
|
+
resetsAt?: number | undefined;
|
|
431
|
+
gates: "all" | "none" | {
|
|
432
|
+
models: string[];
|
|
433
|
+
};
|
|
434
|
+
}[];
|
|
435
|
+
measuredAt: number;
|
|
436
|
+
} | undefined;
|
|
437
|
+
} | {
|
|
438
|
+
kind: "providerRefusal";
|
|
439
|
+
provider: string;
|
|
440
|
+
refusal?: {
|
|
441
|
+
at: number;
|
|
442
|
+
kind: "auth" | "entitlement" | "limit";
|
|
443
|
+
message: string;
|
|
444
|
+
account?: string | undefined;
|
|
445
|
+
model?: string | undefined;
|
|
446
|
+
} | undefined;
|
|
384
447
|
}, unknown, void>>, Record<never, never>, Record<never, never>>;
|
|
385
448
|
presence: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
386
449
|
clientId: z.ZodString;
|
|
@@ -523,16 +586,226 @@ export declare const systemContract: {
|
|
|
523
586
|
sentAt: z.ZodOptional<z.ZodNumber>;
|
|
524
587
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
525
588
|
checkpointId: z.ZodOptional<z.ZodString>;
|
|
589
|
+
rewindIndex: z.ZodOptional<z.ZodNumber>;
|
|
526
590
|
thinking: z.ZodOptional<z.ZodString>;
|
|
527
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodType<import("../events.js").
|
|
591
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodType<import("../events.js").TranscriptTool, unknown, z.core.$ZodTypeInternals<import("../events.js").TranscriptTool, unknown>>>>;
|
|
592
|
+
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
593
|
+
content: z.ZodString;
|
|
594
|
+
status: z.ZodEnum<{
|
|
595
|
+
completed: "completed";
|
|
596
|
+
in_progress: "in_progress";
|
|
597
|
+
pending: "pending";
|
|
598
|
+
}>;
|
|
599
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
600
|
+
}, z.core.$strip>>>;
|
|
601
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
602
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
603
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
604
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
605
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
606
|
+
numTurns: z.ZodOptional<z.ZodNumber>;
|
|
607
|
+
}, z.core.$strip>>;
|
|
528
608
|
notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
529
609
|
title: z.ZodString;
|
|
530
610
|
text: z.ZodString;
|
|
531
611
|
}, z.core.$strip>>>;
|
|
532
612
|
placed: z.ZodOptional<z.ZodBoolean>;
|
|
533
613
|
noticeAction: z.ZodOptional<z.ZodEnum<{
|
|
614
|
+
depsInstall: "depsInstall";
|
|
615
|
+
landHold: "landHold";
|
|
616
|
+
outageOptOut: "outageOptOut";
|
|
534
617
|
tierHold: "tierHold";
|
|
535
618
|
}>>;
|
|
619
|
+
noticeWait: z.ZodOptional<z.ZodEnum<{
|
|
620
|
+
credentialRenewal: "credentialRenewal";
|
|
621
|
+
}>>;
|
|
622
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
623
|
+
requestId: z.ZodString;
|
|
624
|
+
text: z.ZodString;
|
|
625
|
+
document: z.ZodOptional<z.ZodObject<{
|
|
626
|
+
path: z.ZodString;
|
|
627
|
+
title: z.ZodString;
|
|
628
|
+
markdown: z.ZodString;
|
|
629
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
630
|
+
plan: z.ZodOptional<z.ZodBoolean>;
|
|
631
|
+
}, z.core.$strip>>;
|
|
632
|
+
status: z.ZodEnum<{
|
|
633
|
+
approved: "approved";
|
|
634
|
+
cancelled: "cancelled";
|
|
635
|
+
pending: "pending";
|
|
636
|
+
rejected: "rejected";
|
|
637
|
+
}>;
|
|
638
|
+
}, z.core.$strip>>;
|
|
639
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
640
|
+
requestId: z.ZodString;
|
|
641
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
642
|
+
question: z.ZodString;
|
|
643
|
+
header: z.ZodString;
|
|
644
|
+
multiSelect: z.ZodBoolean;
|
|
645
|
+
options: z.ZodArray<z.ZodObject<{
|
|
646
|
+
label: z.ZodString;
|
|
647
|
+
description: z.ZodString;
|
|
648
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
649
|
+
}, z.core.$strip>>;
|
|
650
|
+
}, z.core.$strip>>;
|
|
651
|
+
document: z.ZodOptional<z.ZodObject<{
|
|
652
|
+
path: z.ZodString;
|
|
653
|
+
title: z.ZodString;
|
|
654
|
+
markdown: z.ZodString;
|
|
655
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
656
|
+
plan: z.ZodOptional<z.ZodBoolean>;
|
|
657
|
+
}, z.core.$strip>>;
|
|
658
|
+
status: z.ZodEnum<{
|
|
659
|
+
answered: "answered";
|
|
660
|
+
cancelled: "cancelled";
|
|
661
|
+
pending: "pending";
|
|
662
|
+
}>;
|
|
663
|
+
answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
664
|
+
}, z.core.$strip>>;
|
|
665
|
+
permission: z.ZodOptional<z.ZodObject<{
|
|
666
|
+
toolName: z.ZodString;
|
|
667
|
+
title: z.ZodOptional<z.ZodString>;
|
|
668
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
669
|
+
description: z.ZodOptional<z.ZodString>;
|
|
670
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
671
|
+
path: z.ZodOptional<z.ZodString>;
|
|
672
|
+
alwaysLabel: z.ZodOptional<z.ZodString>;
|
|
673
|
+
program: z.ZodOptional<z.ZodObject<{
|
|
674
|
+
text: z.ZodString;
|
|
675
|
+
language: z.ZodEnum<{
|
|
676
|
+
bash: "bash";
|
|
677
|
+
javascript: "javascript";
|
|
678
|
+
}>;
|
|
679
|
+
truncated: z.ZodBoolean;
|
|
680
|
+
spans: z.ZodArray<z.ZodObject<{
|
|
681
|
+
start: z.ZodNumber;
|
|
682
|
+
end: z.ZodNumber;
|
|
683
|
+
}, z.core.$strip>>;
|
|
684
|
+
}, z.core.$strip>>;
|
|
685
|
+
explain: z.ZodOptional<z.ZodString>;
|
|
686
|
+
requestId: z.ZodString;
|
|
687
|
+
status: z.ZodEnum<{
|
|
688
|
+
allowed: "allowed";
|
|
689
|
+
always: "always";
|
|
690
|
+
cancelled: "cancelled";
|
|
691
|
+
denied: "denied";
|
|
692
|
+
pending: "pending";
|
|
693
|
+
}>;
|
|
694
|
+
}, z.core.$strip>>;
|
|
695
|
+
browserHelp: z.ZodOptional<z.ZodObject<{
|
|
696
|
+
requestId: z.ZodString;
|
|
697
|
+
session: z.ZodString;
|
|
698
|
+
account: z.ZodString;
|
|
699
|
+
message: z.ZodString;
|
|
700
|
+
status: z.ZodEnum<{
|
|
701
|
+
cancelled: "cancelled";
|
|
702
|
+
declined: "declined";
|
|
703
|
+
helped: "helped";
|
|
704
|
+
pending: "pending";
|
|
705
|
+
}>;
|
|
706
|
+
}, z.core.$strip>>;
|
|
707
|
+
terminalHelp: z.ZodOptional<z.ZodObject<{
|
|
708
|
+
requestId: z.ZodString;
|
|
709
|
+
session: z.ZodString;
|
|
710
|
+
message: z.ZodString;
|
|
711
|
+
status: z.ZodEnum<{
|
|
712
|
+
cancelled: "cancelled";
|
|
713
|
+
declined: "declined";
|
|
714
|
+
helped: "helped";
|
|
715
|
+
pending: "pending";
|
|
716
|
+
}>;
|
|
717
|
+
}, z.core.$strip>>;
|
|
718
|
+
serviceOffer: z.ZodOptional<z.ZodObject<{
|
|
719
|
+
requestId: z.ZodString;
|
|
720
|
+
offer: z.ZodObject<{
|
|
721
|
+
slug: z.ZodString;
|
|
722
|
+
name: z.ZodString;
|
|
723
|
+
publisher: z.ZodString;
|
|
724
|
+
description: z.ZodString;
|
|
725
|
+
creditsPerRun: z.ZodNumber;
|
|
726
|
+
probation: z.ZodOptional<z.ZodBoolean>;
|
|
727
|
+
credits: z.ZodOptional<z.ZodObject<{
|
|
728
|
+
allowance: z.ZodNumber;
|
|
729
|
+
remaining: z.ZodNumber;
|
|
730
|
+
resetsAt: z.ZodString;
|
|
731
|
+
}, z.core.$strip>>;
|
|
732
|
+
request: z.ZodString;
|
|
733
|
+
why: z.ZodOptional<z.ZodString>;
|
|
734
|
+
}, z.core.$strip>;
|
|
735
|
+
status: z.ZodEnum<{
|
|
736
|
+
approved: "approved";
|
|
737
|
+
cancelled: "cancelled";
|
|
738
|
+
pending: "pending";
|
|
739
|
+
skipped: "skipped";
|
|
740
|
+
}>;
|
|
741
|
+
events: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
742
|
+
event: z.ZodLiteral<"status">;
|
|
743
|
+
text: z.ZodString;
|
|
744
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
745
|
+
event: z.ZodLiteral<"result">;
|
|
746
|
+
data: z.ZodUnknown;
|
|
747
|
+
}, z.core.$strip>], "event">>>;
|
|
748
|
+
receipt: z.ZodOptional<z.ZodObject<{
|
|
749
|
+
outcome: z.ZodEnum<{
|
|
750
|
+
ok: "ok";
|
|
751
|
+
refunded: "refunded";
|
|
752
|
+
refused: "refused";
|
|
753
|
+
}>;
|
|
754
|
+
credits: z.ZodNumber;
|
|
755
|
+
remaining: z.ZodOptional<z.ZodNumber>;
|
|
756
|
+
}, z.core.$strip>>;
|
|
757
|
+
}, z.core.$strip>>;
|
|
758
|
+
capabilityOffer: z.ZodOptional<z.ZodObject<{
|
|
759
|
+
requestId: z.ZodString;
|
|
760
|
+
offer: z.ZodObject<{
|
|
761
|
+
card: z.ZodString;
|
|
762
|
+
name: z.ZodString;
|
|
763
|
+
why: z.ZodOptional<z.ZodString>;
|
|
764
|
+
}, z.core.$strip>;
|
|
765
|
+
status: z.ZodEnum<{
|
|
766
|
+
cancelled: "cancelled";
|
|
767
|
+
connecting: "connecting";
|
|
768
|
+
pending: "pending";
|
|
769
|
+
skipped: "skipped";
|
|
770
|
+
}>;
|
|
771
|
+
outcome: z.ZodOptional<z.ZodObject<{
|
|
772
|
+
outcome: z.ZodEnum<{
|
|
773
|
+
connected: "connected";
|
|
774
|
+
unfinished: "unfinished";
|
|
775
|
+
}>;
|
|
776
|
+
id: z.ZodOptional<z.ZodString>;
|
|
777
|
+
}, z.core.$strip>>;
|
|
778
|
+
}, z.core.$strip>>;
|
|
779
|
+
paymentOffer: z.ZodOptional<z.ZodObject<{
|
|
780
|
+
requestId: z.ZodString;
|
|
781
|
+
offer: z.ZodObject<{
|
|
782
|
+
url: z.ZodString;
|
|
783
|
+
description: z.ZodOptional<z.ZodString>;
|
|
784
|
+
payTo: z.ZodString;
|
|
785
|
+
network: z.ZodString;
|
|
786
|
+
asset: z.ZodString;
|
|
787
|
+
assetName: z.ZodString;
|
|
788
|
+
amountUsd: z.ZodString;
|
|
789
|
+
spentTodayUsd: z.ZodString;
|
|
790
|
+
dailyCapUsd: z.ZodString;
|
|
791
|
+
why: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, z.core.$strip>;
|
|
793
|
+
status: z.ZodEnum<{
|
|
794
|
+
approved: "approved";
|
|
795
|
+
cancelled: "cancelled";
|
|
796
|
+
pending: "pending";
|
|
797
|
+
skipped: "skipped";
|
|
798
|
+
}>;
|
|
799
|
+
receipt: z.ZodOptional<z.ZodObject<{
|
|
800
|
+
outcome: z.ZodEnum<{
|
|
801
|
+
failed: "failed";
|
|
802
|
+
paid: "paid";
|
|
803
|
+
}>;
|
|
804
|
+
amountUsd: z.ZodString;
|
|
805
|
+
transaction: z.ZodOptional<z.ZodString>;
|
|
806
|
+
network: z.ZodOptional<z.ZodString>;
|
|
807
|
+
}, z.core.$strip>>;
|
|
808
|
+
}, z.core.$strip>>;
|
|
536
809
|
}, z.core.$strip>>;
|
|
537
810
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
538
811
|
manageMachineSandbox: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -581,6 +854,9 @@ export declare const systemContract: {
|
|
|
581
854
|
command: z.ZodEnum<{
|
|
582
855
|
"mirror-off": "mirror-off";
|
|
583
856
|
"mirror-on": "mirror-on";
|
|
857
|
+
"sync-pause": "sync-pause";
|
|
858
|
+
"sync-resume": "sync-resume";
|
|
859
|
+
"sync-unpair": "sync-unpair";
|
|
584
860
|
}>;
|
|
585
861
|
sandboxId: z.ZodOptional<z.ZodString>;
|
|
586
862
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;IAYJ,gBAAgB
|
|
1
|
+
{"version":3,"file":"system.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/system.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,eAAO,MAAM,cAAc;IACvB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;IAYJ,gBAAgB;;;;;;;;;;;;;IAWhB,OAAO;;;;;IASP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWN,QAAQ;;;;;;;;;IAWR,KAAK;;;;;;;;;;;;IAYL,SAAS;;;;;;;;;;;;;;;;;;;;;;;;IAST,YAAY;;;;;IAYZ,kBAAkB;;;;;;;;;IAelB,QAAQ;;;;;;;;;;;;;;;;;;;;;IASR,YAAY;;;;;IAiBZ,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAST,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBlB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBpB,iBAAiB;;;;;;;;;;;;;;;CAUpB,CAAC"}
|
|
@@ -10,11 +10,18 @@ export declare const translatorContract: {
|
|
|
10
10
|
label: z.ZodOptional<z.ZodString>;
|
|
11
11
|
utilization: z.ZodNumber;
|
|
12
12
|
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
gates: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"none">, z.ZodObject<{
|
|
14
|
+
models: z.ZodArray<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>]>;
|
|
13
16
|
}, z.core.$strip>>;
|
|
14
17
|
measuredAt: z.ZodNumber;
|
|
15
18
|
}, z.core.$strip>>;
|
|
19
|
+
cooling: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
until: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
16
23
|
}, z.core.$strip>>;
|
|
17
|
-
|
|
24
|
+
gemini: z.ZodArray<z.ZodObject<{
|
|
18
25
|
name: z.ZodString;
|
|
19
26
|
label: z.ZodString;
|
|
20
27
|
usage: z.ZodOptional<z.ZodObject<{
|
|
@@ -23,11 +30,18 @@ export declare const translatorContract: {
|
|
|
23
30
|
label: z.ZodOptional<z.ZodString>;
|
|
24
31
|
utilization: z.ZodNumber;
|
|
25
32
|
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
gates: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"none">, z.ZodObject<{
|
|
34
|
+
models: z.ZodArray<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>]>;
|
|
26
36
|
}, z.core.$strip>>;
|
|
27
37
|
measuredAt: z.ZodNumber;
|
|
28
38
|
}, z.core.$strip>>;
|
|
39
|
+
cooling: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
until: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
29
43
|
}, z.core.$strip>>;
|
|
30
|
-
|
|
44
|
+
grok: z.ZodArray<z.ZodObject<{
|
|
31
45
|
name: z.ZodString;
|
|
32
46
|
label: z.ZodString;
|
|
33
47
|
usage: z.ZodOptional<z.ZodObject<{
|
|
@@ -36,11 +50,18 @@ export declare const translatorContract: {
|
|
|
36
50
|
label: z.ZodOptional<z.ZodString>;
|
|
37
51
|
utilization: z.ZodNumber;
|
|
38
52
|
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
gates: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"none">, z.ZodObject<{
|
|
54
|
+
models: z.ZodArray<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>]>;
|
|
39
56
|
}, z.core.$strip>>;
|
|
40
57
|
measuredAt: z.ZodNumber;
|
|
41
58
|
}, z.core.$strip>>;
|
|
59
|
+
cooling: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
until: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
42
63
|
}, z.core.$strip>>;
|
|
43
|
-
|
|
64
|
+
kimi: z.ZodArray<z.ZodObject<{
|
|
44
65
|
name: z.ZodString;
|
|
45
66
|
label: z.ZodString;
|
|
46
67
|
usage: z.ZodOptional<z.ZodObject<{
|
|
@@ -49,9 +70,16 @@ export declare const translatorContract: {
|
|
|
49
70
|
label: z.ZodOptional<z.ZodString>;
|
|
50
71
|
utilization: z.ZodNumber;
|
|
51
72
|
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
gates: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"none">, z.ZodObject<{
|
|
74
|
+
models: z.ZodArray<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>]>;
|
|
52
76
|
}, z.core.$strip>>;
|
|
53
77
|
measuredAt: z.ZodNumber;
|
|
54
78
|
}, z.core.$strip>>;
|
|
79
|
+
cooling: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
until: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
55
83
|
}, z.core.$strip>>;
|
|
56
84
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
57
85
|
connect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translator.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/translator.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,kBAAkB;IAC3B,QAAQ
|
|
1
|
+
{"version":3,"file":"translator.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/translator.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,kBAAkB;IAC3B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASR,OAAO;;;;;;;;;;;;;;;;IAUP,QAAQ;;;;;;;;;;;;IAUR,UAAU;;;;;;;;;;;CASb,CAAC"}
|
|
@@ -1,23 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RefreshPlanLimitsSchema: z.ZodObject<{
|
|
3
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
4
|
+
}, z.core.$strip>;
|
|
1
5
|
export declare const usageContract: {
|
|
2
|
-
rollup: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<
|
|
3
|
-
from:
|
|
4
|
-
to:
|
|
5
|
-
},
|
|
6
|
-
rows:
|
|
7
|
-
day:
|
|
8
|
-
provider:
|
|
9
|
-
account:
|
|
10
|
-
model:
|
|
11
|
-
harness:
|
|
12
|
-
conversationId:
|
|
13
|
-
turns:
|
|
14
|
-
inputTokens:
|
|
15
|
-
outputTokens:
|
|
16
|
-
cacheReadTokens:
|
|
17
|
-
cacheCreationTokens:
|
|
18
|
-
costUsd:
|
|
19
|
-
durationMs:
|
|
20
|
-
},
|
|
21
|
-
},
|
|
6
|
+
rollup: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
7
|
+
from: z.ZodOptional<z.ZodString>;
|
|
8
|
+
to: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
11
|
+
day: z.ZodString;
|
|
12
|
+
provider: z.ZodString;
|
|
13
|
+
account: z.ZodOptional<z.ZodString>;
|
|
14
|
+
model: z.ZodOptional<z.ZodString>;
|
|
15
|
+
harness: z.ZodString;
|
|
16
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
turns: z.ZodNumber;
|
|
18
|
+
inputTokens: z.ZodNumber;
|
|
19
|
+
outputTokens: z.ZodNumber;
|
|
20
|
+
cacheReadTokens: z.ZodNumber;
|
|
21
|
+
cacheCreationTokens: z.ZodNumber;
|
|
22
|
+
costUsd: z.ZodNumber;
|
|
23
|
+
durationMs: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
26
|
+
refreshPlanLimits: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
27
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
ok: z.ZodLiteral<true>;
|
|
30
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
22
31
|
};
|
|
23
32
|
//# sourceMappingURL=usage.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/usage.contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usage.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/usage.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAMH,eAAO,MAAM,aAAa;IACtB,MAAM;;;;;;;;;;;;;;;;;;;;IAaN,iBAAiB;;;;;CAUpB,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
import { DayWindowQuerySchema, UsageRollupSchema } from "../schemas/usage.js";
|
|
4
|
+
export const RefreshPlanLimitsSchema = z.object({
|
|
5
|
+
force: z.boolean().default(false).describe("Measure again even if a reading was taken a moment ago."),
|
|
6
|
+
});
|
|
3
7
|
export const usageContract = {
|
|
4
8
|
rollup: oc
|
|
5
9
|
.route({
|
|
@@ -10,5 +14,14 @@ export const usageContract = {
|
|
|
10
14
|
})
|
|
11
15
|
.input(DayWindowQuerySchema)
|
|
12
16
|
.output(UsageRollupSchema),
|
|
17
|
+
refreshPlanLimits: oc
|
|
18
|
+
.route({
|
|
19
|
+
method: "POST",
|
|
20
|
+
path: "/usage/plan-limits/refresh",
|
|
21
|
+
summary: "Measure every account's plan limits again",
|
|
22
|
+
description: "Reads how full each connected account's plan limits are, for every provider, and records it. Forced, it measures even accounts read a moment ago, which is the right thing when a plan was just changed and the question is whether the number on screen is still true.",
|
|
23
|
+
})
|
|
24
|
+
.input(RefreshPlanLimitsSchema)
|
|
25
|
+
.output(z.object({ ok: z.literal(true) })),
|
|
13
26
|
};
|
|
14
27
|
//# sourceMappingURL=usage.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.contract.js","sourceRoot":"","sources":["../../src/contracts/usage.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAM9E,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,yBAAyB;QAClC,WAAW,EACP,8RAA8R;KACrS,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"usage.contract.js","sourceRoot":"","sources":["../../src/contracts/usage.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAM9E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,yDAAyD,CAAC;CACxG,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,MAAM,EAAE,EAAE;SACL,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,yBAAyB;QAClC,WAAW,EACP,8RAA8R;KACrS,CAAC;SACD,KAAK,CAAC,oBAAoB,CAAC;SAC3B,MAAM,CAAC,iBAAiB,CAAC;IAI9B,iBAAiB,EAAE,EAAE;SAChB,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,4BAA4B;QAClC,OAAO,EAAE,2CAA2C;QACpD,WAAW,EACP,yQAAyQ;KAChR,CAAC;SACD,KAAK,CAAC,uBAAuB,CAAC;SAC9B,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;CACjD,CAAC"}
|
|
@@ -5,6 +5,7 @@ export declare const workspaceContract: {
|
|
|
5
5
|
root: import("zod").ZodString;
|
|
6
6
|
tree: import("zod").ZodArray<import("zod").ZodType<import("../schemas/workspace-tree.js").WorkspaceTreeEntry, unknown, import("zod/v4/core").$ZodTypeInternals<import("../schemas/workspace-tree.js").WorkspaceTreeEntry, unknown>>>;
|
|
7
7
|
hidden: import("zod").ZodNumber;
|
|
8
|
+
barren: import("zod").ZodArray<import("zod").ZodString>;
|
|
8
9
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
9
10
|
children: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10
11
|
agent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -267,6 +268,13 @@ export declare const workspaceContract: {
|
|
|
267
268
|
previewUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
268
269
|
running: import("zod").ZodBoolean;
|
|
269
270
|
healthy: import("zod").ZodBoolean;
|
|
271
|
+
installed: import("zod").ZodBoolean;
|
|
272
|
+
launch: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
273
|
+
exited: "exited";
|
|
274
|
+
installing: "installing";
|
|
275
|
+
launching: "launching";
|
|
276
|
+
starting: "starting";
|
|
277
|
+
}>>;
|
|
270
278
|
}, import("zod/v4/core").$strip>>;
|
|
271
279
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
272
280
|
packageGraph: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/workspace.contract.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,iBAAiB;IAI1B,IAAI
|
|
1
|
+
{"version":3,"file":"workspace.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/workspace.contract.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,iBAAiB;IAI1B,IAAI;;;;;;;;IAaJ,QAAQ;;;;;;;;IAYR,IAAI;;;;;;;;;;;;;;;;;IAcJ,WAAW;;;;;;;IAaX,OAAO;;;;;;IAYP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaN,QAAQ;;;;;;;;;;;;;IAYR,KAAK;;;;;IASL,MAAM;;;;;IAUN,IAAI;;;;;;IASJ,IAAI;;;;;;IAaJ,KAAK;;;;;;;;;;;;;;;;;;;;IASL,OAAO;;;;;IAUP,KAAK;;;IAQL,OAAO;;;;;;;;IAWP,IAAI;;;;;;;;;;;;;;;;;;IAWJ,SAAS;;;;;;;IAaT,OAAO;;;;;;;;;IAUP,QAAQ;;;;;;;;;;;;;;;;;;IAWR,YAAY;;;;;;;;;;;;;;;;;;IAYZ,OAAO;;;;;;;;;IASP,QAAQ;;;;;;IASR,OAAO;;;;;;IAYP,QAAQ;;;;;;;CAUX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-ids.d.ts","sourceRoot":"","sources":["../src/conversation-ids.ts"],"names":[],"mappings":"AA4KA,eAAO,MAAM,iBAAiB,QAAO,MAAwD,CAAC"}
|
|
1
|
+
{"version":3,"file":"conversation-ids.d.ts","sourceRoot":"","sources":["../src/conversation-ids.ts"],"names":[],"mappings":"AA4KA,eAAO,MAAM,iBAAiB,QAAO,MAAwD,CAAC;AAwB9F,eAAO,MAAM,aAAa,YAAY,CAAC;AAUvC,eAAO,MAAM,mBAAmB,SAAU,MAAM,SAAS,MAAM,KAAG,MAAsD,CAAC"}
|
package/dist/conversation-ids.js
CHANGED
|
@@ -120,4 +120,12 @@ const randomBelow = (upperBound) => {
|
|
|
120
120
|
const pick = (values) => values[randomBelow(values.length)];
|
|
121
121
|
const tail = () => Array.from({ length: TAIL_LENGTH }, () => randomBelow(36).toString(36)).join("");
|
|
122
122
|
export const newConversationId = () => `${pick(ADJECTIVES)}-${pick(NOUNS)}-${tail()}`;
|
|
123
|
+
export const CI_FIX_PREFIX = "ci-fix-";
|
|
124
|
+
const REPO_SLUG_MAX = 32;
|
|
125
|
+
const repoSlug = (repo) => repo
|
|
126
|
+
.toLowerCase()
|
|
127
|
+
.replace(/[^a-z0-9]+/g, "-")
|
|
128
|
+
.slice(0, REPO_SLUG_MAX)
|
|
129
|
+
.replace(/^-+|-+$/g, "") || "repo";
|
|
130
|
+
export const ciFixConversationId = (repo, runId) => `${CI_FIX_PREFIX}${repoSlug(repo)}-${runId}`;
|
|
123
131
|
//# sourceMappingURL=conversation-ids.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-ids.js","sourceRoot":"","sources":["../src/conversation-ids.ts"],"names":[],"mappings":"AAmCA,MAAM,UAAU,GAAG;IACf,OAAO;IACP,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;CACD,CAAC;AAEX,MAAM,KAAK,GAAG;IACV,OAAO;IACP,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAAQ;IACR,OAAO;IACP,KAAK;IACL,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,OAAO;IACP,OAAO;IACP,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,MAA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C,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,KAAa,EAAU,EAAE,CAAC,GAAG,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-material.d.ts","sourceRoot":"","sources":["../src/credential-material.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credential-material.d.ts","sourceRoot":"","sources":["../src/credential-material.ts"],"names":[],"mappings":"AAmGA,eAAO,MAAM,uBAAuB,SAAU,MAAM,KAAG,OAYtD,CAAC;AAkDF,eAAO,MAAM,sBAAsB,SAAU,MAAM,KAAG,MAmB5C,CAAC"}
|