codex-copilot-dx 0.6.12 → 0.6.13

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.
@@ -40,12 +40,6 @@ const PM_RELAY_ROUTE_NAMES = Object.freeze([
40
40
  "pm_chat_completions",
41
41
  ]);
42
42
 
43
- function selectRecipe(metadata, recipes) {
44
- return recipes.find((recipe) => recipe.version === String(metadata.version)
45
- && recipe.build === String(metadata.build)
46
- && recipe.bundleIdentifier === String(metadata.bundleIdentifier));
47
- }
48
-
49
43
  function safeMessage(error) {
50
44
  return String(error?.message || "inspection failed").replace(/\s+/g, " ").trim();
51
45
  }
@@ -169,21 +163,20 @@ export async function inspectPmStudioStatus({
169
163
  build: String(metadata.build),
170
164
  bundleIdentifier: String(metadata.bundleIdentifier),
171
165
  };
172
- let recipe = selectRecipe(normalized, recipes);
166
+ let recipe = null;
173
167
  let compatibilityError = null;
174
- if (!recipe) {
175
- try {
176
- recipe = resolveCompatibleRecipe({
177
- appPath,
178
- home,
179
- backupRoot,
180
- metadata: normalized,
181
- recipes,
182
- operations,
183
- });
184
- } catch (error) {
185
- compatibilityError = error;
186
- }
168
+ try {
169
+ recipe = resolveCompatibleRecipe({
170
+ appPath,
171
+ home,
172
+ backupRoot,
173
+ metadata: normalized,
174
+ recipes,
175
+ operations,
176
+ inspectApp,
177
+ });
178
+ } catch (error) {
179
+ compatibilityError = error;
187
180
  }
188
181
  if (recipe) {
189
182
  app = { ...inspectApp({ appPath, recipe, operations }), recipe: recipe.id };
@@ -272,8 +265,8 @@ function appStatusItem(result, commandName) {
272
265
  if (app.state === "legacy") {
273
266
  return { kind: "err", component: "App patch", detail: `${version}; legacy global-origin patch`, message: `PM Studio ${version} has a legacy global-origin patch; run ${commandName} pms setup to migrate` };
274
267
  }
275
- if (app.state === "clean") return { kind: "warn", component: "App patch", detail: `${version}; supported, not patched`, message: `PM Studio ${version} is supported but not patched; run ${commandName} pms setup` };
276
- if (app.state === "unsupported") return { kind: "err", component: "App patch", detail: `${version}; compatibility unverified`, message: `PM Studio ${version} compatibility cannot be safely verified; no files will be changed` };
268
+ if (app.state === "clean") return { kind: "warn", component: "App patch", detail: `${version}; compatible structure, not patched`, message: `PM Studio ${version} has a compatible local patch structure but is not patched; run ${commandName} pms setup` };
269
+ if (app.state === "unsupported") return { kind: "err", component: "App patch", detail: `${version}; structure incompatible`, message: `PM Studio ${version} does not expose one uniquely compatible patch structure; no files will be changed` };
277
270
  if (app.state === "drift" && app.patchRecipeMatched) {
278
271
  return { kind: "err", component: "App patch", detail: `${version}; patch record drift`, message: `PM Studio ${version} matches the patch recipe, but its installed patch record is not verified: ${app.issues.join("; ")}` };
279
272
  }