dsh-plugin-xujie-memory 0.5.0 → 0.7.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/ACCEPTANCE.md +37 -0
- package/BUILD-PROVENANCE.json +53 -0
- package/CHANGELOG.md +40 -1
- package/LICENSE +21 -21
- package/README.md +67 -17
- package/README_EN.md +54 -8
- package/cordis.patch.yml +49 -49
- package/lib/client.js +17219 -0
- package/lib/controller.js +307 -0
- package/lib/index.js +200 -14
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +15104 -0
- package/lib/typert.remote-client.d.ts +40 -0
- package/lib/typert.remote-client.d.ts.map +1 -0
- package/lib/typert.remote-client.js +15093 -0
- package/lib/types.d.ts +13 -0
- package/lib/types.js +1 -0
- package/package.json +49 -5
- package/python/specs/characters/aloof.json +14 -14
- package/python/specs/characters/gentle.json +14 -14
- package/python/specs/characters/tsundere.json +14 -14
- package/python/specs/debt.v1.json +31 -31
- package/python/specs/nickname.v1.json +16 -16
- package/python/specs/preference.v1.json +16 -16
- package/python/xujie_memory/__init__.py +123 -123
- package/python/xujie_memory/admission.py +211 -211
- package/python/xujie_memory/audit.py +377 -377
- package/python/xujie_memory/benchmark.py +281 -281
- package/python/xujie_memory/character.py +199 -199
- package/python/xujie_memory/console.py +41 -41
- package/python/xujie_memory/consolidate.py +356 -356
- package/python/xujie_memory/due.py +121 -121
- package/python/xujie_memory/emotion.py +573 -573
- package/python/xujie_memory/engine.py +1333 -1312
- package/python/xujie_memory/errors.py +98 -98
- package/python/xujie_memory/importance.py +104 -104
- package/python/xujie_memory/judge.py +350 -350
- package/python/xujie_memory/management.py +203 -0
- package/python/xujie_memory/memory.py +71 -10
- package/python/xujie_memory/orchestrator.py +690 -666
- package/python/xujie_memory/phrasing.py +292 -292
- package/python/xujie_memory/privacy.py +105 -0
- package/python/xujie_memory/schema.sql +492 -480
- package/python/xujie_memory/server.py +76 -0
- package/python/xujie_memory/specs.py +170 -170
- package/python/xujie_memory/summary.py +238 -238
- package/scripts/build.mjs +19 -0
- package/scripts/prepack.mjs +9 -0
- package/scripts/test-all.mjs +9 -0
- package/scripts/test-node.mjs +10 -0
- package/src/client/MemoryPanel.tsx +536 -0
- package/src/client/NeuralField.tsx +88 -0
- package/src/client/css.d.ts +4 -0
- package/src/client/icons.tsx +28 -0
- package/src/client/index.tsx +59 -0
- package/src/client/memory-adapter.ts +67 -0
- package/src/client/model.ts +79 -0
- package/src/client/neural/engine.ts +999 -0
- package/src/client/neural/morphology.ts +219 -0
- package/src/client/panel.css +337 -0
- package/src/client/types.ts +6 -0
- package/src/controller.ts +88 -0
- package/src/generated/typert.host.js +449 -0
- package/src/generated/typert.remote-client.js +438 -0
- package/src/index.ts +2 -0
- package/src/types.ts +13 -0
- package/test/cordis-fixture.mjs +5 -0
- package/test/management_regression.py +187 -0
- package/test/node-regression.entry.mjs +52 -0
- package/vendor/DSH-LICENSE.txt +21 -0
- package/vendor/THIRD-PARTY.md +6 -0
- package/vendor/dsh-protocol/index.ts +484 -0
- package/vendor/dsh-protocol/json-value.ts +53 -0
- package/vendor/dsh-protocol/owned-value.ts +39 -0
- package/vendor/dsh-protocol/principal.ts +17 -0
- package/vendor/dsh-protocol/remote-access.ts +38 -0
- package/vendor/dsh-protocol/remote-error.ts +49 -0
- package/vendor/dsh-protocol/remote-info.ts +161 -0
- package/vendor/dsh-protocol/types.ts +939 -0
- package/vendor/licenses/jridgewell-gen-mapping-MIT.txt +19 -0
- package/vendor/licenses/jridgewell-resolve-uri-MIT.txt +19 -0
- package/vendor/licenses/jridgewell-sourcemap-codec-MIT.txt +19 -0
- package/vendor/licenses/jridgewell-trace-mapping-MIT.txt +19 -0
- package/vendor/licenses/zod-MIT.txt +21 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
|
|
2
|
+
import type {
|
|
3
|
+
RemoteResult,
|
|
4
|
+
TypertRemoteInfo,
|
|
5
|
+
TypertRemoteMethod,
|
|
6
|
+
} from '@deepseek-ai/dsh-typert-protocol'
|
|
7
|
+
import type { Catalog, EditResult, ForgetResult, SearchHit, Snapshot, Trace } from 'dsh-plugin-xujie-memory/types'
|
|
8
|
+
|
|
9
|
+
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
10
|
+
interface TypertRemoteNamespace$78756a69654d656d6f7279 {
|
|
11
|
+
catalog: () => Promise<RemoteResult<Catalog>>
|
|
12
|
+
detail: (scopeId: string, traceId: string) => Promise<RemoteResult<Trace>>
|
|
13
|
+
edit: (scopeId: string, traceId: string, content: string, expectedHash: string) => Promise<RemoteResult<EditResult>>
|
|
14
|
+
forget: (scopeId: string, traceId: string, expectedHash: string) => Promise<RemoteResult<ForgetResult>>
|
|
15
|
+
search: (scopeId: string, query: string) => Promise<RemoteResult<SearchHit[]>>
|
|
16
|
+
snapshot: (scopeId: string) => Promise<RemoteResult<Snapshot>>
|
|
17
|
+
}
|
|
18
|
+
interface TypertRemoteMap {
|
|
19
|
+
'xujieMemory/catalog': () => Promise<RemoteResult<Catalog>>
|
|
20
|
+
'xujieMemory/detail': (scopeId: string, traceId: string) => Promise<RemoteResult<Trace>>
|
|
21
|
+
'xujieMemory/edit': (scopeId: string, traceId: string, content: string, expectedHash: string) => Promise<RemoteResult<EditResult>>
|
|
22
|
+
'xujieMemory/forget': (scopeId: string, traceId: string, expectedHash: string) => Promise<RemoteResult<ForgetResult>>
|
|
23
|
+
'xujieMemory/search': (scopeId: string, query: string) => Promise<RemoteResult<SearchHit[]>>
|
|
24
|
+
'xujieMemory/snapshot': (scopeId: string) => Promise<RemoteResult<Snapshot>>
|
|
25
|
+
}
|
|
26
|
+
interface TypertRemoteNamespaceMap {
|
|
27
|
+
'xujieMemory': TypertRemoteNamespace$78756a69654d656d6f7279
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export declare const TYPERT_REMOTE: TypertRemoteInfo<{
|
|
32
|
+
readonly 'xujieMemory/catalog': TypertRemoteMethod<{ }, Catalog>
|
|
33
|
+
readonly 'xujieMemory/detail': TypertRemoteMethod<{ readonly 'scopeId': string; readonly 'traceId': string }, Trace>
|
|
34
|
+
readonly 'xujieMemory/edit': TypertRemoteMethod<{ readonly 'scopeId': string; readonly 'traceId': string; readonly 'content': string; readonly 'expectedHash': string }, EditResult>
|
|
35
|
+
readonly 'xujieMemory/forget': TypertRemoteMethod<{ readonly 'scopeId': string; readonly 'traceId': string; readonly 'expectedHash': string }, ForgetResult>
|
|
36
|
+
readonly 'xujieMemory/search': TypertRemoteMethod<{ readonly 'scopeId': string; readonly 'query': string }, SearchHit[]>
|
|
37
|
+
readonly 'xujieMemory/snapshot': TypertRemoteMethod<{ readonly 'scopeId': string }, Snapshot>
|
|
38
|
+
}>
|
|
39
|
+
export default TYPERT_REMOTE
|
|
40
|
+
//# sourceMappingURL=typert.remote-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typert.remote-client.d.ts","names":["catalog","detail","edit","forget","search","snapshot"],"sources":["../src/controller.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;IAuCQA,O;IAsBAC,M;IAeAC,I;IAOAC,M;IAjBAC,M;IArBAC,Q;;;IANAL,qB;IAsBAC,oB;IAeAC,kB;IAOAC,oB;IAjBAC,oB;IArBAC,sB","ignoreList":[]}
|