impel-cli 0.18.15-beta.0 → 0.18.15-beta.1
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 +1 -1
- package/src/macSetup.js +11 -5
- package/src/vendorCliVersions.js +7 -0
- package/src/windowsSetup.js +7 -4
package/package.json
CHANGED
package/src/macSetup.js
CHANGED
|
@@ -7,6 +7,7 @@ import { spawnSync } from "node:child_process";
|
|
|
7
7
|
import { ensureImpelClaudeProfile, ensureImpelCodexProfile } from "./cliProfiles.js";
|
|
8
8
|
import { findNativeBinary } from "./nativeProcess.js";
|
|
9
9
|
import { syncSkillsSafe } from "./skills.js";
|
|
10
|
+
import { PINNED_VENDOR_CLI_VERSIONS } from "./vendorCliVersions.js";
|
|
10
11
|
|
|
11
12
|
const MAX_INSTALLER_BYTES = 512 * 1024;
|
|
12
13
|
const INSTALLER_DOWNLOAD_TIMEOUT_MS = 30_000;
|
|
@@ -19,26 +20,31 @@ const MAC_SIGNING_TEAMS = Object.freeze({ claude: "Q6L2SF6YDW", codex: "2DC432GL
|
|
|
19
20
|
*/
|
|
20
21
|
export const MAC_CLI_INSTALLERS = Object.freeze({
|
|
21
22
|
claude: Object.freeze({
|
|
23
|
+
version: PINNED_VENDOR_CLI_VERSIONS.claude,
|
|
22
24
|
url: "https://claude.ai/install.sh",
|
|
23
25
|
trustedOrigins: Object.freeze([
|
|
24
26
|
"https://claude.ai",
|
|
25
27
|
"https://downloads.claude.ai",
|
|
26
28
|
]),
|
|
27
29
|
sha256: "cde4f1702d3b1695f92b73d26888364e17bca476e17f0fd676484c951d36c125",
|
|
28
|
-
command:
|
|
29
|
-
args: Object.freeze([
|
|
30
|
+
command: `curl -fsSL https://claude.ai/install.sh | bash -s ${PINNED_VENDOR_CLI_VERSIONS.claude}`,
|
|
31
|
+
args: Object.freeze([PINNED_VENDOR_CLI_VERSIONS.claude]),
|
|
30
32
|
environment: Object.freeze({}),
|
|
31
33
|
}),
|
|
32
34
|
codex: Object.freeze({
|
|
35
|
+
version: PINNED_VENDOR_CLI_VERSIONS.codex,
|
|
33
36
|
url: "https://chatgpt.com/codex/install.sh",
|
|
34
37
|
trustedOrigins: Object.freeze([
|
|
35
38
|
"https://chatgpt.com",
|
|
36
39
|
"https://releases.openai.com",
|
|
37
40
|
]),
|
|
38
|
-
sha256: "
|
|
39
|
-
command:
|
|
41
|
+
sha256: "ba92dd27e5c06f0d3bbc58bfa4b9cfb6599cd2742fbb1f92a2765e6c07dedb5a",
|
|
42
|
+
command: `curl -fsSL https://chatgpt.com/codex/install.sh | CODEX_NON_INTERACTIVE=1 CODEX_RELEASE=${PINNED_VENDOR_CLI_VERSIONS.codex} sh`,
|
|
40
43
|
args: Object.freeze([]),
|
|
41
|
-
environment: Object.freeze({
|
|
44
|
+
environment: Object.freeze({
|
|
45
|
+
CODEX_NON_INTERACTIVE: "1",
|
|
46
|
+
CODEX_RELEASE: PINNED_VENDOR_CLI_VERSIONS.codex,
|
|
47
|
+
}),
|
|
42
48
|
}),
|
|
43
49
|
});
|
|
44
50
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Exact vendor CLI releases reviewed for this impel-cli build. Keep macOS and
|
|
2
|
+
// Windows installers on the same versions; do not replace these with moving
|
|
3
|
+
// channels such as "stable" or "latest".
|
|
4
|
+
export const PINNED_VENDOR_CLI_VERSIONS = Object.freeze({
|
|
5
|
+
claude: "2.1.212",
|
|
6
|
+
codex: "0.146.0",
|
|
7
|
+
});
|
package/src/windowsSetup.js
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
nativeSpawnInvocation,
|
|
9
9
|
} from "./nativeProcess.js";
|
|
10
10
|
import { syncSkillsSafe } from "./skills.js";
|
|
11
|
+
import { PINNED_VENDOR_CLI_VERSIONS } from "./vendorCliVersions.js";
|
|
11
12
|
import { provisionWindowsGit } from "./windowsGit.js";
|
|
12
13
|
|
|
13
14
|
const POWERSHELL_ARGS = [
|
|
@@ -27,12 +28,14 @@ const POWERSHELL_ARGS = [
|
|
|
27
28
|
*/
|
|
28
29
|
export const WINDOWS_CLI_INSTALLERS = Object.freeze({
|
|
29
30
|
claude: Object.freeze({
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
version: PINNED_VENDOR_CLI_VERSIONS.claude,
|
|
32
|
+
command: `powershell -ExecutionPolicy Bypass -NoProfile -Command "& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) '${PINNED_VENDOR_CLI_VERSIONS.claude}'"`,
|
|
33
|
+
script: `& ([scriptblock]::Create((Invoke-RestMethod -Uri 'https://claude.ai/install.ps1'))) '${PINNED_VENDOR_CLI_VERSIONS.claude}'`,
|
|
32
34
|
}),
|
|
33
35
|
codex: Object.freeze({
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
version: PINNED_VENDOR_CLI_VERSIONS.codex,
|
|
37
|
+
command: `powershell -ExecutionPolicy Bypass -NoProfile -Command "[Environment]::SetEnvironmentVariable('CODEX_NON_INTERACTIVE','1','Process'); & ([scriptblock]::Create((irm https://chatgpt.com/codex/install.ps1))) -Release '${PINNED_VENDOR_CLI_VERSIONS.codex}'"`,
|
|
38
|
+
script: `[Environment]::SetEnvironmentVariable('CODEX_NON_INTERACTIVE', '1', 'Process'); & ([scriptblock]::Create((Invoke-RestMethod -Uri 'https://chatgpt.com/codex/install.ps1'))) -Release '${PINNED_VENDOR_CLI_VERSIONS.codex}'`,
|
|
36
39
|
}),
|
|
37
40
|
});
|
|
38
41
|
|