pushary 1.9.240 → 1.9.243
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 +20 -0
- package/data/openclaw-plugin/dist/decision-reply.js +4 -0
- package/dist/{api-S3HQL4CV.js → api-6L636FFI.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- 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 +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- 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 +96 -24
- package/dist/bin/pushary-doctor.js +47 -47
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +31 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- 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 +110 -81
- 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 +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 +47 -47
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-I2PDVTLE.js → chunk-2KJUGUYQ.js} +6 -6
- package/dist/{chunk-QHZUGUXM.js → chunk-332UCKZR.js} +4 -4
- package/dist/{chunk-OQMYK75R.js → chunk-3C3U43UY.js} +1 -1
- package/dist/{chunk-WSVJH327.js → chunk-3DW6IVG5.js} +2 -2
- package/dist/{chunk-7HX3GQ3J.js → chunk-4H6DCMIK.js} +1 -1
- package/dist/{chunk-R3KWJHV5.js → chunk-5LAKBLOK.js} +5 -5
- package/dist/{chunk-EOIWK4T3.js → chunk-6BWATFAV.js} +2 -2
- package/dist/{chunk-BWJ5XWOY.js → chunk-6EIVM3CN.js} +1 -1
- package/dist/{chunk-NSTSKANY.js → chunk-6KRO6DQC.js} +1 -1
- package/dist/{chunk-IVVAUS4X.js → chunk-6TJOEVKA.js} +4 -4
- package/dist/{chunk-MUJQEBEI.js → chunk-73I733XY.js} +3 -3
- package/dist/{chunk-G7N3AMF2.js → chunk-7T5IXYCJ.js} +4 -4
- package/dist/{chunk-KNR4GPWC.js → chunk-7WIYDCUB.js} +1 -1
- package/dist/{chunk-SHJTV4M2.js → chunk-AXBIUN5S.js} +7 -7
- package/dist/{chunk-YBEZ373R.js → chunk-B2UMHA24.js} +5 -5
- package/dist/{chunk-6HCARNSZ.js → chunk-B62INGJG.js} +3 -3
- package/dist/{chunk-KIY2LDOS.js → chunk-BATXVYBR.js} +1 -1
- package/dist/{chunk-2FKAQDIY.js → chunk-BK7EZIAG.js} +2 -2
- package/dist/{chunk-MN52HESI.js → chunk-BNB7VOJE.js} +2 -2
- package/dist/{chunk-ON7GUC77.js → chunk-CA2BNB66.js} +11 -11
- package/dist/{chunk-CGNHFWTM.js → chunk-CDVHWJPI.js} +327 -117
- package/dist/{chunk-HYCSVBZU.js → chunk-CFPHF7TJ.js} +5 -5
- package/dist/{chunk-3VGW6MMH.js → chunk-CIS77AVL.js} +4 -4
- package/dist/{chunk-SFE3KYTV.js → chunk-CKCDYRLT.js} +1 -1
- package/dist/{chunk-AZ7I6F6U.js → chunk-DY45DRQQ.js} +2 -2
- package/dist/{chunk-OKAFHEJQ.js → chunk-DZS3JN6U.js} +3 -3
- package/dist/{chunk-FIW3N3OO.js → chunk-F7MIUZU5.js} +2 -2
- package/dist/{chunk-JNGQTIM4.js → chunk-G2QR2OOD.js} +2 -2
- package/dist/{chunk-5ONH6JSZ.js → chunk-G57SFOGM.js} +1 -1
- package/dist/{chunk-54FAMVFU.js → chunk-GFNMWJXO.js} +1 -1
- package/dist/{chunk-C2G6EI42.js → chunk-GHZ6CTB3.js} +5 -5
- package/dist/{chunk-B7LTTHPP.js → chunk-GTSVMILT.js} +2 -2
- package/dist/{chunk-UPLB3UAG.js → chunk-GZ2EWBNW.js} +5 -5
- package/dist/{chunk-ZOCOTPP5.js → chunk-H75XNDPU.js} +2 -2
- package/dist/{chunk-OCX3VPL7.js → chunk-HHY574OJ.js} +94 -16
- package/dist/{chunk-N27CCH7E.js → chunk-HZSTXGMB.js} +3 -3
- package/dist/{chunk-Z443YMGX.js → chunk-IHJ37K7X.js} +5 -5
- package/dist/{chunk-4SERWSEJ.js → chunk-INLOMDYZ.js} +8 -8
- package/dist/{chunk-4ALCCCOW.js → chunk-IR67OATS.js} +6 -6
- package/dist/{chunk-IIHJRQUH.js → chunk-IU5EUBFI.js} +4 -4
- package/dist/{chunk-B7TUAYY4.js → chunk-J2FYEMDA.js} +7 -7
- package/dist/{chunk-CP7FDXDR.js → chunk-JAXA5POJ.js} +4 -4
- package/dist/{chunk-ZVMQ5WJM.js → chunk-JEEYHFFF.js} +1 -1
- package/dist/{chunk-SR3IJPFT.js → chunk-JK2NYF6W.js} +4 -4
- package/dist/{chunk-DGF63IWR.js → chunk-JOOLRMRT.js} +1 -1
- package/dist/{chunk-BXIW4PYY.js → chunk-JXH56OQJ.js} +1 -1
- package/dist/{chunk-5MTDC25A.js → chunk-KS4N7MUS.js} +6 -6
- package/dist/{chunk-3RHUT4CT.js → chunk-KVMPB3X4.js} +5 -5
- package/dist/{chunk-CBNSLSTN.js → chunk-LWAMSBU5.js} +16 -16
- package/dist/{chunk-T7BENAXJ.js → chunk-M3EGOLWI.js} +2 -2
- package/dist/{chunk-YMNUS2OX.js → chunk-NEKEDV5H.js} +2 -2
- package/dist/{chunk-GUZHMUPZ.js → chunk-NGABIHSJ.js} +2 -2
- package/dist/{chunk-VBXEKGOD.js → chunk-NQU5VPJ2.js} +1 -1
- package/dist/{chunk-3KR7IXGP.js → chunk-NSRARU4G.js} +4 -4
- package/dist/{chunk-5JEWS5WP.js → chunk-O2HFH6CO.js} +1 -1
- package/dist/{chunk-MRRFHM5W.js → chunk-PCCNXWVD.js} +3 -3
- package/dist/{chunk-UZDOP52C.js → chunk-PEQ3TYLP.js} +3 -3
- package/dist/{chunk-EJIVYRYV.js → chunk-PGWUHKNZ.js} +6 -6
- package/dist/{chunk-W5RHKVDB.js → chunk-PHJS5IAO.js} +10 -10
- package/dist/{chunk-GRDGIN5F.js → chunk-QRUVYQM5.js} +1 -1
- package/dist/{chunk-Z3GHXUCO.js → chunk-QZQHAFSP.js} +5 -5
- package/dist/{chunk-PIF4FJBM.js → chunk-R5LKQNBS.js} +4 -4
- package/dist/{chunk-VGPLLTWD.js → chunk-RAK5AKBH.js} +1 -1
- package/dist/{chunk-IUGLAPOI.js → chunk-RBQWVGEX.js} +3 -3
- package/dist/{chunk-B4U25UYA.js → chunk-RHCDB25U.js} +3 -3
- package/dist/{chunk-S5NZYFIW.js → chunk-RL6SYK6P.js} +5 -5
- package/dist/{chunk-OSQPNWK2.js → chunk-RX4VUNYO.js} +3 -3
- package/dist/{chunk-6MK3OFFQ.js → chunk-S2TIA67T.js} +12 -12
- package/dist/{chunk-JVVVKMHW.js → chunk-THBEXOTL.js} +1 -1
- package/dist/{chunk-MGGUU2HK.js → chunk-UYCL6GGF.js} +5 -5
- package/dist/{chunk-BFFE3XUB.js → chunk-VJGNKY3G.js} +4 -4
- package/dist/{chunk-6O4LOD7E.js → chunk-VNUBOY2Z.js} +1 -1
- package/dist/{chunk-WVKLSWNF.js → chunk-WAUNJPDC.js} +1 -1
- package/dist/{chunk-RRDNCZ5B.js → chunk-WMDZB37J.js} +1 -1
- package/dist/{chunk-CDP47IC4.js → chunk-XCR3IXKE.js} +1 -1
- package/dist/{chunk-FN6K5DJE.js → chunk-XWL4ZWTC.js} +1 -1
- package/dist/{chunk-PBAX5ZTC.js → chunk-ZB25WE2K.js} +3 -3
- package/dist/{chunk-4KA5FPCU.js → chunk-ZELRSKRA.js} +2 -2
- package/dist/{chunk-VWYNFCZZ.js → chunk-ZGDTT3LR.js} +9 -9
- package/dist/{chunk-6T3JNLXH.js → chunk-ZICVRFNH.js} +1 -1
- package/dist/{chunk-47PF7UUS.js → chunk-ZQYH7EKR.js} +3 -3
- package/dist/{codex-app-cards-switch-JY256N6Q.js → codex-app-cards-switch-I6WJCVY4.js} +11 -11
- package/dist/{codex-card-routing-GJFKRHFN.js → codex-card-routing-L4TL5YB4.js} +2 -2
- package/dist/{codex-desktop-launch-KADUT764.js → codex-desktop-launch-Y4ODCUFU.js} +3 -3
- package/dist/{codex-session-launch-5UQLTCD6.js → codex-session-launch-7CS4XAD3.js} +20 -20
- package/dist/{config-BCLQDBDL.js → config-77UADC3N.js} +3 -3
- package/dist/{global-upgrade-GF52LKRB.js → global-upgrade-Q2QSVP7H.js} +9 -9
- package/dist/{identity-KJUPRF7O.js → identity-5EC2OOW7.js} +4 -4
- package/dist/{live-capabilities-3WYHLMMU.js → live-capabilities-E23EJXRF.js} +4 -4
- package/dist/{paths-M2JGTCLR.js → paths-TTYM7HYI.js} +3 -3
- package/dist/{reapply-UEQZ26JC.js → reapply-OAY3SRY5.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-EGMKQLIM.js → upgrade-lock-PH5LW5VB.js} +4 -4
- package/dist/{usage-DN7WLHLX.js → usage-QZ2S5AGT.js} +3 -3
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionWindowOf
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CA2BNB66.js";
|
|
4
4
|
import {
|
|
5
5
|
UNNAMED_ACTION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4H6DCMIK.js";
|
|
7
7
|
import {
|
|
8
8
|
ASK_USER_TIMEOUT_MS,
|
|
9
9
|
WAIT_END_TIMEOUT_MS,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
askUser,
|
|
12
12
|
unavailableQuestionUnlessRefused,
|
|
13
13
|
waitForQuestion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PGWUHKNZ.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JEEYHFFF.js";
|
|
18
18
|
import {
|
|
19
19
|
hookMaxWaitSeconds,
|
|
20
20
|
hookWaitClamped,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
refusesWhenUnanswered,
|
|
25
25
|
ruleApprovesAfterItsFullWindow,
|
|
26
26
|
scopeBreachReasonOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CDVHWJPI.js";
|
|
28
28
|
|
|
29
29
|
// src/pushed-question.ts
|
|
30
30
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KVMPB3X4.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7T5IXYCJ.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NGABIHSJ.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CDVHWJPI.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CKCDYRLT.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HZSTXGMB.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serviceNodeFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2KJUGUYQ.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-NGABIHSJ.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-IU5EUBFI.js";
|
|
25
25
|
import {
|
|
26
26
|
getPackageVersion,
|
|
27
27
|
globalTranscriptRegisterEntry
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NGABIHSJ.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CXQWDQCJ.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CDVHWJPI.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NGABIHSJ.js";
|
|
4
4
|
import {
|
|
5
5
|
readRegularJsonFile,
|
|
6
6
|
writeFileAtomic
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CDVHWJPI.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6TJOEVKA.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GTSVMILT.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RBQWVGEX.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
readConfigFileKey,
|
|
22
22
|
readKeySource,
|
|
23
23
|
readMacAppKeyPrefix
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HZSTXGMB.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CDVHWJPI.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RBQWVGEX.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CDVHWJPI.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RX4VUNYO.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-2KJUGUYQ.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JEEYHFFF.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeyInForce
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HZSTXGMB.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BK7EZIAG.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
26
|
} from "./chunk-CXQWDQCJ.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HZSTXGMB.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JOOLRMRT.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IR67OATS.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-NQU5VPJ2.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RBQWVGEX.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6BWATFAV.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-JOOLRMRT.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-CDVHWJPI.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -756,6 +756,70 @@ var describePhoneWait = (skipOffered, accountEmail = null) => [
|
|
|
756
756
|
signInOnThePhoneStep(accountEmail),
|
|
757
757
|
...skipOffered ? [dim(PHONE_WAIT_SKIP_LINE)] : []
|
|
758
758
|
];
|
|
759
|
+
var PHONE_WAIT_STOPPED_LABEL = "Stopped before a phone connected";
|
|
760
|
+
var PHONE_WAIT_STOPPED_LINE = `To connect a phone later, run ${NPX_LATEST_COMMAND} setup.`;
|
|
761
|
+
var PHONE_WAIT_SIGNAL_CLEANUP_MS = 4e3;
|
|
762
|
+
var settledWithin = async (work, ms) => {
|
|
763
|
+
let timer;
|
|
764
|
+
try {
|
|
765
|
+
await Promise.race([work.catch(() => {
|
|
766
|
+
}), new Promise((resolve) => {
|
|
767
|
+
timer = setTimeout(resolve, ms);
|
|
768
|
+
})]);
|
|
769
|
+
} finally {
|
|
770
|
+
clearTimeout(timer);
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
var NO_PHONE_WAIT_SIGNALS = { spinner: { started: (stop) => stop }, stopped: () => false, release: () => {
|
|
774
|
+
} };
|
|
775
|
+
var stopOnlyOnce = (stop) => {
|
|
776
|
+
let done = false;
|
|
777
|
+
return (glyph, label) => {
|
|
778
|
+
if (done) return;
|
|
779
|
+
done = true;
|
|
780
|
+
stop(glyph, label);
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
var exitOnPhoneWaitSignals = (options) => {
|
|
784
|
+
const onSignal = options.onSignal;
|
|
785
|
+
if (onSignal === void 0) return NO_PHONE_WAIT_SIGNALS;
|
|
786
|
+
const exit = options.exit ?? ((code) => process.exit(code));
|
|
787
|
+
let stopSpinner = null;
|
|
788
|
+
let stopped = false;
|
|
789
|
+
let release = () => {
|
|
790
|
+
};
|
|
791
|
+
const stopOnSignal = (exitCode) => () => {
|
|
792
|
+
if (stopped) return;
|
|
793
|
+
stopped = true;
|
|
794
|
+
release();
|
|
795
|
+
if (stopSpinner === null) writeStatusLine(`${yellow("!")} ${PHONE_WAIT_STOPPED_LABEL}`);
|
|
796
|
+
else stopSpinner(yellow("!"), PHONE_WAIT_STOPPED_LABEL);
|
|
797
|
+
writeHuman(` ${dim(PHONE_WAIT_STOPPED_LINE)}
|
|
798
|
+
|
|
799
|
+
`);
|
|
800
|
+
void settledWithin(onSignal(exitCode), PHONE_WAIT_SIGNAL_CLEANUP_MS).finally(() => exit(exitCode));
|
|
801
|
+
};
|
|
802
|
+
const onInterrupt = stopOnSignal(EXIT_ABORTED);
|
|
803
|
+
const onTerminate = stopOnSignal(EXIT_TERMINATED);
|
|
804
|
+
process.once("SIGINT", onInterrupt);
|
|
805
|
+
process.once("SIGTERM", onTerminate);
|
|
806
|
+
release = () => {
|
|
807
|
+
process.off("SIGINT", onInterrupt);
|
|
808
|
+
process.off("SIGTERM", onTerminate);
|
|
809
|
+
};
|
|
810
|
+
return {
|
|
811
|
+
spinner: {
|
|
812
|
+
started: (stop) => {
|
|
813
|
+
const once = stopOnlyOnce(stop);
|
|
814
|
+
if (stopped) once(yellow("!"), PHONE_WAIT_STOPPED_LABEL);
|
|
815
|
+
stopSpinner = once;
|
|
816
|
+
return once;
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
stopped: () => stopped,
|
|
820
|
+
release: () => release()
|
|
821
|
+
};
|
|
822
|
+
};
|
|
759
823
|
var watchSkip = (listener) => {
|
|
760
824
|
let skipped = false;
|
|
761
825
|
let wake = () => {
|
|
@@ -774,15 +838,15 @@ var PHONE_WAIT_REPAIR_LINE = `Open the Pushary app, sign in with the same accoun
|
|
|
774
838
|
var phoneWaitRepair = (verdict) => verdict.kind === "nobody" ? [PHONE_WAIT_REPAIR_LINE] : describeAppRepair(verdict) ?? [];
|
|
775
839
|
var PHONE_WAIT_SKIPPED = "skipped_at_the_terminal";
|
|
776
840
|
var phoneWaitWasSkipped = (phone) => phone?.detail === PHONE_WAIT_SKIPPED;
|
|
777
|
-
var pollForYourPhone = async (apiKey, firstSeen, options) => {
|
|
841
|
+
var pollForYourPhone = async (apiKey, firstSeen, options, signals) => {
|
|
778
842
|
const clock = options.clock ?? SYSTEM_PAIR_CLOCK;
|
|
779
843
|
const deadline = clock.now() + PHONE_WAIT_TIMEOUT_MS;
|
|
780
844
|
const skip = watchSkip(options.skip);
|
|
781
845
|
const minutesLeft = () => Math.max(0, Math.ceil((deadline - clock.now()) / 6e4));
|
|
782
|
-
const stop = startSpinner(() => `Waiting for your phone ${dim(`(${minutesLeft()}m left)`)}`);
|
|
846
|
+
const stop = signals.spinner.started(startSpinner(() => `Waiting for your phone ${dim(`(${minutesLeft()}m left)`)}`));
|
|
783
847
|
let lastSeen = firstSeen;
|
|
784
848
|
try {
|
|
785
|
-
while (clock.now() < deadline && !skip.skipped()) {
|
|
849
|
+
while (clock.now() < deadline && !skip.skipped() && !signals.stopped()) {
|
|
786
850
|
const probe = await fetchChannels(apiKey);
|
|
787
851
|
if (probe.kind === "unauthorized") {
|
|
788
852
|
stop(yellow("!"), "The server stopped accepting this key");
|
|
@@ -811,18 +875,32 @@ var pollForYourPhone = async (apiKey, firstSeen, options) => {
|
|
|
811
875
|
skip.stop();
|
|
812
876
|
}
|
|
813
877
|
};
|
|
814
|
-
var
|
|
878
|
+
var waitUntilYourPhoneConnects = async (apiKey, options, signals) => {
|
|
815
879
|
const probe = await fetchChannels(apiKey);
|
|
816
|
-
if (probe.kind !== "ok") return
|
|
817
|
-
if (reachesYou(probe.status)) {
|
|
818
|
-
console.log(` ${check} ${describeExistingConnection(probe.status)}`);
|
|
819
|
-
return sendAndConfirm(apiKey, probe.status);
|
|
820
|
-
}
|
|
880
|
+
if (probe.kind !== "ok" || reachesYou(probe.status) || signals.stopped()) return { stage: "first-look", probe };
|
|
821
881
|
if (options.followsABlankLine !== true) console.log();
|
|
822
882
|
if (options.intro) await options.intro();
|
|
823
883
|
else for (const line of describePhoneWait(options.skip !== void 0, options.accountEmail ?? null)) console.log(` ${line}`);
|
|
824
884
|
console.log();
|
|
825
|
-
|
|
885
|
+
if (signals.stopped()) return { stage: "first-look", probe };
|
|
886
|
+
return { stage: "waited", waited: await pollForYourPhone(apiKey, probe.status, options, signals) };
|
|
887
|
+
};
|
|
888
|
+
var phoneSeenAtFirstLook = (apiKey, probe) => {
|
|
889
|
+
if (probe.kind !== "ok") return describeProbeFailure(probe);
|
|
890
|
+
console.log(` ${check} ${describeExistingConnection(probe.status)}`);
|
|
891
|
+
return sendAndConfirm(apiKey, probe.status);
|
|
892
|
+
};
|
|
893
|
+
var waitForYourPhone = async (apiKey, options = {}) => {
|
|
894
|
+
const signals = exitOnPhoneWaitSignals(options);
|
|
895
|
+
let outcome;
|
|
896
|
+
try {
|
|
897
|
+
outcome = await waitUntilYourPhoneConnects(apiKey, options, signals);
|
|
898
|
+
} finally {
|
|
899
|
+
signals.release();
|
|
900
|
+
}
|
|
901
|
+
if (signals.stopped()) return heldUntilTheSignalExits();
|
|
902
|
+
if (outcome.stage === "first-look") return phoneSeenAtFirstLook(apiKey, outcome.probe);
|
|
903
|
+
const { waited } = outcome;
|
|
826
904
|
if (waited.kind === "connected") return sendAndConfirm(apiKey, waited.channels);
|
|
827
905
|
if (waited.kind === "unauthorized" || waited.kind === "locked") return describeProbeFailure(waited);
|
|
828
906
|
if (waited.kind === "skipped") return phoneFailure(PHONE_WAIT_SKIPPED);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6BWATFAV.js";
|
|
4
4
|
import {
|
|
5
5
|
apiKeyInForce,
|
|
6
6
|
configFilePath,
|
|
7
7
|
keyPrefixToShow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BK7EZIAG.js";
|
|
9
9
|
import {
|
|
10
10
|
backupFile,
|
|
11
11
|
backupFileInto,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
API_KEY_PREFIX_PATTERN,
|
|
18
18
|
isRecord,
|
|
19
19
|
isValidApiKey
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CDVHWJPI.js";
|
|
21
21
|
|
|
22
22
|
// src/shell-alias.ts
|
|
23
23
|
import { homedir } from "os";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAsCredential
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7WIYDCUB.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RBQWVGEX.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PEQ3TYLP.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BK7EZIAG.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CDVHWJPI.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WAUNJPDC.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GFNMWJXO.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-M3EGOLWI.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-PGWUHKNZ.js";
|
|
29
29
|
import {
|
|
30
30
|
readCommandAck
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZICVRFNH.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-IHJ37K7X.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-CKCDYRLT.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-CDVHWJPI.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GTSVMILT.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IHJ37K7X.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RBQWVGEX.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BK7EZIAG.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JOOLRMRT.js";
|
|
17
17
|
import {
|
|
18
18
|
AGENT_STOP_DEFAULT_SECONDS,
|
|
19
19
|
APPROVAL_MODE_META,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
classifyConfirmResponse,
|
|
22
22
|
isAnswerSource,
|
|
23
23
|
roundTripAsk
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CDVHWJPI.js";
|
|
25
25
|
|
|
26
26
|
// src/reach.ts
|
|
27
27
|
var PUSHARY_APP_DOWNLOAD_URL = "https://pushary.com/download";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CDVHWJPI.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -599,9 +599,9 @@ var installGlobally = (options) => {
|
|
|
599
599
|
}
|
|
600
600
|
const started = (async () => {
|
|
601
601
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
602
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
603
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
604
|
-
const { autoUpdateLock } = await import("./paths-
|
|
602
|
+
const { withUpgradeLock } = await import("./global-upgrade-Q2QSVP7H.js");
|
|
603
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-PH5LW5VB.js");
|
|
604
|
+
const { autoUpdateLock } = await import("./paths-TTYM7HYI.js");
|
|
605
605
|
let result = "skipped";
|
|
606
606
|
const install = async () => {
|
|
607
607
|
const planned = readPlannedSetupInstall(process.platform);
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H75XNDPU.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GTSVMILT.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NQU5VPJ2.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RBQWVGEX.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HZSTXGMB.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BK7EZIAG.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT
|
|
26
26
|
} from "./chunk-BG4HHB7E.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-CDVHWJPI.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
claimThrottle,
|
|
5
5
|
releaseThrottle,
|
|
6
6
|
reportEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CA2BNB66.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveToolTarget,
|
|
10
10
|
permissionDeniedAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4H6DCMIK.js";
|
|
12
12
|
import {
|
|
13
13
|
projectNameFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CKCDYRLT.js";
|
|
15
15
|
import {
|
|
16
16
|
PERMISSION_ALLOWED_EVENT,
|
|
17
17
|
PERMISSION_DENIED_EVENT,
|
|
18
18
|
machineApprovalFor,
|
|
19
19
|
machineDecisionFor,
|
|
20
20
|
wireVerdictFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CDVHWJPI.js";
|
|
22
22
|
|
|
23
23
|
// src/machine-decision-audit.ts
|
|
24
24
|
var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-WHB622LP.js";
|
|
5
5
|
import {
|
|
6
6
|
keyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HZSTXGMB.js";
|
|
8
8
|
import {
|
|
9
9
|
keyPrefixToShow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BK7EZIAG.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JOOLRMRT.js";
|
|
14
14
|
import {
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CDVHWJPI.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/key-account.ts
|
|
19
19
|
var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
|