@respan/cli 0.6.6 → 0.6.7
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/dist/hooks/gemini-cli.cjs +29 -3
- package/dist/hooks/gemini-cli.js +33 -4
- package/oclif.manifest.json +341 -341
- package/package.json +1 -1
|
@@ -812,10 +812,8 @@ function processChunk(hookData) {
|
|
|
812
812
|
debug(`Delayed send (version=${state.send_version}, delay=${SEND_DELAY}s), ${state.accumulated_text.length} chars`);
|
|
813
813
|
launchDelayedSend(sessionId, state.send_version, spans, creds.apiKey, creds.baseUrl);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function mainWorker(raw) {
|
|
816
816
|
try {
|
|
817
|
-
const raw = fs2.readFileSync(0, "utf-8");
|
|
818
|
-
process.stdout.write("{}\n");
|
|
819
817
|
if (!raw.trim()) return;
|
|
820
818
|
const hookData = JSON.parse(raw);
|
|
821
819
|
const event = String(hookData.hook_event_name ?? "");
|
|
@@ -839,4 +837,32 @@ function main() {
|
|
|
839
837
|
}
|
|
840
838
|
}
|
|
841
839
|
}
|
|
840
|
+
function main() {
|
|
841
|
+
if (process.env._RESPAN_GEM_WORKER === "1") {
|
|
842
|
+
const raw2 = process.env._RESPAN_GEM_DATA ?? "";
|
|
843
|
+
mainWorker(raw2);
|
|
844
|
+
return;
|
|
845
|
+
}
|
|
846
|
+
let raw = "";
|
|
847
|
+
try {
|
|
848
|
+
raw = fs2.readFileSync(0, "utf-8");
|
|
849
|
+
} catch {
|
|
850
|
+
}
|
|
851
|
+
process.stdout.write("{}\n");
|
|
852
|
+
if (!raw.trim()) {
|
|
853
|
+
process.exit(0);
|
|
854
|
+
}
|
|
855
|
+
try {
|
|
856
|
+
const scriptPath = __filename || process.argv[1];
|
|
857
|
+
const child = (0, import_node_child_process.execFile)("node", [scriptPath], {
|
|
858
|
+
env: { ...process.env, _RESPAN_GEM_WORKER: "1", _RESPAN_GEM_DATA: raw },
|
|
859
|
+
stdio: "ignore",
|
|
860
|
+
detached: true
|
|
861
|
+
});
|
|
862
|
+
child.unref();
|
|
863
|
+
} catch (e) {
|
|
864
|
+
mainWorker(raw);
|
|
865
|
+
}
|
|
866
|
+
process.exit(0);
|
|
867
|
+
}
|
|
842
868
|
main();
|
package/dist/hooks/gemini-cli.js
CHANGED
|
@@ -549,11 +549,8 @@ function processChunk(hookData) {
|
|
|
549
549
|
launchDelayedSend(sessionId, state.send_version, spans, creds.apiKey, creds.baseUrl);
|
|
550
550
|
}
|
|
551
551
|
// ── Main ──────────────────────────────────────────────────────────
|
|
552
|
-
function
|
|
552
|
+
function mainWorker(raw) {
|
|
553
553
|
try {
|
|
554
|
-
const raw = fs.readFileSync(0, 'utf-8');
|
|
555
|
-
// Respond to Gemini CLI immediately so it doesn't block
|
|
556
|
-
process.stdout.write('{}\n');
|
|
557
554
|
if (!raw.trim())
|
|
558
555
|
return;
|
|
559
556
|
const hookData = JSON.parse(raw);
|
|
@@ -583,4 +580,36 @@ function main() {
|
|
|
583
580
|
}
|
|
584
581
|
}
|
|
585
582
|
}
|
|
583
|
+
function main() {
|
|
584
|
+
// Worker mode: re-invoked as detached subprocess
|
|
585
|
+
if (process.env._RESPAN_GEM_WORKER === '1') {
|
|
586
|
+
const raw = process.env._RESPAN_GEM_DATA ?? '';
|
|
587
|
+
mainWorker(raw);
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
// Read stdin synchronously, respond immediately, fork worker, exit
|
|
591
|
+
let raw = '';
|
|
592
|
+
try {
|
|
593
|
+
raw = fs.readFileSync(0, 'utf-8');
|
|
594
|
+
}
|
|
595
|
+
catch { }
|
|
596
|
+
process.stdout.write('{}\n');
|
|
597
|
+
if (!raw.trim()) {
|
|
598
|
+
process.exit(0);
|
|
599
|
+
}
|
|
600
|
+
try {
|
|
601
|
+
const scriptPath = __filename || process.argv[1];
|
|
602
|
+
const child = execFile('node', [scriptPath], {
|
|
603
|
+
env: { ...process.env, _RESPAN_GEM_WORKER: '1', _RESPAN_GEM_DATA: raw },
|
|
604
|
+
stdio: 'ignore',
|
|
605
|
+
detached: true,
|
|
606
|
+
});
|
|
607
|
+
child.unref();
|
|
608
|
+
}
|
|
609
|
+
catch (e) {
|
|
610
|
+
// Fallback: run inline
|
|
611
|
+
mainWorker(raw);
|
|
612
|
+
}
|
|
613
|
+
process.exit(0);
|
|
614
|
+
}
|
|
586
615
|
main();
|
package/oclif.manifest.json
CHANGED
|
@@ -2113,16 +2113,10 @@
|
|
|
2113
2113
|
"opencode.js"
|
|
2114
2114
|
]
|
|
2115
2115
|
},
|
|
2116
|
-
"
|
|
2116
|
+
"logs:create": {
|
|
2117
2117
|
"aliases": [],
|
|
2118
|
-
"args": {
|
|
2119
|
-
|
|
2120
|
-
"description": "Prompt ID",
|
|
2121
|
-
"name": "prompt-id",
|
|
2122
|
-
"required": true
|
|
2123
|
-
}
|
|
2124
|
-
},
|
|
2125
|
-
"description": "Create a new version of a prompt",
|
|
2118
|
+
"args": {},
|
|
2119
|
+
"description": "Create a log span",
|
|
2126
2120
|
"flags": {
|
|
2127
2121
|
"api-key": {
|
|
2128
2122
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2158,31 +2152,31 @@
|
|
|
2158
2152
|
"allowNo": false,
|
|
2159
2153
|
"type": "boolean"
|
|
2160
2154
|
},
|
|
2161
|
-
"
|
|
2162
|
-
"description": "
|
|
2163
|
-
"name": "
|
|
2155
|
+
"input": {
|
|
2156
|
+
"description": "Input text or JSON",
|
|
2157
|
+
"name": "input",
|
|
2164
2158
|
"required": true,
|
|
2165
2159
|
"hasDynamicHelp": false,
|
|
2166
2160
|
"multiple": false,
|
|
2167
2161
|
"type": "option"
|
|
2168
2162
|
},
|
|
2169
|
-
"
|
|
2170
|
-
"description": "
|
|
2171
|
-
"name": "
|
|
2163
|
+
"output": {
|
|
2164
|
+
"description": "Output text or JSON",
|
|
2165
|
+
"name": "output",
|
|
2172
2166
|
"hasDynamicHelp": false,
|
|
2173
2167
|
"multiple": false,
|
|
2174
2168
|
"type": "option"
|
|
2175
2169
|
},
|
|
2176
|
-
"
|
|
2177
|
-
"description": "
|
|
2178
|
-
"name": "
|
|
2170
|
+
"model": {
|
|
2171
|
+
"description": "Model name",
|
|
2172
|
+
"name": "model",
|
|
2179
2173
|
"hasDynamicHelp": false,
|
|
2180
2174
|
"multiple": false,
|
|
2181
2175
|
"type": "option"
|
|
2182
2176
|
},
|
|
2183
|
-
"
|
|
2184
|
-
"description": "
|
|
2185
|
-
"name": "
|
|
2177
|
+
"metadata": {
|
|
2178
|
+
"description": "Metadata as JSON string",
|
|
2179
|
+
"name": "metadata",
|
|
2186
2180
|
"hasDynamicHelp": false,
|
|
2187
2181
|
"multiple": false,
|
|
2188
2182
|
"type": "option"
|
|
@@ -2190,7 +2184,7 @@
|
|
|
2190
2184
|
},
|
|
2191
2185
|
"hasDynamicHelp": false,
|
|
2192
2186
|
"hiddenAliases": [],
|
|
2193
|
-
"id": "
|
|
2187
|
+
"id": "logs:create",
|
|
2194
2188
|
"pluginAlias": "@respan/cli",
|
|
2195
2189
|
"pluginName": "@respan/cli",
|
|
2196
2190
|
"pluginType": "core",
|
|
@@ -2200,14 +2194,20 @@
|
|
|
2200
2194
|
"relativePath": [
|
|
2201
2195
|
"dist",
|
|
2202
2196
|
"commands",
|
|
2203
|
-
"
|
|
2204
|
-
"create
|
|
2197
|
+
"logs",
|
|
2198
|
+
"create.js"
|
|
2205
2199
|
]
|
|
2206
2200
|
},
|
|
2207
|
-
"
|
|
2201
|
+
"logs:get": {
|
|
2208
2202
|
"aliases": [],
|
|
2209
|
-
"args": {
|
|
2210
|
-
|
|
2203
|
+
"args": {
|
|
2204
|
+
"id": {
|
|
2205
|
+
"description": "Span ID",
|
|
2206
|
+
"name": "id",
|
|
2207
|
+
"required": true
|
|
2208
|
+
}
|
|
2209
|
+
},
|
|
2210
|
+
"description": "Get a specific log span",
|
|
2211
2211
|
"flags": {
|
|
2212
2212
|
"api-key": {
|
|
2213
2213
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2242,26 +2242,11 @@
|
|
|
2242
2242
|
"name": "verbose",
|
|
2243
2243
|
"allowNo": false,
|
|
2244
2244
|
"type": "boolean"
|
|
2245
|
-
},
|
|
2246
|
-
"name": {
|
|
2247
|
-
"description": "Prompt name",
|
|
2248
|
-
"name": "name",
|
|
2249
|
-
"required": true,
|
|
2250
|
-
"hasDynamicHelp": false,
|
|
2251
|
-
"multiple": false,
|
|
2252
|
-
"type": "option"
|
|
2253
|
-
},
|
|
2254
|
-
"description": {
|
|
2255
|
-
"description": "Prompt description",
|
|
2256
|
-
"name": "description",
|
|
2257
|
-
"hasDynamicHelp": false,
|
|
2258
|
-
"multiple": false,
|
|
2259
|
-
"type": "option"
|
|
2260
2245
|
}
|
|
2261
2246
|
},
|
|
2262
2247
|
"hasDynamicHelp": false,
|
|
2263
2248
|
"hiddenAliases": [],
|
|
2264
|
-
"id": "
|
|
2249
|
+
"id": "logs:get",
|
|
2265
2250
|
"pluginAlias": "@respan/cli",
|
|
2266
2251
|
"pluginName": "@respan/cli",
|
|
2267
2252
|
"pluginType": "core",
|
|
@@ -2271,20 +2256,14 @@
|
|
|
2271
2256
|
"relativePath": [
|
|
2272
2257
|
"dist",
|
|
2273
2258
|
"commands",
|
|
2274
|
-
"
|
|
2275
|
-
"
|
|
2259
|
+
"logs",
|
|
2260
|
+
"get.js"
|
|
2276
2261
|
]
|
|
2277
2262
|
},
|
|
2278
|
-
"
|
|
2263
|
+
"logs:list": {
|
|
2279
2264
|
"aliases": [],
|
|
2280
|
-
"args": {
|
|
2281
|
-
|
|
2282
|
-
"description": "Prompt ID",
|
|
2283
|
-
"name": "id",
|
|
2284
|
-
"required": true
|
|
2285
|
-
}
|
|
2286
|
-
},
|
|
2287
|
-
"description": "Get a specific prompt",
|
|
2265
|
+
"args": {},
|
|
2266
|
+
"description": "List and filter LLM request logs (spans).\n\nSupports pagination, sorting, time range, and server-side filtering.\n\nFILTER SYNTAX: field:operator:value\n\nOPERATORS:\n (empty) Exact match model::gpt-4\n not Not equal status_code:not:200\n gt Greater than cost:gt:0.01\n gte Greater than/equal latency:gte:1.0\n lt Less than cost:lt:0.5\n lte Less than/equal prompt_tokens:lte:100\n contains Contains substring error_message:contains:timeout\n icontains Case-insensitive model:icontains:gpt\n startswith Starts with model:startswith:gpt\n endswith Ends with model:endswith:mini\n in Value in list model:in:gpt-4,gpt-4o\n isnull Is null error_message:isnull:true\n iexact Case-insens. exact status:iexact:success\n\nFILTERABLE FIELDS (logs):\n model, status_code, status, cost, latency, prompt_tokens,\n completion_tokens, customer_identifier, custom_identifier,\n thread_identifier, trace_unique_id, span_name, span_workflow_name,\n environment, log_type, error_message, failed, provider_id,\n deployment_name, prompt_name, prompt_id, unique_id, stream,\n temperature, max_tokens, tokens_per_second, time_to_first_token,\n total_request_tokens, metadata__<key>, scores__<evaluator_id>\n\nEXAMPLES:\n --filter model::gpt-4o --filter cost:gt:0.01\n --filter status_code:not:200\n --filter metadata__env::production\n --filter model:in:gpt-4,gpt-4o",
|
|
2288
2267
|
"flags": {
|
|
2289
2268
|
"api-key": {
|
|
2290
2269
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2319,11 +2298,76 @@
|
|
|
2319
2298
|
"name": "verbose",
|
|
2320
2299
|
"allowNo": false,
|
|
2321
2300
|
"type": "boolean"
|
|
2301
|
+
},
|
|
2302
|
+
"limit": {
|
|
2303
|
+
"description": "Number of results per page (max 1000)",
|
|
2304
|
+
"name": "limit",
|
|
2305
|
+
"default": 50,
|
|
2306
|
+
"hasDynamicHelp": false,
|
|
2307
|
+
"multiple": false,
|
|
2308
|
+
"type": "option"
|
|
2309
|
+
},
|
|
2310
|
+
"page": {
|
|
2311
|
+
"description": "Page number",
|
|
2312
|
+
"name": "page",
|
|
2313
|
+
"default": 1,
|
|
2314
|
+
"hasDynamicHelp": false,
|
|
2315
|
+
"multiple": false,
|
|
2316
|
+
"type": "option"
|
|
2317
|
+
},
|
|
2318
|
+
"sort-by": {
|
|
2319
|
+
"description": "Sort field (prefix with - for descending, e.g. -cost, -latency)",
|
|
2320
|
+
"name": "sort-by",
|
|
2321
|
+
"hasDynamicHelp": false,
|
|
2322
|
+
"multiple": false,
|
|
2323
|
+
"type": "option"
|
|
2324
|
+
},
|
|
2325
|
+
"start-time": {
|
|
2326
|
+
"description": "Start time filter (ISO 8601)",
|
|
2327
|
+
"name": "start-time",
|
|
2328
|
+
"hasDynamicHelp": false,
|
|
2329
|
+
"multiple": false,
|
|
2330
|
+
"type": "option"
|
|
2331
|
+
},
|
|
2332
|
+
"end-time": {
|
|
2333
|
+
"description": "End time filter (ISO 8601)",
|
|
2334
|
+
"name": "end-time",
|
|
2335
|
+
"hasDynamicHelp": false,
|
|
2336
|
+
"multiple": false,
|
|
2337
|
+
"type": "option"
|
|
2338
|
+
},
|
|
2339
|
+
"filter": {
|
|
2340
|
+
"description": "Filter in field:operator:value format (repeatable)",
|
|
2341
|
+
"name": "filter",
|
|
2342
|
+
"hasDynamicHelp": false,
|
|
2343
|
+
"multiple": true,
|
|
2344
|
+
"type": "option"
|
|
2345
|
+
},
|
|
2346
|
+
"all-envs": {
|
|
2347
|
+
"description": "Include all environments (true/false)",
|
|
2348
|
+
"name": "all-envs",
|
|
2349
|
+
"hasDynamicHelp": false,
|
|
2350
|
+
"multiple": false,
|
|
2351
|
+
"type": "option"
|
|
2352
|
+
},
|
|
2353
|
+
"is-test": {
|
|
2354
|
+
"description": "Filter by test (true) or production (false) environment",
|
|
2355
|
+
"name": "is-test",
|
|
2356
|
+
"hasDynamicHelp": false,
|
|
2357
|
+
"multiple": false,
|
|
2358
|
+
"type": "option"
|
|
2359
|
+
},
|
|
2360
|
+
"include-fields": {
|
|
2361
|
+
"description": "Comma-separated fields to include in response",
|
|
2362
|
+
"name": "include-fields",
|
|
2363
|
+
"hasDynamicHelp": false,
|
|
2364
|
+
"multiple": false,
|
|
2365
|
+
"type": "option"
|
|
2322
2366
|
}
|
|
2323
2367
|
},
|
|
2324
2368
|
"hasDynamicHelp": false,
|
|
2325
2369
|
"hiddenAliases": [],
|
|
2326
|
-
"id": "
|
|
2370
|
+
"id": "logs:list",
|
|
2327
2371
|
"pluginAlias": "@respan/cli",
|
|
2328
2372
|
"pluginName": "@respan/cli",
|
|
2329
2373
|
"pluginType": "core",
|
|
@@ -2333,14 +2377,14 @@
|
|
|
2333
2377
|
"relativePath": [
|
|
2334
2378
|
"dist",
|
|
2335
2379
|
"commands",
|
|
2336
|
-
"
|
|
2337
|
-
"
|
|
2380
|
+
"logs",
|
|
2381
|
+
"list.js"
|
|
2338
2382
|
]
|
|
2339
2383
|
},
|
|
2340
|
-
"
|
|
2384
|
+
"logs:summary": {
|
|
2341
2385
|
"aliases": [],
|
|
2342
2386
|
"args": {},
|
|
2343
|
-
"description": "
|
|
2387
|
+
"description": "Get aggregated summary statistics for log spans in a time range.\n\nReturns total cost, total tokens, request count, and score summaries.\n\nFILTER SYNTAX: field:operator:value\n\nOPERATORS:\n (empty) Exact match model::gpt-4\n not Not equal status_code:not:200\n gt Greater than cost:gt:0.01\n gte Greater than/equal latency:gte:1.0\n lt Less than cost:lt:0.5\n lte Less than/equal prompt_tokens:lte:100\n contains Contains substring error_message:contains:timeout\n icontains Case-insensitive model:icontains:gpt\n startswith Starts with model:startswith:gpt\n endswith Ends with model:endswith:mini\n in Value in list model:in:gpt-4,gpt-4o\n isnull Is null error_message:isnull:true\n iexact Case-insens. exact status:iexact:success\n\nFILTERABLE FIELDS (logs):\n model, status_code, status, cost, latency, prompt_tokens,\n completion_tokens, customer_identifier, custom_identifier,\n thread_identifier, trace_unique_id, span_name, span_workflow_name,\n environment, log_type, error_message, failed, provider_id,\n deployment_name, prompt_name, prompt_id, unique_id, stream,\n temperature, max_tokens, tokens_per_second, time_to_first_token,\n total_request_tokens, metadata__<key>, scores__<evaluator_id>\n\nEXAMPLES:\n --filter model::gpt-4o --filter cost:gt:0.01\n --filter status_code:not:200\n --filter metadata__env::production\n --filter model:in:gpt-4,gpt-4o",
|
|
2344
2388
|
"flags": {
|
|
2345
2389
|
"api-key": {
|
|
2346
2390
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2376,10 +2420,39 @@
|
|
|
2376
2420
|
"allowNo": false,
|
|
2377
2421
|
"type": "boolean"
|
|
2378
2422
|
},
|
|
2379
|
-
"
|
|
2380
|
-
"description": "
|
|
2381
|
-
"name": "
|
|
2382
|
-
"
|
|
2423
|
+
"start-time": {
|
|
2424
|
+
"description": "Start time (ISO 8601)",
|
|
2425
|
+
"name": "start-time",
|
|
2426
|
+
"required": true,
|
|
2427
|
+
"hasDynamicHelp": false,
|
|
2428
|
+
"multiple": false,
|
|
2429
|
+
"type": "option"
|
|
2430
|
+
},
|
|
2431
|
+
"end-time": {
|
|
2432
|
+
"description": "End time (ISO 8601)",
|
|
2433
|
+
"name": "end-time",
|
|
2434
|
+
"required": true,
|
|
2435
|
+
"hasDynamicHelp": false,
|
|
2436
|
+
"multiple": false,
|
|
2437
|
+
"type": "option"
|
|
2438
|
+
},
|
|
2439
|
+
"filter": {
|
|
2440
|
+
"description": "Filter in field:operator:value format (repeatable)",
|
|
2441
|
+
"name": "filter",
|
|
2442
|
+
"hasDynamicHelp": false,
|
|
2443
|
+
"multiple": true,
|
|
2444
|
+
"type": "option"
|
|
2445
|
+
},
|
|
2446
|
+
"all-envs": {
|
|
2447
|
+
"description": "Include all environments (true/false)",
|
|
2448
|
+
"name": "all-envs",
|
|
2449
|
+
"hasDynamicHelp": false,
|
|
2450
|
+
"multiple": false,
|
|
2451
|
+
"type": "option"
|
|
2452
|
+
},
|
|
2453
|
+
"is-test": {
|
|
2454
|
+
"description": "Filter by test (true) or production (false) environment",
|
|
2455
|
+
"name": "is-test",
|
|
2383
2456
|
"hasDynamicHelp": false,
|
|
2384
2457
|
"multiple": false,
|
|
2385
2458
|
"type": "option"
|
|
@@ -2387,7 +2460,7 @@
|
|
|
2387
2460
|
},
|
|
2388
2461
|
"hasDynamicHelp": false,
|
|
2389
2462
|
"hiddenAliases": [],
|
|
2390
|
-
"id": "
|
|
2463
|
+
"id": "logs:summary",
|
|
2391
2464
|
"pluginAlias": "@respan/cli",
|
|
2392
2465
|
"pluginName": "@respan/cli",
|
|
2393
2466
|
"pluginType": "core",
|
|
@@ -2397,20 +2470,20 @@
|
|
|
2397
2470
|
"relativePath": [
|
|
2398
2471
|
"dist",
|
|
2399
2472
|
"commands",
|
|
2400
|
-
"
|
|
2401
|
-
"
|
|
2473
|
+
"logs",
|
|
2474
|
+
"summary.js"
|
|
2402
2475
|
]
|
|
2403
2476
|
},
|
|
2404
|
-
"prompts:
|
|
2477
|
+
"prompts:create-version": {
|
|
2405
2478
|
"aliases": [],
|
|
2406
2479
|
"args": {
|
|
2407
|
-
"id": {
|
|
2480
|
+
"prompt-id": {
|
|
2408
2481
|
"description": "Prompt ID",
|
|
2409
|
-
"name": "id",
|
|
2482
|
+
"name": "prompt-id",
|
|
2410
2483
|
"required": true
|
|
2411
2484
|
}
|
|
2412
2485
|
},
|
|
2413
|
-
"description": "
|
|
2486
|
+
"description": "Create a new version of a prompt",
|
|
2414
2487
|
"flags": {
|
|
2415
2488
|
"api-key": {
|
|
2416
2489
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2446,16 +2519,31 @@
|
|
|
2446
2519
|
"allowNo": false,
|
|
2447
2520
|
"type": "boolean"
|
|
2448
2521
|
},
|
|
2449
|
-
"
|
|
2450
|
-
"description": "
|
|
2451
|
-
"name": "
|
|
2522
|
+
"messages": {
|
|
2523
|
+
"description": "Messages as JSON array string",
|
|
2524
|
+
"name": "messages",
|
|
2525
|
+
"required": true,
|
|
2452
2526
|
"hasDynamicHelp": false,
|
|
2453
2527
|
"multiple": false,
|
|
2454
2528
|
"type": "option"
|
|
2455
2529
|
},
|
|
2456
|
-
"
|
|
2457
|
-
"description": "
|
|
2458
|
-
"name": "
|
|
2530
|
+
"model": {
|
|
2531
|
+
"description": "Model name",
|
|
2532
|
+
"name": "model",
|
|
2533
|
+
"hasDynamicHelp": false,
|
|
2534
|
+
"multiple": false,
|
|
2535
|
+
"type": "option"
|
|
2536
|
+
},
|
|
2537
|
+
"temperature": {
|
|
2538
|
+
"description": "Temperature value",
|
|
2539
|
+
"name": "temperature",
|
|
2540
|
+
"hasDynamicHelp": false,
|
|
2541
|
+
"multiple": false,
|
|
2542
|
+
"type": "option"
|
|
2543
|
+
},
|
|
2544
|
+
"max-tokens": {
|
|
2545
|
+
"description": "Max tokens",
|
|
2546
|
+
"name": "max-tokens",
|
|
2459
2547
|
"hasDynamicHelp": false,
|
|
2460
2548
|
"multiple": false,
|
|
2461
2549
|
"type": "option"
|
|
@@ -2463,7 +2551,7 @@
|
|
|
2463
2551
|
},
|
|
2464
2552
|
"hasDynamicHelp": false,
|
|
2465
2553
|
"hiddenAliases": [],
|
|
2466
|
-
"id": "prompts:
|
|
2554
|
+
"id": "prompts:create-version",
|
|
2467
2555
|
"pluginAlias": "@respan/cli",
|
|
2468
2556
|
"pluginName": "@respan/cli",
|
|
2469
2557
|
"pluginType": "core",
|
|
@@ -2474,19 +2562,13 @@
|
|
|
2474
2562
|
"dist",
|
|
2475
2563
|
"commands",
|
|
2476
2564
|
"prompts",
|
|
2477
|
-
"
|
|
2565
|
+
"create-version.js"
|
|
2478
2566
|
]
|
|
2479
2567
|
},
|
|
2480
|
-
"prompts:
|
|
2568
|
+
"prompts:create": {
|
|
2481
2569
|
"aliases": [],
|
|
2482
|
-
"args": {
|
|
2483
|
-
|
|
2484
|
-
"description": "Prompt ID",
|
|
2485
|
-
"name": "prompt-id",
|
|
2486
|
-
"required": true
|
|
2487
|
-
}
|
|
2488
|
-
},
|
|
2489
|
-
"description": "List versions of a prompt",
|
|
2570
|
+
"args": {},
|
|
2571
|
+
"description": "Create a new prompt",
|
|
2490
2572
|
"flags": {
|
|
2491
2573
|
"api-key": {
|
|
2492
2574
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2521,11 +2603,26 @@
|
|
|
2521
2603
|
"name": "verbose",
|
|
2522
2604
|
"allowNo": false,
|
|
2523
2605
|
"type": "boolean"
|
|
2606
|
+
},
|
|
2607
|
+
"name": {
|
|
2608
|
+
"description": "Prompt name",
|
|
2609
|
+
"name": "name",
|
|
2610
|
+
"required": true,
|
|
2611
|
+
"hasDynamicHelp": false,
|
|
2612
|
+
"multiple": false,
|
|
2613
|
+
"type": "option"
|
|
2614
|
+
},
|
|
2615
|
+
"description": {
|
|
2616
|
+
"description": "Prompt description",
|
|
2617
|
+
"name": "description",
|
|
2618
|
+
"hasDynamicHelp": false,
|
|
2619
|
+
"multiple": false,
|
|
2620
|
+
"type": "option"
|
|
2524
2621
|
}
|
|
2525
2622
|
},
|
|
2526
2623
|
"hasDynamicHelp": false,
|
|
2527
2624
|
"hiddenAliases": [],
|
|
2528
|
-
"id": "prompts:
|
|
2625
|
+
"id": "prompts:create",
|
|
2529
2626
|
"pluginAlias": "@respan/cli",
|
|
2530
2627
|
"pluginName": "@respan/cli",
|
|
2531
2628
|
"pluginType": "core",
|
|
@@ -2536,19 +2633,19 @@
|
|
|
2536
2633
|
"dist",
|
|
2537
2634
|
"commands",
|
|
2538
2635
|
"prompts",
|
|
2539
|
-
"
|
|
2636
|
+
"create.js"
|
|
2540
2637
|
]
|
|
2541
2638
|
},
|
|
2542
|
-
"
|
|
2639
|
+
"prompts:get": {
|
|
2543
2640
|
"aliases": [],
|
|
2544
2641
|
"args": {
|
|
2545
2642
|
"id": {
|
|
2546
|
-
"description": "
|
|
2643
|
+
"description": "Prompt ID",
|
|
2547
2644
|
"name": "id",
|
|
2548
2645
|
"required": true
|
|
2549
2646
|
}
|
|
2550
2647
|
},
|
|
2551
|
-
"description": "Get a specific
|
|
2648
|
+
"description": "Get a specific prompt",
|
|
2552
2649
|
"flags": {
|
|
2553
2650
|
"api-key": {
|
|
2554
2651
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2587,7 +2684,7 @@
|
|
|
2587
2684
|
},
|
|
2588
2685
|
"hasDynamicHelp": false,
|
|
2589
2686
|
"hiddenAliases": [],
|
|
2590
|
-
"id": "
|
|
2687
|
+
"id": "prompts:get",
|
|
2591
2688
|
"pluginAlias": "@respan/cli",
|
|
2592
2689
|
"pluginName": "@respan/cli",
|
|
2593
2690
|
"pluginType": "core",
|
|
@@ -2597,14 +2694,14 @@
|
|
|
2597
2694
|
"relativePath": [
|
|
2598
2695
|
"dist",
|
|
2599
2696
|
"commands",
|
|
2600
|
-
"
|
|
2697
|
+
"prompts",
|
|
2601
2698
|
"get.js"
|
|
2602
2699
|
]
|
|
2603
2700
|
},
|
|
2604
|
-
"
|
|
2701
|
+
"prompts:list": {
|
|
2605
2702
|
"aliases": [],
|
|
2606
2703
|
"args": {},
|
|
2607
|
-
"description": "List
|
|
2704
|
+
"description": "List prompts",
|
|
2608
2705
|
"flags": {
|
|
2609
2706
|
"api-key": {
|
|
2610
2707
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2643,59 +2740,15 @@
|
|
|
2643
2740
|
"limit": {
|
|
2644
2741
|
"description": "Number of results per page",
|
|
2645
2742
|
"name": "limit",
|
|
2646
|
-
"default":
|
|
2647
|
-
"hasDynamicHelp": false,
|
|
2648
|
-
"multiple": false,
|
|
2649
|
-
"type": "option"
|
|
2650
|
-
},
|
|
2651
|
-
"page": {
|
|
2652
|
-
"description": "Page number",
|
|
2653
|
-
"name": "page",
|
|
2654
|
-
"default": 1,
|
|
2655
|
-
"hasDynamicHelp": false,
|
|
2656
|
-
"multiple": false,
|
|
2657
|
-
"type": "option"
|
|
2658
|
-
},
|
|
2659
|
-
"sort-by": {
|
|
2660
|
-
"description": "Sort field (prefix with - for descending)",
|
|
2661
|
-
"name": "sort-by",
|
|
2662
|
-
"default": "-timestamp",
|
|
2663
|
-
"hasDynamicHelp": false,
|
|
2664
|
-
"multiple": false,
|
|
2665
|
-
"type": "option"
|
|
2666
|
-
},
|
|
2667
|
-
"start-time": {
|
|
2668
|
-
"description": "Start time filter (ISO 8601)",
|
|
2669
|
-
"name": "start-time",
|
|
2670
|
-
"hasDynamicHelp": false,
|
|
2671
|
-
"multiple": false,
|
|
2672
|
-
"type": "option"
|
|
2673
|
-
},
|
|
2674
|
-
"end-time": {
|
|
2675
|
-
"description": "End time filter (ISO 8601)",
|
|
2676
|
-
"name": "end-time",
|
|
2677
|
-
"hasDynamicHelp": false,
|
|
2678
|
-
"multiple": false,
|
|
2679
|
-
"type": "option"
|
|
2680
|
-
},
|
|
2681
|
-
"environment": {
|
|
2682
|
-
"description": "Environment filter",
|
|
2683
|
-
"name": "environment",
|
|
2743
|
+
"default": 50,
|
|
2684
2744
|
"hasDynamicHelp": false,
|
|
2685
2745
|
"multiple": false,
|
|
2686
2746
|
"type": "option"
|
|
2687
|
-
},
|
|
2688
|
-
"filter": {
|
|
2689
|
-
"description": "Filter in field:operator:value format (repeatable)",
|
|
2690
|
-
"name": "filter",
|
|
2691
|
-
"hasDynamicHelp": false,
|
|
2692
|
-
"multiple": true,
|
|
2693
|
-
"type": "option"
|
|
2694
2747
|
}
|
|
2695
2748
|
},
|
|
2696
2749
|
"hasDynamicHelp": false,
|
|
2697
2750
|
"hiddenAliases": [],
|
|
2698
|
-
"id": "
|
|
2751
|
+
"id": "prompts:list",
|
|
2699
2752
|
"pluginAlias": "@respan/cli",
|
|
2700
2753
|
"pluginName": "@respan/cli",
|
|
2701
2754
|
"pluginType": "core",
|
|
@@ -2705,14 +2758,20 @@
|
|
|
2705
2758
|
"relativePath": [
|
|
2706
2759
|
"dist",
|
|
2707
2760
|
"commands",
|
|
2708
|
-
"
|
|
2761
|
+
"prompts",
|
|
2709
2762
|
"list.js"
|
|
2710
2763
|
]
|
|
2711
2764
|
},
|
|
2712
|
-
"
|
|
2765
|
+
"prompts:update": {
|
|
2713
2766
|
"aliases": [],
|
|
2714
|
-
"args": {
|
|
2715
|
-
|
|
2767
|
+
"args": {
|
|
2768
|
+
"id": {
|
|
2769
|
+
"description": "Prompt ID",
|
|
2770
|
+
"name": "id",
|
|
2771
|
+
"required": true
|
|
2772
|
+
}
|
|
2773
|
+
},
|
|
2774
|
+
"description": "Update a prompt",
|
|
2716
2775
|
"flags": {
|
|
2717
2776
|
"api-key": {
|
|
2718
2777
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2748,18 +2807,16 @@
|
|
|
2748
2807
|
"allowNo": false,
|
|
2749
2808
|
"type": "boolean"
|
|
2750
2809
|
},
|
|
2751
|
-
"
|
|
2752
|
-
"description": "
|
|
2753
|
-
"name": "
|
|
2754
|
-
"required": true,
|
|
2810
|
+
"name": {
|
|
2811
|
+
"description": "Prompt name",
|
|
2812
|
+
"name": "name",
|
|
2755
2813
|
"hasDynamicHelp": false,
|
|
2756
2814
|
"multiple": false,
|
|
2757
2815
|
"type": "option"
|
|
2758
2816
|
},
|
|
2759
|
-
"
|
|
2760
|
-
"description": "
|
|
2761
|
-
"name": "
|
|
2762
|
-
"required": true,
|
|
2817
|
+
"description": {
|
|
2818
|
+
"description": "Prompt description",
|
|
2819
|
+
"name": "description",
|
|
2763
2820
|
"hasDynamicHelp": false,
|
|
2764
2821
|
"multiple": false,
|
|
2765
2822
|
"type": "option"
|
|
@@ -2767,7 +2824,7 @@
|
|
|
2767
2824
|
},
|
|
2768
2825
|
"hasDynamicHelp": false,
|
|
2769
2826
|
"hiddenAliases": [],
|
|
2770
|
-
"id": "
|
|
2827
|
+
"id": "prompts:update",
|
|
2771
2828
|
"pluginAlias": "@respan/cli",
|
|
2772
2829
|
"pluginName": "@respan/cli",
|
|
2773
2830
|
"pluginType": "core",
|
|
@@ -2777,14 +2834,20 @@
|
|
|
2777
2834
|
"relativePath": [
|
|
2778
2835
|
"dist",
|
|
2779
2836
|
"commands",
|
|
2780
|
-
"
|
|
2781
|
-
"
|
|
2837
|
+
"prompts",
|
|
2838
|
+
"update.js"
|
|
2782
2839
|
]
|
|
2783
2840
|
},
|
|
2784
|
-
"
|
|
2841
|
+
"prompts:versions": {
|
|
2785
2842
|
"aliases": [],
|
|
2786
|
-
"args": {
|
|
2787
|
-
|
|
2843
|
+
"args": {
|
|
2844
|
+
"prompt-id": {
|
|
2845
|
+
"description": "Prompt ID",
|
|
2846
|
+
"name": "prompt-id",
|
|
2847
|
+
"required": true
|
|
2848
|
+
}
|
|
2849
|
+
},
|
|
2850
|
+
"description": "List versions of a prompt",
|
|
2788
2851
|
"flags": {
|
|
2789
2852
|
"api-key": {
|
|
2790
2853
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2801,58 +2864,29 @@
|
|
|
2801
2864
|
"multiple": false,
|
|
2802
2865
|
"type": "option"
|
|
2803
2866
|
},
|
|
2804
|
-
"json": {
|
|
2805
|
-
"description": "Output as JSON",
|
|
2806
|
-
"name": "json",
|
|
2807
|
-
"allowNo": false,
|
|
2808
|
-
"type": "boolean"
|
|
2809
|
-
},
|
|
2810
|
-
"csv": {
|
|
2811
|
-
"description": "Output as CSV",
|
|
2812
|
-
"name": "csv",
|
|
2813
|
-
"allowNo": false,
|
|
2814
|
-
"type": "boolean"
|
|
2815
|
-
},
|
|
2816
|
-
"verbose": {
|
|
2817
|
-
"char": "v",
|
|
2818
|
-
"description": "Show verbose output",
|
|
2819
|
-
"name": "verbose",
|
|
2820
|
-
"allowNo": false,
|
|
2821
|
-
"type": "boolean"
|
|
2822
|
-
},
|
|
2823
|
-
"identifier": {
|
|
2824
|
-
"description": "Customer identifier",
|
|
2825
|
-
"name": "identifier",
|
|
2826
|
-
"required": true,
|
|
2827
|
-
"hasDynamicHelp": false,
|
|
2828
|
-
"multiple": false,
|
|
2829
|
-
"type": "option"
|
|
2830
|
-
},
|
|
2831
|
-
"name": {
|
|
2832
|
-
"description": "Customer name",
|
|
2833
|
-
"name": "name",
|
|
2834
|
-
"hasDynamicHelp": false,
|
|
2835
|
-
"multiple": false,
|
|
2836
|
-
"type": "option"
|
|
2837
|
-
},
|
|
2838
|
-
"email": {
|
|
2839
|
-
"description": "Customer email",
|
|
2840
|
-
"name": "email",
|
|
2841
|
-
"hasDynamicHelp": false,
|
|
2842
|
-
"multiple": false,
|
|
2843
|
-
"type": "option"
|
|
2844
|
-
},
|
|
2845
|
-
"metadata": {
|
|
2846
|
-
"description": "Metadata as JSON string",
|
|
2847
|
-
"name": "metadata",
|
|
2848
|
-
"hasDynamicHelp": false,
|
|
2849
|
-
"multiple": false,
|
|
2850
|
-
"type": "option"
|
|
2867
|
+
"json": {
|
|
2868
|
+
"description": "Output as JSON",
|
|
2869
|
+
"name": "json",
|
|
2870
|
+
"allowNo": false,
|
|
2871
|
+
"type": "boolean"
|
|
2872
|
+
},
|
|
2873
|
+
"csv": {
|
|
2874
|
+
"description": "Output as CSV",
|
|
2875
|
+
"name": "csv",
|
|
2876
|
+
"allowNo": false,
|
|
2877
|
+
"type": "boolean"
|
|
2878
|
+
},
|
|
2879
|
+
"verbose": {
|
|
2880
|
+
"char": "v",
|
|
2881
|
+
"description": "Show verbose output",
|
|
2882
|
+
"name": "verbose",
|
|
2883
|
+
"allowNo": false,
|
|
2884
|
+
"type": "boolean"
|
|
2851
2885
|
}
|
|
2852
2886
|
},
|
|
2853
2887
|
"hasDynamicHelp": false,
|
|
2854
2888
|
"hiddenAliases": [],
|
|
2855
|
-
"id": "
|
|
2889
|
+
"id": "prompts:versions",
|
|
2856
2890
|
"pluginAlias": "@respan/cli",
|
|
2857
2891
|
"pluginName": "@respan/cli",
|
|
2858
2892
|
"pluginType": "core",
|
|
@@ -2862,20 +2896,20 @@
|
|
|
2862
2896
|
"relativePath": [
|
|
2863
2897
|
"dist",
|
|
2864
2898
|
"commands",
|
|
2865
|
-
"
|
|
2866
|
-
"
|
|
2899
|
+
"prompts",
|
|
2900
|
+
"versions.js"
|
|
2867
2901
|
]
|
|
2868
2902
|
},
|
|
2869
|
-
"
|
|
2903
|
+
"traces:get": {
|
|
2870
2904
|
"aliases": [],
|
|
2871
2905
|
"args": {
|
|
2872
2906
|
"id": {
|
|
2873
|
-
"description": "
|
|
2907
|
+
"description": "Trace ID",
|
|
2874
2908
|
"name": "id",
|
|
2875
2909
|
"required": true
|
|
2876
2910
|
}
|
|
2877
2911
|
},
|
|
2878
|
-
"description": "Get a specific
|
|
2912
|
+
"description": "Get a specific trace",
|
|
2879
2913
|
"flags": {
|
|
2880
2914
|
"api-key": {
|
|
2881
2915
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2914,7 +2948,7 @@
|
|
|
2914
2948
|
},
|
|
2915
2949
|
"hasDynamicHelp": false,
|
|
2916
2950
|
"hiddenAliases": [],
|
|
2917
|
-
"id": "
|
|
2951
|
+
"id": "traces:get",
|
|
2918
2952
|
"pluginAlias": "@respan/cli",
|
|
2919
2953
|
"pluginName": "@respan/cli",
|
|
2920
2954
|
"pluginType": "core",
|
|
@@ -2924,14 +2958,14 @@
|
|
|
2924
2958
|
"relativePath": [
|
|
2925
2959
|
"dist",
|
|
2926
2960
|
"commands",
|
|
2927
|
-
"
|
|
2961
|
+
"traces",
|
|
2928
2962
|
"get.js"
|
|
2929
2963
|
]
|
|
2930
2964
|
},
|
|
2931
|
-
"
|
|
2965
|
+
"traces:list": {
|
|
2932
2966
|
"aliases": [],
|
|
2933
2967
|
"args": {},
|
|
2934
|
-
"description": "List
|
|
2968
|
+
"description": "List and filter traces.\n\nA trace represents a complete workflow execution containing multiple spans.\n\nFILTER SYNTAX: field:operator:value\n\nOPERATORS:\n (empty) Exact match model::gpt-4\n not Not equal status_code:not:200\n gt Greater than cost:gt:0.01\n gte Greater than/equal latency:gte:1.0\n lt Less than cost:lt:0.5\n lte Less than/equal prompt_tokens:lte:100\n contains Contains substring error_message:contains:timeout\n icontains Case-insensitive model:icontains:gpt\n startswith Starts with model:startswith:gpt\n endswith Ends with model:endswith:mini\n in Value in list model:in:gpt-4,gpt-4o\n isnull Is null error_message:isnull:true\n iexact Case-insens. exact status:iexact:success\n\nFILTERABLE FIELDS (traces):\n trace_unique_id, customer_identifier, environment, span_count,\n llm_call_count, error_count, total_cost, total_tokens,\n total_prompt_tokens, total_completion_tokens, duration,\n span_workflow_name, metadata__<key>\n\nEXAMPLES:\n --filter model::gpt-4o --filter cost:gt:0.01\n --filter status_code:not:200\n --filter metadata__env::production\n --filter model:in:gpt-4,gpt-4o",
|
|
2935
2969
|
"flags": {
|
|
2936
2970
|
"api-key": {
|
|
2937
2971
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2970,7 +3004,7 @@
|
|
|
2970
3004
|
"limit": {
|
|
2971
3005
|
"description": "Number of results per page",
|
|
2972
3006
|
"name": "limit",
|
|
2973
|
-
"default":
|
|
3007
|
+
"default": 10,
|
|
2974
3008
|
"hasDynamicHelp": false,
|
|
2975
3009
|
"multiple": false,
|
|
2976
3010
|
"type": "option"
|
|
@@ -2984,8 +3018,23 @@
|
|
|
2984
3018
|
"type": "option"
|
|
2985
3019
|
},
|
|
2986
3020
|
"sort-by": {
|
|
2987
|
-
"description": "Sort field",
|
|
3021
|
+
"description": "Sort field (prefix with - for descending)",
|
|
2988
3022
|
"name": "sort-by",
|
|
3023
|
+
"default": "-timestamp",
|
|
3024
|
+
"hasDynamicHelp": false,
|
|
3025
|
+
"multiple": false,
|
|
3026
|
+
"type": "option"
|
|
3027
|
+
},
|
|
3028
|
+
"start-time": {
|
|
3029
|
+
"description": "Start time filter (ISO 8601)",
|
|
3030
|
+
"name": "start-time",
|
|
3031
|
+
"hasDynamicHelp": false,
|
|
3032
|
+
"multiple": false,
|
|
3033
|
+
"type": "option"
|
|
3034
|
+
},
|
|
3035
|
+
"end-time": {
|
|
3036
|
+
"description": "End time filter (ISO 8601)",
|
|
3037
|
+
"name": "end-time",
|
|
2989
3038
|
"hasDynamicHelp": false,
|
|
2990
3039
|
"multiple": false,
|
|
2991
3040
|
"type": "option"
|
|
@@ -2996,11 +3045,18 @@
|
|
|
2996
3045
|
"hasDynamicHelp": false,
|
|
2997
3046
|
"multiple": false,
|
|
2998
3047
|
"type": "option"
|
|
3048
|
+
},
|
|
3049
|
+
"filter": {
|
|
3050
|
+
"description": "Filter in field:operator:value format (repeatable)",
|
|
3051
|
+
"name": "filter",
|
|
3052
|
+
"hasDynamicHelp": false,
|
|
3053
|
+
"multiple": true,
|
|
3054
|
+
"type": "option"
|
|
2999
3055
|
}
|
|
3000
3056
|
},
|
|
3001
3057
|
"hasDynamicHelp": false,
|
|
3002
3058
|
"hiddenAliases": [],
|
|
3003
|
-
"id": "
|
|
3059
|
+
"id": "traces:list",
|
|
3004
3060
|
"pluginAlias": "@respan/cli",
|
|
3005
3061
|
"pluginName": "@respan/cli",
|
|
3006
3062
|
"pluginType": "core",
|
|
@@ -3010,20 +3066,14 @@
|
|
|
3010
3066
|
"relativePath": [
|
|
3011
3067
|
"dist",
|
|
3012
3068
|
"commands",
|
|
3013
|
-
"
|
|
3069
|
+
"traces",
|
|
3014
3070
|
"list.js"
|
|
3015
3071
|
]
|
|
3016
3072
|
},
|
|
3017
|
-
"
|
|
3073
|
+
"traces:summary": {
|
|
3018
3074
|
"aliases": [],
|
|
3019
|
-
"args": {
|
|
3020
|
-
|
|
3021
|
-
"description": "Customer identifier",
|
|
3022
|
-
"name": "id",
|
|
3023
|
-
"required": true
|
|
3024
|
-
}
|
|
3025
|
-
},
|
|
3026
|
-
"description": "Update a user (customer)",
|
|
3075
|
+
"args": {},
|
|
3076
|
+
"description": "Get a summary of traces for a time range",
|
|
3027
3077
|
"flags": {
|
|
3028
3078
|
"api-key": {
|
|
3029
3079
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -3059,23 +3109,18 @@
|
|
|
3059
3109
|
"allowNo": false,
|
|
3060
3110
|
"type": "boolean"
|
|
3061
3111
|
},
|
|
3062
|
-
"
|
|
3063
|
-
"description": "
|
|
3064
|
-
"name": "
|
|
3065
|
-
"
|
|
3066
|
-
"multiple": false,
|
|
3067
|
-
"type": "option"
|
|
3068
|
-
},
|
|
3069
|
-
"email": {
|
|
3070
|
-
"description": "Customer email",
|
|
3071
|
-
"name": "email",
|
|
3112
|
+
"start-time": {
|
|
3113
|
+
"description": "Start time (ISO 8601)",
|
|
3114
|
+
"name": "start-time",
|
|
3115
|
+
"required": true,
|
|
3072
3116
|
"hasDynamicHelp": false,
|
|
3073
3117
|
"multiple": false,
|
|
3074
3118
|
"type": "option"
|
|
3075
3119
|
},
|
|
3076
|
-
"
|
|
3077
|
-
"description": "
|
|
3078
|
-
"name": "
|
|
3120
|
+
"end-time": {
|
|
3121
|
+
"description": "End time (ISO 8601)",
|
|
3122
|
+
"name": "end-time",
|
|
3123
|
+
"required": true,
|
|
3079
3124
|
"hasDynamicHelp": false,
|
|
3080
3125
|
"multiple": false,
|
|
3081
3126
|
"type": "option"
|
|
@@ -3083,7 +3128,7 @@
|
|
|
3083
3128
|
},
|
|
3084
3129
|
"hasDynamicHelp": false,
|
|
3085
3130
|
"hiddenAliases": [],
|
|
3086
|
-
"id": "
|
|
3131
|
+
"id": "traces:summary",
|
|
3087
3132
|
"pluginAlias": "@respan/cli",
|
|
3088
3133
|
"pluginName": "@respan/cli",
|
|
3089
3134
|
"pluginType": "core",
|
|
@@ -3093,14 +3138,14 @@
|
|
|
3093
3138
|
"relativePath": [
|
|
3094
3139
|
"dist",
|
|
3095
3140
|
"commands",
|
|
3096
|
-
"
|
|
3097
|
-
"
|
|
3141
|
+
"traces",
|
|
3142
|
+
"summary.js"
|
|
3098
3143
|
]
|
|
3099
3144
|
},
|
|
3100
|
-
"
|
|
3145
|
+
"users:create": {
|
|
3101
3146
|
"aliases": [],
|
|
3102
3147
|
"args": {},
|
|
3103
|
-
"description": "Create a
|
|
3148
|
+
"description": "Create a new user (customer)",
|
|
3104
3149
|
"flags": {
|
|
3105
3150
|
"api-key": {
|
|
3106
3151
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -3136,24 +3181,24 @@
|
|
|
3136
3181
|
"allowNo": false,
|
|
3137
3182
|
"type": "boolean"
|
|
3138
3183
|
},
|
|
3139
|
-
"
|
|
3140
|
-
"description": "
|
|
3141
|
-
"name": "
|
|
3184
|
+
"identifier": {
|
|
3185
|
+
"description": "Customer identifier",
|
|
3186
|
+
"name": "identifier",
|
|
3142
3187
|
"required": true,
|
|
3143
3188
|
"hasDynamicHelp": false,
|
|
3144
3189
|
"multiple": false,
|
|
3145
3190
|
"type": "option"
|
|
3146
3191
|
},
|
|
3147
|
-
"
|
|
3148
|
-
"description": "
|
|
3149
|
-
"name": "
|
|
3192
|
+
"name": {
|
|
3193
|
+
"description": "Customer name",
|
|
3194
|
+
"name": "name",
|
|
3150
3195
|
"hasDynamicHelp": false,
|
|
3151
3196
|
"multiple": false,
|
|
3152
3197
|
"type": "option"
|
|
3153
3198
|
},
|
|
3154
|
-
"
|
|
3155
|
-
"description": "
|
|
3156
|
-
"name": "
|
|
3199
|
+
"email": {
|
|
3200
|
+
"description": "Customer email",
|
|
3201
|
+
"name": "email",
|
|
3157
3202
|
"hasDynamicHelp": false,
|
|
3158
3203
|
"multiple": false,
|
|
3159
3204
|
"type": "option"
|
|
@@ -3168,7 +3213,7 @@
|
|
|
3168
3213
|
},
|
|
3169
3214
|
"hasDynamicHelp": false,
|
|
3170
3215
|
"hiddenAliases": [],
|
|
3171
|
-
"id": "
|
|
3216
|
+
"id": "users:create",
|
|
3172
3217
|
"pluginAlias": "@respan/cli",
|
|
3173
3218
|
"pluginName": "@respan/cli",
|
|
3174
3219
|
"pluginType": "core",
|
|
@@ -3178,20 +3223,20 @@
|
|
|
3178
3223
|
"relativePath": [
|
|
3179
3224
|
"dist",
|
|
3180
3225
|
"commands",
|
|
3181
|
-
"
|
|
3226
|
+
"users",
|
|
3182
3227
|
"create.js"
|
|
3183
3228
|
]
|
|
3184
3229
|
},
|
|
3185
|
-
"
|
|
3230
|
+
"users:get": {
|
|
3186
3231
|
"aliases": [],
|
|
3187
3232
|
"args": {
|
|
3188
3233
|
"id": {
|
|
3189
|
-
"description": "
|
|
3234
|
+
"description": "Customer identifier",
|
|
3190
3235
|
"name": "id",
|
|
3191
3236
|
"required": true
|
|
3192
3237
|
}
|
|
3193
3238
|
},
|
|
3194
|
-
"description": "Get a specific
|
|
3239
|
+
"description": "Get a specific user (customer)",
|
|
3195
3240
|
"flags": {
|
|
3196
3241
|
"api-key": {
|
|
3197
3242
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -3230,7 +3275,7 @@
|
|
|
3230
3275
|
},
|
|
3231
3276
|
"hasDynamicHelp": false,
|
|
3232
3277
|
"hiddenAliases": [],
|
|
3233
|
-
"id": "
|
|
3278
|
+
"id": "users:get",
|
|
3234
3279
|
"pluginAlias": "@respan/cli",
|
|
3235
3280
|
"pluginName": "@respan/cli",
|
|
3236
3281
|
"pluginType": "core",
|
|
@@ -3240,14 +3285,14 @@
|
|
|
3240
3285
|
"relativePath": [
|
|
3241
3286
|
"dist",
|
|
3242
3287
|
"commands",
|
|
3243
|
-
"
|
|
3288
|
+
"users",
|
|
3244
3289
|
"get.js"
|
|
3245
3290
|
]
|
|
3246
3291
|
},
|
|
3247
|
-
"
|
|
3292
|
+
"users:list": {
|
|
3248
3293
|
"aliases": [],
|
|
3249
3294
|
"args": {},
|
|
3250
|
-
"description": "List
|
|
3295
|
+
"description": "List users (customers)",
|
|
3251
3296
|
"flags": {
|
|
3252
3297
|
"api-key": {
|
|
3253
3298
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -3284,9 +3329,9 @@
|
|
|
3284
3329
|
"type": "boolean"
|
|
3285
3330
|
},
|
|
3286
3331
|
"limit": {
|
|
3287
|
-
"description": "Number of results per page
|
|
3332
|
+
"description": "Number of results per page",
|
|
3288
3333
|
"name": "limit",
|
|
3289
|
-
"default":
|
|
3334
|
+
"default": 20,
|
|
3290
3335
|
"hasDynamicHelp": false,
|
|
3291
3336
|
"multiple": false,
|
|
3292
3337
|
"type": "option"
|
|
@@ -3300,50 +3345,15 @@
|
|
|
3300
3345
|
"type": "option"
|
|
3301
3346
|
},
|
|
3302
3347
|
"sort-by": {
|
|
3303
|
-
"description": "Sort field
|
|
3348
|
+
"description": "Sort field",
|
|
3304
3349
|
"name": "sort-by",
|
|
3305
3350
|
"hasDynamicHelp": false,
|
|
3306
3351
|
"multiple": false,
|
|
3307
3352
|
"type": "option"
|
|
3308
3353
|
},
|
|
3309
|
-
"
|
|
3310
|
-
"description": "
|
|
3311
|
-
"name": "
|
|
3312
|
-
"hasDynamicHelp": false,
|
|
3313
|
-
"multiple": false,
|
|
3314
|
-
"type": "option"
|
|
3315
|
-
},
|
|
3316
|
-
"end-time": {
|
|
3317
|
-
"description": "End time filter (ISO 8601)",
|
|
3318
|
-
"name": "end-time",
|
|
3319
|
-
"hasDynamicHelp": false,
|
|
3320
|
-
"multiple": false,
|
|
3321
|
-
"type": "option"
|
|
3322
|
-
},
|
|
3323
|
-
"filter": {
|
|
3324
|
-
"description": "Filter in field:operator:value format (repeatable)",
|
|
3325
|
-
"name": "filter",
|
|
3326
|
-
"hasDynamicHelp": false,
|
|
3327
|
-
"multiple": true,
|
|
3328
|
-
"type": "option"
|
|
3329
|
-
},
|
|
3330
|
-
"all-envs": {
|
|
3331
|
-
"description": "Include all environments (true/false)",
|
|
3332
|
-
"name": "all-envs",
|
|
3333
|
-
"hasDynamicHelp": false,
|
|
3334
|
-
"multiple": false,
|
|
3335
|
-
"type": "option"
|
|
3336
|
-
},
|
|
3337
|
-
"is-test": {
|
|
3338
|
-
"description": "Filter by test (true) or production (false) environment",
|
|
3339
|
-
"name": "is-test",
|
|
3340
|
-
"hasDynamicHelp": false,
|
|
3341
|
-
"multiple": false,
|
|
3342
|
-
"type": "option"
|
|
3343
|
-
},
|
|
3344
|
-
"include-fields": {
|
|
3345
|
-
"description": "Comma-separated fields to include in response",
|
|
3346
|
-
"name": "include-fields",
|
|
3354
|
+
"environment": {
|
|
3355
|
+
"description": "Environment filter",
|
|
3356
|
+
"name": "environment",
|
|
3347
3357
|
"hasDynamicHelp": false,
|
|
3348
3358
|
"multiple": false,
|
|
3349
3359
|
"type": "option"
|
|
@@ -3351,7 +3361,7 @@
|
|
|
3351
3361
|
},
|
|
3352
3362
|
"hasDynamicHelp": false,
|
|
3353
3363
|
"hiddenAliases": [],
|
|
3354
|
-
"id": "
|
|
3364
|
+
"id": "users:list",
|
|
3355
3365
|
"pluginAlias": "@respan/cli",
|
|
3356
3366
|
"pluginName": "@respan/cli",
|
|
3357
3367
|
"pluginType": "core",
|
|
@@ -3361,14 +3371,20 @@
|
|
|
3361
3371
|
"relativePath": [
|
|
3362
3372
|
"dist",
|
|
3363
3373
|
"commands",
|
|
3364
|
-
"
|
|
3374
|
+
"users",
|
|
3365
3375
|
"list.js"
|
|
3366
3376
|
]
|
|
3367
3377
|
},
|
|
3368
|
-
"
|
|
3378
|
+
"users:update": {
|
|
3369
3379
|
"aliases": [],
|
|
3370
|
-
"args": {
|
|
3371
|
-
|
|
3380
|
+
"args": {
|
|
3381
|
+
"id": {
|
|
3382
|
+
"description": "Customer identifier",
|
|
3383
|
+
"name": "id",
|
|
3384
|
+
"required": true
|
|
3385
|
+
}
|
|
3386
|
+
},
|
|
3387
|
+
"description": "Update a user (customer)",
|
|
3372
3388
|
"flags": {
|
|
3373
3389
|
"api-key": {
|
|
3374
3390
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -3404,39 +3420,23 @@
|
|
|
3404
3420
|
"allowNo": false,
|
|
3405
3421
|
"type": "boolean"
|
|
3406
3422
|
},
|
|
3407
|
-
"
|
|
3408
|
-
"description": "
|
|
3409
|
-
"name": "
|
|
3410
|
-
"required": true,
|
|
3411
|
-
"hasDynamicHelp": false,
|
|
3412
|
-
"multiple": false,
|
|
3413
|
-
"type": "option"
|
|
3414
|
-
},
|
|
3415
|
-
"end-time": {
|
|
3416
|
-
"description": "End time (ISO 8601)",
|
|
3417
|
-
"name": "end-time",
|
|
3418
|
-
"required": true,
|
|
3423
|
+
"name": {
|
|
3424
|
+
"description": "Customer name",
|
|
3425
|
+
"name": "name",
|
|
3419
3426
|
"hasDynamicHelp": false,
|
|
3420
3427
|
"multiple": false,
|
|
3421
3428
|
"type": "option"
|
|
3422
3429
|
},
|
|
3423
|
-
"
|
|
3424
|
-
"description": "
|
|
3425
|
-
"name": "
|
|
3426
|
-
"hasDynamicHelp": false,
|
|
3427
|
-
"multiple": true,
|
|
3428
|
-
"type": "option"
|
|
3429
|
-
},
|
|
3430
|
-
"all-envs": {
|
|
3431
|
-
"description": "Include all environments (true/false)",
|
|
3432
|
-
"name": "all-envs",
|
|
3430
|
+
"email": {
|
|
3431
|
+
"description": "Customer email",
|
|
3432
|
+
"name": "email",
|
|
3433
3433
|
"hasDynamicHelp": false,
|
|
3434
3434
|
"multiple": false,
|
|
3435
3435
|
"type": "option"
|
|
3436
3436
|
},
|
|
3437
|
-
"
|
|
3438
|
-
"description": "
|
|
3439
|
-
"name": "
|
|
3437
|
+
"metadata": {
|
|
3438
|
+
"description": "Metadata as JSON string",
|
|
3439
|
+
"name": "metadata",
|
|
3440
3440
|
"hasDynamicHelp": false,
|
|
3441
3441
|
"multiple": false,
|
|
3442
3442
|
"type": "option"
|
|
@@ -3444,7 +3444,7 @@
|
|
|
3444
3444
|
},
|
|
3445
3445
|
"hasDynamicHelp": false,
|
|
3446
3446
|
"hiddenAliases": [],
|
|
3447
|
-
"id": "
|
|
3447
|
+
"id": "users:update",
|
|
3448
3448
|
"pluginAlias": "@respan/cli",
|
|
3449
3449
|
"pluginName": "@respan/cli",
|
|
3450
3450
|
"pluginType": "core",
|
|
@@ -3454,10 +3454,10 @@
|
|
|
3454
3454
|
"relativePath": [
|
|
3455
3455
|
"dist",
|
|
3456
3456
|
"commands",
|
|
3457
|
-
"
|
|
3458
|
-
"
|
|
3457
|
+
"users",
|
|
3458
|
+
"update.js"
|
|
3459
3459
|
]
|
|
3460
3460
|
}
|
|
3461
3461
|
},
|
|
3462
|
-
"version": "0.6.
|
|
3462
|
+
"version": "0.6.7"
|
|
3463
3463
|
}
|