pushary 1.9.285 → 1.9.287
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 +10 -0
- package/dist/{api-4MGFAW5H.js → api-CT6IBO52.js} +14 -12
- package/dist/bin/pushary-ask.js +14 -14
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +11 -11
- package/dist/bin/pushary-calls.js +14 -14
- package/dist/bin/pushary-claude.js +25 -25
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +22 -22
- package/dist/bin/pushary-codex-hook.js +34 -34
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -46
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +1 -0
- package/dist/bin/pushary-doctor.js +49 -49
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +42 -42
- package/dist/bin/pushary-logout.js +31 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +21 -21
- package/dist/bin/pushary-opencode-hook.js +32 -32
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +35 -35
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -39
- 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 +36 -36
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +47 -47
- package/dist/bin/pushary-wait.js +24 -24
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-52XX2DYG.js → chunk-2KFYMPMJ.js} +6 -6
- package/dist/{chunk-4KPUTQPG.js → chunk-2NDMTOIT.js} +7 -7
- package/dist/{chunk-4TOJHGPX.js → chunk-3D5RKTFN.js} +2 -2
- package/dist/{chunk-WY2HGMNV.js → chunk-3NIZLXDB.js} +3 -3
- package/dist/{chunk-CP65XDI7.js → chunk-4GMY6BP5.js} +3 -3
- package/dist/{chunk-7U43GCFH.js → chunk-4JHW4D4N.js} +5 -5
- package/dist/{chunk-MTSTB2GL.js → chunk-5GACFNWL.js} +1 -1
- package/dist/{chunk-P47NDCPH.js → chunk-5VLFANI5.js} +2 -2
- package/dist/{chunk-L4PIOZIP.js → chunk-63HYM3BN.js} +2 -2
- package/dist/{chunk-2NUVES3K.js → chunk-6W4MKKWS.js} +4 -4
- package/dist/{chunk-QTNBPBYN.js → chunk-A3OU6RZ5.js} +1 -1
- package/dist/{chunk-745DB5AH.js → chunk-ARR5SMCD.js} +5 -5
- package/dist/{chunk-VVXWDBZK.js → chunk-AT5BTTQS.js} +2 -2
- package/dist/{chunk-7GHHQFHH.js → chunk-BFEH2J6N.js} +10 -10
- package/dist/{chunk-YPDWI6KV.js → chunk-C2JFC6HZ.js} +4 -4
- package/dist/{chunk-CE4D3FCO.js → chunk-CFBJJS7L.js} +12 -12
- package/dist/{chunk-ACAMCU2Y.js → chunk-CRIIKSYA.js} +1 -1
- package/dist/{chunk-PU5MHVE2.js → chunk-CWLAYD2J.js} +5 -5
- package/dist/{chunk-CDOFQJ2Z.js → chunk-DG3B7GSK.js} +1 -1
- package/dist/{chunk-XCPZ64EV.js → chunk-EK4DULO4.js} +3 -3
- package/dist/{chunk-QQDGYEWB.js → chunk-ELNLPO5R.js} +1 -1
- package/dist/{chunk-P4FD4WGC.js → chunk-EXILQZWQ.js} +3 -3
- package/dist/{chunk-FLUKEERY.js → chunk-FH6HNJF2.js} +5 -5
- package/dist/{chunk-2MQUKVMW.js → chunk-FHTK7OCG.js} +7 -7
- package/dist/{chunk-V5LIBKOQ.js → chunk-FO2HOIYA.js} +4 -4
- package/dist/{chunk-6ZRSO6PM.js → chunk-G3W7GSV6.js} +2 -2
- package/dist/{chunk-IVIG4LUZ.js → chunk-GJMN4CWA.js} +4 -4
- package/dist/{chunk-PGCMTR5N.js → chunk-GRLZVTBE.js} +5 -5
- package/dist/{chunk-WUDKVYSQ.js → chunk-H2FNFOSC.js} +2 -2
- package/dist/{chunk-LF2BFP3F.js → chunk-HSHZJ5Z5.js} +3 -3
- package/dist/{chunk-LAPJNDQG.js → chunk-I3QPRZX3.js} +4 -4
- package/dist/{chunk-VFPXC2HE.js → chunk-IAB2LINZ.js} +1 -1
- package/dist/{chunk-KI6IY52L.js → chunk-IGABHU5O.js} +6 -6
- package/dist/{chunk-BETDBGC7.js → chunk-IGM6MUL3.js} +1 -1
- package/dist/{chunk-7ZCIUEBP.js → chunk-IU4JSMWS.js} +1 -1
- package/dist/{chunk-6ZNQDNFS.js → chunk-J2EHHRY2.js} +6 -6
- package/dist/{chunk-CITB5W5V.js → chunk-JLVTNLZX.js} +8 -8
- package/dist/{chunk-DYIU6SSG.js → chunk-JO7CKMEZ.js} +1 -1
- package/dist/{chunk-A533F6TF.js → chunk-JYXGWEIA.js} +3 -3
- package/dist/{chunk-PMHOO355.js → chunk-K7H7QOHB.js} +4 -4
- package/dist/{chunk-SRGKENVI.js → chunk-KLIKQFV6.js} +1 -1
- package/dist/{chunk-IGDC2GMU.js → chunk-LCOYQP5Q.js} +2 -2
- package/dist/{chunk-4Y7RNQO5.js → chunk-LUBSO2VM.js} +3 -3
- package/dist/{chunk-WKXO22AI.js → chunk-M342TA6T.js} +4 -4
- package/dist/{chunk-RRDQYSNT.js → chunk-MDBETUXJ.js} +2 -2
- package/dist/{chunk-5DF6YZPG.js → chunk-MG65IOEE.js} +6 -6
- package/dist/{chunk-DBBLMMBL.js → chunk-NFFVLIYJ.js} +1 -1
- package/dist/{chunk-2HA6AGLM.js → chunk-NH5MKJDI.js} +5 -5
- package/dist/{chunk-SNR7BUWT.js → chunk-NYUSDIQJ.js} +4 -4
- package/dist/{chunk-XV7ZL2JN.js → chunk-OGFITATL.js} +5 -5
- package/dist/{chunk-YJ6OARPK.js → chunk-OJ5O6VRE.js} +14 -13
- package/dist/{chunk-ESTQIKTS.js → chunk-OSI26PGT.js} +1 -1
- package/dist/{chunk-JMPGFGCM.js → chunk-P7PXAD2O.js} +3 -3
- package/dist/{chunk-HWIDUN2Q.js → chunk-PGVLDCAC.js} +10 -10
- package/dist/{chunk-5IJ252DT.js → chunk-PK24TQTN.js} +16 -12
- package/dist/{chunk-YQVGPAZV.js → chunk-Q3NFM2TB.js} +1 -1
- package/dist/{chunk-7O4XAG63.js → chunk-Q5CSZPBJ.js} +2 -2
- package/dist/{chunk-EZBNWOZM.js → chunk-QCUAD2NL.js} +2 -2
- package/dist/{chunk-JPCVW3BA.js → chunk-QHI4OPBT.js} +2 -2
- package/dist/{chunk-MBUENM7S.js → chunk-REENDIUN.js} +1 -1
- package/dist/{chunk-FQC76AYR.js → chunk-RHHUEIN6.js} +5 -5
- package/dist/{chunk-LP2VGPHZ.js → chunk-RKPHCAJZ.js} +1 -1
- package/dist/{chunk-HOAWHKM3.js → chunk-RPLLLNH3.js} +53 -44
- package/dist/{chunk-5FZ2K4UV.js → chunk-S4JZRP3T.js} +1 -1
- package/dist/{chunk-77F7TPQE.js → chunk-SO4274QJ.js} +3 -3
- package/dist/{chunk-6YVIWLL2.js → chunk-SU6M73OQ.js} +2 -2
- package/dist/{chunk-YV7BK4UO.js → chunk-SVJ2WDNJ.js} +1 -1
- package/dist/{chunk-HHGZZIKD.js → chunk-SXDRZVS6.js} +6 -6
- package/dist/{chunk-VZXBPQIX.js → chunk-T4G54LCL.js} +4 -4
- package/dist/{chunk-QWBPCCFQ.js → chunk-TJ5YE7SG.js} +7 -7
- package/dist/{chunk-PAY473GK.js → chunk-TX6YNKDS.js} +1 -1
- package/dist/{chunk-6T367UEE.js → chunk-U4A5EEDI.js} +6 -6
- package/dist/{chunk-RT4KU4JT.js → chunk-UIDLO74Z.js} +1 -1
- package/dist/{chunk-V77JIYBK.js → chunk-UXZLFBSG.js} +1 -1
- package/dist/{chunk-2SW5J3J2.js → chunk-VCHZCTQB.js} +1 -1
- package/dist/{chunk-NAD2JOKF.js → chunk-W7P5GTFI.js} +1 -0
- package/dist/{chunk-O2BQDYHI.js → chunk-WAIYYGY4.js} +1 -1
- package/dist/{chunk-44RAWLI3.js → chunk-XCHF5GNH.js} +1 -1
- package/dist/{chunk-XNWLSADP.js → chunk-Y3ITUD3Q.js} +3 -3
- package/dist/{chunk-JBK7WRPB.js → chunk-YCJN6LZ6.js} +1 -1
- package/dist/{chunk-PCKCLSGP.js → chunk-YLOW6PDN.js} +6 -4
- package/dist/{chunk-6VN46PV6.js → chunk-YWAWRTRL.js} +5 -5
- package/dist/{chunk-BCYXPGOQ.js → chunk-ZUD3ILJI.js} +3 -3
- package/dist/{codex-app-cards-switch-JPDKYQ5R.js → codex-app-cards-switch-4LKL7RGN.js} +11 -11
- package/dist/{codex-card-routing-BDAI3C5X.js → codex-card-routing-36DOF7SM.js} +2 -2
- package/dist/{codex-desktop-launch-WELLPX34.js → codex-desktop-launch-W3OAG7VT.js} +3 -3
- package/dist/{codex-session-launch-BAVV7JK7.js → codex-session-launch-BUJS2QIH.js} +21 -21
- package/dist/{config-L57XINHY.js → config-VBRURSF7.js} +3 -3
- package/dist/{global-upgrade-ZD6PXYIH.js → global-upgrade-I7EA6TPR.js} +9 -9
- package/dist/{identity-ZTXVU75K.js → identity-MIO6FDAF.js} +4 -4
- package/dist/{live-capabilities-TFAUA6FN.js → live-capabilities-MHABDVR6.js} +4 -4
- package/dist/{paths-3VDI3LAG.js → paths-SIINCXTF.js} +3 -3
- package/dist/{reapply-DWXARPLQ.js → reapply-7HT5PW5T.js} +34 -34
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-KNVJBN5G.js → upgrade-lock-PIJW5W2P.js} +4 -4
- package/dist/{usage-YDADZALP.js → usage-A6QKFMIV.js} +3 -3
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KLIKQFV6.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QHI4OPBT.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-W7P5GTFI.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-U4P4NDVB.js";
|
|
17
17
|
import {
|
|
18
18
|
withoutNpmInstallConsent
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NYUSDIQJ.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-CT6IBO52.js");
|
|
543
|
+
var loadTheCardRouting = () => import("./codex-card-routing-36DOF7SM.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-4LKL7RGN.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]");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OJ5O6VRE.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePromptMayFollowPreToolUseAllow,
|
|
6
6
|
promptedCallIdentityText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OSI26PGT.js";
|
|
8
8
|
|
|
9
9
|
// src/phone-approval.ts
|
|
10
10
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./chunk-3PSNUHC5.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KLIKQFV6.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AT5BTTQS.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SU6M73OQ.js";
|
|
14
14
|
import {
|
|
15
15
|
compareVersion,
|
|
16
16
|
formatVersion,
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
resolveGlobalBinary,
|
|
21
21
|
withoutNpmInstallConsent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NYUSDIQJ.js";
|
|
23
23
|
import {
|
|
24
24
|
getApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QHI4OPBT.js";
|
|
26
26
|
import {
|
|
27
27
|
readJsonSafe,
|
|
28
28
|
writeFileAtomic,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-CXQWDQCJ.js";
|
|
39
39
|
import {
|
|
40
40
|
isRecord
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-W7P5GTFI.js";
|
|
42
42
|
|
|
43
43
|
// src/daemon-entry-guard.ts
|
|
44
44
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
readDaemonNeedsLogin,
|
|
6
6
|
readDaemonStatus,
|
|
7
7
|
readDaemonTurnedOffByUser
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MG65IOEE.js";
|
|
9
9
|
import {
|
|
10
10
|
detectProviderLiveCapabilities,
|
|
11
11
|
expectedLaunchCapabilities,
|
|
12
12
|
hasSpawnProvider,
|
|
13
13
|
resolveControlPolicy
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Y3ITUD3Q.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KLIKQFV6.js";
|
|
18
18
|
import {
|
|
19
19
|
readControlMode,
|
|
20
20
|
readKeyInForce
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AT5BTTQS.js";
|
|
22
22
|
import {
|
|
23
23
|
getBaseUrl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QHI4OPBT.js";
|
|
25
25
|
import {
|
|
26
26
|
getPackageVersion
|
|
27
27
|
} from "./chunk-CXQWDQCJ.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-W7P5GTFI.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-I7EA6TPR.js");
|
|
614
|
+
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-PIJW5W2P.js");
|
|
615
|
+
const { autoUpdateLock } = await import("./paths-SIINCXTF.js");
|
|
616
616
|
const lockPath = options.lockPath ?? autoUpdateLock();
|
|
617
617
|
const lockFile = canonicalLockPath(lockPath);
|
|
618
618
|
const unfinishedHere = failuresThisProcessLeftUnfinished.get(lockFile);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EK4DULO4.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BFEH2J6N.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IGABHU5O.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PK24TQTN.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-W7P5GTFI.js";
|
|
20
20
|
|
|
21
21
|
// src/tool-hook-input.ts
|
|
22
22
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
transcriptTokensIn,
|
|
33
33
|
transcriptUsageRequest,
|
|
34
34
|
usageLimitStopOf
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-OSI26PGT.js";
|
|
36
36
|
import {
|
|
37
37
|
isDeferAnswer
|
|
38
38
|
} from "./chunk-Z25VDYAL.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
RETRY_ACK,
|
|
41
41
|
readCommandAck,
|
|
42
42
|
refusedReceiptMessage
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-DG3B7GSK.js";
|
|
44
44
|
import {
|
|
45
45
|
askUser,
|
|
46
46
|
cancelQuestionSettledAtComputer,
|
|
@@ -57,32 +57,32 @@ import {
|
|
|
57
57
|
waitForOpenQuestion,
|
|
58
58
|
waitForQuestion,
|
|
59
59
|
writeDegraded
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-PK24TQTN.js";
|
|
61
61
|
import {
|
|
62
62
|
SubscriptionRequiredError,
|
|
63
63
|
isRetryable,
|
|
64
64
|
withRetry
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-U4A5EEDI.js";
|
|
66
66
|
import {
|
|
67
67
|
fetchAsCredential
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-YLOW6PDN.js";
|
|
69
69
|
import {
|
|
70
70
|
branchFor,
|
|
71
71
|
projectNameFor,
|
|
72
72
|
repoKeyFor
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-Q3NFM2TB.js";
|
|
74
74
|
import {
|
|
75
75
|
getMachineId
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-KLIKQFV6.js";
|
|
77
77
|
import {
|
|
78
78
|
reportedInstallSource
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-AT5BTTQS.js";
|
|
80
80
|
import {
|
|
81
81
|
IDLE_PROMPT_NOTIFICATION,
|
|
82
82
|
NOTIFICATION_PUSH_TYPES,
|
|
83
83
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
84
84
|
claudeConfigDir
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-SU6M73OQ.js";
|
|
86
86
|
import {
|
|
87
87
|
compareVersion,
|
|
88
88
|
parseVersion
|
|
@@ -91,14 +91,14 @@ import {
|
|
|
91
91
|
getApiKey,
|
|
92
92
|
getBaseUrl,
|
|
93
93
|
isMalformedApiKeyError
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-QHI4OPBT.js";
|
|
95
95
|
import {
|
|
96
96
|
writeFileAtomic,
|
|
97
97
|
writeJsonAtomicDurable
|
|
98
98
|
} from "./chunk-PM2NRK6Y.js";
|
|
99
99
|
import {
|
|
100
100
|
NPX_LATEST_COMMAND
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-IGM6MUL3.js";
|
|
102
102
|
import {
|
|
103
103
|
getPackageVersion,
|
|
104
104
|
isKnownReleaseVersion
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
responseRejectsCredential,
|
|
165
165
|
unansweredRefusalReason,
|
|
166
166
|
waitsForThePhone
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-W7P5GTFI.js";
|
|
168
168
|
|
|
169
169
|
// src/pending.ts
|
|
170
170
|
import { join } from "path";
|
|
@@ -1033,7 +1033,7 @@ var outcomeOfOneCardAnswer = (only, answer) => {
|
|
|
1033
1033
|
var askAsOneCard = async (apiKey, call, only) => {
|
|
1034
1034
|
let result;
|
|
1035
1035
|
try {
|
|
1036
|
-
result = await askUser(apiKey, { ...oneCardAsk(call, only), waitEndsAt: new Date(call.deadline).toISOString() });
|
|
1036
|
+
result = await askUser(apiKey, { ...oneCardAsk(call, only), dialogHandle: call.beginDialogCard?.(), waitEndsAt: new Date(call.deadline).toISOString() });
|
|
1037
1037
|
} catch (error) {
|
|
1038
1038
|
return failedAskOutcome(error, call.sessionId);
|
|
1039
1039
|
}
|
|
@@ -1071,6 +1071,7 @@ var askQuestionByQuestion = async (apiKey, call, questions) => {
|
|
|
1071
1071
|
machineId: getMachineId(),
|
|
1072
1072
|
toolName: call.toolName,
|
|
1073
1073
|
toolUseId: positionedToolUseId(call.toolUseId, { index, total: questions.length }),
|
|
1074
|
+
dialogHandle: call.beginDialogCard?.(),
|
|
1074
1075
|
waitEndsAt: new Date(call.deadline).toISOString()
|
|
1075
1076
|
});
|
|
1076
1077
|
} catch (error) {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YLOW6PDN.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QHI4OPBT.js";
|
|
11
11
|
import {
|
|
12
12
|
writeJsonAtomicDurable
|
|
13
13
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
compressTranscriptRecord,
|
|
16
16
|
redactSecretsFromContent,
|
|
17
17
|
transcriptRecordPlaintext
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-W7P5GTFI.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-63HYM3BN.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G3W7GSV6.js";
|
|
8
8
|
import {
|
|
9
9
|
liveCursorGateCoverage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EK4DULO4.js";
|
|
11
11
|
import {
|
|
12
12
|
OPENCODE_HOOK_BINARY,
|
|
13
13
|
openCodeConfigDir,
|
|
14
14
|
openCodePluginFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TJ5YE7SG.js";
|
|
16
16
|
import {
|
|
17
17
|
openCodePluginArgv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5GACFNWL.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
22
|
grokHome
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IGABHU5O.js";
|
|
24
24
|
import {
|
|
25
25
|
parseConfigDocument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RKPHCAJZ.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-FO2HOIYA.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-SU6M73OQ.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-W7P5GTFI.js";
|
|
75
75
|
|
|
76
76
|
// src/hook-wiring.ts
|
|
77
77
|
import { createHash } from "crypto";
|
|
@@ -8,26 +8,27 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-U4A5EEDI.js";
|
|
12
12
|
import {
|
|
13
|
+
credentialRejectedAt,
|
|
13
14
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YLOW6PDN.js";
|
|
15
16
|
import {
|
|
16
17
|
installNetworkDefaults,
|
|
17
18
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LUBSO2VM.js";
|
|
19
20
|
import {
|
|
20
21
|
keyPrefix
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AT5BTTQS.js";
|
|
22
23
|
import {
|
|
23
24
|
MacAppRefusedError,
|
|
24
25
|
MacAppUnreachableError,
|
|
25
26
|
clientReportClaims
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SU6M73OQ.js";
|
|
27
28
|
import {
|
|
28
29
|
getApiKey,
|
|
29
30
|
getBaseUrl
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QHI4OPBT.js";
|
|
31
32
|
import {
|
|
32
33
|
getPackageVersion
|
|
33
34
|
} from "./chunk-CXQWDQCJ.js";
|
|
@@ -57,7 +58,7 @@ import {
|
|
|
57
58
|
responseRejectsCredential,
|
|
58
59
|
truncateLine,
|
|
59
60
|
waitEndAnswered
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-W7P5GTFI.js";
|
|
61
62
|
|
|
62
63
|
// src/api.ts
|
|
63
64
|
import { randomUUID } from "crypto";
|
|
@@ -245,9 +246,9 @@ var createClientErrorReporter = (deps) => {
|
|
|
245
246
|
const claim = claimReportWindow(deps.claimsDir, key, now);
|
|
246
247
|
return claim === "unavailable" ? claimInProcess(key, now) : claim === "claimed";
|
|
247
248
|
};
|
|
248
|
-
const claimRejectedKeyBeacon = (
|
|
249
|
-
const reportRejectedKeyOnce = async (apiKey, event,
|
|
250
|
-
if (telemetryOptedOut(process.env) || signal.aborted || !claimRejectedKeyBeacon(
|
|
249
|
+
const claimRejectedKeyBeacon = (rejectedAt) => claimReportWindow(deps.claimsDir, REJECTED_KEY_CLAIM, rejectedAt) === "claimed";
|
|
250
|
+
const reportRejectedKeyOnce = async (apiKey, event, rejectedAt, signal) => {
|
|
251
|
+
if (telemetryOptedOut(process.env) || signal.aborted || !claimRejectedKeyBeacon(rejectedAt)) return;
|
|
251
252
|
try {
|
|
252
253
|
const beacon = keyRejectedBeaconOf(apiKey, event, getPackageVersion(), process.platform);
|
|
253
254
|
await postKeylessBeaconUntil(beacon, signal, { fetchImpl: deps.fetchImpl, baseUrl: deps.baseUrl, env: process.env });
|
|
@@ -262,16 +263,17 @@ var createClientErrorReporter = (deps) => {
|
|
|
262
263
|
const now = deps.now();
|
|
263
264
|
if (!apiKey || !claimReport(reportKey(event), now)) return;
|
|
264
265
|
const signal = AbortSignal.timeout(CLIENT_REPORT_TIMEOUT_MS);
|
|
266
|
+
const reportUrl = `${deps.baseUrl()}${CLIENT_REPORT_PATH}`;
|
|
265
267
|
for (let attempt = 0; attempt < CLIENT_REPORT_MAX_ATTEMPTS && !signal.aborted; attempt++) {
|
|
266
268
|
try {
|
|
267
|
-
const response = await fetchAsCredential(apiKey,
|
|
269
|
+
const response = await fetchAsCredential(apiKey, reportUrl, {
|
|
268
270
|
method: "POST",
|
|
269
271
|
headers: { "Authorization": `Bearer ${apiKey}`, "Content-Type": "application/json" },
|
|
270
272
|
body: JSON.stringify({ ...event, occurredAt: new Date(now).toISOString() }),
|
|
271
273
|
signal
|
|
272
274
|
}, deps.fetchImpl);
|
|
273
275
|
await response.body?.cancel();
|
|
274
|
-
if (responseRejectsCredential(response.status, response.headers)) return await reportRejectedKeyOnce(apiKey, event, now, signal);
|
|
276
|
+
if (responseRejectsCredential(response.status, response.headers)) return await reportRejectedKeyOnce(apiKey, event, credentialRejectedAt(apiKey, reportUrl) ?? now, signal);
|
|
275
277
|
if (response.ok || response.status < 500 && response.status !== 429) return;
|
|
276
278
|
} catch {
|
|
277
279
|
if (signal.aborted) return;
|
|
@@ -458,6 +460,7 @@ var pollForAnswer = async (apiKey, correlationId, deadlineMs, pollInterval = 2e3
|
|
|
458
460
|
return settleAtTheDeadline(apiKey, correlationId, atDeadline, withdraw, signal);
|
|
459
461
|
};
|
|
460
462
|
var CANCEL_QUESTION_TIMEOUT_MS = 4e3;
|
|
463
|
+
var closeClaudeDialog = (apiKey, correlationId, dialogClose) => callMcpTool(apiKey, "cancel_question", { correlationId, dialogClose }, { timeoutMs: CANCEL_QUESTION_TIMEOUT_MS, maxRetries: 3 });
|
|
461
464
|
var cancelQuestion = async (signIn, correlationId, signal, baseUrl) => {
|
|
462
465
|
return callMcpTool(signIn, "cancel_question", { correlationId }, { signal, timeoutMs: CANCEL_QUESTION_TIMEOUT_MS, maxRetries: 1, baseUrl });
|
|
463
466
|
};
|
|
@@ -594,6 +597,7 @@ export {
|
|
|
594
597
|
WAIT_END_TIMEOUT_MS,
|
|
595
598
|
pollForAnswer,
|
|
596
599
|
CANCEL_QUESTION_TIMEOUT_MS,
|
|
600
|
+
closeClaudeDialog,
|
|
597
601
|
cancelQuestion,
|
|
598
602
|
cancelQuestionSettledAtComputer,
|
|
599
603
|
WITHDRAW_READ_TIMEOUT_MS,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q3NFM2TB.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AT5BTTQS.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JYXGWEIA.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W7P5GTFI.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EXILQZWQ.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TJ5YE7SG.js";
|
|
7
7
|
import {
|
|
8
8
|
grokHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IGABHU5O.js";
|
|
10
10
|
import {
|
|
11
11
|
nativeClaudeInstallPath
|
|
12
12
|
} from "./chunk-TCE3J44Z.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
codexHomeFrom,
|
|
17
17
|
openClawEnvironmentOf,
|
|
18
18
|
openClawPathsFrom
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SU6M73OQ.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-W7P5GTFI.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|