@almadar/std 3.10.0 → 3.11.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 (41) hide show
  1. package/dist/behaviors/exports-reader.d.ts +4 -31
  2. package/dist/behaviors/exports-reader.js +21267 -40
  3. package/dist/behaviors/exports-reader.js.map +1 -1
  4. package/dist/behaviors/functions/index.js.map +1 -1
  5. package/dist/behaviors/index.js +1042 -617
  6. package/dist/behaviors/index.js.map +1 -1
  7. package/dist/behaviors/query.d.ts +6 -5
  8. package/dist/behaviors/query.js +21293 -29
  9. package/dist/behaviors/query.js.map +1 -1
  10. package/dist/behaviors/types.d.ts +7 -14
  11. package/dist/behaviors/types.js.map +1 -1
  12. package/dist/index.d.ts +2 -2
  13. package/dist/index.js +1367 -616
  14. package/dist/index.js.map +1 -1
  15. package/dist/modules/agent.d.ts +21 -0
  16. package/dist/modules/agent.js +322 -0
  17. package/dist/modules/agent.js.map +1 -0
  18. package/dist/modules/array.d.ts +1 -1
  19. package/dist/modules/async.d.ts +1 -1
  20. package/dist/modules/contract.d.ts +1 -1
  21. package/dist/modules/data.d.ts +1 -1
  22. package/dist/modules/format.d.ts +1 -1
  23. package/dist/modules/graph.d.ts +1 -1
  24. package/dist/modules/index.d.ts +2 -1
  25. package/dist/modules/index.js +320 -1
  26. package/dist/modules/index.js.map +1 -1
  27. package/dist/modules/math.d.ts +1 -1
  28. package/dist/modules/nn.d.ts +1 -1
  29. package/dist/modules/object.d.ts +1 -1
  30. package/dist/modules/os.d.ts +1 -1
  31. package/dist/modules/prob.d.ts +1 -1
  32. package/dist/modules/str.d.ts +1 -1
  33. package/dist/modules/tensor.d.ts +1 -1
  34. package/dist/modules/time.d.ts +1 -1
  35. package/dist/modules/train.d.ts +1 -1
  36. package/dist/modules/validate.d.ts +1 -1
  37. package/dist/registry.d.ts +1 -1
  38. package/dist/registry.js +321 -2
  39. package/dist/registry.js.map +1 -1
  40. package/dist/{types-DOeGXRCm.d.ts → types-BjP5nVQd.d.ts} +3 -3
  41. package/package.json +2 -2
@@ -4,46 +4,19 @@ import '@almadar/core/types';
4
4
  /**
5
5
  * Exports Reader
6
6
  *
7
- * Provides programmatic access to the golden .orb files in behaviors/exports/.
8
- * Other packages import these functions instead of reading the filesystem directly.
9
- *
10
- * Directory structure mirrors functions/:
11
- * exports/atoms/*.orb
12
- * exports/molecules/*.orb
13
- * exports/organisms/*.orb
7
+ * Provides programmatic access to golden behaviors.
8
+ * Uses behavior functions from ./functions/ instead of reading .orb files from disk.
9
+ * This makes the package work in bundled environments (no filesystem access for package data).
14
10
  *
15
11
  * @packageDocumentation
16
12
  */
17
13
 
18
- declare const LEVEL_DIRS: readonly ["atoms", "molecules", "organisms"];
19
- type BehaviorLevel = typeof LEVEL_DIRS[number];
20
- /**
21
- * List all available golden behavior names (without .orb extension).
22
- */
14
+ type BehaviorLevel = 'atoms' | 'molecules' | 'organisms';
23
15
  declare function getAllBehaviorNames(): string[];
24
- /**
25
- * Load all golden .orb files as BehaviorSchema objects.
26
- * Sets `.name` to the behavior identifier (e.g., "std-list") from the filename,
27
- * overriding the orbital name inside the .orb file.
28
- */
29
16
  declare function getAllBehaviors(): BehaviorSchema[];
30
- /**
31
- * Load all golden .orb files for a specific level (atoms, molecules, organisms).
32
- */
33
17
  declare function getBehaviorsByLevel(level: BehaviorLevel): BehaviorSchema[];
34
- /**
35
- * Load a single golden .orb file by behavior name.
36
- * Searches across all levels. Returns null if not found.
37
- */
38
18
  declare function loadGoldenOrb(behaviorName: string): BehaviorSchema | null;
39
- /**
40
- * Check if a golden .orb file exists for the given behavior name.
41
- */
42
19
  declare function hasGoldenOrb(behaviorName: string): boolean;
43
- /**
44
- * Get a single behavior by name.
45
- * Alias for loadGoldenOrb for compatibility.
46
- */
47
20
  declare function getBehavior(behaviorName: string): BehaviorSchema | null;
48
21
 
49
22
  export { type BehaviorLevel, getAllBehaviorNames, getAllBehaviors, getBehavior, getBehaviorsByLevel, hasGoldenOrb, loadGoldenOrb };