@adriane-ai/napi 0.2.0 → 1.0.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.
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -70,3 +70,19 @@ export function engineApproveAndResume(
|
|
|
70
70
|
onCondition: EngineConditionCallback,
|
|
71
71
|
onEvent: EngineEventCallback
|
|
72
72
|
): Promise<string>;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Deliver an external signal to a suspended run, then resume. `signalName` is the
|
|
76
|
+
* signal a `waitForSignal` node is blocked on; `payloadJson` is its JSON payload
|
|
77
|
+
* (injected into `__signals[signalName]`). The run advances past the waiting node.
|
|
78
|
+
* `specJson.state` carries the serialized suspended `GraphState`. Resolves to a JSON
|
|
79
|
+
* `RunOutcome`.
|
|
80
|
+
*/
|
|
81
|
+
export function engineSignal(
|
|
82
|
+
specJson: string,
|
|
83
|
+
signalName: string,
|
|
84
|
+
payloadJson: string,
|
|
85
|
+
onNode: EngineNodeCallback,
|
|
86
|
+
onCondition: EngineConditionCallback,
|
|
87
|
+
onEvent: EngineEventCallback
|
|
88
|
+
): Promise<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adriane-ai/napi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Node bindings to the Adriane Rust engine (graph validation, DSL compile, run/resume/approve).",
|
|
6
6
|
"main": "index.js",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"@napi-rs/cli": "^2.18.4"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@adriane-ai/napi-darwin-x64": "0.
|
|
39
|
-
"@adriane-ai/napi-darwin-arm64": "0.
|
|
40
|
-
"@adriane-ai/napi-linux-x64-gnu": "0.
|
|
41
|
-
"@adriane-ai/napi-linux-arm64-gnu": "0.
|
|
42
|
-
"@adriane-ai/napi-win32-x64-msvc": "0.
|
|
38
|
+
"@adriane-ai/napi-darwin-x64": "1.0.0",
|
|
39
|
+
"@adriane-ai/napi-darwin-arm64": "1.0.0",
|
|
40
|
+
"@adriane-ai/napi-linux-x64-gnu": "1.0.0",
|
|
41
|
+
"@adriane-ai/napi-linux-arm64-gnu": "1.0.0",
|
|
42
|
+
"@adriane-ai/napi-win32-x64-msvc": "1.0.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build:napi": "napi build --platform --release --js napi-generated.js --dts napi-generated.d.ts",
|