@lotics/cli 0.12.0 → 0.14.0

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
@@ -5,8 +5,9 @@ CLI and SDK for AI agents to interact with Lotics.
5
5
  Lotics is an AI-powered operations platform. Through this CLI you can:
6
6
 
7
7
  - Manage tables, records, and views (structured data with typed fields)
8
- - Generate documents from templates (Excel, Word, PDF)
9
- - Build and run automations (event-driven workflows)
8
+ - Generate documents from templates (Excel, Word, PDF, Email)
9
+ - Build and run automations — schedules, webhooks, table lifecycle workflows, button actions, app-action workflows; inspect execution and version history
10
+ - Administer the workspace — invite members, manage groups, share resources, transfer ownership, browse connected accounts (OAuth attach is web-only)
10
11
  - Create and manage apps, knowledge docs, and files
11
12
 
12
13
  ## Install
package/dist/src/cli.js CHANGED
@@ -10,8 +10,11 @@ function printHelp() {
10
10
 
11
11
  Lotics is an AI-powered operations platform. Through this CLI you can:
12
12
  - Manage tables, records, and views (structured data with typed fields)
13
- - Generate documents from templates (Excel, Word, PDF)
14
- - Build and run automations (event-driven workflows)
13
+ - Generate documents from templates (Excel, Word, PDF, Email)
14
+ - Build and run automations schedules, webhooks, table lifecycle workflows,
15
+ button actions, and app-action workflows; inspect execution and version history
16
+ - Administer the workspace — invite members, manage groups, share resources,
17
+ transfer ownership, browse connected accounts (OAuth attach is web-only)
15
18
  - Create and manage apps, knowledge docs, and files
16
19
 
17
20
  AUTHENTICATION
@@ -78,7 +81,7 @@ function printAuthHelp() {
78
81
  lotics auth signup <email> Create account, org, workspace, and API key
79
82
  lotics auth api-key [key] Save an existing API key (e.g. from the web app)
80
83
  lotics auth web Send a magic link email to access the web app
81
- lotics auth whoami Show the email of the current account
84
+ lotics auth whoami Show the current account's name, email, and organization
82
85
  lotics auth logout Remove saved credentials
83
86
 
84
87
  Signup flags:
@@ -349,29 +352,22 @@ async function main() {
349
352
  return;
350
353
  }
351
354
  if (subcommand === "whoami") {
352
- const config = loadConfig();
353
- if (config?.email) {
354
- console.log(config.email);
355
- return;
356
- }
357
- // No email cached — try fetching from API
358
355
  const auth = resolveAuth(flags);
359
356
  if (!auth) {
360
357
  console.error('Not authenticated. Run "lotics auth signup" or set LOTICS_API_KEY.');
361
358
  process.exit(1);
362
359
  }
363
360
  const client = new LoticsClient({ apiKey: auth.apiKey });
364
- try {
365
- const info = await client.whoami();
366
- // Cache for next time
367
- const existing = loadConfig() ?? {};
368
- saveConfig({ ...existing, email: info.email });
369
- console.log(info.email);
361
+ const info = await client.whoami();
362
+ const existing = loadConfig() ?? {};
363
+ saveConfig({ ...existing, email: info.email });
364
+ if (flags.json) {
365
+ console.log(JSON.stringify(info, null, 2));
370
366
  }
371
- catch (error) {
372
- const message = error instanceof Error ? error.message : String(error);
373
- console.error(`Failed to fetch account info: ${message}`);
374
- process.exit(1);
367
+ else {
368
+ console.log(`Name: ${info.name}`);
369
+ console.log(`Email: ${info.email}`);
370
+ console.log(`Org: ${info.organization_id}`);
375
371
  }
376
372
  return;
377
373
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/cli",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "description": "Lotics SDK and CLI for AI agents",
5
5
  "type": "module",
6
6
  "bin": {