@cargo-ai/cli 1.0.106 → 1.0.107
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../src/commands/hosting/worker.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAQxC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../src/commands/hosting/worker.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAQxC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,GAAG,GAChB,IAAI,CAoPN"}
|
|
@@ -56,12 +56,14 @@ export function registerWorkerCommands(parent, getApi) {
|
|
|
56
56
|
.option("--name <name>", "New display name")
|
|
57
57
|
.option("--folder-uuid <uuid>", "New folder UUID (pass 'null' to move to the workspace root)")
|
|
58
58
|
.option("--triggers <json>", "Full replacement list of cron triggers (pass '[]' to remove all)")
|
|
59
|
+
.option("--run-as-user-uuid <uuid>", "Service user the worker runs as (pass 'null' to clear). Cargo then binds a temporary CARGO_API_TOKEN for that user.")
|
|
59
60
|
.action(async (opts) => {
|
|
60
61
|
const api = getApi();
|
|
61
62
|
const result = await handleApiCall(() => api.hosting.worker.update({
|
|
62
63
|
uuid: opts.uuid,
|
|
63
64
|
name: opts.name,
|
|
64
65
|
folderUuid: opts.folderUuid === "null" ? null : opts.folderUuid,
|
|
66
|
+
runAsUserUuid: opts.runAsUserUuid === "null" ? null : opts.runAsUserUuid,
|
|
65
67
|
triggers: opts.triggers !== undefined
|
|
66
68
|
? parseJson(opts.triggers, "--triggers")
|
|
67
69
|
: undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/commands/workspaceManagement/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/commands/workspaceManagement/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAGxC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,IAAI,CAsM7E"}
|
|
@@ -30,15 +30,16 @@ Examples:
|
|
|
30
30
|
user
|
|
31
31
|
.command("create")
|
|
32
32
|
.description("Invite a user to the workspace")
|
|
33
|
-
.requiredOption("--
|
|
33
|
+
.requiredOption("--email <email>", "User email address (string, required)")
|
|
34
34
|
.requiredOption("--role-slug <slug>", "Role slug to assign (string, required)")
|
|
35
35
|
.addHelpText("after", `
|
|
36
36
|
Example:
|
|
37
|
-
$ cargo-ai workspaceManagement user create --
|
|
37
|
+
$ cargo-ai workspaceManagement user create --email alice@example.com --role-slug admin`)
|
|
38
38
|
.action(async (opts) => {
|
|
39
39
|
const api = getApi();
|
|
40
40
|
const result = await handleApiCall(() => api.workspaceManagement.user.create({
|
|
41
|
-
|
|
41
|
+
kind: "person",
|
|
42
|
+
email: opts.email,
|
|
42
43
|
roleSlug: opts.roleSlug,
|
|
43
44
|
}));
|
|
44
45
|
outputJson(result);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cargo-ai/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.107",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://getcargo.ai",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@ai-sdk/harness": "^1.0.144",
|
|
69
69
|
"@ai-sdk/harness-claude-code": "^1.0.148",
|
|
70
|
-
"@cargo-ai/api": "^1.0.
|
|
70
|
+
"@cargo-ai/api": "^1.0.89",
|
|
71
71
|
"@cargo-ai/app-sdk": "^1.0.11",
|
|
72
|
-
"@cargo-ai/cdk": "^1.0.
|
|
73
|
-
"@cargo-ai/types": "^1.0.
|
|
72
|
+
"@cargo-ai/cdk": "^1.0.102",
|
|
73
|
+
"@cargo-ai/types": "^1.0.92",
|
|
74
74
|
"@cargo-ai/utils": "^1.0.32",
|
|
75
75
|
"@cargo-ai/worker-sdk": "^1.0.20",
|
|
76
76
|
"@modelcontextprotocol/sdk": "^1.31.0",
|