@almadar/core 10.30.0 → 10.32.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/{builders-C458pIMW.d.ts → builders-CnPRr1cq.d.ts} +688 -688
- package/dist/builders.d.ts +4 -4
- package/dist/builders.js +10 -6
- package/dist/builders.js.map +1 -1
- package/dist/{pattern-types-CLcOXOmW.d.ts → effect-8eas3tpU.d.ts} +1559 -39
- package/dist/{expression-CB9R3KWk.d.ts → expression-BlFrxmNB.d.ts} +1 -1
- package/dist/factory/index.d.ts +6 -6
- package/dist/factory-runtime/index.d.ts +4 -4
- package/dist/factory-runtime/index.js +10 -6
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +30 -12
- package/dist/index.js +1490 -1029
- package/dist/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +13 -3
- package/dist/patterns/event-contracts.json +23 -3
- package/dist/patterns/index.d.ts +2189 -1056
- package/dist/patterns/index.js +992 -616
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +1102 -777
- package/dist/patterns/registry.json +1102 -777
- package/dist/state-machine/index.d.ts +13 -2
- package/dist/state-machine/index.js +48 -23
- package/dist/state-machine/index.js.map +1 -1
- package/dist/{trait-CwWjkU-1.d.ts → trait-CMGaEccZ.d.ts} +53 -1503
- package/dist/types/index.d.ts +11 -11
- package/dist/types/index.js +21 -17
- package/dist/types/index.js.map +1 -1
- package/dist/{types-yW22YNNt.d.ts → types-B6IYPXZM.d.ts} +2 -3
- package/package.json +1 -1
- package/dist/json-DOTchoRS.d.ts +0 -57
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { E as EntityField, a as EntityPersistence, R as RelationConfig } from './
|
|
2
|
-
import { T as TraitEventListener, a as TraitReference } from './trait-
|
|
3
|
-
import { J as JsonValue } from './json-DOTchoRS.js';
|
|
1
|
+
import { E as EntityField, a as EntityPersistence, R as RelationConfig, J as JsonValue } from './effect-8eas3tpU.js';
|
|
2
|
+
import { T as TraitEventListener, a as TraitReference } from './trait-CMGaEccZ.js';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* Cross-cutting presentation knobs that don't live per orbital
|
package/package.json
CHANGED
package/dist/json-DOTchoRS.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSON primitives — the universal "data crossed a boundary" type.
|
|
3
|
-
*
|
|
4
|
-
* Every value that arrives over the wire from an LLM (tool-call args),
|
|
5
|
-
* from disk (workspace files), or from an HTTP body before
|
|
6
|
-
* domain-specific validation is a `JsonValue`. Narrow with a typed
|
|
7
|
-
* predicate (`is`-guard) at the boundary; don't widen back to `unknown`.
|
|
8
|
-
*
|
|
9
|
-
* `JsonObject` and `ToolArgs` are aliases for the common
|
|
10
|
-
* `Record<string, JsonValue>` shape. `ToolArgs` is the name the
|
|
11
|
-
* agent surface uses for LLM-emitted tool-call arguments; `JsonObject`
|
|
12
|
-
* is the general-purpose alias. They are the same type — the alias
|
|
13
|
-
* exists so call sites read at the right semantic level.
|
|
14
|
-
*
|
|
15
|
-
* Why not `Record<string, unknown>`? Two reasons. (1) `unknown` widens
|
|
16
|
-
* back to anything, which defeats the purpose of typing the boundary.
|
|
17
|
-
* (2) The `@almadar/eslint-plugin/no-record-string-unknown` rule blocks
|
|
18
|
-
* the wider form — `JsonValue`-based records are the typed answer.
|
|
19
|
-
*
|
|
20
|
-
* @packageDocumentation
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* Recursive JSON value union — every shape JSON can carry.
|
|
24
|
-
*/
|
|
25
|
-
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
26
|
-
[key: string]: JsonValue;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* JSON object — keyed string→JsonValue. The wire form of arbitrary
|
|
30
|
-
* structured data. Replaces `Record<string, unknown>` at typed
|
|
31
|
-
* boundaries (LLM emits, file reads, HTTP bodies).
|
|
32
|
-
*/
|
|
33
|
-
type JsonObject = {
|
|
34
|
-
[key: string]: JsonValue;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* LLM tool-call arguments — same shape as `JsonObject`, named for the
|
|
38
|
-
* agent-surface call site. Each tool's `execute(args: ToolArgs)`
|
|
39
|
-
* receives this and narrows via an `is`-guard predicate before any
|
|
40
|
-
* field access.
|
|
41
|
-
*/
|
|
42
|
-
type ToolArgs = JsonObject;
|
|
43
|
-
/**
|
|
44
|
-
* Type guard: is the given value a JSON primitive (non-array,
|
|
45
|
-
* non-object)? Used by walkers that decide whether to recurse.
|
|
46
|
-
*/
|
|
47
|
-
declare function isJsonPrimitive(value: JsonValue): value is string | number | boolean | null;
|
|
48
|
-
/**
|
|
49
|
-
* Type guard: is the given value a JSON object (non-array, non-null)?
|
|
50
|
-
*/
|
|
51
|
-
declare function isJsonObject(value: JsonValue): value is JsonObject;
|
|
52
|
-
/**
|
|
53
|
-
* Type guard: is the given value a JSON array?
|
|
54
|
-
*/
|
|
55
|
-
declare function isJsonArray(value: JsonValue): value is JsonValue[];
|
|
56
|
-
|
|
57
|
-
export { type JsonValue as J, type ToolArgs as T, type JsonObject as a, isJsonObject as b, isJsonPrimitive as c, isJsonArray as i };
|