dsh-daoing-memory 0.1.6 → 0.1.8
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/lib/client.js +392 -119
- package/lib/client.js.map +1 -1
- package/lib/index.js +315 -6
- package/lib/typert.host.js +242 -63
- package/lib/typert.remote-client.d.ts +10 -1
- package/lib/typert.remote-client.js +214 -60
- package/lib/types/core.d.ts +39 -1
- package/lib/types/core.js +120 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/index.js +5 -0
- package/lib/types/service.d.ts +27 -2
- package/lib/types/service.js +113 -1
- package/lib/types/store.d.ts +16 -0
- package/lib/types/store.js +33 -0
- package/lib/types/types.d.ts +18 -0
- package/lib/types/types.js +14 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import type {
|
|
|
4
4
|
TypertRemoteContribution,
|
|
5
5
|
} from '@deepseek-ai/dsh-typert-protocol'
|
|
6
6
|
import type { SessionId } from '@deepseek-ai/dsh-session/types'
|
|
7
|
-
import type { ConcernTree, ConsolidateRequest, ConsolidateResult, DiaryAppendRequest, DiaryAppendResult, DiaryEntry, ExperienceListFilter, ExperienceSnapshot, ExtractFactsRequest, ExtractFactsResult, ExtractionRecord, FactEntry, HumanAckDiaryRequest, HumanAddExperienceRequest, HumanAddFactRequest, HumanConfirmFactRequest, HumanDeleteConcernRequest, HumanDeleteExperienceRequest, HumanDeleteFactRequest, HumanEditExperienceRequest, HumanEditFactRequest, HumanPinRequest, HumanReleaseColdRequest, HumanSetConcernStatusRequest, IngestRequest, IngestResult, LedgerBlock, LedgerIntegrityResult, LedgerQueryRequest, MemoryExport, MemoryStats, MemoryWorkbenchInfo, RecallExperiencesRequest, RecallExperiencesResult, RefineExperienceRequest, RefineExperienceResult, ReportUseRequest, ReportUseResult, ReviseExperienceRequest, RollbackExperienceRequest, VerifyShadowRequest, VerifyShadowResult } from 'dsh-daoing-memory/types'
|
|
7
|
+
import type { ConcernTree, ConsolidateRequest, ConsolidateResult, DiaryAppendRequest, DiaryAppendResult, DiaryEntry, ExperienceListFilter, ExperienceSnapshot, ExtractFactsRequest, ExtractFactsResult, ExtractionRecord, FactEntry, HumanAckDiaryRequest, HumanAddExperienceRequest, HumanAddFactRequest, HumanArchiveExperienceRequest, HumanConfirmFactRequest, HumanDeleteConcernRequest, HumanDeleteExperienceRequest, HumanDeleteFactRequest, HumanEditExperienceRequest, HumanEditFactRequest, HumanPinRequest, HumanReleaseColdRequest, HumanSetConcernStatusRequest, IngestRequest, IngestResult, LedgerBlock, LedgerIntegrityResult, LedgerQueryRequest, MemoryExport, MemoryStats, MemoryWorkbenchInfo, RecallExperiencesRequest, RecallExperiencesResult, RefineExperienceRequest, RefineExperienceResult, ReportUseRequest, ReportUseResult, ReviseExperienceRequest, RollbackExperienceRequest, VerifyShadowRequest, VerifyShadowResult } from 'dsh-daoing-memory/types'
|
|
8
8
|
|
|
9
9
|
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
10
10
|
interface TypertRemoteNamespace$6d656d6f7279 {
|
|
@@ -17,10 +17,12 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
17
17
|
extractionLogCount: (agentId: SessionId) => Promise<RemoteResult<number>>
|
|
18
18
|
family: (agentId: SessionId, id: string) => Promise<RemoteResult<ExperienceSnapshot[]>>
|
|
19
19
|
get: (agentId: SessionId, id: string, revision?: number) => Promise<RemoteResult<ExperienceSnapshot | undefined>>
|
|
20
|
+
getDeletionFeedback: (agentId: SessionId) => Promise<RemoteResult<ExperienceSnapshot | null>>
|
|
20
21
|
getDiaryByIds: (agentId: SessionId, ids: string[]) => Promise<RemoteResult<DiaryEntry[]>>
|
|
21
22
|
humanAckDiary: (agentId: SessionId, request: HumanAckDiaryRequest) => Promise<RemoteResult<DiaryEntry>>
|
|
22
23
|
humanAddExperience: (agentId: SessionId, request: HumanAddExperienceRequest) => Promise<RemoteResult<ExperienceSnapshot>>
|
|
23
24
|
humanAddFact: (agentId: SessionId, request: HumanAddFactRequest) => Promise<RemoteResult<FactEntry>>
|
|
25
|
+
humanArchiveExperience: (agentId: SessionId, request: HumanArchiveExperienceRequest) => Promise<RemoteResult<{ archived: true; }>>
|
|
24
26
|
humanConfirmFact: (agentId: SessionId, request: HumanConfirmFactRequest) => Promise<RemoteResult<FactEntry>>
|
|
25
27
|
humanDeleteConcern: (agentId: SessionId, request: HumanDeleteConcernRequest) => Promise<RemoteResult<{ deleted: true; }>>
|
|
26
28
|
humanDeleteExperience: (agentId: SessionId, request: HumanDeleteExperienceRequest) => Promise<RemoteResult<{ deleted: true; }>>
|
|
@@ -46,6 +48,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
46
48
|
report: (agentId: SessionId, request: ReportUseRequest) => Promise<RemoteResult<ReportUseResult>>
|
|
47
49
|
revise: (agentId: SessionId, request: ReviseExperienceRequest) => Promise<RemoteResult<ExperienceSnapshot>>
|
|
48
50
|
rollback: (agentId: SessionId, request: RollbackExperienceRequest) => Promise<RemoteResult<ExperienceSnapshot>>
|
|
51
|
+
runDeletionFeedback: (agentId: SessionId) => Promise<RemoteResult<{ ran: boolean; summary?: string; }>>
|
|
49
52
|
stats: (agentId: SessionId) => Promise<RemoteResult<MemoryStats>>
|
|
50
53
|
verifyLedger: (agentId: SessionId) => Promise<RemoteResult<LedgerIntegrityResult>>
|
|
51
54
|
verifyShadow: (agentId: SessionId, request: VerifyShadowRequest) => Promise<RemoteResult<VerifyShadowResult>>
|
|
@@ -61,10 +64,12 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
61
64
|
'memory/extractionLogCount': (agentId: SessionId) => Promise<RemoteResult<number>>
|
|
62
65
|
'memory/family': (agentId: SessionId, id: string) => Promise<RemoteResult<ExperienceSnapshot[]>>
|
|
63
66
|
'memory/get': (agentId: SessionId, id: string, revision?: number) => Promise<RemoteResult<ExperienceSnapshot | undefined>>
|
|
67
|
+
'memory/getDeletionFeedback': (agentId: SessionId) => Promise<RemoteResult<ExperienceSnapshot | null>>
|
|
64
68
|
'memory/getDiaryByIds': (agentId: SessionId, ids: string[]) => Promise<RemoteResult<DiaryEntry[]>>
|
|
65
69
|
'memory/humanAckDiary': (agentId: SessionId, request: HumanAckDiaryRequest) => Promise<RemoteResult<DiaryEntry>>
|
|
66
70
|
'memory/humanAddExperience': (agentId: SessionId, request: HumanAddExperienceRequest) => Promise<RemoteResult<ExperienceSnapshot>>
|
|
67
71
|
'memory/humanAddFact': (agentId: SessionId, request: HumanAddFactRequest) => Promise<RemoteResult<FactEntry>>
|
|
72
|
+
'memory/humanArchiveExperience': (agentId: SessionId, request: HumanArchiveExperienceRequest) => Promise<RemoteResult<{ archived: true; }>>
|
|
68
73
|
'memory/humanConfirmFact': (agentId: SessionId, request: HumanConfirmFactRequest) => Promise<RemoteResult<FactEntry>>
|
|
69
74
|
'memory/humanDeleteConcern': (agentId: SessionId, request: HumanDeleteConcernRequest) => Promise<RemoteResult<{ deleted: true; }>>
|
|
70
75
|
'memory/humanDeleteExperience': (agentId: SessionId, request: HumanDeleteExperienceRequest) => Promise<RemoteResult<{ deleted: true; }>>
|
|
@@ -90,6 +95,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
90
95
|
'memory/report': (agentId: SessionId, request: ReportUseRequest) => Promise<RemoteResult<ReportUseResult>>
|
|
91
96
|
'memory/revise': (agentId: SessionId, request: ReviseExperienceRequest) => Promise<RemoteResult<ExperienceSnapshot>>
|
|
92
97
|
'memory/rollback': (agentId: SessionId, request: RollbackExperienceRequest) => Promise<RemoteResult<ExperienceSnapshot>>
|
|
98
|
+
'memory/runDeletionFeedback': (agentId: SessionId) => Promise<RemoteResult<{ ran: boolean; summary?: string; }>>
|
|
93
99
|
'memory/stats': (agentId: SessionId) => Promise<RemoteResult<MemoryStats>>
|
|
94
100
|
'memory/verifyLedger': (agentId: SessionId) => Promise<RemoteResult<LedgerIntegrityResult>>
|
|
95
101
|
'memory/verifyShadow': (agentId: SessionId, request: VerifyShadowRequest) => Promise<RemoteResult<VerifyShadowResult>>
|
|
@@ -108,10 +114,12 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
108
114
|
'agent:memory/extractionLogCount': () => Promise<RemoteResult<number>>
|
|
109
115
|
'agent:memory/family': (id: string) => Promise<RemoteResult<ExperienceSnapshot[]>>
|
|
110
116
|
'agent:memory/get': (id: string, revision?: number) => Promise<RemoteResult<ExperienceSnapshot | undefined>>
|
|
117
|
+
'agent:memory/getDeletionFeedback': () => Promise<RemoteResult<ExperienceSnapshot | null>>
|
|
111
118
|
'agent:memory/getDiaryByIds': (ids: string[]) => Promise<RemoteResult<DiaryEntry[]>>
|
|
112
119
|
'agent:memory/humanAckDiary': (request: HumanAckDiaryRequest) => Promise<RemoteResult<DiaryEntry>>
|
|
113
120
|
'agent:memory/humanAddExperience': (request: HumanAddExperienceRequest) => Promise<RemoteResult<ExperienceSnapshot>>
|
|
114
121
|
'agent:memory/humanAddFact': (request: HumanAddFactRequest) => Promise<RemoteResult<FactEntry>>
|
|
122
|
+
'agent:memory/humanArchiveExperience': (request: HumanArchiveExperienceRequest) => Promise<RemoteResult<{ archived: true; }>>
|
|
115
123
|
'agent:memory/humanConfirmFact': (request: HumanConfirmFactRequest) => Promise<RemoteResult<FactEntry>>
|
|
116
124
|
'agent:memory/humanDeleteConcern': (request: HumanDeleteConcernRequest) => Promise<RemoteResult<{ deleted: true; }>>
|
|
117
125
|
'agent:memory/humanDeleteExperience': (request: HumanDeleteExperienceRequest) => Promise<RemoteResult<{ deleted: true; }>>
|
|
@@ -137,6 +145,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
137
145
|
'agent:memory/report': (request: ReportUseRequest) => Promise<RemoteResult<ReportUseResult>>
|
|
138
146
|
'agent:memory/revise': (request: ReviseExperienceRequest) => Promise<RemoteResult<ExperienceSnapshot>>
|
|
139
147
|
'agent:memory/rollback': (request: RollbackExperienceRequest) => Promise<RemoteResult<ExperienceSnapshot>>
|
|
148
|
+
'agent:memory/runDeletionFeedback': () => Promise<RemoteResult<{ ran: boolean; summary?: string; }>>
|
|
140
149
|
'agent:memory/stats': () => Promise<RemoteResult<MemoryStats>>
|
|
141
150
|
'agent:memory/verifyLedger': () => Promise<RemoteResult<LedgerIntegrityResult>>
|
|
142
151
|
'agent:memory/verifyShadow': (request: VerifyShadowRequest) => Promise<RemoteResult<VerifyShadowResult>>
|