chatbase 0.0.1 → 0.1.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/LICENSE +21 -0
- package/README.md +1524 -6
- package/bin/run.js +4 -0
- package/dist/base/agent-command.js +40 -0
- package/dist/base/agent-ref.js +16 -0
- package/dist/base/assert-file.js +21 -0
- package/dist/base/base-command.js +203 -0
- package/dist/base/body-input.js +77 -0
- package/dist/base/list-command.js +16 -0
- package/dist/base/sources.js +33 -0
- package/dist/client/chat-helpers.js +173 -0
- package/dist/client/client.js +175 -0
- package/dist/client/files.js +64 -0
- package/dist/client/paginate.js +40 -0
- package/dist/client/pairing.js +76 -0
- package/dist/client/retry.js +40 -0
- package/dist/client/signals.js +43 -0
- package/dist/client/stream.js +79 -0
- package/dist/commands/agents/auto-retrain.js +46 -0
- package/dist/commands/agents/clone.js +28 -0
- package/dist/commands/agents/create.js +43 -0
- package/dist/commands/agents/delete.js +41 -0
- package/dist/commands/agents/get.js +52 -0
- package/dist/commands/agents/list.js +48 -0
- package/dist/commands/agents/styles.js +44 -0
- package/dist/commands/agents/train.js +31 -0
- package/dist/commands/agents/update.js +47 -0
- package/dist/commands/api.js +69 -0
- package/dist/commands/auth/login.js +125 -0
- package/dist/commands/auth/logout.js +38 -0
- package/dist/commands/auth/status.js +86 -0
- package/dist/commands/chat/index.js +210 -0
- package/dist/commands/chat/retry.js +49 -0
- package/dist/commands/config/get.js +40 -0
- package/dist/commands/config/list.js +34 -0
- package/dist/commands/config/set.js +106 -0
- package/dist/commands/conversations/export.js +75 -0
- package/dist/commands/conversations/get.js +69 -0
- package/dist/commands/conversations/list.js +75 -0
- package/dist/commands/health.js +22 -0
- package/dist/commands/helpdesk/statuses.js +31 -0
- package/dist/commands/helpdesk/teams.js +25 -0
- package/dist/commands/messages/feedback.js +64 -0
- package/dist/commands/messages/list.js +55 -0
- package/dist/commands/sources/create.js +134 -0
- package/dist/commands/sources/delete.js +28 -0
- package/dist/commands/sources/get.js +35 -0
- package/dist/commands/sources/list.js +47 -0
- package/dist/commands/sources/restore.js +22 -0
- package/dist/commands/sources/summary.js +33 -0
- package/dist/commands/sources/update.js +76 -0
- package/dist/commands/tickets/create.js +58 -0
- package/dist/commands/tickets/get.js +44 -0
- package/dist/commands/tickets/list.js +96 -0
- package/dist/commands/tickets/messages.js +87 -0
- package/dist/commands/tickets/reply.js +66 -0
- package/dist/commands/tickets/search.js +53 -0
- package/dist/commands/tickets/update.js +38 -0
- package/dist/config/paths.js +22 -0
- package/dist/config/resolve.js +37 -0
- package/dist/config/store.js +38 -0
- package/dist/errors/errors.js +81 -0
- package/dist/hooks/chat-message-hint.js +21 -0
- package/dist/output/color.js +30 -0
- package/dist/output/mode.js +7 -0
- package/dist/output/render.js +0 -0
- package/dist/output/spinner.js +37 -0
- package/dist/repl/chat-repl.js +129 -0
- package/dist/version.js +3 -0
- package/oclif.manifest.json +3948 -0
- package/package.json +92 -4
- package/spec/openapi.json +11843 -0
|
@@ -0,0 +1,3948 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"api": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {
|
|
6
|
+
"method": {
|
|
7
|
+
"description": "HTTP method",
|
|
8
|
+
"name": "method",
|
|
9
|
+
"options": [
|
|
10
|
+
"GET",
|
|
11
|
+
"POST",
|
|
12
|
+
"PUT",
|
|
13
|
+
"PATCH",
|
|
14
|
+
"DELETE"
|
|
15
|
+
],
|
|
16
|
+
"required": true
|
|
17
|
+
},
|
|
18
|
+
"path": {
|
|
19
|
+
"description": "API path relative to /api/v2, e.g. /agents",
|
|
20
|
+
"name": "path",
|
|
21
|
+
"required": true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"description": "Call the Chatbase API directly — an escape hatch for endpoints without a dedicated command",
|
|
25
|
+
"examples": [
|
|
26
|
+
"<%= config.bin %> api GET /agents",
|
|
27
|
+
"<%= config.bin %> api GET /agents --field limit=5",
|
|
28
|
+
"<%= config.bin %> api POST /agents --body '{\"name\":\"Support Bot\"}'",
|
|
29
|
+
"<%= config.bin %> api PATCH /agents/agt_123 --body @patch.json"
|
|
30
|
+
],
|
|
31
|
+
"flags": {
|
|
32
|
+
"json": {
|
|
33
|
+
"description": "Output raw API JSON",
|
|
34
|
+
"helpGroup": "OUTPUT",
|
|
35
|
+
"name": "json",
|
|
36
|
+
"allowNo": false,
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
},
|
|
39
|
+
"plain": {
|
|
40
|
+
"description": "Tab-separated output for scripts",
|
|
41
|
+
"helpGroup": "OUTPUT",
|
|
42
|
+
"name": "plain",
|
|
43
|
+
"allowNo": false,
|
|
44
|
+
"type": "boolean"
|
|
45
|
+
},
|
|
46
|
+
"quiet": {
|
|
47
|
+
"char": "q",
|
|
48
|
+
"description": "Suppress non-essential output",
|
|
49
|
+
"name": "quiet",
|
|
50
|
+
"allowNo": false,
|
|
51
|
+
"type": "boolean"
|
|
52
|
+
},
|
|
53
|
+
"verbose": {
|
|
54
|
+
"description": "Verbose diagnostics",
|
|
55
|
+
"name": "verbose",
|
|
56
|
+
"allowNo": false,
|
|
57
|
+
"type": "boolean"
|
|
58
|
+
},
|
|
59
|
+
"no-input": {
|
|
60
|
+
"description": "Never prompt; fail instead",
|
|
61
|
+
"name": "no-input",
|
|
62
|
+
"allowNo": false,
|
|
63
|
+
"type": "boolean"
|
|
64
|
+
},
|
|
65
|
+
"no-color": {
|
|
66
|
+
"description": "Disable colored output",
|
|
67
|
+
"name": "no-color",
|
|
68
|
+
"allowNo": false,
|
|
69
|
+
"type": "boolean"
|
|
70
|
+
},
|
|
71
|
+
"field": {
|
|
72
|
+
"char": "f",
|
|
73
|
+
"description": "Set a body field: -f key=value (repeatable)",
|
|
74
|
+
"name": "field",
|
|
75
|
+
"hasDynamicHelp": false,
|
|
76
|
+
"multiple": true,
|
|
77
|
+
"type": "option"
|
|
78
|
+
},
|
|
79
|
+
"query": {
|
|
80
|
+
"description": "Query param k=v (repeatable)",
|
|
81
|
+
"name": "query",
|
|
82
|
+
"hasDynamicHelp": false,
|
|
83
|
+
"multiple": true,
|
|
84
|
+
"type": "option"
|
|
85
|
+
},
|
|
86
|
+
"body": {
|
|
87
|
+
"description": "JSON request body (@file, @-, or inline JSON)",
|
|
88
|
+
"name": "body",
|
|
89
|
+
"hasDynamicHelp": false,
|
|
90
|
+
"multiple": false,
|
|
91
|
+
"type": "option"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"hasDynamicHelp": false,
|
|
95
|
+
"hiddenAliases": [],
|
|
96
|
+
"id": "api",
|
|
97
|
+
"pluginAlias": "chatbase",
|
|
98
|
+
"pluginName": "chatbase",
|
|
99
|
+
"pluginType": "core",
|
|
100
|
+
"strict": true,
|
|
101
|
+
"enableJsonFlag": false,
|
|
102
|
+
"isESM": true,
|
|
103
|
+
"relativePath": [
|
|
104
|
+
"dist",
|
|
105
|
+
"commands",
|
|
106
|
+
"api.js"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"health": {
|
|
110
|
+
"aliases": [],
|
|
111
|
+
"args": {},
|
|
112
|
+
"description": "Check that the Chatbase API is reachable",
|
|
113
|
+
"examples": [
|
|
114
|
+
"<%= config.bin %> health",
|
|
115
|
+
"<%= config.bin %> health --json"
|
|
116
|
+
],
|
|
117
|
+
"flags": {
|
|
118
|
+
"json": {
|
|
119
|
+
"description": "Output raw API JSON",
|
|
120
|
+
"helpGroup": "OUTPUT",
|
|
121
|
+
"name": "json",
|
|
122
|
+
"allowNo": false,
|
|
123
|
+
"type": "boolean"
|
|
124
|
+
},
|
|
125
|
+
"plain": {
|
|
126
|
+
"description": "Tab-separated output for scripts",
|
|
127
|
+
"helpGroup": "OUTPUT",
|
|
128
|
+
"name": "plain",
|
|
129
|
+
"allowNo": false,
|
|
130
|
+
"type": "boolean"
|
|
131
|
+
},
|
|
132
|
+
"quiet": {
|
|
133
|
+
"char": "q",
|
|
134
|
+
"description": "Suppress non-essential output",
|
|
135
|
+
"name": "quiet",
|
|
136
|
+
"allowNo": false,
|
|
137
|
+
"type": "boolean"
|
|
138
|
+
},
|
|
139
|
+
"verbose": {
|
|
140
|
+
"description": "Verbose diagnostics",
|
|
141
|
+
"name": "verbose",
|
|
142
|
+
"allowNo": false,
|
|
143
|
+
"type": "boolean"
|
|
144
|
+
},
|
|
145
|
+
"no-input": {
|
|
146
|
+
"description": "Never prompt; fail instead",
|
|
147
|
+
"name": "no-input",
|
|
148
|
+
"allowNo": false,
|
|
149
|
+
"type": "boolean"
|
|
150
|
+
},
|
|
151
|
+
"no-color": {
|
|
152
|
+
"description": "Disable colored output",
|
|
153
|
+
"name": "no-color",
|
|
154
|
+
"allowNo": false,
|
|
155
|
+
"type": "boolean"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"hasDynamicHelp": false,
|
|
159
|
+
"hiddenAliases": [],
|
|
160
|
+
"id": "health",
|
|
161
|
+
"pluginAlias": "chatbase",
|
|
162
|
+
"pluginName": "chatbase",
|
|
163
|
+
"pluginType": "core",
|
|
164
|
+
"strict": true,
|
|
165
|
+
"enableJsonFlag": false,
|
|
166
|
+
"isESM": true,
|
|
167
|
+
"relativePath": [
|
|
168
|
+
"dist",
|
|
169
|
+
"commands",
|
|
170
|
+
"health.js"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"agents:auto-retrain": {
|
|
174
|
+
"aliases": [],
|
|
175
|
+
"args": {
|
|
176
|
+
"agentId": {
|
|
177
|
+
"description": "Agent ID",
|
|
178
|
+
"name": "agentId",
|
|
179
|
+
"required": false
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"description": "Enable or disable automatic retraining for an agent",
|
|
183
|
+
"examples": [
|
|
184
|
+
"<%= config.bin %> agents auto-retrain agt_123 --enabled",
|
|
185
|
+
"<%= config.bin %> agents auto-retrain --enabled"
|
|
186
|
+
],
|
|
187
|
+
"flags": {
|
|
188
|
+
"json": {
|
|
189
|
+
"description": "Output raw API JSON",
|
|
190
|
+
"helpGroup": "OUTPUT",
|
|
191
|
+
"name": "json",
|
|
192
|
+
"allowNo": false,
|
|
193
|
+
"type": "boolean"
|
|
194
|
+
},
|
|
195
|
+
"plain": {
|
|
196
|
+
"description": "Tab-separated output for scripts",
|
|
197
|
+
"helpGroup": "OUTPUT",
|
|
198
|
+
"name": "plain",
|
|
199
|
+
"allowNo": false,
|
|
200
|
+
"type": "boolean"
|
|
201
|
+
},
|
|
202
|
+
"quiet": {
|
|
203
|
+
"char": "q",
|
|
204
|
+
"description": "Suppress non-essential output",
|
|
205
|
+
"name": "quiet",
|
|
206
|
+
"allowNo": false,
|
|
207
|
+
"type": "boolean"
|
|
208
|
+
},
|
|
209
|
+
"verbose": {
|
|
210
|
+
"description": "Verbose diagnostics",
|
|
211
|
+
"name": "verbose",
|
|
212
|
+
"allowNo": false,
|
|
213
|
+
"type": "boolean"
|
|
214
|
+
},
|
|
215
|
+
"no-input": {
|
|
216
|
+
"description": "Never prompt; fail instead",
|
|
217
|
+
"name": "no-input",
|
|
218
|
+
"allowNo": false,
|
|
219
|
+
"type": "boolean"
|
|
220
|
+
},
|
|
221
|
+
"no-color": {
|
|
222
|
+
"description": "Disable colored output",
|
|
223
|
+
"name": "no-color",
|
|
224
|
+
"allowNo": false,
|
|
225
|
+
"type": "boolean"
|
|
226
|
+
},
|
|
227
|
+
"agent": {
|
|
228
|
+
"char": "a",
|
|
229
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
230
|
+
"name": "agent",
|
|
231
|
+
"hasDynamicHelp": false,
|
|
232
|
+
"multiple": false,
|
|
233
|
+
"type": "option"
|
|
234
|
+
},
|
|
235
|
+
"agent-name": {
|
|
236
|
+
"description": "Agent display name (looked up to an ID)",
|
|
237
|
+
"exclusive": [
|
|
238
|
+
"agent"
|
|
239
|
+
],
|
|
240
|
+
"name": "agent-name",
|
|
241
|
+
"hasDynamicHelp": false,
|
|
242
|
+
"multiple": false,
|
|
243
|
+
"type": "option"
|
|
244
|
+
},
|
|
245
|
+
"enabled": {
|
|
246
|
+
"description": "Enable automatic retraining",
|
|
247
|
+
"name": "enabled",
|
|
248
|
+
"allowNo": false,
|
|
249
|
+
"type": "boolean"
|
|
250
|
+
},
|
|
251
|
+
"disabled": {
|
|
252
|
+
"description": "Disable automatic retraining",
|
|
253
|
+
"name": "disabled",
|
|
254
|
+
"allowNo": false,
|
|
255
|
+
"type": "boolean"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"hasDynamicHelp": false,
|
|
259
|
+
"hiddenAliases": [],
|
|
260
|
+
"id": "agents:auto-retrain",
|
|
261
|
+
"pluginAlias": "chatbase",
|
|
262
|
+
"pluginName": "chatbase",
|
|
263
|
+
"pluginType": "core",
|
|
264
|
+
"strict": true,
|
|
265
|
+
"enableJsonFlag": false,
|
|
266
|
+
"isESM": true,
|
|
267
|
+
"relativePath": [
|
|
268
|
+
"dist",
|
|
269
|
+
"commands",
|
|
270
|
+
"agents",
|
|
271
|
+
"auto-retrain.js"
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
"agents:clone": {
|
|
275
|
+
"aliases": [],
|
|
276
|
+
"args": {
|
|
277
|
+
"agentId": {
|
|
278
|
+
"description": "Agent ID to clone",
|
|
279
|
+
"name": "agentId",
|
|
280
|
+
"required": true
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"description": "Clone an agent, including all its sources (excluding Notion)",
|
|
284
|
+
"examples": [
|
|
285
|
+
"<%= config.bin %> agents clone agt_123"
|
|
286
|
+
],
|
|
287
|
+
"flags": {
|
|
288
|
+
"json": {
|
|
289
|
+
"description": "Output raw API JSON",
|
|
290
|
+
"helpGroup": "OUTPUT",
|
|
291
|
+
"name": "json",
|
|
292
|
+
"allowNo": false,
|
|
293
|
+
"type": "boolean"
|
|
294
|
+
},
|
|
295
|
+
"plain": {
|
|
296
|
+
"description": "Tab-separated output for scripts",
|
|
297
|
+
"helpGroup": "OUTPUT",
|
|
298
|
+
"name": "plain",
|
|
299
|
+
"allowNo": false,
|
|
300
|
+
"type": "boolean"
|
|
301
|
+
},
|
|
302
|
+
"quiet": {
|
|
303
|
+
"char": "q",
|
|
304
|
+
"description": "Suppress non-essential output",
|
|
305
|
+
"name": "quiet",
|
|
306
|
+
"allowNo": false,
|
|
307
|
+
"type": "boolean"
|
|
308
|
+
},
|
|
309
|
+
"verbose": {
|
|
310
|
+
"description": "Verbose diagnostics",
|
|
311
|
+
"name": "verbose",
|
|
312
|
+
"allowNo": false,
|
|
313
|
+
"type": "boolean"
|
|
314
|
+
},
|
|
315
|
+
"no-input": {
|
|
316
|
+
"description": "Never prompt; fail instead",
|
|
317
|
+
"name": "no-input",
|
|
318
|
+
"allowNo": false,
|
|
319
|
+
"type": "boolean"
|
|
320
|
+
},
|
|
321
|
+
"no-color": {
|
|
322
|
+
"description": "Disable colored output",
|
|
323
|
+
"name": "no-color",
|
|
324
|
+
"allowNo": false,
|
|
325
|
+
"type": "boolean"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"hasDynamicHelp": false,
|
|
329
|
+
"hiddenAliases": [],
|
|
330
|
+
"id": "agents:clone",
|
|
331
|
+
"pluginAlias": "chatbase",
|
|
332
|
+
"pluginName": "chatbase",
|
|
333
|
+
"pluginType": "core",
|
|
334
|
+
"strict": true,
|
|
335
|
+
"enableJsonFlag": false,
|
|
336
|
+
"isESM": true,
|
|
337
|
+
"relativePath": [
|
|
338
|
+
"dist",
|
|
339
|
+
"commands",
|
|
340
|
+
"agents",
|
|
341
|
+
"clone.js"
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
"agents:create": {
|
|
345
|
+
"aliases": [],
|
|
346
|
+
"args": {},
|
|
347
|
+
"description": "Create a new agent",
|
|
348
|
+
"examples": [
|
|
349
|
+
"<%= config.bin %> agents create --name \"Support Bot\" --instructions \"Be helpful\"",
|
|
350
|
+
"<%= config.bin %> agents create --data @agent.json"
|
|
351
|
+
],
|
|
352
|
+
"flags": {
|
|
353
|
+
"json": {
|
|
354
|
+
"description": "Output raw API JSON",
|
|
355
|
+
"helpGroup": "OUTPUT",
|
|
356
|
+
"name": "json",
|
|
357
|
+
"allowNo": false,
|
|
358
|
+
"type": "boolean"
|
|
359
|
+
},
|
|
360
|
+
"plain": {
|
|
361
|
+
"description": "Tab-separated output for scripts",
|
|
362
|
+
"helpGroup": "OUTPUT",
|
|
363
|
+
"name": "plain",
|
|
364
|
+
"allowNo": false,
|
|
365
|
+
"type": "boolean"
|
|
366
|
+
},
|
|
367
|
+
"quiet": {
|
|
368
|
+
"char": "q",
|
|
369
|
+
"description": "Suppress non-essential output",
|
|
370
|
+
"name": "quiet",
|
|
371
|
+
"allowNo": false,
|
|
372
|
+
"type": "boolean"
|
|
373
|
+
},
|
|
374
|
+
"verbose": {
|
|
375
|
+
"description": "Verbose diagnostics",
|
|
376
|
+
"name": "verbose",
|
|
377
|
+
"allowNo": false,
|
|
378
|
+
"type": "boolean"
|
|
379
|
+
},
|
|
380
|
+
"no-input": {
|
|
381
|
+
"description": "Never prompt; fail instead",
|
|
382
|
+
"name": "no-input",
|
|
383
|
+
"allowNo": false,
|
|
384
|
+
"type": "boolean"
|
|
385
|
+
},
|
|
386
|
+
"no-color": {
|
|
387
|
+
"description": "Disable colored output",
|
|
388
|
+
"name": "no-color",
|
|
389
|
+
"allowNo": false,
|
|
390
|
+
"type": "boolean"
|
|
391
|
+
},
|
|
392
|
+
"field": {
|
|
393
|
+
"char": "f",
|
|
394
|
+
"description": "Set a body field: -f key=value (repeatable)",
|
|
395
|
+
"name": "field",
|
|
396
|
+
"hasDynamicHelp": false,
|
|
397
|
+
"multiple": true,
|
|
398
|
+
"type": "option"
|
|
399
|
+
},
|
|
400
|
+
"name": {
|
|
401
|
+
"description": "Agent name",
|
|
402
|
+
"name": "name",
|
|
403
|
+
"hasDynamicHelp": false,
|
|
404
|
+
"multiple": false,
|
|
405
|
+
"type": "option"
|
|
406
|
+
},
|
|
407
|
+
"instructions": {
|
|
408
|
+
"description": "System instructions",
|
|
409
|
+
"name": "instructions",
|
|
410
|
+
"hasDynamicHelp": false,
|
|
411
|
+
"multiple": false,
|
|
412
|
+
"type": "option"
|
|
413
|
+
},
|
|
414
|
+
"model": {
|
|
415
|
+
"description": "Model ID",
|
|
416
|
+
"name": "model",
|
|
417
|
+
"hasDynamicHelp": false,
|
|
418
|
+
"multiple": false,
|
|
419
|
+
"type": "option"
|
|
420
|
+
},
|
|
421
|
+
"data": {
|
|
422
|
+
"description": "JSON body (@file, @-, or inline). Fields: name, instructions, model, visibility, temp",
|
|
423
|
+
"name": "data",
|
|
424
|
+
"hasDynamicHelp": false,
|
|
425
|
+
"multiple": false,
|
|
426
|
+
"type": "option"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"hasDynamicHelp": false,
|
|
430
|
+
"hiddenAliases": [],
|
|
431
|
+
"id": "agents:create",
|
|
432
|
+
"pluginAlias": "chatbase",
|
|
433
|
+
"pluginName": "chatbase",
|
|
434
|
+
"pluginType": "core",
|
|
435
|
+
"strict": true,
|
|
436
|
+
"enableJsonFlag": false,
|
|
437
|
+
"isESM": true,
|
|
438
|
+
"relativePath": [
|
|
439
|
+
"dist",
|
|
440
|
+
"commands",
|
|
441
|
+
"agents",
|
|
442
|
+
"create.js"
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
"agents:delete": {
|
|
446
|
+
"aliases": [],
|
|
447
|
+
"args": {
|
|
448
|
+
"agentId": {
|
|
449
|
+
"description": "Agent ID",
|
|
450
|
+
"name": "agentId",
|
|
451
|
+
"required": true
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"description": "Permanently delete an agent (cannot be undone)",
|
|
455
|
+
"examples": [
|
|
456
|
+
"<%= config.bin %> agents delete agt_123 --confirm agt_123"
|
|
457
|
+
],
|
|
458
|
+
"flags": {
|
|
459
|
+
"json": {
|
|
460
|
+
"description": "Output raw API JSON",
|
|
461
|
+
"helpGroup": "OUTPUT",
|
|
462
|
+
"name": "json",
|
|
463
|
+
"allowNo": false,
|
|
464
|
+
"type": "boolean"
|
|
465
|
+
},
|
|
466
|
+
"plain": {
|
|
467
|
+
"description": "Tab-separated output for scripts",
|
|
468
|
+
"helpGroup": "OUTPUT",
|
|
469
|
+
"name": "plain",
|
|
470
|
+
"allowNo": false,
|
|
471
|
+
"type": "boolean"
|
|
472
|
+
},
|
|
473
|
+
"quiet": {
|
|
474
|
+
"char": "q",
|
|
475
|
+
"description": "Suppress non-essential output",
|
|
476
|
+
"name": "quiet",
|
|
477
|
+
"allowNo": false,
|
|
478
|
+
"type": "boolean"
|
|
479
|
+
},
|
|
480
|
+
"verbose": {
|
|
481
|
+
"description": "Verbose diagnostics",
|
|
482
|
+
"name": "verbose",
|
|
483
|
+
"allowNo": false,
|
|
484
|
+
"type": "boolean"
|
|
485
|
+
},
|
|
486
|
+
"no-input": {
|
|
487
|
+
"description": "Never prompt; fail instead",
|
|
488
|
+
"name": "no-input",
|
|
489
|
+
"allowNo": false,
|
|
490
|
+
"type": "boolean"
|
|
491
|
+
},
|
|
492
|
+
"no-color": {
|
|
493
|
+
"description": "Disable colored output",
|
|
494
|
+
"name": "no-color",
|
|
495
|
+
"allowNo": false,
|
|
496
|
+
"type": "boolean"
|
|
497
|
+
},
|
|
498
|
+
"confirm": {
|
|
499
|
+
"description": "Confirm by repeating the agent ID (required in scripts and CI)",
|
|
500
|
+
"name": "confirm",
|
|
501
|
+
"hasDynamicHelp": false,
|
|
502
|
+
"multiple": false,
|
|
503
|
+
"type": "option"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"hasDynamicHelp": false,
|
|
507
|
+
"hiddenAliases": [],
|
|
508
|
+
"id": "agents:delete",
|
|
509
|
+
"pluginAlias": "chatbase",
|
|
510
|
+
"pluginName": "chatbase",
|
|
511
|
+
"pluginType": "core",
|
|
512
|
+
"strict": true,
|
|
513
|
+
"enableJsonFlag": false,
|
|
514
|
+
"isESM": true,
|
|
515
|
+
"relativePath": [
|
|
516
|
+
"dist",
|
|
517
|
+
"commands",
|
|
518
|
+
"agents",
|
|
519
|
+
"delete.js"
|
|
520
|
+
]
|
|
521
|
+
},
|
|
522
|
+
"agents:get": {
|
|
523
|
+
"aliases": [],
|
|
524
|
+
"args": {
|
|
525
|
+
"agentId": {
|
|
526
|
+
"description": "Agent ID",
|
|
527
|
+
"name": "agentId",
|
|
528
|
+
"required": false
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"description": "Show one agent",
|
|
532
|
+
"examples": [
|
|
533
|
+
"<%= config.bin %> agents get agt_123",
|
|
534
|
+
"<%= config.bin %> agents get"
|
|
535
|
+
],
|
|
536
|
+
"flags": {
|
|
537
|
+
"json": {
|
|
538
|
+
"description": "Output raw API JSON",
|
|
539
|
+
"helpGroup": "OUTPUT",
|
|
540
|
+
"name": "json",
|
|
541
|
+
"allowNo": false,
|
|
542
|
+
"type": "boolean"
|
|
543
|
+
},
|
|
544
|
+
"plain": {
|
|
545
|
+
"description": "Tab-separated output for scripts",
|
|
546
|
+
"helpGroup": "OUTPUT",
|
|
547
|
+
"name": "plain",
|
|
548
|
+
"allowNo": false,
|
|
549
|
+
"type": "boolean"
|
|
550
|
+
},
|
|
551
|
+
"quiet": {
|
|
552
|
+
"char": "q",
|
|
553
|
+
"description": "Suppress non-essential output",
|
|
554
|
+
"name": "quiet",
|
|
555
|
+
"allowNo": false,
|
|
556
|
+
"type": "boolean"
|
|
557
|
+
},
|
|
558
|
+
"verbose": {
|
|
559
|
+
"description": "Verbose diagnostics",
|
|
560
|
+
"name": "verbose",
|
|
561
|
+
"allowNo": false,
|
|
562
|
+
"type": "boolean"
|
|
563
|
+
},
|
|
564
|
+
"no-input": {
|
|
565
|
+
"description": "Never prompt; fail instead",
|
|
566
|
+
"name": "no-input",
|
|
567
|
+
"allowNo": false,
|
|
568
|
+
"type": "boolean"
|
|
569
|
+
},
|
|
570
|
+
"no-color": {
|
|
571
|
+
"description": "Disable colored output",
|
|
572
|
+
"name": "no-color",
|
|
573
|
+
"allowNo": false,
|
|
574
|
+
"type": "boolean"
|
|
575
|
+
},
|
|
576
|
+
"agent": {
|
|
577
|
+
"char": "a",
|
|
578
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
579
|
+
"name": "agent",
|
|
580
|
+
"hasDynamicHelp": false,
|
|
581
|
+
"multiple": false,
|
|
582
|
+
"type": "option"
|
|
583
|
+
},
|
|
584
|
+
"agent-name": {
|
|
585
|
+
"description": "Agent display name (looked up to an ID)",
|
|
586
|
+
"exclusive": [
|
|
587
|
+
"agent"
|
|
588
|
+
],
|
|
589
|
+
"name": "agent-name",
|
|
590
|
+
"hasDynamicHelp": false,
|
|
591
|
+
"multiple": false,
|
|
592
|
+
"type": "option"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"hasDynamicHelp": false,
|
|
596
|
+
"hiddenAliases": [],
|
|
597
|
+
"id": "agents:get",
|
|
598
|
+
"pluginAlias": "chatbase",
|
|
599
|
+
"pluginName": "chatbase",
|
|
600
|
+
"pluginType": "core",
|
|
601
|
+
"strict": true,
|
|
602
|
+
"enableJsonFlag": false,
|
|
603
|
+
"isESM": true,
|
|
604
|
+
"relativePath": [
|
|
605
|
+
"dist",
|
|
606
|
+
"commands",
|
|
607
|
+
"agents",
|
|
608
|
+
"get.js"
|
|
609
|
+
]
|
|
610
|
+
},
|
|
611
|
+
"agents:list": {
|
|
612
|
+
"aliases": [],
|
|
613
|
+
"args": {},
|
|
614
|
+
"description": "List all agents in the workspace",
|
|
615
|
+
"examples": [
|
|
616
|
+
"<%= config.bin %> agents list",
|
|
617
|
+
"<%= config.bin %> agents list --json"
|
|
618
|
+
],
|
|
619
|
+
"flags": {
|
|
620
|
+
"json": {
|
|
621
|
+
"description": "Output raw API JSON",
|
|
622
|
+
"helpGroup": "OUTPUT",
|
|
623
|
+
"name": "json",
|
|
624
|
+
"allowNo": false,
|
|
625
|
+
"type": "boolean"
|
|
626
|
+
},
|
|
627
|
+
"plain": {
|
|
628
|
+
"description": "Tab-separated output for scripts",
|
|
629
|
+
"helpGroup": "OUTPUT",
|
|
630
|
+
"name": "plain",
|
|
631
|
+
"allowNo": false,
|
|
632
|
+
"type": "boolean"
|
|
633
|
+
},
|
|
634
|
+
"quiet": {
|
|
635
|
+
"char": "q",
|
|
636
|
+
"description": "Suppress non-essential output",
|
|
637
|
+
"name": "quiet",
|
|
638
|
+
"allowNo": false,
|
|
639
|
+
"type": "boolean"
|
|
640
|
+
},
|
|
641
|
+
"verbose": {
|
|
642
|
+
"description": "Verbose diagnostics",
|
|
643
|
+
"name": "verbose",
|
|
644
|
+
"allowNo": false,
|
|
645
|
+
"type": "boolean"
|
|
646
|
+
},
|
|
647
|
+
"no-input": {
|
|
648
|
+
"description": "Never prompt; fail instead",
|
|
649
|
+
"name": "no-input",
|
|
650
|
+
"allowNo": false,
|
|
651
|
+
"type": "boolean"
|
|
652
|
+
},
|
|
653
|
+
"no-color": {
|
|
654
|
+
"description": "Disable colored output",
|
|
655
|
+
"name": "no-color",
|
|
656
|
+
"allowNo": false,
|
|
657
|
+
"type": "boolean"
|
|
658
|
+
},
|
|
659
|
+
"limit": {
|
|
660
|
+
"description": "Maximum items per page",
|
|
661
|
+
"name": "limit",
|
|
662
|
+
"hasDynamicHelp": false,
|
|
663
|
+
"multiple": false,
|
|
664
|
+
"type": "option"
|
|
665
|
+
},
|
|
666
|
+
"cursor": {
|
|
667
|
+
"description": "Pagination cursor from a previous page",
|
|
668
|
+
"name": "cursor",
|
|
669
|
+
"hasDynamicHelp": false,
|
|
670
|
+
"multiple": false,
|
|
671
|
+
"type": "option"
|
|
672
|
+
},
|
|
673
|
+
"all": {
|
|
674
|
+
"description": "Fetch every page",
|
|
675
|
+
"name": "all",
|
|
676
|
+
"allowNo": false,
|
|
677
|
+
"type": "boolean"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"hasDynamicHelp": false,
|
|
681
|
+
"hiddenAliases": [],
|
|
682
|
+
"id": "agents:list",
|
|
683
|
+
"pluginAlias": "chatbase",
|
|
684
|
+
"pluginName": "chatbase",
|
|
685
|
+
"pluginType": "core",
|
|
686
|
+
"strict": true,
|
|
687
|
+
"enableJsonFlag": false,
|
|
688
|
+
"isESM": true,
|
|
689
|
+
"relativePath": [
|
|
690
|
+
"dist",
|
|
691
|
+
"commands",
|
|
692
|
+
"agents",
|
|
693
|
+
"list.js"
|
|
694
|
+
]
|
|
695
|
+
},
|
|
696
|
+
"agents:styles": {
|
|
697
|
+
"aliases": [],
|
|
698
|
+
"args": {
|
|
699
|
+
"agentId": {
|
|
700
|
+
"description": "Agent ID",
|
|
701
|
+
"name": "agentId",
|
|
702
|
+
"required": false
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
"description": "Update visual styles for an agent",
|
|
706
|
+
"examples": [
|
|
707
|
+
"<%= config.bin %> agents styles agt_123 --data '{\"chat\":{\"theme\":\"dark\"}}'",
|
|
708
|
+
"<%= config.bin %> agents styles --data @styles.json"
|
|
709
|
+
],
|
|
710
|
+
"flags": {
|
|
711
|
+
"json": {
|
|
712
|
+
"description": "Output raw API JSON",
|
|
713
|
+
"helpGroup": "OUTPUT",
|
|
714
|
+
"name": "json",
|
|
715
|
+
"allowNo": false,
|
|
716
|
+
"type": "boolean"
|
|
717
|
+
},
|
|
718
|
+
"plain": {
|
|
719
|
+
"description": "Tab-separated output for scripts",
|
|
720
|
+
"helpGroup": "OUTPUT",
|
|
721
|
+
"name": "plain",
|
|
722
|
+
"allowNo": false,
|
|
723
|
+
"type": "boolean"
|
|
724
|
+
},
|
|
725
|
+
"quiet": {
|
|
726
|
+
"char": "q",
|
|
727
|
+
"description": "Suppress non-essential output",
|
|
728
|
+
"name": "quiet",
|
|
729
|
+
"allowNo": false,
|
|
730
|
+
"type": "boolean"
|
|
731
|
+
},
|
|
732
|
+
"verbose": {
|
|
733
|
+
"description": "Verbose diagnostics",
|
|
734
|
+
"name": "verbose",
|
|
735
|
+
"allowNo": false,
|
|
736
|
+
"type": "boolean"
|
|
737
|
+
},
|
|
738
|
+
"no-input": {
|
|
739
|
+
"description": "Never prompt; fail instead",
|
|
740
|
+
"name": "no-input",
|
|
741
|
+
"allowNo": false,
|
|
742
|
+
"type": "boolean"
|
|
743
|
+
},
|
|
744
|
+
"no-color": {
|
|
745
|
+
"description": "Disable colored output",
|
|
746
|
+
"name": "no-color",
|
|
747
|
+
"allowNo": false,
|
|
748
|
+
"type": "boolean"
|
|
749
|
+
},
|
|
750
|
+
"agent": {
|
|
751
|
+
"char": "a",
|
|
752
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
753
|
+
"name": "agent",
|
|
754
|
+
"hasDynamicHelp": false,
|
|
755
|
+
"multiple": false,
|
|
756
|
+
"type": "option"
|
|
757
|
+
},
|
|
758
|
+
"agent-name": {
|
|
759
|
+
"description": "Agent display name (looked up to an ID)",
|
|
760
|
+
"exclusive": [
|
|
761
|
+
"agent"
|
|
762
|
+
],
|
|
763
|
+
"name": "agent-name",
|
|
764
|
+
"hasDynamicHelp": false,
|
|
765
|
+
"multiple": false,
|
|
766
|
+
"type": "option"
|
|
767
|
+
},
|
|
768
|
+
"field": {
|
|
769
|
+
"char": "f",
|
|
770
|
+
"description": "Set a body field: -f key=value (repeatable)",
|
|
771
|
+
"name": "field",
|
|
772
|
+
"hasDynamicHelp": false,
|
|
773
|
+
"multiple": true,
|
|
774
|
+
"type": "option"
|
|
775
|
+
},
|
|
776
|
+
"data": {
|
|
777
|
+
"description": "JSON body (@file, @-, or inline). See API docs for style properties",
|
|
778
|
+
"name": "data",
|
|
779
|
+
"required": true,
|
|
780
|
+
"hasDynamicHelp": false,
|
|
781
|
+
"multiple": false,
|
|
782
|
+
"type": "option"
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"hasDynamicHelp": false,
|
|
786
|
+
"hiddenAliases": [],
|
|
787
|
+
"id": "agents:styles",
|
|
788
|
+
"pluginAlias": "chatbase",
|
|
789
|
+
"pluginName": "chatbase",
|
|
790
|
+
"pluginType": "core",
|
|
791
|
+
"strict": true,
|
|
792
|
+
"enableJsonFlag": false,
|
|
793
|
+
"isESM": true,
|
|
794
|
+
"relativePath": [
|
|
795
|
+
"dist",
|
|
796
|
+
"commands",
|
|
797
|
+
"agents",
|
|
798
|
+
"styles.js"
|
|
799
|
+
]
|
|
800
|
+
},
|
|
801
|
+
"agents:train": {
|
|
802
|
+
"aliases": [],
|
|
803
|
+
"args": {
|
|
804
|
+
"agentId": {
|
|
805
|
+
"description": "Agent ID to train (defaults to the configured agent, like other commands)",
|
|
806
|
+
"name": "agentId",
|
|
807
|
+
"required": false
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
"description": "Queue a training job for an agent",
|
|
811
|
+
"examples": [
|
|
812
|
+
"<%= config.bin %> agents train agt_123",
|
|
813
|
+
"<%= config.bin %> agents train"
|
|
814
|
+
],
|
|
815
|
+
"flags": {
|
|
816
|
+
"json": {
|
|
817
|
+
"description": "Output raw API JSON",
|
|
818
|
+
"helpGroup": "OUTPUT",
|
|
819
|
+
"name": "json",
|
|
820
|
+
"allowNo": false,
|
|
821
|
+
"type": "boolean"
|
|
822
|
+
},
|
|
823
|
+
"plain": {
|
|
824
|
+
"description": "Tab-separated output for scripts",
|
|
825
|
+
"helpGroup": "OUTPUT",
|
|
826
|
+
"name": "plain",
|
|
827
|
+
"allowNo": false,
|
|
828
|
+
"type": "boolean"
|
|
829
|
+
},
|
|
830
|
+
"quiet": {
|
|
831
|
+
"char": "q",
|
|
832
|
+
"description": "Suppress non-essential output",
|
|
833
|
+
"name": "quiet",
|
|
834
|
+
"allowNo": false,
|
|
835
|
+
"type": "boolean"
|
|
836
|
+
},
|
|
837
|
+
"verbose": {
|
|
838
|
+
"description": "Verbose diagnostics",
|
|
839
|
+
"name": "verbose",
|
|
840
|
+
"allowNo": false,
|
|
841
|
+
"type": "boolean"
|
|
842
|
+
},
|
|
843
|
+
"no-input": {
|
|
844
|
+
"description": "Never prompt; fail instead",
|
|
845
|
+
"name": "no-input",
|
|
846
|
+
"allowNo": false,
|
|
847
|
+
"type": "boolean"
|
|
848
|
+
},
|
|
849
|
+
"no-color": {
|
|
850
|
+
"description": "Disable colored output",
|
|
851
|
+
"name": "no-color",
|
|
852
|
+
"allowNo": false,
|
|
853
|
+
"type": "boolean"
|
|
854
|
+
},
|
|
855
|
+
"agent": {
|
|
856
|
+
"char": "a",
|
|
857
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
858
|
+
"name": "agent",
|
|
859
|
+
"hasDynamicHelp": false,
|
|
860
|
+
"multiple": false,
|
|
861
|
+
"type": "option"
|
|
862
|
+
},
|
|
863
|
+
"agent-name": {
|
|
864
|
+
"description": "Agent display name (looked up to an ID)",
|
|
865
|
+
"exclusive": [
|
|
866
|
+
"agent"
|
|
867
|
+
],
|
|
868
|
+
"name": "agent-name",
|
|
869
|
+
"hasDynamicHelp": false,
|
|
870
|
+
"multiple": false,
|
|
871
|
+
"type": "option"
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
"hasDynamicHelp": false,
|
|
875
|
+
"hiddenAliases": [],
|
|
876
|
+
"id": "agents:train",
|
|
877
|
+
"pluginAlias": "chatbase",
|
|
878
|
+
"pluginName": "chatbase",
|
|
879
|
+
"pluginType": "core",
|
|
880
|
+
"strict": true,
|
|
881
|
+
"enableJsonFlag": false,
|
|
882
|
+
"isESM": true,
|
|
883
|
+
"relativePath": [
|
|
884
|
+
"dist",
|
|
885
|
+
"commands",
|
|
886
|
+
"agents",
|
|
887
|
+
"train.js"
|
|
888
|
+
]
|
|
889
|
+
},
|
|
890
|
+
"agents:update": {
|
|
891
|
+
"aliases": [],
|
|
892
|
+
"args": {
|
|
893
|
+
"agentId": {
|
|
894
|
+
"description": "Agent ID",
|
|
895
|
+
"name": "agentId",
|
|
896
|
+
"required": false
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"description": "Update an existing agent",
|
|
900
|
+
"examples": [
|
|
901
|
+
"<%= config.bin %> agents update agt_123 --name \"New Name\"",
|
|
902
|
+
"<%= config.bin %> agents update --name \"New Name\"",
|
|
903
|
+
"<%= config.bin %> agents update agt_123 --data @agent.json"
|
|
904
|
+
],
|
|
905
|
+
"flags": {
|
|
906
|
+
"json": {
|
|
907
|
+
"description": "Output raw API JSON",
|
|
908
|
+
"helpGroup": "OUTPUT",
|
|
909
|
+
"name": "json",
|
|
910
|
+
"allowNo": false,
|
|
911
|
+
"type": "boolean"
|
|
912
|
+
},
|
|
913
|
+
"plain": {
|
|
914
|
+
"description": "Tab-separated output for scripts",
|
|
915
|
+
"helpGroup": "OUTPUT",
|
|
916
|
+
"name": "plain",
|
|
917
|
+
"allowNo": false,
|
|
918
|
+
"type": "boolean"
|
|
919
|
+
},
|
|
920
|
+
"quiet": {
|
|
921
|
+
"char": "q",
|
|
922
|
+
"description": "Suppress non-essential output",
|
|
923
|
+
"name": "quiet",
|
|
924
|
+
"allowNo": false,
|
|
925
|
+
"type": "boolean"
|
|
926
|
+
},
|
|
927
|
+
"verbose": {
|
|
928
|
+
"description": "Verbose diagnostics",
|
|
929
|
+
"name": "verbose",
|
|
930
|
+
"allowNo": false,
|
|
931
|
+
"type": "boolean"
|
|
932
|
+
},
|
|
933
|
+
"no-input": {
|
|
934
|
+
"description": "Never prompt; fail instead",
|
|
935
|
+
"name": "no-input",
|
|
936
|
+
"allowNo": false,
|
|
937
|
+
"type": "boolean"
|
|
938
|
+
},
|
|
939
|
+
"no-color": {
|
|
940
|
+
"description": "Disable colored output",
|
|
941
|
+
"name": "no-color",
|
|
942
|
+
"allowNo": false,
|
|
943
|
+
"type": "boolean"
|
|
944
|
+
},
|
|
945
|
+
"agent": {
|
|
946
|
+
"char": "a",
|
|
947
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
948
|
+
"name": "agent",
|
|
949
|
+
"hasDynamicHelp": false,
|
|
950
|
+
"multiple": false,
|
|
951
|
+
"type": "option"
|
|
952
|
+
},
|
|
953
|
+
"agent-name": {
|
|
954
|
+
"description": "Agent display name (looked up to an ID)",
|
|
955
|
+
"exclusive": [
|
|
956
|
+
"agent"
|
|
957
|
+
],
|
|
958
|
+
"name": "agent-name",
|
|
959
|
+
"hasDynamicHelp": false,
|
|
960
|
+
"multiple": false,
|
|
961
|
+
"type": "option"
|
|
962
|
+
},
|
|
963
|
+
"field": {
|
|
964
|
+
"char": "f",
|
|
965
|
+
"description": "Set a body field: -f key=value (repeatable)",
|
|
966
|
+
"name": "field",
|
|
967
|
+
"hasDynamicHelp": false,
|
|
968
|
+
"multiple": true,
|
|
969
|
+
"type": "option"
|
|
970
|
+
},
|
|
971
|
+
"name": {
|
|
972
|
+
"description": "Agent name",
|
|
973
|
+
"name": "name",
|
|
974
|
+
"hasDynamicHelp": false,
|
|
975
|
+
"multiple": false,
|
|
976
|
+
"type": "option"
|
|
977
|
+
},
|
|
978
|
+
"instructions": {
|
|
979
|
+
"description": "System instructions",
|
|
980
|
+
"name": "instructions",
|
|
981
|
+
"hasDynamicHelp": false,
|
|
982
|
+
"multiple": false,
|
|
983
|
+
"type": "option"
|
|
984
|
+
},
|
|
985
|
+
"model": {
|
|
986
|
+
"description": "Model ID",
|
|
987
|
+
"name": "model",
|
|
988
|
+
"hasDynamicHelp": false,
|
|
989
|
+
"multiple": false,
|
|
990
|
+
"type": "option"
|
|
991
|
+
},
|
|
992
|
+
"data": {
|
|
993
|
+
"description": "JSON body (@file, @-, or inline). Fields: name, instructions, model, visibility, temp",
|
|
994
|
+
"name": "data",
|
|
995
|
+
"hasDynamicHelp": false,
|
|
996
|
+
"multiple": false,
|
|
997
|
+
"type": "option"
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
"hasDynamicHelp": false,
|
|
1001
|
+
"hiddenAliases": [],
|
|
1002
|
+
"id": "agents:update",
|
|
1003
|
+
"pluginAlias": "chatbase",
|
|
1004
|
+
"pluginName": "chatbase",
|
|
1005
|
+
"pluginType": "core",
|
|
1006
|
+
"strict": true,
|
|
1007
|
+
"enableJsonFlag": false,
|
|
1008
|
+
"isESM": true,
|
|
1009
|
+
"relativePath": [
|
|
1010
|
+
"dist",
|
|
1011
|
+
"commands",
|
|
1012
|
+
"agents",
|
|
1013
|
+
"update.js"
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
"auth:login": {
|
|
1017
|
+
"aliases": [],
|
|
1018
|
+
"args": {},
|
|
1019
|
+
"description": "Authenticate with Chatbase — paste an API key or log in via browser",
|
|
1020
|
+
"examples": [
|
|
1021
|
+
"<%= config.bin %> auth login",
|
|
1022
|
+
"<%= config.bin %> auth login --browser",
|
|
1023
|
+
"cat key.txt | <%= config.bin %> auth login --with-token"
|
|
1024
|
+
],
|
|
1025
|
+
"flags": {
|
|
1026
|
+
"json": {
|
|
1027
|
+
"description": "Output raw API JSON",
|
|
1028
|
+
"helpGroup": "OUTPUT",
|
|
1029
|
+
"name": "json",
|
|
1030
|
+
"allowNo": false,
|
|
1031
|
+
"type": "boolean"
|
|
1032
|
+
},
|
|
1033
|
+
"plain": {
|
|
1034
|
+
"description": "Tab-separated output for scripts",
|
|
1035
|
+
"helpGroup": "OUTPUT",
|
|
1036
|
+
"name": "plain",
|
|
1037
|
+
"allowNo": false,
|
|
1038
|
+
"type": "boolean"
|
|
1039
|
+
},
|
|
1040
|
+
"quiet": {
|
|
1041
|
+
"char": "q",
|
|
1042
|
+
"description": "Suppress non-essential output",
|
|
1043
|
+
"name": "quiet",
|
|
1044
|
+
"allowNo": false,
|
|
1045
|
+
"type": "boolean"
|
|
1046
|
+
},
|
|
1047
|
+
"verbose": {
|
|
1048
|
+
"description": "Verbose diagnostics",
|
|
1049
|
+
"name": "verbose",
|
|
1050
|
+
"allowNo": false,
|
|
1051
|
+
"type": "boolean"
|
|
1052
|
+
},
|
|
1053
|
+
"no-input": {
|
|
1054
|
+
"description": "Never prompt; fail instead",
|
|
1055
|
+
"name": "no-input",
|
|
1056
|
+
"allowNo": false,
|
|
1057
|
+
"type": "boolean"
|
|
1058
|
+
},
|
|
1059
|
+
"no-color": {
|
|
1060
|
+
"description": "Disable colored output",
|
|
1061
|
+
"name": "no-color",
|
|
1062
|
+
"allowNo": false,
|
|
1063
|
+
"type": "boolean"
|
|
1064
|
+
},
|
|
1065
|
+
"with-token": {
|
|
1066
|
+
"description": "Read the API key from stdin",
|
|
1067
|
+
"name": "with-token",
|
|
1068
|
+
"allowNo": false,
|
|
1069
|
+
"type": "boolean"
|
|
1070
|
+
},
|
|
1071
|
+
"browser": {
|
|
1072
|
+
"description": "Log in via browser — approve a code at chatbase.co/activate",
|
|
1073
|
+
"name": "browser",
|
|
1074
|
+
"allowNo": false,
|
|
1075
|
+
"type": "boolean"
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
"hasDynamicHelp": false,
|
|
1079
|
+
"hiddenAliases": [],
|
|
1080
|
+
"id": "auth:login",
|
|
1081
|
+
"pluginAlias": "chatbase",
|
|
1082
|
+
"pluginName": "chatbase",
|
|
1083
|
+
"pluginType": "core",
|
|
1084
|
+
"strict": true,
|
|
1085
|
+
"enableJsonFlag": false,
|
|
1086
|
+
"isESM": true,
|
|
1087
|
+
"relativePath": [
|
|
1088
|
+
"dist",
|
|
1089
|
+
"commands",
|
|
1090
|
+
"auth",
|
|
1091
|
+
"login.js"
|
|
1092
|
+
]
|
|
1093
|
+
},
|
|
1094
|
+
"auth:logout": {
|
|
1095
|
+
"aliases": [],
|
|
1096
|
+
"args": {},
|
|
1097
|
+
"description": "Remove the stored API key (revokes CLI-paired keys server-side)",
|
|
1098
|
+
"examples": [
|
|
1099
|
+
"<%= config.bin %> auth logout"
|
|
1100
|
+
],
|
|
1101
|
+
"flags": {
|
|
1102
|
+
"json": {
|
|
1103
|
+
"description": "Output raw API JSON",
|
|
1104
|
+
"helpGroup": "OUTPUT",
|
|
1105
|
+
"name": "json",
|
|
1106
|
+
"allowNo": false,
|
|
1107
|
+
"type": "boolean"
|
|
1108
|
+
},
|
|
1109
|
+
"plain": {
|
|
1110
|
+
"description": "Tab-separated output for scripts",
|
|
1111
|
+
"helpGroup": "OUTPUT",
|
|
1112
|
+
"name": "plain",
|
|
1113
|
+
"allowNo": false,
|
|
1114
|
+
"type": "boolean"
|
|
1115
|
+
},
|
|
1116
|
+
"quiet": {
|
|
1117
|
+
"char": "q",
|
|
1118
|
+
"description": "Suppress non-essential output",
|
|
1119
|
+
"name": "quiet",
|
|
1120
|
+
"allowNo": false,
|
|
1121
|
+
"type": "boolean"
|
|
1122
|
+
},
|
|
1123
|
+
"verbose": {
|
|
1124
|
+
"description": "Verbose diagnostics",
|
|
1125
|
+
"name": "verbose",
|
|
1126
|
+
"allowNo": false,
|
|
1127
|
+
"type": "boolean"
|
|
1128
|
+
},
|
|
1129
|
+
"no-input": {
|
|
1130
|
+
"description": "Never prompt; fail instead",
|
|
1131
|
+
"name": "no-input",
|
|
1132
|
+
"allowNo": false,
|
|
1133
|
+
"type": "boolean"
|
|
1134
|
+
},
|
|
1135
|
+
"no-color": {
|
|
1136
|
+
"description": "Disable colored output",
|
|
1137
|
+
"name": "no-color",
|
|
1138
|
+
"allowNo": false,
|
|
1139
|
+
"type": "boolean"
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
"hasDynamicHelp": false,
|
|
1143
|
+
"hiddenAliases": [],
|
|
1144
|
+
"id": "auth:logout",
|
|
1145
|
+
"pluginAlias": "chatbase",
|
|
1146
|
+
"pluginName": "chatbase",
|
|
1147
|
+
"pluginType": "core",
|
|
1148
|
+
"strict": true,
|
|
1149
|
+
"enableJsonFlag": false,
|
|
1150
|
+
"isESM": true,
|
|
1151
|
+
"relativePath": [
|
|
1152
|
+
"dist",
|
|
1153
|
+
"commands",
|
|
1154
|
+
"auth",
|
|
1155
|
+
"logout.js"
|
|
1156
|
+
]
|
|
1157
|
+
},
|
|
1158
|
+
"auth:status": {
|
|
1159
|
+
"aliases": [],
|
|
1160
|
+
"args": {},
|
|
1161
|
+
"description": "Show the active credential and where it comes from",
|
|
1162
|
+
"examples": [
|
|
1163
|
+
"<%= config.bin %> auth status"
|
|
1164
|
+
],
|
|
1165
|
+
"flags": {
|
|
1166
|
+
"json": {
|
|
1167
|
+
"description": "Output raw API JSON",
|
|
1168
|
+
"helpGroup": "OUTPUT",
|
|
1169
|
+
"name": "json",
|
|
1170
|
+
"allowNo": false,
|
|
1171
|
+
"type": "boolean"
|
|
1172
|
+
},
|
|
1173
|
+
"plain": {
|
|
1174
|
+
"description": "Tab-separated output for scripts",
|
|
1175
|
+
"helpGroup": "OUTPUT",
|
|
1176
|
+
"name": "plain",
|
|
1177
|
+
"allowNo": false,
|
|
1178
|
+
"type": "boolean"
|
|
1179
|
+
},
|
|
1180
|
+
"quiet": {
|
|
1181
|
+
"char": "q",
|
|
1182
|
+
"description": "Suppress non-essential output",
|
|
1183
|
+
"name": "quiet",
|
|
1184
|
+
"allowNo": false,
|
|
1185
|
+
"type": "boolean"
|
|
1186
|
+
},
|
|
1187
|
+
"verbose": {
|
|
1188
|
+
"description": "Verbose diagnostics",
|
|
1189
|
+
"name": "verbose",
|
|
1190
|
+
"allowNo": false,
|
|
1191
|
+
"type": "boolean"
|
|
1192
|
+
},
|
|
1193
|
+
"no-input": {
|
|
1194
|
+
"description": "Never prompt; fail instead",
|
|
1195
|
+
"name": "no-input",
|
|
1196
|
+
"allowNo": false,
|
|
1197
|
+
"type": "boolean"
|
|
1198
|
+
},
|
|
1199
|
+
"no-color": {
|
|
1200
|
+
"description": "Disable colored output",
|
|
1201
|
+
"name": "no-color",
|
|
1202
|
+
"allowNo": false,
|
|
1203
|
+
"type": "boolean"
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
"hasDynamicHelp": false,
|
|
1207
|
+
"hiddenAliases": [],
|
|
1208
|
+
"id": "auth:status",
|
|
1209
|
+
"pluginAlias": "chatbase",
|
|
1210
|
+
"pluginName": "chatbase",
|
|
1211
|
+
"pluginType": "core",
|
|
1212
|
+
"strict": true,
|
|
1213
|
+
"enableJsonFlag": false,
|
|
1214
|
+
"isESM": true,
|
|
1215
|
+
"relativePath": [
|
|
1216
|
+
"dist",
|
|
1217
|
+
"commands",
|
|
1218
|
+
"auth",
|
|
1219
|
+
"status.js"
|
|
1220
|
+
]
|
|
1221
|
+
},
|
|
1222
|
+
"chat": {
|
|
1223
|
+
"aliases": [],
|
|
1224
|
+
"args": {},
|
|
1225
|
+
"description": "Send a message to an agent and print its response",
|
|
1226
|
+
"examples": [
|
|
1227
|
+
"<%= config.bin %> chat -a agt_123 -m \"How do I reset my password?\"",
|
|
1228
|
+
"echo \"summarize our refund policy\" | <%= config.bin %> chat -a agt_123",
|
|
1229
|
+
"<%= config.bin %> chat -a agt_123 -m \"and then?\" --conversation conv_123",
|
|
1230
|
+
"<%= config.bin %> chat -a agt_123 -m \"hi\" --no-stream",
|
|
1231
|
+
"<%= config.bin %> chat -a agt_123 -m \"hi\" --json"
|
|
1232
|
+
],
|
|
1233
|
+
"flags": {
|
|
1234
|
+
"json": {
|
|
1235
|
+
"description": "Output raw API JSON",
|
|
1236
|
+
"helpGroup": "OUTPUT",
|
|
1237
|
+
"name": "json",
|
|
1238
|
+
"allowNo": false,
|
|
1239
|
+
"type": "boolean"
|
|
1240
|
+
},
|
|
1241
|
+
"plain": {
|
|
1242
|
+
"description": "Tab-separated output for scripts",
|
|
1243
|
+
"helpGroup": "OUTPUT",
|
|
1244
|
+
"name": "plain",
|
|
1245
|
+
"allowNo": false,
|
|
1246
|
+
"type": "boolean"
|
|
1247
|
+
},
|
|
1248
|
+
"quiet": {
|
|
1249
|
+
"char": "q",
|
|
1250
|
+
"description": "Suppress non-essential output",
|
|
1251
|
+
"name": "quiet",
|
|
1252
|
+
"allowNo": false,
|
|
1253
|
+
"type": "boolean"
|
|
1254
|
+
},
|
|
1255
|
+
"verbose": {
|
|
1256
|
+
"description": "Verbose diagnostics",
|
|
1257
|
+
"name": "verbose",
|
|
1258
|
+
"allowNo": false,
|
|
1259
|
+
"type": "boolean"
|
|
1260
|
+
},
|
|
1261
|
+
"no-input": {
|
|
1262
|
+
"description": "Never prompt; fail instead",
|
|
1263
|
+
"name": "no-input",
|
|
1264
|
+
"allowNo": false,
|
|
1265
|
+
"type": "boolean"
|
|
1266
|
+
},
|
|
1267
|
+
"no-color": {
|
|
1268
|
+
"description": "Disable colored output",
|
|
1269
|
+
"name": "no-color",
|
|
1270
|
+
"allowNo": false,
|
|
1271
|
+
"type": "boolean"
|
|
1272
|
+
},
|
|
1273
|
+
"agent": {
|
|
1274
|
+
"char": "a",
|
|
1275
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
1276
|
+
"name": "agent",
|
|
1277
|
+
"hasDynamicHelp": false,
|
|
1278
|
+
"multiple": false,
|
|
1279
|
+
"type": "option"
|
|
1280
|
+
},
|
|
1281
|
+
"agent-name": {
|
|
1282
|
+
"description": "Agent display name (looked up to an ID)",
|
|
1283
|
+
"exclusive": [
|
|
1284
|
+
"agent"
|
|
1285
|
+
],
|
|
1286
|
+
"name": "agent-name",
|
|
1287
|
+
"hasDynamicHelp": false,
|
|
1288
|
+
"multiple": false,
|
|
1289
|
+
"type": "option"
|
|
1290
|
+
},
|
|
1291
|
+
"message": {
|
|
1292
|
+
"char": "m",
|
|
1293
|
+
"description": "Message to send (else read from piped stdin, else an interactive REPL)",
|
|
1294
|
+
"name": "message",
|
|
1295
|
+
"hasDynamicHelp": false,
|
|
1296
|
+
"multiple": false,
|
|
1297
|
+
"type": "option"
|
|
1298
|
+
},
|
|
1299
|
+
"conversation": {
|
|
1300
|
+
"description": "Continue an existing conversation",
|
|
1301
|
+
"name": "conversation",
|
|
1302
|
+
"hasDynamicHelp": false,
|
|
1303
|
+
"multiple": false,
|
|
1304
|
+
"type": "option"
|
|
1305
|
+
},
|
|
1306
|
+
"resume": {
|
|
1307
|
+
"dependsOn": [
|
|
1308
|
+
"conversation"
|
|
1309
|
+
],
|
|
1310
|
+
"description": "Replay the last few messages when continuing a conversation",
|
|
1311
|
+
"name": "resume",
|
|
1312
|
+
"allowNo": false,
|
|
1313
|
+
"type": "boolean"
|
|
1314
|
+
},
|
|
1315
|
+
"no-stream": {
|
|
1316
|
+
"description": "Wait for the complete response instead of streaming tokens",
|
|
1317
|
+
"name": "no-stream",
|
|
1318
|
+
"allowNo": false,
|
|
1319
|
+
"type": "boolean"
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
"hasDynamicHelp": false,
|
|
1323
|
+
"hiddenAliases": [],
|
|
1324
|
+
"id": "chat",
|
|
1325
|
+
"pluginAlias": "chatbase",
|
|
1326
|
+
"pluginName": "chatbase",
|
|
1327
|
+
"pluginType": "core",
|
|
1328
|
+
"strict": true,
|
|
1329
|
+
"enableJsonFlag": false,
|
|
1330
|
+
"isESM": true,
|
|
1331
|
+
"relativePath": [
|
|
1332
|
+
"dist",
|
|
1333
|
+
"commands",
|
|
1334
|
+
"chat",
|
|
1335
|
+
"index.js"
|
|
1336
|
+
]
|
|
1337
|
+
},
|
|
1338
|
+
"chat:retry": {
|
|
1339
|
+
"aliases": [],
|
|
1340
|
+
"args": {},
|
|
1341
|
+
"description": "Retry generating an assistant response (discards that message and everything after it in the conversation)",
|
|
1342
|
+
"examples": [
|
|
1343
|
+
"<%= config.bin %> chat retry --conversation c_123 -a agt_123 --message-id msg_456",
|
|
1344
|
+
"<%= config.bin %> chat retry --conversation c_123 -a agt_123 --message-id msg_456 --no-stream"
|
|
1345
|
+
],
|
|
1346
|
+
"flags": {
|
|
1347
|
+
"json": {
|
|
1348
|
+
"description": "Output raw API JSON",
|
|
1349
|
+
"helpGroup": "OUTPUT",
|
|
1350
|
+
"name": "json",
|
|
1351
|
+
"allowNo": false,
|
|
1352
|
+
"type": "boolean"
|
|
1353
|
+
},
|
|
1354
|
+
"plain": {
|
|
1355
|
+
"description": "Tab-separated output for scripts",
|
|
1356
|
+
"helpGroup": "OUTPUT",
|
|
1357
|
+
"name": "plain",
|
|
1358
|
+
"allowNo": false,
|
|
1359
|
+
"type": "boolean"
|
|
1360
|
+
},
|
|
1361
|
+
"quiet": {
|
|
1362
|
+
"char": "q",
|
|
1363
|
+
"description": "Suppress non-essential output",
|
|
1364
|
+
"name": "quiet",
|
|
1365
|
+
"allowNo": false,
|
|
1366
|
+
"type": "boolean"
|
|
1367
|
+
},
|
|
1368
|
+
"verbose": {
|
|
1369
|
+
"description": "Verbose diagnostics",
|
|
1370
|
+
"name": "verbose",
|
|
1371
|
+
"allowNo": false,
|
|
1372
|
+
"type": "boolean"
|
|
1373
|
+
},
|
|
1374
|
+
"no-input": {
|
|
1375
|
+
"description": "Never prompt; fail instead",
|
|
1376
|
+
"name": "no-input",
|
|
1377
|
+
"allowNo": false,
|
|
1378
|
+
"type": "boolean"
|
|
1379
|
+
},
|
|
1380
|
+
"no-color": {
|
|
1381
|
+
"description": "Disable colored output",
|
|
1382
|
+
"name": "no-color",
|
|
1383
|
+
"allowNo": false,
|
|
1384
|
+
"type": "boolean"
|
|
1385
|
+
},
|
|
1386
|
+
"agent": {
|
|
1387
|
+
"char": "a",
|
|
1388
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
1389
|
+
"name": "agent",
|
|
1390
|
+
"hasDynamicHelp": false,
|
|
1391
|
+
"multiple": false,
|
|
1392
|
+
"type": "option"
|
|
1393
|
+
},
|
|
1394
|
+
"agent-name": {
|
|
1395
|
+
"description": "Agent display name (looked up to an ID)",
|
|
1396
|
+
"exclusive": [
|
|
1397
|
+
"agent"
|
|
1398
|
+
],
|
|
1399
|
+
"name": "agent-name",
|
|
1400
|
+
"hasDynamicHelp": false,
|
|
1401
|
+
"multiple": false,
|
|
1402
|
+
"type": "option"
|
|
1403
|
+
},
|
|
1404
|
+
"conversation": {
|
|
1405
|
+
"description": "The conversation ID to retry in",
|
|
1406
|
+
"name": "conversation",
|
|
1407
|
+
"required": true,
|
|
1408
|
+
"hasDynamicHelp": false,
|
|
1409
|
+
"multiple": false,
|
|
1410
|
+
"type": "option"
|
|
1411
|
+
},
|
|
1412
|
+
"message-id": {
|
|
1413
|
+
"description": "The message ID to retry from",
|
|
1414
|
+
"name": "message-id",
|
|
1415
|
+
"required": true,
|
|
1416
|
+
"hasDynamicHelp": false,
|
|
1417
|
+
"multiple": false,
|
|
1418
|
+
"type": "option"
|
|
1419
|
+
},
|
|
1420
|
+
"no-stream": {
|
|
1421
|
+
"description": "Wait for the complete response instead of streaming tokens",
|
|
1422
|
+
"name": "no-stream",
|
|
1423
|
+
"allowNo": false,
|
|
1424
|
+
"type": "boolean"
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
"hasDynamicHelp": false,
|
|
1428
|
+
"hiddenAliases": [],
|
|
1429
|
+
"id": "chat:retry",
|
|
1430
|
+
"pluginAlias": "chatbase",
|
|
1431
|
+
"pluginName": "chatbase",
|
|
1432
|
+
"pluginType": "core",
|
|
1433
|
+
"strict": true,
|
|
1434
|
+
"enableJsonFlag": false,
|
|
1435
|
+
"isESM": true,
|
|
1436
|
+
"relativePath": [
|
|
1437
|
+
"dist",
|
|
1438
|
+
"commands",
|
|
1439
|
+
"chat",
|
|
1440
|
+
"retry.js"
|
|
1441
|
+
]
|
|
1442
|
+
},
|
|
1443
|
+
"config:get": {
|
|
1444
|
+
"aliases": [],
|
|
1445
|
+
"args": {
|
|
1446
|
+
"key": {
|
|
1447
|
+
"description": "agent | timeout",
|
|
1448
|
+
"name": "key",
|
|
1449
|
+
"required": true
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
"description": "Print a resolved CLI configuration value and where it comes from",
|
|
1453
|
+
"examples": [
|
|
1454
|
+
"<%= config.bin %> config get agent",
|
|
1455
|
+
"<%= config.bin %> config get timeout"
|
|
1456
|
+
],
|
|
1457
|
+
"flags": {
|
|
1458
|
+
"json": {
|
|
1459
|
+
"description": "Output raw API JSON",
|
|
1460
|
+
"helpGroup": "OUTPUT",
|
|
1461
|
+
"name": "json",
|
|
1462
|
+
"allowNo": false,
|
|
1463
|
+
"type": "boolean"
|
|
1464
|
+
},
|
|
1465
|
+
"plain": {
|
|
1466
|
+
"description": "Tab-separated output for scripts",
|
|
1467
|
+
"helpGroup": "OUTPUT",
|
|
1468
|
+
"name": "plain",
|
|
1469
|
+
"allowNo": false,
|
|
1470
|
+
"type": "boolean"
|
|
1471
|
+
},
|
|
1472
|
+
"quiet": {
|
|
1473
|
+
"char": "q",
|
|
1474
|
+
"description": "Suppress non-essential output",
|
|
1475
|
+
"name": "quiet",
|
|
1476
|
+
"allowNo": false,
|
|
1477
|
+
"type": "boolean"
|
|
1478
|
+
},
|
|
1479
|
+
"verbose": {
|
|
1480
|
+
"description": "Verbose diagnostics",
|
|
1481
|
+
"name": "verbose",
|
|
1482
|
+
"allowNo": false,
|
|
1483
|
+
"type": "boolean"
|
|
1484
|
+
},
|
|
1485
|
+
"no-input": {
|
|
1486
|
+
"description": "Never prompt; fail instead",
|
|
1487
|
+
"name": "no-input",
|
|
1488
|
+
"allowNo": false,
|
|
1489
|
+
"type": "boolean"
|
|
1490
|
+
},
|
|
1491
|
+
"no-color": {
|
|
1492
|
+
"description": "Disable colored output",
|
|
1493
|
+
"name": "no-color",
|
|
1494
|
+
"allowNo": false,
|
|
1495
|
+
"type": "boolean"
|
|
1496
|
+
}
|
|
1497
|
+
},
|
|
1498
|
+
"hasDynamicHelp": false,
|
|
1499
|
+
"hiddenAliases": [],
|
|
1500
|
+
"id": "config:get",
|
|
1501
|
+
"pluginAlias": "chatbase",
|
|
1502
|
+
"pluginName": "chatbase",
|
|
1503
|
+
"pluginType": "core",
|
|
1504
|
+
"strict": true,
|
|
1505
|
+
"enableJsonFlag": false,
|
|
1506
|
+
"isESM": true,
|
|
1507
|
+
"relativePath": [
|
|
1508
|
+
"dist",
|
|
1509
|
+
"commands",
|
|
1510
|
+
"config",
|
|
1511
|
+
"get.js"
|
|
1512
|
+
]
|
|
1513
|
+
},
|
|
1514
|
+
"config:list": {
|
|
1515
|
+
"aliases": [],
|
|
1516
|
+
"args": {},
|
|
1517
|
+
"description": "List every resolved CLI configuration value and its source",
|
|
1518
|
+
"examples": [
|
|
1519
|
+
"<%= config.bin %> config list"
|
|
1520
|
+
],
|
|
1521
|
+
"flags": {
|
|
1522
|
+
"json": {
|
|
1523
|
+
"description": "Output raw API JSON",
|
|
1524
|
+
"helpGroup": "OUTPUT",
|
|
1525
|
+
"name": "json",
|
|
1526
|
+
"allowNo": false,
|
|
1527
|
+
"type": "boolean"
|
|
1528
|
+
},
|
|
1529
|
+
"plain": {
|
|
1530
|
+
"description": "Tab-separated output for scripts",
|
|
1531
|
+
"helpGroup": "OUTPUT",
|
|
1532
|
+
"name": "plain",
|
|
1533
|
+
"allowNo": false,
|
|
1534
|
+
"type": "boolean"
|
|
1535
|
+
},
|
|
1536
|
+
"quiet": {
|
|
1537
|
+
"char": "q",
|
|
1538
|
+
"description": "Suppress non-essential output",
|
|
1539
|
+
"name": "quiet",
|
|
1540
|
+
"allowNo": false,
|
|
1541
|
+
"type": "boolean"
|
|
1542
|
+
},
|
|
1543
|
+
"verbose": {
|
|
1544
|
+
"description": "Verbose diagnostics",
|
|
1545
|
+
"name": "verbose",
|
|
1546
|
+
"allowNo": false,
|
|
1547
|
+
"type": "boolean"
|
|
1548
|
+
},
|
|
1549
|
+
"no-input": {
|
|
1550
|
+
"description": "Never prompt; fail instead",
|
|
1551
|
+
"name": "no-input",
|
|
1552
|
+
"allowNo": false,
|
|
1553
|
+
"type": "boolean"
|
|
1554
|
+
},
|
|
1555
|
+
"no-color": {
|
|
1556
|
+
"description": "Disable colored output",
|
|
1557
|
+
"name": "no-color",
|
|
1558
|
+
"allowNo": false,
|
|
1559
|
+
"type": "boolean"
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1562
|
+
"hasDynamicHelp": false,
|
|
1563
|
+
"hiddenAliases": [],
|
|
1564
|
+
"id": "config:list",
|
|
1565
|
+
"pluginAlias": "chatbase",
|
|
1566
|
+
"pluginName": "chatbase",
|
|
1567
|
+
"pluginType": "core",
|
|
1568
|
+
"strict": true,
|
|
1569
|
+
"enableJsonFlag": false,
|
|
1570
|
+
"isESM": true,
|
|
1571
|
+
"relativePath": [
|
|
1572
|
+
"dist",
|
|
1573
|
+
"commands",
|
|
1574
|
+
"config",
|
|
1575
|
+
"list.js"
|
|
1576
|
+
]
|
|
1577
|
+
},
|
|
1578
|
+
"config:set": {
|
|
1579
|
+
"aliases": [],
|
|
1580
|
+
"args": {
|
|
1581
|
+
"key": {
|
|
1582
|
+
"description": "agent | timeout",
|
|
1583
|
+
"name": "key",
|
|
1584
|
+
"required": true
|
|
1585
|
+
},
|
|
1586
|
+
"value": {
|
|
1587
|
+
"description": "New value (omit for agent to pick interactively)",
|
|
1588
|
+
"name": "value",
|
|
1589
|
+
"required": false
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
"description": "Set a CLI configuration value",
|
|
1593
|
+
"examples": [
|
|
1594
|
+
"<%= config.bin %> config set agent agt_123",
|
|
1595
|
+
"<%= config.bin %> config set agent",
|
|
1596
|
+
"<%= config.bin %> config set timeout 60000"
|
|
1597
|
+
],
|
|
1598
|
+
"flags": {
|
|
1599
|
+
"json": {
|
|
1600
|
+
"description": "Output raw API JSON",
|
|
1601
|
+
"helpGroup": "OUTPUT",
|
|
1602
|
+
"name": "json",
|
|
1603
|
+
"allowNo": false,
|
|
1604
|
+
"type": "boolean"
|
|
1605
|
+
},
|
|
1606
|
+
"plain": {
|
|
1607
|
+
"description": "Tab-separated output for scripts",
|
|
1608
|
+
"helpGroup": "OUTPUT",
|
|
1609
|
+
"name": "plain",
|
|
1610
|
+
"allowNo": false,
|
|
1611
|
+
"type": "boolean"
|
|
1612
|
+
},
|
|
1613
|
+
"quiet": {
|
|
1614
|
+
"char": "q",
|
|
1615
|
+
"description": "Suppress non-essential output",
|
|
1616
|
+
"name": "quiet",
|
|
1617
|
+
"allowNo": false,
|
|
1618
|
+
"type": "boolean"
|
|
1619
|
+
},
|
|
1620
|
+
"verbose": {
|
|
1621
|
+
"description": "Verbose diagnostics",
|
|
1622
|
+
"name": "verbose",
|
|
1623
|
+
"allowNo": false,
|
|
1624
|
+
"type": "boolean"
|
|
1625
|
+
},
|
|
1626
|
+
"no-input": {
|
|
1627
|
+
"description": "Never prompt; fail instead",
|
|
1628
|
+
"name": "no-input",
|
|
1629
|
+
"allowNo": false,
|
|
1630
|
+
"type": "boolean"
|
|
1631
|
+
},
|
|
1632
|
+
"no-color": {
|
|
1633
|
+
"description": "Disable colored output",
|
|
1634
|
+
"name": "no-color",
|
|
1635
|
+
"allowNo": false,
|
|
1636
|
+
"type": "boolean"
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
"hasDynamicHelp": false,
|
|
1640
|
+
"hiddenAliases": [],
|
|
1641
|
+
"id": "config:set",
|
|
1642
|
+
"pluginAlias": "chatbase",
|
|
1643
|
+
"pluginName": "chatbase",
|
|
1644
|
+
"pluginType": "core",
|
|
1645
|
+
"strict": true,
|
|
1646
|
+
"enableJsonFlag": false,
|
|
1647
|
+
"isESM": true,
|
|
1648
|
+
"relativePath": [
|
|
1649
|
+
"dist",
|
|
1650
|
+
"commands",
|
|
1651
|
+
"config",
|
|
1652
|
+
"set.js"
|
|
1653
|
+
]
|
|
1654
|
+
},
|
|
1655
|
+
"conversations:export": {
|
|
1656
|
+
"aliases": [],
|
|
1657
|
+
"args": {},
|
|
1658
|
+
"description": "Export conversations with full message history, newest first.\n\nThis is the only endpoint that returns conversations from every source — the chat bubble and external integrations (Slack, WhatsApp, Instagram, Messenger, and the like) as well as API-created ones. Prefer it over `conversations list` whenever you need real traffic rather than just programmatically created conversations. Each item embeds its own `messages` array, so no follow-up `conversations get` or `messages list` call is needed (and neither works for bubble/integration conversations).",
|
|
1659
|
+
"examples": [
|
|
1660
|
+
"<%= config.bin %> conversations export -a agt_123",
|
|
1661
|
+
"<%= config.bin %> conversations export -a agt_123 --all -o export.json"
|
|
1662
|
+
],
|
|
1663
|
+
"flags": {
|
|
1664
|
+
"json": {
|
|
1665
|
+
"description": "Output raw API JSON",
|
|
1666
|
+
"helpGroup": "OUTPUT",
|
|
1667
|
+
"name": "json",
|
|
1668
|
+
"allowNo": false,
|
|
1669
|
+
"type": "boolean"
|
|
1670
|
+
},
|
|
1671
|
+
"plain": {
|
|
1672
|
+
"description": "Tab-separated output for scripts",
|
|
1673
|
+
"helpGroup": "OUTPUT",
|
|
1674
|
+
"name": "plain",
|
|
1675
|
+
"allowNo": false,
|
|
1676
|
+
"type": "boolean"
|
|
1677
|
+
},
|
|
1678
|
+
"quiet": {
|
|
1679
|
+
"char": "q",
|
|
1680
|
+
"description": "Suppress non-essential output",
|
|
1681
|
+
"name": "quiet",
|
|
1682
|
+
"allowNo": false,
|
|
1683
|
+
"type": "boolean"
|
|
1684
|
+
},
|
|
1685
|
+
"verbose": {
|
|
1686
|
+
"description": "Verbose diagnostics",
|
|
1687
|
+
"name": "verbose",
|
|
1688
|
+
"allowNo": false,
|
|
1689
|
+
"type": "boolean"
|
|
1690
|
+
},
|
|
1691
|
+
"no-input": {
|
|
1692
|
+
"description": "Never prompt; fail instead",
|
|
1693
|
+
"name": "no-input",
|
|
1694
|
+
"allowNo": false,
|
|
1695
|
+
"type": "boolean"
|
|
1696
|
+
},
|
|
1697
|
+
"no-color": {
|
|
1698
|
+
"description": "Disable colored output",
|
|
1699
|
+
"name": "no-color",
|
|
1700
|
+
"allowNo": false,
|
|
1701
|
+
"type": "boolean"
|
|
1702
|
+
},
|
|
1703
|
+
"agent": {
|
|
1704
|
+
"char": "a",
|
|
1705
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
1706
|
+
"name": "agent",
|
|
1707
|
+
"hasDynamicHelp": false,
|
|
1708
|
+
"multiple": false,
|
|
1709
|
+
"type": "option"
|
|
1710
|
+
},
|
|
1711
|
+
"agent-name": {
|
|
1712
|
+
"description": "Agent display name (looked up to an ID)",
|
|
1713
|
+
"exclusive": [
|
|
1714
|
+
"agent"
|
|
1715
|
+
],
|
|
1716
|
+
"name": "agent-name",
|
|
1717
|
+
"hasDynamicHelp": false,
|
|
1718
|
+
"multiple": false,
|
|
1719
|
+
"type": "option"
|
|
1720
|
+
},
|
|
1721
|
+
"cursor": {
|
|
1722
|
+
"description": "Opaque cursor from a previous response",
|
|
1723
|
+
"name": "cursor",
|
|
1724
|
+
"hasDynamicHelp": false,
|
|
1725
|
+
"multiple": false,
|
|
1726
|
+
"type": "option"
|
|
1727
|
+
},
|
|
1728
|
+
"limit": {
|
|
1729
|
+
"description": "Items per page (1-20, default 20)",
|
|
1730
|
+
"name": "limit",
|
|
1731
|
+
"hasDynamicHelp": false,
|
|
1732
|
+
"multiple": false,
|
|
1733
|
+
"type": "option"
|
|
1734
|
+
},
|
|
1735
|
+
"all": {
|
|
1736
|
+
"description": "Fetch every page",
|
|
1737
|
+
"name": "all",
|
|
1738
|
+
"allowNo": false,
|
|
1739
|
+
"type": "boolean"
|
|
1740
|
+
},
|
|
1741
|
+
"output": {
|
|
1742
|
+
"char": "o",
|
|
1743
|
+
"description": "Write export JSON to a file instead of stdout",
|
|
1744
|
+
"name": "output",
|
|
1745
|
+
"hasDynamicHelp": false,
|
|
1746
|
+
"multiple": false,
|
|
1747
|
+
"type": "option"
|
|
1748
|
+
}
|
|
1749
|
+
},
|
|
1750
|
+
"hasDynamicHelp": false,
|
|
1751
|
+
"hiddenAliases": [],
|
|
1752
|
+
"id": "conversations:export",
|
|
1753
|
+
"pluginAlias": "chatbase",
|
|
1754
|
+
"pluginName": "chatbase",
|
|
1755
|
+
"pluginType": "core",
|
|
1756
|
+
"strict": true,
|
|
1757
|
+
"summary": "Export conversations from every source, with full message history",
|
|
1758
|
+
"enableJsonFlag": false,
|
|
1759
|
+
"isESM": true,
|
|
1760
|
+
"relativePath": [
|
|
1761
|
+
"dist",
|
|
1762
|
+
"commands",
|
|
1763
|
+
"conversations",
|
|
1764
|
+
"export.js"
|
|
1765
|
+
]
|
|
1766
|
+
},
|
|
1767
|
+
"conversations:get": {
|
|
1768
|
+
"aliases": [],
|
|
1769
|
+
"args": {
|
|
1770
|
+
"conversationId": {
|
|
1771
|
+
"description": "Conversation ID (alternative to --conversation)",
|
|
1772
|
+
"name": "conversationId",
|
|
1773
|
+
"required": false
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
"description": "Show one conversation",
|
|
1777
|
+
"examples": [
|
|
1778
|
+
"<%= config.bin %> conversations get conv_123 -a agt_123",
|
|
1779
|
+
"<%= config.bin %> conversations get --conversation conv_123 -a agt_123"
|
|
1780
|
+
],
|
|
1781
|
+
"flags": {
|
|
1782
|
+
"json": {
|
|
1783
|
+
"description": "Output raw API JSON",
|
|
1784
|
+
"helpGroup": "OUTPUT",
|
|
1785
|
+
"name": "json",
|
|
1786
|
+
"allowNo": false,
|
|
1787
|
+
"type": "boolean"
|
|
1788
|
+
},
|
|
1789
|
+
"plain": {
|
|
1790
|
+
"description": "Tab-separated output for scripts",
|
|
1791
|
+
"helpGroup": "OUTPUT",
|
|
1792
|
+
"name": "plain",
|
|
1793
|
+
"allowNo": false,
|
|
1794
|
+
"type": "boolean"
|
|
1795
|
+
},
|
|
1796
|
+
"quiet": {
|
|
1797
|
+
"char": "q",
|
|
1798
|
+
"description": "Suppress non-essential output",
|
|
1799
|
+
"name": "quiet",
|
|
1800
|
+
"allowNo": false,
|
|
1801
|
+
"type": "boolean"
|
|
1802
|
+
},
|
|
1803
|
+
"verbose": {
|
|
1804
|
+
"description": "Verbose diagnostics",
|
|
1805
|
+
"name": "verbose",
|
|
1806
|
+
"allowNo": false,
|
|
1807
|
+
"type": "boolean"
|
|
1808
|
+
},
|
|
1809
|
+
"no-input": {
|
|
1810
|
+
"description": "Never prompt; fail instead",
|
|
1811
|
+
"name": "no-input",
|
|
1812
|
+
"allowNo": false,
|
|
1813
|
+
"type": "boolean"
|
|
1814
|
+
},
|
|
1815
|
+
"no-color": {
|
|
1816
|
+
"description": "Disable colored output",
|
|
1817
|
+
"name": "no-color",
|
|
1818
|
+
"allowNo": false,
|
|
1819
|
+
"type": "boolean"
|
|
1820
|
+
},
|
|
1821
|
+
"agent": {
|
|
1822
|
+
"char": "a",
|
|
1823
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
1824
|
+
"name": "agent",
|
|
1825
|
+
"hasDynamicHelp": false,
|
|
1826
|
+
"multiple": false,
|
|
1827
|
+
"type": "option"
|
|
1828
|
+
},
|
|
1829
|
+
"agent-name": {
|
|
1830
|
+
"description": "Agent display name (looked up to an ID)",
|
|
1831
|
+
"exclusive": [
|
|
1832
|
+
"agent"
|
|
1833
|
+
],
|
|
1834
|
+
"name": "agent-name",
|
|
1835
|
+
"hasDynamicHelp": false,
|
|
1836
|
+
"multiple": false,
|
|
1837
|
+
"type": "option"
|
|
1838
|
+
},
|
|
1839
|
+
"conversation": {
|
|
1840
|
+
"description": "Conversation ID",
|
|
1841
|
+
"name": "conversation",
|
|
1842
|
+
"hasDynamicHelp": false,
|
|
1843
|
+
"multiple": false,
|
|
1844
|
+
"type": "option"
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
"hasDynamicHelp": false,
|
|
1848
|
+
"hiddenAliases": [],
|
|
1849
|
+
"id": "conversations:get",
|
|
1850
|
+
"pluginAlias": "chatbase",
|
|
1851
|
+
"pluginName": "chatbase",
|
|
1852
|
+
"pluginType": "core",
|
|
1853
|
+
"strict": true,
|
|
1854
|
+
"enableJsonFlag": false,
|
|
1855
|
+
"isESM": true,
|
|
1856
|
+
"relativePath": [
|
|
1857
|
+
"dist",
|
|
1858
|
+
"commands",
|
|
1859
|
+
"conversations",
|
|
1860
|
+
"get.js"
|
|
1861
|
+
]
|
|
1862
|
+
},
|
|
1863
|
+
"conversations:list": {
|
|
1864
|
+
"aliases": [],
|
|
1865
|
+
"args": {},
|
|
1866
|
+
"description": "List conversations for an agent, newest first.\n\nScope: the API v2 list endpoint returns only conversations created programmatically through the API. Conversations from the chat bubble and external integrations (Slack, WhatsApp, Instagram, Messenger, and the like) are not accessible here and are not counted in `total`. Use `chatbase conversations export` to read conversations from every source — it also embeds full message history, which `conversations get` and `messages list` cannot retrieve for those conversations.",
|
|
1867
|
+
"examples": [
|
|
1868
|
+
"<%= config.bin %> conversations list -a agt_123",
|
|
1869
|
+
"<%= config.bin %> conversations list -a agt_123 --user usr_456",
|
|
1870
|
+
"<%= config.bin %> conversations list -a agt_123 --all --json"
|
|
1871
|
+
],
|
|
1872
|
+
"flags": {
|
|
1873
|
+
"json": {
|
|
1874
|
+
"description": "Output raw API JSON",
|
|
1875
|
+
"helpGroup": "OUTPUT",
|
|
1876
|
+
"name": "json",
|
|
1877
|
+
"allowNo": false,
|
|
1878
|
+
"type": "boolean"
|
|
1879
|
+
},
|
|
1880
|
+
"plain": {
|
|
1881
|
+
"description": "Tab-separated output for scripts",
|
|
1882
|
+
"helpGroup": "OUTPUT",
|
|
1883
|
+
"name": "plain",
|
|
1884
|
+
"allowNo": false,
|
|
1885
|
+
"type": "boolean"
|
|
1886
|
+
},
|
|
1887
|
+
"quiet": {
|
|
1888
|
+
"char": "q",
|
|
1889
|
+
"description": "Suppress non-essential output",
|
|
1890
|
+
"name": "quiet",
|
|
1891
|
+
"allowNo": false,
|
|
1892
|
+
"type": "boolean"
|
|
1893
|
+
},
|
|
1894
|
+
"verbose": {
|
|
1895
|
+
"description": "Verbose diagnostics",
|
|
1896
|
+
"name": "verbose",
|
|
1897
|
+
"allowNo": false,
|
|
1898
|
+
"type": "boolean"
|
|
1899
|
+
},
|
|
1900
|
+
"no-input": {
|
|
1901
|
+
"description": "Never prompt; fail instead",
|
|
1902
|
+
"name": "no-input",
|
|
1903
|
+
"allowNo": false,
|
|
1904
|
+
"type": "boolean"
|
|
1905
|
+
},
|
|
1906
|
+
"no-color": {
|
|
1907
|
+
"description": "Disable colored output",
|
|
1908
|
+
"name": "no-color",
|
|
1909
|
+
"allowNo": false,
|
|
1910
|
+
"type": "boolean"
|
|
1911
|
+
},
|
|
1912
|
+
"agent": {
|
|
1913
|
+
"char": "a",
|
|
1914
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
1915
|
+
"name": "agent",
|
|
1916
|
+
"hasDynamicHelp": false,
|
|
1917
|
+
"multiple": false,
|
|
1918
|
+
"type": "option"
|
|
1919
|
+
},
|
|
1920
|
+
"agent-name": {
|
|
1921
|
+
"description": "Agent display name (looked up to an ID)",
|
|
1922
|
+
"exclusive": [
|
|
1923
|
+
"agent"
|
|
1924
|
+
],
|
|
1925
|
+
"name": "agent-name",
|
|
1926
|
+
"hasDynamicHelp": false,
|
|
1927
|
+
"multiple": false,
|
|
1928
|
+
"type": "option"
|
|
1929
|
+
},
|
|
1930
|
+
"limit": {
|
|
1931
|
+
"description": "Maximum items per page",
|
|
1932
|
+
"name": "limit",
|
|
1933
|
+
"hasDynamicHelp": false,
|
|
1934
|
+
"multiple": false,
|
|
1935
|
+
"type": "option"
|
|
1936
|
+
},
|
|
1937
|
+
"cursor": {
|
|
1938
|
+
"description": "Pagination cursor from a previous page",
|
|
1939
|
+
"name": "cursor",
|
|
1940
|
+
"hasDynamicHelp": false,
|
|
1941
|
+
"multiple": false,
|
|
1942
|
+
"type": "option"
|
|
1943
|
+
},
|
|
1944
|
+
"all": {
|
|
1945
|
+
"description": "Fetch every page",
|
|
1946
|
+
"name": "all",
|
|
1947
|
+
"allowNo": false,
|
|
1948
|
+
"type": "boolean"
|
|
1949
|
+
},
|
|
1950
|
+
"user": {
|
|
1951
|
+
"description": "List conversations for a specific user (uses GET /users/{userId}/conversations)",
|
|
1952
|
+
"name": "user",
|
|
1953
|
+
"hasDynamicHelp": false,
|
|
1954
|
+
"multiple": false,
|
|
1955
|
+
"type": "option"
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1958
|
+
"hasDynamicHelp": false,
|
|
1959
|
+
"hiddenAliases": [],
|
|
1960
|
+
"id": "conversations:list",
|
|
1961
|
+
"pluginAlias": "chatbase",
|
|
1962
|
+
"pluginName": "chatbase",
|
|
1963
|
+
"pluginType": "core",
|
|
1964
|
+
"strict": true,
|
|
1965
|
+
"summary": "List an agent’s API-created conversations",
|
|
1966
|
+
"enableJsonFlag": false,
|
|
1967
|
+
"isESM": true,
|
|
1968
|
+
"relativePath": [
|
|
1969
|
+
"dist",
|
|
1970
|
+
"commands",
|
|
1971
|
+
"conversations",
|
|
1972
|
+
"list.js"
|
|
1973
|
+
]
|
|
1974
|
+
},
|
|
1975
|
+
"helpdesk:statuses": {
|
|
1976
|
+
"aliases": [],
|
|
1977
|
+
"args": {},
|
|
1978
|
+
"description": "List ticket statuses for an agent",
|
|
1979
|
+
"examples": [
|
|
1980
|
+
"<%= config.bin %> helpdesk statuses -a agt_123"
|
|
1981
|
+
],
|
|
1982
|
+
"flags": {
|
|
1983
|
+
"json": {
|
|
1984
|
+
"description": "Output raw API JSON",
|
|
1985
|
+
"helpGroup": "OUTPUT",
|
|
1986
|
+
"name": "json",
|
|
1987
|
+
"allowNo": false,
|
|
1988
|
+
"type": "boolean"
|
|
1989
|
+
},
|
|
1990
|
+
"plain": {
|
|
1991
|
+
"description": "Tab-separated output for scripts",
|
|
1992
|
+
"helpGroup": "OUTPUT",
|
|
1993
|
+
"name": "plain",
|
|
1994
|
+
"allowNo": false,
|
|
1995
|
+
"type": "boolean"
|
|
1996
|
+
},
|
|
1997
|
+
"quiet": {
|
|
1998
|
+
"char": "q",
|
|
1999
|
+
"description": "Suppress non-essential output",
|
|
2000
|
+
"name": "quiet",
|
|
2001
|
+
"allowNo": false,
|
|
2002
|
+
"type": "boolean"
|
|
2003
|
+
},
|
|
2004
|
+
"verbose": {
|
|
2005
|
+
"description": "Verbose diagnostics",
|
|
2006
|
+
"name": "verbose",
|
|
2007
|
+
"allowNo": false,
|
|
2008
|
+
"type": "boolean"
|
|
2009
|
+
},
|
|
2010
|
+
"no-input": {
|
|
2011
|
+
"description": "Never prompt; fail instead",
|
|
2012
|
+
"name": "no-input",
|
|
2013
|
+
"allowNo": false,
|
|
2014
|
+
"type": "boolean"
|
|
2015
|
+
},
|
|
2016
|
+
"no-color": {
|
|
2017
|
+
"description": "Disable colored output",
|
|
2018
|
+
"name": "no-color",
|
|
2019
|
+
"allowNo": false,
|
|
2020
|
+
"type": "boolean"
|
|
2021
|
+
},
|
|
2022
|
+
"agent": {
|
|
2023
|
+
"char": "a",
|
|
2024
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
2025
|
+
"name": "agent",
|
|
2026
|
+
"hasDynamicHelp": false,
|
|
2027
|
+
"multiple": false,
|
|
2028
|
+
"type": "option"
|
|
2029
|
+
},
|
|
2030
|
+
"agent-name": {
|
|
2031
|
+
"description": "Agent display name (looked up to an ID)",
|
|
2032
|
+
"exclusive": [
|
|
2033
|
+
"agent"
|
|
2034
|
+
],
|
|
2035
|
+
"name": "agent-name",
|
|
2036
|
+
"hasDynamicHelp": false,
|
|
2037
|
+
"multiple": false,
|
|
2038
|
+
"type": "option"
|
|
2039
|
+
}
|
|
2040
|
+
},
|
|
2041
|
+
"hasDynamicHelp": false,
|
|
2042
|
+
"hiddenAliases": [],
|
|
2043
|
+
"id": "helpdesk:statuses",
|
|
2044
|
+
"pluginAlias": "chatbase",
|
|
2045
|
+
"pluginName": "chatbase",
|
|
2046
|
+
"pluginType": "core",
|
|
2047
|
+
"strict": true,
|
|
2048
|
+
"enableJsonFlag": false,
|
|
2049
|
+
"isESM": true,
|
|
2050
|
+
"relativePath": [
|
|
2051
|
+
"dist",
|
|
2052
|
+
"commands",
|
|
2053
|
+
"helpdesk",
|
|
2054
|
+
"statuses.js"
|
|
2055
|
+
]
|
|
2056
|
+
},
|
|
2057
|
+
"helpdesk:teams": {
|
|
2058
|
+
"aliases": [],
|
|
2059
|
+
"args": {},
|
|
2060
|
+
"description": "List helpdesk teams for an agent",
|
|
2061
|
+
"examples": [
|
|
2062
|
+
"<%= config.bin %> helpdesk teams -a agt_123"
|
|
2063
|
+
],
|
|
2064
|
+
"flags": {
|
|
2065
|
+
"json": {
|
|
2066
|
+
"description": "Output raw API JSON",
|
|
2067
|
+
"helpGroup": "OUTPUT",
|
|
2068
|
+
"name": "json",
|
|
2069
|
+
"allowNo": false,
|
|
2070
|
+
"type": "boolean"
|
|
2071
|
+
},
|
|
2072
|
+
"plain": {
|
|
2073
|
+
"description": "Tab-separated output for scripts",
|
|
2074
|
+
"helpGroup": "OUTPUT",
|
|
2075
|
+
"name": "plain",
|
|
2076
|
+
"allowNo": false,
|
|
2077
|
+
"type": "boolean"
|
|
2078
|
+
},
|
|
2079
|
+
"quiet": {
|
|
2080
|
+
"char": "q",
|
|
2081
|
+
"description": "Suppress non-essential output",
|
|
2082
|
+
"name": "quiet",
|
|
2083
|
+
"allowNo": false,
|
|
2084
|
+
"type": "boolean"
|
|
2085
|
+
},
|
|
2086
|
+
"verbose": {
|
|
2087
|
+
"description": "Verbose diagnostics",
|
|
2088
|
+
"name": "verbose",
|
|
2089
|
+
"allowNo": false,
|
|
2090
|
+
"type": "boolean"
|
|
2091
|
+
},
|
|
2092
|
+
"no-input": {
|
|
2093
|
+
"description": "Never prompt; fail instead",
|
|
2094
|
+
"name": "no-input",
|
|
2095
|
+
"allowNo": false,
|
|
2096
|
+
"type": "boolean"
|
|
2097
|
+
},
|
|
2098
|
+
"no-color": {
|
|
2099
|
+
"description": "Disable colored output",
|
|
2100
|
+
"name": "no-color",
|
|
2101
|
+
"allowNo": false,
|
|
2102
|
+
"type": "boolean"
|
|
2103
|
+
},
|
|
2104
|
+
"agent": {
|
|
2105
|
+
"char": "a",
|
|
2106
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
2107
|
+
"name": "agent",
|
|
2108
|
+
"hasDynamicHelp": false,
|
|
2109
|
+
"multiple": false,
|
|
2110
|
+
"type": "option"
|
|
2111
|
+
},
|
|
2112
|
+
"agent-name": {
|
|
2113
|
+
"description": "Agent display name (looked up to an ID)",
|
|
2114
|
+
"exclusive": [
|
|
2115
|
+
"agent"
|
|
2116
|
+
],
|
|
2117
|
+
"name": "agent-name",
|
|
2118
|
+
"hasDynamicHelp": false,
|
|
2119
|
+
"multiple": false,
|
|
2120
|
+
"type": "option"
|
|
2121
|
+
}
|
|
2122
|
+
},
|
|
2123
|
+
"hasDynamicHelp": false,
|
|
2124
|
+
"hiddenAliases": [],
|
|
2125
|
+
"id": "helpdesk:teams",
|
|
2126
|
+
"pluginAlias": "chatbase",
|
|
2127
|
+
"pluginName": "chatbase",
|
|
2128
|
+
"pluginType": "core",
|
|
2129
|
+
"strict": true,
|
|
2130
|
+
"enableJsonFlag": false,
|
|
2131
|
+
"isESM": true,
|
|
2132
|
+
"relativePath": [
|
|
2133
|
+
"dist",
|
|
2134
|
+
"commands",
|
|
2135
|
+
"helpdesk",
|
|
2136
|
+
"teams.js"
|
|
2137
|
+
]
|
|
2138
|
+
},
|
|
2139
|
+
"messages:feedback": {
|
|
2140
|
+
"aliases": [],
|
|
2141
|
+
"args": {
|
|
2142
|
+
"messageId": {
|
|
2143
|
+
"description": "Message ID (alternative to --message)",
|
|
2144
|
+
"name": "messageId",
|
|
2145
|
+
"required": false
|
|
2146
|
+
}
|
|
2147
|
+
},
|
|
2148
|
+
"description": "Set or clear user feedback on an assistant message",
|
|
2149
|
+
"examples": [
|
|
2150
|
+
"<%= config.bin %> messages feedback msg_1 --conversation conv_123 --rating positive -a agt_123",
|
|
2151
|
+
"<%= config.bin %> messages feedback --conversation conv_123 --message msg_1 --rating clear -a agt_123"
|
|
2152
|
+
],
|
|
2153
|
+
"flags": {
|
|
2154
|
+
"json": {
|
|
2155
|
+
"description": "Output raw API JSON",
|
|
2156
|
+
"helpGroup": "OUTPUT",
|
|
2157
|
+
"name": "json",
|
|
2158
|
+
"allowNo": false,
|
|
2159
|
+
"type": "boolean"
|
|
2160
|
+
},
|
|
2161
|
+
"plain": {
|
|
2162
|
+
"description": "Tab-separated output for scripts",
|
|
2163
|
+
"helpGroup": "OUTPUT",
|
|
2164
|
+
"name": "plain",
|
|
2165
|
+
"allowNo": false,
|
|
2166
|
+
"type": "boolean"
|
|
2167
|
+
},
|
|
2168
|
+
"quiet": {
|
|
2169
|
+
"char": "q",
|
|
2170
|
+
"description": "Suppress non-essential output",
|
|
2171
|
+
"name": "quiet",
|
|
2172
|
+
"allowNo": false,
|
|
2173
|
+
"type": "boolean"
|
|
2174
|
+
},
|
|
2175
|
+
"verbose": {
|
|
2176
|
+
"description": "Verbose diagnostics",
|
|
2177
|
+
"name": "verbose",
|
|
2178
|
+
"allowNo": false,
|
|
2179
|
+
"type": "boolean"
|
|
2180
|
+
},
|
|
2181
|
+
"no-input": {
|
|
2182
|
+
"description": "Never prompt; fail instead",
|
|
2183
|
+
"name": "no-input",
|
|
2184
|
+
"allowNo": false,
|
|
2185
|
+
"type": "boolean"
|
|
2186
|
+
},
|
|
2187
|
+
"no-color": {
|
|
2188
|
+
"description": "Disable colored output",
|
|
2189
|
+
"name": "no-color",
|
|
2190
|
+
"allowNo": false,
|
|
2191
|
+
"type": "boolean"
|
|
2192
|
+
},
|
|
2193
|
+
"agent": {
|
|
2194
|
+
"char": "a",
|
|
2195
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
2196
|
+
"name": "agent",
|
|
2197
|
+
"hasDynamicHelp": false,
|
|
2198
|
+
"multiple": false,
|
|
2199
|
+
"type": "option"
|
|
2200
|
+
},
|
|
2201
|
+
"agent-name": {
|
|
2202
|
+
"description": "Agent display name (looked up to an ID)",
|
|
2203
|
+
"exclusive": [
|
|
2204
|
+
"agent"
|
|
2205
|
+
],
|
|
2206
|
+
"name": "agent-name",
|
|
2207
|
+
"hasDynamicHelp": false,
|
|
2208
|
+
"multiple": false,
|
|
2209
|
+
"type": "option"
|
|
2210
|
+
},
|
|
2211
|
+
"conversation": {
|
|
2212
|
+
"description": "Conversation ID",
|
|
2213
|
+
"name": "conversation",
|
|
2214
|
+
"required": true,
|
|
2215
|
+
"hasDynamicHelp": false,
|
|
2216
|
+
"multiple": false,
|
|
2217
|
+
"type": "option"
|
|
2218
|
+
},
|
|
2219
|
+
"message": {
|
|
2220
|
+
"description": "Message ID",
|
|
2221
|
+
"name": "message",
|
|
2222
|
+
"hasDynamicHelp": false,
|
|
2223
|
+
"multiple": false,
|
|
2224
|
+
"type": "option"
|
|
2225
|
+
},
|
|
2226
|
+
"rating": {
|
|
2227
|
+
"description": "Feedback value (\"clear\" removes existing feedback)",
|
|
2228
|
+
"name": "rating",
|
|
2229
|
+
"required": true,
|
|
2230
|
+
"hasDynamicHelp": false,
|
|
2231
|
+
"multiple": false,
|
|
2232
|
+
"options": [
|
|
2233
|
+
"positive",
|
|
2234
|
+
"negative",
|
|
2235
|
+
"clear"
|
|
2236
|
+
],
|
|
2237
|
+
"type": "option"
|
|
2238
|
+
}
|
|
2239
|
+
},
|
|
2240
|
+
"hasDynamicHelp": false,
|
|
2241
|
+
"hiddenAliases": [],
|
|
2242
|
+
"id": "messages:feedback",
|
|
2243
|
+
"pluginAlias": "chatbase",
|
|
2244
|
+
"pluginName": "chatbase",
|
|
2245
|
+
"pluginType": "core",
|
|
2246
|
+
"strict": true,
|
|
2247
|
+
"enableJsonFlag": false,
|
|
2248
|
+
"isESM": true,
|
|
2249
|
+
"relativePath": [
|
|
2250
|
+
"dist",
|
|
2251
|
+
"commands",
|
|
2252
|
+
"messages",
|
|
2253
|
+
"feedback.js"
|
|
2254
|
+
]
|
|
2255
|
+
},
|
|
2256
|
+
"messages:list": {
|
|
2257
|
+
"aliases": [],
|
|
2258
|
+
"args": {},
|
|
2259
|
+
"description": "List messages in a conversation",
|
|
2260
|
+
"examples": [
|
|
2261
|
+
"<%= config.bin %> messages list --conversation conv_123 -a agt_123",
|
|
2262
|
+
"<%= config.bin %> messages list --conversation conv_123 -a agt_123 --all --json"
|
|
2263
|
+
],
|
|
2264
|
+
"flags": {
|
|
2265
|
+
"json": {
|
|
2266
|
+
"description": "Output raw API JSON",
|
|
2267
|
+
"helpGroup": "OUTPUT",
|
|
2268
|
+
"name": "json",
|
|
2269
|
+
"allowNo": false,
|
|
2270
|
+
"type": "boolean"
|
|
2271
|
+
},
|
|
2272
|
+
"plain": {
|
|
2273
|
+
"description": "Tab-separated output for scripts",
|
|
2274
|
+
"helpGroup": "OUTPUT",
|
|
2275
|
+
"name": "plain",
|
|
2276
|
+
"allowNo": false,
|
|
2277
|
+
"type": "boolean"
|
|
2278
|
+
},
|
|
2279
|
+
"quiet": {
|
|
2280
|
+
"char": "q",
|
|
2281
|
+
"description": "Suppress non-essential output",
|
|
2282
|
+
"name": "quiet",
|
|
2283
|
+
"allowNo": false,
|
|
2284
|
+
"type": "boolean"
|
|
2285
|
+
},
|
|
2286
|
+
"verbose": {
|
|
2287
|
+
"description": "Verbose diagnostics",
|
|
2288
|
+
"name": "verbose",
|
|
2289
|
+
"allowNo": false,
|
|
2290
|
+
"type": "boolean"
|
|
2291
|
+
},
|
|
2292
|
+
"no-input": {
|
|
2293
|
+
"description": "Never prompt; fail instead",
|
|
2294
|
+
"name": "no-input",
|
|
2295
|
+
"allowNo": false,
|
|
2296
|
+
"type": "boolean"
|
|
2297
|
+
},
|
|
2298
|
+
"no-color": {
|
|
2299
|
+
"description": "Disable colored output",
|
|
2300
|
+
"name": "no-color",
|
|
2301
|
+
"allowNo": false,
|
|
2302
|
+
"type": "boolean"
|
|
2303
|
+
},
|
|
2304
|
+
"agent": {
|
|
2305
|
+
"char": "a",
|
|
2306
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
2307
|
+
"name": "agent",
|
|
2308
|
+
"hasDynamicHelp": false,
|
|
2309
|
+
"multiple": false,
|
|
2310
|
+
"type": "option"
|
|
2311
|
+
},
|
|
2312
|
+
"agent-name": {
|
|
2313
|
+
"description": "Agent display name (looked up to an ID)",
|
|
2314
|
+
"exclusive": [
|
|
2315
|
+
"agent"
|
|
2316
|
+
],
|
|
2317
|
+
"name": "agent-name",
|
|
2318
|
+
"hasDynamicHelp": false,
|
|
2319
|
+
"multiple": false,
|
|
2320
|
+
"type": "option"
|
|
2321
|
+
},
|
|
2322
|
+
"limit": {
|
|
2323
|
+
"description": "Maximum items per page",
|
|
2324
|
+
"name": "limit",
|
|
2325
|
+
"hasDynamicHelp": false,
|
|
2326
|
+
"multiple": false,
|
|
2327
|
+
"type": "option"
|
|
2328
|
+
},
|
|
2329
|
+
"cursor": {
|
|
2330
|
+
"description": "Pagination cursor from a previous page",
|
|
2331
|
+
"name": "cursor",
|
|
2332
|
+
"hasDynamicHelp": false,
|
|
2333
|
+
"multiple": false,
|
|
2334
|
+
"type": "option"
|
|
2335
|
+
},
|
|
2336
|
+
"all": {
|
|
2337
|
+
"description": "Fetch every page",
|
|
2338
|
+
"name": "all",
|
|
2339
|
+
"allowNo": false,
|
|
2340
|
+
"type": "boolean"
|
|
2341
|
+
},
|
|
2342
|
+
"conversation": {
|
|
2343
|
+
"description": "Conversation ID",
|
|
2344
|
+
"name": "conversation",
|
|
2345
|
+
"required": true,
|
|
2346
|
+
"hasDynamicHelp": false,
|
|
2347
|
+
"multiple": false,
|
|
2348
|
+
"type": "option"
|
|
2349
|
+
}
|
|
2350
|
+
},
|
|
2351
|
+
"hasDynamicHelp": false,
|
|
2352
|
+
"hiddenAliases": [],
|
|
2353
|
+
"id": "messages:list",
|
|
2354
|
+
"pluginAlias": "chatbase",
|
|
2355
|
+
"pluginName": "chatbase",
|
|
2356
|
+
"pluginType": "core",
|
|
2357
|
+
"strict": true,
|
|
2358
|
+
"enableJsonFlag": false,
|
|
2359
|
+
"isESM": true,
|
|
2360
|
+
"relativePath": [
|
|
2361
|
+
"dist",
|
|
2362
|
+
"commands",
|
|
2363
|
+
"messages",
|
|
2364
|
+
"list.js"
|
|
2365
|
+
]
|
|
2366
|
+
},
|
|
2367
|
+
"tickets:create": {
|
|
2368
|
+
"aliases": [],
|
|
2369
|
+
"args": {},
|
|
2370
|
+
"description": "Create a helpdesk ticket",
|
|
2371
|
+
"examples": [
|
|
2372
|
+
"<%= config.bin %> tickets create --subject \"Export failing\" -f description=\"Customer cannot export.\" --customer-email jane@example.com -a agt_123",
|
|
2373
|
+
"<%= config.bin %> tickets create --subject \"Export failing\" --data '{\"description\":\"Customer cannot export.\",\"customer\":{\"email\":\"jane@example.com\"}}' -a agt_123"
|
|
2374
|
+
],
|
|
2375
|
+
"flags": {
|
|
2376
|
+
"json": {
|
|
2377
|
+
"description": "Output raw API JSON",
|
|
2378
|
+
"helpGroup": "OUTPUT",
|
|
2379
|
+
"name": "json",
|
|
2380
|
+
"allowNo": false,
|
|
2381
|
+
"type": "boolean"
|
|
2382
|
+
},
|
|
2383
|
+
"plain": {
|
|
2384
|
+
"description": "Tab-separated output for scripts",
|
|
2385
|
+
"helpGroup": "OUTPUT",
|
|
2386
|
+
"name": "plain",
|
|
2387
|
+
"allowNo": false,
|
|
2388
|
+
"type": "boolean"
|
|
2389
|
+
},
|
|
2390
|
+
"quiet": {
|
|
2391
|
+
"char": "q",
|
|
2392
|
+
"description": "Suppress non-essential output",
|
|
2393
|
+
"name": "quiet",
|
|
2394
|
+
"allowNo": false,
|
|
2395
|
+
"type": "boolean"
|
|
2396
|
+
},
|
|
2397
|
+
"verbose": {
|
|
2398
|
+
"description": "Verbose diagnostics",
|
|
2399
|
+
"name": "verbose",
|
|
2400
|
+
"allowNo": false,
|
|
2401
|
+
"type": "boolean"
|
|
2402
|
+
},
|
|
2403
|
+
"no-input": {
|
|
2404
|
+
"description": "Never prompt; fail instead",
|
|
2405
|
+
"name": "no-input",
|
|
2406
|
+
"allowNo": false,
|
|
2407
|
+
"type": "boolean"
|
|
2408
|
+
},
|
|
2409
|
+
"no-color": {
|
|
2410
|
+
"description": "Disable colored output",
|
|
2411
|
+
"name": "no-color",
|
|
2412
|
+
"allowNo": false,
|
|
2413
|
+
"type": "boolean"
|
|
2414
|
+
},
|
|
2415
|
+
"agent": {
|
|
2416
|
+
"char": "a",
|
|
2417
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
2418
|
+
"name": "agent",
|
|
2419
|
+
"hasDynamicHelp": false,
|
|
2420
|
+
"multiple": false,
|
|
2421
|
+
"type": "option"
|
|
2422
|
+
},
|
|
2423
|
+
"agent-name": {
|
|
2424
|
+
"description": "Agent display name (looked up to an ID)",
|
|
2425
|
+
"exclusive": [
|
|
2426
|
+
"agent"
|
|
2427
|
+
],
|
|
2428
|
+
"name": "agent-name",
|
|
2429
|
+
"hasDynamicHelp": false,
|
|
2430
|
+
"multiple": false,
|
|
2431
|
+
"type": "option"
|
|
2432
|
+
},
|
|
2433
|
+
"field": {
|
|
2434
|
+
"char": "f",
|
|
2435
|
+
"description": "Set a body field: -f key=value (repeatable)",
|
|
2436
|
+
"name": "field",
|
|
2437
|
+
"hasDynamicHelp": false,
|
|
2438
|
+
"multiple": true,
|
|
2439
|
+
"type": "option"
|
|
2440
|
+
},
|
|
2441
|
+
"subject": {
|
|
2442
|
+
"description": "Ticket subject",
|
|
2443
|
+
"name": "subject",
|
|
2444
|
+
"hasDynamicHelp": false,
|
|
2445
|
+
"multiple": false,
|
|
2446
|
+
"type": "option"
|
|
2447
|
+
},
|
|
2448
|
+
"customer-email": {
|
|
2449
|
+
"description": "Customer email — builds the required customer object (alternative to customer in --data)",
|
|
2450
|
+
"name": "customer-email",
|
|
2451
|
+
"hasDynamicHelp": false,
|
|
2452
|
+
"multiple": false,
|
|
2453
|
+
"type": "option"
|
|
2454
|
+
},
|
|
2455
|
+
"customer-name": {
|
|
2456
|
+
"dependsOn": [
|
|
2457
|
+
"customer-email"
|
|
2458
|
+
],
|
|
2459
|
+
"description": "Customer display name, used only when the email creates a new customer record",
|
|
2460
|
+
"name": "customer-name",
|
|
2461
|
+
"hasDynamicHelp": false,
|
|
2462
|
+
"multiple": false,
|
|
2463
|
+
"type": "option"
|
|
2464
|
+
},
|
|
2465
|
+
"data": {
|
|
2466
|
+
"description": "JSON body (@file, @-, or inline). Fields: subject, description, customer, statusId, statusCategory, assigneeId, assigneeEmail, teamId",
|
|
2467
|
+
"name": "data",
|
|
2468
|
+
"hasDynamicHelp": false,
|
|
2469
|
+
"multiple": false,
|
|
2470
|
+
"type": "option"
|
|
2471
|
+
}
|
|
2472
|
+
},
|
|
2473
|
+
"hasDynamicHelp": false,
|
|
2474
|
+
"hiddenAliases": [],
|
|
2475
|
+
"id": "tickets:create",
|
|
2476
|
+
"pluginAlias": "chatbase",
|
|
2477
|
+
"pluginName": "chatbase",
|
|
2478
|
+
"pluginType": "core",
|
|
2479
|
+
"strict": true,
|
|
2480
|
+
"enableJsonFlag": false,
|
|
2481
|
+
"isESM": true,
|
|
2482
|
+
"relativePath": [
|
|
2483
|
+
"dist",
|
|
2484
|
+
"commands",
|
|
2485
|
+
"tickets",
|
|
2486
|
+
"create.js"
|
|
2487
|
+
]
|
|
2488
|
+
},
|
|
2489
|
+
"tickets:get": {
|
|
2490
|
+
"aliases": [],
|
|
2491
|
+
"args": {
|
|
2492
|
+
"ticketNumber": {
|
|
2493
|
+
"description": "Ticket number",
|
|
2494
|
+
"name": "ticketNumber",
|
|
2495
|
+
"required": true
|
|
2496
|
+
}
|
|
2497
|
+
},
|
|
2498
|
+
"description": "Show one helpdesk ticket",
|
|
2499
|
+
"examples": [
|
|
2500
|
+
"<%= config.bin %> tickets get 42 -a agt_123"
|
|
2501
|
+
],
|
|
2502
|
+
"flags": {
|
|
2503
|
+
"json": {
|
|
2504
|
+
"description": "Output raw API JSON",
|
|
2505
|
+
"helpGroup": "OUTPUT",
|
|
2506
|
+
"name": "json",
|
|
2507
|
+
"allowNo": false,
|
|
2508
|
+
"type": "boolean"
|
|
2509
|
+
},
|
|
2510
|
+
"plain": {
|
|
2511
|
+
"description": "Tab-separated output for scripts",
|
|
2512
|
+
"helpGroup": "OUTPUT",
|
|
2513
|
+
"name": "plain",
|
|
2514
|
+
"allowNo": false,
|
|
2515
|
+
"type": "boolean"
|
|
2516
|
+
},
|
|
2517
|
+
"quiet": {
|
|
2518
|
+
"char": "q",
|
|
2519
|
+
"description": "Suppress non-essential output",
|
|
2520
|
+
"name": "quiet",
|
|
2521
|
+
"allowNo": false,
|
|
2522
|
+
"type": "boolean"
|
|
2523
|
+
},
|
|
2524
|
+
"verbose": {
|
|
2525
|
+
"description": "Verbose diagnostics",
|
|
2526
|
+
"name": "verbose",
|
|
2527
|
+
"allowNo": false,
|
|
2528
|
+
"type": "boolean"
|
|
2529
|
+
},
|
|
2530
|
+
"no-input": {
|
|
2531
|
+
"description": "Never prompt; fail instead",
|
|
2532
|
+
"name": "no-input",
|
|
2533
|
+
"allowNo": false,
|
|
2534
|
+
"type": "boolean"
|
|
2535
|
+
},
|
|
2536
|
+
"no-color": {
|
|
2537
|
+
"description": "Disable colored output",
|
|
2538
|
+
"name": "no-color",
|
|
2539
|
+
"allowNo": false,
|
|
2540
|
+
"type": "boolean"
|
|
2541
|
+
},
|
|
2542
|
+
"agent": {
|
|
2543
|
+
"char": "a",
|
|
2544
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
2545
|
+
"name": "agent",
|
|
2546
|
+
"hasDynamicHelp": false,
|
|
2547
|
+
"multiple": false,
|
|
2548
|
+
"type": "option"
|
|
2549
|
+
},
|
|
2550
|
+
"agent-name": {
|
|
2551
|
+
"description": "Agent display name (looked up to an ID)",
|
|
2552
|
+
"exclusive": [
|
|
2553
|
+
"agent"
|
|
2554
|
+
],
|
|
2555
|
+
"name": "agent-name",
|
|
2556
|
+
"hasDynamicHelp": false,
|
|
2557
|
+
"multiple": false,
|
|
2558
|
+
"type": "option"
|
|
2559
|
+
}
|
|
2560
|
+
},
|
|
2561
|
+
"hasDynamicHelp": false,
|
|
2562
|
+
"hiddenAliases": [],
|
|
2563
|
+
"id": "tickets:get",
|
|
2564
|
+
"pluginAlias": "chatbase",
|
|
2565
|
+
"pluginName": "chatbase",
|
|
2566
|
+
"pluginType": "core",
|
|
2567
|
+
"strict": true,
|
|
2568
|
+
"enableJsonFlag": false,
|
|
2569
|
+
"isESM": true,
|
|
2570
|
+
"relativePath": [
|
|
2571
|
+
"dist",
|
|
2572
|
+
"commands",
|
|
2573
|
+
"tickets",
|
|
2574
|
+
"get.js"
|
|
2575
|
+
]
|
|
2576
|
+
},
|
|
2577
|
+
"tickets:list": {
|
|
2578
|
+
"aliases": [],
|
|
2579
|
+
"args": {},
|
|
2580
|
+
"description": "List helpdesk tickets for an agent",
|
|
2581
|
+
"examples": [
|
|
2582
|
+
"<%= config.bin %> tickets list -a agt_123",
|
|
2583
|
+
"<%= config.bin %> tickets list -a agt_123 --status new,on_you",
|
|
2584
|
+
"<%= config.bin %> tickets list -a agt_123 --all --json"
|
|
2585
|
+
],
|
|
2586
|
+
"flags": {
|
|
2587
|
+
"json": {
|
|
2588
|
+
"description": "Output raw API JSON",
|
|
2589
|
+
"helpGroup": "OUTPUT",
|
|
2590
|
+
"name": "json",
|
|
2591
|
+
"allowNo": false,
|
|
2592
|
+
"type": "boolean"
|
|
2593
|
+
},
|
|
2594
|
+
"plain": {
|
|
2595
|
+
"description": "Tab-separated output for scripts",
|
|
2596
|
+
"helpGroup": "OUTPUT",
|
|
2597
|
+
"name": "plain",
|
|
2598
|
+
"allowNo": false,
|
|
2599
|
+
"type": "boolean"
|
|
2600
|
+
},
|
|
2601
|
+
"quiet": {
|
|
2602
|
+
"char": "q",
|
|
2603
|
+
"description": "Suppress non-essential output",
|
|
2604
|
+
"name": "quiet",
|
|
2605
|
+
"allowNo": false,
|
|
2606
|
+
"type": "boolean"
|
|
2607
|
+
},
|
|
2608
|
+
"verbose": {
|
|
2609
|
+
"description": "Verbose diagnostics",
|
|
2610
|
+
"name": "verbose",
|
|
2611
|
+
"allowNo": false,
|
|
2612
|
+
"type": "boolean"
|
|
2613
|
+
},
|
|
2614
|
+
"no-input": {
|
|
2615
|
+
"description": "Never prompt; fail instead",
|
|
2616
|
+
"name": "no-input",
|
|
2617
|
+
"allowNo": false,
|
|
2618
|
+
"type": "boolean"
|
|
2619
|
+
},
|
|
2620
|
+
"no-color": {
|
|
2621
|
+
"description": "Disable colored output",
|
|
2622
|
+
"name": "no-color",
|
|
2623
|
+
"allowNo": false,
|
|
2624
|
+
"type": "boolean"
|
|
2625
|
+
},
|
|
2626
|
+
"agent": {
|
|
2627
|
+
"char": "a",
|
|
2628
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
2629
|
+
"name": "agent",
|
|
2630
|
+
"hasDynamicHelp": false,
|
|
2631
|
+
"multiple": false,
|
|
2632
|
+
"type": "option"
|
|
2633
|
+
},
|
|
2634
|
+
"agent-name": {
|
|
2635
|
+
"description": "Agent display name (looked up to an ID)",
|
|
2636
|
+
"exclusive": [
|
|
2637
|
+
"agent"
|
|
2638
|
+
],
|
|
2639
|
+
"name": "agent-name",
|
|
2640
|
+
"hasDynamicHelp": false,
|
|
2641
|
+
"multiple": false,
|
|
2642
|
+
"type": "option"
|
|
2643
|
+
},
|
|
2644
|
+
"limit": {
|
|
2645
|
+
"description": "Maximum items per page",
|
|
2646
|
+
"name": "limit",
|
|
2647
|
+
"hasDynamicHelp": false,
|
|
2648
|
+
"multiple": false,
|
|
2649
|
+
"type": "option"
|
|
2650
|
+
},
|
|
2651
|
+
"cursor": {
|
|
2652
|
+
"description": "Pagination cursor from a previous page",
|
|
2653
|
+
"name": "cursor",
|
|
2654
|
+
"hasDynamicHelp": false,
|
|
2655
|
+
"multiple": false,
|
|
2656
|
+
"type": "option"
|
|
2657
|
+
},
|
|
2658
|
+
"all": {
|
|
2659
|
+
"description": "Fetch every page",
|
|
2660
|
+
"name": "all",
|
|
2661
|
+
"allowNo": false,
|
|
2662
|
+
"type": "boolean"
|
|
2663
|
+
},
|
|
2664
|
+
"status": {
|
|
2665
|
+
"description": "Filter by status (comma-separated): new, on_you, on_customer, on_hold, closed, cancelled",
|
|
2666
|
+
"name": "status",
|
|
2667
|
+
"hasDynamicHelp": false,
|
|
2668
|
+
"multiple": false,
|
|
2669
|
+
"type": "option"
|
|
2670
|
+
},
|
|
2671
|
+
"channel": {
|
|
2672
|
+
"description": "Filter by channel (comma-separated, e.g. email,api)",
|
|
2673
|
+
"name": "channel",
|
|
2674
|
+
"hasDynamicHelp": false,
|
|
2675
|
+
"multiple": false,
|
|
2676
|
+
"type": "option"
|
|
2677
|
+
},
|
|
2678
|
+
"assignee-id": {
|
|
2679
|
+
"description": "Filter by assignee UUID, or \"none\" for unassigned",
|
|
2680
|
+
"name": "assignee-id",
|
|
2681
|
+
"hasDynamicHelp": false,
|
|
2682
|
+
"multiple": false,
|
|
2683
|
+
"type": "option"
|
|
2684
|
+
},
|
|
2685
|
+
"team-id": {
|
|
2686
|
+
"description": "Filter by team UUID, or \"none\" for no team",
|
|
2687
|
+
"name": "team-id",
|
|
2688
|
+
"hasDynamicHelp": false,
|
|
2689
|
+
"multiple": false,
|
|
2690
|
+
"type": "option"
|
|
2691
|
+
},
|
|
2692
|
+
"created-after": {
|
|
2693
|
+
"description": "Only tickets created after this ISO 8601 date",
|
|
2694
|
+
"name": "created-after",
|
|
2695
|
+
"hasDynamicHelp": false,
|
|
2696
|
+
"multiple": false,
|
|
2697
|
+
"type": "option"
|
|
2698
|
+
},
|
|
2699
|
+
"created-before": {
|
|
2700
|
+
"description": "Only tickets created before this ISO 8601 date",
|
|
2701
|
+
"name": "created-before",
|
|
2702
|
+
"hasDynamicHelp": false,
|
|
2703
|
+
"multiple": false,
|
|
2704
|
+
"type": "option"
|
|
2705
|
+
},
|
|
2706
|
+
"sort-by": {
|
|
2707
|
+
"description": "Sort field",
|
|
2708
|
+
"name": "sort-by",
|
|
2709
|
+
"hasDynamicHelp": false,
|
|
2710
|
+
"multiple": false,
|
|
2711
|
+
"options": [
|
|
2712
|
+
"createdAt",
|
|
2713
|
+
"updatedAt",
|
|
2714
|
+
"lastMessageAt"
|
|
2715
|
+
],
|
|
2716
|
+
"type": "option"
|
|
2717
|
+
},
|
|
2718
|
+
"order": {
|
|
2719
|
+
"description": "Sort direction",
|
|
2720
|
+
"name": "order",
|
|
2721
|
+
"hasDynamicHelp": false,
|
|
2722
|
+
"multiple": false,
|
|
2723
|
+
"options": [
|
|
2724
|
+
"asc",
|
|
2725
|
+
"desc"
|
|
2726
|
+
],
|
|
2727
|
+
"type": "option"
|
|
2728
|
+
},
|
|
2729
|
+
"include-total": {
|
|
2730
|
+
"description": "Include pagination.total in the response",
|
|
2731
|
+
"name": "include-total",
|
|
2732
|
+
"allowNo": false,
|
|
2733
|
+
"type": "boolean"
|
|
2734
|
+
}
|
|
2735
|
+
},
|
|
2736
|
+
"hasDynamicHelp": false,
|
|
2737
|
+
"hiddenAliases": [],
|
|
2738
|
+
"id": "tickets:list",
|
|
2739
|
+
"pluginAlias": "chatbase",
|
|
2740
|
+
"pluginName": "chatbase",
|
|
2741
|
+
"pluginType": "core",
|
|
2742
|
+
"strict": true,
|
|
2743
|
+
"enableJsonFlag": false,
|
|
2744
|
+
"isESM": true,
|
|
2745
|
+
"relativePath": [
|
|
2746
|
+
"dist",
|
|
2747
|
+
"commands",
|
|
2748
|
+
"tickets",
|
|
2749
|
+
"list.js"
|
|
2750
|
+
]
|
|
2751
|
+
},
|
|
2752
|
+
"tickets:messages": {
|
|
2753
|
+
"aliases": [],
|
|
2754
|
+
"args": {
|
|
2755
|
+
"ticketNumber": {
|
|
2756
|
+
"description": "Ticket number (alternative to --ticket)",
|
|
2757
|
+
"name": "ticketNumber",
|
|
2758
|
+
"required": false
|
|
2759
|
+
}
|
|
2760
|
+
},
|
|
2761
|
+
"description": "List a ticket's message thread",
|
|
2762
|
+
"examples": [
|
|
2763
|
+
"<%= config.bin %> tickets messages 42 -a agt_123",
|
|
2764
|
+
"<%= config.bin %> tickets messages 42 -a agt_123 --all --json"
|
|
2765
|
+
],
|
|
2766
|
+
"flags": {
|
|
2767
|
+
"json": {
|
|
2768
|
+
"description": "Output raw API JSON",
|
|
2769
|
+
"helpGroup": "OUTPUT",
|
|
2770
|
+
"name": "json",
|
|
2771
|
+
"allowNo": false,
|
|
2772
|
+
"type": "boolean"
|
|
2773
|
+
},
|
|
2774
|
+
"plain": {
|
|
2775
|
+
"description": "Tab-separated output for scripts",
|
|
2776
|
+
"helpGroup": "OUTPUT",
|
|
2777
|
+
"name": "plain",
|
|
2778
|
+
"allowNo": false,
|
|
2779
|
+
"type": "boolean"
|
|
2780
|
+
},
|
|
2781
|
+
"quiet": {
|
|
2782
|
+
"char": "q",
|
|
2783
|
+
"description": "Suppress non-essential output",
|
|
2784
|
+
"name": "quiet",
|
|
2785
|
+
"allowNo": false,
|
|
2786
|
+
"type": "boolean"
|
|
2787
|
+
},
|
|
2788
|
+
"verbose": {
|
|
2789
|
+
"description": "Verbose diagnostics",
|
|
2790
|
+
"name": "verbose",
|
|
2791
|
+
"allowNo": false,
|
|
2792
|
+
"type": "boolean"
|
|
2793
|
+
},
|
|
2794
|
+
"no-input": {
|
|
2795
|
+
"description": "Never prompt; fail instead",
|
|
2796
|
+
"name": "no-input",
|
|
2797
|
+
"allowNo": false,
|
|
2798
|
+
"type": "boolean"
|
|
2799
|
+
},
|
|
2800
|
+
"no-color": {
|
|
2801
|
+
"description": "Disable colored output",
|
|
2802
|
+
"name": "no-color",
|
|
2803
|
+
"allowNo": false,
|
|
2804
|
+
"type": "boolean"
|
|
2805
|
+
},
|
|
2806
|
+
"agent": {
|
|
2807
|
+
"char": "a",
|
|
2808
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
2809
|
+
"name": "agent",
|
|
2810
|
+
"hasDynamicHelp": false,
|
|
2811
|
+
"multiple": false,
|
|
2812
|
+
"type": "option"
|
|
2813
|
+
},
|
|
2814
|
+
"agent-name": {
|
|
2815
|
+
"description": "Agent display name (looked up to an ID)",
|
|
2816
|
+
"exclusive": [
|
|
2817
|
+
"agent"
|
|
2818
|
+
],
|
|
2819
|
+
"name": "agent-name",
|
|
2820
|
+
"hasDynamicHelp": false,
|
|
2821
|
+
"multiple": false,
|
|
2822
|
+
"type": "option"
|
|
2823
|
+
},
|
|
2824
|
+
"limit": {
|
|
2825
|
+
"description": "Maximum items per page",
|
|
2826
|
+
"name": "limit",
|
|
2827
|
+
"hasDynamicHelp": false,
|
|
2828
|
+
"multiple": false,
|
|
2829
|
+
"type": "option"
|
|
2830
|
+
},
|
|
2831
|
+
"cursor": {
|
|
2832
|
+
"description": "Pagination cursor from a previous page",
|
|
2833
|
+
"name": "cursor",
|
|
2834
|
+
"hasDynamicHelp": false,
|
|
2835
|
+
"multiple": false,
|
|
2836
|
+
"type": "option"
|
|
2837
|
+
},
|
|
2838
|
+
"all": {
|
|
2839
|
+
"description": "Fetch every page",
|
|
2840
|
+
"name": "all",
|
|
2841
|
+
"allowNo": false,
|
|
2842
|
+
"type": "boolean"
|
|
2843
|
+
},
|
|
2844
|
+
"ticket": {
|
|
2845
|
+
"description": "Ticket number",
|
|
2846
|
+
"name": "ticket",
|
|
2847
|
+
"hasDynamicHelp": false,
|
|
2848
|
+
"multiple": false,
|
|
2849
|
+
"type": "option"
|
|
2850
|
+
},
|
|
2851
|
+
"types": {
|
|
2852
|
+
"description": "Message types to include (comma-separated): reply, note, event (default: reply,note)",
|
|
2853
|
+
"name": "types",
|
|
2854
|
+
"hasDynamicHelp": false,
|
|
2855
|
+
"multiple": false,
|
|
2856
|
+
"type": "option"
|
|
2857
|
+
},
|
|
2858
|
+
"order": {
|
|
2859
|
+
"description": "Sort direction",
|
|
2860
|
+
"name": "order",
|
|
2861
|
+
"hasDynamicHelp": false,
|
|
2862
|
+
"multiple": false,
|
|
2863
|
+
"options": [
|
|
2864
|
+
"asc",
|
|
2865
|
+
"desc"
|
|
2866
|
+
],
|
|
2867
|
+
"type": "option"
|
|
2868
|
+
}
|
|
2869
|
+
},
|
|
2870
|
+
"hasDynamicHelp": false,
|
|
2871
|
+
"hiddenAliases": [],
|
|
2872
|
+
"id": "tickets:messages",
|
|
2873
|
+
"pluginAlias": "chatbase",
|
|
2874
|
+
"pluginName": "chatbase",
|
|
2875
|
+
"pluginType": "core",
|
|
2876
|
+
"strict": true,
|
|
2877
|
+
"enableJsonFlag": false,
|
|
2878
|
+
"isESM": true,
|
|
2879
|
+
"relativePath": [
|
|
2880
|
+
"dist",
|
|
2881
|
+
"commands",
|
|
2882
|
+
"tickets",
|
|
2883
|
+
"messages.js"
|
|
2884
|
+
]
|
|
2885
|
+
},
|
|
2886
|
+
"tickets:reply": {
|
|
2887
|
+
"aliases": [],
|
|
2888
|
+
"args": {
|
|
2889
|
+
"ticketNumber": {
|
|
2890
|
+
"description": "Ticket number (alternative to --ticket)",
|
|
2891
|
+
"name": "ticketNumber",
|
|
2892
|
+
"required": false
|
|
2893
|
+
}
|
|
2894
|
+
},
|
|
2895
|
+
"description": "Post an agent reply to a ticket's message thread",
|
|
2896
|
+
"examples": [
|
|
2897
|
+
"<%= config.bin %> tickets reply 42 -m \"On it\" --author-email sam@example.com -a agt_123"
|
|
2898
|
+
],
|
|
2899
|
+
"flags": {
|
|
2900
|
+
"json": {
|
|
2901
|
+
"description": "Output raw API JSON",
|
|
2902
|
+
"helpGroup": "OUTPUT",
|
|
2903
|
+
"name": "json",
|
|
2904
|
+
"allowNo": false,
|
|
2905
|
+
"type": "boolean"
|
|
2906
|
+
},
|
|
2907
|
+
"plain": {
|
|
2908
|
+
"description": "Tab-separated output for scripts",
|
|
2909
|
+
"helpGroup": "OUTPUT",
|
|
2910
|
+
"name": "plain",
|
|
2911
|
+
"allowNo": false,
|
|
2912
|
+
"type": "boolean"
|
|
2913
|
+
},
|
|
2914
|
+
"quiet": {
|
|
2915
|
+
"char": "q",
|
|
2916
|
+
"description": "Suppress non-essential output",
|
|
2917
|
+
"name": "quiet",
|
|
2918
|
+
"allowNo": false,
|
|
2919
|
+
"type": "boolean"
|
|
2920
|
+
},
|
|
2921
|
+
"verbose": {
|
|
2922
|
+
"description": "Verbose diagnostics",
|
|
2923
|
+
"name": "verbose",
|
|
2924
|
+
"allowNo": false,
|
|
2925
|
+
"type": "boolean"
|
|
2926
|
+
},
|
|
2927
|
+
"no-input": {
|
|
2928
|
+
"description": "Never prompt; fail instead",
|
|
2929
|
+
"name": "no-input",
|
|
2930
|
+
"allowNo": false,
|
|
2931
|
+
"type": "boolean"
|
|
2932
|
+
},
|
|
2933
|
+
"no-color": {
|
|
2934
|
+
"description": "Disable colored output",
|
|
2935
|
+
"name": "no-color",
|
|
2936
|
+
"allowNo": false,
|
|
2937
|
+
"type": "boolean"
|
|
2938
|
+
},
|
|
2939
|
+
"agent": {
|
|
2940
|
+
"char": "a",
|
|
2941
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
2942
|
+
"name": "agent",
|
|
2943
|
+
"hasDynamicHelp": false,
|
|
2944
|
+
"multiple": false,
|
|
2945
|
+
"type": "option"
|
|
2946
|
+
},
|
|
2947
|
+
"agent-name": {
|
|
2948
|
+
"description": "Agent display name (looked up to an ID)",
|
|
2949
|
+
"exclusive": [
|
|
2950
|
+
"agent"
|
|
2951
|
+
],
|
|
2952
|
+
"name": "agent-name",
|
|
2953
|
+
"hasDynamicHelp": false,
|
|
2954
|
+
"multiple": false,
|
|
2955
|
+
"type": "option"
|
|
2956
|
+
},
|
|
2957
|
+
"ticket": {
|
|
2958
|
+
"description": "Ticket number",
|
|
2959
|
+
"name": "ticket",
|
|
2960
|
+
"hasDynamicHelp": false,
|
|
2961
|
+
"multiple": false,
|
|
2962
|
+
"type": "option"
|
|
2963
|
+
},
|
|
2964
|
+
"message": {
|
|
2965
|
+
"char": "m",
|
|
2966
|
+
"description": "Reply body as GitHub-flavored Markdown",
|
|
2967
|
+
"name": "message",
|
|
2968
|
+
"required": true,
|
|
2969
|
+
"hasDynamicHelp": false,
|
|
2970
|
+
"multiple": false,
|
|
2971
|
+
"type": "option"
|
|
2972
|
+
},
|
|
2973
|
+
"author-id": {
|
|
2974
|
+
"description": "Platform user id of the team member the reply is attributed to (exactly one of --author-id/--author-email)",
|
|
2975
|
+
"name": "author-id",
|
|
2976
|
+
"hasDynamicHelp": false,
|
|
2977
|
+
"multiple": false,
|
|
2978
|
+
"type": "option"
|
|
2979
|
+
},
|
|
2980
|
+
"author-email": {
|
|
2981
|
+
"description": "Email of the team member the reply is attributed to (exactly one of --author-id/--author-email)",
|
|
2982
|
+
"name": "author-email",
|
|
2983
|
+
"hasDynamicHelp": false,
|
|
2984
|
+
"multiple": false,
|
|
2985
|
+
"type": "option"
|
|
2986
|
+
}
|
|
2987
|
+
},
|
|
2988
|
+
"hasDynamicHelp": false,
|
|
2989
|
+
"hiddenAliases": [],
|
|
2990
|
+
"id": "tickets:reply",
|
|
2991
|
+
"pluginAlias": "chatbase",
|
|
2992
|
+
"pluginName": "chatbase",
|
|
2993
|
+
"pluginType": "core",
|
|
2994
|
+
"strict": true,
|
|
2995
|
+
"enableJsonFlag": false,
|
|
2996
|
+
"isESM": true,
|
|
2997
|
+
"relativePath": [
|
|
2998
|
+
"dist",
|
|
2999
|
+
"commands",
|
|
3000
|
+
"tickets",
|
|
3001
|
+
"reply.js"
|
|
3002
|
+
]
|
|
3003
|
+
},
|
|
3004
|
+
"tickets:search": {
|
|
3005
|
+
"aliases": [],
|
|
3006
|
+
"args": {
|
|
3007
|
+
"query": {
|
|
3008
|
+
"description": "Free-text search terms (matched against ticket messages)",
|
|
3009
|
+
"name": "query",
|
|
3010
|
+
"required": true
|
|
3011
|
+
}
|
|
3012
|
+
},
|
|
3013
|
+
"description": "Search tickets by message content",
|
|
3014
|
+
"examples": [
|
|
3015
|
+
"<%= config.bin %> tickets search \"refund not received\" -a agt_123",
|
|
3016
|
+
"<%= config.bin %> tickets search \"refund\" -a agt_123 --limit 10 --json"
|
|
3017
|
+
],
|
|
3018
|
+
"flags": {
|
|
3019
|
+
"json": {
|
|
3020
|
+
"description": "Output raw API JSON",
|
|
3021
|
+
"helpGroup": "OUTPUT",
|
|
3022
|
+
"name": "json",
|
|
3023
|
+
"allowNo": false,
|
|
3024
|
+
"type": "boolean"
|
|
3025
|
+
},
|
|
3026
|
+
"plain": {
|
|
3027
|
+
"description": "Tab-separated output for scripts",
|
|
3028
|
+
"helpGroup": "OUTPUT",
|
|
3029
|
+
"name": "plain",
|
|
3030
|
+
"allowNo": false,
|
|
3031
|
+
"type": "boolean"
|
|
3032
|
+
},
|
|
3033
|
+
"quiet": {
|
|
3034
|
+
"char": "q",
|
|
3035
|
+
"description": "Suppress non-essential output",
|
|
3036
|
+
"name": "quiet",
|
|
3037
|
+
"allowNo": false,
|
|
3038
|
+
"type": "boolean"
|
|
3039
|
+
},
|
|
3040
|
+
"verbose": {
|
|
3041
|
+
"description": "Verbose diagnostics",
|
|
3042
|
+
"name": "verbose",
|
|
3043
|
+
"allowNo": false,
|
|
3044
|
+
"type": "boolean"
|
|
3045
|
+
},
|
|
3046
|
+
"no-input": {
|
|
3047
|
+
"description": "Never prompt; fail instead",
|
|
3048
|
+
"name": "no-input",
|
|
3049
|
+
"allowNo": false,
|
|
3050
|
+
"type": "boolean"
|
|
3051
|
+
},
|
|
3052
|
+
"no-color": {
|
|
3053
|
+
"description": "Disable colored output",
|
|
3054
|
+
"name": "no-color",
|
|
3055
|
+
"allowNo": false,
|
|
3056
|
+
"type": "boolean"
|
|
3057
|
+
},
|
|
3058
|
+
"agent": {
|
|
3059
|
+
"char": "a",
|
|
3060
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
3061
|
+
"name": "agent",
|
|
3062
|
+
"hasDynamicHelp": false,
|
|
3063
|
+
"multiple": false,
|
|
3064
|
+
"type": "option"
|
|
3065
|
+
},
|
|
3066
|
+
"agent-name": {
|
|
3067
|
+
"description": "Agent display name (looked up to an ID)",
|
|
3068
|
+
"exclusive": [
|
|
3069
|
+
"agent"
|
|
3070
|
+
],
|
|
3071
|
+
"name": "agent-name",
|
|
3072
|
+
"hasDynamicHelp": false,
|
|
3073
|
+
"multiple": false,
|
|
3074
|
+
"type": "option"
|
|
3075
|
+
},
|
|
3076
|
+
"limit": {
|
|
3077
|
+
"description": "Number of results (1–50, default 20)",
|
|
3078
|
+
"name": "limit",
|
|
3079
|
+
"hasDynamicHelp": false,
|
|
3080
|
+
"multiple": false,
|
|
3081
|
+
"type": "option"
|
|
3082
|
+
}
|
|
3083
|
+
},
|
|
3084
|
+
"hasDynamicHelp": false,
|
|
3085
|
+
"hiddenAliases": [],
|
|
3086
|
+
"id": "tickets:search",
|
|
3087
|
+
"pluginAlias": "chatbase",
|
|
3088
|
+
"pluginName": "chatbase",
|
|
3089
|
+
"pluginType": "core",
|
|
3090
|
+
"strict": true,
|
|
3091
|
+
"enableJsonFlag": false,
|
|
3092
|
+
"isESM": true,
|
|
3093
|
+
"relativePath": [
|
|
3094
|
+
"dist",
|
|
3095
|
+
"commands",
|
|
3096
|
+
"tickets",
|
|
3097
|
+
"search.js"
|
|
3098
|
+
]
|
|
3099
|
+
},
|
|
3100
|
+
"tickets:update": {
|
|
3101
|
+
"aliases": [],
|
|
3102
|
+
"args": {
|
|
3103
|
+
"ticketNumber": {
|
|
3104
|
+
"description": "Ticket number",
|
|
3105
|
+
"name": "ticketNumber",
|
|
3106
|
+
"required": true
|
|
3107
|
+
}
|
|
3108
|
+
},
|
|
3109
|
+
"description": "Update a ticket's status, assignee, and/or team",
|
|
3110
|
+
"examples": [
|
|
3111
|
+
"<%= config.bin %> tickets update 42 --data '{\"statusCategory\":\"closed\"}' -a agt_123"
|
|
3112
|
+
],
|
|
3113
|
+
"flags": {
|
|
3114
|
+
"json": {
|
|
3115
|
+
"description": "Output raw API JSON",
|
|
3116
|
+
"helpGroup": "OUTPUT",
|
|
3117
|
+
"name": "json",
|
|
3118
|
+
"allowNo": false,
|
|
3119
|
+
"type": "boolean"
|
|
3120
|
+
},
|
|
3121
|
+
"plain": {
|
|
3122
|
+
"description": "Tab-separated output for scripts",
|
|
3123
|
+
"helpGroup": "OUTPUT",
|
|
3124
|
+
"name": "plain",
|
|
3125
|
+
"allowNo": false,
|
|
3126
|
+
"type": "boolean"
|
|
3127
|
+
},
|
|
3128
|
+
"quiet": {
|
|
3129
|
+
"char": "q",
|
|
3130
|
+
"description": "Suppress non-essential output",
|
|
3131
|
+
"name": "quiet",
|
|
3132
|
+
"allowNo": false,
|
|
3133
|
+
"type": "boolean"
|
|
3134
|
+
},
|
|
3135
|
+
"verbose": {
|
|
3136
|
+
"description": "Verbose diagnostics",
|
|
3137
|
+
"name": "verbose",
|
|
3138
|
+
"allowNo": false,
|
|
3139
|
+
"type": "boolean"
|
|
3140
|
+
},
|
|
3141
|
+
"no-input": {
|
|
3142
|
+
"description": "Never prompt; fail instead",
|
|
3143
|
+
"name": "no-input",
|
|
3144
|
+
"allowNo": false,
|
|
3145
|
+
"type": "boolean"
|
|
3146
|
+
},
|
|
3147
|
+
"no-color": {
|
|
3148
|
+
"description": "Disable colored output",
|
|
3149
|
+
"name": "no-color",
|
|
3150
|
+
"allowNo": false,
|
|
3151
|
+
"type": "boolean"
|
|
3152
|
+
},
|
|
3153
|
+
"agent": {
|
|
3154
|
+
"char": "a",
|
|
3155
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
3156
|
+
"name": "agent",
|
|
3157
|
+
"hasDynamicHelp": false,
|
|
3158
|
+
"multiple": false,
|
|
3159
|
+
"type": "option"
|
|
3160
|
+
},
|
|
3161
|
+
"agent-name": {
|
|
3162
|
+
"description": "Agent display name (looked up to an ID)",
|
|
3163
|
+
"exclusive": [
|
|
3164
|
+
"agent"
|
|
3165
|
+
],
|
|
3166
|
+
"name": "agent-name",
|
|
3167
|
+
"hasDynamicHelp": false,
|
|
3168
|
+
"multiple": false,
|
|
3169
|
+
"type": "option"
|
|
3170
|
+
},
|
|
3171
|
+
"field": {
|
|
3172
|
+
"char": "f",
|
|
3173
|
+
"description": "Set a body field: -f key=value (repeatable)",
|
|
3174
|
+
"name": "field",
|
|
3175
|
+
"hasDynamicHelp": false,
|
|
3176
|
+
"multiple": true,
|
|
3177
|
+
"type": "option"
|
|
3178
|
+
},
|
|
3179
|
+
"data": {
|
|
3180
|
+
"description": "JSON body (@file, @-, or inline). Fields: statusId, statusCategory, assigneeId, assigneeEmail, teamId",
|
|
3181
|
+
"name": "data",
|
|
3182
|
+
"hasDynamicHelp": false,
|
|
3183
|
+
"multiple": false,
|
|
3184
|
+
"type": "option"
|
|
3185
|
+
}
|
|
3186
|
+
},
|
|
3187
|
+
"hasDynamicHelp": false,
|
|
3188
|
+
"hiddenAliases": [],
|
|
3189
|
+
"id": "tickets:update",
|
|
3190
|
+
"pluginAlias": "chatbase",
|
|
3191
|
+
"pluginName": "chatbase",
|
|
3192
|
+
"pluginType": "core",
|
|
3193
|
+
"strict": true,
|
|
3194
|
+
"enableJsonFlag": false,
|
|
3195
|
+
"isESM": true,
|
|
3196
|
+
"relativePath": [
|
|
3197
|
+
"dist",
|
|
3198
|
+
"commands",
|
|
3199
|
+
"tickets",
|
|
3200
|
+
"update.js"
|
|
3201
|
+
]
|
|
3202
|
+
},
|
|
3203
|
+
"sources:create": {
|
|
3204
|
+
"aliases": [],
|
|
3205
|
+
"args": {},
|
|
3206
|
+
"description": "Create a source: text/qna/link (JSON) or a file upload",
|
|
3207
|
+
"examples": [
|
|
3208
|
+
"<%= config.bin %> sources create --type text --name Guide --content \"hello\" -a agt_123",
|
|
3209
|
+
"<%= config.bin %> sources create --type link --url https://example.com --link-type crawl -a agt_123",
|
|
3210
|
+
"<%= config.bin %> sources create --type qna --data '{\"questions\":[\"Q1\"],\"answer\":\"A1\"}' -a agt_123",
|
|
3211
|
+
"<%= config.bin %> sources create --file ./guide.pdf -a agt_123"
|
|
3212
|
+
],
|
|
3213
|
+
"flags": {
|
|
3214
|
+
"json": {
|
|
3215
|
+
"description": "Output raw API JSON",
|
|
3216
|
+
"helpGroup": "OUTPUT",
|
|
3217
|
+
"name": "json",
|
|
3218
|
+
"allowNo": false,
|
|
3219
|
+
"type": "boolean"
|
|
3220
|
+
},
|
|
3221
|
+
"plain": {
|
|
3222
|
+
"description": "Tab-separated output for scripts",
|
|
3223
|
+
"helpGroup": "OUTPUT",
|
|
3224
|
+
"name": "plain",
|
|
3225
|
+
"allowNo": false,
|
|
3226
|
+
"type": "boolean"
|
|
3227
|
+
},
|
|
3228
|
+
"quiet": {
|
|
3229
|
+
"char": "q",
|
|
3230
|
+
"description": "Suppress non-essential output",
|
|
3231
|
+
"name": "quiet",
|
|
3232
|
+
"allowNo": false,
|
|
3233
|
+
"type": "boolean"
|
|
3234
|
+
},
|
|
3235
|
+
"verbose": {
|
|
3236
|
+
"description": "Verbose diagnostics",
|
|
3237
|
+
"name": "verbose",
|
|
3238
|
+
"allowNo": false,
|
|
3239
|
+
"type": "boolean"
|
|
3240
|
+
},
|
|
3241
|
+
"no-input": {
|
|
3242
|
+
"description": "Never prompt; fail instead",
|
|
3243
|
+
"name": "no-input",
|
|
3244
|
+
"allowNo": false,
|
|
3245
|
+
"type": "boolean"
|
|
3246
|
+
},
|
|
3247
|
+
"no-color": {
|
|
3248
|
+
"description": "Disable colored output",
|
|
3249
|
+
"name": "no-color",
|
|
3250
|
+
"allowNo": false,
|
|
3251
|
+
"type": "boolean"
|
|
3252
|
+
},
|
|
3253
|
+
"agent": {
|
|
3254
|
+
"char": "a",
|
|
3255
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
3256
|
+
"name": "agent",
|
|
3257
|
+
"hasDynamicHelp": false,
|
|
3258
|
+
"multiple": false,
|
|
3259
|
+
"type": "option"
|
|
3260
|
+
},
|
|
3261
|
+
"agent-name": {
|
|
3262
|
+
"description": "Agent display name (looked up to an ID)",
|
|
3263
|
+
"exclusive": [
|
|
3264
|
+
"agent"
|
|
3265
|
+
],
|
|
3266
|
+
"name": "agent-name",
|
|
3267
|
+
"hasDynamicHelp": false,
|
|
3268
|
+
"multiple": false,
|
|
3269
|
+
"type": "option"
|
|
3270
|
+
},
|
|
3271
|
+
"field": {
|
|
3272
|
+
"char": "f",
|
|
3273
|
+
"description": "Set a body field: -f key=value (repeatable)",
|
|
3274
|
+
"name": "field",
|
|
3275
|
+
"hasDynamicHelp": false,
|
|
3276
|
+
"multiple": true,
|
|
3277
|
+
"type": "option"
|
|
3278
|
+
},
|
|
3279
|
+
"type": {
|
|
3280
|
+
"description": "JSON source type (mutually exclusive with --file)",
|
|
3281
|
+
"exclusive": [
|
|
3282
|
+
"file"
|
|
3283
|
+
],
|
|
3284
|
+
"name": "type",
|
|
3285
|
+
"hasDynamicHelp": false,
|
|
3286
|
+
"multiple": false,
|
|
3287
|
+
"options": [
|
|
3288
|
+
"text",
|
|
3289
|
+
"qna",
|
|
3290
|
+
"link"
|
|
3291
|
+
],
|
|
3292
|
+
"type": "option"
|
|
3293
|
+
},
|
|
3294
|
+
"file": {
|
|
3295
|
+
"description": "Path to a file to upload as a source (mutually exclusive with --type)",
|
|
3296
|
+
"exclusive": [
|
|
3297
|
+
"type",
|
|
3298
|
+
"data",
|
|
3299
|
+
"content",
|
|
3300
|
+
"url",
|
|
3301
|
+
"link-type"
|
|
3302
|
+
],
|
|
3303
|
+
"name": "file",
|
|
3304
|
+
"hasDynamicHelp": false,
|
|
3305
|
+
"multiple": false,
|
|
3306
|
+
"type": "option"
|
|
3307
|
+
},
|
|
3308
|
+
"name": {
|
|
3309
|
+
"description": "Source name (--type text/qna, or a file upload)",
|
|
3310
|
+
"name": "name",
|
|
3311
|
+
"hasDynamicHelp": false,
|
|
3312
|
+
"multiple": false,
|
|
3313
|
+
"type": "option"
|
|
3314
|
+
},
|
|
3315
|
+
"content": {
|
|
3316
|
+
"description": "Text content for --type text (@file, @-, or inline)",
|
|
3317
|
+
"name": "content",
|
|
3318
|
+
"hasDynamicHelp": false,
|
|
3319
|
+
"multiple": false,
|
|
3320
|
+
"type": "option"
|
|
3321
|
+
},
|
|
3322
|
+
"url": {
|
|
3323
|
+
"description": "URL for --type link",
|
|
3324
|
+
"name": "url",
|
|
3325
|
+
"hasDynamicHelp": false,
|
|
3326
|
+
"multiple": false,
|
|
3327
|
+
"type": "option"
|
|
3328
|
+
},
|
|
3329
|
+
"link-type": {
|
|
3330
|
+
"description": "Link crawl mode for --type link",
|
|
3331
|
+
"name": "link-type",
|
|
3332
|
+
"hasDynamicHelp": false,
|
|
3333
|
+
"multiple": false,
|
|
3334
|
+
"options": [
|
|
3335
|
+
"individual",
|
|
3336
|
+
"sitemap",
|
|
3337
|
+
"crawl"
|
|
3338
|
+
],
|
|
3339
|
+
"type": "option"
|
|
3340
|
+
},
|
|
3341
|
+
"data": {
|
|
3342
|
+
"description": "JSON body (@file, @-, or inline); per-type flags override matching keys",
|
|
3343
|
+
"name": "data",
|
|
3344
|
+
"hasDynamicHelp": false,
|
|
3345
|
+
"multiple": false,
|
|
3346
|
+
"type": "option"
|
|
3347
|
+
}
|
|
3348
|
+
},
|
|
3349
|
+
"hasDynamicHelp": false,
|
|
3350
|
+
"hiddenAliases": [],
|
|
3351
|
+
"id": "sources:create",
|
|
3352
|
+
"pluginAlias": "chatbase",
|
|
3353
|
+
"pluginName": "chatbase",
|
|
3354
|
+
"pluginType": "core",
|
|
3355
|
+
"strict": true,
|
|
3356
|
+
"enableJsonFlag": false,
|
|
3357
|
+
"isESM": true,
|
|
3358
|
+
"relativePath": [
|
|
3359
|
+
"dist",
|
|
3360
|
+
"commands",
|
|
3361
|
+
"sources",
|
|
3362
|
+
"create.js"
|
|
3363
|
+
]
|
|
3364
|
+
},
|
|
3365
|
+
"sources:delete": {
|
|
3366
|
+
"aliases": [],
|
|
3367
|
+
"args": {
|
|
3368
|
+
"sourceId": {
|
|
3369
|
+
"description": "Source ID",
|
|
3370
|
+
"name": "sourceId",
|
|
3371
|
+
"required": true
|
|
3372
|
+
}
|
|
3373
|
+
},
|
|
3374
|
+
"description": "Delete a source (restorable via restore command)",
|
|
3375
|
+
"examples": [
|
|
3376
|
+
"<%= config.bin %> sources delete src_1 -a agt_1"
|
|
3377
|
+
],
|
|
3378
|
+
"flags": {
|
|
3379
|
+
"json": {
|
|
3380
|
+
"description": "Output raw API JSON",
|
|
3381
|
+
"helpGroup": "OUTPUT",
|
|
3382
|
+
"name": "json",
|
|
3383
|
+
"allowNo": false,
|
|
3384
|
+
"type": "boolean"
|
|
3385
|
+
},
|
|
3386
|
+
"plain": {
|
|
3387
|
+
"description": "Tab-separated output for scripts",
|
|
3388
|
+
"helpGroup": "OUTPUT",
|
|
3389
|
+
"name": "plain",
|
|
3390
|
+
"allowNo": false,
|
|
3391
|
+
"type": "boolean"
|
|
3392
|
+
},
|
|
3393
|
+
"quiet": {
|
|
3394
|
+
"char": "q",
|
|
3395
|
+
"description": "Suppress non-essential output",
|
|
3396
|
+
"name": "quiet",
|
|
3397
|
+
"allowNo": false,
|
|
3398
|
+
"type": "boolean"
|
|
3399
|
+
},
|
|
3400
|
+
"verbose": {
|
|
3401
|
+
"description": "Verbose diagnostics",
|
|
3402
|
+
"name": "verbose",
|
|
3403
|
+
"allowNo": false,
|
|
3404
|
+
"type": "boolean"
|
|
3405
|
+
},
|
|
3406
|
+
"no-input": {
|
|
3407
|
+
"description": "Never prompt; fail instead",
|
|
3408
|
+
"name": "no-input",
|
|
3409
|
+
"allowNo": false,
|
|
3410
|
+
"type": "boolean"
|
|
3411
|
+
},
|
|
3412
|
+
"no-color": {
|
|
3413
|
+
"description": "Disable colored output",
|
|
3414
|
+
"name": "no-color",
|
|
3415
|
+
"allowNo": false,
|
|
3416
|
+
"type": "boolean"
|
|
3417
|
+
},
|
|
3418
|
+
"agent": {
|
|
3419
|
+
"char": "a",
|
|
3420
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
3421
|
+
"name": "agent",
|
|
3422
|
+
"hasDynamicHelp": false,
|
|
3423
|
+
"multiple": false,
|
|
3424
|
+
"type": "option"
|
|
3425
|
+
},
|
|
3426
|
+
"agent-name": {
|
|
3427
|
+
"description": "Agent display name (looked up to an ID)",
|
|
3428
|
+
"exclusive": [
|
|
3429
|
+
"agent"
|
|
3430
|
+
],
|
|
3431
|
+
"name": "agent-name",
|
|
3432
|
+
"hasDynamicHelp": false,
|
|
3433
|
+
"multiple": false,
|
|
3434
|
+
"type": "option"
|
|
3435
|
+
}
|
|
3436
|
+
},
|
|
3437
|
+
"hasDynamicHelp": false,
|
|
3438
|
+
"hiddenAliases": [],
|
|
3439
|
+
"id": "sources:delete",
|
|
3440
|
+
"pluginAlias": "chatbase",
|
|
3441
|
+
"pluginName": "chatbase",
|
|
3442
|
+
"pluginType": "core",
|
|
3443
|
+
"strict": true,
|
|
3444
|
+
"enableJsonFlag": false,
|
|
3445
|
+
"isESM": true,
|
|
3446
|
+
"relativePath": [
|
|
3447
|
+
"dist",
|
|
3448
|
+
"commands",
|
|
3449
|
+
"sources",
|
|
3450
|
+
"delete.js"
|
|
3451
|
+
]
|
|
3452
|
+
},
|
|
3453
|
+
"sources:get": {
|
|
3454
|
+
"aliases": [],
|
|
3455
|
+
"args": {
|
|
3456
|
+
"sourceId": {
|
|
3457
|
+
"description": "Source ID",
|
|
3458
|
+
"name": "sourceId",
|
|
3459
|
+
"required": true
|
|
3460
|
+
}
|
|
3461
|
+
},
|
|
3462
|
+
"description": "Show one source",
|
|
3463
|
+
"examples": [
|
|
3464
|
+
"<%= config.bin %> sources get src_123 -a agt_123"
|
|
3465
|
+
],
|
|
3466
|
+
"flags": {
|
|
3467
|
+
"json": {
|
|
3468
|
+
"description": "Output raw API JSON",
|
|
3469
|
+
"helpGroup": "OUTPUT",
|
|
3470
|
+
"name": "json",
|
|
3471
|
+
"allowNo": false,
|
|
3472
|
+
"type": "boolean"
|
|
3473
|
+
},
|
|
3474
|
+
"plain": {
|
|
3475
|
+
"description": "Tab-separated output for scripts",
|
|
3476
|
+
"helpGroup": "OUTPUT",
|
|
3477
|
+
"name": "plain",
|
|
3478
|
+
"allowNo": false,
|
|
3479
|
+
"type": "boolean"
|
|
3480
|
+
},
|
|
3481
|
+
"quiet": {
|
|
3482
|
+
"char": "q",
|
|
3483
|
+
"description": "Suppress non-essential output",
|
|
3484
|
+
"name": "quiet",
|
|
3485
|
+
"allowNo": false,
|
|
3486
|
+
"type": "boolean"
|
|
3487
|
+
},
|
|
3488
|
+
"verbose": {
|
|
3489
|
+
"description": "Verbose diagnostics",
|
|
3490
|
+
"name": "verbose",
|
|
3491
|
+
"allowNo": false,
|
|
3492
|
+
"type": "boolean"
|
|
3493
|
+
},
|
|
3494
|
+
"no-input": {
|
|
3495
|
+
"description": "Never prompt; fail instead",
|
|
3496
|
+
"name": "no-input",
|
|
3497
|
+
"allowNo": false,
|
|
3498
|
+
"type": "boolean"
|
|
3499
|
+
},
|
|
3500
|
+
"no-color": {
|
|
3501
|
+
"description": "Disable colored output",
|
|
3502
|
+
"name": "no-color",
|
|
3503
|
+
"allowNo": false,
|
|
3504
|
+
"type": "boolean"
|
|
3505
|
+
},
|
|
3506
|
+
"agent": {
|
|
3507
|
+
"char": "a",
|
|
3508
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
3509
|
+
"name": "agent",
|
|
3510
|
+
"hasDynamicHelp": false,
|
|
3511
|
+
"multiple": false,
|
|
3512
|
+
"type": "option"
|
|
3513
|
+
},
|
|
3514
|
+
"agent-name": {
|
|
3515
|
+
"description": "Agent display name (looked up to an ID)",
|
|
3516
|
+
"exclusive": [
|
|
3517
|
+
"agent"
|
|
3518
|
+
],
|
|
3519
|
+
"name": "agent-name",
|
|
3520
|
+
"hasDynamicHelp": false,
|
|
3521
|
+
"multiple": false,
|
|
3522
|
+
"type": "option"
|
|
3523
|
+
}
|
|
3524
|
+
},
|
|
3525
|
+
"hasDynamicHelp": false,
|
|
3526
|
+
"hiddenAliases": [],
|
|
3527
|
+
"id": "sources:get",
|
|
3528
|
+
"pluginAlias": "chatbase",
|
|
3529
|
+
"pluginName": "chatbase",
|
|
3530
|
+
"pluginType": "core",
|
|
3531
|
+
"strict": true,
|
|
3532
|
+
"enableJsonFlag": false,
|
|
3533
|
+
"isESM": true,
|
|
3534
|
+
"relativePath": [
|
|
3535
|
+
"dist",
|
|
3536
|
+
"commands",
|
|
3537
|
+
"sources",
|
|
3538
|
+
"get.js"
|
|
3539
|
+
]
|
|
3540
|
+
},
|
|
3541
|
+
"sources:list": {
|
|
3542
|
+
"aliases": [],
|
|
3543
|
+
"args": {},
|
|
3544
|
+
"description": "List sources for an agent",
|
|
3545
|
+
"examples": [
|
|
3546
|
+
"<%= config.bin %> sources list -a agt_123",
|
|
3547
|
+
"<%= config.bin %> sources list -a agt_123 --all --json"
|
|
3548
|
+
],
|
|
3549
|
+
"flags": {
|
|
3550
|
+
"json": {
|
|
3551
|
+
"description": "Output raw API JSON",
|
|
3552
|
+
"helpGroup": "OUTPUT",
|
|
3553
|
+
"name": "json",
|
|
3554
|
+
"allowNo": false,
|
|
3555
|
+
"type": "boolean"
|
|
3556
|
+
},
|
|
3557
|
+
"plain": {
|
|
3558
|
+
"description": "Tab-separated output for scripts",
|
|
3559
|
+
"helpGroup": "OUTPUT",
|
|
3560
|
+
"name": "plain",
|
|
3561
|
+
"allowNo": false,
|
|
3562
|
+
"type": "boolean"
|
|
3563
|
+
},
|
|
3564
|
+
"quiet": {
|
|
3565
|
+
"char": "q",
|
|
3566
|
+
"description": "Suppress non-essential output",
|
|
3567
|
+
"name": "quiet",
|
|
3568
|
+
"allowNo": false,
|
|
3569
|
+
"type": "boolean"
|
|
3570
|
+
},
|
|
3571
|
+
"verbose": {
|
|
3572
|
+
"description": "Verbose diagnostics",
|
|
3573
|
+
"name": "verbose",
|
|
3574
|
+
"allowNo": false,
|
|
3575
|
+
"type": "boolean"
|
|
3576
|
+
},
|
|
3577
|
+
"no-input": {
|
|
3578
|
+
"description": "Never prompt; fail instead",
|
|
3579
|
+
"name": "no-input",
|
|
3580
|
+
"allowNo": false,
|
|
3581
|
+
"type": "boolean"
|
|
3582
|
+
},
|
|
3583
|
+
"no-color": {
|
|
3584
|
+
"description": "Disable colored output",
|
|
3585
|
+
"name": "no-color",
|
|
3586
|
+
"allowNo": false,
|
|
3587
|
+
"type": "boolean"
|
|
3588
|
+
},
|
|
3589
|
+
"agent": {
|
|
3590
|
+
"char": "a",
|
|
3591
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
3592
|
+
"name": "agent",
|
|
3593
|
+
"hasDynamicHelp": false,
|
|
3594
|
+
"multiple": false,
|
|
3595
|
+
"type": "option"
|
|
3596
|
+
},
|
|
3597
|
+
"agent-name": {
|
|
3598
|
+
"description": "Agent display name (looked up to an ID)",
|
|
3599
|
+
"exclusive": [
|
|
3600
|
+
"agent"
|
|
3601
|
+
],
|
|
3602
|
+
"name": "agent-name",
|
|
3603
|
+
"hasDynamicHelp": false,
|
|
3604
|
+
"multiple": false,
|
|
3605
|
+
"type": "option"
|
|
3606
|
+
},
|
|
3607
|
+
"limit": {
|
|
3608
|
+
"description": "Maximum items per page",
|
|
3609
|
+
"name": "limit",
|
|
3610
|
+
"hasDynamicHelp": false,
|
|
3611
|
+
"multiple": false,
|
|
3612
|
+
"type": "option"
|
|
3613
|
+
},
|
|
3614
|
+
"cursor": {
|
|
3615
|
+
"description": "Pagination cursor from a previous page",
|
|
3616
|
+
"name": "cursor",
|
|
3617
|
+
"hasDynamicHelp": false,
|
|
3618
|
+
"multiple": false,
|
|
3619
|
+
"type": "option"
|
|
3620
|
+
},
|
|
3621
|
+
"all": {
|
|
3622
|
+
"description": "Fetch every page",
|
|
3623
|
+
"name": "all",
|
|
3624
|
+
"allowNo": false,
|
|
3625
|
+
"type": "boolean"
|
|
3626
|
+
},
|
|
3627
|
+
"type": {
|
|
3628
|
+
"description": "Filter by source type",
|
|
3629
|
+
"name": "type",
|
|
3630
|
+
"hasDynamicHelp": false,
|
|
3631
|
+
"multiple": false,
|
|
3632
|
+
"type": "option"
|
|
3633
|
+
},
|
|
3634
|
+
"name": {
|
|
3635
|
+
"description": "Filter by source name",
|
|
3636
|
+
"name": "name",
|
|
3637
|
+
"hasDynamicHelp": false,
|
|
3638
|
+
"multiple": false,
|
|
3639
|
+
"type": "option"
|
|
3640
|
+
}
|
|
3641
|
+
},
|
|
3642
|
+
"hasDynamicHelp": false,
|
|
3643
|
+
"hiddenAliases": [],
|
|
3644
|
+
"id": "sources:list",
|
|
3645
|
+
"pluginAlias": "chatbase",
|
|
3646
|
+
"pluginName": "chatbase",
|
|
3647
|
+
"pluginType": "core",
|
|
3648
|
+
"strict": true,
|
|
3649
|
+
"enableJsonFlag": false,
|
|
3650
|
+
"isESM": true,
|
|
3651
|
+
"relativePath": [
|
|
3652
|
+
"dist",
|
|
3653
|
+
"commands",
|
|
3654
|
+
"sources",
|
|
3655
|
+
"list.js"
|
|
3656
|
+
]
|
|
3657
|
+
},
|
|
3658
|
+
"sources:restore": {
|
|
3659
|
+
"aliases": [],
|
|
3660
|
+
"args": {
|
|
3661
|
+
"sourceId": {
|
|
3662
|
+
"description": "Source ID",
|
|
3663
|
+
"name": "sourceId",
|
|
3664
|
+
"required": true
|
|
3665
|
+
}
|
|
3666
|
+
},
|
|
3667
|
+
"description": "Restore a deleted source",
|
|
3668
|
+
"examples": [
|
|
3669
|
+
"<%= config.bin %> sources restore src_1 -a agt_1"
|
|
3670
|
+
],
|
|
3671
|
+
"flags": {
|
|
3672
|
+
"json": {
|
|
3673
|
+
"description": "Output raw API JSON",
|
|
3674
|
+
"helpGroup": "OUTPUT",
|
|
3675
|
+
"name": "json",
|
|
3676
|
+
"allowNo": false,
|
|
3677
|
+
"type": "boolean"
|
|
3678
|
+
},
|
|
3679
|
+
"plain": {
|
|
3680
|
+
"description": "Tab-separated output for scripts",
|
|
3681
|
+
"helpGroup": "OUTPUT",
|
|
3682
|
+
"name": "plain",
|
|
3683
|
+
"allowNo": false,
|
|
3684
|
+
"type": "boolean"
|
|
3685
|
+
},
|
|
3686
|
+
"quiet": {
|
|
3687
|
+
"char": "q",
|
|
3688
|
+
"description": "Suppress non-essential output",
|
|
3689
|
+
"name": "quiet",
|
|
3690
|
+
"allowNo": false,
|
|
3691
|
+
"type": "boolean"
|
|
3692
|
+
},
|
|
3693
|
+
"verbose": {
|
|
3694
|
+
"description": "Verbose diagnostics",
|
|
3695
|
+
"name": "verbose",
|
|
3696
|
+
"allowNo": false,
|
|
3697
|
+
"type": "boolean"
|
|
3698
|
+
},
|
|
3699
|
+
"no-input": {
|
|
3700
|
+
"description": "Never prompt; fail instead",
|
|
3701
|
+
"name": "no-input",
|
|
3702
|
+
"allowNo": false,
|
|
3703
|
+
"type": "boolean"
|
|
3704
|
+
},
|
|
3705
|
+
"no-color": {
|
|
3706
|
+
"description": "Disable colored output",
|
|
3707
|
+
"name": "no-color",
|
|
3708
|
+
"allowNo": false,
|
|
3709
|
+
"type": "boolean"
|
|
3710
|
+
},
|
|
3711
|
+
"agent": {
|
|
3712
|
+
"char": "a",
|
|
3713
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
3714
|
+
"name": "agent",
|
|
3715
|
+
"hasDynamicHelp": false,
|
|
3716
|
+
"multiple": false,
|
|
3717
|
+
"type": "option"
|
|
3718
|
+
},
|
|
3719
|
+
"agent-name": {
|
|
3720
|
+
"description": "Agent display name (looked up to an ID)",
|
|
3721
|
+
"exclusive": [
|
|
3722
|
+
"agent"
|
|
3723
|
+
],
|
|
3724
|
+
"name": "agent-name",
|
|
3725
|
+
"hasDynamicHelp": false,
|
|
3726
|
+
"multiple": false,
|
|
3727
|
+
"type": "option"
|
|
3728
|
+
}
|
|
3729
|
+
},
|
|
3730
|
+
"hasDynamicHelp": false,
|
|
3731
|
+
"hiddenAliases": [],
|
|
3732
|
+
"id": "sources:restore",
|
|
3733
|
+
"pluginAlias": "chatbase",
|
|
3734
|
+
"pluginName": "chatbase",
|
|
3735
|
+
"pluginType": "core",
|
|
3736
|
+
"strict": true,
|
|
3737
|
+
"enableJsonFlag": false,
|
|
3738
|
+
"isESM": true,
|
|
3739
|
+
"relativePath": [
|
|
3740
|
+
"dist",
|
|
3741
|
+
"commands",
|
|
3742
|
+
"sources",
|
|
3743
|
+
"restore.js"
|
|
3744
|
+
]
|
|
3745
|
+
},
|
|
3746
|
+
"sources:summary": {
|
|
3747
|
+
"aliases": [],
|
|
3748
|
+
"args": {},
|
|
3749
|
+
"description": "Show aggregated source counts and sizes for an agent",
|
|
3750
|
+
"examples": [
|
|
3751
|
+
"<%= config.bin %> sources summary -a agt_123"
|
|
3752
|
+
],
|
|
3753
|
+
"flags": {
|
|
3754
|
+
"json": {
|
|
3755
|
+
"description": "Output raw API JSON",
|
|
3756
|
+
"helpGroup": "OUTPUT",
|
|
3757
|
+
"name": "json",
|
|
3758
|
+
"allowNo": false,
|
|
3759
|
+
"type": "boolean"
|
|
3760
|
+
},
|
|
3761
|
+
"plain": {
|
|
3762
|
+
"description": "Tab-separated output for scripts",
|
|
3763
|
+
"helpGroup": "OUTPUT",
|
|
3764
|
+
"name": "plain",
|
|
3765
|
+
"allowNo": false,
|
|
3766
|
+
"type": "boolean"
|
|
3767
|
+
},
|
|
3768
|
+
"quiet": {
|
|
3769
|
+
"char": "q",
|
|
3770
|
+
"description": "Suppress non-essential output",
|
|
3771
|
+
"name": "quiet",
|
|
3772
|
+
"allowNo": false,
|
|
3773
|
+
"type": "boolean"
|
|
3774
|
+
},
|
|
3775
|
+
"verbose": {
|
|
3776
|
+
"description": "Verbose diagnostics",
|
|
3777
|
+
"name": "verbose",
|
|
3778
|
+
"allowNo": false,
|
|
3779
|
+
"type": "boolean"
|
|
3780
|
+
},
|
|
3781
|
+
"no-input": {
|
|
3782
|
+
"description": "Never prompt; fail instead",
|
|
3783
|
+
"name": "no-input",
|
|
3784
|
+
"allowNo": false,
|
|
3785
|
+
"type": "boolean"
|
|
3786
|
+
},
|
|
3787
|
+
"no-color": {
|
|
3788
|
+
"description": "Disable colored output",
|
|
3789
|
+
"name": "no-color",
|
|
3790
|
+
"allowNo": false,
|
|
3791
|
+
"type": "boolean"
|
|
3792
|
+
},
|
|
3793
|
+
"agent": {
|
|
3794
|
+
"char": "a",
|
|
3795
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
3796
|
+
"name": "agent",
|
|
3797
|
+
"hasDynamicHelp": false,
|
|
3798
|
+
"multiple": false,
|
|
3799
|
+
"type": "option"
|
|
3800
|
+
},
|
|
3801
|
+
"agent-name": {
|
|
3802
|
+
"description": "Agent display name (looked up to an ID)",
|
|
3803
|
+
"exclusive": [
|
|
3804
|
+
"agent"
|
|
3805
|
+
],
|
|
3806
|
+
"name": "agent-name",
|
|
3807
|
+
"hasDynamicHelp": false,
|
|
3808
|
+
"multiple": false,
|
|
3809
|
+
"type": "option"
|
|
3810
|
+
}
|
|
3811
|
+
},
|
|
3812
|
+
"hasDynamicHelp": false,
|
|
3813
|
+
"hiddenAliases": [],
|
|
3814
|
+
"id": "sources:summary",
|
|
3815
|
+
"pluginAlias": "chatbase",
|
|
3816
|
+
"pluginName": "chatbase",
|
|
3817
|
+
"pluginType": "core",
|
|
3818
|
+
"strict": true,
|
|
3819
|
+
"enableJsonFlag": false,
|
|
3820
|
+
"isESM": true,
|
|
3821
|
+
"relativePath": [
|
|
3822
|
+
"dist",
|
|
3823
|
+
"commands",
|
|
3824
|
+
"sources",
|
|
3825
|
+
"summary.js"
|
|
3826
|
+
]
|
|
3827
|
+
},
|
|
3828
|
+
"sources:update": {
|
|
3829
|
+
"aliases": [],
|
|
3830
|
+
"args": {
|
|
3831
|
+
"sourceId": {
|
|
3832
|
+
"description": "Source ID",
|
|
3833
|
+
"name": "sourceId",
|
|
3834
|
+
"required": true
|
|
3835
|
+
}
|
|
3836
|
+
},
|
|
3837
|
+
"description": "Update an existing source (text, qna, link, or file)",
|
|
3838
|
+
"examples": [
|
|
3839
|
+
"<%= config.bin %> sources update src_1 --data '{\"type\":\"text\",\"content\":\"new\"}' -a agt_1",
|
|
3840
|
+
"<%= config.bin %> sources update src_1 --file ./updated.pdf -a agt_1"
|
|
3841
|
+
],
|
|
3842
|
+
"flags": {
|
|
3843
|
+
"json": {
|
|
3844
|
+
"description": "Output raw API JSON",
|
|
3845
|
+
"helpGroup": "OUTPUT",
|
|
3846
|
+
"name": "json",
|
|
3847
|
+
"allowNo": false,
|
|
3848
|
+
"type": "boolean"
|
|
3849
|
+
},
|
|
3850
|
+
"plain": {
|
|
3851
|
+
"description": "Tab-separated output for scripts",
|
|
3852
|
+
"helpGroup": "OUTPUT",
|
|
3853
|
+
"name": "plain",
|
|
3854
|
+
"allowNo": false,
|
|
3855
|
+
"type": "boolean"
|
|
3856
|
+
},
|
|
3857
|
+
"quiet": {
|
|
3858
|
+
"char": "q",
|
|
3859
|
+
"description": "Suppress non-essential output",
|
|
3860
|
+
"name": "quiet",
|
|
3861
|
+
"allowNo": false,
|
|
3862
|
+
"type": "boolean"
|
|
3863
|
+
},
|
|
3864
|
+
"verbose": {
|
|
3865
|
+
"description": "Verbose diagnostics",
|
|
3866
|
+
"name": "verbose",
|
|
3867
|
+
"allowNo": false,
|
|
3868
|
+
"type": "boolean"
|
|
3869
|
+
},
|
|
3870
|
+
"no-input": {
|
|
3871
|
+
"description": "Never prompt; fail instead",
|
|
3872
|
+
"name": "no-input",
|
|
3873
|
+
"allowNo": false,
|
|
3874
|
+
"type": "boolean"
|
|
3875
|
+
},
|
|
3876
|
+
"no-color": {
|
|
3877
|
+
"description": "Disable colored output",
|
|
3878
|
+
"name": "no-color",
|
|
3879
|
+
"allowNo": false,
|
|
3880
|
+
"type": "boolean"
|
|
3881
|
+
},
|
|
3882
|
+
"agent": {
|
|
3883
|
+
"char": "a",
|
|
3884
|
+
"description": "Agent ID (or set CHATBASE_AGENT_ID)",
|
|
3885
|
+
"name": "agent",
|
|
3886
|
+
"hasDynamicHelp": false,
|
|
3887
|
+
"multiple": false,
|
|
3888
|
+
"type": "option"
|
|
3889
|
+
},
|
|
3890
|
+
"agent-name": {
|
|
3891
|
+
"description": "Agent display name (looked up to an ID)",
|
|
3892
|
+
"exclusive": [
|
|
3893
|
+
"agent"
|
|
3894
|
+
],
|
|
3895
|
+
"name": "agent-name",
|
|
3896
|
+
"hasDynamicHelp": false,
|
|
3897
|
+
"multiple": false,
|
|
3898
|
+
"type": "option"
|
|
3899
|
+
},
|
|
3900
|
+
"field": {
|
|
3901
|
+
"char": "f",
|
|
3902
|
+
"description": "Set a body field: -f key=value (repeatable)",
|
|
3903
|
+
"name": "field",
|
|
3904
|
+
"hasDynamicHelp": false,
|
|
3905
|
+
"multiple": true,
|
|
3906
|
+
"type": "option"
|
|
3907
|
+
},
|
|
3908
|
+
"data": {
|
|
3909
|
+
"description": "JSON body for text/qna/link sources (@file, @-, or inline)",
|
|
3910
|
+
"exclusive": [
|
|
3911
|
+
"file"
|
|
3912
|
+
],
|
|
3913
|
+
"name": "data",
|
|
3914
|
+
"hasDynamicHelp": false,
|
|
3915
|
+
"multiple": false,
|
|
3916
|
+
"type": "option"
|
|
3917
|
+
},
|
|
3918
|
+
"file": {
|
|
3919
|
+
"description": "Path to a file to upload as a replacement (mutually exclusive with --data)",
|
|
3920
|
+
"exclusive": [
|
|
3921
|
+
"data",
|
|
3922
|
+
"field"
|
|
3923
|
+
],
|
|
3924
|
+
"name": "file",
|
|
3925
|
+
"hasDynamicHelp": false,
|
|
3926
|
+
"multiple": false,
|
|
3927
|
+
"type": "option"
|
|
3928
|
+
}
|
|
3929
|
+
},
|
|
3930
|
+
"hasDynamicHelp": false,
|
|
3931
|
+
"hiddenAliases": [],
|
|
3932
|
+
"id": "sources:update",
|
|
3933
|
+
"pluginAlias": "chatbase",
|
|
3934
|
+
"pluginName": "chatbase",
|
|
3935
|
+
"pluginType": "core",
|
|
3936
|
+
"strict": true,
|
|
3937
|
+
"enableJsonFlag": false,
|
|
3938
|
+
"isESM": true,
|
|
3939
|
+
"relativePath": [
|
|
3940
|
+
"dist",
|
|
3941
|
+
"commands",
|
|
3942
|
+
"sources",
|
|
3943
|
+
"update.js"
|
|
3944
|
+
]
|
|
3945
|
+
}
|
|
3946
|
+
},
|
|
3947
|
+
"version": "0.1.0"
|
|
3948
|
+
}
|