@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.
- package/dist/behaviors/exports-reader.d.ts +4 -31
- package/dist/behaviors/exports-reader.js +21267 -40
- package/dist/behaviors/exports-reader.js.map +1 -1
- package/dist/behaviors/functions/index.js.map +1 -1
- package/dist/behaviors/index.js +1042 -617
- package/dist/behaviors/index.js.map +1 -1
- package/dist/behaviors/query.d.ts +6 -5
- package/dist/behaviors/query.js +21293 -29
- package/dist/behaviors/query.js.map +1 -1
- package/dist/behaviors/types.d.ts +7 -14
- package/dist/behaviors/types.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1367 -616
- package/dist/index.js.map +1 -1
- package/dist/modules/agent.d.ts +21 -0
- package/dist/modules/agent.js +322 -0
- package/dist/modules/agent.js.map +1 -0
- package/dist/modules/array.d.ts +1 -1
- package/dist/modules/async.d.ts +1 -1
- package/dist/modules/contract.d.ts +1 -1
- package/dist/modules/data.d.ts +1 -1
- package/dist/modules/format.d.ts +1 -1
- package/dist/modules/graph.d.ts +1 -1
- package/dist/modules/index.d.ts +2 -1
- package/dist/modules/index.js +320 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/math.d.ts +1 -1
- package/dist/modules/nn.d.ts +1 -1
- package/dist/modules/object.d.ts +1 -1
- package/dist/modules/os.d.ts +1 -1
- package/dist/modules/prob.d.ts +1 -1
- package/dist/modules/str.d.ts +1 -1
- package/dist/modules/tensor.d.ts +1 -1
- package/dist/modules/time.d.ts +1 -1
- package/dist/modules/train.d.ts +1 -1
- package/dist/modules/validate.d.ts +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/registry.js +321 -2
- package/dist/registry.js.map +1 -1
- package/dist/{types-DOeGXRCm.d.ts → types-BjP5nVQd.d.ts} +3 -3
- package/package.json +2 -2
|
@@ -58,24 +58,25 @@ interface BehaviorSummary {
|
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Read and cache the behavior registry.
|
|
61
|
+
* Async to support bundled environments where fs may not be available.
|
|
61
62
|
*/
|
|
62
|
-
declare function getBehaviorRegistry(): Record<string, RegistryEntry
|
|
63
|
+
declare function getBehaviorRegistry(): Promise<Record<string, RegistryEntry>>;
|
|
63
64
|
/**
|
|
64
65
|
* Filter behaviors by domain. Matches against layer (primary) and family (fallback).
|
|
65
66
|
*/
|
|
66
|
-
declare function getBehaviorsByDomain(domain: string): RegistryEntry[]
|
|
67
|
+
declare function getBehaviorsByDomain(domain: string): Promise<RegistryEntry[]>;
|
|
67
68
|
/**
|
|
68
69
|
* Filter behaviors by connectable operations (events).
|
|
69
70
|
* Returns behaviors sorted by match count (most matching ops first).
|
|
70
71
|
*/
|
|
71
|
-
declare function getBehaviorsByOperations(ops: string[]): RegistryEntry[]
|
|
72
|
+
declare function getBehaviorsByOperations(ops: string[]): Promise<RegistryEntry[]>;
|
|
72
73
|
/**
|
|
73
74
|
* Fuzzy search across name, description, family, layer, and entity name.
|
|
74
75
|
*/
|
|
75
|
-
declare function searchBehaviors(query: string): RegistryEntry[]
|
|
76
|
+
declare function searchBehaviors(query: string): Promise<RegistryEntry[]>;
|
|
76
77
|
/**
|
|
77
78
|
* Get a compact summary of a behavior including slots and patterns from the .orb file.
|
|
78
79
|
*/
|
|
79
|
-
declare function getBehaviorSummary(name: string): BehaviorSummary | null
|
|
80
|
+
declare function getBehaviorSummary(name: string): Promise<BehaviorSummary | null>;
|
|
80
81
|
|
|
81
82
|
export { type BehaviorSummary, type RegistryEntry, getBehaviorRegistry, getBehaviorSummary, getBehaviorsByDomain, getBehaviorsByOperations, searchBehaviors };
|