@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.
- package/behaviors/registry/atoms/std-search.orb +2 -2
- package/behaviors/registry/atoms/std-selection.orb +2 -2
- package/behaviors/registry/atoms/std-sort.orb +2 -2
- package/behaviors/registry/atoms/std-sprite.orb +2 -2
- package/dist/behaviors/registry/atoms/std-search.orb +2 -2
- package/dist/behaviors/registry/atoms/std-selection.orb +2 -2
- package/dist/behaviors/registry/atoms/std-sort.orb +2 -2
- package/dist/behaviors/registry/atoms/std-sprite.orb +2 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.js +559 -2
- package/dist/index.js.map +1 -1
- package/dist/modules/agent.d.ts +1 -1
- package/dist/modules/array.d.ts +1 -1
- package/dist/modules/async.d.ts +1 -1
- package/dist/modules/composition.d.ts +1 -1
- package/dist/modules/contract.d.ts +1 -1
- package/dist/modules/core.d.ts +27 -0
- package/dist/modules/core.js +486 -0
- package/dist/modules/core.js.map +1 -0
- package/dist/modules/data.d.ts +1 -1
- package/dist/modules/format.d.ts +1 -1
- package/dist/modules/graph.d.ts +1 -1
- package/dist/modules/index.d.ts +2 -1
- package/dist/modules/index.js +484 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/math.d.ts +1 -1
- package/dist/modules/nn.d.ts +1 -1
- package/dist/modules/object.d.ts +1 -1
- package/dist/modules/os.d.ts +1 -1
- package/dist/modules/prob.d.ts +1 -1
- package/dist/modules/str.d.ts +1 -1
- package/dist/modules/tensor.d.ts +1 -1
- package/dist/modules/time.d.ts +1 -1
- package/dist/modules/train.d.ts +1 -1
- package/dist/modules/validate.d.ts +1 -1
- package/dist/registry.d.ts +7 -3
- package/dist/registry.js +485 -1
- package/dist/registry.js.map +1 -1
- package/dist/{types-hu1LavLs.d.ts → types-DUr71Cgy.d.ts} +62 -3
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -9,7 +9,37 @@ var __export = (target, all) => {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
// types.ts
|
|
12
|
+
var OPERATOR_CATEGORIES = [
|
|
13
|
+
"arithmetic",
|
|
14
|
+
"comparison",
|
|
15
|
+
"logic",
|
|
16
|
+
"control",
|
|
17
|
+
"effect",
|
|
18
|
+
"collection",
|
|
19
|
+
"std-math",
|
|
20
|
+
"std-str",
|
|
21
|
+
"std-array",
|
|
22
|
+
"std-object",
|
|
23
|
+
"std-validate",
|
|
24
|
+
"std-time",
|
|
25
|
+
"std-format",
|
|
26
|
+
"std-async",
|
|
27
|
+
"std-nn",
|
|
28
|
+
"std-tensor",
|
|
29
|
+
"std-train",
|
|
30
|
+
"std-prob",
|
|
31
|
+
"std-os",
|
|
32
|
+
"std-agent",
|
|
33
|
+
"std-composition",
|
|
34
|
+
"ml-arch",
|
|
35
|
+
"ml-effect",
|
|
36
|
+
"ml-tensor",
|
|
37
|
+
"ml-graph",
|
|
38
|
+
"ml-contract",
|
|
39
|
+
"ml-data"
|
|
40
|
+
];
|
|
12
41
|
var STD_MODULES = [
|
|
42
|
+
"core",
|
|
13
43
|
"math",
|
|
14
44
|
"str",
|
|
15
45
|
"array",
|
|
@@ -72,6 +102,489 @@ function makeStdOperator(module, fn) {
|
|
|
72
102
|
return `${module}/${fn}`;
|
|
73
103
|
}
|
|
74
104
|
|
|
105
|
+
// modules/core.ts
|
|
106
|
+
var NUMBER = "number";
|
|
107
|
+
var BOOLEAN = "boolean";
|
|
108
|
+
var STRING = "string";
|
|
109
|
+
var ANY = "any";
|
|
110
|
+
var SEXPR = { kind: "sexpr" };
|
|
111
|
+
var BINDING = { kind: "binding" };
|
|
112
|
+
var ENTITY_REF = { kind: "entityRef" };
|
|
113
|
+
var EVENT_KEY = { kind: "eventKey" };
|
|
114
|
+
var UI_SLOT = { kind: "uiSlot" };
|
|
115
|
+
var PATTERN_TYPE = { kind: "patternType" };
|
|
116
|
+
var PERSIST_ACTION = {
|
|
117
|
+
kind: "union",
|
|
118
|
+
of: [
|
|
119
|
+
{ kind: "literal", value: "create" },
|
|
120
|
+
{ kind: "literal", value: "update" },
|
|
121
|
+
{ kind: "literal", value: "delete" },
|
|
122
|
+
{ kind: "literal", value: "clear" },
|
|
123
|
+
{ kind: "literal", value: "batch" }
|
|
124
|
+
]
|
|
125
|
+
};
|
|
126
|
+
var SET_OPERATION = {
|
|
127
|
+
kind: "union",
|
|
128
|
+
of: [
|
|
129
|
+
{ kind: "literal", value: "increment" },
|
|
130
|
+
{ kind: "literal", value: "decrement" },
|
|
131
|
+
{ kind: "literal", value: "multiply" },
|
|
132
|
+
{ kind: "literal", value: "append" },
|
|
133
|
+
{ kind: "literal", value: "remove" }
|
|
134
|
+
]
|
|
135
|
+
};
|
|
136
|
+
var NOTIFY_CHANNEL = {
|
|
137
|
+
kind: "union",
|
|
138
|
+
of: [
|
|
139
|
+
{ kind: "literal", value: "email" },
|
|
140
|
+
{ kind: "literal", value: "push" },
|
|
141
|
+
{ kind: "literal", value: "sms" },
|
|
142
|
+
{ kind: "literal", value: "in_app" }
|
|
143
|
+
]
|
|
144
|
+
};
|
|
145
|
+
var CORE_OPERATORS = {
|
|
146
|
+
// --- arithmetic primitives --------------------------------------------------
|
|
147
|
+
"+": {
|
|
148
|
+
module: "core",
|
|
149
|
+
category: "arithmetic",
|
|
150
|
+
minArity: 2,
|
|
151
|
+
maxArity: null,
|
|
152
|
+
description: "Add numbers",
|
|
153
|
+
hasSideEffects: false,
|
|
154
|
+
returnType: "number",
|
|
155
|
+
params: [{ name: "...nums", type: NUMBER, description: "Numbers to sum" }],
|
|
156
|
+
example: '["+", 1, 2, 3] // => 6'
|
|
157
|
+
},
|
|
158
|
+
"-": {
|
|
159
|
+
module: "core",
|
|
160
|
+
category: "arithmetic",
|
|
161
|
+
minArity: 1,
|
|
162
|
+
maxArity: 2,
|
|
163
|
+
description: "Subtract or negate",
|
|
164
|
+
hasSideEffects: false,
|
|
165
|
+
returnType: "number",
|
|
166
|
+
params: [
|
|
167
|
+
{ name: "a", type: NUMBER, description: "Left operand or value to negate" },
|
|
168
|
+
{ name: "b", type: NUMBER, description: "Right operand", optional: true }
|
|
169
|
+
],
|
|
170
|
+
example: '["-", 5, 2] // => 3; ["-", 5] // => -5'
|
|
171
|
+
},
|
|
172
|
+
"*": {
|
|
173
|
+
module: "core",
|
|
174
|
+
category: "arithmetic",
|
|
175
|
+
minArity: 2,
|
|
176
|
+
maxArity: null,
|
|
177
|
+
description: "Multiply numbers",
|
|
178
|
+
hasSideEffects: false,
|
|
179
|
+
returnType: "number",
|
|
180
|
+
params: [{ name: "...nums", type: NUMBER, description: "Numbers to multiply" }],
|
|
181
|
+
example: '["*", 2, 3, 4] // => 24'
|
|
182
|
+
},
|
|
183
|
+
"/": {
|
|
184
|
+
module: "core",
|
|
185
|
+
category: "arithmetic",
|
|
186
|
+
minArity: 2,
|
|
187
|
+
maxArity: 2,
|
|
188
|
+
description: "Divide numbers",
|
|
189
|
+
hasSideEffects: false,
|
|
190
|
+
returnType: "number",
|
|
191
|
+
params: [
|
|
192
|
+
{ name: "a", type: NUMBER, description: "Numerator" },
|
|
193
|
+
{ name: "b", type: NUMBER, description: "Denominator" }
|
|
194
|
+
],
|
|
195
|
+
example: '["/", 10, 2] // => 5'
|
|
196
|
+
},
|
|
197
|
+
"%": {
|
|
198
|
+
module: "core",
|
|
199
|
+
category: "arithmetic",
|
|
200
|
+
minArity: 2,
|
|
201
|
+
maxArity: 2,
|
|
202
|
+
description: "Modulo (remainder)",
|
|
203
|
+
hasSideEffects: false,
|
|
204
|
+
returnType: "number",
|
|
205
|
+
params: [
|
|
206
|
+
{ name: "a", type: NUMBER, description: "Dividend" },
|
|
207
|
+
{ name: "b", type: NUMBER, description: "Divisor" }
|
|
208
|
+
],
|
|
209
|
+
example: '["%", 10, 3] // => 1'
|
|
210
|
+
},
|
|
211
|
+
// --- comparison -------------------------------------------------------------
|
|
212
|
+
"=": {
|
|
213
|
+
module: "core",
|
|
214
|
+
category: "comparison",
|
|
215
|
+
minArity: 2,
|
|
216
|
+
maxArity: 2,
|
|
217
|
+
description: "Equal to",
|
|
218
|
+
hasSideEffects: false,
|
|
219
|
+
returnType: "boolean",
|
|
220
|
+
params: [
|
|
221
|
+
{ name: "a", type: ANY, description: "Left operand" },
|
|
222
|
+
{ name: "b", type: ANY, description: "Right operand" }
|
|
223
|
+
],
|
|
224
|
+
example: '["=", "@entity.status", "active"]'
|
|
225
|
+
},
|
|
226
|
+
"!=": {
|
|
227
|
+
module: "core",
|
|
228
|
+
category: "comparison",
|
|
229
|
+
minArity: 2,
|
|
230
|
+
maxArity: 2,
|
|
231
|
+
description: "Not equal to",
|
|
232
|
+
hasSideEffects: false,
|
|
233
|
+
returnType: "boolean",
|
|
234
|
+
params: [
|
|
235
|
+
{ name: "a", type: ANY, description: "Left operand" },
|
|
236
|
+
{ name: "b", type: ANY, description: "Right operand" }
|
|
237
|
+
],
|
|
238
|
+
example: '["!=", "@entity.id", null]'
|
|
239
|
+
},
|
|
240
|
+
"<": {
|
|
241
|
+
module: "core",
|
|
242
|
+
category: "comparison",
|
|
243
|
+
minArity: 2,
|
|
244
|
+
maxArity: 2,
|
|
245
|
+
description: "Less than",
|
|
246
|
+
hasSideEffects: false,
|
|
247
|
+
returnType: "boolean",
|
|
248
|
+
params: [
|
|
249
|
+
{ name: "a", type: NUMBER, description: "Left operand" },
|
|
250
|
+
{ name: "b", type: NUMBER, description: "Right operand" }
|
|
251
|
+
],
|
|
252
|
+
example: '["<", "@entity.health", 10]'
|
|
253
|
+
},
|
|
254
|
+
">": {
|
|
255
|
+
module: "core",
|
|
256
|
+
category: "comparison",
|
|
257
|
+
minArity: 2,
|
|
258
|
+
maxArity: 2,
|
|
259
|
+
description: "Greater than",
|
|
260
|
+
hasSideEffects: false,
|
|
261
|
+
returnType: "boolean",
|
|
262
|
+
params: [
|
|
263
|
+
{ name: "a", type: NUMBER, description: "Left operand" },
|
|
264
|
+
{ name: "b", type: NUMBER, description: "Right operand" }
|
|
265
|
+
],
|
|
266
|
+
example: '[">", "@entity.score", 0]'
|
|
267
|
+
},
|
|
268
|
+
"<=": {
|
|
269
|
+
module: "core",
|
|
270
|
+
category: "comparison",
|
|
271
|
+
minArity: 2,
|
|
272
|
+
maxArity: 2,
|
|
273
|
+
description: "Less than or equal",
|
|
274
|
+
hasSideEffects: false,
|
|
275
|
+
returnType: "boolean",
|
|
276
|
+
params: [
|
|
277
|
+
{ name: "a", type: NUMBER, description: "Left operand" },
|
|
278
|
+
{ name: "b", type: NUMBER, description: "Right operand" }
|
|
279
|
+
],
|
|
280
|
+
example: '["<=", "@entity.count", 100]'
|
|
281
|
+
},
|
|
282
|
+
">=": {
|
|
283
|
+
module: "core",
|
|
284
|
+
category: "comparison",
|
|
285
|
+
minArity: 2,
|
|
286
|
+
maxArity: 2,
|
|
287
|
+
description: "Greater than or equal",
|
|
288
|
+
hasSideEffects: false,
|
|
289
|
+
returnType: "boolean",
|
|
290
|
+
params: [
|
|
291
|
+
{ name: "a", type: NUMBER, description: "Left operand" },
|
|
292
|
+
{ name: "b", type: NUMBER, description: "Right operand" }
|
|
293
|
+
],
|
|
294
|
+
example: '[">=", "@entity.age", 18]'
|
|
295
|
+
},
|
|
296
|
+
// --- logic ------------------------------------------------------------------
|
|
297
|
+
and: {
|
|
298
|
+
module: "core",
|
|
299
|
+
category: "logic",
|
|
300
|
+
minArity: 2,
|
|
301
|
+
maxArity: null,
|
|
302
|
+
description: "Logical AND",
|
|
303
|
+
hasSideEffects: false,
|
|
304
|
+
returnType: "boolean",
|
|
305
|
+
params: [{ name: "...conds", type: BOOLEAN, description: "Boolean expressions to AND" }],
|
|
306
|
+
example: '["and", ["=", "@entity.active", true], [">", "@entity.score", 0]]'
|
|
307
|
+
},
|
|
308
|
+
or: {
|
|
309
|
+
module: "core",
|
|
310
|
+
category: "logic",
|
|
311
|
+
minArity: 2,
|
|
312
|
+
maxArity: null,
|
|
313
|
+
description: "Logical OR",
|
|
314
|
+
hasSideEffects: false,
|
|
315
|
+
returnType: "boolean",
|
|
316
|
+
params: [{ name: "...conds", type: BOOLEAN, description: "Boolean expressions to OR" }],
|
|
317
|
+
example: '["or", ["=", "@entity.role", "admin"], ["=", "@entity.role", "owner"]]'
|
|
318
|
+
},
|
|
319
|
+
not: {
|
|
320
|
+
module: "core",
|
|
321
|
+
category: "logic",
|
|
322
|
+
minArity: 1,
|
|
323
|
+
maxArity: 1,
|
|
324
|
+
description: "Logical NOT",
|
|
325
|
+
hasSideEffects: false,
|
|
326
|
+
returnType: "boolean",
|
|
327
|
+
params: [{ name: "cond", type: BOOLEAN, description: "Boolean to negate" }],
|
|
328
|
+
example: '["not", "@entity.disabled"]'
|
|
329
|
+
},
|
|
330
|
+
if: {
|
|
331
|
+
module: "core",
|
|
332
|
+
category: "logic",
|
|
333
|
+
minArity: 3,
|
|
334
|
+
maxArity: 3,
|
|
335
|
+
description: "Conditional expression (ternary)",
|
|
336
|
+
hasSideEffects: false,
|
|
337
|
+
returnType: "any",
|
|
338
|
+
params: [
|
|
339
|
+
{ name: "cond", type: BOOLEAN, description: "Condition to evaluate" },
|
|
340
|
+
{ name: "then", type: ANY, description: "Value or effect if true" },
|
|
341
|
+
{ name: "else", type: ANY, description: "Value or effect if false" }
|
|
342
|
+
],
|
|
343
|
+
example: '["if", [">", "@entity.health", 0], "alive", "dead"]'
|
|
344
|
+
},
|
|
345
|
+
// --- control ----------------------------------------------------------------
|
|
346
|
+
let: {
|
|
347
|
+
module: "core",
|
|
348
|
+
category: "control",
|
|
349
|
+
minArity: 2,
|
|
350
|
+
maxArity: 2,
|
|
351
|
+
description: "Bind local variables for a body expression",
|
|
352
|
+
hasSideEffects: false,
|
|
353
|
+
returnType: "any",
|
|
354
|
+
params: [
|
|
355
|
+
{
|
|
356
|
+
name: "bindings",
|
|
357
|
+
type: { kind: "array", of: { kind: "array", of: ANY } },
|
|
358
|
+
description: "Array of [name, value] pairs"
|
|
359
|
+
},
|
|
360
|
+
{ name: "body", type: SEXPR, description: "Expression or effect list using the bindings" }
|
|
361
|
+
],
|
|
362
|
+
example: '["let", [["x", 10]], ["+", "x", 1]]'
|
|
363
|
+
},
|
|
364
|
+
do: {
|
|
365
|
+
module: "core",
|
|
366
|
+
category: "control",
|
|
367
|
+
minArity: 1,
|
|
368
|
+
maxArity: null,
|
|
369
|
+
description: "Sequential execution of multiple effects/expressions",
|
|
370
|
+
hasSideEffects: false,
|
|
371
|
+
returnType: "any",
|
|
372
|
+
params: [{ name: "...exprs", type: SEXPR, description: "Effects/expressions to run in order" }],
|
|
373
|
+
example: '["do", ["set", "@entity.x", 0], ["set", "@entity.y", 0]]'
|
|
374
|
+
},
|
|
375
|
+
when: {
|
|
376
|
+
module: "core",
|
|
377
|
+
category: "control",
|
|
378
|
+
minArity: 2,
|
|
379
|
+
maxArity: 2,
|
|
380
|
+
description: "Conditional effect without an else branch",
|
|
381
|
+
hasSideEffects: false,
|
|
382
|
+
returnType: "void",
|
|
383
|
+
params: [
|
|
384
|
+
{ name: "cond", type: BOOLEAN, description: "Guard expression" },
|
|
385
|
+
{ name: "effect", type: SEXPR, description: "Effect to run if cond is true" }
|
|
386
|
+
],
|
|
387
|
+
example: '["when", [">", "@entity.health", 0], ["emit", "ALIVE"]]'
|
|
388
|
+
},
|
|
389
|
+
fn: {
|
|
390
|
+
module: "core",
|
|
391
|
+
category: "control",
|
|
392
|
+
minArity: 2,
|
|
393
|
+
maxArity: 2,
|
|
394
|
+
description: "Lambda expression (used for per-item renders and transforms)",
|
|
395
|
+
hasSideEffects: false,
|
|
396
|
+
returnType: "function",
|
|
397
|
+
acceptsLambda: true,
|
|
398
|
+
lambdaArgPosition: 1,
|
|
399
|
+
params: [
|
|
400
|
+
{ name: "paramName", type: STRING, description: "Name of the parameter binding" },
|
|
401
|
+
{ name: "body", type: SEXPR, description: "Expression evaluated per invocation" }
|
|
402
|
+
],
|
|
403
|
+
example: '["fn", "item", { "type": "typography", "content": "@item.title" }]'
|
|
404
|
+
},
|
|
405
|
+
// --- effect -----------------------------------------------------------------
|
|
406
|
+
set: {
|
|
407
|
+
module: "core",
|
|
408
|
+
category: "effect",
|
|
409
|
+
minArity: 2,
|
|
410
|
+
maxArity: 2,
|
|
411
|
+
description: "Set a binding to a value",
|
|
412
|
+
hasSideEffects: true,
|
|
413
|
+
returnType: "void",
|
|
414
|
+
params: [
|
|
415
|
+
{ name: "binding", type: BINDING, description: 'Target binding (e.g. "@entity.field")' },
|
|
416
|
+
{ name: "value", type: ANY, description: "Value to assign (literal or expression)" }
|
|
417
|
+
],
|
|
418
|
+
example: '["set", "@entity.health", 100]',
|
|
419
|
+
effect: {
|
|
420
|
+
kind: "set",
|
|
421
|
+
config: { operation: SET_OPERATION }
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
emit: {
|
|
425
|
+
module: "core",
|
|
426
|
+
category: "effect",
|
|
427
|
+
minArity: 1,
|
|
428
|
+
maxArity: 2,
|
|
429
|
+
description: "Emit an event onto the bus",
|
|
430
|
+
hasSideEffects: true,
|
|
431
|
+
returnType: "void",
|
|
432
|
+
params: [
|
|
433
|
+
{ name: "event", type: EVENT_KEY, description: "Event key" },
|
|
434
|
+
{ name: "payload", type: ENTITY_REF, description: "Optional payload", optional: true }
|
|
435
|
+
],
|
|
436
|
+
example: '["emit", "PLAYER_DIED", { "playerId": "@entity.id" }]',
|
|
437
|
+
effect: {
|
|
438
|
+
kind: "emit",
|
|
439
|
+
produces: {
|
|
440
|
+
kind: "object",
|
|
441
|
+
fields: { event: EVENT_KEY, payload: ANY },
|
|
442
|
+
open: true
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
persist: {
|
|
447
|
+
module: "core",
|
|
448
|
+
category: "effect",
|
|
449
|
+
minArity: 2,
|
|
450
|
+
maxArity: 3,
|
|
451
|
+
description: "Create, update, delete, clear, or batch entity records",
|
|
452
|
+
hasSideEffects: true,
|
|
453
|
+
returnType: "void",
|
|
454
|
+
params: [
|
|
455
|
+
{ name: "action", type: PERSIST_ACTION, description: "Persist action" },
|
|
456
|
+
{ name: "entity", type: { kind: "entity" }, description: "Target entity name" },
|
|
457
|
+
{ name: "data", type: ENTITY_REF, description: "Payload (create/update) or entity id (delete)", optional: true }
|
|
458
|
+
],
|
|
459
|
+
example: '["persist", "create", "Task", { "title": "@payload.title" }]',
|
|
460
|
+
effect: { kind: "persist" }
|
|
461
|
+
},
|
|
462
|
+
navigate: {
|
|
463
|
+
module: "core",
|
|
464
|
+
category: "effect",
|
|
465
|
+
minArity: 1,
|
|
466
|
+
maxArity: 2,
|
|
467
|
+
description: "Navigate to a route",
|
|
468
|
+
hasSideEffects: true,
|
|
469
|
+
returnType: "void",
|
|
470
|
+
params: [
|
|
471
|
+
{ name: "path", type: STRING, description: "Route path (supports :param placeholders)" },
|
|
472
|
+
{
|
|
473
|
+
name: "params",
|
|
474
|
+
type: { kind: "object", fields: {}, open: true },
|
|
475
|
+
description: "Optional route params",
|
|
476
|
+
optional: true
|
|
477
|
+
}
|
|
478
|
+
],
|
|
479
|
+
example: '["navigate", "/tasks/:id", { "id": "@entity.id" }]',
|
|
480
|
+
effect: { kind: "navigate" }
|
|
481
|
+
},
|
|
482
|
+
notify: {
|
|
483
|
+
module: "core",
|
|
484
|
+
category: "effect",
|
|
485
|
+
minArity: 1,
|
|
486
|
+
maxArity: 2,
|
|
487
|
+
description: "Show a notification (in-app, email, push, sms)",
|
|
488
|
+
hasSideEffects: true,
|
|
489
|
+
returnType: "void",
|
|
490
|
+
params: [
|
|
491
|
+
{ name: "channel", type: NOTIFY_CHANNEL, description: "Delivery channel" },
|
|
492
|
+
{ name: "message", type: STRING, description: "Message body", optional: true }
|
|
493
|
+
],
|
|
494
|
+
example: '["notify", "in_app", "Task created successfully"]',
|
|
495
|
+
effect: { kind: "notify" }
|
|
496
|
+
},
|
|
497
|
+
spawn: {
|
|
498
|
+
module: "core",
|
|
499
|
+
category: "effect",
|
|
500
|
+
minArity: 1,
|
|
501
|
+
maxArity: 2,
|
|
502
|
+
description: "Spawn a new entity instance (games)",
|
|
503
|
+
hasSideEffects: true,
|
|
504
|
+
returnType: "void",
|
|
505
|
+
params: [
|
|
506
|
+
{ name: "entity", type: { kind: "entity" }, description: "Entity name to spawn" },
|
|
507
|
+
{
|
|
508
|
+
name: "initialState",
|
|
509
|
+
type: { kind: "object", fields: {}, open: true },
|
|
510
|
+
description: "Initial field values",
|
|
511
|
+
optional: true
|
|
512
|
+
}
|
|
513
|
+
],
|
|
514
|
+
example: '["spawn", "Bullet", { "x": "@entity.x", "y": "@entity.y" }]',
|
|
515
|
+
effect: { kind: "spawn" }
|
|
516
|
+
},
|
|
517
|
+
despawn: {
|
|
518
|
+
module: "core",
|
|
519
|
+
category: "effect",
|
|
520
|
+
minArity: 0,
|
|
521
|
+
maxArity: 1,
|
|
522
|
+
description: "Despawn an entity instance (games)",
|
|
523
|
+
hasSideEffects: true,
|
|
524
|
+
returnType: "void",
|
|
525
|
+
params: [
|
|
526
|
+
{ name: "entityId", type: STRING, description: "Target entity id (defaults to @entity.id)", optional: true }
|
|
527
|
+
],
|
|
528
|
+
example: '["despawn", "@entity.id"]',
|
|
529
|
+
effect: { kind: "despawn" }
|
|
530
|
+
},
|
|
531
|
+
"call-service": {
|
|
532
|
+
module: "core",
|
|
533
|
+
category: "effect",
|
|
534
|
+
minArity: 2,
|
|
535
|
+
maxArity: 3,
|
|
536
|
+
description: "Invoke an external service action",
|
|
537
|
+
hasSideEffects: true,
|
|
538
|
+
returnType: "void",
|
|
539
|
+
params: [
|
|
540
|
+
{ name: "service", type: STRING, description: 'Service name (e.g. "llm", "stripe")' },
|
|
541
|
+
{ name: "action", type: STRING, description: 'Service action (e.g. "generate", "charge")' },
|
|
542
|
+
{
|
|
543
|
+
name: "params",
|
|
544
|
+
type: { kind: "object", fields: {}, open: true },
|
|
545
|
+
description: "Service-specific params",
|
|
546
|
+
optional: true
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
example: '["call-service", "llm", "generate", { "userPrompt": "@entity.inputText" }]',
|
|
550
|
+
effect: { kind: "call-service" }
|
|
551
|
+
},
|
|
552
|
+
"render-ui": {
|
|
553
|
+
module: "core",
|
|
554
|
+
category: "effect",
|
|
555
|
+
minArity: 2,
|
|
556
|
+
maxArity: 3,
|
|
557
|
+
description: "Render a pattern into a UI slot",
|
|
558
|
+
hasSideEffects: true,
|
|
559
|
+
returnType: "void",
|
|
560
|
+
params: [
|
|
561
|
+
{ name: "slot", type: UI_SLOT, description: "Target UI slot (main, sidebar, modal, hud, ...)" },
|
|
562
|
+
{
|
|
563
|
+
name: "pattern",
|
|
564
|
+
type: {
|
|
565
|
+
kind: "union",
|
|
566
|
+
of: [
|
|
567
|
+
{ kind: "object", fields: { patternType: PATTERN_TYPE }, open: true },
|
|
568
|
+
{ kind: "literal", value: null }
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
description: "Pattern config (or null to clear the slot)"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
name: "props",
|
|
575
|
+
type: { kind: "object", fields: {}, open: true },
|
|
576
|
+
description: "Extra props forwarded to the pattern",
|
|
577
|
+
optional: true
|
|
578
|
+
}
|
|
579
|
+
],
|
|
580
|
+
example: '["render-ui", "main", { "patternType": "entity-table", "columns": ["name"] }]',
|
|
581
|
+
effect: { kind: "render-ui" }
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
|
+
function getCoreOperators() {
|
|
585
|
+
return Object.keys(CORE_OPERATORS);
|
|
586
|
+
}
|
|
587
|
+
|
|
75
588
|
// modules/math.ts
|
|
76
589
|
var MATH_OPERATORS = {
|
|
77
590
|
"math/abs": {
|
|
@@ -3938,6 +4451,7 @@ var COMPOSITION_OPERATORS = {
|
|
|
3938
4451
|
|
|
3939
4452
|
// registry.ts
|
|
3940
4453
|
var STD_OPERATORS = {
|
|
4454
|
+
...CORE_OPERATORS,
|
|
3941
4455
|
...MATH_OPERATORS,
|
|
3942
4456
|
...STR_OPERATORS,
|
|
3943
4457
|
...ARRAY_OPERATORS,
|
|
@@ -3954,7 +4468,9 @@ var STD_OPERATORS = {
|
|
|
3954
4468
|
...AGENT_OPERATORS,
|
|
3955
4469
|
...COMPOSITION_OPERATORS
|
|
3956
4470
|
};
|
|
4471
|
+
var OPERATOR_NAMES = Object.keys(STD_OPERATORS);
|
|
3957
4472
|
var STD_OPERATORS_BY_MODULE = {
|
|
4473
|
+
core: CORE_OPERATORS,
|
|
3958
4474
|
math: MATH_OPERATORS,
|
|
3959
4475
|
str: STR_OPERATORS,
|
|
3960
4476
|
array: ARRAY_OPERATORS,
|
|
@@ -12018,6 +12534,12 @@ function explodeBehaviorComposition(behaviorName) {
|
|
|
12018
12534
|
|
|
12019
12535
|
// docs-generator.ts
|
|
12020
12536
|
var MODULE_DESCRIPTIONS = {
|
|
12537
|
+
core: {
|
|
12538
|
+
name: "Core",
|
|
12539
|
+
displayName: "Language Primitives",
|
|
12540
|
+
description: "Unnamespaced S-expression operators: arithmetic, comparison, logic, control flow, and effects. The core of the .orb language.",
|
|
12541
|
+
icon: "\u2699\uFE0F"
|
|
12542
|
+
},
|
|
12021
12543
|
math: {
|
|
12022
12544
|
name: "Math",
|
|
12023
12545
|
displayName: "Mathematical Operations",
|
|
@@ -12208,13 +12730,48 @@ function formatArity(minArity, maxArity) {
|
|
|
12208
12730
|
}
|
|
12209
12731
|
return `${minArity}\u2013${maxArity} arguments`;
|
|
12210
12732
|
}
|
|
12733
|
+
function formatTypeRef(ref) {
|
|
12734
|
+
if (typeof ref === "string") return ref;
|
|
12735
|
+
switch (ref.kind) {
|
|
12736
|
+
case "literal":
|
|
12737
|
+
return JSON.stringify(ref.value);
|
|
12738
|
+
case "union":
|
|
12739
|
+
return ref.of.map(formatTypeRef).join(" | ");
|
|
12740
|
+
case "array":
|
|
12741
|
+
return `${formatTypeRef(ref.of)}[]`;
|
|
12742
|
+
case "object": {
|
|
12743
|
+
const fields = Object.entries(ref.fields).map(([k, v]) => `${k}: ${formatTypeRef(v)}`).join(", ");
|
|
12744
|
+
return ref.open ? `{ ${fields}, ... }` : `{ ${fields} }`;
|
|
12745
|
+
}
|
|
12746
|
+
case "entity":
|
|
12747
|
+
return ref.collection ? `Entity<${ref.collection}>` : "Entity";
|
|
12748
|
+
case "entityRef":
|
|
12749
|
+
return "EntityRef";
|
|
12750
|
+
case "eventKey":
|
|
12751
|
+
return ref.scope ? `EventKey<${ref.scope}>` : "EventKey";
|
|
12752
|
+
case "uiSlot":
|
|
12753
|
+
return "UISlot";
|
|
12754
|
+
case "patternType":
|
|
12755
|
+
return "PatternType";
|
|
12756
|
+
case "binding":
|
|
12757
|
+
return ref.shape ? `Binding<${formatTypeRef(ref.shape)}>` : "Binding";
|
|
12758
|
+
case "sexpr":
|
|
12759
|
+
return "SExpr";
|
|
12760
|
+
}
|
|
12761
|
+
}
|
|
12211
12762
|
function generateOperatorDoc(opName, meta) {
|
|
12212
12763
|
return {
|
|
12213
12764
|
name: opName,
|
|
12214
12765
|
shortName: opName.split("/")[1] || opName,
|
|
12215
12766
|
displayName: humanizeOperatorName(opName),
|
|
12216
12767
|
description: meta.description,
|
|
12217
|
-
params: meta.params || []
|
|
12768
|
+
params: (meta.params || []).map((p) => ({
|
|
12769
|
+
name: p.name,
|
|
12770
|
+
type: formatTypeRef(p.type),
|
|
12771
|
+
description: p.description,
|
|
12772
|
+
optional: p.optional,
|
|
12773
|
+
defaultValue: p.defaultValue
|
|
12774
|
+
})),
|
|
12218
12775
|
example: meta.example || "",
|
|
12219
12776
|
returnType: meta.returnType || "any",
|
|
12220
12777
|
returnTypeHuman: humanizeReturnType(meta.returnType),
|
|
@@ -12483,6 +13040,6 @@ function generateStdLibDocs() {
|
|
|
12483
13040
|
return { modules, behaviors };
|
|
12484
13041
|
}
|
|
12485
13042
|
|
|
12486
|
-
export { ARRAY_OPERATORS, ASYNC_OPERATORS, BEHAVIOR_CATEGORY_DESCRIPTIONS, FORMAT_OPERATORS, MATH_OPERATORS, MODULE_DESCRIPTIONS, OBJECT_OPERATORS, STD_MODULES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, STD_OPERATOR_CATEGORIES, STR_OPERATORS, TIME_OPERATORS, VALIDATE_OPERATORS, explodeBehaviorComposition, formatArity, generateBehaviorDoc, generateBehaviorsDocs, generateModuleDoc, generateModulesDocs, generateOperatorDoc, generateStdLibDocs, getAllBehaviorNames, getAllBehaviors, getAllStdOperators, getBehaviorMetadata, getBehaviorRegistry, getBehaviorSummary, getBehaviorsByDomain, getBehaviorsByLevel, getBehaviorsByOperations, getFunctionFromOperator, getLambdaOperators, getModuleFromOperator, getModuleOperators, getOperatorMetaExtended, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, hasGoldenOrb, humanizeOperatorName, humanizeReturnType, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdCategory, isStdEffectOperator, isStdGuardOperator, isStdOperator, loadGoldenOrb, makeStdOperator, searchBehaviors, stdAgentActivityLog, stdAgentActivityLogPage, stdAgentActivityLogTrait, stdAgentAssistant, stdAgentAssistantAssistantAgentTrait, stdAgentAssistantAssistantConversationTrait, stdAgentAssistantPage, stdAgentBuilder, stdAgentBuilderBuildPlannerTrait, stdAgentBuilderPage, stdAgentBuilderPlannerClassifierFlowTrait, stdAgentBuilderPlannerCompletionFlowTrait, stdAgentBuilderPlannerMemoryLifecycleTrait, stdAgentBuilderPlannerTaskInputTrait, stdAgentChatThread, stdAgentChatThreadPage, stdAgentChatThreadTrait, stdAgentClassifier, stdAgentClassifierAgentClassifierAgentTrait, stdAgentClassifierAgentClassifierModalTrait, stdAgentClassifierAgentClassifierNotificationTrait, stdAgentClassifierPage, stdAgentCompletion, stdAgentCompletionAgentCompletionAgentTrait, stdAgentCompletionAgentCompletionModalTrait, stdAgentCompletionAgentCompletionNotificationTrait, stdAgentCompletionPage, stdAgentContextWindow, stdAgentContextWindowAgentContextWindowAgentTrait, stdAgentContextWindowAgentContextWindowGaugeTrait, stdAgentContextWindowAgentContextWindowNotificationTrait, stdAgentContextWindowPage, stdAgentConversation, stdAgentConversationAgentConversationAgentTrait, stdAgentConversationAgentConversationThreadTrait, stdAgentConversationPage, stdAgentFixLoop, stdAgentFixLoopAgentFixLoopCycleTrait, stdAgentFixLoopFixLoopCompletionFlowTrait, stdAgentFixLoopFixLoopErrorsBrowseTrait, stdAgentFixLoopFixLoopFixCallTrait, stdAgentFixLoopFixLoopStepProgressTrait, stdAgentFixLoopFixLoopValidateCallTrait, stdAgentFixLoopPage, stdAgentLearner, stdAgentLearnerAgentLearnerLearnerTrait, stdAgentLearnerLearnerCompletionFlowTrait, stdAgentLearnerLearnerMemoryLifecycleTrait, stdAgentLearnerLearnerProviderManagerTrait, stdAgentLearnerLearnerRecordsBrowseTrait, stdAgentLearnerPage, stdAgentMemory, stdAgentMemoryAgentMemoryAgentTrait, stdAgentMemoryAgentMemoryBrowseTrait, stdAgentMemoryAgentMemoryCreateTrait, stdAgentMemoryPage, stdAgentPipeline, stdAgentPipelinePage, stdAgentPipelinePipelinePlannerTrait, stdAgentPipelinePlannerClassifierFlowTrait, stdAgentPipelinePlannerCompletionFlowTrait, stdAgentPipelinePlannerMemoryLifecycleTrait, stdAgentPipelinePlannerTaskInputTrait, stdAgentPlanner, stdAgentPlannerAgentPlannerPlannerTrait, stdAgentPlannerPage, stdAgentPlannerPlannerClassifierFlowTrait, stdAgentPlannerPlannerCompletionFlowTrait, stdAgentPlannerPlannerMemoryLifecycleTrait, stdAgentPlannerPlannerTaskInputTrait, stdAgentProvider, stdAgentProviderAgentProviderAgentTrait, stdAgentProviderAgentProviderModalTrait, stdAgentProviderAgentProviderNotificationTrait, stdAgentProviderPage, stdAgentRag, stdAgentRagAgentRagRagTrait, stdAgentRagPage, stdAgentRagRagCompletionFlowTrait, stdAgentRagRagMemoryLifecycleTrait, stdAgentRagRagSearchLifecycleTrait, stdAgentRagRagTabsTrait, stdAgentReviewer, stdAgentReviewerPage, stdAgentReviewerTrait, stdAgentSearch, stdAgentSearchAgentSearchAgentTrait, stdAgentSearchAgentSearchBrowseTrait, stdAgentSearchPage, stdAgentSession, stdAgentSessionAgentSessionAgentTrait, stdAgentSessionAgentSessionBrowseTrait, stdAgentSessionAgentSessionLabelTrait, stdAgentSessionPage, stdAgentStepProgress, stdAgentStepProgressPage, stdAgentStepProgressTrait, stdAgentTokenGauge, stdAgentTokenGaugePage, stdAgentTokenGaugeTrait, stdAgentToolCall, stdAgentToolCallAgentToolCallAgentTrait, stdAgentToolCallAgentToolCallModalTrait, stdAgentToolCallPage, stdAgentToolLoop, stdAgentToolLoopAgentToolLoopLoopTrait, stdAgentToolLoopPage, stdAgentToolLoopToolLoopCompletionFlowTrait, stdAgentToolLoopToolLoopContextMonitorTrait, stdAgentToolLoopToolLoopStepProgressTrait, stdAgentToolLoopToolLoopToolCallFlowTrait, stdAgentTutor, stdAgentTutorPage, stdAgentTutorTrait, stdApiGateway, stdApiGatewayPage, stdApiGatewayRouteBrowseTrait, stdApiGatewayRouteCreateTrait, stdApiGatewayRouteDeleteTrait, stdApiGatewayRouteEditTrait, stdApiGatewayRouteViewTrait, stdArcadeGame, stdArcadeGamePage, stdArcadeGameTrait, stdAsync, stdAsyncPage, stdAsyncTrait, stdAutoregressive, stdAutoregressivePage, stdAutoregressiveTrait, stdBookingSystem, stdBookingSystemPage, stdBookingSystemProviderBrowseTrait, stdBookingSystemProviderCreateTrait, stdBookingSystemProviderDeleteTrait, stdBookingSystemProviderEditTrait, stdBookingSystemProviderViewTrait, stdBrowse, stdBrowsePage, stdBrowseTrait, stdBuilderGame, stdBuilderGamePage, stdBuilderGameTrait, stdCacheAside, stdCacheAsidePage, stdCacheAsideTrait, stdCalendar, stdCalendarPage, stdCalendarTrait, stdCart, stdCartCartItemAddItemTrait, stdCartCartItemCartBrowseTrait, stdCartCartItemRemoveConfirmTrait, stdCartPage, stdCicdPipeline, stdCicdPipelineBuildBrowseTrait, stdCicdPipelineBuildCreateTrait, stdCicdPipelineBuildDeleteTrait, stdCicdPipelineBuildEditTrait, stdCicdPipelineBuildViewTrait, stdCicdPipelinePage, stdCircuitBreaker, stdCircuitBreakerPage, stdCircuitBreakerTrait, stdClassifierGame, stdClassifierGamePage, stdClassifierGameTrait, stdCms, stdCmsArticleBrowseTrait, stdCmsArticleCreateTrait, stdCmsArticleDeleteTrait, stdCmsArticleEditTrait, stdCmsArticleViewTrait, stdCmsPage, stdCodingAcademy, stdCodingAcademyPage, stdCodingAcademyTrait, stdCollision, stdCollisionPage, stdCollisionTrait, stdCombat, stdCombatLog, stdCombatLogPage, stdCombatLogTrait, stdCombatPage, stdCombatTrait, stdConfirmation, stdConfirmationPage, stdConfirmationTrait, stdCrm, stdCrmContactBrowseTrait, stdCrmContactCreateTrait, stdCrmContactDeleteTrait, stdCrmContactEditTrait, stdCrmContactViewTrait, stdCrmPage, stdDebuggerGame, stdDebuggerGamePage, stdDebuggerGameTrait, stdDetail, stdDetailDetailRecordBrowseTrait, stdDetailDetailRecordCreateTrait, stdDetailDetailRecordViewTrait, stdDetailPage, stdDevopsDashboard, stdDevopsDashboardPage, stdDevopsDashboardTrait, stdDialogueBox, stdDialogueBoxPage, stdDialogueBoxTrait, stdDisplay, stdDisplayPage, stdDisplayTrait, stdDrawer, stdDrawerPage, stdDrawerTrait, stdEcommerce, stdEcommercePage, stdEcommerceProductBrowseTrait, stdEcommerceProductCreateTrait, stdEcommerceProductDeleteTrait, stdEcommerceProductEditTrait, stdEcommerceProductViewTrait, stdEventHandlerGame, stdEventHandlerGamePage, stdEventHandlerGameTrait, stdFilter, stdFilterPage, stdFilterTrait, stdFinanceTracker, stdFinanceTrackerPage, stdFinanceTrackerTransactionBrowseTrait, stdFinanceTrackerTransactionCreateTrait, stdFinanceTrackerTransactionDeleteTrait, stdFinanceTrackerTransactionEditTrait, stdFinanceTrackerTransactionViewTrait, stdFlipCard, stdFlipCardPage, stdFlipCardTrait, stdFormAdvanced, stdFormAdvancedPage, stdFormAdvancedTrait, stdGallery, stdGalleryPage, stdGalleryTrait, stdGameAudio, stdGameAudioPage, stdGameAudioTrait, stdGameCanvas2d, stdGameCanvas2dPage, stdGameCanvas2dTrait, stdGameCanvas3d, stdGameCanvas3dPage, stdGameCanvas3dTrait, stdGameHud, stdGameHudPage, stdGameHudTrait, stdGameMenu, stdGameMenuPage, stdGameMenuTrait, stdGameOverScreen, stdGameOverScreenPage, stdGameOverScreenTrait, stdGameflow, stdGameflowPage, stdGameflowTrait, stdGeospatial, stdGeospatialLocationBrowseTrait, stdGeospatialLocationConfirmSelectTrait, stdGeospatialLocationSelectTrait, stdGeospatialPage, stdHealthcare, stdHealthcarePage, stdHealthcarePatientBrowseTrait, stdHealthcarePatientCreateTrait, stdHealthcarePatientDeleteTrait, stdHealthcarePatientEditTrait, stdHealthcarePatientViewTrait, stdHelpdesk, stdHelpdeskPage, stdHelpdeskTicketBrowseTrait, stdHelpdeskTicketCreateTrait, stdHelpdeskTicketDeleteTrait, stdHelpdeskTicketEditTrait, stdHelpdeskTicketViewTrait, stdHrPortal, stdHrPortalEmployeeBrowseTrait, stdHrPortalEmployeeCreateTrait, stdHrPortalEmployeeDeleteTrait, stdHrPortalEmployeeEditTrait, stdHrPortalEmployeeViewTrait, stdHrPortalPage, stdInput, stdInputPage, stdInputTrait, stdInventory, stdInventoryInventoryItemAddTrait, stdInventoryInventoryItemBrowseTrait, stdInventoryInventoryItemDropTrait, stdInventoryInventoryItemUseTrait, stdInventoryPage, stdInventoryPanel, stdInventoryPanelPage, stdInventoryPanelTrait, stdIotDashboard, stdIotDashboardPage, stdIotDashboardTrait, stdIsometricCanvas, stdIsometricCanvasPage, stdIsometricCanvasTrait, stdList, stdListListItemBrowseTrait, stdListListItemCreateTrait, stdListListItemDeleteTrait, stdListListItemEditTrait, stdListListItemViewTrait, stdListPage, stdLms, stdLmsCourseBrowseTrait, stdLmsCourseCreateTrait, stdLmsCourseDeleteTrait, stdLmsCourseEditTrait, stdLmsCourseViewTrait, stdLmsPage, stdLoading, stdLoadingPage, stdLoadingTrait, stdLogicTraining, stdLogicTrainingPage, stdLogicTrainingTrait, stdMessaging, stdMessagingChatMessageBrowseTrait, stdMessagingChatMessageComposeTrait, stdMessagingChatMessageViewTrait, stdMessagingPage, stdModal, stdModalPage, stdModalTrait, stdMovement, stdMovementPage, stdMovementTrait, stdNegotiatorGame, stdNegotiatorGamePage, stdNegotiatorGameTrait, stdNotification, stdNotificationPage, stdNotificationTrait, stdOverworld, stdOverworldPage, stdOverworldTrait, stdPagination, stdPaginationPage, stdPaginationTrait, stdPhysics2d, stdPhysics2dPage, stdPhysics2dTrait, stdPlatformerApp, stdPlatformerAppPage, stdPlatformerAppPlatLevelPlatformerCanvasTrait, stdPlatformerAppPlatLevelPlatformerFlowTrait, stdPlatformerCanvas, stdPlatformerCanvasPage, stdPlatformerCanvasTrait, stdPlatformerGame, stdPlatformerGamePage, stdPlatformerGamePlatLevelPlatformerCanvasTrait, stdPlatformerGamePlatLevelPlatformerFlowTrait, stdProjectManager, stdProjectManagerPage, stdProjectManagerTaskBrowseTrait, stdProjectManagerTaskCreateTrait, stdProjectManagerTaskDeleteTrait, stdProjectManagerTaskEditTrait, stdProjectManagerTaskViewTrait, stdPuzzleApp, stdPuzzleAppPage, stdPuzzleAppPuzzleLevelPuzzleFlowTrait, stdPuzzleAppPuzzleLevelPuzzleScoreTrait, stdPuzzleGame, stdPuzzleGamePage, stdPuzzleGamePuzzleBoardPuzzleFlowTrait, stdPuzzleGamePuzzleBoardPuzzleScoreTrait, stdQuest, stdQuestPage, stdQuestTrait, stdQuiz, stdQuizPage, stdQuizTrait, stdRateLimiter, stdRateLimiterPage, stdRateLimiterTrait, stdRating, stdRatingPage, stdRatingTrait, stdRealtimeChat, stdRealtimeChatChatMessageBrowseTrait, stdRealtimeChatChatMessageComposeTrait, stdRealtimeChatChatMessageViewTrait, stdRealtimeChatPage, stdRpgGame, stdRpgGameBattleStateBattleFlowTrait, stdRpgGameBattleStateCombatLogTrait, stdRpgGamePage, stdScore, stdScoreBoard, stdScoreBoardPage, stdScoreBoardTrait, stdScorePage, stdScoreTrait, stdSearch, stdSearchPage, stdSearchTrait, stdSelection, stdSelectionPage, stdSelectionTrait, stdSequencerGame, stdSequencerGamePage, stdSequencerGameTrait, stdServiceContentPipeline, stdServiceContentPipelinePage, stdServiceContentPipelineTrait, stdServiceCustomApiTester, stdServiceCustomApiTesterPage, stdServiceCustomApiTesterTrait, stdServiceCustomBearer, stdServiceCustomBearerPage, stdServiceCustomBearerTrait, stdServiceCustomHeader, stdServiceCustomHeaderPage, stdServiceCustomHeaderTrait, stdServiceCustomNoauth, stdServiceCustomNoauthPage, stdServiceCustomNoauthTrait, stdServiceCustomQuery, stdServiceCustomQueryPage, stdServiceCustomQueryTrait, stdServiceDevopsToolkit, stdServiceDevopsToolkitPage, stdServiceDevopsToolkitServiceDevopsToolkitGithubTrait, stdServiceDevopsToolkitServiceDevopsToolkitRedisTrait, stdServiceDevopsToolkitServiceDevopsToolkitStorageTrait, stdServiceEmail, stdServiceEmailPage, stdServiceEmailTrait, stdServiceGithub, stdServiceGithubPage, stdServiceGithubTrait, stdServiceLlm, stdServiceLlmPage, stdServiceLlmTrait, stdServiceMarketplace, stdServiceMarketplacePage, stdServiceMarketplaceProductBrowseTrait, stdServiceMarketplaceProductCreateTrait, stdServiceMarketplaceProductDeleteTrait, stdServiceMarketplaceProductEditTrait, stdServiceMarketplaceProductViewTrait, stdServiceNotificationHub, stdServiceNotificationHubPage, stdServiceNotificationHubTrait, stdServiceOauth, stdServiceOauthPage, stdServiceOauthTrait, stdServicePaymentFlow, stdServicePaymentFlowPage, stdServicePaymentFlowServicePaymentFlowPaymentTrait, stdServicePaymentFlowServicePaymentFlowReceiptTrait, stdServiceRedis, stdServiceRedisPage, stdServiceRedisTrait, stdServiceResearchAssistant, stdServiceResearchAssistantPage, stdServiceResearchAssistantTrait, stdServiceStorage, stdServiceStoragePage, stdServiceStorageTrait, stdServiceStripe, stdServiceStripePage, stdServiceStripeTrait, stdServiceTwilio, stdServiceTwilioPage, stdServiceTwilioTrait, stdServiceYoutube, stdServiceYoutubePage, stdServiceYoutubeTrait, stdSimulationCanvas, stdSimulationCanvasPage, stdSimulationCanvasTrait, stdSimulatorGame, stdSimulatorGamePage, stdSimulatorGameTrait, stdSocialFeed, stdSocialFeedPage, stdSocialFeedPostBrowseTrait, stdSocialFeedPostCreateTrait, stdSocialFeedPostViewTrait, stdSort, stdSortPage, stdSortTrait, stdSprite, stdSpritePage, stdSpriteTrait, stdStemLab, stdStemLabPage, stdStemLabTrait, stdStrategyGame, stdStrategyGameArmyBattleBattleFlowTrait, stdStrategyGameArmyBattleCombatLogTrait, stdStrategyGamePage, stdTabs, stdTabsPage, stdTabsTrait, stdTextEffects, stdTextEffectsPage, stdTextEffectsTrait, stdTheme, stdThemePage, stdThemeTrait, stdTimer, stdTimerPage, stdTimerTrait, stdTradingDashboard, stdTradingDashboardPage, stdTradingDashboardTrait, stdTurnBasedBattle, stdTurnBasedBattleBattleUnitBattleFlowTrait, stdTurnBasedBattleBattleUnitCombatLogTrait, stdTurnBasedBattlePage, stdUndo, stdUndoPage, stdUndoTrait, stdUpload, stdUploadPage, stdUploadTrait, stdValidateOnSave, stdValidateOnSavePage, stdValidateOnSaveTrait, stdWizard, stdWizardPage, stdWizardTrait, validateBehaviorEvents, validateBehaviorStates, validateBehaviorStructure, validateOperatorArityExtended, validateStdOperatorArity };
|
|
13043
|
+
export { ARRAY_OPERATORS, ASYNC_OPERATORS, BEHAVIOR_CATEGORY_DESCRIPTIONS, CORE_OPERATORS, FORMAT_OPERATORS, MATH_OPERATORS, MODULE_DESCRIPTIONS, OBJECT_OPERATORS, STD_OPERATORS as OPERATORS, OPERATOR_CATEGORIES, OPERATOR_NAMES, STD_MODULES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, STD_OPERATOR_CATEGORIES, STR_OPERATORS, TIME_OPERATORS, VALIDATE_OPERATORS, explodeBehaviorComposition, formatArity, generateBehaviorDoc, generateBehaviorsDocs, generateModuleDoc, generateModulesDocs, generateOperatorDoc, generateStdLibDocs, getAllBehaviorNames, getAllBehaviors, getAllStdOperators as getAllOperatorNames, getAllStdOperators, getBehaviorMetadata, getBehaviorRegistry, getBehaviorSummary, getBehaviorsByDomain, getBehaviorsByLevel, getBehaviorsByOperations, getCoreOperators, getFunctionFromOperator, getLambdaOperators, getModuleFromOperator, getModuleOperators, getOperatorMetaExtended, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, hasGoldenOrb, humanizeOperatorName, humanizeReturnType, isEffectOperatorExtended, isKnownStdOperator as isKnownOperator, isKnownOperatorExtended, isKnownStdOperator, isStdCategory, isStdEffectOperator, isStdGuardOperator, isStdOperator, loadGoldenOrb, makeStdOperator, searchBehaviors, stdAgentActivityLog, stdAgentActivityLogPage, stdAgentActivityLogTrait, stdAgentAssistant, stdAgentAssistantAssistantAgentTrait, stdAgentAssistantAssistantConversationTrait, stdAgentAssistantPage, stdAgentBuilder, stdAgentBuilderBuildPlannerTrait, stdAgentBuilderPage, stdAgentBuilderPlannerClassifierFlowTrait, stdAgentBuilderPlannerCompletionFlowTrait, stdAgentBuilderPlannerMemoryLifecycleTrait, stdAgentBuilderPlannerTaskInputTrait, stdAgentChatThread, stdAgentChatThreadPage, stdAgentChatThreadTrait, stdAgentClassifier, stdAgentClassifierAgentClassifierAgentTrait, stdAgentClassifierAgentClassifierModalTrait, stdAgentClassifierAgentClassifierNotificationTrait, stdAgentClassifierPage, stdAgentCompletion, stdAgentCompletionAgentCompletionAgentTrait, stdAgentCompletionAgentCompletionModalTrait, stdAgentCompletionAgentCompletionNotificationTrait, stdAgentCompletionPage, stdAgentContextWindow, stdAgentContextWindowAgentContextWindowAgentTrait, stdAgentContextWindowAgentContextWindowGaugeTrait, stdAgentContextWindowAgentContextWindowNotificationTrait, stdAgentContextWindowPage, stdAgentConversation, stdAgentConversationAgentConversationAgentTrait, stdAgentConversationAgentConversationThreadTrait, stdAgentConversationPage, stdAgentFixLoop, stdAgentFixLoopAgentFixLoopCycleTrait, stdAgentFixLoopFixLoopCompletionFlowTrait, stdAgentFixLoopFixLoopErrorsBrowseTrait, stdAgentFixLoopFixLoopFixCallTrait, stdAgentFixLoopFixLoopStepProgressTrait, stdAgentFixLoopFixLoopValidateCallTrait, stdAgentFixLoopPage, stdAgentLearner, stdAgentLearnerAgentLearnerLearnerTrait, stdAgentLearnerLearnerCompletionFlowTrait, stdAgentLearnerLearnerMemoryLifecycleTrait, stdAgentLearnerLearnerProviderManagerTrait, stdAgentLearnerLearnerRecordsBrowseTrait, stdAgentLearnerPage, stdAgentMemory, stdAgentMemoryAgentMemoryAgentTrait, stdAgentMemoryAgentMemoryBrowseTrait, stdAgentMemoryAgentMemoryCreateTrait, stdAgentMemoryPage, stdAgentPipeline, stdAgentPipelinePage, stdAgentPipelinePipelinePlannerTrait, stdAgentPipelinePlannerClassifierFlowTrait, stdAgentPipelinePlannerCompletionFlowTrait, stdAgentPipelinePlannerMemoryLifecycleTrait, stdAgentPipelinePlannerTaskInputTrait, stdAgentPlanner, stdAgentPlannerAgentPlannerPlannerTrait, stdAgentPlannerPage, stdAgentPlannerPlannerClassifierFlowTrait, stdAgentPlannerPlannerCompletionFlowTrait, stdAgentPlannerPlannerMemoryLifecycleTrait, stdAgentPlannerPlannerTaskInputTrait, stdAgentProvider, stdAgentProviderAgentProviderAgentTrait, stdAgentProviderAgentProviderModalTrait, stdAgentProviderAgentProviderNotificationTrait, stdAgentProviderPage, stdAgentRag, stdAgentRagAgentRagRagTrait, stdAgentRagPage, stdAgentRagRagCompletionFlowTrait, stdAgentRagRagMemoryLifecycleTrait, stdAgentRagRagSearchLifecycleTrait, stdAgentRagRagTabsTrait, stdAgentReviewer, stdAgentReviewerPage, stdAgentReviewerTrait, stdAgentSearch, stdAgentSearchAgentSearchAgentTrait, stdAgentSearchAgentSearchBrowseTrait, stdAgentSearchPage, stdAgentSession, stdAgentSessionAgentSessionAgentTrait, stdAgentSessionAgentSessionBrowseTrait, stdAgentSessionAgentSessionLabelTrait, stdAgentSessionPage, stdAgentStepProgress, stdAgentStepProgressPage, stdAgentStepProgressTrait, stdAgentTokenGauge, stdAgentTokenGaugePage, stdAgentTokenGaugeTrait, stdAgentToolCall, stdAgentToolCallAgentToolCallAgentTrait, stdAgentToolCallAgentToolCallModalTrait, stdAgentToolCallPage, stdAgentToolLoop, stdAgentToolLoopAgentToolLoopLoopTrait, stdAgentToolLoopPage, stdAgentToolLoopToolLoopCompletionFlowTrait, stdAgentToolLoopToolLoopContextMonitorTrait, stdAgentToolLoopToolLoopStepProgressTrait, stdAgentToolLoopToolLoopToolCallFlowTrait, stdAgentTutor, stdAgentTutorPage, stdAgentTutorTrait, stdApiGateway, stdApiGatewayPage, stdApiGatewayRouteBrowseTrait, stdApiGatewayRouteCreateTrait, stdApiGatewayRouteDeleteTrait, stdApiGatewayRouteEditTrait, stdApiGatewayRouteViewTrait, stdArcadeGame, stdArcadeGamePage, stdArcadeGameTrait, stdAsync, stdAsyncPage, stdAsyncTrait, stdAutoregressive, stdAutoregressivePage, stdAutoregressiveTrait, stdBookingSystem, stdBookingSystemPage, stdBookingSystemProviderBrowseTrait, stdBookingSystemProviderCreateTrait, stdBookingSystemProviderDeleteTrait, stdBookingSystemProviderEditTrait, stdBookingSystemProviderViewTrait, stdBrowse, stdBrowsePage, stdBrowseTrait, stdBuilderGame, stdBuilderGamePage, stdBuilderGameTrait, stdCacheAside, stdCacheAsidePage, stdCacheAsideTrait, stdCalendar, stdCalendarPage, stdCalendarTrait, stdCart, stdCartCartItemAddItemTrait, stdCartCartItemCartBrowseTrait, stdCartCartItemRemoveConfirmTrait, stdCartPage, stdCicdPipeline, stdCicdPipelineBuildBrowseTrait, stdCicdPipelineBuildCreateTrait, stdCicdPipelineBuildDeleteTrait, stdCicdPipelineBuildEditTrait, stdCicdPipelineBuildViewTrait, stdCicdPipelinePage, stdCircuitBreaker, stdCircuitBreakerPage, stdCircuitBreakerTrait, stdClassifierGame, stdClassifierGamePage, stdClassifierGameTrait, stdCms, stdCmsArticleBrowseTrait, stdCmsArticleCreateTrait, stdCmsArticleDeleteTrait, stdCmsArticleEditTrait, stdCmsArticleViewTrait, stdCmsPage, stdCodingAcademy, stdCodingAcademyPage, stdCodingAcademyTrait, stdCollision, stdCollisionPage, stdCollisionTrait, stdCombat, stdCombatLog, stdCombatLogPage, stdCombatLogTrait, stdCombatPage, stdCombatTrait, stdConfirmation, stdConfirmationPage, stdConfirmationTrait, stdCrm, stdCrmContactBrowseTrait, stdCrmContactCreateTrait, stdCrmContactDeleteTrait, stdCrmContactEditTrait, stdCrmContactViewTrait, stdCrmPage, stdDebuggerGame, stdDebuggerGamePage, stdDebuggerGameTrait, stdDetail, stdDetailDetailRecordBrowseTrait, stdDetailDetailRecordCreateTrait, stdDetailDetailRecordViewTrait, stdDetailPage, stdDevopsDashboard, stdDevopsDashboardPage, stdDevopsDashboardTrait, stdDialogueBox, stdDialogueBoxPage, stdDialogueBoxTrait, stdDisplay, stdDisplayPage, stdDisplayTrait, stdDrawer, stdDrawerPage, stdDrawerTrait, stdEcommerce, stdEcommercePage, stdEcommerceProductBrowseTrait, stdEcommerceProductCreateTrait, stdEcommerceProductDeleteTrait, stdEcommerceProductEditTrait, stdEcommerceProductViewTrait, stdEventHandlerGame, stdEventHandlerGamePage, stdEventHandlerGameTrait, stdFilter, stdFilterPage, stdFilterTrait, stdFinanceTracker, stdFinanceTrackerPage, stdFinanceTrackerTransactionBrowseTrait, stdFinanceTrackerTransactionCreateTrait, stdFinanceTrackerTransactionDeleteTrait, stdFinanceTrackerTransactionEditTrait, stdFinanceTrackerTransactionViewTrait, stdFlipCard, stdFlipCardPage, stdFlipCardTrait, stdFormAdvanced, stdFormAdvancedPage, stdFormAdvancedTrait, stdGallery, stdGalleryPage, stdGalleryTrait, stdGameAudio, stdGameAudioPage, stdGameAudioTrait, stdGameCanvas2d, stdGameCanvas2dPage, stdGameCanvas2dTrait, stdGameCanvas3d, stdGameCanvas3dPage, stdGameCanvas3dTrait, stdGameHud, stdGameHudPage, stdGameHudTrait, stdGameMenu, stdGameMenuPage, stdGameMenuTrait, stdGameOverScreen, stdGameOverScreenPage, stdGameOverScreenTrait, stdGameflow, stdGameflowPage, stdGameflowTrait, stdGeospatial, stdGeospatialLocationBrowseTrait, stdGeospatialLocationConfirmSelectTrait, stdGeospatialLocationSelectTrait, stdGeospatialPage, stdHealthcare, stdHealthcarePage, stdHealthcarePatientBrowseTrait, stdHealthcarePatientCreateTrait, stdHealthcarePatientDeleteTrait, stdHealthcarePatientEditTrait, stdHealthcarePatientViewTrait, stdHelpdesk, stdHelpdeskPage, stdHelpdeskTicketBrowseTrait, stdHelpdeskTicketCreateTrait, stdHelpdeskTicketDeleteTrait, stdHelpdeskTicketEditTrait, stdHelpdeskTicketViewTrait, stdHrPortal, stdHrPortalEmployeeBrowseTrait, stdHrPortalEmployeeCreateTrait, stdHrPortalEmployeeDeleteTrait, stdHrPortalEmployeeEditTrait, stdHrPortalEmployeeViewTrait, stdHrPortalPage, stdInput, stdInputPage, stdInputTrait, stdInventory, stdInventoryInventoryItemAddTrait, stdInventoryInventoryItemBrowseTrait, stdInventoryInventoryItemDropTrait, stdInventoryInventoryItemUseTrait, stdInventoryPage, stdInventoryPanel, stdInventoryPanelPage, stdInventoryPanelTrait, stdIotDashboard, stdIotDashboardPage, stdIotDashboardTrait, stdIsometricCanvas, stdIsometricCanvasPage, stdIsometricCanvasTrait, stdList, stdListListItemBrowseTrait, stdListListItemCreateTrait, stdListListItemDeleteTrait, stdListListItemEditTrait, stdListListItemViewTrait, stdListPage, stdLms, stdLmsCourseBrowseTrait, stdLmsCourseCreateTrait, stdLmsCourseDeleteTrait, stdLmsCourseEditTrait, stdLmsCourseViewTrait, stdLmsPage, stdLoading, stdLoadingPage, stdLoadingTrait, stdLogicTraining, stdLogicTrainingPage, stdLogicTrainingTrait, stdMessaging, stdMessagingChatMessageBrowseTrait, stdMessagingChatMessageComposeTrait, stdMessagingChatMessageViewTrait, stdMessagingPage, stdModal, stdModalPage, stdModalTrait, stdMovement, stdMovementPage, stdMovementTrait, stdNegotiatorGame, stdNegotiatorGamePage, stdNegotiatorGameTrait, stdNotification, stdNotificationPage, stdNotificationTrait, stdOverworld, stdOverworldPage, stdOverworldTrait, stdPagination, stdPaginationPage, stdPaginationTrait, stdPhysics2d, stdPhysics2dPage, stdPhysics2dTrait, stdPlatformerApp, stdPlatformerAppPage, stdPlatformerAppPlatLevelPlatformerCanvasTrait, stdPlatformerAppPlatLevelPlatformerFlowTrait, stdPlatformerCanvas, stdPlatformerCanvasPage, stdPlatformerCanvasTrait, stdPlatformerGame, stdPlatformerGamePage, stdPlatformerGamePlatLevelPlatformerCanvasTrait, stdPlatformerGamePlatLevelPlatformerFlowTrait, stdProjectManager, stdProjectManagerPage, stdProjectManagerTaskBrowseTrait, stdProjectManagerTaskCreateTrait, stdProjectManagerTaskDeleteTrait, stdProjectManagerTaskEditTrait, stdProjectManagerTaskViewTrait, stdPuzzleApp, stdPuzzleAppPage, stdPuzzleAppPuzzleLevelPuzzleFlowTrait, stdPuzzleAppPuzzleLevelPuzzleScoreTrait, stdPuzzleGame, stdPuzzleGamePage, stdPuzzleGamePuzzleBoardPuzzleFlowTrait, stdPuzzleGamePuzzleBoardPuzzleScoreTrait, stdQuest, stdQuestPage, stdQuestTrait, stdQuiz, stdQuizPage, stdQuizTrait, stdRateLimiter, stdRateLimiterPage, stdRateLimiterTrait, stdRating, stdRatingPage, stdRatingTrait, stdRealtimeChat, stdRealtimeChatChatMessageBrowseTrait, stdRealtimeChatChatMessageComposeTrait, stdRealtimeChatChatMessageViewTrait, stdRealtimeChatPage, stdRpgGame, stdRpgGameBattleStateBattleFlowTrait, stdRpgGameBattleStateCombatLogTrait, stdRpgGamePage, stdScore, stdScoreBoard, stdScoreBoardPage, stdScoreBoardTrait, stdScorePage, stdScoreTrait, stdSearch, stdSearchPage, stdSearchTrait, stdSelection, stdSelectionPage, stdSelectionTrait, stdSequencerGame, stdSequencerGamePage, stdSequencerGameTrait, stdServiceContentPipeline, stdServiceContentPipelinePage, stdServiceContentPipelineTrait, stdServiceCustomApiTester, stdServiceCustomApiTesterPage, stdServiceCustomApiTesterTrait, stdServiceCustomBearer, stdServiceCustomBearerPage, stdServiceCustomBearerTrait, stdServiceCustomHeader, stdServiceCustomHeaderPage, stdServiceCustomHeaderTrait, stdServiceCustomNoauth, stdServiceCustomNoauthPage, stdServiceCustomNoauthTrait, stdServiceCustomQuery, stdServiceCustomQueryPage, stdServiceCustomQueryTrait, stdServiceDevopsToolkit, stdServiceDevopsToolkitPage, stdServiceDevopsToolkitServiceDevopsToolkitGithubTrait, stdServiceDevopsToolkitServiceDevopsToolkitRedisTrait, stdServiceDevopsToolkitServiceDevopsToolkitStorageTrait, stdServiceEmail, stdServiceEmailPage, stdServiceEmailTrait, stdServiceGithub, stdServiceGithubPage, stdServiceGithubTrait, stdServiceLlm, stdServiceLlmPage, stdServiceLlmTrait, stdServiceMarketplace, stdServiceMarketplacePage, stdServiceMarketplaceProductBrowseTrait, stdServiceMarketplaceProductCreateTrait, stdServiceMarketplaceProductDeleteTrait, stdServiceMarketplaceProductEditTrait, stdServiceMarketplaceProductViewTrait, stdServiceNotificationHub, stdServiceNotificationHubPage, stdServiceNotificationHubTrait, stdServiceOauth, stdServiceOauthPage, stdServiceOauthTrait, stdServicePaymentFlow, stdServicePaymentFlowPage, stdServicePaymentFlowServicePaymentFlowPaymentTrait, stdServicePaymentFlowServicePaymentFlowReceiptTrait, stdServiceRedis, stdServiceRedisPage, stdServiceRedisTrait, stdServiceResearchAssistant, stdServiceResearchAssistantPage, stdServiceResearchAssistantTrait, stdServiceStorage, stdServiceStoragePage, stdServiceStorageTrait, stdServiceStripe, stdServiceStripePage, stdServiceStripeTrait, stdServiceTwilio, stdServiceTwilioPage, stdServiceTwilioTrait, stdServiceYoutube, stdServiceYoutubePage, stdServiceYoutubeTrait, stdSimulationCanvas, stdSimulationCanvasPage, stdSimulationCanvasTrait, stdSimulatorGame, stdSimulatorGamePage, stdSimulatorGameTrait, stdSocialFeed, stdSocialFeedPage, stdSocialFeedPostBrowseTrait, stdSocialFeedPostCreateTrait, stdSocialFeedPostViewTrait, stdSort, stdSortPage, stdSortTrait, stdSprite, stdSpritePage, stdSpriteTrait, stdStemLab, stdStemLabPage, stdStemLabTrait, stdStrategyGame, stdStrategyGameArmyBattleBattleFlowTrait, stdStrategyGameArmyBattleCombatLogTrait, stdStrategyGamePage, stdTabs, stdTabsPage, stdTabsTrait, stdTextEffects, stdTextEffectsPage, stdTextEffectsTrait, stdTheme, stdThemePage, stdThemeTrait, stdTimer, stdTimerPage, stdTimerTrait, stdTradingDashboard, stdTradingDashboardPage, stdTradingDashboardTrait, stdTurnBasedBattle, stdTurnBasedBattleBattleUnitBattleFlowTrait, stdTurnBasedBattleBattleUnitCombatLogTrait, stdTurnBasedBattlePage, stdUndo, stdUndoPage, stdUndoTrait, stdUpload, stdUploadPage, stdUploadTrait, stdValidateOnSave, stdValidateOnSavePage, stdValidateOnSaveTrait, stdWizard, stdWizardPage, stdWizardTrait, validateBehaviorEvents, validateBehaviorStates, validateBehaviorStructure, validateStdOperatorArity as validateOperatorArity, validateOperatorArityExtended, validateStdOperatorArity };
|
|
12487
13044
|
//# sourceMappingURL=index.js.map
|
|
12488
13045
|
//# sourceMappingURL=index.js.map
|