teamclaws 2.0.25 → 2.0.27
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 +12 -12
- package/dist/app.js +2 -2
- package/dist/constants.js +1 -1
- package/dist/projects.js +31 -9
- package/dist/shell.js +24 -8
- package/dist/target-authorization.js +31 -0
- package/package.json +1 -1
- package/skills/teamclaws-login/SKILL.md +3 -0
- package/skills/teamclaws-onboard/SKILL.md +6 -0
- package/skills/teamclaws-onboard/references/workspace-uses.md +6 -3
- package/skills/teamclaws-pair/SKILL.md +7 -11
- package/skills/teamclaws-project/SKILL.md +18 -11
- package/skills/teamclaws-project/references/project-lifecycle.md +2 -2
package/README.md
CHANGED
|
@@ -94,7 +94,7 @@ shared workflow for login, alias-based user-selected pairing (including a single
|
|
|
94
94
|
workspace), additional pairings, project transfer, and optional public/private
|
|
95
95
|
live hosting. Login and pairing mechanics remain in their respective skills;
|
|
96
96
|
[teamclaws-project](skills/teamclaws-project/SKILL.md) covers project work through
|
|
97
|
-
the existing
|
|
97
|
+
the existing workspace shell. Status-only requests do not start onboarding.
|
|
98
98
|
|
|
99
99
|
Before any browser authorization, the agent explains the process: sign this
|
|
100
100
|
computer's CLI into the user's TeamClaws account through the browser, choose a
|
|
@@ -432,18 +432,18 @@ to a specific request, so neither command checks for later conversation turns.
|
|
|
432
432
|
|
|
433
433
|
## Host shell commands
|
|
434
434
|
|
|
435
|
-
For authorized workspace administration,
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
TCChat conversation is not required for paired-shell access; remote chat is a
|
|
440
|
-
separate operation.
|
|
435
|
+
For authorized workspace administration, sign in with `teamclaws login <email>`
|
|
436
|
+
and select a workspace through `teamclaws servers list --json`. Shell access
|
|
437
|
+
does not require a saved device pairing, linked AI provider, or TCChat conversation.
|
|
438
|
+
TeamClaws checks the signed-in account's workspace access for each shell proof.
|
|
441
439
|
|
|
442
|
-
`teamclaws shell <target> --command <text> [--json]`
|
|
443
|
-
|
|
440
|
+
`teamclaws shell <target> --command <text> [--json]` executes the exact command
|
|
441
|
+
text on the workspace host. An existing saved pairing keeps its current
|
|
442
|
+
authentication path. Without one, the CLI resolves the exact stable identifier
|
|
443
|
+
or canonical workspace address through account discovery and obtains a
|
|
444
|
+
machine-bound shell proof. It saves neither the proof nor a pairing. Quote the
|
|
444
445
|
command as one local shell argument; quotes, pipes and newlines inside that
|
|
445
|
-
argument are preserved.
|
|
446
|
-
directory. The command does not log in, pair, or load chat capabilities.
|
|
446
|
+
argument are preserved. Use `pwd` in the command to inspect the workspace working directory. The command does not log in, pair, or load chat capabilities.
|
|
447
447
|
|
|
448
448
|
Normal mode forwards stdout and stderr without adding text. JSON mode emits one
|
|
449
449
|
object with `stdout`, `stderr`, and `exit_code`. Both modes return the remote
|
|
@@ -588,4 +588,4 @@ repeat the remote mutation. Existing login and pairing credentials are unchanged
|
|
|
588
588
|
|
|
589
589
|
## Shared project lifecycle
|
|
590
590
|
|
|
591
|
-
Use `teamclaws projects list|create|rename|delete|hide|show <target>` to manage saved projects and host directories
|
|
591
|
+
Use `teamclaws projects list|create|rename|delete|hide|show <target>` to manage saved projects and host directories with account login, without requiring a saved device pairing. Existing paired connections keep their authentication path. Projects are shared by default; hiding is personal. Mutations require `--request-id <uuid>`. Deletion keeps files unless `--delete-directory` is explicitly supplied, and always preserves conversations. Superusers cannot delete owner-created projects through these operations. See the [project lifecycle contract](skills/teamclaws-project/references/project-lifecycle.md) for complete arguments, permissions, receipts and recovery.
|
package/dist/app.js
CHANGED
|
@@ -157,12 +157,12 @@ export async function run(arguments_, dependencies = {}, signal) {
|
|
|
157
157
|
await targetAuthorization.requireGrant();
|
|
158
158
|
switch (parsed.action) {
|
|
159
159
|
case "projects": {
|
|
160
|
-
const result = await runProjects(store, dependencies.fetcher ?? fetch, parsePairingTarget(parsed.target), parsed.projectRequest, targetAuthorization, signal);
|
|
160
|
+
const result = await runProjects(store, dependencies.fetcher ?? fetch, parsePairingTarget(parsed.target), parsed.projectRequest, targetAuthorization, broker, signal);
|
|
161
161
|
stdout.write(`${JSON.stringify(result, null, parsed.json ? undefined : 2)}\n`);
|
|
162
162
|
return result.ok === true ? 0 : 1;
|
|
163
163
|
}
|
|
164
164
|
case "shell": {
|
|
165
|
-
const result = await runShell(store, dependencies.fetcher ?? shellFetch, parsePairingTarget(parsed.target), parsed.command, targetAuthorization, signal);
|
|
165
|
+
const result = await runShell(store, dependencies.fetcher ?? shellFetch, parsePairingTarget(parsed.target), parsed.command, targetAuthorization, broker, signal);
|
|
166
166
|
if (parsed.json)
|
|
167
167
|
stdout.write(`${JSON.stringify(result)}\n`);
|
|
168
168
|
else {
|
package/dist/constants.js
CHANGED
package/dist/projects.js
CHANGED
|
@@ -1,18 +1,40 @@
|
|
|
1
1
|
import { TeamClawsError } from "./errors.js";
|
|
2
|
-
import { errorFromResponse } from "./http.js";
|
|
2
|
+
import { errorFromResponse, requestJson } from "./http.js";
|
|
3
3
|
import { requestTargetJson, } from "./target-authorization.js";
|
|
4
4
|
import { isObject } from "./validation.js";
|
|
5
|
-
export async function runProjects(store, fetcher, target, data, authorization, signal) {
|
|
5
|
+
export async function runProjects(store, fetcher, target, data, authorization, broker, signal) {
|
|
6
6
|
const credential = await store.findWorkspace(target);
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
let accountServer;
|
|
8
|
+
if (!credential) {
|
|
9
|
+
const inventory = await broker.servers(signal);
|
|
10
|
+
const matches = inventory.servers.filter((server) => "server_id" in target
|
|
11
|
+
? server.server_id === target.server_id
|
|
12
|
+
: new URL(server.workspace_url).origin ===
|
|
13
|
+
new URL(target.workspace_url).origin);
|
|
14
|
+
if (matches.length !== 1)
|
|
15
|
+
throw new TeamClawsError("target_unavailable", "The selected workspace is not available to this TeamClaws account.", { exitCode: 3 });
|
|
16
|
+
accountServer = matches[0];
|
|
17
|
+
}
|
|
9
18
|
let response;
|
|
10
19
|
try {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
20
|
+
if (credential) {
|
|
21
|
+
response = await requestTargetJson(fetcher, authorization, `${credential.origin}/teamclaws-admin/api/projects/`, credential, {
|
|
22
|
+
method: data.action === "list" ? "GET" : "POST",
|
|
23
|
+
...(data.action === "list" ? {} : { body: data }),
|
|
24
|
+
...(signal ? { signal } : {}),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
const server = accountServer;
|
|
29
|
+
const url = `${new URL(server.workspace_url).origin}/teamclaws-admin/api/projects/`;
|
|
30
|
+
const method = data.action === "list" ? "GET" : "POST";
|
|
31
|
+
response = await requestJson(fetcher, url, {
|
|
32
|
+
method,
|
|
33
|
+
headers: await authorization.headersForAccountShell(method, url, server, signal),
|
|
34
|
+
...(data.action === "list" ? {} : { body: data }),
|
|
35
|
+
...(signal ? { signal } : {}),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
16
38
|
}
|
|
17
39
|
catch (error) {
|
|
18
40
|
if (data.action === "list")
|
package/dist/shell.js
CHANGED
|
@@ -2,22 +2,38 @@ import { request as httpRequest } from "node:http";
|
|
|
2
2
|
import { request as httpsRequest } from "node:https";
|
|
3
3
|
import { Readable } from "node:stream";
|
|
4
4
|
import { TeamClawsError } from "./errors.js";
|
|
5
|
-
import { errorFromResponse } from "./http.js";
|
|
5
|
+
import { errorFromResponse, requestJson } from "./http.js";
|
|
6
6
|
import { requestTargetJson } from "./target-authorization.js";
|
|
7
7
|
import { isObject } from "./validation.js";
|
|
8
|
-
export async function runShell(store, fetcher, target, command, authorization, signal) {
|
|
8
|
+
export async function runShell(store, fetcher, target, command, authorization, broker, signal) {
|
|
9
9
|
const credential = await store.findWorkspace(target);
|
|
10
|
-
|
|
11
|
-
throw new TeamClawsError("re_pair_required", "No saved pairing was found for this workspace. Pair it first.", { exitCode: 3 });
|
|
12
|
-
}
|
|
13
|
-
const url = `${credential.origin}/teamclaws-admin/api/shell/`;
|
|
14
|
-
const response = await requestTargetJson(fetcher, authorization, url, credential, {
|
|
10
|
+
const options = {
|
|
15
11
|
method: "POST",
|
|
16
12
|
textBody: command,
|
|
17
13
|
timeoutMs: null,
|
|
18
14
|
responseLimitBytes: null,
|
|
19
15
|
...(signal ? { signal } : {}),
|
|
20
|
-
}
|
|
16
|
+
};
|
|
17
|
+
let response;
|
|
18
|
+
if (credential) {
|
|
19
|
+
const url = `${credential.origin}/teamclaws-admin/api/shell/`;
|
|
20
|
+
response = await requestTargetJson(fetcher, authorization, url, credential, options);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
const inventory = await broker.servers(signal);
|
|
24
|
+
const matches = inventory.servers.filter((server) => "server_id" in target
|
|
25
|
+
? server.server_id === target.server_id
|
|
26
|
+
: new URL(server.workspace_url).origin ===
|
|
27
|
+
new URL(target.workspace_url).origin);
|
|
28
|
+
if (matches.length !== 1)
|
|
29
|
+
throw new TeamClawsError("target_unavailable", "The selected workspace is not available to this TeamClaws account.", { exitCode: 3 });
|
|
30
|
+
const server = matches[0];
|
|
31
|
+
const url = `${new URL(server.workspace_url).origin}/teamclaws-admin/api/shell/`;
|
|
32
|
+
response = await requestJson(fetcher, url, {
|
|
33
|
+
...options,
|
|
34
|
+
headers: await authorization.headersForAccountShell("POST", url, server, signal),
|
|
35
|
+
});
|
|
36
|
+
}
|
|
21
37
|
if (response.status !== 200)
|
|
22
38
|
throw errorFromResponse(response, "shell_failed");
|
|
23
39
|
const result = response.body;
|
|
@@ -80,6 +80,37 @@ export class TargetAuthorization {
|
|
|
80
80
|
DPoP: await this.dpop(grant.machine_key, method, url, proof, pairingAuthorization),
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
+
async headersForAccountShell(method, url, server, signal) {
|
|
84
|
+
const grant = await this.requireGrant();
|
|
85
|
+
if (new URL(url).origin !== new URL(server.workspace_url).origin)
|
|
86
|
+
throw new TeamClawsError("target_mismatch", "The request target does not match the selected workspace.", { exitCode: 9 });
|
|
87
|
+
const exchangeUrl = `${API_V2_BASE}authorizations/${grant.authorization_id}/shell-proofs/`;
|
|
88
|
+
const exchange = await requestJson(this.fetcher, exchangeUrl, {
|
|
89
|
+
method: "POST",
|
|
90
|
+
headers: {
|
|
91
|
+
DPoP: await this.dpop(grant.machine_key, "POST", exchangeUrl),
|
|
92
|
+
},
|
|
93
|
+
body: { server_id: server.server_id, scope: "workspace:shell" },
|
|
94
|
+
...(signal ? { signal } : {}),
|
|
95
|
+
});
|
|
96
|
+
if (exchange.status < 200 || exchange.status >= 300)
|
|
97
|
+
throw errorFromResponse(exchange, "target_proof_denied");
|
|
98
|
+
if (!isObject(exchange.body) ||
|
|
99
|
+
exchange.body.token_type !== "DPoP" ||
|
|
100
|
+
exchange.body.scope !== "workspace:shell" ||
|
|
101
|
+
typeof exchange.body.access_token !== "string" ||
|
|
102
|
+
exchange.body.access_token.length < 16 ||
|
|
103
|
+
exchange.body.access_token.length > 8192 ||
|
|
104
|
+
!Number.isInteger(exchange.body.expires_in) ||
|
|
105
|
+
exchange.body.expires_in < 1 ||
|
|
106
|
+
exchange.body.expires_in > 300)
|
|
107
|
+
throw new TeamClawsError("invalid_response", "TeamClaws returned an invalid shell proof.", { exitCode: 9 });
|
|
108
|
+
const proof = exchange.body.access_token;
|
|
109
|
+
return {
|
|
110
|
+
Authorization: `DPoP ${proof}`,
|
|
111
|
+
DPoP: await this.dpop(grant.machine_key, method, url, proof),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
83
114
|
async dpop(key, method, url, targetProof, pairingAuthorization) {
|
|
84
115
|
const parsed = new URL(url);
|
|
85
116
|
if (parsed.protocol !== "https:" || parsed.username || parsed.password)
|
package/package.json
CHANGED
|
@@ -52,6 +52,9 @@ show browser approval only if the CLI requests it. If onboarding
|
|
|
52
52
|
already explained the process, use a short transition into this step. Give the
|
|
53
53
|
approval link with that context, never as an unexplained authorization request.
|
|
54
54
|
|
|
55
|
+
After login, authorized shell commands can run on a selected workspace without
|
|
56
|
+
a saved device pairing. Do not start pairing for a shell-only request.
|
|
57
|
+
|
|
55
58
|
Pairing connects this computer to the workspace. It does not add a person as a
|
|
56
59
|
workspace user; user membership is a separate privilege.
|
|
57
60
|
|
|
@@ -90,6 +90,12 @@ of browser approval. After `login_complete` and exit 0, confirm the account and
|
|
|
90
90
|
immediately continue to workspace discovery. Denial, expiry, and network failure
|
|
91
91
|
are distinct failures; report the actual result without claiming success.
|
|
92
92
|
|
|
93
|
+
For project or file work using the workspace shell, or saved-project lifecycle
|
|
94
|
+
requests, discover the selected workspace and run the authorized `teamclaws shell`
|
|
95
|
+
or `teamclaws projects` command after login. A saved device pairing is not
|
|
96
|
+
required; do not start the pairing journey for that work. Existing project
|
|
97
|
+
permissions and request receipts apply.
|
|
98
|
+
|
|
93
99
|
## Choose workspaces
|
|
94
100
|
|
|
95
101
|
Run `teamclaws servers list --json`. Use only a successful `servers_list` event;
|
|
@@ -12,10 +12,13 @@ A TeamClaws workspace provides a VPS: a virtual private server with its own
|
|
|
12
12
|
server environment, storage, installed tools, and running processes. Within the
|
|
13
13
|
account's permissions and the machine's resources, it can hold complete projects
|
|
14
14
|
and execute their workloads. The official CLI can launch commands through the
|
|
15
|
-
|
|
15
|
+
workspace shell, place authorized files on the machine, inspect results, and help
|
|
16
16
|
set up applications and services. A linked AI provider is not required for shell
|
|
17
|
-
work.
|
|
18
|
-
|
|
17
|
+
work. Shell and saved-project lifecycle commands can use account login without a
|
|
18
|
+
saved device pairing; the CLI checks account access and binds each request to
|
|
19
|
+
this computer. Existing project permissions and request receipts apply.
|
|
20
|
+
There is no dedicated `teamclaws deploy` or file-transfer command; use the
|
|
21
|
+
workspace shell and the project skill's supported transfer and hosting procedures.
|
|
19
22
|
|
|
20
23
|
Think of it as a workshop the user and their agents can reach from different
|
|
21
24
|
places. A user who prefers concrete examples may find "a computer that can keep
|
|
@@ -139,22 +139,18 @@ still stops at its status result.
|
|
|
139
139
|
|
|
140
140
|
## Authorized workspace administration
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
before assuming that a linked AI provider or TCChat conversation is needed:
|
|
144
|
-
|
|
145
|
-
```text
|
|
146
|
-
teamclaws pair status <stable-server-identifier-or-canonical-workspace-address> --json
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
If it reports `not_paired`, follow the login and pairing flow above for that
|
|
150
|
-
selected workspace; follow browser approval only if `pairing_browser_required` is emitted. Do not use
|
|
151
|
-
another workspace's pairing or bypass approval. After `paired` is verified,
|
|
152
|
-
authorized host commands can use the existing paired shell:
|
|
142
|
+
For authorized host shell work on a selected workspace, use:
|
|
153
143
|
|
|
154
144
|
```text
|
|
155
145
|
teamclaws shell <target> --command <one-quoted-command-argument> --json
|
|
156
146
|
```
|
|
157
147
|
|
|
148
|
+
A valid CLI login is required. Without a saved device pairing, the CLI discovers
|
|
149
|
+
the selected workspace and requests an account-authorized, machine-bound shell
|
|
150
|
+
proof. Do not start pairing merely to run a shell command. Existing saved
|
|
151
|
+
pairings retain their current authentication path. Shell authorization does not
|
|
152
|
+
add a workspace user or create a device pairing.
|
|
153
|
+
|
|
158
154
|
Check the shell result's `exit_code` and verify the requested outcome. Do not
|
|
159
155
|
retry a command automatically after an uncertain transport failure. Device
|
|
160
156
|
pairing and a linked AI provider are separate; the shell does not require a
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: teamclaws-project
|
|
3
|
-
description: Find and retrieve authorized files from
|
|
3
|
+
description: Find and retrieve authorized files from an authorized TeamClaws workspace, or put files, jobs, agents, and projects there and run them.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Put work on a TeamClaws server
|
|
7
7
|
|
|
8
8
|
Use the conversation sequence in [teamclaws-onboard](../teamclaws-onboard/SKILL.md).
|
|
9
|
-
Ask for the project if missing and the
|
|
9
|
+
Ask for the project if missing and the destination workspace if ambiguous. Inspect
|
|
10
10
|
its files and instructions before asking for configuration already present.
|
|
11
11
|
Preserve the source unless the user explicitly requests deletion. Do not copy
|
|
12
12
|
provider credentials, CLI login files, device credentials, or unrelated secrets.
|
|
@@ -18,7 +18,7 @@ For ideas and the requirements behind them, read the onboarding skill's
|
|
|
18
18
|
already named the job, files, agent, or project and asked you to run or deploy it,
|
|
19
19
|
carry that task through instead of restarting a generic onboarding conversation.
|
|
20
20
|
Inspect the destination's instructions, available runtimes, resources, network
|
|
21
|
-
access, and account permissions through the
|
|
21
|
+
access, and account permissions through the workspace shell before choosing a setup.
|
|
22
22
|
|
|
23
23
|
Pairing connects this computer to the workspace. It does not add a person as a
|
|
24
24
|
workspace user; user membership is a separate privilege.
|
|
@@ -40,6 +40,12 @@ and verification. Projects are visible workspace-wide by default; hiding is pers
|
|
|
40
40
|
A non-owner superuser cannot delete an owner-created project through this functionality.
|
|
41
41
|
These commands do not change unrelated shell or filesystem access.
|
|
42
42
|
|
|
43
|
+
A valid CLI account login can authorize `teamclaws shell` and the dedicated
|
|
44
|
+
`teamclaws projects` lifecycle commands without a saved device pairing. Do not
|
|
45
|
+
start pairing merely to run those commands. Project permissions and request
|
|
46
|
+
receipts remain unchanged. File transfer uses that same workspace shell and
|
|
47
|
+
does not require a saved device pairing.
|
|
48
|
+
|
|
43
49
|
## Jobs, services, and external systems
|
|
44
50
|
|
|
45
51
|
For a complete job, place its code and authorized inputs in a dedicated directory,
|
|
@@ -66,10 +72,11 @@ Only claim a CLI-to-browser handoff for the same conversation when supported and
|
|
|
66
72
|
verified. Sharing access requires the user's intended recipients and permissions
|
|
67
73
|
and the workspace's supported sharing controls.
|
|
68
74
|
|
|
69
|
-
## Transfer through the existing
|
|
75
|
+
## Transfer through the existing workspace shell
|
|
70
76
|
|
|
71
|
-
Prerequisites: valid TeamClaws CLI login,
|
|
72
|
-
|
|
77
|
+
Prerequisites: valid TeamClaws CLI login, access to the selected stable server
|
|
78
|
+
identifier, and user authorization for the selected project/data. A saved device
|
|
79
|
+
pairing is optional; existing paired connections retain their authentication path. Use:
|
|
73
80
|
|
|
74
81
|
```text
|
|
75
82
|
teamclaws shell <server-id> --command <one-quoted-command-argument> --json
|
|
@@ -89,7 +96,7 @@ Default shared documents, reports, findings, and transfers to the provisioned
|
|
|
89
96
|
`handoffs` directory unless the user names another destination. Keep projects in
|
|
90
97
|
their selected directories; do not change the general working directory or move them.
|
|
91
98
|
|
|
92
|
-
Discover the exact shared path through the existing
|
|
99
|
+
Discover the exact shared path through the existing workspace shell:
|
|
93
100
|
|
|
94
101
|
```text
|
|
95
102
|
teamclaws shell <server-id> --command 'printf "%s\n" "$TEAMCLAWS_HANDOFFS_DIR"' --json
|
|
@@ -125,12 +132,12 @@ for a full path:
|
|
|
125
132
|
and `/var/tmp/`. These are temporary locations, not durable storage.
|
|
126
133
|
- The shared workspace, commonly `/home/teamclaws_user/`, including documented
|
|
127
134
|
project, artifact, or handoff directories in `LOCAL_AGENT.md` or project instructions.
|
|
128
|
-
- The
|
|
135
|
+
- The execution user's `$HOME` and its `workspace/` directory. This private home
|
|
129
136
|
can differ from the shared workspace and from another agent's home.
|
|
130
137
|
|
|
131
138
|
These are likely locations, not a guarantee that every directory exists or is
|
|
132
139
|
shared with every identity. Inspect the actual paths and permissions. A
|
|
133
|
-
provider's private temporary namespace may differ from the
|
|
140
|
+
provider's private temporary namespace may differ from the workspace shell's `/tmp`.
|
|
134
141
|
Do not change permissions or switch identities to search inaccessible locations.
|
|
135
142
|
|
|
136
143
|
Search the named directory and its children for the exact filename first;
|
|
@@ -146,7 +153,7 @@ directory symlinks explicitly without following them outside the authorized scop
|
|
|
146
153
|
|
|
147
154
|
If the file is still unfound, report the actual searched locations and access
|
|
148
155
|
failures before asking for its full path or originating chat/project. To retrieve
|
|
149
|
-
a found non-secret file, return its bytes through the
|
|
156
|
+
a found non-secret file, return its bytes through the workspace shell (base64 is
|
|
150
157
|
suitable), save them locally, and compare the remote and saved SHA-256 hashes.
|
|
151
158
|
Preserve the remote original and do not print encoded file contents unnecessarily.
|
|
152
159
|
|
|
@@ -209,7 +216,7 @@ permission to access it. It is not open to the general public.”
|
|
|
209
216
|
|
|
210
217
|
Both choices run live on TeamClaws. Carry out the user's selection using the
|
|
211
218
|
workspace's supported hosting mechanisms. Read its machine instructions and
|
|
212
|
-
runtime capability manifest through the
|
|
219
|
+
runtime capability manifest through the workspace shell, then follow its assigned
|
|
213
220
|
hosting skill if present. Do not assume an assigned skill exists on every host.
|
|
214
221
|
|
|
215
222
|
Use a separate application directory, service, data store, and configuration.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Project lifecycle commands
|
|
2
2
|
|
|
3
|
-
Prerequisites: installed matching CLI/server releases, valid account sign-in,
|
|
3
|
+
Prerequisites: installed matching CLI/server releases, valid account sign-in, and the user's instruction for the operation. A saved device pairing is optional; existing pairings retain their authentication path. Use a stable workspace ID as `<target>`.
|
|
4
4
|
|
|
5
5
|
```text
|
|
6
6
|
teamclaws projects list <target> --json
|
|
@@ -24,4 +24,4 @@ Deletion normally removes only the saved project entry and detaches its chat ref
|
|
|
24
24
|
|
|
25
25
|
Require exit code zero and `ok=true`; inspect returned project ID/name/path and directory/record outcome fields. List again for current state: a request retry returns the original receipt, not fresh state. `record_deleted=true` does not mean files were deleted. `directory_exists=true` is expected after record-only removal. Report `partial_failure` and its exact saved/host outcomes accurately and resolve them before claiming completion.
|
|
26
26
|
|
|
27
|
-
`outcome_unverified` is not success. Retry only the exact request with its original UUID.
|
|
27
|
+
`outcome_unverified` is not success. Retry only the exact request with its original UUID. Without a saved pairing, the CLI resolves the selected workspace through the account inventory and uses the existing account-shell proof with machine-bound DPoP. Do not start pairing merely for a project operation; owner-protected, authorization-denied, unsupported-server, and path-collision responses do not authorize credential or database fallbacks. These dedicated operations invoke the existing `GET`/`POST /teamclaws-admin/api/projects/` endpoint. This endpoint accepts the existing `workspace:shell` account authority for project lifecycle operations only, with fresh grant, machine, workspace entitlement and roster checks. It does not add account-shell authentication to any other API. The server derives the actor from authentication and applies unchanged project, path, owner and sudo policy. Credentials stay in the CLI's existing storage and request pipeline; no device credential or pairing is fabricated or saved.
|