@almadar/std 16.218.0 → 16.220.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 (77) hide show
  1. package/behaviors/lolo/infra/atoms/std-data-import.lolo +56 -5
  2. package/behaviors/lolo/infra/atoms/std-global-search.lolo +9 -1
  3. package/behaviors/lolo/infra/atoms/std-notification-center.lolo +18 -18
  4. package/behaviors/lolo/infra/atoms/std-notification-preferences.lolo +5 -5
  5. package/behaviors/lolo/infra/atoms/std-notify-on-event.lolo +17 -18
  6. package/behaviors/lolo/ui/core/atoms/std-gantt-schedule.lolo +215 -0
  7. package/behaviors/lolo/ui/core/atoms/ui-textarea.lolo +2 -2
  8. package/behaviors/lolo/ui/core/molecules/ui-gantt.lolo +169 -0
  9. package/behaviors/lolo/ui/game/atoms/ui-canvas-2d.lolo +2 -2
  10. package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +2 -2
  11. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +2 -2
  12. package/behaviors/registry/infra/atoms/std-data-import.orb +329 -6
  13. package/behaviors/registry/infra/atoms/std-global-search.orb +86 -4
  14. package/behaviors/registry/infra/atoms/std-notification-center.orb +41 -33
  15. package/behaviors/registry/infra/atoms/std-notification-preferences.orb +10 -17
  16. package/behaviors/registry/infra/atoms/std-notify-on-event.orb +198 -195
  17. package/behaviors/registry/ui/core/atoms/std-gantt-schedule.orb +723 -0
  18. package/behaviors/registry/ui/core/molecules/ui-gantt.orb +508 -0
  19. package/canonical-operators.json +46 -1
  20. package/dist/behaviors/exports-reader.js +3212 -2818
  21. package/dist/behaviors/functions/index.d.ts +238 -5
  22. package/dist/behaviors/functions/index.js +3207 -2819
  23. package/dist/behaviors/index.d.ts +1 -1
  24. package/dist/behaviors/index.js +3213 -2819
  25. package/dist/behaviors/query.js +3212 -2818
  26. package/dist/behaviors-embeddings.hash.json +3 -3
  27. package/dist/behaviors-embeddings.json +19 -7
  28. package/dist/behaviors-registry.json +2220 -1041
  29. package/dist/index.d.ts +3 -3
  30. package/dist/index.js +3249 -2819
  31. package/dist/knob-embeddings.hash.json +3 -3
  32. package/dist/knob-embeddings.json +1 -1
  33. package/dist/modules/anim.d.ts +1 -1
  34. package/dist/modules/array.d.ts +1 -1
  35. package/dist/modules/async.d.ts +1 -1
  36. package/dist/modules/behavior.d.ts +1 -1
  37. package/dist/modules/browser.d.ts +1 -1
  38. package/dist/modules/composition.d.ts +1 -1
  39. package/dist/modules/contract.d.ts +1 -1
  40. package/dist/modules/core.d.ts +1 -1
  41. package/dist/modules/data.d.ts +1 -1
  42. package/dist/modules/ease.d.ts +1 -1
  43. package/dist/modules/format.d.ts +1 -1
  44. package/dist/modules/geo.d.ts +1 -1
  45. package/dist/modules/graph.d.ts +1 -1
  46. package/dist/modules/grid.d.ts +1 -1
  47. package/dist/modules/index.d.ts +2 -1
  48. package/dist/modules/index.js +30 -1
  49. package/dist/modules/integration.d.ts +1 -1
  50. package/dist/modules/json.d.ts +20 -0
  51. package/dist/modules/json.js +30 -0
  52. package/dist/modules/llm.d.ts +1 -1
  53. package/dist/modules/math.d.ts +1 -1
  54. package/dist/modules/memory.d.ts +1 -1
  55. package/dist/modules/nn.d.ts +1 -1
  56. package/dist/modules/noise.d.ts +1 -1
  57. package/dist/modules/object.d.ts +1 -1
  58. package/dist/modules/os.d.ts +1 -1
  59. package/dist/modules/path.d.ts +1 -1
  60. package/dist/modules/prob.d.ts +1 -1
  61. package/dist/modules/session.d.ts +1 -1
  62. package/dist/modules/str.d.ts +1 -1
  63. package/dist/modules/tensor.d.ts +1 -1
  64. package/dist/modules/time.d.ts +1 -1
  65. package/dist/modules/trace.d.ts +1 -1
  66. package/dist/modules/train.d.ts +1 -1
  67. package/dist/modules/validate.d.ts +1 -1
  68. package/dist/modules/vector.d.ts +1 -1
  69. package/dist/modules/workspace.d.ts +1 -1
  70. package/dist/registry/factory-signatures.json +1 -1
  71. package/dist/registry.d.ts +1 -1
  72. package/dist/registry.js +28 -0
  73. package/dist/{types-C-Yerb4-.d.ts → types-DpbKBJu8.d.ts} +3 -3
  74. package/i18n/ar.json +3 -1
  75. package/i18n/en.json +2 -0
  76. package/i18n/sl.json +3 -1
  77. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { S as StdOperatorMeta, a as StdModule, O as OperatorMeta } from './types-C-Yerb4-.js';
1
+ import { S as StdOperatorMeta, a as StdModule, O as OperatorMeta } from './types-DpbKBJu8.js';
2
2
 
3
3
  /**
4
4
  * Standard Library Registry
package/dist/registry.js CHANGED
@@ -5,6 +5,7 @@ var STD_MODULES = [
5
5
  "str",
6
6
  "array",
7
7
  "object",
8
+ "json",
8
9
  "time",
9
10
  "validate",
10
11
  "format",
@@ -2315,6 +2316,32 @@ var OBJECT_OPERATORS = {
2315
2316
  }
2316
2317
  };
2317
2318
 
2319
+ // modules/json.ts
2320
+ var JSON_OPERATORS = {
2321
+ "json/parse": {
2322
+ module: "json",
2323
+ category: "std-json",
2324
+ minArity: 1,
2325
+ maxArity: 1,
2326
+ description: "Parse a JSON string into a value; invalid JSON or non-string input returns null (never throws)",
2327
+ hasSideEffects: false,
2328
+ returnType: "any",
2329
+ params: [{ name: "s", type: "string", description: "The JSON string to parse" }],
2330
+ example: '["json/parse", "{\\"a\\": 1}"] // => {a: 1}'
2331
+ },
2332
+ "json/stringify": {
2333
+ module: "json",
2334
+ category: "std-json",
2335
+ minArity: 1,
2336
+ maxArity: 1,
2337
+ description: "Serialize any value to a JSON string",
2338
+ hasSideEffects: false,
2339
+ returnType: "string",
2340
+ params: [{ name: "v", type: "any", description: "The value to serialize" }],
2341
+ example: '["json/stringify", {a: 1}] // => "{\\"a\\":1}"'
2342
+ }
2343
+ };
2344
+
2318
2345
  // modules/time.ts
2319
2346
  var TIME_OPERATORS = {
2320
2347
  "time/now": {
@@ -6356,6 +6383,7 @@ var STD_OPERATORS = {
6356
6383
  ...STR_OPERATORS,
6357
6384
  ...ARRAY_OPERATORS,
6358
6385
  ...OBJECT_OPERATORS,
6386
+ ...JSON_OPERATORS,
6359
6387
  ...TIME_OPERATORS,
6360
6388
  ...VALIDATE_OPERATORS,
6361
6389
  ...FORMAT_OPERATORS,
@@ -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-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-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.
@@ -80,13 +80,13 @@ interface OperatorMeta {
80
80
  * Each module provides a set of operators prefixed with the module name.
81
81
  * E.g., 'math' provides 'math/abs', 'math/clamp', etc.
82
82
  */
83
- declare const STD_MODULES: readonly ["core", "math", "str", "array", "object", "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"];
83
+ 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"];
84
84
  type StdModule = (typeof STD_MODULES)[number];
85
85
  /**
86
86
  * Standard library operator categories.
87
87
  * These extend the core categories for more granular classification.
88
88
  */
89
- declare const STD_OPERATOR_CATEGORIES: readonly ["std-math", "std-str", "std-array", "std-object", "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"];
89
+ 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"];
90
90
  type StdOperatorCategory = (typeof STD_OPERATOR_CATEGORIES)[number];
91
91
  /**
92
92
  * Structured parameter type reference (Schema v2).
package/i18n/ar.json CHANGED
@@ -428,6 +428,8 @@
428
428
  "workspace/write-file": "مساحة_عمل/كتابة_ملف",
429
429
  "workspace/write-orbital": "مساحة_عمل/كتابة_مدار",
430
430
  "workspace/write-plan": "مساحة_عمل/كتابة_خطة",
431
- "workspace/write-schema": "مساحة_عمل/كتابة_مخطط"
431
+ "workspace/write-schema": "مساحة_عمل/كتابة_مخطط",
432
+ "json/parse": "جيسون/تحليل",
433
+ "json/stringify": "جيسون/تسلسل"
432
434
  }
433
435
  }
package/i18n/en.json CHANGED
@@ -149,6 +149,8 @@
149
149
  "integration/github-create-issue": "integration/github-create-issue",
150
150
  "integration/github-get-repo": "integration/github-get-repo",
151
151
  "integration/http": "integration/http",
152
+ "json/parse": "json/parse",
153
+ "json/stringify": "json/stringify",
152
154
  "let": "let",
153
155
  "list": "list",
154
156
  "llm/call-tools": "llm/call-tools",
package/i18n/sl.json CHANGED
@@ -428,6 +428,8 @@
428
428
  "workspace/write-file": "delovniprostor/pisi-datoteka",
429
429
  "workspace/write-orbital": "delovniprostor/pisi-orbitala",
430
430
  "workspace/write-plan": "delovniprostor/pisi-nacrt",
431
- "workspace/write-schema": "delovniprostor/pisi-shema"
431
+ "workspace/write-schema": "delovniprostor/pisi-shema",
432
+ "json/parse": "json/razcleni",
433
+ "json/stringify": "json/v_niz"
432
434
  }
433
435
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/std",
3
- "version": "16.218.0",
3
+ "version": "16.220.0",
4
4
  "description": "Standard library operators for Almadar (math, string, array, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -72,7 +72,7 @@
72
72
  "access": "public"
73
73
  },
74
74
  "dependencies": {
75
- "@almadar/core": "^10.92.0"
75
+ "@almadar/core": "^10.96.0"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@almadar/eslint-plugin": "^2.18.0",