@anchrd/colab-sdk 0.1.23 → 0.1.25
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 +0 -155
- package/dist/actions/actions.js +7 -31
- package/dist/boards/boards.d.ts +1 -220
- package/dist/boards/boards.js +9 -66
- package/dist/goals/goals.d.ts +0 -6
- package/dist/mcps/mcps.d.ts +8 -0
- package/dist/mcps/mcps.js +15 -1
- package/dist/missing/missing.d.ts +1 -5
- package/dist/missing/missing.js +6 -11
- package/dist/nodes/nodes.js +1 -1
- package/dist/operators/operators.d.ts +1 -0
- package/dist/operators/operators.js +4 -0
- package/dist/runs/runs.d.ts +0 -19
- package/dist/runs/runs.js +4 -20
- package/dist/sdk.d.ts +5 -4
- package/dist/sdk.js +5 -4
- package/dist/skills/skills.d.ts +25 -0
- package/dist/skills/skills.js +5 -0
- package/dist/tree-order/tree-order.d.ts +4 -0
- package/dist/tree-order/tree-order.js +24 -0
- package/dist/versions/versions.d.ts +5 -5
- package/dist/written/written.d.ts +0 -2
- package/package.json +1 -1
package/dist/skills/skills.d.ts
CHANGED
|
@@ -62,6 +62,11 @@ export declare const SkillPoint: z.ZodObject<{
|
|
|
62
62
|
}, z.core.$strip>;
|
|
63
63
|
export type SkillPoint = z.infer<typeof SkillPoint>;
|
|
64
64
|
export declare const skillCaseStatuses: readonly ["passed", "failed", "missing"];
|
|
65
|
+
export declare const SkillTokens: z.ZodObject<{
|
|
66
|
+
input: z.ZodInt;
|
|
67
|
+
output: z.ZodInt;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export type SkillTokens = z.infer<typeof SkillTokens>;
|
|
65
70
|
export declare const SkillCaseResult: z.ZodObject<{
|
|
66
71
|
name: z.ZodString;
|
|
67
72
|
status: z.ZodEnum<{
|
|
@@ -90,6 +95,10 @@ export declare const SkillCaseResult: z.ZodObject<{
|
|
|
90
95
|
tool: z.ZodString;
|
|
91
96
|
}, z.core.$strip>>;
|
|
92
97
|
costUsd: z.ZodNumber;
|
|
98
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
input: z.ZodInt;
|
|
100
|
+
output: z.ZodInt;
|
|
101
|
+
}, z.core.$strip>>;
|
|
93
102
|
runId: z.ZodNullable<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
94
103
|
}, z.core.$strip>;
|
|
95
104
|
export type SkillCaseResult = z.infer<typeof SkillCaseResult>;
|
|
@@ -137,6 +146,10 @@ export declare const SkillTestReport: z.ZodObject<{
|
|
|
137
146
|
ok: z.ZodBoolean;
|
|
138
147
|
}, z.core.$strip>>;
|
|
139
148
|
costUsd: z.ZodNumber;
|
|
149
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
input: z.ZodInt;
|
|
151
|
+
output: z.ZodInt;
|
|
152
|
+
}, z.core.$strip>>;
|
|
140
153
|
}, z.core.$strip>>;
|
|
141
154
|
cases: z.ZodArray<z.ZodObject<{
|
|
142
155
|
name: z.ZodString;
|
|
@@ -166,6 +179,10 @@ export declare const SkillTestReport: z.ZodObject<{
|
|
|
166
179
|
tool: z.ZodString;
|
|
167
180
|
}, z.core.$strip>>;
|
|
168
181
|
costUsd: z.ZodNumber;
|
|
182
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
input: z.ZodInt;
|
|
184
|
+
output: z.ZodInt;
|
|
185
|
+
}, z.core.$strip>>;
|
|
169
186
|
runId: z.ZodNullable<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
170
187
|
}, z.core.$strip>>;
|
|
171
188
|
problem: z.ZodNullable<z.ZodString>;
|
|
@@ -232,6 +249,10 @@ export declare const SkillDetail: z.ZodObject<{
|
|
|
232
249
|
ok: z.ZodBoolean;
|
|
233
250
|
}, z.core.$strip>>;
|
|
234
251
|
costUsd: z.ZodNumber;
|
|
252
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
253
|
+
input: z.ZodInt;
|
|
254
|
+
output: z.ZodInt;
|
|
255
|
+
}, z.core.$strip>>;
|
|
235
256
|
}, z.core.$strip>>;
|
|
236
257
|
cases: z.ZodArray<z.ZodObject<{
|
|
237
258
|
name: z.ZodString;
|
|
@@ -261,6 +282,10 @@ export declare const SkillDetail: z.ZodObject<{
|
|
|
261
282
|
tool: z.ZodString;
|
|
262
283
|
}, z.core.$strip>>;
|
|
263
284
|
costUsd: z.ZodNumber;
|
|
285
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
286
|
+
input: z.ZodInt;
|
|
287
|
+
output: z.ZodInt;
|
|
288
|
+
}, z.core.$strip>>;
|
|
264
289
|
runId: z.ZodNullable<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
265
290
|
}, z.core.$strip>>;
|
|
266
291
|
problem: z.ZodNullable<z.ZodString>;
|
package/dist/skills/skills.js
CHANGED
|
@@ -94,6 +94,8 @@ export const SkillPoint = z.object({
|
|
|
94
94
|
reason: z.string().nullable(),
|
|
95
95
|
});
|
|
96
96
|
export const skillCaseStatuses = ["passed", "failed", "missing"];
|
|
97
|
+
// What the model read and wrote in a step of the tests, in tokens (#835, E146).
|
|
98
|
+
export const SkillTokens = z.object({ input: z.int(), output: z.int() });
|
|
97
99
|
export const SkillCaseResult = z.object({
|
|
98
100
|
name: z.string(),
|
|
99
101
|
// passed: every run passed every point; failed: one did not; missing: a tool without a recording
|
|
@@ -110,6 +112,8 @@ export const SkillCaseResult = z.object({
|
|
|
110
112
|
// The sandbox's writes of the last run: what it would have written, written nowhere.
|
|
111
113
|
sandbox: z.array(z.object({ tool: z.string() })),
|
|
112
114
|
costUsd: z.number(),
|
|
115
|
+
// The model's tokens over every run of the case (#835); absent in a report from before.
|
|
116
|
+
tokens: SkillTokens.optional(),
|
|
113
117
|
// The probe run of the case's last attempt, its trace in the log.
|
|
114
118
|
runId: RunId.nullable(),
|
|
115
119
|
});
|
|
@@ -135,6 +139,7 @@ export const SkillTestReport = z.object({
|
|
|
135
139
|
operator: NodePerson.nullable(),
|
|
136
140
|
hits: z.array(SkillTriggerHit),
|
|
137
141
|
costUsd: z.number(),
|
|
142
|
+
tokens: SkillTokens.optional(),
|
|
138
143
|
})
|
|
139
144
|
.nullable(),
|
|
140
145
|
cases: z.array(SkillCaseResult),
|
|
@@ -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
|
+
}
|
|
@@ -52,11 +52,11 @@ export declare const TaskVersionChange: z.ZodEnum<{
|
|
|
52
52
|
title: "title";
|
|
53
53
|
text: "text";
|
|
54
54
|
dates: "dates";
|
|
55
|
+
waiting: "waiting";
|
|
55
56
|
assignee: "assignee";
|
|
56
57
|
labels: "labels";
|
|
57
58
|
parent: "parent";
|
|
58
59
|
dependencies: "dependencies";
|
|
59
|
-
waiting: "waiting";
|
|
60
60
|
}>;
|
|
61
61
|
export type TaskVersionChange = z.infer<typeof TaskVersionChange>;
|
|
62
62
|
export declare const TaskMove: z.ZodObject<{
|
|
@@ -168,11 +168,11 @@ export declare const NodeVersion: z.ZodObject<{
|
|
|
168
168
|
title: "title";
|
|
169
169
|
text: "text";
|
|
170
170
|
dates: "dates";
|
|
171
|
+
waiting: "waiting";
|
|
171
172
|
assignee: "assignee";
|
|
172
173
|
labels: "labels";
|
|
173
174
|
parent: "parent";
|
|
174
175
|
dependencies: "dependencies";
|
|
175
|
-
waiting: "waiting";
|
|
176
176
|
}>>>;
|
|
177
177
|
}, z.core.$strip>;
|
|
178
178
|
export type NodeVersion = z.infer<typeof NodeVersion>;
|
|
@@ -229,11 +229,11 @@ export declare const NodeVersionList: z.ZodObject<{
|
|
|
229
229
|
title: "title";
|
|
230
230
|
text: "text";
|
|
231
231
|
dates: "dates";
|
|
232
|
+
waiting: "waiting";
|
|
232
233
|
assignee: "assignee";
|
|
233
234
|
labels: "labels";
|
|
234
235
|
parent: "parent";
|
|
235
236
|
dependencies: "dependencies";
|
|
236
|
-
waiting: "waiting";
|
|
237
237
|
}>>>;
|
|
238
238
|
}, z.core.$strip>>;
|
|
239
239
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
@@ -292,11 +292,11 @@ export declare const NodeVersionDetail: z.ZodObject<{
|
|
|
292
292
|
title: "title";
|
|
293
293
|
text: "text";
|
|
294
294
|
dates: "dates";
|
|
295
|
+
waiting: "waiting";
|
|
295
296
|
assignee: "assignee";
|
|
296
297
|
labels: "labels";
|
|
297
298
|
parent: "parent";
|
|
298
299
|
dependencies: "dependencies";
|
|
299
|
-
waiting: "waiting";
|
|
300
300
|
}>>>;
|
|
301
301
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
302
302
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -443,11 +443,11 @@ export declare const NodeVersionExcerpt: z.ZodObject<{
|
|
|
443
443
|
title: "title";
|
|
444
444
|
text: "text";
|
|
445
445
|
dates: "dates";
|
|
446
|
+
waiting: "waiting";
|
|
446
447
|
assignee: "assignee";
|
|
447
448
|
labels: "labels";
|
|
448
449
|
parent: "parent";
|
|
449
450
|
dependencies: "dependencies";
|
|
450
|
-
waiting: "waiting";
|
|
451
451
|
}>>>;
|
|
452
452
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
453
453
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -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