@cargo-ai/cli 1.0.18 → 1.0.20
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/README.md +46 -16
- package/build/commands/ai/index.d.ts.map +1 -1
- package/build/commands/ai/index.js +1 -3
- package/build/commands/content/file.d.ts.map +1 -0
- package/build/commands/{ai → content}/file.js +7 -7
- package/build/commands/content/index.d.ts +4 -0
- package/build/commands/content/index.d.ts.map +1 -0
- package/build/commands/content/index.js +9 -0
- package/build/commands/content/library.d.ts +4 -0
- package/build/commands/content/library.d.ts.map +1 -0
- package/build/commands/content/library.js +78 -0
- package/build/commands/orchestration/index.d.ts.map +1 -1
- package/build/commands/orchestration/index.js +0 -2
- package/build/commands/orchestration/release.d.ts.map +1 -1
- package/build/commands/orchestration/release.js +256 -2
- package/build/commands/storage/model.js +3 -3
- package/build/commands/workflow/index.d.ts +4 -0
- package/build/commands/workflow/index.d.ts.map +1 -0
- package/build/commands/workflow/index.js +10 -0
- package/build/commands/workflow/inputTypes.d.ts +18 -0
- package/build/commands/workflow/inputTypes.d.ts.map +1 -0
- package/build/commands/workflow/inputTypes.js +175 -0
- package/build/commands/workflow/sync.d.ts +4 -0
- package/build/commands/workflow/sync.d.ts.map +1 -0
- package/build/commands/workflow/sync.js +454 -0
- package/build/index.js +2 -0
- package/package.json +5 -5
- package/build/commands/ai/file.d.ts.map +0 -1
- package/build/commands/orchestration/draftRelease.d.ts +0 -4
- package/build/commands/orchestration/draftRelease.d.ts.map +0 -1
- package/build/commands/orchestration/draftRelease.js +0 -73
- /package/build/commands/{ai → content}/file.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draftRelease.d.ts","sourceRoot":"","sources":["../../../src/commands/orchestration/draftRelease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CA8GN"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { handleApiCall, outputJson, parseJson } from "../runHandler.js";
|
|
2
|
-
export function registerDraftReleaseCommands(parent, getApi) {
|
|
3
|
-
const draftRelease = parent
|
|
4
|
-
.command("draft-release")
|
|
5
|
-
.description("Draft release operations");
|
|
6
|
-
draftRelease
|
|
7
|
-
.command("get")
|
|
8
|
-
.description("Get draft release for a workflow")
|
|
9
|
-
.requiredOption("--workflow-uuid <uuid>", "Workflow UUID")
|
|
10
|
-
.action(async (opts) => {
|
|
11
|
-
const api = getApi();
|
|
12
|
-
const result = await handleApiCall(() => api.orchestration.draftRelease.get({
|
|
13
|
-
workflowUuid: opts.workflowUuid,
|
|
14
|
-
}));
|
|
15
|
-
outputJson(result);
|
|
16
|
-
});
|
|
17
|
-
draftRelease
|
|
18
|
-
.command("deploy")
|
|
19
|
-
.description("Deploy draft release")
|
|
20
|
-
.requiredOption("--workflow-uuid <uuid>", "Workflow UUID")
|
|
21
|
-
.option("--version <version>", "Release version (e.g. '1.0.0', '1.1.0', '1.0.1', etc.)")
|
|
22
|
-
.requiredOption("--nodes <json>", "Nodes (JSON array of node definitions)")
|
|
23
|
-
.requiredOption("--form-fields <json>", "Form fields (JSON array, or 'null')")
|
|
24
|
-
.option("--description <text>", "Release description")
|
|
25
|
-
.option("--options <json>", "Options (JSON object)")
|
|
26
|
-
.action(async (opts) => {
|
|
27
|
-
const api = getApi();
|
|
28
|
-
const result = await handleApiCall(() => api.orchestration.draftRelease.deploy({
|
|
29
|
-
workflowUuid: opts.workflowUuid,
|
|
30
|
-
version: opts.version,
|
|
31
|
-
nodes: parseJson(opts.nodes, "--nodes"),
|
|
32
|
-
formFields: opts.formFields === "null"
|
|
33
|
-
? null
|
|
34
|
-
: parseJson(opts.formFields, "--form-fields"),
|
|
35
|
-
description: opts.description,
|
|
36
|
-
options: opts.options !== undefined
|
|
37
|
-
? parseJson(opts.options, "--options")
|
|
38
|
-
: undefined,
|
|
39
|
-
}));
|
|
40
|
-
outputJson(result);
|
|
41
|
-
});
|
|
42
|
-
draftRelease
|
|
43
|
-
.command("update")
|
|
44
|
-
.description("Update draft release")
|
|
45
|
-
.requiredOption("--workflow-uuid <uuid>", "Workflow UUID")
|
|
46
|
-
.option("--parent-uuid <uuid>", "Parent release UUID")
|
|
47
|
-
.option("--nodes <json>", "Nodes (JSON array of node definitions)")
|
|
48
|
-
.option("--test-records <json>", "Test records (JSON array)")
|
|
49
|
-
.option("--form-fields <json>", "Form fields (JSON array, or 'null')")
|
|
50
|
-
.option("--options <json>", "Options (JSON object)")
|
|
51
|
-
.action(async (opts) => {
|
|
52
|
-
const api = getApi();
|
|
53
|
-
const result = await handleApiCall(() => api.orchestration.draftRelease.update({
|
|
54
|
-
workflowUuid: opts.workflowUuid,
|
|
55
|
-
parentUuid: opts.parentUuid,
|
|
56
|
-
nodes: opts.nodes !== undefined
|
|
57
|
-
? parseJson(opts.nodes, "--nodes")
|
|
58
|
-
: undefined,
|
|
59
|
-
testRecords: opts.testRecords !== undefined
|
|
60
|
-
? parseJson(opts.testRecords, "--test-records")
|
|
61
|
-
: undefined,
|
|
62
|
-
formFields: opts.formFields === "null"
|
|
63
|
-
? null
|
|
64
|
-
: opts.formFields !== undefined
|
|
65
|
-
? parseJson(opts.formFields, "--form-fields")
|
|
66
|
-
: undefined,
|
|
67
|
-
options: opts.options !== undefined
|
|
68
|
-
? parseJson(opts.options, "--options")
|
|
69
|
-
: undefined,
|
|
70
|
-
}));
|
|
71
|
-
outputJson(result);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
File without changes
|