@popmelt.com/core 0.39.0 → 0.40.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/README.md +1 -29
- package/claude-plugin/.claude-plugin/plugin.json +1 -1
- package/claude-plugin/skills/popmelt-core/SKILL.md +5 -1
- package/codex-plugin/.codex-plugin/plugin.json +1 -1
- package/codex-plugin/skills/popmelt-core/SKILL.md +5 -1
- package/dist/{ExploreAttachment-OA2PUTNR.mjs → ExploreAttachment-DBMYVYWK.mjs} +1 -1
- package/dist/{PagePreviewLayer-HKADULHD.mjs → PagePreviewLayer-CVUA6CTQ.mjs} +1 -1
- package/dist/ParticipantRuntime-PCBEG3Q2.mjs +1 -0
- package/dist/PhoneHostGate-FZLK4R6M.mjs +1 -0
- package/dist/PopmeltTasteConnectedPane-62LUNNWZ.mjs +1 -0
- package/dist/{PreviewRuntime-3ANAJNFO.mjs → PreviewRuntime-7EQNIOF5.mjs} +1 -1
- package/dist/SamplePlacementOverlay-LR7GZVYP.mjs +1 -0
- package/dist/ShareProjectPane-U47UTAOP.mjs +1 -0
- package/dist/SuppliedContext-F7WKJ5XO.mjs +1 -0
- package/dist/ThreadErrorCard-KPP7YUFC.mjs +1 -0
- package/dist/ThreadPanel-GOYQEF3I.mjs +1 -0
- package/dist/adapter-react-three-fiber.d.mts +4 -37
- package/dist/adapter-react-three-fiber.mjs +1 -1
- package/dist/adapter-three.d.mts +14 -220
- package/dist/adapter-three.mjs +1 -45
- package/dist/bridge-entry.mjs +1 -1
- package/dist/browser-runtime-BBQQQLF7.mjs +1 -0
- package/dist/browser.d.mts +4 -4
- package/dist/browser.mjs +1 -1
- package/dist/canvas-text.d.mts +38 -0
- package/dist/canvas-text.mjs +1 -0
- package/dist/{checkFixture-I2ALOQTM.mjs → checkFixture-VDRYDCUX.mjs} +1 -1
- package/dist/{chunk-UFUH63SR.mjs → chunk-27WBFE5X.mjs} +1 -1
- package/dist/{chunk-VWFST2IX.mjs → chunk-3EYAVOPH.mjs} +1 -1
- package/dist/chunk-4EDMISUV.mjs +1 -0
- package/dist/chunk-52OTX7DP.mjs +1 -0
- package/dist/{chunk-4B6HUJCH.mjs → chunk-53QOGFAT.mjs} +1 -1
- package/dist/chunk-6GS4BQVU.mjs +30 -0
- package/dist/{chunk-MLNC5TMP.mjs → chunk-6U5JWZ4X.mjs} +1 -1
- package/dist/chunk-7DXJSJCI.mjs +1 -0
- package/dist/chunk-A4GARXVQ.mjs +1 -0
- package/dist/{chunk-MSWRCFPJ.mjs → chunk-AKUIREET.mjs} +1 -1
- package/dist/chunk-C4AMAM3W.mjs +1 -0
- package/dist/{chunk-FD6IIFJC.mjs → chunk-CR6TRUUV.mjs} +1 -1
- package/dist/{chunk-G6ITTTFD.mjs → chunk-DJFZGYX6.mjs} +1 -1
- package/dist/chunk-EHM2ZBQU.mjs +1 -0
- package/dist/{chunk-4LN72RDZ.mjs → chunk-FFBBRCPC.mjs} +1 -1
- package/dist/chunk-FR6VIGJ2.mjs +1 -0
- package/dist/{chunk-D3BHAI37.mjs → chunk-FSSHNWMO.mjs} +1 -1
- package/dist/{chunk-QDFQPABM.mjs → chunk-HC2SF7KE.mjs} +1 -1
- package/dist/chunk-HTQEMKFA.mjs +1 -0
- package/dist/{chunk-IWF42SDV.mjs → chunk-MHTX52KW.mjs} +1 -1
- package/dist/{chunk-RJWFSAKE.mjs → chunk-NFO2CREV.mjs} +1 -1
- package/dist/{chunk-CPFVBR6Q.mjs → chunk-OECEYJNK.mjs} +1 -1
- package/dist/{chunk-W5JUAOLA.mjs → chunk-P2LMCRUN.mjs} +1 -1
- package/dist/{chunk-OL7RDZ2R.mjs → chunk-PQITT2QK.mjs} +1 -1
- package/dist/chunk-PRPXMDZ7.mjs +1 -0
- package/dist/chunk-RCY5N5KQ.mjs +1 -0
- package/dist/{chunk-W62YY5IT.mjs → chunk-RDB75FUD.mjs} +1 -1
- package/dist/chunk-RIGP4DAV.mjs +1 -0
- package/dist/chunk-RXC7B7SX.mjs +1 -0
- package/dist/{chunk-V56MNQLF.mjs → chunk-T4WUQPBS.mjs} +1 -1
- package/dist/chunk-TTOCYOEH.mjs +1 -0
- package/dist/chunk-U5NROUVA.mjs +24 -0
- package/dist/{chunk-ML7YV4RV.mjs → chunk-UBPJIVWE.mjs} +1 -1
- package/dist/{chunk-SKM4ZXV5.mjs → chunk-UFU5IA3G.mjs} +1 -1
- package/dist/chunk-UPEEIAVJ.mjs +1 -0
- package/dist/chunk-V5FCWXMN.mjs +1 -0
- package/dist/chunk-VBH2YQLG.mjs +1 -0
- package/dist/chunk-VQ76TWRR.mjs +1 -0
- package/dist/chunk-WYQZ7DAK.mjs +1 -0
- package/dist/chunk-X6I6KQDG.mjs +1 -0
- package/dist/{chunk-P3IOAIYB.mjs → chunk-Y2BJZLYU.mjs} +1 -1
- package/dist/chunk-ZC2I35WD.mjs +1 -0
- package/dist/cli.mjs +1 -1
- package/dist/codex-note-context-2CHDGTG3.mjs +1 -0
- package/dist/codex-project-TIMWOCE5.mjs +1 -0
- package/dist/{codex-store-mount-MNIL3VK6.mjs → codex-store-mount-MAQK6VEG.mjs} +1 -1
- package/dist/dev-server-ESGE6QNP.mjs +1 -0
- package/dist/{focus-inspection-LGIRFL2T.mjs → focus-inspection-BMDJJC5K.mjs} +1 -1
- package/dist/guest-admission.mjs +1 -1
- package/dist/guest-live-canvas.mjs +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +1 -1
- package/dist/media.d.mts +3 -3
- package/dist/memory-legacy.d.mts +43 -1
- package/dist/memory-store.d.mts +5 -162
- package/dist/memory.d.mts +3 -531
- package/dist/{page-interaction-GC2UN47Y.mjs → page-interaction-YXHXEYOT.mjs} +1 -1
- package/dist/{page-planes-9GVbnVZa.d.mts → page-planes-Jz2yR_Wk.d.mts} +6 -1
- package/dist/{participantBootstrap-BTcD7XgB.d.mts → participantBootstrap-DDOxY-Cy.d.mts} +2 -2
- package/dist/{peer-client-XNTMFSOV.mjs → peer-client-LPDWWFT4.mjs} +1 -1
- package/dist/plugin-astro.d.mts +1 -1
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-nuxt.mjs +1 -1
- package/dist/plugin-vite.d.mts +1 -1
- package/dist/plugin-vite.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.mjs +1 -1
- package/dist/shared-page-QN2XRXUE.mjs +1 -0
- package/dist/{subjects-D_yanOQ2.d.mts → subjects-cLtt9-iK.d.mts} +12 -0
- package/dist/{types-CggBG-H6.d.mts → types-XKO-uva0.d.mts} +1 -1
- package/dist/{index-D6bSXWNT.d.mts → validate-0kt2EgVe.d.mts} +7 -40
- package/dist/{video-adapter-CWpR4NSt.d.mts → video-adapter-xL95wukX.d.mts} +1 -1
- package/package.json +29 -35
- package/dist/ParticipantRuntime-IU2STHIT.mjs +0 -1
- package/dist/PhoneHostGate-CS3KFCP5.mjs +0 -1
- package/dist/PopmeltTasteConnectedPane-TRQCY5SM.mjs +0 -1
- package/dist/SamplePlacementOverlay-SNA4WB6Z.mjs +0 -1
- package/dist/ShareProjectPane-QLHMNZNU.mjs +0 -1
- package/dist/SuppliedContext-SFOM3R3K.mjs +0 -1
- package/dist/ThreadErrorCard-NJUVLWMU.mjs +0 -1
- package/dist/ThreadPanel-RVCNMX7B.mjs +0 -1
- package/dist/browser-runtime-BUC4RUD7.mjs +0 -1
- package/dist/chunk-25EXQOPI.mjs +0 -1
- package/dist/chunk-742KV4YS.mjs +0 -1
- package/dist/chunk-ADOCYY5I.mjs +0 -1
- package/dist/chunk-B3RA4XAR.mjs +0 -1
- package/dist/chunk-B4ZKGIGU.mjs +0 -1
- package/dist/chunk-CHK24QU5.mjs +0 -1
- package/dist/chunk-DKBVNKIG.mjs +0 -24
- package/dist/chunk-EOAWCUFT.mjs +0 -1
- package/dist/chunk-FPSR4NAR.mjs +0 -1
- package/dist/chunk-H4GG2RS4.mjs +0 -1
- package/dist/chunk-K2OUXYDM.mjs +0 -1
- package/dist/chunk-KY4YVZ3O.mjs +0 -1
- package/dist/chunk-LSKP5UC6.mjs +0 -1
- package/dist/chunk-RALP6ENI.mjs +0 -30
- package/dist/chunk-RRB5IHBT.mjs +0 -1
- package/dist/chunk-WNOLXY3Y.mjs +0 -1
- package/dist/codex-note-context-4ORRY4CH.mjs +0 -1
- package/dist/codex-project-LMAR3FMS.mjs +0 -1
- package/dist/dev-server-ZLT7TAUF.mjs +0 -1
- package/dist/shared-page-JN7T4DDQ.mjs +0 -1
- package/infra/phone-pairing/README.md +0 -25
- /package/dist/{chunk-CZJILD7T.mjs → chunk-ERPJ6LXX.mjs} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { P as PopmeltOptions, C as CommentMeta } from './participantBootstrap-
|
|
4
|
-
export { a as CommentMetaContext, b as CommentMetaNote, c as CommentMetaValue, G as GetCommentMeta, d as PopmeltExtension, e as PopmeltExtensionRuntime, i as isPopmeltPreview } from './participantBootstrap-
|
|
5
|
-
import { f as ImageSubjectAdapterOptions, v as VideoSubjectAdapterOptions } from './video-adapter-
|
|
6
|
-
import { P as PopmeltSubjectAdapter, O as OpaqueTargetReference, A as Annotation, E as ElementInfo, f as AnnotationAttachment, S as SubjectFeedbackAttachment, g as StyleModification, T as TextModification, D as DomModification, h as SpacingTokenChange } from './subjects-
|
|
7
|
-
export { i as AnnotationRegion, j as AnnotationType, B as BridgeStatus, k as ClaudeResponse, I as ImageObjectContext, l as Point, b as PopmeltSubject, a as PopmeltSubjectBounds, c as PopmeltSubjectCreationSession, d as PopmeltSubjectOutlinePoint, e as PopmeltSubjectTrackingAnchor, m as PopmeltSurfaceSnapshot, R as ReactSourceLocation, n as StyleChange, o as ToolType, V as VideoObjectContext } from './subjects-
|
|
3
|
+
import { P as PopmeltOptions, C as CommentMeta } from './participantBootstrap-DDOxY-Cy.mjs';
|
|
4
|
+
export { a as CommentMetaContext, b as CommentMetaNote, c as CommentMetaValue, G as GetCommentMeta, d as PopmeltExtension, e as PopmeltExtensionRuntime, i as isPopmeltPreview } from './participantBootstrap-DDOxY-Cy.mjs';
|
|
5
|
+
import { f as ImageSubjectAdapterOptions, v as VideoSubjectAdapterOptions } from './video-adapter-xL95wukX.mjs';
|
|
6
|
+
import { P as PopmeltSubjectAdapter, O as OpaqueTargetReference, A as Annotation, E as ElementInfo, f as AnnotationAttachment, S as SubjectFeedbackAttachment, g as StyleModification, T as TextModification, D as DomModification, h as SpacingTokenChange } from './subjects-cLtt9-iK.mjs';
|
|
7
|
+
export { i as AnnotationRegion, j as AnnotationType, B as BridgeStatus, k as ClaudeResponse, I as ImageObjectContext, l as Point, b as PopmeltSubject, a as PopmeltSubjectBounds, c as PopmeltSubjectCreationSession, d as PopmeltSubjectOutlinePoint, e as PopmeltSubjectTrackingAnchor, m as PopmeltSurfaceSnapshot, R as ReactSourceLocation, n as StyleChange, o as ToolType, V as VideoObjectContext } from './subjects-cLtt9-iK.mjs';
|
|
8
8
|
|
|
9
9
|
/** Client-side envelope used for persisted and streaming bridge events. */
|
|
10
10
|
type BridgeEvent = {
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";export{b as PopmeltProvider}from"./chunk-
|
|
1
|
+
"use client";export{b as PopmeltProvider}from"./chunk-HTQEMKFA.mjs";import"./chunk-3EYAVOPH.mjs";import"./chunk-ELKVFX2O.mjs";import"./chunk-AWWUJO3N.mjs";import"./chunk-Q6N77LIS.mjs";import"./chunk-U5NROUVA.mjs";import"./chunk-RXC7B7SX.mjs";import"./chunk-BDUWFDBP.mjs";import"./chunk-DJFZGYX6.mjs";import"./chunk-SOGN7S54.mjs";import"./chunk-AKUIREET.mjs";import"./chunk-PQITT2QK.mjs";import"./chunk-B4RLDY5H.mjs";import"./chunk-PH2MLB3T.mjs";import"./chunk-FFBBRCPC.mjs";import"./chunk-XTOCFTVW.mjs";import"./chunk-Q74FBX2I.mjs";export{a as isPopmeltPreview}from"./chunk-KCDHP4N3.mjs";import"./chunk-ZC2I35WD.mjs";import"./chunk-OVZ4CQGM.mjs";import"./chunk-FHCKFQBY.mjs";import"./chunk-APP5IYTE.mjs";import"./chunk-WIJSWSNF.mjs";import"./chunk-T4WUQPBS.mjs";import"./chunk-52OTX7DP.mjs";import"./chunk-4EDMISUV.mjs";import"./chunk-TMSGNHXH.mjs";import"./chunk-7DXJSJCI.mjs";import"./chunk-G2ZHJXHZ.mjs";import"./chunk-53SKVMWR.mjs";import"./chunk-RDB75FUD.mjs";import"./chunk-3LZQLRZ2.mjs";import"./chunk-NFO2CREV.mjs";import"./chunk-5IZHN3A7.mjs";import"./chunk-V5FCWXMN.mjs";import"./chunk-RK6UROPO.mjs";import"./chunk-AOTDTBQO.mjs";import"./chunk-2F2BVGFH.mjs";import"./chunk-RWZ7SVMO.mjs";import"./chunk-HAZXZ5TU.mjs";import"./chunk-TVIKC33M.mjs";import"./chunk-VBH2YQLG.mjs";import"./chunk-VXRRHXUP.mjs";import"./chunk-WP2SHSCG.mjs";import"./chunk-AAMUU2QA.mjs";import"./chunk-LH7HKUCK.mjs";import"./chunk-VQ76TWRR.mjs";import"./chunk-X6I6KQDG.mjs";import"./chunk-ATLUO4G7.mjs";import"./chunk-UPEEIAVJ.mjs";import"./chunk-C2ZSNUXQ.mjs";import"./chunk-TTOCYOEH.mjs";import"./chunk-FR6VIGJ2.mjs";import"./chunk-EILBHZDX.mjs";import"./chunk-ZVDKW7TO.mjs";import"./chunk-HQVWOBYH.mjs";import"./chunk-Q6C7ZA3H.mjs";import"./chunk-OREALBUO.mjs";import"./chunk-CK3CDA3L.mjs";import"./chunk-7D4BUDKG.mjs";import"./chunk-B4DYUYX4.mjs";import"./chunk-OEJXPUAR.mjs";import"./chunk-HM6EBJVO.mjs";import"./chunk-OA63PYHZ.mjs";import"./chunk-6RMM7JB6.mjs";import"./chunk-SUAHDXJZ.mjs";import"./chunk-N2ZEZCHO.mjs";export{b as usePopmelt}from"./chunk-J3UIBBU2.mjs";import"./chunk-PRPXMDZ7.mjs";import"./chunk-A4GARXVQ.mjs";import"./chunk-YGP6PPOZ.mjs";
|
package/dist/media.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as ImageObjectBox, V as VideoSubjectStore, a as VideoObjectBox } from './video-adapter-
|
|
2
|
-
export { B as BrowserImageSubjectStoreOptions, b as ImageContentHasher, c as ImageObjectObservation, d as ImageRecognitionProvider, e as ImageSubjectAdapter, f as ImageSubjectAdapterOptions, g as ImageSubjectStore, P as PersistedImageAnalysis, h as PersistedImageSubject, i as PersistedImageSuppression, j as PersistedVideoAnalysis, k as PersistedVideoTrack, l as VideoBackwardAnalysisOptions, m as VideoBackwardAnalysisResult, n as VideoMotionAttempt, o as VideoMotionPolicy, p as VideoMotionPresenceDecision, q as VideoMotionState, r as VideoSegmentationObservation, s as VideoSegmentationPoint, t as VideoSegmentationProvider, u as VideoSubjectAdapter, v as VideoSubjectAdapterOptions, w as VideoTrackKeyframe, x as VideoTrackObservation, y as VideoTrackSegment, z as VideoTrackSmoother, A as VideoTrackingAnchor, C as VideoTrackingAttempt, D as VideoTrackingProvider, E as VideoTrackingSeed, F as VideoTrackingSession, G as createBrowserImageSubjectStore, H as createImageSubjectAdapter, J as createMemoryImageSubjectStore, K as createVideoSubjectAdapter } from './video-adapter-
|
|
3
|
-
import { a as PopmeltSubjectBounds } from './subjects-
|
|
1
|
+
import { I as ImageObjectBox, V as VideoSubjectStore, a as VideoObjectBox } from './video-adapter-xL95wukX.mjs';
|
|
2
|
+
export { B as BrowserImageSubjectStoreOptions, b as ImageContentHasher, c as ImageObjectObservation, d as ImageRecognitionProvider, e as ImageSubjectAdapter, f as ImageSubjectAdapterOptions, g as ImageSubjectStore, P as PersistedImageAnalysis, h as PersistedImageSubject, i as PersistedImageSuppression, j as PersistedVideoAnalysis, k as PersistedVideoTrack, l as VideoBackwardAnalysisOptions, m as VideoBackwardAnalysisResult, n as VideoMotionAttempt, o as VideoMotionPolicy, p as VideoMotionPresenceDecision, q as VideoMotionState, r as VideoSegmentationObservation, s as VideoSegmentationPoint, t as VideoSegmentationProvider, u as VideoSubjectAdapter, v as VideoSubjectAdapterOptions, w as VideoTrackKeyframe, x as VideoTrackObservation, y as VideoTrackSegment, z as VideoTrackSmoother, A as VideoTrackingAnchor, C as VideoTrackingAttempt, D as VideoTrackingProvider, E as VideoTrackingSeed, F as VideoTrackingSession, G as createBrowserImageSubjectStore, H as createImageSubjectAdapter, J as createMemoryImageSubjectStore, K as createVideoSubjectAdapter } from './video-adapter-xL95wukX.mjs';
|
|
3
|
+
import { a as PopmeltSubjectBounds } from './subjects-cLtt9-iK.mjs';
|
|
4
4
|
|
|
5
5
|
declare function unprojectImagePoint(image: HTMLImageElement, clientPoint: {
|
|
6
6
|
x: number;
|
package/dist/memory-legacy.d.mts
CHANGED
|
@@ -1 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
import { af as SchemaIssue, P as ProjectMemoryBundle } from './validate-0kt2EgVe.mjs';
|
|
2
|
+
|
|
3
|
+
type LegacyImportIssue = {
|
|
4
|
+
severity: 'info' | 'warning' | 'error';
|
|
5
|
+
code: string;
|
|
6
|
+
source?: string;
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
type LegacyImportReport = {
|
|
10
|
+
projectRoot: string;
|
|
11
|
+
source: {
|
|
12
|
+
threads: number;
|
|
13
|
+
messages: number;
|
|
14
|
+
decisionEnvelopes: number;
|
|
15
|
+
modelEntries: number;
|
|
16
|
+
artifactsReferenced: number;
|
|
17
|
+
};
|
|
18
|
+
imported: Record<string, number>;
|
|
19
|
+
unresolvedAcceptance: number;
|
|
20
|
+
deferredModelEntries: number;
|
|
21
|
+
proofCases: Array<{
|
|
22
|
+
legacyId: string;
|
|
23
|
+
threadFound: boolean;
|
|
24
|
+
decisionEnvelopeFound: boolean;
|
|
25
|
+
recordIds: string[];
|
|
26
|
+
}>;
|
|
27
|
+
issues: LegacyImportIssue[];
|
|
28
|
+
schemaIssues: SchemaIssue[];
|
|
29
|
+
};
|
|
30
|
+
type LegacyImportResult = {
|
|
31
|
+
bundle: ProjectMemoryBundle;
|
|
32
|
+
report: LegacyImportReport;
|
|
33
|
+
};
|
|
34
|
+
type LegacyImportOptions = {
|
|
35
|
+
projectRoot: string;
|
|
36
|
+
projectKey?: string;
|
|
37
|
+
proofCaseIds?: string[];
|
|
38
|
+
writerVersion?: string;
|
|
39
|
+
};
|
|
40
|
+
declare function legacyUuidV7(namespace: string, kind: string, legacyId: string, occurredAt: number): string;
|
|
41
|
+
declare function importLegacyProject(options: LegacyImportOptions): Promise<LegacyImportResult>;
|
|
42
|
+
|
|
43
|
+
export { type LegacyImportIssue, type LegacyImportOptions, type LegacyImportReport, type LegacyImportResult, importLegacyProject, legacyUuidV7 };
|
package/dist/memory-store.d.mts
CHANGED
|
@@ -1,169 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ReviewProjectionUpdate, OwnerReviewActionPlan, selectContextualReviewPackets, ContextualReviewQuery, retrieveActionPacket, OwnerReviewCommand, OwnerReviewPlanResult } from './memory.mjs';
|
|
2
|
+
import { P as ProjectMemoryBundle, C as CanonicalRecord, L as LifecycleEvent, R as RelationshipRecord, A as ArtifactManifestEntry, T as Tombstone, D as DecisionKind, I as IterationOutcome, a as ProposalRecord, b as IterationRecord, c as DecisionRecord, M as ModelEntryRecord, J as JsonValue } from './validate-0kt2EgVe.mjs';
|
|
3
|
+
import { I as ImprintThreadSummary, a as ImprintGroundingAction, b as ImprintView } from './types-XKO-uva0.mjs';
|
|
4
|
+
import { M as MemoryReviewReceipt } from './page-planes-Jz2yR_Wk.mjs';
|
|
4
5
|
import './participantBootstrap-BuTrTQbo.mjs';
|
|
6
|
+
import { LegacyImportOptions, LegacyImportReport } from './memory-legacy.mjs';
|
|
5
7
|
import 'node:http';
|
|
6
8
|
import 'vite';
|
|
7
9
|
|
|
8
|
-
type ContextualReviewQuery = {
|
|
9
|
-
action?: string;
|
|
10
|
-
text?: string;
|
|
11
|
-
subjectIds?: MemoryId[];
|
|
12
|
-
subjectHints?: string[];
|
|
13
|
-
maxPackets?: number;
|
|
14
|
-
maxEstimatedTokens?: number;
|
|
15
|
-
generatedAt?: Timestamp;
|
|
16
|
-
candidateProposalIds?: MemoryId[];
|
|
17
|
-
candidateDecisionIds?: MemoryId[];
|
|
18
|
-
resurface?: {
|
|
19
|
-
differentAction?: boolean;
|
|
20
|
-
newEvidence?: boolean;
|
|
21
|
-
newConflict?: boolean;
|
|
22
|
-
ownerRequested?: boolean;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
type ContextualSubjectMatch = {
|
|
26
|
-
subjectId: MemoryId;
|
|
27
|
-
label: string;
|
|
28
|
-
confidence: 'exact' | 'strong' | 'weak';
|
|
29
|
-
matchedBy: 'id' | 'label' | 'alias' | 'locator' | 'query_text';
|
|
30
|
-
};
|
|
31
|
-
type OwnerReviewAction = 'accept' | 'edit_and_accept' | 'split' | 'bundle' | 'reject' | 'defer' | 'request_evidence';
|
|
32
|
-
type ContextualReviewPacket = {
|
|
33
|
-
contractVersion: 1;
|
|
34
|
-
packetId: string;
|
|
35
|
-
projectId: MemoryId;
|
|
36
|
-
generatedAt: Timestamp;
|
|
37
|
-
trigger: {
|
|
38
|
-
action?: string;
|
|
39
|
-
reason: string;
|
|
40
|
-
subjectMatches: ContextualSubjectMatch[];
|
|
41
|
-
};
|
|
42
|
-
proposal: {
|
|
43
|
-
id: MemoryId;
|
|
44
|
-
claim: string;
|
|
45
|
-
state: 'pending' | 'deferred';
|
|
46
|
-
proposedKind?: DecisionKind;
|
|
47
|
-
subjectIds: MemoryId[];
|
|
48
|
-
origin: ProposalRecord['origin']['mode'];
|
|
49
|
-
};
|
|
50
|
-
authority: 'unaccepted';
|
|
51
|
-
presentation: 'advisory' | 'surface_before_action';
|
|
52
|
-
implementation: {
|
|
53
|
-
state: 'none_found' | 'attempted' | 'completed' | 'mixed';
|
|
54
|
-
attemptIds: MemoryId[];
|
|
55
|
-
};
|
|
56
|
-
evidence: {
|
|
57
|
-
sourceCount: number;
|
|
58
|
-
sourceRefs: SourceReference[];
|
|
59
|
-
};
|
|
60
|
-
actions: OwnerReviewAction[];
|
|
61
|
-
expansionRefs: SourceReference[];
|
|
62
|
-
estimatedTokens: number;
|
|
63
|
-
};
|
|
64
|
-
type ContextualReviewSelection = {
|
|
65
|
-
packets: ContextualReviewPacket[];
|
|
66
|
-
subjectMatches: ContextualSubjectMatch[];
|
|
67
|
-
completeness: {
|
|
68
|
-
status: 'complete' | 'truncated';
|
|
69
|
-
consideredProposalCount: number;
|
|
70
|
-
omittedPacketCount: number;
|
|
71
|
-
maxEstimatedTokens: number;
|
|
72
|
-
estimatedTokens: number;
|
|
73
|
-
};
|
|
74
|
-
uncertainty?: 'subject_unresolved' | 'no_relevant_pending_proposal';
|
|
75
|
-
};
|
|
76
|
-
declare function selectContextualReviewPackets(bundle: ProjectMemoryBundle, query: ContextualReviewQuery): ContextualReviewSelection;
|
|
77
|
-
|
|
78
|
-
type RetrievalQuery = {
|
|
79
|
-
action?: string;
|
|
80
|
-
text?: string;
|
|
81
|
-
subjectIds?: MemoryId[];
|
|
82
|
-
subjectHints?: string[];
|
|
83
|
-
maxEstimatedTokens?: number;
|
|
84
|
-
maxDecisions?: number;
|
|
85
|
-
retrievedAt?: string;
|
|
86
|
-
candidateDecisionIds?: MemoryId[];
|
|
87
|
-
};
|
|
88
|
-
declare function retrieveActionPacket(bundle: ProjectMemoryBundle, query: RetrievalQuery): RetrievalPacket;
|
|
89
|
-
|
|
90
|
-
type ReviewCommandBase = {
|
|
91
|
-
proposalId: MemoryId;
|
|
92
|
-
participantId: MemoryId;
|
|
93
|
-
authority: AuthorityContext;
|
|
94
|
-
occurredAt: Timestamp;
|
|
95
|
-
sourceRefs?: SourceReference[];
|
|
96
|
-
};
|
|
97
|
-
type AcceptReviewCommand = ReviewCommandBase & {
|
|
98
|
-
action: 'accept';
|
|
99
|
-
eventId: MemoryId;
|
|
100
|
-
decisionId: MemoryId;
|
|
101
|
-
kind: DecisionKind;
|
|
102
|
-
rationale?: string;
|
|
103
|
-
reason: string;
|
|
104
|
-
};
|
|
105
|
-
type EditAndAcceptReviewCommand = ReviewCommandBase & {
|
|
106
|
-
action: 'edit_and_accept';
|
|
107
|
-
withdrawalEventId: MemoryId;
|
|
108
|
-
replacementProposalId: MemoryId;
|
|
109
|
-
acceptanceEventId: MemoryId;
|
|
110
|
-
decisionId: MemoryId;
|
|
111
|
-
relationshipId: MemoryId;
|
|
112
|
-
claim: string;
|
|
113
|
-
kind: DecisionKind;
|
|
114
|
-
subjects: DecisionSubject[];
|
|
115
|
-
subjectSemantics?: string;
|
|
116
|
-
rationale?: string;
|
|
117
|
-
reason: string;
|
|
118
|
-
};
|
|
119
|
-
type RejectReviewCommand = ReviewCommandBase & {
|
|
120
|
-
action: 'reject';
|
|
121
|
-
eventId: MemoryId;
|
|
122
|
-
reason: string;
|
|
123
|
-
};
|
|
124
|
-
type DeferReviewCommand = ReviewCommandBase & {
|
|
125
|
-
action: 'defer';
|
|
126
|
-
eventId: MemoryId;
|
|
127
|
-
reason?: string;
|
|
128
|
-
context: Omit<ProposalDeferralContext, 'kind'>;
|
|
129
|
-
};
|
|
130
|
-
type OwnerReviewCommand = AcceptReviewCommand | EditAndAcceptReviewCommand | RejectReviewCommand | DeferReviewCommand;
|
|
131
|
-
type ReviewProjectionUpdate = {
|
|
132
|
-
entityType: 'proposal';
|
|
133
|
-
entityId: MemoryId;
|
|
134
|
-
fromState: ProposalRecord['state'];
|
|
135
|
-
state: ProposalRecord['state'];
|
|
136
|
-
} | {
|
|
137
|
-
entityType: 'decision';
|
|
138
|
-
entityId: MemoryId;
|
|
139
|
-
fromState: DecisionRecord['state'];
|
|
140
|
-
state: DecisionRecord['state'];
|
|
141
|
-
};
|
|
142
|
-
type OwnerReviewActionPlan = {
|
|
143
|
-
action: OwnerReviewCommand['action'];
|
|
144
|
-
proposalId: MemoryId;
|
|
145
|
-
append: {
|
|
146
|
-
records: CanonicalRecord[];
|
|
147
|
-
events: LifecycleEvent[];
|
|
148
|
-
relationships: RelationshipRecord[];
|
|
149
|
-
};
|
|
150
|
-
projectionUpdates: ReviewProjectionUpdate[];
|
|
151
|
-
resultRefs: Array<{
|
|
152
|
-
entityType: 'proposal' | 'decision';
|
|
153
|
-
entityId: MemoryId;
|
|
154
|
-
}>;
|
|
155
|
-
};
|
|
156
|
-
type OwnerReviewPlanResult = {
|
|
157
|
-
ok: true;
|
|
158
|
-
plan: OwnerReviewActionPlan;
|
|
159
|
-
} | {
|
|
160
|
-
ok: false;
|
|
161
|
-
errors: Array<{
|
|
162
|
-
code: string;
|
|
163
|
-
message: string;
|
|
164
|
-
}>;
|
|
165
|
-
};
|
|
166
|
-
|
|
167
10
|
type MemoryJournalMutation = {
|
|
168
11
|
records: CanonicalRecord[];
|
|
169
12
|
/** Targeted replacement for revisable advisory records; other truth stays event-driven. */
|