@agent-controller/runtime 0.3.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/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/adapter.d.ts +23 -0
- package/dist/adapter.js +980 -0
- package/dist/honesty.d.ts +59 -0
- package/dist/honesty.js +226 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +40 -0
- package/dist/testing/fake-provider.d.ts +60 -0
- package/dist/testing/fake-provider.js +170 -0
- package/dist/types.d.ts +112 -0
- package/dist/types.js +2 -0
- package/dist/wire.d.ts +5 -0
- package/dist/wire.js +8 -0
- package/package.json +54 -0
package/dist/types.js
ADDED
package/dist/wire.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { WireEvent, WireEventType } from "./types.js";
|
|
2
|
+
/** Build a wire envelope from a session id, event type, and payload. */
|
|
3
|
+
export declare function stamp<T>(sessionId: string, type: WireEventType, data: T): WireEvent<T>;
|
|
4
|
+
/** Write one wire event as a single NDJSON line via the provided writer. */
|
|
5
|
+
export declare function emit<T>(write: (s: string) => void, ev: WireEvent<T>): void;
|
package/dist/wire.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Build a wire envelope from a session id, event type, and payload. */
|
|
2
|
+
export function stamp(sessionId, type, data) {
|
|
3
|
+
return { v: 1, type, ts: new Date().toISOString(), sessionId, data };
|
|
4
|
+
}
|
|
5
|
+
/** Write one wire event as a single NDJSON line via the provided writer. */
|
|
6
|
+
export function emit(write, ev) {
|
|
7
|
+
write(JSON.stringify(ev) + "\n");
|
|
8
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agent-controller/runtime",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Pi runtime adapter for agent-controller — runs an ADL CompiledSpec against a Pi session and emits the NDJSON wire-event stream.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agent-controller",
|
|
7
|
+
"adl",
|
|
8
|
+
"pi",
|
|
9
|
+
"pi-agent",
|
|
10
|
+
"agent",
|
|
11
|
+
"ai-agents",
|
|
12
|
+
"llm",
|
|
13
|
+
"anthropic",
|
|
14
|
+
"runtime-adapter"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://github.com/CCDevelopForFun/agent-controller#readme",
|
|
17
|
+
"bugs": "https://github.com/CCDevelopForFun/agent-controller/issues",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/CCDevelopForFun/agent-controller.git",
|
|
21
|
+
"directory": "runtime"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"author": "CCDevelopForFun",
|
|
25
|
+
"type": "module",
|
|
26
|
+
"main": "dist/index.js",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"README.md",
|
|
30
|
+
"LICENSE"
|
|
31
|
+
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=22.19.0"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsc -p .",
|
|
40
|
+
"test": "vitest run",
|
|
41
|
+
"test:watch": "vitest"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@earendil-works/pi-ai": "0.75.5",
|
|
45
|
+
"@earendil-works/pi-coding-agent": "0.75.5",
|
|
46
|
+
"@sinclair/typebox": "0.34.49",
|
|
47
|
+
"pi-mcp-extension": "1.5.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "latest",
|
|
51
|
+
"typescript": "latest",
|
|
52
|
+
"vitest": "latest"
|
|
53
|
+
}
|
|
54
|
+
}
|