@almadar/std 3.12.2 → 3.13.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.
Files changed (74) hide show
  1. package/behaviors/exports/atoms/std-agent-classifier.orb +402 -0
  2. package/behaviors/exports/atoms/std-agent-completion.orb +469 -0
  3. package/behaviors/exports/atoms/std-agent-context-window.orb +790 -0
  4. package/behaviors/exports/atoms/std-agent-conversation.orb +737 -0
  5. package/behaviors/exports/atoms/std-agent-memory.orb +627 -0
  6. package/behaviors/exports/atoms/std-agent-provider.orb +402 -0
  7. package/behaviors/exports/atoms/std-agent-search.orb +418 -0
  8. package/behaviors/exports/atoms/std-agent-session.orb +825 -0
  9. package/behaviors/exports/atoms/std-agent-tool-call.orb +380 -0
  10. package/behaviors/exports/molecules/std-agent-fix-loop.orb +1213 -0
  11. package/behaviors/exports/molecules/std-agent-learner.orb +1143 -0
  12. package/behaviors/exports/molecules/std-agent-planner.orb +898 -0
  13. package/behaviors/exports/molecules/std-agent-rag.orb +736 -0
  14. package/behaviors/exports/molecules/std-agent-tool-loop.orb +1237 -0
  15. package/behaviors/exports/organisms/std-agent-assistant.orb +2288 -0
  16. package/behaviors/exports/organisms/std-agent-builder.orb +2664 -0
  17. package/behaviors/exports/organisms/std-agent-pipeline.orb +2307 -0
  18. package/behaviors/exports/organisms/std-agent-reviewer.orb +1743 -0
  19. package/behaviors/exports/organisms/std-agent-tutor.orb +2303 -0
  20. package/behaviors/exports/validation-report.json +328 -0
  21. package/dist/behaviors/exports/atoms/std-agent-classifier.orb +402 -0
  22. package/dist/behaviors/exports/atoms/std-agent-completion.orb +469 -0
  23. package/dist/behaviors/exports/atoms/std-agent-context-window.orb +790 -0
  24. package/dist/behaviors/exports/atoms/std-agent-conversation.orb +737 -0
  25. package/dist/behaviors/exports/atoms/std-agent-memory.orb +627 -0
  26. package/dist/behaviors/exports/atoms/std-agent-provider.orb +402 -0
  27. package/dist/behaviors/exports/atoms/std-agent-search.orb +418 -0
  28. package/dist/behaviors/exports/atoms/std-agent-session.orb +825 -0
  29. package/dist/behaviors/exports/atoms/std-agent-tool-call.orb +380 -0
  30. package/dist/behaviors/exports/molecules/std-agent-fix-loop.orb +1213 -0
  31. package/dist/behaviors/exports/molecules/std-agent-learner.orb +1143 -0
  32. package/dist/behaviors/exports/molecules/std-agent-planner.orb +898 -0
  33. package/dist/behaviors/exports/molecules/std-agent-rag.orb +736 -0
  34. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +1237 -0
  35. package/dist/behaviors/exports/organisms/std-agent-assistant.orb +2288 -0
  36. package/dist/behaviors/exports/organisms/std-agent-builder.orb +2664 -0
  37. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +2307 -0
  38. package/dist/behaviors/exports/organisms/std-agent-reviewer.orb +1743 -0
  39. package/dist/behaviors/exports/organisms/std-agent-tutor.orb +2303 -0
  40. package/dist/behaviors/exports/validation-report.json +328 -0
  41. package/dist/behaviors/exports-reader.js +6345 -175
  42. package/dist/behaviors/exports-reader.js.map +1 -1
  43. package/dist/behaviors/functions/index.d.ts +620 -1
  44. package/dist/behaviors/functions/index.js +6285 -176
  45. package/dist/behaviors/functions/index.js.map +1 -1
  46. package/dist/behaviors/index.d.ts +1 -1
  47. package/dist/behaviors/index.js +6348 -178
  48. package/dist/behaviors/index.js.map +1 -1
  49. package/dist/behaviors/query.js +6347 -177
  50. package/dist/behaviors/query.js.map +1 -1
  51. package/dist/exports/atoms/std-agent-classifier.orb +402 -0
  52. package/dist/exports/atoms/std-agent-completion.orb +469 -0
  53. package/dist/exports/atoms/std-agent-context-window.orb +790 -0
  54. package/dist/exports/atoms/std-agent-conversation.orb +737 -0
  55. package/dist/exports/atoms/std-agent-memory.orb +627 -0
  56. package/dist/exports/atoms/std-agent-provider.orb +402 -0
  57. package/dist/exports/atoms/std-agent-search.orb +418 -0
  58. package/dist/exports/atoms/std-agent-session.orb +825 -0
  59. package/dist/exports/atoms/std-agent-tool-call.orb +380 -0
  60. package/dist/exports/molecules/std-agent-fix-loop.orb +1213 -0
  61. package/dist/exports/molecules/std-agent-learner.orb +1143 -0
  62. package/dist/exports/molecules/std-agent-planner.orb +898 -0
  63. package/dist/exports/molecules/std-agent-rag.orb +736 -0
  64. package/dist/exports/molecules/std-agent-tool-loop.orb +1237 -0
  65. package/dist/exports/organisms/std-agent-assistant.orb +2288 -0
  66. package/dist/exports/organisms/std-agent-builder.orb +2664 -0
  67. package/dist/exports/organisms/std-agent-pipeline.orb +2307 -0
  68. package/dist/exports/organisms/std-agent-reviewer.orb +1743 -0
  69. package/dist/exports/organisms/std-agent-tutor.orb +2303 -0
  70. package/dist/exports/validation-report.json +328 -0
  71. package/dist/index.d.ts +1 -1
  72. package/dist/index.js +6348 -178
  73. package/dist/index.js.map +1 -1
  74. package/package.json +1 -1
@@ -0,0 +1,380 @@
1
+ {
2
+ "name": "AgentToolCallOrbital",
3
+ "orbitals": [
4
+ {
5
+ "name": "AgentToolCallOrbital",
6
+ "entity": {
7
+ "name": "AgentToolCall",
8
+ "persistence": "persistent",
9
+ "collection": "agenttoolcalls",
10
+ "fields": [
11
+ {
12
+ "name": "id",
13
+ "type": "string"
14
+ },
15
+ {
16
+ "name": "name",
17
+ "type": "string"
18
+ },
19
+ {
20
+ "name": "description",
21
+ "type": "string"
22
+ },
23
+ {
24
+ "name": "status",
25
+ "type": "string",
26
+ "default": "active",
27
+ "values": [
28
+ "active",
29
+ "inactive",
30
+ "pending"
31
+ ]
32
+ },
33
+ {
34
+ "name": "createdAt",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "name": "toolName",
39
+ "type": "string",
40
+ "default": ""
41
+ },
42
+ {
43
+ "name": "args",
44
+ "type": "string",
45
+ "default": ""
46
+ },
47
+ {
48
+ "name": "result",
49
+ "type": "string",
50
+ "default": ""
51
+ },
52
+ {
53
+ "name": "duration",
54
+ "type": "number",
55
+ "default": 0
56
+ }
57
+ ]
58
+ },
59
+ "traits": [
60
+ {
61
+ "name": "AgentToolCallExecutor",
62
+ "linkedEntity": "AgentToolCall",
63
+ "category": "interaction",
64
+ "emits": [
65
+ {
66
+ "event": "TOOL_STARTED",
67
+ "scope": "external"
68
+ },
69
+ {
70
+ "event": "TOOL_COMPLETED",
71
+ "scope": "external"
72
+ }
73
+ ],
74
+ "stateMachine": {
75
+ "states": [
76
+ {
77
+ "name": "idle",
78
+ "isInitial": true
79
+ },
80
+ {
81
+ "name": "executing"
82
+ },
83
+ {
84
+ "name": "completed"
85
+ },
86
+ {
87
+ "name": "failed"
88
+ }
89
+ ],
90
+ "events": [
91
+ {
92
+ "key": "INIT",
93
+ "name": "Initialize"
94
+ },
95
+ {
96
+ "key": "INVOKE",
97
+ "name": "Invoke Tool",
98
+ "payload": [
99
+ {
100
+ "name": "toolName",
101
+ "type": "string",
102
+ "required": true
103
+ },
104
+ {
105
+ "name": "args",
106
+ "type": "string",
107
+ "required": false
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "key": "CANCEL",
113
+ "name": "Cancel"
114
+ }
115
+ ],
116
+ "transitions": [
117
+ {
118
+ "from": "idle",
119
+ "to": "idle",
120
+ "event": "INIT",
121
+ "effects": [
122
+ [
123
+ "fetch",
124
+ "AgentToolCall"
125
+ ],
126
+ [
127
+ "render-ui",
128
+ "main",
129
+ {
130
+ "type": "stack",
131
+ "direction": "vertical",
132
+ "gap": "lg",
133
+ "children": [
134
+ {
135
+ "type": "stack",
136
+ "direction": "horizontal",
137
+ "gap": "sm",
138
+ "align": "center",
139
+ "children": [
140
+ {
141
+ "type": "icon",
142
+ "name": "wrench",
143
+ "size": "lg"
144
+ },
145
+ {
146
+ "type": "typography",
147
+ "content": "AgentToolCall",
148
+ "variant": "h2"
149
+ }
150
+ ]
151
+ },
152
+ {
153
+ "type": "divider"
154
+ },
155
+ {
156
+ "type": "input",
157
+ "label": "Tool Name",
158
+ "bind": "@entity.toolName",
159
+ "placeholder": "e.g. read_file"
160
+ },
161
+ {
162
+ "type": "textarea",
163
+ "label": "Arguments",
164
+ "bind": "@entity.args",
165
+ "placeholder": "Tool arguments (JSON)..."
166
+ },
167
+ {
168
+ "type": "button",
169
+ "label": "Invoke",
170
+ "event": "INVOKE",
171
+ "variant": "primary",
172
+ "icon": "play"
173
+ }
174
+ ]
175
+ }
176
+ ]
177
+ ]
178
+ },
179
+ {
180
+ "from": "idle",
181
+ "to": "executing",
182
+ "event": "INVOKE",
183
+ "effects": [
184
+ [
185
+ "set",
186
+ "@entity.toolName",
187
+ "@payload.toolName"
188
+ ],
189
+ [
190
+ "set",
191
+ "@entity.args",
192
+ "@payload.args"
193
+ ],
194
+ [
195
+ "set",
196
+ "@entity.status",
197
+ "executing"
198
+ ],
199
+ [
200
+ "emit",
201
+ "TOOL_STARTED"
202
+ ],
203
+ [
204
+ "render-ui",
205
+ "main",
206
+ {
207
+ "type": "loading-state",
208
+ "title": "Executing...",
209
+ "message": "Running tool..."
210
+ }
211
+ ],
212
+ [
213
+ "agent/invoke",
214
+ "@payload.toolName",
215
+ "@payload.args"
216
+ ]
217
+ ]
218
+ },
219
+ {
220
+ "from": "completed",
221
+ "to": "executing",
222
+ "event": "INVOKE",
223
+ "effects": [
224
+ [
225
+ "set",
226
+ "@entity.toolName",
227
+ "@payload.toolName"
228
+ ],
229
+ [
230
+ "set",
231
+ "@entity.args",
232
+ "@payload.args"
233
+ ],
234
+ [
235
+ "set",
236
+ "@entity.status",
237
+ "executing"
238
+ ],
239
+ [
240
+ "emit",
241
+ "TOOL_STARTED"
242
+ ],
243
+ [
244
+ "render-ui",
245
+ "main",
246
+ {
247
+ "type": "loading-state",
248
+ "title": "Executing...",
249
+ "message": "Running tool..."
250
+ }
251
+ ],
252
+ [
253
+ "agent/invoke",
254
+ "@payload.toolName",
255
+ "@payload.args"
256
+ ]
257
+ ]
258
+ },
259
+ {
260
+ "from": "failed",
261
+ "to": "executing",
262
+ "event": "INVOKE",
263
+ "effects": [
264
+ [
265
+ "set",
266
+ "@entity.toolName",
267
+ "@payload.toolName"
268
+ ],
269
+ [
270
+ "set",
271
+ "@entity.args",
272
+ "@payload.args"
273
+ ],
274
+ [
275
+ "set",
276
+ "@entity.status",
277
+ "executing"
278
+ ],
279
+ [
280
+ "emit",
281
+ "TOOL_STARTED"
282
+ ],
283
+ [
284
+ "render-ui",
285
+ "main",
286
+ {
287
+ "type": "loading-state",
288
+ "title": "Executing...",
289
+ "message": "Running tool..."
290
+ }
291
+ ],
292
+ [
293
+ "agent/invoke",
294
+ "@payload.toolName",
295
+ "@payload.args"
296
+ ]
297
+ ]
298
+ },
299
+ {
300
+ "from": "executing",
301
+ "to": "idle",
302
+ "event": "CANCEL",
303
+ "effects": [
304
+ [
305
+ "set",
306
+ "@entity.status",
307
+ "idle"
308
+ ],
309
+ [
310
+ "render-ui",
311
+ "main",
312
+ {
313
+ "type": "stack",
314
+ "direction": "vertical",
315
+ "gap": "lg",
316
+ "children": [
317
+ {
318
+ "type": "stack",
319
+ "direction": "horizontal",
320
+ "gap": "sm",
321
+ "align": "center",
322
+ "children": [
323
+ {
324
+ "type": "icon",
325
+ "name": "wrench",
326
+ "size": "lg"
327
+ },
328
+ {
329
+ "type": "typography",
330
+ "content": "AgentToolCall",
331
+ "variant": "h2"
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ "type": "divider"
337
+ },
338
+ {
339
+ "type": "input",
340
+ "label": "Tool Name",
341
+ "bind": "@entity.toolName",
342
+ "placeholder": "e.g. read_file"
343
+ },
344
+ {
345
+ "type": "textarea",
346
+ "label": "Arguments",
347
+ "bind": "@entity.args",
348
+ "placeholder": "Tool arguments (JSON)..."
349
+ },
350
+ {
351
+ "type": "button",
352
+ "label": "Invoke",
353
+ "event": "INVOKE",
354
+ "variant": "primary",
355
+ "icon": "play"
356
+ }
357
+ ]
358
+ }
359
+ ]
360
+ ]
361
+ }
362
+ ]
363
+ }
364
+ }
365
+ ],
366
+ "pages": [
367
+ {
368
+ "name": "AgentToolCallPage",
369
+ "path": "/agenttoolcalls",
370
+ "traits": [
371
+ {
372
+ "ref": "AgentToolCallExecutor"
373
+ }
374
+ ]
375
+ }
376
+ ]
377
+ }
378
+ ],
379
+ "description": "Tool execution atom for agent tool invocation. Manages the lifecycle of invoking external tools: idle -> executing -> completed/failed. Emits TOOL_STARTED and TOOL_COMPLETED for cross-trait wiring."
380
+ }