@popmelt.com/core 0.12.1 → 0.12.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/codex-plugin/.codex-plugin/plugin.json +1 -1
- package/dist/bridge-entry.mjs +62 -62
- package/dist/{chunk-CX27LJ36.mjs → chunk-HBODYNYU.mjs} +1 -1
- package/dist/cli.mjs +91 -91
- package/dist/index.d.mts +16 -4
- package/dist/index.mjs +130 -66
- package/dist/memory-store.d.mts +116 -116
- package/dist/memory-store.mjs +2 -2
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-next.d.mts +2 -5
- package/dist/plugin-next.mjs +1 -1
- package/dist/plugin-vite.mjs +1 -1
- package/dist/server-NIKJG3WH.mjs +210 -0
- package/dist/server.mjs +62 -62
- package/package.json +20 -25
- package/dist/server-Z3HBCU4F.mjs +0 -210
package/dist/memory-store.d.mts
CHANGED
|
@@ -674,88 +674,6 @@ declare class MemoryJournalStore {
|
|
|
674
674
|
private withWriterLock;
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
-
type ContextualReviewQuery = {
|
|
678
|
-
action?: string;
|
|
679
|
-
text?: string;
|
|
680
|
-
subjectIds?: MemoryId[];
|
|
681
|
-
subjectHints?: string[];
|
|
682
|
-
maxPackets?: number;
|
|
683
|
-
maxEstimatedTokens?: number;
|
|
684
|
-
generatedAt?: Timestamp;
|
|
685
|
-
candidateProposalIds?: MemoryId[];
|
|
686
|
-
candidateDecisionIds?: MemoryId[];
|
|
687
|
-
resurface?: {
|
|
688
|
-
differentAction?: boolean;
|
|
689
|
-
newEvidence?: boolean;
|
|
690
|
-
newConflict?: boolean;
|
|
691
|
-
ownerRequested?: boolean;
|
|
692
|
-
};
|
|
693
|
-
};
|
|
694
|
-
type ContextualSubjectMatch = {
|
|
695
|
-
subjectId: MemoryId;
|
|
696
|
-
label: string;
|
|
697
|
-
confidence: 'exact' | 'strong' | 'weak';
|
|
698
|
-
matchedBy: 'id' | 'label' | 'alias' | 'locator' | 'query_text';
|
|
699
|
-
};
|
|
700
|
-
type OwnerReviewAction = 'accept' | 'edit_and_accept' | 'split' | 'bundle' | 'reject' | 'defer' | 'request_evidence';
|
|
701
|
-
type ContextualReviewPacket = {
|
|
702
|
-
contractVersion: 1;
|
|
703
|
-
packetId: string;
|
|
704
|
-
projectId: MemoryId;
|
|
705
|
-
generatedAt: Timestamp;
|
|
706
|
-
trigger: {
|
|
707
|
-
action?: string;
|
|
708
|
-
reason: string;
|
|
709
|
-
subjectMatches: ContextualSubjectMatch[];
|
|
710
|
-
};
|
|
711
|
-
proposal: {
|
|
712
|
-
id: MemoryId;
|
|
713
|
-
claim: string;
|
|
714
|
-
state: 'pending' | 'deferred';
|
|
715
|
-
proposedKind?: DecisionKind;
|
|
716
|
-
subjectIds: MemoryId[];
|
|
717
|
-
origin: ProposalRecord['origin']['mode'];
|
|
718
|
-
};
|
|
719
|
-
authority: 'unaccepted';
|
|
720
|
-
presentation: 'advisory' | 'surface_before_action';
|
|
721
|
-
implementation: {
|
|
722
|
-
state: 'none_found' | 'attempted' | 'completed' | 'mixed';
|
|
723
|
-
attemptIds: MemoryId[];
|
|
724
|
-
};
|
|
725
|
-
evidence: {
|
|
726
|
-
sourceCount: number;
|
|
727
|
-
sourceRefs: SourceReference[];
|
|
728
|
-
};
|
|
729
|
-
actions: OwnerReviewAction[];
|
|
730
|
-
expansionRefs: SourceReference[];
|
|
731
|
-
estimatedTokens: number;
|
|
732
|
-
};
|
|
733
|
-
type ContextualReviewSelection = {
|
|
734
|
-
packets: ContextualReviewPacket[];
|
|
735
|
-
subjectMatches: ContextualSubjectMatch[];
|
|
736
|
-
completeness: {
|
|
737
|
-
status: 'complete' | 'truncated';
|
|
738
|
-
consideredProposalCount: number;
|
|
739
|
-
omittedPacketCount: number;
|
|
740
|
-
maxEstimatedTokens: number;
|
|
741
|
-
estimatedTokens: number;
|
|
742
|
-
};
|
|
743
|
-
uncertainty?: 'subject_unresolved' | 'no_relevant_pending_proposal';
|
|
744
|
-
};
|
|
745
|
-
declare function selectContextualReviewPackets(bundle: ProjectMemoryBundle, query: ContextualReviewQuery): ContextualReviewSelection;
|
|
746
|
-
|
|
747
|
-
type RetrievalQuery = {
|
|
748
|
-
action?: string;
|
|
749
|
-
text?: string;
|
|
750
|
-
subjectIds?: MemoryId[];
|
|
751
|
-
subjectHints?: string[];
|
|
752
|
-
maxEstimatedTokens?: number;
|
|
753
|
-
maxDecisions?: number;
|
|
754
|
-
retrievedAt?: string;
|
|
755
|
-
candidateDecisionIds?: MemoryId[];
|
|
756
|
-
};
|
|
757
|
-
declare function retrieveActionPacket(bundle: ProjectMemoryBundle, query: RetrievalQuery): RetrievalPacket;
|
|
758
|
-
|
|
759
677
|
type ImprintExplanationKind = 'intention' | 'principle' | 'pattern';
|
|
760
678
|
type ImprintExplanationState = 'emerging' | 'testing' | 'grounded' | 'challenged' | 'retired';
|
|
761
679
|
type ImprintScopeKind = 'project' | 'route' | 'component' | 'selector' | 'file';
|
|
@@ -850,6 +768,88 @@ type ImprintView = {
|
|
|
850
768
|
explanations: ImprintViewExplanation[];
|
|
851
769
|
};
|
|
852
770
|
|
|
771
|
+
type RetrievalQuery = {
|
|
772
|
+
action?: string;
|
|
773
|
+
text?: string;
|
|
774
|
+
subjectIds?: MemoryId[];
|
|
775
|
+
subjectHints?: string[];
|
|
776
|
+
maxEstimatedTokens?: number;
|
|
777
|
+
maxDecisions?: number;
|
|
778
|
+
retrievedAt?: string;
|
|
779
|
+
candidateDecisionIds?: MemoryId[];
|
|
780
|
+
};
|
|
781
|
+
declare function retrieveActionPacket(bundle: ProjectMemoryBundle, query: RetrievalQuery): RetrievalPacket;
|
|
782
|
+
|
|
783
|
+
type ContextualReviewQuery = {
|
|
784
|
+
action?: string;
|
|
785
|
+
text?: string;
|
|
786
|
+
subjectIds?: MemoryId[];
|
|
787
|
+
subjectHints?: string[];
|
|
788
|
+
maxPackets?: number;
|
|
789
|
+
maxEstimatedTokens?: number;
|
|
790
|
+
generatedAt?: Timestamp;
|
|
791
|
+
candidateProposalIds?: MemoryId[];
|
|
792
|
+
candidateDecisionIds?: MemoryId[];
|
|
793
|
+
resurface?: {
|
|
794
|
+
differentAction?: boolean;
|
|
795
|
+
newEvidence?: boolean;
|
|
796
|
+
newConflict?: boolean;
|
|
797
|
+
ownerRequested?: boolean;
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
type ContextualSubjectMatch = {
|
|
801
|
+
subjectId: MemoryId;
|
|
802
|
+
label: string;
|
|
803
|
+
confidence: 'exact' | 'strong' | 'weak';
|
|
804
|
+
matchedBy: 'id' | 'label' | 'alias' | 'locator' | 'query_text';
|
|
805
|
+
};
|
|
806
|
+
type OwnerReviewAction = 'accept' | 'edit_and_accept' | 'split' | 'bundle' | 'reject' | 'defer' | 'request_evidence';
|
|
807
|
+
type ContextualReviewPacket = {
|
|
808
|
+
contractVersion: 1;
|
|
809
|
+
packetId: string;
|
|
810
|
+
projectId: MemoryId;
|
|
811
|
+
generatedAt: Timestamp;
|
|
812
|
+
trigger: {
|
|
813
|
+
action?: string;
|
|
814
|
+
reason: string;
|
|
815
|
+
subjectMatches: ContextualSubjectMatch[];
|
|
816
|
+
};
|
|
817
|
+
proposal: {
|
|
818
|
+
id: MemoryId;
|
|
819
|
+
claim: string;
|
|
820
|
+
state: 'pending' | 'deferred';
|
|
821
|
+
proposedKind?: DecisionKind;
|
|
822
|
+
subjectIds: MemoryId[];
|
|
823
|
+
origin: ProposalRecord['origin']['mode'];
|
|
824
|
+
};
|
|
825
|
+
authority: 'unaccepted';
|
|
826
|
+
presentation: 'advisory' | 'surface_before_action';
|
|
827
|
+
implementation: {
|
|
828
|
+
state: 'none_found' | 'attempted' | 'completed' | 'mixed';
|
|
829
|
+
attemptIds: MemoryId[];
|
|
830
|
+
};
|
|
831
|
+
evidence: {
|
|
832
|
+
sourceCount: number;
|
|
833
|
+
sourceRefs: SourceReference[];
|
|
834
|
+
};
|
|
835
|
+
actions: OwnerReviewAction[];
|
|
836
|
+
expansionRefs: SourceReference[];
|
|
837
|
+
estimatedTokens: number;
|
|
838
|
+
};
|
|
839
|
+
type ContextualReviewSelection = {
|
|
840
|
+
packets: ContextualReviewPacket[];
|
|
841
|
+
subjectMatches: ContextualSubjectMatch[];
|
|
842
|
+
completeness: {
|
|
843
|
+
status: 'complete' | 'truncated';
|
|
844
|
+
consideredProposalCount: number;
|
|
845
|
+
omittedPacketCount: number;
|
|
846
|
+
maxEstimatedTokens: number;
|
|
847
|
+
estimatedTokens: number;
|
|
848
|
+
};
|
|
849
|
+
uncertainty?: 'subject_unresolved' | 'no_relevant_pending_proposal';
|
|
850
|
+
};
|
|
851
|
+
declare function selectContextualReviewPackets(bundle: ProjectMemoryBundle, query: ContextualReviewQuery): ContextualReviewSelection;
|
|
852
|
+
|
|
853
853
|
type MemoryReviewReceipt = {
|
|
854
854
|
status: 'committed' | 'not_ready' | 'rejected';
|
|
855
855
|
action: 'accept' | 'edit_and_accept' | 'reject' | 'defer';
|
|
@@ -869,40 +869,6 @@ type ConversationalReviewIntent = {
|
|
|
869
869
|
resurfaceWhen?: Array<'different_action' | 'new_evidence' | 'new_conflict' | 'owner_request'>;
|
|
870
870
|
};
|
|
871
871
|
|
|
872
|
-
type LegacyImportIssue = {
|
|
873
|
-
severity: 'info' | 'warning' | 'error';
|
|
874
|
-
code: string;
|
|
875
|
-
source?: string;
|
|
876
|
-
message: string;
|
|
877
|
-
};
|
|
878
|
-
type LegacyImportReport = {
|
|
879
|
-
projectRoot: string;
|
|
880
|
-
source: {
|
|
881
|
-
threads: number;
|
|
882
|
-
messages: number;
|
|
883
|
-
decisionEnvelopes: number;
|
|
884
|
-
modelEntries: number;
|
|
885
|
-
artifactsReferenced: number;
|
|
886
|
-
};
|
|
887
|
-
imported: Record<string, number>;
|
|
888
|
-
unresolvedAcceptance: number;
|
|
889
|
-
deferredModelEntries: number;
|
|
890
|
-
proofCases: Array<{
|
|
891
|
-
legacyId: string;
|
|
892
|
-
threadFound: boolean;
|
|
893
|
-
decisionEnvelopeFound: boolean;
|
|
894
|
-
recordIds: string[];
|
|
895
|
-
}>;
|
|
896
|
-
issues: LegacyImportIssue[];
|
|
897
|
-
schemaIssues: SchemaIssue[];
|
|
898
|
-
};
|
|
899
|
-
type LegacyImportOptions = {
|
|
900
|
-
projectRoot: string;
|
|
901
|
-
projectKey?: string;
|
|
902
|
-
proofCaseIds?: string[];
|
|
903
|
-
writerVersion?: string;
|
|
904
|
-
};
|
|
905
|
-
|
|
906
872
|
type CompletedJobCapture = {
|
|
907
873
|
jobId: string;
|
|
908
874
|
threadId: string;
|
|
@@ -940,6 +906,40 @@ type CompletedJobCapture = {
|
|
|
940
906
|
imprintAssessment?: IterationRecord['imprintAssessment'];
|
|
941
907
|
};
|
|
942
908
|
|
|
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
943
|
type MemoryServiceStatus = {
|
|
944
944
|
initialized: boolean;
|
|
945
945
|
state: 'absent' | 'initializing' | 'ready' | 'degraded';
|