optimus-tool-call 0.1.13 → 0.1.14
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/README.md +5 -2
- package/dist/lib/endpoint-config.d.ts +1 -11
- package/dist/lib/endpoint-config.d.ts.map +1 -1
- package/dist/lib/endpoint-config.js +1 -65
- package/dist/lib/endpoint-config.js.map +1 -1
- package/dist/lib/streaming.d.ts.map +1 -1
- package/dist/lib/streaming.js +21 -19
- package/dist/lib/streaming.js.map +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -108,11 +108,14 @@ And 30+ more...
|
|
|
108
108
|
Environment variables (optional):
|
|
109
109
|
|
|
110
110
|
```bash
|
|
111
|
-
OPTIMUS_API_URL=
|
|
112
|
-
|
|
111
|
+
OPTIMUS_API_URL=https://your-host/ # Backend base URL (same as log-llm-config; see optimus-tofu)
|
|
112
|
+
OPTIMUS_ENDPOINT=... # Alternative to OPTIMUS_API_URL
|
|
113
|
+
OPTIMUS_HARDWARE_UUID=... # Override when no stable hardware UUID (e.g. Linux CI)
|
|
113
114
|
OPTIMUS_BATCH_SIZE=50 # Batch size before flush (default: 1 for testing, 50 for prod)
|
|
114
115
|
```
|
|
115
116
|
|
|
117
|
+
Ingestion uses the same machine auth as `log-llm-config`: keys under `~/opt-ai-sec/management/auth_key.txt`, handshake against `/endpoint_security/auth/`, and HMAC signatures on each batch (see backend `batch_create`).
|
|
118
|
+
|
|
116
119
|
## Architecture
|
|
117
120
|
|
|
118
121
|
```
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Endpoint resolution order:
|
|
3
|
-
* 1) OPTIMUS_API_URL (legacy optimus-tool-call override)
|
|
4
|
-
* 2) OPTIMUS_ENDPOINT (shared with log-llm-config)
|
|
5
|
-
* 3) optimus_dev.env upward search (OPTIMUS_ENDPOINT)
|
|
6
|
-
* 4) default https://demo.optimuslabs.io/
|
|
7
|
-
*/
|
|
8
|
-
export declare function loadEndpointBase(options?: {
|
|
9
|
-
cwd?: string;
|
|
10
|
-
env?: NodeJS.ProcessEnv;
|
|
11
|
-
}): string;
|
|
1
|
+
export { loadEndpointBase } from "optimus-tofu";
|
|
12
2
|
//# sourceMappingURL=endpoint-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint-config.d.ts","sourceRoot":"","sources":["../../src/lib/endpoint-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"endpoint-config.d.ts","sourceRoot":"","sources":["../../src/lib/endpoint-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,66 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
const DEFAULT_ENDPOINT = "https://demo.optimuslabs.io/";
|
|
4
|
-
function normalizeBaseUrl(value) {
|
|
5
|
-
return value.replace(/\/+$/, "") + "/";
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Walk up from `dir` looking for `optimus_dev.env`, stopping at filesystem root.
|
|
9
|
-
*/
|
|
10
|
-
function findEnvFileUpward(dir) {
|
|
11
|
-
let current = dir;
|
|
12
|
-
while (true) {
|
|
13
|
-
const candidate = path.join(current, "optimus_dev.env");
|
|
14
|
-
if (existsSync(candidate))
|
|
15
|
-
return candidate;
|
|
16
|
-
const parent = path.dirname(current);
|
|
17
|
-
if (parent === current)
|
|
18
|
-
return null;
|
|
19
|
-
current = parent;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function parseEndpointFromFile(filePath) {
|
|
23
|
-
try {
|
|
24
|
-
const envContent = readFileSync(filePath, "utf8");
|
|
25
|
-
for (const line of envContent.split(/\r?\n/)) {
|
|
26
|
-
const trimmed = line.trim();
|
|
27
|
-
if (!trimmed || trimmed.startsWith("#"))
|
|
28
|
-
continue;
|
|
29
|
-
const [key, ...rest] = trimmed.split("=");
|
|
30
|
-
if (key === "OPTIMUS_ENDPOINT") {
|
|
31
|
-
const value = rest.join("=").trim();
|
|
32
|
-
if (value)
|
|
33
|
-
return normalizeBaseUrl(value);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch {
|
|
38
|
-
// ignore
|
|
39
|
-
}
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Endpoint resolution order:
|
|
44
|
-
* 1) OPTIMUS_API_URL (legacy optimus-tool-call override)
|
|
45
|
-
* 2) OPTIMUS_ENDPOINT (shared with log-llm-config)
|
|
46
|
-
* 3) optimus_dev.env upward search (OPTIMUS_ENDPOINT)
|
|
47
|
-
* 4) default https://demo.optimuslabs.io/
|
|
48
|
-
*/
|
|
49
|
-
export function loadEndpointBase(options) {
|
|
50
|
-
const cwd = options?.cwd ?? process.cwd();
|
|
51
|
-
const env = options?.env ?? process.env;
|
|
52
|
-
const fromApiUrl = env.OPTIMUS_API_URL?.trim();
|
|
53
|
-
if (fromApiUrl)
|
|
54
|
-
return normalizeBaseUrl(fromApiUrl);
|
|
55
|
-
const fromEndpoint = env.OPTIMUS_ENDPOINT?.trim();
|
|
56
|
-
if (fromEndpoint)
|
|
57
|
-
return normalizeBaseUrl(fromEndpoint);
|
|
58
|
-
const found = findEnvFileUpward(cwd);
|
|
59
|
-
if (found) {
|
|
60
|
-
const fromFile = parseEndpointFromFile(found);
|
|
61
|
-
if (fromFile)
|
|
62
|
-
return fromFile;
|
|
63
|
-
}
|
|
64
|
-
return DEFAULT_ENDPOINT;
|
|
65
|
-
}
|
|
1
|
+
export { loadEndpointBase } from "optimus-tofu";
|
|
66
2
|
//# sourceMappingURL=endpoint-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint-config.js","sourceRoot":"","sources":["../../src/lib/endpoint-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"endpoint-config.js","sourceRoot":"","sources":["../../src/lib/endpoint-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../src/lib/streaming.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../src/lib/streaming.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAahD;;GAEG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBrE;AAED;;GAEG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAyBjD;AA4ID;;;GAGG;AACH,wBAAgB,cAAc,IAAI,IAAI,CA0BrC"}
|
package/dist/lib/streaming.js
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Telemetry streaming — batch and send events to Optimus backend.
|
|
3
3
|
*/
|
|
4
|
+
import { createSignature } from "optimus-tofu";
|
|
5
|
+
import { ensureToolCallAuth } from "./machine-auth.js";
|
|
4
6
|
import { tryResolveHardwareUuid } from "./hardware-uuid.js";
|
|
5
7
|
import { loadEndpointBase } from "./endpoint-config.js";
|
|
6
|
-
/** Must match ``EndpointMachine.hardware_uuid`` (env or ioreg/system_profiler; see design_notes). */
|
|
7
|
-
function requireHardwareUuidForBatch() {
|
|
8
|
-
const hw = tryResolveHardwareUuid();
|
|
9
|
-
if (hw)
|
|
10
|
-
return hw;
|
|
11
|
-
throw new Error("Cannot resolve hardware UUID for tool-call batch: set OPTIMUS_HARDWARE_UUID " +
|
|
12
|
-
"or run on macOS with ioreg/system_profiler (same rules as log-llm-config log_uuid).");
|
|
13
|
-
}
|
|
14
|
-
function eventsWireForApi(events) {
|
|
15
|
-
return events.map((e) => JSON.parse(JSON.stringify(e)));
|
|
16
|
-
}
|
|
17
8
|
// Backend configuration
|
|
18
9
|
const OPTIMUS_API_BASE = loadEndpointBase();
|
|
19
|
-
const OPTIMUS_API_TOKEN = process.env.OPTIMUS_API_TOKEN || "";
|
|
20
10
|
const BATCH_SIZE = parseInt(process.env.OPTIMUS_BATCH_SIZE || "1", 10); // Default to 1 for testing
|
|
21
11
|
const BATCH_TIMEOUT_MS = 5000; // 5 seconds
|
|
22
12
|
// In-memory event queue
|
|
@@ -68,6 +58,9 @@ export async function flushEvents() {
|
|
|
68
58
|
// eventQueue.unshift(...eventsToSend);
|
|
69
59
|
}
|
|
70
60
|
}
|
|
61
|
+
function eventsWireFromTelemetry(events) {
|
|
62
|
+
return events.map((e) => JSON.parse(JSON.stringify(e)));
|
|
63
|
+
}
|
|
71
64
|
/**
|
|
72
65
|
* Send batch of events to Django backend.
|
|
73
66
|
*/
|
|
@@ -75,18 +68,27 @@ async function sendBatch(events) {
|
|
|
75
68
|
if (events.length === 0) {
|
|
76
69
|
return;
|
|
77
70
|
}
|
|
78
|
-
const
|
|
71
|
+
const hardwareUuid = tryResolveHardwareUuid();
|
|
72
|
+
if (!hardwareUuid) {
|
|
73
|
+
throw new Error("Cannot send tool-call telemetry: set OPTIMUS_HARDWARE_UUID or run on a host " +
|
|
74
|
+
"where ioreg/system_profiler can resolve the hardware UUID (same rules as log-llm-config).");
|
|
75
|
+
}
|
|
76
|
+
const auth = await ensureToolCallAuth(hardwareUuid);
|
|
77
|
+
const eventsWire = eventsWireFromTelemetry(events);
|
|
78
|
+
const signingPayload = {
|
|
79
|
+
hardware_uuid: hardwareUuid,
|
|
80
|
+
events: eventsWire,
|
|
81
|
+
};
|
|
82
|
+
const signature = createSignature(signingPayload, auth.key);
|
|
79
83
|
const payload = {
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
...signingPayload,
|
|
85
|
+
signature,
|
|
86
|
+
key_id: auth.key_id || "",
|
|
82
87
|
};
|
|
88
|
+
const endpoint = new URL("api/tool-calls/events/batch_create/", OPTIMUS_API_BASE).toString();
|
|
83
89
|
const headers = {
|
|
84
90
|
"Content-Type": "application/json",
|
|
85
91
|
};
|
|
86
|
-
// Add auth token if available
|
|
87
|
-
if (OPTIMUS_API_TOKEN) {
|
|
88
|
-
headers["Authorization"] = `Bearer ${OPTIMUS_API_TOKEN}`;
|
|
89
|
-
}
|
|
90
92
|
try {
|
|
91
93
|
// Use fetch if available (Node 18+), fall back to node:http
|
|
92
94
|
if (typeof fetch !== "undefined") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming.js","sourceRoot":"","sources":["../../src/lib/streaming.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"streaming.js","sourceRoot":"","sources":["../../src/lib/streaming.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,wBAAwB;AACxB,MAAM,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;AAC5C,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,2BAA2B;AACnG,MAAM,gBAAgB,GAAG,IAAI,CAAC,CAAC,YAAY;AAE3C,wBAAwB;AACxB,IAAI,UAAU,GAAqB,EAAE,CAAC;AACtC,IAAI,UAAU,GAA0B,IAAI,CAAC;AAE7C;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,KAAqB;IACpD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO;IACT,CAAC;IAED,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CA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.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Agentic audit sensor — classifies and streams tool call events to Optimus backend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -43,5 +43,8 @@
|
|
|
43
43
|
"@types/node": "^20.19.39",
|
|
44
44
|
"tsx": "^4.0.0",
|
|
45
45
|
"typescript": "^5.0.0"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"optimus-tofu": "^0.1.0"
|
|
46
49
|
}
|
|
47
50
|
}
|