@aiwayds/dsh-topics-memory 0.21.0 → 0.22.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 +5 -0
- package/README.zh.md +5 -0
- package/lib/commands.js +27 -11
- package/lib/config.d.ts +17 -1
- package/lib/config.js +9 -1
- package/lib/ilog.d.ts +129 -0
- package/lib/ilog.js +236 -0
- package/lib/index.d.ts +2 -0
- package/lib/retrieval.d.ts +13 -0
- package/lib/retrieval.js +10 -0
- package/lib/service.d.ts +43 -2
- package/lib/service.js +121 -36
- package/lib/store.d.ts +6 -12
- package/lib/store.js +11 -2
- package/lib/tools.js +6 -2
- package/package.json +2 -2
- package/src/commands.ts +35 -16
- package/src/config.ts +13 -1
- package/src/ilog.ts +289 -0
- package/src/retrieval.ts +22 -0
- package/src/service.ts +130 -43
- package/src/store.ts +14 -8
- package/src/tools.ts +6 -2
package/src/tools.ts
CHANGED
|
@@ -116,8 +116,12 @@ export function buildTopicTools(service: TopicsService) {
|
|
|
116
116
|
},
|
|
117
117
|
],
|
|
118
118
|
},
|
|
119
|
-
async execute(args) {
|
|
120
|
-
|
|
119
|
+
async execute(args, exec) {
|
|
120
|
+
// The agent handle on the run context IS the session (Agent.id is the
|
|
121
|
+
// session id — the same key the injection records use). Absent in
|
|
122
|
+
// bare test/host contexts: attribution then degrades to 'search'.
|
|
123
|
+
const sessionId = exec?.agent !== undefined ? String(exec.agent.id) : undefined
|
|
124
|
+
return await service.openTopic(args.slug, sessionId)
|
|
121
125
|
},
|
|
122
126
|
})
|
|
123
127
|
|