@empirical-gauzza/cli 1.0.15 → 1.0.16

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/lib/constants.js CHANGED
@@ -202,7 +202,7 @@ Invite commands operate on the active team workspace. Create prints a shareable
202
202
  empirical workspace delete <number|name|id>
203
203
  empirical workspace delete <number|name|id> --confirm
204
204
 
205
- Deletion dry-runs by default. \`--confirm\` calls the existing soft-delete endpoint; the Default Brain cannot be deleted. If the active workspace is deleted, the CLI selects the Default Brain.
205
+ Deletion dry-runs by default. \`--confirm\` calls the existing soft-delete endpoint; the Default Workspace cannot be deleted. If the active workspace is deleted, the CLI selects the Default Workspace.
206
206
  `,
207
207
 
208
208
  doctor: `# Empirical Doctor
package/lib/help.js CHANGED
@@ -19,26 +19,32 @@ function showHelp() {
19
19
  log(' empirical plugin check [--force]');
20
20
  log(' empirical policy show [--refresh]');
21
21
  log(' empirical policy set --json <policy>');
22
- log(' empirical auth login');
23
- log(' empirical auth logout');
22
+ log(' empirical auth login Interactive browser login');
23
+ log(' empirical auth logout Clear the locally stored session');
24
24
  log(' empirical oauth bootstrap headless [--print-access-token]');
25
+ log(' First-time token setup for CI/headless/API-key use');
25
26
  log(' empirical oauth bootstrap headless --write-env [--env-output <path>]');
26
27
  log(' empirical oauth refresh headless [--print-access-token]');
28
+ log(' Renew an existing headless token before/after it expires');
27
29
  log(' empirical oauth refresh headless --write-env [--env-output <path>]');
28
30
  log(' empirical oauth bootstrap docker [--print-access-token]');
31
+ log(' Same as bootstrap headless, tuned for container startup');
29
32
  log(' empirical oauth refresh docker [--print-access-token]');
30
33
  log(' empirical oauth client set [--client-id <id>] [--client-secret <secret>]');
31
34
  log(' empirical oauth client show');
32
35
  log(' empirical oauth client clear');
33
- log(' empirical workspace list');
34
- log(' empirical workspace current');
35
- log(' empirical workspace select [<number|name>]');
36
- log(' empirical workspace use <number|name|id>');
36
+ log(' empirical workspace list List workspaces you can select, and which one is active');
37
+ log(' empirical workspace current Show the currently active workspace');
38
+ log(' empirical workspace select [<number|name>] Set the active workspace (prompts if omitted)');
39
+ log(' empirical workspace use <number|name|id> Alias for `workspace select`');
37
40
  log(' empirical workspace create <name> [--description <text>]');
41
+ log(' Create a new shared team workspace');
38
42
  log(' empirical workspace invite create [--role reader|writer|manager] [--expires-in-days <n>] [--max-uses <n>]');
39
- log(' empirical workspace invite list');
40
- log(' empirical workspace invite revoke <token>');
43
+ log(' Create a shareable invite link for the active team workspace');
44
+ log(' empirical workspace invite list List active invites for the active team workspace');
45
+ log(' empirical workspace invite revoke <token> Revoke a previously created invite');
41
46
  log(' empirical workspace delete <number|name|id> [--confirm]');
47
+ log(' Soft-delete a team workspace (dry-run without --confirm)');
42
48
  log(' empirical oauth bootstrap openclaw [--print-access-token] (legacy alias)');
43
49
  log(' empirical oauth refresh openclaw [--print-access-token] (legacy alias)');
44
50
  log(' empirical --oauth-bootstrap-headless [--print-access-token]');
@@ -174,11 +174,11 @@ async function runWorkspaceCommand(args) {
174
174
  const selected = payload.defaultOption.selected
175
175
  ? payload.defaultOption
176
176
  : (payload.workspaces || []).find((ws) => ws.selected) || payload.defaultOption;
177
- log(`Current workspace: ${selected.label || 'Default Brain'}`);
177
+ log(`Current workspace: ${selected.label || 'Default Workspace'}`);
178
178
  return;
179
179
  }
180
180
  const payload = await httpJson(currentUrl, 'GET', null, authHeaders);
181
- log(`Current workspace: ${payload?.current?.label || 'Default Brain'}`);
181
+ log(`Current workspace: ${payload?.current?.label || 'Default Workspace'}`);
182
182
  if (payload?.locked) {
183
183
  log('This OAuth client is admin-locked to a workspace.');
184
184
  }
@@ -206,7 +206,7 @@ async function runWorkspaceCommand(args) {
206
206
  }
207
207
 
208
208
  if (!requested) {
209
- throw new Error('Please provide a workspace selection, e.g. `empirical workspace use 1` or `empirical workspace use "Default Brain"`.');
209
+ throw new Error('Please provide a workspace selection, e.g. `empirical workspace use 1` or `empirical workspace use "Default Workspace"`.');
210
210
  }
211
211
 
212
212
  const target = resolveWorkspaceTarget(requested, payload, teamPayload);
@@ -250,7 +250,7 @@ async function runWorkspaceCommand(args) {
250
250
  if (target?.ambiguous) throw new Error(`Ambiguous workspace: ${requested}. Use its list number or workspace ID.`);
251
251
  if (!target) throw new Error(`Workspace not found: ${requested}`);
252
252
  if (target.isDefault || target.key === 'default_brain') {
253
- throw new Error('The Default Brain cannot be deleted.');
253
+ throw new Error('The Default Workspace cannot be deleted.');
254
254
  }
255
255
  if (!target.workspaceId) throw new Error(`Workspace is not a deletable team brain: ${target.label}`);
256
256
 
@@ -265,7 +265,7 @@ async function runWorkspaceCommand(args) {
265
265
  if (target.selected && clientId) {
266
266
  const updateUrl = new URL(`/oauth/clients/${encodedClientId}/workspace-selection`, baseUrl).toString();
267
267
  const updated = await httpJson(updateUrl, 'POST', { key: 'default_brain' }, authHeaders);
268
- log(uiSuccess(`Soft-deleted workspace ${targetDescription}. Active workspace reset to ${updated?.current?.label || 'Default Brain'}.`));
268
+ log(uiSuccess(`Soft-deleted workspace ${targetDescription}. Active workspace reset to ${updated?.current?.label || 'Default Workspace'}.`));
269
269
  clearSelectedWorkspace();
270
270
  } else {
271
271
  log(uiSuccess(`Soft-deleted workspace ${targetDescription}.`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empirical-gauzza/cli",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Empirical CLI installer and local MCP wiring helper",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",