@almadar/std 16.234.0 → 16.235.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 (48) hide show
  1. package/dist/behaviors-embeddings.hash.json +1 -1
  2. package/dist/behaviors-embeddings.json +1 -1
  3. package/dist/index.d.ts +2 -2
  4. package/dist/index.js +17 -0
  5. package/dist/knob-embeddings.hash.json +1 -1
  6. package/dist/knob-embeddings.json +1 -1
  7. package/dist/modules/anim.d.ts +1 -1
  8. package/dist/modules/array.d.ts +1 -1
  9. package/dist/modules/async.d.ts +1 -1
  10. package/dist/modules/async.js +9 -0
  11. package/dist/modules/behavior.d.ts +1 -1
  12. package/dist/modules/browser.d.ts +1 -1
  13. package/dist/modules/composition.d.ts +1 -1
  14. package/dist/modules/contract.d.ts +1 -1
  15. package/dist/modules/core.d.ts +1 -1
  16. package/dist/modules/core.js +8 -0
  17. package/dist/modules/data.d.ts +1 -1
  18. package/dist/modules/ease.d.ts +1 -1
  19. package/dist/modules/format.d.ts +1 -1
  20. package/dist/modules/geo.d.ts +1 -1
  21. package/dist/modules/graph.d.ts +1 -1
  22. package/dist/modules/grid.d.ts +1 -1
  23. package/dist/modules/index.d.ts +1 -1
  24. package/dist/modules/index.js +17 -0
  25. package/dist/modules/integration.d.ts +1 -1
  26. package/dist/modules/json.d.ts +1 -1
  27. package/dist/modules/llm.d.ts +1 -1
  28. package/dist/modules/math.d.ts +1 -1
  29. package/dist/modules/memory.d.ts +1 -1
  30. package/dist/modules/nn.d.ts +1 -1
  31. package/dist/modules/noise.d.ts +1 -1
  32. package/dist/modules/object.d.ts +1 -1
  33. package/dist/modules/os.d.ts +1 -1
  34. package/dist/modules/path.d.ts +1 -1
  35. package/dist/modules/prob.d.ts +1 -1
  36. package/dist/modules/session.d.ts +1 -1
  37. package/dist/modules/str.d.ts +1 -1
  38. package/dist/modules/tensor.d.ts +1 -1
  39. package/dist/modules/time.d.ts +1 -1
  40. package/dist/modules/trace.d.ts +1 -1
  41. package/dist/modules/train.d.ts +1 -1
  42. package/dist/modules/validate.d.ts +1 -1
  43. package/dist/modules/vector.d.ts +1 -1
  44. package/dist/modules/workspace.d.ts +1 -1
  45. package/dist/registry.d.ts +5 -2
  46. package/dist/registry.js +38 -1
  47. package/dist/{types-DwAW4Nni.d.ts → types-Ggla7OK7.d.ts} +8 -1
  48. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.234.0",
2
+ "version": "16.235.0",
3
3
  "model": "baai/bge-base-en-v1.5",
4
4
  "dimensions": 768,
5
5
  "registryHash": "791cd100fa251a6ba30ae6d5814fe709a329261180cf64daacddbfa95d9c02d6",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.234.0",
2
+ "version": "16.235.0",
3
3
  "model": "baai/bge-base-en-v1.5",
4
4
  "dimensions": 768,
5
5
  "encoding": "int8-b64",
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as StdModule, S as StdOperatorMeta } from './types-DwAW4Nni.js';
2
- export { B as BasicReturnType, b as OPERATOR_CATEGORIES, c as OperatorCategory, d as OperatorEffectMeta, O as OperatorMeta, e as OperatorTypeRef, R as RunsOn, f as STD_MODULES, g as STD_OPERATOR_CATEGORIES, h as StdOperatorCategory, i as getFunctionFromOperator, j as getModuleFromOperator, k as isStdCategory, l as isStdOperator, m as makeStdOperator } from './types-DwAW4Nni.js';
1
+ import { a as StdModule, S as StdOperatorMeta } from './types-Ggla7OK7.js';
2
+ export { B as BasicReturnType, d as OPERATOR_CATEGORIES, e as OperatorCategory, f as OperatorEffectMeta, O as OperatorMeta, g as OperatorTypeRef, R as RunsOn, h as STD_MODULES, i as STD_OPERATOR_CATEGORIES, j as StdOperatorCategory, k as getFunctionFromOperator, l as getModuleFromOperator, m as isStdCategory, n as isStdOperator, o as makeStdOperator } from './types-Ggla7OK7.js';
3
3
  export { STD_OPERATORS as OPERATORS, OPERATOR_NAMES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, assertOperatorArity, getAllStdOperators as getAllOperatorNames, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getOperatorRunsOn, getOperatorsRunningOn, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownStdOperator as isKnownOperator, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateStdOperatorArity as validateOperatorArity, validateOperatorArityExtended, validateStdOperatorArity } from './registry.js';
4
4
  export { CORE_OPERATORS, getCoreOperators } from './modules/core.js';
5
5
  export { MATH_OPERATORS } from './modules/math.js';
package/dist/index.js CHANGED
@@ -359,6 +359,7 @@ var CORE_OPERATORS = {
359
359
  },
360
360
  // --- logic ------------------------------------------------------------------
361
361
  and: {
362
+ visual: { form: "series" },
362
363
  module: "core",
363
364
  category: "logic",
364
365
  minArity: 2,
@@ -371,6 +372,7 @@ var CORE_OPERATORS = {
371
372
  example: '["and", ["=", "active", "active"], [">", 5, 0]]'
372
373
  },
373
374
  or: {
375
+ visual: { form: "parallel" },
374
376
  module: "core",
375
377
  category: "logic",
376
378
  minArity: 2,
@@ -383,6 +385,7 @@ var CORE_OPERATORS = {
383
385
  example: '["or", ["=", "admin", "user"], ["=", "admin", "owner"]]'
384
386
  },
385
387
  not: {
388
+ visual: { form: "invert" },
386
389
  module: "core",
387
390
  category: "logic",
388
391
  minArity: 1,
@@ -394,6 +397,7 @@ var CORE_OPERATORS = {
394
397
  example: '["not", false]'
395
398
  },
396
399
  if: {
400
+ visual: { form: "branch" },
397
401
  module: "core",
398
402
  category: "logic",
399
403
  minArity: 3,
@@ -411,6 +415,7 @@ var CORE_OPERATORS = {
411
415
  },
412
416
  // --- control ----------------------------------------------------------------
413
417
  let: {
418
+ visual: { form: "scope" },
414
419
  module: "core",
415
420
  category: "control",
416
421
  minArity: 2,
@@ -429,6 +434,7 @@ var CORE_OPERATORS = {
429
434
  example: '["let", [["x", 10]], ["+", "x", 1]]'
430
435
  },
431
436
  do: {
437
+ visual: { form: "ladder" },
432
438
  module: "core",
433
439
  category: "control",
434
440
  minArity: 1,
@@ -451,6 +457,7 @@ var CORE_OPERATORS = {
451
457
  example: '["list", "path", "method", "status"] // => ["path", "method", "status"]'
452
458
  },
453
459
  when: {
460
+ visual: { form: "branch" },
454
461
  module: "core",
455
462
  category: "control",
456
463
  minArity: 2,
@@ -465,6 +472,7 @@ var CORE_OPERATORS = {
465
472
  example: '["when", [">", "@entity.health", 0], ["emit", "ALIVE"]]'
466
473
  },
467
474
  fn: {
475
+ visual: { form: "template" },
468
476
  module: "core",
469
477
  category: "control",
470
478
  minArity: 2,
@@ -3294,6 +3302,7 @@ var FORMAT_OPERATORS = {
3294
3302
  // modules/async.ts
3295
3303
  var ASYNC_OPERATORS = {
3296
3304
  "async/delay": {
3305
+ visual: { form: "delay" },
3297
3306
  module: "async",
3298
3307
  category: "std-async",
3299
3308
  minArity: 1,
@@ -3309,6 +3318,7 @@ var ASYNC_OPERATORS = {
3309
3318
  example: '["async/delay", 2000, ["emit", "RETRY"]] // Wait 2s then emit'
3310
3319
  },
3311
3320
  "async/interval": {
3321
+ visual: { form: "delay" },
3312
3322
  module: "async",
3313
3323
  category: "std-async",
3314
3324
  minArity: 2,
@@ -3324,6 +3334,7 @@ var ASYNC_OPERATORS = {
3324
3334
  example: '["async/interval", 5000, ["emit", "POLL_TICK"]] // Emit every 5s'
3325
3335
  },
3326
3336
  "async/timeout": {
3337
+ visual: { form: "delay" },
3327
3338
  module: "async",
3328
3339
  category: "std-async",
3329
3340
  minArity: 2,
@@ -3339,6 +3350,7 @@ var ASYNC_OPERATORS = {
3339
3350
  example: '["async/timeout", ["call", "api", "fetchData"], 5000]'
3340
3351
  },
3341
3352
  "async/debounce": {
3353
+ visual: { form: "delay" },
3342
3354
  module: "async",
3343
3355
  category: "std-async",
3344
3356
  minArity: 2,
@@ -3354,6 +3366,7 @@ var ASYNC_OPERATORS = {
3354
3366
  example: '["async/debounce", "SEARCH", 300]'
3355
3367
  },
3356
3368
  "async/throttle": {
3369
+ visual: { form: "delay" },
3357
3370
  module: "async",
3358
3371
  category: "std-async",
3359
3372
  minArity: 2,
@@ -3369,6 +3382,7 @@ var ASYNC_OPERATORS = {
3369
3382
  example: '["async/throttle", "SCROLL", 100]'
3370
3383
  },
3371
3384
  "async/retry": {
3385
+ visual: { form: "delay" },
3372
3386
  module: "async",
3373
3387
  category: "std-async",
3374
3388
  minArity: 2,
@@ -3386,6 +3400,7 @@ var ASYNC_OPERATORS = {
3386
3400
  { "attempts": 3, "backoff": "exponential", "baseDelay": 1000 }]`
3387
3401
  },
3388
3402
  "async/race": {
3403
+ visual: { form: "parallel" },
3389
3404
  module: "async",
3390
3405
  category: "std-async",
3391
3406
  minArity: 2,
@@ -3398,6 +3413,7 @@ var ASYNC_OPERATORS = {
3398
3413
  example: '["async/race", ["call", "api1"], ["call", "api2"]]'
3399
3414
  },
3400
3415
  "async/all": {
3416
+ visual: { form: "parallel" },
3401
3417
  module: "async",
3402
3418
  category: "std-async",
3403
3419
  minArity: 2,
@@ -3410,6 +3426,7 @@ var ASYNC_OPERATORS = {
3410
3426
  example: '["async/all", ["call", "api1"], ["call", "api2"]]'
3411
3427
  },
3412
3428
  "async/sequence": {
3429
+ visual: { form: "ladder" },
3413
3430
  module: "async",
3414
3431
  category: "std-async",
3415
3432
  minArity: 2,
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.234.0",
2
+ "version": "16.235.0",
3
3
  "model": "baai/bge-base-en-v1.5",
4
4
  "dimensions": 768,
5
5
  "registryHash": "791cd100fa251a6ba30ae6d5814fe709a329261180cf64daacddbfa95d9c02d6",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.234.0",
2
+ "version": "16.235.0",
3
3
  "model": "baai/bge-base-en-v1.5",
4
4
  "dimensions": 768,
5
5
  "encoding": "int8-b64",
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Anim Module - Sprite Animation Helpers
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Array Module - Collection Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Async Module - Asynchronous Operations
@@ -1,6 +1,7 @@
1
1
  // modules/async.ts
2
2
  var ASYNC_OPERATORS = {
3
3
  "async/delay": {
4
+ visual: { form: "delay" },
4
5
  module: "async",
5
6
  category: "std-async",
6
7
  minArity: 1,
@@ -16,6 +17,7 @@ var ASYNC_OPERATORS = {
16
17
  example: '["async/delay", 2000, ["emit", "RETRY"]] // Wait 2s then emit'
17
18
  },
18
19
  "async/interval": {
20
+ visual: { form: "delay" },
19
21
  module: "async",
20
22
  category: "std-async",
21
23
  minArity: 2,
@@ -31,6 +33,7 @@ var ASYNC_OPERATORS = {
31
33
  example: '["async/interval", 5000, ["emit", "POLL_TICK"]] // Emit every 5s'
32
34
  },
33
35
  "async/timeout": {
36
+ visual: { form: "delay" },
34
37
  module: "async",
35
38
  category: "std-async",
36
39
  minArity: 2,
@@ -46,6 +49,7 @@ var ASYNC_OPERATORS = {
46
49
  example: '["async/timeout", ["call", "api", "fetchData"], 5000]'
47
50
  },
48
51
  "async/debounce": {
52
+ visual: { form: "delay" },
49
53
  module: "async",
50
54
  category: "std-async",
51
55
  minArity: 2,
@@ -61,6 +65,7 @@ var ASYNC_OPERATORS = {
61
65
  example: '["async/debounce", "SEARCH", 300]'
62
66
  },
63
67
  "async/throttle": {
68
+ visual: { form: "delay" },
64
69
  module: "async",
65
70
  category: "std-async",
66
71
  minArity: 2,
@@ -76,6 +81,7 @@ var ASYNC_OPERATORS = {
76
81
  example: '["async/throttle", "SCROLL", 100]'
77
82
  },
78
83
  "async/retry": {
84
+ visual: { form: "delay" },
79
85
  module: "async",
80
86
  category: "std-async",
81
87
  minArity: 2,
@@ -93,6 +99,7 @@ var ASYNC_OPERATORS = {
93
99
  { "attempts": 3, "backoff": "exponential", "baseDelay": 1000 }]`
94
100
  },
95
101
  "async/race": {
102
+ visual: { form: "parallel" },
96
103
  module: "async",
97
104
  category: "std-async",
98
105
  minArity: 2,
@@ -105,6 +112,7 @@ var ASYNC_OPERATORS = {
105
112
  example: '["async/race", ["call", "api1"], ["call", "api2"]]'
106
113
  },
107
114
  "async/all": {
115
+ visual: { form: "parallel" },
108
116
  module: "async",
109
117
  category: "std-async",
110
118
  minArity: 2,
@@ -117,6 +125,7 @@ var ASYNC_OPERATORS = {
117
125
  example: '["async/all", ["call", "api1"], ["call", "api2"]]'
118
126
  },
119
127
  "async/sequence": {
128
+ visual: { form: "ladder" },
120
129
  module: "async",
121
130
  category: "std-async",
122
131
  minArity: 2,
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Behavior Module - Orbital behavior composition, instantiation, validation, and lolo emission.
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Browser Module - Browser Device Operators (client host path)
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Composition Module - Behavior Composition Operators
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Contract Module - ML Contract Validation Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Core Module - Language Primitives
@@ -205,6 +205,7 @@ var CORE_OPERATORS = {
205
205
  },
206
206
  // --- logic ------------------------------------------------------------------
207
207
  and: {
208
+ visual: { form: "series" },
208
209
  module: "core",
209
210
  category: "logic",
210
211
  minArity: 2,
@@ -217,6 +218,7 @@ var CORE_OPERATORS = {
217
218
  example: '["and", ["=", "active", "active"], [">", 5, 0]]'
218
219
  },
219
220
  or: {
221
+ visual: { form: "parallel" },
220
222
  module: "core",
221
223
  category: "logic",
222
224
  minArity: 2,
@@ -229,6 +231,7 @@ var CORE_OPERATORS = {
229
231
  example: '["or", ["=", "admin", "user"], ["=", "admin", "owner"]]'
230
232
  },
231
233
  not: {
234
+ visual: { form: "invert" },
232
235
  module: "core",
233
236
  category: "logic",
234
237
  minArity: 1,
@@ -240,6 +243,7 @@ var CORE_OPERATORS = {
240
243
  example: '["not", false]'
241
244
  },
242
245
  if: {
246
+ visual: { form: "branch" },
243
247
  module: "core",
244
248
  category: "logic",
245
249
  minArity: 3,
@@ -257,6 +261,7 @@ var CORE_OPERATORS = {
257
261
  },
258
262
  // --- control ----------------------------------------------------------------
259
263
  let: {
264
+ visual: { form: "scope" },
260
265
  module: "core",
261
266
  category: "control",
262
267
  minArity: 2,
@@ -275,6 +280,7 @@ var CORE_OPERATORS = {
275
280
  example: '["let", [["x", 10]], ["+", "x", 1]]'
276
281
  },
277
282
  do: {
283
+ visual: { form: "ladder" },
278
284
  module: "core",
279
285
  category: "control",
280
286
  minArity: 1,
@@ -297,6 +303,7 @@ var CORE_OPERATORS = {
297
303
  example: '["list", "path", "method", "status"] // => ["path", "method", "status"]'
298
304
  },
299
305
  when: {
306
+ visual: { form: "branch" },
300
307
  module: "core",
301
308
  category: "control",
302
309
  minArity: 2,
@@ -311,6 +318,7 @@ var CORE_OPERATORS = {
311
318
  example: '["when", [">", "@entity.health", 0], ["emit", "ALIVE"]]'
312
319
  },
313
320
  fn: {
321
+ visual: { form: "template" },
314
322
  module: "core",
315
323
  category: "control",
316
324
  minArity: 2,
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Data Module - ML Data Preprocessing Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Ease Module - Easing & Interpolation Curves
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Format Module - Display Formatting
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Geo Module - 2D Collision & Geometry
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Graph Module - Graph Neural Network Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Grid Module - Tile/Cell Coordinate Operations
@@ -32,4 +32,4 @@ export { MEMORY_OPERATORS, getMemoryOperators } from './memory.js';
32
32
  export { TRACE_OPERATORS, getTraceOperators } from './trace.js';
33
33
  export { BEHAVIOR_OPERATORS, getBehaviorOperators } from './behavior.js';
34
34
  export { INTEGRATION_OPERATORS, getIntegrationOperators } from './integration.js';
35
- import '../types-DwAW4Nni.js';
35
+ import '../types-Ggla7OK7.js';
@@ -205,6 +205,7 @@ var CORE_OPERATORS = {
205
205
  },
206
206
  // --- logic ------------------------------------------------------------------
207
207
  and: {
208
+ visual: { form: "series" },
208
209
  module: "core",
209
210
  category: "logic",
210
211
  minArity: 2,
@@ -217,6 +218,7 @@ var CORE_OPERATORS = {
217
218
  example: '["and", ["=", "active", "active"], [">", 5, 0]]'
218
219
  },
219
220
  or: {
221
+ visual: { form: "parallel" },
220
222
  module: "core",
221
223
  category: "logic",
222
224
  minArity: 2,
@@ -229,6 +231,7 @@ var CORE_OPERATORS = {
229
231
  example: '["or", ["=", "admin", "user"], ["=", "admin", "owner"]]'
230
232
  },
231
233
  not: {
234
+ visual: { form: "invert" },
232
235
  module: "core",
233
236
  category: "logic",
234
237
  minArity: 1,
@@ -240,6 +243,7 @@ var CORE_OPERATORS = {
240
243
  example: '["not", false]'
241
244
  },
242
245
  if: {
246
+ visual: { form: "branch" },
243
247
  module: "core",
244
248
  category: "logic",
245
249
  minArity: 3,
@@ -257,6 +261,7 @@ var CORE_OPERATORS = {
257
261
  },
258
262
  // --- control ----------------------------------------------------------------
259
263
  let: {
264
+ visual: { form: "scope" },
260
265
  module: "core",
261
266
  category: "control",
262
267
  minArity: 2,
@@ -275,6 +280,7 @@ var CORE_OPERATORS = {
275
280
  example: '["let", [["x", 10]], ["+", "x", 1]]'
276
281
  },
277
282
  do: {
283
+ visual: { form: "ladder" },
278
284
  module: "core",
279
285
  category: "control",
280
286
  minArity: 1,
@@ -297,6 +303,7 @@ var CORE_OPERATORS = {
297
303
  example: '["list", "path", "method", "status"] // => ["path", "method", "status"]'
298
304
  },
299
305
  when: {
306
+ visual: { form: "branch" },
300
307
  module: "core",
301
308
  category: "control",
302
309
  minArity: 2,
@@ -311,6 +318,7 @@ var CORE_OPERATORS = {
311
318
  example: '["when", [">", "@entity.health", 0], ["emit", "ALIVE"]]'
312
319
  },
313
320
  fn: {
321
+ visual: { form: "template" },
314
322
  module: "core",
315
323
  category: "control",
316
324
  minArity: 2,
@@ -3167,6 +3175,7 @@ function getFormatOperators() {
3167
3175
  // modules/async.ts
3168
3176
  var ASYNC_OPERATORS = {
3169
3177
  "async/delay": {
3178
+ visual: { form: "delay" },
3170
3179
  module: "async",
3171
3180
  category: "std-async",
3172
3181
  minArity: 1,
@@ -3182,6 +3191,7 @@ var ASYNC_OPERATORS = {
3182
3191
  example: '["async/delay", 2000, ["emit", "RETRY"]] // Wait 2s then emit'
3183
3192
  },
3184
3193
  "async/interval": {
3194
+ visual: { form: "delay" },
3185
3195
  module: "async",
3186
3196
  category: "std-async",
3187
3197
  minArity: 2,
@@ -3197,6 +3207,7 @@ var ASYNC_OPERATORS = {
3197
3207
  example: '["async/interval", 5000, ["emit", "POLL_TICK"]] // Emit every 5s'
3198
3208
  },
3199
3209
  "async/timeout": {
3210
+ visual: { form: "delay" },
3200
3211
  module: "async",
3201
3212
  category: "std-async",
3202
3213
  minArity: 2,
@@ -3212,6 +3223,7 @@ var ASYNC_OPERATORS = {
3212
3223
  example: '["async/timeout", ["call", "api", "fetchData"], 5000]'
3213
3224
  },
3214
3225
  "async/debounce": {
3226
+ visual: { form: "delay" },
3215
3227
  module: "async",
3216
3228
  category: "std-async",
3217
3229
  minArity: 2,
@@ -3227,6 +3239,7 @@ var ASYNC_OPERATORS = {
3227
3239
  example: '["async/debounce", "SEARCH", 300]'
3228
3240
  },
3229
3241
  "async/throttle": {
3242
+ visual: { form: "delay" },
3230
3243
  module: "async",
3231
3244
  category: "std-async",
3232
3245
  minArity: 2,
@@ -3242,6 +3255,7 @@ var ASYNC_OPERATORS = {
3242
3255
  example: '["async/throttle", "SCROLL", 100]'
3243
3256
  },
3244
3257
  "async/retry": {
3258
+ visual: { form: "delay" },
3245
3259
  module: "async",
3246
3260
  category: "std-async",
3247
3261
  minArity: 2,
@@ -3259,6 +3273,7 @@ var ASYNC_OPERATORS = {
3259
3273
  { "attempts": 3, "backoff": "exponential", "baseDelay": 1000 }]`
3260
3274
  },
3261
3275
  "async/race": {
3276
+ visual: { form: "parallel" },
3262
3277
  module: "async",
3263
3278
  category: "std-async",
3264
3279
  minArity: 2,
@@ -3271,6 +3286,7 @@ var ASYNC_OPERATORS = {
3271
3286
  example: '["async/race", ["call", "api1"], ["call", "api2"]]'
3272
3287
  },
3273
3288
  "async/all": {
3289
+ visual: { form: "parallel" },
3274
3290
  module: "async",
3275
3291
  category: "std-async",
3276
3292
  minArity: 2,
@@ -3283,6 +3299,7 @@ var ASYNC_OPERATORS = {
3283
3299
  example: '["async/all", ["call", "api1"], ["call", "api2"]]'
3284
3300
  },
3285
3301
  "async/sequence": {
3302
+ visual: { form: "ladder" },
3286
3303
  module: "async",
3287
3304
  category: "std-async",
3288
3305
  minArity: 2,
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Integration Module - External integration operators (HTTP, GitHub, etc.)
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * JSON Module - JSON parsing and serialization
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * LLM Module - LLM generation, tool-calling, embeddings, and context management.
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Math Module - Numeric Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Memory Module - Agent memory recall, store, and listing.
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Neural Network Module - Neural Network Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Noise Module - Coherent Procedural Noise
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Object Module - Object Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * OS Module - Operating System Event Watchers
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Path Module - Grid Pathfinding
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Prob Module - Probabilistic Programming Operators
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Session Module - Per-orbital generation context (spec, memory, history, errors).
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * String Module - String Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Tensor Module - Tensor Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Time Module - Date and Time Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Trace Module - Observability: trace event emission and structured logging.
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Training Module - Neural Network Training Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Validate Module - Input Validation
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Vec Module - 2D/3D Vector Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta } from '../types-Ggla7OK7.js';
2
2
 
3
3
  /**
4
4
  * Workspace Module - Orbital workspace file operations.
@@ -1,4 +1,5 @@
1
- import { S as StdOperatorMeta, a as StdModule, O as OperatorMeta, R as RunsOn } from './types-DwAW4Nni.js';
1
+ import { S as StdOperatorMeta, a as StdModule, O as OperatorMeta, R as RunsOn, b as OperatorVisualForm } from './types-Ggla7OK7.js';
2
+ export { c as OPERATOR_VISUAL_FORMS } from './types-Ggla7OK7.js';
2
3
 
3
4
  /**
4
5
  * Standard Library Registry
@@ -152,5 +153,7 @@ declare function getStdLibStats(): {
152
153
  effectOperators: number;
153
154
  lambdaOperators: number;
154
155
  };
156
+ /** The AVL circuit form of an operator: its declared form, else conveyor (takes a lambda), actuator (side effect) or block. Null when unregistered. */
157
+ declare function operatorVisualForm(operator: string): OperatorVisualForm | null;
155
158
 
156
- export { OPERATOR_NAMES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, assertOperatorArity, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getOperatorRunsOn, getOperatorsRunningOn, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateOperatorArityExtended, validateStdOperatorArity };
159
+ export { OPERATOR_NAMES, OperatorVisualForm, STD_OPERATORS, STD_OPERATORS_BY_MODULE, assertOperatorArity, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getOperatorRunsOn, getOperatorsRunningOn, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, operatorVisualForm, validateOperatorArityExtended, validateStdOperatorArity };
package/dist/registry.js CHANGED
@@ -36,6 +36,19 @@ var STD_MODULES = [
36
36
  "behavior",
37
37
  "integration"
38
38
  ];
39
+ var OPERATOR_VISUAL_FORMS = [
40
+ "block",
41
+ "series",
42
+ "parallel",
43
+ "invert",
44
+ "branch",
45
+ "scope",
46
+ "template",
47
+ "conveyor",
48
+ "ladder",
49
+ "actuator",
50
+ "delay"
51
+ ];
39
52
  function getModuleFromOperator(operator) {
40
53
  const parts = operator.split("/");
41
54
  if (parts.length !== 2) return null;
@@ -253,6 +266,7 @@ var CORE_OPERATORS = {
253
266
  },
254
267
  // --- logic ------------------------------------------------------------------
255
268
  and: {
269
+ visual: { form: "series" },
256
270
  module: "core",
257
271
  category: "logic",
258
272
  minArity: 2,
@@ -265,6 +279,7 @@ var CORE_OPERATORS = {
265
279
  example: '["and", ["=", "active", "active"], [">", 5, 0]]'
266
280
  },
267
281
  or: {
282
+ visual: { form: "parallel" },
268
283
  module: "core",
269
284
  category: "logic",
270
285
  minArity: 2,
@@ -277,6 +292,7 @@ var CORE_OPERATORS = {
277
292
  example: '["or", ["=", "admin", "user"], ["=", "admin", "owner"]]'
278
293
  },
279
294
  not: {
295
+ visual: { form: "invert" },
280
296
  module: "core",
281
297
  category: "logic",
282
298
  minArity: 1,
@@ -288,6 +304,7 @@ var CORE_OPERATORS = {
288
304
  example: '["not", false]'
289
305
  },
290
306
  if: {
307
+ visual: { form: "branch" },
291
308
  module: "core",
292
309
  category: "logic",
293
310
  minArity: 3,
@@ -305,6 +322,7 @@ var CORE_OPERATORS = {
305
322
  },
306
323
  // --- control ----------------------------------------------------------------
307
324
  let: {
325
+ visual: { form: "scope" },
308
326
  module: "core",
309
327
  category: "control",
310
328
  minArity: 2,
@@ -323,6 +341,7 @@ var CORE_OPERATORS = {
323
341
  example: '["let", [["x", 10]], ["+", "x", 1]]'
324
342
  },
325
343
  do: {
344
+ visual: { form: "ladder" },
326
345
  module: "core",
327
346
  category: "control",
328
347
  minArity: 1,
@@ -345,6 +364,7 @@ var CORE_OPERATORS = {
345
364
  example: '["list", "path", "method", "status"] // => ["path", "method", "status"]'
346
365
  },
347
366
  when: {
367
+ visual: { form: "branch" },
348
368
  module: "core",
349
369
  category: "control",
350
370
  minArity: 2,
@@ -359,6 +379,7 @@ var CORE_OPERATORS = {
359
379
  example: '["when", [">", "@entity.health", 0], ["emit", "ALIVE"]]'
360
380
  },
361
381
  fn: {
382
+ visual: { form: "template" },
362
383
  module: "core",
363
384
  category: "control",
364
385
  minArity: 2,
@@ -3185,6 +3206,7 @@ var FORMAT_OPERATORS = {
3185
3206
  // modules/async.ts
3186
3207
  var ASYNC_OPERATORS = {
3187
3208
  "async/delay": {
3209
+ visual: { form: "delay" },
3188
3210
  module: "async",
3189
3211
  category: "std-async",
3190
3212
  minArity: 1,
@@ -3200,6 +3222,7 @@ var ASYNC_OPERATORS = {
3200
3222
  example: '["async/delay", 2000, ["emit", "RETRY"]] // Wait 2s then emit'
3201
3223
  },
3202
3224
  "async/interval": {
3225
+ visual: { form: "delay" },
3203
3226
  module: "async",
3204
3227
  category: "std-async",
3205
3228
  minArity: 2,
@@ -3215,6 +3238,7 @@ var ASYNC_OPERATORS = {
3215
3238
  example: '["async/interval", 5000, ["emit", "POLL_TICK"]] // Emit every 5s'
3216
3239
  },
3217
3240
  "async/timeout": {
3241
+ visual: { form: "delay" },
3218
3242
  module: "async",
3219
3243
  category: "std-async",
3220
3244
  minArity: 2,
@@ -3230,6 +3254,7 @@ var ASYNC_OPERATORS = {
3230
3254
  example: '["async/timeout", ["call", "api", "fetchData"], 5000]'
3231
3255
  },
3232
3256
  "async/debounce": {
3257
+ visual: { form: "delay" },
3233
3258
  module: "async",
3234
3259
  category: "std-async",
3235
3260
  minArity: 2,
@@ -3245,6 +3270,7 @@ var ASYNC_OPERATORS = {
3245
3270
  example: '["async/debounce", "SEARCH", 300]'
3246
3271
  },
3247
3272
  "async/throttle": {
3273
+ visual: { form: "delay" },
3248
3274
  module: "async",
3249
3275
  category: "std-async",
3250
3276
  minArity: 2,
@@ -3260,6 +3286,7 @@ var ASYNC_OPERATORS = {
3260
3286
  example: '["async/throttle", "SCROLL", 100]'
3261
3287
  },
3262
3288
  "async/retry": {
3289
+ visual: { form: "delay" },
3263
3290
  module: "async",
3264
3291
  category: "std-async",
3265
3292
  minArity: 2,
@@ -3277,6 +3304,7 @@ var ASYNC_OPERATORS = {
3277
3304
  { "attempts": 3, "backoff": "exponential", "baseDelay": 1000 }]`
3278
3305
  },
3279
3306
  "async/race": {
3307
+ visual: { form: "parallel" },
3280
3308
  module: "async",
3281
3309
  category: "std-async",
3282
3310
  minArity: 2,
@@ -3289,6 +3317,7 @@ var ASYNC_OPERATORS = {
3289
3317
  example: '["async/race", ["call", "api1"], ["call", "api2"]]'
3290
3318
  },
3291
3319
  "async/all": {
3320
+ visual: { form: "parallel" },
3292
3321
  module: "async",
3293
3322
  category: "std-async",
3294
3323
  minArity: 2,
@@ -3301,6 +3330,7 @@ var ASYNC_OPERATORS = {
3301
3330
  example: '["async/all", ["call", "api1"], ["call", "api2"]]'
3302
3331
  },
3303
3332
  "async/sequence": {
3333
+ visual: { form: "ladder" },
3304
3334
  module: "async",
3305
3335
  category: "std-async",
3306
3336
  minArity: 2,
@@ -6729,5 +6759,12 @@ function getStdLibStats() {
6729
6759
  lambdaOperators: getLambdaOperators().length
6730
6760
  };
6731
6761
  }
6762
+ function operatorVisualForm(operator) {
6763
+ const meta = getStdOperatorMeta(operator);
6764
+ if (!meta) return null;
6765
+ if (meta.visual) return meta.visual.form;
6766
+ if (meta.acceptsLambda) return "conveyor";
6767
+ return meta.hasSideEffects ? "actuator" : "block";
6768
+ }
6732
6769
 
6733
- export { OPERATOR_NAMES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, assertOperatorArity, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getOperatorRunsOn, getOperatorsRunningOn, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateOperatorArityExtended, validateStdOperatorArity };
6770
+ export { OPERATOR_NAMES, OPERATOR_VISUAL_FORMS, STD_OPERATORS, STD_OPERATORS_BY_MODULE, assertOperatorArity, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getOperatorRunsOn, getOperatorsRunningOn, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, operatorVisualForm, validateOperatorArityExtended, validateStdOperatorArity };
@@ -149,6 +149,9 @@ interface OperatorEffectMeta {
149
149
  * Extended operator metadata for std library operators.
150
150
  * Adds parameter descriptions and examples.
151
151
  */
152
+ /** How an operator is drawn in the AVL circuit notation (evaluation as signal flow). */
153
+ declare const OPERATOR_VISUAL_FORMS: readonly ["block", "series", "parallel", "invert", "branch", "scope", "template", "conveyor", "ladder", "actuator", "delay"];
154
+ type OperatorVisualForm = (typeof OPERATOR_VISUAL_FORMS)[number];
152
155
  interface StdOperatorMeta extends OperatorMeta {
153
156
  /** The std module this operator belongs to */
154
157
  module: StdModule;
@@ -170,6 +173,10 @@ interface StdOperatorMeta extends OperatorMeta {
170
173
  compileTime?: boolean;
171
174
  /** Schema v2: structured metadata for effect operators */
172
175
  effect?: OperatorEffectMeta;
176
+ /** Circuit form, declared only where it is not derivable (lambda → conveyor, side effect → actuator, else block). */
177
+ visual?: {
178
+ form: OperatorVisualForm;
179
+ };
173
180
  }
174
181
  /**
175
182
  * Type guard to check if an operator category is a std category.
@@ -196,4 +203,4 @@ declare function isStdOperator(operator: string): boolean;
196
203
  */
197
204
  declare function makeStdOperator(module: StdModule, fn: string): string;
198
205
 
199
- export { type BasicReturnType as B, type OperatorMeta as O, type RunsOn as R, type StdOperatorMeta as S, type StdModule as a, OPERATOR_CATEGORIES as b, type OperatorCategory as c, type OperatorEffectMeta as d, type OperatorTypeRef as e, STD_MODULES as f, STD_OPERATOR_CATEGORIES as g, type StdOperatorCategory as h, getFunctionFromOperator as i, getModuleFromOperator as j, isStdCategory as k, isStdOperator as l, makeStdOperator as m };
206
+ export { type BasicReturnType as B, type OperatorMeta as O, type RunsOn as R, type StdOperatorMeta as S, type StdModule as a, type OperatorVisualForm as b, OPERATOR_VISUAL_FORMS as c, OPERATOR_CATEGORIES as d, type OperatorCategory as e, type OperatorEffectMeta as f, type OperatorTypeRef as g, STD_MODULES as h, STD_OPERATOR_CATEGORIES as i, type StdOperatorCategory as j, getFunctionFromOperator as k, getModuleFromOperator as l, isStdCategory as m, isStdOperator as n, makeStdOperator as o };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/std",
3
- "version": "16.234.0",
3
+ "version": "16.235.0",
4
4
  "description": "Standard library operators for Almadar (math, string, array, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -87,7 +87,7 @@
87
87
  "compiler": ">=4.10.0"
88
88
  },
89
89
  "dependencies": {
90
- "@almadar/core": "^10.109.0"
90
+ "@almadar/core": "^10.110.0"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@almadar/eslint-plugin": "^2.20.0",