@almadar/core 10.29.0 → 10.30.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-DcBjE_Uw.d.ts → builders-C458pIMW.d.ts} +1882 -221
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js +151 -11
- package/dist/builders.js.map +1 -1
- package/dist/factory/index.d.ts +5 -4
- package/dist/factory-runtime/index.d.ts +63 -18
- package/dist/factory-runtime/index.js +192 -88
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +10 -9
- package/dist/index.js +428 -57
- package/dist/index.js.map +1 -1
- package/dist/json-DOTchoRS.d.ts +57 -0
- package/dist/{pattern-types-JZordBZv.d.ts → pattern-types-CLcOXOmW.d.ts} +273 -13
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +327 -48
- package/dist/patterns/index.js +188 -34
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +146 -29
- package/dist/patterns/registry.json +146 -29
- package/dist/{trait-B_CzfDSi.d.ts → trait-CwWjkU-1.d.ts} +423 -45
- package/dist/types/index.d.ts +49 -19
- package/dist/types/index.js +212 -18
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CGC5A1-T.d.ts → types-yW22YNNt.d.ts} +4 -59
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { E as EntityField, a as EntityPersistence, R as RelationConfig } from './pattern-types-
|
|
2
|
-
import { T as TraitEventListener, a as TraitReference } from './trait-
|
|
1
|
+
import { E as EntityField, a as EntityPersistence, R as RelationConfig } from './pattern-types-CLcOXOmW.js';
|
|
2
|
+
import { T as TraitEventListener, a as TraitReference } from './trait-CwWjkU-1.js';
|
|
3
|
+
import { J as JsonValue } from './json-DOTchoRS.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Cross-cutting presentation knobs that don't live per orbital
|
|
@@ -68,62 +69,6 @@ interface OwnershipOverlayEntry {
|
|
|
68
69
|
ownerField: string;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
|
-
/**
|
|
72
|
-
* JSON primitives — the universal "data crossed a boundary" type.
|
|
73
|
-
*
|
|
74
|
-
* Every value that arrives over the wire from an LLM (tool-call args),
|
|
75
|
-
* from disk (workspace files), or from an HTTP body before
|
|
76
|
-
* domain-specific validation is a `JsonValue`. Narrow with a typed
|
|
77
|
-
* predicate (`is`-guard) at the boundary; don't widen back to `unknown`.
|
|
78
|
-
*
|
|
79
|
-
* `JsonObject` and `ToolArgs` are aliases for the common
|
|
80
|
-
* `Record<string, JsonValue>` shape. `ToolArgs` is the name the
|
|
81
|
-
* agent surface uses for LLM-emitted tool-call arguments; `JsonObject`
|
|
82
|
-
* is the general-purpose alias. They are the same type — the alias
|
|
83
|
-
* exists so call sites read at the right semantic level.
|
|
84
|
-
*
|
|
85
|
-
* Why not `Record<string, unknown>`? Two reasons. (1) `unknown` widens
|
|
86
|
-
* back to anything, which defeats the purpose of typing the boundary.
|
|
87
|
-
* (2) The `@almadar/eslint-plugin/no-record-string-unknown` rule blocks
|
|
88
|
-
* the wider form — `JsonValue`-based records are the typed answer.
|
|
89
|
-
*
|
|
90
|
-
* @packageDocumentation
|
|
91
|
-
*/
|
|
92
|
-
/**
|
|
93
|
-
* Recursive JSON value union — every shape JSON can carry.
|
|
94
|
-
*/
|
|
95
|
-
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
96
|
-
[key: string]: JsonValue;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* JSON object — keyed string→JsonValue. The wire form of arbitrary
|
|
100
|
-
* structured data. Replaces `Record<string, unknown>` at typed
|
|
101
|
-
* boundaries (LLM emits, file reads, HTTP bodies).
|
|
102
|
-
*/
|
|
103
|
-
type JsonObject = {
|
|
104
|
-
[key: string]: JsonValue;
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* LLM tool-call arguments — same shape as `JsonObject`, named for the
|
|
108
|
-
* agent-surface call site. Each tool's `execute(args: ToolArgs)`
|
|
109
|
-
* receives this and narrows via an `is`-guard predicate before any
|
|
110
|
-
* field access.
|
|
111
|
-
*/
|
|
112
|
-
type ToolArgs = JsonObject;
|
|
113
|
-
/**
|
|
114
|
-
* Type guard: is the given value a JSON primitive (non-array,
|
|
115
|
-
* non-object)? Used by walkers that decide whether to recurse.
|
|
116
|
-
*/
|
|
117
|
-
declare function isJsonPrimitive(value: JsonValue): value is string | number | boolean | null;
|
|
118
|
-
/**
|
|
119
|
-
* Type guard: is the given value a JSON object (non-array, non-null)?
|
|
120
|
-
*/
|
|
121
|
-
declare function isJsonObject(value: JsonValue): value is JsonObject;
|
|
122
|
-
/**
|
|
123
|
-
* Type guard: is the given value a JSON array?
|
|
124
|
-
*/
|
|
125
|
-
declare function isJsonArray(value: JsonValue): value is JsonValue[];
|
|
126
|
-
|
|
127
72
|
/**
|
|
128
73
|
* Recursive JSON Schema. Intentionally narrow — only the keywords V2's
|
|
129
74
|
* signature → schema generator emits. Custom `x-*` extensions carry
|
|
@@ -543,4 +488,4 @@ type FactoryParamValue = string | number | boolean | ReadonlyArray<FactoryParamV
|
|
|
543
488
|
readonly [key: string]: FactoryParamValue;
|
|
544
489
|
};
|
|
545
490
|
|
|
546
|
-
export {
|
|
491
|
+
export type { FactoryCallSite as F, JsonSchema as J, OwnershipOverlayEntry as O, PresentationNavItem as P, RuleOverlay as R, SchemaFieldType as S, TraitOverlay as T, FactoryCallSiteParams as a, FactoryConfigParam as b, FactoryConfigTier as c, FactoryEntitySignature as d, FactoryEventSignature as e, FactoryExposure as f, FactoryPageSignature as g, FactoryParamValue as h, FactoryProvenance as i, FactorySignature as j, FactorySignatureCatalog as k, FactorySignatureEntityField as l, FactoryTraitSignature as m, JsonSchemaType as n, PresentationOverlay as o, RuleOverlayEntry as p, TraitOverlayEntry as q, TraitOverlayListener as r };
|