@almadar/std 16.142.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.
Files changed (48) hide show
  1. package/behaviors/lolo/ui/core/atoms/std-app-layout.lolo +1 -1
  2. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +1 -1
  3. package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +1 -1
  4. package/behaviors/lolo/ui/core/atoms/std-image-upload-multi.lolo +17 -0
  5. package/behaviors/lolo/ui/core/atoms/std-saved-search.lolo +17 -0
  6. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +17 -0
  7. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +2 -3
  8. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +2 -3
  9. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +2 -3
  10. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +0 -2
  11. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +0 -2
  12. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +0 -2
  13. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +0 -2
  14. package/behaviors/registry/ui/core/atoms/std-app-layout.orb +6 -1
  15. package/behaviors/registry/ui/core/atoms/std-browse.orb +6 -1
  16. package/behaviors/registry/ui/core/atoms/std-file-store.orb +12 -2
  17. package/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +40 -0
  18. package/behaviors/registry/ui/core/atoms/std-saved-search.orb +40 -0
  19. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +40 -0
  20. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +12 -25
  21. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +13 -26
  22. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +12 -25
  23. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -13
  24. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +8 -21
  25. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -13
  26. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +0 -13
  27. package/dist/behaviors/behaviors-embeddings.json +309 -309
  28. package/dist/behaviors/knob-embeddings.json +1 -1
  29. package/dist/behaviors/registry/ui/core/atoms/std-app-layout.orb +6 -1
  30. package/dist/behaviors/registry/ui/core/atoms/std-browse.orb +6 -1
  31. package/dist/behaviors/registry/ui/core/atoms/std-file-store.orb +12 -2
  32. package/dist/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +40 -0
  33. package/dist/behaviors/registry/ui/core/atoms/std-saved-search.orb +40 -0
  34. package/dist/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +40 -0
  35. package/dist/behaviors/registry/ui/core/molecules/ui-data-grid.orb +12 -25
  36. package/dist/behaviors/registry/ui/core/molecules/ui-data-list.orb +13 -26
  37. package/dist/behaviors/registry/ui/core/molecules/ui-table-view.orb +12 -25
  38. package/dist/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -13
  39. package/dist/behaviors/registry/ui/core/organisms/ui-entity-list.orb +8 -21
  40. package/dist/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -13
  41. package/dist/behaviors/registry/ui/core/organisms/ui-timeline.orb +0 -13
  42. package/dist/behaviors-embeddings.json +309 -309
  43. package/dist/index.d.ts +1 -1
  44. package/dist/index.js +12 -1
  45. package/dist/knob-embeddings.json +1 -1
  46. package/dist/registry.d.ts +9 -1
  47. package/dist/registry.js +12 -1
  48. package/package.json +3 -3
@@ -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.142.0",
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",
@@ -49,10 +49,10 @@
49
49
  "access": "public"
50
50
  },
51
51
  "dependencies": {
52
- "@almadar/core": "^10.32.0"
52
+ "@almadar/core": "^10.33.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@almadar/eslint-plugin": "^2.14.0",
55
+ "@almadar/eslint-plugin": "^2.15.0",
56
56
  "@almadar/llm": "^2.35.0",
57
57
  "@types/node": "^20.0.0",
58
58
  "@typescript-eslint/parser": "8.56.0",