@elsium-ai/cli 0.9.0 → 0.9.1
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 +5 -8
- package/dist/commands/proxy.d.ts +1 -1
- package/dist/commands/proxy.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -1791,7 +1791,7 @@ var init_src2 = __esm(() => {
|
|
|
1791
1791
|
});
|
|
1792
1792
|
|
|
1793
1793
|
// src/cli.ts
|
|
1794
|
-
import { createRequire as
|
|
1794
|
+
import { createRequire as createRequire3 } from "module";
|
|
1795
1795
|
|
|
1796
1796
|
// src/commands/cost.ts
|
|
1797
1797
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -2595,7 +2595,6 @@ async function promptCommand(args) {
|
|
|
2595
2595
|
|
|
2596
2596
|
// src/commands/proxy.ts
|
|
2597
2597
|
import { createServer } from "node:http";
|
|
2598
|
-
import { createRequire as createRequire3 } from "node:module";
|
|
2599
2598
|
|
|
2600
2599
|
// ../elsium-ai/src/index.ts
|
|
2601
2600
|
init_src();
|
|
@@ -11388,10 +11387,8 @@ var SUPPORTED_MODELS = {
|
|
|
11388
11387
|
{ id: "gemini-1.5-pro", object: "model", created: 0, owned_by: "google" }
|
|
11389
11388
|
]
|
|
11390
11389
|
};
|
|
11391
|
-
async function proxyCommand(args) {
|
|
11390
|
+
async function proxyCommand(args, version = "0.0.0") {
|
|
11392
11391
|
const flags = parseFlags2(args);
|
|
11393
|
-
const _require = createRequire3(import.meta.url);
|
|
11394
|
-
const pkg = _require("../../package.json");
|
|
11395
11392
|
const costTracker = costTrackingMiddleware();
|
|
11396
11393
|
const auditTrail = flags.audit ? createAuditTrail() : null;
|
|
11397
11394
|
const cacheAdapter = flags.cache ? createInMemoryCache() : null;
|
|
@@ -11504,7 +11501,7 @@ async function proxyCommand(args) {
|
|
|
11504
11501
|
server.listen(flags.port, () => {
|
|
11505
11502
|
const check = (on) => on ? "✓" : "✗";
|
|
11506
11503
|
console.log(`
|
|
11507
|
-
ElsiumAI Proxy v${
|
|
11504
|
+
ElsiumAI Proxy v${version}
|
|
11508
11505
|
|
|
11509
11506
|
Listening on http://localhost:${flags.port}
|
|
11510
11507
|
|
|
@@ -12433,7 +12430,7 @@ function printEntry(entry, raw2 = false) {
|
|
|
12433
12430
|
}
|
|
12434
12431
|
|
|
12435
12432
|
// src/cli.ts
|
|
12436
|
-
var _require =
|
|
12433
|
+
var _require = createRequire3(import.meta.url);
|
|
12437
12434
|
var pkg = _require("../package.json");
|
|
12438
12435
|
var VERSION = pkg.version;
|
|
12439
12436
|
var HELP = `
|
|
@@ -12504,7 +12501,7 @@ async function main() {
|
|
|
12504
12501
|
await promptCommand(args.slice(1));
|
|
12505
12502
|
break;
|
|
12506
12503
|
case "proxy":
|
|
12507
|
-
await proxyCommand(args.slice(1));
|
|
12504
|
+
await proxyCommand(args.slice(1), VERSION);
|
|
12508
12505
|
break;
|
|
12509
12506
|
default:
|
|
12510
12507
|
console.error(`Unknown command: ${command}`);
|
package/dist/commands/proxy.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function proxyCommand(args: string[]): Promise<void>;
|
|
1
|
+
export declare function proxyCommand(args: string[], version?: string): Promise<void>;
|
|
2
2
|
//# sourceMappingURL=proxy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/commands/proxy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/commands/proxy.ts"],"names":[],"mappings":"AAwMA,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,SAAU,iBAgKnE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elsium-ai/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "CLI tool for ElsiumAI projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Eric Utrera <ebutrera9103@gmail.com>",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"dev": "bun --watch src/cli.ts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@elsium-ai/core": "^0.9.
|
|
28
|
-
"@elsium-ai/observe": "^0.9.
|
|
29
|
-
"elsium-ai": "^0.9.
|
|
27
|
+
"@elsium-ai/core": "^0.9.1",
|
|
28
|
+
"@elsium-ai/observe": "^0.9.1",
|
|
29
|
+
"elsium-ai": "^0.9.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"typescript": "^5.7.0"
|