@anchrd/colab-sdk 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/actions.d.ts +56 -2
- package/dist/actions/actions.js +36 -6
- package/dist/boards/boards.d.ts +242 -20
- package/dist/boards/boards.js +51 -18
- package/dist/card-kinds/card-kinds.d.ts +5 -5
- package/dist/documents/documents.d.ts +59 -2
- package/dist/documents/documents.js +18 -4
- package/dist/error/error.d.ts +51 -4
- package/dist/error/error.js +143 -8
- package/dist/events/events.d.ts +15 -0
- package/dist/events/events.js +10 -0
- package/dist/excerpt/excerpt.d.ts +16 -0
- package/dist/excerpt/excerpt.js +33 -0
- package/dist/files/files.d.ts +6 -0
- package/dist/files/files.js +5 -1
- package/dist/instructions/instructions.d.ts +36 -0
- package/dist/instructions/instructions.js +29 -0
- package/dist/missing/missing.d.ts +56 -0
- package/dist/missing/missing.js +66 -0
- package/dist/nodes/nodes.d.ts +21 -5
- package/dist/nodes/nodes.js +10 -7
- package/dist/operators/operators.d.ts +13 -3
- package/dist/operators/operators.js +19 -4
- package/dist/primitives/primitives.js +1 -1
- package/dist/runs/runs.d.ts +1 -1
- package/dist/sdk.d.ts +12 -9
- package/dist/sdk.js +12 -9
- package/dist/sso/sso.js +3 -2
- package/dist/tables/tables.d.ts +32 -0
- package/dist/tables/tables.js +12 -1
- package/dist/tool.d.ts +3 -0
- package/dist/versions/versions.d.ts +102 -0
- package/dist/versions/versions.js +14 -0
- package/dist/written/written.d.ts +206 -0
- package/dist/written/written.js +90 -0
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const Reached: z.ZodObject<{
|
|
3
|
+
userId: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
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"];
|
|
8
|
+
export declare const MissingCode: z.ZodEnum<{
|
|
9
|
+
test_failed: "test_failed";
|
|
10
|
+
no_role: "no_role";
|
|
11
|
+
no_folder: "no_folder";
|
|
12
|
+
credential_invalid: "credential_invalid";
|
|
13
|
+
incomplete: "incomplete";
|
|
14
|
+
no_right: "no_right";
|
|
15
|
+
no_kind: "no_kind";
|
|
16
|
+
no_assignee: "no_assignee";
|
|
17
|
+
no_machine: "no_machine";
|
|
18
|
+
}>;
|
|
19
|
+
export type MissingCode = z.infer<typeof MissingCode>;
|
|
20
|
+
export declare const MissingCall: z.ZodObject<{
|
|
21
|
+
tool: z.ZodString;
|
|
22
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type MissingCall = z.infer<typeof MissingCall>;
|
|
25
|
+
export declare const Missing: z.ZodObject<{
|
|
26
|
+
code: z.ZodEnum<{
|
|
27
|
+
test_failed: "test_failed";
|
|
28
|
+
no_role: "no_role";
|
|
29
|
+
no_folder: "no_folder";
|
|
30
|
+
credential_invalid: "credential_invalid";
|
|
31
|
+
incomplete: "incomplete";
|
|
32
|
+
no_right: "no_right";
|
|
33
|
+
no_kind: "no_kind";
|
|
34
|
+
no_assignee: "no_assignee";
|
|
35
|
+
no_machine: "no_machine";
|
|
36
|
+
}>;
|
|
37
|
+
machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
38
|
+
credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
|
|
39
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
connectionId: z.ZodOptional<z.ZodTemplateLiteral<`connection_${string}`>>;
|
|
41
|
+
taskId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
42
|
+
documentId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
43
|
+
userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
44
|
+
nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
45
|
+
message: z.ZodString;
|
|
46
|
+
right: z.ZodOptional<z.ZodString>;
|
|
47
|
+
givenBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
|
+
userId: z.ZodString;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
call: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
tool: z.ZodString;
|
|
53
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export type Missing = z.infer<typeof Missing>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ConnectionId } from "../connections/connections.js";
|
|
3
|
+
import { ConnectorId } from "../connectors/connectors.js";
|
|
4
|
+
import { MachineId } from "../machines/machines.js";
|
|
5
|
+
import { NodeId } from "../nodes/nodes.js";
|
|
6
|
+
import { CredentialId } from "../operators/operators.js";
|
|
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
|
|
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
|
|
12
|
+
// `boards.ts` (trap C009).
|
|
13
|
+
// Someone a write reached, or who can give what is missing, by id and the name they carry today.
|
|
14
|
+
export const Reached = z.object({ userId: z.string(), name: z.string() });
|
|
15
|
+
// A fixed code each:
|
|
16
|
+
// - `no_role`: an Operator holds no role and starts no run.
|
|
17
|
+
// - `no_folder`: nothing in Shared is shared with an Operator; it reads only its own root folder.
|
|
18
|
+
// - `credential_invalid`: an Operator's credential failed its last test; the Operator pauses.
|
|
19
|
+
// - `test_failed`: the test right after the setup failed, with the provider's sentence.
|
|
20
|
+
// - `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).
|
|
22
|
+
// - `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).
|
|
28
|
+
// - `no_machine`: a section `# @name` of INSTRUCTIONS names no machine, so no AI gets it (#675).
|
|
29
|
+
export const missingCodes = [
|
|
30
|
+
"no_role",
|
|
31
|
+
"no_folder",
|
|
32
|
+
"credential_invalid",
|
|
33
|
+
"test_failed",
|
|
34
|
+
"incomplete",
|
|
35
|
+
"no_right",
|
|
36
|
+
"no_kind",
|
|
37
|
+
"no_assignee",
|
|
38
|
+
"no_machine",
|
|
39
|
+
];
|
|
40
|
+
export const MissingCode = z.enum(missingCodes);
|
|
41
|
+
// A call that gives what is missing, ready to send as it stands.
|
|
42
|
+
export const MissingCall = z.object({
|
|
43
|
+
tool: z.string(),
|
|
44
|
+
arguments: z.record(z.string(), z.unknown()),
|
|
45
|
+
});
|
|
46
|
+
export const Missing = z.object({
|
|
47
|
+
code: MissingCode,
|
|
48
|
+
// What the entry is about, under its resource's name like in `changed`.
|
|
49
|
+
machineId: MachineId.optional(),
|
|
50
|
+
credentialId: CredentialId.optional(),
|
|
51
|
+
connectorId: ConnectorId.optional(),
|
|
52
|
+
connectionId: ConnectionId.optional(),
|
|
53
|
+
// A card of a process's template, and an INSTRUCTIONS document (#675).
|
|
54
|
+
taskId: NodeId.optional(),
|
|
55
|
+
documentId: NodeId.optional(),
|
|
56
|
+
// A missing right on a node (#675): who lacks it, and the node it is missing on.
|
|
57
|
+
userId: UserId.optional(),
|
|
58
|
+
nodeId: NodeId.optional(),
|
|
59
|
+
message: z.string(),
|
|
60
|
+
// A missing right (E126): which one, and who can give it. `call` only when the caller has that
|
|
61
|
+
// tool itself; otherwise `message` names the way, an @-mention of one of them (E124). A call
|
|
62
|
+
// proposed without the tool ended in "Tool not found" (#613).
|
|
63
|
+
right: z.string().optional(),
|
|
64
|
+
givenBy: z.array(Reached).optional(),
|
|
65
|
+
call: MissingCall.optional(),
|
|
66
|
+
});
|
package/dist/nodes/nodes.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export declare const NodeListInput: z.ZodObject<{
|
|
|
63
63
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
64
64
|
archived: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
65
65
|
nodeIds: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodTemplateLiteral<`node_${string}`>>, unknown>>;
|
|
66
|
+
known: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>, unknown>>;
|
|
66
67
|
}, z.core.$strict>;
|
|
67
68
|
export type NodeListInput = z.infer<typeof NodeListInput>;
|
|
68
69
|
export declare const NodePerson: z.ZodObject<{
|
|
@@ -224,14 +225,18 @@ export declare const NodeList: z.ZodObject<{
|
|
|
224
225
|
}, z.core.$strip>>;
|
|
225
226
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
226
227
|
rootId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
227
|
-
instructions: z.ZodOptional<z.ZodObject<{
|
|
228
|
+
instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
228
229
|
chain: z.ZodArray<z.ZodObject<{
|
|
229
230
|
path: z.ZodString;
|
|
230
231
|
status: z.ZodNullable<z.ZodString>;
|
|
231
232
|
markdown: z.ZodString;
|
|
232
233
|
}, z.core.$strip>>;
|
|
233
234
|
hint: z.ZodOptional<z.ZodString>;
|
|
234
|
-
|
|
235
|
+
digest: z.ZodString;
|
|
236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
237
|
+
digest: z.ZodString;
|
|
238
|
+
known: z.ZodLiteral<true>;
|
|
239
|
+
}, z.core.$strip>]>>;
|
|
235
240
|
}, z.core.$strip>;
|
|
236
241
|
export type NodeList = z.infer<typeof NodeList>;
|
|
237
242
|
export declare const NodeHitFoundIn: z.ZodObject<{
|
|
@@ -401,6 +406,7 @@ export declare const SearchIndexState: z.ZodObject<{
|
|
|
401
406
|
export type SearchIndexState = z.infer<typeof SearchIndexState>;
|
|
402
407
|
export declare const NodeGetInput: z.ZodObject<{
|
|
403
408
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
409
|
+
known: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>, unknown>>;
|
|
404
410
|
}, z.core.$strict>;
|
|
405
411
|
export type NodeGetInput = z.infer<typeof NodeGetInput>;
|
|
406
412
|
export declare const NodeValidation: z.ZodObject<{
|
|
@@ -530,15 +536,25 @@ export declare const NodeDetail: z.ZodObject<{
|
|
|
530
536
|
}, z.core.$strip>;
|
|
531
537
|
content: z.ZodString;
|
|
532
538
|
}, z.core.$strip>>;
|
|
533
|
-
instructions: z.ZodOptional<z.ZodObject<{
|
|
539
|
+
instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
534
540
|
chain: z.ZodArray<z.ZodObject<{
|
|
535
541
|
path: z.ZodString;
|
|
536
542
|
status: z.ZodNullable<z.ZodString>;
|
|
537
543
|
markdown: z.ZodString;
|
|
538
544
|
}, z.core.$strip>>;
|
|
539
545
|
hint: z.ZodOptional<z.ZodString>;
|
|
540
|
-
|
|
541
|
-
|
|
546
|
+
digest: z.ZodString;
|
|
547
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
548
|
+
digest: z.ZodString;
|
|
549
|
+
known: z.ZodLiteral<true>;
|
|
550
|
+
}, z.core.$strip>]>>;
|
|
551
|
+
instruction: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
552
|
+
digest: z.ZodString;
|
|
553
|
+
markdown: z.ZodString;
|
|
554
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
555
|
+
digest: z.ZodString;
|
|
556
|
+
known: z.ZodLiteral<true>;
|
|
557
|
+
}, z.core.$strip>]>>>;
|
|
542
558
|
}, z.core.$strip>;
|
|
543
559
|
export type NodeDetail = z.infer<typeof NodeDetail>;
|
|
544
560
|
export declare const NodeUpdateInput: z.ZodObject<{
|
package/dist/nodes/nodes.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { ColumnType, TaskColumn } from "../columns/columns.js";
|
|
3
3
|
import { idSchema } from "../ids/ids.js";
|
|
4
|
-
import {
|
|
4
|
+
import { InstructionRead, InstructionsRead, Known } from "../instructions/instructions.js";
|
|
5
5
|
import { Flag, Limit as PageSize } from "../list-input.js";
|
|
6
6
|
import { IdempotencyKey, Rev } from "../primitives/primitives.js";
|
|
7
7
|
import { MessageMachine } from "../users/users.js";
|
|
@@ -87,6 +87,7 @@ export const NodeListInput = z.strictObject({
|
|
|
87
87
|
.preprocess((value) => (typeof value === "string" ? value.split(",") : value), z.array(NodeId).min(1).max(100))
|
|
88
88
|
.optional()
|
|
89
89
|
.describe("Name these nodes, 1 to 100, for links and images in a text: the answer holds only those you can read, in the order given; one you cannot read or that does not exist is left out without a note."),
|
|
90
|
+
known: Known.optional(),
|
|
90
91
|
});
|
|
91
92
|
// A person behind a `user_…` id, as `access` names them. A deleted account has no name (null).
|
|
92
93
|
export const NodePerson = z.object({
|
|
@@ -148,8 +149,9 @@ export const NodeList = z.object({
|
|
|
148
149
|
// Only with section own and not archived (#52): the caller's root folder, the parent of what is
|
|
149
150
|
// listed and the folder something new in Own is created in.
|
|
150
151
|
rootId: NodeId.optional(),
|
|
151
|
-
// Over MCP only, with parentId: the INSTRUCTIONS of that folder (#39)
|
|
152
|
-
|
|
152
|
+
// Over MCP only, with parentId: the INSTRUCTIONS of that folder (#39), the reference when known
|
|
153
|
+
// (E123).
|
|
154
|
+
instructions: InstructionsRead.optional(),
|
|
153
155
|
});
|
|
154
156
|
// Where a hit was found (#386), told before its passage: in its name (`title`), its text (`text`),
|
|
155
157
|
// a column of a table (`column`, `label` the column's name), a page of a file (`page`, `label` the
|
|
@@ -211,7 +213,7 @@ export const SearchIndexState = z.object({
|
|
|
211
213
|
})
|
|
212
214
|
.nullable(),
|
|
213
215
|
});
|
|
214
|
-
export const NodeGetInput = z.strictObject({ nodeId: NodeId });
|
|
216
|
+
export const NodeGetInput = z.strictObject({ nodeId: NodeId, known: Known.optional() });
|
|
215
217
|
// A document's, table's or file's validation (#47, Seiten › Validierung): where its ticket stands.
|
|
216
218
|
export const NodeValidation = z.object({
|
|
217
219
|
ticketId: NodeId,
|
|
@@ -256,10 +258,11 @@ export const NodeDetail = z.object({
|
|
|
256
258
|
// Only for a document, table or file with a ticket (#47); null for every other node.
|
|
257
259
|
validation: NodeValidation.nullable(),
|
|
258
260
|
// Over MCP only: the INSTRUCTIONS of the node's folder, the node itself for a folder (#39).
|
|
259
|
-
instructions:
|
|
261
|
+
instructions: InstructionsRead.optional(),
|
|
260
262
|
// Over MCP only, for a board and a task (E87, #354): the board's own
|
|
261
|
-
// instruction, a task's board's (its run's copy for a run's task); null without one.
|
|
262
|
-
|
|
263
|
+
// instruction, a task's board's (its run's copy for a run's task); null without one. Both only
|
|
264
|
+
// as the reference when the caller sent their digest under `known` (E123, #677).
|
|
265
|
+
instruction: InstructionRead.optional(),
|
|
263
266
|
// Only on a secret document or table (#357, E94): the password's id (for its settings), whether
|
|
264
267
|
// its content is withheld from this caller, and until when this browser session holds it unlocked
|
|
265
268
|
// (null when it does not; an admin in admin mode reads it without).
|
|
@@ -280,9 +280,9 @@ export declare const operatorDefaults: {
|
|
|
280
280
|
};
|
|
281
281
|
};
|
|
282
282
|
export declare const OperatorState: z.ZodEnum<{
|
|
283
|
+
no_role: "no_role";
|
|
283
284
|
ready: "ready";
|
|
284
285
|
paused: "paused";
|
|
285
|
-
no_role: "no_role";
|
|
286
286
|
}>;
|
|
287
287
|
export type OperatorState = z.infer<typeof OperatorState>;
|
|
288
288
|
export declare const PauseReason: z.ZodEnum<{
|
|
@@ -368,6 +368,7 @@ export declare const OperatorMachineCreateInput: z.ZodObject<{
|
|
|
368
368
|
export type OperatorMachineCreateInput = z.infer<typeof OperatorMachineCreateInput>;
|
|
369
369
|
export declare const OperatorMachineUpdateInput: z.ZodObject<{
|
|
370
370
|
machineId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
371
|
+
rev: z.ZodNumber;
|
|
371
372
|
credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
|
|
372
373
|
model: z.ZodOptional<z.ZodEnum<{
|
|
373
374
|
opus: "opus";
|
|
@@ -502,9 +503,9 @@ export declare const Operator: z.ZodObject<{
|
|
|
502
503
|
maxRunsPerDay: z.ZodInt;
|
|
503
504
|
}, z.core.$strict>;
|
|
504
505
|
state: z.ZodEnum<{
|
|
506
|
+
no_role: "no_role";
|
|
505
507
|
ready: "ready";
|
|
506
508
|
paused: "paused";
|
|
507
|
-
no_role: "no_role";
|
|
508
509
|
}>;
|
|
509
510
|
pausedReason: z.ZodNullable<z.ZodEnum<{
|
|
510
511
|
credential: "credential";
|
|
@@ -518,6 +519,7 @@ export declare const Operator: z.ZodObject<{
|
|
|
518
519
|
startedAt: z.ZodISODateTime;
|
|
519
520
|
}, z.core.$strip>>;
|
|
520
521
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
522
|
+
rev: z.ZodNumber;
|
|
521
523
|
createdAt: z.ZodISODateTime;
|
|
522
524
|
createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
523
525
|
updatedAt: z.ZodISODateTime;
|
|
@@ -588,9 +590,9 @@ export declare const OperatorList: z.ZodObject<{
|
|
|
588
590
|
maxRunsPerDay: z.ZodInt;
|
|
589
591
|
}, z.core.$strict>;
|
|
590
592
|
state: z.ZodEnum<{
|
|
593
|
+
no_role: "no_role";
|
|
591
594
|
ready: "ready";
|
|
592
595
|
paused: "paused";
|
|
593
|
-
no_role: "no_role";
|
|
594
596
|
}>;
|
|
595
597
|
pausedReason: z.ZodNullable<z.ZodEnum<{
|
|
596
598
|
credential: "credential";
|
|
@@ -604,6 +606,7 @@ export declare const OperatorList: z.ZodObject<{
|
|
|
604
606
|
startedAt: z.ZodISODateTime;
|
|
605
607
|
}, z.core.$strip>>;
|
|
606
608
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
609
|
+
rev: z.ZodNumber;
|
|
607
610
|
createdAt: z.ZodISODateTime;
|
|
608
611
|
createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
609
612
|
updatedAt: z.ZodISODateTime;
|
|
@@ -628,6 +631,7 @@ export declare const OperatorRunReason: z.ZodEnum<{
|
|
|
628
631
|
timeout: "timeout";
|
|
629
632
|
crash: "crash";
|
|
630
633
|
noresult: "noresult";
|
|
634
|
+
unauthorized: "unauthorized";
|
|
631
635
|
}>;
|
|
632
636
|
export type OperatorRunReason = z.infer<typeof OperatorRunReason>;
|
|
633
637
|
export declare const OperatorRunTrigger: z.ZodEnum<{
|
|
@@ -659,6 +663,8 @@ export declare const OperatorRunAgents: z.ZodObject<{
|
|
|
659
663
|
running: z.ZodInt;
|
|
660
664
|
}, z.core.$strip>;
|
|
661
665
|
export type OperatorRunAgents = z.infer<typeof OperatorRunAgents>;
|
|
666
|
+
export declare const runSummaryChars = 300;
|
|
667
|
+
export declare const compactRunLimit = 20;
|
|
662
668
|
export declare const OperatorRun: z.ZodObject<{
|
|
663
669
|
trigger: z.ZodEnum<{
|
|
664
670
|
schedule: "schedule";
|
|
@@ -679,9 +685,11 @@ export declare const OperatorRun: z.ZodObject<{
|
|
|
679
685
|
timeout: "timeout";
|
|
680
686
|
crash: "crash";
|
|
681
687
|
noresult: "noresult";
|
|
688
|
+
unauthorized: "unauthorized";
|
|
682
689
|
}>>;
|
|
683
690
|
detail: z.ZodNullable<z.ZodString>;
|
|
684
691
|
summary: z.ZodNullable<z.ZodString>;
|
|
692
|
+
summaryLength: z.ZodOptional<z.ZodInt>;
|
|
685
693
|
touched: z.ZodObject<{
|
|
686
694
|
processes: z.ZodArray<z.ZodString>;
|
|
687
695
|
connectors: z.ZodArray<z.ZodString>;
|
|
@@ -895,9 +903,11 @@ export declare const OperatorRunList: z.ZodObject<{
|
|
|
895
903
|
timeout: "timeout";
|
|
896
904
|
crash: "crash";
|
|
897
905
|
noresult: "noresult";
|
|
906
|
+
unauthorized: "unauthorized";
|
|
898
907
|
}>>;
|
|
899
908
|
detail: z.ZodNullable<z.ZodString>;
|
|
900
909
|
summary: z.ZodNullable<z.ZodString>;
|
|
910
|
+
summaryLength: z.ZodOptional<z.ZodInt>;
|
|
901
911
|
touched: z.ZodObject<{
|
|
902
912
|
processes: z.ZodArray<z.ZodString>;
|
|
903
913
|
connectors: z.ZodArray<z.ZodString>;
|
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { idSchema } from "../ids/ids.js";
|
|
3
3
|
import { Limit } from "../list-input.js";
|
|
4
4
|
import { MachineId } from "../machines/machines.js";
|
|
5
|
+
import { Rev } from "../primitives/primitives.js";
|
|
5
6
|
import { RoleId } from "../roles/roles.js";
|
|
6
7
|
import { Schedule } from "../schedule/schedule.js";
|
|
7
8
|
import { OperatorProvider, UserId } from "../users/users.js";
|
|
@@ -252,9 +253,11 @@ export const OperatorMachineCreateInput = z.strictObject({
|
|
|
252
253
|
limits: OperatorLimits.partial().optional(),
|
|
253
254
|
});
|
|
254
255
|
// Every field optional; `responsibleId` hands the machine to another person in `access` (E76).
|
|
256
|
+
// `rev` is the state the change is based on (E135), as for a node (E70).
|
|
255
257
|
export const OperatorMachineUpdateInput = z
|
|
256
258
|
.strictObject({
|
|
257
259
|
machineId: MachineId,
|
|
260
|
+
rev: Rev.describe("The revision of the Operator this change is based on, as the last read returned it. If someone saved it in between, the call answers conflict, changes nothing and names under current what stands now: decide, and send it again with that rev."),
|
|
258
261
|
credentialId: CredentialId.optional(),
|
|
259
262
|
model: OperatorModel.optional(),
|
|
260
263
|
subagents: Subagents.optional(),
|
|
@@ -262,7 +265,7 @@ export const OperatorMachineUpdateInput = z
|
|
|
262
265
|
limits: OperatorLimits.partial().optional(),
|
|
263
266
|
responsibleId: UserId.optional(),
|
|
264
267
|
})
|
|
265
|
-
.refine((input) => Object.keys(input).some((field) => field !== "machineId"), {
|
|
268
|
+
.refine((input) => Object.keys(input).some((field) => field !== "machineId" && field !== "rev"), {
|
|
266
269
|
message: "Name a field to change.",
|
|
267
270
|
});
|
|
268
271
|
// Pause and resume by hand. Resuming lifts a pause for the daily limit or failures too.
|
|
@@ -287,6 +290,8 @@ export const Operator = z.object({
|
|
|
287
290
|
// the run it started; null while none runs.
|
|
288
291
|
running: z.object({ runId: idSchema("run"), startedAt: z.iso.datetime() }).nullable(),
|
|
289
292
|
archivedAt: z.iso.datetime().nullable(),
|
|
293
|
+
// The state a save names (E135): `operator_machine_update` takes it and counts it up.
|
|
294
|
+
rev: z.number().int(),
|
|
290
295
|
createdAt: z.iso.datetime(),
|
|
291
296
|
createdBy: UserId.nullable(),
|
|
292
297
|
updatedAt: z.iso.datetime(),
|
|
@@ -306,7 +311,9 @@ export const OperatorRunStatus = z.enum(["running", "completed", "failed", "stop
|
|
|
306
311
|
// overloaded (`provider`), the longest run was reached (`timeout`), Claude Code crashed or ended with
|
|
307
312
|
// an error (`crash`), it ended without its closing message (`noresult`), the package itself broke
|
|
308
313
|
// (`error`), or the provider refused the credential (`credential`: it is marked invalid and its
|
|
309
|
-
// Operators pause; no failure in a row is counted and no run follows).
|
|
314
|
+
// Operators pause; no failure in a row is counted and no run follows). `unauthorized` (#607): the
|
|
315
|
+
// Operator was locked or deleted during the run and may no longer act; like `credential` no failure
|
|
316
|
+
// in a row and no retry.
|
|
310
317
|
export const OperatorRunReason = z.enum([
|
|
311
318
|
"container",
|
|
312
319
|
"provider",
|
|
@@ -315,6 +322,7 @@ export const OperatorRunReason = z.enum([
|
|
|
315
322
|
"noresult",
|
|
316
323
|
"error",
|
|
317
324
|
"credential",
|
|
325
|
+
"unauthorized",
|
|
318
326
|
]);
|
|
319
327
|
// What woke it: a change after the quiet minutes, a fixed time, or the retry after a failure.
|
|
320
328
|
export const OperatorRunTrigger = z.enum(["change", "schedule", "retry"]);
|
|
@@ -347,6 +355,10 @@ const RunMachine = {
|
|
|
347
355
|
machineName: z.string(),
|
|
348
356
|
machineArchivedAt: z.iso.datetime().nullable(),
|
|
349
357
|
};
|
|
358
|
+
// Over MCP the list of runs is compact (E127, #674): each summary at most this many characters, and
|
|
359
|
+
// a page without `limit` this many runs. The protocol page reads every summary whole, 50 a page.
|
|
360
|
+
export const runSummaryChars = 300;
|
|
361
|
+
export const compactRunLimit = 20;
|
|
350
362
|
export const OperatorRun = z.object({
|
|
351
363
|
runId: OperatorRunId,
|
|
352
364
|
...RunMachine,
|
|
@@ -355,8 +367,11 @@ export const OperatorRun = z.object({
|
|
|
355
367
|
reason: OperatorRunReason.nullable(),
|
|
356
368
|
// What the runner said about a failure, never a credential's value.
|
|
357
369
|
detail: z.string().nullable(),
|
|
358
|
-
// The summary the Operator wrote at the end itself.
|
|
370
|
+
// The summary the Operator wrote at the end itself. Over MCP `operator_run_list` shortens it to
|
|
371
|
+
// `runSummaryChars` (E127, #674); `operator_run_get` answers it whole.
|
|
359
372
|
summary: z.string().nullable(),
|
|
373
|
+
// Only where the summary was shortened: how many characters the whole one has.
|
|
374
|
+
summaryLength: z.int().optional(),
|
|
360
375
|
touched: OperatorRunTouched,
|
|
361
376
|
// Null when the run got none: no text in its INSTRUCTIONS, or a run from before #581.
|
|
362
377
|
instructions: OperatorRunInstructions.nullable(),
|
|
@@ -391,7 +406,7 @@ export const OperatorRunListInput = z.strictObject({
|
|
|
391
406
|
.optional()
|
|
392
407
|
.describe("Words in a run's summary or failure, case-insensitive."),
|
|
393
408
|
cursor: OperatorRunId.optional().describe("The nextCursor of the previous page, for the runs after it; newest first."),
|
|
394
|
-
limit: Limit.optional().describe("Runs per page, 1 to 100. Leaving it out gives 50."),
|
|
409
|
+
limit: Limit.optional().describe("Runs per page, 1 to 100. Leaving it out gives 20 over MCP and 50 over the API."),
|
|
395
410
|
});
|
|
396
411
|
export const OperatorRunGetInput = z.strictObject({ runId: OperatorRunId });
|
|
397
412
|
// Stopping a run by hand (E112): its container ends, the run ends `stopped`.
|
|
@@ -16,4 +16,4 @@ export const Rev = z
|
|
|
16
16
|
.number()
|
|
17
17
|
.int()
|
|
18
18
|
.min(1)
|
|
19
|
-
.describe("The revision of the node this change is based on, as the last read returned it. If someone saved in between, the call answers conflict and
|
|
19
|
+
.describe("The revision of the node this change is based on, as the last read returned it. If someone saved in between, the call answers conflict, changes nothing and names under current what stands now: decide, and send it again with that rev.");
|
package/dist/runs/runs.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ export declare const RunDetail: z.ZodObject<{
|
|
|
147
147
|
message: "message";
|
|
148
148
|
user: "user";
|
|
149
149
|
package: "package";
|
|
150
|
+
target: "target";
|
|
150
151
|
search: "search";
|
|
151
152
|
flag: "flag";
|
|
152
153
|
route: "route";
|
|
@@ -154,7 +155,6 @@ export declare const RunDetail: z.ZodObject<{
|
|
|
154
155
|
"square-check": "square-check";
|
|
155
156
|
"file-text": "file-text";
|
|
156
157
|
bulb: "bulb";
|
|
157
|
-
target: "target";
|
|
158
158
|
calendar: "calendar";
|
|
159
159
|
star: "star";
|
|
160
160
|
bolt: "bolt";
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
export { ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionProcess, ActionRow, ActionRun, ActionRunTask, ActionSection, ActionTask, actionFilters, isNodeRow, MachineInstructions, } from "./actions/actions.js";
|
|
1
|
+
export { ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionProcess, ActionRow, ActionRun, ActionRunHint, ActionRunTask, ActionSection, ActionTask, ActionValidation, 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, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, LabelId, maxBulkTasks, ProcessCheck, TaskDetail, TaskGetInput, TaskId, TaskImage,
|
|
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";
|
|
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";
|
|
11
11
|
export { Call, CallId, CallList, CallListInput, CallSource, Connector, ConnectorField, ConnectorGetInput, ConnectorId, ConnectorList, ConnectorListInput, ConnectorTool, } from "./connectors/connectors.js";
|
|
12
12
|
export { DirectoryPrincipal, DirectorySearchInput } from "./directory/directory.js";
|
|
13
|
-
export { DocumentCreateInput, DocumentDetail, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
|
|
14
|
-
export { ErrorCode, ErrorIssue, ErrorResponse, errorCodes, Warning, } from "./error/error.js";
|
|
15
|
-
export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, } from "./events/events.js";
|
|
13
|
+
export { DocumentCreateInput, DocumentDetail, DocumentExcerpt, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
|
|
14
|
+
export { ErrorCode, ErrorCurrent, ErrorIssue, ErrorResponse, errorCodes, invalidInput, Warning, } from "./error/error.js";
|
|
15
|
+
export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventSource, } from "./events/events.js";
|
|
16
|
+
export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
|
|
16
17
|
export { FileCreateInput, FileDetail, type FileFormat, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileFormatExtensions, fileFormatOf, fileTextStates, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
|
|
17
18
|
export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
|
|
18
19
|
export { GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetSettings, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetVersionRef, gadgetLimits, gadgetLogDays, } from "./gadgets/gadgets.js";
|
|
19
20
|
export { type Action, actions, hasRoute, isAction, isPackage, isWord, type Package, packages, parseConnectorFunction, parseToolName, type Resource, type Route, resources, type ToolName, toolAnnotations, toolEvent, toolPermission, toolRoute, toolSchemaName, verbs, } from "./grammar/grammar.js";
|
|
20
21
|
export { GrantId, GrantRight, NodeGrant, NodeGrantList, NodeGrantListInput, NodeGrantRevoked, NodeGrantRevokeInput, NodeShared, NodeShareInput, } from "./grants/grants.js";
|
|
21
22
|
export { createId, type Id, idSchema } from "./ids/ids.js";
|
|
22
|
-
export { Instructions, InstructionsLink, instructionsNames, isInstructionsName, validationSection, } from "./instructions/instructions.js";
|
|
23
|
+
export { Digest, InstructionRead, Instructions, InstructionsLink, InstructionsRead, InstructionText, instructionsNames, isInstructionsName, isKnownText, Known, KnownText, maxKnown, validationSection, } from "./instructions/instructions.js";
|
|
23
24
|
export { FunctionNames, InterfaceRemoved, ServiceInterfaceCreateInput, ServiceInterfaceDeclared, ServiceInterfaceDeclareInput, ServiceInterfaceRemoveInput, ServiceInterfaceUndeclared, ServiceInterfaceUpdateInput, } from "./interfaces/interfaces.js";
|
|
24
25
|
export { Delivery, Invitation, InvitationAcceptInput, InvitationCreateInput, InvitationId, InvitationLookup, InvitationLookupQuery, InvitationResendInput, InvitationRevokeInput, InvitationSent, InvitationSocialInput, InvitationStatus, RoleChip, } from "./invitations/invitations.js";
|
|
25
26
|
export { defaultLinkDays, LinkId, LinkStatus, maxLinkDays, NodeLink, NodeLinkCreateInput, NodeLinkList, NodeLinkListInput, NodeLinkRevokeInput, NodeLinkUpdateInput, publicLinkPath, } from "./links/links.js";
|
|
26
27
|
export { Flag, Limit } from "./list-input.js";
|
|
27
28
|
export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
|
|
28
29
|
export { ChatRead, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, } from "./messages/messages.js";
|
|
30
|
+
export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
|
|
29
31
|
export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, } from "./nodes/nodes.js";
|
|
30
|
-
export { Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineUpdateInput, OperatorModel, type OperatorProviderEntry, OperatorRun, OperatorRunAgents, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorState, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, Subagents, Trigger, } from "./operators/operators.js";
|
|
32
|
+
export { Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, compactRunLimit, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineUpdateInput, OperatorModel, type OperatorProviderEntry, OperatorRun, OperatorRunAgents, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorState, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, runSummaryChars, Subagents, Trigger, } from "./operators/operators.js";
|
|
31
33
|
export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
|
|
32
34
|
export { IdempotencyKey, Rev } from "./primitives/primitives.js";
|
|
33
35
|
export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
|
|
@@ -39,9 +41,10 @@ export { NodeSecret, NodeSecretCreateInput, NodeSecretDetail, NodeSecretGetInput
|
|
|
39
41
|
export { type Authorized, type AuthorizeResult, createServiceClient, type InterfaceDeclaredResult, type InterfaceRemovedResult, type ServiceClient, type ServiceClientDeps, type ServiceClientFailure, } from "./service-client/service-client.js";
|
|
40
42
|
export { FunctionId, InterfaceId, RightWord, Service, ServiceArchiveInput, ServiceCreateInput, ServiceFunction, ServiceId, ServiceInterface, ServiceKeyIssued, ServiceList, ServiceListInput, ServiceName, ServicePurged, ServicePurgeInput, ServiceRestoreInput, ServiceRotateInput, ServiceUpdateInput, } from "./services/services.js";
|
|
41
43
|
export { SignInProviders, Sso, SsoId, SsoList, SsoListInput, SsoRemoveInput, SsoSource, SsoUpdateInput, ssoIds, } from "./sso/sso.js";
|
|
42
|
-
export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
|
|
44
|
+
export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
|
|
43
45
|
export { type Actor, defineTool, type Permission, type Tool, type ToolAnnotations, type ToolContext, type ToolInput, type ToolSource, } from "./tool.js";
|
|
44
46
|
export { IntelligenceUserGetInput, IntelligenceUserUpdateInput, NotifyMode, notifyModes, UserSettings, } from "./user-settings/user-settings.js";
|
|
45
47
|
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";
|
|
46
48
|
export { TicketSubject, TicketSubjectRef, ValidationBoardId, validationBoardId, } from "./validation/validation.js";
|
|
47
|
-
export { MoveColumn, NodeVersion, NodeVersionCreateInput, NodeVersionDetail, NodeVersionGetInput, NodeVersionList, NodeVersionListInput, TaskMove, TaskVersionChange, taskVersionChanges, VersionId, VersionMove, versionKinds, } from "./versions/versions.js";
|
|
49
|
+
export { MoveColumn, NodeVersion, NodeVersionCreateInput, NodeVersionDetail, NodeVersionExcerpt, NodeVersionGetInput, NodeVersionList, NodeVersionListInput, TaskMove, TaskVersionChange, taskVersionChanges, VersionId, VersionMove, versionKinds, } from "./versions/versions.js";
|
|
50
|
+
export { Changed, Effects, Unblocked, Written, } from "./written/written.js";
|
package/dist/sdk.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
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 { ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionProcess, ActionRow, ActionRun, ActionRunTask, ActionSection, ActionTask, actionFilters, isNodeRow, MachineInstructions, } from "./actions/actions.js";
|
|
4
|
+
export { ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionProcess, ActionRow, ActionRun, ActionRunHint, ActionRunTask, ActionSection, ActionTask, ActionValidation, 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, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, LabelId, maxBulkTasks, ProcessCheck, TaskDetail, TaskGetInput, TaskId, TaskImage,
|
|
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";
|
|
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";
|
|
14
14
|
export { Call, CallId, CallList, CallListInput, CallSource, Connector, ConnectorField, ConnectorGetInput, ConnectorId, ConnectorList, ConnectorListInput, ConnectorTool, } from "./connectors/connectors.js";
|
|
15
15
|
export { DirectoryPrincipal, DirectorySearchInput } from "./directory/directory.js";
|
|
16
|
-
export { DocumentCreateInput, DocumentDetail, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
|
|
17
|
-
export { ErrorCode, ErrorIssue, ErrorResponse, errorCodes, Warning, } from "./error/error.js";
|
|
18
|
-
export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, } from "./events/events.js";
|
|
16
|
+
export { DocumentCreateInput, DocumentDetail, DocumentExcerpt, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
|
|
17
|
+
export { ErrorCode, ErrorCurrent, ErrorIssue, ErrorResponse, errorCodes, invalidInput, Warning, } from "./error/error.js";
|
|
18
|
+
export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventSource, } from "./events/events.js";
|
|
19
|
+
export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
|
|
19
20
|
export { FileCreateInput, FileDetail, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileFormatExtensions, fileFormatOf, fileTextStates, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
|
|
20
21
|
export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
|
|
21
22
|
export { GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetSettings, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetVersionRef, gadgetLimits, gadgetLogDays, } from "./gadgets/gadgets.js";
|
|
22
23
|
export { actions, hasRoute, isAction, isPackage, isWord, packages, parseConnectorFunction, parseToolName, resources, toolAnnotations, toolEvent, toolPermission, toolRoute, toolSchemaName, verbs, } from "./grammar/grammar.js";
|
|
23
24
|
export { GrantId, GrantRight, NodeGrant, NodeGrantList, NodeGrantListInput, NodeGrantRevoked, NodeGrantRevokeInput, NodeShared, NodeShareInput, } from "./grants/grants.js";
|
|
24
25
|
export { createId, idSchema } from "./ids/ids.js";
|
|
25
|
-
export { Instructions, InstructionsLink, instructionsNames, isInstructionsName, validationSection, } from "./instructions/instructions.js";
|
|
26
|
+
export { Digest, InstructionRead, Instructions, InstructionsLink, InstructionsRead, InstructionText, instructionsNames, isInstructionsName, isKnownText, Known, KnownText, maxKnown, validationSection, } from "./instructions/instructions.js";
|
|
26
27
|
export { FunctionNames, InterfaceRemoved, ServiceInterfaceCreateInput, ServiceInterfaceDeclared, ServiceInterfaceDeclareInput, ServiceInterfaceRemoveInput, ServiceInterfaceUndeclared, ServiceInterfaceUpdateInput, } from "./interfaces/interfaces.js";
|
|
27
28
|
export { Delivery, Invitation, InvitationAcceptInput, InvitationCreateInput, InvitationId, InvitationLookup, InvitationLookupQuery, InvitationResendInput, InvitationRevokeInput, InvitationSent, InvitationSocialInput, InvitationStatus, RoleChip, } from "./invitations/invitations.js";
|
|
28
29
|
export { defaultLinkDays, LinkId, LinkStatus, maxLinkDays, NodeLink, NodeLinkCreateInput, NodeLinkList, NodeLinkListInput, NodeLinkRevokeInput, NodeLinkUpdateInput, publicLinkPath, } from "./links/links.js";
|
|
29
30
|
export { Flag, Limit } from "./list-input.js";
|
|
30
31
|
export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
|
|
31
32
|
export { ChatRead, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, } from "./messages/messages.js";
|
|
33
|
+
export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
|
|
32
34
|
export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, } from "./nodes/nodes.js";
|
|
33
|
-
export { Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineUpdateInput, OperatorModel, OperatorRun, OperatorRunAgents, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorState, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, Subagents, Trigger, } from "./operators/operators.js";
|
|
35
|
+
export { Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, compactRunLimit, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineUpdateInput, OperatorModel, OperatorRun, OperatorRunAgents, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorState, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, runSummaryChars, Subagents, Trigger, } from "./operators/operators.js";
|
|
34
36
|
export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
|
|
35
37
|
export { IdempotencyKey, Rev } from "./primitives/primitives.js";
|
|
36
38
|
export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
|
|
@@ -42,9 +44,10 @@ export { NodeSecret, NodeSecretCreateInput, NodeSecretDetail, NodeSecretGetInput
|
|
|
42
44
|
export { createServiceClient, } from "./service-client/service-client.js";
|
|
43
45
|
export { FunctionId, InterfaceId, RightWord, Service, ServiceArchiveInput, ServiceCreateInput, ServiceFunction, ServiceId, ServiceInterface, ServiceKeyIssued, ServiceList, ServiceListInput, ServiceName, ServicePurged, ServicePurgeInput, ServiceRestoreInput, ServiceRotateInput, ServiceUpdateInput, } from "./services/services.js";
|
|
44
46
|
export { SignInProviders, Sso, SsoId, SsoList, SsoListInput, SsoRemoveInput, SsoSource, SsoUpdateInput, ssoIds, } from "./sso/sso.js";
|
|
45
|
-
export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
|
|
47
|
+
export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
|
|
46
48
|
export { defineTool, } from "./tool.js";
|
|
47
49
|
export { IntelligenceUserGetInput, IntelligenceUserUpdateInput, NotifyMode, notifyModes, UserSettings, } from "./user-settings/user-settings.js";
|
|
48
50
|
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";
|
|
49
51
|
export { TicketSubject, TicketSubjectRef, ValidationBoardId, validationBoardId, } from "./validation/validation.js";
|
|
50
|
-
export { MoveColumn, NodeVersion, NodeVersionCreateInput, NodeVersionDetail, NodeVersionGetInput, NodeVersionList, NodeVersionListInput, TaskMove, TaskVersionChange, taskVersionChanges, VersionId, VersionMove, versionKinds, } from "./versions/versions.js";
|
|
52
|
+
export { MoveColumn, NodeVersion, NodeVersionCreateInput, NodeVersionDetail, NodeVersionExcerpt, NodeVersionGetInput, NodeVersionList, NodeVersionListInput, TaskMove, TaskVersionChange, taskVersionChanges, VersionId, VersionMove, versionKinds, } from "./versions/versions.js";
|
|
53
|
+
export { Changed, Effects, Unblocked, Written, } from "./written/written.js";
|
package/dist/sso/sso.js
CHANGED
|
@@ -50,8 +50,9 @@ export const SsoList = z.object({
|
|
|
50
50
|
nextCursor: z.null(),
|
|
51
51
|
});
|
|
52
52
|
// `GET /auth/providers`, public: which buttons the sign-in page shows, in their order. Nothing else
|
|
53
|
-
// of a provider travels here. `signUp` is true only while no person exists
|
|
54
|
-
// on the page and becomes the main admin (E9,
|
|
53
|
+
// of a provider travels here. `signUp` is true only while no person exists, or only one whose sign-up
|
|
54
|
+
// lapsed unconfirmed (E131): the first one signs up on the page and becomes the main admin (E9,
|
|
55
|
+
// #539); after that it says nothing about anybody.
|
|
55
56
|
export const SignInProviders = z.object({
|
|
56
57
|
providers: z.array(SsoId),
|
|
57
58
|
signUp: z.boolean(),
|