@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
|
@@ -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:
|
|
13
|
+
thinkingLevel: medium
|
|
14
14
|
autoloadSkills:
|
|
15
15
|
- workflow-execute-phase
|
|
16
16
|
---
|
|
17
17
|
|
|
18
|
-
Implement only the assigned plan slice.
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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",
|