@dsh-fly/dsh-plugin-fly-mode 0.1.5 → 0.1.7

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
@@ -1,5 +1,5 @@
1
1
  # 由仓库脚本生成,别手改:node scripts/build-fly-mode-bundle.mjs --out <本文件>
2
- # 两个 preset:Fly 安全模式(preset-fly,7 个安全工具内联 + smart)与
2
+ # 两个 preset:Fly 安全模式(preset-fly,8 个安全工具内联 + smart)与
3
3
  # Fly 标准模式(preset-fly-standard,上游 standard 的行表 + 同一行 smart,无安全工具)。
4
4
  # 同源:安全模式那段声明来自 scripts/lib/fly-profile.mjs 的 seedAgentPreset()(dev 装配写进 profile 的
5
5
  # 是同一条);8 个工具的行名被改写成**本包的子路径**(tools/**,随包一起发布)。
@@ -159,6 +159,7 @@
159
159
  group: true
160
160
  isolate:
161
161
  planMode: true
162
+ # 必须坐在带 isolate realm 的 group 里;否则它往 root realm 发布,挂载即被拒 —— 实测报错原文:
162
163
  config:
163
164
  - id: plan-mode
164
165
  name: '@deepseek-ai/dsh-plan-mode'
@@ -176,6 +177,13 @@
176
177
 
177
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.
178
179
 
180
+ # 评审姿态(docs/fly-review-mode-plan.md):`/review` 开关一段只读引导(先讲阻塞问题、
181
+ # 每条结论带 path:line 证据),收口工具 `exit_review_mode` 把判词交用户裁决。
182
+ # 形状与上面的 plan-mode 同族:姿态的效果就是一段引导 ⇒ 进/出只改提示词段、不改工具目录;
183
+ # 状态记会话日志 ⇒ resume / fork 不丢。**只读是引导、不是强制**(沙箱与审批策略独立执行)。
184
+ # 行保持**裸名**(内联形状的契约):生成器认这个裸名,再把它改写成模式包内的
185
+ # `dsh-plugin-fly-mode/tools/dsh-plugin-fly-review/index.js`(同那 8 个内联工具行);
186
+ # 包内的源码布局则是 `tools/index.js`(内联器照这个路径拷贝)。
179
187
  # ── compaction ──────────────────────────────────────────────────────────────
180
188
 
181
189
  # `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
@@ -324,8 +332,8 @@
324
332
  name: '@dsh-fly/dsh-plugin-fly-mode/tools/dsh-plugin-fly-diag/index.js'
325
333
  - id: tool-fly-recon
326
334
  name: '@dsh-fly/dsh-plugin-fly-mode/tools/dsh-plugin-fly-recon/index.js'
327
- # 客户端黑盒排查链(微信小程序实战沉淀):`bx_proxy` / `bx_flows` / `bx_diff` /
328
- # `bx_doctor` / `bx_ca` / `bx_sysproxy` 六个工具 + 包内 `client-blackbox` skill 资产。
335
+ # 客户端黑盒排查链(微信小程序实战沉淀):`bx_proxy` / `bx_flows` / `bx_har` / `bx_diff` /
336
+ # `bx_doctor` / `bx_ca` / `bx_sysproxy` 七个工具 + 包内 `client-blackbox` skill 资产。
329
337
  # 行形状与上面几个 `tool-fly-*` 完全一致(`id` + `name`,**不**写 `inject`):
330
338
  # 声明面由包自己的 `export const inject` 决定(本包是 `['tools','shell','skills']`)。
331
339
  # 为什么要在注释里点明 `skills`:skill provider 是在 `apply(ctx)` 里用
@@ -336,6 +344,14 @@
336
344
  # 起停代理 / 主动探测 / 改系统代理走 `FLY_ALLOW_INTERCEPT=1` 授权门;只读面永远可用。
337
345
  - id: tool-fly-blackbox
338
346
  name: '@dsh-fly/dsh-plugin-fly-mode/tools/dsh-plugin-fly-blackbox/index.js'
347
+ # 打包产物的静态重建(规划 §3.2,P1):`artifact_asar_inventory`(ASAR 清单:头布局 / 条目数与
348
+ # 大小 / package.json 的 main / *.node 关键成员 / 整档 sha256)与 `artifact_js_boundaries`
349
+ # (解包 JS 树或 asar 里 .js 成员的**字面量**边界:fetch / XHR / WebSocket / URL 字面量与
350
+ # Electron IPC 通道名,每条带 file:line,并显式报覆盖率与截断)。行形状同上(`id` + `name`)。
351
+ # 本包 `inject = ['tools','shell']` —— 只用沙箱化的 shell 接缝读文件,不注册 skill,
352
+ # 所以**不**是 blackbox 那种三项声明面(多写一项 = 申请用不上的服务)。
353
+ - id: tool-fly-artifact
354
+ name: '@dsh-fly/dsh-plugin-fly-mode/tools/dsh-plugin-fly-artifact/index.js'
339
355
  # ── fly smart mode ───────────────────────────────────────────────────────────
340
356
 
341
357
  # Smart 模式(docs/smart-mode-design.md):先设计、后执行、再验收的双模型工作流。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-fly/dsh-plugin-fly-mode",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
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",