@getfrontline/cli 1.0.1 → 1.0.3

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.
Files changed (69) hide show
  1. package/README.md +246 -246
  2. package/dist/commands/auth/login.d.ts.map +1 -1
  3. package/dist/commands/auth/login.js +29 -4
  4. package/dist/commands/auth/login.js.map +1 -1
  5. package/dist/commands/auth/profiles.d.ts.map +1 -1
  6. package/dist/commands/auth/profiles.js +7 -11
  7. package/dist/commands/auth/profiles.js.map +1 -1
  8. package/dist/commands/object/export.js +3 -3
  9. package/dist/commands/object/field.js +5 -5
  10. package/dist/commands/object/index.js +8 -8
  11. package/dist/commands/object/index.js.map +1 -1
  12. package/dist/commands/object/option.js +4 -4
  13. package/dist/commands/object/record-type.js +4 -4
  14. package/dist/commands/object/record.js +8 -8
  15. package/dist/commands/object/relation.js +4 -4
  16. package/dist/commands/object/view.js +9 -9
  17. package/dist/lib/cliVersion.d.ts +8 -0
  18. package/dist/lib/cliVersion.d.ts.map +1 -0
  19. package/dist/lib/cliVersion.js +26 -0
  20. package/dist/lib/cliVersion.js.map +1 -0
  21. package/dist/lib/config.js +1 -1
  22. package/dist/lib/config.js.map +1 -1
  23. package/dist/lib/errors.d.ts +3 -0
  24. package/dist/lib/errors.d.ts.map +1 -1
  25. package/dist/lib/errors.js +10 -1
  26. package/dist/lib/errors.js.map +1 -1
  27. package/dist/lib/helpEpilog.d.ts.map +1 -1
  28. package/dist/lib/helpEpilog.js +35 -35
  29. package/dist/lib/helpEpilog.js.map +1 -1
  30. package/dist/lib/httpClient.d.ts.map +1 -1
  31. package/dist/lib/httpClient.js +35 -16
  32. package/dist/lib/httpClient.js.map +1 -1
  33. package/dist/lib/output.d.ts +10 -0
  34. package/dist/lib/output.d.ts.map +1 -1
  35. package/dist/lib/output.js +28 -12
  36. package/dist/lib/output.js.map +1 -1
  37. package/dist/max/commands/auth/login.d.ts.map +1 -1
  38. package/dist/max/commands/auth/login.js +22 -5
  39. package/dist/max/commands/auth/login.js.map +1 -1
  40. package/dist/max/commands/chat/repl.d.ts +9 -0
  41. package/dist/max/commands/chat/repl.d.ts.map +1 -1
  42. package/dist/max/commands/chat/repl.js +15 -11
  43. package/dist/max/commands/chat/repl.js.map +1 -1
  44. package/dist/max/commands/chat/send.d.ts.map +1 -1
  45. package/dist/max/commands/chat/send.js +17 -0
  46. package/dist/max/commands/chat/send.js.map +1 -1
  47. package/dist/max/lib/httpClient.d.ts.map +1 -1
  48. package/dist/max/lib/httpClient.js +11 -4
  49. package/dist/max/lib/httpClient.js.map +1 -1
  50. package/dist/max/ui/banner.d.ts.map +1 -1
  51. package/dist/max/ui/banner.js +21 -21
  52. package/dist/max/ui/banner.js.map +1 -1
  53. package/dist/max.js +15 -3
  54. package/dist/max.js.map +1 -1
  55. package/dist/skills/aggregations/SKILL.md +7 -7
  56. package/dist/skills/auth-and-profiles/SKILL.md +1 -1
  57. package/dist/skills/crm-setup/SKILL.md +58 -48
  58. package/dist/skills/crud-operations/SKILL.md +2 -2
  59. package/dist/skills/export-and-delete/SKILL.md +5 -5
  60. package/dist/skills/files/SKILL.md +4 -4
  61. package/dist/skills/filter-and-query/SKILL.md +7 -7
  62. package/dist/skills/frontline-internals/SKILL.md +209 -0
  63. package/dist/skills/max-auth/SKILL.md +76 -76
  64. package/dist/skills/max-chat/SKILL.md +111 -111
  65. package/dist/skills/notes-and-tasks/SKILL.md +4 -4
  66. package/dist/skills/pipeline-setup/SKILL.md +13 -13
  67. package/dist/skills/relations/SKILL.md +20 -15
  68. package/dist/skills/schema-design/SKILL.md +13 -13
  69. package/package.json +51 -51
package/README.md CHANGED
@@ -1,246 +1,246 @@
1
- # @getfrontline/cli
2
-
3
- Unified Frontline command-line toolbox. Ships two binaries:
4
-
5
- - **`frontline`** — public REST API: agents, workflows, billing, tables, objects, raw GET, Claude Code skills setup.
6
- - **`max`** — Max chat & admin REST (per-user API key as Bearer, interactive chat).
7
-
8
- ## Installation
9
-
10
- ```bash
11
- npm install -g @getfrontline/cli
12
- ```
13
-
14
- Or run without installing:
15
-
16
- ```bash
17
- npx @getfrontline/cli --help
18
- ```
19
-
20
- ## Output format
21
-
22
- All `frontline` commands print **JSON to stdout by default** (scripting-friendly). Opt into human-readable output with:
23
-
24
- - `--pretty` — key/value blocks, spinners, icons (to stderr-safe channels)
25
- - `--table` — tabular rendering for list endpoints
26
-
27
- Errors always go to `stderr` in human form and to `stdout` as structured JSON when the command was invoked in its default (non-pretty) mode.
28
-
29
- ---
30
-
31
- # `frontline` binary
32
-
33
- ### Login
34
-
35
- ```bash
36
- frontline auth login <api-key>
37
- ```
38
-
39
- The API key is shared between `frontline` and `max` automatically.
40
-
41
- ### Switch / inspect profiles
42
-
43
- ```bash
44
- frontline auth profiles list # all saved profiles + active one
45
- frontline auth profiles use prod # change active profile
46
- frontline auth whoami # hits /me with current profile
47
- frontline auth logout # remove active profile
48
- frontline auth logout --profile staging
49
- ```
50
-
51
- ## Commands
52
-
53
- ### Agents
54
-
55
- ```bash
56
- frontline agents list
57
- frontline agents list --status active
58
- frontline agents flows <agentId>
59
- frontline agents flows <agentId> --status active
60
- frontline agents analytics <agentId> --start-date 2025-01-01 --end-date 2025-12-31
61
- ```
62
-
63
- ### Workflows
64
-
65
- ```bash
66
- frontline workflows list
67
- frontline workflows list --status active
68
- frontline workflows analytics <workflowId> --start-date 2025-01-01 --end-date 2025-12-31
69
- ```
70
-
71
- ### Billing
72
-
73
- ```bash
74
- frontline billing get
75
- ```
76
-
77
- ### Raw API requests
78
-
79
- For endpoints not yet mapped to a command:
80
-
81
- ```bash
82
- frontline api get /agents
83
- frontline api get /agents --query status=active
84
- frontline api get /workflows/123/analytics --query startDate=2025-01-01 endDate=2025-12-31
85
- ```
86
-
87
- ### Objects (CRM entities)
88
-
89
- ```bash
90
- frontline object list
91
- frontline object get sor__people
92
- frontline object schema sor__deals
93
- frontline object create --data '{"name":"custom_obj","displayName":"Custom","fields":[...]}'
94
- frontline object update sor__deals --data '{"displayName":"Deals v2"}'
95
- frontline object count sor__deals
96
- frontline object delete sor__custom_object
97
- ```
98
-
99
- ### Tables (spreadsheet-like)
100
-
101
- ```bash
102
- frontline table list
103
- frontline table get my_table
104
- frontline table create my_table --data '{"displayName":"My Table","columns":[{"name":"Name","type":"string","metadata":{"format":"text"}}]}'
105
- frontline table delete my_table
106
- ```
107
-
108
- ### Shared sub-commands (object & table)
109
-
110
- Both `object` and `table` expose the same set of sub-commands:
111
-
112
- | Command | Description |
113
- | ---------------- | ----------------------------------------------- |
114
- | `field` | Manage fields (columns) — CRUD |
115
- | `option` | Manage select-field options — CRUD |
116
- | `record` / `row` | Manage rows — list, get, create, update, delete |
117
- | `relation` | Link / unlink related records |
118
- | `view` | Manage views (object only) — CRUD |
119
- | `record-type` | Manage record types (object only) |
120
- | `note` | Notes on rows — CRUD |
121
- | `task` | Tasks on rows — CRUD + complete / uncomplete |
122
- | `file` | Files on rows — list, get, download, delete |
123
- | `aggregation` | Aggregations — CRUD + compute |
124
- | `export` | Export data as XLSX or CSV |
125
-
126
- Run `frontline <resource> <subcommand> --help` for details and examples.
127
-
128
- ### Global flags
129
-
130
- Every `frontline` command accepts:
131
-
132
- - `--api-key <key>` — override stored API key for a single call
133
- - `--profile <name>` — use a specific saved profile
134
- - `--debug` — verbose request/response logs
135
- - `--pretty` — human-readable output
136
- - `--table` — tabular output for list endpoints
137
-
138
- ## Claude Code Skills
139
-
140
- Optional: install Frontline skills into Claude Code (auto-detected on `npm install`):
141
-
142
- ```bash
143
- frontline setup --claude-skills # install new skills
144
- frontline setup --claude-skills --force # overwrite existing
145
- ```
146
-
147
- Skills currently shipped:
148
-
149
- - **Public API:** `frontline-agents`, `frontline-workflows`, `frontline-billing`, `frontline-api`
150
- - **Max:** `max-chat`, `max-auth`
151
- - **Table / Object CRUD:** `auth-and-profiles`, `crm-setup`, `crud-operations`, `pipeline-setup`, `schema-design`, `resource-creation`, `record-type-management`, `relations`, `filter-and-query`, `files`, `notes-and-tasks`, `export-and-delete`, `aggregations`
152
-
153
- ## Debugging
154
-
155
- ```bash
156
- frontline agents list --debug
157
- ```
158
-
159
- ## Troubleshooting
160
-
161
- - **"No API key found"** — run `frontline auth login <key>`.
162
- - **"No Max API key found"** (Max CLI) — run `max auth login <key>` or `frontline auth login <key>` on the same profile.
163
- - **"Missing or invalid API key"** — key expired / revoked. Generate a new one.
164
- - **"Request timed out"** — check network.
165
- - **Rate limit** — public API allows 100 req/min.
166
-
167
- ---
168
-
169
- # `max` binary
170
-
171
- Authentication uses the **same API key** as `frontline`. Logging in with either CLI keeps them in sync.
172
-
173
- ```bash
174
- max --help
175
- max auth login <api-key>
176
- max auth whoami
177
- max auth logout # clears Max + matching Frontline profile
178
- max auth logout --keep-frontline # only clears the Max store
179
- ```
180
-
181
- ### Response shape and stdout
182
-
183
- Max Public API responses are typically `{ "ok": true|false, "data": ... }`. HTTP errors still use 4xx/5xx; logical failures may return `200` with `ok: false` (the CLI treats those as errors).
184
-
185
- - **`max "…"`** (root) and **`max chat send`**: default stdout is **one-line JSON** (`JSON.stringify` of the last response: POST, or last GET after polling). Use **`--pretty`** for assistant **plain text** from `data`. Use **`--json`** to print only the POST body and **skip polling**.
186
- - **`max conversations …`**: same idea — default one-line JSON; **`--pretty`** for plain text when the CLI can infer it.
187
- - **`max chat` / REPL**: stdout is assistant **plain text** from `data` when possible (interactive UX); otherwise one-line JSON. No progress spinners on stdout.
188
-
189
- ### Public API — Max conversations
190
-
191
- | Method | Path (after base) |
192
- | ------- | ------------------------------------------------- |
193
- | `POST` | `/max/conversations/message` |
194
- | `GET` | `/max/conversations/:conversationId` |
195
- | `PATCH` | `/max/conversations/:conversationId` |
196
- | `POST` | `/max/conversations/:conversationId/abortMessage` |
197
- | `GET` | `/max/conversations/` |
198
-
199
- CLI:
200
-
201
- ```bash
202
- max conversations list
203
- max conversations get 123
204
- max conversations update 123 --data '{"title":"Renamed"}'
205
- max conversations abort 123
206
- # alias: max conv list
207
- ```
208
-
209
- Global flags: `--profile`, `--api-key`, `--pretty`, `--debug` (same resolution as `max chat send`).
210
-
211
- ## Chat with Max
212
-
213
- After `max auth login`, you can send messages:
214
-
215
- ```bash
216
- # Send message (uses last conversation by default)
217
- max "Hola"
218
-
219
- # Start a new conversation
220
- max --new "Hola"
221
-
222
- # Explicit conversation id
223
- max --conversation 123 "Hola"
224
-
225
- # Default: one-line JSON from the API; human reply with --pretty
226
- max "Hola" --pretty
227
-
228
- # Override API key for one run
229
- max "Hola" --api-key flk_...
230
-
231
- # Alternative explicit command form
232
- max chat send "Hola"
233
- ```
234
-
235
- You can also start an interactive session (so you don't have to type `max` every time):
236
-
237
- ```bash
238
- max chat
239
- ```
240
-
241
- Inside the interactive prompt, use:
242
-
243
- - `:help` for commands
244
- - `:new` to start a new conversation
245
- - `:conv <id>` to switch conversations
246
- - `:exit` to quit
1
+ # @getfrontline/cli
2
+
3
+ Unified Frontline command-line toolbox. Ships two binaries:
4
+
5
+ - **`frontline`** — public REST API: agents, workflows, billing, tables, objects, raw GET, Claude Code skills setup.
6
+ - **`max`** — Max chat & admin REST (per-user API key as Bearer, interactive chat).
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install -g @getfrontline/cli
12
+ ```
13
+
14
+ Or run without installing:
15
+
16
+ ```bash
17
+ npx @getfrontline/cli --help
18
+ ```
19
+
20
+ ## Output format
21
+
22
+ All `frontline` commands print **JSON to stdout by default** (scripting-friendly). Opt into human-readable output with:
23
+
24
+ - `--pretty` — key/value blocks, spinners, icons (to stderr-safe channels)
25
+ - `--table` — tabular rendering for list endpoints
26
+
27
+ Errors always go to `stderr` in human form and to `stdout` as structured JSON when the command was invoked in its default (non-pretty) mode.
28
+
29
+ ---
30
+
31
+ # `frontline` binary
32
+
33
+ ### Login
34
+
35
+ ```bash
36
+ frontline auth login <api-key>
37
+ ```
38
+
39
+ The API key is shared between `frontline` and `max` automatically.
40
+
41
+ ### Switch / inspect profiles
42
+
43
+ ```bash
44
+ frontline auth profiles list # all saved profiles + active one
45
+ frontline auth profiles use prod # change active profile
46
+ frontline auth whoami # hits /me with current profile
47
+ frontline auth logout # remove active profile
48
+ frontline auth logout --profile staging
49
+ ```
50
+
51
+ ## Commands
52
+
53
+ ### Agents
54
+
55
+ ```bash
56
+ frontline agents list
57
+ frontline agents list --status active
58
+ frontline agents flows <agentId>
59
+ frontline agents flows <agentId> --status active
60
+ frontline agents analytics <agentId> --start-date 2025-01-01 --end-date 2025-12-31
61
+ ```
62
+
63
+ ### Workflows
64
+
65
+ ```bash
66
+ frontline workflows list
67
+ frontline workflows list --status active
68
+ frontline workflows analytics <workflowId> --start-date 2025-01-01 --end-date 2025-12-31
69
+ ```
70
+
71
+ ### Billing
72
+
73
+ ```bash
74
+ frontline billing get
75
+ ```
76
+
77
+ ### Raw API requests
78
+
79
+ For endpoints not yet mapped to a command:
80
+
81
+ ```bash
82
+ frontline api get /agents
83
+ frontline api get /agents --query status=active
84
+ frontline api get /workflows/123/analytics --query startDate=2025-01-01 endDate=2025-12-31
85
+ ```
86
+
87
+ ### Objects (CRM entities)
88
+
89
+ ```bash
90
+ frontline object list
91
+ frontline object get standard__people
92
+ frontline object schema standard__deals
93
+ frontline object create --data '{"name":"custom_obj","displayName":"Custom","fields":[...]}'
94
+ frontline object update standard__deals --data '{"displayName":"Deals v2"}'
95
+ frontline object count standard__deals
96
+ frontline object delete standard__custom_object
97
+ ```
98
+
99
+ ### Tables (spreadsheet-like)
100
+
101
+ ```bash
102
+ frontline table list
103
+ frontline table get my_table
104
+ frontline table create my_table --data '{"displayName":"My Table","columns":[{"name":"Name","type":"string","metadata":{"format":"text"}}]}'
105
+ frontline table delete my_table
106
+ ```
107
+
108
+ ### Shared sub-commands (object & table)
109
+
110
+ Both `object` and `table` expose the same set of sub-commands:
111
+
112
+ | Command | Description |
113
+ | ---------------- | ----------------------------------------------- |
114
+ | `field` | Manage fields (columns) — CRUD |
115
+ | `option` | Manage select-field options — CRUD |
116
+ | `record` / `row` | Manage rows — list, get, create, update, delete |
117
+ | `relation` | Link / unlink related records |
118
+ | `view` | Manage views (object only) — CRUD |
119
+ | `record-type` | Manage record types (object only) |
120
+ | `note` | Notes on rows — CRUD |
121
+ | `task` | Tasks on rows — CRUD + complete / uncomplete |
122
+ | `file` | Files on rows — list, get, download, delete |
123
+ | `aggregation` | Aggregations — CRUD + compute |
124
+ | `export` | Export data as XLSX or CSV |
125
+
126
+ Run `frontline <resource> <subcommand> --help` for details and examples.
127
+
128
+ ### Global flags
129
+
130
+ Every `frontline` command accepts:
131
+
132
+ - `--api-key <key>` — override stored API key for a single call
133
+ - `--profile <name>` — use a specific saved profile
134
+ - `--debug` — verbose request/response logs
135
+ - `--pretty` — human-readable output
136
+ - `--table` — tabular output for list endpoints
137
+
138
+ ## Claude Code Skills
139
+
140
+ Optional: install Frontline skills into Claude Code (auto-detected on `npm install`):
141
+
142
+ ```bash
143
+ frontline setup --claude-skills # install new skills
144
+ frontline setup --claude-skills --force # overwrite existing
145
+ ```
146
+
147
+ Skills currently shipped:
148
+
149
+ - **Public API:** `frontline-agents`, `frontline-workflows`, `frontline-billing`, `frontline-api`
150
+ - **Max:** `max-chat`, `max-auth`
151
+ - **Table / Object CRUD:** `auth-and-profiles`, `crm-setup`, `crud-operations`, `pipeline-setup`, `schema-design`, `resource-creation`, `record-type-management`, `relations`, `filter-and-query`, `files`, `notes-and-tasks`, `export-and-delete`, `aggregations`
152
+
153
+ ## Debugging
154
+
155
+ ```bash
156
+ frontline agents list --debug
157
+ ```
158
+
159
+ ## Troubleshooting
160
+
161
+ - **"No API key found"** — run `frontline auth login <key>`.
162
+ - **"No Max API key found"** (Max CLI) — run `max auth login <key>` or `frontline auth login <key>` on the same profile.
163
+ - **"Missing or invalid API key"** — key expired / revoked. Generate a new one.
164
+ - **"Request timed out"** — check network.
165
+ - **Rate limit** — public API allows 100 req/min.
166
+
167
+ ---
168
+
169
+ # `max` binary
170
+
171
+ Authentication uses the **same API key** as `frontline`. Logging in with either CLI keeps them in sync.
172
+
173
+ ```bash
174
+ max --help
175
+ max auth login <api-key>
176
+ max auth whoami
177
+ max auth logout # clears Max + matching Frontline profile
178
+ max auth logout --keep-frontline # only clears the Max store
179
+ ```
180
+
181
+ ### Response shape and stdout
182
+
183
+ Max Public API responses are typically `{ "ok": true|false, "data": ... }`. HTTP errors still use 4xx/5xx; logical failures may return `200` with `ok: false` (the CLI treats those as errors).
184
+
185
+ - **`max "…"`** (root) and **`max chat send`**: default stdout is **one-line JSON** (`JSON.stringify` of the last response: POST, or last GET after polling). Use **`--pretty`** for assistant **plain text** from `data`. Use **`--json`** to print only the POST body and **skip polling**.
186
+ - **`max conversations …`**: same idea — default one-line JSON; **`--pretty`** for plain text when the CLI can infer it.
187
+ - **`max chat` / REPL**: stdout is assistant **plain text** from `data` when possible (interactive UX); otherwise one-line JSON. No progress spinners on stdout.
188
+
189
+ ### Public API — Max conversations
190
+
191
+ | Method | Path (after base) |
192
+ | ------- | ------------------------------------------------- |
193
+ | `POST` | `/max/conversations/message` |
194
+ | `GET` | `/max/conversations/:conversationId` |
195
+ | `PATCH` | `/max/conversations/:conversationId` |
196
+ | `POST` | `/max/conversations/:conversationId/abortMessage` |
197
+ | `GET` | `/max/conversations/` |
198
+
199
+ CLI:
200
+
201
+ ```bash
202
+ max conversations list
203
+ max conversations get 123
204
+ max conversations update 123 --data '{"title":"Renamed"}'
205
+ max conversations abort 123
206
+ # alias: max conv list
207
+ ```
208
+
209
+ Global flags: `--profile`, `--api-key`, `--pretty`, `--debug` (same resolution as `max chat send`).
210
+
211
+ ## Chat with Max
212
+
213
+ After `max auth login`, you can send messages:
214
+
215
+ ```bash
216
+ # Send message (uses last conversation by default)
217
+ max "Hola"
218
+
219
+ # Start a new conversation
220
+ max --new "Hola"
221
+
222
+ # Explicit conversation id
223
+ max --conversation 123 "Hola"
224
+
225
+ # Default: one-line JSON from the API; human reply with --pretty
226
+ max "Hola" --pretty
227
+
228
+ # Override API key for one run
229
+ max "Hola" --api-key flk_...
230
+
231
+ # Alternative explicit command form
232
+ max chat send "Hola"
233
+ ```
234
+
235
+ You can also start an interactive session (so you don't have to type `max` every time):
236
+
237
+ ```bash
238
+ max chat
239
+ ```
240
+
241
+ Inside the interactive prompt, use:
242
+
243
+ - `:help` for commands
244
+ - `:new` to start a new conversation
245
+ - `:conv <id>` to switch conversations
246
+ - `:exit` to quit
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBpC,eAAO,MAAM,YAAY,SAmCnB,CAAC"}
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsCpC,eAAO,MAAM,YAAY,SAoDnB,CAAC"}
@@ -4,17 +4,28 @@ exports.loginCommand = void 0;
4
4
  const commander_1 = require("commander");
5
5
  const config_1 = require("../../lib/config");
6
6
  const output_1 = require("../../lib/output");
7
+ const auth_1 = require("../../lib/auth");
7
8
  const helpEpilog_1 = require("../../lib/helpEpilog");
8
9
  const maxConfig_1 = require("../../max/maxConfig");
9
10
  const banner_1 = require("../../max/ui/banner");
11
+ function printNextSteps() {
12
+ console.log();
13
+ console.log(output_1.brand.primary.bold("Start here"));
14
+ console.log(` ${output_1.brand.primary("frontline auth whoami")} ${output_1.brand.muted("Verify your API key")}`);
15
+ console.log(` ${output_1.brand.primary("frontline agents list")} ${output_1.brand.muted("List your agents")}`);
16
+ console.log(` ${output_1.brand.primary("frontline workflows list")} ${output_1.brand.muted("List your workflows")}`);
17
+ console.log(` ${output_1.brand.primary("max chat")} ${output_1.brand.muted("Open Max in your terminal")}`);
18
+ }
10
19
  exports.loginCommand = new commander_1.Command("login")
11
20
  .description("Store an API key for the current (or specified) profile. Does NOT verify the key.")
12
21
  .argument("<api-key>", "Your Frontline API key")
13
22
  .option("--base-url <url>", `Advanced: Public API base URL (default: ${(0, config_1.getDefaultBaseUrl)()})`)
14
23
  .option("--profile <name>", "Profile name (default: current profile)")
24
+ .option("--json", "Output the saved profile as JSON")
15
25
  .addHelpText("after", `\n${helpEpilog_1.FRONTLINE_AUTH_LOGIN_EPILOG}\n`)
16
26
  .action(async (apiKey, opts) => {
17
- await (0, banner_1.printFrontlineLogo)();
27
+ if (!opts.json)
28
+ await (0, banner_1.printFrontlineLogo)();
18
29
  const profileName = opts.profile ?? (0, config_1.getCurrentProfile)();
19
30
  const existing = (0, config_1.getProfile)(profileName);
20
31
  const baseUrl = opts.baseUrl ?? existing?.baseUrl ?? (0, config_1.getDefaultBaseUrl)();
@@ -28,12 +39,26 @@ exports.loginCommand = new commander_1.Command("login")
28
39
  (0, config_1.setCurrentProfile)(profileName);
29
40
  (0, maxConfig_1.setMaxCurrentProfile)(profileName);
30
41
  }
31
- (0, output_1.info)(`API key saved to profile "${profileName}"`);
32
- (0, output_1.success)({
42
+ const output = {
33
43
  authenticated: true,
34
44
  profile: profileName,
35
- key_preview: apiKey.substring(0, 5) + "...",
45
+ key_preview: (0, auth_1.redactToken)(apiKey),
46
+ base_url: baseUrl,
36
47
  config_path: (0, config_1.getConfigPath)(),
48
+ };
49
+ if (opts.json) {
50
+ (0, output_1.printJson)(output);
51
+ return;
52
+ }
53
+ console.log(`${output_1.brand.primary.bold("Welcome to Frontline CLI")}`);
54
+ console.log(output_1.brand.muted("You're signed in and ready to use Frontline from your terminal."));
55
+ console.log();
56
+ (0, output_1.printSuccess)(`Profile "${profileName}" is ready.`);
57
+ (0, output_1.printKeyValue)({
58
+ profile: output.profile,
59
+ baseUrl: output.base_url,
60
+ keyPreview: output.key_preview,
37
61
  });
62
+ printNextSteps();
38
63
  });
39
64
  //# sourceMappingURL=login.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../src/commands/auth/login.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,6CA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F,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QACZ,IAAA,kBAAS,EAAC,MAAM,CAAC,CAAC;QAClB,OAAO;IACX,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,GAAG,cAAK,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,EAAE,CAAC,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,cAAK,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC,CAAC;IAC5F,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,IAAA,qBAAY,EAAC,YAAY,WAAW,aAAa,CAAC,CAAC;IACnD,IAAA,sBAAa,EAAC;QACV,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,OAAO,EAAE,MAAM,CAAC,QAAQ;QACxB,UAAU,EAAE,MAAM,CAAC,WAAW;KACjC,CAAC,CAAC;IACH,cAAc,EAAE,CAAC;AACrB,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4FpC,eAAO,MAAM,eAAe,SAGO,CAAC"}
1
+ {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../src/commands/auth/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2FpC,eAAO,MAAM,eAAe,SAGO,CAAC"}
@@ -1,14 +1,10 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.profilesCommand = void 0;
7
4
  const commander_1 = require("commander");
8
5
  const config_1 = require("../../lib/config");
9
6
  const output_1 = require("../../lib/output");
10
7
  const auth_1 = require("../../lib/auth");
11
- const chalk_1 = __importDefault(require("chalk"));
12
8
  const profilesListCommand = new commander_1.Command("list")
13
9
  .description("Show all profiles, which one is active, and each profile's redacted key + base URL")
14
10
  .option("--pretty", "Human-readable output (instead of default JSON)")
@@ -32,18 +28,18 @@ const profilesListCommand = new commander_1.Command("list")
32
28
  config_path: (0, config_1.getConfigPath)(),
33
29
  };
34
30
  if (opts.pretty || opts.table) {
35
- console.log(chalk_1.default.bold("Config path:"), output.config_path);
36
- console.log(chalk_1.default.bold("Active profile:"), current);
31
+ console.log(output_1.brand.primary.bold("Config path:"), output.config_path);
32
+ console.log(output_1.brand.primary.bold("Active profile:"), current);
37
33
  console.log();
38
34
  if (profileNames.length === 0) {
39
- console.log(chalk_1.default.yellow('No profiles configured. Run "frontline auth login <api-key>".'));
35
+ console.log(output_1.brand.warning('No profiles configured. Run "frontline auth login <api-key>".'));
40
36
  process.exit(0);
41
37
  }
42
38
  for (const [name, config] of Object.entries(summary)) {
43
- const marker = config.active ? chalk_1.default.green(" (active)") : "";
44
- console.log(chalk_1.default.bold(` ${name}${marker}`));
45
- console.log(` API Key: ${config.key_preview}`);
46
- console.log(` Base URL: ${config.base_url}`);
39
+ const marker = config.active ? ` ${output_1.brand.success("(active)")}` : "";
40
+ console.log(output_1.brand.primary.bold(` ${name}`) + marker);
41
+ console.log(` ${output_1.brand.muted("API Key:")} ${config.key_preview}`);
42
+ console.log(` ${output_1.brand.muted("Base URL:")} ${config.base_url}`);
47
43
  }
48
44
  process.exit(0);
49
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../../src/commands/auth/profiles.ts"],"names":[],"mappings":";;;;;;AAAA,yCAAoC;AACpC,6CAM0B;AAC1B,6CAAoE;AACpE,yCAA6C;AAC7C,kDAA0B;AAO1B,MAAM,mBAAmB,GAAG,IAAI,mBAAO,CAAC,MAAM,CAAC;KAC1C,WAAW,CACR,oFAAoF,CACvF;KACA,MAAM,CAAC,UAAU,EAAE,iDAAiD,CAAC;KACrE,MAAM,CAAC,SAAS,EA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,EAAE,CAAC,CAAC;QACtE,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAED,IAAA,gBAAO,EAAC,MAAM,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC;AAEP,MAAM,kBAAkB,GAAG,IAAI,mBAAO,CAAC,KAAK,CAAC;KACxC,WAAW,CAAC,gDAAgD,CAAC;KAC7D,QAAQ,CAAC,WAAW,EAAE,0BAA0B,CAAC;KACjD,MAAM,CAAC,CAAC,WAAmB,EAAE,EAAE;IAC5B,MAAM,OAAO,GAAG,IAAA,mBAAU,EAAC,WAAW,CAAC,CAAC;IACxC,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,IAAA,cAAK,EACD,mBAAmB,EACnB,YAAY,WAAW,kBAAkB,EACzC,mBAAU,CAAC,SAAS,EACpB,EAAE,UAAU,EAAE,8DAA8D,EAAE,CACjF,CAAC;IACN,CAAC;IAED,IAAA,0BAAiB,EAAC,WAAW,CAAC,CAAC;IAC/B,IAAA,aAAI,EAAC,wBAAwB,WAAW,GAAG,CAAC,CAAC;IAC7C,IAAA,gBAAO,EAAC;QACJ,cAAc,EAAE,WAAW;QAC3B,WAAW,EAAE,OAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAA,kBAAW,EAAC,OAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW;QACzE,QAAQ,EAAE,OAAQ,CAAC,OAAO;KAC7B,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAEM,QAAA,eAAe,GAAG,IAAI,mBAAO,CAAC,UAAU,CAAC;KACjD,WAAW,CAAC,sCAAsC,CAAC;KACnD,UAAU,CAAC,mBAAmB,CAAC;KAC/B,UAAU,CAAC,kBAAkB,CAAC,CAAC"}
@@ -47,8 +47,8 @@ const xlsxCmd = (0, globalOpts_1.globalOpts)(new commander_1.Command("xlsx")
47
47
  .option("--output <path>", "Output file path")
48
48
  .addHelpText("after", `
49
49
  Examples:
50
- $ frontline object export xlsx sor__people
51
- $ frontline object export xlsx sor__deals --query '{"path":"[Amount]","operator":"gte","value":10000}'
50
+ $ frontline object export xlsx standard__people
51
+ $ frontline object export xlsx standard__deals --query '{"path":"[Amount]","operator":"gte","value":10000}'
52
52
 
53
53
  Output: Downloads XLSX file.`)).action(async (name, opts) => {
54
54
  const client = (0, globalOpts_1.requireClient)(opts);
@@ -74,7 +74,7 @@ const csvCmd = (0, globalOpts_1.globalOpts)(new commander_1.Command("csv")
74
74
  .option("--output <path>", "Output file path")
75
75
  .addHelpText("after", `
76
76
  Examples:
77
- $ frontline object export csv sor__people
77
+ $ frontline object export csv standard__people
78
78
 
79
79
  Output: Downloads CSV file.`)).action(async (name, opts) => {
80
80
  const client = (0, globalOpts_1.requireClient)(opts);