@trydreamstate/cli 1.3.7 → 1.3.11
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/agent-plugin/.claude-plugin/plugin.json +1 -1
- package/agent-plugin/.codex-plugin/plugin.json +1 -1
- package/agent-plugin/skills/crm/SKILL.md +2 -0
- package/agent-plugin/skills/diagnostics/SKILL.md +7 -1
- package/agent-plugin/skills/facebook-posts/SKILL.md +46 -0
- package/agent-plugin/skills/instagram-posts/SKILL.md +56 -0
- package/agent-plugin/skills/list-building/SKILL.md +3 -0
- package/agent-plugin/skills/list-building/column-authoring.md +6 -0
- package/agent-plugin/skills/list-building/incoming-people.md +32 -0
- package/agent-plugin/skills/list-building/sourcing.md +14 -0
- package/agent-plugin/skills/outreach/SKILL.md +8 -0
- package/agent-plugin/skills/outreach/enrollment.md +5 -1
- package/agent-plugin/skills/plays/SKILL.md +15 -0
- package/agent-plugin/skills/social/SKILL.md +4 -0
- package/agent-plugin/skills/tiktok-posts/SKILL.md +51 -0
- package/agent-plugin/skills/visibility/SKILL.md +4 -0
- package/agent-plugin/skills/workflows/SKILL.md +2 -0
- package/agent-plugin/skills/workflows/lifecycle-and-enrollment.md +2 -0
- package/agent-plugin/skills/youtube-posts/SKILL.md +49 -0
- package/dist/client.d.ts +6 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +35 -11
- package/dist/commandTable.d.ts +2 -2
- package/dist/commandTable.d.ts.map +1 -1
- package/dist/commandTable.js +5 -2
- package/dist/commands/genericPack.d.ts +13 -0
- package/dist/commands/genericPack.d.ts.map +1 -0
- package/dist/commands/genericPack.js +31 -0
- package/dist/commands/knowledge.d.ts +2 -0
- package/dist/commands/knowledge.d.ts.map +1 -0
- package/dist/commands/knowledge.js +6 -0
- package/dist/commands/shared.d.ts +3 -1
- package/dist/commands/shared.d.ts.map +1 -1
- package/dist/commands/shared.js +14 -5
- package/dist/commands/tables.d.ts +2 -0
- package/dist/commands/tables.d.ts.map +1 -0
- package/dist/commands/tables.js +6 -0
- package/dist/commands/unibox.d.ts +2 -0
- package/dist/commands/unibox.d.ts.map +1 -0
- package/dist/commands/unibox.js +6 -0
- package/dist/gatedRun.d.ts.map +1 -1
- package/dist/gatedRun.js +105 -35
- package/dist/generated/packVerbs.generated.json +332 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -6
- package/dist/money.d.ts +2 -1
- package/dist/money.d.ts.map +1 -1
- package/dist/money.js +22 -5
- package/dist/runWait.d.ts +1 -1
- package/dist/runWait.d.ts.map +1 -1
- package/dist/runWait.js +37 -5
- package/dist/turnCache.d.ts +5 -1
- package/dist/turnCache.d.ts.map +1 -1
- package/dist/turnCache.js +5 -3
- package/package.json +1 -1
|
@@ -1,7 +1,139 @@
|
|
|
1
1
|
{
|
|
2
2
|
"generated_by": "packages/cli/scripts/generate-pack-verbs.mjs from apps/backend/src/services/v1/capabilityRegistry/catalog.snapshot.json; do not edit by hand",
|
|
3
|
-
"registry_hash": "
|
|
3
|
+
"registry_hash": "0993264bdfa458810d82958d2539803b6d1652a7afd97b2cc7cd7533d6743d7f",
|
|
4
4
|
"verbs": [
|
|
5
|
+
{
|
|
6
|
+
"command": "knowledge compose-document",
|
|
7
|
+
"capabilityId": "knowledge.brain.knowledge.compose_document"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"command": "knowledge archive-node",
|
|
11
|
+
"positional": [
|
|
12
|
+
{
|
|
13
|
+
"name": "id",
|
|
14
|
+
"into": "node_id"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"capabilityId": "knowledge.graph.archive_node"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"command": "knowledge archive-relation",
|
|
21
|
+
"positional": [
|
|
22
|
+
{
|
|
23
|
+
"name": "id",
|
|
24
|
+
"into": "relation_id"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"capabilityId": "knowledge.graph.archive_relation"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"command": "knowledge contract-get",
|
|
31
|
+
"capabilityId": "knowledge.graph.contract_get"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"command": "knowledge create-node",
|
|
35
|
+
"capabilityId": "knowledge.graph.create_node"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"command": "knowledge create-relation",
|
|
39
|
+
"capabilityId": "knowledge.graph.create_relation"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"command": "knowledge delete-node",
|
|
43
|
+
"positional": [
|
|
44
|
+
{
|
|
45
|
+
"name": "id",
|
|
46
|
+
"into": "node_id"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"capabilityId": "knowledge.graph.delete_node"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"command": "knowledge delete-relation",
|
|
53
|
+
"positional": [
|
|
54
|
+
{
|
|
55
|
+
"name": "id",
|
|
56
|
+
"into": "relation_id"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"capabilityId": "knowledge.graph.delete_relation"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"command": "knowledge edges-list",
|
|
63
|
+
"capabilityId": "knowledge.graph.edges_list"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"command": "knowledge export",
|
|
67
|
+
"capabilityId": "knowledge.graph.export"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"command": "knowledge get-node",
|
|
71
|
+
"positional": [
|
|
72
|
+
{
|
|
73
|
+
"name": "id",
|
|
74
|
+
"into": "node_id"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"capabilityId": "knowledge.graph.get_node"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"command": "knowledge get-relation",
|
|
81
|
+
"positional": [
|
|
82
|
+
{
|
|
83
|
+
"name": "id",
|
|
84
|
+
"into": "relation_id"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"capabilityId": "knowledge.graph.get_relation"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"command": "knowledge restore-node",
|
|
91
|
+
"positional": [
|
|
92
|
+
{
|
|
93
|
+
"name": "id",
|
|
94
|
+
"into": "node_id"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"capabilityId": "knowledge.graph.restore_node"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"command": "knowledge search",
|
|
101
|
+
"capabilityId": "knowledge.graph.search"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"command": "knowledge traverse",
|
|
105
|
+
"capabilityId": "knowledge.graph.traverse"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"command": "knowledge update-node",
|
|
109
|
+
"positional": [
|
|
110
|
+
{
|
|
111
|
+
"name": "id",
|
|
112
|
+
"into": "node_id"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"capabilityId": "knowledge.graph.update_node"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"command": "knowledge update-relation",
|
|
119
|
+
"positional": [
|
|
120
|
+
{
|
|
121
|
+
"name": "id",
|
|
122
|
+
"into": "relation_id"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"capabilityId": "knowledge.graph.update_relation"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"command": "sequences activate-audience",
|
|
129
|
+
"positional": [
|
|
130
|
+
{
|
|
131
|
+
"name": "id",
|
|
132
|
+
"into": "sequence_id"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"capabilityId": "sequence.sequences.activate_audience"
|
|
136
|
+
},
|
|
5
137
|
{
|
|
6
138
|
"command": "sequences analytics",
|
|
7
139
|
"positional": [
|
|
@@ -12,6 +144,16 @@
|
|
|
12
144
|
],
|
|
13
145
|
"capabilityId": "sequence.sequences.analytics_get"
|
|
14
146
|
},
|
|
147
|
+
{
|
|
148
|
+
"command": "sequences archive",
|
|
149
|
+
"positional": [
|
|
150
|
+
{
|
|
151
|
+
"name": "id",
|
|
152
|
+
"into": "sequence_id"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"capabilityId": "sequence.sequences.archive"
|
|
156
|
+
},
|
|
15
157
|
{
|
|
16
158
|
"command": "sequences enrollments",
|
|
17
159
|
"positional": [
|
|
@@ -22,6 +164,16 @@
|
|
|
22
164
|
],
|
|
23
165
|
"capabilityId": "sequence.sequences.contacts_list"
|
|
24
166
|
},
|
|
167
|
+
{
|
|
168
|
+
"command": "sequences copy-preview",
|
|
169
|
+
"positional": [
|
|
170
|
+
{
|
|
171
|
+
"name": "id",
|
|
172
|
+
"into": "sequence_id"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"capabilityId": "sequence.sequences.copy_preview"
|
|
176
|
+
},
|
|
25
177
|
{
|
|
26
178
|
"command": "sequences create-from-worksheet",
|
|
27
179
|
"capabilityId": "sequence.sequences.create_from_worksheet"
|
|
@@ -36,6 +188,16 @@
|
|
|
36
188
|
],
|
|
37
189
|
"capabilityId": "sequence.sequences.enroll_selection"
|
|
38
190
|
},
|
|
191
|
+
{
|
|
192
|
+
"command": "sequences events-list",
|
|
193
|
+
"positional": [
|
|
194
|
+
{
|
|
195
|
+
"name": "id",
|
|
196
|
+
"into": "sequence_id"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"capabilityId": "sequence.sequences.events_list"
|
|
200
|
+
},
|
|
39
201
|
{
|
|
40
202
|
"command": "sequences launch",
|
|
41
203
|
"positional": [
|
|
@@ -97,14 +259,162 @@
|
|
|
97
259
|
"capabilityId": "sequence.sequences.step_counts_get"
|
|
98
260
|
},
|
|
99
261
|
{
|
|
100
|
-
"command": "sequences
|
|
262
|
+
"command": "sequences validate",
|
|
263
|
+
"capabilityId": "sequence.sequences.validate"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"command": "tables archive",
|
|
101
267
|
"positional": [
|
|
102
268
|
{
|
|
103
269
|
"name": "id",
|
|
104
|
-
"into": "
|
|
270
|
+
"into": "workbook_id"
|
|
105
271
|
}
|
|
106
272
|
],
|
|
107
|
-
"capabilityId": "
|
|
273
|
+
"capabilityId": "tables.workbooks.archive"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"command": "tables create",
|
|
277
|
+
"capabilityId": "tables.workbooks.create"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"command": "tables get",
|
|
281
|
+
"positional": [
|
|
282
|
+
{
|
|
283
|
+
"name": "id",
|
|
284
|
+
"into": "workbook_id"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"capabilityId": "tables.workbooks.get"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"command": "tables list",
|
|
291
|
+
"capabilityId": "tables.workbooks.list"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"command": "tables overview",
|
|
295
|
+
"positional": [
|
|
296
|
+
{
|
|
297
|
+
"name": "id",
|
|
298
|
+
"into": "workbook_id"
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"capabilityId": "tables.workbooks.overview"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"command": "tables worksheets",
|
|
305
|
+
"positional": [
|
|
306
|
+
{
|
|
307
|
+
"name": "id",
|
|
308
|
+
"into": "workbook_id"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"capabilityId": "tables.worksheets.list"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"command": "unibox threads",
|
|
315
|
+
"capabilityId": "unibox.comment_threads.list"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"command": "unibox snooze",
|
|
319
|
+
"positional": [
|
|
320
|
+
{
|
|
321
|
+
"name": "id",
|
|
322
|
+
"into": "conversation_id"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"capabilityId": "unibox.conversation_snooze"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"command": "unibox unsnooze",
|
|
329
|
+
"positional": [
|
|
330
|
+
{
|
|
331
|
+
"name": "id",
|
|
332
|
+
"into": "conversation_id"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"capabilityId": "unibox.conversation_unsnooze"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"command": "unibox triage",
|
|
339
|
+
"capabilityId": "unibox.conversations_bulk_triage"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"command": "unibox analytics",
|
|
343
|
+
"capabilityId": "unibox.inbox.analytics_get"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"command": "unibox analyze",
|
|
347
|
+
"positional": [
|
|
348
|
+
{
|
|
349
|
+
"name": "id",
|
|
350
|
+
"into": "conversation_id"
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"capabilityId": "unibox.inbox.analyze"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"command": "unibox get",
|
|
357
|
+
"positional": [
|
|
358
|
+
{
|
|
359
|
+
"name": "id",
|
|
360
|
+
"into": "conversation_id"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"capabilityId": "unibox.inbox.conversation_get"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"command": "unibox status",
|
|
367
|
+
"positional": [
|
|
368
|
+
{
|
|
369
|
+
"name": "id",
|
|
370
|
+
"into": "conversation_id"
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"capabilityId": "unibox.inbox.conversation_status_apply"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"command": "unibox messages",
|
|
377
|
+
"capabilityId": "unibox.inbox.messages_query"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"command": "unibox draft-approve",
|
|
381
|
+
"positional": [
|
|
382
|
+
{
|
|
383
|
+
"name": "id",
|
|
384
|
+
"into": "conversation_id"
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"capabilityId": "unibox.inbox.reply_draft_approve"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"command": "unibox draft-edit",
|
|
391
|
+
"positional": [
|
|
392
|
+
{
|
|
393
|
+
"name": "id",
|
|
394
|
+
"into": "conversation_id"
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
"capabilityId": "unibox.inbox.reply_draft_edit"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"command": "unibox drafts",
|
|
401
|
+
"capabilityId": "unibox.inbox.reply_drafts_list"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"command": "unibox resync",
|
|
405
|
+
"capabilityId": "unibox.inbox.resync"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"command": "unibox labels",
|
|
409
|
+
"capabilityId": "unibox.inbox.status_labels_list"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"command": "unibox sync-status",
|
|
413
|
+
"capabilityId": "unibox.inbox.sync_status"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"command": "unibox list",
|
|
417
|
+
"capabilityId": "unibox.inbox.unified_list"
|
|
108
418
|
},
|
|
109
419
|
{
|
|
110
420
|
"command": "workflows archive",
|
|
@@ -124,6 +434,14 @@
|
|
|
124
434
|
"command": "workflows create",
|
|
125
435
|
"capabilityId": "workflow.automations.compose"
|
|
126
436
|
},
|
|
437
|
+
{
|
|
438
|
+
"command": "sequences create-empty",
|
|
439
|
+
"capabilityId": "workflow.automations.create"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"command": "workflows create-empty",
|
|
443
|
+
"capabilityId": "workflow.automations.create"
|
|
444
|
+
},
|
|
127
445
|
{
|
|
128
446
|
"command": "sequences duplicate",
|
|
129
447
|
"positional": [
|
|
@@ -418,6 +736,16 @@
|
|
|
418
736
|
],
|
|
419
737
|
"capabilityId": "workflow.workflows.activate"
|
|
420
738
|
},
|
|
739
|
+
{
|
|
740
|
+
"command": "workflows call",
|
|
741
|
+
"positional": [
|
|
742
|
+
{
|
|
743
|
+
"name": "id",
|
|
744
|
+
"into": "workflow_id"
|
|
745
|
+
}
|
|
746
|
+
],
|
|
747
|
+
"capabilityId": "workflow.workflows.call"
|
|
748
|
+
},
|
|
421
749
|
{
|
|
422
750
|
"command": "workflows deactivate",
|
|
423
751
|
"positional": [
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { type ServerReleaseInfo } from './client';
|
|
|
4
4
|
import { CLI_EXIT, CliUsageError } from './errors';
|
|
5
5
|
import { capabilityIdempotencyKey } from './gatedRun';
|
|
6
6
|
import { type SkillInstallAgent } from './skillInstaller';
|
|
7
|
+
import type { PackName } from './commands/shared';
|
|
7
8
|
export type CanonicalApiCapabilityId = string;
|
|
8
9
|
export { CLI_EXIT, CliUsageError, capabilityIdempotencyKey };
|
|
9
10
|
export type CliCommand = {
|
|
@@ -119,7 +120,7 @@ export type CliCommand = {
|
|
|
119
120
|
jsonOutput?: boolean;
|
|
120
121
|
} | {
|
|
121
122
|
command: 'pack';
|
|
122
|
-
pack:
|
|
123
|
+
pack: PackName;
|
|
123
124
|
verb: string;
|
|
124
125
|
capabilityId: CanonicalApiCapabilityId;
|
|
125
126
|
input: Record<string, unknown>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AA8BA,OAAO,EAA0F,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKnK,OAAO,EAA0I,KAAK,iBAAiB,EAA6C,MAAM,UAAU,CAAC;AACrO,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAwC,MAAM,UAAU,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAA8D,MAAM,YAAY,CAAC;AAGlH,OAAO,EAAqK,KAAK,iBAAiB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BAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;IAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAkB3F;AAwBD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmB7G;AAiHD,wBAAsB,MAAM,CAAC,IAAI,GAAE,MAAM,EAA0B,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAma5G"}
|
package/dist/index.js
CHANGED
|
@@ -64,6 +64,9 @@ Usage:
|
|
|
64
64
|
dreamstate tools run <capability_id> [--params <object>|--json <body>] [--turn-token <token>] (--live | --dry-run | --mode <smoke_test|dry_run|live>) [--approved] [--approval-id <uuid>] [--approved-effect-unknown] [--max-credits <n>] [--max-live-sends <n>] [--quote-hash <sha256:...>] [--idempotency-key <key>] [--wait-timeout <seconds>] [--no-wait] [--open] [--json-output]
|
|
65
65
|
dreamstate sequences <verb> [args] [flags]
|
|
66
66
|
dreamstate workflows <verb> [args] [flags]
|
|
67
|
+
dreamstate knowledge <verb> [args] [flags]
|
|
68
|
+
dreamstate unibox <verb> [args] [flags]
|
|
69
|
+
dreamstate tables <verb> [args] [flags]
|
|
67
70
|
dreamstate tables import --table-id <uuid> --file <path> [--format <csv|json|jsonl|xlsx>] [--preview] [--upsert-key <header>] [--row-kind <person|company>] [--keep-unmapped-columns <true|false>] [--json-output|--json]
|
|
68
71
|
dreamstate runs list [--limit <n>] [--cursor <cursor>] [--json <query>] [--json-output|--json]
|
|
69
72
|
dreamstate runs get <run_id> [--json-output|--json]
|
|
@@ -488,6 +491,15 @@ function sequencesCommands() {
|
|
|
488
491
|
function workflowsCommands() {
|
|
489
492
|
return require('./commands/workflows');
|
|
490
493
|
}
|
|
494
|
+
function knowledgeCommands() {
|
|
495
|
+
return require('./commands/knowledge');
|
|
496
|
+
}
|
|
497
|
+
function uniboxCommands() {
|
|
498
|
+
return require('./commands/unibox');
|
|
499
|
+
}
|
|
500
|
+
function tablesCommands() {
|
|
501
|
+
return require('./commands/tables');
|
|
502
|
+
}
|
|
491
503
|
function normalizeJsonOutputAlias(argv) {
|
|
492
504
|
return argv.map((argument, index) => argument === '--json' && (index === argv.length - 1 || argv[index + 1]?.startsWith('-'))
|
|
493
505
|
? '--json-output'
|
|
@@ -591,14 +603,21 @@ function parseCliArgs(argv) {
|
|
|
591
603
|
return parseCommands(rest);
|
|
592
604
|
if (group === 'tools')
|
|
593
605
|
return parseTools(rest);
|
|
594
|
-
if (group === 'tables')
|
|
595
|
-
|
|
606
|
+
if (group === 'tables') {
|
|
607
|
+
if (rest[0] === 'import' || rest[0] === '--help' || rest[0] === '-h' || rest.includes('--background'))
|
|
608
|
+
return parseTables(rest);
|
|
609
|
+
return tablesCommands().parseTablesCommand(rest);
|
|
610
|
+
}
|
|
596
611
|
if (group === 'runs')
|
|
597
612
|
return parseRuns(rest);
|
|
598
613
|
if (group === 'sequences')
|
|
599
614
|
return sequencesCommands().parseSequencesCommand(rest);
|
|
600
615
|
if (group === 'workflows')
|
|
601
616
|
return workflowsCommands().parseWorkflowsCommand(rest);
|
|
617
|
+
if (group === 'knowledge')
|
|
618
|
+
return knowledgeCommands().parseKnowledgeCommand(rest);
|
|
619
|
+
if (group === 'unibox')
|
|
620
|
+
return uniboxCommands().parseUniboxCommand(rest);
|
|
602
621
|
throw new errors_1.CliUsageError(`Unknown command: ${group}`);
|
|
603
622
|
}
|
|
604
623
|
function print(value, stdout, compact) {
|
|
@@ -694,14 +713,27 @@ function resultWebUrl(value) {
|
|
|
694
713
|
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
695
714
|
return null;
|
|
696
715
|
const envelope = value;
|
|
716
|
+
const data = envelope.data && typeof envelope.data === 'object' && !Array.isArray(envelope.data)
|
|
717
|
+
? envelope.data
|
|
718
|
+
: {};
|
|
719
|
+
const snapshotMeta = data.meta && typeof data.meta === 'object' && !Array.isArray(data.meta)
|
|
720
|
+
? data.meta
|
|
721
|
+
: {};
|
|
722
|
+
if (typeof snapshotMeta.web_url === 'string')
|
|
723
|
+
return snapshotMeta.web_url;
|
|
724
|
+
const run = data.run && typeof data.run === 'object' && !Array.isArray(data.run)
|
|
725
|
+
? data.run
|
|
726
|
+
: {};
|
|
727
|
+
const runMeta = run.meta && typeof run.meta === 'object' && !Array.isArray(run.meta)
|
|
728
|
+
? run.meta
|
|
729
|
+
: {};
|
|
730
|
+
if (typeof runMeta.web_url === 'string')
|
|
731
|
+
return runMeta.web_url;
|
|
697
732
|
const meta = envelope.meta && typeof envelope.meta === 'object' && !Array.isArray(envelope.meta)
|
|
698
733
|
? envelope.meta
|
|
699
734
|
: {};
|
|
700
735
|
if (typeof meta.web_url === 'string')
|
|
701
736
|
return meta.web_url;
|
|
702
|
-
const data = envelope.data && typeof envelope.data === 'object' && !Array.isArray(envelope.data)
|
|
703
|
-
? envelope.data
|
|
704
|
-
: {};
|
|
705
737
|
return typeof data.web_url === 'string' ? data.web_url : null;
|
|
706
738
|
}
|
|
707
739
|
function openResult(value, runtime) {
|
|
@@ -1483,9 +1515,18 @@ async function runCli(argv = process.argv.slice(2), runtime = {}) {
|
|
|
1483
1515
|
if (command.pack === 'sequences') {
|
|
1484
1516
|
await sequencesCommands().runSequencesCommand(gatedContext(), command, stdout);
|
|
1485
1517
|
}
|
|
1486
|
-
else {
|
|
1518
|
+
else if (command.pack === 'workflows') {
|
|
1487
1519
|
await workflowsCommands().runWorkflowsCommand(gatedContext(), command, stdout);
|
|
1488
1520
|
}
|
|
1521
|
+
else if (command.pack === 'knowledge') {
|
|
1522
|
+
await knowledgeCommands().runKnowledgeCommand(gatedContext(), command, stdout);
|
|
1523
|
+
}
|
|
1524
|
+
else if (command.pack === 'unibox') {
|
|
1525
|
+
await uniboxCommands().runUniboxCommand(gatedContext(), command, stdout);
|
|
1526
|
+
}
|
|
1527
|
+
else {
|
|
1528
|
+
await tablesCommands().runTablesCommand(gatedContext(), command, stdout);
|
|
1529
|
+
}
|
|
1489
1530
|
return;
|
|
1490
1531
|
}
|
|
1491
1532
|
default: return;
|
package/dist/money.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Customers see credits. Provider USD (a key that pairs usd with a cost word,
|
|
3
3
|
* a cogs key other than cogs_credits, or a provider_cost / provider_spend
|
|
4
|
-
* prefix) is dropped. Dollar amounts in
|
|
4
|
+
* prefix) is dropped. Dollar amounts in platform diagnostics and schema
|
|
5
|
+
* descriptions become "an amount"; customer source text stays unchanged.
|
|
5
6
|
* Customer maps are not entered: annual_revenue_usd and price_usd stay.
|
|
6
7
|
*/
|
|
7
8
|
export declare function isProviderCostKey(key: string): boolean;
|
package/dist/money.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"money.d.ts","sourceRoot":"","sources":["../src/money.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"money.d.ts","sourceRoot":"","sources":["../src/money.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA6BH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAQtD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGpD;AAeD,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,SAAI,GAAG,OAAO,CAEjE"}
|
package/dist/money.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Customers see credits. Provider USD (a key that pairs usd with a cost word,
|
|
4
4
|
* a cogs key other than cogs_credits, or a provider_cost / provider_spend
|
|
5
|
-
* prefix) is dropped. Dollar amounts in
|
|
5
|
+
* prefix) is dropped. Dollar amounts in platform diagnostics and schema
|
|
6
|
+
* descriptions become "an amount"; customer source text stays unchanged.
|
|
6
7
|
* Customer maps are not entered: annual_revenue_usd and price_usd stay.
|
|
7
8
|
*/
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -21,6 +22,11 @@ const CUSTOMER_DATA_CONTAINERS = new Set([
|
|
|
21
22
|
const SCHEMA_KEYWORDS = new Set([
|
|
22
23
|
'type', '$ref', 'anyOf', 'oneOf', 'allOf', 'enum', 'const', 'properties', 'items', 'description', 'not',
|
|
23
24
|
]);
|
|
25
|
+
const PLATFORM_TEXT_KEYS = new Set([
|
|
26
|
+
'note', 'provider_message', 'hint', 'user_message', 'error_message', 'last_error', 'why',
|
|
27
|
+
]);
|
|
28
|
+
const SCHEMA_DOCUMENT_KEYS = new Set(['input_json_schema', 'output_json_schema', 'json_schema']);
|
|
29
|
+
const SCHEMA_VALUE_KEYS = new Set(['default', 'example', 'examples', 'const', 'enum']);
|
|
24
30
|
const DOLLAR_AMOUNT_TEXT = /(?:US\$|\$)\s?\d[\d,]*(?:\.\d+)?(?:\s?(?:USD|dollars?))?|\b\d[\d,]*(?:\.\d+)?\s?(?:USD|dollars?)\b|\bUSD\s?\d[\d,]*(?:\.\d+)?/gi;
|
|
25
31
|
function snake(key) {
|
|
26
32
|
return key.replace(/([a-z0-9])([A-Z])/g, '$1_$2').replace(/[-\s.]+/g, '_').toLowerCase();
|
|
@@ -57,19 +63,30 @@ function isCustomerContainer(key, value) {
|
|
|
57
63
|
return CUSTOMER_DATA_CONTAINERS.has(snake(key)) && isPlainObject(value);
|
|
58
64
|
}
|
|
59
65
|
function scrubCliOutput(value, depth = 0) {
|
|
66
|
+
return scrubOutput(value, depth, false);
|
|
67
|
+
}
|
|
68
|
+
function scrubOutput(value, depth, schema) {
|
|
60
69
|
if (depth > 32)
|
|
61
70
|
return value;
|
|
62
|
-
if (typeof value === 'string')
|
|
63
|
-
return scrubDollarText(value);
|
|
64
71
|
if (Array.isArray(value))
|
|
65
|
-
return value.map((entry) =>
|
|
72
|
+
return value.map((entry) => scrubOutput(entry, depth + 1, schema));
|
|
66
73
|
if (!isPlainObject(value))
|
|
67
74
|
return value;
|
|
68
75
|
const output = {};
|
|
69
76
|
for (const [key, child] of Object.entries(value)) {
|
|
70
77
|
if (isProviderCostKey(key))
|
|
71
78
|
continue;
|
|
72
|
-
|
|
79
|
+
if (isCustomerContainer(key, child)) {
|
|
80
|
+
output[key] = child;
|
|
81
|
+
}
|
|
82
|
+
else if (typeof child === 'string' && (PLATFORM_TEXT_KEYS.has(key)
|
|
83
|
+
|| (key === 'message' && typeof value.code === 'string')
|
|
84
|
+
|| (schema && key === 'description'))) {
|
|
85
|
+
output[key] = scrubDollarText(child);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
output[key] = scrubOutput(child, depth + 1, SCHEMA_DOCUMENT_KEYS.has(key) || (schema && !SCHEMA_VALUE_KEYS.has(key)));
|
|
89
|
+
}
|
|
73
90
|
}
|
|
74
91
|
return output;
|
|
75
92
|
}
|
package/dist/runWait.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type DreamstateClient } from './client';
|
|
2
2
|
/** The wait ran out with the run still active; the latest run envelope is printed. */
|
|
3
3
|
export declare const RUN_WAIT_TIMEOUT_EXIT_CODE: number;
|
|
4
4
|
export interface RunWaitResult {
|
package/dist/runWait.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runWait.d.ts","sourceRoot":"","sources":["../src/runWait.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"runWait.d.ts","sourceRoot":"","sources":["../src/runWait.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAU3D,sFAAsF;AACtF,eAAO,MAAM,0BAA0B,EAAE,MAAyB,CAAC;AAEnE,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB;AAmDD,wBAAsB,UAAU,CAC9B,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,MAAM,EACtB,KAAK,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAC7C,OAAO,CAAC,aAAa,CAAC,CA4BxB"}
|