@anchrd/colab-sdk 0.1.24 → 0.1.26

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.
@@ -79,18 +79,6 @@ export declare const ActionChat: z.ZodObject<{
79
79
  }, z.core.$strip>;
80
80
  }, z.core.$strip>;
81
81
  export type ActionChat = z.infer<typeof ActionChat>;
82
- export declare const ActionProcess: z.ZodObject<{
83
- kind: z.ZodEnum<{
84
- board: "board";
85
- }>;
86
- dueAt: z.ZodISODateTime;
87
- }, z.core.$strip>;
88
- export type ActionProcess = z.infer<typeof ActionProcess>;
89
- export declare const ActionRunHint: z.ZodEnum<{
90
- started: "started";
91
- stalled: "stalled";
92
- }>;
93
- export type ActionRunHint = z.infer<typeof ActionRunHint>;
94
82
  export declare const ActionRunTask: z.ZodObject<{
95
83
  taskId: z.ZodTemplateLiteral<`node_${string}`>;
96
84
  title: z.ZodString;
@@ -110,38 +98,6 @@ export declare const ActionRunTask: z.ZodObject<{
110
98
  rev: z.ZodNumber;
111
99
  }, z.core.$strip>;
112
100
  export type ActionRunTask = z.infer<typeof ActionRunTask>;
113
- export declare const ActionRun: z.ZodObject<{
114
- runId: z.ZodTemplateLiteral<`run_${string}`>;
115
- status: z.ZodEnum<{
116
- error: "error";
117
- open: "open";
118
- done: "done";
119
- running: "running";
120
- }>;
121
- tasks: z.ZodArray<z.ZodObject<{
122
- taskId: z.ZodTemplateLiteral<`node_${string}`>;
123
- title: z.ZodString;
124
- column: z.ZodObject<{
125
- columnId: z.ZodTemplateLiteral<`column_${string}`>;
126
- name: z.ZodString;
127
- type: z.ZodEnum<{
128
- backlog: "backlog";
129
- open: "open";
130
- progress: "progress";
131
- done: "done";
132
- discarded: "discarded";
133
- blocked: "blocked";
134
- archive: "archive";
135
- }>;
136
- }, z.core.$strip>;
137
- rev: z.ZodNumber;
138
- }, z.core.$strip>>;
139
- hint: z.ZodOptional<z.ZodEnum<{
140
- started: "started";
141
- stalled: "stalled";
142
- }>>;
143
- }, z.core.$strip>;
144
- export type ActionRun = z.infer<typeof ActionRun>;
145
101
  export declare const ActionGadget: z.ZodObject<{
146
102
  problem: z.ZodEnum<{
147
103
  error: "error";
@@ -264,43 +220,6 @@ export declare const ActionItem: z.ZodObject<{
264
220
  createdAt: z.ZodISODateTime;
265
221
  }, z.core.$strip>;
266
222
  }, z.core.$strip>>;
267
- process: z.ZodNullable<z.ZodObject<{
268
- kind: z.ZodEnum<{
269
- board: "board";
270
- }>;
271
- dueAt: z.ZodISODateTime;
272
- }, z.core.$strip>>;
273
- run: z.ZodNullable<z.ZodObject<{
274
- runId: z.ZodTemplateLiteral<`run_${string}`>;
275
- status: z.ZodEnum<{
276
- error: "error";
277
- open: "open";
278
- done: "done";
279
- running: "running";
280
- }>;
281
- tasks: z.ZodArray<z.ZodObject<{
282
- taskId: z.ZodTemplateLiteral<`node_${string}`>;
283
- title: z.ZodString;
284
- column: z.ZodObject<{
285
- columnId: z.ZodTemplateLiteral<`column_${string}`>;
286
- name: z.ZodString;
287
- type: z.ZodEnum<{
288
- backlog: "backlog";
289
- open: "open";
290
- progress: "progress";
291
- done: "done";
292
- discarded: "discarded";
293
- blocked: "blocked";
294
- archive: "archive";
295
- }>;
296
- }, z.core.$strip>;
297
- rev: z.ZodNumber;
298
- }, z.core.$strip>>;
299
- hint: z.ZodOptional<z.ZodEnum<{
300
- started: "started";
301
- stalled: "stalled";
302
- }>>;
303
- }, z.core.$strip>>;
304
223
  gadget: z.ZodNullable<z.ZodObject<{
305
224
  problem: z.ZodEnum<{
306
225
  error: "error";
@@ -778,43 +697,6 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
778
697
  createdAt: z.ZodISODateTime;
779
698
  }, z.core.$strip>;
780
699
  }, z.core.$strip>>;
781
- process: z.ZodNullable<z.ZodObject<{
782
- kind: z.ZodEnum<{
783
- board: "board";
784
- }>;
785
- dueAt: z.ZodISODateTime;
786
- }, z.core.$strip>>;
787
- run: z.ZodNullable<z.ZodObject<{
788
- runId: z.ZodTemplateLiteral<`run_${string}`>;
789
- status: z.ZodEnum<{
790
- error: "error";
791
- open: "open";
792
- done: "done";
793
- running: "running";
794
- }>;
795
- tasks: z.ZodArray<z.ZodObject<{
796
- taskId: z.ZodTemplateLiteral<`node_${string}`>;
797
- title: z.ZodString;
798
- column: z.ZodObject<{
799
- columnId: z.ZodTemplateLiteral<`column_${string}`>;
800
- name: z.ZodString;
801
- type: z.ZodEnum<{
802
- backlog: "backlog";
803
- open: "open";
804
- progress: "progress";
805
- done: "done";
806
- discarded: "discarded";
807
- blocked: "blocked";
808
- archive: "archive";
809
- }>;
810
- }, z.core.$strip>;
811
- rev: z.ZodNumber;
812
- }, z.core.$strip>>;
813
- hint: z.ZodOptional<z.ZodEnum<{
814
- started: "started";
815
- stalled: "stalled";
816
- }>>;
817
- }, z.core.$strip>>;
818
700
  gadget: z.ZodNullable<z.ZodObject<{
819
701
  problem: z.ZodEnum<{
820
702
  error: "error";
@@ -1078,43 +960,6 @@ export declare const ActionList: z.ZodObject<{
1078
960
  createdAt: z.ZodISODateTime;
1079
961
  }, z.core.$strip>;
1080
962
  }, z.core.$strip>>;
1081
- process: z.ZodNullable<z.ZodObject<{
1082
- kind: z.ZodEnum<{
1083
- board: "board";
1084
- }>;
1085
- dueAt: z.ZodISODateTime;
1086
- }, z.core.$strip>>;
1087
- run: z.ZodNullable<z.ZodObject<{
1088
- runId: z.ZodTemplateLiteral<`run_${string}`>;
1089
- status: z.ZodEnum<{
1090
- error: "error";
1091
- open: "open";
1092
- done: "done";
1093
- running: "running";
1094
- }>;
1095
- tasks: z.ZodArray<z.ZodObject<{
1096
- taskId: z.ZodTemplateLiteral<`node_${string}`>;
1097
- title: z.ZodString;
1098
- column: z.ZodObject<{
1099
- columnId: z.ZodTemplateLiteral<`column_${string}`>;
1100
- name: z.ZodString;
1101
- type: z.ZodEnum<{
1102
- backlog: "backlog";
1103
- open: "open";
1104
- progress: "progress";
1105
- done: "done";
1106
- discarded: "discarded";
1107
- blocked: "blocked";
1108
- archive: "archive";
1109
- }>;
1110
- }, z.core.$strip>;
1111
- rev: z.ZodNumber;
1112
- }, z.core.$strip>>;
1113
- hint: z.ZodOptional<z.ZodEnum<{
1114
- started: "started";
1115
- stalled: "stalled";
1116
- }>>;
1117
- }, z.core.$strip>>;
1118
963
  gadget: z.ZodNullable<z.ZodObject<{
1119
964
  problem: z.ZodEnum<{
1120
965
  error: "error";
@@ -8,7 +8,6 @@ import { Limit as PageSize } from "../list-input.js";
8
8
  import { MessageAuthor, MessageId } from "../messages/messages.js";
9
9
  import { BoardShownKind, NodeId, NodeKind, NodePath } from "../nodes/nodes.js";
10
10
  import { OperatorRunId } from "../operators/operators.js";
11
- import { RunId, RunStatus } from "../runs/runs.js";
12
11
  import { SkillOffer } from "../skills/skills.js";
13
12
  import { UserId } from "../users/users.js";
14
13
  // Actions (#46, Seiten › Actions, E43, E67): one list over every board and chat with what waits on a
@@ -30,8 +29,7 @@ export const ActionListInput = z.strictObject({
30
29
  limit: PageSize.optional().describe("How many rows one page holds, 1 to 100. Leaving it out gives 50."),
31
30
  known: Known.optional(),
32
31
  });
33
- // The two sections of the page: waiting (open tasks, chats, a due process) and in progress (tasks
34
- // in progress, an open run).
32
+ // The two sections of the page: waiting (open tasks, chats) and in progress (tasks in progress).
35
33
  export const ActionSection = z.enum(["waiting", "progress"]);
36
34
  export const ActionTask = z.object({
37
35
  column: TaskColumn,
@@ -61,34 +59,14 @@ export const ActionChat = z.object({
61
59
  createdAt: z.iso.datetime(),
62
60
  }),
63
61
  });
64
- // A process board that was due for its Operator; null on every row since #847 (no process falls
65
- // due), kept one version for clients that read it.
66
- export const ActionProcess = z.object({
67
- kind: z.enum(["board"]),
68
- // The moment of the schedule the next run stands for.
69
- dueAt: z.iso.datetime(),
70
- });
71
- // A hint to the responsible of a process (E124, E125): `started`, a run began and waits on them to
72
- // move its first tasks into Open; `stalled`, no task of the run is in Open or In progress though not
73
- // all are closed, and they move the next one on. Gone as soon as a task of the run is open again.
74
- export const ActionRunHint = z.enum(["started", "stalled"]);
75
- // A card of a process run that is the reader's own (#671): what the run waits on from them, with the
76
- // rev its next save sends, so an Operator writes it without reading the run first.
62
+ // A card an aborted Operator run stood at (#671, E141), with the rev its next save sends, so the
63
+ // Operator writes it without reading it first.
77
64
  export const ActionRunTask = z.object({
78
65
  taskId: NodeId,
79
66
  title: z.string(),
80
67
  column: TaskColumn,
81
68
  rev: z.number().int(),
82
69
  });
83
- export const ActionRun = z.object({
84
- runId: RunId,
85
- status: RunStatus,
86
- // The cards of this run assigned to the reader, in every column, in the order of the run's columns
87
- // and their position; never another's. Empty without one.
88
- tasks: z.array(ActionRunTask),
89
- // Only for the responsible of the run's process, while the run waits on them (E124, E125).
90
- hint: ActionRunHint.optional(),
91
- });
92
70
  // A gadget whose live version broke (#643, Nodes › Gadget › Einstellungen): every new error and every
93
71
  // red test waits on its responsible; without one, on its publisher as a hint to name one. Open until
94
72
  // the next version is published, or for a test until the tests of live pass again.
@@ -104,8 +82,8 @@ export const ActionGadget = z.object({
104
82
  // Nobody is responsible: the row reaches the publisher only to name one.
105
83
  hint: z.boolean(),
106
84
  });
107
- // One row: the node, where it waits, since when, and what makes it wait. Exactly one of task,
108
- // process, run and gadget, or none of them on a row that is a chat alone; chat beside any of them.
85
+ // One row: the node, where it waits, since when, and what makes it wait. Exactly one of task and
86
+ // gadget, or none of them on a row that is a chat alone; chat beside either.
109
87
  export const ActionItem = z.object({
110
88
  node: z.object({
111
89
  nodeId: NodeId,
@@ -123,13 +101,10 @@ export const ActionItem = z.object({
123
101
  }),
124
102
  section: ActionSection,
125
103
  // Since when it waits: a task since it came into its column (or its start date was reached), a
126
- // chat since its first unread message, a due process since its moment, an open run since it
127
- // started, a run that stands since its last task left Open or In progress.
104
+ // chat since its first unread message.
128
105
  since: z.iso.datetime(),
129
106
  task: ActionTask.nullable(),
130
107
  chat: ActionChat.nullable(),
131
- process: ActionProcess.nullable(),
132
- run: ActionRun.nullable(),
133
108
  gadget: ActionGadget.nullable(),
134
109
  });
135
110
  // What another package puts into a person's Actions (#334, E81, E82): "access invalid" for every
@@ -173,57 +173,6 @@ export declare const BoardLabel: z.ZodObject<{
173
173
  name: z.ZodString;
174
174
  }, z.core.$strip>;
175
175
  export type BoardLabel = z.infer<typeof BoardLabel>;
176
- export declare const ProcessCheck: z.ZodObject<{
177
- operator: z.ZodBoolean;
178
- firstColumnBacklog: z.ZodBoolean;
179
- outside: z.ZodNumber;
180
- operators: z.ZodArray<z.ZodObject<{
181
- userId: z.ZodString;
182
- name: z.ZodString;
183
- }, z.core.$strip>>;
184
- responsibleWrites: z.ZodBoolean;
185
- missing: z.ZodArray<z.ZodObject<{
186
- code: z.ZodEnum<{
187
- test_failed: "test_failed";
188
- no_role: "no_role";
189
- no_folder: "no_folder";
190
- credential_invalid: "credential_invalid";
191
- incomplete: "incomplete";
192
- no_right: "no_right";
193
- no_kind: "no_kind";
194
- no_assignee: "no_assignee";
195
- no_machine: "no_machine";
196
- }>;
197
- machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
198
- credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
199
- connectorId: z.ZodOptional<z.ZodString>;
200
- connectionId: z.ZodOptional<z.ZodTemplateLiteral<`connection_${string}`>>;
201
- taskId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
202
- documentId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
203
- userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
204
- nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
205
- message: z.ZodString;
206
- right: z.ZodOptional<z.ZodString>;
207
- givenBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
208
- userId: z.ZodString;
209
- name: z.ZodString;
210
- }, z.core.$strip>>>;
211
- call: z.ZodOptional<z.ZodObject<{
212
- tool: z.ZodString;
213
- arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
214
- }, z.core.$strip>>;
215
- }, z.core.$strip>>;
216
- }, z.core.$strip>;
217
- export type ProcessCheck = z.infer<typeof ProcessCheck>;
218
- export declare const TemplateNote: z.ZodObject<{
219
- message: z.ZodString;
220
- runs: z.ZodArray<z.ZodObject<{
221
- runId: z.ZodTemplateLiteral<`run_${string}`>;
222
- startedAt: z.ZodISODateTime;
223
- dueAt: z.ZodNullable<z.ZodISODateTime>;
224
- }, z.core.$strip>>;
225
- }, z.core.$strip>;
226
- export type TemplateNote = z.infer<typeof TemplateNote>;
227
176
  export declare const BoardDetail: z.ZodObject<{
228
177
  boardId: z.ZodTemplateLiteral<`node_${string}`>;
229
178
  name: z.ZodString;
@@ -235,94 +184,7 @@ export declare const BoardDetail: z.ZodObject<{
235
184
  system: z.ZodNullable<z.ZodEnum<{
236
185
  validation: "validation";
237
186
  }>>;
238
- schedule: z.ZodNullable<z.ZodObject<{
239
- rhythm: z.ZodEnum<{
240
- manual: "manual";
241
- daily: "daily";
242
- weekly: "weekly";
243
- monthly: "monthly";
244
- dates: "dates";
245
- }>;
246
- days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
247
- monday: "monday";
248
- tuesday: "tuesday";
249
- wednesday: "wednesday";
250
- thursday: "thursday";
251
- friday: "friday";
252
- saturday: "saturday";
253
- sunday: "sunday";
254
- }>>>;
255
- dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
256
- weekdayOfMonth: z.ZodOptional<z.ZodObject<{
257
- week: z.ZodEnum<{
258
- first: "first";
259
- last: "last";
260
- second: "second";
261
- third: "third";
262
- fourth: "fourth";
263
- }>;
264
- day: z.ZodEnum<{
265
- monday: "monday";
266
- tuesday: "tuesday";
267
- wednesday: "wednesday";
268
- thursday: "thursday";
269
- friday: "friday";
270
- saturday: "saturday";
271
- sunday: "sunday";
272
- }>;
273
- }, z.core.$strict>>;
274
- times: z.ZodOptional<z.ZodArray<z.ZodString>>;
275
- dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
276
- zone: z.ZodOptional<z.ZodString>;
277
- whileOpen: z.ZodOptional<z.ZodEnum<{
278
- wait: "wait";
279
- continue: "continue";
280
- }>>;
281
- }, z.core.$strict>>;
282
187
  instruction: z.ZodNullable<z.ZodString>;
283
- nextRunAt: z.ZodNullable<z.ZodISODateTime>;
284
- dueAt: z.ZodNullable<z.ZodISODateTime>;
285
- processCheck: z.ZodObject<{
286
- operator: z.ZodBoolean;
287
- firstColumnBacklog: z.ZodBoolean;
288
- outside: z.ZodNumber;
289
- operators: z.ZodArray<z.ZodObject<{
290
- userId: z.ZodString;
291
- name: z.ZodString;
292
- }, z.core.$strip>>;
293
- responsibleWrites: z.ZodBoolean;
294
- missing: z.ZodArray<z.ZodObject<{
295
- code: z.ZodEnum<{
296
- test_failed: "test_failed";
297
- no_role: "no_role";
298
- no_folder: "no_folder";
299
- credential_invalid: "credential_invalid";
300
- incomplete: "incomplete";
301
- no_right: "no_right";
302
- no_kind: "no_kind";
303
- no_assignee: "no_assignee";
304
- no_machine: "no_machine";
305
- }>;
306
- machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
307
- credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
308
- connectorId: z.ZodOptional<z.ZodString>;
309
- connectionId: z.ZodOptional<z.ZodTemplateLiteral<`connection_${string}`>>;
310
- taskId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
311
- documentId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
312
- userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
313
- nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
314
- message: z.ZodString;
315
- right: z.ZodOptional<z.ZodString>;
316
- givenBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
317
- userId: z.ZodString;
318
- name: z.ZodString;
319
- }, z.core.$strip>>>;
320
- call: z.ZodOptional<z.ZodObject<{
321
- tool: z.ZodString;
322
- arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
323
- }, z.core.$strip>>;
324
- }, z.core.$strip>>;
325
- }, z.core.$strip>;
326
188
  validator: z.ZodNullable<z.ZodObject<{
327
189
  userId: z.ZodString;
328
190
  name: z.ZodNullable<z.ZodString>;
@@ -331,14 +193,6 @@ export declare const BoardDetail: z.ZodObject<{
331
193
  human: "human";
332
194
  }>>;
333
195
  }, z.core.$strip>>;
334
- responsible: z.ZodNullable<z.ZodObject<{
335
- userId: z.ZodString;
336
- name: z.ZodNullable<z.ZodString>;
337
- kind: z.ZodNullable<z.ZodEnum<{
338
- machine: "machine";
339
- human: "human";
340
- }>>;
341
- }, z.core.$strip>>;
342
196
  columns: z.ZodArray<z.ZodObject<{
343
197
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
344
198
  name: z.ZodString;
@@ -408,14 +262,6 @@ export declare const BoardDetail: z.ZodObject<{
408
262
  }, z.core.$strip>;
409
263
  rev: z.ZodNumber;
410
264
  updatedAt: z.ZodISODateTime;
411
- template: z.ZodOptional<z.ZodObject<{
412
- message: z.ZodString;
413
- runs: z.ZodArray<z.ZodObject<{
414
- runId: z.ZodTemplateLiteral<`run_${string}`>;
415
- startedAt: z.ZodISODateTime;
416
- dueAt: z.ZodNullable<z.ZodISODateTime>;
417
- }, z.core.$strip>>;
418
- }, z.core.$strip>>;
419
265
  }, z.core.$strip>;
420
266
  export type BoardDetail = z.infer<typeof BoardDetail>;
421
267
  export declare const compactTaskLimit = 50;
@@ -475,7 +321,6 @@ export declare const BoardTaskCreateInput: z.ZodObject<{
475
321
  kind: z.ZodOptional<z.ZodString>;
476
322
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
477
323
  boardId: z.ZodTemplateLiteral<`node_${string}`>;
478
- runId: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
479
324
  }, z.core.$strict>;
480
325
  export type BoardTaskCreateInput = z.infer<typeof BoardTaskCreateInput>;
481
326
  export declare const BoardTaskCreated: z.ZodObject<{
@@ -513,7 +358,6 @@ export declare const TaskUpdateInput: z.ZodObject<{
513
358
  export type TaskUpdateInput = z.infer<typeof TaskUpdateInput>;
514
359
  export declare const BoardTaskUpdateInput: z.ZodObject<{
515
360
  boardId: z.ZodTemplateLiteral<`node_${string}`>;
516
- runId: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
517
361
  tasks: z.ZodArray<z.ZodObject<{
518
362
  taskId: z.ZodTemplateLiteral<`node_${string}`>;
519
363
  rev: z.ZodNumber;
@@ -776,14 +620,6 @@ export declare const BoardTaskList: z.ZodObject<{
776
620
  description: z.ZodString;
777
621
  system: z.ZodOptional<z.ZodLiteral<"new">>;
778
622
  }, z.core.$strip>>>;
779
- template: z.ZodOptional<z.ZodObject<{
780
- message: z.ZodString;
781
- runs: z.ZodArray<z.ZodObject<{
782
- runId: z.ZodTemplateLiteral<`run_${string}`>;
783
- startedAt: z.ZodISODateTime;
784
- dueAt: z.ZodNullable<z.ZodISODateTime>;
785
- }, z.core.$strip>>;
786
- }, z.core.$strip>>;
787
623
  }, z.core.$strip>;
788
624
  export type BoardTaskList = z.infer<typeof BoardTaskList>;
789
625
  export declare const BoardTaskBrief: z.ZodObject<{
@@ -838,14 +674,6 @@ export declare const BoardTaskBriefList: z.ZodObject<{
838
674
  description: z.ZodString;
839
675
  system: z.ZodOptional<z.ZodLiteral<"new">>;
840
676
  }, z.core.$strip>>>;
841
- template: z.ZodOptional<z.ZodObject<{
842
- message: z.ZodString;
843
- runs: z.ZodArray<z.ZodObject<{
844
- runId: z.ZodTemplateLiteral<`run_${string}`>;
845
- startedAt: z.ZodISODateTime;
846
- dueAt: z.ZodNullable<z.ZodISODateTime>;
847
- }, z.core.$strip>>;
848
- }, z.core.$strip>>;
849
677
  items: z.ZodArray<z.ZodObject<{
850
678
  column: z.ZodObject<{
851
679
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
@@ -4,10 +4,8 @@ import { ColumnId, ColumnType, TaskColumn } from "../columns/columns.js";
4
4
  import { idSchema } from "../ids/ids.js";
5
5
  import { InstructionRead, Known } from "../instructions/instructions.js";
6
6
  import { Flag } from "../list-input.js";
7
- import { Missing } from "../missing/missing.js";
8
7
  import { BoardShownKind, BoardSystem, NodeId, NodePerson } from "../nodes/nodes.js";
9
8
  import { IdempotencyKey, Rev } from "../primitives/primitives.js";
10
- import { Schedule } from "../schedule/schedule.js";
11
9
  import { TicketSubject, TicketSubjectRef } from "../validation/validation.js";
12
10
  import { TaskMove } from "../versions/versions.js";
13
11
  // Boards, their columns and labels, and tasks (#42, Nodes › Board, Nodes › Aufgabe, E38, E40, E41,
@@ -91,62 +89,17 @@ export const BoardColumn = z.object({
91
89
  system: z.literal("new").optional(),
92
90
  });
93
91
  export const BoardLabel = z.object({ labelId: LabelId, name: z.string() });
94
- // What stands between a board and saving it as a process (#43): the UI shows a box for each, and the
95
- // server refuses on its own (trap P066).
96
- export const ProcessCheck = z.object({
97
- // A machine (an Operator) holds write on the board (#334: any machine, whatever its roles).
98
- operator: z.boolean(),
99
- // The first column is of type backlog.
100
- firstColumnBacklog: z.boolean(),
101
- // How many tasks of the template stand outside the first column.
102
- outside: z.number().int(),
103
- // Every machine that is neither locked nor archived, whatever its roles, by name (#148, #334):
104
- // whom the settings offer "Für Operator freigeben". Empty when there is none. Readable with the board,
105
- // without any right in `access`.
106
- operators: z.array(z.object({ userId: z.string(), name: z.string() })),
107
- // The process's responsible writes on the board (E125); true without one and on a board that is
108
- // no process.
109
- responsibleWrites: z.boolean(),
110
- // The template check of a process (#675): what a run of its template needs and Colab can check
111
- // without knowing what a field means, each entry with the card's `taskId`: a card without a kind
112
- // on a board with kinds, an empty required field, an assignee who is gone or does not write on the
113
- // board, a node a link field names that the assignee cannot read. The same entries a save of the
114
- // process and a template card's create answer under `missing`. Empty on a board that is no process.
115
- missing: z.array(Missing),
116
- });
117
- // A process read without `runId` is its template, not a run (#678): said so over MCP, with the runs
118
- // that run now, so an AI works on a run's cards and not on the template's. Absent on a board that is
119
- // no process, and with `runId`.
120
- export const TemplateNote = z.object({
121
- message: z.string(),
122
- runs: z.array(z.object({
123
- runId: RunRef,
124
- startedAt: z.iso.datetime(),
125
- // The moment of the schedule the run stands for; null for one started by hand.
126
- dueAt: z.iso.datetime().nullable(),
127
- })),
128
- });
129
92
  export const BoardDetail = z.object({
130
93
  boardId: NodeId,
131
94
  name: z.string(),
132
95
  kind: BoardShownKind,
133
96
  // A system part with a lock, null for every other board.
134
97
  system: BoardSystem.nullable(),
135
- // A process's or the validation's schedule, its zone filled; null for a board.
136
- schedule: Schedule.nullable(),
137
98
  // The board's instruction (E87, #354; the validation's since #47), Markdown; null without one.
138
99
  instruction: z.string().nullable(),
139
- // The next moment a run falls due; null since no process runs any more (#847), kept one version
140
- // for clients that read it.
141
- nextRunAt: z.iso.datetime().nullable(),
142
- // The moment a run was owed; null since #847, like `nextRunAt`.
143
- dueAt: z.iso.datetime().nullable(),
144
- processCheck: ProcessCheck,
145
100
  // Who carries the validation (E79, #378): the holder of the role `validator` while they can act,
146
101
  // for every reader of the validation board; null without one and for every other board.
147
102
  validator: NodePerson.nullable(),
148
- // Who is responsible for a process (E125); null for nobody and on every board that is no process.
149
- responsible: NodePerson.nullable(),
150
103
  columns: z.array(BoardColumn),
151
104
  // The card kinds with their fields in order (#638, E115); empty on a board of free cards.
152
105
  cardKinds: z.array(CardKind),
@@ -154,8 +107,6 @@ export const BoardDetail = z.object({
154
107
  rights: z.object({ write: z.boolean() }),
155
108
  rev: z.number().int(),
156
109
  updatedAt: z.iso.datetime(),
157
- // Over MCP only, on a process (#678): this is the template, and the runs that run now.
158
- template: TemplateNote.optional(),
159
110
  });
160
111
  // The most one page of a board's tasks holds: a board is read whole for the kanban.
161
112
  const TaskLimit = z.coerce
@@ -171,7 +122,7 @@ export const compactTaskLimit = 50;
171
122
  export const maxBulkTasks = 100;
172
123
  export const BoardTaskListInput = z.strictObject({
173
124
  boardId: BoardId,
174
- runId: RunRef.optional().describe("The run of this process whose tasks and columns to list. Leaving it out lists the template, the board itself."),
125
+ runId: RunRef.optional().describe("The run of a process from before goals whose tasks and columns to read, as intelligence_run_list names it. Leaving it out lists the board itself."),
175
126
  columnId: ColumnId.optional().describe("Only the tasks in this column."),
176
127
  type: ColumnType.optional().describe("Only the tasks in columns of this type. The archive column's tasks are listed only with type archive."),
177
128
  assigneeId: idSchema("user").optional().describe("Only the tasks assigned to this person."),
@@ -246,7 +197,6 @@ const NewTaskEntry = z.strictObject({
246
197
  });
247
198
  export const BoardTaskCreateInput = z.strictObject({
248
199
  boardId: BoardId,
249
- runId: RunRef.optional().describe("Create the task in this running run of the process, in one of the run's columns. Leaving it out creates it in the template. A completed run takes no task."),
250
200
  ...newTask,
251
201
  title: Title.optional().describe("The task's title, for one task. To create several, leave it out and send tasks."),
252
202
  tasks: z
@@ -299,11 +249,10 @@ export const TaskUpdateInput = z.strictObject({
299
249
  .optional()
300
250
  .describe("The editing session the browser keeps while a person stays on the task: its saves go into one version, a move always into its own. Leaving it out makes every change a version of its own, which is right for an AI."),
301
251
  });
302
- // Many tasks of one board or run changed in one call (#625, E114): only by id, each with its rev,
252
+ // Many tasks of one board changed in one call (#625, E114): only by id, each with its rev,
303
253
  // all or nothing.
304
254
  export const BoardTaskUpdateInput = z.strictObject({
305
255
  boardId: BoardId,
306
- runId: RunRef.optional().describe("The running run of the process whose tasks these are. Leaving it out changes tasks of the template, the board itself."),
307
256
  tasks: z
308
257
  .array(TaskUpdateInput)
309
258
  .min(1)
@@ -321,7 +270,8 @@ export const TaskImage = z.union([
321
270
  ]);
322
271
  export const BoardTaskItem = z.object({
323
272
  taskId: NodeId,
324
- // The run the task belongs to, null for a task of the board itself (the template of a process).
273
+ // The run of a process from before goals the task belongs to, read only (#852); null for a task
274
+ // of the board itself.
325
275
  runId: RunRef.nullable(),
326
276
  title: z.string(),
327
277
  column: TaskColumn,
@@ -360,9 +310,6 @@ export const BoardTaskList = z.object({
360
310
  // Over MCP only (#624): every column of the board (of the run, with `runId`) in order, with its
361
311
  // description, once per page.
362
312
  columns: z.array(BoardColumn).optional(),
363
- // Over MCP only, on a process without `runId` (#678): these are the template's cards, and the runs
364
- // that run now.
365
- template: TemplateNote.optional(),
366
313
  });
367
314
  // A card as the list answers it over MCP without `content` (E127, #674): what finds a card and moves
368
315
  // it on, without its text and the rest of the card.
@@ -164,8 +164,6 @@ export declare const GoalCheck: z.ZodObject<{
164
164
  credential_invalid: "credential_invalid";
165
165
  incomplete: "incomplete";
166
166
  no_right: "no_right";
167
- no_kind: "no_kind";
168
- no_assignee: "no_assignee";
169
167
  no_machine: "no_machine";
170
168
  }>;
171
169
  machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -236,8 +234,6 @@ export declare const GoalReady: z.ZodObject<{
236
234
  credential_invalid: "credential_invalid";
237
235
  incomplete: "incomplete";
238
236
  no_right: "no_right";
239
- no_kind: "no_kind";
240
- no_assignee: "no_assignee";
241
237
  no_machine: "no_machine";
242
238
  }>;
243
239
  machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -758,8 +754,6 @@ export declare const GoalDetail: z.ZodObject<{
758
754
  credential_invalid: "credential_invalid";
759
755
  incomplete: "incomplete";
760
756
  no_right: "no_right";
761
- no_kind: "no_kind";
762
- no_assignee: "no_assignee";
763
757
  no_machine: "no_machine";
764
758
  }>;
765
759
  machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -4,7 +4,7 @@ export declare const Reached: z.ZodObject<{
4
4
  name: z.ZodString;
5
5
  }, z.core.$strip>;
6
6
  export type Reached = z.infer<typeof Reached>;
7
- export declare const missingCodes: readonly ["no_role", "no_folder", "credential_invalid", "test_failed", "incomplete", "no_right", "no_kind", "no_assignee", "no_machine"];
7
+ export declare const missingCodes: readonly ["no_role", "no_folder", "credential_invalid", "test_failed", "incomplete", "no_right", "no_machine"];
8
8
  export declare const MissingCode: z.ZodEnum<{
9
9
  test_failed: "test_failed";
10
10
  no_role: "no_role";
@@ -12,8 +12,6 @@ export declare const MissingCode: z.ZodEnum<{
12
12
  credential_invalid: "credential_invalid";
13
13
  incomplete: "incomplete";
14
14
  no_right: "no_right";
15
- no_kind: "no_kind";
16
- no_assignee: "no_assignee";
17
15
  no_machine: "no_machine";
18
16
  }>;
19
17
  export type MissingCode = z.infer<typeof MissingCode>;
@@ -30,8 +28,6 @@ export declare const Missing: z.ZodObject<{
30
28
  credential_invalid: "credential_invalid";
31
29
  incomplete: "incomplete";
32
30
  no_right: "no_right";
33
- no_kind: "no_kind";
34
- no_assignee: "no_assignee";
35
31
  no_machine: "no_machine";
36
32
  }>;
37
33
  machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -5,10 +5,9 @@ import { MachineId } from "../machines/machines.js";
5
5
  import { NodeId } from "../nodes/nodes.js";
6
6
  import { CredentialId } from "../operators/operators.js";
7
7
  import { UserId } from "../users/users.js";
8
- // What is still missing for what a setting-up tool set up to work (E126, #676, #675): only the six
8
+ // What is still missing for what a setting-up tool set up to work (E126, #676, #675): only the
9
9
  // tools that set up something that runs carry it, from the same check that reading shows, never a
10
- // second. Its own file, apart from `written.ts`: `processCheck` of a board carries the same entries
11
- // (#675), and `boards.ts` must not import `written.ts`, which builds on `runs.ts`, which builds on
10
+ // second. Its own file, apart from `written.ts`, which builds on `runs.ts`, which builds on
12
11
  // `boards.ts` (trap C009).
13
12
  // Someone a write reached, or who can give what is missing, by id and the name they carry today.
14
13
  export const Reached = z.object({ userId: z.string(), name: z.string() });
@@ -18,13 +17,11 @@ export const Reached = z.object({ userId: z.string(), name: z.string() });
18
17
  // - `credential_invalid`: an Operator's credential failed its last test; the Operator pauses.
19
18
  // - `test_failed`: the test right after the setup failed, with the provider's sentence.
20
19
  // - `incomplete`: something lacks what it needs: a connection the fields its connector needs before
21
- // it can be tested, a card of a process's template a required field (#675).
20
+ // it can be tested.
22
21
  // - `no_right`: a right is missing. On a connector: no role holds a right on its tools, so nobody
23
- // uses it. On a node (#675): `userId` lacks `right` on `nodeId`, the assignee of a template card
24
- // write on its board or read on a node a link field names, a machine named in INSTRUCTIONS read on
25
- // their folder.
26
- // - `no_kind`: a card of a process's template has no card kind while its board has kinds (#675).
27
- // - `no_assignee`: the assignee of a card of a process's template is locked or gone (#675).
22
+ // uses it. On a node (#675): `userId` lacks `right` on `nodeId`, a machine named in INSTRUCTIONS
23
+ // read on their folder.
24
+ // The template check of a process (#675) and its codes `no_kind` and `no_assignee` are gone (#852).
28
25
  // - `no_machine`: a section `# @name` of INSTRUCTIONS names no machine, so no AI gets it (#675).
29
26
  export const missingCodes = [
30
27
  "no_role",
@@ -33,8 +30,6 @@ export const missingCodes = [
33
30
  "test_failed",
34
31
  "incomplete",
35
32
  "no_right",
36
- "no_kind",
37
- "no_assignee",
38
33
  "no_machine",
39
34
  ];
40
35
  export const MissingCode = z.enum(missingCodes);
@@ -77,7 +77,7 @@ export const NodeListInput = z.strictObject({
77
77
  section: NodeSection.optional().describe("List a section of the tree instead of a folder: own (what lies in your own root folder), shared (the tops of everything others let you reach) or users (every other person's root folder, only for an admin in admin mode)."),
78
78
  query: NodeQuery.optional(),
79
79
  includeHidden: Flag.optional().describe("Also list nodes whose name starts with a dot. Leaving it out hides them."),
80
- sort: NodeSort.optional().describe("The order: name (default, A to Z), updated (most recently changed first), kind, or status (the type of the column the validation ticket stands in, New read as backlog: backlog, open, progress, done, discarded, blocked, archive, then nodes without a ticket)."),
80
+ sort: NodeSort.optional().describe("The order: name (default, as the tree shows it: folders, documents, tables, boards, gadgets, files, skills, goals, each kind A to Z as in German, 2 before 10, a leading dot not counted), kind (the same), updated (most recently changed first), or status (the type of the column the validation ticket stands in, New read as backlog: backlog, open, progress, done, discarded, blocked, archive, then nodes without a ticket)."),
81
81
  foldersFirst: Flag.optional().describe("Put folders before everything else, each group in the chosen order."),
82
82
  cursor: z
83
83
  .string()
@@ -793,6 +793,7 @@ export declare const OperatorList: z.ZodObject<{
793
793
  "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
794
794
  }>;
795
795
  }, z.core.$strip>>>;
796
+ personalCredential: z.ZodOptional<z.ZodBoolean>;
796
797
  budget: z.ZodOptional<z.ZodObject<{
797
798
  limitUsd: z.ZodNullable<z.ZodNumber>;
798
799
  spentUsd: z.ZodNumber;
@@ -390,6 +390,10 @@ export const OperatorList = z.object({
390
390
  // For the personal Operators (E143): the models a new one may take, each with its provider, from
391
391
  // the credentials marked personal.
392
392
  models: z.array(z.object({ provider: OperatorProvider, model: OperatorModel })).optional(),
393
+ // Beside models (#860): whether some credential marked personal could serve a personal Operator,
394
+ // an API key or a gateway, never a subscription (E86). False says the company lacks the
395
+ // credential itself; true with no models says only the person's allowed models are empty.
396
+ personalCredential: z.boolean().optional(),
393
397
  // For one's own personal Operators (E143, #804): one's month against one's limit.
394
398
  budget: OperatorBudget.optional(),
395
399
  });
@@ -27,11 +27,6 @@ export declare const RunGetInput: z.ZodObject<{
27
27
  runId: z.ZodTemplateLiteral<`run_${string}`>;
28
28
  }, z.core.$strict>;
29
29
  export type RunGetInput = z.infer<typeof RunGetInput>;
30
- export declare const RunCompleteInput: z.ZodObject<{
31
- runId: z.ZodTemplateLiteral<`run_${string}`>;
32
- summary: z.ZodOptional<z.ZodString>;
33
- }, z.core.$strict>;
34
- export type RunCompleteInput = z.infer<typeof RunCompleteInput>;
35
30
  export declare const RunItem: z.ZodObject<{
36
31
  runId: z.ZodTemplateLiteral<`run_${string}`>;
37
32
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
@@ -65,9 +60,6 @@ export declare const RunItem: z.ZodObject<{
65
60
  }>>;
66
61
  }, z.core.$strip>>;
67
62
  summary: z.ZodNullable<z.ZodString>;
68
- rights: z.ZodObject<{
69
- complete: z.ZodBoolean;
70
- }, z.core.$strip>;
71
63
  }, z.core.$strip>;
72
64
  export type RunItem = z.infer<typeof RunItem>;
73
65
  export declare const RunList: z.ZodObject<{
@@ -104,9 +96,6 @@ export declare const RunList: z.ZodObject<{
104
96
  }>>;
105
97
  }, z.core.$strip>>;
106
98
  summary: z.ZodNullable<z.ZodString>;
107
- rights: z.ZodObject<{
108
- complete: z.ZodBoolean;
109
- }, z.core.$strip>;
110
99
  }, z.core.$strip>>;
111
100
  nextCursor: z.ZodNullable<z.ZodString>;
112
101
  }, z.core.$strip>;
@@ -212,8 +201,5 @@ export declare const RunDetail: z.ZodObject<{
212
201
  }>>;
213
202
  }, z.core.$strip>>;
214
203
  summary: z.ZodNullable<z.ZodString>;
215
- rights: z.ZodObject<{
216
- complete: z.ZodBoolean;
217
- }, z.core.$strip>;
218
204
  }, z.core.$strip>;
219
205
  export type RunDetail = z.infer<typeof RunDetail>;
package/dist/runs/runs.js CHANGED
@@ -5,9 +5,8 @@ import { idSchema } from "../ids/ids.js";
5
5
  import { Limit } from "../list-input.js";
6
6
  import { NodeId, NodePerson } from "../nodes/nodes.js";
7
7
  // Runs of a process board and of the validation from before goals (#43, Funktionen › Läufe, E42,
8
- // E45, E67, E70, E119, E139): the inputs of `intelligence_run_list`, `_get`,
9
- // `intelligence_run_complete`, and the answers. No run starts any more (#847); the ones that stand
10
- // stay readable, and an open one is still closed.
8
+ // E45, E67, E70, E119, E139): the inputs of `intelligence_run_list` and `_get`, and the answers. No
9
+ // run starts (#847) or ends (#852) any more; the ones that stand stay readable, frozen as they are.
11
10
  export const RunId = idSchema("run").describe("The run's id, `run_…`, as intelligence_run_list returned it.");
12
11
  export const runStatuses = ["running", "done", "open", "error"];
13
12
  export const RunStatus = z
@@ -27,11 +26,6 @@ export const RunListInput = z.strictObject({
27
26
  limit: Limit.optional().describe("How many runs one page holds, 1 to 100. Leaving it out gives 50."),
28
27
  });
29
28
  export const RunGetInput = z.strictObject({ runId: RunId });
30
- const Text = z.string().max(20_000);
31
- export const RunCompleteInput = z.strictObject({
32
- runId: RunId,
33
- summary: Text.optional().describe("What the run did, in a few sentences: what people read in the list of runs."),
34
- });
35
29
  export const RunItem = z.object({
36
30
  runId: RunId,
37
31
  nodeId: NodeId,
@@ -45,10 +39,6 @@ export const RunItem = z.object({
45
39
  completedAt: z.iso.datetime().nullable(),
46
40
  completedBy: NodePerson.nullable(),
47
41
  summary: z.string().nullable(),
48
- // `complete`: whether the caller may close this run with intelligence_run_complete, by the same
49
- // check the tool makes (E107): write on a process board; on the validation the holder
50
- // of validator or an admin in admin mode. The UI shows "Lauf beenden" by it.
51
- rights: z.object({ complete: z.boolean() }),
52
42
  });
53
43
  export const RunList = z.object({
54
44
  items: z.array(RunItem),
package/dist/sdk.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { ActionAbort, ActionAbortReason, ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionProcess, ActionRow, ActionRun, ActionRunHint, ActionRunTask, ActionSection, ActionTask, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
1
+ export { ActionAbort, ActionAbortReason, ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionRow, ActionRunTask, ActionSection, ActionTask, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
2
2
  export { adminModeHeader, adminModeOn } from "./admin-mode.js";
3
3
  export { App, AppId, AppList, AppListInput, AppRevoked, AppRevokeInput, OwnAppListQuery, OwnSessionListQuery, Session, SessionId, SessionList, SessionListInput, SessionRevokeInput, SessionsRevoked, } from "./apps/apps.js";
4
4
  export { NodeArchived, NodeArchiveInput, NodePurged, NodePurgeInput, NodeRestoreInput, } from "./archive/archive.js";
5
5
  export { PasskeyDeleteInput, SetPasswordInput, SignUpInput, } from "./auth/auth.js";
6
6
  export { AuthorizationRequest, AuthorizationResponse, Identity, Rules, } from "./authorization/authorization.js";
7
- export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, BoardKind, BoardLabel, BoardTaskBrief, BoardTaskBriefList, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, compactTaskLimit, LabelId, maxBulkTasks, ProcessCheck, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskUpdateInput, TemplateNote, } from "./boards/boards.js";
7
+ export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, BoardKind, BoardLabel, BoardTaskBrief, BoardTaskBriefList, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, compactTaskLimit, LabelId, maxBulkTasks, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskUpdateInput, } from "./boards/boards.js";
8
8
  export { CardField, CardFieldId, CardFieldInput, CardFieldOption, CardFieldType, CardFieldValue, CardKind, CardKindIcon, CardKindId, CardKindInput, CardOptionId, ChecklistItem, cardFieldTypes, cardKindIcons, emptyValue, TaskFields, TaskKind, } from "./card-kinds/card-kinds.js";
9
9
  export { ColumnId, ColumnType, columnTypes, TaskColumn } from "./columns/columns.js";
10
10
  export { Connection, ConnectionCreateInput, ConnectionCredential, ConnectionDetail, ConnectionGetInput, ConnectionId, ConnectionList, ConnectionListInput, ConnectionRevokeInput, ConnectionState, ConnectionTested, ConnectionTestInput, ConnectionTestResult, ConnectionUpdateInput, } from "./connections/connections.js";
@@ -37,7 +37,7 @@ export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, Page
37
37
  export { IdempotencyKey, Rev } from "./primitives/primitives.js";
38
38
  export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
39
39
  export { GrantChange, PermissionsResponse, RightInCode, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, } from "./roles/roles.js";
40
- export { RunCompleteInput, RunDetail, RunGetInput, RunId, RunItem, RunList, RunListInput, RunStatus, runStatuses, } from "./runs/runs.js";
40
+ export { RunDetail, RunGetInput, RunId, RunItem, RunList, RunListInput, RunStatus, runStatuses, } from "./runs/runs.js";
41
41
  export { RuntimeConfig } from "./runtime-config.js";
42
42
  export { rhythms, Schedule, WhileOpen, weekdays, weeksOfMonth, whileOpenModes, } from "./schedule/schedule.js";
43
43
  export { NodeSecret, NodeSecretCreateInput, NodeSecretDetail, NodeSecretGetInput, NodeSecretRemoveInput, NodeSecretUpdateInput, NodeUnlocked, NodeUnlockInput, unlockMinutes, } from "./secrets/secrets.js";
@@ -47,6 +47,7 @@ export { SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile,
47
47
  export { SignInProviders, Sso, SsoId, SsoList, SsoListInput, SsoRemoveInput, SsoSource, SsoUpdateInput, ssoIds, } from "./sso/sso.js";
48
48
  export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
49
49
  export { type Actor, defineTool, type Permission, type Tool, type ToolAnnotations, type ToolContext, type ToolInput, type ToolSource, } from "./tool.js";
50
+ export { compareTreeNames, treeKindOrder, treeKindRank, } from "./tree-order/tree-order.js";
50
51
  export { IntelligenceUserGetInput, IntelligenceUserUpdateInput, NotifyMode, notifyModes, UserSettings, } from "./user-settings/user-settings.js";
51
52
  export { MachineFacts, MachineKeyFacts, MachineKind, MessageMachine, OperatorProvider, OwnRoleList, SignInMethod, User, UserDetail, UserDisableInput, UserEnableInput, UserGetInput, UserId, UserKind, UserList, UserListInput, UserListItem, UserStatus, UserTestInput, UserTestResult, UserUpdateInput, } from "./users/users.js";
52
53
  export { TicketSubject, TicketSubjectRef, ValidationBoardId, validationBoardId, validationGoalId, } from "./validation/validation.js";
package/dist/sdk.js CHANGED
@@ -1,13 +1,13 @@
1
1
  // The contract between UI, backends and outside services, published as `@anchrd/colab-sdk`. The
2
2
  // package exports only this file, so everything public is named here once.
3
3
  // biome-ignore lint/performance/noBarrelFile: this file IS the entry point of the package.
4
- export { ActionAbort, ActionAbortReason, ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionProcess, ActionRow, ActionRun, ActionRunHint, ActionRunTask, ActionSection, ActionTask, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
4
+ export { ActionAbort, ActionAbortReason, ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionRow, ActionRunTask, ActionSection, ActionTask, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
5
5
  export { adminModeHeader, adminModeOn } from "./admin-mode.js";
6
6
  export { App, AppId, AppList, AppListInput, AppRevoked, AppRevokeInput, OwnAppListQuery, OwnSessionListQuery, Session, SessionId, SessionList, SessionListInput, SessionRevokeInput, SessionsRevoked, } from "./apps/apps.js";
7
7
  export { NodeArchived, NodeArchiveInput, NodePurged, NodePurgeInput, NodeRestoreInput, } from "./archive/archive.js";
8
8
  export { PasskeyDeleteInput, SetPasswordInput, SignUpInput, } from "./auth/auth.js";
9
9
  export { AuthorizationRequest, AuthorizationResponse, Identity, Rules, } from "./authorization/authorization.js";
10
- export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, BoardKind, BoardLabel, BoardTaskBrief, BoardTaskBriefList, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, compactTaskLimit, LabelId, maxBulkTasks, ProcessCheck, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskUpdateInput, TemplateNote, } from "./boards/boards.js";
10
+ export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, BoardKind, BoardLabel, BoardTaskBrief, BoardTaskBriefList, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, compactTaskLimit, LabelId, maxBulkTasks, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskUpdateInput, } from "./boards/boards.js";
11
11
  export { CardField, CardFieldId, CardFieldInput, CardFieldOption, CardFieldType, CardFieldValue, CardKind, CardKindIcon, CardKindId, CardKindInput, CardOptionId, ChecklistItem, cardFieldTypes, cardKindIcons, emptyValue, TaskFields, TaskKind, } from "./card-kinds/card-kinds.js";
12
12
  export { ColumnId, ColumnType, columnTypes, TaskColumn } from "./columns/columns.js";
13
13
  export { Connection, ConnectionCreateInput, ConnectionCredential, ConnectionDetail, ConnectionGetInput, ConnectionId, ConnectionList, ConnectionListInput, ConnectionRevokeInput, ConnectionState, ConnectionTested, ConnectionTestInput, ConnectionTestResult, ConnectionUpdateInput, } from "./connections/connections.js";
@@ -40,7 +40,7 @@ export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, Page
40
40
  export { IdempotencyKey, Rev } from "./primitives/primitives.js";
41
41
  export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
42
42
  export { GrantChange, PermissionsResponse, RightInCode, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, } from "./roles/roles.js";
43
- export { RunCompleteInput, RunDetail, RunGetInput, RunId, RunItem, RunList, RunListInput, RunStatus, runStatuses, } from "./runs/runs.js";
43
+ export { RunDetail, RunGetInput, RunId, RunItem, RunList, RunListInput, RunStatus, runStatuses, } from "./runs/runs.js";
44
44
  export { RuntimeConfig } from "./runtime-config.js";
45
45
  export { rhythms, Schedule, WhileOpen, weekdays, weeksOfMonth, whileOpenModes, } from "./schedule/schedule.js";
46
46
  export { NodeSecret, NodeSecretCreateInput, NodeSecretDetail, NodeSecretGetInput, NodeSecretRemoveInput, NodeSecretUpdateInput, NodeUnlocked, NodeUnlockInput, unlockMinutes, } from "./secrets/secrets.js";
@@ -50,6 +50,7 @@ export { SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile,
50
50
  export { SignInProviders, Sso, SsoId, SsoList, SsoListInput, SsoRemoveInput, SsoSource, SsoUpdateInput, ssoIds, } from "./sso/sso.js";
51
51
  export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
52
52
  export { defineTool, } from "./tool.js";
53
+ export { compareTreeNames, treeKindOrder, treeKindRank, } from "./tree-order/tree-order.js";
53
54
  export { IntelligenceUserGetInput, IntelligenceUserUpdateInput, NotifyMode, notifyModes, UserSettings, } from "./user-settings/user-settings.js";
54
55
  export { MachineFacts, MachineKeyFacts, MachineKind, MessageMachine, OperatorProvider, OwnRoleList, SignInMethod, User, UserDetail, UserDisableInput, UserEnableInput, UserGetInput, UserId, UserKind, UserList, UserListInput, UserListItem, UserStatus, UserTestInput, UserTestResult, UserUpdateInput, } from "./users/users.js";
55
56
  export { TicketSubject, TicketSubjectRef, ValidationBoardId, validationBoardId, validationGoalId, } from "./validation/validation.js";
@@ -0,0 +1,4 @@
1
+ import type { NodeKind } from "../nodes/nodes.js";
2
+ export declare const treeKindOrder: readonly ["folder", "document", "table", "board", "gadget", "file", "skill", "goal"];
3
+ export declare function treeKindRank(kind: NodeKind): number;
4
+ export declare function compareTreeNames(a: string, b: string): number;
@@ -0,0 +1,24 @@
1
+ // The order of the tree (Funktionen › Seitenbaum, #858): by kind in this order, A to Z within a kind.
2
+ // The one place for it: the tree in the UI and `intelligence_node_list` with `sort: name` read it, so
3
+ // an AI sees a folder the way a person does. A task never stands in the tree (E67).
4
+ export const treeKindOrder = [
5
+ "folder",
6
+ "document",
7
+ "table",
8
+ "board",
9
+ "gadget",
10
+ "file",
11
+ "skill",
12
+ "goal",
13
+ ];
14
+ // As in German, whatever the language of the UI: case and accents do not count, "2" before "10".
15
+ const collator = new Intl.Collator("de", { sensitivity: "base", numeric: true });
16
+ // A kind outside the list (a task) goes after all of them.
17
+ export function treeKindRank(kind) {
18
+ const rank = treeKindOrder.indexOf(kind);
19
+ return rank === -1 ? treeKindOrder.length : rank;
20
+ }
21
+ // A hidden node's leading dot does not count: `.Intern` stands beside `Intern`.
22
+ export function compareTreeNames(a, b) {
23
+ return collator.compare(a.replace(/^\./, ""), b.replace(/^\./, ""));
24
+ }
@@ -175,8 +175,6 @@ export declare const Written: z.ZodObject<{
175
175
  credential_invalid: "credential_invalid";
176
176
  incomplete: "incomplete";
177
177
  no_right: "no_right";
178
- no_kind: "no_kind";
179
- no_assignee: "no_assignee";
180
178
  no_machine: "no_machine";
181
179
  }>;
182
180
  machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anchrd/colab-sdk",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
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",