pushary 1.9.176 → 1.9.178
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/CHANGELOG.md +10 -0
- package/dist/{api-HKDF4HUI.js → api-Y4XA3RLD.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +38 -38
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +81 -40
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +34 -34
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +102 -78
- package/dist/bin/pushary-disconnect.js +29 -29
- package/dist/bin/pushary-display-hook.js +33 -1
- package/dist/bin/pushary-doctor.js +62 -48
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +20 -33
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +36 -36
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +29 -29
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.d.ts +1 -0
- package/dist/bin/pushary-opencode-bridge.js +576 -0
- package/dist/bin/pushary-opencode-hook.js +33 -33
- package/dist/bin/pushary-permission-denied-hook.js +36 -36
- package/dist/bin/pushary-permission-hook.js +36 -36
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +38 -38
- package/dist/bin/pushary-sessions.js +14 -14
- package/dist/bin/pushary-setup.js +58 -58
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +35 -35
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +45 -44
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-AFN7QVA3.js → chunk-247ADQBU.js} +7 -7
- package/dist/{chunk-YKOQ432L.js → chunk-25PD2NWC.js} +3 -3
- package/dist/{chunk-OIVFH66C.js → chunk-2CKP2FXL.js} +3 -3
- package/dist/{chunk-XUHE6XZC.js → chunk-2GFMA5F6.js} +1 -1
- package/dist/{chunk-5YCBMSQ5.js → chunk-2O5VF2QP.js} +5 -5
- package/dist/{chunk-AARWOJLD.js → chunk-2VQNNQCL.js} +1 -1
- package/dist/{chunk-SFJTCSBC.js → chunk-3CLTRY7V.js} +3 -3
- package/dist/{chunk-SZTB7X2F.js → chunk-3F6SGTZP.js} +12 -12
- package/dist/{chunk-62QSMUXP.js → chunk-3GE7GJMQ.js} +2 -2
- package/dist/{chunk-MMQPOOEO.js → chunk-3VM7CX4Z.js} +2 -2
- package/dist/{chunk-P3CSTJ4U.js → chunk-3WK3ZOMA.js} +22 -1
- package/dist/{chunk-REJKLD33.js → chunk-426PTJL4.js} +4 -4
- package/dist/{chunk-E3Q4PPT2.js → chunk-4DMRIGY5.js} +4 -4
- package/dist/{chunk-N2IXM43C.js → chunk-4KSQRCH5.js} +6 -6
- package/dist/{chunk-35G4EP75.js → chunk-52U74DDW.js} +2 -2
- package/dist/{chunk-QJ5CHRK7.js → chunk-55LUC2XS.js} +7 -6
- package/dist/{chunk-HP3CGRSN.js → chunk-5ATP6NKJ.js} +9 -9
- package/dist/{chunk-BTURZF5T.js → chunk-5I7OXXV6.js} +2 -2
- package/dist/{chunk-JPAG6LFV.js → chunk-5XUN2ATK.js} +12 -25
- package/dist/{chunk-GTZAV2C5.js → chunk-6CIKM5GN.js} +1 -1
- package/dist/{chunk-DTVZOI3P.js → chunk-6KHVI5GM.js} +4 -4
- package/dist/{chunk-3ZYXWHVC.js → chunk-7C2YDR2P.js} +2 -2
- package/dist/{chunk-GMJT73OD.js → chunk-7EH5V64U.js} +5 -5
- package/dist/{chunk-W7GT3CQ2.js → chunk-7PSU6TXK.js} +114 -15
- package/dist/{chunk-FX7OHXSS.js → chunk-A767YPE5.js} +5 -5
- package/dist/{chunk-YYI6OSY7.js → chunk-AIBJGDBE.js} +2 -2
- package/dist/{chunk-MPVNNWB7.js → chunk-AQEJRCRK.js} +1 -1
- package/dist/{chunk-5IMANOES.js → chunk-ASMMRKHJ.js} +6 -6
- package/dist/{chunk-N6DXMU4B.js → chunk-B4R55F4P.js} +3 -3
- package/dist/{chunk-K67ODHSQ.js → chunk-C3MRJDTL.js} +1 -1
- package/dist/{chunk-3YRDILR5.js → chunk-CN7AHMS3.js} +5 -5
- package/dist/{chunk-32B47XDJ.js → chunk-CSY7A6UE.js} +6 -6
- package/dist/{chunk-3G5MYQAW.js → chunk-D4RE37P7.js} +29 -8
- package/dist/{chunk-2QAYI67U.js → chunk-DGWLGPR3.js} +5 -5
- package/dist/{chunk-YJ2SYX6E.js → chunk-DITKCHAY.js} +1 -1
- package/dist/{chunk-OS47GTXC.js → chunk-DKZJDNTJ.js} +2 -2
- package/dist/{chunk-4CGAP5FK.js → chunk-E2JUP323.js} +2 -2
- package/dist/{chunk-YYTWOEVU.js → chunk-ESCQRNNN.js} +4 -4
- package/dist/{chunk-UYATTR34.js → chunk-FA4MQUX3.js} +4 -4
- package/dist/{chunk-FNIWB2SF.js → chunk-FEFIMTBN.js} +6 -6
- package/dist/{chunk-NGR6Z3XV.js → chunk-FIFFXOEQ.js} +3 -3
- package/dist/{chunk-LE3K3ATT.js → chunk-GSOMT5RJ.js} +3 -3
- package/dist/{chunk-LCRF7HAY.js → chunk-GWYSHO6R.js} +3 -3
- package/dist/{chunk-FCP5RKB5.js → chunk-HZ5N2WGD.js} +4 -4
- package/dist/{chunk-IE6AT2WY.js → chunk-I3RQS5F6.js} +10 -10
- package/dist/{chunk-EP52XR6V.js → chunk-IK442FLD.js} +4 -4
- package/dist/{chunk-Q2U2JJKN.js → chunk-IMVJ3H2C.js} +18 -18
- package/dist/{chunk-JLDZKC7C.js → chunk-IMZ2O6I7.js} +1 -1
- package/dist/{chunk-LQMJJPUZ.js → chunk-IWOP6BX2.js} +6 -6
- package/dist/{chunk-EORZZO65.js → chunk-JE42QYDU.js} +6 -1
- package/dist/{chunk-PI7Y4RP5.js → chunk-JLR4IGC2.js} +1 -1
- package/dist/{chunk-UTBF532I.js → chunk-JWZZO6T5.js} +19 -0
- package/dist/{chunk-O7RSKV2Z.js → chunk-KQRATFYV.js} +1 -1
- package/dist/{chunk-ZF5OOZYY.js → chunk-L2WALXZE.js} +5 -5
- package/dist/{chunk-TD77E4IG.js → chunk-L7OCJAEF.js} +5 -5
- package/dist/{chunk-37MNIPTT.js → chunk-LPUBT3LM.js} +4 -4
- package/dist/{chunk-MPDJBJMJ.js → chunk-MTZOVCWL.js} +1 -1
- package/dist/{chunk-LMHNRNXY.js → chunk-NA3GEZG4.js} +6 -6
- package/dist/{chunk-QKBGPBTG.js → chunk-NBMWRS3J.js} +2 -2
- package/dist/{chunk-4HBW4LQA.js → chunk-NCXJE3LY.js} +1 -1
- package/dist/{chunk-4XXSXD6V.js → chunk-NNVIWYDZ.js} +3 -3
- package/dist/{chunk-7BS6GDNH.js → chunk-O2FHVZCR.js} +4 -4
- package/dist/{chunk-RXWTLPC2.js → chunk-OAK44Y4T.js} +1 -1
- package/dist/{chunk-33LHUEVR.js → chunk-OB3KVRKZ.js} +2 -2
- package/dist/{chunk-E2BTTHFS.js → chunk-OI4JRC3E.js} +2 -2
- package/dist/{chunk-MP6ZJBDX.js → chunk-OMHNCIKL.js} +4 -4
- package/dist/{chunk-4632OXAT.js → chunk-PDIPCZRU.js} +2 -2
- package/dist/{chunk-PI3EX3VU.js → chunk-PO6UUHBD.js} +1 -1
- package/dist/{chunk-OIPN6XBI.js → chunk-Q356XS2F.js} +1 -1
- package/dist/{chunk-NTM53JUG.js → chunk-RCXQPIRI.js} +1 -1
- package/dist/{chunk-KALND7MK.js → chunk-RKWA5PRV.js} +1 -1
- package/dist/{chunk-47CLYXO4.js → chunk-S4RR2SW2.js} +1 -1
- package/dist/{chunk-NQ5OIMQM.js → chunk-SUVMKXJM.js} +14 -11
- package/dist/{chunk-KLNNWG4Q.js → chunk-T6PQ47XZ.js} +3 -3
- package/dist/{chunk-22YIXSYO.js → chunk-W4LIY2RO.js} +1 -1
- package/dist/{chunk-ST7NYREC.js → chunk-WBPHMW55.js} +2 -2
- package/dist/{chunk-SGYE4TSV.js → chunk-WBSJ2GNP.js} +1 -1
- package/dist/{chunk-4KDNWZY5.js → chunk-WP52TPG6.js} +5 -5
- package/dist/{chunk-AWTLZVZY.js → chunk-WYNYVOJ2.js} +5 -5
- package/dist/{chunk-PXYVGBX5.js → chunk-XXUNYVUE.js} +2 -2
- package/dist/{codex-app-cards-switch-R3AQ7GCL.js → codex-app-cards-switch-IRV5H4QX.js} +11 -11
- package/dist/{codex-card-routing-MINRBWOA.js → codex-card-routing-GLYARSKQ.js} +2 -2
- package/dist/{codex-desktop-launch-IM7LRNWD.js → codex-desktop-launch-3QB4LAYW.js} +1 -1
- package/dist/{codex-session-launch-5LVPMCPB.js → codex-session-launch-ISLV5J36.js} +20 -20
- package/dist/{config-JZAIUJYX.js → config-V7FP5LRI.js} +3 -3
- package/dist/{global-upgrade-N6W3SRLW.js → global-upgrade-L3D27Z2N.js} +9 -9
- package/dist/{identity-5DYBKLN4.js → identity-IFUX72BS.js} +4 -4
- package/dist/{live-capabilities-3MCCEAF5.js → live-capabilities-XWR6FVYJ.js} +28 -4
- package/dist/{paths-HDL3JGPR.js → paths-NQ4U74JJ.js} +3 -3
- package/dist/{reapply-WOVIOPFX.js → reapply-PPKLBFB7.js} +31 -31
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-AIEM2X72.js → upgrade-lock-PSOXTS7H.js} +4 -4
- package/dist/{usage-5RBIRZ6S.js → usage-RFWDFYXH.js} +3 -3
- package/package.json +2 -1
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7PSU6TXK.js";
|
|
7
7
|
import {
|
|
8
8
|
daemonHasRemoteProof,
|
|
9
9
|
daemonServiceManagerAvailable,
|
|
10
10
|
hasDaemonServiceDefinition,
|
|
11
11
|
readDaemonNeedsLogin,
|
|
12
12
|
readDaemonStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ASMMRKHJ.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RKWA5PRV.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GWYSHO6R.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KQRATFYV.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
26
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3GE7GJMQ.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-TCE3J44Z.js";
|
|
@@ -12,8 +12,9 @@ import {
|
|
|
12
12
|
resolvePackageVersionFromBinary,
|
|
13
13
|
resolvePathBinary,
|
|
14
14
|
resolvePathBinaryAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FA4MQUX3.js";
|
|
16
16
|
import {
|
|
17
|
+
AGENTS,
|
|
17
18
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
18
19
|
CLAUDE_RESUME_CAPABILITY,
|
|
19
20
|
CODEX_BRIDGE_CAPABILITY,
|
|
@@ -21,13 +22,16 @@ import {
|
|
|
21
22
|
GEMINI_BRIDGE_CAPABILITY,
|
|
22
23
|
GEMINI_RESUME_CAPABILITY,
|
|
23
24
|
MANAGED_PROVIDERS,
|
|
25
|
+
OPENCODE_BRIDGE_CAPABILITY,
|
|
24
26
|
SPAWN_CAPABILITY,
|
|
25
27
|
sessionProvidersAdvertisedBy
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JWZZO6T5.js";
|
|
27
29
|
|
|
28
30
|
// src/live-capabilities.ts
|
|
31
|
+
import { execFileSync } from "child_process";
|
|
29
32
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
30
33
|
import { homedir } from "os";
|
|
34
|
+
import { join as join2 } from "path";
|
|
31
35
|
|
|
32
36
|
// src/setup/codex-install-probe.ts
|
|
33
37
|
import { existsSync, readdirSync, statSync } from "fs";
|
|
@@ -97,6 +101,11 @@ var codexInstallHealthAt = (binary) => checkCodexInstall(nodeCodexInstallProbe((
|
|
|
97
101
|
|
|
98
102
|
// src/live-capabilities.ts
|
|
99
103
|
var GEMINI_BRIDGE_MIN_VERSION = [0, 40, 0];
|
|
104
|
+
var OPENCODE_BRIDGE_MIN_MAJOR = 2;
|
|
105
|
+
var OPENCODE_PACKAGE = "opencode-ai";
|
|
106
|
+
var OPENCODE_VERSION_TIMEOUT_MS = 3e3;
|
|
107
|
+
var OPENCODE_VERSION_OUTPUT = /\bv?(\d+\.\d+\.\d+)\b/;
|
|
108
|
+
var OPENCODE_DESKTOP_CLI = "/Applications/OpenCode.app/Contents/Resources/opencode-cli";
|
|
100
109
|
var version = (raw) => {
|
|
101
110
|
const match = raw?.match(/^(\d+)\.(\d+)\.(\d+)/);
|
|
102
111
|
return match ? [Number(match[1]), Number(match[2]), Number(match[3])] : null;
|
|
@@ -110,10 +119,16 @@ var geminiLiveCapabilities = (rawVersion) => {
|
|
|
110
119
|
}
|
|
111
120
|
return [GEMINI_BRIDGE_CAPABILITY, GEMINI_RESUME_CAPABILITY];
|
|
112
121
|
};
|
|
122
|
+
var openCodeLiveCapabilities = (rawVersion) => {
|
|
123
|
+
const installed = version(rawVersion);
|
|
124
|
+
return installed && installed[0] >= OPENCODE_BRIDGE_MIN_MAJOR ? [OPENCODE_BRIDGE_CAPABILITY] : [];
|
|
125
|
+
};
|
|
126
|
+
var openCodeVersionFromOutput = (output) => OPENCODE_VERSION_OUTPUT.exec(output)?.[1];
|
|
113
127
|
var providerLiveCapabilities = (probe) => [
|
|
114
128
|
...probe.claude ? [CLAUDE_BRIDGE_CAPABILITY, CLAUDE_RESUME_CAPABILITY] : [],
|
|
115
129
|
...probe.codex ? [CODEX_BRIDGE_CAPABILITY, CODEX_RESUME_CAPABILITY] : [],
|
|
116
|
-
...geminiLiveCapabilities(probe.geminiVersion)
|
|
130
|
+
...geminiLiveCapabilities(probe.geminiVersion),
|
|
131
|
+
...openCodeLiveCapabilities(probe.openCodeVersion)
|
|
117
132
|
];
|
|
118
133
|
var launchableProviders = sessionProvidersAdvertisedBy;
|
|
119
134
|
var hasSpawnProvider = (capabilities) => launchableProviders(capabilities).length > 0;
|
|
@@ -129,13 +144,89 @@ var missingControlPrerequisite = (input) => {
|
|
|
129
144
|
return null;
|
|
130
145
|
};
|
|
131
146
|
var WHAT_REQUIRED_PHONE_START_LACKS = {
|
|
132
|
-
provider: "install and configure a supported Claude Code, Codex or
|
|
147
|
+
provider: "install and configure a supported Claude Code, Codex, Gemini or OpenCode provider",
|
|
133
148
|
"service-manager": "no native background-service manager is available in this OS session"
|
|
134
149
|
};
|
|
135
150
|
var describeMissingControlPrerequisite = (missing) => WHAT_REQUIRED_PHONE_START_LACKS[missing];
|
|
136
151
|
var phoneStartIsRequired = (input) => input.mode === "on" || input.policy === "legacy" || input.lifecycleFailed;
|
|
152
|
+
var isManagedProvider = (value) => MANAGED_PROVIDERS.some((provider) => provider === value);
|
|
153
|
+
var MANAGED_PROVIDER_OF_AGENT = new Map(
|
|
154
|
+
Object.entries(AGENTS).flatMap(([agent, entry]) => entry.sessionRuntime ? [[agent, entry.sessionRuntime.provider]] : [])
|
|
155
|
+
);
|
|
156
|
+
var isManagedProviderAgent = (agent) => MANAGED_PROVIDER_OF_AGENT.has(agent);
|
|
157
|
+
var managedProvidersOfAgents = (agents) => agents.flatMap((agent) => {
|
|
158
|
+
const provider = MANAGED_PROVIDER_OF_AGENT.get(agent);
|
|
159
|
+
return provider ? [provider] : [];
|
|
160
|
+
});
|
|
161
|
+
var openCodeLaunchReadiness = (binary, reported) => {
|
|
162
|
+
if (!binary) return { kind: "missing" };
|
|
163
|
+
if (!reported || !version(reported)) return { kind: "unreadable", binary };
|
|
164
|
+
return openCodeLiveCapabilities(reported).length > 0 ? { kind: "ready", binary, version: reported } : { kind: "too_old", binary, version: reported };
|
|
165
|
+
};
|
|
166
|
+
var describeOpenCodeLaunchReadiness = (readiness) => {
|
|
167
|
+
switch (readiness.kind) {
|
|
168
|
+
case "ready":
|
|
169
|
+
return `OpenCode ${readiness.version} at ${readiness.binary}`;
|
|
170
|
+
case "missing":
|
|
171
|
+
return "no OpenCode program on PATH, in ~/.opencode/bin or in OpenCode.app";
|
|
172
|
+
case "unreadable":
|
|
173
|
+
return `could not read the version of ${readiness.binary}`;
|
|
174
|
+
case "too_old":
|
|
175
|
+
return `OpenCode ${readiness.version} at ${readiness.binary}; starting it from the phone needs OpenCode 2`;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
137
178
|
var preferGlobalProviderBinary = (platform) => platform === "win32";
|
|
138
|
-
var
|
|
179
|
+
var isExecutableFile = (path) => {
|
|
180
|
+
try {
|
|
181
|
+
accessSync(path, constants.X_OK);
|
|
182
|
+
return statSync2(path).isFile();
|
|
183
|
+
} catch {
|
|
184
|
+
return false;
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
var openCodeInstallCandidates = (home, platform) => [
|
|
188
|
+
...platform === "win32" ? [] : [join2(home, ".opencode", "bin", "opencode")],
|
|
189
|
+
...platform === "darwin" ? [OPENCODE_DESKTOP_CLI] : []
|
|
190
|
+
];
|
|
191
|
+
var nativeInstallOf = (provider, platform, home) => {
|
|
192
|
+
if (provider === "claude") return findNativeClaudeInstall(home, platform);
|
|
193
|
+
if (provider === "opencode") return openCodeInstallCandidates(home, platform).find(isExecutableFile);
|
|
194
|
+
return void 0;
|
|
195
|
+
};
|
|
196
|
+
var FAILED_VERSION_CHECK_RETRY_MS = 5 * 6e4;
|
|
197
|
+
var reportedVersions = /* @__PURE__ */ new Map();
|
|
198
|
+
var rememberedVersionHolds = (remembered, stamp, at) => remembered?.stamp === stamp && (remembered.version !== void 0 || at - remembered.checkedAt < FAILED_VERSION_CHECK_RETRY_MS);
|
|
199
|
+
var fileStamp = (path) => {
|
|
200
|
+
try {
|
|
201
|
+
const stats = statSync2(path);
|
|
202
|
+
return `${stats.mtimeMs}:${stats.size}`;
|
|
203
|
+
} catch {
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
var versionOutputOf = (binary) => {
|
|
208
|
+
try {
|
|
209
|
+
return execFileSync(binary, ["--version"], {
|
|
210
|
+
encoding: "utf8",
|
|
211
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
212
|
+
timeout: OPENCODE_VERSION_TIMEOUT_MS,
|
|
213
|
+
windowsHide: true
|
|
214
|
+
});
|
|
215
|
+
} catch {
|
|
216
|
+
return "";
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
var readOpenCodeVersion = (binary, at = Date.now()) => {
|
|
220
|
+
const packaged = resolvePackageVersionFromBinary(binary, OPENCODE_PACKAGE);
|
|
221
|
+
if (packaged) return packaged;
|
|
222
|
+
const stamp = fileStamp(binary);
|
|
223
|
+
if (stamp === null) return void 0;
|
|
224
|
+
const remembered = reportedVersions.get(binary);
|
|
225
|
+
if (remembered && rememberedVersionHolds(remembered, stamp, at)) return remembered.version;
|
|
226
|
+
const reported = openCodeVersionFromOutput(versionOutputOf(binary));
|
|
227
|
+
reportedVersions.set(binary, { stamp, version: reported, checkedAt: at });
|
|
228
|
+
return reported;
|
|
229
|
+
};
|
|
139
230
|
var resolveProviderBinary = (provider, platform = process.platform, home = homedir()) => (preferGlobalProviderBinary(platform) ? resolveGlobalBinary(provider) ?? resolvePathBinary(provider, platform) : resolvePathBinary(provider, platform) ?? resolveGlobalBinary(provider)) ?? nativeInstallOf(provider, platform, home);
|
|
140
231
|
var codexBinaryIsBroken = (binary) => codexInstallHealthAt(binary).kind === "binary-missing";
|
|
141
232
|
var detectCapabilities = (providers, codexCanStart, home) => {
|
|
@@ -143,10 +234,12 @@ var detectCapabilities = (providers, codexCanStart, home) => {
|
|
|
143
234
|
const binaryFor = (provider) => enabled.has(provider) ? resolveProviderBinary(provider, process.platform, home) : void 0;
|
|
144
235
|
const codexBin = binaryFor("codex");
|
|
145
236
|
const geminiBin = binaryFor("gemini");
|
|
237
|
+
const openCodeBin = binaryFor("opencode");
|
|
146
238
|
return providerLiveCapabilities({
|
|
147
239
|
claude: binaryFor("claude") !== void 0,
|
|
148
240
|
codex: codexBin !== void 0 && codexCanStart(codexBin),
|
|
149
|
-
geminiVersion: geminiBin ? resolvePackageVersionFromBinary(geminiBin, "@google/gemini-cli") ?? resolveGlobalPackageVersion("@google/gemini-cli") : void 0
|
|
241
|
+
geminiVersion: geminiBin ? resolvePackageVersionFromBinary(geminiBin, "@google/gemini-cli") ?? resolveGlobalPackageVersion("@google/gemini-cli") : void 0,
|
|
242
|
+
openCodeVersion: openCodeBin ? readOpenCodeVersion(openCodeBin) : void 0
|
|
150
243
|
});
|
|
151
244
|
};
|
|
152
245
|
var anyInstalledCodex = () => true;
|
|
@@ -159,20 +252,15 @@ var inspectProviderBinaries = (candidates) => {
|
|
|
159
252
|
const binaries = {};
|
|
160
253
|
for (const provider of MANAGED_PROVIDERS) {
|
|
161
254
|
const binary = candidates[provider];
|
|
162
|
-
if (
|
|
163
|
-
try {
|
|
164
|
-
accessSync(binary, constants.X_OK);
|
|
165
|
-
if (statSync2(binary).isFile()) binaries[provider] = binary;
|
|
166
|
-
} catch {
|
|
167
|
-
continue;
|
|
168
|
-
}
|
|
255
|
+
if (binary && isExecutableFile(binary)) binaries[provider] = binary;
|
|
169
256
|
}
|
|
170
257
|
return {
|
|
171
258
|
binaries,
|
|
172
259
|
capabilities: providerLiveCapabilities({
|
|
173
260
|
claude: binaries.claude !== void 0,
|
|
174
261
|
codex: binaries.codex !== void 0 && !codexBinaryIsBroken(binaries.codex),
|
|
175
|
-
geminiVersion: binaries.gemini ? resolvePackageVersionFromBinary(binaries.gemini, "@google/gemini-cli") : void 0
|
|
262
|
+
geminiVersion: binaries.gemini ? resolvePackageVersionFromBinary(binaries.gemini, "@google/gemini-cli") : void 0,
|
|
263
|
+
openCodeVersion: binaries.opencode ? readOpenCodeVersion(binaries.opencode) : void 0
|
|
176
264
|
})
|
|
177
265
|
};
|
|
178
266
|
};
|
|
@@ -217,7 +305,10 @@ var trackProviderInventory = async (providers, onChange, home = homedir()) => {
|
|
|
217
305
|
export {
|
|
218
306
|
checkCodexInstall,
|
|
219
307
|
nodeCodexInstallProbe,
|
|
308
|
+
OPENCODE_DESKTOP_CLI,
|
|
220
309
|
geminiLiveCapabilities,
|
|
310
|
+
openCodeLiveCapabilities,
|
|
311
|
+
openCodeVersionFromOutput,
|
|
221
312
|
providerLiveCapabilities,
|
|
222
313
|
launchableProviders,
|
|
223
314
|
hasSpawnProvider,
|
|
@@ -225,6 +316,14 @@ export {
|
|
|
225
316
|
missingControlPrerequisite,
|
|
226
317
|
describeMissingControlPrerequisite,
|
|
227
318
|
phoneStartIsRequired,
|
|
319
|
+
isManagedProvider,
|
|
320
|
+
isManagedProviderAgent,
|
|
321
|
+
managedProvidersOfAgents,
|
|
322
|
+
openCodeLaunchReadiness,
|
|
323
|
+
describeOpenCodeLaunchReadiness,
|
|
324
|
+
isExecutableFile,
|
|
325
|
+
openCodeInstallCandidates,
|
|
326
|
+
readOpenCodeVersion,
|
|
228
327
|
resolveProviderBinary,
|
|
229
328
|
codexBinaryIsBroken,
|
|
230
329
|
detectProviderLiveCapabilities,
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3CLTRY7V.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-B4R55F4P.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GWYSHO6R.js";
|
|
14
14
|
import {
|
|
15
15
|
CLINE_SERVER_NAME_TAKEN,
|
|
16
16
|
CLINE_SETTINGS_REFUSALS,
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
withClinePusharyServer,
|
|
33
33
|
withRefreshedClineKey,
|
|
34
34
|
withoutClinePusharyServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-7C2YDR2P.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveGlobalBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FA4MQUX3.js";
|
|
39
39
|
import {
|
|
40
40
|
readJsonSafe,
|
|
41
41
|
writeFileAtomic,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7C2YDR2P.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FA4MQUX3.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./chunk-VRNGMRJA.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RKWA5PRV.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GWYSHO6R.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7C2YDR2P.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FA4MQUX3.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KQRATFYV.js";
|
|
20
20
|
import {
|
|
21
21
|
readJsonSafe,
|
|
22
22
|
writeFileAtomic,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-UQTQ6HPO.js";
|
|
33
33
|
import {
|
|
34
34
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JWZZO6T5.js";
|
|
36
36
|
|
|
37
37
|
// src/daemon-entry-guard.ts
|
|
38
38
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2O5VF2QP.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IMZ2O6I7.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DITKCHAY.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp-stdio-bridge.ts
|
|
12
12
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GSOMT5RJ.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CSY7A6UE.js";
|
|
7
7
|
import {
|
|
8
8
|
nativeClaudeInstallPath
|
|
9
9
|
} from "./chunk-TCE3J44Z.js";
|
|
10
10
|
import {
|
|
11
11
|
grokHome
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WYNYVOJ2.js";
|
|
13
13
|
import {
|
|
14
14
|
claudeConfigDir,
|
|
15
15
|
clineDataDirectory,
|
|
16
16
|
codexHomeFrom,
|
|
17
17
|
openClawEnvironmentOf,
|
|
18
18
|
openClawPathsFrom
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7C2YDR2P.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JWZZO6T5.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
openCodePluginArgv,
|
|
11
11
|
openCodePluginModule,
|
|
12
12
|
renderOpenCodePlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D4RE37P7.js";
|
|
14
14
|
import {
|
|
15
15
|
compatibleConfigFile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WYNYVOJ2.js";
|
|
17
17
|
import {
|
|
18
18
|
hookOwnerOf,
|
|
19
19
|
hookOwnerOfCommands
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LPUBT3LM.js";
|
|
21
21
|
import {
|
|
22
22
|
AGENT_CHOICES
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6CIKM5GN.js";
|
|
24
24
|
import {
|
|
25
25
|
OPENCODE_INSTRUCTIONS_LABEL,
|
|
26
26
|
bridgeStub,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
resolveBridgeStub,
|
|
35
35
|
vscodePluginDir,
|
|
36
36
|
windowsNodeLauncherFor
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7C2YDR2P.js";
|
|
38
38
|
import {
|
|
39
39
|
readJsonSafe
|
|
40
40
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
OPENCODE_APPROVAL_EVENT,
|
|
45
45
|
hookCompatibleProfile,
|
|
46
46
|
isRecord
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-JWZZO6T5.js";
|
|
48
48
|
|
|
49
49
|
// src/opencode-config.ts
|
|
50
50
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
HOOK_BUDGETS,
|
|
4
4
|
KILL_REASON,
|
|
5
5
|
OPENCODE_APPROVAL_EVENT
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JWZZO6T5.js";
|
|
7
7
|
|
|
8
8
|
// src/opencode-plugin.ts
|
|
9
9
|
var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
|
|
@@ -39,6 +39,19 @@ var OPENCODE_SERVICE_REVERIFY_MS = 2e3;
|
|
|
39
39
|
var OPENCODE_SETTLED_ELSEWHERE_STATUSES = [404, 409];
|
|
40
40
|
var OPENCODE_CLI_BRIDGES_QUESTIONS = true;
|
|
41
41
|
var OPENCODE_SERVICE_REQUEST_TIMEOUT_MS = 5e3;
|
|
42
|
+
var OPENCODE_STATE_DIRECTORY = "opencode";
|
|
43
|
+
var OPENCODE_SERVICE_REGISTRATION = /^service.*\.json$/;
|
|
44
|
+
var OPENCODE_SERVICE_USER = "opencode";
|
|
45
|
+
var OPENCODE_SERVICE_PROTOCOL = "http:";
|
|
46
|
+
var OPENCODE_SERVICE_INFO_PATH = "/api/info";
|
|
47
|
+
var OPENCODE_LOOPBACK_HOSTS = ["127.0.0.1", "[::1]"];
|
|
48
|
+
var OPENCODE_LOOPBACK_ALIASES = {
|
|
49
|
+
"0.0.0.0": "127.0.0.1",
|
|
50
|
+
localhost: "127.0.0.1",
|
|
51
|
+
"[::]": "[::1]"
|
|
52
|
+
};
|
|
53
|
+
var javaScriptArrayLiteral = (values) => `[${values.map((value) => JSON.stringify(value)).join(", ")}]`;
|
|
54
|
+
var javaScriptObjectLiteral = (record) => `{ ${Object.entries(record).map(([key, value]) => `${JSON.stringify(key)}: ${JSON.stringify(value)}`).join(", ")} }`;
|
|
42
55
|
var OPENCODE_WITHDRAW_ON_STDIN_END = "withdraw_on_stdin_end";
|
|
43
56
|
var OPENCODE_CAPABILITIES_EVENT = "pushary.capabilities";
|
|
44
57
|
var OPENCODE_HOOK_CAPABILITIES = { capabilities: [OPENCODE_WITHDRAW_ON_STDIN_END] };
|
|
@@ -88,12 +101,12 @@ const WITHDRAW_ON_STDIN_END = ${JSON.stringify(OPENCODE_WITHDRAW_ON_STDIN_END)}
|
|
|
88
101
|
const CAPABILITIES_EVENT = ${JSON.stringify(OPENCODE_CAPABILITIES_EVENT)}
|
|
89
102
|
const CAPABILITY_PROBE_TIMEOUT_MS = ${OPENCODE_CAPABILITY_PROBE_TIMEOUT_MS}
|
|
90
103
|
const QUESTION_WITHDRAW_GRACE_MS = ${OPENCODE_QUESTION_WITHDRAW_GRACE_MS}
|
|
91
|
-
const SERVICE_REGISTRATION =
|
|
92
|
-
const SERVICE_USER =
|
|
93
|
-
const SERVICE_PROTOCOL =
|
|
94
|
-
const SERVICE_INFO_PATH =
|
|
95
|
-
const LOOPBACK_HOSTS =
|
|
96
|
-
const LOOPBACK_LITERAL = {
|
|
104
|
+
const SERVICE_REGISTRATION = ${OPENCODE_SERVICE_REGISTRATION}
|
|
105
|
+
const SERVICE_USER = ${JSON.stringify(OPENCODE_SERVICE_USER)}
|
|
106
|
+
const SERVICE_PROTOCOL = ${JSON.stringify(OPENCODE_SERVICE_PROTOCOL)}
|
|
107
|
+
const SERVICE_INFO_PATH = ${JSON.stringify(OPENCODE_SERVICE_INFO_PATH)}
|
|
108
|
+
const LOOPBACK_HOSTS = ${javaScriptArrayLiteral(OPENCODE_LOOPBACK_HOSTS)}
|
|
109
|
+
const LOOPBACK_LITERAL = ${javaScriptObjectLiteral(OPENCODE_LOOPBACK_ALIASES)}
|
|
97
110
|
const NOT_FOUND = 404
|
|
98
111
|
const FORM_PENDING = "pending"
|
|
99
112
|
const QUESTION_FORM_KIND = ${JSON.stringify(OPENCODE_QUESTION_FORM_KIND)}
|
|
@@ -105,7 +118,7 @@ const SETTLED_ELSEWHERE_STATUSES = ${JSON.stringify(OPENCODE_SETTLED_ELSEWHERE_S
|
|
|
105
118
|
const REPLY_DELIVERED = "delivered"
|
|
106
119
|
const REPLY_SETTLED_ELSEWHERE = "settled_elsewhere"
|
|
107
120
|
const REPLY_REFUSED = "refused"
|
|
108
|
-
const STATE_DIRECTORY =
|
|
121
|
+
const STATE_DIRECTORY = ${JSON.stringify(OPENCODE_STATE_DIRECTORY)}
|
|
109
122
|
const TELEMETRY_TIMEOUT_MS = 10000
|
|
110
123
|
const MAX_REPLY_BYTES = 65536
|
|
111
124
|
const FORWARDED_ACTIONS = ${JSON.stringify(OPENCODE_V2_FORWARDED_ACTIONS)}
|
|
@@ -951,6 +964,14 @@ export {
|
|
|
951
964
|
OPENCODE_QUESTION_CANCELLED,
|
|
952
965
|
OPENCODE_QUESTION_UNDELIVERED_EVENT,
|
|
953
966
|
OPENCODE_QUESTION_UNREACHABLE_EVENT,
|
|
967
|
+
OPENCODE_SERVICE_REQUEST_TIMEOUT_MS,
|
|
968
|
+
OPENCODE_STATE_DIRECTORY,
|
|
969
|
+
OPENCODE_SERVICE_REGISTRATION,
|
|
970
|
+
OPENCODE_SERVICE_USER,
|
|
971
|
+
OPENCODE_SERVICE_PROTOCOL,
|
|
972
|
+
OPENCODE_SERVICE_INFO_PATH,
|
|
973
|
+
OPENCODE_LOOPBACK_HOSTS,
|
|
974
|
+
OPENCODE_LOOPBACK_ALIASES,
|
|
954
975
|
OPENCODE_CAPABILITIES_EVENT,
|
|
955
976
|
OPENCODE_HOOK_CAPABILITIES,
|
|
956
977
|
OPENCODE_QUESTION_WITHDRAW_TIMEOUT_MS,
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OMHNCIKL.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3VM7CX4Z.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-25PD2NWC.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
readConfigFileKey,
|
|
22
22
|
readKeySource,
|
|
23
23
|
readMacAppKeyPrefix
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GWYSHO6R.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JWZZO6T5.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GWYSHO6R.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DITKCHAY.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FIFFXOEQ.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-QCGNGEGE.js";
|
|
20
20
|
import {
|
|
21
21
|
xml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ASMMRKHJ.js";
|
|
23
23
|
import {
|
|
24
24
|
writeFileAtomic
|
|
25
25
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
} from "./chunk-WHB622LP.js";
|
|
14
14
|
import {
|
|
15
15
|
keyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GWYSHO6R.js";
|
|
17
17
|
import {
|
|
18
18
|
getBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KQRATFYV.js";
|
|
20
20
|
import {
|
|
21
21
|
NPX_LATEST_COMMAND
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DITKCHAY.js";
|
|
23
23
|
import {
|
|
24
24
|
isValidApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JWZZO6T5.js";
|
|
26
26
|
|
|
27
27
|
// src/cli/login-ui.ts
|
|
28
28
|
import { hostname } from "os";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-UQTQ6HPO.js";
|
|
15
15
|
import {
|
|
16
16
|
redactSecretsFromContent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JWZZO6T5.js";
|
|
18
18
|
|
|
19
19
|
// src/shell-quote.ts
|
|
20
20
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -484,9 +484,9 @@ var installGlobally = (options) => {
|
|
|
484
484
|
}
|
|
485
485
|
const started = (async () => {
|
|
486
486
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
487
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
488
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
489
|
-
const { autoUpdateLock } = await import("./paths-
|
|
487
|
+
const { withUpgradeLock } = await import("./global-upgrade-L3D27Z2N.js");
|
|
488
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-PSOXTS7H.js");
|
|
489
|
+
const { autoUpdateLock } = await import("./paths-NQ4U74JJ.js");
|
|
490
490
|
let result = "skipped";
|
|
491
491
|
const install = async () => {
|
|
492
492
|
const platform = process.platform;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NA3GEZG4.js";
|
|
4
4
|
import {
|
|
5
5
|
matchMacAccountStep,
|
|
6
6
|
retryAgentCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3CLTRY7V.js";
|
|
8
8
|
import {
|
|
9
9
|
canChangeApprovalSettings
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3VM7CX4Z.js";
|
|
11
11
|
import {
|
|
12
12
|
EXIT
|
|
13
13
|
} from "./chunk-BG4HHB7E.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND,
|
|
16
16
|
npmExecSetupCommandFor
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DITKCHAY.js";
|
|
18
18
|
import {
|
|
19
19
|
LATEST_DIST_TAG
|
|
20
20
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -119,8 +119,8 @@ var PHONE_START_CANNOT_RUN_LINE = "Agent configuration and managed control are s
|
|
|
119
119
|
var STOP_REQUIRING_PHONE_START_STEP = `${NPX_LATEST_COMMAND} setup --control off stop requiring phone-start on this computer`;
|
|
120
120
|
var WHAT_PHONE_START_NEEDS = {
|
|
121
121
|
provider: [
|
|
122
|
-
"It needs Claude Code, Codex
|
|
123
|
-
"It looks for claude, codex and
|
|
122
|
+
"It needs Claude Code, Codex, Gemini CLI or OpenCode 2 set up here with a command it can start, and setup found none.",
|
|
123
|
+
"It looks for claude, codex, gemini and opencode on PATH and in npm's global folder, for claude in Claude Code's own install folder, and for opencode in ~/.opencode/bin and OpenCode.app too.",
|
|
124
124
|
"Install one, or open a terminal where it runs, then run setup again."
|
|
125
125
|
],
|
|
126
126
|
"service-manager": [
|