@pushary/agent-hooks 1.9.79 → 1.9.80
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 +6 -0
- package/dist/{api-T6DRYZOD.js → api-FPA2PPXY.js} +7 -7
- package/dist/bin/pushary-bell-hook.js +18 -18
- package/dist/bin/pushary-bell.js +5 -5
- package/dist/bin/pushary-claude.js +19 -19
- package/dist/bin/pushary-clean.js +27 -27
- package/dist/bin/pushary-codex-bridge.js +14 -14
- 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 +18 -18
- package/dist/bin/pushary-display-hook.js +10 -10
- package/dist/bin/pushary-doctor.js +32 -32
- package/dist/bin/pushary-elicitation-hook.js +18 -18
- package/dist/bin/pushary-gemini-bridge.js +9 -9
- package/dist/bin/pushary-gemini-hook.js +19 -19
- package/dist/bin/pushary-hook.js +20 -20
- package/dist/bin/pushary-login.js +13 -13
- package/dist/bin/pushary-logout.js +16 -16
- package/dist/bin/pushary-mcp.js +8 -8
- package/dist/bin/pushary-mode.js +9 -9
- package/dist/bin/pushary-notification-hook.js +17 -17
- package/dist/bin/pushary-opencode-hook.js +18 -18
- package/dist/bin/pushary-permission-denied-hook.js +20 -20
- package/dist/bin/pushary-permission-hook.js +20 -20
- package/dist/bin/pushary-post-hook.js +17 -17
- package/dist/bin/pushary-prompt-hook.js +17 -17
- package/dist/bin/pushary-session-end-hook.js +19 -19
- package/dist/bin/pushary-session-start-hook.js +27 -27
- package/dist/bin/pushary-setup.js +37 -37
- package/dist/bin/pushary-status.js +23 -23
- package/dist/bin/pushary-stop-hook.js +17 -17
- package/dist/bin/pushary-stopfailure-hook.js +17 -17
- package/dist/bin/pushary-suggestions.js +9 -9
- package/dist/bin/pushary-transcript-register.js +10 -10
- package/dist/bin/pushary-transcripts.js +13 -13
- package/dist/bin/pushary-upgrade.js +32 -32
- package/dist/bin/pushary-wait.js +9 -9
- package/dist/bin/pushary.js +4 -4
- package/dist/{chunk-WA4S6YAT.js → chunk-24FQPJOZ.js} +2 -2
- package/dist/{chunk-7OSGGPBR.js → chunk-262U6MMI.js} +2 -2
- package/dist/{chunk-CX6EIW3N.js → chunk-3BPSCYOE.js} +6 -6
- package/dist/{chunk-ERC6QW27.js → chunk-3G2D5NAG.js} +3 -3
- package/dist/{chunk-UGP4FYMV.js → chunk-3GZRNHH5.js} +1 -1
- package/dist/{chunk-QATBJHE6.js → chunk-3KQM5AKY.js} +3 -3
- package/dist/{chunk-V3EN7LWU.js → chunk-3LJU2L5S.js} +4 -4
- package/dist/{chunk-NFRBLMM2.js → chunk-4OXYED6O.js} +3 -3
- package/dist/{chunk-IYKY3ZAV.js → chunk-4WCPDCKA.js} +2 -2
- package/dist/{chunk-63JW566T.js → chunk-6VLSVB2C.js} +4 -4
- package/dist/{chunk-MVAP3NRX.js → chunk-7QYERUTD.js} +1 -1
- package/dist/{chunk-CB2Y4GEH.js → chunk-7TIDWBXF.js} +9 -9
- package/dist/{chunk-236NGCTH.js → chunk-B67R6ZCW.js} +2 -2
- package/dist/{chunk-CH3CCVH4.js → chunk-BWE52JRG.js} +1 -1
- package/dist/{chunk-5MKPJ3WR.js → chunk-DFW2JKHX.js} +1 -1
- package/dist/{chunk-PZ3OFAZ7.js → chunk-DN6QYNNC.js} +7 -7
- package/dist/{chunk-LXV53WHO.js → chunk-EU67IKIQ.js} +2 -2
- package/dist/{chunk-EKVW5Y23.js → chunk-EUZ73S73.js} +2 -2
- package/dist/{chunk-3K67QTMR.js → chunk-FNBGGKRK.js} +5 -5
- package/dist/{chunk-Q5J33E43.js → chunk-FZJON3RK.js} +4 -4
- package/dist/{chunk-7BALOMAV.js → chunk-HJZDJS63.js} +2 -2
- package/dist/{chunk-X7JGHARV.js → chunk-HMLURCXV.js} +3 -3
- package/dist/{chunk-CLE7EVOW.js → chunk-IRE7HPNI.js} +31 -4
- package/dist/{chunk-VER45SAA.js → chunk-ITVTU4RZ.js} +4 -4
- package/dist/{chunk-L7FBI7N7.js → chunk-IWYGHJY6.js} +3 -3
- package/dist/{chunk-Z7AIEIM5.js → chunk-IYCYKG2B.js} +1 -1
- package/dist/{chunk-RQOJ23I4.js → chunk-J5BCHHCB.js} +1 -1
- package/dist/{chunk-EUW7JL2K.js → chunk-K6ZOH6P7.js} +13 -6
- package/dist/{chunk-O7WSNZIR.js → chunk-KHLWYQK7.js} +8 -8
- package/dist/{chunk-5NWAWDRM.js → chunk-L3VBP627.js} +4 -4
- package/dist/{chunk-CSJD7NN6.js → chunk-LIXHCI4G.js} +5 -5
- package/dist/{chunk-Q7J77QL2.js → chunk-LK343VAG.js} +1 -1
- package/dist/{chunk-XKJYTP3G.js → chunk-LN32FXTF.js} +4 -4
- package/dist/{chunk-KLE2ZMSJ.js → chunk-MJNZBNTN.js} +1 -1
- package/dist/{chunk-ANNRW6VU.js → chunk-N3DOT42Y.js} +5 -5
- package/dist/{chunk-BLG7OEX4.js → chunk-NOQGCGOR.js} +1 -1
- package/dist/{chunk-P2PPAW5E.js → chunk-OSXIMNMJ.js} +1 -1
- package/dist/{chunk-C7BK5C6K.js → chunk-PE6JUMI2.js} +2 -2
- package/dist/{chunk-IEJOZQ7N.js → chunk-PJRXYNXG.js} +5 -5
- package/dist/{chunk-J3QUMD2E.js → chunk-QBI4KSTQ.js} +2 -2
- package/dist/{chunk-QZ5KIX6U.js → chunk-QNPIHZFM.js} +2 -2
- package/dist/{chunk-WBC2ZXU7.js → chunk-RNAFUXEK.js} +3 -3
- package/dist/{chunk-AFNLCEHM.js → chunk-S5MRKUSX.js} +1 -1
- package/dist/{chunk-4DSCZINL.js → chunk-SGG5GNVW.js} +3 -3
- package/dist/{chunk-3D3L4ULT.js → chunk-T2H6BCRY.js} +1 -1
- package/dist/{chunk-WB5PC4TL.js → chunk-TSCACSAR.js} +4 -4
- package/dist/{chunk-BH7XLF5R.js → chunk-UAADLSK5.js} +3 -3
- package/dist/{chunk-RDXNJSXM.js → chunk-UCZZX5JH.js} +2 -2
- package/dist/{chunk-TRVJ6MS5.js → chunk-VP473NXT.js} +4 -4
- package/dist/{chunk-AVCPF3VS.js → chunk-WQNHWWVW.js} +1 -1
- package/dist/{chunk-4NRT3CEF.js → chunk-YEPXSGFC.js} +1 -1
- package/dist/{chunk-LTQJ2IMO.js → chunk-YJGWHP2I.js} +2 -2
- package/dist/{chunk-5HMSHKZT.js → chunk-Z4PNECON.js} +1 -1
- package/dist/{chunk-ZU7XS6PN.js → chunk-ZYFZAZCN.js} +1 -1
- package/dist/{codex-app-cards-switch-OWLU462R.js → codex-app-cards-switch-AT6X3X6U.js} +7 -7
- package/dist/{codex-desktop-launch-G37GNF4B.js → codex-desktop-launch-4ELF22QM.js} +1 -1
- package/dist/{codex-session-launch-AV2AL64X.js → codex-session-launch-QEVWHTU7.js} +12 -12
- package/dist/{global-upgrade-JWI5XIZP.js → global-upgrade-H3S4KQ26.js} +8 -8
- package/dist/{identity-JAXJ3FOD.js → identity-FB7QFMEZ.js} +3 -3
- package/dist/{live-capabilities-7PPQ2HPU.js → live-capabilities-27LDDOMC.js} +4 -4
- package/dist/{paths-YV3ZK5LT.js → paths-URGGQMFD.js} +2 -2
- package/dist/{reapply-YHJHUTFY.js → reapply-A6OKNS24.js} +21 -21
- package/dist/src/index.js +20 -20
- package/dist/{upgrade-lock-I4JPC4WG.js → upgrade-lock-65A4XSMV.js} +3 -3
- package/package.json +1 -1
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
} from "./chunk-XHKBHWLX.js";
|
|
5
5
|
import {
|
|
6
6
|
readControlMode
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3GZRNHH5.js";
|
|
8
8
|
import {
|
|
9
9
|
getMachineId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QBI4KSTQ.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7QYERUTD.js";
|
|
14
14
|
import {
|
|
15
15
|
readJsonSafe,
|
|
16
16
|
resolveGlobalBinary,
|
|
17
17
|
writeFileAtomic,
|
|
18
18
|
writeJsonAtomic,
|
|
19
19
|
writeJsonAtomicDurable
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IRE7HPNI.js";
|
|
21
21
|
import {
|
|
22
22
|
getApiKey
|
|
23
23
|
} from "./chunk-AFCKBLEG.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZYFZAZCN.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EUZ73S73.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S5MRKUSX.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
13
|
} from "./chunk-AFCKBLEG.js";
|
|
@@ -124,7 +124,26 @@ var execNpm = (args, options = {}) => {
|
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
126
|
var GLOBAL_PREFIX_TIMEOUT_MS = 5e3;
|
|
127
|
-
var
|
|
127
|
+
var GLOBAL_PREFIX_REUSE_MS = 6e4;
|
|
128
|
+
var GLOBAL_PREFIX_ENVIRONMENT = ["PATH", "HOME", "USERPROFILE", "APPDATA", "PREFIX", "DESTDIR"];
|
|
129
|
+
var NPM_CONFIG_VARIABLE = /^npm_config_/i;
|
|
130
|
+
var rememberedGlobalPrefix = null;
|
|
131
|
+
var isNpmConfigVariable = ([key]) => NPM_CONFIG_VARIABLE.test(key);
|
|
132
|
+
var currentDirectory = () => {
|
|
133
|
+
try {
|
|
134
|
+
return process.cwd();
|
|
135
|
+
} catch {
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
var globalPrefixInputs = () => JSON.stringify({
|
|
140
|
+
cwd: currentDirectory(),
|
|
141
|
+
environment: GLOBAL_PREFIX_ENVIRONMENT.map((key) => process.env[key] ?? null),
|
|
142
|
+
npmConfig: Object.entries(process.env).filter(isNpmConfigVariable).sort(([left], [right]) => left.localeCompare(right))
|
|
143
|
+
});
|
|
144
|
+
var withinReuseWindow = (readAt, now) => now >= readAt && now - readAt < GLOBAL_PREFIX_REUSE_MS;
|
|
145
|
+
var stillCurrent = (remembered, inputs, now) => remembered !== null && remembered.inputs === inputs && withinReuseWindow(remembered.readAt, now);
|
|
146
|
+
var askNpmForGlobalPrefix = () => {
|
|
128
147
|
try {
|
|
129
148
|
const prefix = execNpm("prefix -g --no-workspaces", { timeout: GLOBAL_PREFIX_TIMEOUT_MS }).toString().trim();
|
|
130
149
|
return prefix === "" ? void 0 : prefix;
|
|
@@ -132,6 +151,14 @@ var readGlobalPrefix = () => {
|
|
|
132
151
|
return void 0;
|
|
133
152
|
}
|
|
134
153
|
};
|
|
154
|
+
var readGlobalPrefix = () => {
|
|
155
|
+
const inputs = globalPrefixInputs();
|
|
156
|
+
const now = Date.now();
|
|
157
|
+
if (stillCurrent(rememberedGlobalPrefix, inputs, now)) return rememberedGlobalPrefix.prefix;
|
|
158
|
+
const prefix = askNpmForGlobalPrefix();
|
|
159
|
+
rememberedGlobalPrefix = prefix === void 0 ? null : { inputs, prefix, readAt: now };
|
|
160
|
+
return prefix;
|
|
161
|
+
};
|
|
135
162
|
var resolveGlobalBinary = (name) => {
|
|
136
163
|
const prefix = readGlobalPrefix();
|
|
137
164
|
if (prefix === void 0) return void 0;
|
|
@@ -443,9 +470,9 @@ var installGlobally = (options) => {
|
|
|
443
470
|
}
|
|
444
471
|
const started = (async () => {
|
|
445
472
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
446
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
447
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
448
|
-
const { autoUpdateLock } = await import("./paths-
|
|
473
|
+
const { withUpgradeLock } = await import("./global-upgrade-H3S4KQ26.js");
|
|
474
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-65A4XSMV.js");
|
|
475
|
+
const { autoUpdateLock } = await import("./paths-URGGQMFD.js");
|
|
449
476
|
let result = "skipped";
|
|
450
477
|
const install = async () => {
|
|
451
478
|
const platform = process.platform;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3LJU2L5S.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3GZRNHH5.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7QYERUTD.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IRE7HPNI.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HMLURCXV.js";
|
|
4
4
|
import {
|
|
5
5
|
canChangeApprovalSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZYFZAZCN.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T2H6BCRY.js";
|
|
11
11
|
import {
|
|
12
12
|
EXIT
|
|
13
13
|
} from "./chunk-KZERVKTD.js";
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
// src/skills-cli.ts
|
|
2
|
-
import {
|
|
2
|
+
import { exec } from "child_process";
|
|
3
|
+
import { promisify } from "util";
|
|
3
4
|
var PUSHARY_SKILL_SOURCE = "Pushary/pushary-skill";
|
|
4
5
|
var PUSHARY_SKILL_NAME = "pushary";
|
|
5
|
-
var
|
|
6
|
+
var SKILLS_CLI_TIMEOUT_MS = 9e4;
|
|
7
|
+
var SKILLS_CLI_OUTPUT_LIMIT_BYTES = 1024 * 1024;
|
|
8
|
+
var runShellAsync = promisify(exec);
|
|
9
|
+
var skillsCliCommand = (agent) => `npx -y skills@latest add ${PUSHARY_SKILL_SOURCE}@${PUSHARY_SKILL_NAME} -y -g --agent ${agent}`;
|
|
10
|
+
var installSkillViaSkillsCli = async (agent) => {
|
|
6
11
|
try {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
const running = runShellAsync(skillsCliCommand(agent), {
|
|
13
|
+
timeout: SKILLS_CLI_TIMEOUT_MS,
|
|
14
|
+
maxBuffer: SKILLS_CLI_OUTPUT_LIMIT_BYTES
|
|
10
15
|
});
|
|
16
|
+
running.child.stdin?.end();
|
|
17
|
+
await running;
|
|
11
18
|
return true;
|
|
12
19
|
} catch {
|
|
13
20
|
return false;
|
|
@@ -16,7 +23,7 @@ var installSkillViaSkillsCli = (agent) => {
|
|
|
16
23
|
var installAgentSkill = async (request, effects) => {
|
|
17
24
|
if (request.skillsCliInUse) {
|
|
18
25
|
const startedAt = effects.now();
|
|
19
|
-
if (effects.runSkillsCli(request.agent)) {
|
|
26
|
+
if (await effects.runSkillsCli(request.agent)) {
|
|
20
27
|
const modifiedAt = effects.skillModifiedAt(request.agentSkillDir);
|
|
21
28
|
if (modifiedAt !== null && modifiedAt >= startedAt) return "skills-cli";
|
|
22
29
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
outcomeOfFailedAsk,
|
|
5
5
|
reportMachineDenial,
|
|
6
6
|
storedWaitDeadline
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-N3DOT42Y.js";
|
|
8
8
|
import {
|
|
9
9
|
isGatingMoment,
|
|
10
10
|
recordKeylessMoment
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
isAdmitted,
|
|
14
14
|
readAdmissionRules
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3BPSCYOE.js";
|
|
16
16
|
import {
|
|
17
17
|
isDeferAnswer,
|
|
18
18
|
oncePerSession
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Z4PNECON.js";
|
|
20
20
|
import {
|
|
21
21
|
activeHookSource,
|
|
22
22
|
activeIdentity,
|
|
23
23
|
namedSource
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4OXYED6O.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_SESSION,
|
|
27
27
|
UNNAMED_ACTION,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
reportEvent,
|
|
46
46
|
scopePathFor,
|
|
47
47
|
settleQuestionsForToolUse
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-FNBGGKRK.js";
|
|
49
49
|
import {
|
|
50
50
|
repoKeyFor
|
|
51
51
|
} from "./chunk-7R5ZKOQ4.js";
|
|
@@ -65,13 +65,13 @@ import {
|
|
|
65
65
|
waitForQuestion,
|
|
66
66
|
waitsForThePhone,
|
|
67
67
|
withdrawQuestion
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-UAADLSK5.js";
|
|
69
69
|
import {
|
|
70
70
|
getMachineId
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-QBI4KSTQ.js";
|
|
72
72
|
import {
|
|
73
73
|
claudeConfigDir
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-7QYERUTD.js";
|
|
75
75
|
import {
|
|
76
76
|
getApiKey,
|
|
77
77
|
getBaseUrl
|
|
@@ -2,22 +2,22 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BWE52JRG.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZYFZAZCN.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "./chunk-FO3MDD26.js";
|
|
12
12
|
import {
|
|
13
13
|
readKeySource
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3GZRNHH5.js";
|
|
15
15
|
import {
|
|
16
16
|
absoluteUrl,
|
|
17
17
|
checkApiKey,
|
|
18
18
|
describeKeyCheck,
|
|
19
19
|
keyCheckFromResponse
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-S5MRKUSX.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
23
|
} from "./chunk-AFCKBLEG.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-262U6MMI.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RNAFUXEK.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,19 +18,19 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UCZZX5JH.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7QYERUTD.js";
|
|
27
27
|
import {
|
|
28
28
|
execNpm,
|
|
29
29
|
fetchLatestPublishedVersion,
|
|
30
30
|
npmErrorMessage,
|
|
31
31
|
readGlobalCliInstallAt,
|
|
32
32
|
readGlobalPrefix
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-IRE7HPNI.js";
|
|
34
34
|
import {
|
|
35
35
|
EXIT
|
|
36
36
|
} from "./chunk-KZERVKTD.js";
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
hermesAppWiringRecord,
|
|
6
6
|
hermesConfigReceipt,
|
|
7
7
|
hermesSetupReceipt
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7QYERUTD.js";
|
|
9
9
|
import {
|
|
10
10
|
readJsonSafe,
|
|
11
11
|
resolvePathBinary,
|
|
12
12
|
writeJsonAtomic
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IRE7HPNI.js";
|
|
14
14
|
import {
|
|
15
15
|
isNewerVersion,
|
|
16
16
|
isReleaseVersion
|
|
@@ -2109,7 +2109,7 @@ var runHermesCommand = async (launcher, args, timeoutMs = HERMES_COMMAND_TIMEOUT
|
|
|
2109
2109
|
const running = runFileAsync(
|
|
2110
2110
|
shell ? quotedForWindowsShell(launcher.path) : launcher.path,
|
|
2111
2111
|
shell ? args.map(quotedForWindowsShell) : [...args],
|
|
2112
|
-
{ encoding: "utf-8", timeout: timeoutMs, maxBuffer: HERMES_OUTPUT_LIMIT_BYTES, shell
|
|
2112
|
+
{ encoding: "utf-8", timeout: timeoutMs, maxBuffer: HERMES_OUTPUT_LIMIT_BYTES, shell }
|
|
2113
2113
|
);
|
|
2114
2114
|
running.child.stdin?.end();
|
|
2115
2115
|
const { stdout } = await running;
|
|
@@ -2305,7 +2305,7 @@ var removeLegacyPipCopy = async (python, distribution) => {
|
|
|
2305
2305
|
const running = runFileAsync(
|
|
2306
2306
|
python,
|
|
2307
2307
|
["-m", "pip", "uninstall", "-y", distribution],
|
|
2308
|
-
{ encoding: "utf-8", timeout: LEGACY_PIP_TIMEOUT_MS, maxBuffer: HERMES_OUTPUT_LIMIT_BYTES
|
|
2308
|
+
{ encoding: "utf-8", timeout: LEGACY_PIP_TIMEOUT_MS, maxBuffer: HERMES_OUTPUT_LIMIT_BYTES }
|
|
2309
2309
|
);
|
|
2310
2310
|
running.child.stdin?.end();
|
|
2311
2311
|
const { stdout } = await running;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
announceSubscriptionRequired,
|
|
3
3
|
isDeferAnswer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Z4PNECON.js";
|
|
5
5
|
import {
|
|
6
6
|
AUTO_DECISION_WINDOW_MS,
|
|
7
7
|
DEFAULT_SESSION,
|
|
@@ -10,19 +10,19 @@ import {
|
|
|
10
10
|
permissionDeniedAction,
|
|
11
11
|
releaseThrottle,
|
|
12
12
|
reportEvent
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FNBGGKRK.js";
|
|
14
14
|
import {
|
|
15
15
|
askUser,
|
|
16
16
|
isDecisionStopped,
|
|
17
17
|
isQuestionLimitRefusal,
|
|
18
18
|
waitForQuestion
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UAADLSK5.js";
|
|
20
20
|
import {
|
|
21
21
|
SubscriptionRequiredError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EUZ73S73.js";
|
|
23
23
|
import {
|
|
24
24
|
getMachineId
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QBI4KSTQ.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_CONTEXT_MAX,
|
|
28
28
|
agentQuestionContext,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-ZJGIJDWP.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DFW2JKHX.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_HOOK_EVENTS,
|
|
9
9
|
CODEX_HOOK_EVENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
holdBudgetOf,
|
|
13
13
|
isProtectedByScope,
|
|
14
14
|
registerHookEntry
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7QYERUTD.js";
|
|
16
16
|
import {
|
|
17
17
|
CURSOR_GATE_EVENTS,
|
|
18
18
|
HOOK_BUDGETS,
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-T2H6BCRY.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IYCYKG2B.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3GZRNHH5.js";
|
|
14
14
|
import {
|
|
15
15
|
CLINE_SERVER_NAME_TAKEN,
|
|
16
16
|
CLINE_SETTINGS_REFUSALS,
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
withClinePusharyServer,
|
|
33
33
|
withRefreshedClineKey,
|
|
34
34
|
withoutClinePusharyServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-7QYERUTD.js";
|
|
36
36
|
import {
|
|
37
37
|
readJsonSafe,
|
|
38
38
|
resolveGlobalBinary,
|
|
39
39
|
writeFileAtomic,
|
|
40
40
|
writeJsonAtomic
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-IRE7HPNI.js";
|
|
42
42
|
|
|
43
43
|
// src/fx-config.ts
|
|
44
44
|
var FX_SERVER_NAME = "pushary";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7QYERUTD.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IRE7HPNI.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-QTOLNRET.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-24FQPJOZ.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J5BCHHCB.js";
|
|
7
7
|
import {
|
|
8
8
|
readGlobalPrefixAsync,
|
|
9
9
|
resolveGlobalBinary,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolvePackageVersionFromBinary,
|
|
14
14
|
resolvePathBinary,
|
|
15
15
|
resolvePathBinaryAsync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IRE7HPNI.js";
|
|
17
17
|
import {
|
|
18
18
|
MANAGED_PROVIDERS
|
|
19
19
|
} from "./chunk-HGCUZQUL.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
describeIdleWindow,
|
|
15
15
|
idleDeadlinePassed,
|
|
16
16
|
startProcessOwnership
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EU67IKIQ.js";
|
|
18
18
|
import {
|
|
19
19
|
spawnClaude
|
|
20
20
|
} from "./chunk-XHKBHWLX.js";
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
isWaitForAnswerResponse,
|
|
28
28
|
withdrawQuestion,
|
|
29
29
|
writeDegraded
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UAADLSK5.js";
|
|
31
31
|
import {
|
|
32
32
|
callMcpTool,
|
|
33
33
|
isRetryable
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EUZ73S73.js";
|
|
35
35
|
import {
|
|
36
36
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
37
37
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RNAFUXEK.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-FZJON3RK.js";
|
|
14
14
|
import {
|
|
15
15
|
readControlMode,
|
|
16
16
|
readKeySource
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3GZRNHH5.js";
|
|
18
18
|
import {
|
|
19
19
|
getMachineId
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QBI4KSTQ.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
23
|
} from "./chunk-AFCKBLEG.js";
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
McpToolError,
|
|
7
7
|
SubscriptionRequiredError,
|
|
8
8
|
callMcpTool
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EUZ73S73.js";
|
|
10
10
|
import {
|
|
11
11
|
installNetworkDefaults,
|
|
12
12
|
isNetworkFailure
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LK343VAG.js";
|
|
14
14
|
import {
|
|
15
15
|
clientReportClaims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7QYERUTD.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey,
|
|
19
19
|
getBaseUrl
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7QYERUTD.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IRE7HPNI.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_PACKAGE_NAMES,
|
|
13
13
|
POSIX_GLOBAL_ROOT_SEGMENTS,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readMacAppAgentKey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ITVTU4RZ.js";
|
|
4
4
|
import {
|
|
5
5
|
API_KEYS_PATH
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZYFZAZCN.js";
|
|
7
7
|
import {
|
|
8
8
|
findExportedKeyLines,
|
|
9
9
|
isAdoptedMacAppKey,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
readConfigFileKey,
|
|
14
14
|
readKeySource,
|
|
15
15
|
readMacAppKeyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3GZRNHH5.js";
|
|
17
17
|
import {
|
|
18
18
|
absoluteUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-S5MRKUSX.js";
|
|
20
20
|
import {
|
|
21
21
|
isValidApiKey
|
|
22
22
|
} from "./chunk-HGCUZQUL.js";
|