@dsh-fly/dsh-plugin-fly-mode 0.1.4 → 0.1.6

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,10 @@
159
159
  group: true
160
160
  isolate:
161
161
  planMode: true
162
+ # 评审姿态自己的服务(ReviewModeController 用 super(ctx,'reviewMode') **提供**服务 ⇒
163
+ # 必须坐在带 isolate realm 的 group 里;否则它往 root realm 发布,挂载即被拒 —— 实测报错原文:
164
+ # "Preset services require isolate realms: reviewMode")。
165
+ reviewMode: true
162
166
  config:
163
167
  - id: plan-mode
164
168
  name: '@deepseek-ai/dsh-plan-mode'
@@ -176,6 +180,15 @@
176
180
 
177
181
  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
182
 
183
+ # 评审姿态(docs/fly-review-mode-plan.md):`/review` 开关一段只读引导(先讲阻塞问题、
184
+ # 每条结论带 path:line 证据),收口工具 `exit_review_mode` 把判词交用户裁决。
185
+ # 形状与上面的 plan-mode 同族:姿态的效果就是一段引导 ⇒ 进/出只改提示词段、不改工具目录;
186
+ # 状态记会话日志 ⇒ resume / fork 不丢。**只读是引导、不是强制**(沙箱与审批策略独立执行)。
187
+ # 行保持**裸名**(内联形状的契约):生成器认这个裸名,再把它改写成模式包内的
188
+ # `dsh-plugin-fly-mode/tools/dsh-plugin-fly-review/index.js`(同那 8 个内联工具行);
189
+ # 包内的源码布局则是 `tools/index.js`(内联器照这个路径拷贝)。
190
+ - id: tool-fly-review
191
+ name: '@dsh-fly/dsh-plugin-fly-mode/tools/dsh-plugin-fly-review/index.js'
179
192
  # ── compaction ──────────────────────────────────────────────────────────────
180
193
 
181
194
  # `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
@@ -324,8 +337,8 @@
324
337
  name: '@dsh-fly/dsh-plugin-fly-mode/tools/dsh-plugin-fly-diag/index.js'
325
338
  - id: tool-fly-recon
326
339
  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 资产。
340
+ # 客户端黑盒排查链(微信小程序实战沉淀):`bx_proxy` / `bx_flows` / `bx_har` / `bx_diff` /
341
+ # `bx_doctor` / `bx_ca` / `bx_sysproxy` 七个工具 + 包内 `client-blackbox` skill 资产。
329
342
  # 行形状与上面几个 `tool-fly-*` 完全一致(`id` + `name`,**不**写 `inject`):
330
343
  # 声明面由包自己的 `export const inject` 决定(本包是 `['tools','shell','skills']`)。
331
344
  # 为什么要在注释里点明 `skills`:skill provider 是在 `apply(ctx)` 里用
@@ -336,6 +349,14 @@
336
349
  # 起停代理 / 主动探测 / 改系统代理走 `FLY_ALLOW_INTERCEPT=1` 授权门;只读面永远可用。
337
350
  - id: tool-fly-blackbox
338
351
  name: '@dsh-fly/dsh-plugin-fly-mode/tools/dsh-plugin-fly-blackbox/index.js'
352
+ # 打包产物的静态重建(规划 §3.2,P1):`artifact_asar_inventory`(ASAR 清单:头布局 / 条目数与
353
+ # 大小 / package.json 的 main / *.node 关键成员 / 整档 sha256)与 `artifact_js_boundaries`
354
+ # (解包 JS 树或 asar 里 .js 成员的**字面量**边界:fetch / XHR / WebSocket / URL 字面量与
355
+ # Electron IPC 通道名,每条带 file:line,并显式报覆盖率与截断)。行形状同上(`id` + `name`)。
356
+ # 本包 `inject = ['tools','shell']` —— 只用沙箱化的 shell 接缝读文件,不注册 skill,
357
+ # 所以**不**是 blackbox 那种三项声明面(多写一项 = 申请用不上的服务)。
358
+ - id: tool-fly-artifact
359
+ name: '@dsh-fly/dsh-plugin-fly-mode/tools/dsh-plugin-fly-artifact/index.js'
339
360
  # ── fly smart mode ───────────────────────────────────────────────────────────
340
361
 
341
362
  # Smart 模式(docs/smart-mode-design.md):先设计、后执行、再验收的双模型工作流。
@@ -346,8 +367,10 @@
346
367
  # `inject = ['tools', 'commands', 'systemPrompt']` —— 少一个都会在 apply 里抛,
347
368
  # 而抛 = 整棵 preset 挂载被拒(S6 根因,§12.6)。两个模型路由
348
369
  # (brainRoute/handRoute)留给设置行配置。
370
+ # 2026-10-12 角色对调:裸名 `dsh-plugin-fly-smart` 现在是**宿主平面的面板**(客户端半边
371
+ # 只对裸名行登记),agent 平面的工具在这一行的子路径上。
349
372
  - id: tool-fly-smart
350
- name: dsh-plugin-fly-smart
373
+ name: dsh-plugin-fly-smart/tools/index.js
351
374
  config:
352
375
  enabled: true
353
376
  # 返工额度是**每阶段**的:一个阶段反复迭代不该把后面阶段的预算吃掉。额度耗尽不是强制
@@ -576,7 +599,7 @@
576
599
  name: '@deepseek-ai/dsh-plugin-manager/tools'
577
600
  disabled: true
578
601
  - id: tool-fly-smart
579
- name: dsh-plugin-fly-smart
602
+ name: dsh-plugin-fly-smart/tools/index.js
580
603
  config:
581
604
  enabled: true
582
605
  maxRework: 5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-fly/dsh-plugin-fly-mode",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
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",
@@ -29,6 +29,6 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "dsh-plugin-fly-smart": "^0.1.0"
32
+ "dsh-plugin-fly-smart": "^0.1.2"
33
33
  }
34
34
  }