@guanlin4924/devflow-pi 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guanlin4924/devflow-pi",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "description": "Devflow 专项研发 Pi,基于固定版本 OMP Runtime 组装研发状态机、代码智能、设计、实现与质量门禁。",
6
6
  "license": "UNLICENSED",
@@ -47,7 +47,6 @@ const STATE_MUTATION_TOOLS = new Set([
47
47
  "devflow_bootstrap",
48
48
  "devflow_transition",
49
49
  "devflow_artifact",
50
- "devflow_recovery",
51
50
  "devflow_evidence",
52
51
  ]);
53
52
 
@@ -27,6 +27,7 @@ state_contract:
27
27
  pending_steps:
28
28
  - diagnose
29
29
  - execute-fix
30
+ - code-index-refresh
30
31
  - reverify
31
32
  - lesson
32
33
 
package/src/runtime.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { existsSync } from "node:fs";
2
1
  import { mkdir } from "node:fs/promises";
3
2
  import path from "node:path";
4
3
 
@@ -79,13 +78,12 @@ export async function createEmbeddedRuntime(project: ProjectContext, options: Ru
79
78
  utils.logger.setTransports({ file: path.join(productHome, "logs") });
80
79
  const omp = await import("@oh-my-pi/pi-coding-agent");
81
80
  const roots = pluginRoots();
82
- const configFiles = [path.join(sharedAgentDir, "config.yml"), path.join(sharedAgentDir, "config.yaml")].filter(
83
- candidate => existsSync(candidate),
84
- );
81
+ // Reuse credentials and model discovery from the user's OMP agent, but not
82
+ // its config.yml: a global modelRoles block would override choices made in
83
+ // Devflow's own Roles screen after every restart.
85
84
  const settings = await omp.Settings.init({
86
85
  cwd: project.root,
87
86
  agentDir: productAgentDir,
88
- configFiles,
89
87
  overrides: {
90
88
  ...MANAGED_SETTINGS,
91
89
  // OMP 17.2.7 classifies extension-package skills behind the generic