kiokuko-dsh 0.2.44 → 0.2.46
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/PERMISSIONS.md +3 -3
- package/README.ja.md +10 -4
- package/README.ko.md +10 -3
- package/README.md +10 -4
- package/README.zh-CN.md +10 -3
- package/dist/build-info.json +7 -0
- package/dist/client.cjs +268 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/context/replay-model-memory.d.ts +5 -1
- package/dist/context/replay-model-memory.d.ts.map +1 -1
- package/dist/context/replay-model-memory.js +6 -3
- package/dist/context/replay-model-memory.js.map +1 -1
- package/dist/dsh/agenticreplay-hooks.js +1 -1
- package/dist/dsh/agenticreplay-hooks.js.map +1 -1
- package/dist/dsh/agenticreplay-recorder.d.ts +5 -2
- package/dist/dsh/agenticreplay-recorder.d.ts.map +1 -1
- package/dist/dsh/agenticreplay-recorder.js +19 -9
- package/dist/dsh/agenticreplay-recorder.js.map +1 -1
- package/dist/dsh/answer-context.d.ts.map +1 -1
- package/dist/dsh/answer-context.js +4 -1
- package/dist/dsh/answer-context.js.map +1 -1
- package/dist/dsh/core/host.d.ts.map +1 -1
- package/dist/dsh/core/host.js +4 -1
- package/dist/dsh/core/host.js.map +1 -1
- package/dist/dsh/core/tasks.js +1 -1
- package/dist/dsh/core/tasks.js.map +1 -1
- package/dist/dsh/decisions/akinator-answers.d.ts +3 -3
- package/dist/dsh/decisions/akinator-answers.d.ts.map +1 -1
- package/dist/dsh/decisions/akinator-answers.js +5 -5
- package/dist/dsh/decisions/akinator-answers.js.map +1 -1
- package/dist/dsh/decisions/diagnostics.js +2 -2
- package/dist/dsh/decisions/diagnostics.js.map +1 -1
- package/dist/dsh/decisions/request-intent.d.ts +3 -0
- package/dist/dsh/decisions/request-intent.d.ts.map +1 -1
- package/dist/dsh/decisions/request-intent.js +11 -2
- package/dist/dsh/decisions/request-intent.js.map +1 -1
- package/dist/dsh/existing-task-intake.js +1 -1
- package/dist/dsh/existing-task-intake.js.map +1 -1
- package/dist/dsh/failure-diagnostic.d.ts +3 -0
- package/dist/dsh/failure-diagnostic.d.ts.map +1 -0
- package/dist/dsh/failure-diagnostic.js +30 -0
- package/dist/dsh/failure-diagnostic.js.map +1 -0
- package/dist/dsh/harness/factory.d.ts.map +1 -1
- package/dist/dsh/harness/factory.js +4 -2
- package/dist/dsh/harness/factory.js.map +1 -1
- package/dist/dsh/host-adapter/admission.d.ts.map +1 -1
- package/dist/dsh/host-adapter/admission.js +17 -1
- package/dist/dsh/host-adapter/admission.js.map +1 -1
- package/dist/dsh/host-adapter/routing.d.ts +3 -2
- package/dist/dsh/host-adapter/routing.d.ts.map +1 -1
- package/dist/dsh/host-adapter/routing.js +20 -5
- package/dist/dsh/host-adapter/routing.js.map +1 -1
- package/dist/dsh/host-adapter/session-observation.d.ts.map +1 -1
- package/dist/dsh/host-adapter/session-observation.js +4 -1
- package/dist/dsh/host-adapter/session-observation.js.map +1 -1
- package/dist/dsh/host-adapter/turn-state.d.ts +1 -0
- package/dist/dsh/host-adapter/turn-state.d.ts.map +1 -1
- package/dist/dsh/host-adapter/turn-state.js.map +1 -1
- package/dist/dsh/host-adapter.d.ts.map +1 -1
- package/dist/dsh/host-adapter.js +5 -27
- package/dist/dsh/host-adapter.js.map +1 -1
- package/dist/dsh/index.d.ts.map +1 -1
- package/dist/dsh/index.js +3 -1
- package/dist/dsh/index.js.map +1 -1
- package/dist/dsh/intake-gate.js +1 -1
- package/dist/dsh/intake-gate.js.map +1 -1
- package/dist/dsh/lifecycle-memory.d.ts.map +1 -1
- package/dist/dsh/lifecycle-memory.js +7 -2
- package/dist/dsh/lifecycle-memory.js.map +1 -1
- package/dist/dsh/lisp/proposal-batch.d.ts +1 -1
- package/dist/dsh/lisp/proposal-batch.d.ts.map +1 -1
- package/dist/dsh/lisp/proposal-batch.js +5 -46
- package/dist/dsh/lisp/proposal-batch.js.map +1 -1
- package/dist/dsh/lisp/surface.d.ts.map +1 -1
- package/dist/dsh/lisp/surface.js +4 -5
- package/dist/dsh/lisp/surface.js.map +1 -1
- package/dist/dsh/lisp/worker.d.ts.map +1 -1
- package/dist/dsh/lisp/worker.js +29 -31
- package/dist/dsh/lisp/worker.js.map +1 -1
- package/dist/dsh/memory-sidebar.d.ts +63 -0
- package/dist/dsh/memory-sidebar.d.ts.map +1 -0
- package/dist/dsh/memory-sidebar.js +221 -0
- package/dist/dsh/memory-sidebar.js.map +1 -0
- package/dist/dsh/models/profiles.d.ts.map +1 -1
- package/dist/dsh/models/profiles.js +5 -0
- package/dist/dsh/models/profiles.js.map +1 -1
- package/dist/dsh/models/service.d.ts.map +1 -1
- package/dist/dsh/models/service.js +33 -5
- package/dist/dsh/models/service.js.map +1 -1
- package/dist/dsh/models/vendor/infron-listing.d.ts +2 -2
- package/dist/dsh/models/vendor/infron-listing.d.ts.map +1 -1
- package/dist/dsh/models/vendor/infron-listing.js +10 -4
- package/dist/dsh/models/vendor/infron-listing.js.map +1 -1
- package/dist/dsh/on-demand-intake.d.ts +2 -1
- package/dist/dsh/on-demand-intake.d.ts.map +1 -1
- package/dist/dsh/on-demand-intake.js +12 -9
- package/dist/dsh/on-demand-intake.js.map +1 -1
- package/dist/dsh/owned-execution.d.ts +0 -1
- package/dist/dsh/owned-execution.d.ts.map +1 -1
- package/dist/dsh/owned-execution.js +28 -49
- package/dist/dsh/owned-execution.js.map +1 -1
- package/dist/dsh/plugin-evidence.d.ts +9 -0
- package/dist/dsh/plugin-evidence.d.ts.map +1 -0
- package/dist/dsh/plugin-evidence.js +33 -0
- package/dist/dsh/plugin-evidence.js.map +1 -0
- package/dist/dsh/session-history-compatibility.d.ts.map +1 -1
- package/dist/dsh/session-history-compatibility.js +7 -4
- package/dist/dsh/session-history-compatibility.js.map +1 -1
- package/dist/dsh/setup.d.ts +1 -1
- package/dist/dsh/setup.d.ts.map +1 -1
- package/dist/dsh/setup.js +1 -1
- package/dist/dsh/skill-prompts.json +1 -1
- package/dist/dsh/task-completion-guidance.js +1 -1
- package/dist/dsh/task-completion-guidance.js.map +1 -1
- package/dist/dsh/task-completion-host.d.ts.map +1 -1
- package/dist/dsh/task-completion-host.js +49 -11
- package/dist/dsh/task-completion-host.js.map +1 -1
- package/dist/dsh/task-completion.d.ts +22 -0
- package/dist/dsh/task-completion.d.ts.map +1 -1
- package/dist/dsh/task-completion.js +54 -4
- package/dist/dsh/task-completion.js.map +1 -1
- package/dist/dsh/task-startup.js +1 -1
- package/dist/dsh/task-startup.js.map +1 -1
- package/dist/dsh/task-state-host.js +1 -1
- package/dist/dsh/task-state-host.js.map +1 -1
- package/dist/dsh/tool-exposure-diagnostics.d.ts +29 -0
- package/dist/dsh/tool-exposure-diagnostics.d.ts.map +1 -0
- package/dist/dsh/tool-exposure-diagnostics.js +33 -0
- package/dist/dsh/tool-exposure-diagnostics.js.map +1 -0
- package/dist/locale/en.json +1 -1
- package/dist/locale/ja.json +1 -1
- package/dist/locale/ko.json +1 -1
- package/dist/locale/zh-CN.json +1 -1
- package/docs/agenticreplay-log-investigation-2026-11-04.ja.md +234 -0
- package/docs/lisp.md +14 -17
- package/docs/memory-evidence.md +4 -0
- package/docs/owned-execution.md +4 -3
- package/docs/patches/dsh-latest-local-update.patch +42 -0
- package/lisp/supervisor.mjs +8 -19
- package/package.json +3 -3
- package/skills/kiokuko-lisp/SKILL.md +6 -6
- package/skills/kiokuko-soul/SKILL.md +4 -4
- package/lisp/repository-owner.d.mts +0 -1
- package/lisp/repository-owner.mjs +0 -58
package/PERMISSIONS.md
CHANGED
|
@@ -212,11 +212,11 @@ uploaded automatically. Deletion and disabling instructions are in
|
|
|
212
212
|
|
|
213
213
|
With lisp.enabled: true, Lisp runs in supervised OS-isolated workers without workspace access or inherited credentials. Project file changes and child processes go through host tools and their operation permissions. It coexists with ordinary tools; worker failure does not restrict normal coding. Kiokuko-owned kioku_read/write/edit/remove/exec/result use Node filesystem/process APIs, independently of stock DSH filesystem/bash sandbox and approval configuration. DSH tool identity, Plan/goal state, cancellation and admitted execution ownership still apply.
|
|
214
214
|
|
|
215
|
-
Project edits, development-related external reads, PATH commands, builds/tests, generated/temp/disposable artifacts, helper compilation/registration need no additional approval. Derived memory organization requires post-task permission and saving requires native user approval of the exact shown revision. Decline saves nothing; uncertain saves reconcile their original approved key without replaying work.
|
|
215
|
+
Project edits, development-related external reads, PATH commands, builds/tests, generated/temp/disposable artifacts, helper compilation/registration need no additional approval. Derived memory organization requires post-task permission and saving requires native user approval of the exact shown revision. Decline saves nothing; uncertain saves reconcile their original approved key without replaying work. Changes within the working project directory, including deletion, replacement and project DB updates, need no extra user permission. Outside-project changes require concrete confirmation. Declare destructiveTargets for known command effects. Arbitrary Lisp/shell code is not a security sandbox; unclassified code is not rejected merely because static side-effect analysis is impossible. Direct effects bypassing the owned tools have no host verification receipt.
|
|
216
216
|
|
|
217
217
|
Host receipts record operation/run/session/generation, cwd, sanitized command, file hashes, process exit/signal/cancel/timeout, complete-output digest and test summaries before preview truncation. Environment variables and full outputs are not persisted. Known secret-bearing command/output text is redacted, but arbitrary secrets cannot all be recognized. Process groups are terminated on cancellation. Background results are collected without replaying effects.
|
|
218
218
|
|
|
219
|
-
Receipts and source-bound checks feed existing completion/memory application and candidate finalization. Related source/test/config edits make checks stale; unrelated generated files do not. Saving failure is explicit and does not undo or rerun development. Interrupted started records remain unknown after restart. Memory candidates carry evidence references and current source freshness; evidence never automatically verifies a generalized lesson. Legacy profile approval settings still load;
|
|
219
|
+
Receipts and source-bound checks feed existing completion/memory application and candidate finalization. Related source/test/config edits make checks stale; unrelated generated files do not. Saving failure is explicit and does not undo or rerun development. Interrupted started records remain unknown after restart. Memory candidates carry evidence references and current source freshness; evidence never automatically verifies a generalized lesson. Legacy profile approval settings still load; they do not add confirmation for local file changes or remove outside-project boundaries.
|
|
220
220
|
|
|
221
221
|
See [Common Lisp setup and recovery](docs/lisp.md) for commands and limits.
|
|
222
222
|
|
|
@@ -290,7 +290,7 @@ continue” in a Lisp approval dialog. Use `/kioku-lisp approval ask` to return
|
|
|
290
290
|
manual consent. Explicit configuration and saved profile settings persist across
|
|
291
291
|
chats and restarts and override the default; changing the default does not revoke
|
|
292
292
|
a previously saved choice.
|
|
293
|
-
|
|
293
|
+
Working-project file changes and restoration need no extra confirmation. The remaining legacy categories include host
|
|
294
294
|
verification, public npm package operations, and shared-function changes.
|
|
295
295
|
|
|
296
296
|
Follow the current host-reported mode. In auto mode execute authorized work
|
package/README.ja.md
CHANGED
|
@@ -68,17 +68,21 @@ GitHub・ローカルからの導入は [プラグインガイド](docs/dsh-plug
|
|
|
68
68
|
|
|
69
69
|
## 更新
|
|
70
70
|
|
|
71
|
+
ローカルtarballや `file:` で導入した版は、`update --latest` が成功しても古い版のまま残る場合があります。DSH を停止し、各プロファイルから古いパッケージを削除してから `kiokuko-dsh@latest` を追加してください。
|
|
72
|
+
|
|
71
73
|
DSH を停止してから、Web版を更新して再起動します。
|
|
72
74
|
|
|
73
75
|
```bash
|
|
74
|
-
pnpm dsh plugin --profile web
|
|
76
|
+
pnpm dsh plugin --profile web remove kiokuko-dsh
|
|
77
|
+
pnpm dsh plugin --profile web add kiokuko-dsh@latest
|
|
75
78
|
pnpm dsh web
|
|
76
79
|
```
|
|
77
80
|
|
|
78
81
|
DSH を停止してから、CLI版を更新して再起動します。
|
|
79
82
|
|
|
80
83
|
```bash
|
|
81
|
-
pnpm dsh plugin --profile dsh-cli
|
|
84
|
+
pnpm dsh plugin --profile dsh-cli remove kiokuko-dsh
|
|
85
|
+
pnpm dsh plugin --profile dsh-cli add kiokuko-dsh@latest
|
|
82
86
|
pnpm dsh --profile dsh-cli
|
|
83
87
|
```
|
|
84
88
|
|
|
@@ -90,8 +94,10 @@ pnpm dsh --profile dsh-cli
|
|
|
90
94
|
```bash
|
|
91
95
|
pnpm config set --location=global --json minimumReleaseAge 0
|
|
92
96
|
pnpm config get minimumReleaseAge
|
|
93
|
-
pnpm dsh plugin --profile web
|
|
94
|
-
pnpm dsh plugin --profile
|
|
97
|
+
pnpm dsh plugin --profile web remove kiokuko-dsh
|
|
98
|
+
pnpm dsh plugin --profile web add kiokuko-dsh@latest
|
|
99
|
+
pnpm dsh plugin --profile dsh-cli remove kiokuko-dsh
|
|
100
|
+
pnpm dsh plugin --profile dsh-cli add kiokuko-dsh@latest
|
|
95
101
|
```
|
|
96
102
|
|
|
97
103
|
この設定はグローバルに保存され、以後の pnpm のインストール・更新でも公開後の
|
package/README.ko.md
CHANGED
|
@@ -83,17 +83,21 @@ AgenticReplay 기능은 자동으로 설정되며 **수동 설정이 필요 없
|
|
|
83
83
|
|
|
84
84
|
## 업데이트
|
|
85
85
|
|
|
86
|
+
로컬 tarball이나 `file:`로 설치한 버전은 `update --latest`가 성공해도 이전 버전으로 남을 수 있습니다. DSH를 종료하고 각 프로필에서 기존 패키지를 삭제한 뒤 `kiokuko-dsh@latest`를 추가하세요.
|
|
87
|
+
|
|
86
88
|
DSH를 종료한 뒤 Web 버전을 업데이트하고 다시 시작합니다.
|
|
87
89
|
|
|
88
90
|
```bash
|
|
89
|
-
pnpm dsh plugin --profile web
|
|
91
|
+
pnpm dsh plugin --profile web remove kiokuko-dsh
|
|
92
|
+
pnpm dsh plugin --profile web add kiokuko-dsh@latest
|
|
90
93
|
pnpm dsh web
|
|
91
94
|
```
|
|
92
95
|
|
|
93
96
|
DSH를 종료한 뒤 CLI 버전을 업데이트하고 다시 시작합니다.
|
|
94
97
|
|
|
95
98
|
```bash
|
|
96
|
-
pnpm dsh plugin --profile dsh-cli
|
|
99
|
+
pnpm dsh plugin --profile dsh-cli remove kiokuko-dsh
|
|
100
|
+
pnpm dsh plugin --profile dsh-cli add kiokuko-dsh@latest
|
|
97
101
|
pnpm dsh --profile dsh-cli
|
|
98
102
|
```
|
|
99
103
|
|
|
@@ -105,7 +109,10 @@ pnpm dsh --profile dsh-cli
|
|
|
105
109
|
```bash
|
|
106
110
|
pnpm config set --location=global --json minimumReleaseAge 0
|
|
107
111
|
pnpm config get minimumReleaseAge
|
|
108
|
-
pnpm dsh plugin --profile web
|
|
112
|
+
pnpm dsh plugin --profile web remove kiokuko-dsh
|
|
113
|
+
pnpm dsh plugin --profile web add kiokuko-dsh@latest
|
|
114
|
+
pnpm dsh plugin --profile dsh-cli remove kiokuko-dsh
|
|
115
|
+
pnpm dsh plugin --profile dsh-cli add kiokuko-dsh@latest
|
|
109
116
|
```
|
|
110
117
|
|
|
111
118
|
이 설정은 전역으로 저장되며 이후 pnpm 설치와 업데이트에서도 공개 후 대기 기간 검사를
|
package/README.md
CHANGED
|
@@ -67,17 +67,21 @@ Recordings keep `capture.content: redacted` by default. To minimize body storage
|
|
|
67
67
|
|
|
68
68
|
## Update
|
|
69
69
|
|
|
70
|
+
A local tarball or `file:` dependency can remain pinned even when `update --latest` succeeds. Stop DSH, remove the old package from each profile, then install `kiokuko-dsh@latest`.
|
|
71
|
+
|
|
70
72
|
Stop DSH, then update and restart the Web profile:
|
|
71
73
|
|
|
72
74
|
```bash
|
|
73
|
-
pnpm dsh plugin --profile web
|
|
75
|
+
pnpm dsh plugin --profile web remove kiokuko-dsh
|
|
76
|
+
pnpm dsh plugin --profile web add kiokuko-dsh@latest
|
|
74
77
|
pnpm dsh web
|
|
75
78
|
```
|
|
76
79
|
|
|
77
80
|
Stop DSH, then update and restart the CLI profile:
|
|
78
81
|
|
|
79
82
|
```bash
|
|
80
|
-
pnpm dsh plugin --profile dsh-cli
|
|
83
|
+
pnpm dsh plugin --profile dsh-cli remove kiokuko-dsh
|
|
84
|
+
pnpm dsh plugin --profile dsh-cli add kiokuko-dsh@latest
|
|
81
85
|
pnpm dsh --profile dsh-cli
|
|
82
86
|
```
|
|
83
87
|
|
|
@@ -89,8 +93,10 @@ then update:
|
|
|
89
93
|
```bash
|
|
90
94
|
pnpm config set --location=global --json minimumReleaseAge 0
|
|
91
95
|
pnpm config get minimumReleaseAge
|
|
92
|
-
pnpm dsh plugin --profile web
|
|
93
|
-
pnpm dsh plugin --profile
|
|
96
|
+
pnpm dsh plugin --profile web remove kiokuko-dsh
|
|
97
|
+
pnpm dsh plugin --profile web add kiokuko-dsh@latest
|
|
98
|
+
pnpm dsh plugin --profile dsh-cli remove kiokuko-dsh
|
|
99
|
+
pnpm dsh plugin --profile dsh-cli add kiokuko-dsh@latest
|
|
94
100
|
```
|
|
95
101
|
|
|
96
102
|
This setting persists globally and disables the release-age check for future pnpm
|
package/README.zh-CN.md
CHANGED
|
@@ -83,17 +83,21 @@ AgenticReplay 的功能配置会自动安装,**无需手动设置**。每次
|
|
|
83
83
|
|
|
84
84
|
## 更新
|
|
85
85
|
|
|
86
|
+
通过本地 tarball 或 `file:` 安装的版本,即使 `update --latest` 成功也可能仍是旧版。请先停止 DSH,从各个 profile 中删除旧包,再添加 `kiokuko-dsh@latest`。
|
|
87
|
+
|
|
86
88
|
停止 DSH 后,更新并重启 Web 版:
|
|
87
89
|
|
|
88
90
|
```bash
|
|
89
|
-
pnpm dsh plugin --profile web
|
|
91
|
+
pnpm dsh plugin --profile web remove kiokuko-dsh
|
|
92
|
+
pnpm dsh plugin --profile web add kiokuko-dsh@latest
|
|
90
93
|
pnpm dsh web
|
|
91
94
|
```
|
|
92
95
|
|
|
93
96
|
停止 DSH 后,更新并重启 CLI 版:
|
|
94
97
|
|
|
95
98
|
```bash
|
|
96
|
-
pnpm dsh plugin --profile dsh-cli
|
|
99
|
+
pnpm dsh plugin --profile dsh-cli remove kiokuko-dsh
|
|
100
|
+
pnpm dsh plugin --profile dsh-cli add kiokuko-dsh@latest
|
|
97
101
|
pnpm dsh --profile dsh-cli
|
|
98
102
|
```
|
|
99
103
|
|
|
@@ -104,7 +108,10 @@ pnpm dsh --profile dsh-cli
|
|
|
104
108
|
```bash
|
|
105
109
|
pnpm config set --location=global --json minimumReleaseAge 0
|
|
106
110
|
pnpm config get minimumReleaseAge
|
|
107
|
-
pnpm dsh plugin --profile web
|
|
111
|
+
pnpm dsh plugin --profile web remove kiokuko-dsh
|
|
112
|
+
pnpm dsh plugin --profile web add kiokuko-dsh@latest
|
|
113
|
+
pnpm dsh plugin --profile dsh-cli remove kiokuko-dsh
|
|
114
|
+
pnpm dsh plugin --profile dsh-cli add kiokuko-dsh@latest
|
|
108
115
|
```
|
|
109
116
|
|
|
110
117
|
此设置会保存到全局配置,后续 pnpm 安装和更新也会关闭发布时间检查。
|
package/dist/client.cjs
CHANGED
|
@@ -2756,9 +2756,277 @@ window.__ModuleLoader__.load({
|
|
|
2756
2756
|
document.head.appendChild(style);
|
|
2757
2757
|
return () => style.remove();
|
|
2758
2758
|
}
|
|
2759
|
+
var MEMORY_NS = "kiokuko-memory-sidebar";
|
|
2760
|
+
var MEMORY_TAB = "kiokuko-dsh/memory";
|
|
2761
|
+
var MEMORY_KIND = "kiokuko-memory";
|
|
2762
|
+
var memoryDictionaries = {
|
|
2763
|
+
en: {
|
|
2764
|
+
title: "Memory",
|
|
2765
|
+
description: "See which memories were sent for the latest request and inspect their sources.",
|
|
2766
|
+
loading: "Loading memories\u2026",
|
|
2767
|
+
error: "Could not load memories for this session.",
|
|
2768
|
+
retry: "Retry",
|
|
2769
|
+
unobserved: "No model input has been observed for this request yet.",
|
|
2770
|
+
empty: "No available memories for this request.",
|
|
2771
|
+
reasons: "Why it was selected",
|
|
2772
|
+
sources: "Source excerpts",
|
|
2773
|
+
noReasons: "Selection reasons are unavailable.",
|
|
2774
|
+
noSources: "No source excerpts are available.",
|
|
2775
|
+
omitted: "Some excerpts were shortened or withheld.",
|
|
2776
|
+
user: "User message",
|
|
2777
|
+
tool: "Tool result",
|
|
2778
|
+
references: "Source references",
|
|
2779
|
+
revision: "Revision",
|
|
2780
|
+
reuse: "Reuse checks",
|
|
2781
|
+
noReuse: "No verified reuse for this revision in this project.",
|
|
2782
|
+
verifiedReuse: "Reuse check passed",
|
|
2783
|
+
staleReuse: "Needs rechecking",
|
|
2784
|
+
task: "Task",
|
|
2785
|
+
verification: "Verification reference",
|
|
2786
|
+
"reason.project_origin": "From this project",
|
|
2787
|
+
"reason.ecosystem_origin": "From a compatible project",
|
|
2788
|
+
"reason.global_origin": "From shared memory",
|
|
2789
|
+
"reason.exact_signal_match": "Exact match with the request",
|
|
2790
|
+
"reason.applicability_match": "Applies to the current context",
|
|
2791
|
+
"reason.applicability_unknown": "Applicability is unknown",
|
|
2792
|
+
"reason.lexical_match": "Matching words in the request",
|
|
2793
|
+
"reason.word_match": "Matching words in the request",
|
|
2794
|
+
"reason.substring_match": "Matching phrase in the request",
|
|
2795
|
+
"reason.literal_fallback_match": "Matching text in the request",
|
|
2796
|
+
"reason.cjk_window_match": "Matching text in the request",
|
|
2797
|
+
"reason.tag_match": "Matching tag",
|
|
2798
|
+
"reason.semantic_match": "Similar meaning",
|
|
2799
|
+
"reason.semantic_reuse_match": "Found applicable by semantic review",
|
|
2800
|
+
"reason.related_signal_match": "Linked to another relevant memory",
|
|
2801
|
+
"reason.verified": "Marked verified",
|
|
2802
|
+
"reason.candidate": "Stored candidate",
|
|
2803
|
+
"reason.unscoped_global_prior": "Shared reference without a narrow scope",
|
|
2804
|
+
"reason.approved_replay_term_match": "Request terms matched an approved past experience in this project",
|
|
2805
|
+
"reason.repository_learning": "Part of the saved learning summary for this repository",
|
|
2806
|
+
"reason.helpful_feedback": "Previously marked helpful",
|
|
2807
|
+
"reason.irrelevant_feedback": "Previously marked irrelevant",
|
|
2808
|
+
"reason.conflicting_feedback": "Previously flagged as conflicting",
|
|
2809
|
+
"reason.stale_feedback": "Prior feedback is stale"
|
|
2810
|
+
},
|
|
2811
|
+
ja: {
|
|
2812
|
+
title: "\u8A18\u61B6",
|
|
2813
|
+
description: "\u76F4\u8FD1\u306E\u4F9D\u983C\u3067\u30E2\u30C7\u30EB\u306B\u6E21\u3063\u305F\u8A18\u61B6\u3068\u3001\u305D\u306E\u6839\u62E0\u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002",
|
|
2814
|
+
loading: "\u8A18\u61B6\u3092\u8AAD\u307F\u8FBC\u3093\u3067\u3044\u307E\u3059\u2026",
|
|
2815
|
+
error: "\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u8A18\u61B6\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
2816
|
+
retry: "\u518D\u8A66\u884C",
|
|
2817
|
+
unobserved: "\u3053\u306E\u4F9D\u983C\u306E\u30E2\u30C7\u30EB\u5165\u529B\u306F\u307E\u3060\u78BA\u8A8D\u3067\u304D\u3066\u3044\u307E\u305B\u3093\u3002",
|
|
2818
|
+
empty: "\u3053\u306E\u4F9D\u983C\u3067\u8868\u793A\u3067\u304D\u308B\u8A18\u61B6\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
2819
|
+
reasons: "\u9078\u3070\u308C\u305F\u7406\u7531",
|
|
2820
|
+
sources: "\u51FA\u5178\u306E\u629C\u7C8B",
|
|
2821
|
+
noReasons: "\u9078\u5B9A\u7406\u7531\u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
2822
|
+
noSources: "\u8868\u793A\u3067\u304D\u308B\u51FA\u5178\u306E\u629C\u7C8B\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
2823
|
+
omitted: "\u4E00\u90E8\u306E\u629C\u7C8B\u3092\u77ED\u7E2E\u307E\u305F\u306F\u7701\u7565\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
2824
|
+
user: "\u30E6\u30FC\u30B6\u30FC\u306E\u767A\u8A00",
|
|
2825
|
+
tool: "\u30C4\u30FC\u30EB\u7D50\u679C",
|
|
2826
|
+
references: "\u51FA\u5178\u306E\u53C2\u7167\u5148",
|
|
2827
|
+
revision: "\u7248",
|
|
2828
|
+
reuse: "\u518D\u5229\u7528\u306E\u691C\u8A3C",
|
|
2829
|
+
noReuse: "\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u3001\u3053\u306E\u7248\u306E\u518D\u5229\u7528\u3092\u691C\u8A3C\u3057\u305F\u8A18\u9332\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
2830
|
+
verifiedReuse: "\u518D\u5229\u7528\u306E\u691C\u8A3C\u306B\u5408\u683C",
|
|
2831
|
+
staleReuse: "\u518D\u78BA\u8A8D\u304C\u5FC5\u8981",
|
|
2832
|
+
task: "\u30BF\u30B9\u30AF",
|
|
2833
|
+
verification: "\u691C\u8A3C\u7D50\u679C\u306E\u53C2\u7167\u5148",
|
|
2834
|
+
"reason.project_origin": "\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u8A18\u61B6",
|
|
2835
|
+
"reason.ecosystem_origin": "\u4E92\u63DB\u6027\u306E\u3042\u308B\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u8A18\u61B6",
|
|
2836
|
+
"reason.global_origin": "\u5171\u6709\u306E\u8A18\u61B6",
|
|
2837
|
+
"reason.exact_signal_match": "\u4F9D\u983C\u306E\u8A9E\u53E5\u3068\u5B8C\u5168\u306B\u4E00\u81F4",
|
|
2838
|
+
"reason.applicability_match": "\u4ECA\u56DE\u306E\u6587\u8108\u304C\u9069\u7528\u6761\u4EF6\u306B\u4E00\u81F4",
|
|
2839
|
+
"reason.applicability_unknown": "\u9069\u7528\u3067\u304D\u308B\u304B\u306F\u4E0D\u660E",
|
|
2840
|
+
"reason.lexical_match": "\u4F9D\u983C\u306E\u8A9E\u53E5\u3068\u4E00\u81F4",
|
|
2841
|
+
"reason.word_match": "\u4F9D\u983C\u306E\u8A9E\u53E5\u3068\u4E00\u81F4",
|
|
2842
|
+
"reason.substring_match": "\u4F9D\u983C\u306E\u4E00\u90E8\u3068\u4E00\u81F4",
|
|
2843
|
+
"reason.literal_fallback_match": "\u4F9D\u983C\u306E\u6587\u5B57\u5217\u3068\u4E00\u81F4",
|
|
2844
|
+
"reason.cjk_window_match": "\u4F9D\u983C\u306E\u6587\u5B57\u5217\u3068\u4E00\u81F4",
|
|
2845
|
+
"reason.tag_match": "\u30BF\u30B0\u304C\u4E00\u81F4",
|
|
2846
|
+
"reason.semantic_match": "\u610F\u5473\u304C\u8FD1\u3044",
|
|
2847
|
+
"reason.semantic_reuse_match": "\u610F\u5473\u5224\u5B9A\u3067\u4ECA\u56DE\u306B\u9069\u7528\u53EF\u80FD\u3068\u5224\u5B9A",
|
|
2848
|
+
"reason.related_signal_match": "\u95A2\u9023\u3059\u308B\u8A18\u61B6\u3068\u306E\u3064\u306A\u304C\u308A",
|
|
2849
|
+
"reason.verified": "\u691C\u8A3C\u6E08\u307F\u306E\u8A18\u61B6",
|
|
2850
|
+
"reason.candidate": "\u8A18\u61B6\u306E\u5019\u88DC",
|
|
2851
|
+
"reason.unscoped_global_prior": "\u9069\u7528\u7BC4\u56F2\u3092\u9650\u5B9A\u3057\u3066\u3044\u306A\u3044\u5171\u6709\u306E\u8A18\u61B6",
|
|
2852
|
+
"reason.approved_replay_term_match": "\u4F9D\u983C\u306E\u8A9E\u53E5\u304C\u3001\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u627F\u8A8D\u6E08\u307F\u306E\u904E\u53BB\u306E\u7D4C\u9A13\u3068\u4E00\u81F4",
|
|
2853
|
+
"reason.repository_learning": "\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3067\u4FDD\u5B58\u3055\u308C\u305F\u5B66\u7FD2\u306E\u8981\u7D04",
|
|
2854
|
+
"reason.helpful_feedback": "\u4EE5\u524D\u306B\u6709\u7528\u3068\u5224\u5B9A",
|
|
2855
|
+
"reason.irrelevant_feedback": "\u4EE5\u524D\u306B\u7121\u95A2\u4FC2\u3068\u5224\u5B9A",
|
|
2856
|
+
"reason.conflicting_feedback": "\u4EE5\u524D\u306B\u77DB\u76FE\u3092\u6307\u6458",
|
|
2857
|
+
"reason.stale_feedback": "\u904E\u53BB\u306E\u8A55\u4FA1\u304C\u53E4\u304F\u306A\u3063\u3066\u3044\u308B"
|
|
2858
|
+
},
|
|
2859
|
+
zh: {
|
|
2860
|
+
title: "\u8BB0\u5FC6",
|
|
2861
|
+
description: "\u67E5\u770B\u6700\u8FD1\u4E00\u6B21\u8BF7\u6C42\u53D1\u9001\u7ED9\u6A21\u578B\u7684\u8BB0\u5FC6\u53CA\u5176\u6765\u6E90\u3002",
|
|
2862
|
+
loading: "\u6B63\u5728\u52A0\u8F7D\u8BB0\u5FC6\u2026",
|
|
2863
|
+
error: "\u65E0\u6CD5\u52A0\u8F7D\u6B64\u4F1A\u8BDD\u7684\u8BB0\u5FC6\u3002",
|
|
2864
|
+
retry: "\u91CD\u8BD5",
|
|
2865
|
+
unobserved: "\u5C1A\u672A\u89C2\u6D4B\u5230\u6B64\u6B21\u8BF7\u6C42\u7684\u6A21\u578B\u8F93\u5165\u3002",
|
|
2866
|
+
empty: "\u6B64\u6B21\u8BF7\u6C42\u6CA1\u6709\u53EF\u663E\u793A\u7684\u8BB0\u5FC6\u3002",
|
|
2867
|
+
reasons: "\u9009\u4E2D\u539F\u56E0",
|
|
2868
|
+
sources: "\u6765\u6E90\u6458\u5F55",
|
|
2869
|
+
noReasons: "\u6682\u65E0\u9009\u4E2D\u539F\u56E0\u3002",
|
|
2870
|
+
noSources: "\u6682\u65E0\u53EF\u663E\u793A\u7684\u6765\u6E90\u6458\u5F55\u3002",
|
|
2871
|
+
omitted: "\u90E8\u5206\u6458\u5F55\u5DF2\u7F29\u77ED\u6216\u7701\u7565\u3002",
|
|
2872
|
+
user: "\u7528\u6237\u6D88\u606F",
|
|
2873
|
+
tool: "\u5DE5\u5177\u7ED3\u679C",
|
|
2874
|
+
references: "\u6765\u6E90\u5F15\u7528",
|
|
2875
|
+
revision: "\u7248\u672C",
|
|
2876
|
+
reuse: "\u590D\u7528\u9A8C\u8BC1",
|
|
2877
|
+
noReuse: "\u6B64\u9879\u76EE\u4E2D\u6682\u65E0\u6B64\u7248\u672C\u7684\u590D\u7528\u9A8C\u8BC1\u8BB0\u5F55\u3002",
|
|
2878
|
+
verifiedReuse: "\u590D\u7528\u9A8C\u8BC1\u901A\u8FC7",
|
|
2879
|
+
staleReuse: "\u9700\u8981\u91CD\u65B0\u9A8C\u8BC1",
|
|
2880
|
+
task: "\u4EFB\u52A1",
|
|
2881
|
+
verification: "\u9A8C\u8BC1\u7ED3\u679C\u5F15\u7528",
|
|
2882
|
+
"reason.approved_replay_term_match": "\u8BF7\u6C42\u4E2D\u7684\u8BCD\u8BED\u4E0E\u8BE5\u9879\u76EE\u5DF2\u6279\u51C6\u7684\u7ECF\u5386\u5339\u914D",
|
|
2883
|
+
"reason.repository_learning": "\u6B64\u4ED3\u5E93\u5DF2\u4FDD\u5B58\u7684\u5B66\u4E60\u6458\u8981"
|
|
2884
|
+
}
|
|
2885
|
+
};
|
|
2886
|
+
function SidebarMemoryItem({ item, t }) {
|
|
2887
|
+
const reasons = [...new Set(item.reasons.map((code) => {
|
|
2888
|
+
const key = `reason.${code}`;
|
|
2889
|
+
const label = t(key);
|
|
2890
|
+
return label === key ? memoryDictionaries.en[key] ?? code : label;
|
|
2891
|
+
}))];
|
|
2892
|
+
return jsxs("details", { children: [
|
|
2893
|
+
jsx("summary", { children: item.title }),
|
|
2894
|
+
item.revision === void 0 ? null : jsx("p", { children: `${t("revision")} ${item.revision}` }),
|
|
2895
|
+
item.text ? jsx("p", { children: item.text }) : null,
|
|
2896
|
+
jsx("h3", { children: t("reasons") }),
|
|
2897
|
+
reasons.length ? jsx("ul", { children: reasons.map((reason) => jsx("li", { children: reason }, reason)) }) : jsx("p", { children: t("noReasons") }),
|
|
2898
|
+
jsx("h3", { children: t("sources") }),
|
|
2899
|
+
...item.sources.map((source, index) => jsxs("figure", { children: [
|
|
2900
|
+
jsx("figcaption", { children: t(source.kind === "native_user_message" ? "user" : "tool") }),
|
|
2901
|
+
jsx("blockquote", { children: source.text }),
|
|
2902
|
+
source.reference ? jsx("code", { children: source.reference }) : null
|
|
2903
|
+
] }, index)),
|
|
2904
|
+
!item.sources.length ? jsx("p", { children: t("noSources") }) : null,
|
|
2905
|
+
item.sourcesOmitted ? jsx("p", { children: t("omitted") }) : null,
|
|
2906
|
+
item.references.length ? jsxs(Fragment, { children: [
|
|
2907
|
+
jsx("h3", { children: t("references") }),
|
|
2908
|
+
jsx("ul", { children: item.references.map((ref, index) => jsx("li", { children: jsx("code", { children: ref }) }, index)) })
|
|
2909
|
+
] }) : null,
|
|
2910
|
+
item.reuse ? jsxs(Fragment, { children: [
|
|
2911
|
+
jsx("h3", { children: t("reuse") }),
|
|
2912
|
+
item.reuse.length ? jsx("ul", { children: item.reuse.map((check) => jsxs("li", { children: [
|
|
2913
|
+
jsx("strong", { children: t(check.state === "verified" ? "verifiedReuse" : "staleReuse") }),
|
|
2914
|
+
check.description ? jsx("p", { children: check.description }) : null,
|
|
2915
|
+
jsx("p", { children: `${t("task")} ${check.runId}` }),
|
|
2916
|
+
jsx("p", { children: `${t("verification")} ${check.evidenceRef}` })
|
|
2917
|
+
] }, `${check.runId}:${check.criterionId}`)) }) : jsx("p", { children: t("noReuse") })
|
|
2918
|
+
] }) : null
|
|
2919
|
+
] });
|
|
2920
|
+
}
|
|
2921
|
+
function MemorySidebarSession({ sessionId, tab, t }) {
|
|
2922
|
+
const [view, setView] = useState("loading");
|
|
2923
|
+
const [retry, setRetry] = useState(0);
|
|
2924
|
+
useEffect(() => {
|
|
2925
|
+
if (!tab.visible || tab.signal.aborted)
|
|
2926
|
+
return;
|
|
2927
|
+
const controller = new AbortController();
|
|
2928
|
+
const signal = AbortSignal.any([tab.signal, controller.signal]);
|
|
2929
|
+
let timer;
|
|
2930
|
+
let previous = "";
|
|
2931
|
+
async function load() {
|
|
2932
|
+
try {
|
|
2933
|
+
const url = new URL("/api/kiokuko.memory-sidebar", hostBase());
|
|
2934
|
+
url.searchParams.set("sessionId", sessionId);
|
|
2935
|
+
const response = await fetch(url, { signal: AbortSignal.any([signal, AbortSignal.timeout(8e3)]), cache: "no-store" });
|
|
2936
|
+
if (!response.ok)
|
|
2937
|
+
throw new Error("memory_unavailable");
|
|
2938
|
+
const text = await response.text();
|
|
2939
|
+
if (signal.aborted)
|
|
2940
|
+
return;
|
|
2941
|
+
if (text !== previous) {
|
|
2942
|
+
const body = JSON.parse(text);
|
|
2943
|
+
if (body.state !== "observed" && body.state !== "unobserved")
|
|
2944
|
+
throw new Error("invalid_memory_response");
|
|
2945
|
+
setView(body);
|
|
2946
|
+
previous = text;
|
|
2947
|
+
}
|
|
2948
|
+
timer = setTimeout(() => {
|
|
2949
|
+
void load();
|
|
2950
|
+
}, 2e3);
|
|
2951
|
+
} catch {
|
|
2952
|
+
if (!signal.aborted)
|
|
2953
|
+
setView("error");
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
void load();
|
|
2957
|
+
return () => {
|
|
2958
|
+
controller.abort();
|
|
2959
|
+
clearTimeout(timer);
|
|
2960
|
+
};
|
|
2961
|
+
}, [sessionId, tab.signal, tab.visible, retry]);
|
|
2962
|
+
const message = typeof view === "string" ? view : view.state === "unobserved" ? "unobserved" : view.items.length ? null : "empty";
|
|
2963
|
+
return jsxs("section", { className: "kiokuko-memory-sidebar", "aria-label": t("title"), children: [
|
|
2964
|
+
jsx("h2", { children: t("title") }),
|
|
2965
|
+
jsx("p", { children: t("description") }),
|
|
2966
|
+
message ? jsx("p", { role: view === "error" ? "alert" : "status", children: t(message) }) : null,
|
|
2967
|
+
view === "error" ? jsx("button", { type: "button", onClick: () => {
|
|
2968
|
+
setView("loading");
|
|
2969
|
+
setRetry(retry + 1);
|
|
2970
|
+
}, children: t("retry") }) : null,
|
|
2971
|
+
typeof view !== "string" && view.state === "observed" ? jsx("ul", {
|
|
2972
|
+
className: "kiokuko-memory-list",
|
|
2973
|
+
children: view.items.map((item) => jsx("li", { children: jsx(SidebarMemoryItem, { item, t }) }, item.id))
|
|
2974
|
+
}, view.requestId) : null
|
|
2975
|
+
] });
|
|
2976
|
+
}
|
|
2977
|
+
function MemorySidebarTab(props) {
|
|
2978
|
+
const useTabInfo = props.useTabInfo;
|
|
2979
|
+
const { tab } = useTabInfo();
|
|
2980
|
+
if (typeof props.sessionId !== "string")
|
|
2981
|
+
return null;
|
|
2982
|
+
return jsx(MemorySidebarSession, { sessionId: props.sessionId, tab, t: props.t }, props.sessionId);
|
|
2983
|
+
}
|
|
2984
|
+
function mountMemorySidebarClient(ctx) {
|
|
2985
|
+
ctx.effect(() => ctx.locale.register(MEMORY_NS, memoryDictionaries), "kiokuko-dsh: memory sidebar dictionaries");
|
|
2986
|
+
ctx.inject?.(["sidebarRightTabs"], (scope) => {
|
|
2987
|
+
const t = scope.locale.bind?.(MEMORY_NS) ?? ((key) => memoryDictionaries.en[key] ?? key);
|
|
2988
|
+
scope.effect(() => {
|
|
2989
|
+
const dispose = scope.sidebarRightTabs.register({
|
|
2990
|
+
id: MEMORY_TAB,
|
|
2991
|
+
kind: MEMORY_KIND,
|
|
2992
|
+
priority: "extension",
|
|
2993
|
+
title: () => t("title"),
|
|
2994
|
+
guide: [{ id: "open", order: 35, title: () => t("title"), description: () => t("description") }]
|
|
2995
|
+
});
|
|
2996
|
+
return () => {
|
|
2997
|
+
void dispose();
|
|
2998
|
+
};
|
|
2999
|
+
}, "kiokuko-dsh: memory sidebar tab");
|
|
3000
|
+
scope.effect(() => scope.slots.inject("sidebar.right.pane.tab", () => scope.slots.register({
|
|
3001
|
+
name: "sidebar.right.pane.tab",
|
|
3002
|
+
key: MEMORY_TAB,
|
|
3003
|
+
locale: MEMORY_NS
|
|
3004
|
+
}, MemorySidebarTab)), "kiokuko-dsh: memory sidebar body");
|
|
3005
|
+
});
|
|
3006
|
+
ctx.effect(() => {
|
|
3007
|
+
if (typeof document === "undefined")
|
|
3008
|
+
return;
|
|
3009
|
+
const style = document.createElement("style");
|
|
3010
|
+
style.textContent = `
|
|
3011
|
+
.kiokuko-memory-sidebar{box-sizing:border-box;height:100%;overflow:auto;padding:12px;color:var(--dsw-alias-label-primary,CanvasText);background:var(--dsw-alias-background-primary,Canvas);font:13px/1.5 var(--dsw-font-family,system-ui);overflow-wrap:anywhere}
|
|
3012
|
+
.kiokuko-memory-sidebar h2{font-size:17px;margin:0}
|
|
3013
|
+
.kiokuko-memory-sidebar h3{font-size:13px}
|
|
3014
|
+
.kiokuko-memory-list{padding:0;list-style:none}
|
|
3015
|
+
.kiokuko-memory-list details{border-block-start:1px solid var(--dsw-alias-border-l4,GrayText);padding:0 4px 4px}
|
|
3016
|
+
.kiokuko-memory-list summary{cursor:pointer;padding:10px 0;font-weight:600}
|
|
3017
|
+
.kiokuko-memory-list :focus-visible,.kiokuko-memory-sidebar button:focus-visible{outline:2px solid Highlight;outline-offset:1px}
|
|
3018
|
+
.kiokuko-memory-list figure{margin:8px 0 12px}
|
|
3019
|
+
.kiokuko-memory-list figcaption{font-weight:600}
|
|
3020
|
+
.kiokuko-memory-list blockquote{white-space:pre-wrap;margin:4px 0;padding-inline-start:8px;border-inline-start:2px solid var(--dsw-alias-border-l4,GrayText)}
|
|
3021
|
+
.kiokuko-memory-sidebar button{font:inherit;color:inherit;background:transparent;border:1px solid var(--dsw-alias-border-l4,GrayText);border-radius:6px;padding:6px 10px;min-height:36px;cursor:pointer}`;
|
|
3022
|
+
document.head.append(style);
|
|
3023
|
+
return () => style.remove();
|
|
3024
|
+
}, "kiokuko-dsh: memory sidebar style");
|
|
3025
|
+
}
|
|
2759
3026
|
function apply(ctx) {
|
|
2760
3027
|
mountModelsClient(ctx);
|
|
2761
3028
|
mountRecoveryClient(ctx);
|
|
3029
|
+
mountMemorySidebarClient(ctx);
|
|
2762
3030
|
const installApprovals = (scope, approvalScope, modern) => {
|
|
2763
3031
|
scope.slots.inject("settings.general.item", () => scope.slots.register({
|
|
2764
3032
|
name: "settings.general.item",
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAQA,UAAU,wBAAwB;IAChC,kBAAkB,CAAC,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 -1,5 +1,9 @@
|
|
|
1
1
|
import type { SqliteDatabase } from "../db/adapter.js";
|
|
2
2
|
import { type ReplayMemoryProposal } from "../memory/replay-review.js";
|
|
3
3
|
/** Approved replay uses its existing indexed entry identity, never a fabricated proposal ID. */
|
|
4
|
-
export declare function serializeApprovedReplayContext(db: SqliteDatabase, replay: readonly ReplayMemoryProposal[]
|
|
4
|
+
export declare function serializeApprovedReplayContext(db: SqliteDatabase, replay: readonly ReplayMemoryProposal[], observeSelection?: (items: readonly {
|
|
5
|
+
workspace: string;
|
|
6
|
+
entryId: string;
|
|
7
|
+
revision: number;
|
|
8
|
+
}[]) => void): string;
|
|
5
9
|
//# sourceMappingURL=replay-model-memory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-model-memory.d.ts","sourceRoot":"","sources":["../../src/context/replay-model-memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAUpC,gGAAgG;AAChG,wBAAgB,8BAA8B,CAC5C,EAAE,EAAE,cAAc,EAClB,MAAM,EAAE,SAAS,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"replay-model-memory.d.ts","sourceRoot":"","sources":["../../src/context/replay-model-memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAUpC,gGAAgG;AAChG,wBAAgB,8BAA8B,CAC5C,EAAE,EAAE,cAAc,EAClB,MAAM,EAAE,SAAS,oBAAoB,EAAE,EACvC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAAE,KAAK,IAAI,GACtG,MAAM,CA6GR"}
|
|
@@ -3,9 +3,9 @@ import { proposalDigest, } from "../memory/replay-review.js";
|
|
|
3
3
|
import { DEFAULT_CONTEXT_CHARACTERS } from "../memory/context-budget.js";
|
|
4
4
|
import { configuredRelationDeliveryOptions, legacyRelationDelivery, readRelationDelivery, } from "../memory/relation-delivery.js";
|
|
5
5
|
import { projectMemoryEntry, renderMemoryFields } from "./memory-projection.js";
|
|
6
|
-
import { serializeModelMemoryContext } from "./model-memory.js";
|
|
6
|
+
import { renderModelMemory, serializeModelMemoryContext } from "./model-memory.js";
|
|
7
7
|
/** Approved replay uses its existing indexed entry identity, never a fabricated proposal ID. */
|
|
8
|
-
export function serializeApprovedReplayContext(db, replay) {
|
|
8
|
+
export function serializeApprovedReplayContext(db, replay, observeSelection) {
|
|
9
9
|
const items = [];
|
|
10
10
|
let characters = 0, omittedBody = false, legacy = false;
|
|
11
11
|
const indexed = !!db
|
|
@@ -93,6 +93,9 @@ export function serializeApprovedReplayContext(db, replay) {
|
|
|
93
93
|
const relationDelivery = legacy
|
|
94
94
|
? legacyRelationDelivery(options)
|
|
95
95
|
: readRelationDelivery(db, items, options);
|
|
96
|
-
|
|
96
|
+
const text = serializeModelMemoryContext({ items, relationDelivery, ...limits });
|
|
97
|
+
if (observeSelection)
|
|
98
|
+
observeSelection(items.filter(item => renderModelMemory(item) !== null));
|
|
99
|
+
return text;
|
|
97
100
|
}
|
|
98
101
|
//# sourceMappingURL=replay-model-memory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-model-memory.js","sourceRoot":"","sources":["../../src/context/replay-model-memory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EACL,cAAc,GAEf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EACL,iCAAiC,EACjC,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"replay-model-memory.js","sourceRoot":"","sources":["../../src/context/replay-model-memory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EACL,cAAc,GAEf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EACL,iCAAiC,EACjC,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEnF,gGAAgG;AAChG,MAAM,UAAU,8BAA8B,CAC5C,EAAkB,EAClB,MAAuC,EACvC,gBAAuG;IAEvG,MAAM,KAAK,GAON,EAAE,CAAC;IACR,IAAI,UAAU,GAAG,CAAC,EAChB,WAAW,GAAG,KAAK,EACnB,MAAM,GAAG,KAAK,CAAC;IACjB,MAAM,OAAO,GAAG,CAAC,CAAC,EAAE;SACjB,OAAO,CAAC,gEAAgE,CAAC;SACzE,GAAG,EAAE,CAAC;IACT,KAAK,MAAM,QAAQ,IAAI,MAAM,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,OAAO;YACjB,CAAC,CAAC,EAAE;iBACC,OAAO,CACN;;6DAEiD,CAClD;iBACA,GAAG,CACF,QAAQ,CAAC,MAAM,CAAC,SAAS,EACzB,QAAQ,CAAC,UAAU,EACnB,cAAc,CAAC,QAAQ,CAAC,CACzB;YACL,CAAC,CAAC,SAAS,CAAC;QACd,IAAI,CAAC,GAAG,EAAE,CA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AC,CAAC,sBAAsB,CAAC,OAAO,CAAC;QACjC,CAAC,CAAC,oBAAoB,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7C,MAAM,IAAI,GAAG,2BAA2B,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACjF,IAAI,gBAAgB;QAAE,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;IAC/F,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -41,7 +41,7 @@ export function mountDshAgenticReplayHooks(ctx, services) {
|
|
|
41
41
|
const agent = event.agent;
|
|
42
42
|
const resolved = agent?.session ? services.resolveSessionBinding(agent, agent.session) : undefined;
|
|
43
43
|
if (resolved && services.canRecord(resolved))
|
|
44
|
-
services.recorder.nativeFailure(resolved);
|
|
44
|
+
services.recorder.nativeFailure(resolved, event.error, event);
|
|
45
45
|
}
|
|
46
46
|
catch { /* an observer never replaces the native error */ }
|
|
47
47
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agenticreplay-hooks.js","sourceRoot":"","sources":["../../src/dsh/agenticreplay-hooks.ts"],"names":[],"mappings":"AAGA,qGAAqG;AACrG,MAAM,UAAU,0BAA0B,CAAC,GAAY,EAAE,QAAsC;IAC7F,MAAM,SAAS,GAAmB,EAAE,CAAA;IACpC,MAAM,EAAE,GAAG,CAAC,IAAY,EAAE,QAAiC,EAAE,OAAO,GAAG,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAE,GAAW,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAA;IAC3J,MAAM,OAAO,GAAG,CAAC,IAAgC,EAAE,EAAE;QACnD,IAAI,CAAC;YACH,MAA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AAC,CAAC;QACpH,CAAC,CAAC,CAAA;QACF,EAAE,CAAC,cAAc,EAAE,CAAC,IAAgC,EAAE,MAAe,EAAE,EAAE;YACvE,IAAI,CAAC;gBAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;YAAC,CAAC;YAAC,MAAM,CAAC,CAAC,0CAA0C,CAAC,CAAC;QACxH,CAAC,CAAC,CAAA;IAEJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAAC,KAAK,MAAM,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;YAAE,OAAO,EAAE,CAAC;QAAC,MAAM,KAAK,CAAA;IAAC,CAAC;IACrF,IAAI,QAAQ,GAAG,KAAK,CAAA;IACpB,OAAO,GAAG,EAAE,GAAG,IAAI,QAAQ;QAAE,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,KAAK,MAAM,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,CAAA,CAAC,CAAC,CAAA;AAC9G,CAAC"}
|
|
@@ -74,7 +74,7 @@ export declare class DshAgenticReplayRecorder {
|
|
|
74
74
|
/** Diagnostic flush is separate from capture, including traces stopped by limits. */
|
|
75
75
|
flushDiagnostics(sessionId: string): Promise<void>;
|
|
76
76
|
start(binding: DshAgenticReplayBinding): void;
|
|
77
|
-
/**
|
|
77
|
+
/** Bounded lifecycle facts; diagnostic prose follows this session's capture policy. */
|
|
78
78
|
harnessAction(binding: DshAgenticReplayBinding, event: {
|
|
79
79
|
seq: number;
|
|
80
80
|
data: unknown;
|
|
@@ -87,7 +87,10 @@ export declare class DshAgenticReplayRecorder {
|
|
|
87
87
|
toolDispatched(exec: AgenticReplayToolExecution): void;
|
|
88
88
|
toolResult(binding: DshAgenticReplayBinding | undefined, exec: AgenticReplayToolExecution, result: unknown): void;
|
|
89
89
|
stopAccepting(): void;
|
|
90
|
-
nativeFailure(binding: DshAgenticReplayBinding | undefined
|
|
90
|
+
nativeFailure(binding: DshAgenticReplayBinding | undefined, error?: unknown, position?: {
|
|
91
|
+
turn?: number;
|
|
92
|
+
step?: number;
|
|
93
|
+
}): void;
|
|
91
94
|
closeSessionRecording(sessionId: string, reason: string): Promise<void>;
|
|
92
95
|
forgetSession(sessionId: string): void;
|
|
93
96
|
shutdown(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agenticreplay-recorder.d.ts","sourceRoot":"","sources":["../../src/dsh/agenticreplay-recorder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agenticreplay-recorder.d.ts","sourceRoot":"","sources":["../../src/dsh/agenticreplay-recorder.ts"],"names":[],"mappings":"AAQA,OAAO,EAAiG,KAAK,iBAAiB,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAC1M,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAItD,OAAO,EAA8C,KAAK,uBAAuB,EAAE,KAAK,0BAA0B,EAA2B,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AA6B1M,MAAM,WAAW,iCAAiC;IAChD,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAA;IACrC,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAAA;IACzC,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;CACxC;AACD,+EAA+E;AAC/E,qBAAa,wBAAwB;;IAYvB,QAAQ,CAAC,MAAM,EAAE,mBAAmB;IAAE,QAAQ,CAAC,SAAS,EAAE,sBAAsB;IAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;IAXnH,QAAQ,CAAC,UAAU,SAA0D;IAC7E,QAAQ,CAAC,WAAW;;;;;;MAA4F;gBAU3F,MAAM,EAAE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