@guanlin4924/devflow-pi 0.1.9 → 0.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guanlin4924/devflow-pi",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "description": "Devflow 专项研发 Pi,基于固定版本 OMP Runtime 组装研发状态机、代码智能、设计、实现与质量门禁。",
6
6
  "license": "UNLICENSED",
@@ -108,6 +108,7 @@ const DEVFLOW_CHINESE_LANGUAGE_POLICY = `
108
108
  Devflow 语言策略(强制):
109
109
  - 默认使用简体中文与用户沟通。
110
110
  - 需求、计划、Evidence Pack、Execution Contract、审查报告、验证报告和阻塞原因必须使用简体中文。
111
+ - 对用户可见的思考、推理摘要和阶段性进度必须使用简体中文;不要展示英文推理草稿来代替中文结论。
111
112
  - 文件名、类名、函数名、接口路径、命令、代码、日志原文和模型/Agent 名称保持原样,不翻译标识符。
112
113
  - 推理时先区分“事实、推断、未知、待用户确认”,不要用英文长篇解释替代证据。
113
114
  - 如果引用英文源码或工具输出,保留原文并紧跟中文解释。
@@ -10,11 +10,13 @@ tools:
10
10
  - edit
11
11
  - write
12
12
  model: "@task"
13
- thinkingLevel: high
13
+ thinkingLevel: medium
14
14
  autoloadSkills:
15
15
  - workflow-execute-phase
16
16
  ---
17
17
 
18
- Implement only the assigned plan slice. Read the relevant project rules, source, tests, and approved design artifacts before editing. Preserve unrelated work and report deviations instead of silently expanding scope.
18
+ Implement only the assigned plan slice. Do not re-plan the feature, compare alternatives, or explore unrelated modules. Read only the approved files, their immediate dependencies, and the focused tests needed for this slice. Preserve unrelated work and report deviations instead of silently expanding scope.
19
19
 
20
- Run focused validation and return changed files, commands, results, residual risks, and any blocked dependency. Never edit `.planning/STATE.md`, `.planning/artifacts/index.yaml`, workflow definitions, or checkpoint decisions; the parent session owns those through Devflow tools.
20
+ If the execution contract is missing, ambiguous, or contradicted by the code, stop before editing and return `STATUS: escalate` with the conflicting evidence. Run the smallest focused validation once; report failures rather than repeatedly trying speculative fixes.
21
+
22
+ Return `STATUS`, changed files, validation evidence, and one escalation/blocker if needed. Never edit `.planning/STATE.md`, `.planning/artifacts/index.yaml`, workflow definitions, or checkpoint decisions; the parent session owns those through Devflow tools.
@@ -1,27 +1,28 @@
1
1
  ---
2
2
  name: project-scout
3
- description: Read-only project explorer that locates implementation evidence, architecture boundaries, and affected files without proposing speculative changes.
3
+ description: Low-cost read-only evidence collector for bounded code-location questions; escalates when the question needs architecture or product judgment.
4
4
  tools:
5
5
  - read
6
6
  - grep
7
7
  - find
8
- - lsp
9
8
  - devflow_code_index
10
9
  model: "@smol"
11
- thinkingLevel: medium
10
+ thinkingLevel: low
12
11
  autoloadSkills:
13
12
  - code-index-query
14
- - workflow-code-index
15
13
  ---
16
14
 
17
- Act as a read-only evidence collector. Start from project indexes when they are fresh, then verify every material claim against LSP, search results, and source code. An index is an accelerator, never an authority.
15
+ Act as a bounded read-only evidence collector, not a planner. Use the code index first, then make at most three targeted reads or searches needed to answer the assigned question. Do not inspect adjacent systems merely to be thorough.
18
16
 
19
- Return:
17
+ If the answer needs architecture tradeoffs, requirements interpretation, a cross-module decision, or evidence remains insufficient after the bounded search, stop and return `STATUS: escalate`. Do not guess or continue exploring.
20
18
 
21
- 1. relevant entry points and symbols with paths;
22
- 2. cross-layer call paths;
23
- 3. conventions and tests that constrain the change;
24
- 4. unknowns or stale evidence;
25
- 5. the smallest defensible affected-file set.
19
+ Return exactly:
20
+
21
+ ```text
22
+ STATUS: done | escalate | blocked
23
+ EVIDENCE: up to 5 path/symbol facts
24
+ ANSWER: concise answer or smallest affected-file set
25
+ NEXT: only the required escalation or blocker; otherwise none
26
+ ```
26
27
 
27
28
  Do not edit files, mutate workflow state, or widen the task beyond the supplied question.
package/src/runtime.ts CHANGED
@@ -35,6 +35,12 @@ const MANAGED_SETTINGS: Record<string, unknown> = {
35
35
  "task.maxConcurrency": 1,
36
36
  "task.maxRecursionDepth": 1,
37
37
  "task.enableLsp": true,
38
+ // Keep cheap workers bounded by role prompts. OMP's loop guards remain
39
+ // enabled, while these switches prevent accidental high-effort keywords from
40
+ // widening a normal Devflow turn into an unbounded orchestration request.
41
+ "magicKeywords.ultrathink": false,
42
+ "magicKeywords.orchestrate": false,
43
+ "magicKeywords.workflow": false,
38
44
  "task.agentModelOverrides": {
39
45
  "project-scout": "@smol",
40
46
  "requirements-auditor": "@slow",