@hraness/oh 0.4.1 → 0.4.2
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 +3 -0
- package/README.md +4 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +15590 -1705
- package/dist/index.js +15209 -261
- package/dist/libsql-model.d.ts +75 -0
- package/dist/libsql-model.d.ts.map +1 -0
- package/dist/libsql-platform.d.ts +24 -0
- package/dist/libsql-platform.d.ts.map +1 -0
- package/dist/libsql-program.d.ts +64 -0
- package/dist/libsql-program.d.ts.map +1 -0
- package/dist/libsql-runtime.d.ts +13 -0
- package/dist/libsql-runtime.d.ts.map +1 -0
- package/dist/libsql.d.ts +4 -36
- package/dist/libsql.d.ts.map +1 -1
- package/dist/libsql.js +16583 -1426
- package/dist/memory-authority-platform.d.ts +210 -0
- package/dist/memory-authority-platform.d.ts.map +1 -0
- package/dist/memory-authority-program.d.ts +15 -0
- package/dist/memory-authority-program.d.ts.map +1 -0
- package/dist/memory-authority-runtime.d.ts +4 -0
- package/dist/memory-authority-runtime.d.ts.map +1 -0
- package/dist/memory-core.d.ts +522 -0
- package/dist/memory-core.d.ts.map +1 -0
- package/dist/memory.d.ts +5 -445
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +18232 -4143
- package/dist/sdk.js +15266 -318
- package/dist/semantic-cloud.js +1 -260
- package/dist/semantic-model.d.ts +75 -0
- package/dist/semantic-model.d.ts.map +1 -0
- package/dist/semantic-platform.d.ts +32 -0
- package/dist/semantic-platform.d.ts.map +1 -0
- package/dist/semantic-program.d.ts +18 -0
- package/dist/semantic-program.d.ts.map +1 -0
- package/dist/semantic-runtime.d.ts +6 -0
- package/dist/semantic-runtime.d.ts.map +1 -0
- package/dist/semantic.d.ts +6 -57
- package/dist/semantic.d.ts.map +1 -1
- package/dist/semantic.js +15541 -514
- package/dist/sqlite/index.js +1148 -1378
- package/dist/sqlite/port.d.ts +1 -1
- package/dist/sqlite/port.d.ts.map +1 -1
- package/dist/sync-libsql-program.d.ts +5 -0
- package/dist/sync-libsql-program.d.ts.map +1 -0
- package/dist/sync-model.d.ts +60 -0
- package/dist/sync-model.d.ts.map +1 -0
- package/dist/sync-platform.d.ts +41 -0
- package/dist/sync-platform.d.ts.map +1 -0
- package/dist/sync-program.d.ts +11 -0
- package/dist/sync-program.d.ts.map +1 -0
- package/dist/sync-runtime.d.ts +6 -0
- package/dist/sync-runtime.d.ts.map +1 -0
- package/dist/sync.d.ts +5 -55
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +15174 -226
- package/package.json +7 -5
- package/skills/oh/SKILL.md +2 -1
- package/spec/v1/store.md +14 -0
- package/src/cli.test.ts +35 -0
- package/src/cli.ts +4 -3
- package/src/cloudflare-embedding.ts +1 -1
- package/src/libsql-lifecycle.test.ts +76 -0
- package/src/libsql-model.ts +350 -0
- package/src/libsql-platform.ts +51 -0
- package/src/libsql-program.ts +1583 -0
- package/src/libsql-runtime.ts +89 -0
- package/src/libsql-semantic-v2.ts +1 -1
- package/src/libsql-semantic.ts +1 -1
- package/src/libsql.test.ts +245 -0
- package/src/libsql.ts +26 -1698
- package/src/memory-authority-platform.ts +133 -0
- package/src/memory-authority-program.ts +309 -0
- package/src/memory-authority-runtime.ts +40 -0
- package/src/memory-core.ts +2401 -0
- package/src/memory.test.ts +55 -0
- package/src/memory.ts +68 -2759
- package/src/semantic-model.ts +142 -0
- package/src/semantic-platform.ts +130 -0
- package/src/semantic-program.ts +113 -0
- package/src/semantic-runtime.ts +53 -0
- package/src/semantic.test.ts +115 -1
- package/src/semantic.ts +14 -324
- package/src/sqlite/port.ts +1 -1
- package/src/sync-libsql-program.ts +170 -0
- package/src/sync-lifecycle.test.ts +110 -0
- package/src/sync-model.ts +530 -0
- package/src/sync-platform.ts +87 -0
- package/src/sync-program.ts +117 -0
- package/src/sync-runtime.ts +33 -0
- package/src/sync.ts +10 -765
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { Context, Effect, Layer } from "effect";
|
|
2
|
+
import { type OhHeadV1, type OhStoreV1 } from "./store";
|
|
3
|
+
import { type OhMemoryAuthorityOptionsV1 } from "./memory-core";
|
|
4
|
+
export type MemoryFailure = Readonly<{
|
|
5
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
6
|
+
cause: unknown;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function memoryFailure(cause: unknown): MemoryFailure;
|
|
9
|
+
/** Validation may reject hostile values; unrelated generator defects are not caught. */
|
|
10
|
+
export declare function memoryValue<A>(evaluate: () => A): Effect.Effect<A, MemoryFailure>;
|
|
11
|
+
declare const CanonicalMemoryStore_base: Context.TagClass<CanonicalMemoryStore, "@hraness/oh/CanonicalMemoryStore", {
|
|
12
|
+
commit: (input: Parameters<OhStoreV1["commit"]>[0]) => Effect.Effect<import("./operation").OhOperationV1, Readonly<{
|
|
13
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
14
|
+
cause: unknown;
|
|
15
|
+
}>, never>;
|
|
16
|
+
binding: Readonly<{
|
|
17
|
+
bindingSha256: import("./canonical").Sha256Hex;
|
|
18
|
+
contractSha256: import("./canonical").Sha256Hex;
|
|
19
|
+
profile: import("./store").OhStoreProfileV1;
|
|
20
|
+
realmId: string;
|
|
21
|
+
spaceId: string;
|
|
22
|
+
v: 1;
|
|
23
|
+
}>;
|
|
24
|
+
head: Effect.Effect<Readonly<{
|
|
25
|
+
generation: number;
|
|
26
|
+
graphRevisionSha256: import("./canonical").Sha256Hex | null;
|
|
27
|
+
operationSha256: import("./canonical").Sha256Hex | null;
|
|
28
|
+
recordsSha256: import("./canonical").Sha256Hex;
|
|
29
|
+
sequence: number;
|
|
30
|
+
v: 1;
|
|
31
|
+
}>, Readonly<{
|
|
32
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
33
|
+
cause: unknown;
|
|
34
|
+
}>, never>;
|
|
35
|
+
snapshot: (options: Parameters<OhStoreV1["snapshot"]>[0]) => Effect.Effect<Readonly<{
|
|
36
|
+
head: OhHeadV1;
|
|
37
|
+
records: readonly import("./graph").KnowledgeGraphRecordV1[];
|
|
38
|
+
v: 1;
|
|
39
|
+
}>, Readonly<{
|
|
40
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
41
|
+
cause: unknown;
|
|
42
|
+
}>, never>;
|
|
43
|
+
changesSince: (from: Parameters<OhStoreV1["changesSince"]>[0], options: Parameters<OhStoreV1["changesSince"]>[1]) => Effect.Effect<Readonly<{
|
|
44
|
+
from: import("./store").OhHeadRefV1;
|
|
45
|
+
hasMore: boolean;
|
|
46
|
+
operations: readonly import("./operation").OhOperationV1[];
|
|
47
|
+
through: OhHeadV1;
|
|
48
|
+
to: import("./store").OhHeadRefV1;
|
|
49
|
+
v: 1;
|
|
50
|
+
}>, Readonly<{
|
|
51
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
52
|
+
cause: unknown;
|
|
53
|
+
}>, never>;
|
|
54
|
+
}>;
|
|
55
|
+
/** Canonical commit is provided only to the trusted host authority composition. */
|
|
56
|
+
export declare class CanonicalMemoryStore extends CanonicalMemoryStore_base {
|
|
57
|
+
}
|
|
58
|
+
declare function canonicalStorePort(store: OhStoreV1): {
|
|
59
|
+
commit: (input: Parameters<OhStoreV1["commit"]>[0]) => Effect.Effect<import("./operation").OhOperationV1, Readonly<{
|
|
60
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
61
|
+
cause: unknown;
|
|
62
|
+
}>, never>;
|
|
63
|
+
binding: Readonly<{
|
|
64
|
+
bindingSha256: import("./canonical").Sha256Hex;
|
|
65
|
+
contractSha256: import("./canonical").Sha256Hex;
|
|
66
|
+
profile: import("./store").OhStoreProfileV1;
|
|
67
|
+
realmId: string;
|
|
68
|
+
spaceId: string;
|
|
69
|
+
v: 1;
|
|
70
|
+
}>;
|
|
71
|
+
head: Effect.Effect<Readonly<{
|
|
72
|
+
generation: number;
|
|
73
|
+
graphRevisionSha256: import("./canonical").Sha256Hex | null;
|
|
74
|
+
operationSha256: import("./canonical").Sha256Hex | null;
|
|
75
|
+
recordsSha256: import("./canonical").Sha256Hex;
|
|
76
|
+
sequence: number;
|
|
77
|
+
v: 1;
|
|
78
|
+
}>, Readonly<{
|
|
79
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
80
|
+
cause: unknown;
|
|
81
|
+
}>, never>;
|
|
82
|
+
snapshot: (options: Parameters<OhStoreV1["snapshot"]>[0]) => Effect.Effect<Readonly<{
|
|
83
|
+
head: OhHeadV1;
|
|
84
|
+
records: readonly import("./graph").KnowledgeGraphRecordV1[];
|
|
85
|
+
v: 1;
|
|
86
|
+
}>, Readonly<{
|
|
87
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
88
|
+
cause: unknown;
|
|
89
|
+
}>, never>;
|
|
90
|
+
changesSince: (from: Parameters<OhStoreV1["changesSince"]>[0], options: Parameters<OhStoreV1["changesSince"]>[1]) => Effect.Effect<Readonly<{
|
|
91
|
+
from: import("./store").OhHeadRefV1;
|
|
92
|
+
hasMore: boolean;
|
|
93
|
+
operations: readonly import("./operation").OhOperationV1[];
|
|
94
|
+
through: OhHeadV1;
|
|
95
|
+
to: import("./store").OhHeadRefV1;
|
|
96
|
+
v: 1;
|
|
97
|
+
}>, Readonly<{
|
|
98
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
99
|
+
cause: unknown;
|
|
100
|
+
}>, never>;
|
|
101
|
+
};
|
|
102
|
+
export type CanonicalMemoryStoreService = ReturnType<typeof canonicalStorePort>;
|
|
103
|
+
declare const WorkingMemorySource_base: Context.TagClass<WorkingMemorySource, "@hraness/oh/WorkingMemorySource", {
|
|
104
|
+
readonly exportDependencyClosure: (input: Parameters<OhStoreV1["exportDependencyClosure"]>[0]) => Effect.Effect<Awaited<ReturnType<OhStoreV1["exportDependencyClosure"]>>, MemoryFailure>;
|
|
105
|
+
}>;
|
|
106
|
+
/** The host adoption program borrows only the working closure read capability. */
|
|
107
|
+
export declare class WorkingMemorySource extends WorkingMemorySource_base {
|
|
108
|
+
}
|
|
109
|
+
declare const MemoryAuthorityConfig_base: Context.TagClass<MemoryAuthorityConfig, "@hraness/oh/MemoryAuthorityConfig", Omit<{
|
|
110
|
+
adoptionActorId: string;
|
|
111
|
+
canonicalAuthorityId: string;
|
|
112
|
+
workingAuthorityId: string;
|
|
113
|
+
canonicalBinding: Readonly<{
|
|
114
|
+
bindingSha256: import("./canonical").Sha256Hex;
|
|
115
|
+
contractSha256: import("./canonical").Sha256Hex;
|
|
116
|
+
profile: import("./store").OhStoreProfileV1;
|
|
117
|
+
realmId: string;
|
|
118
|
+
spaceId: string;
|
|
119
|
+
v: 1;
|
|
120
|
+
}>;
|
|
121
|
+
workingBinding: Readonly<{
|
|
122
|
+
bindingSha256: import("./canonical").Sha256Hex;
|
|
123
|
+
contractSha256: import("./canonical").Sha256Hex;
|
|
124
|
+
profile: import("./store").OhStoreProfileV1;
|
|
125
|
+
realmId: string;
|
|
126
|
+
spaceId: string;
|
|
127
|
+
v: 1;
|
|
128
|
+
}>;
|
|
129
|
+
initialCanonicalHead: Readonly<{
|
|
130
|
+
generation: number;
|
|
131
|
+
graphRevisionSha256: import("./canonical").Sha256Hex | null;
|
|
132
|
+
operationSha256: import("./canonical").Sha256Hex | null;
|
|
133
|
+
recordsSha256: import("./canonical").Sha256Hex;
|
|
134
|
+
sequence: number;
|
|
135
|
+
v: 1;
|
|
136
|
+
}>;
|
|
137
|
+
maximumCanonicalOperationBytes: number;
|
|
138
|
+
createAgentAt: (expectedHead: OhHeadV1) => Effect.Effect<import("./memory-core").OhMemoryAgentV2, Readonly<{
|
|
139
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
140
|
+
cause: unknown;
|
|
141
|
+
}>, never>;
|
|
142
|
+
routesById: Map<string, Readonly<{
|
|
143
|
+
destinationPurpose: string;
|
|
144
|
+
nominationId: string;
|
|
145
|
+
}>>;
|
|
146
|
+
canonical: {
|
|
147
|
+
commit: (input: Parameters<OhStoreV1["commit"]>[0]) => Effect.Effect<import("./operation").OhOperationV1, Readonly<{
|
|
148
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
149
|
+
cause: unknown;
|
|
150
|
+
}>, never>;
|
|
151
|
+
binding: Readonly<{
|
|
152
|
+
bindingSha256: import("./canonical").Sha256Hex;
|
|
153
|
+
contractSha256: import("./canonical").Sha256Hex;
|
|
154
|
+
profile: import("./store").OhStoreProfileV1;
|
|
155
|
+
realmId: string;
|
|
156
|
+
spaceId: string;
|
|
157
|
+
v: 1;
|
|
158
|
+
}>;
|
|
159
|
+
head: Effect.Effect<Readonly<{
|
|
160
|
+
generation: number;
|
|
161
|
+
graphRevisionSha256: import("./canonical").Sha256Hex | null;
|
|
162
|
+
operationSha256: import("./canonical").Sha256Hex | null;
|
|
163
|
+
recordsSha256: import("./canonical").Sha256Hex;
|
|
164
|
+
sequence: number;
|
|
165
|
+
v: 1;
|
|
166
|
+
}>, Readonly<{
|
|
167
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
168
|
+
cause: unknown;
|
|
169
|
+
}>, never>;
|
|
170
|
+
snapshot: (options: Parameters<OhStoreV1["snapshot"]>[0]) => Effect.Effect<Readonly<{
|
|
171
|
+
head: OhHeadV1;
|
|
172
|
+
records: readonly import("./graph").KnowledgeGraphRecordV1[];
|
|
173
|
+
v: 1;
|
|
174
|
+
}>, Readonly<{
|
|
175
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
176
|
+
cause: unknown;
|
|
177
|
+
}>, never>;
|
|
178
|
+
changesSince: (from: Parameters<OhStoreV1["changesSince"]>[0], options: Parameters<OhStoreV1["changesSince"]>[1]) => Effect.Effect<Readonly<{
|
|
179
|
+
from: import("./store").OhHeadRefV1;
|
|
180
|
+
hasMore: boolean;
|
|
181
|
+
operations: readonly import("./operation").OhOperationV1[];
|
|
182
|
+
through: OhHeadV1;
|
|
183
|
+
to: import("./store").OhHeadRefV1;
|
|
184
|
+
v: 1;
|
|
185
|
+
}>, Readonly<{
|
|
186
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
187
|
+
cause: unknown;
|
|
188
|
+
}>, never>;
|
|
189
|
+
};
|
|
190
|
+
working: {
|
|
191
|
+
exportDependencyClosure: (input: Parameters<OhStoreV1["exportDependencyClosure"]>[0]) => Effect.Effect<Readonly<{
|
|
192
|
+
binding: import("./store").OhStoreBindingV1;
|
|
193
|
+
closureSha256: import("./canonical").Sha256Hex;
|
|
194
|
+
head: OhHeadV1;
|
|
195
|
+
records: readonly import("./graph").KnowledgeGraphRecordV1[];
|
|
196
|
+
roots: readonly string[];
|
|
197
|
+
v: 1;
|
|
198
|
+
}>, Readonly<{
|
|
199
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
200
|
+
cause: unknown;
|
|
201
|
+
}>, never>;
|
|
202
|
+
};
|
|
203
|
+
}, "canonical" | "working">>;
|
|
204
|
+
export declare class MemoryAuthorityConfig extends MemoryAuthorityConfig_base {
|
|
205
|
+
}
|
|
206
|
+
/** Preparation captures caller-owned options before the first foreign wait. Stores
|
|
207
|
+
* are borrowed; these Layers cannot close or purge either physical authority. */
|
|
208
|
+
export declare function memoryAuthorityLive(options: OhMemoryAuthorityOptionsV1): Layer.Layer<MemoryAuthorityConfig | CanonicalMemoryStore | WorkingMemorySource, MemoryFailure>;
|
|
209
|
+
export {};
|
|
210
|
+
//# sourceMappingURL=memory-authority-platform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-authority-platform.d.ts","sourceRoot":"","sources":["../src/memory-authority-platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGhD,OAAO,EACL,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAIL,KAAK,0BAA0B,EAChC,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,IAAI,EAAE,gBAAgB,GAAG,iBAAiB,GAAG,eAAe,GAAG,kBAAkB,GAAG,gBAAgB,GAAG,eAAe,CAAC;IACvH,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC,CAAC;AAEH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAM3D;AAED,wFAAwF;AACxF,wBAAgB,WAAW,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,CAAC,CAEjF;;oBAuBmB,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;cAtC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AU,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;kBA1B5G,gBAAgB,GAAG,iBAAiB,GAAG,eAAe,GAAG,kBAAkB,GAAG,gBAAgB,GAAG,eAAe;mBAC/G,OAAO;;;;yCAmGgC,UAAU,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;kBApG3F,gBAAgB,GAAG,iBAAiB,GAAG,eAAe,GAAG,kBAAkB,GAAG,gBAAgB,GAAG,eAAe;mBAC/G,OAAO;;;;AAwGhB,qBAAa,qBAAsB,SAAQ,0BAExC;CAAG;AAEN;iFACiF;AACjF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B,GACrE,KAAK,CAAC,KAAK,CAAC,qBAAqB,GAAG,oBAAoB,GAAG,mBAAmB,EAAE,aAAa,CAAC,CAO/F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
import { parseCanonicalAdvanceRequest, parseAdoptionRequest, type OhMemoryCanonicalAdvanceReceiptV1, type OhMemoryAdoptionReceiptV1 } from "./memory-core";
|
|
3
|
+
import { CanonicalMemoryStore, WorkingMemorySource, MemoryAuthorityConfig, type MemoryFailure } from "./memory-authority-platform";
|
|
4
|
+
/** One FIFO for trusted host changes; agent calls retain their captured immutable pin.
|
|
5
|
+
* After admission the operation retains its permit through actual foreign settlement
|
|
6
|
+
* and pin publication. Native commit/CAS remains authoritative; there is no retry. */
|
|
7
|
+
export declare const makeMemoryAuthority: Effect.Effect<{
|
|
8
|
+
readonly agent: import("./memory-core").OhMemoryAgentV2;
|
|
9
|
+
advanceCanonical: (request: ReturnType<typeof parseCanonicalAdvanceRequest>) => Effect.Effect<OhMemoryCanonicalAdvanceReceiptV1, MemoryFailure>;
|
|
10
|
+
adoptNomination: (request: ReturnType<typeof parseAdoptionRequest>) => Effect.Effect<OhMemoryAdoptionReceiptV1, MemoryFailure>;
|
|
11
|
+
}, Readonly<{
|
|
12
|
+
_tag: "MemoryConflict" | "MemoryIntegrity" | "MemoryProfile" | "MemoryValidation" | "MemoryCapacity" | "MemoryForeign";
|
|
13
|
+
cause: unknown;
|
|
14
|
+
}>, CanonicalMemoryStore | WorkingMemorySource | MemoryAuthorityConfig>;
|
|
15
|
+
//# sourceMappingURL=memory-authority-program.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-authority-program.d.ts","sourceRoot":"","sources":["../src/memory-authority-program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAgB,MAAM,QAAQ,CAAC;AAMrD,OAAO,EAEL,4BAA4B,EAAE,oBAAoB,EAE/B,KAAK,iCAAiC,EAAE,KAAK,yBAAyB,EACnD,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,qBAAqB,EACvE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AA2G1D;;sFAEsF;AACtF,eAAO,MAAM,mBAAmB;;gCAiBK,UAAU,CAAC,OAAO,4BAA4B,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,iCAAiC,EAAE,aAAa,CAAC;+BAgBlH,UAAU,CAAC,OAAO,oBAAoB,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,yBAAyB,EAAE,aAAa,CAAC;;;;uEAwJnI,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type OhMemoryAuthorityOptionsV1, type OhMemoryAuthorityV1 } from "./memory-core";
|
|
2
|
+
/** Existing Promise surface; stores and agent capability lifetimes remain borrowed. */
|
|
3
|
+
export declare function createOhMemoryAuthorityV1(options: OhMemoryAuthorityOptionsV1): Promise<OhMemoryAuthorityV1>;
|
|
4
|
+
//# sourceMappingURL=memory-authority-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-authority-runtime.d.ts","sourceRoot":"","sources":["../src/memory-authority-runtime.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,0BAA0B,EAAE,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAenF,uFAAuF;AACvF,wBAAsB,yBAAyB,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAqBjH"}
|