hiveagents-runtime 0.0.0-stage → 0.1.0-beta.3
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 +202 -0
- package/README.md +89 -2
- package/dist/adapter-kit.d.ts +37 -0
- package/dist/adapter-kit.js +34 -0
- package/dist/adapter-kit.js.map +1 -0
- package/dist/agent-Bj5YPrO7.d.ts +169 -0
- package/dist/agent-D6OXR7UF.js +24 -0
- package/dist/agent-D6OXR7UF.js.map +1 -0
- package/dist/agent-readiness-KSGNKTGK.js +19 -0
- package/dist/agent-readiness-KSGNKTGK.js.map +1 -0
- package/dist/capture-runtime-GP6NZ2ee.d.ts +54 -0
- package/dist/chunk-2RK74GCA.js +2397 -0
- package/dist/chunk-2RK74GCA.js.map +1 -0
- package/dist/chunk-3TIYA3K5.js +55 -0
- package/dist/chunk-3TIYA3K5.js.map +1 -0
- package/dist/chunk-6FIXXWNM.js +1 -0
- package/dist/chunk-6FIXXWNM.js.map +1 -0
- package/dist/chunk-6XIJW65Q.js +52 -0
- package/dist/chunk-6XIJW65Q.js.map +1 -0
- package/dist/chunk-7LDQKJKI.js +248 -0
- package/dist/chunk-7LDQKJKI.js.map +1 -0
- package/dist/chunk-CPN4DOXH.js +115 -0
- package/dist/chunk-CPN4DOXH.js.map +1 -0
- package/dist/chunk-DAXPAV2L.js +810 -0
- package/dist/chunk-DAXPAV2L.js.map +1 -0
- package/dist/chunk-DQEMIGKC.js +291 -0
- package/dist/chunk-DQEMIGKC.js.map +1 -0
- package/dist/chunk-DZFFGUIA.js +81 -0
- package/dist/chunk-DZFFGUIA.js.map +1 -0
- package/dist/chunk-EEUYQFCP.js +106 -0
- package/dist/chunk-EEUYQFCP.js.map +1 -0
- package/dist/chunk-G6JV7WV6.js +521 -0
- package/dist/chunk-G6JV7WV6.js.map +1 -0
- package/dist/chunk-GFVYNPLS.js +118 -0
- package/dist/chunk-GFVYNPLS.js.map +1 -0
- package/dist/chunk-GS5U3KUN.js +201 -0
- package/dist/chunk-GS5U3KUN.js.map +1 -0
- package/dist/chunk-HB7FBSH2.js +960 -0
- package/dist/chunk-HB7FBSH2.js.map +1 -0
- package/dist/chunk-HZFZX5A3.js +21 -0
- package/dist/chunk-HZFZX5A3.js.map +1 -0
- package/dist/chunk-J7VAYJKM.js +595 -0
- package/dist/chunk-J7VAYJKM.js.map +1 -0
- package/dist/chunk-NCNSHOF7.js +52 -0
- package/dist/chunk-NCNSHOF7.js.map +1 -0
- package/dist/chunk-RH5A5U7G.js +202 -0
- package/dist/chunk-RH5A5U7G.js.map +1 -0
- package/dist/chunk-RX3XZENU.js +385 -0
- package/dist/chunk-RX3XZENU.js.map +1 -0
- package/dist/chunk-RXU2Q2HF.js +49 -0
- package/dist/chunk-RXU2Q2HF.js.map +1 -0
- package/dist/chunk-TG7NTMTR.js +208 -0
- package/dist/chunk-TG7NTMTR.js.map +1 -0
- package/dist/chunk-TWGEYWMO.js +1217 -0
- package/dist/chunk-TWGEYWMO.js.map +1 -0
- package/dist/chunk-UZPDDQVJ.js +2910 -0
- package/dist/chunk-UZPDDQVJ.js.map +1 -0
- package/dist/chunk-WMKO5XOE.js +601 -0
- package/dist/chunk-WMKO5XOE.js.map +1 -0
- package/dist/chunk-WOQBVJH5.js +175 -0
- package/dist/chunk-WOQBVJH5.js.map +1 -0
- package/dist/chunk-WVT5SEKC.js +581 -0
- package/dist/chunk-WVT5SEKC.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +26 -0
- package/dist/cli.js.map +1 -0
- package/dist/errors-BNHvvjn9.d.ts +98 -0
- package/dist/execution-halt-B8G0fOKS.d.ts +12 -0
- package/dist/execution-types-ClYYqPQP.d.ts +239 -0
- package/dist/host-ledger-VPRWVVOS.js +25 -0
- package/dist/host-ledger-VPRWVVOS.js.map +1 -0
- package/dist/hosted-runtime.d.ts +168 -0
- package/dist/hosted-runtime.js +858 -0
- package/dist/hosted-runtime.js.map +1 -0
- package/dist/index-B86C6VAD.d.ts +41 -0
- package/dist/index.d.ts +344 -0
- package/dist/index.js +8825 -0
- package/dist/index.js.map +1 -0
- package/dist/memory-items-BSTC0_R0.d.ts +28 -0
- package/dist/memory-tools.d.ts +222 -0
- package/dist/memory-tools.js +923 -0
- package/dist/memory-tools.js.map +1 -0
- package/dist/orchestration/dynamic.d.ts +854 -0
- package/dist/orchestration/dynamic.js +3150 -0
- package/dist/orchestration/dynamic.js.map +1 -0
- package/dist/orchestration/graph.d.ts +11 -0
- package/dist/orchestration/graph.js +9 -0
- package/dist/orchestration/graph.js.map +1 -0
- package/dist/orchestration/index.d.ts +2385 -0
- package/dist/orchestration/index.js +6409 -0
- package/dist/orchestration/index.js.map +1 -0
- package/dist/orchestration/log.d.ts +301 -0
- package/dist/orchestration/log.js +3058 -0
- package/dist/orchestration/log.js.map +1 -0
- package/dist/orchestration/memory.d.ts +711 -0
- package/dist/orchestration/memory.js +27 -0
- package/dist/orchestration/memory.js.map +1 -0
- package/dist/provider-DX5Mf0uq.d.ts +151 -0
- package/dist/routing/index.d.ts +29 -0
- package/dist/routing/index.js +386 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/routing/learning/index.d.ts +433 -0
- package/dist/routing/learning/index.js +2502 -0
- package/dist/routing/learning/index.js.map +1 -0
- package/dist/runtime-BSjrnxeF.d.ts +283 -0
- package/dist/runtime-OISPXS4I.js +19 -0
- package/dist/runtime-OISPXS4I.js.map +1 -0
- package/dist/store-types-2YdceOMy.d.ts +78 -0
- package/dist/types-BB7KqceP.d.ts +52 -0
- package/dist/types-CIqkKXix.d.ts +86 -0
- package/dist/types-DTFc1qO6.d.ts +1065 -0
- package/dist/types-DYex3p7_.d.ts +88 -0
- package/docs/licenses/ruflo-memory-MIT.txt +21 -0
- package/docs/releases/0.1.0-beta.3.md +13 -0
- package/package.json +114 -4
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { L as LogSourceDescriptor, a as LogStoreOptions, b as LogQuery, c as LogPage, R as RunReconstruction, P as PreparedLogCommit, d as LogCursor } from '../store-types-2YdceOMy.js';
|
|
2
|
+
export { e as LogEntry, f as LogPayloadVerifier, g as LogStoreError, h as LogStoreErrorCode, i as ReconstructionIssue, j as isLogStoreError } from '../store-types-2YdceOMy.js';
|
|
3
|
+
import { c as LogCommit, b as LogReceipt, R as RunIdentity, L as LogPosition } from '../types-BB7KqceP.js';
|
|
4
|
+
export { a as LogDraft, d as LogJsonValue, P as PayloadReference } from '../types-BB7KqceP.js';
|
|
5
|
+
import { DatabaseSync } from 'node:sqlite';
|
|
6
|
+
import { L as LogExecutionDatabaseOptions, E as ExecutionOwnership, S as StandaloneStoppedAcknowledgement, D as DecisionBinding, C as CapturedEffectAssociation, a as DecisionRecord, b as DecisionStore, M as ManagedEffectAssociation, c as DecisionLease, T as TraceEventInput } from '../execution-types-ClYYqPQP.js';
|
|
7
|
+
export { d as ExecutionArtifactStore, e as LogArtifactBinding, f as LogArtifactOptions, g as LogArtifactReadOptions, h as LogArtifactVerification, i as LogArtifactWriteOptions, j as LogExecutionError, k as LogExecutionFailure, l as createLogArtifactStore } from '../execution-types-ClYYqPQP.js';
|
|
8
|
+
import { J as JsonValue, W as WorkflowStore, a as WorkflowDefinition, b as WorkflowLease } from '../types-DYex3p7_.js';
|
|
9
|
+
export { a as RequiredLogCapture, b as RequiredLogCaptureOptions, R as RuntimeCaptureOptions, c as createRequiredLogCapture } from '../capture-runtime-GP6NZ2ee.js';
|
|
10
|
+
import { U as Usage } from '../types-DTFc1qO6.js';
|
|
11
|
+
import '../execution-halt-B8G0fOKS.js';
|
|
12
|
+
import '../errors-BNHvvjn9.js';
|
|
13
|
+
|
|
14
|
+
/** Exclusive standalone connection. SQLite locking and transactions own durability, not this queue. */
|
|
15
|
+
declare class SqliteRunLogStore {
|
|
16
|
+
#private;
|
|
17
|
+
readonly descriptor: LogSourceDescriptor;
|
|
18
|
+
readonly sourceId: string;
|
|
19
|
+
constructor(options: LogStoreOptions);
|
|
20
|
+
append(input: LogCommit): Promise<LogReceipt>;
|
|
21
|
+
lookupRequest(requestId: string): Promise<LogReceipt | undefined>;
|
|
22
|
+
readPage(query?: LogQuery): Promise<LogPage>;
|
|
23
|
+
inspectRun(input: RunIdentity): Promise<RunReconstruction>;
|
|
24
|
+
close(): void;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Explicit app-database enrollment; needs native DatabaseSync.isTransaction (Node >=22.16).
|
|
28
|
+
* All append writes stay inside the caller transaction. This is a data binding, not a host capability. */
|
|
29
|
+
declare class SqliteLogBinding {
|
|
30
|
+
#private;
|
|
31
|
+
readonly descriptor: LogSourceDescriptor;
|
|
32
|
+
readonly sourceId: string;
|
|
33
|
+
constructor(db: DatabaseSync, options: LogStoreOptions);
|
|
34
|
+
prepare(input: LogCommit): Promise<PreparedLogCommit>;
|
|
35
|
+
appendInTransaction(input: LogCommit | PreparedLogCommit): LogReceipt;
|
|
36
|
+
lookupRequest(requestId: string): LogReceipt | undefined;
|
|
37
|
+
readPage(query?: LogQuery): LogPage;
|
|
38
|
+
close(): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Dedicated SQLite data database. All callbacks stay outside transactions; no execution issuer. */
|
|
42
|
+
declare class LogExecutionDatabase {
|
|
43
|
+
#private;
|
|
44
|
+
readonly sourceId: string;
|
|
45
|
+
readonly descriptor: LogSourceDescriptor;
|
|
46
|
+
readonly captureStore: Readonly<{
|
|
47
|
+
append(commit: LogCommit): Promise<LogReceipt>;
|
|
48
|
+
}>;
|
|
49
|
+
constructor(options: LogExecutionDatabaseOptions);
|
|
50
|
+
readPage(query?: LogQuery): Promise<LogPage>;
|
|
51
|
+
inspectOwnership(kind: 'decision' | 'workflow', input: RunIdentity): ExecutionOwnership | undefined;
|
|
52
|
+
/** Trusted standalone operator acknowledgement. No PID/age inference and no Host stopped-work proof. */
|
|
53
|
+
recoverAbandoned(expected: ExecutionOwnership, acknowledgement: StandaloneStoppedAcknowledgement): void;
|
|
54
|
+
close(): void;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare const run: unique symbol;
|
|
58
|
+
/** Original in-process begin acknowledgement. Not a Host execution or settlement capability. */
|
|
59
|
+
interface RunHistoryHandle {
|
|
60
|
+
readonly [run]: true;
|
|
61
|
+
}
|
|
62
|
+
type RunInterruptionReason = 'aborted' | 'failed' | 'stopped' | 'halted';
|
|
63
|
+
/** Producer observations only. An open run is unknown, never permission to replay. */
|
|
64
|
+
interface RunHistoryRecord {
|
|
65
|
+
readonly schemaVersion: 1;
|
|
66
|
+
readonly sourceId: string;
|
|
67
|
+
readonly identity: RunIdentity;
|
|
68
|
+
readonly inputDigest: string;
|
|
69
|
+
readonly status: 'unknown' | 'completed' | 'interrupted';
|
|
70
|
+
readonly started: LogPosition;
|
|
71
|
+
readonly terminal?: LogPosition;
|
|
72
|
+
readonly outputDigest?: string;
|
|
73
|
+
readonly reason?: RunInterruptionReason;
|
|
74
|
+
}
|
|
75
|
+
interface RunHistoryOptions {
|
|
76
|
+
readonly database: LogExecutionDatabase;
|
|
77
|
+
readonly maxEntries?: number;
|
|
78
|
+
}
|
|
79
|
+
interface RunHistoryBegin {
|
|
80
|
+
readonly identity: RunIdentity;
|
|
81
|
+
readonly requestId: string;
|
|
82
|
+
readonly inputDigest: string;
|
|
83
|
+
}
|
|
84
|
+
type RunHistoryStart = Readonly<{
|
|
85
|
+
kind: 'started';
|
|
86
|
+
run: RunHistoryHandle;
|
|
87
|
+
record: RunHistoryRecord;
|
|
88
|
+
}> | Readonly<{
|
|
89
|
+
kind: 'existing';
|
|
90
|
+
record: RunHistoryRecord;
|
|
91
|
+
}>;
|
|
92
|
+
interface RunHistoryComplete {
|
|
93
|
+
readonly requestId: string;
|
|
94
|
+
readonly outputDigest?: string;
|
|
95
|
+
}
|
|
96
|
+
interface RunHistoryInterrupt {
|
|
97
|
+
readonly requestId: string;
|
|
98
|
+
readonly reason: RunInterruptionReason;
|
|
99
|
+
}
|
|
100
|
+
interface RunHistoryList {
|
|
101
|
+
readonly generation?: number;
|
|
102
|
+
readonly limit?: number;
|
|
103
|
+
}
|
|
104
|
+
interface RunHistory {
|
|
105
|
+
begin(options: RunHistoryBegin): Promise<RunHistoryStart>;
|
|
106
|
+
complete(handle: RunHistoryHandle, options: RunHistoryComplete): Promise<RunHistoryRecord>;
|
|
107
|
+
interrupt(handle: RunHistoryHandle, options: RunHistoryInterrupt): Promise<RunHistoryRecord>;
|
|
108
|
+
recover(identity: RunIdentity): Promise<RunHistoryRecord | undefined>;
|
|
109
|
+
/** Latest starts first. Bounded whole-source validation precedes filtering and limiting. */
|
|
110
|
+
list(options?: RunHistoryList): Promise<readonly RunHistoryRecord[]>;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** Lifecycle and deduplication DATA in the existing log. Does not execute work or prove its postconditions. */
|
|
114
|
+
declare function createRunHistory(options: RunHistoryOptions): RunHistory;
|
|
115
|
+
|
|
116
|
+
/** Trusted app-owned original-target verification only; never an execution or Host stopped-work proof. */
|
|
117
|
+
interface DecisionReconciliationOptions {
|
|
118
|
+
readonly id: string;
|
|
119
|
+
readonly intentId: string;
|
|
120
|
+
readonly binding: DecisionBinding;
|
|
121
|
+
readonly verifyApplied: (context: Readonly<{
|
|
122
|
+
association: CapturedEffectAssociation;
|
|
123
|
+
record: Readonly<DecisionRecord>;
|
|
124
|
+
}>) => Readonly<{
|
|
125
|
+
verified: boolean;
|
|
126
|
+
result?: JsonValue;
|
|
127
|
+
evidence: readonly string[];
|
|
128
|
+
}> | Promise<Readonly<{
|
|
129
|
+
verified: boolean;
|
|
130
|
+
result?: JsonValue;
|
|
131
|
+
evidence: readonly string[];
|
|
132
|
+
}>>;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/** One managed immutable effect association. Run-level ownership conservatively serializes callbacks. */
|
|
136
|
+
declare class LogDecisionStore implements DecisionStore {
|
|
137
|
+
#private;
|
|
138
|
+
constructor(options: {
|
|
139
|
+
database: LogExecutionDatabase;
|
|
140
|
+
association: ManagedEffectAssociation;
|
|
141
|
+
requireResolvedRun?: true;
|
|
142
|
+
});
|
|
143
|
+
reconcile(options: DecisionReconciliationOptions): Promise<DecisionRecord>;
|
|
144
|
+
acquire(id: string): Promise<DecisionLease>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** Log and materialized checkpoint share one transaction; app callbacks remain WorkflowRunner-owned. */
|
|
148
|
+
declare class LogWorkflowStore implements WorkflowStore {
|
|
149
|
+
#private;
|
|
150
|
+
constructor(options: {
|
|
151
|
+
database: LogExecutionDatabase;
|
|
152
|
+
identity: RunIdentity;
|
|
153
|
+
definition: WorkflowDefinition;
|
|
154
|
+
});
|
|
155
|
+
acquire(runId: string): Promise<WorkflowLease>;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface DecisionLogMetadata {
|
|
159
|
+
readonly kind: 'decision';
|
|
160
|
+
readonly decisionIdDigest: string;
|
|
161
|
+
readonly status: DecisionRecord['status'];
|
|
162
|
+
readonly attempts: number;
|
|
163
|
+
readonly intentIdDigest?: string;
|
|
164
|
+
readonly inputHash: string;
|
|
165
|
+
readonly authorityHash: string;
|
|
166
|
+
readonly inputVersionDigest: string;
|
|
167
|
+
readonly authorityVersionDigest: string;
|
|
168
|
+
readonly resultHash?: string;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface ManagedEffectView {
|
|
172
|
+
readonly association: CapturedEffectAssociation;
|
|
173
|
+
readonly decisionId: string;
|
|
174
|
+
readonly record?: DecisionRecord;
|
|
175
|
+
readonly metadata?: DecisionLogMetadata;
|
|
176
|
+
readonly bodyState?: 'inline' | 'requires-body';
|
|
177
|
+
}
|
|
178
|
+
/** Data inspection never acquires or recovers an execution lease. */
|
|
179
|
+
declare function inspectManagedEffect(database: LogExecutionDatabase, input: ManagedEffectAssociation): ManagedEffectView | undefined;
|
|
180
|
+
|
|
181
|
+
interface CaptureActual {
|
|
182
|
+
readonly providerDigest: string;
|
|
183
|
+
readonly modelDigest?: string;
|
|
184
|
+
readonly attemptDigest: string;
|
|
185
|
+
readonly transport?: 'exec' | 'control';
|
|
186
|
+
readonly phase?: 'startup' | 'turn';
|
|
187
|
+
readonly sessionIdDigest?: string;
|
|
188
|
+
readonly transportEpochDigest?: string;
|
|
189
|
+
}
|
|
190
|
+
interface CapturedAgentMetadata {
|
|
191
|
+
readonly mode: 'metadata-only';
|
|
192
|
+
readonly invocationDigest: string;
|
|
193
|
+
readonly actual: CaptureActual;
|
|
194
|
+
readonly event: TraceEventInput;
|
|
195
|
+
readonly sessionBinding?: Readonly<{
|
|
196
|
+
bindingDigest: string;
|
|
197
|
+
sessionIdDigest: string;
|
|
198
|
+
transportEpochDigest: string;
|
|
199
|
+
providerDigest: string;
|
|
200
|
+
modelDigest?: string;
|
|
201
|
+
transport: 'exec' | 'control';
|
|
202
|
+
persistence: 'provider' | 'process';
|
|
203
|
+
}>;
|
|
204
|
+
}
|
|
205
|
+
interface CapturedOperationMetadata {
|
|
206
|
+
readonly mode: 'metadata-only';
|
|
207
|
+
readonly invocationDigest: string;
|
|
208
|
+
readonly actual: CaptureActual;
|
|
209
|
+
readonly stage: 'started' | 'settled' | 'interrupted';
|
|
210
|
+
readonly outcome?: 'returned' | 'failed' | 'halted';
|
|
211
|
+
readonly usage?: Usage;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
type ProjectionPurpose = 'trace' | 'audit';
|
|
215
|
+
type ProjectionIssue = 'UNKNOWN_SCHEMA' | 'PRIVATE_PAYLOAD' | 'INVALID_METADATA' | 'UNRESOLVED_CAUSAL_REFERENCE' | 'LOG_CORRUPT' | 'SOURCE_UNAVAILABLE' | 'PROJECTION_LIMIT' | 'HISTORY_GAP' | 'RUN_NOT_FOUND' | 'INVOCATION_UNSETTLED' | 'INCOMPLETE_ORIGIN';
|
|
216
|
+
interface ProjectionReader {
|
|
217
|
+
readonly descriptor: LogSourceDescriptor;
|
|
218
|
+
readPage(query?: LogQuery): Promise<LogPage>;
|
|
219
|
+
}
|
|
220
|
+
interface LogProjectionOptions {
|
|
221
|
+
readonly reader: ProjectionReader;
|
|
222
|
+
readonly identity: RunIdentity;
|
|
223
|
+
readonly maxPages?: number;
|
|
224
|
+
readonly maxEntries?: number;
|
|
225
|
+
}
|
|
226
|
+
/** Private resumable DATA, not an execution capability or a proof of earlier coverage. */
|
|
227
|
+
interface ProjectionCursor {
|
|
228
|
+
readonly format: 1;
|
|
229
|
+
readonly purpose: ProjectionPurpose;
|
|
230
|
+
readonly identityDigest: string;
|
|
231
|
+
readonly source: LogSourceDescriptor;
|
|
232
|
+
readonly underlying: LogCursor;
|
|
233
|
+
}
|
|
234
|
+
interface ProjectionItem {
|
|
235
|
+
readonly id: string;
|
|
236
|
+
readonly position: LogPosition;
|
|
237
|
+
readonly causal: readonly Readonly<{
|
|
238
|
+
sourceIdDigest: string;
|
|
239
|
+
sequence: number;
|
|
240
|
+
digest: string;
|
|
241
|
+
}>[];
|
|
242
|
+
readonly category: 'agent-event' | 'capture-operation' | 'decision' | 'workflow' | 'reconciliation' | 'run' | 'unprojected';
|
|
243
|
+
readonly metadata?: CapturedAgentMetadata | CapturedOperationMetadata | Readonly<Record<string, unknown>>;
|
|
244
|
+
readonly issues: readonly ProjectionIssue[];
|
|
245
|
+
}
|
|
246
|
+
interface ProjectionLink {
|
|
247
|
+
readonly position: LogPosition;
|
|
248
|
+
readonly previousDigest: string;
|
|
249
|
+
}
|
|
250
|
+
interface LogProjectionPage {
|
|
251
|
+
readonly format: 1;
|
|
252
|
+
readonly purpose: ProjectionPurpose;
|
|
253
|
+
readonly identityDigest: string;
|
|
254
|
+
readonly source: LogSourceDescriptor;
|
|
255
|
+
readonly from: LogPosition;
|
|
256
|
+
readonly through: LogPosition;
|
|
257
|
+
readonly links: readonly ProjectionLink[];
|
|
258
|
+
readonly items: readonly ProjectionItem[];
|
|
259
|
+
readonly issues: readonly ProjectionIssue[];
|
|
260
|
+
readonly nextCursor?: ProjectionCursor;
|
|
261
|
+
}
|
|
262
|
+
/** Describes observed metadata at one source head; never business success, quality or permission. */
|
|
263
|
+
interface LogProjection {
|
|
264
|
+
readonly format: 1;
|
|
265
|
+
readonly purpose: ProjectionPurpose;
|
|
266
|
+
readonly identityDigest: string;
|
|
267
|
+
readonly scope: 'captured-metadata';
|
|
268
|
+
readonly textReconstruction: 'unavailable';
|
|
269
|
+
readonly qualityAssessment: 'not-derived';
|
|
270
|
+
readonly source: LogSourceDescriptor;
|
|
271
|
+
readonly through: LogPosition;
|
|
272
|
+
readonly coveredThrough: LogPosition;
|
|
273
|
+
readonly kind: 'observed' | 'awaiting-owner' | 'incomplete' | 'corrupt';
|
|
274
|
+
readonly items: readonly ProjectionItem[];
|
|
275
|
+
readonly issues: readonly ProjectionIssue[];
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
declare function createLogTraceProjector(options: LogProjectionOptions): Readonly<{
|
|
279
|
+
read: (input?: {
|
|
280
|
+
cursor?: ProjectionCursor;
|
|
281
|
+
limit?: number;
|
|
282
|
+
}) => Promise<LogProjectionPage>;
|
|
283
|
+
rebuild: (input?: {
|
|
284
|
+
limit?: number;
|
|
285
|
+
}) => Promise<LogProjection>;
|
|
286
|
+
}>;
|
|
287
|
+
|
|
288
|
+
declare function createLogAuditProjector(options: LogProjectionOptions): Readonly<{
|
|
289
|
+
read: (input?: {
|
|
290
|
+
cursor?: ProjectionCursor;
|
|
291
|
+
limit?: number;
|
|
292
|
+
}) => Promise<LogProjectionPage>;
|
|
293
|
+
rebuild: (input?: {
|
|
294
|
+
limit?: number;
|
|
295
|
+
}) => Promise<LogProjection>;
|
|
296
|
+
}>;
|
|
297
|
+
|
|
298
|
+
/** Pure deterministic DATA merge. Replayed pages deduplicate by exact source position, not time. */
|
|
299
|
+
declare function mergeLogProjectionPages(pages: readonly LogProjectionPage[]): LogProjection;
|
|
300
|
+
|
|
301
|
+
export { CapturedEffectAssociation, type DecisionReconciliationOptions, ExecutionOwnership, LogCommit, LogCursor, LogDecisionStore, LogExecutionDatabase, LogExecutionDatabaseOptions, LogPage, LogPosition, type LogProjection, type LogProjectionOptions, type LogProjectionPage, LogQuery, LogReceipt, LogSourceDescriptor, LogStoreOptions, LogWorkflowStore, ManagedEffectAssociation, type ManagedEffectView, PreparedLogCommit, type ProjectionCursor, type ProjectionIssue, type ProjectionItem, type ProjectionLink, type ProjectionPurpose, type ProjectionReader, type RunHistory, type RunHistoryBegin, type RunHistoryComplete, type RunHistoryHandle, type RunHistoryInterrupt, type RunHistoryList, type RunHistoryOptions, type RunHistoryRecord, type RunHistoryStart, RunIdentity, type RunInterruptionReason, RunReconstruction, SqliteLogBinding, SqliteRunLogStore, StandaloneStoppedAcknowledgement, createLogAuditProjector, createLogTraceProjector, createRunHistory, inspectManagedEffect, mergeLogProjectionPages };
|