pushary 1.9.256 → 1.9.257
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 +8 -0
- package/dist/{api-PDBKGOGU.js → api-KZ4IO7ON.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +29 -29
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +40 -40
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +35 -35
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +36 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +47 -47
- package/dist/bin/pushary-disconnect.js +31 -31
- package/dist/bin/pushary-doctor.js +48 -48
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +36 -36
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +32 -32
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +28 -28
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +33 -33
- package/dist/bin/pushary-permission-denied-hook.js +35 -35
- package/dist/bin/pushary-permission-hook.js +36 -36
- package/dist/bin/pushary-post-hook.js +29 -29
- package/dist/bin/pushary-prompt-hook.js +28 -28
- package/dist/bin/pushary-session-end-hook.js +28 -28
- package/dist/bin/pushary-session-start-hook.js +40 -40
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +59 -59
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +37 -37
- package/dist/bin/pushary-stop-hook.js +28 -28
- package/dist/bin/pushary-stopfailure-hook.js +28 -28
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +48 -48
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-P4SM5JPQ.js → chunk-2DYBA2II.js} +2 -2
- package/dist/{chunk-KPYMLGHD.js → chunk-2GHNWRWN.js} +5 -5
- package/dist/{chunk-6JR5O74N.js → chunk-2P22GQEF.js} +2 -2
- package/dist/{chunk-2EBKVUV3.js → chunk-3MFQZIFR.js} +1 -1
- package/dist/{chunk-2OROBVCH.js → chunk-4OVUK56V.js} +6 -6
- package/dist/{chunk-Y3SW3AH4.js → chunk-4XF3KIK7.js} +3 -3
- package/dist/{chunk-ENE3YCWH.js → chunk-5JCNEQXV.js} +6 -6
- package/dist/{chunk-ZJUYUFEA.js → chunk-6XLFC43B.js} +5 -5
- package/dist/{chunk-Q7LZL757.js → chunk-7ALRPLO5.js} +1 -1
- package/dist/{chunk-HMARMKFN.js → chunk-7IP5CIP4.js} +2 -2
- package/dist/{chunk-Z5I22MEH.js → chunk-A276HQFV.js} +1 -1
- package/dist/{chunk-LPHUELFO.js → chunk-A3ECMJW7.js} +4 -4
- package/dist/{chunk-OYZZXZYE.js → chunk-ADRV4PAY.js} +1 -1
- package/dist/{chunk-I4FZKY3R.js → chunk-AWKKAGLD.js} +3 -3
- package/dist/{chunk-SY5A4BTI.js → chunk-BYMM5NWM.js} +2 -2
- package/dist/{chunk-4CKGVOZN.js → chunk-BZS3DN6S.js} +4 -4
- package/dist/{chunk-A4QPJFVF.js → chunk-C5H5V5LW.js} +1 -1
- package/dist/{chunk-ZMUVYTOY.js → chunk-CPMJBRKT.js} +2 -2
- package/dist/{chunk-MI72IU6G.js → chunk-CV4CYHU4.js} +12 -12
- package/dist/{chunk-T7IJFOLM.js → chunk-D2NH6N66.js} +5 -5
- package/dist/{chunk-TV3UAKAL.js → chunk-DOCQOW3H.js} +1 -1
- package/dist/{chunk-6NIFF33D.js → chunk-EPPG7UYT.js} +4 -4
- package/dist/{chunk-CVZB2UJY.js → chunk-EWFY4X2R.js} +6 -6
- package/dist/{chunk-RFKP2QPM.js → chunk-FCORDYNZ.js} +7 -7
- package/dist/{chunk-MYA2MZVD.js → chunk-FVELY3OX.js} +3 -3
- package/dist/{chunk-YRIB6P5B.js → chunk-GU4JGTHQ.js} +10 -10
- package/dist/{chunk-EUJSAZYI.js → chunk-HIGRCM4Q.js} +1 -1
- package/dist/{chunk-6FGATHF3.js → chunk-I6NA76CJ.js} +1 -1
- package/dist/{chunk-7DQRFOCT.js → chunk-IZ3WAW32.js} +3 -3
- package/dist/{chunk-HXDPONTW.js → chunk-JBCQB2WR.js} +4 -4
- package/dist/{chunk-PQH3NK6Z.js → chunk-K3I636LG.js} +5 -5
- package/dist/{chunk-DF6HDNIG.js → chunk-KVJC5ZWY.js} +1 -1
- package/dist/{chunk-YOR6P7ZD.js → chunk-LGXPSL5B.js} +2 -2
- package/dist/{chunk-7LCGDZB5.js → chunk-LLFO2T37.js} +3 -3
- package/dist/{chunk-QDYNEY25.js → chunk-LQGWJN7G.js} +1 -1
- package/dist/{chunk-2ZPBZ4YU.js → chunk-LRRQRF6V.js} +2 -2
- package/dist/{chunk-JKWS5QQW.js → chunk-M2GQA24G.js} +1 -1
- package/dist/{chunk-6LLXTRR4.js → chunk-M4RUM6EH.js} +5 -5
- package/dist/{chunk-2ZWOLIMD.js → chunk-MQ7D3BUL.js} +2 -2
- package/dist/{chunk-AOYHU6XJ.js → chunk-MWTQJEIX.js} +5 -5
- package/dist/{chunk-E5LT4X66.js → chunk-NBGWQ2ZM.js} +1 -1
- package/dist/{chunk-XVIZUXKN.js → chunk-NMVHN3HC.js} +1 -1
- package/dist/{chunk-KMHC3PG6.js → chunk-NVRNS263.js} +1 -0
- package/dist/{chunk-IMKSRTFI.js → chunk-NZZI77JY.js} +1 -1
- package/dist/{chunk-DFPARBO2.js → chunk-O7TXZAXL.js} +5 -5
- package/dist/chunk-OLIKCPM7.js +73 -0
- package/dist/{chunk-2BU3ZINY.js → chunk-OVUXENQ3.js} +2 -2
- package/dist/{chunk-UQHQ5WKT.js → chunk-PAI2T23S.js} +1 -1
- package/dist/{chunk-CHP66VVN.js → chunk-PCH4QQTT.js} +5 -5
- package/dist/{chunk-CKRSZJZR.js → chunk-PDYGEI4J.js} +6 -6
- package/dist/{chunk-NV3DXCYB.js → chunk-PMQVI4OL.js} +5 -5
- package/dist/{chunk-E63N5ML7.js → chunk-PPNB6IED.js} +4 -4
- package/dist/{chunk-4RAXRM4E.js → chunk-PXBMEKOX.js} +2 -2
- package/dist/{chunk-SDPDAWUY.js → chunk-Q2YSVTMH.js} +1 -1
- package/dist/{chunk-TMV6L4XN.js → chunk-QAQBKLO3.js} +3 -3
- package/dist/{chunk-4XHYW7UN.js → chunk-QD5ZJA5S.js} +1 -1
- package/dist/{chunk-7HJDCATD.js → chunk-QWF6SPFG.js} +3 -3
- package/dist/{chunk-2NA62YF2.js → chunk-QYUKN27D.js} +4 -4
- package/dist/{chunk-MQSNZQ6X.js → chunk-R2BSMSHF.js} +40 -28
- package/dist/{chunk-M7EL423A.js → chunk-R5NFIWEU.js} +1 -1
- package/dist/{chunk-LGB2O2FG.js → chunk-RCBJ4GCY.js} +5 -5
- package/dist/{chunk-CDSHRV3I.js → chunk-RLAZPTYE.js} +7 -7
- package/dist/{chunk-42TGZKJW.js → chunk-S6RAM5NS.js} +2 -2
- package/dist/{chunk-Y5FH7P7H.js → chunk-SM4LDZXZ.js} +3 -3
- package/dist/{chunk-OX3RKATP.js → chunk-SZYC2YXC.js} +2 -2
- package/dist/{chunk-WRUT4RBW.js → chunk-TBUVYP3M.js} +3 -3
- package/dist/{chunk-OZJQXTEY.js → chunk-TJXUS7V2.js} +1 -1
- package/dist/{chunk-MIMOIRXH.js → chunk-TXOQQ3MV.js} +4 -4
- package/dist/{chunk-JWATMYBN.js → chunk-TZMCP46W.js} +4 -4
- package/dist/{chunk-NU2SCQSY.js → chunk-UGARTFYN.js} +1 -1
- package/dist/{chunk-ULRUKD2J.js → chunk-VQFOA64S.js} +1 -1
- package/dist/{chunk-LK6NP47P.js → chunk-VT2INEAF.js} +3 -3
- package/dist/{chunk-RV4ARWS2.js → chunk-W5IXKH5A.js} +4 -4
- package/dist/{chunk-SPS75AL3.js → chunk-WBV7IRV5.js} +8 -8
- package/dist/{chunk-NNFTZNME.js → chunk-WOVJVQ7C.js} +6 -6
- package/dist/{chunk-BOC25SJO.js → chunk-WS6MIZLO.js} +46 -13
- package/dist/{chunk-EQQK2GCR.js → chunk-X6RQS3B4.js} +4 -4
- package/dist/{chunk-QKDK6C7Y.js → chunk-XF7FUP3A.js} +1 -1
- package/dist/{chunk-P65RQWAF.js → chunk-XOREUXPV.js} +1 -1
- package/dist/{chunk-APQ2WPSI.js → chunk-YVQWGCWS.js} +1 -1
- package/dist/{chunk-SXV6KRKD.js → chunk-Z3O63BK6.js} +6 -6
- package/dist/{chunk-VFMTS5C5.js → chunk-ZKXZPWXQ.js} +10 -10
- package/dist/{codex-app-cards-switch-ZWT7GVF3.js → codex-app-cards-switch-TX4WZRM5.js} +12 -12
- package/dist/{codex-card-routing-R5RYIO2T.js → codex-card-routing-FKQ4CBFV.js} +2 -2
- package/dist/{codex-desktop-launch-7PSF3TOL.js → codex-desktop-launch-4SHZGPRP.js} +3 -3
- package/dist/{codex-session-launch-HHEVRULR.js → codex-session-launch-G2YTBANF.js} +20 -20
- package/dist/{config-XDKSDUVB.js → config-YM55MYXX.js} +3 -3
- package/dist/{global-upgrade-RCBL4COT.js → global-upgrade-AKKW3YEJ.js} +9 -9
- package/dist/{identity-N23JZMTN.js → identity-4NX35LHS.js} +4 -4
- package/dist/{live-capabilities-AVFBIZAP.js → live-capabilities-5ATYDLAL.js} +4 -4
- package/dist/{paths-KZSXNV7G.js → paths-J4VN4755.js} +3 -3
- package/dist/reapply-F66DXD36.js +76 -0
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-SRFPOOJH.js → upgrade-lock-4PXBDTIV.js} +4 -4
- package/dist/{usage-XXFGYXXC.js → usage-ZLVHS47G.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-IM35HIWM.js +0 -48
- package/dist/reapply-BJSKHOWU.js +0 -76
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serviceNodeFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PDYGEI4J.js";
|
|
4
4
|
import {
|
|
5
5
|
OWNER_ONLY_FILE_MODE,
|
|
6
6
|
readOwnerOnlyJson
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
codexHome,
|
|
15
15
|
codexHooksJsonIn,
|
|
16
16
|
isPusharyCodexCommand
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PXBMEKOX.js";
|
|
18
18
|
import {
|
|
19
19
|
DEFAULT_WINDOWS_PATHEXT,
|
|
20
20
|
DIRECTLY_STARTABLE_EXTENSIONS,
|
|
21
21
|
plannedGlobalPackage,
|
|
22
22
|
readGlobalPrefix,
|
|
23
23
|
resolvePathBinary
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-X6RQS3B4.js";
|
|
25
25
|
import {
|
|
26
26
|
getPackageVersion,
|
|
27
27
|
globalTranscriptRegisterEntry
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6XLFC43B.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KVJC5ZWY.js";
|
|
7
7
|
import {
|
|
8
8
|
malformedApiKeyMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-S6RAM5NS.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NBGWQ2ZM.js";
|
|
13
13
|
|
|
14
14
|
// src/mcp-stdio-bridge.ts
|
|
15
15
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5JCNEQXV.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EPPG7UYT.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PXBMEKOX.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NVRNS263.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C5H5V5LW.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-X6RQS3B4.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENTS,
|
|
18
18
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
OPENCODE_BRIDGE_CAPABILITY,
|
|
26
26
|
SPAWN_CAPABILITY,
|
|
27
27
|
sessionProvidersAdvertisedBy
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NVRNS263.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-U4P4NDVB.js";
|
|
17
17
|
import {
|
|
18
18
|
withoutNpmInstallConsent
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-X6RQS3B4.js";
|
|
20
20
|
|
|
21
21
|
// src/codex-desktop-launch.ts
|
|
22
22
|
import { spawn as spawn2, execFileSync as execFileSync2 } from "child_process";
|
|
@@ -539,8 +539,8 @@ var loadedOnce = (load) => {
|
|
|
539
539
|
};
|
|
540
540
|
|
|
541
541
|
// src/codex-desktop-proxy.ts
|
|
542
|
-
var loadThePhone = () => import("./api-
|
|
543
|
-
var loadTheCardRouting = () => import("./codex-card-routing-
|
|
542
|
+
var loadThePhone = () => import("./api-KZ4IO7ON.js");
|
|
543
|
+
var loadTheCardRouting = () => import("./codex-card-routing-FKQ4CBFV.js");
|
|
544
544
|
var theFirstCardLoadsAgain = () => {
|
|
545
545
|
};
|
|
546
546
|
var ASKS_WITHOUT_ROUTING = {};
|
|
@@ -1101,7 +1101,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1101
1101
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1102
1102
|
}
|
|
1103
1103
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1104
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1104
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-TX4WZRM5.js");
|
|
1105
1105
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1106
1106
|
}
|
|
1107
1107
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HIGRCM4Q.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-R5NFIWEU.js";
|
|
14
14
|
import {
|
|
15
15
|
SESSION_IDLE_TIMEOUT_MS,
|
|
16
16
|
describeIdleWindow,
|
|
17
17
|
idleDeadlinePassed,
|
|
18
18
|
startProcessOwnership
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2P22GQEF.js";
|
|
20
20
|
import {
|
|
21
21
|
spawnClaude
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -25,18 +25,18 @@ import {
|
|
|
25
25
|
isWaitForAnswerResponse,
|
|
26
26
|
withdrawQuestion,
|
|
27
27
|
writeDegraded
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-EWFY4X2R.js";
|
|
29
29
|
import {
|
|
30
30
|
readCommandAck
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TJXUS7V2.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6XLFC43B.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XF7FUP3A.js";
|
|
40
40
|
import {
|
|
41
41
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
42
42
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
parseCodexQuestions,
|
|
59
59
|
planElicitationAsk,
|
|
60
60
|
readElicitationFields
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-NVRNS263.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4OVUK56V.js";
|
|
18
18
|
import {
|
|
19
19
|
describeRevokeAttempt,
|
|
20
20
|
keyNoLongerAccepted,
|
|
@@ -29,20 +29,20 @@ import {
|
|
|
29
29
|
isCI,
|
|
30
30
|
terminalColumns,
|
|
31
31
|
useColor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PAI2T23S.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-4XF3KIK7.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SZYC2YXC.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-NBGWQ2ZM.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-NVRNS263.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
toolResultErrorText,
|
|
30
30
|
transcriptTokensIn,
|
|
31
31
|
transcriptUsageRequest
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-M2GQA24G.js";
|
|
33
33
|
import {
|
|
34
34
|
askUser,
|
|
35
35
|
cancelQuestion,
|
|
@@ -45,37 +45,37 @@ import {
|
|
|
45
45
|
waitForOpenQuestion,
|
|
46
46
|
waitForQuestion,
|
|
47
47
|
writeDegraded
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-EWFY4X2R.js";
|
|
49
49
|
import {
|
|
50
50
|
RETRY_ACK,
|
|
51
51
|
readCommandAck,
|
|
52
52
|
refusedReceiptMessage
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-TJXUS7V2.js";
|
|
54
54
|
import {
|
|
55
55
|
SubscriptionRequiredError,
|
|
56
56
|
isRetryable,
|
|
57
57
|
withRetry
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-6XLFC43B.js";
|
|
59
59
|
import {
|
|
60
60
|
fetchAsCredential
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-KVJC5ZWY.js";
|
|
62
62
|
import {
|
|
63
63
|
branchFor,
|
|
64
64
|
projectNameFor,
|
|
65
65
|
repoKeyFor
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-XF7FUP3A.js";
|
|
67
67
|
import {
|
|
68
68
|
getMachineId
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-NZZI77JY.js";
|
|
70
70
|
import {
|
|
71
71
|
reportedInstallSource
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-SZYC2YXC.js";
|
|
73
73
|
import {
|
|
74
74
|
IDLE_PROMPT_NOTIFICATION,
|
|
75
75
|
NOTIFICATION_PUSH_TYPES,
|
|
76
76
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
77
77
|
claudeConfigDir
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-PXBMEKOX.js";
|
|
79
79
|
import {
|
|
80
80
|
compareVersion,
|
|
81
81
|
parseVersion
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
getApiKey,
|
|
85
85
|
getBaseUrl,
|
|
86
86
|
isMalformedApiKeyError
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-S6RAM5NS.js";
|
|
88
88
|
import {
|
|
89
89
|
writeFileAtomic,
|
|
90
90
|
writeJsonAtomicDurable
|
|
@@ -105,6 +105,7 @@ import {
|
|
|
105
105
|
POLICY_REQUEST_CAPABILITIES_HEADER,
|
|
106
106
|
QUESTION_LIMIT_PROMPT_REASON,
|
|
107
107
|
REPO_AWARE_AGENTS,
|
|
108
|
+
STOP_HANDOFF_ACTION,
|
|
108
109
|
UNVERIFIABLE_APPROVAL_REASON,
|
|
109
110
|
WITHDRAWN_APPROVAL_REASON,
|
|
110
111
|
agentQuestionContext,
|
|
@@ -151,7 +152,7 @@ import {
|
|
|
151
152
|
resolvePolicy,
|
|
152
153
|
unansweredRefusalReason,
|
|
153
154
|
waitsForThePhone
|
|
154
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-NVRNS263.js";
|
|
155
156
|
|
|
156
157
|
// src/pending.ts
|
|
157
158
|
import { join } from "path";
|
|
@@ -1080,6 +1081,9 @@ var ask = (reason) => claudePreToolUseOutput("ask", reason);
|
|
|
1080
1081
|
var halted = (reason) => claudeStoppedPreToolUseOutput(reason);
|
|
1081
1082
|
|
|
1082
1083
|
// src/permission-ask-outcome.ts
|
|
1084
|
+
var noteAStopAtTheAsk = (reply, signals) => {
|
|
1085
|
+
if (reply.handoffAction === STOP_HANDOFF_ACTION) signals.agentStopped = true;
|
|
1086
|
+
};
|
|
1083
1087
|
var RULE_APPROVES_UNANSWERED = { kind: "rule_approves" };
|
|
1084
1088
|
var pushOnlyUnansweredEnding = (timeoutAction, window, missedAnswer) => timeoutAction === "approve" && questionServedItsWholeWindow(window) ? RULE_APPROVES_UNANSWERED : missedAnswer;
|
|
1085
1089
|
var NO_ASKED_FILE_PATH = {};
|
|
@@ -1147,7 +1151,10 @@ var handlePushOnly = async (apiKey, call, timeoutSeconds, timeoutAction, signals
|
|
|
1147
1151
|
agentPromptFollows: promptFollowsAHandBack(call)
|
|
1148
1152
|
}, subscriptionRequiredOutput);
|
|
1149
1153
|
}
|
|
1150
|
-
if (isDecisionStopped(result))
|
|
1154
|
+
if (isDecisionStopped(result)) {
|
|
1155
|
+
noteAStopAtTheAsk(result, signals);
|
|
1156
|
+
return halted(DECISION_STOP_REASON);
|
|
1157
|
+
}
|
|
1151
1158
|
const deadline = storedWaitDeadline(result, requestedDeadline);
|
|
1152
1159
|
const window = questionWindowOf(result, { cutShort: clampCut || deadline < requestedDeadline });
|
|
1153
1160
|
if (waitsForThePhone(result)) {
|
|
@@ -1206,7 +1213,10 @@ var handlePushFirst = async (apiKey, call, pushFirstSeconds, signals) => {
|
|
|
1206
1213
|
signals.askFailed = true;
|
|
1207
1214
|
return outcomeOfFailedPermissionAsk(error, sessionId, { refusesUnanswered: false, agentPromptFollows: promptFollowsAHandBack(call) }, subscriptionRequiredOutput);
|
|
1208
1215
|
}
|
|
1209
|
-
if (isDecisionStopped(result))
|
|
1216
|
+
if (isDecisionStopped(result)) {
|
|
1217
|
+
noteAStopAtTheAsk(result, signals);
|
|
1218
|
+
return halted(DECISION_STOP_REASON);
|
|
1219
|
+
}
|
|
1210
1220
|
if (waitsForThePhone(result)) announceWait(pushFirstSeconds, call.missedAnswer, result.answerUrl, sessionId);
|
|
1211
1221
|
const deadline = storedWaitDeadline(result, requestedDeadline);
|
|
1212
1222
|
const answer = await waitForQuestion(apiKey, result, deadline, 1500);
|
|
@@ -1438,6 +1448,24 @@ var readClaimed = (claimed, ttlMs) => {
|
|
|
1438
1448
|
removeQuietly(claimed);
|
|
1439
1449
|
}
|
|
1440
1450
|
};
|
|
1451
|
+
var A_RECORD_IN_FLIGHT = /\.(?:pending|claimed)$/;
|
|
1452
|
+
var recordedKeyAt = (dir, key, ttlMs) => {
|
|
1453
|
+
try {
|
|
1454
|
+
const record = lstatSync3(join6(dir, key));
|
|
1455
|
+
return record.isFile() && Date.now() - record.mtimeMs < ttlMs ? { key, recordedAtMs: record.mtimeMs } : null;
|
|
1456
|
+
} catch {
|
|
1457
|
+
return null;
|
|
1458
|
+
}
|
|
1459
|
+
};
|
|
1460
|
+
var isRecordedKey = (recorded) => recorded !== null;
|
|
1461
|
+
var byRecordedTime = (left, right) => left.recordedAtMs - right.recordedAtMs;
|
|
1462
|
+
var recordedKeysStartingWith = (dir, prefix, ttlMs) => {
|
|
1463
|
+
try {
|
|
1464
|
+
return readdirSync3(dir).filter((name) => name.startsWith(prefix) && !A_RECORD_IN_FLIGHT.test(name)).map((name) => recordedKeyAt(dir, name, ttlMs)).filter(isRecordedKey).sort(byRecordedTime).map((recorded) => recorded.key);
|
|
1465
|
+
} catch {
|
|
1466
|
+
return [];
|
|
1467
|
+
}
|
|
1468
|
+
};
|
|
1441
1469
|
var callDecisionStore = (name, ttlMs) => {
|
|
1442
1470
|
const decisionDir = () => join6(tmpdir6(), `pushary-${name}-decisions-${userScope()}`);
|
|
1443
1471
|
return {
|
|
@@ -1479,6 +1507,10 @@ var callDecisionStore = (name, ttlMs) => {
|
|
|
1479
1507
|
if (!key) return;
|
|
1480
1508
|
const dir = decisionDir();
|
|
1481
1509
|
if (isPrivateFolder(dir)) removeQuietly(join6(dir, key));
|
|
1510
|
+
},
|
|
1511
|
+
keysStartingWith: (prefix) => {
|
|
1512
|
+
const dir = decisionDir();
|
|
1513
|
+
return isPrivateFolder(dir) ? recordedKeysStartingWith(dir, prefix, ttlMs) : [];
|
|
1482
1514
|
}
|
|
1483
1515
|
};
|
|
1484
1516
|
};
|
|
@@ -2451,6 +2483,7 @@ export {
|
|
|
2451
2483
|
deny,
|
|
2452
2484
|
ask,
|
|
2453
2485
|
halted,
|
|
2486
|
+
noteAStopAtTheAsk,
|
|
2454
2487
|
askedFilePathOf,
|
|
2455
2488
|
questionWindowOf,
|
|
2456
2489
|
refusingTimeoutOutput,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NVRNS263.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -610,9 +610,9 @@ var installGlobally = (options) => {
|
|
|
610
610
|
}
|
|
611
611
|
const started = (async () => {
|
|
612
612
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
613
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
614
|
-
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
615
|
-
const { autoUpdateLock } = await import("./paths-
|
|
613
|
+
const { withUpgradeLock } = await import("./global-upgrade-AKKW3YEJ.js");
|
|
614
|
+
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-4PXBDTIV.js");
|
|
615
|
+
const { autoUpdateLock } = await import("./paths-J4VN4755.js");
|
|
616
616
|
const lockPath = options.lockPath ?? autoUpdateLock();
|
|
617
617
|
const lockFile = canonicalLockPath(lockPath);
|
|
618
618
|
const unfinishedHere = failuresThisProcessLeftUnfinished.get(lockFile);
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2DYBA2II.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VT2INEAF.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LRRQRF6V.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PXBMEKOX.js";
|
|
27
27
|
import {
|
|
28
28
|
describeReleaseNpmHolds,
|
|
29
29
|
execNpm,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
npmExitedOnReleaseAge,
|
|
34
34
|
readGlobalCliInstallAt,
|
|
35
35
|
readGlobalPrefix
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-X6RQS3B4.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NBGWQ2ZM.js";
|
|
40
40
|
import {
|
|
41
41
|
EXIT
|
|
42
42
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BYMM5NWM.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MQ7D3BUL.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENCODE_HOOK_BINARY,
|
|
10
10
|
openCodeConfigDir,
|
|
11
11
|
openCodePluginFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FCORDYNZ.js";
|
|
13
13
|
import {
|
|
14
14
|
openCodePluginArgv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-I6NA76CJ.js";
|
|
16
16
|
import {
|
|
17
17
|
liveCursorGateCoverage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LLFO2T37.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
22
|
grokHome
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5JCNEQXV.js";
|
|
24
24
|
import {
|
|
25
25
|
parseConfigDocument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UGARTFYN.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_HOOKS_KEY_PATH,
|
|
29
29
|
GEMINI_HOOK_BINARY,
|
|
30
30
|
GEMINI_HOOK_EVENTS,
|
|
31
31
|
hooksAt
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-EPPG7UYT.js";
|
|
33
33
|
import {
|
|
34
34
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
35
35
|
CODEX_HOOK_BINARY,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
parseHookArgv,
|
|
58
58
|
parseHookCommand,
|
|
59
59
|
supportedClaudeEvents
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-PXBMEKOX.js";
|
|
61
61
|
import {
|
|
62
62
|
readRegularJsonFile,
|
|
63
63
|
readRegularTextFile
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
OPENCODE_APPROVAL_EVENT,
|
|
72
72
|
isRecord,
|
|
73
73
|
matcherMatchesEveryCall
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-NVRNS263.js";
|
|
75
75
|
|
|
76
76
|
// src/hook-wiring.ts
|
|
77
77
|
import { createHash } from "crypto";
|
|
@@ -24,26 +24,26 @@ import {
|
|
|
24
24
|
turnCodexAppCardsOff,
|
|
25
25
|
turnCodexAppCardsOn,
|
|
26
26
|
whyLaunchctlFailed
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-MWTQJEIX.js";
|
|
28
|
+
import "./chunk-W5IXKH5A.js";
|
|
29
29
|
import "./chunk-XCEN33UP.js";
|
|
30
30
|
import "./chunk-U4P4NDVB.js";
|
|
31
31
|
import "./chunk-QCGNGEGE.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-UGARTFYN.js";
|
|
33
|
+
import "./chunk-PDYGEI4J.js";
|
|
34
34
|
import "./chunk-3PSNUHC5.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-NZZI77JY.js";
|
|
36
|
+
import "./chunk-IZ3WAW32.js";
|
|
37
|
+
import "./chunk-SZYC2YXC.js";
|
|
38
|
+
import "./chunk-PXBMEKOX.js";
|
|
39
39
|
import "./chunk-6ICPEJY5.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-X6RQS3B4.js";
|
|
41
|
+
import "./chunk-S6RAM5NS.js";
|
|
42
42
|
import "./chunk-PM2NRK6Y.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-NBGWQ2ZM.js";
|
|
44
44
|
import "./chunk-BG4HHB7E.js";
|
|
45
45
|
import "./chunk-CXQWDQCJ.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-NVRNS263.js";
|
|
47
47
|
import "./chunk-MLKGABMK.js";
|
|
48
48
|
export {
|
|
49
49
|
CODEX_APP_CARDS_DIRECTORY,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deriveToolTarget
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M2GQA24G.js";
|
|
4
4
|
import {
|
|
5
5
|
TOOL_NAME_MAX_LENGTH,
|
|
6
6
|
codexElicitationToolName
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NVRNS263.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
|
|
10
10
|
// src/codex-card-routing.ts
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
installedCodexApp,
|
|
13
13
|
shellQuoted,
|
|
14
14
|
writeDesktopProxy
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-W5IXKH5A.js";
|
|
16
16
|
import "./chunk-XCEN33UP.js";
|
|
17
17
|
import {
|
|
18
18
|
CODEX_APP_LAUNCH_VARIABLE
|
|
19
19
|
} from "./chunk-U4P4NDVB.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-X6RQS3B4.js";
|
|
21
21
|
import "./chunk-BG4HHB7E.js";
|
|
22
22
|
import "./chunk-CXQWDQCJ.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-NVRNS263.js";
|
|
24
24
|
import "./chunk-MLKGABMK.js";
|
|
25
25
|
export {
|
|
26
26
|
CODEX_APP_LAUNCH_VARIABLE,
|