sygnal 6.1.1 → 6.2.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 (41) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/astro/server.cjs.js.map +1 -1
  3. package/dist/astro/server.mjs.map +1 -1
  4. package/dist/diagnostics.cjs.js +10 -3
  5. package/dist/diagnostics.cjs.js.map +1 -1
  6. package/dist/diagnostics.esm.js +10 -3
  7. package/dist/diagnostics.esm.js.map +1 -1
  8. package/dist/guide/adapters.md +2 -1
  9. package/dist/guide/agent.md +112 -6
  10. package/dist/guide/ai-chat.md +60 -16
  11. package/dist/guide/ai-decisions.md +1 -1
  12. package/dist/guide/behaviors.md +1 -1
  13. package/dist/guide/error-boundaries.md +2 -1
  14. package/dist/guide/forms.md +1 -1
  15. package/dist/guide/http.md +4 -4
  16. package/dist/guide/mcp-apps.md +4 -2
  17. package/dist/guide/persistence.md +1 -1
  18. package/dist/guide/recipes/ai-form-fill.md +1 -1
  19. package/dist/guide/recipes/ai-summarize.md +1 -1
  20. package/dist/guide/recipes/ai-support-inbox.md +1 -1
  21. package/dist/guide/resources.md +11 -10
  22. package/dist/guide/ui/combobox.md +1 -1
  23. package/dist/guide/undo.md +1 -1
  24. package/dist/guide/web-components.md +1 -0
  25. package/dist/guide/webmcp.md +1 -2
  26. package/dist/index.cjs.js +155 -31
  27. package/dist/index.cjs.js.map +1 -1
  28. package/dist/index.d.ts +42 -6
  29. package/dist/index.esm.js +155 -31
  30. package/dist/index.esm.js.map +1 -1
  31. package/dist/sygnal.min.js +1 -1
  32. package/dist/sygnal.min.js.map +1 -1
  33. package/dist/vike/config/package.json +1 -1
  34. package/llms.txt +2 -2
  35. package/package.json +1 -1
  36. package/src/ai.d.ts +41 -5
  37. package/src/extra/ai/agent/index.ts +111 -26
  38. package/src/extra/ai/chat/behavior.ts +14 -6
  39. package/src/extra/ai/webmcp.ts +5 -3
  40. package/src/extra/diagnostics/codes.ts +10 -3
  41. package/src/index.d.ts +1 -1
@@ -230,9 +230,13 @@ const CODE_TITLES = {
230
230
  // PLAN-5 2-R (G-393; checks/state.ts; dev entry)
231
231
  SYG238: 'Root component with a model but no initial state',
232
232
  // PLAN-6 A-1 (sygnal/ai agent layer, src/extra/ai/agent; runtime, while an agent layer runs)
233
- SYG240: 'Agent action input has no JSON Schema form',
234
- SYG241: 'Agent read, when or label threw',
235
- SYG243: 'Agent action input schema converted with losses',
233
+ SYG240: 'Agent action or query input has no JSON Schema form',
234
+ SYG241: 'Agent read, query, when, until or label threw',
235
+ SYG243: 'Agent action or query input schema converted with losses',
236
+ // agent queries (src/extra/ai/agent; runtime and sygnal-check)
237
+ SYG246: 'Agent query is not a synchronous function',
238
+ SYG247: 'Agent query has the tool name of an action',
239
+ SYG248: 'Agent action until names no resource',
236
240
  // PLAN-6 A-2 (src/extra/ai/webmcp.ts; reported with the severity passed, dev)
237
241
  SYG242: 'WebMCP tool over a size budget',
238
242
  SYG244: 'Agent read returns strings, untrusted not declared',
@@ -403,6 +407,9 @@ const DEV_CODE_SEVERITY = {
403
407
  SYG240: 'error',
404
408
  SYG241: 'error',
405
409
  SYG243: 'warn',
410
+ SYG246: 'error',
411
+ SYG247: 'warn',
412
+ SYG248: 'warn',
406
413
  // PLAN-6 A-2 (WebMCP, reported with the severity passed)
407
414
  SYG242: 'warn',
408
415
  SYG244: 'warn',