@respan/cli 0.7.3 → 0.8.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/auth/logout.d.ts +1 -0
- package/dist/commands/auth/status.d.ts +1 -0
- package/dist/commands/auth/status.js +2 -1
- package/dist/commands/config/get.d.ts +1 -0
- package/dist/commands/config/get.js +5 -0
- package/dist/commands/config/list.d.ts +1 -0
- package/dist/commands/config/list.js +9 -2
- package/dist/commands/config/set.d.ts +1 -0
- package/dist/commands/config/set.js +4 -0
- package/dist/commands/datasets/add-spans.d.ts +1 -0
- package/dist/commands/datasets/create-span.d.ts +1 -0
- package/dist/commands/datasets/create.d.ts +1 -0
- package/dist/commands/datasets/get-span.d.ts +1 -0
- package/dist/commands/datasets/get.d.ts +1 -0
- package/dist/commands/datasets/list.d.ts +1 -0
- package/dist/commands/datasets/spans.d.ts +1 -0
- package/dist/commands/datasets/update.d.ts +1 -0
- package/dist/commands/evaluators/create.d.ts +1 -0
- package/dist/commands/evaluators/get.d.ts +1 -0
- package/dist/commands/evaluators/list.d.ts +1 -0
- package/dist/commands/evaluators/run.d.ts +1 -0
- package/dist/commands/evaluators/update.d.ts +1 -0
- package/dist/commands/experiments/create.d.ts +1 -0
- package/dist/commands/experiments/get.d.ts +1 -0
- package/dist/commands/experiments/list.d.ts +1 -0
- package/dist/commands/logs/create.d.ts +1 -0
- package/dist/commands/logs/get.d.ts +1 -0
- package/dist/commands/logs/list.d.ts +1 -0
- package/dist/commands/logs/summary.d.ts +1 -0
- package/dist/commands/prompts/create-version.d.ts +1 -0
- package/dist/commands/prompts/create.d.ts +1 -0
- package/dist/commands/prompts/get.d.ts +1 -0
- package/dist/commands/prompts/list.d.ts +1 -0
- package/dist/commands/prompts/update.d.ts +1 -0
- package/dist/commands/prompts/versions.d.ts +1 -0
- package/dist/commands/setup/doctor.d.ts +17 -0
- package/dist/commands/setup/doctor.js +224 -0
- package/dist/commands/setup/index.d.ts +45 -0
- package/dist/commands/setup/index.js +915 -0
- package/dist/commands/traces/get.d.ts +1 -0
- package/dist/commands/traces/list.d.ts +1 -0
- package/dist/commands/traces/summary.d.ts +1 -0
- package/dist/commands/users/create.d.ts +1 -0
- package/dist/commands/users/get.d.ts +1 -0
- package/dist/commands/users/list.d.ts +1 -0
- package/dist/commands/users/update.d.ts +1 -0
- package/dist/commands/whoami.d.ts +1 -0
- package/dist/commands/whoami.js +3 -2
- package/dist/lib/auth.d.ts +1 -0
- package/dist/lib/auth.js +16 -7
- package/dist/lib/base-command.d.ts +1 -0
- package/dist/lib/base-command.js +4 -0
- package/oclif.manifest.json +1062 -621
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BaseCommand } from '../../lib/base-command.js';
|
|
2
|
+
export default class Setup extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
'no-instrument': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
csv: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
|
+
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
private askApiKey;
|
|
17
|
+
private verifyApiKey;
|
|
18
|
+
/**
|
|
19
|
+
* Build a rich demo OTLP trace that mimics a customer support agent workflow:
|
|
20
|
+
* workflow: customer_support_pipeline
|
|
21
|
+
* └── agent: support_agent
|
|
22
|
+
* ├── tool: lookup_order
|
|
23
|
+
* ├── chat: openai.chat (classify intent)
|
|
24
|
+
* ├── tool: process_refund
|
|
25
|
+
* ├── chat: openai.chat (generate response)
|
|
26
|
+
* └── task: log_resolution
|
|
27
|
+
*/
|
|
28
|
+
private buildDemoTrace;
|
|
29
|
+
private detectAgents;
|
|
30
|
+
private selectAgent;
|
|
31
|
+
private installSkill;
|
|
32
|
+
private runInstrumentAgent;
|
|
33
|
+
private getSkillMd;
|
|
34
|
+
private logStep;
|
|
35
|
+
private isBinaryInstalled;
|
|
36
|
+
private extractEnvVar;
|
|
37
|
+
private saveToEnv;
|
|
38
|
+
private getGitEmail;
|
|
39
|
+
/**
|
|
40
|
+
* Send a lightweight setup notification (email only).
|
|
41
|
+
* This helps the team know when new users set up Respan so we can
|
|
42
|
+
* reach out and help with onboarding.
|
|
43
|
+
*/
|
|
44
|
+
private notifySetup;
|
|
45
|
+
}
|