@respan/cli 0.8.0 → 0.10.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/dist/commands/datasets/create-span.js +5 -3
- package/dist/commands/datasets/create.js +5 -4
- package/dist/commands/datasets/get-span.js +5 -1
- package/dist/commands/datasets/get.js +1 -1
- package/dist/commands/datasets/list.js +5 -1
- package/dist/commands/datasets/spans.js +1 -1
- package/dist/commands/datasets/update.js +3 -6
- package/dist/commands/{datasets/add-spans.d.ts → eval/index.d.ts} +2 -3
- package/dist/commands/eval/index.js +26 -0
- package/dist/commands/evaluators/create.js +10 -7
- package/dist/commands/evaluators/get.js +1 -1
- package/dist/commands/evaluators/list.js +1 -1
- package/dist/commands/evaluators/run.js +8 -7
- package/dist/commands/evaluators/update.js +6 -7
- package/dist/commands/experiments/create.js +9 -8
- package/dist/commands/experiments/get.js +1 -1
- package/dist/commands/experiments/list.js +1 -1
- package/dist/commands/logs/create.js +9 -7
- package/dist/commands/logs/get.js +1 -1
- package/dist/commands/logs/list.js +4 -3
- package/dist/commands/logs/summary.js +3 -2
- package/dist/commands/prompts/create-version.js +9 -9
- package/dist/commands/prompts/create.js +5 -4
- package/dist/commands/prompts/get.js +1 -1
- package/dist/commands/prompts/list.js +1 -1
- package/dist/commands/prompts/update.js +3 -6
- package/dist/commands/prompts/versions.js +1 -1
- package/dist/commands/setup/index.js +77 -202
- package/dist/commands/traces/get.js +1 -1
- package/dist/commands/traces/list.js +8 -10
- package/dist/commands/traces/summary.js +6 -2
- package/dist/commands/users/get.js +1 -1
- package/dist/commands/users/list.js +5 -7
- package/dist/lib/base-command.d.ts +2 -0
- package/dist/lib/base-command.js +11 -1
- package/dist/lib/eval/runner.d.ts +15 -0
- package/dist/lib/eval/runner.js +292 -0
- package/dist/lib/eval/schema.d.ts +67 -0
- package/dist/lib/eval/schema.js +22 -0
- package/dist/lib/skill-refs.generated.d.ts +5 -0
- package/dist/lib/skill-refs.generated.js +1168 -0
- package/oclif.manifest.json +181 -189
- package/package.json +7 -3
- package/dist/commands/datasets/add-spans.js +0 -24
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@respan/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Respan CLI - manage your LLM observability from the command line",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"imports": {
|
|
9
|
+
"#lib/*": "./dist/lib/*"
|
|
10
|
+
},
|
|
8
11
|
"bin": {
|
|
9
12
|
"respan": "./bin/run.js"
|
|
10
13
|
},
|
|
@@ -14,8 +17,9 @@
|
|
|
14
17
|
"directory": "javascript-sdks/respan-cli"
|
|
15
18
|
},
|
|
16
19
|
"scripts": {
|
|
17
|
-
"build": "tsc && npm run build:hooks",
|
|
20
|
+
"build": "npm run generate:skill-refs && tsc && npm run build:hooks",
|
|
18
21
|
"build:hooks": "node -e \"const{build}=require('esbuild');const hooks=['claude-code','codex-cli','gemini-cli'];Promise.all(hooks.map(h=>build({entryPoints:['src/hooks/'+h+'.ts'],bundle:true,platform:'node',target:'node18',format:'cjs',outfile:'dist/hooks/'+h+'.cjs',external:[]}))).then(()=>console.log('Hooks bundled.'))\"",
|
|
22
|
+
"generate:skill-refs": "node scripts/embed-skill-refs.mjs",
|
|
19
23
|
"clean": "rm -rf dist",
|
|
20
24
|
"dev": "node --loader ts-node/esm bin/dev.js",
|
|
21
25
|
"postpack": "rm -f oclif.manifest.json",
|
|
@@ -42,7 +46,7 @@
|
|
|
42
46
|
"@oclif/plugin-help": "^6",
|
|
43
47
|
"@oclif/plugin-not-found": "^3",
|
|
44
48
|
"@respan/cli": "^0.5.2",
|
|
45
|
-
"@respan/respan-api": "
|
|
49
|
+
"@respan/respan-api": "0.1.16",
|
|
46
50
|
"@respan/respan-sdk": "^1.1.4"
|
|
47
51
|
},
|
|
48
52
|
"devDependencies": {
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Args, Flags } from '@oclif/core';
|
|
2
|
-
import { BaseCommand } from '../../lib/base-command.js';
|
|
3
|
-
class DatasetsAddSpans extends BaseCommand {
|
|
4
|
-
async run() {
|
|
5
|
-
const { args, flags } = await this.parse(DatasetsAddSpans);
|
|
6
|
-
this.globalFlags = flags;
|
|
7
|
-
try {
|
|
8
|
-
const client = this.getClient();
|
|
9
|
-
const spanIds = flags['span-ids'].split(',').map((s) => s.trim());
|
|
10
|
-
const data = await this.spin('Adding spans to dataset', () => client.datasets.addSpansToDataset({ dataset_id: args['dataset-id'], body: { span_ids: spanIds } }));
|
|
11
|
-
this.log(JSON.stringify(data, null, 2));
|
|
12
|
-
}
|
|
13
|
-
catch (error) {
|
|
14
|
-
this.handleError(error);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
DatasetsAddSpans.description = 'Add existing spans to a dataset';
|
|
19
|
-
DatasetsAddSpans.args = { 'dataset-id': Args.string({ description: 'Dataset ID', required: true }) };
|
|
20
|
-
DatasetsAddSpans.flags = {
|
|
21
|
-
...BaseCommand.baseFlags,
|
|
22
|
-
'span-ids': Flags.string({ description: 'Comma-separated span IDs', required: true }),
|
|
23
|
-
};
|
|
24
|
-
export default DatasetsAddSpans;
|