@almadar/std 3.13.0 → 3.13.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 (86) hide show
  1. package/behaviors/exports/atoms/std-agent-activity-log.orb +559 -0
  2. package/behaviors/exports/atoms/std-agent-chat-thread.orb +774 -0
  3. package/behaviors/exports/atoms/std-agent-classifier.orb +606 -137
  4. package/behaviors/exports/atoms/std-agent-completion.orb +646 -182
  5. package/behaviors/exports/atoms/std-agent-context-window.orb +1762 -258
  6. package/behaviors/exports/atoms/std-agent-conversation.orb +652 -369
  7. package/behaviors/exports/atoms/std-agent-memory.orb +574 -322
  8. package/behaviors/exports/atoms/std-agent-provider.orb +632 -136
  9. package/behaviors/exports/atoms/std-agent-search.orb +228 -198
  10. package/behaviors/exports/atoms/std-agent-session.orb +569 -559
  11. package/behaviors/exports/atoms/std-agent-step-progress.orb +850 -0
  12. package/behaviors/exports/atoms/std-agent-token-gauge.orb +1616 -0
  13. package/behaviors/exports/atoms/std-agent-tool-call.orb +983 -126
  14. package/behaviors/exports/molecules/std-agent-fix-loop.orb +1985 -21
  15. package/behaviors/exports/molecules/std-agent-learner.orb +1830 -23
  16. package/behaviors/exports/molecules/std-agent-planner.orb +1776 -19
  17. package/behaviors/exports/molecules/std-agent-rag.orb +1150 -15
  18. package/behaviors/exports/molecules/std-agent-tool-loop.orb +3643 -23
  19. package/behaviors/exports/organisms/std-agent-assistant.orb +5308 -1156
  20. package/behaviors/exports/organisms/std-agent-builder.orb +13525 -1326
  21. package/behaviors/exports/organisms/std-agent-pipeline.orb +10731 -1088
  22. package/behaviors/exports/organisms/std-agent-reviewer.orb +4187 -525
  23. package/behaviors/exports/organisms/std-agent-tutor.orb +3126 -322
  24. package/behaviors/exports/validation-report.json +1 -1426
  25. package/dist/behaviors/exports/atoms/std-agent-activity-log.orb +559 -0
  26. package/dist/behaviors/exports/atoms/std-agent-chat-thread.orb +774 -0
  27. package/dist/behaviors/exports/atoms/std-agent-classifier.orb +606 -137
  28. package/dist/behaviors/exports/atoms/std-agent-completion.orb +646 -182
  29. package/dist/behaviors/exports/atoms/std-agent-context-window.orb +1762 -258
  30. package/dist/behaviors/exports/atoms/std-agent-conversation.orb +652 -369
  31. package/dist/behaviors/exports/atoms/std-agent-memory.orb +574 -322
  32. package/dist/behaviors/exports/atoms/std-agent-provider.orb +632 -136
  33. package/dist/behaviors/exports/atoms/std-agent-search.orb +228 -198
  34. package/dist/behaviors/exports/atoms/std-agent-session.orb +569 -559
  35. package/dist/behaviors/exports/atoms/std-agent-step-progress.orb +850 -0
  36. package/dist/behaviors/exports/atoms/std-agent-token-gauge.orb +1616 -0
  37. package/dist/behaviors/exports/atoms/std-agent-tool-call.orb +983 -126
  38. package/dist/behaviors/exports/molecules/std-agent-fix-loop.orb +1985 -21
  39. package/dist/behaviors/exports/molecules/std-agent-learner.orb +1830 -23
  40. package/dist/behaviors/exports/molecules/std-agent-planner.orb +1776 -19
  41. package/dist/behaviors/exports/molecules/std-agent-rag.orb +1150 -15
  42. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +3643 -23
  43. package/dist/behaviors/exports/organisms/std-agent-assistant.orb +5308 -1156
  44. package/dist/behaviors/exports/organisms/std-agent-builder.orb +13525 -1326
  45. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +10731 -1088
  46. package/dist/behaviors/exports/organisms/std-agent-reviewer.orb +4187 -525
  47. package/dist/behaviors/exports/organisms/std-agent-tutor.orb +3126 -322
  48. package/dist/behaviors/exports/validation-report.json +1 -1426
  49. package/dist/behaviors/exports-reader.js +4860 -4176
  50. package/dist/behaviors/exports-reader.js.map +1 -1
  51. package/dist/behaviors/functions/index.d.ts +259 -98
  52. package/dist/behaviors/functions/index.js +4845 -4177
  53. package/dist/behaviors/functions/index.js.map +1 -1
  54. package/dist/behaviors/index.d.ts +1 -1
  55. package/dist/behaviors/index.js +4863 -4179
  56. package/dist/behaviors/index.js.map +1 -1
  57. package/dist/behaviors/query.js +4862 -4178
  58. package/dist/behaviors/query.js.map +1 -1
  59. package/dist/exports/atoms/std-agent-activity-log.orb +559 -0
  60. package/dist/exports/atoms/std-agent-chat-thread.orb +774 -0
  61. package/dist/exports/atoms/std-agent-classifier.orb +606 -137
  62. package/dist/exports/atoms/std-agent-completion.orb +646 -182
  63. package/dist/exports/atoms/std-agent-context-window.orb +1762 -258
  64. package/dist/exports/atoms/std-agent-conversation.orb +652 -369
  65. package/dist/exports/atoms/std-agent-memory.orb +574 -322
  66. package/dist/exports/atoms/std-agent-provider.orb +632 -136
  67. package/dist/exports/atoms/std-agent-search.orb +228 -198
  68. package/dist/exports/atoms/std-agent-session.orb +569 -559
  69. package/dist/exports/atoms/std-agent-step-progress.orb +850 -0
  70. package/dist/exports/atoms/std-agent-token-gauge.orb +1616 -0
  71. package/dist/exports/atoms/std-agent-tool-call.orb +983 -126
  72. package/dist/exports/molecules/std-agent-fix-loop.orb +1985 -21
  73. package/dist/exports/molecules/std-agent-learner.orb +1830 -23
  74. package/dist/exports/molecules/std-agent-planner.orb +1776 -19
  75. package/dist/exports/molecules/std-agent-rag.orb +1150 -15
  76. package/dist/exports/molecules/std-agent-tool-loop.orb +3643 -23
  77. package/dist/exports/organisms/std-agent-assistant.orb +5308 -1156
  78. package/dist/exports/organisms/std-agent-builder.orb +13525 -1326
  79. package/dist/exports/organisms/std-agent-pipeline.orb +10731 -1088
  80. package/dist/exports/organisms/std-agent-reviewer.orb +4187 -525
  81. package/dist/exports/organisms/std-agent-tutor.orb +3126 -322
  82. package/dist/exports/validation-report.json +1 -1426
  83. package/dist/index.d.ts +1 -1
  84. package/dist/index.js +4864 -4180
  85. package/dist/index.js.map +1 -1
  86. package/package.json +1 -1
@@ -58,20 +58,20 @@
58
58
  },
59
59
  "traits": [
60
60
  {
61
- "name": "AgentSearchFlow",
61
+ "name": "AgentSearchBrowse",
62
62
  "linkedEntity": "AgentSearch",
63
63
  "category": "interaction",
64
+ "listens": [
65
+ {
66
+ "event": "SEARCHED",
67
+ "triggers": "SEARCHED"
68
+ }
69
+ ],
64
70
  "stateMachine": {
65
71
  "states": [
66
72
  {
67
- "name": "idle",
73
+ "name": "browsing",
68
74
  "isInitial": true
69
- },
70
- {
71
- "name": "searching"
72
- },
73
- {
74
- "name": "results"
75
75
  }
76
76
  ],
77
77
  "events": [
@@ -81,33 +81,47 @@
81
81
  },
82
82
  {
83
83
  "key": "SEARCH",
84
- "name": "Search",
84
+ "name": "SEARCH"
85
+ },
86
+ {
87
+ "key": "CLEAR",
88
+ "name": "CLEAR"
89
+ },
90
+ {
91
+ "key": "VIEW",
92
+ "name": "VIEW",
85
93
  "payload": [
86
94
  {
87
- "name": "query",
95
+ "name": "id",
88
96
  "type": "string",
89
97
  "required": true
90
98
  },
91
99
  {
92
- "name": "language",
93
- "type": "string",
94
- "required": false
100
+ "name": "row",
101
+ "type": "object"
95
102
  }
96
103
  ]
97
104
  },
98
105
  {
99
- "key": "CLEAR",
100
- "name": "Clear Results"
106
+ "key": "SEARCHED",
107
+ "name": "SEARCHED",
108
+ "payload": [
109
+ {
110
+ "name": "data",
111
+ "type": "object",
112
+ "required": true
113
+ }
114
+ ]
101
115
  }
102
116
  ],
103
117
  "transitions": [
104
118
  {
105
- "from": "idle",
106
- "to": "idle",
119
+ "from": "browsing",
120
+ "to": "browsing",
107
121
  "event": "INIT",
108
122
  "effects": [
109
123
  [
110
- "fetch",
124
+ "ref",
111
125
  "AgentSearch"
112
126
  ],
113
127
  [
@@ -117,22 +131,53 @@
117
131
  "type": "stack",
118
132
  "direction": "vertical",
119
133
  "gap": "lg",
134
+ "className": "max-w-5xl mx-auto w-full",
120
135
  "children": [
121
136
  {
122
137
  "type": "stack",
123
138
  "direction": "horizontal",
124
- "gap": "sm",
139
+ "gap": "md",
140
+ "justify": "space-between",
125
141
  "align": "center",
126
142
  "children": [
127
143
  {
128
- "type": "icon",
129
- "name": "search",
130
- "size": "lg"
144
+ "type": "stack",
145
+ "direction": "horizontal",
146
+ "gap": "sm",
147
+ "align": "center",
148
+ "children": [
149
+ {
150
+ "type": "icon",
151
+ "name": "search",
152
+ "size": "lg"
153
+ },
154
+ {
155
+ "type": "typography",
156
+ "content": "AgentSearch",
157
+ "variant": "h2"
158
+ }
159
+ ]
131
160
  },
132
161
  {
133
- "type": "typography",
134
- "content": "AgentSearch",
135
- "variant": "h2"
162
+ "type": "stack",
163
+ "direction": "horizontal",
164
+ "gap": "sm",
165
+ "children": [
166
+ {
167
+ "type": "button",
168
+ "label": "Search",
169
+ "event": "SEARCH",
170
+ "variant": "primary",
171
+ "icon": "search"
172
+ },
173
+ {
174
+ "type": "button",
175
+ "label": "Clear",
176
+ "event": "CLEAR",
177
+ "variant": "ghost",
178
+ "icon": "x"
179
+ }
180
+ ]
136
181
  }
137
182
  ]
138
183
  },
@@ -140,29 +185,159 @@
140
185
  "type": "divider"
141
186
  },
142
187
  {
143
- "type": "input",
144
- "label": "Search Query",
145
- "bind": "@entity.query",
146
- "placeholder": "Search codebase..."
147
- },
148
- {
149
- "type": "input",
150
- "label": "Language Filter",
151
- "bind": "@entity.language",
152
- "placeholder": "e.g. typescript, rust"
153
- },
154
- {
155
- "type": "button",
156
- "label": "Search",
157
- "event": "SEARCH",
158
- "variant": "primary",
159
- "icon": "search"
188
+ "type": "data-grid",
189
+ "entity": "AgentSearch",
190
+ "emptyIcon": "inbox",
191
+ "emptyTitle": "No search results",
192
+ "emptyDescription": "Enter a query to search the codebase.",
193
+ "itemActions": [
194
+ {
195
+ "label": "View",
196
+ "event": "VIEW",
197
+ "variant": "ghost",
198
+ "size": "sm"
199
+ }
200
+ ],
201
+ "columns": [
202
+ {
203
+ "name": "query",
204
+ "label": "Query",
205
+ "variant": "h4",
206
+ "icon": "search"
207
+ },
208
+ {
209
+ "name": "language",
210
+ "label": "Language",
211
+ "variant": "badge",
212
+ "colorMap": {
213
+ "active": "success",
214
+ "completed": "success",
215
+ "done": "success",
216
+ "pending": "warning",
217
+ "draft": "warning",
218
+ "scheduled": "warning",
219
+ "inactive": "neutral",
220
+ "archived": "neutral",
221
+ "disabled": "neutral",
222
+ "error": "destructive",
223
+ "cancelled": "destructive",
224
+ "failed": "destructive"
225
+ }
226
+ },
227
+ {
228
+ "name": "resultCount",
229
+ "label": "Result Count",
230
+ "variant": "caption"
231
+ }
232
+ ]
160
233
  }
161
234
  ]
162
235
  }
163
236
  ]
164
237
  ]
165
238
  },
239
+ {
240
+ "from": "browsing",
241
+ "to": "browsing",
242
+ "event": "SEARCHED",
243
+ "effects": [
244
+ [
245
+ "ref",
246
+ "AgentSearch"
247
+ ]
248
+ ]
249
+ }
250
+ ]
251
+ }
252
+ },
253
+ {
254
+ "name": "AgentSearchAgent",
255
+ "linkedEntity": "AgentSearch",
256
+ "category": "interaction",
257
+ "emits": [
258
+ {
259
+ "event": "SEARCHED",
260
+ "scope": "external",
261
+ "payload": [
262
+ {
263
+ "name": "query",
264
+ "type": "string"
265
+ },
266
+ {
267
+ "name": "resultCount",
268
+ "type": "number"
269
+ }
270
+ ]
271
+ }
272
+ ],
273
+ "listens": [
274
+ {
275
+ "event": "SEARCHED",
276
+ "triggers": "INIT",
277
+ "scope": "external"
278
+ }
279
+ ],
280
+ "stateMachine": {
281
+ "states": [
282
+ {
283
+ "name": "idle",
284
+ "isInitial": true
285
+ },
286
+ {
287
+ "name": "searching"
288
+ },
289
+ {
290
+ "name": "results"
291
+ }
292
+ ],
293
+ "events": [
294
+ {
295
+ "key": "INIT",
296
+ "name": "Initialize"
297
+ },
298
+ {
299
+ "key": "SEARCH",
300
+ "name": "Search",
301
+ "payload": [
302
+ {
303
+ "name": "query",
304
+ "type": "string",
305
+ "required": true
306
+ },
307
+ {
308
+ "name": "language",
309
+ "type": "string",
310
+ "required": false
311
+ }
312
+ ]
313
+ },
314
+ {
315
+ "key": "CLEAR",
316
+ "name": "Clear Results"
317
+ }
318
+ ],
319
+ "transitions": [
320
+ {
321
+ "from": "idle",
322
+ "to": "idle",
323
+ "event": "INIT",
324
+ "effects": [
325
+ [
326
+ "fetch",
327
+ "AgentSearch"
328
+ ],
329
+ [
330
+ "render-ui",
331
+ "main",
332
+ {
333
+ "type": "empty-state",
334
+ "icon": "search",
335
+ "title": "Code Search",
336
+ "description": "Code Search is ready"
337
+ }
338
+ ]
339
+ ]
340
+ },
166
341
  {
167
342
  "from": "idle",
168
343
  "to": "searching",
@@ -178,15 +353,6 @@
178
353
  "@entity.language",
179
354
  "@payload.language"
180
355
  ],
181
- [
182
- "render-ui",
183
- "main",
184
- {
185
- "type": "loading-state",
186
- "title": "Searching...",
187
- "message": "Searching codebase..."
188
- }
189
- ],
190
356
  [
191
357
  "agent/search-code",
192
358
  "@payload.query",
@@ -200,91 +366,12 @@
200
366
  "event": "SEARCH",
201
367
  "effects": [
202
368
  [
203
- "render-ui",
204
- "main",
205
- {
206
- "type": "stack",
207
- "direction": "vertical",
208
- "gap": "lg",
209
- "children": [
210
- {
211
- "type": "stack",
212
- "direction": "horizontal",
213
- "gap": "sm",
214
- "align": "center",
215
- "children": [
216
- {
217
- "type": "icon",
218
- "name": "search",
219
- "size": "lg"
220
- },
221
- {
222
- "type": "typography",
223
- "content": "AgentSearch",
224
- "variant": "h2"
225
- },
226
- {
227
- "type": "badge",
228
- "label": "@entity.resultCount"
229
- }
230
- ]
231
- },
232
- {
233
- "type": "divider"
234
- },
235
- {
236
- "type": "stack",
237
- "direction": "horizontal",
238
- "gap": "md",
239
- "children": [
240
- {
241
- "type": "typography",
242
- "variant": "caption",
243
- "content": "Query:"
244
- },
245
- {
246
- "type": "badge",
247
- "label": "@entity.query"
248
- },
249
- {
250
- "type": "typography",
251
- "variant": "caption",
252
- "content": "Language:"
253
- },
254
- {
255
- "type": "badge",
256
- "label": "@entity.language"
257
- }
258
- ]
259
- },
260
- {
261
- "type": "typography",
262
- "variant": "body",
263
- "content": "@entity.resultCount"
264
- },
265
- {
266
- "type": "stack",
267
- "direction": "horizontal",
268
- "gap": "sm",
269
- "children": [
270
- {
271
- "type": "button",
272
- "label": "New Search",
273
- "event": "SEARCH",
274
- "variant": "primary",
275
- "icon": "search"
276
- },
277
- {
278
- "type": "button",
279
- "label": "Clear",
280
- "event": "CLEAR",
281
- "variant": "ghost",
282
- "icon": "x"
283
- }
284
- ]
285
- }
286
- ]
287
- }
369
+ "fetch",
370
+ "AgentSearch"
371
+ ],
372
+ [
373
+ "emit",
374
+ "SEARCHED"
288
375
  ]
289
376
  ]
290
377
  },
@@ -303,15 +390,6 @@
303
390
  "@entity.language",
304
391
  "@payload.language"
305
392
  ],
306
- [
307
- "render-ui",
308
- "main",
309
- {
310
- "type": "loading-state",
311
- "title": "Searching...",
312
- "message": "Searching codebase..."
313
- }
314
- ],
315
393
  [
316
394
  "agent/search-code",
317
395
  "@payload.query",
@@ -343,57 +421,6 @@
343
421
  "set",
344
422
  "@entity.resultCount",
345
423
  0
346
- ],
347
- [
348
- "render-ui",
349
- "main",
350
- {
351
- "type": "stack",
352
- "direction": "vertical",
353
- "gap": "lg",
354
- "children": [
355
- {
356
- "type": "stack",
357
- "direction": "horizontal",
358
- "gap": "sm",
359
- "align": "center",
360
- "children": [
361
- {
362
- "type": "icon",
363
- "name": "search",
364
- "size": "lg"
365
- },
366
- {
367
- "type": "typography",
368
- "content": "AgentSearch",
369
- "variant": "h2"
370
- }
371
- ]
372
- },
373
- {
374
- "type": "divider"
375
- },
376
- {
377
- "type": "input",
378
- "label": "Search Query",
379
- "bind": "@entity.query",
380
- "placeholder": "Search codebase..."
381
- },
382
- {
383
- "type": "input",
384
- "label": "Language Filter",
385
- "bind": "@entity.language",
386
- "placeholder": "e.g. typescript, rust"
387
- },
388
- {
389
- "type": "button",
390
- "label": "Search",
391
- "event": "SEARCH",
392
- "variant": "primary",
393
- "icon": "search"
394
- }
395
- ]
396
- }
397
424
  ]
398
425
  ]
399
426
  }
@@ -407,12 +434,15 @@
407
434
  "path": "/agentsearchs",
408
435
  "traits": [
409
436
  {
410
- "ref": "AgentSearchFlow"
437
+ "ref": "AgentSearchBrowse"
438
+ },
439
+ {
440
+ "ref": "AgentSearchAgent"
411
441
  }
412
442
  ]
413
443
  }
414
444
  ]
415
445
  }
416
446
  ],
417
- "description": "Code search flow atom for agent-powered codebase searching. Uses agent/search-code to find relevant code across a repository. States: idle -> searching -> results."
447
+ "description": "Code search flow atom for agent-powered codebase searching. Composes stdBrowse (results table) with an agent trait that handles agent/search-code."
418
448
  }