@anchrd/colab-sdk 0.1.39 → 0.1.41

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.
@@ -278,6 +278,7 @@ export declare const ActionAbortReason: z.ZodEnum<{
278
278
  timeout: "timeout";
279
279
  crash: "crash";
280
280
  noresult: "noresult";
281
+ unfinished: "unfinished";
281
282
  }>;
282
283
  export type ActionAbortReason = z.infer<typeof ActionAbortReason>;
283
284
  export declare const ActionNoticeKind: z.ZodEnum<{
@@ -305,7 +306,10 @@ export declare const ActionNoticeTitle: z.ZodDiscriminatedUnion<[z.ZodObject<{
305
306
  timeout: "timeout";
306
307
  crash: "crash";
307
308
  noresult: "noresult";
309
+ unfinished: "unfinished";
308
310
  }>;
311
+ }, z.core.$strip>, z.ZodObject<{
312
+ text: z.ZodLiteral<"runUnfinished">;
309
313
  }, z.core.$strip>], "text">;
310
314
  export type ActionNoticeTitle = z.infer<typeof ActionNoticeTitle>;
311
315
  export declare const ActionNoticeCrumb: z.ZodUnion<readonly [z.ZodObject<{
@@ -366,6 +370,7 @@ export declare const ActionAbort: z.ZodObject<{
366
370
  timeout: "timeout";
367
371
  crash: "crash";
368
372
  noresult: "noresult";
373
+ unfinished: "unfinished";
369
374
  }>;
370
375
  runId: z.ZodTemplateLiteral<`run_${string}`>;
371
376
  tasks: z.ZodArray<z.ZodObject<{
@@ -422,7 +427,10 @@ export declare const ActionNotice: z.ZodObject<{
422
427
  timeout: "timeout";
423
428
  crash: "crash";
424
429
  noresult: "noresult";
430
+ unfinished: "unfinished";
425
431
  }>;
432
+ }, z.core.$strip>, z.ZodObject<{
433
+ text: z.ZodLiteral<"runUnfinished">;
426
434
  }, z.core.$strip>], "text">;
427
435
  path: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
428
436
  word: z.ZodEnum<{
@@ -480,6 +488,7 @@ export declare const ActionNotice: z.ZodObject<{
480
488
  timeout: "timeout";
481
489
  crash: "crash";
482
490
  noresult: "noresult";
491
+ unfinished: "unfinished";
483
492
  }>;
484
493
  runId: z.ZodTemplateLiteral<`run_${string}`>;
485
494
  tasks: z.ZodArray<z.ZodObject<{
@@ -538,7 +547,10 @@ export declare const ActionNoticeItem: z.ZodObject<{
538
547
  timeout: "timeout";
539
548
  crash: "crash";
540
549
  noresult: "noresult";
550
+ unfinished: "unfinished";
541
551
  }>;
552
+ }, z.core.$strip>, z.ZodObject<{
553
+ text: z.ZodLiteral<"runUnfinished">;
542
554
  }, z.core.$strip>], "text">;
543
555
  path: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
544
556
  word: z.ZodEnum<{
@@ -596,6 +608,7 @@ export declare const ActionNoticeItem: z.ZodObject<{
596
608
  timeout: "timeout";
597
609
  crash: "crash";
598
610
  noresult: "noresult";
611
+ unfinished: "unfinished";
599
612
  }>;
600
613
  runId: z.ZodTemplateLiteral<`run_${string}`>;
601
614
  tasks: z.ZodArray<z.ZodObject<{
@@ -798,7 +811,10 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
798
811
  timeout: "timeout";
799
812
  crash: "crash";
800
813
  noresult: "noresult";
814
+ unfinished: "unfinished";
801
815
  }>;
816
+ }, z.core.$strip>, z.ZodObject<{
817
+ text: z.ZodLiteral<"runUnfinished">;
802
818
  }, z.core.$strip>], "text">;
803
819
  path: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
804
820
  word: z.ZodEnum<{
@@ -856,6 +872,7 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
856
872
  timeout: "timeout";
857
873
  crash: "crash";
858
874
  noresult: "noresult";
875
+ unfinished: "unfinished";
859
876
  }>;
860
877
  runId: z.ZodTemplateLiteral<`run_${string}`>;
861
878
  tasks: z.ZodArray<z.ZodObject<{
@@ -1078,7 +1095,10 @@ export declare const ActionList: z.ZodObject<{
1078
1095
  timeout: "timeout";
1079
1096
  crash: "crash";
1080
1097
  noresult: "noresult";
1098
+ unfinished: "unfinished";
1081
1099
  }>;
1100
+ }, z.core.$strip>, z.ZodObject<{
1101
+ text: z.ZodLiteral<"runUnfinished">;
1082
1102
  }, z.core.$strip>], "text">;
1083
1103
  path: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1084
1104
  word: z.ZodEnum<{
@@ -1136,6 +1156,7 @@ export declare const ActionList: z.ZodObject<{
1136
1156
  timeout: "timeout";
1137
1157
  crash: "crash";
1138
1158
  noresult: "noresult";
1159
+ unfinished: "unfinished";
1139
1160
  }>;
1140
1161
  runId: z.ZodTemplateLiteral<`run_${string}`>;
1141
1162
  tasks: z.ZodArray<z.ZodObject<{
@@ -142,6 +142,7 @@ export const ActionItem = z.object({
142
142
  // not start, a run without its closing result, an error of Colab's own, or a provider that failed
143
143
  // or set a limit. Never a wanted stop (the Operator waits, a person stops it, the budget or the
144
144
  // daily limit), and never a refused credential or a locked Operator, which have their own rows.
145
+ // `unfinished` (E231, #1097): a run that completed with open work stands the same way.
145
146
  export const ActionAbortReason = z.enum([
146
147
  "timeout",
147
148
  "crash",
@@ -149,6 +150,7 @@ export const ActionAbortReason = z.enum([
149
150
  "noresult",
150
151
  "error",
151
152
  "provider",
153
+ "unfinished",
152
154
  ]);
153
155
  // What the notice is, for its icon: an access that stopped working, a paused Operator, a run that
154
156
  // broke off for a technical reason (E141, #825).
@@ -165,6 +167,8 @@ export const ActionNoticeTitle = z.discriminatedUnion("text", [
165
167
  z.object({ text: z.literal("pausedFailures"), failures: z.number().int().positive() }),
166
168
  // "Run aborted: <reason>" (E141, #825).
167
169
  z.object({ text: z.literal("runAborted"), reason: ActionAbortReason }),
170
+ // "Run not finished" (E231, #1097): it completed with open work.
171
+ z.object({ text: z.literal("runUnfinished") }),
168
172
  ]);
169
173
  // One step of the grey path below the title: a word the UI translates, or a name shown as it is.
170
174
  export const ActionNoticeCrumb = z.union([
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { OperatorProvider } from "../users/users.js";
2
3
  export declare const gatewayCatalog: readonly [{
3
4
  readonly gateway: "cloudflare";
4
5
  readonly name: "Cloudflare";
@@ -228,7 +229,7 @@ export declare const GatewayModelEntrySchema: z.ZodObject<{
228
229
  export declare const operatorProviders: readonly [{
229
230
  readonly provider: "claude";
230
231
  readonly name: "Claude";
231
- readonly vendor: "Anthropic";
232
+ readonly maker: "Anthropic";
232
233
  readonly selectable: true;
233
234
  readonly kinds: readonly ["subscription", "apikey"];
234
235
  readonly beta: false;
@@ -239,7 +240,7 @@ export declare const operatorProviders: readonly [{
239
240
  }, {
240
241
  readonly provider: "gateway";
241
242
  readonly name: "Gateway";
242
- readonly vendor: "Cloudflare AI Gateway";
243
+ readonly maker: "Cloudflare AI Gateway";
243
244
  readonly selectable: true;
244
245
  readonly kinds: readonly ["gateway"];
245
246
  readonly beta: false;
@@ -254,6 +255,87 @@ export declare function modelsOf(entry: OperatorProviderEntry, _kind: Credential
254
255
  defaultModel: OperatorModel;
255
256
  };
256
257
  export declare function inCatalog(provider: string, model: string): boolean;
258
+ export declare const OperatorVendor: z.ZodEnum<{
259
+ claude: "claude";
260
+ gemini: "gemini";
261
+ gpt: "gpt";
262
+ deepseek: "deepseek";
263
+ kimi: "kimi";
264
+ grok: "grok";
265
+ glm: "glm";
266
+ qwen: "qwen";
267
+ llama: "llama";
268
+ mistral: "mistral";
269
+ nemotron: "nemotron";
270
+ gemma: "gemma";
271
+ }>;
272
+ export type OperatorVendor = z.infer<typeof OperatorVendor>;
273
+ export declare const operatorVendors: readonly [{
274
+ readonly vendor: "claude";
275
+ readonly name: "Claude";
276
+ readonly maker: "Anthropic";
277
+ readonly mark: "C";
278
+ }, {
279
+ readonly vendor: "gpt";
280
+ readonly name: "GPT";
281
+ readonly maker: "OpenAI";
282
+ readonly mark: "G";
283
+ }, {
284
+ readonly vendor: "gemini";
285
+ readonly name: "Gemini";
286
+ readonly maker: "Google";
287
+ readonly mark: "Ge";
288
+ readonly unavailable: "gateway";
289
+ }, {
290
+ readonly vendor: "deepseek";
291
+ readonly name: "DeepSeek";
292
+ readonly maker: "DeepSeek";
293
+ readonly mark: "DS";
294
+ }, {
295
+ readonly vendor: "kimi";
296
+ readonly name: "Kimi";
297
+ readonly maker: "Moonshot";
298
+ readonly mark: "K";
299
+ }, {
300
+ readonly vendor: "grok";
301
+ readonly name: "Grok";
302
+ readonly maker: "xAI";
303
+ readonly mark: "Gr";
304
+ }, {
305
+ readonly vendor: "glm";
306
+ readonly name: "GLM";
307
+ readonly maker: "Zhipu";
308
+ readonly mark: "GL";
309
+ }, {
310
+ readonly vendor: "qwen";
311
+ readonly name: "Qwen";
312
+ readonly maker: "Alibaba";
313
+ readonly mark: "Q";
314
+ }, {
315
+ readonly vendor: "llama";
316
+ readonly name: "Llama";
317
+ readonly maker: "Meta";
318
+ readonly mark: "L";
319
+ }, {
320
+ readonly vendor: "mistral";
321
+ readonly name: "Mistral";
322
+ readonly maker: "Mistral AI";
323
+ readonly mark: "M";
324
+ }, {
325
+ readonly vendor: "nemotron";
326
+ readonly name: "Nemotron";
327
+ readonly maker: "Nvidia";
328
+ readonly mark: "N";
329
+ }, {
330
+ readonly vendor: "gemma";
331
+ readonly name: "Gemma";
332
+ readonly maker: "Google";
333
+ readonly mark: "Gm";
334
+ }];
335
+ export type OperatorVendorEntry = (typeof operatorVendors)[number];
336
+ export declare function vendorOfModel(model: OperatorModel): OperatorVendor;
337
+ export declare function modelsOfVendor(vendor: OperatorVendor): OperatorModel[];
338
+ export declare function offeredModels(vendor: OperatorVendor, provider: OperatorProvider): OperatorModel[];
257
339
  export declare const CredentialKind: z.ZodEnum<{
258
340
  gateway: "gateway";
259
341
  subscription: "subscription";
@@ -950,6 +1032,7 @@ export declare const Operator: z.ZodObject<{
950
1032
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
951
1033
  rev: z.ZodNumber;
952
1034
  modelAllowed: z.ZodNullable<z.ZodBoolean>;
1035
+ modelsAvailable: z.ZodNullable<z.ZodBoolean>;
953
1036
  instructions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
954
1037
  path: z.ZodString;
955
1038
  markdown: z.ZodString;
@@ -1151,6 +1234,7 @@ export declare const OperatorList: z.ZodObject<{
1151
1234
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
1152
1235
  rev: z.ZodNumber;
1153
1236
  modelAllowed: z.ZodNullable<z.ZodBoolean>;
1237
+ modelsAvailable: z.ZodNullable<z.ZodBoolean>;
1154
1238
  instructions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1155
1239
  path: z.ZodString;
1156
1240
  markdown: z.ZodString;
@@ -1506,11 +1590,13 @@ export declare const OperatorRunReason: z.ZodEnum<{
1506
1590
  error: "error";
1507
1591
  credential: "credential";
1508
1592
  provider: "provider";
1593
+ budget: "budget";
1509
1594
  container: "container";
1510
1595
  timeout: "timeout";
1511
1596
  crash: "crash";
1512
1597
  noresult: "noresult";
1513
1598
  unauthorized: "unauthorized";
1599
+ unfinished: "unfinished";
1514
1600
  }>;
1515
1601
  export type OperatorRunReason = z.infer<typeof OperatorRunReason>;
1516
1602
  export declare const OperatorRunTrigger: z.ZodEnum<{
@@ -1594,11 +1680,13 @@ export declare const OperatorRun: z.ZodObject<{
1594
1680
  error: "error";
1595
1681
  credential: "credential";
1596
1682
  provider: "provider";
1683
+ budget: "budget";
1597
1684
  container: "container";
1598
1685
  timeout: "timeout";
1599
1686
  crash: "crash";
1600
1687
  noresult: "noresult";
1601
1688
  unauthorized: "unauthorized";
1689
+ unfinished: "unfinished";
1602
1690
  }>>;
1603
1691
  detail: z.ZodNullable<z.ZodString>;
1604
1692
  summary: z.ZodNullable<z.ZodString>;
@@ -1686,6 +1774,20 @@ export declare const OperatorRunListInput: z.ZodObject<{
1686
1774
  gemini: "gemini";
1687
1775
  gateway: "gateway";
1688
1776
  }>>;
1777
+ vendor: z.ZodOptional<z.ZodEnum<{
1778
+ claude: "claude";
1779
+ gemini: "gemini";
1780
+ gpt: "gpt";
1781
+ deepseek: "deepseek";
1782
+ kimi: "kimi";
1783
+ grok: "grok";
1784
+ glm: "glm";
1785
+ qwen: "qwen";
1786
+ llama: "llama";
1787
+ mistral: "mistral";
1788
+ nemotron: "nemotron";
1789
+ gemma: "gemma";
1790
+ }>>;
1689
1791
  status: z.ZodOptional<z.ZodEnum<{
1690
1792
  running: "running";
1691
1793
  failed: "failed";
@@ -1930,11 +2032,13 @@ export declare const OperatorRunList: z.ZodObject<{
1930
2032
  error: "error";
1931
2033
  credential: "credential";
1932
2034
  provider: "provider";
2035
+ budget: "budget";
1933
2036
  container: "container";
1934
2037
  timeout: "timeout";
1935
2038
  crash: "crash";
1936
2039
  noresult: "noresult";
1937
2040
  unauthorized: "unauthorized";
2041
+ unfinished: "unfinished";
1938
2042
  }>>;
1939
2043
  detail: z.ZodNullable<z.ZodString>;
1940
2044
  summary: z.ZodNullable<z.ZodString>;
@@ -228,7 +228,7 @@ export const operatorProviders = [
228
228
  {
229
229
  provider: "claude",
230
230
  name: "Claude",
231
- vendor: "Anthropic",
231
+ maker: "Anthropic",
232
232
  selectable: true,
233
233
  kinds: ["subscription", "apikey"],
234
234
  beta: false,
@@ -240,7 +240,7 @@ export const operatorProviders = [
240
240
  {
241
241
  provider: "gateway",
242
242
  name: "Gateway",
243
- vendor: "Cloudflare AI Gateway",
243
+ maker: "Cloudflare AI Gateway",
244
244
  selectable: true,
245
245
  kinds: ["gateway"],
246
246
  beta: false,
@@ -261,6 +261,93 @@ export function inCatalog(provider, model) {
261
261
  const entry = operatorProviders.find((item) => item.provider === provider);
262
262
  return !entry || entry.models.includes(model);
263
263
  }
264
+ // The catalog the UI shows (E230, #1090): the AI vendors, not the kinds a run goes through. An
265
+ // Operator's vendor follows from its model alone (`vendorOfModel`), so every stored Operator, one on
266
+ // a retired model or one of Codex and Gemini from before #978 included, stands under exactly one.
267
+ // `mark` is the square's letters. `unavailable` names why no credential unlocks a vendor: Gemini's
268
+ // current models are not paid by Unified Billing (#1059), so the gateway holds none of them.
269
+ export const OperatorVendor = z.enum([
270
+ "claude",
271
+ "gpt",
272
+ "gemini",
273
+ "deepseek",
274
+ "kimi",
275
+ "grok",
276
+ "glm",
277
+ "qwen",
278
+ "llama",
279
+ "mistral",
280
+ "nemotron",
281
+ "gemma",
282
+ ]);
283
+ export const operatorVendors = [
284
+ { vendor: "claude", name: "Claude", maker: "Anthropic", mark: "C" },
285
+ { vendor: "gpt", name: "GPT", maker: "OpenAI", mark: "G" },
286
+ { vendor: "gemini", name: "Gemini", maker: "Google", mark: "Ge", unavailable: "gateway" },
287
+ { vendor: "deepseek", name: "DeepSeek", maker: "DeepSeek", mark: "DS" },
288
+ { vendor: "kimi", name: "Kimi", maker: "Moonshot", mark: "K" },
289
+ { vendor: "grok", name: "Grok", maker: "xAI", mark: "Gr" },
290
+ { vendor: "glm", name: "GLM", maker: "Zhipu", mark: "GL" },
291
+ { vendor: "qwen", name: "Qwen", maker: "Alibaba", mark: "Q" },
292
+ { vendor: "llama", name: "Llama", maker: "Meta", mark: "L" },
293
+ { vendor: "mistral", name: "Mistral", maker: "Mistral AI", mark: "M" },
294
+ { vendor: "nemotron", name: "Nemotron", maker: "Nvidia", mark: "N" },
295
+ { vendor: "gemma", name: "Gemma", maker: "Google", mark: "Gm" },
296
+ ];
297
+ // A record, so a model added to `OperatorModel` without a vendor fails the typecheck.
298
+ const vendors = {
299
+ opus: "claude",
300
+ sonnet: "claude",
301
+ haiku: "claude",
302
+ "gpt-6-astra": "gpt",
303
+ "gpt-6.1-sol": "gpt",
304
+ "gpt-6-luna": "gpt",
305
+ pro: "gemini",
306
+ flash: "gemini",
307
+ "flash-lite": "gemini",
308
+ "gemini-2.5-pro": "gemini",
309
+ "gemini-2.5-flash": "gemini",
310
+ "gemini-2.5-flash-lite": "gemini",
311
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "deepseek",
312
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "deepseek",
313
+ "anthropic/claude-haiku-5-5": "claude",
314
+ "anthropic/claude-sonnet-5-5": "claude",
315
+ "anthropic/claude-opus-5-5": "claude",
316
+ "anthropic/claude-fable-5-1": "claude",
317
+ "xai/grok-4.7": "grok",
318
+ "moonshotai/kimi-k3": "kimi",
319
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "kimi",
320
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "kimi",
321
+ "workers-ai/@cf/zai-org/glm-5.3": "glm",
322
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "glm",
323
+ "workers-ai/@cf/qwen/qwen3.8-27b": "qwen",
324
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "gemma",
325
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "nemotron",
326
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "llama",
327
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "mistral",
328
+ "openai/gpt-6.1-terra": "gpt",
329
+ "openai/gpt-6-luna": "gpt",
330
+ "anthropic/claude-sonnet-4-6": "claude",
331
+ "anthropic/claude-opus-4-6": "claude",
332
+ "anthropic/claude-haiku-4-5": "claude",
333
+ "google-ai-studio/gemini-2.5-pro": "gemini",
334
+ "google-ai-studio/gemini-2.5-flash": "gemini",
335
+ };
336
+ export function vendorOfModel(model) {
337
+ return vendors[model];
338
+ }
339
+ // Every model of a vendor, retired and withdrawn ones included: what a filter by vendor takes.
340
+ export function modelsOfVendor(vendor) {
341
+ return OperatorModel.options.filter((model) => vendors[model] === vendor);
342
+ }
343
+ // The vendor's models a new Operator may take through this provider (the kind of its credential):
344
+ // the gateway's catalog, or Claude Code's aliases for Claude through a subscription.
345
+ export function offeredModels(vendor, provider) {
346
+ const entry = operatorProviders.find((item) => item.provider === provider);
347
+ if (!entry)
348
+ return [];
349
+ return entry.models.filter((model) => vendors[model] === vendor);
350
+ }
264
351
  // `subscription`: the sign-in of a subscription, the token of `claude setup-token`; none for Codex
265
352
  // and Gemini since #459, a stored one reads as invalid. `apikey`: an API key (Claude Console,
266
353
  // OpenAI, Gemini API). The same words for every provider, so the Claude credentials stored before #455 keep their kind. Always the
@@ -595,6 +682,11 @@ export const Operator = z.object({
595
682
  // A personal Operator's model is one its person may take now (E143, #804); false when an admin no
596
683
  // longer allows it: it keeps running, its page says so. Null for the company's.
597
684
  modelAllowed: z.boolean().nullable(),
685
+ // E227 (#1060): whether its person may take any model the credentials for personal Operators
686
+ // offer. False when every model in their allowed list left the catalog (or none fits): only an
687
+ // admin changes that, under Organisation › Operatoren › Mitarbeiter (`operator_user_update`).
688
+ // Null for the company's, and where no credential offers a model at all (that has its own hint).
689
+ modelsAvailable: z.boolean().nullable(),
598
690
  // A personal Operator's INSTRUCTIONS as its run reads them, the part under no heading and its own
599
691
  // section `## Name`, with the document's path and version (E143, #804): only in the answer of
600
692
  // `operator_machine_get`, so an admin reads them without opening the person's own folder. Null
@@ -688,7 +780,9 @@ export const OperatorRunStatus = z.enum(["running", "completed", "failed", "stop
688
780
  // (`error`), or the provider refused the credential (`credential`: it is marked invalid and its
689
781
  // Operators pause; no failure in a row is counted and no run follows). `unauthorized` (#607): the
690
782
  // Operator was locked or deleted during the run and may no longer act; like `credential` no failure
691
- // in a row and no retry.
783
+ // in a row and no retry. `unfinished` (E231, #1097) is the one reason of a `completed` run: it ended
784
+ // with an open step in its plan or an open card it was woken for, named in `detail`. `budget` (E232,
785
+ // #1098): the rest of its goal run's budget was spent; a wanted stop, no failure in a row.
692
786
  export const OperatorRunReason = z.enum([
693
787
  "container",
694
788
  "provider",
@@ -698,6 +792,8 @@ export const OperatorRunReason = z.enum([
698
792
  "error",
699
793
  "credential",
700
794
  "unauthorized",
795
+ "unfinished",
796
+ "budget",
701
797
  ]);
702
798
  // What woke it: a change after the quiet minutes, a fixed time, or the retry after a failure.
703
799
  export const OperatorRunTrigger = z.enum(["change", "schedule", "retry"]);
@@ -807,7 +903,8 @@ export const OperatorRunListInput = z.strictObject({
807
903
  machineId: MachineId.optional().describe("Only this Operator's runs, `user_…`. An Operator without admin rights reads its own runs only, whatever it names here."),
808
904
  ownerId: UserId.optional().describe("Only the runs of this person's personal Operators, deleted ones included, `user_…`."),
809
905
  personal: Flag.optional().describe("true: only the runs of personal Operators; false: only those of the company's Operators."),
810
- provider: OperatorProvider.optional().describe("Only the runs of this provider's Operators: claude, codex or gemini."),
906
+ provider: OperatorProvider.optional().describe("Only the runs of this provider's Operators, the kind they run through: claude or gateway (codex and gemini only for Operators stored before #978)."),
907
+ vendor: OperatorVendor.optional().describe("Only the runs of the Operators whose model is this vendor's (E230): claude, gpt, deepseek and so on."),
811
908
  status: OperatorRunStatus.optional().describe("Only runs in this status."),
812
909
  from: RunMoment.optional().describe("Runs started at or after this moment, ISO."),
813
910
  to: RunMoment.optional().describe("Runs started before this moment, ISO."),
@@ -8,7 +8,7 @@ export const IdempotencyKey = z
8
8
  .string()
9
9
  .min(8)
10
10
  .max(200)
11
- .describe("A caller-chosen key that makes this call safe to retry: repeating the same key returns the first result instead of doing the work twice. Reuse the SAME key when retrying one attempt, and a new one for a genuinely new call.");
11
+ .describe("A caller-chosen key that makes this call safe to retry: repeating the same call with the same key returns the first result instead of doing the work twice. A key belongs to exactly one call: reuse it only to retry that call, and send a new one for every new call, also in a later run. A key already spent on another call (another tool, node or input) answers conflict.");
12
12
  // The revision a save is based on (E70): every save counts it up by one, and a save that names
13
13
  // another than the stored one is `conflict` and writes nothing. Not the version number of a
14
14
  // document and not `updatedAt`: a move or a grant touches the row too (trap P117).
package/dist/sdk.d.ts CHANGED
@@ -33,7 +33,7 @@ export { Mcp, McpAuth, McpCall, McpCallAction, McpCallList, McpCallListInput, ty
33
33
  export { ChatRead, ChatTopic, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, TopicName, topicMaxLength, topicOf, } from "./messages/messages.js";
34
34
  export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
35
35
  export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeKindRead, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, unknownNodeKind, } from "./nodes/nodes.js";
36
- export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, compactRunLimit, type GatewayModel, type GatewayModelEntry, GatewayModelEntrySchema, type GatewayOutputLimit, GatewayRight, GatewayRightCheck, GatewayTarget, gatewayCatalog, gatewayModelOf, inCatalog, KeepStepsDays, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, type OperatorProviderEntry, OperatorRun, OperatorRunAgents, OperatorRunCostSource, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, operatorDefaults, operatorProviders, outputLimitOf, PauseReason, planAnswerOf, type RetiredGatewayModel, RunCancelInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningEffortOf, retiredGatewayModels, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, validatorTrigger, } from "./operators/operators.js";
36
+ export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, compactRunLimit, type GatewayModel, type GatewayModelEntry, GatewayModelEntrySchema, type GatewayOutputLimit, GatewayRight, GatewayRightCheck, GatewayTarget, gatewayCatalog, gatewayModelOf, inCatalog, KeepStepsDays, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, modelsOfVendor, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, type OperatorProviderEntry, OperatorRun, OperatorRunAgents, OperatorRunCostSource, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, OperatorVendor, type OperatorVendorEntry, offeredModels, operatorDefaults, operatorProviders, operatorVendors, outputLimitOf, PauseReason, planAnswerOf, type RetiredGatewayModel, RunCancelInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningEffortOf, retiredGatewayModels, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, validatorTrigger, vendorOfModel, } from "./operators/operators.js";
37
37
  export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
38
38
  export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
39
39
  export { AgentName, gatewayAgentsMax, IdempotencyKey, PlanSubstep, planEvidenceMax, Rev, } from "./primitives/primitives.js";
package/dist/sdk.js CHANGED
@@ -36,7 +36,7 @@ export { Mcp, McpAuth, McpCall, McpCallAction, McpCallList, McpCallListInput, Mc
36
36
  export { ChatRead, ChatTopic, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, TopicName, topicMaxLength, topicOf, } from "./messages/messages.js";
37
37
  export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
38
38
  export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeKindRead, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, unknownNodeKind, } from "./nodes/nodes.js";
39
- export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, compactRunLimit, GatewayModelEntrySchema, GatewayRight, GatewayRightCheck, GatewayTarget, gatewayCatalog, gatewayModelOf, inCatalog, KeepStepsDays, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, OperatorRun, OperatorRunAgents, OperatorRunCostSource, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, operatorDefaults, operatorProviders, outputLimitOf, PauseReason, planAnswerOf, RunCancelInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningEffortOf, retiredGatewayModels, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, validatorTrigger, } from "./operators/operators.js";
39
+ export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, compactRunLimit, GatewayModelEntrySchema, GatewayRight, GatewayRightCheck, GatewayTarget, gatewayCatalog, gatewayModelOf, inCatalog, KeepStepsDays, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, modelsOfVendor, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, OperatorRun, OperatorRunAgents, OperatorRunCostSource, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, OperatorVendor, offeredModels, operatorDefaults, operatorProviders, operatorVendors, outputLimitOf, PauseReason, planAnswerOf, RunCancelInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningEffortOf, retiredGatewayModels, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, validatorTrigger, vendorOfModel, } from "./operators/operators.js";
40
40
  export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
41
41
  export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
42
42
  export { AgentName, gatewayAgentsMax, IdempotencyKey, PlanSubstep, planEvidenceMax, Rev, } from "./primitives/primitives.js";
@@ -73,7 +73,7 @@ export const SkillTestInput = z.strictObject({
73
73
  .min(1)
74
74
  .max(200)
75
75
  .optional()
76
- .describe("The name of one case to record anew: it runs once with real reading tools and the rights of the Operator in evals.yaml; if it passes, its data/ replaces the old recording. Writing still goes into the sandbox."),
76
+ .describe("The name of one case to run once, with the rights of the Operator in evals.yaml. Reading is real, writing still goes into the sandbox, and nothing is recorded."),
77
77
  });
78
78
  export const SkillRunListInput = z.strictObject({
79
79
  skillId: SkillId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anchrd/colab-sdk",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
4
4
  "description": "Types, Zod schemas and the service client of Colab, the contract between its UI, backends and outside services.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",