@respan/cli 0.10.0 → 0.11.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.
@@ -470,75 +470,6 @@
470
470
  "set.js"
471
471
  ]
472
472
  },
473
- "eval": {
474
- "aliases": [],
475
- "args": {
476
- "file": {
477
- "description": "Path to eval JSON file",
478
- "name": "file",
479
- "required": true
480
- }
481
- },
482
- "description": "Run an eval defined in a JSON file (creates prompt + dataset on the platform)",
483
- "flags": {
484
- "api-key": {
485
- "description": "API key (env: RESPAN_API_KEY)",
486
- "env": "RESPAN_API_KEY",
487
- "name": "api-key",
488
- "hasDynamicHelp": false,
489
- "multiple": false,
490
- "type": "option"
491
- },
492
- "base-url": {
493
- "description": "Temporary API base URL override for this command",
494
- "name": "base-url",
495
- "hasDynamicHelp": false,
496
- "multiple": false,
497
- "type": "option"
498
- },
499
- "profile": {
500
- "description": "Named profile to use",
501
- "name": "profile",
502
- "hasDynamicHelp": false,
503
- "multiple": false,
504
- "type": "option"
505
- },
506
- "json": {
507
- "description": "Output as JSON",
508
- "name": "json",
509
- "allowNo": false,
510
- "type": "boolean"
511
- },
512
- "csv": {
513
- "description": "Output as CSV",
514
- "name": "csv",
515
- "allowNo": false,
516
- "type": "boolean"
517
- },
518
- "verbose": {
519
- "char": "v",
520
- "description": "Show verbose output",
521
- "name": "verbose",
522
- "allowNo": false,
523
- "type": "boolean"
524
- }
525
- },
526
- "hasDynamicHelp": false,
527
- "hiddenAliases": [],
528
- "id": "eval",
529
- "pluginAlias": "@respan/cli",
530
- "pluginName": "@respan/cli",
531
- "pluginType": "core",
532
- "strict": true,
533
- "enableJsonFlag": false,
534
- "isESM": true,
535
- "relativePath": [
536
- "dist",
537
- "commands",
538
- "eval",
539
- "index.js"
540
- ]
541
- },
542
473
  "datasets:create-span": {
543
474
  "aliases": [],
544
475
  "args": {
@@ -1068,6 +999,75 @@
1068
999
  "update.js"
1069
1000
  ]
1070
1001
  },
1002
+ "eval": {
1003
+ "aliases": [],
1004
+ "args": {
1005
+ "file": {
1006
+ "description": "Path to eval JSON file",
1007
+ "name": "file",
1008
+ "required": true
1009
+ }
1010
+ },
1011
+ "description": "Run an eval defined in a JSON file (creates prompt + dataset on the platform)",
1012
+ "flags": {
1013
+ "api-key": {
1014
+ "description": "API key (env: RESPAN_API_KEY)",
1015
+ "env": "RESPAN_API_KEY",
1016
+ "name": "api-key",
1017
+ "hasDynamicHelp": false,
1018
+ "multiple": false,
1019
+ "type": "option"
1020
+ },
1021
+ "base-url": {
1022
+ "description": "Temporary API base URL override for this command",
1023
+ "name": "base-url",
1024
+ "hasDynamicHelp": false,
1025
+ "multiple": false,
1026
+ "type": "option"
1027
+ },
1028
+ "profile": {
1029
+ "description": "Named profile to use",
1030
+ "name": "profile",
1031
+ "hasDynamicHelp": false,
1032
+ "multiple": false,
1033
+ "type": "option"
1034
+ },
1035
+ "json": {
1036
+ "description": "Output as JSON",
1037
+ "name": "json",
1038
+ "allowNo": false,
1039
+ "type": "boolean"
1040
+ },
1041
+ "csv": {
1042
+ "description": "Output as CSV",
1043
+ "name": "csv",
1044
+ "allowNo": false,
1045
+ "type": "boolean"
1046
+ },
1047
+ "verbose": {
1048
+ "char": "v",
1049
+ "description": "Show verbose output",
1050
+ "name": "verbose",
1051
+ "allowNo": false,
1052
+ "type": "boolean"
1053
+ }
1054
+ },
1055
+ "hasDynamicHelp": false,
1056
+ "hiddenAliases": [],
1057
+ "id": "eval",
1058
+ "pluginAlias": "@respan/cli",
1059
+ "pluginName": "@respan/cli",
1060
+ "pluginType": "core",
1061
+ "strict": true,
1062
+ "enableJsonFlag": false,
1063
+ "isESM": true,
1064
+ "relativePath": [
1065
+ "dist",
1066
+ "commands",
1067
+ "eval",
1068
+ "index.js"
1069
+ ]
1070
+ },
1071
1071
  "evaluators:create": {
1072
1072
  "aliases": [],
1073
1073
  "args": {},
@@ -3277,16 +3277,98 @@
3277
3277
  "doctor.js"
3278
3278
  ]
3279
3279
  },
3280
+ "setup:gateway": {
3281
+ "aliases": [],
3282
+ "args": {},
3283
+ "description": "Set up Respan gateway routing in this project.\n\nRuns the gateway setup flow directly (skips the \"Tracing or Gateway?\"\nquestion). Sets up your API key, installs the Respan skill, and optionally\nopens your coding agent to route the detected framework through the gateway.",
3284
+ "examples": [
3285
+ "respan setup gateway",
3286
+ "respan setup gateway --agent claude-code",
3287
+ "respan setup gateway --no-instrument"
3288
+ ],
3289
+ "flags": {
3290
+ "api-key": {
3291
+ "description": "API key (env: RESPAN_API_KEY)",
3292
+ "env": "RESPAN_API_KEY",
3293
+ "name": "api-key",
3294
+ "hasDynamicHelp": false,
3295
+ "multiple": false,
3296
+ "type": "option"
3297
+ },
3298
+ "base-url": {
3299
+ "description": "Temporary API base URL override for this command",
3300
+ "name": "base-url",
3301
+ "hasDynamicHelp": false,
3302
+ "multiple": false,
3303
+ "type": "option"
3304
+ },
3305
+ "profile": {
3306
+ "description": "Named profile to use",
3307
+ "name": "profile",
3308
+ "hasDynamicHelp": false,
3309
+ "multiple": false,
3310
+ "type": "option"
3311
+ },
3312
+ "json": {
3313
+ "hidden": true,
3314
+ "name": "json",
3315
+ "allowNo": false,
3316
+ "type": "boolean"
3317
+ },
3318
+ "csv": {
3319
+ "hidden": true,
3320
+ "name": "csv",
3321
+ "allowNo": false,
3322
+ "type": "boolean"
3323
+ },
3324
+ "verbose": {
3325
+ "char": "v",
3326
+ "description": "Show verbose output",
3327
+ "name": "verbose",
3328
+ "allowNo": false,
3329
+ "type": "boolean"
3330
+ },
3331
+ "agent": {
3332
+ "description": "Agent to configure (claude-code, cursor, codex-cli, gemini-cli, opencode)",
3333
+ "name": "agent",
3334
+ "hasDynamicHelp": false,
3335
+ "multiple": false,
3336
+ "type": "option"
3337
+ },
3338
+ "no-instrument": {
3339
+ "description": "Skip opening the agent after setup",
3340
+ "name": "no-instrument",
3341
+ "allowNo": false,
3342
+ "type": "boolean"
3343
+ }
3344
+ },
3345
+ "hasDynamicHelp": false,
3346
+ "hiddenAliases": [],
3347
+ "id": "setup:gateway",
3348
+ "pluginAlias": "@respan/cli",
3349
+ "pluginName": "@respan/cli",
3350
+ "pluginType": "core",
3351
+ "strict": true,
3352
+ "enableJsonFlag": false,
3353
+ "isESM": true,
3354
+ "relativePath": [
3355
+ "dist",
3356
+ "commands",
3357
+ "setup",
3358
+ "gateway.js"
3359
+ ]
3360
+ },
3280
3361
  "setup": {
3281
3362
  "aliases": [],
3282
3363
  "args": {},
3283
- "description": "Interactive setup wizard for Respan.\n\nSets up your API key, installs skills and SDK docs for your preferred\ncoding agents, and optionally runs an instrumentation agent.\n\nThis is the recommended way to get started with Respan.",
3364
+ "description": "Interactive setup wizard for Respan.\n\nSets up your API key, installs skills and SDK docs for your preferred\ncoding agents, and optionally runs a setup agent. Asks whether you want\nto set up tracing or gateway routing.\n\nThis is the recommended way to get started with Respan.",
3284
3365
  "examples": [
3285
3366
  "npx @respan/cli setup",
3286
3367
  "respan setup",
3368
+ "respan setup tracing",
3369
+ "respan setup gateway",
3287
3370
  "respan setup --agent claude-code",
3288
- "respan setup --no-instrument",
3289
- "respan setup --agent cursor"
3371
+ "respan setup --no-instrument"
3290
3372
  ],
3291
3373
  "flags": {
3292
3374
  "api-key": {
@@ -3312,13 +3394,13 @@
3312
3394
  "type": "option"
3313
3395
  },
3314
3396
  "json": {
3315
- "description": "Output as JSON",
3397
+ "hidden": true,
3316
3398
  "name": "json",
3317
3399
  "allowNo": false,
3318
3400
  "type": "boolean"
3319
3401
  },
3320
3402
  "csv": {
3321
- "description": "Output as CSV",
3403
+ "hidden": true,
3322
3404
  "name": "csv",
3323
3405
  "allowNo": false,
3324
3406
  "type": "boolean"
@@ -3360,6 +3442,87 @@
3360
3442
  "index.js"
3361
3443
  ]
3362
3444
  },
3445
+ "setup:tracing": {
3446
+ "aliases": [],
3447
+ "args": {},
3448
+ "description": "Set up Respan SDK tracing in this project.\n\nRuns the tracing setup flow directly (skips the \"Tracing or Gateway?\"\nquestion). Sets up your API key, installs the Respan skill, and optionally\nopens your coding agent to instrument the project.",
3449
+ "examples": [
3450
+ "respan setup tracing",
3451
+ "respan setup tracing --agent claude-code",
3452
+ "respan setup tracing --no-instrument"
3453
+ ],
3454
+ "flags": {
3455
+ "api-key": {
3456
+ "description": "API key (env: RESPAN_API_KEY)",
3457
+ "env": "RESPAN_API_KEY",
3458
+ "name": "api-key",
3459
+ "hasDynamicHelp": false,
3460
+ "multiple": false,
3461
+ "type": "option"
3462
+ },
3463
+ "base-url": {
3464
+ "description": "Temporary API base URL override for this command",
3465
+ "name": "base-url",
3466
+ "hasDynamicHelp": false,
3467
+ "multiple": false,
3468
+ "type": "option"
3469
+ },
3470
+ "profile": {
3471
+ "description": "Named profile to use",
3472
+ "name": "profile",
3473
+ "hasDynamicHelp": false,
3474
+ "multiple": false,
3475
+ "type": "option"
3476
+ },
3477
+ "json": {
3478
+ "hidden": true,
3479
+ "name": "json",
3480
+ "allowNo": false,
3481
+ "type": "boolean"
3482
+ },
3483
+ "csv": {
3484
+ "hidden": true,
3485
+ "name": "csv",
3486
+ "allowNo": false,
3487
+ "type": "boolean"
3488
+ },
3489
+ "verbose": {
3490
+ "char": "v",
3491
+ "description": "Show verbose output",
3492
+ "name": "verbose",
3493
+ "allowNo": false,
3494
+ "type": "boolean"
3495
+ },
3496
+ "agent": {
3497
+ "description": "Agent to configure (claude-code, cursor, codex-cli, gemini-cli, opencode)",
3498
+ "name": "agent",
3499
+ "hasDynamicHelp": false,
3500
+ "multiple": false,
3501
+ "type": "option"
3502
+ },
3503
+ "no-instrument": {
3504
+ "description": "Skip opening the agent after setup",
3505
+ "name": "no-instrument",
3506
+ "allowNo": false,
3507
+ "type": "boolean"
3508
+ }
3509
+ },
3510
+ "hasDynamicHelp": false,
3511
+ "hiddenAliases": [],
3512
+ "id": "setup:tracing",
3513
+ "pluginAlias": "@respan/cli",
3514
+ "pluginName": "@respan/cli",
3515
+ "pluginType": "core",
3516
+ "strict": true,
3517
+ "enableJsonFlag": false,
3518
+ "isESM": true,
3519
+ "relativePath": [
3520
+ "dist",
3521
+ "commands",
3522
+ "setup",
3523
+ "tracing.js"
3524
+ ]
3525
+ },
3363
3526
  "traces:get": {
3364
3527
  "aliases": [],
3365
3528
  "args": {
@@ -3968,5 +4131,5 @@
3968
4131
  ]
3969
4132
  }
3970
4133
  },
3971
- "version": "0.10.0"
4134
+ "version": "0.11.0"
3972
4135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@respan/cli",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Respan CLI - manage your LLM observability from the command line",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -50,6 +50,7 @@
50
50
  "@respan/respan-sdk": "^1.1.4"
51
51
  },
52
52
  "devDependencies": {
53
+ "@types/node": "^18",
53
54
  "esbuild": "^0.25",
54
55
  "oclif": "^4",
55
56
  "ts-node": "^10.9.2",