pushary 1.9.97 → 1.9.100
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 +29 -0
- package/dist/{api-WH3DLHJB.js → api-H734WJ2V.js} +10 -10
- package/dist/bin/pushary-bell-hook.js +27 -26
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +48 -33
- package/dist/bin/pushary-clean.js +34 -34
- package/dist/bin/pushary-codex-bridge.js +21 -21
- package/dist/bin/pushary-codex-hook.js +32 -31
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +14 -14
- package/dist/bin/pushary-connect.js +27 -27
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +40 -39
- package/dist/bin/pushary-disconnect.js +26 -26
- package/dist/bin/pushary-display-hook.js +18 -17
- package/dist/bin/pushary-doctor.js +42 -42
- package/dist/bin/pushary-elicitation-hook.js +27 -26
- package/dist/bin/pushary-gemini-bridge.js +15 -15
- package/dist/bin/pushary-gemini-hook.js +29 -28
- package/dist/bin/pushary-hook.js +31 -30
- package/dist/bin/pushary-login.js +38 -20
- package/dist/bin/pushary-logout.js +25 -25
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +26 -25
- package/dist/bin/pushary-opencode-hook.js +28 -27
- package/dist/bin/pushary-permission-denied-hook.js +31 -30
- package/dist/bin/pushary-permission-hook.js +31 -30
- package/dist/bin/pushary-post-hook.js +26 -25
- package/dist/bin/pushary-prompt-hook.js +26 -25
- package/dist/bin/pushary-session-end-hook.js +28 -27
- package/dist/bin/pushary-session-start-hook.js +36 -35
- package/dist/bin/pushary-setup.js +103 -109
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +32 -32
- package/dist/bin/pushary-stop-hook.js +26 -25
- package/dist/bin/pushary-stopfailure-hook.js +26 -25
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +19 -18
- package/dist/bin/pushary-transcripts.js +27 -26
- package/dist/bin/pushary-upgrade.js +40 -40
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-TSSV3NBD.js → chunk-2SFVZ3IT.js} +2 -2
- package/dist/{chunk-FZQSUS3R.js → chunk-33YOO7FG.js} +14 -14
- package/dist/{chunk-CG3C2WL7.js → chunk-3BBJO25D.js} +14 -12
- package/dist/{chunk-UAUADSJX.js → chunk-3OIUMHHO.js} +2 -2
- package/dist/{chunk-5RNZP53C.js → chunk-43CU2HYQ.js} +6 -6
- package/dist/{chunk-WOFHN2IZ.js → chunk-4FAJQPFY.js} +256 -12
- package/dist/{chunk-QCEY7TSX.js → chunk-4JUQ74CG.js} +3 -3
- package/dist/{chunk-CB2RYMAO.js → chunk-4QO267OY.js} +1 -1
- package/dist/{chunk-R7D3PH2M.js → chunk-4TLE7CSQ.js} +6 -6
- package/dist/{chunk-RRA6POT5.js → chunk-4TVLPGJV.js} +1 -1
- package/dist/{chunk-ORVMA5KJ.js → chunk-5PW25NHB.js} +3 -3
- package/dist/{chunk-W5IW7NZE.js → chunk-5QB6P3I7.js} +104 -2
- package/dist/{chunk-GN2L5CYF.js → chunk-6VFN4XTI.js} +1 -1
- package/dist/{chunk-Z6O6CDTP.js → chunk-7ZHLBWOV.js} +5 -5
- package/dist/{chunk-IED5CTYP.js → chunk-A7JQJUGZ.js} +3 -3
- package/dist/{chunk-VVHNHETX.js → chunk-ACVL2MHG.js} +2 -2
- package/dist/{chunk-GEA6ZV2P.js → chunk-AFGMZZEB.js} +2 -2
- package/dist/{chunk-NDJ7H2WF.js → chunk-AHIAB7JQ.js} +1 -1
- package/dist/chunk-BBNMGXZA.js +45 -0
- package/dist/{chunk-TKOL7DJH.js → chunk-BFEY6FRZ.js} +2 -2
- package/dist/{chunk-RILJLDKG.js → chunk-BIUD3TAY.js} +5 -5
- package/dist/{chunk-KYX7VBEE.js → chunk-CC24CQ7P.js} +2 -2
- package/dist/{chunk-5WYXFKZV.js → chunk-CK6YJZEK.js} +1 -1
- package/dist/{chunk-ZFUSWR2P.js → chunk-DCYA2SW2.js} +2 -2
- package/dist/{chunk-SXX47FHL.js → chunk-DIWNHZ6I.js} +2 -2
- package/dist/{chunk-5WOO44TA.js → chunk-DPGG3AAG.js} +5 -5
- package/dist/{chunk-EAJT6RYP.js → chunk-E2YENQFD.js} +7 -7
- package/dist/{chunk-VHOGSWUF.js → chunk-E34NVKR7.js} +3 -3
- package/dist/{chunk-APFQBVQW.js → chunk-E4YZIS4C.js} +6 -6
- package/dist/{chunk-RSITUL2U.js → chunk-ERO2ERIE.js} +2 -2
- package/dist/{chunk-JA6GCOW2.js → chunk-FIKNFZ7Z.js} +7 -7
- package/dist/{chunk-VPT3RDTO.js → chunk-G66WIAST.js} +0 -43
- package/dist/{chunk-6CDA4R5L.js → chunk-GKNTNKVQ.js} +3 -3
- package/dist/{chunk-VAY5AJ6N.js → chunk-GSQZTDPZ.js} +4 -4
- package/dist/{chunk-AUZITE2H.js → chunk-GTUCRZRJ.js} +6 -6
- package/dist/{chunk-JR6FCHAQ.js → chunk-IGEY7ZFQ.js} +3 -3
- package/dist/{chunk-TZE2S3XP.js → chunk-IGIWULLQ.js} +3 -3
- package/dist/{chunk-OBB6VTSG.js → chunk-K6QZMKAP.js} +5 -5
- package/dist/{chunk-5OLBO5EB.js → chunk-KACD6W6J.js} +1 -1
- package/dist/{chunk-RZD7ULBJ.js → chunk-KOUB4ZLX.js} +1 -1
- package/dist/{chunk-VVP4CP4O.js → chunk-KUIJMRES.js} +11 -10
- package/dist/{chunk-ZDIQPYM2.js → chunk-MP3SEXXJ.js} +1 -1
- package/dist/{chunk-2ZAFA3XI.js → chunk-MY7NJM56.js} +3 -3
- package/dist/{chunk-NTCVGJFC.js → chunk-N6UPDKCI.js} +4 -4
- package/dist/{chunk-HXUE6IIP.js → chunk-NTTFATKG.js} +5 -5
- package/dist/{chunk-OW4WEO56.js → chunk-O35JKL4T.js} +3 -3
- package/dist/{chunk-RPY5XCGA.js → chunk-ODJQ5KFS.js} +2 -2
- package/dist/{chunk-HWEEBVS7.js → chunk-OUF7TX2C.js} +4 -4
- package/dist/{chunk-CMDIKFVL.js → chunk-PWGD5EP6.js} +1 -1
- package/dist/{chunk-32577NGL.js → chunk-QD57EL3I.js} +1 -1
- package/dist/{chunk-IFQKSIID.js → chunk-RAASN7OG.js} +3 -3
- package/dist/{chunk-KNVTKFDP.js → chunk-SGECX2RY.js} +2 -2
- package/dist/{chunk-MFJFN4DA.js → chunk-SJXNDL73.js} +3 -3
- package/dist/{chunk-X22LLKBY.js → chunk-SOBHT3J7.js} +3 -3
- package/dist/{chunk-GNFUPHPZ.js → chunk-SQSL6DVX.js} +10 -10
- package/dist/{chunk-W3OTAHLV.js → chunk-SSLEGJYI.js} +4 -4
- package/dist/{chunk-5U63KUP3.js → chunk-T72OMEHB.js} +1 -1
- package/dist/{chunk-HD7AURL6.js → chunk-THHVB46D.js} +52 -7
- package/dist/{chunk-MYKZPTAL.js → chunk-TLERJKSE.js} +1 -1
- package/dist/{chunk-NI3NSURQ.js → chunk-UPQE4YPM.js} +1 -1
- package/dist/{chunk-E5WUBHVH.js → chunk-VMXY3PAT.js} +4 -4
- package/dist/{chunk-QP3OSLKU.js → chunk-W44TA4CT.js} +5 -5
- package/dist/{chunk-MGYGWHG5.js → chunk-WPK2UWDU.js} +1 -1
- package/dist/{chunk-T35RHO3X.js → chunk-WRCQCJA7.js} +5 -5
- package/dist/{chunk-5YRDZE5F.js → chunk-WVAJSBI2.js} +1 -1
- package/dist/{chunk-KZTN6OXM.js → chunk-XEGKTXTC.js} +6 -6
- package/dist/{chunk-4D4USO5K.js → chunk-XJF4WX5C.js} +6 -6
- package/dist/{chunk-LKDAMWTZ.js → chunk-YVAFDGK2.js} +4 -4
- package/dist/{chunk-R7TVELKF.js → chunk-Z6HHEV7A.js} +1 -1
- package/dist/{chunk-6RGQIKAC.js → chunk-ZG6M5VQV.js} +3 -3
- package/dist/{chunk-CP72YEEA.js → chunk-ZNPUYLOY.js} +1 -1
- package/dist/{codex-app-cards-switch-DFZK6GPW.js → codex-app-cards-switch-JKKTCZNB.js} +11 -11
- package/dist/{codex-desktop-launch-7QGN7SL7.js → codex-desktop-launch-6BONFDHF.js} +1 -1
- package/dist/{codex-session-launch-OWMNCYAH.js → codex-session-launch-5FRL6UGU.js} +18 -18
- package/dist/{config-ITPE5M6M.js → config-A5EC37VZ.js} +3 -3
- package/dist/{global-upgrade-PYEFLMJA.js → global-upgrade-W4ZTLGUY.js} +10 -10
- package/dist/{identity-WTYTOLG3.js → identity-2LPVILX4.js} +4 -4
- package/dist/{live-capabilities-HZ42KLZS.js → live-capabilities-SWMCZORB.js} +5 -5
- package/dist/{paths-6JUJIM74.js → paths-4SVXADJ6.js} +3 -3
- package/dist/{reapply-5WV6IS5V.js → reapply-WEXL57SG.js} +28 -28
- package/dist/src/index.js +30 -29
- package/dist/{upgrade-lock-ENAQL63D.js → upgrade-lock-NZ2MBGYE.js} +4 -4
- package/dist/{usage-BO7LGOA3.js → usage-U6H5UFS2.js} +3 -3
- package/package.json +1 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AFGMZZEB.js";
|
|
4
4
|
import {
|
|
5
5
|
backupFile,
|
|
6
6
|
readJsonSafe,
|
|
7
7
|
writeFileAtomic,
|
|
8
8
|
writeJsonAtomic
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GKNTNKVQ.js";
|
|
10
10
|
import {
|
|
11
11
|
configFilePath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
13
13
|
import {
|
|
14
14
|
API_KEY_PREFIX_PATTERN,
|
|
15
|
-
isRecord
|
|
16
|
-
|
|
15
|
+
isRecord,
|
|
16
|
+
isValidApiKey
|
|
17
|
+
} from "./chunk-4FAJQPFY.js";
|
|
17
18
|
|
|
18
19
|
// src/shell-alias.ts
|
|
19
20
|
import { homedir } from "os";
|
|
@@ -116,6 +117,8 @@ var isDisabledExport = (line) => {
|
|
|
116
117
|
var keyPrefix = (key) => key.split(".")[0] ?? key;
|
|
117
118
|
var MAC_APP_KEY_PREFIX_FIELD = "macAppKeyPrefix";
|
|
118
119
|
var CLI_CREATED_KEY_PREFIX_FIELD = "cliCreatedKeyPrefix";
|
|
120
|
+
var REPLACED_KEY_PREFIX_FIELD = "replacedKeyPrefix";
|
|
121
|
+
var REPLACED_KEY_HONOURED_FIELD = "replacedKeyHonouredPrefix";
|
|
119
122
|
var isCliCreatedKey = (key, createdPrefix) => keyPrefix(key) === createdPrefix;
|
|
120
123
|
var findKeyExport = (contents) => {
|
|
121
124
|
const lines = contents.split("\n");
|
|
@@ -138,6 +141,35 @@ var withKeyRecords = (current, apiKey, origin) => {
|
|
|
138
141
|
const { [CLI_CREATED_KEY_PREFIX_FIELD]: _previous, ...rest } = keepMacAppKeyPrefix(current, apiKey);
|
|
139
142
|
return savedKeyIsCliCreated(current, apiKey, origin) ? { ...rest, [CLI_CREATED_KEY_PREFIX_FIELD]: keyPrefix(apiKey) } : rest;
|
|
140
143
|
};
|
|
144
|
+
var replacedKeyToRecord = (keyInForce, apiKey, rc, platform) => keyInForce !== null && keyInForce !== apiKey && isValidApiKey(keyInForce) && newTerminalsUseSavedKey(rc, platform) ? keyInForce : null;
|
|
145
|
+
var withoutStaleReplacedKeyRecord = (current, apiKey) => {
|
|
146
|
+
const { [REPLACED_KEY_PREFIX_FIELD]: recorded, [REPLACED_KEY_HONOURED_FIELD]: honoured, ...rest } = current;
|
|
147
|
+
if (recorded === void 0 || current.apiKey !== apiKey) return rest;
|
|
148
|
+
return honoured === void 0 ? { ...rest, [REPLACED_KEY_PREFIX_FIELD]: recorded } : { ...rest, [REPLACED_KEY_PREFIX_FIELD]: recorded, [REPLACED_KEY_HONOURED_FIELD]: honoured };
|
|
149
|
+
};
|
|
150
|
+
var withReplacedKeyRecordHonoured = (kept) => {
|
|
151
|
+
const recorded = kept[REPLACED_KEY_PREFIX_FIELD];
|
|
152
|
+
return typeof recorded === "string" ? { ...kept, [REPLACED_KEY_HONOURED_FIELD]: recorded } : { ...kept };
|
|
153
|
+
};
|
|
154
|
+
var replacedKeyRecordAfterSave = (current, apiKey, honoured) => {
|
|
155
|
+
const kept = withoutStaleReplacedKeyRecord(current, apiKey);
|
|
156
|
+
return honoured ? withReplacedKeyRecordHonoured(kept) : kept;
|
|
157
|
+
};
|
|
158
|
+
var recordReplacedKey = (configPath, replacedKey) => {
|
|
159
|
+
const current = readConfigRecord(configPath);
|
|
160
|
+
if (current === null) return;
|
|
161
|
+
try {
|
|
162
|
+
writeJsonAtomic(configPath, { ...current, [REPLACED_KEY_PREFIX_FIELD]: keyPrefix(replacedKey) }, KEY_FILE_MODE);
|
|
163
|
+
} catch {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
var shellKeyWasReplaced = ({ shellKey, savedKey, replacedKeyPrefix }) => {
|
|
168
|
+
if (!shellKey || savedKey === null || replacedKeyPrefix === null) return false;
|
|
169
|
+
return shellKey !== savedKey && keyPrefix(shellKey) === replacedKeyPrefix;
|
|
170
|
+
};
|
|
171
|
+
var RC_KINDS_NEW_TERMINALS_FOLLOW = /* @__PURE__ */ new Set(["written", "updated", "unchanged"]);
|
|
172
|
+
var newTerminalsUseSavedKey = (rc, platform) => platform !== "win32" && rc.shell !== null && RC_KINDS_NEW_TERMINALS_FOLLOW.has(rc.kind);
|
|
141
173
|
var manualKeyStepFor = (kind, platform) => kind === "no-rc" || platform === "win32" ? "config-only" : "paste-export";
|
|
142
174
|
var rcResult = (kind, over = {}) => ({
|
|
143
175
|
kind,
|
|
@@ -220,7 +252,9 @@ var resolveRcTarget = () => {
|
|
|
220
252
|
};
|
|
221
253
|
var writeKey = (apiKey, origin, options = {}) => {
|
|
222
254
|
const configPath = configFilePath();
|
|
255
|
+
const keyInForce = readKeySource().key;
|
|
223
256
|
const existing = readJsonSafe(configPath);
|
|
257
|
+
const replacedKeyRecordWasHonoured = options.replacedKeyRecordWasHonoured === true;
|
|
224
258
|
let current = {};
|
|
225
259
|
let configBackupPath = null;
|
|
226
260
|
if (existing.kind === "unreadable") {
|
|
@@ -236,7 +270,7 @@ var writeKey = (apiKey, origin, options = {}) => {
|
|
|
236
270
|
writeJsonAtomic(
|
|
237
271
|
configPath,
|
|
238
272
|
{
|
|
239
|
-
...withKeyRecords(current, apiKey, origin),
|
|
273
|
+
...withKeyRecords(replacedKeyRecordAfterSave(current, apiKey, replacedKeyRecordWasHonoured), apiKey, origin),
|
|
240
274
|
apiKey,
|
|
241
275
|
installSource: resolveInstallSourceFor(current),
|
|
242
276
|
...options.controlMode ? { controlMode: options.controlMode } : {},
|
|
@@ -247,6 +281,8 @@ var writeKey = (apiKey, origin, options = {}) => {
|
|
|
247
281
|
restrictFile(configPath);
|
|
248
282
|
const target = (options.resolveRc ?? resolveRcTarget)();
|
|
249
283
|
const rc = target ? rewriteRcExport(target.path, apiKey, target.shell) : rcResult("no-rc");
|
|
284
|
+
const replacedKey = replacedKeyRecordWasHonoured ? null : replacedKeyToRecord(keyInForce, apiKey, rc, process.platform);
|
|
285
|
+
if (replacedKey !== null) recordReplacedKey(configPath, replacedKey);
|
|
250
286
|
process.env.PUSHARY_API_KEY = apiKey;
|
|
251
287
|
return { configPath, rc, configBackupPath };
|
|
252
288
|
};
|
|
@@ -255,7 +291,7 @@ var clearKey = (options = {}) => {
|
|
|
255
291
|
const existing = readConfigRecord(configPath);
|
|
256
292
|
let removedFromConfig = false;
|
|
257
293
|
if (existing !== null && typeof existing.apiKey === "string") {
|
|
258
|
-
const { apiKey: _dropped, [MAC_APP_KEY_PREFIX_FIELD]: _adopted, [CLI_CREATED_KEY_PREFIX_FIELD]: _created, ...rest } = existing;
|
|
294
|
+
const { apiKey: _dropped, [MAC_APP_KEY_PREFIX_FIELD]: _adopted, [CLI_CREATED_KEY_PREFIX_FIELD]: _created, [REPLACED_KEY_PREFIX_FIELD]: _replaced, [REPLACED_KEY_HONOURED_FIELD]: _honoured, ...rest } = existing;
|
|
259
295
|
writeJsonAtomic(configPath, rest, KEY_FILE_MODE);
|
|
260
296
|
restrictFile(configPath);
|
|
261
297
|
removedFromConfig = true;
|
|
@@ -333,6 +369,11 @@ var readRecordedKeyPrefix = (configPath, field) => {
|
|
|
333
369
|
var readMacAppKeyPrefix = (configPath = configFilePath()) => readRecordedKeyPrefix(configPath, MAC_APP_KEY_PREFIX_FIELD);
|
|
334
370
|
var isAdoptedMacAppKey = (key, adoptedPrefix) => keyPrefix(key) === adoptedPrefix;
|
|
335
371
|
var readCliCreatedKeyPrefix = (configPath = configFilePath()) => readRecordedKeyPrefix(configPath, CLI_CREATED_KEY_PREFIX_FIELD);
|
|
372
|
+
var readReplacedKeyPrefix = (configPath = configFilePath()) => readRecordedKeyPrefix(configPath, REPLACED_KEY_PREFIX_FIELD);
|
|
373
|
+
var replacedKeyRecordIsHonoured = (configPath = configFilePath()) => {
|
|
374
|
+
const recorded = readReplacedKeyPrefix(configPath);
|
|
375
|
+
return recorded !== null && readRecordedKeyPrefix(configPath, REPLACED_KEY_HONOURED_FIELD) === recorded;
|
|
376
|
+
};
|
|
336
377
|
var recordMacAppKeyPrefix = (apiKey, configPath = configFilePath()) => {
|
|
337
378
|
const config = readConfigRecord(configPath);
|
|
338
379
|
if (config === null || config.apiKey !== apiKey) return false;
|
|
@@ -371,6 +412,8 @@ export {
|
|
|
371
412
|
isDisabledExport,
|
|
372
413
|
keyPrefix,
|
|
373
414
|
isCliCreatedKey,
|
|
415
|
+
shellKeyWasReplaced,
|
|
416
|
+
newTerminalsUseSavedKey,
|
|
374
417
|
manualKeyStepFor,
|
|
375
418
|
resolveRcTarget,
|
|
376
419
|
writeKey,
|
|
@@ -383,6 +426,8 @@ export {
|
|
|
383
426
|
readMacAppKeyPrefix,
|
|
384
427
|
isAdoptedMacAppKey,
|
|
385
428
|
readCliCreatedKeyPrefix,
|
|
429
|
+
readReplacedKeyPrefix,
|
|
430
|
+
replacedKeyRecordIsHonoured,
|
|
386
431
|
recordMacAppKeyPrefix,
|
|
387
432
|
shellProfileCandidates,
|
|
388
433
|
findExportedKeyLines,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
keyCheckFromResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O35JKL4T.js";
|
|
4
4
|
import {
|
|
5
5
|
installNetworkDefaults
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZG6M5VQV.js";
|
|
7
7
|
import {
|
|
8
8
|
getBaseUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
10
10
|
import {
|
|
11
11
|
isRecord,
|
|
12
12
|
isToolErrorResult,
|
|
13
13
|
toolFailureCodeOfResult
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4FAJQPFY.js";
|
|
15
15
|
|
|
16
16
|
// src/retry.ts
|
|
17
17
|
var isRetryable = (err) => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XJF4WX5C.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-THHVB46D.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SGECX2RY.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GKNTNKVQ.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4FAJQPFY.js";
|
|
17
17
|
|
|
18
18
|
// src/shared-mcp-key.ts
|
|
19
19
|
var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readMacAppAgentKey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W44TA4CT.js";
|
|
4
4
|
import {
|
|
5
5
|
API_KEYS_PATH
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ACVL2MHG.js";
|
|
7
7
|
import {
|
|
8
8
|
findExportedKeyLines,
|
|
9
9
|
isAdoptedMacAppKey,
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
readConfigFileKey,
|
|
14
14
|
readKeySource,
|
|
15
15
|
readMacAppKeyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-THHVB46D.js";
|
|
17
17
|
import {
|
|
18
18
|
absoluteUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O35JKL4T.js";
|
|
20
20
|
import {
|
|
21
21
|
isValidApiKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4FAJQPFY.js";
|
|
23
23
|
|
|
24
24
|
// src/key-revocation.ts
|
|
25
25
|
var SELF_REVOKE_PATH = "/api/v1/server/keys/self/revoke";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
postLiveSession,
|
|
5
5
|
postLiveSessionUntilAccepted,
|
|
6
6
|
startLiveSessionHeartbeat
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KACD6W6J.js";
|
|
8
8
|
import {
|
|
9
9
|
CommandReceipts,
|
|
10
10
|
controllerCommandSchema
|
|
@@ -14,24 +14,24 @@ import {
|
|
|
14
14
|
describeIdleWindow,
|
|
15
15
|
idleDeadlinePassed,
|
|
16
16
|
startProcessOwnership
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-E34NVKR7.js";
|
|
18
18
|
import {
|
|
19
19
|
spawnClaude
|
|
20
20
|
} from "./chunk-XHKBHWLX.js";
|
|
21
21
|
import {
|
|
22
22
|
repositoryScopeFor
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4QO267OY.js";
|
|
24
24
|
import {
|
|
25
25
|
isAskUserResponse,
|
|
26
26
|
isDecisionStopped,
|
|
27
27
|
isWaitForAnswerResponse,
|
|
28
28
|
withdrawQuestion,
|
|
29
29
|
writeDegraded
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7ZHLBWOV.js";
|
|
31
31
|
import {
|
|
32
32
|
callMcpTool,
|
|
33
33
|
isRetryable
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-VMXY3PAT.js";
|
|
35
35
|
import {
|
|
36
36
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
37
37
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
parseCodexQuestions,
|
|
53
53
|
planElicitationAsk,
|
|
54
54
|
readElicitationFields
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-4FAJQPFY.js";
|
|
56
56
|
|
|
57
57
|
// src/codex-question-owner.ts
|
|
58
58
|
import { createHash } from "crypto";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTTFATKG.js";
|
|
4
4
|
import {
|
|
5
5
|
hookOwnerOf,
|
|
6
6
|
hookOwnerOfCommands,
|
|
7
7
|
liveBridgeProbe,
|
|
8
8
|
resolveBridgeStub
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OUF7TX2C.js";
|
|
10
10
|
import {
|
|
11
11
|
AGENT_CHOICES
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WVAJSBI2.js";
|
|
13
13
|
import {
|
|
14
14
|
claudeSettings,
|
|
15
15
|
codexHooksJson,
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
pusharyDir,
|
|
20
20
|
vscodePluginDir,
|
|
21
21
|
windowsNodeLauncherFor
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SGECX2RY.js";
|
|
23
23
|
import {
|
|
24
24
|
readJsonSafe
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GKNTNKVQ.js";
|
|
26
26
|
import {
|
|
27
27
|
HOOK_BUDGETS,
|
|
28
28
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
OPENCODE_APPROVAL_EVENT,
|
|
31
31
|
hookCompatibleProfile,
|
|
32
32
|
isRecord
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4FAJQPFY.js";
|
|
34
34
|
|
|
35
35
|
// src/opencode-plugin.ts
|
|
36
36
|
var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4JUQ74CG.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UPQE4YPM.js";
|
|
7
7
|
import {
|
|
8
8
|
readGlobalPrefixAsync,
|
|
9
9
|
resolveGlobalBinary,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
resolvePackageVersionFromBinary,
|
|
14
14
|
resolvePathBinary,
|
|
15
15
|
resolvePathBinaryAsync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GKNTNKVQ.js";
|
|
17
17
|
import {
|
|
18
18
|
MANAGED_PROVIDERS
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4FAJQPFY.js";
|
|
20
20
|
|
|
21
21
|
// src/live-capabilities.ts
|
|
22
22
|
import { homedir } from "os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DCYA2SW2.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-PPY5N2E6.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4FAJQPFY.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -22,22 +22,22 @@ import {
|
|
|
22
22
|
turnCodexAppCardsOff,
|
|
23
23
|
turnCodexAppCardsOn,
|
|
24
24
|
whyLaunchctlFailed
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-MY7NJM56.js";
|
|
26
|
+
import "./chunk-BFEY6FRZ.js";
|
|
27
27
|
import "./chunk-XCEN33UP.js";
|
|
28
28
|
import "./chunk-QCGNGEGE.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-E4YZIS4C.js";
|
|
30
30
|
import "./chunk-XHKBHWLX.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-THHVB46D.js";
|
|
32
32
|
import "./chunk-E46NE7FB.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-DCYA2SW2.js";
|
|
34
|
+
import "./chunk-AFGMZZEB.js";
|
|
35
|
+
import "./chunk-SGECX2RY.js";
|
|
36
|
+
import "./chunk-GKNTNKVQ.js";
|
|
37
|
+
import "./chunk-KOUB4ZLX.js";
|
|
38
|
+
import "./chunk-PWGD5EP6.js";
|
|
39
39
|
import "./chunk-ZVU6WMMU.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-4FAJQPFY.js";
|
|
41
41
|
import "./chunk-MLKGABMK.js";
|
|
42
42
|
export {
|
|
43
43
|
CODEX_APP_CARDS_DIRECTORY,
|
|
@@ -11,35 +11,35 @@ import {
|
|
|
11
11
|
isCodexQuestionLeftWithTheLocalClient,
|
|
12
12
|
planCodexElicitation,
|
|
13
13
|
reportOwnedQuestion
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-XEGKTXTC.js";
|
|
15
|
+
import "./chunk-KACD6W6J.js";
|
|
16
|
+
import "./chunk-YVAFDGK2.js";
|
|
17
|
+
import "./chunk-4JUQ74CG.js";
|
|
18
18
|
import "./chunk-N5P2FLOJ.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-E34NVKR7.js";
|
|
20
|
+
import "./chunk-UPQE4YPM.js";
|
|
21
|
+
import "./chunk-3OIUMHHO.js";
|
|
22
22
|
import "./chunk-XMSDA5WA.js";
|
|
23
23
|
import "./chunk-XHKBHWLX.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-4QO267OY.js";
|
|
25
25
|
import {
|
|
26
26
|
writeDegraded
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7ZHLBWOV.js";
|
|
28
28
|
import "./chunk-POFBE6ZY.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-VMXY3PAT.js";
|
|
30
|
+
import "./chunk-O35JKL4T.js";
|
|
31
|
+
import "./chunk-ZG6M5VQV.js";
|
|
32
|
+
import "./chunk-DCYA2SW2.js";
|
|
33
|
+
import "./chunk-SGECX2RY.js";
|
|
34
|
+
import "./chunk-GKNTNKVQ.js";
|
|
35
|
+
import "./chunk-KOUB4ZLX.js";
|
|
36
36
|
import "./chunk-PPY5N2E6.js";
|
|
37
37
|
import "./chunk-KZERVKTD.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-PWGD5EP6.js";
|
|
39
39
|
import "./chunk-ZVU6WMMU.js";
|
|
40
40
|
import {
|
|
41
41
|
canonicalJsonText
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-4FAJQPFY.js";
|
|
43
43
|
import "./chunk-MLKGABMK.js";
|
|
44
44
|
|
|
45
45
|
// src/codex-session-launch.ts
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
getApiKey,
|
|
4
4
|
getBaseUrl,
|
|
5
5
|
resetKeyDriftWarning
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
7
|
+
import "./chunk-PWGD5EP6.js";
|
|
8
|
+
import "./chunk-4FAJQPFY.js";
|
|
9
9
|
import "./chunk-MLKGABMK.js";
|
|
10
10
|
export {
|
|
11
11
|
configFilePath,
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
recordUnfinishedUpgrade,
|
|
8
8
|
upgradeInstalledPackage,
|
|
9
9
|
withUpgradeLock
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-GTUCRZRJ.js";
|
|
11
|
+
import "./chunk-2SFVZ3IT.js";
|
|
12
|
+
import "./chunk-YVAFDGK2.js";
|
|
13
|
+
import "./chunk-4JUQ74CG.js";
|
|
14
|
+
import "./chunk-UPQE4YPM.js";
|
|
15
|
+
import "./chunk-A7JQJUGZ.js";
|
|
16
16
|
import "./chunk-POFBE6ZY.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-SGECX2RY.js";
|
|
18
|
+
import "./chunk-GKNTNKVQ.js";
|
|
19
19
|
import "./chunk-KZERVKTD.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-PWGD5EP6.js";
|
|
21
21
|
import "./chunk-ZVU6WMMU.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-4FAJQPFY.js";
|
|
23
23
|
import "./chunk-MLKGABMK.js";
|
|
24
24
|
export {
|
|
25
25
|
finishGlobalUpgrade,
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
getMachineId,
|
|
3
3
|
getOrCreateMachineId,
|
|
4
4
|
readExistingMachineId
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DCYA2SW2.js";
|
|
6
|
+
import "./chunk-SGECX2RY.js";
|
|
7
|
+
import "./chunk-GKNTNKVQ.js";
|
|
8
8
|
import "./chunk-ZVU6WMMU.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-4FAJQPFY.js";
|
|
10
10
|
import "./chunk-MLKGABMK.js";
|
|
11
11
|
export {
|
|
12
12
|
getMachineId,
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
resolveControlPolicy,
|
|
23
23
|
resolveProviderBinary,
|
|
24
24
|
trackProviderInventory
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-YVAFDGK2.js";
|
|
26
|
+
import "./chunk-4JUQ74CG.js";
|
|
27
|
+
import "./chunk-UPQE4YPM.js";
|
|
28
|
+
import "./chunk-GKNTNKVQ.js";
|
|
29
29
|
import "./chunk-ZVU6WMMU.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-4FAJQPFY.js";
|
|
31
31
|
import "./chunk-MLKGABMK.js";
|
|
32
32
|
export {
|
|
33
33
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
@@ -37,10 +37,10 @@ import {
|
|
|
37
37
|
serviceOwedBackMark,
|
|
38
38
|
vscodePluginDir,
|
|
39
39
|
vscodePluginMcp
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-SGECX2RY.js";
|
|
41
|
+
import "./chunk-GKNTNKVQ.js";
|
|
42
42
|
import "./chunk-ZVU6WMMU.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-4FAJQPFY.js";
|
|
44
44
|
import "./chunk-MLKGABMK.js";
|
|
45
45
|
export {
|
|
46
46
|
autoUpdateLock,
|