pushary 1.9.286 → 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 +5 -0
- package/dist/{api-TOVNW7WX.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-KM4W3CFD.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-7GSBA2C2.js → chunk-3NIZLXDB.js} +3 -3
- package/dist/{chunk-W3CDMHZZ.js → chunk-4GMY6BP5.js} +3 -3
- package/dist/{chunk-64PJ5AVE.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-H7PRRSXU.js → chunk-ARR5SMCD.js} +5 -5
- package/dist/{chunk-VVXWDBZK.js → chunk-AT5BTTQS.js} +2 -2
- package/dist/{chunk-DFRYI4YG.js → chunk-BFEH2J6N.js} +10 -10
- package/dist/{chunk-76UDPJET.js → chunk-C2JFC6HZ.js} +4 -4
- package/dist/{chunk-WDYTF6K7.js → chunk-CFBJJS7L.js} +12 -12
- package/dist/{chunk-ACAMCU2Y.js → chunk-CRIIKSYA.js} +1 -1
- package/dist/{chunk-ZAMK4GF4.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-KLYYXDR6.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-GITZUSEJ.js → chunk-GJMN4CWA.js} +4 -4
- package/dist/{chunk-UGMQTJKX.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-S3IF6XHT.js → chunk-I3QPRZX3.js} +4 -4
- package/dist/{chunk-VFPXC2HE.js → chunk-IAB2LINZ.js} +1 -1
- package/dist/{chunk-PUNGQGSR.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-7Y7YEKUY.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-A4KQYTUZ.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-Y3PDFOIE.js → chunk-M342TA6T.js} +4 -4
- package/dist/{chunk-YXKUZSPA.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-PSYSXBML.js → chunk-OGFITATL.js} +5 -5
- package/dist/{chunk-HGWAPTBM.js → chunk-OJ5O6VRE.js} +14 -13
- package/dist/{chunk-ESTQIKTS.js → chunk-OSI26PGT.js} +1 -1
- package/dist/{chunk-OPRYDCR4.js → chunk-P7PXAD2O.js} +3 -3
- package/dist/{chunk-KU5MWQNB.js → chunk-PGVLDCAC.js} +10 -10
- package/dist/{chunk-TQ2KJLRJ.js → chunk-PK24TQTN.js} +9 -7
- 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-NYVJXU6Q.js → chunk-RHHUEIN6.js} +5 -5
- package/dist/{chunk-LP2VGPHZ.js → chunk-RKPHCAJZ.js} +1 -1
- package/dist/{chunk-FDCGIK7G.js → chunk-RPLLLNH3.js} +46 -40
- 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-3LZPJBH7.js → chunk-SXDRZVS6.js} +6 -6
- package/dist/{chunk-VZXBPQIX.js → chunk-T4G54LCL.js} +4 -4
- package/dist/{chunk-U3K6SCMH.js → chunk-TJ5YE7SG.js} +7 -7
- package/dist/{chunk-PAY473GK.js → chunk-TX6YNKDS.js} +1 -1
- package/dist/{chunk-CCDQM7RZ.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-ZROT5ZDA.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-IBOJQEH3.js → chunk-YLOW6PDN.js} +1 -1
- 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-TZHVNF3N.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-BQ4XMGMF.js → codex-desktop-launch-W3OAG7VT.js} +3 -3
- package/dist/{codex-session-launch-RGPJ6DBA.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-YJL4U5EY.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
|
@@ -7,30 +7,30 @@ import {
|
|
|
7
7
|
restorePhoneApprovals,
|
|
8
8
|
setAsidePhoneApprovalsOfOtherCalls,
|
|
9
9
|
takePhoneApproval
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MDBETUXJ.js";
|
|
11
11
|
import {
|
|
12
12
|
defersToNativeMode
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CRIIKSYA.js";
|
|
14
14
|
import {
|
|
15
15
|
reportMachineDenial
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-C2JFC6HZ.js";
|
|
17
17
|
import {
|
|
18
18
|
claudeSettingsLocationFor,
|
|
19
19
|
readClaudePermissionRules
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-63HYM3BN.js";
|
|
21
21
|
import {
|
|
22
22
|
isGatingMoment,
|
|
23
23
|
recordKeylessMoment
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IU4JSMWS.js";
|
|
25
25
|
import {
|
|
26
26
|
isAdmitted,
|
|
27
27
|
readAdmissionRules
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OGFITATL.js";
|
|
29
29
|
import {
|
|
30
30
|
activeHookSource,
|
|
31
31
|
activeIdentity,
|
|
32
32
|
namedSource
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-IGABHU5O.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_SESSION,
|
|
36
36
|
allow,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
storedWaitDeadline,
|
|
72
72
|
sweepFilesOlderThan,
|
|
73
73
|
userScope
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-OJ5O6VRE.js";
|
|
75
75
|
import {
|
|
76
76
|
UNNAMED_ACTION,
|
|
77
77
|
deriveAction,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
patchDeletesFiles,
|
|
83
83
|
permissionDeniedAction,
|
|
84
84
|
scopePathFor
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-OSI26PGT.js";
|
|
86
86
|
import {
|
|
87
87
|
isDeferAnswer
|
|
88
88
|
} from "./chunk-Z25VDYAL.js";
|
|
@@ -91,6 +91,7 @@ import {
|
|
|
91
91
|
cancelQuestion,
|
|
92
92
|
claimBlockedAction,
|
|
93
93
|
clientErrorKindOf,
|
|
94
|
+
closeClaudeDialog,
|
|
94
95
|
isDecisionStopped,
|
|
95
96
|
isQuestionLimitRefusal,
|
|
96
97
|
pollForAnswer,
|
|
@@ -99,30 +100,30 @@ import {
|
|
|
99
100
|
sendNotification,
|
|
100
101
|
waitForQuestion,
|
|
101
102
|
withdrawQuestion
|
|
102
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-PK24TQTN.js";
|
|
103
104
|
import {
|
|
104
105
|
branchFor,
|
|
105
106
|
projectNameFor,
|
|
106
107
|
repoKeyFor,
|
|
107
108
|
repositoryScopeFor
|
|
108
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-Q3NFM2TB.js";
|
|
109
110
|
import {
|
|
110
111
|
getMachineId
|
|
111
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-KLIKQFV6.js";
|
|
112
113
|
import {
|
|
113
114
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
114
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-SU6M73OQ.js";
|
|
115
116
|
import {
|
|
116
117
|
getApiKey,
|
|
117
118
|
getBaseUrl,
|
|
118
119
|
isMalformedApiKeyError
|
|
119
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-QHI4OPBT.js";
|
|
120
121
|
import {
|
|
121
122
|
writeFileAtomic
|
|
122
123
|
} from "./chunk-PM2NRK6Y.js";
|
|
123
124
|
import {
|
|
124
125
|
NPX_LATEST_COMMAND
|
|
125
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-IGM6MUL3.js";
|
|
126
127
|
import {
|
|
127
128
|
AGENT_QUESTION_STRATEGY,
|
|
128
129
|
AGENT_QUESTION_TOOL,
|
|
@@ -196,7 +197,10 @@ import {
|
|
|
196
197
|
terminalStaysLiveForTheCall,
|
|
197
198
|
timeoutActionWithoutLocalPrompt,
|
|
198
199
|
unapprovedScopeReason
|
|
199
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-W7P5GTFI.js";
|
|
201
|
+
|
|
202
|
+
// src/hook.ts
|
|
203
|
+
import { randomUUID } from "crypto";
|
|
200
204
|
|
|
201
205
|
// src/terminal-answer-watch.ts
|
|
202
206
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -980,46 +984,48 @@ var answerThePlanBesideTheDialog = async (apiKey, input) => {
|
|
|
980
984
|
var questionDeadlineBesideTheDialog = (holdBudgetSeconds) => holdBudgetSeconds === void 0 ? claudeQuestionDeadline() : Math.min(claudeQuestionDeadline(), START_MS + hookHoldWindowMs("claude", holdBudgetSeconds));
|
|
981
985
|
var dialogAnswerFromThePhone = (input, questions, outcome) => outcome.kind === "answered" ? permReqAllow({ ...input.tool_input ?? {}, answers: claudeQuestionAnswers(questions, outcome.answers) }) : void 0;
|
|
982
986
|
var DIALOG_CLOSING_SIGNALS = ["SIGTERM", "SIGHUP", "SIGINT"];
|
|
983
|
-
var DIALOG_CLOSE_WITHDRAWAL_BACKSTOP_MS = 3e3;
|
|
984
|
-
var withdrawWhenTheDialogCloses = (apiKey, stop, openPhoneQuestion) => {
|
|
985
|
-
const onClose = () => {
|
|
986
|
-
stop.abort();
|
|
987
|
-
setTimeout(() => process.exit(0), DIALOG_CLOSE_WITHDRAWAL_BACKSTOP_MS).unref();
|
|
988
|
-
void openPhoneQuestion().then((open) => open === void 0 ? void 0 : withdrawQuestion(apiKey, open)).catch(() => void 0).finally(() => process.exit(0));
|
|
989
|
-
};
|
|
990
|
-
for (const signal of DIALOG_CLOSING_SIGNALS) process.once(signal, onClose);
|
|
991
|
-
return () => {
|
|
992
|
-
for (const signal of DIALOG_CLOSING_SIGNALS) process.off(signal, onClose);
|
|
993
|
-
};
|
|
994
|
-
};
|
|
995
987
|
var askClaudeQuestionBesideTheDialog = async (apiKey, input, modeState, holdBudgetSeconds) => {
|
|
996
988
|
if (questionHandedToTheTerminal(input.tool_name, modeState)) return void 0;
|
|
997
989
|
const questions = parseAgentQuestions(input.tool_input ?? {});
|
|
998
990
|
if (!questions) return void 0;
|
|
999
991
|
const stop = new AbortController();
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
992
|
+
let handle;
|
|
993
|
+
let acknowledged;
|
|
994
|
+
let closing;
|
|
995
|
+
let phone;
|
|
996
|
+
const closeCard = () => closing ??= (async () => {
|
|
997
|
+
stop.abort();
|
|
998
|
+
if (handle && !acknowledged) await closeClaudeDialog(apiKey, handle, "before_create_reply").catch(() => void 0);
|
|
999
|
+
await phone;
|
|
1000
|
+
if (acknowledged) await closeClaudeDialog(apiKey, acknowledged, "after_create_reply").catch(() => void 0);
|
|
1001
|
+
})();
|
|
1002
|
+
const onClose = () => {
|
|
1003
|
+
void closeCard().finally(() => process.exit(0));
|
|
1004
|
+
};
|
|
1005
|
+
for (const signal of DIALOG_CLOSING_SIGNALS) process.on(signal, onClose);
|
|
1004
1006
|
try {
|
|
1005
1007
|
const terminal = terminalAnswered(input, stop.signal);
|
|
1006
|
-
|
|
1008
|
+
phone = askAgentQuestions(apiKey, {
|
|
1007
1009
|
...claudeQuestionAskOf(input),
|
|
1008
1010
|
deadline: questionDeadlineBesideTheDialog(holdBudgetSeconds),
|
|
1009
1011
|
signal: stop.signal,
|
|
1012
|
+
beginDialogCard: () => {
|
|
1013
|
+
acknowledged = void 0;
|
|
1014
|
+
handle = randomUUID();
|
|
1015
|
+
return handle;
|
|
1016
|
+
},
|
|
1010
1017
|
onQuestionCreated: (correlationId) => {
|
|
1011
|
-
|
|
1018
|
+
acknowledged = correlationId;
|
|
1012
1019
|
}
|
|
1013
1020
|
}, questions);
|
|
1014
|
-
phoneAsks.push(phone);
|
|
1015
1021
|
const first = await Promise.race([phone, terminal]).finally(() => stop.abort());
|
|
1016
|
-
if (first !== TERMINAL_ANSWERED
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1022
|
+
if (!closing && first !== TERMINAL_ANSWERED && (acknowledged || first.kind !== "unavailable")) {
|
|
1023
|
+
return dialogAnswerFromThePhone(input, questions, first);
|
|
1024
|
+
}
|
|
1025
|
+
await closeCard();
|
|
1020
1026
|
return void 0;
|
|
1021
1027
|
} finally {
|
|
1022
|
-
|
|
1028
|
+
for (const signal of DIALOG_CLOSING_SIGNALS) process.off(signal, onClose);
|
|
1023
1029
|
}
|
|
1024
1030
|
};
|
|
1025
1031
|
var handlePermissionRequest = async (input, canonical, holdBudgetSeconds) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IAB2LINZ.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-BZIBNSQE.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IGM6MUL3.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-W7P5GTFI.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
quoteIfNeeded,
|
|
7
7
|
shellDoubleQuoted
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NYUSDIQJ.js";
|
|
9
9
|
import {
|
|
10
10
|
writeFileAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
PUSHARY_TOOL_PREFIX,
|
|
26
26
|
isRecord,
|
|
27
27
|
withHookHoldBudget
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-W7P5GTFI.js";
|
|
29
29
|
|
|
30
30
|
// src/setup/paths.ts
|
|
31
31
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2KFYMPMJ.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-NFFVLIYJ.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JYXGWEIA.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-AT5BTTQS.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-IGM6MUL3.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-W7P5GTFI.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-WHB622LP.js";
|
|
5
5
|
import {
|
|
6
6
|
keyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AT5BTTQS.js";
|
|
8
8
|
import {
|
|
9
9
|
keyPrefixToShow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QHI4OPBT.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IGM6MUL3.js";
|
|
14
14
|
import {
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-W7P5GTFI.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/key-account.ts
|
|
19
19
|
var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
openCodePluginArgv,
|
|
4
4
|
openCodePluginModule,
|
|
5
5
|
renderOpenCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5GACFNWL.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENCODE_FAILED_EVENT,
|
|
9
9
|
OPENCODE_IDLE_EVENT,
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
OPENCODE_PLUGIN_SIBLING,
|
|
13
13
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
14
14
|
OPENCODE_SUBAGENT_IDLE_EVENT
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JO7CKMEZ.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IGABHU5O.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FO2HOIYA.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IAB2LINZ.js";
|
|
26
26
|
import {
|
|
27
27
|
OPENCODE_INSTRUCTIONS_LABEL,
|
|
28
28
|
bridgeStub,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveBridgeStub,
|
|
37
37
|
vscodePluginDir,
|
|
38
38
|
windowsNodeLauncherFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SU6M73OQ.js";
|
|
40
40
|
import {
|
|
41
41
|
readJsonSafe
|
|
42
42
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
OPENCODE_APPROVAL_EVENT,
|
|
47
47
|
hookCompatibleProfile,
|
|
48
48
|
isRecord
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-W7P5GTFI.js";
|
|
50
50
|
|
|
51
51
|
// src/opencode-config.ts
|
|
52
52
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAsCredential
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YLOW6PDN.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JYXGWEIA.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LUBSO2VM.js";
|
|
10
10
|
import {
|
|
11
11
|
MacAppUnreachableError,
|
|
12
12
|
macAppReplyError,
|
|
13
13
|
requestThroughMacApp
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SU6M73OQ.js";
|
|
15
15
|
import {
|
|
16
16
|
getBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QHI4OPBT.js";
|
|
18
18
|
import {
|
|
19
19
|
isRecord,
|
|
20
20
|
isToolErrorResult,
|
|
21
21
|
toolFailureCodeOfResult
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-W7P5GTFI.js";
|
|
23
23
|
|
|
24
24
|
// src/retry.ts
|
|
25
25
|
var isRetryable = (err) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computerOsOfPlatform,
|
|
3
3
|
isComputerAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W7P5GTFI.js";
|
|
5
5
|
|
|
6
6
|
// src/setup/phone-check.ts
|
|
7
7
|
var NO_AGENT_CONNECTED_LINE = "Skipping the phone step: no agent was connected, so nothing could ask you anything on your phone yet.";
|
|
@@ -6215,6 +6215,7 @@ var POSTHOG_EVENT_CATALOGUE = {
|
|
|
6215
6215
|
partner_signup: ["dashboard_client"],
|
|
6216
6216
|
partner_surface_view: ["dashboard_client"],
|
|
6217
6217
|
payment_failed: ["dashboard_server"],
|
|
6218
|
+
permission_signup_proof_exposed: ["dashboard_client"],
|
|
6218
6219
|
permission_guide_cta_exposed: ["dashboard_client"],
|
|
6219
6220
|
plan_selected: [],
|
|
6220
6221
|
pricing_page_viewed: [],
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-P7PXAD2O.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SVJ2WDNJ.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-NYUSDIQJ.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-W7P5GTFI.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2NDMTOIT.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCLAW_MIN_VERSION,
|
|
24
24
|
OPENCLAW_PLUGIN_ID,
|
|
25
25
|
OPENCLAW_PLUGIN_PACKAGE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EXILQZWQ.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HSHZJ5Z5.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QHI4OPBT.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonSafe,
|
|
35
35
|
writeJsonAtomic
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
readSetupOutcomeProperties,
|
|
39
39
|
redactSecretsFromContent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-W7P5GTFI.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher, pluginVersion = null) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serviceNodeFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MG65IOEE.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-SU6M73OQ.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-NYUSDIQJ.js";
|
|
25
25
|
import {
|
|
26
26
|
getPackageVersion,
|
|
27
27
|
globalTranscriptRegisterEntry
|
|
@@ -24,25 +24,25 @@ import {
|
|
|
24
24
|
turnCodexAppCardsOff,
|
|
25
25
|
turnCodexAppCardsOn,
|
|
26
26
|
whyLaunchctlFailed
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-CWLAYD2J.js";
|
|
28
|
+
import "./chunk-M342TA6T.js";
|
|
29
29
|
import "./chunk-XCEN33UP.js";
|
|
30
30
|
import "./chunk-QCGNGEGE.js";
|
|
31
31
|
import "./chunk-U4P4NDVB.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-RKPHCAJZ.js";
|
|
33
|
+
import "./chunk-MG65IOEE.js";
|
|
34
34
|
import "./chunk-3PSNUHC5.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-KLIKQFV6.js";
|
|
36
|
+
import "./chunk-AT5BTTQS.js";
|
|
37
|
+
import "./chunk-SU6M73OQ.js";
|
|
38
38
|
import "./chunk-6ICPEJY5.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-NYUSDIQJ.js";
|
|
40
|
+
import "./chunk-QHI4OPBT.js";
|
|
41
41
|
import "./chunk-PM2NRK6Y.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-IGM6MUL3.js";
|
|
43
43
|
import "./chunk-BG4HHB7E.js";
|
|
44
44
|
import "./chunk-CXQWDQCJ.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-W7P5GTFI.js";
|
|
46
46
|
import "./chunk-MLKGABMK.js";
|
|
47
47
|
export {
|
|
48
48
|
CODEX_APP_CARDS_DIRECTORY,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deriveToolTarget
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OSI26PGT.js";
|
|
4
4
|
import {
|
|
5
5
|
TOOL_NAME_MAX_LENGTH,
|
|
6
6
|
codexElicitationToolName
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W7P5GTFI.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-M342TA6T.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-NYUSDIQJ.js";
|
|
21
21
|
import "./chunk-BG4HHB7E.js";
|
|
22
22
|
import "./chunk-CXQWDQCJ.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-W7P5GTFI.js";
|
|
24
24
|
import "./chunk-MLKGABMK.js";
|
|
25
25
|
export {
|
|
26
26
|
CODEX_APP_LAUNCH_VARIABLE,
|