teamclaws 2.0.27 → 2.0.29

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 CHANGED
@@ -1,12 +1,8 @@
1
1
  # TeamClaws client
2
2
 
3
- The official TeamClaws command-line client pairs a filesystem-capable computer
4
- with a TeamClaws workspace and stores the resulting Clawgate credential on that
5
- computer. The command-line client and its agent skills ship together in this
6
- package.
7
-
8
- Pairing connects this computer to the workspace. It does not add a person as a
9
- workspace user; user membership is a separate privilege.
3
+ The official TeamClaws command-line client helps users and agents get projects
4
+ running on their cloud workspaces: sign in, choose a server, transfer files,
5
+ configure the project, and run it. The CLI and its agent skills ship together.
10
6
 
11
7
  ## Requirements
12
8
 
@@ -72,11 +68,11 @@ blocks signup; an authoritatively revoked login can be cleared by the normal
72
68
  status check. Network failures preserve local state and stop.
73
69
 
74
70
  Success uses the normal `login_complete` event and saved CLI authorization.
75
- Then list workspaces. A new account normally needs a workspace: continue to
76
- https://teamclaws.com/pricing/ and choose and purchase a plan within the authority
77
- already granted. Ask only for missing decisions or authority. Use the user's
78
- workspace selection for pairing. The CLI itself does not read email, open a
79
- browser, buy a workspace, or pair one during signup.
71
+ Immediately list workspaces to show the new account's automatic free server
72
+ building, including its actual state, creation time and build estimate. Prepare
73
+ the project while the server becomes ready, then use account-authorized shell
74
+ and project commands to get it running. The CLI itself does not read email,
75
+ open a browser, buy a workspace, or pair one during signup.
80
76
  Do not automatically retry a rejected or uncertain exchange. If the account was
81
77
  created but its successful response was lost, browser login is the recovery path.
82
78
 
@@ -90,21 +86,20 @@ Older `/tcpair` and `/tcdeploy` instructions are retired; use the bundled skills
90
86
  Start with [teamclaws-onboard](skills/teamclaws-onboard/SKILL.md). For a global
91
87
  installation, `npm root -g` locates the package root; read
92
88
  `teamclaws/skills/teamclaws-onboard/SKILL.md` beneath it. The package contains one
93
- shared workflow for login, alias-based user-selected pairing (including a single
94
- workspace), additional pairings, project transfer, and optional public/private
95
- live hosting. Login and pairing mechanics remain in their respective skills;
89
+ shared workflow for login, workspace selection, project transfer and setup,
90
+ and verified public/private live hosting. Login and explicit device-pairing
91
+ requests have their respective skills;
96
92
  [teamclaws-project](skills/teamclaws-project/SKILL.md) covers project work through
97
93
  the existing workspace shell. Status-only requests do not start onboarding.
98
94
 
99
95
  Before any browser authorization, the agent explains the process: sign this
100
96
  computer's CLI into the user's TeamClaws account through the browser, choose a
101
- workspace and pair with that server, then choose useful
102
- work and set up its environment on the server. It explains the purpose and access
97
+ workspace, and get the user's project running on the server. It explains the purpose and access
103
98
  of each approval before presenting a link, adapting to steps already completed.
104
99
  The conversation starts with that context rather than an unexplained request to
105
100
  click an authorization link.
106
101
 
107
- Pairing completes automatically when TeamClawsDeploy confirms the account owns
102
+ For a device-pairing request, pairing completes automatically when TeamClawsDeploy confirms the account owns
108
103
  the workspace or is a superuser in its access group. Browser approval is shown
109
104
  only when the target reports that approval is pending.
110
105
 
@@ -115,7 +110,7 @@ environment that must yield needs a supported completion callback or automatic
115
110
  wakeup that preserves the process; a saved skill alone cannot supply that
116
111
  runtime capability.
117
112
 
118
- After verified pairing, the agent refreshes `teamclaws servers list --json` and
113
+ After verified login, the agent runs `teamclaws servers list --json` and
119
114
  presents each workspace's name, description, and readiness in a Markdown list or
120
115
  code block, or plain text with one option per line. It then suggests concrete
121
116
  uses tied to the user's work and continues an already authorized task. An
@@ -589,3 +584,16 @@ repeat the remote mutation. Existing login and pairing credentials are unchanged
589
584
  ## Shared project lifecycle
590
585
 
591
586
  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.
587
+
588
+ ## File review links
589
+
590
+ Use [teamclaws-file-link](skills/teamclaws-file-link/SKILL.md) to show an existing
591
+ workspace file in the authenticated browser Files viewer:
592
+
593
+ ```sh
594
+ teamclaws files link <workspace-id-or-url> --path handoffs/report.md --json
595
+ ```
596
+
597
+ The command checks file readability through existing CLI shell access and returns
598
+ an encoded URL. No pairing, chat creation or agent launch is performed. Browser
599
+ sign-in, viewer permission and rendering are still checked when the link opens.
package/dist/app.js CHANGED
@@ -8,6 +8,7 @@ import { Output } from "./output.js";
8
8
  import { PairingClient } from "./pairing.js";
9
9
  import { runProjects } from "./projects.js";
10
10
  import { runShell, shellFetch } from "./shell.js";
11
+ import { fileLink } from "./file-link.js";
11
12
  import { CredentialStore } from "./storage.js";
12
13
  import { TargetAuthorization } from "./target-authorization.js";
13
14
  import { installRelease } from "./update.js";
@@ -156,6 +157,11 @@ export async function run(arguments_, dependencies = {}, signal) {
156
157
  }
157
158
  await targetAuthorization.requireGrant();
158
159
  switch (parsed.action) {
160
+ case "file_link": {
161
+ const result = await fileLink(store, dependencies.fetcher ?? shellFetch, parsePairingTarget(parsed.target), parsed.path, targetAuthorization, broker, signal);
162
+ stdout.write(parsed.json ? `${JSON.stringify(result)}\n` : `${result.url}\n`);
163
+ return 0;
164
+ }
159
165
  case "projects": {
160
166
  const result = await runProjects(store, dependencies.fetcher ?? fetch, parsePairingTarget(parsed.target), parsed.projectRequest, targetAuthorization, broker, signal);
161
167
  stdout.write(`${JSON.stringify(result, null, parsed.json ? undefined : 2)}\n`);
@@ -242,6 +248,17 @@ export async function run(arguments_, dependencies = {}, signal) {
242
248
  }
243
249
  }
244
250
  export function parseArguments(arguments_) {
251
+ if (arguments_[0] === "files" && arguments_[1] === "link") {
252
+ const target = requiredPositional(arguments_, 2);
253
+ const { values, flags } = parseNamedOptions(arguments_.slice(3), {
254
+ values: ["--path"],
255
+ booleans: ["--json"],
256
+ });
257
+ const path = values["--path"];
258
+ if (!path)
259
+ throw usageError();
260
+ return { action: "file_link", target, path, json: flags.has("--json") };
261
+ }
245
262
  if (arguments_[0] === "projects") {
246
263
  const operation = arguments_[1];
247
264
  if (!["list", "create", "rename", "delete", "hide", "show"].includes(operation ?? ""))
@@ -812,5 +829,5 @@ function usageError() {
812
829
  });
813
830
  }
814
831
  export function helpText() {
815
- return `TeamClaws ${PACKAGE_VERSION}\n\nUsage:\n teamclaws projects list <target> [--json]\n teamclaws projects create <target> --path <directory> [--create-directory] --request-id <uuid> [--json]\n teamclaws projects rename <target> --project-id <id> [--name <name>] [--path <directory>] --request-id <uuid> [--json]\n teamclaws projects delete <target> --project-id <id> [--delete-directory] --request-id <uuid> [--json]\n teamclaws projects hide|show <target> --project-id <id> --request-id <uuid> [--json]\n teamclaws update [--json]\n teamclaws shell <target> --command <text> [--json]\n teamclaws users add <target> <email> [--sudo] [--json]\n teamclaws users remove <target> <email> [--json]\n teamclaws users list <target> [--json]\n teamclaws login <email> [--json]\n teamclaws signup <email> [--json]\n teamclaws signup verify --code-stdin [--json]\n teamclaws auth status [--json]\n teamclaws logout [--revoke] [--json]\n teamclaws servers list [--json]\n teamclaws servers update <server-id> [--name <text>] [--description <text>] [--json]\n teamclaws email accounts [--json]\n teamclaws email list <server-id> [--json]\n teamclaws email set <server-id> <google|microsoft> <account-id> --policy <read_only|write_with_approval_read|write_read> [--json]\n teamclaws email remove <server-id> <google|microsoft> <account-id> [--json]\n teamclaws bug report --title <text> --body <text> [--json]\n teamclaws feedback send --title <text> --body <text> [--json]\n teamclaws git repos [--json]\n teamclaws git list <server-id> [--json]\n teamclaws git set <server-id> <repository-id> --issues <none|read|write> --contents <none|read|write> --pull-requests <none|read|write> --workflows <none|write> [--json]\n teamclaws git remove <server-id> <repository-id> [--json]\n teamclaws pair status <server-identifier-or-canonical-workspace-address> [--json]\n teamclaws pair [server-identifier-or-canonical-workspace-address] [--no-open] [--json]\n teamclaws chat list <target> [--json]\n teamclaws chat history <target> [--json]\n teamclaws chat messages <target> --chat-id <uuid> [--after-message-id <n>] [--json]\n teamclaws chat capabilities <target> [--json]\n teamclaws chat start <target> --message <text> [selection options] [--json]\n teamclaws chat send <target> --session-id <uuid> --message <text> [--json]\n teamclaws chat watch <target> --session-id <uuid> --request-id <uuid> [resume cursors] [--json]\n\nPair status performs one bounded direct verification and stops. Pairing grants the standard host-issued credential. Chat commands use that credential directly against the selected workspace.\n`;
832
+ return `TeamClaws ${PACKAGE_VERSION}\n\nUsage:\n teamclaws files link <target> --path <file> [--json]\n teamclaws projects list <target> [--json]\n teamclaws projects create <target> --path <directory> [--create-directory] --request-id <uuid> [--json]\n teamclaws projects rename <target> --project-id <id> [--name <name>] [--path <directory>] --request-id <uuid> [--json]\n teamclaws projects delete <target> --project-id <id> [--delete-directory] --request-id <uuid> [--json]\n teamclaws projects hide|show <target> --project-id <id> --request-id <uuid> [--json]\n teamclaws update [--json]\n teamclaws shell <target> --command <text> [--json]\n teamclaws users add <target> <email> [--sudo] [--json]\n teamclaws users remove <target> <email> [--json]\n teamclaws users list <target> [--json]\n teamclaws login <email> [--json]\n teamclaws signup <email> [--json]\n teamclaws signup verify --code-stdin [--json]\n teamclaws auth status [--json]\n teamclaws logout [--revoke] [--json]\n teamclaws servers list [--json]\n teamclaws servers update <server-id> [--name <text>] [--description <text>] [--json]\n teamclaws email accounts [--json]\n teamclaws email list <server-id> [--json]\n teamclaws email set <server-id> <google|microsoft> <account-id> --policy <read_only|write_with_approval_read|write_read> [--json]\n teamclaws email remove <server-id> <google|microsoft> <account-id> [--json]\n teamclaws bug report --title <text> --body <text> [--json]\n teamclaws feedback send --title <text> --body <text> [--json]\n teamclaws git repos [--json]\n teamclaws git list <server-id> [--json]\n teamclaws git set <server-id> <repository-id> --issues <none|read|write> --contents <none|read|write> --pull-requests <none|read|write> --workflows <none|write> [--json]\n teamclaws git remove <server-id> <repository-id> [--json]\n teamclaws pair status <server-identifier-or-canonical-workspace-address> [--json]\n teamclaws pair [server-identifier-or-canonical-workspace-address] [--no-open] [--json]\n teamclaws chat list <target> [--json]\n teamclaws chat history <target> [--json]\n teamclaws chat messages <target> --chat-id <uuid> [--after-message-id <n>] [--json]\n teamclaws chat capabilities <target> [--json]\n teamclaws chat start <target> --message <text> [selection options] [--json]\n teamclaws chat send <target> --session-id <uuid> --message <text> [--json]\n teamclaws chat watch <target> --session-id <uuid> --request-id <uuid> [resume cursors] [--json]\n\nPair status performs one bounded direct verification and stops. Pairing grants the standard host-issued credential. Chat commands use that credential directly against the selected workspace.\n`;
816
833
  }
package/dist/constants.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export const PACKAGE_NAME = "teamclaws";
2
- export const PACKAGE_VERSION = "2.0.27";
2
+ export const PACKAGE_VERSION = "2.0.29";
3
3
  export const CLIENT_NAME = "teamclaws-cli";
4
4
  export const CONTRACT_VERSION = 1;
5
5
  export const OUTPUT_SCHEMA_VERSION = 1;
@@ -0,0 +1,61 @@
1
+ import { TeamClawsError } from "./errors.js";
2
+ import { runShell } from "./shell.js";
3
+ import { isObject } from "./validation.js";
4
+ // The production Files viewer uses this shared root, independent of shell HOME.
5
+ export function fileLinkCommand(path) {
6
+ if (!path || path.includes("\0"))
7
+ throw new TeamClawsError("invalid_path", "A file path is required.");
8
+ const encoded = Buffer.from(path, "utf8").toString("base64");
9
+ return `python3 - <<'TEAMCLAWS_FILE_LINK'
10
+ import base64, json
11
+ from pathlib import Path
12
+ root = Path('/home/teamclaws_user').resolve(strict=True)
13
+ requested = Path(base64.b64decode('${encoded}').decode('utf-8'))
14
+ path = (requested if requested.is_absolute() else root / requested).resolve(strict=True)
15
+ relative = path.relative_to(root).as_posix()
16
+ if not path.is_file():
17
+ raise ValueError('The requested path is not a regular file')
18
+ with path.open('rb') as stream:
19
+ stream.read(1)
20
+ print(json.dumps({'path': relative}))
21
+ TEAMCLAWS_FILE_LINK`;
22
+ }
23
+ export async function fileLink(store, fetcher, target, path, authorization, broker, signal) {
24
+ const command = fileLinkCommand(path);
25
+ const inventory = await broker.servers(signal);
26
+ const matches = inventory.servers.filter((server) => "server_id" in target
27
+ ? server.server_id === target.server_id
28
+ : new URL(server.workspace_url).origin ===
29
+ new URL(target.workspace_url).origin);
30
+ if (matches.length !== 1)
31
+ throw new TeamClawsError("target_unavailable", "Select an accessible workspace.");
32
+ const server = matches[0];
33
+ const result = await runShell(store, fetcher, { server_id: server.server_id }, command, authorization, broker, signal);
34
+ if (result.exit_code !== 0)
35
+ throw new TeamClawsError("file_unavailable", "The file could not be verified as readable within the viewer's shared workspace root. No link was generated.");
36
+ let parsed;
37
+ try {
38
+ parsed = JSON.parse(result.stdout);
39
+ }
40
+ catch {
41
+ parsed = null;
42
+ }
43
+ if (!isObject(parsed) ||
44
+ typeof parsed.path !== "string" ||
45
+ !parsed.path ||
46
+ parsed.path.startsWith("/") ||
47
+ parsed.path.split("/").some((part) => part === ".."))
48
+ throw new TeamClawsError("invalid_response", "Invalid file verification response.");
49
+ const url = new URL("/teamclaws-admin/", server.workspace_url);
50
+ url.search = new URLSearchParams({
51
+ new_chat: "1",
52
+ panel: "files",
53
+ file: parsed.path,
54
+ view: "preview",
55
+ }).toString();
56
+ return {
57
+ url: url.href,
58
+ path: parsed.path,
59
+ verification: "filesystem_readable; browser viewer authorization and rendering are checked when opened",
60
+ };
61
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teamclaws",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
4
4
  "description": "Move, share and manage AI agent projects in a TeamClaws cloud workspace. CLI, MCP and agent skills for Claude, ChatGPT, Cursor, Grok and more.",
5
5
  "keywords": [
6
6
  "teamclaws",
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: teamclaws-file-link
3
+ description: Give the user an authenticated browser link to review an existing file on a TeamClaws workspace, including a handoff or report, without starting an agent.
4
+ ---
5
+
6
+ # Link to a workspace file
7
+
8
+ Run the bundled CLI command:
9
+
10
+ ```text
11
+ teamclaws files link <workspace-id-or-url> --path <file> --json
12
+ ```
13
+
14
+ Use the workspace and file the user selected. Relative paths are relative to
15
+ `/home/teamclaws_user`, the production viewer's shared workspace root, not the
16
+ shell user's home. Absolute paths within that root are also accepted.
17
+
18
+ The command resolves the workspace through the signed-in account, verifies
19
+ that the file exists and is readable through the existing shell access, and
20
+ returns an encoded `url`. It works with existing account shell access without
21
+ requiring device pairing. Do not start a pairing flow just to make a link.
22
+
23
+ Display the returned `url` unchanged as a Markdown link with a readable label.
24
+ Do not assemble query parameters yourself, create a chat, send a message, or
25
+ launch an agent. The link opens the existing new-chat Files viewer when the
26
+ user clicks it; generating it does not create a chat record.
27
+
28
+ The link requires browser sign-in and the viewer's existing authorization.
29
+ Filesystem readability is not proof of viewer access or successful rendering.
30
+ Claim a working preview only after observing it. On an error, report the exact
31
+ failure; do not offer a guessed URL, public copy, administrator identity, or
32
+ credential-sharing workaround. Do not link secrets or credentials.
@@ -31,12 +31,12 @@ blocks signup. Its normal status check may clear an authoritatively revoked
31
31
  login, but preserves state and stops on network errors. Do not automatically
32
32
  retry failed or unconfirmed signup. If an account was created and the successful
33
33
  exchange response was lost, use the existing browser-login path for recovery.
34
- After `login_complete` and exit zero, continue normal discovery. A new account
35
- normally needs a workspace: continue to https://teamclaws.com/pricing/ and choose
36
- and purchase a plan within the authority already granted. Obtain only missing
37
- plan or purchase decisions; do not repeat authorization questions. Signup itself
38
- does not buy or pair a workspace. Use an existing workspace selection, or ask
39
- which workspace to use if none was supplied.
34
+ After `login_complete` and exit zero, immediately run `teamclaws servers list
35
+ --json`. A new account's automatic free server should appear while it builds;
36
+ show its actual state, creation time and build estimate. Continue preparing the
37
+ user's project while it becomes ready. Use the selected workspace, or ask which
38
+ workspace should run the project when the destination is ambiguous. Follow the
39
+ onboarding skill if the expected server is missing.
40
40
 
41
41
  ## Existing account browser login
42
42
 
@@ -46,9 +46,8 @@ A status-only request runs only `teamclaws auth status --json` and stops.
46
46
 
47
47
  Before starting browser login, explain that the user will sign this computer's
48
48
  TeamClaws command-line client into their TeamClaws account through the browser.
49
- This connects the client to their account; workspace selection and pairing come
50
- next when they are connecting a workspace. Pairing may complete automatically;
51
- show browser approval only if the CLI requests it. If onboarding
49
+ This connects the client to their account so the agent can find their workspace
50
+ and get their project running. If onboarding
52
51
  already explained the process, use a short transition into this step. Give the
53
52
  approval link with that context, never as an unexplained authorization request.
54
53
 
@@ -76,7 +75,7 @@ handle. Do not require an "I approved" or "done" message. If the execution
76
75
  environment requires yielding, use a supported automatic completion callback or
77
76
  wakeup that preserves the process; report a limitation if neither is possible.
78
77
  Confirm the returned account after `login_complete` and exit 0, then immediately
79
- resume the authorized onboarding or pairing task. Denial, expiry, cancellation,
78
+ resume the user's selected task. Denial, expiry, cancellation,
80
79
  and failure end the attempt; report the result without automatically restarting.
81
80
  An email address is required. If the user has not provided their TeamClaws email,
82
81
  ask for it and wait for their answer before starting login. Do not guess it from
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  name: teamclaws-onboard
3
- description: Help a user connect to TeamClaws, choose workspaces to pair, and optionally move and run projects. Use for install-and-connect requests, not status-only questions.
3
+ description: Help a user sign in to TeamClaws, choose a workspace, and get their project, app, or job running there. Use for installation and getting-started requests, not status-only questions.
4
4
  ---
5
5
 
6
- # Connect to your TeamClaws workspace
6
+ # Get your project running on TeamClaws
7
7
 
8
8
  This is the shared conversation workflow for:
9
9
 
@@ -32,15 +32,12 @@ user's work and any steps already completed:
32
32
  1. For a new account, we'll create it through the CLI and verify the emailed code
33
33
  using the agent's authorized inbox access; no browser approval is needed.
34
34
  For an ordinary existing account, we'll use browser login if signed out.
35
- 2. Next, you'll choose a workspace, and we'll pair this computer with that server.
36
- Pairing completes automatically when TeamClawsDeploy confirms you own the
37
- workspace or are a superuser in its access group. Follow browser approval
38
- only if the CLI requests it. Pairing gives this computer
39
- access to run commands and work with files on the workspace.
40
- 3. Then we'll find the best work to move there and set up a clean environment for
41
- it, separate from your laptop. That could be a complete job, an agent, a service
42
- that talks to your other servers, or an entire project. We'll choose something
43
- useful for you and get it running.
35
+ 2. We'll find your workspace and check its state. A new account's automatic
36
+ free server may still be building; show that progress while preparing the project.
37
+ 3. We'll put your project there, set up what it needs, run it, and check the
38
+ result. If you already asked for a particular app or job, continue with it.
39
+ Otherwise, suggest useful work based on the conversation and ask what they'd
40
+ like to move first.
44
41
 
45
42
  Explain that you'll keep waiting during each browser approval and continue
46
43
  automatically afterward; they do not need to send a confirmation in chat. Before
@@ -50,8 +47,8 @@ or add another permission question for an already authorized step. Describe the
50
47
  separate server environment accurately; inspect an existing workspace before
51
48
  promising it is empty or that a particular isolation mechanism is configured.
52
49
 
53
- Pairing connects this computer to the workspace. It does not add a person as a
54
- workspace user; user membership is a separate privilege.
50
+ Account login authorizes workspace shell and project commands using the user's
51
+ existing access. Choose the destination by its stable server identifier.
55
52
 
56
53
  ## Sign in
57
54
 
@@ -136,43 +133,37 @@ remembered once per owner and server across devices, including a decline, so
136
133
  deliver it when received. Never offer this edit for a shared server whose
137
134
  `can_edit_metadata` is false, and never infer ownership from an alias or role.
138
135
 
139
- - `discovery_state: no_workspaces` means the broker confirmed zero workspaces
140
- accessible for pairing, including owned workspaces still being prepared.
141
- A new account normally starts here. Continue to https://teamclaws.com/pricing/
142
- to choose a plan and purchase within the authority already granted. Do not ask
143
- again for a supplied plan choice or authorized purchase. Obtain only missing
144
- decisions, then resume discovery once the workspace is ready.
145
- - `not_ready` means workspaces exist but none listed can be paired yet. Explain
146
- their state and offer to check again when ready; do not suggest another purchase.
147
- - `unknown` means the broker did not supply a complete inventory count. An empty
148
- list does not prove an empty account. Ask the user to check their workspaces at
149
- https://teamclaws.com/app/; only if they confirm they have none, direct them to
150
- https://teamclaws.com/pricing/ to purchase. Do not claim inventory support is deployed from local code alone.
151
- - With one pairing-ready workspace, show its alias and description and ask,
152
- “Would you like to pair with **[alias]** now?” Never automatically pair it.
153
- - With several, list each alias and description and ask, “Would you like to pair
154
- with any of these now?” If aliases repeat, distinguish them using their
155
- workspace addresses.
156
-
157
- For each selected workspace, follow [teamclaws-pair](../teamclaws-pair/SKILL.md)
158
- with its stable identifier. A prior explicit selection already authorizes that
159
- pairing; do not ask again. Verify existing pairing status before recreating a
160
- completed pairing. An unreachable workspace is not proof it needs re-pairing.
161
- Keep the original pairing process and your turn active through browser approval
162
- as the pairing skill specifies. Preserve remaining selections and continue
163
- automatically after terminal success; no "I approved" message is needed.
164
- After each completed pairing, refresh and present the workspace inventory as
165
- the pairing skill specifies. Continue any remaining explicitly selected pairings
166
- without asking again. Additional workspaces still require the user's selection.
167
-
168
- ## Turn the connection into useful work
136
+ - After signup, immediately list servers so the user can see their automatic
137
+ free server building. Show its actual state, creation time and returned build
138
+ estimate. Prepare the app's files and configuration while it builds, then
139
+ check the list again as work proceeds. Verify readiness through actual state
140
+ and command results.
141
+ - With one usable workspace, connect it to the user's task: “I can get your
142
+ project running on **[alias]**. Which project would you like to move?” If the
143
+ user already selected the project and destination, continue the work.
144
+ - With several workspaces and no destination selected, show their names,
145
+ descriptions and states and ask which should run the project. Distinguish
146
+ repeated names with their returned workspace addresses.
147
+ - `not_ready` describes pairing readiness; use the server's actual deployment
148
+ state and authorized shell results to determine whether the project can run.
149
+ - `discovery_state: no_workspaces` means the broker confirmed zero accessible
150
+ workspaces, including those being prepared. For a new signup, report that the
151
+ expected free server is missing and investigate the signup/provisioning
152
+ result. For an existing account, help the user review their workspaces at
153
+ https://teamclaws.com/app/ and choose an available provisioning option within
154
+ their authorization.
155
+ - `unknown` means the broker did not supply a complete inventory count. Check
156
+ the account's workspaces at https://teamclaws.com/app/ before concluding that
157
+ a server is missing. Report failed discovery as a failed request.
158
+
159
+ ## Put the project to work
169
160
 
170
161
  Read [What a workspace can do](references/workspace-uses.md) before proposing
171
162
  uses. A TeamClaws workspace is a server the user and their agents can put to
172
163
  work. Learn the range of possibilities, then select the ideas relevant to this
173
164
  user instead of reciting the entire reference.
174
165
 
175
- After showing the refreshed workspace list, connect the possibilities to the
166
+ After showing the workspace list, connect the possibilities to the
176
167
  user's known projects, tools, goals, and comfort with technical language. Show
177
168
  practical enthusiasm through concrete outcomes: a job finishing while they are
178
169
  away, a browser-accessible agent continuing work, or their app running at its
@@ -193,7 +184,17 @@ Continue work already authorized by the user without another generic permission
193
184
  question. For new work, get their choice before starting it. Follow
194
185
  [teamclaws-project](../teamclaws-project/SKILL.md) for jobs, files, services, or
195
186
  deployment; use [teamclaws-chat](../teamclaws-chat/SKILL.md) for an authorized
196
- workspace agent conversation. Ask for a project only if unspecified and a paired
187
+ workspace agent conversation. Ask for a project only if unspecified and a
197
188
  destination only if ambiguous. Transfer consent is not publication consent.
198
189
  Respect an explicit "pair only", "stop", or decline: do not add inventory,
199
190
  suggestions, or more prompts after the requested stopping point.
191
+
192
+ Use the workspace shell and project skill to transfer the selected files,
193
+ install the required dependencies, configure the app or job, and run it.
194
+ For an app, verify persistence and the intended public or private web address;
195
+ for a job, verify its result or show how to check the running work. Give the
196
+ user the working URL or result and explain where the project lives.
197
+
198
+ For an explicit request to pair a device, use
199
+ [teamclaws-pair](../teamclaws-pair/SKILL.md). Workspace agent conversations use
200
+ the chat skill's own prerequisites and capability checks.
@@ -4,7 +4,7 @@ Read this reference when helping a user decide what to put on a workspace, or
4
4
  when carrying out the work they selected. Use their vocabulary and known
5
5
  projects to turn these capabilities into specific ideas. Describe the outcome
6
6
  first, then explain the setup it needs. Be descriptive when the user wants to
7
- explore; keep an ordinary post-pairing message focused on a few relevant ideas.
7
+ explore; keep a getting-started message focused on a few relevant ideas.
8
8
 
9
9
  ## A server for the user's work
10
10
 
@@ -76,7 +76,7 @@ It can also receive webhooks or expose an API after the appropriate incoming
76
76
  HTTPS route and access controls are configured. Those requests can trigger a
77
77
  worker, update a dashboard, or start an authorized workflow. External access
78
78
  depends on network rules, destination permissions, credentials, and service
79
- limits. TeamClaws pairing supplies workspace access; the user must separately
79
+ limits. TeamClaws account authorization supplies workspace shell access; the user must separately
80
80
  authorize the external operation. Keep secrets in the host's supported secret
81
81
  mechanism and out of chat, source files, and shell command arguments.
82
82
 
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: teamclaws-pair
3
- description: Check or establish pairing with one TeamClaws workspace through the official CLI before authorized paired-shell administration.
3
+ description: Check device-pairing status or carry out a user's request to pair this computer with a selected TeamClaws workspace.
4
4
  ---
5
5
 
6
6
  # Pair with TeamClaws
7
7
 
8
- For the full install-and-connect conversation, follow
8
+ For getting a project running on a workspace, follow
9
9
  [teamclaws-onboard](../teamclaws-onboard/SKILL.md).
10
10
 
11
11
  Use the official `teamclaws` executable. Do not implement pairing inside this
@@ -131,7 +131,7 @@ report the listing failure, and do not invent an inventory or pair again.
131
131
 
132
132
  Read the onboarding skill's
133
133
  [workspace uses](../teamclaws-onboard/references/workspace-uses.md), then follow
134
- its post-pairing conversation guidance. Continue an already authorized task
134
+ its project setup guidance. Continue an already authorized task
135
135
  automatically. Otherwise suggest concrete work suited to the user and ask for
136
136
  the next choice. Listing and suggestions do not authorize another pairing,
137
137
  remote chat, file transfer, sharing change, or deployment. A status-only request
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: teamclaws-project
3
- description: Find and retrieve authorized files from an authorized TeamClaws workspace, or put files, jobs, agents, and projects there and run them.
3
+ description: Get a project, app, or job running on a TeamClaws workspace, or transfer and retrieve its authorized files through the CLI.
4
4
  ---
5
5
 
6
6
  # Put work on a TeamClaws server
@@ -240,3 +240,9 @@ anonymous request, a signed-in user without permission, and an authorized user;
240
240
  only the authorized user may access it. Public verification confirms no TeamClaws
241
241
  login requirement. Give the usable web address after verification and offer to
242
242
  handle another project when appropriate. Report incomplete checks as incomplete.
243
+
244
+ ## Show a file in the browser
245
+
246
+ For a handoff, report or other existing file the user wants to open, use
247
+ [teamclaws-file-link](../teamclaws-file-link/SKILL.md). Its CLI command validates
248
+ file readability and constructs the encoded viewer URL; do not assemble it yourself.