@elsium-ai/cli 0.8.0 → 0.9.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/cli.js +10198 -128
- package/dist/commands/eval.d.ts.map +1 -1
- package/dist/commands/proxy-format.d.ts +46 -0
- package/dist/commands/proxy-format.d.ts.map +1 -0
- package/dist/commands/proxy.d.ts +2 -0
- package/dist/commands/proxy.d.ts.map +1 -0
- package/dist/commands/studio-ui.d.ts +2 -0
- package/dist/commands/studio-ui.d.ts.map +1 -0
- package/dist/commands/studio.d.ts +4 -0
- package/dist/commands/studio.d.ts.map +1 -0
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/commands/eval.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/commands/eval.ts"],"names":[],"mappings":"AAwHA,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,iBA2C/C"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { CompletionRequest, LLMResponse } from '@elsium-ai/core';
|
|
2
|
+
export interface OpenAIChatRequest {
|
|
3
|
+
model: string;
|
|
4
|
+
messages: Array<{
|
|
5
|
+
role: string;
|
|
6
|
+
content: string;
|
|
7
|
+
}>;
|
|
8
|
+
max_tokens?: number;
|
|
9
|
+
temperature?: number;
|
|
10
|
+
stream?: boolean;
|
|
11
|
+
seed?: number;
|
|
12
|
+
top_p?: number;
|
|
13
|
+
stop?: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface OpenAIChatResponse {
|
|
16
|
+
id: string;
|
|
17
|
+
object: 'chat.completion';
|
|
18
|
+
created: number;
|
|
19
|
+
model: string;
|
|
20
|
+
choices: Array<{
|
|
21
|
+
index: number;
|
|
22
|
+
message: {
|
|
23
|
+
role: 'assistant';
|
|
24
|
+
content: string;
|
|
25
|
+
};
|
|
26
|
+
finish_reason: string;
|
|
27
|
+
}>;
|
|
28
|
+
usage: {
|
|
29
|
+
prompt_tokens: number;
|
|
30
|
+
completion_tokens: number;
|
|
31
|
+
total_tokens: number;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface OpenAIModelList {
|
|
35
|
+
object: 'list';
|
|
36
|
+
data: Array<{
|
|
37
|
+
id: string;
|
|
38
|
+
object: 'model';
|
|
39
|
+
created: number;
|
|
40
|
+
owned_by: string;
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
export declare function detectProvider(model: string): string;
|
|
44
|
+
export declare function openaiToElsium(body: OpenAIChatRequest): CompletionRequest;
|
|
45
|
+
export declare function elsiumToOpenai(response: LLMResponse, model: string): OpenAIChatResponse;
|
|
46
|
+
//# sourceMappingURL=proxy-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-format.d.ts","sourceRoot":"","sources":["../../src/commands/proxy-format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAW,MAAM,iBAAiB,CAAA;AAE9E,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAClD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CACf;AAED,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,KAAK,CAAC;QACd,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE;YAAE,IAAI,EAAE,WAAW,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAA;QAC/C,aAAa,EAAE,MAAM,CAAA;KACrB,CAAC,CAAA;IACF,KAAK,EAAE;QACN,aAAa,EAAE,MAAM,CAAA;QACrB,iBAAiB,EAAE,MAAM,CAAA;QACzB,YAAY,EAAE,MAAM,CAAA;KACpB,CAAA;CACD;AAED,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,KAAK,CAAC;QACX,EAAE,EAAE,MAAM,CAAA;QACV,MAAM,EAAE,OAAO,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;QACf,QAAQ,EAAE,MAAM,CAAA;KAChB,CAAC,CAAA;CACF;AAQD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKpD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,iBAAiB,GAAG,iBAAiB,CAmBzE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,kBAAkB,CAoCvF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/commands/proxy.ts"],"names":[],"mappings":"AAyMA,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,iBAmKhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"studio-ui.d.ts","sourceRoot":"","sources":["../../src/commands/studio-ui.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,IAAI,MAAM,CAmgBtC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
+
export declare function createStudioServer(port: number, cwd?: string): import("http").Server<typeof IncomingMessage, typeof ServerResponse>;
|
|
3
|
+
export declare function studioCommand(args: string[]): Promise<void>;
|
|
4
|
+
//# sourceMappingURL=studio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"studio.d.ts","sourceRoot":"","sources":["../../src/commands/studio.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAqChE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,wEA6G5D;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,iBAkDjD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elsium-ai/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "CLI tool for ElsiumAI projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Eric Utrera <ebutrera9103@gmail.com>",
|
|
@@ -24,8 +24,9 @@
|
|
|
24
24
|
"dev": "bun --watch src/cli.ts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@elsium-ai/core": "^0.
|
|
28
|
-
"@elsium-ai/observe": "^0.
|
|
27
|
+
"@elsium-ai/core": "^0.9.0",
|
|
28
|
+
"@elsium-ai/observe": "^0.9.0",
|
|
29
|
+
"elsium-ai": "^0.9.0"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"typescript": "^5.7.0"
|