@naturali/sdk 0.49.2 → 0.50.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/dist/index.d.cts +7 -0
- package/dist/index.d.mts +7 -0
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -835,6 +835,13 @@ type BoardDispatch = {
|
|
|
835
835
|
input_mapping?: {
|
|
836
836
|
[key: string]: unknown;
|
|
837
837
|
};
|
|
838
|
+
/**
|
|
839
|
+
* JSON Logic writing selected fields of the dispatch's own result into named `task.payload` keys when the dispatch completes — a deterministic, no-model channel for state that must survive more than one column. Evaluated against the same `{ task, result }` context as `on_complete` (`result` is the tool's own result for a tool column, re-rooted the same way), and applied atomically alongside `last_result`. Each write is a raw overwrite of its key: a value from an earlier pass through a looping column lingers in the payload until the column runs again. Before this, carrying a value past one hop meant echoing it through an agent's `output_schema` or injecting it into an unrelated tool request purely so it would reappear in `last_result` downstream — both are unnecessary now.
|
|
840
|
+
*
|
|
841
|
+
*/
|
|
842
|
+
payload_writes?: {
|
|
843
|
+
[key: string]: unknown;
|
|
844
|
+
};
|
|
838
845
|
};
|
|
839
846
|
/**
|
|
840
847
|
* One routing rule. Rules are evaluated **in order** and the first match fires its move, as the `automation` principal, through the same single door a person uses. End with `{"when": true, …}` for a catch-all.
|
package/dist/index.d.mts
CHANGED
|
@@ -835,6 +835,13 @@ type BoardDispatch = {
|
|
|
835
835
|
input_mapping?: {
|
|
836
836
|
[key: string]: unknown;
|
|
837
837
|
};
|
|
838
|
+
/**
|
|
839
|
+
* JSON Logic writing selected fields of the dispatch's own result into named `task.payload` keys when the dispatch completes — a deterministic, no-model channel for state that must survive more than one column. Evaluated against the same `{ task, result }` context as `on_complete` (`result` is the tool's own result for a tool column, re-rooted the same way), and applied atomically alongside `last_result`. Each write is a raw overwrite of its key: a value from an earlier pass through a looping column lingers in the payload until the column runs again. Before this, carrying a value past one hop meant echoing it through an agent's `output_schema` or injecting it into an unrelated tool request purely so it would reappear in `last_result` downstream — both are unnecessary now.
|
|
840
|
+
*
|
|
841
|
+
*/
|
|
842
|
+
payload_writes?: {
|
|
843
|
+
[key: string]: unknown;
|
|
844
|
+
};
|
|
838
845
|
};
|
|
839
846
|
/**
|
|
840
847
|
* One routing rule. Rules are evaluated **in order** and the first match fires its move, as the `automation` principal, through the same single door a person uses. End with `{"when": true, …}` for a catch-all.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"tsx": "^4.23.1",
|
|
38
38
|
"typescript": "~6.0.3",
|
|
39
39
|
"vitest": "^4.1.10",
|
|
40
|
-
"@naturali/api": "0.
|
|
40
|
+
"@naturali/api": "0.50.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"generate": "tsx scripts/generate.ts",
|