pushary 1.9.184 → 1.9.185
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 +7 -0
- package/dist/{api-UDDZRXXB.js → api-BRYBSBZK.js} +7 -7
- package/dist/bin/pushary-bell-hook.js +15 -15
- package/dist/bin/pushary-bell.js +3 -3
- package/dist/bin/pushary-calls.js +7 -7
- package/dist/bin/pushary-claude.js +14 -14
- package/dist/bin/pushary-clean.js +25 -25
- package/dist/bin/pushary-codex-bridge.js +11 -11
- package/dist/bin/pushary-codex-hook.js +21 -21
- package/dist/bin/pushary-codex-session.js +6 -6
- package/dist/bin/pushary-codex.js +8 -8
- package/dist/bin/pushary-connect.js +19 -19
- package/dist/bin/pushary-daemon.js +30 -30
- package/dist/bin/pushary-disconnect.js +17 -17
- package/dist/bin/pushary-doctor.js +30 -30
- package/dist/bin/pushary-elicitation-hook.js +16 -16
- package/dist/bin/pushary-gemini-bridge.js +6 -6
- package/dist/bin/pushary-gemini-hook.js +19 -19
- package/dist/bin/pushary-hook.js +21 -21
- package/dist/bin/pushary-login.js +11 -11
- package/dist/bin/pushary-logout.js +15 -15
- package/dist/bin/pushary-mcp.js +8 -8
- package/dist/bin/pushary-mode.js +7 -7
- package/dist/bin/pushary-notification-hook.js +15 -15
- package/dist/bin/pushary-opencode-bridge.js +6 -6
- package/dist/bin/pushary-opencode-hook.js +19 -19
- package/dist/bin/pushary-permission-denied-hook.js +21 -21
- package/dist/bin/pushary-permission-hook.js +21 -21
- package/dist/bin/pushary-post-hook.js +16 -16
- package/dist/bin/pushary-prompt-hook.js +15 -15
- package/dist/bin/pushary-session-end-hook.js +15 -15
- package/dist/bin/pushary-session-start-hook.js +25 -25
- package/dist/bin/pushary-sessions.js +6 -6
- package/dist/bin/pushary-setup.js +37 -37
- package/dist/bin/pushary-status.js +20 -20
- package/dist/bin/pushary-stop-hook.js +15 -15
- package/dist/bin/pushary-stopfailure-hook.js +15 -15
- package/dist/bin/pushary-suggestions.js +7 -7
- package/dist/bin/pushary-transcript-register.js +7 -7
- package/dist/bin/pushary-transcripts.js +14 -14
- package/dist/bin/pushary-upgrade.js +40 -33
- package/dist/bin/pushary-wait.js +7 -7
- package/dist/bin/pushary.js +4 -4
- package/dist/{chunk-JQCAB544.js → chunk-24F6XTB3.js} +1 -1
- package/dist/{chunk-255TJOUT.js → chunk-2M5CQWRP.js} +3 -3
- package/dist/{chunk-K2H2XC52.js → chunk-37XU75VG.js} +3 -3
- package/dist/{chunk-JBAFH5Q2.js → chunk-3TXESHDA.js} +1 -1
- package/dist/{chunk-QZNC5XOW.js → chunk-55JWYWJV.js} +3 -3
- package/dist/{chunk-7X4HQKXS.js → chunk-5AF6JBCS.js} +5 -5
- package/dist/{chunk-OJWADO7D.js → chunk-5BCZSBRC.js} +24 -5
- package/dist/{chunk-IIW2LAPX.js → chunk-65LJ5GGF.js} +2 -2
- package/dist/{chunk-4AYH5NHM.js → chunk-756EI4Q3.js} +3 -3
- package/dist/{chunk-PXU2YJ7B.js → chunk-APQZ3KX2.js} +3 -3
- package/dist/{chunk-LD3JUA77.js → chunk-AQSGAKFY.js} +7 -7
- package/dist/{chunk-5ZGWUKIO.js → chunk-B4VU5JT6.js} +2 -2
- package/dist/{chunk-3OG5JIOA.js → chunk-BMANIZY7.js} +4 -4
- package/dist/{chunk-W4N2JHFT.js → chunk-BPZQVEPM.js} +1 -1
- package/dist/{chunk-4XNQOTVR.js → chunk-EGFBATFH.js} +2 -2
- package/dist/{chunk-IVE22EJV.js → chunk-F6TCNSGN.js} +9 -9
- package/dist/{chunk-PEIQT6KC.js → chunk-FMU7EE4Z.js} +1 -1
- package/dist/{chunk-R2PK26FR.js → chunk-FO5DHJSL.js} +1 -1
- package/dist/{chunk-VWZCVHJG.js → chunk-GU5FAWFF.js} +1 -1
- package/dist/{chunk-E3XXZPPH.js → chunk-HIHKYDIN.js} +3 -3
- package/dist/{chunk-AG3BUNOK.js → chunk-HME7GJ6U.js} +2 -2
- package/dist/{chunk-5BR74QQL.js → chunk-HMP72ZHV.js} +3 -3
- package/dist/{chunk-FZDPZVRU.js → chunk-HVX3JGGX.js} +3 -3
- package/dist/{chunk-5Q3KXXT3.js → chunk-IDWNJ4DV.js} +31 -33
- package/dist/{chunk-CGTJIB2V.js → chunk-JDDP7JOT.js} +3 -3
- package/dist/{chunk-O4IYGRNI.js → chunk-JF4RHZLF.js} +1 -1
- package/dist/{chunk-AC6Q7DEQ.js → chunk-JTNEB67J.js} +4 -4
- package/dist/{chunk-RE3TYSP7.js → chunk-L6NERUNF.js} +1 -1
- package/dist/{chunk-KFAYDRWP.js → chunk-LG4A3CWJ.js} +1 -1
- package/dist/{chunk-K4IMFKPP.js → chunk-LH5MUJNB.js} +2 -2
- package/dist/{chunk-SNKG7NMV.js → chunk-M5FGY54M.js} +2 -2
- package/dist/{chunk-LX37P6WT.js → chunk-MM7DRYKU.js} +2 -2
- package/dist/{chunk-SFP3J5I5.js → chunk-N7R5I2FE.js} +11 -11
- package/dist/{chunk-OTY6O2LK.js → chunk-NAWYRZE5.js} +1 -1
- package/dist/{chunk-YH6QFABF.js → chunk-NYHSZQ52.js} +3 -3
- package/dist/{chunk-MLFPZDKD.js → chunk-OJ7YBDPF.js} +3 -3
- package/dist/{chunk-CHG3NBBJ.js → chunk-OLKEMRJS.js} +1 -1
- package/dist/{chunk-2WYCG2EN.js → chunk-QLJGGIIC.js} +4 -4
- package/dist/{chunk-N7EBHNYA.js → chunk-R5VJTCXK.js} +2 -2
- package/dist/{chunk-G6GI7VCT.js → chunk-S7MFDG4I.js} +2 -2
- package/dist/{chunk-DU5AEFVJ.js → chunk-SIGAIBOE.js} +1 -1
- package/dist/{chunk-VKZPDU25.js → chunk-SJRLILZR.js} +3 -3
- package/dist/{chunk-IMGGR66U.js → chunk-TMXWZ523.js} +2 -2
- package/dist/{chunk-YZPKM7SP.js → chunk-ULF4UJR4.js} +4 -4
- package/dist/{chunk-J5GK6IVD.js → chunk-VAFNZO3R.js} +3 -3
- package/dist/{chunk-E3TGXTDU.js → chunk-VD5V6F7F.js} +1 -1
- package/dist/{chunk-ITLAO546.js → chunk-W5FLGEYD.js} +1 -1
- package/dist/{chunk-JJNBX3SP.js → chunk-WNWAEFXM.js} +1 -1
- package/dist/{chunk-YQMNDBJD.js → chunk-WSMOSC7V.js} +2 -2
- package/dist/{chunk-RFAHLKZ6.js → chunk-Y5GMVVCF.js} +2 -2
- package/dist/{chunk-VTWMIYBM.js → chunk-ZIFSPYWB.js} +3 -3
- package/dist/{chunk-FR6YVSPK.js → chunk-ZJG4C46N.js} +3 -3
- package/dist/{chunk-HPSSY25E.js → chunk-ZZDJSFRO.js} +2 -2
- package/dist/{codex-app-cards-switch-B3FSCCCU.js → codex-app-cards-switch-NYYOAVLZ.js} +6 -6
- package/dist/{codex-desktop-launch-U3PPGTWK.js → codex-desktop-launch-OGZO6ZJG.js} +1 -1
- package/dist/{codex-session-launch-ZIXKXKTB.js → codex-session-launch-DOWFJZA4.js} +11 -11
- package/dist/{global-upgrade-4FLQ53HE.js → global-upgrade-T4R5NZLD.js} +7 -7
- package/dist/{identity-7H3PMMPS.js → identity-OJIHTE3W.js} +3 -3
- package/dist/{live-capabilities-YENLFDYL.js → live-capabilities-LRILVMMZ.js} +3 -3
- package/dist/{paths-PEFZYPII.js → paths-KHADVAWP.js} +2 -2
- package/dist/{reapply-EOOEZXUJ.js → reapply-6EIHGVRL.js} +20 -20
- package/dist/src/index.js +21 -21
- package/dist/{upgrade-lock-L5QYJEGO.js → upgrade-lock-UISWFQ3X.js} +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLI_PACKAGE_NAMES,
|
|
3
|
+
LATEST_DIST_TAG,
|
|
3
4
|
OWNERSHIP_PROBE_COMMAND,
|
|
4
5
|
classifyGlobalFolder,
|
|
5
6
|
classifyGlobalInstall,
|
|
@@ -461,6 +462,23 @@ var throwIfNpmRefusesInstall = (request, runNpm = execNpm) => {
|
|
|
461
462
|
if (preview.kind === "refused_for_release_age") throw preview.refusal;
|
|
462
463
|
if (preview.kind === "failed") throw preview.failure;
|
|
463
464
|
};
|
|
465
|
+
var chosenRelease = (version) => ({ kind: "chosen", version });
|
|
466
|
+
var releaseNpmInstalls = (request, resolved, published, runNpm) => isNewerVersion(published, resolved) && npmExemptsFromReleaseAge(request, runNpm) ? published : resolved;
|
|
467
|
+
var newestReleaseNpmAllows = (target, installed, published, runNpm = execNpm) => {
|
|
468
|
+
const request = { ...target, version: LATEST_DIST_TAG };
|
|
469
|
+
const preview = previewGlobalInstall(request, runNpm);
|
|
470
|
+
switch (preview.kind) {
|
|
471
|
+
case "resolved":
|
|
472
|
+
return chosenRelease(releaseNpmInstalls(request, preview.version, published, runNpm));
|
|
473
|
+
case "refused_for_release_age":
|
|
474
|
+
return chosenRelease(installed);
|
|
475
|
+
case "failed":
|
|
476
|
+
return { kind: "npm_failed", failure: preview.failure };
|
|
477
|
+
case "unavailable":
|
|
478
|
+
return chosenRelease(published);
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
var describeReleaseNpmHolds = (published) => `${published} is not yet allowed by this machine's npm settings, such as min-release-age`;
|
|
464
482
|
var needsGlobalInstall = (requested, installed, binaryPresent) => requested !== installed || !binaryPresent;
|
|
465
483
|
var setupWouldDowngrade = (requested, installed) => installed !== void 0 && isReleaseVersion(installed) && isReleaseVersion(requested) && isNewerVersion(installed, requested);
|
|
466
484
|
var planGlobalInstall = (platform) => {
|
|
@@ -484,9 +502,9 @@ var installGlobally = (options) => {
|
|
|
484
502
|
}
|
|
485
503
|
const started = (async () => {
|
|
486
504
|
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-
|
|
505
|
+
const { withUpgradeLock } = await import("./global-upgrade-T4R5NZLD.js");
|
|
506
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-UISWFQ3X.js");
|
|
507
|
+
const { autoUpdateLock } = await import("./paths-KHADVAWP.js");
|
|
490
508
|
let result = "skipped";
|
|
491
509
|
const install = async () => {
|
|
492
510
|
const platform = process.platform;
|
|
@@ -555,6 +573,7 @@ export {
|
|
|
555
573
|
NpmPermissionError,
|
|
556
574
|
NpmInstallError,
|
|
557
575
|
NpmReleaseAgeError,
|
|
576
|
+
npmExitedOnReleaseAge,
|
|
558
577
|
npmInstallFailure,
|
|
559
578
|
resolveBinary,
|
|
560
579
|
resolvePackageVersionFromBinary,
|
|
@@ -567,9 +586,9 @@ export {
|
|
|
567
586
|
quoteIfNeeded,
|
|
568
587
|
fetchLatestPublishedVersion,
|
|
569
588
|
installPackageGlobally,
|
|
570
|
-
npmExemptsFromReleaseAge,
|
|
571
|
-
previewGlobalInstall,
|
|
572
589
|
throwIfNpmRefusesInstall,
|
|
590
|
+
newestReleaseNpmAllows,
|
|
591
|
+
describeReleaseNpmHolds,
|
|
573
592
|
plannedGlobalPackage,
|
|
574
593
|
installGlobally
|
|
575
594
|
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-ME4RYRDR.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-W5FLGEYD.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "./chunk-CVJ6H2VK.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L6NERUNF.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
20
|
} from "./chunk-5LRVMXIZ.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-APQZ3KX2.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WSMOSC7V.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JF4RHZLF.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
14
|
} from "./chunk-CXBOEYV6.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WSMOSC7V.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5AF6JBCS.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
10
|
} from "./chunk-LRA423VV.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isPusharyHook,
|
|
20
20
|
registerHookEntry,
|
|
21
21
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JF4RHZLF.js";
|
|
23
23
|
import {
|
|
24
24
|
HOOK_COMPATIBLE_PROFILES,
|
|
25
25
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VD5V6F7F.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OLKEMRJS.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENCODE_HOOK_BINARY,
|
|
10
10
|
openCodeConfigDir,
|
|
11
11
|
openCodePluginFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HMP72ZHV.js";
|
|
13
13
|
import {
|
|
14
14
|
openCodePluginArgv
|
|
15
15
|
} from "./chunk-LSR6SAV7.js";
|
|
16
16
|
import {
|
|
17
17
|
liveCursorGateCoverage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2M5CQWRP.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
22
|
grokHome,
|
|
23
23
|
parseConfigDocument
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-APQZ3KX2.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_HOOKS_KEY_PATH,
|
|
27
27
|
GEMINI_HOOK_BINARY,
|
|
28
28
|
GEMINI_HOOK_EVENTS,
|
|
29
29
|
hooksAt
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-WSMOSC7V.js";
|
|
31
31
|
import {
|
|
32
32
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
33
33
|
CODEX_HOOK_BINARY,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
parseHookArgv,
|
|
56
56
|
parseHookCommand,
|
|
57
57
|
supportedClaudeEvents
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-JF4RHZLF.js";
|
|
59
59
|
import {
|
|
60
60
|
readRegularJsonFile,
|
|
61
61
|
readRegularTextFile
|
|
@@ -536,7 +536,7 @@ var loadedOnce = (load) => {
|
|
|
536
536
|
};
|
|
537
537
|
|
|
538
538
|
// src/codex-desktop-proxy.ts
|
|
539
|
-
var loadThePhone = () => import("./api-
|
|
539
|
+
var loadThePhone = () => import("./api-BRYBSBZK.js");
|
|
540
540
|
var loadTheCardRouting = () => import("./codex-card-routing-WS72OC7Y.js");
|
|
541
541
|
var theFirstCardLoadsAgain = () => {
|
|
542
542
|
};
|
|
@@ -1097,7 +1097,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1097
1097
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1098
1098
|
}
|
|
1099
1099
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1100
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1100
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-NYYOAVLZ.js");
|
|
1101
1101
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1102
1102
|
}
|
|
1103
1103
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2M5CQWRP.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HIHKYDIN.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-APQZ3KX2.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SJRLILZR.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JF4RHZLF.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5BCZSBRC.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
14
|
} from "./chunk-CXBOEYV6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureCodexTrustsPusharyHooks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TMXWZ523.js";
|
|
4
4
|
import {
|
|
5
5
|
hermesReceiptPaths,
|
|
6
6
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
refreshHermesPluginFiles,
|
|
10
10
|
refreshOpenClawPlugin,
|
|
11
11
|
shippedHermesPlugin
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZIFSPYWB.js";
|
|
13
13
|
import {
|
|
14
14
|
fxIgnoresInstructionsFile,
|
|
15
15
|
fxInstructionsBody,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
macAppFxBridge,
|
|
19
19
|
refreshClineKey,
|
|
20
20
|
switchFxHttpEntryToBridge
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JTNEB67J.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCODE_HOOK_BINARY,
|
|
24
24
|
agentHookOwner,
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
openCodePluginDir,
|
|
32
32
|
openCodeWired,
|
|
33
33
|
withOpenCodeAskRules
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HMP72ZHV.js";
|
|
35
35
|
import {
|
|
36
36
|
detectClaudeVersion
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-FMU7EE4Z.js";
|
|
38
38
|
import {
|
|
39
39
|
addCompatibleHooks,
|
|
40
40
|
compatibleConfigFile,
|
|
41
41
|
compatibleInstructionsFile,
|
|
42
42
|
hasCompatibleHooks
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-APQZ3KX2.js";
|
|
44
44
|
import {
|
|
45
45
|
GEMINI_HOOK_BINARY,
|
|
46
46
|
addGeminiHooks,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
geminiWired,
|
|
53
53
|
hasGeminiHooks,
|
|
54
54
|
planHooks
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-WSMOSC7V.js";
|
|
56
56
|
import {
|
|
57
57
|
KEY_FILE_MODE
|
|
58
58
|
} from "./chunk-5LRVMXIZ.js";
|
|
@@ -102,13 +102,13 @@ import {
|
|
|
102
102
|
renderAgentInstructions,
|
|
103
103
|
supportedClaudeEvents,
|
|
104
104
|
vscodePluginMcp
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-JF4RHZLF.js";
|
|
106
106
|
import {
|
|
107
107
|
formatVersion,
|
|
108
108
|
hookCommandsUseBareNames,
|
|
109
109
|
resolveGlobalBinDir,
|
|
110
110
|
resolveGlobalBinary
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-5BCZSBRC.js";
|
|
112
112
|
import {
|
|
113
113
|
readJsonSafe,
|
|
114
114
|
writeFileAtomic,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VAFNZO3R.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WSMOSC7V.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
12
|
} from "./chunk-LRA423VV.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-JF4RHZLF.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FMU7EE4Z.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-TCE3J44Z.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolvePackageVersionFromBinary,
|
|
13
13
|
resolvePathBinary,
|
|
14
14
|
resolvePathBinaryAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5BCZSBRC.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENTS,
|
|
18
18
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
} from "./chunk-VT4JY2AI.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-APQZ3KX2.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WSMOSC7V.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
25
|
} from "./chunk-PTV6A5SZ.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveBridgeStub,
|
|
37
37
|
vscodePluginDir,
|
|
38
38
|
windowsNodeLauncherFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-JF4RHZLF.js";
|
|
40
40
|
import {
|
|
41
41
|
readJsonSafe
|
|
42
42
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S7MFDG4I.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W5FLGEYD.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L6NERUNF.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZZDJSFRO.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HME7GJ6U.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,21 +18,22 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FO5DHJSL.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JF4RHZLF.js";
|
|
27
27
|
import {
|
|
28
|
+
describeReleaseNpmHolds,
|
|
28
29
|
execNpm,
|
|
29
30
|
fetchLatestPublishedVersion,
|
|
31
|
+
newestReleaseNpmAllows,
|
|
30
32
|
npmErrorMessage,
|
|
31
|
-
|
|
32
|
-
previewGlobalInstall,
|
|
33
|
+
npmExitedOnReleaseAge,
|
|
33
34
|
readGlobalCliInstallAt,
|
|
34
35
|
readGlobalPrefix
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-5BCZSBRC.js";
|
|
36
37
|
import {
|
|
37
38
|
EXIT
|
|
38
39
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -40,7 +41,6 @@ import {
|
|
|
40
41
|
NPX_LATEST_COMMAND
|
|
41
42
|
} from "./chunk-Q7PIFWTG.js";
|
|
42
43
|
import {
|
|
43
|
-
LATEST_DIST_TAG,
|
|
44
44
|
commandsPackage,
|
|
45
45
|
globalUpgradeEntry,
|
|
46
46
|
isNewerVersion,
|
|
@@ -188,29 +188,16 @@ var finishInstalledUpgrade = async (context, from, to, finishAttempts) => {
|
|
|
188
188
|
};
|
|
189
189
|
var settledFinishCheck = (state) => ({ result: "finish_blocked", from: state.from, to: state.to, detail: state.detail });
|
|
190
190
|
var isInstallableRelease = (latest, installed) => latest !== void 0 && isNewerVersion(latest, installed) && isSameMajorVersion(latest, installed);
|
|
191
|
-
var releaseNpmInstalls = (request, resolved, published, runNpm) => isNewerVersion(published, resolved) && npmExemptsFromReleaseAge(request, runNpm) ? published : resolved;
|
|
192
191
|
var chosenRelease = (version) => ({ kind: "chosen", version });
|
|
193
192
|
var releaseNpmAllows = (context, installed, published) => {
|
|
194
193
|
if (published === void 0 || !isInstallableRelease(published, installed)) return chosenRelease(published);
|
|
195
|
-
|
|
194
|
+
return newestReleaseNpmAllows({
|
|
196
195
|
packageName: context.location.packageName,
|
|
197
|
-
version: LATEST_DIST_TAG,
|
|
198
196
|
prefix: context.location.prefix,
|
|
199
197
|
timeoutMs: INSTALL_TIMEOUT_MS
|
|
200
|
-
};
|
|
201
|
-
const preview = previewGlobalInstall(request, context.runNpm);
|
|
202
|
-
switch (preview.kind) {
|
|
203
|
-
case "resolved":
|
|
204
|
-
return chosenRelease(releaseNpmInstalls(request, preview.version, published, context.runNpm));
|
|
205
|
-
case "refused_for_release_age":
|
|
206
|
-
return chosenRelease(installed);
|
|
207
|
-
case "failed":
|
|
208
|
-
return { kind: "npm_failed", failure: preview.failure };
|
|
209
|
-
case "unavailable":
|
|
210
|
-
return chosenRelease(published);
|
|
211
|
-
}
|
|
198
|
+
}, installed, published, context.runNpm);
|
|
212
199
|
};
|
|
213
|
-
var npmPolicyHoldDetail = (published, allowed) => published !== void 0 && published !== allowed && isNewerVersion(published, allowed) ?
|
|
200
|
+
var npmPolicyHoldDetail = (published, allowed) => published !== void 0 && published !== allowed && isNewerVersion(published, allowed) ? describeReleaseNpmHolds(published) : void 0;
|
|
214
201
|
var checkAndInstall = async (context) => {
|
|
215
202
|
const installed = packageVersionAt(context.packageRoot);
|
|
216
203
|
if (installed === void 0 || !isReleaseVersion(installed)) {
|
|
@@ -374,12 +361,21 @@ var forgetUnfinishedUpgrade = (record, upgradedFrom) => {
|
|
|
374
361
|
});
|
|
375
362
|
};
|
|
376
363
|
var describeUpgradeStart = (subject, latest) => `Upgrading ${subject.name} ${subject.version} -> ${latest ?? "latest"}`;
|
|
364
|
+
var UPGRADE_AGAIN_LATER = `Run ${NPX_LATEST_COMMAND} upgrade again later.`;
|
|
365
|
+
var describeReleaseWaitingOnNpm = (published) => `${describeReleaseNpmHolds(published)}. ${UPGRADE_AGAIN_LATER}`;
|
|
366
|
+
var upgradeTargetFor = (subject, published, effects) => {
|
|
367
|
+
if (published === void 0 || !isReleaseVersion(published)) return { kind: "unresolved" };
|
|
368
|
+
if (!isNewerVersion(published, subject.version)) return { kind: "current" };
|
|
369
|
+
const choice = effects.releaseNpmAllows(subject.name, subject.version, published);
|
|
370
|
+
if (choice.kind === "npm_failed") return choice;
|
|
371
|
+
return isNewerVersion(choice.version, subject.version) ? { kind: "install", version: choice.version, published } : { kind: "held", published };
|
|
372
|
+
};
|
|
373
|
+
var installFailureDetail = (error, version) => npmExitedOnReleaseAge(error) ? describeReleaseWaitingOnNpm(version) : npmErrorMessage(error);
|
|
377
374
|
var upgradeInstalledPackage = async (subject, effects) => {
|
|
378
375
|
const pendingFinish = effects.hasPendingFinish(subject.version);
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
if (pendingFinish && !newerPublished) {
|
|
376
|
+
const target = upgradeTargetFor(subject, await effects.fetchLatest(subject.name), effects);
|
|
377
|
+
if (target.kind === "npm_failed") return { kind: "install_failed", detail: npmErrorMessage(target.failure) };
|
|
378
|
+
if (pendingFinish && target.kind !== "install") {
|
|
383
379
|
const finish2 = await effects.finish(subject);
|
|
384
380
|
if (finish2.kind !== "finished") {
|
|
385
381
|
effects.recordUnfinished(finish2);
|
|
@@ -387,13 +383,15 @@ var upgradeInstalledPackage = async (subject, effects) => {
|
|
|
387
383
|
}
|
|
388
384
|
effects.recordFinished();
|
|
389
385
|
}
|
|
390
|
-
if (
|
|
391
|
-
if (
|
|
392
|
-
|
|
386
|
+
if (target.kind === "unresolved") return { kind: "install_failed", detail: "Could not resolve an exact published release. No package was installed; check the registry connection and retry." };
|
|
387
|
+
if (target.kind === "current") return { kind: "current", version: subject.version };
|
|
388
|
+
if (target.kind === "held") return { kind: "held_by_npm", version: subject.version, detail: describeReleaseWaitingOnNpm(target.published) };
|
|
389
|
+
effects.announce(describeUpgradeStart(subject, target.version));
|
|
390
|
+
if (isNewerVersion(target.published, target.version)) effects.announce(describeReleaseWaitingOnNpm(target.published));
|
|
393
391
|
try {
|
|
394
|
-
effects.install(subject.name,
|
|
392
|
+
effects.install(subject.name, target.version);
|
|
395
393
|
} catch (error) {
|
|
396
|
-
return { kind: "install_failed", detail:
|
|
394
|
+
return { kind: "install_failed", detail: installFailureDetail(error, target.version) };
|
|
397
395
|
}
|
|
398
396
|
const finish = await effects.finish(subject);
|
|
399
397
|
if (finish.kind === "finished") effects.forgetUnfinished();
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
describeIdleWindow,
|
|
17
17
|
idleDeadlinePassed,
|
|
18
18
|
startProcessOwnership
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3TXESHDA.js";
|
|
20
20
|
import {
|
|
21
21
|
spawnClaude
|
|
22
22
|
} from "./chunk-VRNGMRJA.js";
|
|
@@ -26,14 +26,14 @@ import {
|
|
|
26
26
|
isWaitForAnswerResponse,
|
|
27
27
|
withdrawQuestion,
|
|
28
28
|
writeDegraded
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SJRLILZR.js";
|
|
30
30
|
import {
|
|
31
31
|
readCommandAck
|
|
32
32
|
} from "./chunk-R4TTSINC.js";
|
|
33
33
|
import {
|
|
34
34
|
callMcpTool,
|
|
35
35
|
isRetryable
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-R5VJTCXK.js";
|
|
37
37
|
import {
|
|
38
38
|
projectNameFor,
|
|
39
39
|
repositoryScopeFor
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-24F6XTB3.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WNWAEFXM.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
13
|
} from "./chunk-5LRVMXIZ.js";
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
withClinePusharyServer,
|
|
33
33
|
withRefreshedClineKey,
|
|
34
34
|
withoutClinePusharyServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JF4RHZLF.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveGlobalBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5BCZSBRC.js";
|
|
39
39
|
import {
|
|
40
40
|
readJsonSafe,
|
|
41
41
|
writeFileAtomic,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NYHSZQ52.js";
|
|
18
18
|
import {
|
|
19
19
|
describeRevokeAttempt,
|
|
20
20
|
keyNoLongerAccepted,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-CVJ6H2VK.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-L6NERUNF.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
38
|
} from "./chunk-2C5DS3GU.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
isLocalQuestionHandoff,
|
|
10
10
|
unavailableQuestionUnlessRefused,
|
|
11
11
|
waitForQuestion
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SJRLILZR.js";
|
|
13
13
|
import {
|
|
14
14
|
getMachineId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NAWYRZE5.js";
|
|
16
16
|
import {
|
|
17
17
|
hookMaxWaitSeconds,
|
|
18
18
|
hookWaitClamped,
|