pushary 1.9.99 → 1.9.100
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-UGCOLWF4.js → api-H734WJ2V.js} +10 -10
- package/dist/bin/pushary-bell-hook.js +26 -26
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +34 -34
- package/dist/bin/pushary-codex-bridge.js +21 -21
- package/dist/bin/pushary-codex-hook.js +31 -31
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +14 -14
- package/dist/bin/pushary-connect.js +27 -27
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +39 -39
- package/dist/bin/pushary-disconnect.js +26 -26
- package/dist/bin/pushary-display-hook.js +17 -17
- package/dist/bin/pushary-doctor.js +42 -42
- package/dist/bin/pushary-elicitation-hook.js +26 -26
- package/dist/bin/pushary-gemini-bridge.js +15 -15
- package/dist/bin/pushary-gemini-hook.js +28 -28
- package/dist/bin/pushary-hook.js +30 -30
- package/dist/bin/pushary-login.js +20 -20
- package/dist/bin/pushary-logout.js +25 -25
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +25 -25
- package/dist/bin/pushary-opencode-hook.js +27 -27
- package/dist/bin/pushary-permission-denied-hook.js +30 -30
- package/dist/bin/pushary-permission-hook.js +30 -30
- package/dist/bin/pushary-post-hook.js +25 -25
- package/dist/bin/pushary-prompt-hook.js +25 -25
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +35 -35
- package/dist/bin/pushary-setup.js +48 -48
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +32 -32
- package/dist/bin/pushary-stop-hook.js +25 -25
- package/dist/bin/pushary-stopfailure-hook.js +25 -25
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +18 -18
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +40 -40
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-73WH2KOH.js → chunk-2SFVZ3IT.js} +2 -2
- package/dist/{chunk-PT43DN4J.js → chunk-33YOO7FG.js} +14 -14
- package/dist/{chunk-N4SM5GMN.js → chunk-3BBJO25D.js} +11 -11
- package/dist/{chunk-2CO34UJK.js → chunk-3OIUMHHO.js} +2 -2
- package/dist/{chunk-MCZF73KL.js → chunk-43CU2HYQ.js} +6 -6
- package/dist/{chunk-EBGUGOS3.js → chunk-4FAJQPFY.js} +59 -3
- package/dist/{chunk-IBHSZUXM.js → chunk-4JUQ74CG.js} +3 -3
- package/dist/{chunk-P7SBX7QQ.js → chunk-4QO267OY.js} +1 -1
- package/dist/{chunk-2DKM45TQ.js → chunk-4TLE7CSQ.js} +6 -6
- package/dist/{chunk-FRAXLEC2.js → chunk-4TVLPGJV.js} +1 -1
- package/dist/{chunk-GOHFQONY.js → chunk-5PW25NHB.js} +3 -3
- package/dist/{chunk-BSG7IIMK.js → chunk-5QB6P3I7.js} +4 -4
- package/dist/{chunk-PVERXZOS.js → chunk-6VFN4XTI.js} +1 -1
- package/dist/{chunk-3VWS2EAB.js → chunk-7ZHLBWOV.js} +5 -5
- package/dist/{chunk-NTAVA4LB.js → chunk-A7JQJUGZ.js} +3 -3
- package/dist/{chunk-KLLX5ZTC.js → chunk-ACVL2MHG.js} +2 -2
- package/dist/{chunk-TBE76OH7.js → chunk-AFGMZZEB.js} +2 -2
- package/dist/{chunk-YIPSSNTL.js → chunk-AHIAB7JQ.js} +1 -1
- package/dist/{chunk-56MGFZDM.js → chunk-BBNMGXZA.js} +1 -1
- package/dist/{chunk-OBIXCQPF.js → chunk-BFEY6FRZ.js} +2 -2
- package/dist/{chunk-5UKWIMMW.js → chunk-BIUD3TAY.js} +5 -5
- package/dist/{chunk-54476CMC.js → chunk-CC24CQ7P.js} +2 -2
- package/dist/{chunk-FSQXIJYX.js → chunk-CK6YJZEK.js} +1 -1
- package/dist/{chunk-EXDEE4KB.js → chunk-DCYA2SW2.js} +2 -2
- package/dist/{chunk-T3HCMKX4.js → chunk-DIWNHZ6I.js} +2 -2
- package/dist/{chunk-YLBUBQEL.js → chunk-DPGG3AAG.js} +5 -5
- package/dist/{chunk-EXUGDNCF.js → chunk-E2YENQFD.js} +7 -7
- package/dist/{chunk-NDOQN5VC.js → chunk-E34NVKR7.js} +3 -3
- package/dist/{chunk-BFA36PR4.js → chunk-E4YZIS4C.js} +6 -6
- package/dist/{chunk-AWO5VRPH.js → chunk-ERO2ERIE.js} +2 -2
- package/dist/{chunk-4CD75FOI.js → chunk-FIKNFZ7Z.js} +7 -7
- package/dist/{chunk-7DJWJWRS.js → chunk-GKNTNKVQ.js} +3 -3
- package/dist/{chunk-ZP7R762D.js → chunk-GSQZTDPZ.js} +4 -4
- package/dist/{chunk-VSKHU5XR.js → chunk-GTUCRZRJ.js} +6 -6
- package/dist/{chunk-U4MEORPA.js → chunk-IGEY7ZFQ.js} +3 -3
- package/dist/{chunk-GNW6AHGY.js → chunk-IGIWULLQ.js} +3 -3
- package/dist/{chunk-EJ7DI2HX.js → chunk-K6QZMKAP.js} +5 -5
- package/dist/{chunk-4OG7AYQN.js → chunk-KACD6W6J.js} +1 -1
- package/dist/{chunk-L6Q5FZ54.js → chunk-KOUB4ZLX.js} +1 -1
- package/dist/{chunk-OLA7MWVD.js → chunk-KUIJMRES.js} +10 -10
- package/dist/{chunk-TMRJOWWU.js → chunk-MP3SEXXJ.js} +1 -1
- package/dist/{chunk-7C5M5NY3.js → chunk-MY7NJM56.js} +3 -3
- package/dist/{chunk-LN53RAXQ.js → chunk-N6UPDKCI.js} +4 -4
- package/dist/{chunk-JATIKUQ5.js → chunk-NTTFATKG.js} +5 -5
- package/dist/{chunk-IOMU3A6E.js → chunk-O35JKL4T.js} +3 -3
- package/dist/{chunk-T7YK7FNA.js → chunk-ODJQ5KFS.js} +2 -2
- package/dist/{chunk-MLFZ4F2L.js → chunk-OUF7TX2C.js} +4 -4
- package/dist/{chunk-3QTUISNT.js → chunk-PWGD5EP6.js} +1 -1
- package/dist/{chunk-3NS3YK5S.js → chunk-QD57EL3I.js} +1 -1
- package/dist/{chunk-35Q2Z7HD.js → chunk-RAASN7OG.js} +3 -3
- package/dist/{chunk-KRQKPVHG.js → chunk-SGECX2RY.js} +2 -2
- package/dist/{chunk-VWGZZSJG.js → chunk-SJXNDL73.js} +3 -3
- package/dist/{chunk-PDC4UQUC.js → chunk-SOBHT3J7.js} +3 -3
- package/dist/{chunk-GKRGH3SF.js → chunk-SQSL6DVX.js} +10 -10
- package/dist/{chunk-JE6UEOMG.js → chunk-SSLEGJYI.js} +4 -4
- package/dist/{chunk-AP2VXDQB.js → chunk-T72OMEHB.js} +1 -1
- package/dist/{chunk-BYGU5IV4.js → chunk-THHVB46D.js} +4 -4
- package/dist/{chunk-UKX7IMD2.js → chunk-TLERJKSE.js} +1 -1
- package/dist/{chunk-PED2VA34.js → chunk-UPQE4YPM.js} +1 -1
- package/dist/{chunk-QTFN3ND3.js → chunk-VMXY3PAT.js} +4 -4
- package/dist/{chunk-LM2YX5SO.js → chunk-W44TA4CT.js} +5 -5
- package/dist/{chunk-EIREGHP2.js → chunk-WPK2UWDU.js} +1 -1
- package/dist/{chunk-G24MYZIR.js → chunk-WRCQCJA7.js} +5 -5
- package/dist/{chunk-SYMYZNSB.js → chunk-WVAJSBI2.js} +1 -1
- package/dist/{chunk-HVQSHNVK.js → chunk-XEGKTXTC.js} +6 -6
- package/dist/{chunk-RB4E2YHR.js → chunk-XJF4WX5C.js} +6 -6
- package/dist/{chunk-GJ7CPXXB.js → chunk-YVAFDGK2.js} +4 -4
- package/dist/{chunk-HF24RY6N.js → chunk-Z6HHEV7A.js} +1 -1
- package/dist/{chunk-UMRO47H3.js → chunk-ZG6M5VQV.js} +3 -3
- package/dist/{chunk-E7WAVZNC.js → chunk-ZNPUYLOY.js} +1 -1
- package/dist/{codex-app-cards-switch-XMHI5UNS.js → codex-app-cards-switch-JKKTCZNB.js} +11 -11
- package/dist/{codex-desktop-launch-QSD3X65K.js → codex-desktop-launch-6BONFDHF.js} +1 -1
- package/dist/{codex-session-launch-TKDH5MHT.js → codex-session-launch-5FRL6UGU.js} +18 -18
- package/dist/{config-R3P7U2TH.js → config-A5EC37VZ.js} +3 -3
- package/dist/{global-upgrade-SYF6JI7C.js → global-upgrade-W4ZTLGUY.js} +10 -10
- package/dist/{identity-VH233LC3.js → identity-2LPVILX4.js} +4 -4
- package/dist/{live-capabilities-THIEYKPD.js → live-capabilities-SWMCZORB.js} +5 -5
- package/dist/{paths-UA5EZQAH.js → paths-4SVXADJ6.js} +3 -3
- package/dist/{reapply-QDTONXI3.js → reapply-WEXL57SG.js} +28 -28
- package/dist/src/index.js +29 -29
- package/dist/{upgrade-lock-GHMTQ3JP.js → upgrade-lock-NZ2MBGYE.js} +4 -4
- package/dist/{usage-E3M5YPYW.js → usage-U6H5UFS2.js} +3 -3
- package/package.json +1 -1
package/dist/bin/pushary-wait.js
CHANGED
|
@@ -2,43 +2,43 @@
|
|
|
2
2
|
import {
|
|
3
3
|
waitResponse,
|
|
4
4
|
waitWindowResponse
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-TLERJKSE.js";
|
|
6
6
|
import {
|
|
7
7
|
exitOnFailedSettingsRequest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-43CU2HYQ.js";
|
|
9
9
|
import {
|
|
10
10
|
describeWaitLadder
|
|
11
11
|
} from "../chunk-CVWG2N3Y.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-ODJQ5KFS.js";
|
|
13
13
|
import {
|
|
14
14
|
APPROVAL_RULES_PATH,
|
|
15
15
|
PUSH_WINDOW_COMMAND,
|
|
16
16
|
PUSH_WINDOW_RESET_COMMAND
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-ACVL2MHG.js";
|
|
18
18
|
import {
|
|
19
19
|
createIo
|
|
20
20
|
} from "../chunk-FO3MDD26.js";
|
|
21
21
|
import {
|
|
22
22
|
exitOnHelpFlag
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-WPK2UWDU.js";
|
|
24
24
|
import {
|
|
25
25
|
parseFlags
|
|
26
26
|
} from "../chunk-NMUI3ZWG.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-THHVB46D.js";
|
|
28
28
|
import {
|
|
29
29
|
absoluteUrl
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-O35JKL4T.js";
|
|
31
31
|
import {
|
|
32
32
|
pusharyFetch
|
|
33
|
-
} from "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
33
|
+
} from "../chunk-ZG6M5VQV.js";
|
|
34
|
+
import "../chunk-DCYA2SW2.js";
|
|
35
|
+
import "../chunk-AFGMZZEB.js";
|
|
36
|
+
import "../chunk-SGECX2RY.js";
|
|
37
|
+
import "../chunk-GKNTNKVQ.js";
|
|
38
38
|
import {
|
|
39
39
|
getApiKey,
|
|
40
40
|
getBaseUrl
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-KOUB4ZLX.js";
|
|
42
42
|
import {
|
|
43
43
|
UsageError,
|
|
44
44
|
exitCodeFor
|
|
@@ -46,9 +46,9 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
EXIT
|
|
48
48
|
} from "../chunk-KZERVKTD.js";
|
|
49
|
-
import "../chunk-
|
|
49
|
+
import "../chunk-PWGD5EP6.js";
|
|
50
50
|
import "../chunk-ZVU6WMMU.js";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-4FAJQPFY.js";
|
|
52
52
|
import "../chunk-MLKGABMK.js";
|
|
53
53
|
|
|
54
54
|
// bin/pushary-wait.ts
|
package/dist/bin/pushary.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installNetworkDefaults
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-ZG6M5VQV.js";
|
|
5
|
+
import "../chunk-DCYA2SW2.js";
|
|
6
|
+
import "../chunk-SGECX2RY.js";
|
|
7
|
+
import "../chunk-GKNTNKVQ.js";
|
|
8
|
+
import "../chunk-KOUB4ZLX.js";
|
|
9
9
|
import "../chunk-PPY5N2E6.js";
|
|
10
10
|
import {
|
|
11
11
|
EXIT
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
LISTED_COMMANDS,
|
|
15
15
|
renderHelp,
|
|
16
16
|
resolveCommandName
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-PWGD5EP6.js";
|
|
18
18
|
import {
|
|
19
19
|
getPackageVersion
|
|
20
20
|
} from "../chunk-ZVU6WMMU.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-4FAJQPFY.js";
|
|
22
22
|
import "../chunk-MLKGABMK.js";
|
|
23
23
|
|
|
24
24
|
// src/cli/runtime.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SGECX2RY.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
writeJsonAtomic
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GKNTNKVQ.js";
|
|
9
9
|
|
|
10
10
|
// src/upgrade-lock.ts
|
|
11
11
|
import { fork } from "child_process";
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
outcomeOfFailedAsk,
|
|
5
5
|
reportMachineDenial,
|
|
6
6
|
storedWaitDeadline
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FIKNFZ7Z.js";
|
|
8
8
|
import {
|
|
9
9
|
isGatingMoment,
|
|
10
10
|
recordKeylessMoment
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4TVLPGJV.js";
|
|
12
12
|
import {
|
|
13
13
|
isAdmitted,
|
|
14
14
|
readAdmissionRules
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-E2YENQFD.js";
|
|
16
16
|
import {
|
|
17
17
|
isDeferAnswer,
|
|
18
18
|
oncePerSession
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6VFN4XTI.js";
|
|
20
20
|
import {
|
|
21
21
|
activeHookSource,
|
|
22
22
|
activeIdentity,
|
|
23
23
|
namedSource
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NTTFATKG.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_SESSION,
|
|
27
27
|
approvalAwaitingRetry,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
recordBlockedActionHint,
|
|
38
38
|
reportEvent,
|
|
39
39
|
settleQuestionsForToolUse
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-KUIJMRES.js";
|
|
41
41
|
import {
|
|
42
42
|
UNNAMED_ACTION,
|
|
43
43
|
deriveAction,
|
|
@@ -48,11 +48,11 @@ import {
|
|
|
48
48
|
patchDeletesFiles,
|
|
49
49
|
permissionDeniedAction,
|
|
50
50
|
scopePathFor
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MP3SEXXJ.js";
|
|
52
52
|
import {
|
|
53
53
|
repoKeyFor,
|
|
54
54
|
repositoryScopeFor
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-4QO267OY.js";
|
|
56
56
|
import {
|
|
57
57
|
askUser,
|
|
58
58
|
cancelQuestion,
|
|
@@ -69,20 +69,20 @@ import {
|
|
|
69
69
|
waitForQuestion,
|
|
70
70
|
waitsForThePhone,
|
|
71
71
|
withdrawQuestion
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-7ZHLBWOV.js";
|
|
73
73
|
import {
|
|
74
74
|
getMachineId
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-DCYA2SW2.js";
|
|
76
76
|
import {
|
|
77
77
|
claudeConfigDir
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-SGECX2RY.js";
|
|
79
79
|
import {
|
|
80
80
|
getApiKey,
|
|
81
81
|
getBaseUrl
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
83
83
|
import {
|
|
84
84
|
NPX_LATEST_COMMAND
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-PWGD5EP6.js";
|
|
86
86
|
import {
|
|
87
87
|
AGENT_QUESTION_STRATEGY,
|
|
88
88
|
AGENT_QUESTION_TOOL,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
terminalStaysLiveForTheCall,
|
|
140
140
|
timeoutActionWithoutLocalPrompt,
|
|
141
141
|
unansweredRefusalReason
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-4FAJQPFY.js";
|
|
143
143
|
|
|
144
144
|
// src/terminal-answer-watch.ts
|
|
145
145
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readOwnerOnlyJson,
|
|
3
3
|
savedTranscriptReadPositions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BBNMGXZA.js";
|
|
5
5
|
import {
|
|
6
6
|
SESSION_HISTORY_RETENTION_DAYS
|
|
7
7
|
} from "./chunk-G66WIAST.js";
|
|
8
8
|
import {
|
|
9
9
|
ensureDaemonRunning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-E4YZIS4C.js";
|
|
11
11
|
import {
|
|
12
12
|
hookOwnerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OUF7TX2C.js";
|
|
14
14
|
import {
|
|
15
15
|
buildTranscriptRecords,
|
|
16
16
|
decodePublicKey,
|
|
@@ -21,33 +21,33 @@ import {
|
|
|
21
21
|
recordSealerFor,
|
|
22
22
|
uploadTranscriptRecords,
|
|
23
23
|
wrapSessionKey
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3OIUMHHO.js";
|
|
25
25
|
import {
|
|
26
26
|
external_exports
|
|
27
27
|
} from "./chunk-XMSDA5WA.js";
|
|
28
28
|
import {
|
|
29
29
|
transcriptEnvironmentPreference,
|
|
30
30
|
transcriptsEnabled
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZNPUYLOY.js";
|
|
32
32
|
import {
|
|
33
33
|
readTranscriptPreference
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-THHVB46D.js";
|
|
35
35
|
import {
|
|
36
36
|
hookMeaning
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-MP3SEXXJ.js";
|
|
38
38
|
import {
|
|
39
39
|
claudeConfigDir,
|
|
40
40
|
codexHome,
|
|
41
41
|
pusharyDir
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-SGECX2RY.js";
|
|
43
43
|
import {
|
|
44
44
|
writeJsonAtomic,
|
|
45
45
|
writeJsonAtomicDurable
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GKNTNKVQ.js";
|
|
47
47
|
import {
|
|
48
48
|
getApiKey,
|
|
49
49
|
getBaseUrl
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
51
51
|
import {
|
|
52
52
|
PENDING_COMMAND_PREFIX,
|
|
53
53
|
SESSION_HISTORY_BACKFILL_LIMIT_BYTES,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
isHookSource,
|
|
56
56
|
isRecord,
|
|
57
57
|
redactSecretsFromContent
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-4FAJQPFY.js";
|
|
59
59
|
|
|
60
60
|
// src/transcript-recipient-pin.ts
|
|
61
61
|
import { createHash } from "crypto";
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-XMSDA5WA.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
7
7
|
import {
|
|
8
8
|
compressTranscriptRecord,
|
|
9
9
|
redactSecretsFromContent,
|
|
10
10
|
transcriptRecordPlaintext
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4FAJQPFY.js";
|
|
12
12
|
|
|
13
13
|
// src/transcript-api.ts
|
|
14
14
|
var providerRecipientSchema = external_exports.object({
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ODJQ5KFS.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ACVL2MHG.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-THHVB46D.js";
|
|
15
15
|
import {
|
|
16
16
|
absoluteUrl,
|
|
17
17
|
checkApiKey,
|
|
18
18
|
describeKeyCheck,
|
|
19
19
|
keyCheckFromResponse
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-O35JKL4T.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KOUB4ZLX.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-4FAJQPFY.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -4924,16 +4924,72 @@ var GIT_DESTINATION_SETTING = String.raw`(?:remote\..+\.(?:url|pushurl)|url\..+\
|
|
|
4924
4924
|
var GIT_SETTING_THAT_CHANGES_WHERE_GIT_SENDS = new RegExp(`^${GIT_DESTINATION_SETTING}$`, "i");
|
|
4925
4925
|
var GIT_ONE_COMMAND_SETTING_THAT_CHANGES_WHERE_GIT_SENDS = new RegExp(`^${GIT_DESTINATION_SETTING}=`, "i");
|
|
4926
4926
|
var GIT_REMOTE_SUBCOMMAND = "remote";
|
|
4927
|
-
var
|
|
4927
|
+
var GIT_REMOTE_ACTIONS_THAT_CHANGE_WHERE_GIT_SENDS = /* @__PURE__ */ new Set(["set-url", "add"]);
|
|
4928
4928
|
var namesAGitSettingThatChangesWhereGitSends = (name) => GIT_SETTING_THAT_CHANGES_WHERE_GIT_SENDS.test(name);
|
|
4929
4929
|
var setsWhereGitSendsForOneCommand = (args) => args.some((arg, index) => args[index - 1]?.text === GIT_ONE_COMMAND_SETTING_FLAG && GIT_ONE_COMMAND_SETTING_THAT_CHANGES_WHERE_GIT_SENDS.test(arg.text));
|
|
4930
4930
|
var changesWhereGitSends = ({ program, args }) => {
|
|
4931
4931
|
if (program === void 0 || basenameOf(program.text) !== GIT) return false;
|
|
4932
4932
|
const [subcommand, action] = subcommandWordsOf(argsAfterGitGlobalOptions(args));
|
|
4933
4933
|
if (subcommand?.text === GIT_PUSH) return setsWhereGitSendsForOneCommand(args);
|
|
4934
|
-
if (subcommand?.text === GIT_REMOTE_SUBCOMMAND) return action?.text
|
|
4934
|
+
if (subcommand?.text === GIT_REMOTE_SUBCOMMAND) return GIT_REMOTE_ACTIONS_THAT_CHANGE_WHERE_GIT_SENDS.has(action?.text ?? "");
|
|
4935
4935
|
return gitConfigWriteOf(args, namesAGitSettingThatChangesWhereGitSends) !== void 0;
|
|
4936
4936
|
};
|
|
4937
|
+
var GIT_COMMANDS_THAT_SEND_TO_THE_ADDRESS_THEY_ARE_GIVEN = /* @__PURE__ */ new Set(["send-pack", "http-push"]);
|
|
4938
|
+
var GIT_PUSH_REPOSITORY_OPTION = "--repo";
|
|
4939
|
+
var GIT_PUSH_LONG_OPTIONS_WITH_A_SEPARATE_VALUE = [
|
|
4940
|
+
GIT_PUSH_REPOSITORY_OPTION,
|
|
4941
|
+
"--recurse-submodules",
|
|
4942
|
+
"--receive-pack",
|
|
4943
|
+
"--exec",
|
|
4944
|
+
"--push-option"
|
|
4945
|
+
];
|
|
4946
|
+
var GIT_PUSH_SHORT_OPTION_WITH_A_VALUE = "o";
|
|
4947
|
+
var ANY_SHORT_OPTION_CLUSTER = /^-[^-]/;
|
|
4948
|
+
var WINDOWS_DRIVE_LETTER = /^[A-Za-z]:/;
|
|
4949
|
+
var abbreviatesTheGitPushRepositoryOption = (name) => name.length > LONG_OPTION_PREFIX3.length && GIT_PUSH_REPOSITORY_OPTION.startsWith(name);
|
|
4950
|
+
var gitPushOptionTakesTheNextWord = (text3) => ANY_SHORT_OPTION_CLUSTER.test(text3) ? text3.indexOf(GIT_PUSH_SHORT_OPTION_WITH_A_VALUE, 1) === text3.length - 1 : text3.startsWith(LONG_OPTION_PREFIX3) && !text3.includes(OPTION_VALUE_SEPARATOR) && abbreviatesALongOption(text3, GIT_PUSH_LONG_OPTIONS_WITH_A_SEPARATE_VALUE);
|
|
4951
|
+
var attachedOptionValueOf = (word, name) => word.text.length > name.length ? { ...word, text: word.text.slice(name.length + OPTION_VALUE_SEPARATOR.length) } : void 0;
|
|
4952
|
+
var wordsNamingWhereAGitPushSends = (pushArgs) => {
|
|
4953
|
+
const named = [];
|
|
4954
|
+
let repositoryRead = false;
|
|
4955
|
+
for (let index = 0; index < pushArgs.length; index += 1) {
|
|
4956
|
+
const word = pushArgs[index];
|
|
4957
|
+
if (word === void 0) break;
|
|
4958
|
+
if (word.text === END_OF_OPTIONS3) {
|
|
4959
|
+
const operand = repositoryRead ? void 0 : pushArgs[index + 1];
|
|
4960
|
+
return operand === void 0 ? named : [...named, operand];
|
|
4961
|
+
}
|
|
4962
|
+
if (!FLAG.test(word.text)) {
|
|
4963
|
+
if (!repositoryRead) named.push(word);
|
|
4964
|
+
repositoryRead = true;
|
|
4965
|
+
continue;
|
|
4966
|
+
}
|
|
4967
|
+
const name = longOptionName(word.text);
|
|
4968
|
+
if (abbreviatesTheGitPushRepositoryOption(name)) {
|
|
4969
|
+
const attachedValue = attachedOptionValueOf(word, name);
|
|
4970
|
+
const value = attachedValue ?? pushArgs[index + 1];
|
|
4971
|
+
if (value !== void 0) named.push(value);
|
|
4972
|
+
if (attachedValue === void 0) index += 1;
|
|
4973
|
+
} else if (gitPushOptionTakesTheNextWord(word.text)) {
|
|
4974
|
+
index += 1;
|
|
4975
|
+
}
|
|
4976
|
+
}
|
|
4977
|
+
return named;
|
|
4978
|
+
};
|
|
4979
|
+
var namesAGitAddress = (text3) => {
|
|
4980
|
+
const colon = text3.indexOf(":");
|
|
4981
|
+
const slash = text3.indexOf("/");
|
|
4982
|
+
return colon !== -1 && (slash === -1 || colon < slash) && !WINDOWS_DRIVE_LETTER.test(text3);
|
|
4983
|
+
};
|
|
4984
|
+
var mayNameAGitAddress = (word) => word.expands || namesAGitAddress(word.text);
|
|
4985
|
+
var gitSendsToAPlaceTheCommandNames = ({ program, args }) => {
|
|
4986
|
+
if (program === void 0 || basenameOf(program.text) !== GIT) return false;
|
|
4987
|
+
const gitArgs = argsAfterGitGlobalOptions(args);
|
|
4988
|
+
const [subcommand] = subcommandWordsOf(gitArgs);
|
|
4989
|
+
if (subcommand === void 0) return false;
|
|
4990
|
+
if (GIT_COMMANDS_THAT_SEND_TO_THE_ADDRESS_THEY_ARE_GIVEN.has(subcommand.text)) return true;
|
|
4991
|
+
return subcommand.text === GIT_PUSH && wordsNamingWhereAGitPushSends(gitArgs.slice(gitArgs.indexOf(subcommand) + 1)).some(mayNameAGitAddress);
|
|
4992
|
+
};
|
|
4937
4993
|
var writesAFileThatNeedsAPerson = ({ program, args }) => {
|
|
4938
4994
|
if (program === void 0) return false;
|
|
4939
4995
|
if (sendsAFileThatNeedsAPerson({ program, args })) return true;
|
|
@@ -5958,7 +6014,7 @@ var stopsTheMachine = ({ program, args }) => {
|
|
|
5958
6014
|
const name = program === void 0 ? void 0 : basenameOf(program.text);
|
|
5959
6015
|
return name !== void 0 && PROGRAMS_THAT_STOP_THE_MACHINE.has(name) && !args.some((arg) => ONLY_DESCRIBES_ITSELF.test(arg.text)) && !(name === SHUTDOWN && args.some((arg) => arg.text === CANCELS_A_SHUTDOWN));
|
|
5960
6016
|
};
|
|
5961
|
-
var invocationHasAConsequenceOnlyPermissionsOffAsksAbout = (toolName, invocation, normalized, reading) => releasesOrChangesACluster(toolName, invocation, normalized) || reading === "as_written" && changesAPublishedPackage(invocation) || mergesAPullRequestByAnyPath(invocation) || writesAFileThatNeedsAPerson(invocation) || changesWhereGitLooksForHooks(invocation) || setsAGitSettingThatRunsAProgram(invocation) || changesWhereGitSends(invocation) || changesSomethingHostedElsewhere(invocation) || sendsMail(invocation) || stopsTheMachine(invocation);
|
|
6017
|
+
var invocationHasAConsequenceOnlyPermissionsOffAsksAbout = (toolName, invocation, normalized, reading) => releasesOrChangesACluster(toolName, invocation, normalized) || reading === "as_written" && changesAPublishedPackage(invocation) || mergesAPullRequestByAnyPath(invocation) || writesAFileThatNeedsAPerson(invocation) || changesWhereGitLooksForHooks(invocation) || setsAGitSettingThatRunsAProgram(invocation) || changesWhereGitSends(invocation) || gitSendsToAPlaceTheCommandNames(invocation) || changesSomethingHostedElsewhere(invocation) || sendsMail(invocation) || stopsTheMachine(invocation);
|
|
5962
6018
|
var invocationHasAVisibleConsequence = (toolName, invocation, depth, line, reading = "as_written") => {
|
|
5963
6019
|
if (depth > MAX_CONSEQUENCE_DEPTH) return true;
|
|
5964
6020
|
if (invocation.program === void 0) return false;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findNativeClaudeInstall
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UPQE4YPM.js";
|
|
4
4
|
import {
|
|
5
5
|
parseVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GKNTNKVQ.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4FAJQPFY.js";
|
|
10
10
|
|
|
11
11
|
// src/setup/agent-probe.ts
|
|
12
12
|
import { execSync } from "child_process";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ACVL2MHG.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VMXY3PAT.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O35JKL4T.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PWGD5EP6.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-4FAJQPFY.js";
|
|
25
25
|
|
|
26
26
|
// src/reach.ts
|
|
27
27
|
var reachVerdict = (channels) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WVAJSBI2.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-NMUI3ZWG.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-PPY5N2E6.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PWGD5EP6.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_CONNECTOR_GUIDE,
|
|
15
15
|
CLAUDE_CONNECTOR_STEPS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
CLAUDE_CONNECTOR_URL,
|
|
18
18
|
COWORK_CONNECTOR_LIMIT,
|
|
19
19
|
COWORK_STANDING_INSTRUCTIONS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4FAJQPFY.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
} from "./chunk-G66WIAST.js";
|
|
14
14
|
import {
|
|
15
15
|
keyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-THHVB46D.js";
|
|
17
17
|
import {
|
|
18
18
|
getBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
20
20
|
import {
|
|
21
21
|
NPX_LATEST_COMMAND
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PWGD5EP6.js";
|
|
23
23
|
import {
|
|
24
24
|
isValidApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4FAJQPFY.js";
|
|
26
26
|
|
|
27
27
|
// src/cli/login-ui.ts
|
|
28
28
|
import { hostname } from "os";
|
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
McpToolError,
|
|
7
7
|
SubscriptionRequiredError,
|
|
8
8
|
callMcpTool
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VMXY3PAT.js";
|
|
10
10
|
import {
|
|
11
11
|
installNetworkDefaults,
|
|
12
12
|
isNetworkFailure
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZG6M5VQV.js";
|
|
14
14
|
import {
|
|
15
15
|
clientReportClaims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SGECX2RY.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey,
|
|
19
19
|
getBaseUrl
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
21
21
|
import {
|
|
22
22
|
ASK_AGENT_NAME_MAX,
|
|
23
23
|
CLIENT_REPORT_PATH,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
TOOL_FAILURE_CODES,
|
|
27
27
|
degradedLine,
|
|
28
28
|
truncateLine
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4FAJQPFY.js";
|
|
30
30
|
|
|
31
31
|
// src/api.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SGECX2RY.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GKNTNKVQ.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_PACKAGE_NAMES,
|
|
13
13
|
POSIX_GLOBAL_ROOT_SEGMENTS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-ZVU6WMMU.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4FAJQPFY.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O35JKL4T.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4FAJQPFY.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -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-H734WJ2V.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-JKKTCZNB.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]");
|