@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.
@@ -1,6 +1,5 @@
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';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/core",
3
- "version": "10.30.0",
3
+ "version": "10.32.0",
4
4
  "description": "Core schema types and definitions for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -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 };