@pushary/agent-hooks 1.9.79 → 1.9.81
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 +12 -0
- package/README.md +4 -4
- package/data/SKILL.md +12 -16
- package/data/cursor-plugin/README.md +1 -1
- package/data/cursor-plugin/skills/pushary/SKILL.md +11 -15
- package/data/vscode-plugin/README.md +1 -1
- package/data/vscode-plugin/skills/pushary/SKILL.md +11 -15
- package/dist/{api-T6DRYZOD.js → api-VFUZ5HBR.js} +10 -10
- package/dist/bin/pushary-bell-hook.js +25 -25
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +34 -34
- package/dist/bin/pushary-codex-bridge.js +21 -21
- package/dist/bin/pushary-codex-hook.js +30 -30
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +13 -13
- package/dist/bin/pushary-connect.js +26 -26
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +38 -38
- package/dist/bin/pushary-disconnect.js +25 -25
- package/dist/bin/pushary-display-hook.js +16 -16
- package/dist/bin/pushary-doctor.js +41 -41
- package/dist/bin/pushary-elicitation-hook.js +25 -25
- package/dist/bin/pushary-gemini-bridge.js +15 -15
- package/dist/bin/pushary-gemini-hook.js +27 -27
- package/dist/bin/pushary-hook.js +29 -29
- package/dist/bin/pushary-login.js +20 -20
- package/dist/bin/pushary-logout.js +24 -24
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +24 -24
- package/dist/bin/pushary-opencode-hook.js +26 -26
- package/dist/bin/pushary-permission-denied-hook.js +29 -29
- package/dist/bin/pushary-permission-hook.js +29 -29
- package/dist/bin/pushary-post-hook.js +24 -24
- package/dist/bin/pushary-prompt-hook.js +24 -24
- package/dist/bin/pushary-session-end-hook.js +26 -26
- package/dist/bin/pushary-session-start-hook.js +34 -34
- package/dist/bin/pushary-setup.js +48 -56
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +31 -31
- package/dist/bin/pushary-stop-hook.js +24 -24
- package/dist/bin/pushary-stopfailure-hook.js +24 -24
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +18 -18
- package/dist/bin/pushary-upgrade.js +39 -39
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-TRVJ6MS5.js → chunk-35S7VB26.js} +5 -5
- package/dist/{chunk-OJS32QPK.js → chunk-3BFCJZBU.js} +1 -1
- package/dist/{chunk-UGP4FYMV.js → chunk-3YOXBN7V.js} +4 -4
- package/dist/{chunk-VER45SAA.js → chunk-47RUEZZA.js} +5 -5
- package/dist/{chunk-WJVQOAZY.js → chunk-4TR4G7A4.js} +1 -1
- package/dist/{chunk-O7WSNZIR.js → chunk-5WC7TXSS.js} +13 -13
- package/dist/{chunk-RDXNJSXM.js → chunk-5WIVX2NN.js} +3 -3
- package/dist/{chunk-CH3CCVH4.js → chunk-74QJBFMG.js} +2 -2
- package/dist/{chunk-LXV53WHO.js → chunk-7JU6DPO7.js} +3 -3
- package/dist/{chunk-CX6EIW3N.js → chunk-7WCB2BC4.js} +7 -7
- package/dist/{chunk-V3EN7LWU.js → chunk-ALTTZKDU.js} +6 -6
- package/dist/{chunk-KLE2ZMSJ.js → chunk-AZV3DQQU.js} +16 -10
- package/dist/{chunk-MVAP3NRX.js → chunk-B2HMISVL.js} +2 -2
- package/dist/{chunk-PZ3OFAZ7.js → chunk-BB4W35D6.js} +10 -10
- package/dist/{chunk-ANNRW6VU.js → chunk-BYFFELB3.js} +6 -6
- package/dist/{chunk-SNQ5HQHE.js → chunk-CRKODLLY.js} +1 -1
- package/dist/{chunk-WA4S6YAT.js → chunk-DF7A5AWF.js} +3 -3
- package/dist/{chunk-L7FBI7N7.js → chunk-DLBUDQEE.js} +4 -4
- package/dist/{chunk-QZ5KIX6U.js → chunk-DPP3ZCEE.js} +2 -2
- package/dist/{chunk-IPIJY4TI.js → chunk-ER4UCECJ.js} +1 -1
- package/dist/{chunk-63JW566T.js → chunk-ESS7CW3I.js} +5 -5
- package/dist/{chunk-IYKY3ZAV.js → chunk-FIMSM5SW.js} +2 -2
- package/dist/{chunk-ERC6QW27.js → chunk-GOYYPBBJ.js} +3 -3
- package/dist/{chunk-Z7AIEIM5.js → chunk-HG5EUDF3.js} +2 -2
- package/dist/{chunk-AFNLCEHM.js → chunk-HNUK557P.js} +3 -3
- package/dist/{chunk-WB5PC4TL.js → chunk-IA53GEP5.js} +5 -5
- package/dist/{chunk-Q7J77QL2.js → chunk-ID46TTYS.js} +3 -3
- package/dist/{chunk-XKJYTP3G.js → chunk-IO3OLTED.js} +5 -5
- package/dist/{chunk-BH7XLF5R.js → chunk-IQQQ2LGB.js} +5 -5
- package/dist/{chunk-CLE7EVOW.js → chunk-IS5YVKUX.js} +31 -4
- package/dist/{chunk-TDW5LI6P.js → chunk-IXVMMDIG.js} +3 -3
- package/dist/{chunk-ZU7XS6PN.js → chunk-JTO6UPTJ.js} +2 -2
- package/dist/{chunk-5HA42EV4.js → chunk-JTYZEP4Q.js} +1 -1
- package/dist/{chunk-ZJGIJDWP.js → chunk-JXE4UQFJ.js} +3 -3
- package/dist/{chunk-4NRT3CEF.js → chunk-K5QN6V5K.js} +3 -3
- package/dist/{chunk-EUW7JL2K.js → chunk-K6ZOH6P7.js} +13 -6
- package/dist/{chunk-CSJD7NN6.js → chunk-KERGWHCK.js} +6 -6
- package/dist/{chunk-3K67QTMR.js → chunk-KXSZ43Z6.js} +9 -9
- package/dist/{chunk-4DSCZINL.js → chunk-LFEJVQWI.js} +6 -6
- package/dist/{chunk-5NWAWDRM.js → chunk-LJ4TUZJV.js} +6 -6
- package/dist/{chunk-QATBJHE6.js → chunk-LJFB5ZJ4.js} +4 -4
- package/dist/{chunk-7R5ZKOQ4.js → chunk-M5XNFUXN.js} +1 -1
- package/dist/{chunk-WBC2ZXU7.js → chunk-NK3I2QQA.js} +4 -4
- package/dist/{chunk-GXW43S4A.js → chunk-NPBPH7KI.js} +2 -2
- package/dist/{chunk-CB2Y4GEH.js → chunk-NVEDZZ3V.js} +10 -10
- package/dist/{chunk-AFCKBLEG.js → chunk-ONUAAXAW.js} +1 -1
- package/dist/{chunk-A2OAJ7CS.js → chunk-PJ26BODT.js} +1 -1
- package/dist/{chunk-RQOJ23I4.js → chunk-QNEWV4JV.js} +1 -1
- package/dist/{chunk-IEJOZQ7N.js → chunk-QZ666HLH.js} +5 -5
- package/dist/{chunk-AVCPF3VS.js → chunk-RVC7OSC7.js} +1 -1
- package/dist/{chunk-EKVW5Y23.js → chunk-SEVGKJ7K.js} +4 -4
- package/dist/{chunk-BLG7OEX4.js → chunk-SFUJLUBM.js} +1 -1
- package/dist/{chunk-Q5J33E43.js → chunk-TJZIUFWK.js} +6 -6
- package/dist/{chunk-35M6YE6T.js → chunk-TTTK44RK.js} +3 -5
- package/dist/{chunk-NFRBLMM2.js → chunk-UUASO2FU.js} +4 -4
- package/dist/{chunk-236NGCTH.js → chunk-VII55DVC.js} +2 -2
- package/dist/{chunk-5MKPJ3WR.js → chunk-VK2CHU3L.js} +1 -1
- package/dist/{chunk-3D3L4ULT.js → chunk-VYRJAPZ6.js} +3 -3
- package/dist/{chunk-XU2FL4B6.js → chunk-W3VRQEL3.js} +2 -2
- package/dist/{chunk-HGCUZQUL.js → chunk-WG67W43Y.js} +0 -1
- package/dist/{chunk-J3QUMD2E.js → chunk-WPGSQRMW.js} +2 -2
- package/dist/{chunk-DLPFYJ7G.js → chunk-X2P3O4PX.js} +1 -1
- package/dist/{chunk-C7BK5C6K.js → chunk-X772USE7.js} +4 -4
- package/dist/{chunk-X7JGHARV.js → chunk-YAAJ3VZA.js} +6 -6
- package/dist/{chunk-7BALOMAV.js → chunk-YIKIQ6YN.js} +3 -3
- package/dist/{chunk-P2PPAW5E.js → chunk-YNWEE2WC.js} +1 -1
- package/dist/{chunk-LTQJ2IMO.js → chunk-ZBST77LF.js} +3 -3
- package/dist/{chunk-7OSGGPBR.js → chunk-ZBYZCM6Y.js} +2 -2
- package/dist/{chunk-5HMSHKZT.js → chunk-ZIJKTWNO.js} +1 -1
- package/dist/{codex-app-cards-switch-OWLU462R.js → codex-app-cards-switch-ZL6OHUXQ.js} +11 -11
- package/dist/{codex-desktop-launch-G37GNF4B.js → codex-desktop-launch-LQF5CPKU.js} +1 -1
- package/dist/{codex-session-launch-AV2AL64X.js → codex-session-launch-5WBL5YHX.js} +18 -18
- package/dist/{config-PXISW4O5.js → config-MZDRETL2.js} +3 -3
- package/dist/{global-upgrade-JWI5XIZP.js → global-upgrade-HDDPHNGX.js} +10 -10
- package/dist/{identity-JAXJ3FOD.js → identity-RNZLFMKW.js} +4 -4
- package/dist/{live-capabilities-7PPQ2HPU.js → live-capabilities-Y2Q5QBVK.js} +5 -5
- package/dist/{paths-YV3ZK5LT.js → paths-WILX6YI3.js} +3 -3
- package/dist/{reapply-YHJHUTFY.js → reapply-KF7ZZSA2.js} +27 -27
- package/dist/src/index.js +28 -28
- package/dist/{upgrade-lock-I4JPC4WG.js → upgrade-lock-7Q4VWMDA.js} +4 -4
- package/dist/{usage-FZTPRQRP.js → usage-MSILPJVQ.js} +3 -3
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readJsonSafe,
|
|
3
3
|
writeJsonAtomic
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IS5YVKUX.js";
|
|
5
5
|
import {
|
|
6
6
|
configFilePath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ONUAAXAW.js";
|
|
8
8
|
import {
|
|
9
9
|
readSetupOutcomeProperties
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WG67W43Y.js";
|
|
11
11
|
|
|
12
12
|
// src/diagnostics/service-runtime.ts
|
|
13
13
|
var unescapeXml = (value) => value.replaceAll(""", '"').replaceAll("'", "'").replaceAll("<", "<").replaceAll(">", ">").replaceAll("&", "&");
|
|
@@ -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
|
}
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZBYZCM6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NK3I2QQA.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,25 +18,25 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5WIVX2NN.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-B2HMISVL.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-IS5YVKUX.js";
|
|
34
34
|
import {
|
|
35
35
|
EXIT
|
|
36
36
|
} from "./chunk-KZERVKTD.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-TTTK44RK.js";
|
|
40
40
|
import {
|
|
41
41
|
commandsPackage,
|
|
42
42
|
globalUpgradeEntry,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
repoKeyFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M5XNFUXN.js";
|
|
4
4
|
import {
|
|
5
5
|
cancelQuestion,
|
|
6
6
|
clientErrorKindOf,
|
|
@@ -8,33 +8,33 @@ import {
|
|
|
8
8
|
reportClientError,
|
|
9
9
|
sendNotification,
|
|
10
10
|
waitForAnswer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IQQQ2LGB.js";
|
|
12
12
|
import {
|
|
13
13
|
withRetry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SEVGKJ7K.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WPGSQRMW.js";
|
|
18
18
|
import {
|
|
19
19
|
reportedInstallSource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NPBPH7KI.js";
|
|
21
21
|
import {
|
|
22
22
|
IDLE_PROMPT_NOTIFICATION,
|
|
23
23
|
NOTIFICATION_PUSH_TYPES,
|
|
24
24
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
25
25
|
canonicalJson,
|
|
26
26
|
claudeConfigDir
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-B2HMISVL.js";
|
|
28
28
|
import {
|
|
29
29
|
compareVersion,
|
|
30
30
|
parseVersion,
|
|
31
31
|
writeFileAtomic,
|
|
32
32
|
writeJsonAtomicDurable
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-IS5YVKUX.js";
|
|
34
34
|
import {
|
|
35
35
|
getApiKey,
|
|
36
36
|
getBaseUrl
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ONUAAXAW.js";
|
|
38
38
|
import {
|
|
39
39
|
ACTION_BODY_MAX,
|
|
40
40
|
AGENTS,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
toToolLookup,
|
|
77
77
|
truncateLine,
|
|
78
78
|
unansweredRefusalReason
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-WG67W43Y.js";
|
|
80
80
|
|
|
81
81
|
// ../hook-mapping/src/describe.ts
|
|
82
82
|
import { isAbsolute, relative, resolve } from "path";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
postLiveSession,
|
|
5
5
|
postLiveSessionUntilAccepted,
|
|
6
6
|
startLiveSessionHeartbeat
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JTYZEP4Q.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-7JU6DPO7.js";
|
|
18
18
|
import {
|
|
19
19
|
spawnClaude
|
|
20
20
|
} from "./chunk-XHKBHWLX.js";
|
|
21
21
|
import {
|
|
22
22
|
repoKeyFor
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-M5XNFUXN.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-IQQQ2LGB.js";
|
|
31
31
|
import {
|
|
32
32
|
callMcpTool,
|
|
33
33
|
isRetryable
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SEVGKJ7K.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-WG67W43Y.js";
|
|
56
56
|
|
|
57
57
|
// src/codex-question-owner.ts
|
|
58
58
|
import { createHash } from "crypto";
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-74QJBFMG.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JTO6UPTJ.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-3YOXBN7V.js";
|
|
15
15
|
import {
|
|
16
16
|
absoluteUrl,
|
|
17
17
|
checkApiKey,
|
|
18
18
|
describeKeyCheck,
|
|
19
19
|
keyCheckFromResponse
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HNUK557P.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ONUAAXAW.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT
|
|
26
26
|
} from "./chunk-KZERVKTD.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WG67W43Y.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UUASO2FU.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X772USE7.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-B2HMISVL.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WG67W43Y.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DF7A5AWF.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QNEWV4JV.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-IS5YVKUX.js";
|
|
17
17
|
import {
|
|
18
18
|
MANAGED_PROVIDERS
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WG67W43Y.js";
|
|
20
20
|
|
|
21
21
|
// src/live-capabilities.ts
|
|
22
22
|
import { homedir } from "os";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureCodexTrustsPusharyHooks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DPP3ZCEE.js";
|
|
4
4
|
import {
|
|
5
5
|
hermesReceiptPaths,
|
|
6
6
|
hermesSetupPredatesThePluginFolder,
|
|
7
7
|
installHermesPlugin,
|
|
8
8
|
refreshHermesPluginFiles,
|
|
9
9
|
shippedHermesPlugin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IO3OLTED.js";
|
|
11
11
|
import {
|
|
12
12
|
fxIgnoresInstructionsFile,
|
|
13
13
|
fxInstructionsBody,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
macAppFxBridge,
|
|
17
17
|
refreshClineKey,
|
|
18
18
|
switchFxHttpEntryToBridge
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QZ666HLH.js";
|
|
20
20
|
import {
|
|
21
21
|
OPENCODE_HOOK_BINARY,
|
|
22
22
|
agentHookOwner,
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
openCodePluginDir,
|
|
29
29
|
openCodeWired,
|
|
30
30
|
withOpenCodeAskRules
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ALTTZKDU.js";
|
|
32
32
|
import {
|
|
33
33
|
detectClaudeVersion
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-DF7A5AWF.js";
|
|
35
35
|
import {
|
|
36
36
|
addCompatibleHooks,
|
|
37
37
|
compatibleConfigFile,
|
|
38
38
|
compatibleInstructionsFile,
|
|
39
39
|
hasCompatibleHooks
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-UUASO2FU.js";
|
|
41
41
|
import {
|
|
42
42
|
GEMINI_HOOK_BINARY,
|
|
43
43
|
addGeminiHooks,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
geminiWired,
|
|
50
50
|
hasGeminiHooks,
|
|
51
51
|
planHooks
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-X772USE7.js";
|
|
53
53
|
import {
|
|
54
54
|
CLAUDE_HOOK_BINARY,
|
|
55
55
|
CLAUDE_HOOK_EVENTS,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
renderAgentInstructions,
|
|
95
95
|
supportedClaudeEvents,
|
|
96
96
|
vscodePluginMcp
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-B2HMISVL.js";
|
|
98
98
|
import {
|
|
99
99
|
formatVersion,
|
|
100
100
|
readJsonSafe,
|
|
@@ -102,12 +102,12 @@ import {
|
|
|
102
102
|
resolveGlobalBinary,
|
|
103
103
|
writeFileAtomic,
|
|
104
104
|
writeJsonAtomic
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-IS5YVKUX.js";
|
|
106
106
|
import {
|
|
107
107
|
HOOK_COMPATIBLE_PROFILES,
|
|
108
108
|
isCompatibleAgentType,
|
|
109
109
|
isRecord
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-WG67W43Y.js";
|
|
111
111
|
|
|
112
112
|
// src/reapply.ts
|
|
113
113
|
import { dirname, join } from "path";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VYRJAPZ6.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HG5EUDF3.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3YOXBN7V.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-B2HMISVL.js";
|
|
36
36
|
import {
|
|
37
37
|
readJsonSafe,
|
|
38
38
|
resolveGlobalBinary,
|
|
39
39
|
writeFileAtomic,
|
|
40
40
|
writeJsonAtomic
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-IS5YVKUX.js";
|
|
42
42
|
|
|
43
43
|
// src/fx-config.ts
|
|
44
44
|
var FX_SERVER_NAME = "pushary";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
keyCheckFromResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HNUK557P.js";
|
|
4
4
|
import {
|
|
5
5
|
installNetworkDefaults
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ID46TTYS.js";
|
|
7
7
|
import {
|
|
8
8
|
getBaseUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ONUAAXAW.js";
|
|
10
10
|
import {
|
|
11
11
|
isRecord,
|
|
12
12
|
isToolErrorResult,
|
|
13
13
|
toolFailureCodeOfResult
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WG67W43Y.js";
|
|
15
15
|
|
|
16
16
|
// src/retry.ts
|
|
17
17
|
var isRetryable = (err) => {
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
} from "./chunk-XHKBHWLX.js";
|
|
5
5
|
import {
|
|
6
6
|
readControlMode
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3YOXBN7V.js";
|
|
8
8
|
import {
|
|
9
9
|
getMachineId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WPGSQRMW.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-B2HMISVL.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-IS5YVKUX.js";
|
|
21
21
|
import {
|
|
22
22
|
getApiKey
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ONUAAXAW.js";
|
|
24
24
|
import {
|
|
25
25
|
CLI_PACKAGE_NAMES,
|
|
26
26
|
cmdShimTarget,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "./chunk-QTOLNRET.js";
|
|
31
31
|
import {
|
|
32
32
|
isRecord
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-WG67W43Y.js";
|
|
34
34
|
|
|
35
35
|
// src/daemon-lifecycle.ts
|
|
36
36
|
import { dirname, join, win32 as win32Path } from "path";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DISCONNECT_AGENT_IDS,
|
|
3
3
|
SETUP_AGENT_CHOICES,
|
|
4
4
|
isApprovalMode
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WG67W43Y.js";
|
|
6
6
|
|
|
7
7
|
// src/cli/mode-request.ts
|
|
8
8
|
var parseDuration = (value) => {
|
|
@@ -229,8 +229,6 @@ var SETUP_OPTIONS = [
|
|
|
229
229
|
["--agents <list>", 'Comma-separated agent ids, or "auto" for everything detected, or "none" to save the key only'],
|
|
230
230
|
["--yes, -y", "Accept every default and ask nothing. Implies --agents auto unless --agents is given"],
|
|
231
231
|
["--connect app", "Pair the native Pushary app, no key to paste (default)"],
|
|
232
|
-
["--connect browser", "Approve in a browser tab instead. For a machine with no app"],
|
|
233
|
-
["--connect web", "Legacy browser subscribe page"],
|
|
234
232
|
["--connect none", "Skip pairing a phone, same as --skip-phone"],
|
|
235
233
|
["--control auto|on|off", "Manage phone-start automatically (default), require it, or disable its background service"],
|
|
236
234
|
["--transcripts on|off", "Enable or disable encrypted transcript sync on this machine"],
|
|
@@ -297,8 +295,8 @@ var renderCommandHelp = (token, version) => {
|
|
|
297
295
|
...name === "setup" ? [
|
|
298
296
|
`Agent ids: ${AGENT_IDS}`,
|
|
299
297
|
"",
|
|
300
|
-
"
|
|
301
|
-
"
|
|
298
|
+
"Without a terminal on stdin, setup asks nothing: it configures the agents it",
|
|
299
|
+
"detects and takes every default. Pass --agents to choose the agents yourself.",
|
|
302
300
|
""
|
|
303
301
|
] : []
|
|
304
302
|
].join("\n");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X772USE7.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT,
|
|
7
7
|
compatibleToolLookup
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KXSZ43Z6.js";
|
|
9
9
|
import {
|
|
10
10
|
CLAUDE_HOOK_EVENTS,
|
|
11
11
|
PUSHARY_MCP_URL,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
isPusharyHook,
|
|
18
18
|
registerHookEntry,
|
|
19
19
|
removeClaudeMcpServers
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-B2HMISVL.js";
|
|
21
21
|
import {
|
|
22
22
|
HOOK_COMPATIBLE_PROFILES,
|
|
23
23
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
pusharyMissingReason,
|
|
29
29
|
refusalOutput,
|
|
30
30
|
withHookHoldBudget
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WG67W43Y.js";
|
|
32
32
|
|
|
33
33
|
// src/config-document.ts
|
|
34
34
|
import { parse, stringify } from "smol-toml";
|
|
@@ -521,7 +521,7 @@ var loadedOnce = (load) => {
|
|
|
521
521
|
};
|
|
522
522
|
|
|
523
523
|
// src/codex-desktop-proxy.ts
|
|
524
|
-
var loadThePhone = () => import("./api-
|
|
524
|
+
var loadThePhone = () => import("./api-VFUZ5HBR.js");
|
|
525
525
|
var theFirstCardLoadsAgain = () => {
|
|
526
526
|
};
|
|
527
527
|
var APP_SERVER_COMMAND = "app-server";
|
|
@@ -1062,7 +1062,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1062
1062
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1063
1063
|
}
|
|
1064
1064
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1065
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1065
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-ZL6OHUXQ.js");
|
|
1066
1066
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1067
1067
|
}
|
|
1068
1068
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
NpmMissingError,
|
|
4
4
|
NpmPermissionError,
|
|
5
5
|
writeFileAtomic
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IS5YVKUX.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TTTK44RK.js";
|
|
10
10
|
import {
|
|
11
11
|
readSetupAgentFailures
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WG67W43Y.js";
|
|
13
13
|
|
|
14
14
|
// src/setup/config-write.ts
|
|
15
15
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getBaseUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ONUAAXAW.js";
|
|
4
4
|
import {
|
|
5
5
|
compressTranscriptRecord,
|
|
6
6
|
redactSecretsFromContent,
|
|
7
7
|
transcriptRecordPlaintext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WG67W43Y.js";
|
|
9
9
|
|
|
10
10
|
// src/transcript-api.ts
|
|
11
11
|
var retentionDaysOf = (sessionHistory) => {
|