@almadar/std 13.6.0 → 13.8.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/agent/atoms/std-agent-activity-log.orb +69 -69
- package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +120 -120
- package/behaviors/registry/agent/atoms/std-agent-classifier.orb +114 -114
- package/behaviors/registry/agent/atoms/std-agent-completion.orb +124 -114
- package/behaviors/registry/agent/atoms/std-agent-context-window.orb +410 -395
- package/behaviors/registry/agent/atoms/std-agent-conversation.orb +93 -93
- package/behaviors/registry/agent/atoms/std-agent-memory.orb +67 -117
- package/behaviors/registry/agent/atoms/std-agent-provider.orb +149 -134
- package/behaviors/registry/agent/atoms/std-agent-search.orb +64 -64
- package/behaviors/registry/agent/atoms/std-agent-session.orb +106 -106
- package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +194 -189
- package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +360 -355
- package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +69 -69
- package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +204 -199
- package/behaviors/registry/agent/molecules/std-agent-learner.orb +174 -174
- package/behaviors/registry/agent/molecules/std-agent-planner.orb +125 -125
- package/behaviors/registry/agent/molecules/std-agent-rag.orb +127 -109
- package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +190 -185
- package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1209 -1155
- package/behaviors/registry/agent/organisms/std-agent-builder.orb +3021 -3001
- package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2184 -2249
- package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1029 -1050
- package/behaviors/registry/agent/organisms/std-agent-tutor.orb +842 -804
- package/behaviors/registry/app/organisms/std-cms.orb +547 -547
- package/behaviors/registry/core/atoms/std-browse.orb +36 -36
- package/behaviors/registry/core/atoms/std-cache-aside.orb +111 -111
- package/behaviors/registry/core/atoms/std-calendar.orb +56 -51
- package/behaviors/registry/core/atoms/std-circuit-breaker.orb +202 -187
- package/behaviors/registry/core/atoms/std-confirmation.orb +24 -27
- package/behaviors/registry/core/atoms/std-display.orb +2 -2
- package/behaviors/registry/core/atoms/std-drawer.orb +58 -58
- package/behaviors/registry/core/atoms/std-filter.orb +6 -9
- package/behaviors/registry/core/atoms/std-gallery.orb +46 -46
- package/behaviors/registry/core/atoms/std-graphs.orb +24 -24
- package/behaviors/registry/core/atoms/std-modal.orb +19 -19
- package/behaviors/registry/core/atoms/std-pagination.orb +14 -14
- package/behaviors/registry/core/atoms/std-push.orb +48 -90
- package/behaviors/registry/core/atoms/std-rate-limiter.orb +205 -190
- package/behaviors/registry/core/atoms/std-related.orb +31 -31
- package/behaviors/registry/core/atoms/std-search.orb +3 -3
- package/behaviors/registry/core/atoms/std-selection.orb +102 -102
- package/behaviors/registry/core/atoms/std-stats.orb +64 -64
- package/behaviors/registry/core/atoms/std-tabs.orb +18 -18
- package/behaviors/registry/core/molecules/std-cart.orb +64 -64
- package/behaviors/registry/core/molecules/std-dashboard.orb +46 -46
- package/behaviors/registry/core/molecules/std-filtered-list.orb +21 -21
- package/behaviors/registry/core/molecules/std-form-advanced.orb +172 -127
- package/behaviors/registry/core/molecules/std-list.orb +63 -63
- package/behaviors/registry/core/molecules/std-wizard-form.orb +145 -130
- package/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
- package/behaviors/registry/game/atoms/std-game-canvas2d.orb +42 -42
- package/behaviors/registry/game/atoms/std-overworld.orb +57 -57
- package/behaviors/registry/game/atoms/std-physics2d.orb +74 -74
- package/behaviors/registry/game/atoms/std-quest.orb +137 -137
- package/behaviors/registry/game/atoms/std-timer.orb +291 -291
- package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +31 -31
- package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +93 -78
- package/behaviors/registry/service/atoms/std-service-email.orb +91 -76
- package/behaviors/registry/service/atoms/std-service-github.orb +103 -83
- package/behaviors/registry/service/atoms/std-service-llm.orb +117 -112
- package/behaviors/registry/service/atoms/std-service-oauth.orb +131 -126
- package/behaviors/registry/service/atoms/std-service-redis.orb +123 -108
- package/behaviors/registry/service/atoms/std-service-storage.orb +125 -105
- package/behaviors/registry/service/atoms/std-service-stripe.orb +113 -103
- package/behaviors/registry/service/atoms/std-service-twilio.orb +102 -92
- package/behaviors/registry/service/atoms/std-service-youtube.orb +119 -114
- package/behaviors/registry/service/organisms/std-service-marketplace.orb +985 -873
- package/behaviors/registry/service/organisms/std-service-research-assistant.orb +1027 -972
- package/dist/behaviors/behaviors-registry.json +2913 -322
- package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +69 -69
- package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +120 -120
- package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +114 -114
- package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +124 -114
- package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +410 -395
- package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +93 -93
- package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +67 -117
- package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +149 -134
- package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +64 -64
- package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +106 -106
- package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +194 -189
- package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +360 -355
- package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +69 -69
- package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +204 -199
- package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +174 -174
- package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +125 -125
- package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +127 -109
- package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +190 -185
- package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1209 -1155
- package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +3021 -3001
- package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2184 -2249
- package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1029 -1050
- package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +842 -804
- package/dist/behaviors/registry/app/organisms/std-cms.orb +547 -547
- package/dist/behaviors/registry/core/atoms/std-browse.orb +36 -36
- package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +111 -111
- package/dist/behaviors/registry/core/atoms/std-calendar.orb +56 -51
- package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +202 -187
- package/dist/behaviors/registry/core/atoms/std-confirmation.orb +24 -27
- package/dist/behaviors/registry/core/atoms/std-display.orb +2 -2
- package/dist/behaviors/registry/core/atoms/std-drawer.orb +58 -58
- package/dist/behaviors/registry/core/atoms/std-filter.orb +6 -9
- package/dist/behaviors/registry/core/atoms/std-gallery.orb +46 -46
- package/dist/behaviors/registry/core/atoms/std-graphs.orb +24 -24
- package/dist/behaviors/registry/core/atoms/std-modal.orb +19 -19
- package/dist/behaviors/registry/core/atoms/std-pagination.orb +14 -14
- package/dist/behaviors/registry/core/atoms/std-push.orb +48 -90
- package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +205 -190
- package/dist/behaviors/registry/core/atoms/std-related.orb +31 -31
- package/dist/behaviors/registry/core/atoms/std-search.orb +3 -3
- package/dist/behaviors/registry/core/atoms/std-selection.orb +102 -102
- package/dist/behaviors/registry/core/atoms/std-stats.orb +64 -64
- package/dist/behaviors/registry/core/atoms/std-tabs.orb +18 -18
- package/dist/behaviors/registry/core/molecules/std-cart.orb +64 -64
- package/dist/behaviors/registry/core/molecules/std-dashboard.orb +46 -46
- package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +21 -21
- package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +172 -127
- package/dist/behaviors/registry/core/molecules/std-list.orb +63 -63
- package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +145 -130
- package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
- package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +42 -42
- package/dist/behaviors/registry/game/atoms/std-overworld.orb +57 -57
- package/dist/behaviors/registry/game/atoms/std-physics2d.orb +74 -74
- package/dist/behaviors/registry/game/atoms/std-quest.orb +137 -137
- package/dist/behaviors/registry/game/atoms/std-timer.orb +291 -291
- package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +31 -31
- package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +93 -78
- package/dist/behaviors/registry/service/atoms/std-service-email.orb +91 -76
- package/dist/behaviors/registry/service/atoms/std-service-github.orb +103 -83
- package/dist/behaviors/registry/service/atoms/std-service-llm.orb +117 -112
- package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +131 -126
- package/dist/behaviors/registry/service/atoms/std-service-redis.orb +123 -108
- package/dist/behaviors/registry/service/atoms/std-service-storage.orb +125 -105
- package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +113 -103
- package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +102 -92
- package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +119 -114
- package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +985 -873
- package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +1027 -972
- package/dist/behaviors-registry.json +2913 -322
- package/dist/index.d.ts +2 -2
- package/dist/index.js +26 -13
- 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/array.js +16 -8
- package/dist/modules/array.js.map +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 +1 -1
- package/dist/modules/core.js +6 -3
- package/dist/modules/core.js.map +1 -1
- 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 +1 -1
- package/dist/modules/index.js +26 -13
- 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/object.js +4 -2
- package/dist/modules/object.js.map +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 +1 -1
- package/dist/registry.js +26 -13
- package/dist/registry.js.map +1 -1
- package/dist/{types-D7dG8fBF.d.ts → types-CdSN5hnD.d.ts} +43 -0
- package/package.json +1 -1
package/dist/modules/index.js
CHANGED
|
@@ -195,9 +195,10 @@ var CORE_OPERATORS = {
|
|
|
195
195
|
category: "logic",
|
|
196
196
|
minArity: 2,
|
|
197
197
|
maxArity: null,
|
|
198
|
-
description: "Logical AND",
|
|
198
|
+
description: "Logical AND (returns the last truthy value, NOT a boolean \u2014 short-circuit)",
|
|
199
199
|
hasSideEffects: false,
|
|
200
200
|
returnType: "boolean",
|
|
201
|
+
returnSemantics: "last-truthy-of-args",
|
|
201
202
|
params: [{ name: "...conds", type: BOOLEAN, description: "Boolean expressions to AND" }],
|
|
202
203
|
example: '["and", ["=", "@entity.active", true], [">", "@entity.score", 0]]'
|
|
203
204
|
},
|
|
@@ -206,9 +207,10 @@ var CORE_OPERATORS = {
|
|
|
206
207
|
category: "logic",
|
|
207
208
|
minArity: 2,
|
|
208
209
|
maxArity: null,
|
|
209
|
-
description: "Logical OR",
|
|
210
|
+
description: "Logical OR (returns the first truthy value, NOT a boolean \u2014 short-circuit)",
|
|
210
211
|
hasSideEffects: false,
|
|
211
212
|
returnType: "boolean",
|
|
213
|
+
returnSemantics: "first-truthy-of-args",
|
|
212
214
|
params: [{ name: "...conds", type: BOOLEAN, description: "Boolean expressions to OR" }],
|
|
213
215
|
example: '["or", ["=", "@entity.role", "admin"], ["=", "@entity.role", "owner"]]'
|
|
214
216
|
},
|
|
@@ -228,9 +230,10 @@ var CORE_OPERATORS = {
|
|
|
228
230
|
category: "logic",
|
|
229
231
|
minArity: 3,
|
|
230
232
|
maxArity: 3,
|
|
231
|
-
description: "Conditional expression (ternary)",
|
|
233
|
+
description: "Conditional expression (ternary). Return type is union of branch types.",
|
|
232
234
|
hasSideEffects: false,
|
|
233
235
|
returnType: "any",
|
|
236
|
+
returnSemantics: "branch-union",
|
|
234
237
|
params: [
|
|
235
238
|
{ name: "cond", type: BOOLEAN, description: "Condition to evaluate" },
|
|
236
239
|
{ name: "then", type: ANY, description: "Value or effect if true" },
|
|
@@ -1213,9 +1216,10 @@ var ARRAY_OPERATORS = {
|
|
|
1213
1216
|
category: "std-array",
|
|
1214
1217
|
minArity: 1,
|
|
1215
1218
|
maxArity: 1,
|
|
1216
|
-
description: "Get first element",
|
|
1219
|
+
description: "Get first element (element type of input array, may be undefined when empty)",
|
|
1217
1220
|
hasSideEffects: false,
|
|
1218
1221
|
returnType: "any",
|
|
1222
|
+
returnSemantics: "element-of-arg<0>?",
|
|
1219
1223
|
params: [{ name: "arr", type: "array", description: "The array" }],
|
|
1220
1224
|
example: '["array/first", [1, 2, 3]] // => 1'
|
|
1221
1225
|
},
|
|
@@ -1224,9 +1228,10 @@ var ARRAY_OPERATORS = {
|
|
|
1224
1228
|
category: "std-array",
|
|
1225
1229
|
minArity: 1,
|
|
1226
1230
|
maxArity: 1,
|
|
1227
|
-
description: "Get last element",
|
|
1231
|
+
description: "Get last element (element type of input array, may be undefined when empty)",
|
|
1228
1232
|
hasSideEffects: false,
|
|
1229
1233
|
returnType: "any",
|
|
1234
|
+
returnSemantics: "element-of-arg<0>?",
|
|
1230
1235
|
params: [{ name: "arr", type: "array", description: "The array" }],
|
|
1231
1236
|
example: '["array/last", [1, 2, 3]] // => 3'
|
|
1232
1237
|
},
|
|
@@ -1235,9 +1240,10 @@ var ARRAY_OPERATORS = {
|
|
|
1235
1240
|
category: "std-array",
|
|
1236
1241
|
minArity: 2,
|
|
1237
1242
|
maxArity: 2,
|
|
1238
|
-
description: "Get element at index",
|
|
1243
|
+
description: "Get element at index (element type of input array, may be undefined out-of-bounds)",
|
|
1239
1244
|
hasSideEffects: false,
|
|
1240
1245
|
returnType: "any",
|
|
1246
|
+
returnSemantics: "element-of-arg<0>?",
|
|
1241
1247
|
params: [
|
|
1242
1248
|
{ name: "arr", type: "array", description: "The array" },
|
|
1243
1249
|
{ name: "index", type: "number", description: "Index (0-based)" }
|
|
@@ -1447,9 +1453,10 @@ var ARRAY_OPERATORS = {
|
|
|
1447
1453
|
category: "std-array",
|
|
1448
1454
|
minArity: 2,
|
|
1449
1455
|
maxArity: 2,
|
|
1450
|
-
description: "Find first element matching predicate",
|
|
1456
|
+
description: "Find first element matching predicate (element type of input array, undefined when no match)",
|
|
1451
1457
|
hasSideEffects: false,
|
|
1452
1458
|
returnType: "any",
|
|
1459
|
+
returnSemantics: "element-of-arg<0>?",
|
|
1453
1460
|
acceptsLambda: true,
|
|
1454
1461
|
lambdaArgPosition: 1,
|
|
1455
1462
|
params: [
|
|
@@ -1479,9 +1486,10 @@ var ARRAY_OPERATORS = {
|
|
|
1479
1486
|
category: "std-array",
|
|
1480
1487
|
minArity: 2,
|
|
1481
1488
|
maxArity: 2,
|
|
1482
|
-
description: "Keep elements matching predicate",
|
|
1489
|
+
description: "Keep elements matching predicate (returns same array element type as input)",
|
|
1483
1490
|
hasSideEffects: false,
|
|
1484
1491
|
returnType: "array",
|
|
1492
|
+
returnSemantics: "identity-of-arg<0>",
|
|
1485
1493
|
acceptsLambda: true,
|
|
1486
1494
|
lambdaArgPosition: 1,
|
|
1487
1495
|
params: [
|
|
@@ -1495,9 +1503,10 @@ var ARRAY_OPERATORS = {
|
|
|
1495
1503
|
category: "std-array",
|
|
1496
1504
|
minArity: 2,
|
|
1497
1505
|
maxArity: 2,
|
|
1498
|
-
description: "Remove elements matching predicate",
|
|
1506
|
+
description: "Remove elements matching predicate (returns same array element type as input)",
|
|
1499
1507
|
hasSideEffects: false,
|
|
1500
1508
|
returnType: "array",
|
|
1509
|
+
returnSemantics: "identity-of-arg<0>",
|
|
1501
1510
|
acceptsLambda: true,
|
|
1502
1511
|
lambdaArgPosition: 1,
|
|
1503
1512
|
params: [
|
|
@@ -1511,9 +1520,10 @@ var ARRAY_OPERATORS = {
|
|
|
1511
1520
|
category: "std-array",
|
|
1512
1521
|
minArity: 2,
|
|
1513
1522
|
maxArity: 2,
|
|
1514
|
-
description: "Transform each element",
|
|
1523
|
+
description: "Transform each element (return type wraps the lambda result in an array)",
|
|
1515
1524
|
hasSideEffects: false,
|
|
1516
1525
|
returnType: "array",
|
|
1526
|
+
returnSemantics: "lambda-result",
|
|
1517
1527
|
acceptsLambda: true,
|
|
1518
1528
|
lambdaArgPosition: 1,
|
|
1519
1529
|
params: [
|
|
@@ -1527,9 +1537,10 @@ var ARRAY_OPERATORS = {
|
|
|
1527
1537
|
category: "std-array",
|
|
1528
1538
|
minArity: 3,
|
|
1529
1539
|
maxArity: 3,
|
|
1530
|
-
description: "Reduce array to single value",
|
|
1540
|
+
description: "Reduce array to single value (return type matches the lambda result / init type)",
|
|
1531
1541
|
hasSideEffects: false,
|
|
1532
1542
|
returnType: "any",
|
|
1543
|
+
returnSemantics: "lambda-result",
|
|
1533
1544
|
acceptsLambda: true,
|
|
1534
1545
|
lambdaArgPosition: 1,
|
|
1535
1546
|
params: [
|
|
@@ -1788,9 +1799,10 @@ var OBJECT_OPERATORS = {
|
|
|
1788
1799
|
category: "std-object",
|
|
1789
1800
|
minArity: 2,
|
|
1790
1801
|
maxArity: 3,
|
|
1791
|
-
description: "Get nested value by path",
|
|
1802
|
+
description: "Get nested value by path (return type derived from input object shape and key)",
|
|
1792
1803
|
hasSideEffects: false,
|
|
1793
1804
|
returnType: "any",
|
|
1805
|
+
returnSemantics: "object-key-lookup",
|
|
1794
1806
|
params: [
|
|
1795
1807
|
{ name: "obj", type: "object", description: "The object" },
|
|
1796
1808
|
{ name: "path", type: "string", description: 'Dot-separated path (e.g., "user.name")' },
|
|
@@ -1854,9 +1866,10 @@ var OBJECT_OPERATORS = {
|
|
|
1854
1866
|
category: "std-object",
|
|
1855
1867
|
minArity: 2,
|
|
1856
1868
|
maxArity: 2,
|
|
1857
|
-
description: "Select only specified keys",
|
|
1869
|
+
description: "Select only specified keys (return type is subset of input object shape)",
|
|
1858
1870
|
hasSideEffects: false,
|
|
1859
1871
|
returnType: "any",
|
|
1872
|
+
returnSemantics: "object-key-lookup",
|
|
1860
1873
|
params: [
|
|
1861
1874
|
{ name: "obj", type: "object", description: "The object" },
|
|
1862
1875
|
{ name: "keys", type: "array", description: "Keys to keep" }
|