@popmelt.com/core 0.27.0 → 0.28.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/claude-plugin/.claude-plugin/plugin.json +1 -1
- package/codex-plugin/.codex-plugin/plugin.json +1 -1
- package/dist/ParticipantRuntime-4NMUTZL3.mjs +139 -0
- package/dist/PopmeltTasteConnectedPane-ZMJXKDPJ.mjs +221 -0
- package/dist/PreviewRuntime-AZAHK27Q.mjs +2 -0
- package/dist/bridge-entry.mjs +2 -229
- package/dist/browser-runtime-57XUOV3C.mjs +2 -0
- package/dist/browser.mjs +1 -1
- package/dist/chunk-3LBOX7HQ.mjs +3 -0
- package/dist/chunk-BISCKKOX.mjs +2 -0
- package/dist/chunk-DPSBNNGU.mjs +2 -0
- package/dist/chunk-GL4I4MI6.mjs +3 -0
- package/dist/chunk-HGW2U6PD.mjs +2 -0
- package/dist/chunk-HPQJKWK5.mjs +1 -0
- package/dist/chunk-JNR6PO2Z.mjs +369 -0
- package/dist/chunk-LVEMYZOA.mjs +2 -0
- package/dist/chunk-M3MBL5NR.mjs +2 -0
- package/dist/chunk-O4HZP3RP.mjs +2 -0
- package/dist/chunk-PKTQWFUA.mjs +2 -0
- package/dist/chunk-Q5PC5FWC.mjs +347 -0
- package/dist/chunk-QXVMGZFP.mjs +1 -0
- package/dist/chunk-R5RMIYS5.mjs +77 -0
- package/dist/chunk-WNZFCDVR.mjs +289 -0
- package/dist/chunk-XTOCFTVW.mjs +2 -0
- package/dist/{chunk-C5Q6LDAS.mjs → chunk-YBULEE33.mjs} +1 -1
- package/dist/chunk-YIAZGECE.mjs +2 -0
- package/dist/cli.mjs +169 -106
- package/dist/focus-inspection-ZKWDPDRI.mjs +2 -0
- package/dist/index-CHp2bgs1.d.mts +565 -0
- package/dist/index.mjs +1 -1
- package/dist/memory-legacy.d.mts +1 -489
- package/dist/memory-legacy.mjs +1 -1
- package/dist/memory-store.d.mts +2 -660
- package/dist/memory-store.mjs +1 -3
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-nuxt.mjs +1 -1
- package/dist/plugin-vite.mjs +1 -1
- package/dist/server.d.mts +3 -291
- package/dist/server.mjs +7 -234
- package/dist/taste-proposal-session-XU4N7RUV.mjs +2 -0
- package/dist/types-Bur49CLH.d.mts +349 -0
- package/dist/workspace-snapshot-EJQHHDQ4.mjs +2 -0
- package/package.json +23 -25
- package/dist/ParticipantRuntime-AD3YD4FW.mjs +0 -139
- package/dist/PopmeltTasteConnectedPane-HLCTVPJP.mjs +0 -81
- package/dist/PreviewRuntime-KGLZJGUN.mjs +0 -2
- package/dist/browser-runtime-3JZGB3P2.mjs +0 -2
- package/dist/chunk-7YCLSSQA.mjs +0 -2
- package/dist/chunk-7YIQQYRU.mjs +0 -77
- package/dist/chunk-D7HY2EDH.mjs +0 -2
- package/dist/chunk-MDJYUX5S.mjs +0 -370
- package/dist/chunk-MTRUVFH7.mjs +0 -1
- package/dist/chunk-TFPKDKDO.mjs +0 -345
- package/dist/chunk-TSY2K45H.mjs +0 -2
- package/dist/server-MJF4KF26.mjs +0 -241
package/dist/memory-store.d.mts
CHANGED
|
@@ -1,526 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type MemoryFormatVersion = typeof MEMORY_FORMAT_VERSION;
|
|
4
|
-
type MemorySchemaVersion = typeof MEMORY_SCHEMA_VERSION;
|
|
5
|
-
type MemoryId = string;
|
|
6
|
-
type Timestamp = string;
|
|
7
|
-
type JsonPrimitive = string | number | boolean | null;
|
|
8
|
-
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
9
|
-
[key: string]: JsonValue;
|
|
10
|
-
};
|
|
11
|
-
type SourceReferenceKind = 'thread' | 'message' | 'iteration' | 'artifact' | 'event' | 'record' | 'external';
|
|
12
|
-
type SourceReference = {
|
|
13
|
-
kind: SourceReferenceKind;
|
|
14
|
-
id: string;
|
|
15
|
-
uri?: string;
|
|
16
|
-
excerpt?: string;
|
|
17
|
-
};
|
|
18
|
-
type Provenance = {
|
|
19
|
-
id: MemoryId;
|
|
20
|
-
schemaVersion: MemorySchemaVersion;
|
|
21
|
-
projectId: MemoryId;
|
|
22
|
-
createdAt: Timestamp;
|
|
23
|
-
participantId: MemoryId;
|
|
24
|
-
sourceRefs: SourceReference[];
|
|
25
|
-
};
|
|
26
|
-
type ParticipantKind = 'human' | 'ai' | 'system' | 'integration';
|
|
27
|
-
type AuthorityLevel = 'owner' | 'delegate' | 'contributor';
|
|
28
|
-
type AuthorityMode = 'local_trusted' | 'hosted';
|
|
29
|
-
type ExecutionContext = {
|
|
30
|
-
sessionId?: string;
|
|
31
|
-
provider?: string;
|
|
32
|
-
model?: string;
|
|
33
|
-
deviceId?: string;
|
|
34
|
-
mode?: string;
|
|
35
|
-
};
|
|
36
|
-
type AuthorityContext = {
|
|
37
|
-
level: AuthorityLevel;
|
|
38
|
-
mode: AuthorityMode;
|
|
39
|
-
grantId?: MemoryId;
|
|
40
|
-
authenticatedAt?: Timestamp;
|
|
41
|
-
};
|
|
42
|
-
type ParticipantRecord = Provenance & {
|
|
43
|
-
recordType: 'participant';
|
|
44
|
-
kind: ParticipantKind;
|
|
45
|
-
displayName: string;
|
|
46
|
-
status: 'active' | 'disabled';
|
|
47
|
-
};
|
|
48
|
-
type AuthorityGrantRecord = Provenance & {
|
|
49
|
-
recordType: 'authority_grant';
|
|
50
|
-
granteeId: MemoryId;
|
|
51
|
-
level: AuthorityLevel;
|
|
52
|
-
grantedById: MemoryId;
|
|
53
|
-
subjectIds: MemoryId[];
|
|
54
|
-
startsAt: Timestamp;
|
|
55
|
-
endsAt?: Timestamp;
|
|
56
|
-
revokedAt?: Timestamp;
|
|
57
|
-
};
|
|
58
|
-
type SubjectType = 'project' | 'file' | 'route' | 'component' | 'element' | 'token' | 'interaction';
|
|
59
|
-
type SubjectLocatorKind = 'project_root' | 'source_file' | 'route_pattern' | 'file_export' | 'source_span' | 'dom_selector' | 'token_path' | 'interaction_key' | 'custom';
|
|
60
|
-
type SubjectLocator = {
|
|
61
|
-
id: MemoryId;
|
|
62
|
-
kind: SubjectLocatorKind;
|
|
63
|
-
value: string;
|
|
64
|
-
status: 'current' | 'historical' | 'unresolved';
|
|
65
|
-
validFrom: Timestamp;
|
|
66
|
-
validUntil?: Timestamp;
|
|
67
|
-
sourceRefs: SourceReference[];
|
|
68
|
-
};
|
|
69
|
-
type SubjectRecord = Provenance & {
|
|
70
|
-
recordType: 'subject';
|
|
71
|
-
subjectType: SubjectType;
|
|
72
|
-
label: string;
|
|
73
|
-
aliases: string[];
|
|
74
|
-
locators: SubjectLocator[];
|
|
75
|
-
};
|
|
76
|
-
type ParticipantStance = {
|
|
77
|
-
stance: 'supports' | 'opposes' | 'uncertain' | 'needs_evidence';
|
|
78
|
-
reason?: string;
|
|
79
|
-
};
|
|
80
|
-
type CaptureContext = {
|
|
81
|
-
route?: string;
|
|
82
|
-
subjectIds: MemoryId[];
|
|
83
|
-
artifactIds: MemoryId[];
|
|
84
|
-
};
|
|
85
|
-
type ObservationState = 'open' | 'resolved' | 'dismissed';
|
|
86
|
-
type ObservationRecord = Provenance & {
|
|
87
|
-
recordType: 'observation';
|
|
88
|
-
state: ObservationState;
|
|
89
|
-
statement: string;
|
|
90
|
-
captureContext: CaptureContext;
|
|
91
|
-
stance?: ParticipantStance;
|
|
92
|
-
resolvedByIds: MemoryId[];
|
|
93
|
-
};
|
|
94
|
-
type DecisionKind = 'principle' | 'preference' | 'rule' | 'constraint';
|
|
95
|
-
type ProposalState = 'draft' | 'pending' | 'accepted' | 'rejected' | 'withdrawn' | 'deferred';
|
|
96
|
-
type AssertionOrigin = {
|
|
97
|
-
mode: 'declared' | 'inferred';
|
|
98
|
-
sourceText?: string;
|
|
99
|
-
iterationId?: MemoryId;
|
|
100
|
-
inferredById?: MemoryId;
|
|
101
|
-
reviewedById?: MemoryId;
|
|
102
|
-
};
|
|
103
|
-
type DecisionSubject = {
|
|
104
|
-
subjectId: MemoryId;
|
|
105
|
-
role: 'governed' | 'consumer' | 'provider' | 'context';
|
|
106
|
-
};
|
|
107
|
-
type ProposalRecord = Provenance & {
|
|
108
|
-
recordType: 'proposal';
|
|
109
|
-
state: ProposalState;
|
|
110
|
-
claim: string;
|
|
111
|
-
rationale?: string;
|
|
112
|
-
proposedKind?: DecisionKind;
|
|
113
|
-
subjects: DecisionSubject[];
|
|
114
|
-
subjectSemantics?: string;
|
|
115
|
-
origin: AssertionOrigin;
|
|
116
|
-
stance?: ParticipantStance;
|
|
117
|
-
bundleId?: MemoryId;
|
|
118
|
-
};
|
|
119
|
-
type DecisionState = 'active' | 'superseded' | 'revoked';
|
|
120
|
-
type DecisionRecord = Provenance & {
|
|
121
|
-
recordType: 'decision';
|
|
122
|
-
proposalId: MemoryId;
|
|
123
|
-
acceptanceEventId: MemoryId;
|
|
124
|
-
acceptedById: MemoryId;
|
|
125
|
-
authority: AuthorityContext;
|
|
126
|
-
state: DecisionState;
|
|
127
|
-
kind: DecisionKind;
|
|
128
|
-
claim: string;
|
|
129
|
-
rationale?: string;
|
|
130
|
-
subjects: DecisionSubject[];
|
|
131
|
-
subjectSemantics?: string;
|
|
132
|
-
noChange: boolean;
|
|
133
|
-
effectiveAt?: Timestamp;
|
|
134
|
-
effectiveMilestone?: string;
|
|
135
|
-
bundleId?: MemoryId;
|
|
136
|
-
};
|
|
137
|
-
type ThreadOutcome = 'decision_created' | 'proposal_rejected' | 'observation_resolved' | 'observation_dismissed' | 'question_unresolved' | 'implementation_only' | 'no_outcome';
|
|
138
|
-
type ThreadRecord = Provenance & {
|
|
139
|
-
recordType: 'thread';
|
|
140
|
-
title?: string;
|
|
141
|
-
state: 'open' | 'resolved';
|
|
142
|
-
messageArtifactIds: MemoryId[];
|
|
143
|
-
outcome: ThreadOutcome;
|
|
144
|
-
resultRefs: EntityReference[];
|
|
145
|
-
};
|
|
146
|
-
type IterationOutcome = 'completed' | 'cancelled' | 'question_asked' | 'failed' | 'no_change';
|
|
147
|
-
type IterationRecord = Provenance & {
|
|
148
|
-
recordType: 'iteration';
|
|
149
|
-
threadIds: MemoryId[];
|
|
150
|
-
startedAt: Timestamp;
|
|
151
|
-
completedAt?: Timestamp;
|
|
152
|
-
requestSummary: string;
|
|
153
|
-
responseSummary?: string;
|
|
154
|
-
outcome: IterationOutcome;
|
|
155
|
-
execution: ExecutionContext;
|
|
156
|
-
artifactIds: MemoryId[];
|
|
157
|
-
imprintAssessment?: {
|
|
158
|
-
state: 'mutated' | 'none' | 'missing' | 'invalid' | 'not_applicable';
|
|
159
|
-
reason?: string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
type EvidenceKind = 'judgment' | 'artifact' | 'eval' | 'log' | 'user_feedback' | 'external_source' | 'project_state';
|
|
163
|
-
type EvidenceRecord = Provenance & {
|
|
164
|
-
recordType: 'evidence';
|
|
165
|
-
kind: EvidenceKind;
|
|
166
|
-
summary: string;
|
|
167
|
-
availability: 'available' | 'missing' | 'redacted' | 'forgotten';
|
|
168
|
-
stance?: ParticipantStance;
|
|
169
|
-
artifactIds: MemoryId[];
|
|
170
|
-
};
|
|
171
|
-
/**
|
|
172
|
-
* An advisory explanation is learned, revisable shared understanding. It can
|
|
173
|
-
* guide future work, but it is deliberately distinct from accepted product
|
|
174
|
-
* truth (`decision`).
|
|
175
|
-
*/
|
|
176
|
-
type AdvisoryExplanationKind = 'intention' | 'principle' | 'pattern';
|
|
177
|
-
type AdvisoryExplanationState = 'emerging' | 'testing' | 'grounded' | 'challenged' | 'retired';
|
|
178
|
-
type AdvisoryExplanationScope = {
|
|
179
|
-
kind: 'project' | 'route' | 'component' | 'selector' | 'file';
|
|
180
|
-
values: string[];
|
|
181
|
-
};
|
|
182
|
-
type AdvisoryConcreteBinding = {
|
|
183
|
-
id: string;
|
|
184
|
-
modelPath: string;
|
|
185
|
-
value: JsonValue;
|
|
186
|
-
createdAt: Timestamp;
|
|
187
|
-
updatedAt: Timestamp;
|
|
188
|
-
};
|
|
189
|
-
type AdvisoryExplanationRecord = Provenance & {
|
|
190
|
-
recordType: 'advisory_explanation';
|
|
191
|
-
kind: AdvisoryExplanationKind;
|
|
192
|
-
state: AdvisoryExplanationState;
|
|
193
|
-
statement: string;
|
|
194
|
-
rationale: string;
|
|
195
|
-
scope: AdvisoryExplanationScope;
|
|
196
|
-
subjectIds: MemoryId[];
|
|
197
|
-
evidenceIds: MemoryId[];
|
|
198
|
-
concreteBindings: AdvisoryConcreteBinding[];
|
|
199
|
-
supersededById?: MemoryId;
|
|
200
|
-
updatedAt: Timestamp;
|
|
201
|
-
};
|
|
202
|
-
type CoverageClaim = {
|
|
203
|
-
decisionId: MemoryId;
|
|
204
|
-
coverage: 'partial' | 'full';
|
|
205
|
-
claim: string;
|
|
206
|
-
sourceRefs: SourceReference[];
|
|
207
|
-
};
|
|
208
|
-
type ImplementationState = 'planned' | 'in_progress' | 'completed' | 'failed' | 'abandoned';
|
|
209
|
-
type ImplementationAttemptRecord = Provenance & {
|
|
210
|
-
recordType: 'implementation_attempt';
|
|
211
|
-
state: ImplementationState;
|
|
212
|
-
iterationIds: MemoryId[];
|
|
213
|
-
coverageClaims: CoverageClaim[];
|
|
214
|
-
projectStateRef?: SourceReference;
|
|
215
|
-
summary: string;
|
|
216
|
-
artifactIds: MemoryId[];
|
|
217
|
-
};
|
|
218
|
-
type VerificationState = 'queued' | 'running' | 'passed' | 'failed' | 'inconclusive' | 'error' | 'cancelled';
|
|
219
|
-
type VerificationTarget = {
|
|
220
|
-
entityType: 'decision' | 'implementation_attempt' | 'model_entry';
|
|
221
|
-
entityId: MemoryId;
|
|
222
|
-
};
|
|
223
|
-
/** @deprecated Retained only so existing memory journals remain readable. */
|
|
224
|
-
type EvalSpecState = 'draft' | 'active' | 'retired';
|
|
225
|
-
/** @deprecated Retained only so existing memory journals remain readable. */
|
|
226
|
-
type EvalDependency = {
|
|
227
|
-
kind: 'model_path' | 'source_file' | 'route' | 'subject';
|
|
228
|
-
value: string;
|
|
229
|
-
subjectId?: MemoryId;
|
|
230
|
-
};
|
|
231
|
-
/** @deprecated Retained only so existing memory journals remain readable. */
|
|
232
|
-
type EvalScenario = {
|
|
233
|
-
id: string;
|
|
234
|
-
label?: string;
|
|
235
|
-
route?: string;
|
|
236
|
-
routePattern?: string;
|
|
237
|
-
components?: Array<{
|
|
238
|
-
name: string;
|
|
239
|
-
sourceFile?: string;
|
|
240
|
-
exportName?: string;
|
|
241
|
-
}>;
|
|
242
|
-
subjectIds?: MemoryId[];
|
|
243
|
-
states?: Array<{
|
|
244
|
-
kind: 'viewport' | 'theme' | 'auth' | 'locale' | 'feature_flag' | 'fixture' | 'interaction' | 'custom';
|
|
245
|
-
key?: string;
|
|
246
|
-
value: string;
|
|
247
|
-
}>;
|
|
248
|
-
steps?: Array<{
|
|
249
|
-
action: 'navigate' | 'click' | 'type' | 'select';
|
|
250
|
-
target?: string;
|
|
251
|
-
value?: string;
|
|
252
|
-
}>;
|
|
253
|
-
};
|
|
254
|
-
/** @deprecated Retained only so existing memory journals remain readable. */
|
|
255
|
-
type EvalSpecRecord = Provenance & {
|
|
256
|
-
recordType: 'eval_spec';
|
|
257
|
-
state: EvalSpecState;
|
|
258
|
-
legacyId: string;
|
|
259
|
-
replacesSpecId?: MemoryId;
|
|
260
|
-
title: string;
|
|
261
|
-
category: 'component' | 'layout' | 'copy' | 'interaction' | 'visual' | 'workflow';
|
|
262
|
-
prompt: string;
|
|
263
|
-
assertions: string[];
|
|
264
|
-
rationale: string;
|
|
265
|
-
decisionIds: MemoryId[];
|
|
266
|
-
subjectIds: MemoryId[];
|
|
267
|
-
threadRefs: string[];
|
|
268
|
-
dependencies?: EvalDependency[];
|
|
269
|
-
scenarios?: EvalScenario[];
|
|
270
|
-
targets: VerificationTarget[];
|
|
271
|
-
evaluator: {
|
|
272
|
-
kind: 'human' | 'ai' | 'test' | 'external';
|
|
273
|
-
name: string;
|
|
274
|
-
evidenceTypes: string[];
|
|
275
|
-
};
|
|
276
|
-
scope: {
|
|
277
|
-
kind: 'current_page' | 'project' | 'subject';
|
|
278
|
-
route?: string;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
type VerificationAttemptRecord = Provenance & {
|
|
282
|
-
recordType: 'verification_attempt';
|
|
283
|
-
evalSpecId?: MemoryId;
|
|
284
|
-
scopeFingerprint?: string;
|
|
285
|
-
state: VerificationState;
|
|
286
|
-
evaluator: {
|
|
287
|
-
kind: 'human' | 'ai' | 'test' | 'eval' | 'external';
|
|
288
|
-
participantId?: MemoryId;
|
|
289
|
-
name: string;
|
|
290
|
-
};
|
|
291
|
-
targets: VerificationTarget[];
|
|
292
|
-
summary?: string;
|
|
293
|
-
evidenceIds: MemoryId[];
|
|
294
|
-
/** @deprecated Historical presentation data retained for journal compatibility. */
|
|
295
|
-
evalRun?: {
|
|
296
|
-
id: string;
|
|
297
|
-
threadId?: string;
|
|
298
|
-
createdAt: number;
|
|
299
|
-
completedAt: number;
|
|
300
|
-
durationMs: number;
|
|
301
|
-
scope: {
|
|
302
|
-
type: 'current_page';
|
|
303
|
-
url: string;
|
|
304
|
-
viewport: {
|
|
305
|
-
width: number;
|
|
306
|
-
height: number;
|
|
307
|
-
};
|
|
308
|
-
};
|
|
309
|
-
assertionResults: Array<{
|
|
310
|
-
assertion: string;
|
|
311
|
-
status: 'pass' | 'fail' | 'needs_review';
|
|
312
|
-
summary: string;
|
|
313
|
-
evidence: string[];
|
|
314
|
-
}>;
|
|
315
|
-
tooling: {
|
|
316
|
-
chromeDevtools: 'available' | 'unavailable' | 'unknown';
|
|
317
|
-
evidenceTypes: string[];
|
|
318
|
-
};
|
|
319
|
-
provider?: string;
|
|
320
|
-
model?: string;
|
|
321
|
-
screenshotPath?: string;
|
|
322
|
-
codeFingerprint?: string;
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
|
-
type ModelEntryRecord = Provenance & {
|
|
326
|
-
recordType: 'model_entry';
|
|
327
|
-
key: string;
|
|
328
|
-
subjectIds: MemoryId[];
|
|
329
|
-
decisionIds: MemoryId[];
|
|
330
|
-
value: JsonValue;
|
|
331
|
-
};
|
|
332
|
-
type ModelProjectionRecord = Provenance & {
|
|
333
|
-
recordType: 'model_projection';
|
|
334
|
-
state: 'applied';
|
|
335
|
-
runId: string;
|
|
336
|
-
presentationJobId?: string;
|
|
337
|
-
appliedById: MemoryId;
|
|
338
|
-
authority: AuthorityContext;
|
|
339
|
-
appliedAt: Timestamp;
|
|
340
|
-
decisionIds: MemoryId[];
|
|
341
|
-
entryIds: MemoryId[];
|
|
342
|
-
coverage: Array<{
|
|
343
|
-
decisionId: MemoryId;
|
|
344
|
-
status: 'unprojected' | 'partially_projected' | 'projected' | 'stale';
|
|
345
|
-
}>;
|
|
346
|
-
};
|
|
347
|
-
type EntityType = 'participant' | 'authority_grant' | 'subject' | 'observation' | 'proposal' | 'decision' | 'thread' | 'iteration' | 'evidence' | 'advisory_explanation' | 'implementation_attempt' | 'eval_spec' | 'verification_attempt' | 'model_entry' | 'model_projection' | 'freshness_signal';
|
|
348
|
-
type MemoryObjectType = EntityType | 'relationship' | 'lifecycle_event' | 'artifact';
|
|
349
|
-
type EntityReference = {
|
|
350
|
-
entityType: EntityType;
|
|
351
|
-
entityId: MemoryId;
|
|
352
|
-
/** Omitted for a reference within the relationship's owning store. */
|
|
353
|
-
storeId?: string;
|
|
354
|
-
};
|
|
355
|
-
type RelationshipType = 'supports' | 'contradicts' | 'supersedes' | 'excepts' | 'duplicates' | 'implements' | 'verifies' | 'replaces' | 'derived_from' | 'expresses'
|
|
356
|
-
/** Legacy explanation topology names remain readable at the boundary. */
|
|
357
|
-
| 'operationalizes' | 'refines' | 'instantiates';
|
|
358
|
-
type RelationshipRecord = Provenance & {
|
|
359
|
-
recordType: 'relationship';
|
|
360
|
-
relationshipType: RelationshipType;
|
|
361
|
-
from: EntityReference;
|
|
362
|
-
to: EntityReference;
|
|
363
|
-
reason: string;
|
|
364
|
-
authority?: AuthorityContext;
|
|
365
|
-
};
|
|
366
|
-
type FreshnessSignalType = 'subject_unresolved' | 'implementation_drift' | 'evidence_unavailable' | 'new_conflict' | 'verification_expired' | 'review_interval_elapsed' | 'schema_or_tooling_change';
|
|
367
|
-
type FreshnessTargetKind = 'subject_locator' | 'implementation_presence' | 'verification_result' | 'model_coverage' | 'evidence_reference' | 'decision_applicability';
|
|
368
|
-
type FreshnessSignalRecord = Provenance & {
|
|
369
|
-
recordType: 'freshness_signal';
|
|
370
|
-
signalType: FreshnessSignalType;
|
|
371
|
-
state: 'open' | 'resolved';
|
|
372
|
-
targetKind: FreshnessTargetKind;
|
|
373
|
-
target: EntityReference;
|
|
374
|
-
reason: string;
|
|
375
|
-
evidenceIds: MemoryId[];
|
|
376
|
-
resolvedAt?: Timestamp;
|
|
377
|
-
resolvedByEventId?: MemoryId;
|
|
378
|
-
};
|
|
379
|
-
type ProposalDeferralContext = {
|
|
380
|
-
kind: 'proposal_deferral';
|
|
381
|
-
taskContext?: string;
|
|
382
|
-
subjectIds: MemoryId[];
|
|
383
|
-
resurfaceWhen: Array<'different_action' | 'new_evidence' | 'new_conflict' | 'owner_request' | 'after_date'>;
|
|
384
|
-
revisitAfter?: Timestamp;
|
|
385
|
-
};
|
|
386
|
-
type LifecycleEvent = Provenance & {
|
|
387
|
-
recordType: 'lifecycle_event';
|
|
388
|
-
entity: EntityReference;
|
|
389
|
-
eventType: string;
|
|
390
|
-
fromState: string | null;
|
|
391
|
-
toState: string;
|
|
392
|
-
authority: AuthorityContext;
|
|
393
|
-
execution?: ExecutionContext;
|
|
394
|
-
reason?: string;
|
|
395
|
-
transitionContext?: ProposalDeferralContext;
|
|
396
|
-
};
|
|
397
|
-
type ArtifactKind = 'message' | 'screenshot' | 'image' | 'diff' | 'file_snapshot' | 'log' | 'eval_output' | 'external_document' | 'other';
|
|
398
|
-
type ArtifactManifestEntry = {
|
|
399
|
-
id: MemoryId;
|
|
400
|
-
kind: ArtifactKind;
|
|
401
|
-
mediaType?: string;
|
|
402
|
-
byteSize?: number;
|
|
403
|
-
contentHash?: string;
|
|
404
|
-
location?: string;
|
|
405
|
-
availability: 'available' | 'missing' | 'redacted' | 'forgotten';
|
|
406
|
-
};
|
|
407
|
-
type Tombstone = {
|
|
408
|
-
id: MemoryId;
|
|
409
|
-
schemaVersion: MemorySchemaVersion;
|
|
410
|
-
projectId: MemoryId;
|
|
411
|
-
objectId: MemoryId;
|
|
412
|
-
objectType: MemoryObjectType;
|
|
413
|
-
deletedAt: Timestamp;
|
|
414
|
-
deletedById: MemoryId;
|
|
415
|
-
authority: AuthorityContext;
|
|
416
|
-
reasonCategory: 'privacy' | 'legal' | 'serious_error' | 'intentional_forgetting';
|
|
417
|
-
erasureLevel: 'content' | 'content_and_evidence' | 'full_where_permitted';
|
|
418
|
-
invalidates: EntityReference[];
|
|
419
|
-
};
|
|
420
|
-
type CanonicalRecord = ParticipantRecord | AuthorityGrantRecord | SubjectRecord | ObservationRecord | ProposalRecord | DecisionRecord | ThreadRecord | IterationRecord | EvidenceRecord | AdvisoryExplanationRecord | ImplementationAttemptRecord | EvalSpecRecord | VerificationAttemptRecord | ModelEntryRecord | ModelProjectionRecord | FreshnessSignalRecord;
|
|
421
|
-
type MemoryFeature = 'authority' | 'subjects' | 'decisions' | 'advisory_explanations' | 'implementations' | 'verification' | 'eval_specs' | 'model_projection' | 'freshness' | 'portable_artifacts' | 'bounded_retrieval';
|
|
422
|
-
type ProjectMemoryManifest = {
|
|
423
|
-
formatVersion: MemoryFormatVersion;
|
|
424
|
-
projectId: MemoryId;
|
|
425
|
-
createdAt: Timestamp;
|
|
426
|
-
updatedAt: Timestamp;
|
|
427
|
-
features: MemoryFeature[];
|
|
428
|
-
writer: {
|
|
429
|
-
name: string;
|
|
430
|
-
version: string;
|
|
431
|
-
};
|
|
432
|
-
};
|
|
433
|
-
type ProjectMemoryBundle = {
|
|
434
|
-
manifest: ProjectMemoryManifest;
|
|
435
|
-
records: CanonicalRecord[];
|
|
436
|
-
events: LifecycleEvent[];
|
|
437
|
-
relationships: RelationshipRecord[];
|
|
438
|
-
artifacts: ArtifactManifestEntry[];
|
|
439
|
-
tombstones: Tombstone[];
|
|
440
|
-
};
|
|
441
|
-
type SubjectMatch = {
|
|
442
|
-
subjectId?: MemoryId;
|
|
443
|
-
subjectType?: SubjectType;
|
|
444
|
-
label?: string;
|
|
445
|
-
confidence: 'exact' | 'strong' | 'weak' | 'unresolved';
|
|
446
|
-
matchedBy: 'id' | 'locator' | 'alias' | 'semantic' | 'none';
|
|
447
|
-
reason?: string;
|
|
448
|
-
};
|
|
449
|
-
type RetrievalDecision = {
|
|
450
|
-
id: MemoryId;
|
|
451
|
-
kind: DecisionKind;
|
|
452
|
-
claim: string;
|
|
453
|
-
subjectIds: MemoryId[];
|
|
454
|
-
authority: AuthorityContext;
|
|
455
|
-
effectiveState: 'active' | 'excepted' | 'conflicted';
|
|
456
|
-
freshness: FreshnessSignalType[];
|
|
457
|
-
expansionRef: SourceReference;
|
|
458
|
-
};
|
|
459
|
-
type RetrievalConflict = {
|
|
460
|
-
id: string;
|
|
461
|
-
decisionIds: MemoryId[];
|
|
462
|
-
unresolvedQuestion: string;
|
|
463
|
-
expansionRefs: SourceReference[];
|
|
464
|
-
};
|
|
465
|
-
type RetrievalUncertainty = {
|
|
466
|
-
code: 'subject_unresolved' | 'no_applicable_decision' | 'evidence_unavailable' | 'known_conflict' | 'retrieval_truncated';
|
|
467
|
-
message: string;
|
|
468
|
-
expansionRefs: SourceReference[];
|
|
469
|
-
};
|
|
470
|
-
type RetrievalEvidenceSummary = {
|
|
471
|
-
evidenceId: MemoryId;
|
|
472
|
-
summary: string;
|
|
473
|
-
availability: EvidenceRecord['availability'];
|
|
474
|
-
sourceRefs: SourceReference[];
|
|
475
|
-
};
|
|
476
|
-
type RetrievalPacket = {
|
|
477
|
-
contractVersion: 1;
|
|
478
|
-
projectId: MemoryId;
|
|
479
|
-
retrievedAt: Timestamp;
|
|
480
|
-
query: {
|
|
481
|
-
text?: string;
|
|
482
|
-
action?: string;
|
|
483
|
-
subjectHints: string[];
|
|
484
|
-
};
|
|
485
|
-
budget: {
|
|
486
|
-
maxEstimatedTokens: number;
|
|
487
|
-
estimatedTokens: number;
|
|
488
|
-
};
|
|
489
|
-
subjectMatches: SubjectMatch[];
|
|
490
|
-
modelEntries: Array<{
|
|
491
|
-
id: MemoryId;
|
|
492
|
-
key: string;
|
|
493
|
-
value: JsonValue;
|
|
494
|
-
decisionIds: MemoryId[];
|
|
495
|
-
}>;
|
|
496
|
-
decisions: RetrievalDecision[];
|
|
497
|
-
conflicts: RetrievalConflict[];
|
|
498
|
-
uncertainties: RetrievalUncertainty[];
|
|
499
|
-
implementation: Array<{
|
|
500
|
-
decisionId: MemoryId;
|
|
501
|
-
state: 'unimplemented' | 'partial' | 'implemented' | 'unknown';
|
|
502
|
-
attemptIds: MemoryId[];
|
|
503
|
-
}>;
|
|
504
|
-
verification: Array<{
|
|
505
|
-
target: VerificationTarget;
|
|
506
|
-
state: 'unverified' | 'passing' | 'failing' | 'stale' | 'blocked';
|
|
507
|
-
attemptIds: MemoryId[];
|
|
508
|
-
}>;
|
|
509
|
-
evidence: RetrievalEvidenceSummary[];
|
|
510
|
-
completeness: {
|
|
511
|
-
status: 'complete' | 'truncated';
|
|
512
|
-
omittedDecisionCount: number;
|
|
513
|
-
omittedEvidenceCount: number;
|
|
514
|
-
conflictsComplete: boolean;
|
|
515
|
-
};
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
type SchemaIssue = {
|
|
519
|
-
path: string;
|
|
520
|
-
code: string;
|
|
521
|
-
message: string;
|
|
522
|
-
severity: 'error' | 'warning';
|
|
523
|
-
};
|
|
1
|
+
import { M as MemoryId, P as ProposalRecord, D as DecisionRecord, A as AuthorityContext, T as Timestamp, S as SourceReference, a as DecisionKind, b as DecisionSubject, c as ProposalDeferralContext, C as CanonicalRecord, L as LifecycleEvent, R as RelationshipRecord, d as ProjectMemoryBundle, e as ArtifactManifestEntry, f as Tombstone, g as RetrievalPacket, I as IterationOutcome, h as IterationRecord, i as LegacyImportOptions, j as LegacyImportReport, k as ModelEntryRecord, J as JsonValue } from './index-CHp2bgs1.mjs';
|
|
2
|
+
import { M as MemoryReviewReceipt, I as ImprintThreadSummary, a as ImprintGroundingAction, b as ImprintView } from './types-Bur49CLH.mjs';
|
|
524
3
|
|
|
525
4
|
type ReviewCommandBase = {
|
|
526
5
|
proposalId: MemoryId;
|
|
@@ -674,100 +153,6 @@ declare class MemoryJournalStore {
|
|
|
674
153
|
private withWriterLock;
|
|
675
154
|
}
|
|
676
155
|
|
|
677
|
-
type ImprintExplanationKind = 'intention' | 'principle' | 'pattern';
|
|
678
|
-
type ImprintExplanationState = 'emerging' | 'testing' | 'grounded' | 'challenged' | 'retired';
|
|
679
|
-
type ImprintScopeKind = 'project' | 'route' | 'component' | 'selector' | 'file';
|
|
680
|
-
type ImprintScope = {
|
|
681
|
-
kind: ImprintScopeKind;
|
|
682
|
-
values: string[];
|
|
683
|
-
};
|
|
684
|
-
type ImprintConcrete = {
|
|
685
|
-
id: string;
|
|
686
|
-
modelPath: string;
|
|
687
|
-
value: unknown;
|
|
688
|
-
createdAt: string;
|
|
689
|
-
updatedAt: string;
|
|
690
|
-
};
|
|
691
|
-
type ImprintTopologyRelationType = 'expresses' | 'excepts';
|
|
692
|
-
/**
|
|
693
|
-
* Historical relation names remain readable so append-only Imprint journals can
|
|
694
|
-
* be replayed. New writers must use ImprintTopologyRelationType.
|
|
695
|
-
*/
|
|
696
|
-
type LegacyImprintRelationType = 'operationalizes' | 'refines' | 'supports' | 'contradicts' | 'instantiates' | 'supersedes';
|
|
697
|
-
type ImprintRelationType = ImprintTopologyRelationType | LegacyImprintRelationType;
|
|
698
|
-
type ImprintSummaryKind = 'added' | 'strengthened' | 'refined' | 'challenged' | 'exception' | 'consolidated';
|
|
699
|
-
type ImprintThreadSummary = {
|
|
700
|
-
transactionId: string;
|
|
701
|
-
coalescedTransactionIds?: string[];
|
|
702
|
-
additionalObservationCount?: number;
|
|
703
|
-
kind: ImprintSummaryKind;
|
|
704
|
-
title: string;
|
|
705
|
-
detail: string;
|
|
706
|
-
changes: Array<{
|
|
707
|
-
explanationId: string;
|
|
708
|
-
action: 'added' | 'revised' | 'supported' | 'challenged' | 'retired' | 'related';
|
|
709
|
-
statement: string;
|
|
710
|
-
state: ImprintExplanationState;
|
|
711
|
-
}>;
|
|
712
|
-
grounding?: {
|
|
713
|
-
explanationId: string;
|
|
714
|
-
question: string;
|
|
715
|
-
state: 'testing';
|
|
716
|
-
};
|
|
717
|
-
resolvedAction?: ImprintGroundingAction;
|
|
718
|
-
};
|
|
719
|
-
type ImprintGroundingAction = 'yes' | 'this_time' | 'no';
|
|
720
|
-
type ImprintViewEvidence = {
|
|
721
|
-
id: string;
|
|
722
|
-
kind: 'judgment' | 'user_feedback' | 'project_state' | 'other';
|
|
723
|
-
summary: string;
|
|
724
|
-
createdAt: string;
|
|
725
|
-
participantKind: 'human' | 'ai' | 'system' | 'integration' | 'unknown';
|
|
726
|
-
threadId?: string;
|
|
727
|
-
jobId?: string;
|
|
728
|
-
};
|
|
729
|
-
type ImprintViewRelation = {
|
|
730
|
-
id: string;
|
|
731
|
-
type: ImprintRelationType | 'supersedes';
|
|
732
|
-
direction: 'outgoing' | 'incoming';
|
|
733
|
-
explanationId: string;
|
|
734
|
-
statement: string;
|
|
735
|
-
rationale: string;
|
|
736
|
-
};
|
|
737
|
-
type ImprintViewExplanation = {
|
|
738
|
-
id: string;
|
|
739
|
-
kind: ImprintExplanationKind;
|
|
740
|
-
state: ImprintExplanationState;
|
|
741
|
-
statement: string;
|
|
742
|
-
rationale: string;
|
|
743
|
-
scope: ImprintScope;
|
|
744
|
-
createdAt: string;
|
|
745
|
-
updatedAt: string;
|
|
746
|
-
evidenceCount: number;
|
|
747
|
-
recentEvidence: ImprintViewEvidence[];
|
|
748
|
-
concrete: ImprintConcrete[];
|
|
749
|
-
relations: ImprintViewRelation[];
|
|
750
|
-
sourceThreadIds: string[];
|
|
751
|
-
needsGrounding: boolean;
|
|
752
|
-
};
|
|
753
|
-
/** Human-shaped read model derived exclusively from canonical project memory. */
|
|
754
|
-
type ImprintView = {
|
|
755
|
-
head: {
|
|
756
|
-
sequence: number;
|
|
757
|
-
updatedAt: string;
|
|
758
|
-
};
|
|
759
|
-
counts: {
|
|
760
|
-
total: number;
|
|
761
|
-
emerging: number;
|
|
762
|
-
testing: number;
|
|
763
|
-
grounded: number;
|
|
764
|
-
challenged: number;
|
|
765
|
-
retired: number;
|
|
766
|
-
needsGrounding: number;
|
|
767
|
-
};
|
|
768
|
-
explanations: ImprintViewExplanation[];
|
|
769
|
-
};
|
|
770
|
-
|
|
771
156
|
type RetrievalQuery = {
|
|
772
157
|
action?: string;
|
|
773
158
|
text?: string;
|
|
@@ -850,15 +235,6 @@ type ContextualReviewSelection = {
|
|
|
850
235
|
};
|
|
851
236
|
declare function selectContextualReviewPackets(bundle: ProjectMemoryBundle, query: ContextualReviewQuery): ContextualReviewSelection;
|
|
852
237
|
|
|
853
|
-
type MemoryReviewReceipt = {
|
|
854
|
-
status: 'committed' | 'not_ready' | 'rejected';
|
|
855
|
-
action: 'accept' | 'edit_and_accept' | 'reject' | 'defer';
|
|
856
|
-
proposalId: string;
|
|
857
|
-
decisionId?: string;
|
|
858
|
-
message: string;
|
|
859
|
-
headSequence?: number;
|
|
860
|
-
};
|
|
861
|
-
|
|
862
238
|
type ConversationalReviewIntent = {
|
|
863
239
|
proposalId: string;
|
|
864
240
|
action: 'accept' | 'edit_and_accept' | 'reject' | 'defer';
|
|
@@ -906,40 +282,6 @@ type CompletedJobCapture = {
|
|
|
906
282
|
imprintAssessment?: IterationRecord['imprintAssessment'];
|
|
907
283
|
};
|
|
908
284
|
|
|
909
|
-
type LegacyImportIssue = {
|
|
910
|
-
severity: 'info' | 'warning' | 'error';
|
|
911
|
-
code: string;
|
|
912
|
-
source?: string;
|
|
913
|
-
message: string;
|
|
914
|
-
};
|
|
915
|
-
type LegacyImportReport = {
|
|
916
|
-
projectRoot: string;
|
|
917
|
-
source: {
|
|
918
|
-
threads: number;
|
|
919
|
-
messages: number;
|
|
920
|
-
decisionEnvelopes: number;
|
|
921
|
-
modelEntries: number;
|
|
922
|
-
artifactsReferenced: number;
|
|
923
|
-
};
|
|
924
|
-
imported: Record<string, number>;
|
|
925
|
-
unresolvedAcceptance: number;
|
|
926
|
-
deferredModelEntries: number;
|
|
927
|
-
proofCases: Array<{
|
|
928
|
-
legacyId: string;
|
|
929
|
-
threadFound: boolean;
|
|
930
|
-
decisionEnvelopeFound: boolean;
|
|
931
|
-
recordIds: string[];
|
|
932
|
-
}>;
|
|
933
|
-
issues: LegacyImportIssue[];
|
|
934
|
-
schemaIssues: SchemaIssue[];
|
|
935
|
-
};
|
|
936
|
-
type LegacyImportOptions = {
|
|
937
|
-
projectRoot: string;
|
|
938
|
-
projectKey?: string;
|
|
939
|
-
proofCaseIds?: string[];
|
|
940
|
-
writerVersion?: string;
|
|
941
|
-
};
|
|
942
|
-
|
|
943
285
|
type MemoryServiceStatus = {
|
|
944
286
|
initialized: boolean;
|
|
945
287
|
state: 'absent' | 'initializing' | 'ready' | 'degraded';
|