@almadar/std 6.4.1 → 6.5.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 (40) hide show
  1. package/behaviors/registry/atoms/std-search.orb +2 -2
  2. package/behaviors/registry/atoms/std-selection.orb +2 -2
  3. package/behaviors/registry/atoms/std-sort.orb +2 -2
  4. package/behaviors/registry/atoms/std-sprite.orb +2 -2
  5. package/dist/behaviors/registry/atoms/std-search.orb +2 -2
  6. package/dist/behaviors/registry/atoms/std-selection.orb +2 -2
  7. package/dist/behaviors/registry/atoms/std-sort.orb +2 -2
  8. package/dist/behaviors/registry/atoms/std-sprite.orb +2 -2
  9. package/dist/index.d.ts +4 -3
  10. package/dist/index.js +559 -2
  11. package/dist/index.js.map +1 -1
  12. package/dist/modules/agent.d.ts +1 -1
  13. package/dist/modules/array.d.ts +1 -1
  14. package/dist/modules/async.d.ts +1 -1
  15. package/dist/modules/composition.d.ts +1 -1
  16. package/dist/modules/contract.d.ts +1 -1
  17. package/dist/modules/core.d.ts +27 -0
  18. package/dist/modules/core.js +486 -0
  19. package/dist/modules/core.js.map +1 -0
  20. package/dist/modules/data.d.ts +1 -1
  21. package/dist/modules/format.d.ts +1 -1
  22. package/dist/modules/graph.d.ts +1 -1
  23. package/dist/modules/index.d.ts +2 -1
  24. package/dist/modules/index.js +484 -1
  25. package/dist/modules/index.js.map +1 -1
  26. package/dist/modules/math.d.ts +1 -1
  27. package/dist/modules/nn.d.ts +1 -1
  28. package/dist/modules/object.d.ts +1 -1
  29. package/dist/modules/os.d.ts +1 -1
  30. package/dist/modules/prob.d.ts +1 -1
  31. package/dist/modules/str.d.ts +1 -1
  32. package/dist/modules/tensor.d.ts +1 -1
  33. package/dist/modules/time.d.ts +1 -1
  34. package/dist/modules/train.d.ts +1 -1
  35. package/dist/modules/validate.d.ts +1 -1
  36. package/dist/registry.d.ts +7 -3
  37. package/dist/registry.js +485 -1
  38. package/dist/registry.js.map +1 -1
  39. package/dist/{types-hu1LavLs.d.ts → types-DUr71Cgy.d.ts} +62 -3
  40. package/package.json +2 -3
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-hu1LavLs.js';
1
+ import { S as StdOperatorMeta } from '../types-DUr71Cgy.js';
2
2
 
3
3
  /**
4
4
  * Math Module - Numeric Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-hu1LavLs.js';
1
+ import { S as StdOperatorMeta } from '../types-DUr71Cgy.js';
2
2
 
3
3
  /**
4
4
  * Neural Network Module - Neural Network Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-hu1LavLs.js';
1
+ import { S as StdOperatorMeta } from '../types-DUr71Cgy.js';
2
2
 
3
3
  /**
4
4
  * Object Module - Object Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-hu1LavLs.js';
1
+ import { S as StdOperatorMeta } from '../types-DUr71Cgy.js';
2
2
 
3
3
  /**
4
4
  * OS Module - Operating System Event Watchers
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-hu1LavLs.js';
1
+ import { S as StdOperatorMeta } from '../types-DUr71Cgy.js';
2
2
 
3
3
  /**
4
4
  * Prob Module - Probabilistic Programming Operators
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-hu1LavLs.js';
1
+ import { S as StdOperatorMeta } from '../types-DUr71Cgy.js';
2
2
 
3
3
  /**
4
4
  * String Module - String Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-hu1LavLs.js';
1
+ import { S as StdOperatorMeta } from '../types-DUr71Cgy.js';
2
2
 
3
3
  /**
4
4
  * Tensor Module - Tensor Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-hu1LavLs.js';
1
+ import { S as StdOperatorMeta } from '../types-DUr71Cgy.js';
2
2
 
3
3
  /**
4
4
  * Time Module - Date and Time Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-hu1LavLs.js';
1
+ import { S as StdOperatorMeta } from '../types-DUr71Cgy.js';
2
2
 
3
3
  /**
4
4
  * Training Module - Neural Network Training Operations
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta } from '../types-hu1LavLs.js';
1
+ import { S as StdOperatorMeta } from '../types-DUr71Cgy.js';
2
2
 
3
3
  /**
4
4
  * Validate Module - Input Validation
@@ -1,5 +1,4 @@
1
- import { OperatorMeta } from '@almadar/core/types';
2
- import { S as StdOperatorMeta, a as StdModule } from './types-hu1LavLs.js';
1
+ import { S as StdOperatorMeta, a as StdModule, O as OperatorMeta } from './types-DUr71Cgy.js';
3
2
 
4
3
  /**
5
4
  * Standard Library Registry
@@ -17,6 +16,11 @@ declare const STD_OPERATORS: Record<string, StdOperatorMeta>;
17
16
  /**
18
17
  * Module-specific operator registries.
19
18
  */
19
+ /**
20
+ * Flat array of every operator name (core + std-module).
21
+ * Convenience const for grammar generators and validators.
22
+ */
23
+ declare const OPERATOR_NAMES: readonly string[];
20
24
  declare const STD_OPERATORS_BY_MODULE: Record<string, Record<string, StdOperatorMeta>>;
21
25
  /**
22
26
  * Get std operator metadata by name.
@@ -137,4 +141,4 @@ declare function getStdLibStats(): {
137
141
  lambdaOperators: number;
138
142
  };
139
143
 
140
- export { STD_OPERATORS, STD_OPERATORS_BY_MODULE, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateOperatorArityExtended, validateStdOperatorArity };
144
+ export { OPERATOR_NAMES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateOperatorArityExtended, validateStdOperatorArity };
package/dist/registry.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // types.ts
2
2
  var STD_MODULES = [
3
+ "core",
3
4
  "math",
4
5
  "str",
5
6
  "array",
@@ -29,6 +30,486 @@ function isStdOperator(operator) {
29
30
  return getModuleFromOperator(operator) !== null;
30
31
  }
31
32
 
33
+ // modules/core.ts
34
+ var NUMBER = "number";
35
+ var BOOLEAN = "boolean";
36
+ var STRING = "string";
37
+ var ANY = "any";
38
+ var SEXPR = { kind: "sexpr" };
39
+ var BINDING = { kind: "binding" };
40
+ var ENTITY_REF = { kind: "entityRef" };
41
+ var EVENT_KEY = { kind: "eventKey" };
42
+ var UI_SLOT = { kind: "uiSlot" };
43
+ var PATTERN_TYPE = { kind: "patternType" };
44
+ var PERSIST_ACTION = {
45
+ kind: "union",
46
+ of: [
47
+ { kind: "literal", value: "create" },
48
+ { kind: "literal", value: "update" },
49
+ { kind: "literal", value: "delete" },
50
+ { kind: "literal", value: "clear" },
51
+ { kind: "literal", value: "batch" }
52
+ ]
53
+ };
54
+ var SET_OPERATION = {
55
+ kind: "union",
56
+ of: [
57
+ { kind: "literal", value: "increment" },
58
+ { kind: "literal", value: "decrement" },
59
+ { kind: "literal", value: "multiply" },
60
+ { kind: "literal", value: "append" },
61
+ { kind: "literal", value: "remove" }
62
+ ]
63
+ };
64
+ var NOTIFY_CHANNEL = {
65
+ kind: "union",
66
+ of: [
67
+ { kind: "literal", value: "email" },
68
+ { kind: "literal", value: "push" },
69
+ { kind: "literal", value: "sms" },
70
+ { kind: "literal", value: "in_app" }
71
+ ]
72
+ };
73
+ var CORE_OPERATORS = {
74
+ // --- arithmetic primitives --------------------------------------------------
75
+ "+": {
76
+ module: "core",
77
+ category: "arithmetic",
78
+ minArity: 2,
79
+ maxArity: null,
80
+ description: "Add numbers",
81
+ hasSideEffects: false,
82
+ returnType: "number",
83
+ params: [{ name: "...nums", type: NUMBER, description: "Numbers to sum" }],
84
+ example: '["+", 1, 2, 3] // => 6'
85
+ },
86
+ "-": {
87
+ module: "core",
88
+ category: "arithmetic",
89
+ minArity: 1,
90
+ maxArity: 2,
91
+ description: "Subtract or negate",
92
+ hasSideEffects: false,
93
+ returnType: "number",
94
+ params: [
95
+ { name: "a", type: NUMBER, description: "Left operand or value to negate" },
96
+ { name: "b", type: NUMBER, description: "Right operand", optional: true }
97
+ ],
98
+ example: '["-", 5, 2] // => 3; ["-", 5] // => -5'
99
+ },
100
+ "*": {
101
+ module: "core",
102
+ category: "arithmetic",
103
+ minArity: 2,
104
+ maxArity: null,
105
+ description: "Multiply numbers",
106
+ hasSideEffects: false,
107
+ returnType: "number",
108
+ params: [{ name: "...nums", type: NUMBER, description: "Numbers to multiply" }],
109
+ example: '["*", 2, 3, 4] // => 24'
110
+ },
111
+ "/": {
112
+ module: "core",
113
+ category: "arithmetic",
114
+ minArity: 2,
115
+ maxArity: 2,
116
+ description: "Divide numbers",
117
+ hasSideEffects: false,
118
+ returnType: "number",
119
+ params: [
120
+ { name: "a", type: NUMBER, description: "Numerator" },
121
+ { name: "b", type: NUMBER, description: "Denominator" }
122
+ ],
123
+ example: '["/", 10, 2] // => 5'
124
+ },
125
+ "%": {
126
+ module: "core",
127
+ category: "arithmetic",
128
+ minArity: 2,
129
+ maxArity: 2,
130
+ description: "Modulo (remainder)",
131
+ hasSideEffects: false,
132
+ returnType: "number",
133
+ params: [
134
+ { name: "a", type: NUMBER, description: "Dividend" },
135
+ { name: "b", type: NUMBER, description: "Divisor" }
136
+ ],
137
+ example: '["%", 10, 3] // => 1'
138
+ },
139
+ // --- comparison -------------------------------------------------------------
140
+ "=": {
141
+ module: "core",
142
+ category: "comparison",
143
+ minArity: 2,
144
+ maxArity: 2,
145
+ description: "Equal to",
146
+ hasSideEffects: false,
147
+ returnType: "boolean",
148
+ params: [
149
+ { name: "a", type: ANY, description: "Left operand" },
150
+ { name: "b", type: ANY, description: "Right operand" }
151
+ ],
152
+ example: '["=", "@entity.status", "active"]'
153
+ },
154
+ "!=": {
155
+ module: "core",
156
+ category: "comparison",
157
+ minArity: 2,
158
+ maxArity: 2,
159
+ description: "Not equal to",
160
+ hasSideEffects: false,
161
+ returnType: "boolean",
162
+ params: [
163
+ { name: "a", type: ANY, description: "Left operand" },
164
+ { name: "b", type: ANY, description: "Right operand" }
165
+ ],
166
+ example: '["!=", "@entity.id", null]'
167
+ },
168
+ "<": {
169
+ module: "core",
170
+ category: "comparison",
171
+ minArity: 2,
172
+ maxArity: 2,
173
+ description: "Less than",
174
+ hasSideEffects: false,
175
+ returnType: "boolean",
176
+ params: [
177
+ { name: "a", type: NUMBER, description: "Left operand" },
178
+ { name: "b", type: NUMBER, description: "Right operand" }
179
+ ],
180
+ example: '["<", "@entity.health", 10]'
181
+ },
182
+ ">": {
183
+ module: "core",
184
+ category: "comparison",
185
+ minArity: 2,
186
+ maxArity: 2,
187
+ description: "Greater than",
188
+ hasSideEffects: false,
189
+ returnType: "boolean",
190
+ params: [
191
+ { name: "a", type: NUMBER, description: "Left operand" },
192
+ { name: "b", type: NUMBER, description: "Right operand" }
193
+ ],
194
+ example: '[">", "@entity.score", 0]'
195
+ },
196
+ "<=": {
197
+ module: "core",
198
+ category: "comparison",
199
+ minArity: 2,
200
+ maxArity: 2,
201
+ description: "Less than or equal",
202
+ hasSideEffects: false,
203
+ returnType: "boolean",
204
+ params: [
205
+ { name: "a", type: NUMBER, description: "Left operand" },
206
+ { name: "b", type: NUMBER, description: "Right operand" }
207
+ ],
208
+ example: '["<=", "@entity.count", 100]'
209
+ },
210
+ ">=": {
211
+ module: "core",
212
+ category: "comparison",
213
+ minArity: 2,
214
+ maxArity: 2,
215
+ description: "Greater than or equal",
216
+ hasSideEffects: false,
217
+ returnType: "boolean",
218
+ params: [
219
+ { name: "a", type: NUMBER, description: "Left operand" },
220
+ { name: "b", type: NUMBER, description: "Right operand" }
221
+ ],
222
+ example: '[">=", "@entity.age", 18]'
223
+ },
224
+ // --- logic ------------------------------------------------------------------
225
+ and: {
226
+ module: "core",
227
+ category: "logic",
228
+ minArity: 2,
229
+ maxArity: null,
230
+ description: "Logical AND",
231
+ hasSideEffects: false,
232
+ returnType: "boolean",
233
+ params: [{ name: "...conds", type: BOOLEAN, description: "Boolean expressions to AND" }],
234
+ example: '["and", ["=", "@entity.active", true], [">", "@entity.score", 0]]'
235
+ },
236
+ or: {
237
+ module: "core",
238
+ category: "logic",
239
+ minArity: 2,
240
+ maxArity: null,
241
+ description: "Logical OR",
242
+ hasSideEffects: false,
243
+ returnType: "boolean",
244
+ params: [{ name: "...conds", type: BOOLEAN, description: "Boolean expressions to OR" }],
245
+ example: '["or", ["=", "@entity.role", "admin"], ["=", "@entity.role", "owner"]]'
246
+ },
247
+ not: {
248
+ module: "core",
249
+ category: "logic",
250
+ minArity: 1,
251
+ maxArity: 1,
252
+ description: "Logical NOT",
253
+ hasSideEffects: false,
254
+ returnType: "boolean",
255
+ params: [{ name: "cond", type: BOOLEAN, description: "Boolean to negate" }],
256
+ example: '["not", "@entity.disabled"]'
257
+ },
258
+ if: {
259
+ module: "core",
260
+ category: "logic",
261
+ minArity: 3,
262
+ maxArity: 3,
263
+ description: "Conditional expression (ternary)",
264
+ hasSideEffects: false,
265
+ returnType: "any",
266
+ params: [
267
+ { name: "cond", type: BOOLEAN, description: "Condition to evaluate" },
268
+ { name: "then", type: ANY, description: "Value or effect if true" },
269
+ { name: "else", type: ANY, description: "Value or effect if false" }
270
+ ],
271
+ example: '["if", [">", "@entity.health", 0], "alive", "dead"]'
272
+ },
273
+ // --- control ----------------------------------------------------------------
274
+ let: {
275
+ module: "core",
276
+ category: "control",
277
+ minArity: 2,
278
+ maxArity: 2,
279
+ description: "Bind local variables for a body expression",
280
+ hasSideEffects: false,
281
+ returnType: "any",
282
+ params: [
283
+ {
284
+ name: "bindings",
285
+ type: { kind: "array", of: { kind: "array", of: ANY } },
286
+ description: "Array of [name, value] pairs"
287
+ },
288
+ { name: "body", type: SEXPR, description: "Expression or effect list using the bindings" }
289
+ ],
290
+ example: '["let", [["x", 10]], ["+", "x", 1]]'
291
+ },
292
+ do: {
293
+ module: "core",
294
+ category: "control",
295
+ minArity: 1,
296
+ maxArity: null,
297
+ description: "Sequential execution of multiple effects/expressions",
298
+ hasSideEffects: false,
299
+ returnType: "any",
300
+ params: [{ name: "...exprs", type: SEXPR, description: "Effects/expressions to run in order" }],
301
+ example: '["do", ["set", "@entity.x", 0], ["set", "@entity.y", 0]]'
302
+ },
303
+ when: {
304
+ module: "core",
305
+ category: "control",
306
+ minArity: 2,
307
+ maxArity: 2,
308
+ description: "Conditional effect without an else branch",
309
+ hasSideEffects: false,
310
+ returnType: "void",
311
+ params: [
312
+ { name: "cond", type: BOOLEAN, description: "Guard expression" },
313
+ { name: "effect", type: SEXPR, description: "Effect to run if cond is true" }
314
+ ],
315
+ example: '["when", [">", "@entity.health", 0], ["emit", "ALIVE"]]'
316
+ },
317
+ fn: {
318
+ module: "core",
319
+ category: "control",
320
+ minArity: 2,
321
+ maxArity: 2,
322
+ description: "Lambda expression (used for per-item renders and transforms)",
323
+ hasSideEffects: false,
324
+ returnType: "function",
325
+ acceptsLambda: true,
326
+ lambdaArgPosition: 1,
327
+ params: [
328
+ { name: "paramName", type: STRING, description: "Name of the parameter binding" },
329
+ { name: "body", type: SEXPR, description: "Expression evaluated per invocation" }
330
+ ],
331
+ example: '["fn", "item", { "type": "typography", "content": "@item.title" }]'
332
+ },
333
+ // --- effect -----------------------------------------------------------------
334
+ set: {
335
+ module: "core",
336
+ category: "effect",
337
+ minArity: 2,
338
+ maxArity: 2,
339
+ description: "Set a binding to a value",
340
+ hasSideEffects: true,
341
+ returnType: "void",
342
+ params: [
343
+ { name: "binding", type: BINDING, description: 'Target binding (e.g. "@entity.field")' },
344
+ { name: "value", type: ANY, description: "Value to assign (literal or expression)" }
345
+ ],
346
+ example: '["set", "@entity.health", 100]',
347
+ effect: {
348
+ kind: "set",
349
+ config: { operation: SET_OPERATION }
350
+ }
351
+ },
352
+ emit: {
353
+ module: "core",
354
+ category: "effect",
355
+ minArity: 1,
356
+ maxArity: 2,
357
+ description: "Emit an event onto the bus",
358
+ hasSideEffects: true,
359
+ returnType: "void",
360
+ params: [
361
+ { name: "event", type: EVENT_KEY, description: "Event key" },
362
+ { name: "payload", type: ENTITY_REF, description: "Optional payload", optional: true }
363
+ ],
364
+ example: '["emit", "PLAYER_DIED", { "playerId": "@entity.id" }]',
365
+ effect: {
366
+ kind: "emit",
367
+ produces: {
368
+ kind: "object",
369
+ fields: { event: EVENT_KEY, payload: ANY },
370
+ open: true
371
+ }
372
+ }
373
+ },
374
+ persist: {
375
+ module: "core",
376
+ category: "effect",
377
+ minArity: 2,
378
+ maxArity: 3,
379
+ description: "Create, update, delete, clear, or batch entity records",
380
+ hasSideEffects: true,
381
+ returnType: "void",
382
+ params: [
383
+ { name: "action", type: PERSIST_ACTION, description: "Persist action" },
384
+ { name: "entity", type: { kind: "entity" }, description: "Target entity name" },
385
+ { name: "data", type: ENTITY_REF, description: "Payload (create/update) or entity id (delete)", optional: true }
386
+ ],
387
+ example: '["persist", "create", "Task", { "title": "@payload.title" }]',
388
+ effect: { kind: "persist" }
389
+ },
390
+ navigate: {
391
+ module: "core",
392
+ category: "effect",
393
+ minArity: 1,
394
+ maxArity: 2,
395
+ description: "Navigate to a route",
396
+ hasSideEffects: true,
397
+ returnType: "void",
398
+ params: [
399
+ { name: "path", type: STRING, description: "Route path (supports :param placeholders)" },
400
+ {
401
+ name: "params",
402
+ type: { kind: "object", fields: {}, open: true },
403
+ description: "Optional route params",
404
+ optional: true
405
+ }
406
+ ],
407
+ example: '["navigate", "/tasks/:id", { "id": "@entity.id" }]',
408
+ effect: { kind: "navigate" }
409
+ },
410
+ notify: {
411
+ module: "core",
412
+ category: "effect",
413
+ minArity: 1,
414
+ maxArity: 2,
415
+ description: "Show a notification (in-app, email, push, sms)",
416
+ hasSideEffects: true,
417
+ returnType: "void",
418
+ params: [
419
+ { name: "channel", type: NOTIFY_CHANNEL, description: "Delivery channel" },
420
+ { name: "message", type: STRING, description: "Message body", optional: true }
421
+ ],
422
+ example: '["notify", "in_app", "Task created successfully"]',
423
+ effect: { kind: "notify" }
424
+ },
425
+ spawn: {
426
+ module: "core",
427
+ category: "effect",
428
+ minArity: 1,
429
+ maxArity: 2,
430
+ description: "Spawn a new entity instance (games)",
431
+ hasSideEffects: true,
432
+ returnType: "void",
433
+ params: [
434
+ { name: "entity", type: { kind: "entity" }, description: "Entity name to spawn" },
435
+ {
436
+ name: "initialState",
437
+ type: { kind: "object", fields: {}, open: true },
438
+ description: "Initial field values",
439
+ optional: true
440
+ }
441
+ ],
442
+ example: '["spawn", "Bullet", { "x": "@entity.x", "y": "@entity.y" }]',
443
+ effect: { kind: "spawn" }
444
+ },
445
+ despawn: {
446
+ module: "core",
447
+ category: "effect",
448
+ minArity: 0,
449
+ maxArity: 1,
450
+ description: "Despawn an entity instance (games)",
451
+ hasSideEffects: true,
452
+ returnType: "void",
453
+ params: [
454
+ { name: "entityId", type: STRING, description: "Target entity id (defaults to @entity.id)", optional: true }
455
+ ],
456
+ example: '["despawn", "@entity.id"]',
457
+ effect: { kind: "despawn" }
458
+ },
459
+ "call-service": {
460
+ module: "core",
461
+ category: "effect",
462
+ minArity: 2,
463
+ maxArity: 3,
464
+ description: "Invoke an external service action",
465
+ hasSideEffects: true,
466
+ returnType: "void",
467
+ params: [
468
+ { name: "service", type: STRING, description: 'Service name (e.g. "llm", "stripe")' },
469
+ { name: "action", type: STRING, description: 'Service action (e.g. "generate", "charge")' },
470
+ {
471
+ name: "params",
472
+ type: { kind: "object", fields: {}, open: true },
473
+ description: "Service-specific params",
474
+ optional: true
475
+ }
476
+ ],
477
+ example: '["call-service", "llm", "generate", { "userPrompt": "@entity.inputText" }]',
478
+ effect: { kind: "call-service" }
479
+ },
480
+ "render-ui": {
481
+ module: "core",
482
+ category: "effect",
483
+ minArity: 2,
484
+ maxArity: 3,
485
+ description: "Render a pattern into a UI slot",
486
+ hasSideEffects: true,
487
+ returnType: "void",
488
+ params: [
489
+ { name: "slot", type: UI_SLOT, description: "Target UI slot (main, sidebar, modal, hud, ...)" },
490
+ {
491
+ name: "pattern",
492
+ type: {
493
+ kind: "union",
494
+ of: [
495
+ { kind: "object", fields: { patternType: PATTERN_TYPE }, open: true },
496
+ { kind: "literal", value: null }
497
+ ]
498
+ },
499
+ description: "Pattern config (or null to clear the slot)"
500
+ },
501
+ {
502
+ name: "props",
503
+ type: { kind: "object", fields: {}, open: true },
504
+ description: "Extra props forwarded to the pattern",
505
+ optional: true
506
+ }
507
+ ],
508
+ example: '["render-ui", "main", { "patternType": "entity-table", "columns": ["name"] }]',
509
+ effect: { kind: "render-ui" }
510
+ }
511
+ };
512
+
32
513
  // modules/math.ts
33
514
  var MATH_OPERATORS = {
34
515
  "math/abs": {
@@ -3895,6 +4376,7 @@ var COMPOSITION_OPERATORS = {
3895
4376
 
3896
4377
  // registry.ts
3897
4378
  var STD_OPERATORS = {
4379
+ ...CORE_OPERATORS,
3898
4380
  ...MATH_OPERATORS,
3899
4381
  ...STR_OPERATORS,
3900
4382
  ...ARRAY_OPERATORS,
@@ -3911,7 +4393,9 @@ var STD_OPERATORS = {
3911
4393
  ...AGENT_OPERATORS,
3912
4394
  ...COMPOSITION_OPERATORS
3913
4395
  };
4396
+ var OPERATOR_NAMES = Object.keys(STD_OPERATORS);
3914
4397
  var STD_OPERATORS_BY_MODULE = {
4398
+ core: CORE_OPERATORS,
3915
4399
  math: MATH_OPERATORS,
3916
4400
  str: STR_OPERATORS,
3917
4401
  array: ARRAY_OPERATORS,
@@ -4022,6 +4506,6 @@ function getStdLibStats() {
4022
4506
  };
4023
4507
  }
4024
4508
 
4025
- export { STD_OPERATORS, STD_OPERATORS_BY_MODULE, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateOperatorArityExtended, validateStdOperatorArity };
4509
+ export { OPERATOR_NAMES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateOperatorArityExtended, validateStdOperatorArity };
4026
4510
  //# sourceMappingURL=registry.js.map
4027
4511
  //# sourceMappingURL=registry.js.map