teamclaws 2.0.13 → 2.0.14
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 +8 -7
- package/dist/app.js +4 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -208,7 +208,7 @@ npx teamclaws pair status <server-identifier-or-canonical-workspace-address>
|
|
|
208
208
|
npx teamclaws pair
|
|
209
209
|
npx teamclaws pair <server-identifier-or-canonical-workspace-address> [--no-open]
|
|
210
210
|
npx teamclaws shell <target> --command <text> [--json]
|
|
211
|
-
npx teamclaws users add <target> <email>
|
|
211
|
+
npx teamclaws users add <target> <email> [--sudo] [--json]
|
|
212
212
|
npx teamclaws chat start <target> --message <text>
|
|
213
213
|
npx teamclaws chat send <target> --session-id <uuid> --message <text>
|
|
214
214
|
npx teamclaws chat watch <target> --session-id <uuid> --request-id <uuid>
|
|
@@ -253,9 +253,11 @@ monitoring without creating another turn.
|
|
|
253
253
|
|
|
254
254
|
## Add a workspace user directly
|
|
255
255
|
|
|
256
|
-
`teamclaws users add <target> <email> --
|
|
257
|
-
using the saved paired machine credential and its bound authorization.
|
|
258
|
-
|
|
256
|
+
`teamclaws users add <target> <email> --json` sends a direct request
|
|
257
|
+
using the saved paired machine credential and its bound authorization.
|
|
258
|
+
CLI additions always request workspace Superuser access. Role selection is
|
|
259
|
+
intentionally unavailable for now because CLI additions are admin-only.
|
|
260
|
+
Sudo remains a separate opt-in. The server
|
|
259
261
|
verifies current owner authority and the shared six-calendar-month machine
|
|
260
262
|
authorization deadline. Initial CLI login and pairing remain the normal setup.
|
|
261
263
|
|
|
@@ -271,11 +273,10 @@ The owner can include `--sudo` when inviting a `superuser` to grant full sudo
|
|
|
271
273
|
access after acceptance:
|
|
272
274
|
|
|
273
275
|
```text
|
|
274
|
-
teamclaws users add <target> <email> --
|
|
276
|
+
teamclaws users add <target> <email> --sudo
|
|
275
277
|
```
|
|
276
278
|
|
|
277
|
-
Omitting `--sudo` requests no sudo grant.
|
|
278
|
-
`staff` roles. Sudo follows the existing access-group membership. The CLI
|
|
279
|
+
Omitting `--sudo` requests no sudo grant. Sudo follows the existing access-group membership. The CLI
|
|
279
280
|
requires the workspace to acknowledge the saved sudo selection before reporting
|
|
280
281
|
a new sudo invitation as successful. Existing members and pending invitations
|
|
281
282
|
remain unchanged even when the flag is supplied.
|
package/dist/app.js
CHANGED
|
@@ -253,21 +253,17 @@ export function parseArguments(arguments_) {
|
|
|
253
253
|
const target = parsePairingTarget(requiredPositional(args, 2));
|
|
254
254
|
const email = requiredPositional(args, 3).trim().toLowerCase();
|
|
255
255
|
const options = parseNamedOptions(args.slice(4), {
|
|
256
|
-
values: [
|
|
256
|
+
values: [],
|
|
257
257
|
booleans: ["--sudo"],
|
|
258
258
|
});
|
|
259
|
-
|
|
260
|
-
if (!email ||
|
|
261
|
-
email.length > 254 ||
|
|
262
|
-
!["user", "staff", "superuser"].includes(role ?? "") ||
|
|
263
|
-
(options.flags.has("--sudo") && role !== "superuser"))
|
|
259
|
+
if (!email || email.length > 254)
|
|
264
260
|
throw usageError();
|
|
265
261
|
return {
|
|
266
262
|
action: "users_add",
|
|
267
263
|
json,
|
|
268
264
|
target,
|
|
269
265
|
email,
|
|
270
|
-
role:
|
|
266
|
+
role: "superuser",
|
|
271
267
|
sudoEnabled: options.flags.has("--sudo"),
|
|
272
268
|
};
|
|
273
269
|
}
|
|
@@ -552,5 +548,5 @@ function usageError() {
|
|
|
552
548
|
});
|
|
553
549
|
}
|
|
554
550
|
export function helpText() {
|
|
555
|
-
return `TeamClaws ${PACKAGE_VERSION}\n\nUsage:\n teamclaws update [--json]\n teamclaws shell <target> --command <text> [--json]\n teamclaws users add <target> <email>
|
|
551
|
+
return `TeamClaws ${PACKAGE_VERSION}\n\nUsage:\n teamclaws update [--json]\n teamclaws shell <target> --command <text> [--json]\n teamclaws users add <target> <email> [--sudo] [--json]\n teamclaws users list <target> [--json]\n teamclaws login <email> [--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 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`;
|
|
556
552
|
}
|