yaml-flow 8.1.1 → 8.2.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.
Files changed (108) hide show
  1. package/browser/asset-integrity.json +3 -3
  2. package/browser/board-livecards-client.js +1 -1
  3. package/browser/board-livecards-localstorage.js +4 -6
  4. package/cli/{board-live-cards-lib-tjYsPt5U.d.ts → board-live-cards-lib-Iq_XAC09.d.ts} +1 -1
  5. package/cli/browser-api/board-live-cards-browser-adapter.d.ts +4 -3
  6. package/cli/browser-api/board-live-cards-browser-adapter.js +2 -2
  7. package/cli/browser-api/card-store-browser-api.d.ts +1 -1
  8. package/cli/node/artifacts-store-cli.js +8 -8
  9. package/cli/node/board-live-cards-cli.js +8 -8
  10. package/cli/node/card-store-cli.js +4 -4
  11. package/cli/node/fs-board-adapter.d.ts +6 -33
  12. package/cli/node/fs-board-adapter.js +10 -8
  13. package/cli/node/step-machine-cli.js +3 -3
  14. package/cli/{types-D2XnLbBj.d.ts → types--rXGWbSR.d.ts} +77 -5
  15. package/examples/board/.board-ws/cards/store/_index.json +17 -0
  16. package/examples/board/.board-ws/cards/store/card-market-prices.json +80 -0
  17. package/examples/board/.board-ws/cards/store/card-portfolio-value.json +90 -0
  18. package/examples/board/.board-ws/cards/store/card-portfolio.json +78 -0
  19. package/examples/board/cards/cardT-market-prices.json +6 -4
  20. package/examples/board/cards/cardT-portfolio-value.json +10 -38
  21. package/examples/board/cards/cardT-portfolio.json +9 -4
  22. package/examples/board/demo-shell-with-server.html +3 -3
  23. package/examples/board/server/board-server.js +593 -0
  24. package/examples/board/server/board-worker/source-def-flows/mock-handler/mock-db.js +13 -0
  25. package/examples/board/server/board-worker/source-def-flows/sqlite-handler/.retain/compliance.db +0 -0
  26. package/examples/board/server/board-worker/source-def-flows/sqlite-handler/.retain/optimus.db +0 -0
  27. package/examples/board/server/board-worker/source-def-flows/sqlite-handler/query.cjs +51 -0
  28. package/examples/board/server/board-worker/source-def-flows/sqlite-handler/seed-cpm.cjs +197 -0
  29. package/examples/board/server/board-worker/source-def-flows/sqlite-handler/seed-cpmV2.cjs +128 -0
  30. package/examples/board/server/board-worker/source-def-flows/sqlite-handler/seed-optimus.cjs +352 -0
  31. package/examples/board/server/board-worker/source-def-flows/sqlite-handler/sqlite-config.json +3 -0
  32. package/examples/board/server/board-worker/source-def-flows/sqlite-handler/sqlite-handler.js +84 -0
  33. package/examples/board/{source-def-flows/url.flow.json → server/board-worker/source-def-flows/sqlite.flow.json} +7 -7
  34. package/examples/board/{source-def-handlers → server/board-worker/source-def-flows/url-handler}/http-source-handler.js +29 -21
  35. package/examples/board/server/board-worker/source-def-flows/url.flow.json +73 -0
  36. package/examples/board/{source_def_flows.json → server/board-worker/source_def_flows.json} +61 -115
  37. package/examples/board/server/board-worker/task-executor.js +475 -0
  38. package/examples/board/server/chat-flow/chat-clear-processing.js +41 -0
  39. package/examples/board/server/chat-flow/chat-open-turn.js +144 -0
  40. package/examples/board/server/chat-flow/chat-write-assistant.js +44 -0
  41. package/examples/board/server/chat-flow/copilot-chat/assistant.js +253 -0
  42. package/examples/board/server/chat-flow/echo-probe/assistant.js +28 -0
  43. package/examples/board/server/chat-flow/flow-steps.json +167 -0
  44. package/examples/board/server-config.json +22 -0
  45. package/examples/board/test/server-http-test.js +707 -0
  46. package/examples/board/test/{portfolio-tracker-sse-worker.js → sse-worker.js} +9 -8
  47. package/examples/board-local/demo-shell-localstorage.html +3 -3
  48. package/lib/{artifacts-store-lib-public-DBICnGL6.d.cts → artifacts-store-lib-public-C5UL5tyG.d.cts} +3 -31
  49. package/lib/{artifacts-store-lib-public-BWC3YuLa.d.ts → artifacts-store-lib-public-GD4H-fFp.d.ts} +3 -31
  50. package/lib/artifacts-store-public.d.cts +3 -3
  51. package/lib/artifacts-store-public.d.ts +3 -3
  52. package/lib/board-live-cards-node.cjs +10 -8
  53. package/lib/board-live-cards-node.d.cts +9 -8
  54. package/lib/board-live-cards-node.d.ts +9 -8
  55. package/lib/board-live-cards-node.js +10 -8
  56. package/lib/{board-live-cards-public-BF9FP0mL.d.cts → board-live-cards-public-BLXbcBNk.d.cts} +2 -2
  57. package/lib/{board-live-cards-public-dJAl5IL-.d.ts → board-live-cards-public-BZaNb2mi.d.ts} +2 -2
  58. package/lib/board-live-cards-public.cjs +2 -2
  59. package/lib/board-live-cards-public.d.cts +2 -2
  60. package/lib/board-live-cards-public.d.ts +2 -2
  61. package/lib/board-live-cards-public.js +2 -2
  62. package/lib/board-live-cards-server-runtime.cjs +4 -6
  63. package/lib/board-live-cards-server-runtime.d.cts +3 -3
  64. package/lib/board-live-cards-server-runtime.d.ts +3 -3
  65. package/lib/board-live-cards-server-runtime.js +4 -6
  66. package/lib/board-livegraph-runtime/index.cjs +2 -2
  67. package/lib/board-livegraph-runtime/index.js +2 -2
  68. package/lib/card-store-public.d.cts +2 -2
  69. package/lib/card-store-public.d.ts +2 -2
  70. package/lib/execution-refs.cjs +1 -1
  71. package/lib/execution-refs.js +1 -1
  72. package/lib/index.cjs +1 -1
  73. package/lib/index.d.cts +1 -1
  74. package/lib/index.d.ts +1 -1
  75. package/lib/index.js +1 -1
  76. package/lib/server-runtime/index.cjs +4 -6
  77. package/lib/server-runtime/index.d.cts +4 -4
  78. package/lib/server-runtime/index.d.ts +4 -4
  79. package/lib/server-runtime/index.js +4 -6
  80. package/lib/step-machine-public/index.cjs +3 -3
  81. package/lib/step-machine-public/index.d.cts +27 -10
  82. package/lib/step-machine-public/index.d.ts +27 -10
  83. package/lib/step-machine-public/index.js +3 -3
  84. package/lib/{storage-interface-BhAON-gW.d.ts → storage-interface-B6ecOulj.d.cts} +25 -3
  85. package/lib/{storage-interface-BhAON-gW.d.cts → storage-interface-B6ecOulj.d.ts} +25 -3
  86. package/lib/stores/index.d.cts +1 -1
  87. package/lib/stores/index.d.ts +1 -1
  88. package/lib/stores/kv.d.cts +1 -1
  89. package/lib/stores/kv.d.ts +1 -1
  90. package/lib/{types-CXBzvC0s.d.cts → types-Bztd1KoK.d.cts} +75 -3
  91. package/lib/{types-D48hpnTR.d.ts → types-D-xVWPdY.d.ts} +75 -3
  92. package/package.json +1 -1
  93. package/examples/board/demo-chat-handler.js +0 -169
  94. package/examples/board/demo-server-config.json +0 -10
  95. package/examples/board/demo-server.js +0 -580
  96. package/examples/board/demo-task-executor.js +0 -721
  97. package/examples/board/gandalf-cards/card-source-kinds.json +0 -36
  98. package/examples/board/gandalf-cards/cards/_index.json +0 -7
  99. package/examples/board/gandalf-cards/cards/card-source-kinds.json +0 -64
  100. package/examples/board/scripts/copilot_wrapper.bat +0 -157
  101. package/examples/board/scripts/copilot_wrapper_helper.ps1 +0 -190
  102. package/examples/board/scripts/workiq_wrapper.mjs +0 -66
  103. package/examples/board/source-def-flows/copilot.flow.json +0 -33
  104. package/examples/board/source-def-flows/url-list.flow.json +0 -33
  105. package/examples/board/source-def-flows/workiq.flow.json +0 -34
  106. package/examples/board/source-def-handlers/copilot-source-handler.js +0 -141
  107. package/examples/board/test/demo-http-test.js +0 -317
  108. /package/examples/board/{source-def-flows → server/board-worker/source-def-flows}/mock.flow.json +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "1.0",
3
- "description": "Self-contained source-def registry for demo-task-executor runtimes.",
4
- "executor": "demo-task-executor",
3
+ "description": "Self-contained source-def registry for board-worker runtimes.",
4
+ "executor": "board-worker",
5
5
  "subcommands": [
6
6
  "run-source-fetch",
7
7
  "describe-capabilities",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "serverUrl": {
36
36
  "type": "string",
37
- "description": "Base URL of the hosting server (e.g. http://127.0.0.1:7799). Used by source kinds that call server-side proxy endpoints."
37
+ "description": "Base URL of the hosting server (e.g. http://127.0.0.1:7799). Used by source kinds that call server-side endpoints."
38
38
  },
39
39
  "boardLiveCardsCliJs": {
40
40
  "type": "string",
@@ -47,31 +47,31 @@
47
47
  }
48
48
  },
49
49
  "kinds": {
50
- "url": {
50
+ "urls": {
51
51
  "detect": {
52
- "field": "url"
52
+ "field": "urls"
53
53
  },
54
54
  "flow": "./source-def-flows/url.flow.json",
55
55
  "validate": [
56
56
  {
57
- "field": "url",
57
+ "field": "urls",
58
58
  "type": "object",
59
- "message": "url must be an object."
59
+ "message": "urls must be an object."
60
60
  },
61
61
  {
62
- "field": "url.url",
62
+ "field": "urls.url",
63
63
  "type": "string",
64
- "message": "url.url is required and must be a string."
64
+ "message": "urls.url is required and must be a string."
65
65
  }
66
66
  ],
67
67
  "probe": {
68
68
  "strategy": "http-head",
69
- "urlFrom": "url.url"
69
+ "urlFrom": "urls.url"
70
70
  },
71
71
  "manifest": {
72
- "description": "Single URL fetch via curl with interpolation and cache.",
72
+ "description": "URL fetch via interpolation and cache, with optional fan-out over a projected URL list.",
73
73
  "inputSchema": {
74
- "url": {
74
+ "urls": {
75
75
  "type": "object",
76
76
  "required": true,
77
77
  "properties": {
@@ -94,6 +94,10 @@
94
94
  "cacheTimeout": {
95
95
  "type": "number",
96
96
  "required": false
97
+ },
98
+ "projectionList": {
99
+ "type": "string",
100
+ "required": false
97
101
  }
98
102
  }
99
103
  },
@@ -104,146 +108,88 @@
104
108
  }
105
109
  }
106
110
  },
107
- "url-list": {
108
- "detect": {
109
- "field": "url-list"
110
- },
111
- "flow": "./source-def-flows/url-list.flow.json",
112
- "validate": [
113
- {
114
- "field": "url-list",
115
- "type": "object",
116
- "message": "url-list must be an object."
117
- }
118
- ],
119
- "probe": {
120
- "strategy": "http-head",
121
- "urlFrom": "_projections.url_list[0]"
122
- },
123
- "manifest": {
124
- "description": "Fan-out URL fetch over _projections.url_list.",
125
- "inputSchema": {
126
- "url-list": {
127
- "type": "object",
128
- "required": true,
129
- "properties": {
130
- "method": {
131
- "type": "string",
132
- "required": false
133
- },
134
- "headers": {
135
- "type": "object",
136
- "required": false
137
- },
138
- "cacheTimeout": {
139
- "type": "number",
140
- "required": false
141
- }
142
- }
143
- }
144
- }
145
- }
146
- },
147
- "copilot": {
111
+ "mock": {
148
112
  "detect": {
149
- "anyOfFields": [
150
- "copilot",
151
- "prompt_template"
152
- ]
113
+ "field": "mock"
153
114
  },
154
- "flow": "./source-def-flows/copilot.flow.json",
115
+ "flow": "./source-def-flows/mock.flow.json",
155
116
  "validate": [
156
117
  {
157
- "condition": "copilot-or-prompt",
158
- "message": "copilot must be an object, or prompt_template must be a top-level string."
118
+ "field": "mock",
119
+ "type": "string",
120
+ "message": "mock must be a string key."
159
121
  }
160
122
  ],
161
123
  "probe": {
162
- "strategy": "command-check",
163
- "command": "copilot",
164
- "args": [
165
- "--version"
166
- ]
124
+ "strategy": "mock-db-lookup"
167
125
  },
168
126
  "manifest": {
169
- "description": "Invoke Copilot with prompt interpolation.",
127
+ "description": "Look up values from demo MOCK_DB map.",
170
128
  "inputSchema": {
171
- "copilot": {
172
- "type": "object",
173
- "required": false
174
- },
175
- "prompt_template": {
129
+ "mock": {
176
130
  "type": "string",
177
- "required": false
131
+ "required": true
178
132
  }
179
133
  }
180
134
  }
181
135
  },
182
- "workiq": {
136
+ "sqlite": {
183
137
  "detect": {
184
- "field": "workiq"
138
+ "field": "sqlite"
185
139
  },
186
- "flow": "./source-def-flows/workiq.flow.json",
140
+ "flow": "./source-def-flows/sqlite.flow.json",
187
141
  "validate": [
188
142
  {
189
- "field": "workiq",
143
+ "field": "sqlite",
190
144
  "type": "object",
191
- "message": "workiq must be an object."
145
+ "message": "sqlite must be an object."
192
146
  },
193
147
  {
194
- "field": "workiq.query_template",
148
+ "field": "sqlite.db",
195
149
  "type": "string",
196
- "message": "workiq.query_template is required and must be a string."
197
- }
198
- ],
199
- "probe": {
200
- "strategy": "command-check",
201
- "command": "workiq",
202
- "args": [
203
- "--version"
204
- ]
205
- },
206
- "manifest": {
207
- "description": "Invoke WorkIQ via demo-server HTTP proxy endpoint.",
208
- "inputSchema": {
209
- "workiq": {
210
- "type": "object",
211
- "required": true
212
- }
213
- }
214
- }
215
- },
216
- "mock": {
217
- "detect": {
218
- "field": "mock"
219
- },
220
- "flow": "./source-def-flows/mock.flow.json",
221
- "validate": [
150
+ "message": "sqlite.db is required and must be a string."
151
+ },
222
152
  {
223
- "field": "mock",
153
+ "field": "sqlite.query",
224
154
  "type": "string",
225
- "message": "mock must be a string key."
155
+ "message": "sqlite.query is required and must be a string."
226
156
  }
227
157
  ],
228
158
  "probe": {
229
159
  "strategy": "mock-db-lookup"
230
160
  },
231
161
  "manifest": {
232
- "description": "Look up values from demo MOCK_DB map.",
162
+ "description": "Query a SQLite database via the sqlite handler's local query runner.",
233
163
  "inputSchema": {
234
- "mock": {
235
- "type": "string",
236
- "required": true
164
+ "sqlite": {
165
+ "type": "object",
166
+ "required": true,
167
+ "properties": {
168
+ "db": {
169
+ "type": "string",
170
+ "required": true
171
+ },
172
+ "query": {
173
+ "type": "string",
174
+ "required": true
175
+ },
176
+ "params": {
177
+ "type": "array",
178
+ "required": false
179
+ },
180
+ "mode": {
181
+ "type": "string",
182
+ "required": false
183
+ }
184
+ }
237
185
  }
238
186
  }
239
187
  }
240
188
  }
241
189
  },
242
190
  "resolveOrder": [
243
- "url",
244
- "url-list",
245
- "copilot",
246
- "workiq",
191
+ "urls",
192
+ "sqlite",
247
193
  "mock"
248
194
  ]
249
- }
195
+ }