@shgroup/dsh-serenity-hooks 1.137.11 → 1.137.13
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 +7 -3
- package/dsh.plugin.json +3 -4
- package/lib/contract-B0uRA4S2.js +2307 -0
- package/lib/index.js +335 -226
- package/lib/invariant.js +5 -6
- package/lib/kernel/invariant.d.ts +2 -2
- package/lib/{observation-DiD_yJjS.js → observation-L-KQr5RL.js} +1 -2
- package/lib/{rebuild-Di1ITL-N.js → rebuild-CNFvXPby.js} +1 -1
- package/lib/seams/session-md-full-read.d.ts +47 -0
- package/lib/{service-mYmQXFFT.js → service-BZwjW8JL.js} +1 -1
- package/lib/{session-CA4rNuiV.js → session-BMaTNjK1.js} +4 -1
- package/lib/trajectory/reconstruct.d.ts +17 -23
- package/package.json +2 -2
- package/lib/service-DF23HvHY.js +0 -1003
- package/lib/status-BwfDsakn.js +0 -1309
- package/lib/tools/reconstruct.d.ts +0 -31
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* tools/reconstruct.ts — `reconstruct` 工具面(owner 2026-11-06 令)
|
|
3
|
-
*
|
|
4
|
-
* 只有一个动作、两个参数(与 `rebuild` 同形),因为它的语义就是"rebuild 的换代版":
|
|
5
|
-
*
|
|
6
|
-
* | 参数 | 必需 | 说明 |
|
|
7
|
-
* |---|---|---|
|
|
8
|
-
* | `summary` | ✅ | 内容概括 ≤20 字(新载体的会话标题用它,与 rebuild 同一个服务端清洗/截断) |
|
|
9
|
-
* | `note` | — | 任务焦点 ≤200 字(注入新载体锚点的 `- Task focus:` 行) |
|
|
10
|
-
*
|
|
11
|
-
* ## 🔴 本工具**平时不可见**,由 `register(def, { when })` 控制
|
|
12
|
-
*
|
|
13
|
-
* 判据在 `trajectory/reconstruct.ts` 的 {@link makeReconstructWhen}:累计 token ≥ 阈值才放出。
|
|
14
|
-
* ⇒ **工具面的注册点在 `index.ts`**,本文件只给 `def`(不为可见性负责)。
|
|
15
|
-
*
|
|
16
|
-
* ## 为什么文案要写"它和 rebuild 有什么不同"
|
|
17
|
-
*
|
|
18
|
-
* 模型同时看到 `rebuild` / `reconstruct` 时会**默认选更熟的那个**(rebuild),
|
|
19
|
-
* 而两者治的**不是同一个病**(rebuild 治上下文、reconstruct 治日志体积)。
|
|
20
|
-
* ⇒ 描述里必须一句话说清"什么时候该用我",否则这个工具等于不存在
|
|
21
|
-
* (它只在阈值后才出现,那时模型更没机会摸索)。
|
|
22
|
-
*/
|
|
23
|
-
import { agentCwdFor } from '../kernel/ccc-roots.js';
|
|
24
|
-
/**
|
|
25
|
-
* 造 `reconstruct` 工具定义(**不带任何可见性判定**)。
|
|
26
|
-
*
|
|
27
|
-
* @param ctx 插件上下文(排队时需要 `ctx.sessions.get` 定位会话;闭包捕获)
|
|
28
|
-
*/
|
|
29
|
-
export declare function createReconstructTool(ctx: unknown): import("@deepseek-ai/dsh-tools").ToolDefinition;
|
|
30
|
-
/** 供 `when` 判据复用的 cwd 读取(同一处来源,⛔ 不各写一份) */
|
|
31
|
-
export { agentCwdFor };
|