@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.
Files changed (116) hide show
  1. package/behaviors/lolo/ui/avl/molecules/ui-module-card.lolo +1 -1
  2. package/behaviors/lolo/ui/core/atoms/std-app-layout.lolo +1 -1
  3. package/behaviors/lolo/ui/core/atoms/std-app-search.lolo +22 -1
  4. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +11 -1
  5. package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +1 -1
  6. package/behaviors/lolo/ui/core/atoms/std-filter.lolo +3 -0
  7. package/behaviors/lolo/ui/core/atoms/std-image-upload-multi.lolo +17 -0
  8. package/behaviors/lolo/ui/core/atoms/std-saved-search.lolo +17 -0
  9. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +17 -0
  10. package/behaviors/lolo/ui/core/atoms/std-wizard.lolo +0 -244
  11. package/behaviors/lolo/ui/core/atoms/ui-aside.lolo +1 -1
  12. package/behaviors/lolo/ui/core/atoms/ui-typography.lolo +2 -2
  13. package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +3 -3
  14. package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +3 -4
  15. package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +2 -3
  16. package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +2 -2
  17. package/behaviors/lolo/ui/core/molecules/ui-filter-group.lolo +1 -1
  18. package/behaviors/lolo/ui/core/molecules/ui-flip-card.lolo +1 -1
  19. package/behaviors/lolo/ui/core/molecules/ui-quiz-block.lolo +1 -1
  20. package/behaviors/lolo/ui/core/molecules/ui-repeatable-form-section.lolo +1 -1
  21. package/behaviors/lolo/ui/core/molecules/ui-signature-pad.lolo +1 -1
  22. package/behaviors/lolo/ui/core/molecules/ui-sortable-list.lolo +1 -1
  23. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +3 -4
  24. package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +0 -2
  25. package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +0 -2
  26. package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +0 -2
  27. package/behaviors/lolo/ui/core/organisms/ui-segment-renderer.lolo +2 -12
  28. package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +0 -2
  29. package/behaviors/lolo/ui/marketing/atoms/ui-marketing-stat-card.lolo +1 -1
  30. package/behaviors/lolo/ui/marketing/molecules/ui-case-study-card.lolo +1 -1
  31. package/behaviors/lolo/ui/marketing/molecules/ui-feature-card.lolo +1 -1
  32. package/behaviors/lolo/ui/marketing/molecules/ui-pricing-card.lolo +1 -1
  33. package/behaviors/registry/factory-signatures.json +286 -3335
  34. package/behaviors/registry/ui/avl/molecules/ui-module-card.orb +1 -1
  35. package/behaviors/registry/ui/core/atoms/std-app-layout.orb +6 -1
  36. package/behaviors/registry/ui/core/atoms/std-app-search.orb +83 -0
  37. package/behaviors/registry/ui/core/atoms/std-browse.orb +30 -5
  38. package/behaviors/registry/ui/core/atoms/std-file-store.orb +12 -2
  39. package/behaviors/registry/ui/core/atoms/std-filter.orb +3 -0
  40. package/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +40 -0
  41. package/behaviors/registry/ui/core/atoms/std-saved-search.orb +40 -0
  42. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +40 -0
  43. package/behaviors/registry/ui/core/atoms/std-wizard.orb +0 -912
  44. package/behaviors/registry/ui/core/atoms/ui-aside.orb +1 -1
  45. package/behaviors/registry/ui/core/atoms/ui-typography.orb +4 -2
  46. package/behaviors/registry/ui/core/molecules/ui-code-block.orb +54 -32
  47. package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +13 -26
  48. package/behaviors/registry/ui/core/molecules/ui-data-list.orb +13 -26
  49. package/behaviors/registry/ui/core/molecules/ui-drawer.orb +2 -2
  50. package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +1 -1
  51. package/behaviors/registry/ui/core/molecules/ui-flip-card.orb +1 -1
  52. package/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +1 -1
  53. package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +1 -1
  54. package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +1 -1
  55. package/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +1 -1
  56. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +13 -26
  57. package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -13
  58. package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +8 -21
  59. package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -13
  60. package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +4 -47
  61. package/behaviors/registry/ui/core/organisms/ui-timeline.orb +0 -13
  62. package/behaviors/registry/ui/marketing/atoms/ui-marketing-stat-card.orb +1 -1
  63. package/behaviors/registry/ui/marketing/molecules/ui-case-study-card.orb +1 -1
  64. package/behaviors/registry/ui/marketing/molecules/ui-feature-card.orb +1 -1
  65. package/behaviors/registry/ui/marketing/molecules/ui-pricing-card.orb +1 -1
  66. package/dist/behaviors/behaviors-embeddings.json +463 -463
  67. package/dist/behaviors/behaviors-registry.json +35 -26
  68. package/dist/behaviors/exports-reader.js +25 -518
  69. package/dist/behaviors/functions/index.d.ts +80 -119
  70. package/dist/behaviors/functions/index.js +23 -486
  71. package/dist/behaviors/index.d.ts +1 -1
  72. package/dist/behaviors/index.js +26 -519
  73. package/dist/behaviors/knob-embeddings.json +1 -1
  74. package/dist/behaviors/query.js +25 -518
  75. package/dist/behaviors/registry/factory-signatures.json +286 -3335
  76. package/dist/behaviors/registry/ui/avl/molecules/ui-module-card.orb +1 -1
  77. package/dist/behaviors/registry/ui/core/atoms/std-app-layout.orb +6 -1
  78. package/dist/behaviors/registry/ui/core/atoms/std-app-search.orb +83 -0
  79. package/dist/behaviors/registry/ui/core/atoms/std-browse.orb +30 -5
  80. package/dist/behaviors/registry/ui/core/atoms/std-file-store.orb +12 -2
  81. package/dist/behaviors/registry/ui/core/atoms/std-filter.orb +3 -0
  82. package/dist/behaviors/registry/ui/core/atoms/std-image-upload-multi.orb +40 -0
  83. package/dist/behaviors/registry/ui/core/atoms/std-saved-search.orb +40 -0
  84. package/dist/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +40 -0
  85. package/dist/behaviors/registry/ui/core/atoms/std-wizard.orb +0 -912
  86. package/dist/behaviors/registry/ui/core/atoms/ui-aside.orb +1 -1
  87. package/dist/behaviors/registry/ui/core/atoms/ui-typography.orb +4 -2
  88. package/dist/behaviors/registry/ui/core/molecules/ui-code-block.orb +54 -32
  89. package/dist/behaviors/registry/ui/core/molecules/ui-data-grid.orb +13 -26
  90. package/dist/behaviors/registry/ui/core/molecules/ui-data-list.orb +13 -26
  91. package/dist/behaviors/registry/ui/core/molecules/ui-drawer.orb +2 -2
  92. package/dist/behaviors/registry/ui/core/molecules/ui-filter-group.orb +1 -1
  93. package/dist/behaviors/registry/ui/core/molecules/ui-flip-card.orb +1 -1
  94. package/dist/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +1 -1
  95. package/dist/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +1 -1
  96. package/dist/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +1 -1
  97. package/dist/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +1 -1
  98. package/dist/behaviors/registry/ui/core/molecules/ui-table-view.orb +13 -26
  99. package/dist/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -13
  100. package/dist/behaviors/registry/ui/core/organisms/ui-entity-list.orb +8 -21
  101. package/dist/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -13
  102. package/dist/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +4 -47
  103. package/dist/behaviors/registry/ui/core/organisms/ui-timeline.orb +0 -13
  104. package/dist/behaviors/registry/ui/marketing/atoms/ui-marketing-stat-card.orb +1 -1
  105. package/dist/behaviors/registry/ui/marketing/molecules/ui-case-study-card.orb +1 -1
  106. package/dist/behaviors/registry/ui/marketing/molecules/ui-feature-card.orb +1 -1
  107. package/dist/behaviors/registry/ui/marketing/molecules/ui-pricing-card.orb +1 -1
  108. package/dist/behaviors-embeddings.json +463 -463
  109. package/dist/behaviors-registry.json +35 -26
  110. package/dist/index.d.ts +2 -2
  111. package/dist/index.js +37 -519
  112. package/dist/knob-embeddings.json +1 -1
  113. package/dist/registry/factory-signatures.json +286 -3335
  114. package/dist/registry.d.ts +9 -1
  115. package/dist/registry.js +12 -1
  116. package/package.json +5 -4
@@ -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.141.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",
@@ -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.31.0"
52
+ "@almadar/core": "^10.33.0"
52
53
  },
53
54
  "devDependencies": {
54
- "@almadar/eslint-plugin": "^2.14.0",
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",