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.
- package/README.md +26 -36
- package/package.json +1 -1
- package/src/doctor.mjs +2 -2
- package/src/pm-studio-asar.mjs +136 -22
- package/src/pm-studio-setup.mjs +103 -301
- package/src/pm-studio-status.mjs +15 -22
- package/src/pm-studio-provenance.mjs +0 -701
package/src/pm-studio-status.mjs
CHANGED
|
@@ -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 =
|
|
166
|
+
let recipe = null;
|
|
173
167
|
let compatibilityError = null;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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};
|
|
276
|
-
if (app.state === "unsupported") return { kind: "err", component: "App patch", detail: `${version};
|
|
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
|
}
|