@almadar/std 16.239.0 → 16.242.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/behaviors-registry.json +4814 -553
- package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +38 -1
- package/behaviors/lolo/agent/atoms/std-agent-session.lolo +1074 -47
- package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +8 -7
- package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +56 -37
- package/behaviors/lolo/infra/atoms/std-page-open.lolo +59 -0
- package/behaviors/lolo/infra/atoms/std-page-search.lolo +134 -0
- package/behaviors/lolo/infra/atoms/std-page-treat.lolo +59 -0
- package/behaviors/lolo/infra/atoms/std-page-watch.lolo +86 -0
- package/behaviors/lolo/ui/core/atoms/std-board.lolo +53 -6
- package/behaviors/lolo/ui/core/atoms/std-book-reader.lolo +25 -1
- package/behaviors/lolo/ui/core/atoms/std-card-grid.lolo +9 -0
- package/behaviors/lolo/ui/core/atoms/std-doc-page.lolo +153 -0
- package/behaviors/lolo/ui/core/atoms/std-site-header.lolo +15 -3
- package/behaviors/lolo/ui/core/atoms/std-tag-strip.lolo +2 -2
- package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +7 -7
- package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-header.lolo +5 -0
- package/behaviors/lolo/ui/learning/atoms/std-learn-arrangement.lolo +124 -92
- package/behaviors/lolo/ui/learning/atoms/std-learn-classify.lolo +114 -55
- package/behaviors/lolo/ui/learning/atoms/std-learn-compare.lolo +40 -14
- package/behaviors/lolo/ui/learning/atoms/std-learn-coupled-sim.lolo +363 -123
- package/behaviors/lolo/ui/learning/atoms/std-learn-derivation.lolo +93 -48
- package/behaviors/lolo/ui/learning/atoms/std-learn-diagram.lolo +60 -28
- package/behaviors/lolo/ui/learning/atoms/std-learn-doser.lolo +193 -96
- package/behaviors/lolo/ui/learning/atoms/std-learn-estimate.lolo +75 -32
- package/behaviors/lolo/ui/learning/atoms/std-learn-goal-seek.lolo +142 -86
- package/behaviors/lolo/ui/learning/atoms/std-learn-grid-sim.lolo +266 -98
- package/behaviors/lolo/ui/learning/atoms/std-learn-hotspot.lolo +103 -65
- package/behaviors/lolo/ui/learning/atoms/std-learn-live-sim.lolo +223 -109
- package/behaviors/lolo/ui/learning/atoms/std-learn-measure.lolo +232 -64
- package/behaviors/lolo/ui/learning/atoms/std-learn-param-explorer.lolo +69 -29
- package/behaviors/lolo/ui/learning/atoms/std-learn-perturb.lolo +363 -123
- package/behaviors/lolo/ui/learning/atoms/std-learn-predict.lolo +73 -41
- package/behaviors/lolo/ui/learning/atoms/std-learn-sample-accumulator.lolo +96 -38
- package/behaviors/lolo/ui/learning/atoms/std-learn-sandbox.lolo +65 -45
- package/behaviors/lolo/ui/learning/atoms/std-learn-scatter-fit.lolo +243 -117
- package/behaviors/lolo/ui/learning/atoms/std-learn-scenario.lolo +76 -28
- package/behaviors/lolo/ui/learning/atoms/std-learn-sim-3d.lolo +228 -109
- package/behaviors/lolo/ui/learning/atoms/std-learn-speed-drill.lolo +95 -44
- package/behaviors/lolo/ui/learning/atoms/std-learn-stepper.lolo +199 -125
- package/behaviors/lolo/ui/learning/atoms/std-learn-tour-3d.lolo +92 -48
- package/behaviors/lolo/ui/learning/atoms/std-learn-trace-player.lolo +239 -78
- package/behaviors/lolo/ui/learning/atoms/std-learn-transport.lolo +147 -38
- package/behaviors/lolo/ui/learning/atoms/std-learn-tree.lolo +123 -58
- package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +22 -0
- package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +26 -0
- package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +26 -0
- package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +27 -1
- package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +27 -1
- package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +29 -9
- package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +26 -0
- package/behaviors/lolo-behavior-contracts.json +1 -1
- package/behaviors/registry/agent/atoms/std-agent-memory.orb +372 -2
- package/behaviors/registry/agent/atoms/std-agent-session.orb +4752 -348
- package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +54 -42
- package/behaviors/registry/agent/organisms/std-agent-assistant.orb +356 -122
- package/behaviors/registry/factory-signatures.json +1 -1
- package/behaviors/registry/infra/atoms/std-page-open.orb +435 -0
- package/behaviors/registry/infra/atoms/std-page-search.orb +867 -0
- package/behaviors/registry/infra/atoms/std-page-treat.orb +494 -0
- package/behaviors/registry/infra/atoms/std-page-watch.orb +554 -0
- package/behaviors/registry/ui/core/atoms/std-board.orb +110 -14
- package/behaviors/registry/ui/core/atoms/std-book-reader.orb +119 -0
- package/behaviors/registry/ui/core/atoms/std-card-grid.orb +61 -0
- package/behaviors/registry/ui/core/atoms/std-doc-page.orb +594 -0
- package/behaviors/registry/ui/core/atoms/std-site-header.orb +40 -2
- package/behaviors/registry/ui/core/atoms/std-tag-strip.orb +2 -0
- package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +24 -0
- package/behaviors/registry/ui/core/atoms/std-version-history.orb +8 -1
- package/behaviors/registry/ui/core/molecules/ui-header.orb +7 -0
- package/behaviors/registry/ui/learning/atoms/std-learn-arrangement.orb +903 -369
- package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1002 -232
- package/behaviors/registry/ui/learning/atoms/std-learn-compare.orb +253 -74
- package/behaviors/registry/ui/learning/atoms/std-learn-coupled-sim.orb +3624 -921
- package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +685 -144
- package/behaviors/registry/ui/learning/atoms/std-learn-diagram.orb +404 -52
- package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +1787 -210
- package/behaviors/registry/ui/learning/atoms/std-learn-estimate.orb +699 -71
- package/behaviors/registry/ui/learning/atoms/std-learn-goal-seek.orb +1102 -578
- package/behaviors/registry/ui/learning/atoms/std-learn-grid-sim.orb +2760 -872
- package/behaviors/registry/ui/learning/atoms/std-learn-hotspot.orb +689 -152
- package/behaviors/registry/ui/learning/atoms/std-learn-live-sim.orb +1431 -633
- package/behaviors/registry/ui/learning/atoms/std-learn-measure.orb +2485 -512
- package/behaviors/registry/ui/learning/atoms/std-learn-param-explorer.orb +501 -197
- package/behaviors/registry/ui/learning/atoms/std-learn-perturb.orb +3642 -928
- package/behaviors/registry/ui/learning/atoms/std-learn-predict.orb +705 -125
- package/behaviors/registry/ui/learning/atoms/std-learn-sample-accumulator.orb +624 -114
- package/behaviors/registry/ui/learning/atoms/std-learn-sandbox.orb +405 -153
- package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +1911 -611
- package/behaviors/registry/ui/learning/atoms/std-learn-scenario.orb +436 -128
- package/behaviors/registry/ui/learning/atoms/std-learn-sim-3d.orb +2482 -485
- package/behaviors/registry/ui/learning/atoms/std-learn-speed-drill.orb +896 -192
- package/behaviors/registry/ui/learning/atoms/std-learn-stepper.orb +2001 -759
- package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +734 -228
- package/behaviors/registry/ui/learning/atoms/std-learn-trace-player.orb +2501 -764
- package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +1591 -173
- package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +883 -122
- package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +176 -0
- package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +211 -0
- package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +211 -0
- package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +212 -1
- package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +212 -1
- package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +203 -9
- package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +211 -0
- package/behaviors/signatures.lolo +325 -655
- package/canonical-operators.json +35 -1
- package/dist/behaviors/exports-reader.js +41980 -35508
- package/dist/behaviors/functions/index.d.ts +1063 -140
- package/dist/behaviors/functions/index.js +41951 -35506
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +41981 -35509
- package/dist/behaviors/query.js +41980 -35508
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +47 -27
- package/dist/behaviors-registry.json +4814 -553
- package/dist/index.d.ts +4 -4
- package/dist/index.js +42019 -35509
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +623 -263
- package/dist/modules/anim.d.ts +1 -1
- package/dist/modules/array.d.ts +1 -1
- package/dist/modules/async.d.ts +1 -1
- package/dist/modules/behavior.d.ts +1 -1
- package/dist/modules/browser.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 +2 -0
- package/dist/modules/data.d.ts +1 -1
- package/dist/modules/ease.d.ts +1 -1
- package/dist/modules/format.d.ts +1 -1
- package/dist/modules/geo.d.ts +1 -1
- package/dist/modules/graph.d.ts +1 -1
- package/dist/modules/grid.d.ts +1 -1
- package/dist/modules/i18n.d.ts +17 -0
- package/dist/modules/i18n.js +22 -0
- package/dist/modules/index.d.ts +2 -1
- package/dist/modules/index.js +24 -1
- package/dist/modules/integration.d.ts +1 -1
- package/dist/modules/json.d.ts +1 -1
- package/dist/modules/llm.d.ts +1 -1
- package/dist/modules/math.d.ts +1 -1
- package/dist/modules/memory.d.ts +1 -1
- package/dist/modules/nn.d.ts +1 -1
- package/dist/modules/noise.d.ts +1 -1
- package/dist/modules/object.d.ts +1 -1
- package/dist/modules/os.d.ts +1 -1
- package/dist/modules/path.d.ts +1 -1
- package/dist/modules/prob.d.ts +1 -1
- package/dist/modules/session.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/trace.d.ts +1 -1
- package/dist/modules/train.d.ts +1 -1
- package/dist/modules/validate.d.ts +1 -1
- package/dist/modules/vector.d.ts +1 -1
- package/dist/modules/workspace.d.ts +1 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/dist/registry.d.ts +10 -3
- package/dist/registry.js +31 -1
- package/dist/{types-DLx38UFZ.d.ts → types-Cdb321uM.d.ts} +9 -3
- package/i18n/ar.json +1 -0
- package/i18n/en.json +1 -0
- package/i18n/sl.json +1 -0
- package/package.json +3 -3
package/dist/registry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StdOperatorMeta,
|
|
2
|
-
export { c as OPERATOR_VISUAL_FORMS } from './types-
|
|
1
|
+
import { S as StdOperatorMeta, R as RunsOn, a as StdModule, O as OperatorMeta, b as OperatorVisualForm } from './types-Cdb321uM.js';
|
|
2
|
+
export { c as OPERATOR_VISUAL_FORMS } from './types-Cdb321uM.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Standard Library Registry
|
|
@@ -107,6 +107,13 @@ declare function isStdGuardOperator(operator: string): boolean;
|
|
|
107
107
|
declare function isStdEffectOperator(operator: string): boolean;
|
|
108
108
|
/** Declared execution site of an effect operator; `undefined` for a pure or unknown one. */
|
|
109
109
|
declare function getOperatorRunsOn(operator: string): RunsOn | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Where one effect call runs: its declared `runsOn`, except a data effect
|
|
112
|
+
* (`entityArgPosition`) whose target entity stores its rows in the browser
|
|
113
|
+
* (core's `storesRowsInBrowser` over the program's entities), which runs on the
|
|
114
|
+
* client. Undefined for a pure op. Twin of Rust `effects::effect_site`.
|
|
115
|
+
*/
|
|
116
|
+
declare function effectSiteFor(operator: string, args: readonly unknown[], storesRowsInBrowser: (entityName: string) => boolean): RunsOn | undefined;
|
|
110
117
|
/** Effect operators whose declared execution site is `site`, sorted. */
|
|
111
118
|
declare function getOperatorsRunningOn(site: RunsOn): string[];
|
|
112
119
|
/**
|
|
@@ -156,4 +163,4 @@ declare function getStdLibStats(): {
|
|
|
156
163
|
/** The AVL circuit form of an operator: its declared form, else conveyor (takes a lambda), actuator (side effect) or block. Null when unregistered. */
|
|
157
164
|
declare function operatorVisualForm(operator: string): OperatorVisualForm | null;
|
|
158
165
|
|
|
159
|
-
export { OPERATOR_NAMES, OperatorVisualForm, STD_OPERATORS, STD_OPERATORS_BY_MODULE, assertOperatorArity, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getOperatorRunsOn, getOperatorsRunningOn, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, operatorVisualForm, validateOperatorArityExtended, validateStdOperatorArity };
|
|
166
|
+
export { OPERATOR_NAMES, OperatorVisualForm, STD_OPERATORS, STD_OPERATORS_BY_MODULE, assertOperatorArity, effectSiteFor, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getOperatorRunsOn, getOperatorsRunningOn, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, operatorVisualForm, validateOperatorArityExtended, validateStdOperatorArity };
|
package/dist/registry.js
CHANGED
|
@@ -9,6 +9,7 @@ var STD_MODULES = [
|
|
|
9
9
|
"time",
|
|
10
10
|
"validate",
|
|
11
11
|
"format",
|
|
12
|
+
"i18n",
|
|
12
13
|
"async",
|
|
13
14
|
"nn",
|
|
14
15
|
"tensor",
|
|
@@ -452,6 +453,7 @@ var CORE_OPERATORS = {
|
|
|
452
453
|
description: "Create, update, delete, clear, or batch entity records. Optional trailing { emit: { success, failure } } options object attaches closed-circuit emit routing.",
|
|
453
454
|
hasSideEffects: true,
|
|
454
455
|
runsOn: "server",
|
|
456
|
+
entityArgPosition: 1,
|
|
455
457
|
returnType: "void",
|
|
456
458
|
params: [
|
|
457
459
|
{ name: "action", type: PERSIST_ACTION, description: "Persist action" },
|
|
@@ -612,6 +614,7 @@ var CORE_OPERATORS = {
|
|
|
612
614
|
description: "Fetch an entity (by id) or a collection (by filter) from persistence",
|
|
613
615
|
hasSideEffects: true,
|
|
614
616
|
runsOn: "server",
|
|
617
|
+
entityArgPosition: 0,
|
|
615
618
|
returnType: "void",
|
|
616
619
|
params: [
|
|
617
620
|
{ name: "entity", type: { kind: "entity" }, description: "Target entity name" },
|
|
@@ -3220,6 +3223,24 @@ var FORMAT_OPERATORS = {
|
|
|
3220
3223
|
}
|
|
3221
3224
|
};
|
|
3222
3225
|
|
|
3226
|
+
// modules/i18n.ts
|
|
3227
|
+
var I18N_OPERATORS = {
|
|
3228
|
+
"i18n/t": {
|
|
3229
|
+
module: "i18n",
|
|
3230
|
+
category: "std-i18n",
|
|
3231
|
+
minArity: 1,
|
|
3232
|
+
maxArity: 2,
|
|
3233
|
+
description: "The active locale's message for a catalog key, with {{placeholders}} filled from params",
|
|
3234
|
+
hasSideEffects: false,
|
|
3235
|
+
returnType: "string",
|
|
3236
|
+
params: [
|
|
3237
|
+
{ name: "key", type: "string", description: "Catalog key (a string literal)" },
|
|
3238
|
+
{ name: "params", type: "object", description: "Values for the message {{placeholders}}", optional: true }
|
|
3239
|
+
],
|
|
3240
|
+
example: '["i18n/t", "posts.count", { "n": 3 }] // => "3 posts"'
|
|
3241
|
+
}
|
|
3242
|
+
};
|
|
3243
|
+
|
|
3223
3244
|
// modules/async.ts
|
|
3224
3245
|
var ASYNC_OPERATORS = {
|
|
3225
3246
|
"async/delay": {
|
|
@@ -6602,6 +6623,7 @@ var STD_OPERATORS = {
|
|
|
6602
6623
|
...TIME_OPERATORS,
|
|
6603
6624
|
...VALIDATE_OPERATORS,
|
|
6604
6625
|
...FORMAT_OPERATORS,
|
|
6626
|
+
...I18N_OPERATORS,
|
|
6605
6627
|
...ASYNC_OPERATORS,
|
|
6606
6628
|
...NN_OPERATORS,
|
|
6607
6629
|
...TENSOR_OPERATORS,
|
|
@@ -6639,6 +6661,7 @@ var STD_OPERATORS_BY_MODULE = {
|
|
|
6639
6661
|
time: TIME_OPERATORS,
|
|
6640
6662
|
validate: VALIDATE_OPERATORS,
|
|
6641
6663
|
format: FORMAT_OPERATORS,
|
|
6664
|
+
i18n: I18N_OPERATORS,
|
|
6642
6665
|
async: ASYNC_OPERATORS,
|
|
6643
6666
|
nn: NN_OPERATORS,
|
|
6644
6667
|
tensor: TENSOR_OPERATORS,
|
|
@@ -6725,6 +6748,13 @@ function isStdEffectOperator(operator) {
|
|
|
6725
6748
|
function getOperatorRunsOn(operator) {
|
|
6726
6749
|
return STD_OPERATORS[operator]?.runsOn;
|
|
6727
6750
|
}
|
|
6751
|
+
function effectSiteFor(operator, args, storesRowsInBrowser) {
|
|
6752
|
+
const meta = STD_OPERATORS[operator];
|
|
6753
|
+
const site = meta?.runsOn;
|
|
6754
|
+
if (site !== "server" || meta.entityArgPosition === void 0) return site;
|
|
6755
|
+
const entity = args[meta.entityArgPosition];
|
|
6756
|
+
return typeof entity === "string" && !entity.startsWith("@") && storesRowsInBrowser(entity) ? "client" : "server";
|
|
6757
|
+
}
|
|
6728
6758
|
function getOperatorsRunningOn(site) {
|
|
6729
6759
|
return Object.keys(STD_OPERATORS).filter((name) => STD_OPERATORS[name].runsOn === site).sort();
|
|
6730
6760
|
}
|
|
@@ -6784,4 +6814,4 @@ function operatorVisualForm(operator) {
|
|
|
6784
6814
|
return meta.hasSideEffects ? "actuator" : "block";
|
|
6785
6815
|
}
|
|
6786
6816
|
|
|
6787
|
-
export { OPERATOR_NAMES, OPERATOR_VISUAL_FORMS, STD_OPERATORS, STD_OPERATORS_BY_MODULE, assertOperatorArity, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getOperatorRunsOn, getOperatorsRunningOn, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, operatorVisualForm, validateOperatorArityExtended, validateStdOperatorArity };
|
|
6817
|
+
export { OPERATOR_NAMES, OPERATOR_VISUAL_FORMS, STD_OPERATORS, STD_OPERATORS_BY_MODULE, assertOperatorArity, effectSiteFor, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getOperatorRunsOn, getOperatorsRunningOn, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, operatorVisualForm, validateOperatorArityExtended, validateStdOperatorArity };
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
/**
|
|
10
10
|
* Operator categories for the core expression language.
|
|
11
11
|
*/
|
|
12
|
-
declare const OPERATOR_CATEGORIES: readonly ["arithmetic", "comparison", "logic", "control", "effect", "collection", "std-math", "std-str", "std-array", "std-object", "std-validate", "std-json", "std-time", "std-format", "std-async", "std-nn", "std-tensor", "std-train", "std-prob", "std-os", "std-browser", "std-composition", "std-vec", "std-geo", "std-grid", "std-anim", "std-ease", "std-noise", "std-path", "ml-arch", "ml-effect", "ml-tensor", "ml-graph", "ml-contract", "ml-data", "std-llm", "std-workspace", "std-session", "std-memory", "std-trace", "std-behavior", "std-integration"];
|
|
12
|
+
declare const OPERATOR_CATEGORIES: readonly ["arithmetic", "comparison", "logic", "control", "effect", "collection", "std-math", "std-str", "std-array", "std-object", "std-validate", "std-json", "std-time", "std-format", "std-i18n", "std-async", "std-nn", "std-tensor", "std-train", "std-prob", "std-os", "std-browser", "std-composition", "std-vec", "std-geo", "std-grid", "std-anim", "std-ease", "std-noise", "std-path", "ml-arch", "ml-effect", "ml-tensor", "ml-graph", "ml-contract", "ml-data", "std-llm", "std-workspace", "std-session", "std-memory", "std-trace", "std-behavior", "std-integration"];
|
|
13
13
|
type OperatorCategory = (typeof OPERATOR_CATEGORIES)[number];
|
|
14
14
|
/**
|
|
15
15
|
* Basic return types for core operators.
|
|
@@ -104,13 +104,13 @@ interface OperatorMeta {
|
|
|
104
104
|
* Each module provides a set of operators prefixed with the module name.
|
|
105
105
|
* E.g., 'math' provides 'math/abs', 'math/clamp', etc.
|
|
106
106
|
*/
|
|
107
|
-
declare const STD_MODULES: readonly ["core", "math", "str", "array", "object", "json", "time", "validate", "format", "async", "nn", "tensor", "train", "prob", "os", "browser", "graph", "contract", "data", "composition", "vec", "geo", "grid", "anim", "ease", "noise", "path", "llm", "workspace", "session", "memory", "trace", "behavior", "integration"];
|
|
107
|
+
declare const STD_MODULES: readonly ["core", "math", "str", "array", "object", "json", "time", "validate", "format", "i18n", "async", "nn", "tensor", "train", "prob", "os", "browser", "graph", "contract", "data", "composition", "vec", "geo", "grid", "anim", "ease", "noise", "path", "llm", "workspace", "session", "memory", "trace", "behavior", "integration"];
|
|
108
108
|
type StdModule = (typeof STD_MODULES)[number];
|
|
109
109
|
/**
|
|
110
110
|
* Standard library operator categories.
|
|
111
111
|
* These extend the core categories for more granular classification.
|
|
112
112
|
*/
|
|
113
|
-
declare const STD_OPERATOR_CATEGORIES: readonly ["std-math", "std-str", "std-array", "std-object", "std-json", "std-time", "std-validate", "std-format", "std-async", "std-nn", "std-tensor", "std-train", "std-prob", "std-os", "std-browser", "std-composition", "std-vec", "std-geo", "std-grid", "std-anim", "std-ease", "std-noise", "std-path", "ml-arch", "ml-effect", "ml-tensor", "ml-graph", "ml-contract", "ml-data", "std-llm", "std-workspace", "std-session", "std-memory", "std-trace", "std-behavior", "std-integration"];
|
|
113
|
+
declare const STD_OPERATOR_CATEGORIES: readonly ["std-math", "std-str", "std-array", "std-object", "std-json", "std-time", "std-validate", "std-format", "std-i18n", "std-async", "std-nn", "std-tensor", "std-train", "std-prob", "std-os", "std-browser", "std-composition", "std-vec", "std-geo", "std-grid", "std-anim", "std-ease", "std-noise", "std-path", "ml-arch", "ml-effect", "ml-tensor", "ml-graph", "ml-contract", "ml-data", "std-llm", "std-workspace", "std-session", "std-memory", "std-trace", "std-behavior", "std-integration"];
|
|
114
114
|
type StdOperatorCategory = (typeof STD_OPERATOR_CATEGORIES)[number];
|
|
115
115
|
/**
|
|
116
116
|
* Structured parameter type reference (Schema v2).
|
|
@@ -189,6 +189,12 @@ interface StdOperatorMeta extends OperatorMeta {
|
|
|
189
189
|
acceptsLambda?: boolean;
|
|
190
190
|
/** Position of the lambda argument (0-indexed) */
|
|
191
191
|
lambdaArgPosition?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Position of the argument naming the target entity (0-indexed), on a data
|
|
194
|
+
* effect: the effect runs where that entity's rows live, so a `runsOn: server`
|
|
195
|
+
* data effect on a client-resident entity runs on the client.
|
|
196
|
+
*/
|
|
197
|
+
entityArgPosition?: number;
|
|
192
198
|
/** Compile-time operator (resolved during .lolo lowering, not at runtime) */
|
|
193
199
|
compileTime?: boolean;
|
|
194
200
|
/** Schema v2: structured metadata for effect operators */
|
package/i18n/ar.json
CHANGED
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"grid/neighbors": "شبكة/الجيران",
|
|
148
148
|
"grid/screen-to-iso": "شبكة/شاشة_إلى_متساوي_القياس",
|
|
149
149
|
"grid/to-world": "شبكة/إلى_العالم",
|
|
150
|
+
"i18n/t": "ترجمة/نص",
|
|
150
151
|
"if": "إذا",
|
|
151
152
|
"integration/github-create-issue": "تكامل/إنشاء_تذكرة_جيت_هب",
|
|
152
153
|
"integration/github-get-repo": "تكامل/جلب_مستودع_جيت_هب",
|
package/i18n/en.json
CHANGED
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"grid/neighbors": "grid/neighbors",
|
|
148
148
|
"grid/screen-to-iso": "grid/screen-to-iso",
|
|
149
149
|
"grid/to-world": "grid/to-world",
|
|
150
|
+
"i18n/t": "i18n/t",
|
|
150
151
|
"if": "if",
|
|
151
152
|
"integration/github-create-issue": "integration/github-create-issue",
|
|
152
153
|
"integration/github-get-repo": "integration/github-get-repo",
|
package/i18n/sl.json
CHANGED
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"grid/neighbors": "mreza/sosedje",
|
|
148
148
|
"grid/screen-to-iso": "mreza/zaslon-do-iso",
|
|
149
149
|
"grid/to-world": "mreza/do-svet",
|
|
150
|
+
"i18n/t": "prevod/besedilo",
|
|
150
151
|
"if": "ce",
|
|
151
152
|
"integration/github-create-issue": "integracija/github-ustvari-zadeva",
|
|
152
153
|
"integration/github-get-repo": "integracija/github-dobi-repozitorij",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/std",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.242.0",
|
|
4
4
|
"description": "Standard library operators for Almadar (math, string, array, etc.)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -87,11 +87,11 @@
|
|
|
87
87
|
"compiler": ">=4.10.0"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@almadar/core": "^10.
|
|
90
|
+
"@almadar/core": "^10.117.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@almadar/eslint-plugin": "^2.21.0",
|
|
94
|
-
"@almadar/llm": "^2.
|
|
94
|
+
"@almadar/llm": "^2.60.0",
|
|
95
95
|
"@types/node": "^20.0.0",
|
|
96
96
|
"@typescript-eslint/parser": "8.65.0",
|
|
97
97
|
"eslint": "10.0.0",
|