wicked-core-ts 0.2.1 → 0.3.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/index.d.ts +15 -0
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -62,6 +62,21 @@ export declare class Core {
|
|
|
62
62
|
subscribe(callback: (err: Error | null, eventJson: string) => void): Subscription
|
|
63
63
|
/** Liveness probe — emits a `Heartbeat` to subscribers and resolves once the actor acks (`"ok"`). */
|
|
64
64
|
ping(): Promise<string>
|
|
65
|
+
/**
|
|
66
|
+
* Open a chat: eagerly warm one ACP session per seat (crew#165 / core#13). Resolves to a
|
|
67
|
+
* JSON array of per-seat outcomes `[{cliKey, ok, error?}]`; `chatSessionReady`/`chatSessionFailed`
|
|
68
|
+
* also stream to subscribers. Blocking handshakes run on the task pool, not the JS thread.
|
|
69
|
+
*/
|
|
70
|
+
chatOpen(chatId: string, clisJson: string, cwd?: string | undefined | null): Promise<string>
|
|
71
|
+
/**
|
|
72
|
+
* Fan a message out to the chat's warm seats (all, or `targets_json` subset). Ack-fast:
|
|
73
|
+
* resolves to the JSON array of seats targeted; replies stream as `chatDelta`/`chatReply`.
|
|
74
|
+
*/
|
|
75
|
+
chatSend(chatId: string, text: string, targetsJson?: string | undefined | null, cwd?: string | undefined | null): Promise<string>
|
|
76
|
+
/** The seats currently warm for a chat — JSON array of cli keys. */
|
|
77
|
+
chatSeats(chatId: string): Promise<string>
|
|
78
|
+
/** Close a chat's warm sessions (idempotent); emits `chatClosed`. */
|
|
79
|
+
chatClose(chatId: string): Promise<string>
|
|
65
80
|
/**
|
|
66
81
|
* Launch an interactive, resumable run: plans + distributes, then executes each unit off-thread
|
|
67
82
|
* (or pauses at a human-confirm gate). Resolves to the run id. Progress arrives as `CoreEvent`s
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-core-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Node/TypeScript bindings (napi-rs) for wicked-core: drive the in-process orchestration engine from JS/TS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"smoke:all": "node smoke.mjs && node smoke-lifecycle.mjs && node smoke-terminal.mjs"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"wicked-core-ts-darwin-arm64": "0.
|
|
45
|
-
"wicked-core-ts-darwin-x64": "0.
|
|
46
|
-
"wicked-core-ts-linux-arm64-gnu": "0.
|
|
47
|
-
"wicked-core-ts-linux-x64-gnu": "0.
|
|
48
|
-
"wicked-core-ts-win32-x64-msvc": "0.
|
|
44
|
+
"wicked-core-ts-darwin-arm64": "0.3.0",
|
|
45
|
+
"wicked-core-ts-darwin-x64": "0.3.0",
|
|
46
|
+
"wicked-core-ts-linux-arm64-gnu": "0.3.0",
|
|
47
|
+
"wicked-core-ts-linux-x64-gnu": "0.3.0",
|
|
48
|
+
"wicked-core-ts-win32-x64-msvc": "0.3.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@napi-rs/cli": "^2.18.4"
|