@almadar/std 16.141.0 → 16.143.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/lolo/ui/avl/molecules/ui-module-card.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/std-app-layout.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/std-app-search.lolo +22 -1
- package/behaviors/lolo/ui/core/atoms/std-browse.lolo +11 -1
- package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/std-filter.lolo +3 -0
- package/behaviors/lolo/ui/core/atoms/std-image-upload-multi.lolo +17 -0
- package/behaviors/lolo/ui/core/atoms/std-saved-search.lolo +17 -0
- package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +17 -0
- package/behaviors/lolo/ui/core/atoms/std-wizard.lolo +0 -244
- package/behaviors/lolo/ui/core/atoms/ui-aside.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/ui-typography.lolo +2 -2
- package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +3 -3
- package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +3 -4
- package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +2 -3
- package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +2 -2
- package/behaviors/lolo/ui/core/molecules/ui-filter-group.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-flip-card.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-quiz-block.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-repeatable-form-section.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-signature-pad.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-sortable-list.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +3 -4
- package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +0 -2
- package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +0 -2
- package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +0 -2
- package/behaviors/lolo/ui/core/organisms/ui-segment-renderer.lolo +2 -12
- package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +0 -2
- package/behaviors/lolo/ui/marketing/atoms/ui-marketing-stat-card.lolo +1 -1
- package/behaviors/lolo/ui/marketing/molecules/ui-case-study-card.lolo +1 -1
- package/behaviors/lolo/ui/marketing/molecules/ui-feature-card.lolo +1 -1
- package/behaviors/lolo/ui/marketing/molecules/ui-pricing-card.lolo +1 -1
- package/behaviors/registry/factory-signatures.json +286 -3335
- package/behaviors/registry/ui/avl/molecules/ui-module-card.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-app-layout.orb +6 -1
- package/behaviors/registry/ui/core/atoms/std-app-search.orb +83 -0
- package/behaviors/registry/ui/core/atoms/std-browse.orb +30 -5
- package/behaviors/registry/ui/core/atoms/std-file-store.orb +12 -2
- package/behaviors/registry/ui/core/atoms/std-filter.orb +3 -0
- package/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +40 -0
- package/behaviors/registry/ui/core/atoms/std-saved-search.orb +40 -0
- package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +40 -0
- package/behaviors/registry/ui/core/atoms/std-wizard.orb +0 -912
- package/behaviors/registry/ui/core/atoms/ui-aside.orb +1 -1
- package/behaviors/registry/ui/core/atoms/ui-typography.orb +4 -2
- package/behaviors/registry/ui/core/molecules/ui-code-block.orb +54 -32
- package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +13 -26
- package/behaviors/registry/ui/core/molecules/ui-data-list.orb +13 -26
- package/behaviors/registry/ui/core/molecules/ui-drawer.orb +2 -2
- package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-flip-card.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +1 -1
- package/behaviors/registry/ui/core/molecules/ui-table-view.orb +13 -26
- package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -13
- package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +8 -21
- package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -13
- package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +4 -47
- package/behaviors/registry/ui/core/organisms/ui-timeline.orb +0 -13
- package/behaviors/registry/ui/marketing/atoms/ui-marketing-stat-card.orb +1 -1
- package/behaviors/registry/ui/marketing/molecules/ui-case-study-card.orb +1 -1
- package/behaviors/registry/ui/marketing/molecules/ui-feature-card.orb +1 -1
- package/behaviors/registry/ui/marketing/molecules/ui-pricing-card.orb +1 -1
- package/dist/behaviors/behaviors-embeddings.json +463 -463
- package/dist/behaviors/behaviors-registry.json +35 -26
- package/dist/behaviors/exports-reader.js +25 -518
- package/dist/behaviors/functions/index.d.ts +80 -119
- package/dist/behaviors/functions/index.js +23 -486
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +26 -519
- package/dist/behaviors/knob-embeddings.json +1 -1
- package/dist/behaviors/query.js +25 -518
- package/dist/behaviors/registry/factory-signatures.json +286 -3335
- package/dist/behaviors/registry/ui/avl/molecules/ui-module-card.orb +1 -1
- package/dist/behaviors/registry/ui/core/atoms/std-app-layout.orb +6 -1
- package/dist/behaviors/registry/ui/core/atoms/std-app-search.orb +83 -0
- package/dist/behaviors/registry/ui/core/atoms/std-browse.orb +30 -5
- package/dist/behaviors/registry/ui/core/atoms/std-file-store.orb +12 -2
- package/dist/behaviors/registry/ui/core/atoms/std-filter.orb +3 -0
- package/dist/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +40 -0
- package/dist/behaviors/registry/ui/core/atoms/std-saved-search.orb +40 -0
- package/dist/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +40 -0
- package/dist/behaviors/registry/ui/core/atoms/std-wizard.orb +0 -912
- package/dist/behaviors/registry/ui/core/atoms/ui-aside.orb +1 -1
- package/dist/behaviors/registry/ui/core/atoms/ui-typography.orb +4 -2
- package/dist/behaviors/registry/ui/core/molecules/ui-code-block.orb +54 -32
- package/dist/behaviors/registry/ui/core/molecules/ui-data-grid.orb +13 -26
- package/dist/behaviors/registry/ui/core/molecules/ui-data-list.orb +13 -26
- package/dist/behaviors/registry/ui/core/molecules/ui-drawer.orb +2 -2
- package/dist/behaviors/registry/ui/core/molecules/ui-filter-group.orb +1 -1
- package/dist/behaviors/registry/ui/core/molecules/ui-flip-card.orb +1 -1
- package/dist/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +1 -1
- package/dist/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +1 -1
- package/dist/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +1 -1
- package/dist/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +1 -1
- package/dist/behaviors/registry/ui/core/molecules/ui-table-view.orb +13 -26
- package/dist/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -13
- package/dist/behaviors/registry/ui/core/organisms/ui-entity-list.orb +8 -21
- package/dist/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -13
- package/dist/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +4 -47
- package/dist/behaviors/registry/ui/core/organisms/ui-timeline.orb +0 -13
- package/dist/behaviors/registry/ui/marketing/atoms/ui-marketing-stat-card.orb +1 -1
- package/dist/behaviors/registry/ui/marketing/molecules/ui-case-study-card.orb +1 -1
- package/dist/behaviors/registry/ui/marketing/molecules/ui-feature-card.orb +1 -1
- package/dist/behaviors/registry/ui/marketing/molecules/ui-pricing-card.orb +1 -1
- package/dist/behaviors-embeddings.json +463 -463
- package/dist/behaviors-registry.json +35 -26
- package/dist/index.d.ts +2 -2
- package/dist/index.js +37 -519
- package/dist/knob-embeddings.json +1 -1
- package/dist/registry/factory-signatures.json +286 -3335
- package/dist/registry.d.ts +9 -1
- package/dist/registry.js +12 -1
- package/package.json +5 -4
package/dist/registry.d.ts
CHANGED
|
@@ -82,6 +82,14 @@ declare function getStdPureOperators(): string[];
|
|
|
82
82
|
* @returns Error message if invalid, null if valid
|
|
83
83
|
*/
|
|
84
84
|
declare function validateStdOperatorArity(operator: string, argCount: number): string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Throw when a registered operator is applied outside its canonical arity
|
|
87
|
+
* bounds — the interpreter-side (`@almadar/evaluator`) mirror of the compiled
|
|
88
|
+
* path's `resolve_sexpr_call` check, so a schema fails identically on both
|
|
89
|
+
* execution paths. Unregistered heads are a no-op: the interpreter treats them
|
|
90
|
+
* as data-array literals, not operator calls.
|
|
91
|
+
*/
|
|
92
|
+
declare function assertOperatorArity(operator: string, argCount: number): void;
|
|
85
93
|
/**
|
|
86
94
|
* Check if a std operator is valid in guard context (no side effects).
|
|
87
95
|
*
|
|
@@ -141,4 +149,4 @@ declare function getStdLibStats(): {
|
|
|
141
149
|
lambdaOperators: number;
|
|
142
150
|
};
|
|
143
151
|
|
|
144
|
-
export { OPERATOR_NAMES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateOperatorArityExtended, validateStdOperatorArity };
|
|
152
|
+
export { OPERATOR_NAMES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, assertOperatorArity, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateOperatorArityExtended, validateStdOperatorArity };
|
package/dist/registry.js
CHANGED
|
@@ -6410,6 +6410,17 @@ function validateStdOperatorArity(operator, argCount) {
|
|
|
6410
6410
|
}
|
|
6411
6411
|
return null;
|
|
6412
6412
|
}
|
|
6413
|
+
function assertOperatorArity(operator, argCount) {
|
|
6414
|
+
const meta = STD_OPERATORS[operator];
|
|
6415
|
+
if (!meta) return;
|
|
6416
|
+
const { minArity, maxArity } = meta;
|
|
6417
|
+
if (argCount < minArity || maxArity !== null && argCount > maxArity) {
|
|
6418
|
+
const range = maxArity === null ? `at least ${minArity}` : minArity === maxArity ? `${minArity}` : `${minArity}..${maxArity}`;
|
|
6419
|
+
throw new Error(
|
|
6420
|
+
`(${operator} \u2026): expected ${range} argument(s), got ${argCount} \u2014 same bounds the compiled path enforces (canonical-operators.json)`
|
|
6421
|
+
);
|
|
6422
|
+
}
|
|
6423
|
+
}
|
|
6413
6424
|
function isStdGuardOperator(operator) {
|
|
6414
6425
|
const meta = STD_OPERATORS[operator];
|
|
6415
6426
|
return meta !== void 0 && !meta.hasSideEffects;
|
|
@@ -6467,4 +6478,4 @@ function getStdLibStats() {
|
|
|
6467
6478
|
};
|
|
6468
6479
|
}
|
|
6469
6480
|
|
|
6470
|
-
export { OPERATOR_NAMES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateOperatorArityExtended, validateStdOperatorArity };
|
|
6481
|
+
export { OPERATOR_NAMES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, assertOperatorArity, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateOperatorArityExtended, validateStdOperatorArity };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/std",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.143.0",
|
|
4
4
|
"description": "Standard library operators for Almadar (math, string, array, etc.)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"./factory-runtime": {
|
|
36
36
|
"import": "./dist/factory-runtime/index.js",
|
|
37
37
|
"types": "./dist/factory-runtime/index.d.ts"
|
|
38
|
-
}
|
|
38
|
+
},
|
|
39
|
+
"./canonical-operators.json": "./canonical-operators.json"
|
|
39
40
|
},
|
|
40
41
|
"files": [
|
|
41
42
|
"dist",
|
|
@@ -48,10 +49,10 @@
|
|
|
48
49
|
"access": "public"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@almadar/core": "^10.
|
|
52
|
+
"@almadar/core": "^10.33.0"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
|
-
"@almadar/eslint-plugin": "^2.
|
|
55
|
+
"@almadar/eslint-plugin": "^2.15.0",
|
|
55
56
|
"@almadar/llm": "^2.35.0",
|
|
56
57
|
"@types/node": "^20.0.0",
|
|
57
58
|
"@typescript-eslint/parser": "8.56.0",
|