@graphrefly/ts 0.0.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/LICENSE +21 -0
- package/dist/adapters/index.cjs +9015 -0
- package/dist/adapters/index.cjs.map +1 -0
- package/dist/adapters/index.d.cts +678 -0
- package/dist/adapters/index.d.ts +678 -0
- package/dist/adapters/index.js +2894 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/observe-storage.cjs +260 -0
- package/dist/adapters/observe-storage.cjs.map +1 -0
- package/dist/adapters/observe-storage.d.cts +77 -0
- package/dist/adapters/observe-storage.d.ts +77 -0
- package/dist/adapters/observe-storage.js +161 -0
- package/dist/adapters/observe-storage.js.map +1 -0
- package/dist/append-log-DisvEReb.d.cts +189 -0
- package/dist/append-log-DzKMmjxx.d.ts +189 -0
- package/dist/chunk-2ILL7HQI.js +1189 -0
- package/dist/chunk-2ILL7HQI.js.map +1 -0
- package/dist/chunk-4VLAQHZI.js +330 -0
- package/dist/chunk-4VLAQHZI.js.map +1 -0
- package/dist/chunk-6PHB5CJS.js +229 -0
- package/dist/chunk-6PHB5CJS.js.map +1 -0
- package/dist/chunk-COHO25CZ.js +2449 -0
- package/dist/chunk-COHO25CZ.js.map +1 -0
- package/dist/chunk-D6BG7U6A.js +161 -0
- package/dist/chunk-D6BG7U6A.js.map +1 -0
- package/dist/chunk-DJC4CHLQ.js +818 -0
- package/dist/chunk-DJC4CHLQ.js.map +1 -0
- package/dist/chunk-DK554R7P.js +67 -0
- package/dist/chunk-DK554R7P.js.map +1 -0
- package/dist/chunk-DKP56CSW.js +322 -0
- package/dist/chunk-DKP56CSW.js.map +1 -0
- package/dist/chunk-G4M3NHRJ.js +688 -0
- package/dist/chunk-G4M3NHRJ.js.map +1 -0
- package/dist/chunk-GAJW5I5P.js +1 -0
- package/dist/chunk-GAJW5I5P.js.map +1 -0
- package/dist/chunk-GDL26N2T.js +282 -0
- package/dist/chunk-GDL26N2T.js.map +1 -0
- package/dist/chunk-GTPCOEOZ.js +741 -0
- package/dist/chunk-GTPCOEOZ.js.map +1 -0
- package/dist/chunk-H2HTHFVN.js +1 -0
- package/dist/chunk-H2HTHFVN.js.map +1 -0
- package/dist/chunk-HDRL4VQQ.js +218 -0
- package/dist/chunk-HDRL4VQQ.js.map +1 -0
- package/dist/chunk-I3IHOHCJ.js +2267 -0
- package/dist/chunk-I3IHOHCJ.js.map +1 -0
- package/dist/chunk-JIMUDQN3.js +965 -0
- package/dist/chunk-JIMUDQN3.js.map +1 -0
- package/dist/chunk-JR4IKCR2.js +462 -0
- package/dist/chunk-JR4IKCR2.js.map +1 -0
- package/dist/chunk-K3FXTC3I.js +165 -0
- package/dist/chunk-K3FXTC3I.js.map +1 -0
- package/dist/chunk-OOEN33FB.js +65 -0
- package/dist/chunk-OOEN33FB.js.map +1 -0
- package/dist/chunk-PKVBHGBM.js +554 -0
- package/dist/chunk-PKVBHGBM.js.map +1 -0
- package/dist/chunk-RIIOUTGM.js +1857 -0
- package/dist/chunk-RIIOUTGM.js.map +1 -0
- package/dist/chunk-SCRFRCGR.js +33 -0
- package/dist/chunk-SCRFRCGR.js.map +1 -0
- package/dist/chunk-SWTLEQL6.js +53 -0
- package/dist/chunk-SWTLEQL6.js.map +1 -0
- package/dist/chunk-SZAETNNA.js +1 -0
- package/dist/chunk-SZAETNNA.js.map +1 -0
- package/dist/chunk-TEW47IVR.js +49 -0
- package/dist/chunk-TEW47IVR.js.map +1 -0
- package/dist/chunk-Y3ZLRGHC.js +1482 -0
- package/dist/chunk-Y3ZLRGHC.js.map +1 -0
- package/dist/chunk-Z2ANQ6JW.js +149 -0
- package/dist/chunk-Z2ANQ6JW.js.map +1 -0
- package/dist/codec-BB7p8fJc.d.cts +38 -0
- package/dist/codec-BB7p8fJc.d.ts +38 -0
- package/dist/composition/index.cjs +2505 -0
- package/dist/composition/index.cjs.map +1 -0
- package/dist/composition/index.d.cts +95 -0
- package/dist/composition/index.d.ts +95 -0
- package/dist/composition/index.js +19 -0
- package/dist/composition/index.js.map +1 -0
- package/dist/core/index.cjs +2475 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +25 -0
- package/dist/core/index.d.ts +25 -0
- package/dist/core/index.js +74 -0
- package/dist/core/index.js.map +1 -0
- package/dist/cqrs/index.cjs +595 -0
- package/dist/cqrs/index.cjs.map +1 -0
- package/dist/cqrs/index.d.cts +200 -0
- package/dist/cqrs/index.d.ts +200 -0
- package/dist/cqrs/index.js +557 -0
- package/dist/cqrs/index.js.map +1 -0
- package/dist/data-structures/index.cjs +4277 -0
- package/dist/data-structures/index.cjs.map +1 -0
- package/dist/data-structures/index.d.cts +22 -0
- package/dist/data-structures/index.d.ts +22 -0
- package/dist/data-structures/index.js +31 -0
- package/dist/data-structures/index.js.map +1 -0
- package/dist/describe-BZb7AS2y.d.ts +57 -0
- package/dist/describe-Ciu8SUnN.d.cts +57 -0
- package/dist/graph/index.cjs +7832 -0
- package/dist/graph/index.cjs.map +1 -0
- package/dist/graph/index.d.cts +251 -0
- package/dist/graph/index.d.ts +251 -0
- package/dist/graph/index.js +131 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph-DfdF9zy4.d.ts +666 -0
- package/dist/graph-s23RbbFO.d.cts +666 -0
- package/dist/index-CAEmLCYF.d.cts +166 -0
- package/dist/index-SnzZu3x7.d.ts +166 -0
- package/dist/index.cjs +15409 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +582 -0
- package/dist/index.js.map +1 -0
- package/dist/messages-BZqrGGm1.d.cts +55 -0
- package/dist/messages-BZqrGGm1.d.ts +55 -0
- package/dist/messaging/index.cjs +818 -0
- package/dist/messaging/index.cjs.map +1 -0
- package/dist/messaging/index.d.cts +235 -0
- package/dist/messaging/index.d.ts +235 -0
- package/dist/messaging/index.js +767 -0
- package/dist/messaging/index.js.map +1 -0
- package/dist/observe-event-log-0SVsx7JG.d.cts +88 -0
- package/dist/observe-event-log-Dnm76owp.d.ts +88 -0
- package/dist/operators/index.cjs +3774 -0
- package/dist/operators/index.cjs.map +1 -0
- package/dist/operators/index.d.cts +308 -0
- package/dist/operators/index.d.ts +308 -0
- package/dist/operators/index.js +112 -0
- package/dist/operators/index.js.map +1 -0
- package/dist/orchestration/index.cjs +3541 -0
- package/dist/orchestration/index.cjs.map +1 -0
- package/dist/orchestration/index.d.cts +302 -0
- package/dist/orchestration/index.d.ts +302 -0
- package/dist/orchestration/index.js +1004 -0
- package/dist/orchestration/index.js.map +1 -0
- package/dist/patterns/index.cjs +1045 -0
- package/dist/patterns/index.cjs.map +1 -0
- package/dist/patterns/index.d.cts +39 -0
- package/dist/patterns/index.d.ts +39 -0
- package/dist/patterns/index.js +33 -0
- package/dist/patterns/index.js.map +1 -0
- package/dist/reactive-collection-BxBqtIOE.d.cts +344 -0
- package/dist/reactive-collection-Cb1II1Fi.d.ts +344 -0
- package/dist/reactive-collection-storage-BNiEc-Gd.d.ts +217 -0
- package/dist/reactive-collection-storage-D-KmjE0J.d.cts +217 -0
- package/dist/reactive-map-BcB4KsQR.d.ts +256 -0
- package/dist/reactive-map-D-g3dv8I.d.cts +256 -0
- package/dist/read-through-B1CYPfq_.d.cts +82 -0
- package/dist/read-through-DwyJhGs1.d.ts +82 -0
- package/dist/render/index.cjs +250 -0
- package/dist/render/index.cjs.map +1 -0
- package/dist/render/index.d.cts +58 -0
- package/dist/render/index.d.ts +58 -0
- package/dist/render/index.js +20 -0
- package/dist/render/index.js.map +1 -0
- package/dist/resilience-Dig3Q7n0.d.cts +45 -0
- package/dist/resilience-Dig3Q7n0.d.ts +45 -0
- package/dist/semantic-memory-graph-BYoIlP35.d.cts +356 -0
- package/dist/semantic-memory-graph-CxyXLms3.d.ts +356 -0
- package/dist/solutions/index.cjs +3249 -0
- package/dist/solutions/index.cjs.map +1 -0
- package/dist/solutions/index.d.cts +520 -0
- package/dist/solutions/index.d.ts +520 -0
- package/dist/solutions/index.js +31 -0
- package/dist/solutions/index.js.map +1 -0
- package/dist/sources/browser.cjs +3095 -0
- package/dist/sources/browser.cjs.map +1 -0
- package/dist/sources/browser.d.cts +39 -0
- package/dist/sources/browser.d.ts +39 -0
- package/dist/sources/browser.js +137 -0
- package/dist/sources/browser.js.map +1 -0
- package/dist/sources/index.cjs +3021 -0
- package/dist/sources/index.cjs.map +1 -0
- package/dist/sources/index.d.cts +7 -0
- package/dist/sources/index.d.ts +7 -0
- package/dist/sources/index.js +63 -0
- package/dist/sources/index.js.map +1 -0
- package/dist/sources/node.cjs +675 -0
- package/dist/sources/node.cjs.map +1 -0
- package/dist/sources/node.d.cts +109 -0
- package/dist/sources/node.d.ts +109 -0
- package/dist/sources/node.js +639 -0
- package/dist/sources/node.js.map +1 -0
- package/dist/storage/browser.cjs +777 -0
- package/dist/storage/browser.cjs.map +1 -0
- package/dist/storage/browser.d.cts +40 -0
- package/dist/storage/browser.d.ts +40 -0
- package/dist/storage/browser.js +275 -0
- package/dist/storage/browser.js.map +1 -0
- package/dist/storage/index.cjs +1989 -0
- package/dist/storage/index.cjs.map +1 -0
- package/dist/storage/index.d.cts +92 -0
- package/dist/storage/index.d.ts +92 -0
- package/dist/storage/index.js +161 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/node.cjs +898 -0
- package/dist/storage/node.cjs.map +1 -0
- package/dist/storage/node.d.cts +66 -0
- package/dist/storage/node.d.ts +66 -0
- package/dist/storage/node.js +402 -0
- package/dist/storage/node.js.map +1 -0
- package/dist/testing/index.cjs +95 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +20 -0
- package/dist/testing/index.d.ts +20 -0
- package/dist/testing/index.js +8 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/types-bNMSWKqF.d.cts +732 -0
- package/dist/types-h12mNYbq.d.ts +732 -0
- package/package.json +250 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wave-protocol message types and the tier const table.
|
|
3
|
+
*
|
|
4
|
+
* Canonical authority: ~/src/graphrefly/spec/rules.jsonl
|
|
5
|
+
* R-msg-format, R-msg-closed-set, R-tier (D34), R-data-payload, R-sentinel.
|
|
6
|
+
*/
|
|
7
|
+
/** Opaque pause-lock identifier (R-pause-lockset). */
|
|
8
|
+
type LockId = string | symbol;
|
|
9
|
+
/**
|
|
10
|
+
* The CLOSED set of 10 message types (R-msg-closed-set / D9 + START handshake).
|
|
11
|
+
* No open set, no user-defined custom types. Adding a type is a spec change.
|
|
12
|
+
*/
|
|
13
|
+
type Message = readonly ["START"] | readonly ["DIRTY"] | readonly ["DATA", unknown] | readonly ["RESOLVED"] | readonly ["INVALIDATE"] | readonly ["COMPLETE"] | readonly ["ERROR", unknown] | readonly ["TEARDOWN"] | readonly ["PAUSE", LockId] | readonly ["RESUME", LockId];
|
|
14
|
+
/** One array of messages delivered in one call = one Wave (R-wave-boundary). */
|
|
15
|
+
type Wave = readonly Message[];
|
|
16
|
+
/** The message-type tag (the first tuple element). */
|
|
17
|
+
type MessageType = Message[0];
|
|
18
|
+
/**
|
|
19
|
+
* SENTINEL = absence-of-DATA (R-sentinel / D16). TS representation is `undefined`.
|
|
20
|
+
* Never a valid DATA payload; `null` IS a valid DATA value (domain-level absence).
|
|
21
|
+
*/
|
|
22
|
+
declare const SENTINEL: undefined;
|
|
23
|
+
/** R-data-payload: ERROR payloads must not collide with terminal metadata shorthand. */
|
|
24
|
+
declare function isInvalidErrorPayload(v: unknown): boolean;
|
|
25
|
+
/** R-data-payload / D78: host-language failures that collide with ctx.terminal shorthand become diagnostics. */
|
|
26
|
+
declare function errorPayload(reason: unknown, fallback?: string): unknown;
|
|
27
|
+
declare const TIER_START = 0;
|
|
28
|
+
declare const TIER_CONTROL = 1;
|
|
29
|
+
declare const TIER_NOTIFICATION = 2;
|
|
30
|
+
declare const TIER_VALUE = 3;
|
|
31
|
+
declare const TIER_SETTLE = 4;
|
|
32
|
+
declare const TIER_TERMINAL = 5;
|
|
33
|
+
declare const TIER_TEARDOWN = 6;
|
|
34
|
+
declare function messageTier(t: MessageType): number;
|
|
35
|
+
/** Value and above are deferred inside a batch (DATA/RESOLVED/INVALIDATE/terminal/teardown). */
|
|
36
|
+
declare function isDeferredTier(t: MessageType): boolean;
|
|
37
|
+
/** Value-tier messages (DATA/RESOLVED) occupy the tier-3 slot. */
|
|
38
|
+
declare function isValueTier(t: MessageType): boolean;
|
|
39
|
+
/** The pause buffer holds the settle slice only: value-tier DATA/RESOLVED plus INVALIDATE. */
|
|
40
|
+
declare function isPauseBufferedTier(t: MessageType): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* A TERMINAL message = tier 5 (COMPLETE | ERROR), R-tier / D34. Detected via the CENTRAL tier
|
|
43
|
+
* table, NOT a per-variant `=== "COMPLETE" || === "ERROR"` check — so terminal routing stays
|
|
44
|
+
* driven by the one const table (feedback_use_tier_for_signal_routing); discriminate COMPLETE vs
|
|
45
|
+
* ERROR within the tier by the message type only where the handling actually differs.
|
|
46
|
+
*/
|
|
47
|
+
declare function isTerminal(t: MessageType): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* ctx.up carries control tiers only (R-ctx-up / DR-5): DIRTY, PAUSE, RESUME,
|
|
50
|
+
* INVALIDATE, TEARDOWN. DATA/RESOLVED (tier 3) and COMPLETE/ERROR (tier 5) are
|
|
51
|
+
* down-only.
|
|
52
|
+
*/
|
|
53
|
+
declare function isUpAllowed(t: MessageType): boolean;
|
|
54
|
+
|
|
55
|
+
export { type LockId as L, type Message as M, SENTINEL as S, TIER_CONTROL as T, type Wave as W, type MessageType as a, TIER_NOTIFICATION as b, TIER_SETTLE as c, TIER_START as d, TIER_TEARDOWN as e, TIER_TERMINAL as f, TIER_VALUE as g, errorPayload as h, isDeferredTier as i, isInvalidErrorPayload as j, isPauseBufferedTier as k, isTerminal as l, isUpAllowed as m, isValueTier as n, messageTier as o };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wave-protocol message types and the tier const table.
|
|
3
|
+
*
|
|
4
|
+
* Canonical authority: ~/src/graphrefly/spec/rules.jsonl
|
|
5
|
+
* R-msg-format, R-msg-closed-set, R-tier (D34), R-data-payload, R-sentinel.
|
|
6
|
+
*/
|
|
7
|
+
/** Opaque pause-lock identifier (R-pause-lockset). */
|
|
8
|
+
type LockId = string | symbol;
|
|
9
|
+
/**
|
|
10
|
+
* The CLOSED set of 10 message types (R-msg-closed-set / D9 + START handshake).
|
|
11
|
+
* No open set, no user-defined custom types. Adding a type is a spec change.
|
|
12
|
+
*/
|
|
13
|
+
type Message = readonly ["START"] | readonly ["DIRTY"] | readonly ["DATA", unknown] | readonly ["RESOLVED"] | readonly ["INVALIDATE"] | readonly ["COMPLETE"] | readonly ["ERROR", unknown] | readonly ["TEARDOWN"] | readonly ["PAUSE", LockId] | readonly ["RESUME", LockId];
|
|
14
|
+
/** One array of messages delivered in one call = one Wave (R-wave-boundary). */
|
|
15
|
+
type Wave = readonly Message[];
|
|
16
|
+
/** The message-type tag (the first tuple element). */
|
|
17
|
+
type MessageType = Message[0];
|
|
18
|
+
/**
|
|
19
|
+
* SENTINEL = absence-of-DATA (R-sentinel / D16). TS representation is `undefined`.
|
|
20
|
+
* Never a valid DATA payload; `null` IS a valid DATA value (domain-level absence).
|
|
21
|
+
*/
|
|
22
|
+
declare const SENTINEL: undefined;
|
|
23
|
+
/** R-data-payload: ERROR payloads must not collide with terminal metadata shorthand. */
|
|
24
|
+
declare function isInvalidErrorPayload(v: unknown): boolean;
|
|
25
|
+
/** R-data-payload / D78: host-language failures that collide with ctx.terminal shorthand become diagnostics. */
|
|
26
|
+
declare function errorPayload(reason: unknown, fallback?: string): unknown;
|
|
27
|
+
declare const TIER_START = 0;
|
|
28
|
+
declare const TIER_CONTROL = 1;
|
|
29
|
+
declare const TIER_NOTIFICATION = 2;
|
|
30
|
+
declare const TIER_VALUE = 3;
|
|
31
|
+
declare const TIER_SETTLE = 4;
|
|
32
|
+
declare const TIER_TERMINAL = 5;
|
|
33
|
+
declare const TIER_TEARDOWN = 6;
|
|
34
|
+
declare function messageTier(t: MessageType): number;
|
|
35
|
+
/** Value and above are deferred inside a batch (DATA/RESOLVED/INVALIDATE/terminal/teardown). */
|
|
36
|
+
declare function isDeferredTier(t: MessageType): boolean;
|
|
37
|
+
/** Value-tier messages (DATA/RESOLVED) occupy the tier-3 slot. */
|
|
38
|
+
declare function isValueTier(t: MessageType): boolean;
|
|
39
|
+
/** The pause buffer holds the settle slice only: value-tier DATA/RESOLVED plus INVALIDATE. */
|
|
40
|
+
declare function isPauseBufferedTier(t: MessageType): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* A TERMINAL message = tier 5 (COMPLETE | ERROR), R-tier / D34. Detected via the CENTRAL tier
|
|
43
|
+
* table, NOT a per-variant `=== "COMPLETE" || === "ERROR"` check — so terminal routing stays
|
|
44
|
+
* driven by the one const table (feedback_use_tier_for_signal_routing); discriminate COMPLETE vs
|
|
45
|
+
* ERROR within the tier by the message type only where the handling actually differs.
|
|
46
|
+
*/
|
|
47
|
+
declare function isTerminal(t: MessageType): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* ctx.up carries control tiers only (R-ctx-up / DR-5): DIRTY, PAUSE, RESUME,
|
|
50
|
+
* INVALIDATE, TEARDOWN. DATA/RESOLVED (tier 3) and COMPLETE/ERROR (tier 5) are
|
|
51
|
+
* down-only.
|
|
52
|
+
*/
|
|
53
|
+
declare function isUpAllowed(t: MessageType): boolean;
|
|
54
|
+
|
|
55
|
+
export { type LockId as L, type Message as M, SENTINEL as S, TIER_CONTROL as T, type Wave as W, type MessageType as a, TIER_NOTIFICATION as b, TIER_SETTLE as c, TIER_START as d, TIER_TEARDOWN as e, TIER_TERMINAL as f, TIER_VALUE as g, errorPayload as h, isDeferredTier as i, isInvalidErrorPayload as j, isPauseBufferedTier as k, isTerminal as l, isUpAllowed as m, isValueTier as n, messageTier as o };
|