@almadar/std 16.243.0 → 16.244.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 (140) hide show
  1. package/behaviors/behaviors-registry.json +4470 -513
  2. package/behaviors/lolo/agent/atoms/std-agent-context.lolo +24 -4
  3. package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +20 -5
  4. package/behaviors/lolo/agent/atoms/std-agent-proposal.lolo +550 -0
  5. package/behaviors/lolo/agent/atoms/std-agent-session.lolo +284 -25
  6. package/behaviors/lolo/agent/atoms/std-agent-suggestions.lolo +841 -0
  7. package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +58 -8
  8. package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +1 -0
  9. package/behaviors/lolo/infra/atoms/std-page-treat.lolo +28 -1
  10. package/behaviors/lolo/ui/avl/atoms/ui-avl-state-machine.lolo +22 -0
  11. package/behaviors/lolo/ui/avl/atoms/ui-avl-transition-explainer.lolo +175 -0
  12. package/behaviors/lolo/ui/avl/atoms/ui-module-card.lolo +22 -0
  13. package/behaviors/lolo/ui/core/atoms/std-app-layout.lolo +23 -4
  14. package/behaviors/lolo/ui/core/atoms/std-hero.lolo +72 -33
  15. package/behaviors/lolo/ui/core/molecules/ui-agent-chat-feed.lolo +1 -1
  16. package/behaviors/lolo/ui/core/molecules/ui-markdown-content.lolo +54 -0
  17. package/behaviors/lolo/ui/core/molecules/ui-upload-drop-zone.lolo +5 -0
  18. package/behaviors/lolo/ui/core/organisms/ui-segment-renderer.lolo +127 -3
  19. package/behaviors/lolo/ui/core/organisms/ui-state-machine-view.lolo +22 -0
  20. package/behaviors/lolo/ui/core/templates/ui-dashboard-layout.lolo +2 -2
  21. package/behaviors/lolo/ui/learning/atoms/std-learn-arrangement.lolo +87 -17
  22. package/behaviors/lolo/ui/learning/atoms/std-learn-classify.lolo +172 -37
  23. package/behaviors/lolo/ui/learning/atoms/std-learn-coupled-sim.lolo +183 -70
  24. package/behaviors/lolo/ui/learning/atoms/std-learn-derivation.lolo +78 -13
  25. package/behaviors/lolo/ui/learning/atoms/std-learn-diagram.lolo +58 -2
  26. package/behaviors/lolo/ui/learning/atoms/std-learn-doser.lolo +107 -12
  27. package/behaviors/lolo/ui/learning/atoms/std-learn-estimate.lolo +83 -10
  28. package/behaviors/lolo/ui/learning/atoms/std-learn-goal-seek.lolo +130 -9
  29. package/behaviors/lolo/ui/learning/atoms/std-learn-grid-sim.lolo +143 -59
  30. package/behaviors/lolo/ui/learning/atoms/std-learn-hotspot.lolo +96 -22
  31. package/behaviors/lolo/ui/learning/atoms/std-learn-live-sim.lolo +66 -5
  32. package/behaviors/lolo/ui/learning/atoms/std-learn-predict.lolo +84 -6
  33. package/behaviors/lolo/ui/learning/atoms/std-learn-sandbox.lolo +80 -14
  34. package/behaviors/lolo/ui/learning/atoms/std-learn-scatter-fit.lolo +99 -5
  35. package/behaviors/lolo/ui/learning/atoms/std-learn-scenario.lolo +81 -7
  36. package/behaviors/lolo/ui/learning/atoms/std-learn-speed-drill.lolo +83 -7
  37. package/behaviors/lolo/ui/learning/atoms/std-learn-stepper.lolo +224 -99
  38. package/behaviors/lolo/ui/learning/atoms/std-learn-tour-3d.lolo +63 -2
  39. package/behaviors/lolo/ui/learning/atoms/std-learn-trace-player.lolo +99 -38
  40. package/behaviors/lolo/ui/learning/atoms/std-learn-transport.lolo +7 -7
  41. package/behaviors/lolo/ui/learning/atoms/std-learn-tree.lolo +69 -4
  42. package/behaviors/lolo-behavior-contracts.json +1 -1
  43. package/behaviors/registry/agent/atoms/std-agent-context.orb +205 -6
  44. package/behaviors/registry/agent/atoms/std-agent-memory.orb +146 -4
  45. package/behaviors/registry/agent/atoms/std-agent-proposal.orb +1972 -0
  46. package/behaviors/registry/agent/atoms/std-agent-session.orb +2021 -597
  47. package/behaviors/registry/agent/atoms/std-agent-suggestions.orb +5079 -0
  48. package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +287 -5
  49. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +7 -0
  50. package/behaviors/registry/factory-signatures.json +1 -1
  51. package/behaviors/registry/infra/atoms/std-page-treat.orb +327 -2
  52. package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +134 -0
  53. package/behaviors/registry/ui/avl/atoms/ui-avl-transition-explainer.orb +678 -0
  54. package/behaviors/registry/ui/avl/atoms/ui-module-card.orb +122 -0
  55. package/behaviors/registry/ui/core/atoms/std-app-layout.orb +73 -4
  56. package/behaviors/registry/ui/core/atoms/std-hero.orb +174 -97
  57. package/behaviors/registry/ui/core/molecules/ui-markdown-content.orb +204 -1
  58. package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +12 -0
  59. package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +683 -30
  60. package/behaviors/registry/ui/learning/atoms/std-learn-arrangement.orb +748 -21
  61. package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1429 -41
  62. package/behaviors/registry/ui/learning/atoms/std-learn-coupled-sim.orb +1031 -185
  63. package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +807 -132
  64. package/behaviors/registry/ui/learning/atoms/std-learn-diagram.orb +553 -6
  65. package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +987 -21
  66. package/behaviors/registry/ui/learning/atoms/std-learn-estimate.orb +582 -16
  67. package/behaviors/registry/ui/learning/atoms/std-learn-goal-seek.orb +954 -13
  68. package/behaviors/registry/ui/learning/atoms/std-learn-grid-sim.orb +828 -88
  69. package/behaviors/registry/ui/learning/atoms/std-learn-hotspot.orb +730 -28
  70. package/behaviors/registry/ui/learning/atoms/std-learn-live-sim.orb +479 -9
  71. package/behaviors/registry/ui/learning/atoms/std-learn-predict.orb +797 -46
  72. package/behaviors/registry/ui/learning/atoms/std-learn-sandbox.orb +757 -58
  73. package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +1176 -164
  74. package/behaviors/registry/ui/learning/atoms/std-learn-scenario.orb +599 -12
  75. package/behaviors/registry/ui/learning/atoms/std-learn-speed-drill.orb +832 -150
  76. package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +1561 -127
  77. package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +655 -6
  78. package/behaviors/registry/ui/learning/atoms/std-learn-trace-player.orb +634 -43
  79. package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +85 -31
  80. package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +425 -9
  81. package/canonical-operators.json +45 -2
  82. package/dist/behaviors/exports-reader.js +16667 -7868
  83. package/dist/behaviors/functions/index.d.ts +711 -32
  84. package/dist/behaviors/functions/index.js +16651 -7869
  85. package/dist/behaviors/index.d.ts +1 -1
  86. package/dist/behaviors/index.js +16668 -7869
  87. package/dist/behaviors/query.js +16667 -7868
  88. package/dist/behaviors-embeddings.hash.json +3 -3
  89. package/dist/behaviors-embeddings.json +77 -53
  90. package/dist/behaviors-registry.json +4470 -513
  91. package/dist/index.d.ts +3 -3
  92. package/dist/index.js +16101 -7275
  93. package/dist/knob-embeddings.hash.json +3 -3
  94. package/dist/knob-embeddings.json +1309 -685
  95. package/dist/modules/anim.d.ts +1 -1
  96. package/dist/modules/array.d.ts +1 -1
  97. package/dist/modules/async.d.ts +1 -1
  98. package/dist/modules/behavior.d.ts +1 -1
  99. package/dist/modules/browser.d.ts +1 -1
  100. package/dist/modules/composition.d.ts +1 -1
  101. package/dist/modules/contract.d.ts +1 -1
  102. package/dist/modules/core.d.ts +1 -1
  103. package/dist/modules/core.js +29 -2
  104. package/dist/modules/data.d.ts +1 -1
  105. package/dist/modules/ease.d.ts +1 -1
  106. package/dist/modules/format.d.ts +1 -1
  107. package/dist/modules/geo.d.ts +1 -1
  108. package/dist/modules/graph.d.ts +1 -1
  109. package/dist/modules/grid.d.ts +1 -1
  110. package/dist/modules/i18n.d.ts +1 -1
  111. package/dist/modules/index.d.ts +1 -1
  112. package/dist/modules/index.js +29 -2
  113. package/dist/modules/integration.d.ts +1 -1
  114. package/dist/modules/json.d.ts +1 -1
  115. package/dist/modules/llm.d.ts +1 -1
  116. package/dist/modules/math.d.ts +1 -1
  117. package/dist/modules/memory.d.ts +1 -1
  118. package/dist/modules/nn.d.ts +1 -1
  119. package/dist/modules/noise.d.ts +1 -1
  120. package/dist/modules/object.d.ts +1 -1
  121. package/dist/modules/os.d.ts +1 -1
  122. package/dist/modules/path.d.ts +1 -1
  123. package/dist/modules/prob.d.ts +1 -1
  124. package/dist/modules/session.d.ts +1 -1
  125. package/dist/modules/str.d.ts +1 -1
  126. package/dist/modules/tensor.d.ts +1 -1
  127. package/dist/modules/time.d.ts +1 -1
  128. package/dist/modules/trace.d.ts +1 -1
  129. package/dist/modules/train.d.ts +1 -1
  130. package/dist/modules/validate.d.ts +1 -1
  131. package/dist/modules/vector.d.ts +1 -1
  132. package/dist/modules/workspace.d.ts +1 -1
  133. package/dist/registry/factory-signatures.json +1 -1
  134. package/dist/registry.d.ts +2 -2
  135. package/dist/registry.js +29 -2
  136. package/dist/{types-Cdb321uM.d.ts → types-Y-yYWEOX.d.ts} +1 -1
  137. package/i18n/ar.json +3 -1
  138. package/i18n/en.json +2 -0
  139. package/i18n/sl.json +3 -1
  140. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
- import { S as StdOperatorMeta, R as RunsOn, a as StdModule, O as OperatorMeta, b as OperatorVisualForm } from './types-Cdb321uM.js';
2
- export { c as OPERATOR_VISUAL_FORMS } from './types-Cdb321uM.js';
1
+ import { S as StdOperatorMeta, R as RunsOn, a as StdModule, O as OperatorMeta, b as OperatorVisualForm } from './types-Y-yYWEOX.js';
2
+ export { c as OPERATOR_VISUAL_FORMS } from './types-Y-yYWEOX.js';
3
3
 
4
4
  /**
5
5
  * Standard Library Registry
package/dist/registry.js CHANGED
@@ -398,6 +398,20 @@ var CORE_OPERATORS = {
398
398
  ],
399
399
  example: '["fn", "item", { "type": "typography", "content": "@item.title" }]'
400
400
  },
401
+ quote: {
402
+ visual: { form: "template" },
403
+ module: "core",
404
+ category: "control",
405
+ minArity: 1,
406
+ maxArity: 1,
407
+ description: "Holds an S-expression as data: nothing inside it is evaluated, and its bindings are not resolved (a guard or effect handed to a diagram)",
408
+ hasSideEffects: false,
409
+ returnType: "sexpr",
410
+ params: [
411
+ { name: "body", type: STRING, description: "The quoted expression as canonical JSON text with every @ written as \\u0040 (the .lolo parser encodes `(quote x)`)" }
412
+ ],
413
+ example: '["quote", "[\\">\\",\\"\\\\\\\\u0040payload.amount\\",0]"]'
414
+ },
401
415
  // --- effect -----------------------------------------------------------------
402
416
  set: {
403
417
  module: "core",
@@ -833,7 +847,7 @@ var CORE_OPERATORS = {
833
847
  category: "effect",
834
848
  minArity: 2,
835
849
  maxArity: 4,
836
- description: "Invoke an external service action. Optional trailing { emit: { success, failure } } options object attaches closed-circuit emit routing (V2 frame contract).",
850
+ description: "Invoke an external service action. Optional trailing { key, emit: { success, failure, cancelled } } options object attaches closed-circuit emit routing (V2 frame contract); key names the call for cancel-call.",
837
851
  hasSideEffects: true,
838
852
  runsOn: "server",
839
853
  returnType: "void",
@@ -849,7 +863,7 @@ var CORE_OPERATORS = {
849
863
  {
850
864
  name: "options",
851
865
  type: { kind: "object", fields: {}, open: true },
852
- description: 'Optional trailing options object. Set `{ emit: { success: "...", failure: "..." } }` to wire closed-circuit result routing (V2 frame).',
866
+ description: 'Optional trailing options object. Set `{ emit: { success: "...", failure: "...", cancelled: "..." } }` to wire closed-circuit result routing (V2 frame), and `key` to name the call for `cancel-call`.',
853
867
  optional: true
854
868
  }
855
869
  ],
@@ -862,6 +876,19 @@ var CORE_OPERATORS = {
862
876
  produces: ANY
863
877
  }
864
878
  },
879
+ "cancel-call": {
880
+ module: "core",
881
+ category: "effect",
882
+ minArity: 1,
883
+ maxArity: 1,
884
+ description: "Abort the in-flight call-service started with this key in the same running app; a no-op when none is in flight. The cancelled call emits its declared emit.cancelled event with { key }, never success or failure.",
885
+ hasSideEffects: true,
886
+ runsOn: "server",
887
+ returnType: "void",
888
+ params: [{ name: "key", type: STRING, description: "The key the call-service declared in its options" }],
889
+ example: '["cancel-call", "@entity.id"]',
890
+ effect: { kind: "cancel-call" }
891
+ },
865
892
  "render-ui": {
866
893
  module: "core",
867
894
  category: "effect",
@@ -159,7 +159,7 @@ type OperatorTypeRef = string | {
159
159
  * validator, LLM skill gen, verify) can trace downstream reactions.
160
160
  */
161
161
  interface OperatorEffectMeta {
162
- kind: 'emit' | 'persist' | 'fetch' | 'fetch-stream' | 'ref' | 'render-ui' | 'navigate' | 'navigate-back' | 'notify' | 'spawn' | 'despawn' | 'set' | 'call-service' | 'log' | 'send-server' | 'custom';
162
+ kind: 'emit' | 'persist' | 'fetch' | 'fetch-stream' | 'ref' | 'render-ui' | 'navigate' | 'navigate-back' | 'notify' | 'spawn' | 'despawn' | 'set' | 'call-service' | 'cancel-call' | 'log' | 'send-server' | 'custom';
163
163
  /** What the effect puts onto the bus / state when it resolves. */
164
164
  produces?: OperatorTypeRef;
165
165
  /** Effect-specific config keys and their declared types. */
package/i18n/ar.json CHANGED
@@ -437,6 +437,8 @@
437
437
  "workspace/write-file": "مساحة_عمل/كتابة_ملف",
438
438
  "workspace/write-orbital": "مساحة_عمل/كتابة_مدار",
439
439
  "workspace/write-plan": "مساحة_عمل/كتابة_خطة",
440
- "workspace/write-schema": "مساحة_عمل/كتابة_مخطط"
440
+ "workspace/write-schema": "مساحة_عمل/كتابة_مخطط",
441
+ "quote": "اقتباس",
442
+ "cancel-call": "إلغاء_استدعاء"
441
443
  }
442
444
  }
package/i18n/en.json CHANGED
@@ -79,6 +79,7 @@
79
79
  "browser/open-file-picker": "browser/open-file-picker",
80
80
  "browser/push-subscribe": "browser/push-subscribe",
81
81
  "call-service": "call-service",
82
+ "cancel-call": "cancel-call",
82
83
  "checkpoint/load": "checkpoint/load",
83
84
  "checkpoint/save": "checkpoint/save",
84
85
  "compose/compose-all": "compose/compose-all",
@@ -264,6 +265,7 @@
264
265
  "prob/seed": "prob/seed",
265
266
  "prob/uniform": "prob/uniform",
266
267
  "prob/variance": "prob/variance",
268
+ "quote": "quote",
267
269
  "ref": "ref",
268
270
  "render-ui": "render-ui",
269
271
  "send-server": "send-server",
package/i18n/sl.json CHANGED
@@ -437,6 +437,8 @@
437
437
  "workspace/write-file": "delovniprostor/pisi-datoteka",
438
438
  "workspace/write-orbital": "delovniprostor/pisi-orbitala",
439
439
  "workspace/write-plan": "delovniprostor/pisi-nacrt",
440
- "workspace/write-schema": "delovniprostor/pisi-shema"
440
+ "workspace/write-schema": "delovniprostor/pisi-shema",
441
+ "quote": "citat",
442
+ "cancel-call": "preklici-klic"
441
443
  }
442
444
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/std",
3
- "version": "16.243.0",
3
+ "version": "16.244.0",
4
4
  "description": "Standard library operators for Almadar (math, string, array, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -87,11 +87,11 @@
87
87
  "compiler": ">=4.10.0"
88
88
  },
89
89
  "dependencies": {
90
- "@almadar/core": "^10.118.0"
90
+ "@almadar/core": "^10.119.0"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@almadar/eslint-plugin": "^2.21.0",
94
- "@almadar/llm": "^2.60.0",
94
+ "@almadar/llm": "^2.61.0",
95
95
  "@types/node": "^20.0.0",
96
96
  "@typescript-eslint/parser": "8.65.0",
97
97
  "eslint": "10.0.0",