codex-copilot-dx 0.5.2 → 0.5.3
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 +5 -3
- package/package.json +1 -1
- package/src/package-update.mjs +4 -1
package/README.md
CHANGED
|
@@ -62,9 +62,11 @@ ccdx update github
|
|
|
62
62
|
|
|
63
63
|
The npm source installs `codex-copilot-dx@latest` through the registry already
|
|
64
64
|
configured for npm, including a company mirror. The GitHub source installs the
|
|
65
|
-
latest commit from `DaleXiao/codex-copilot-dx` `main
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
latest commit from `DaleXiao/codex-copilot-dx` `main` and opts in to Git fetching
|
|
66
|
+
for that command, as required by npm 12. It does not change npm's persistent
|
|
67
|
+
`allow-git` setting. Both paths use npm's global installer without shell
|
|
68
|
+
interpolation. A currently running adapter keeps its loaded version until it is
|
|
69
|
+
stopped and started again. The
|
|
68
70
|
`codex-copilot-dx update` compatibility command behaves identically.
|
|
69
71
|
|
|
70
72
|
On first run, it will:
|
package/package.json
CHANGED
package/src/package-update.mjs
CHANGED
|
@@ -16,9 +16,12 @@ export function normalizeUpdateSource(value) {
|
|
|
16
16
|
export function globalUpdateCommand(source, { platform = process.platform } = {}) {
|
|
17
17
|
const normalized = normalizeUpdateSource(source);
|
|
18
18
|
if (!normalized) throw new Error(`Update source must be npm or github: ${source}`);
|
|
19
|
+
const args = ["install", "--global"];
|
|
20
|
+
if (normalized === "github") args.push("--allow-git=all");
|
|
21
|
+
args.push(UPDATE_SPECS[normalized]);
|
|
19
22
|
return {
|
|
20
23
|
command: platform === "win32" ? "npm.cmd" : "npm",
|
|
21
|
-
args
|
|
24
|
+
args,
|
|
22
25
|
source: normalized,
|
|
23
26
|
};
|
|
24
27
|
}
|