@dsh-fly/dsh-plugin-fly-mode 0.1.7 → 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/cordis.patch.yml
CHANGED
|
@@ -177,12 +177,10 @@
|
|
|
177
177
|
|
|
178
178
|
When ready, call exit_plan_mode with the complete plan markdown, starting with a # title. Make exit_plan_mode the only and final tool call in that assistant response: it presents the plan for approval, and implementation begins only in a later step after approval. Do not paste the final plan as a plain reply or ask "should I proceed?" through prose or ask_user_question. If review rejects it, incorporate the feedback and present again. If the review channel is unavailable or aborted, stay in plan mode and ask the user to switch modes manually; do not proceed with implementation.
|
|
179
179
|
|
|
180
|
-
# 评审姿态(docs/fly-review-mode-plan.md):`/review` 开关一段只读引导(先讲阻塞问题、
|
|
181
180
|
# 每条结论带 path:line 证据),收口工具 `exit_review_mode` 把判词交用户裁决。
|
|
182
181
|
# 形状与上面的 plan-mode 同族:姿态的效果就是一段引导 ⇒ 进/出只改提示词段、不改工具目录;
|
|
183
182
|
# 状态记会话日志 ⇒ resume / fork 不丢。**只读是引导、不是强制**(沙箱与审批策略独立执行)。
|
|
184
183
|
# 行保持**裸名**(内联形状的契约):生成器认这个裸名,再把它改写成模式包内的
|
|
185
|
-
# `dsh-plugin-fly-mode/tools/dsh-plugin-fly-review/index.js`(同那 8 个内联工具行);
|
|
186
184
|
# 包内的源码布局则是 `tools/index.js`(内联器照这个路径拷贝)。
|
|
187
185
|
# ── compaction ──────────────────────────────────────────────────────────────
|
|
188
186
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-fly/dsh-plugin-fly-mode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Fly 模式作为一个可安装的包:**两个 preset** —— Fly 安全模式(preset-fly,7 个安全工具内联 + smart)与 Fly 标准模式(preset-fly-standard,上游 standard 的行表 + smart,无安全工具);依赖单独发布的 dsh-plugin-fly-smart。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -480,9 +480,21 @@ export function apply(ctx) {
|
|
|
480
480
|
},
|
|
481
481
|
output: { schema: { type: 'string' }, render: (_a, v) => [{ type: 'text', text: v }] },
|
|
482
482
|
async execute(args, exec) {
|
|
483
|
+
// 证据形状(规划 §5.1):信封 JSON。这个工具读的是**扫描缓存**(活数据),
|
|
484
|
+
// limitations 必须说清"缓存要几轮才收敛、一轮会漏报"这件事 —— 否则容易把漏读当没有。
|
|
483
485
|
exec.signal.throwIfAborted()
|
|
484
486
|
const snapshot = await collectChannels(shell, { rounds: clampInteger(args.rounds, 3, 1, 8), signal: exec.signal })
|
|
485
|
-
return JSON.stringify(
|
|
487
|
+
return JSON.stringify({
|
|
488
|
+
tool: 'diag_wifi_channels',
|
|
489
|
+
target: 'the 5GHz channel occupancy seen from this host',
|
|
490
|
+
operation: 'read the system scan cache and fold neighbours into 80MHz-block availability',
|
|
491
|
+
observed: snapshot,
|
|
492
|
+
confidence: 'observed',
|
|
493
|
+
limitations: [
|
|
494
|
+
'读的是系统扫描缓存:缓存要几轮才收敛,一轮会漏报(本包默认读 3 轮)',
|
|
495
|
+
'只读缓存,不发探测请求、不连接任何东西 —— 因此看不到两次采样之间的变化',
|
|
496
|
+
],
|
|
497
|
+
}, null, 2)
|
|
486
498
|
},
|
|
487
499
|
}))
|
|
488
500
|
|