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
@@ -210,9 +210,13 @@ const CODE_TITLES = {
210
210
  // PLAN-5 2-R (G-393; checks/state.ts; dev entry)
211
211
  SYG238: 'Root component with a model but no initial state',
212
212
  // PLAN-6 A-1 (sygnal/ai agent layer, src/extra/ai/agent; runtime, while an agent layer runs)
213
- SYG240: 'Agent action input has no JSON Schema form',
214
- SYG241: 'Agent read, when or label threw',
215
- SYG243: 'Agent action input schema converted with losses',
213
+ SYG240: 'Agent action or query input has no JSON Schema form',
214
+ SYG241: 'Agent read, query, when, until or label threw',
215
+ SYG243: 'Agent action or query input schema converted with losses',
216
+ // agent queries (src/extra/ai/agent; runtime and sygnal-check)
217
+ SYG246: 'Agent query is not a synchronous function',
218
+ SYG247: 'Agent query has the tool name of an action',
219
+ SYG248: 'Agent action until names no resource',
216
220
  // PLAN-6 A-2 (src/extra/ai/webmcp.ts; reported with the severity passed, dev)
217
221
  SYG242: 'WebMCP tool over a size budget',
218
222
  SYG244: 'Agent read returns strings, untrusted not declared',
@@ -383,6 +387,9 @@ const DEV_CODE_SEVERITY = {
383
387
  SYG240: 'error',
384
388
  SYG241: 'error',
385
389
  SYG243: 'warn',
390
+ SYG246: 'error',
391
+ SYG247: 'warn',
392
+ SYG248: 'warn',
386
393
  // PLAN-6 A-2 (WebMCP, reported with the severity passed)
387
394
  SYG242: 'warn',
388
395
  SYG244: 'warn',