pushary 1.9.243 → 1.9.245
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 +9 -0
- package/dist/bin/pushary-bell-hook.js +5 -5
- package/dist/bin/pushary-claude.js +2 -2
- package/dist/bin/pushary-clean.js +9 -9
- package/dist/bin/pushary-codex-hook.js +6 -6
- package/dist/bin/pushary-connect.js +5 -5
- package/dist/bin/pushary-daemon.js +9 -9
- package/dist/bin/pushary-disconnect.js +6 -6
- package/dist/bin/pushary-doctor.js +9 -9
- package/dist/bin/pushary-elicitation-hook.js +5 -5
- package/dist/bin/pushary-gemini-hook.js +5 -5
- package/dist/bin/pushary-hook.js +6 -6
- package/dist/bin/pushary-login.js +2 -2
- package/dist/bin/pushary-logout.js +5 -5
- package/dist/bin/pushary-notification-hook.js +5 -5
- package/dist/bin/pushary-opencode-hook.js +5 -5
- package/dist/bin/pushary-permission-denied-hook.js +6 -6
- package/dist/bin/pushary-permission-hook.js +6 -6
- package/dist/bin/pushary-post-hook.js +5 -5
- package/dist/bin/pushary-prompt-hook.js +5 -5
- package/dist/bin/pushary-session-end-hook.js +5 -5
- package/dist/bin/pushary-session-start-hook.js +9 -9
- package/dist/bin/pushary-setup.js +26 -37
- package/dist/bin/pushary-status.js +4 -4
- package/dist/bin/pushary-stop-hook.js +5 -5
- package/dist/bin/pushary-stopfailure-hook.js +5 -5
- package/dist/bin/pushary-transcript-register.js +2 -2
- package/dist/bin/pushary-transcripts.js +4 -4
- package/dist/bin/pushary-upgrade.js +10 -10
- package/dist/{chunk-NSRARU4G.js → chunk-4OMJ2LP2.js} +1 -1
- package/dist/{chunk-6TJOEVKA.js → chunk-5UZ6VRUA.js} +1 -1
- package/dist/{chunk-7T5IXYCJ.js → chunk-7MFLS3LV.js} +2 -10
- package/dist/{chunk-CIS77AVL.js → chunk-7ZIPMIC2.js} +2 -2
- package/dist/{chunk-PCCNXWVD.js → chunk-DFKAUEKJ.js} +1 -1
- package/dist/{chunk-5LAKBLOK.js → chunk-I3TBXGED.js} +2 -2
- package/dist/{chunk-AXBIUN5S.js → chunk-I46M3FVO.js} +2 -2
- package/dist/{chunk-GHZ6CTB3.js → chunk-I5QXVNJ6.js} +1 -1
- package/dist/{chunk-S2TIA67T.js → chunk-IBLORC2W.js} +4 -4
- package/dist/{chunk-QZQHAFSP.js → chunk-J7AUOLJD.js} +1 -1
- package/dist/{chunk-RL6SYK6P.js → chunk-QV6SWMVL.js} +1 -1
- package/dist/{chunk-LWAMSBU5.js → chunk-RY7SLZVY.js} +2 -2
- package/dist/{chunk-ZB25WE2K.js → chunk-TQVA4OWU.js} +12 -10
- package/dist/{chunk-PHJS5IAO.js → chunk-VBO4B4PL.js} +1 -1
- package/dist/{chunk-KVMPB3X4.js → chunk-VRDTIJQX.js} +1 -1
- package/dist/{chunk-B2UMHA24.js → chunk-WXLHDE5H.js} +3 -3
- package/dist/{chunk-ZGDTT3LR.js → chunk-YTBF2NG7.js} +4 -4
- package/dist/{chunk-UYCL6GGF.js → chunk-ZFLMWNUJ.js} +2 -2
- package/dist/{reapply-OAY3SRY5.js → reapply-77GHMCBD.js} +6 -6
- package/dist/src/index.js +6 -6
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
reapplyClaudeForVersion
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IBLORC2W.js";
|
|
5
5
|
import "../chunk-TWWOQKXK.js";
|
|
6
6
|
import "../chunk-DZS3JN6U.js";
|
|
7
7
|
import "../chunk-VJGNKY3G.js";
|
|
8
8
|
import "../chunk-B62INGJG.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-QV6SWMVL.js";
|
|
10
|
+
import "../chunk-TQVA4OWU.js";
|
|
11
11
|
import "../chunk-332UCKZR.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-I46M3FVO.js";
|
|
13
13
|
import "../chunk-BATXVYBR.js";
|
|
14
14
|
import "../chunk-THBEXOTL.js";
|
|
15
15
|
import "../chunk-O2HFH6CO.js";
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
} from "../chunk-F7MIUZU5.js";
|
|
20
20
|
import {
|
|
21
21
|
readHookInput
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-WXLHDE5H.js";
|
|
23
|
+
import "../chunk-DFKAUEKJ.js";
|
|
24
|
+
import "../chunk-VBO4B4PL.js";
|
|
25
25
|
import "../chunk-WHB622LP.js";
|
|
26
26
|
import {
|
|
27
27
|
activeHookSource,
|
|
28
28
|
activeIdentity
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-VRDTIJQX.js";
|
|
30
30
|
import "../chunk-2KJUGUYQ.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-7MFLS3LV.js";
|
|
32
32
|
import {
|
|
33
33
|
CLAUDE_CODE_AGENT,
|
|
34
34
|
handleSessionStart
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
renderCommandSurface,
|
|
29
29
|
teamOfferLines,
|
|
30
30
|
unverifiedKeyClosingReason
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-I3TBXGED.js";
|
|
32
32
|
import {
|
|
33
33
|
WRONG_ACCOUNT_HINT,
|
|
34
34
|
canAskAtTheTerminal,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
} from "../chunk-PUZZELE6.js";
|
|
68
68
|
import {
|
|
69
69
|
readCodexHooksOnDisk
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-YTBF2NG7.js";
|
|
71
71
|
import {
|
|
72
72
|
macAppHistoryDecision,
|
|
73
73
|
nativeBridgeAccount
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
gateHermesShell,
|
|
85
85
|
readHermesShellGate,
|
|
86
86
|
saveSetupFailure
|
|
87
|
-
} from "../chunk-
|
|
87
|
+
} from "../chunk-J7AUOLJD.js";
|
|
88
88
|
import {
|
|
89
89
|
CODEX_NEEDS_A_NEWER_VERSION,
|
|
90
90
|
CODEX_SETTINGS_STOP_A_HOOK,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
describeHermesState,
|
|
101
101
|
hermesGateShellCommand,
|
|
102
102
|
needsCodexTrustStep
|
|
103
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-4OMJ2LP2.js";
|
|
104
104
|
import {
|
|
105
105
|
describeWaitLadder
|
|
106
106
|
} from "../chunk-CVWG2N3Y.js";
|
|
@@ -191,7 +191,7 @@ import {
|
|
|
191
191
|
soleGateLeftAloneFor,
|
|
192
192
|
soleGateReceipt,
|
|
193
193
|
soleGateReceiptFile
|
|
194
|
-
} from "../chunk-
|
|
194
|
+
} from "../chunk-7ZIPMIC2.js";
|
|
195
195
|
import {
|
|
196
196
|
describeDetection,
|
|
197
197
|
detectAllAgents,
|
|
@@ -201,14 +201,14 @@ import {
|
|
|
201
201
|
registerPluginLocation,
|
|
202
202
|
shortenHome,
|
|
203
203
|
vscodeSettingsTargets
|
|
204
|
-
} from "../chunk-
|
|
204
|
+
} from "../chunk-ZFLMWNUJ.js";
|
|
205
205
|
import {
|
|
206
206
|
revokeOwnKey
|
|
207
207
|
} from "../chunk-OYIN77HO.js";
|
|
208
208
|
import {
|
|
209
209
|
mcpServerBearer,
|
|
210
210
|
readMacAppAgentKey
|
|
211
|
-
} from "../chunk-
|
|
211
|
+
} from "../chunk-5UZ6VRUA.js";
|
|
212
212
|
import {
|
|
213
213
|
HERMES_CONFIG_FILE,
|
|
214
214
|
HERMES_GATE_TOOLS_KEY,
|
|
@@ -252,20 +252,20 @@ import {
|
|
|
252
252
|
readFxProfileForSetup,
|
|
253
253
|
withFxPusharyServer,
|
|
254
254
|
writeFxProfile
|
|
255
|
-
} from "../chunk-
|
|
255
|
+
} from "../chunk-QV6SWMVL.js";
|
|
256
256
|
import {
|
|
257
257
|
AgentConfigError,
|
|
258
258
|
afterAgentFailureNote,
|
|
259
259
|
agentFailureFromError,
|
|
260
260
|
agentFailureWire,
|
|
261
261
|
configFailureKind,
|
|
262
|
-
describeMacAccountMismatch,
|
|
263
262
|
describedAgentFailure,
|
|
264
263
|
failedAgentsContext,
|
|
264
|
+
macAccountMismatchFailure,
|
|
265
265
|
retryAgentCommand,
|
|
266
266
|
writeSetupConfigFile,
|
|
267
267
|
writeSetupConfigJson
|
|
268
|
-
} from "../chunk-
|
|
268
|
+
} from "../chunk-TQVA4OWU.js";
|
|
269
269
|
import {
|
|
270
270
|
MCP_BRIDGE_BINARY
|
|
271
271
|
} from "../chunk-332UCKZR.js";
|
|
@@ -287,7 +287,7 @@ import {
|
|
|
287
287
|
openCodePluginFile,
|
|
288
288
|
openCodeWired,
|
|
289
289
|
withOpenCodeAskRules
|
|
290
|
-
} from "../chunk-
|
|
290
|
+
} from "../chunk-I46M3FVO.js";
|
|
291
291
|
import "../chunk-BATXVYBR.js";
|
|
292
292
|
import "../chunk-THBEXOTL.js";
|
|
293
293
|
import {
|
|
@@ -323,7 +323,7 @@ import {
|
|
|
323
323
|
describeAutoUpdateAnnouncement,
|
|
324
324
|
takeAutoUpdateAnnouncement
|
|
325
325
|
} from "../chunk-F7MIUZU5.js";
|
|
326
|
-
import "../chunk-
|
|
326
|
+
import "../chunk-DFKAUEKJ.js";
|
|
327
327
|
import "../chunk-WHB622LP.js";
|
|
328
328
|
import {
|
|
329
329
|
addCompatibleHooks,
|
|
@@ -338,7 +338,7 @@ import {
|
|
|
338
338
|
compatibleRecord,
|
|
339
339
|
compatibleTargetPaths,
|
|
340
340
|
hasCompatibleHooks
|
|
341
|
-
} from "../chunk-
|
|
341
|
+
} from "../chunk-VRDTIJQX.js";
|
|
342
342
|
import {
|
|
343
343
|
DAEMON_COLD_START_TIMEOUT_MS,
|
|
344
344
|
clearDaemonNeedsLogin,
|
|
@@ -361,7 +361,6 @@ import {
|
|
|
361
361
|
import {
|
|
362
362
|
GEMINI_HOOK_BINARY,
|
|
363
363
|
GEMINI_HOOK_EVENTS,
|
|
364
|
-
KEEP_HINT,
|
|
365
364
|
addGeminiHooks,
|
|
366
365
|
addGeminiMcpServer,
|
|
367
366
|
captureHookTakeover,
|
|
@@ -369,11 +368,10 @@ import {
|
|
|
369
368
|
claudeWired,
|
|
370
369
|
codexWired,
|
|
371
370
|
describeAppOwnership,
|
|
372
|
-
describeHookOwnership,
|
|
373
371
|
geminiWired,
|
|
374
372
|
planHooks,
|
|
375
373
|
pusharyHookExecutable
|
|
376
|
-
} from "../chunk-
|
|
374
|
+
} from "../chunk-7MFLS3LV.js";
|
|
377
375
|
import {
|
|
378
376
|
reportEvent
|
|
379
377
|
} from "../chunk-CA2BNB66.js";
|
|
@@ -1169,7 +1167,7 @@ var REQUEST_TIMEOUT_MS = 1e4;
|
|
|
1169
1167
|
var PHONE_SIGN_IN_POLL_MS = 2e3;
|
|
1170
1168
|
var PHONE_SIGN_IN_ID = /^[0-9a-f]{32}$/;
|
|
1171
1169
|
var PHONE_CODE = /^\d{6}$/;
|
|
1172
|
-
var PHONE_ALLOW_KEY = "
|
|
1170
|
+
var PHONE_ALLOW_KEY = "y";
|
|
1173
1171
|
var PHONE_DENY_KEY = "n";
|
|
1174
1172
|
var PHONE_SIGN_IN_SCAN_LINE = "Scan this with your phone's camera to sign the Pushary app in to this account.";
|
|
1175
1173
|
var PHONE_SIGN_IN_ENDED_LINE = "The QR stopped working. Sign in to the Pushary app with the same account instead.";
|
|
@@ -1264,7 +1262,7 @@ var approveThePhoneWhenItAsks = async (signIn, ui, options, deps = {}) => {
|
|
|
1264
1262
|
}
|
|
1265
1263
|
if (state.kind === "asking") {
|
|
1266
1264
|
writeStatusLine(`${ui.yellow("!")} A phone wants to sign in to this account. Code ${ui.bold(spacedCode(state.code))}`);
|
|
1267
|
-
writeStatusLine(ui.dim("If your phone shows the same code, press
|
|
1265
|
+
writeStatusLine(ui.dim("If your phone shows the same code, press Y to allow it. Press N to deny."));
|
|
1268
1266
|
const choice = await allowOrDeny(options.allow, options.deny, options.woken);
|
|
1269
1267
|
if (choice === "stopped") return "stopped";
|
|
1270
1268
|
const approve = choice === "allow";
|
|
@@ -1963,7 +1961,7 @@ var attemptGlobalInstall = async () => {
|
|
|
1963
1961
|
}
|
|
1964
1962
|
};
|
|
1965
1963
|
var globalInstallFailureStep = (error) => {
|
|
1966
|
-
const [described] = describeAgentFailures([agentFailureFromError("hermes", error, describeError)], (agent) => AGENT_NAMES[agent], { platform: process.platform });
|
|
1964
|
+
const [described] = describeAgentFailures([agentFailureFromError("hermes", error, describeError)], (agent) => AGENT_NAMES[agent], { platform: process.platform, setupAccount: null });
|
|
1967
1965
|
const next = described?.next;
|
|
1968
1966
|
return next === void 0 || next.kind === "retry-agent" ? `Run ${retryAgentCommand("hermes")} to try again.` : next.instruction;
|
|
1969
1967
|
};
|
|
@@ -3169,8 +3167,8 @@ var agentFailureFollowUpLine = (followUp) => {
|
|
|
3169
3167
|
return `${dim("Run")} ${NPX_LATEST_COMMAND} doctor ${dim("for the reason, or send it to")} ${SUPPORT_EMAIL}`;
|
|
3170
3168
|
}
|
|
3171
3169
|
};
|
|
3172
|
-
var printAgentFailures = (failures) => {
|
|
3173
|
-
for (const failure of describeAgentFailures(failures, (agent) => AGENT_NAMES[agent], { platform: process.platform })) {
|
|
3170
|
+
var printAgentFailures = (failures, setupAccount) => {
|
|
3171
|
+
for (const failure of describeAgentFailures(failures, (agent) => AGENT_NAMES[agent], { platform: process.platform, setupAccount })) {
|
|
3174
3172
|
console.log(` ${yellow("!")} ${failure.summary}`);
|
|
3175
3173
|
console.log(` ${agentFailureNextLine(failure.next)}`);
|
|
3176
3174
|
}
|
|
@@ -3705,20 +3703,13 @@ var main = async () => {
|
|
|
3705
3703
|
const account = await compareAppAccount(agent);
|
|
3706
3704
|
if (!account.matches) {
|
|
3707
3705
|
hookOwners.push({ agent, owner: "app", kept: true });
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
setupAccount: account.setupAccount,
|
|
3713
|
-
macAccount: account.macAccount
|
|
3714
|
-
});
|
|
3715
|
-
console.log(`
|
|
3716
|
-
${yellow("!")} ${summary}`);
|
|
3717
|
-
for (const step of steps2) console.log(` ${dim(step)}`);
|
|
3706
|
+
const mismatch = macAccountMismatchFailure(agent, account);
|
|
3707
|
+
failures.push(mismatch);
|
|
3708
|
+
if (options.verbose) console.log();
|
|
3709
|
+
printAgentFailures([mismatch], setupAccount);
|
|
3718
3710
|
continue;
|
|
3719
3711
|
}
|
|
3720
|
-
console.log(`
|
|
3721
|
-
${check} ${AGENT_NAMES[agent]}: ${describeAppOwnership(AGENT_NAMES[agent])} ${dim(KEEP_HINT)}`);
|
|
3712
|
+
console.log(`${options.verbose ? "\n" : ""} ${check} ${describeAppOwnership(AGENT_NAMES[agent])}`);
|
|
3722
3713
|
hookOwners.push({ agent, owner: "app", kept: true });
|
|
3723
3714
|
completed.push(agent);
|
|
3724
3715
|
clearSetupChoiceDecline(agent);
|
|
@@ -3883,7 +3874,7 @@ var main = async () => {
|
|
|
3883
3874
|
console.log(` ${yellow(bold(keyCheck.kind === "locked" ? "Agents configured, approvals inactive." : "Configuration saved, activation unverified."))}`);
|
|
3884
3875
|
if (failures.length > 0) {
|
|
3885
3876
|
console.log();
|
|
3886
|
-
printAgentFailures(failures);
|
|
3877
|
+
printAgentFailures(failures, setupAccount);
|
|
3887
3878
|
}
|
|
3888
3879
|
console.log();
|
|
3889
3880
|
console.log(` ${report.message}`);
|
|
@@ -4057,10 +4048,8 @@ var main = async () => {
|
|
|
4057
4048
|
if (failures.length > 0) {
|
|
4058
4049
|
console.log();
|
|
4059
4050
|
for (const agent of completed) console.log(` ${check} ${AGENT_NAMES[agent] ?? agent}`);
|
|
4060
|
-
printAgentFailures(failures);
|
|
4051
|
+
printAgentFailures(failures, setupAccount);
|
|
4061
4052
|
}
|
|
4062
|
-
const ownershipLine = describeHookOwnership(hookOwners, AGENT_NAMES);
|
|
4063
|
-
if (ownershipLine) console.log(` ${dim(ownershipLine)}`);
|
|
4064
4053
|
console.log();
|
|
4065
4054
|
for (const line of closing.next) console.log(` ${line}`);
|
|
4066
4055
|
console.log();
|
|
@@ -26,9 +26,9 @@ import {
|
|
|
26
26
|
CONNECTED_THROUGH_MAC_APP,
|
|
27
27
|
keyWrittenByMacApp,
|
|
28
28
|
readMacAppConnectionWhenKeyless
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-5UZ6VRUA.js";
|
|
30
30
|
import "../chunk-QCGNGEGE.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-I46M3FVO.js";
|
|
32
32
|
import "../chunk-BATXVYBR.js";
|
|
33
33
|
import "../chunk-THBEXOTL.js";
|
|
34
34
|
import "../chunk-GTSVMILT.js";
|
|
@@ -41,9 +41,9 @@ import {
|
|
|
41
41
|
import "../chunk-RX4VUNYO.js";
|
|
42
42
|
import "../chunk-O2HFH6CO.js";
|
|
43
43
|
import "../chunk-TCE3J44Z.js";
|
|
44
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-VRDTIJQX.js";
|
|
45
45
|
import "../chunk-2KJUGUYQ.js";
|
|
46
|
-
import "../chunk-
|
|
46
|
+
import "../chunk-7MFLS3LV.js";
|
|
47
47
|
import "../chunk-CA2BNB66.js";
|
|
48
48
|
import "../chunk-4H6DCMIK.js";
|
|
49
49
|
import "../chunk-XWL4ZWTC.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-WXLHDE5H.js";
|
|
5
|
+
import "../chunk-DFKAUEKJ.js";
|
|
6
|
+
import "../chunk-VBO4B4PL.js";
|
|
7
7
|
import "../chunk-WHB622LP.js";
|
|
8
8
|
import {
|
|
9
9
|
activeHookSource,
|
|
10
10
|
activeIdentity
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-VRDTIJQX.js";
|
|
12
12
|
import "../chunk-2KJUGUYQ.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-7MFLS3LV.js";
|
|
14
14
|
import {
|
|
15
15
|
emitHookOutput,
|
|
16
16
|
handleStop,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-WXLHDE5H.js";
|
|
5
|
+
import "../chunk-DFKAUEKJ.js";
|
|
6
|
+
import "../chunk-VBO4B4PL.js";
|
|
7
7
|
import "../chunk-WHB622LP.js";
|
|
8
8
|
import {
|
|
9
9
|
activeHookSource,
|
|
10
10
|
activeIdentity
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-VRDTIJQX.js";
|
|
12
12
|
import "../chunk-2KJUGUYQ.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-7MFLS3LV.js";
|
|
14
14
|
import {
|
|
15
15
|
handleStopFailure
|
|
16
16
|
} from "../chunk-CA2BNB66.js";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
registerTranscript,
|
|
8
8
|
workFromTheHomeFolderOnWindows
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-VBO4B4PL.js";
|
|
10
10
|
import "../chunk-WHB622LP.js";
|
|
11
11
|
import "../chunk-2KJUGUYQ.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-7MFLS3LV.js";
|
|
13
13
|
import "../chunk-4H6DCMIK.js";
|
|
14
14
|
import "../chunk-XWL4ZWTC.js";
|
|
15
15
|
import "../chunk-6KRO6DQC.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
TRANSCRIPT_SYNC_NOTICE
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-I3TBXGED.js";
|
|
5
5
|
import "../chunk-JK2NYF6W.js";
|
|
6
6
|
import {
|
|
7
7
|
macAppHistoryDecision
|
|
8
8
|
} from "../chunk-TWWOQKXK.js";
|
|
9
9
|
import "../chunk-IR67OATS.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-TQVA4OWU.js";
|
|
11
11
|
import "../chunk-GTSVMILT.js";
|
|
12
12
|
import {
|
|
13
13
|
exitOnHelpFlag
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
clearSnapshotRecipientPins,
|
|
17
17
|
snapshotRecipientPinFile
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-VBO4B4PL.js";
|
|
19
19
|
import "../chunk-WHB622LP.js";
|
|
20
20
|
import "../chunk-2KJUGUYQ.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-7MFLS3LV.js";
|
|
22
22
|
import "../chunk-4H6DCMIK.js";
|
|
23
23
|
import "../chunk-XWL4ZWTC.js";
|
|
24
24
|
import "../chunk-6KRO6DQC.js";
|
|
@@ -24,18 +24,18 @@ import {
|
|
|
24
24
|
} from "../chunk-NEKEDV5H.js";
|
|
25
25
|
import {
|
|
26
26
|
phoneStartFellShortLine
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-I3TBXGED.js";
|
|
28
28
|
import "../chunk-JK2NYF6W.js";
|
|
29
29
|
import {
|
|
30
30
|
ensureCodexTrustAfterReapply,
|
|
31
31
|
reapplyAllAgents
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-IBLORC2W.js";
|
|
33
33
|
import "../chunk-TWWOQKXK.js";
|
|
34
34
|
import {
|
|
35
35
|
HERMES_RESTART_COMMAND,
|
|
36
36
|
describeCodexTrustConfirmation,
|
|
37
37
|
describeHermesHistoryHelperRecord
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-4OMJ2LP2.js";
|
|
39
39
|
import "../chunk-IR67OATS.js";
|
|
40
40
|
import {
|
|
41
41
|
keepLinuxDaemonAfterLogout,
|
|
@@ -50,10 +50,10 @@ import {
|
|
|
50
50
|
} from "../chunk-DZS3JN6U.js";
|
|
51
51
|
import {
|
|
52
52
|
shortenHome
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-ZFLMWNUJ.js";
|
|
54
54
|
import {
|
|
55
55
|
readMacAppAgentKey
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-5UZ6VRUA.js";
|
|
57
57
|
import "../chunk-VJGNKY3G.js";
|
|
58
58
|
import "../chunk-B62INGJG.js";
|
|
59
59
|
import {
|
|
@@ -63,12 +63,12 @@ import {
|
|
|
63
63
|
fxServerHolder,
|
|
64
64
|
inspectFxPusharyHttpWiring,
|
|
65
65
|
macAppFxBridge
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-QV6SWMVL.js";
|
|
67
67
|
import {
|
|
68
68
|
retryAgentCommand
|
|
69
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-TQVA4OWU.js";
|
|
70
70
|
import "../chunk-332UCKZR.js";
|
|
71
|
-
import "../chunk-
|
|
71
|
+
import "../chunk-I46M3FVO.js";
|
|
72
72
|
import "../chunk-BATXVYBR.js";
|
|
73
73
|
import "../chunk-THBEXOTL.js";
|
|
74
74
|
import "../chunk-GTSVMILT.js";
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
updateAutoUpdateState
|
|
96
96
|
} from "../chunk-F7MIUZU5.js";
|
|
97
97
|
import "../chunk-WHB622LP.js";
|
|
98
|
-
import "../chunk-
|
|
98
|
+
import "../chunk-VRDTIJQX.js";
|
|
99
99
|
import {
|
|
100
100
|
DAEMON_COLD_START_TIMEOUT_MS,
|
|
101
101
|
daemonHasRemoteProof,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
stopDaemonService,
|
|
110
110
|
waitForDaemonRemoteProof
|
|
111
111
|
} from "../chunk-2KJUGUYQ.js";
|
|
112
|
-
import "../chunk-
|
|
112
|
+
import "../chunk-7MFLS3LV.js";
|
|
113
113
|
import "../chunk-CA2BNB66.js";
|
|
114
114
|
import "../chunk-4H6DCMIK.js";
|
|
115
115
|
import "../chunk-XWL4ZWTC.js";
|
|
@@ -331,13 +331,7 @@ var planHooks = (context) => {
|
|
|
331
331
|
if (context.takeOverHooks) return "install";
|
|
332
332
|
return "keep";
|
|
333
333
|
};
|
|
334
|
-
var describeAppOwnership = (agentName) =>
|
|
335
|
-
var KEEP_HINT = "Kept on the app's account. Pass --take-over-hooks to have this setup handle them instead.";
|
|
336
|
-
var namesInWords = (names) => names.length <= 1 ? names.join("") : `${names.slice(0, -1).join(", ")} and ${names.at(-1)}`;
|
|
337
|
-
var describeHookOwnership = (entries, names) => {
|
|
338
|
-
const handledByMac = entries.filter((entry) => entry.owner === "app").map((entry) => names[entry.agent]);
|
|
339
|
-
return handledByMac.length === 0 ? null : `Pushary for Mac handles approvals for ${namesInWords(handledByMac)}.`;
|
|
340
|
-
};
|
|
334
|
+
var describeAppOwnership = (agentName) => `${agentName} (handled by Pushary for Mac)`;
|
|
341
335
|
|
|
342
336
|
export {
|
|
343
337
|
GEMINI_HOOK_BINARY,
|
|
@@ -373,7 +367,5 @@ export {
|
|
|
373
367
|
hookOwnerOf,
|
|
374
368
|
hookOwnerOfCommands,
|
|
375
369
|
planHooks,
|
|
376
|
-
describeAppOwnership
|
|
377
|
-
KEEP_HINT,
|
|
378
|
-
describeHookOwnership
|
|
370
|
+
describeAppOwnership
|
|
379
371
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VRDTIJQX.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7MFLS3LV.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TQVA4OWU.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND,
|
|
13
13
|
npmExecSetupCommandFor
|
|
@@ -295,7 +295,7 @@ var nextStepFor = (failure, releaseAgeRefusedAgents, recovery) => {
|
|
|
295
295
|
case "close-node-programs":
|
|
296
296
|
return { kind: "close-node-programs", instruction: NPM_FILE_IN_USE_STEP };
|
|
297
297
|
case "match-mac-account":
|
|
298
|
-
return { kind: "match-mac-account", instruction: matchMacAccountStep(failure.agent,
|
|
298
|
+
return { kind: "match-mac-account", instruction: matchMacAccountStep(failure.agent, recovery.setupAccount) };
|
|
299
299
|
case "retry-agent":
|
|
300
300
|
return { kind: "retry-agent", command: retryAgentCommand(failure.agent) };
|
|
301
301
|
}
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
} from "./chunk-THBEXOTL.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VRDTIJQX.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7MFLS3LV.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
25
|
} from "./chunk-XWL4ZWTC.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
macAppFxBridge,
|
|
24
24
|
refreshClineKey,
|
|
25
25
|
switchFxHttpEntryToBridge
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QV6SWMVL.js";
|
|
27
27
|
import {
|
|
28
28
|
OPENCODE_HOOK_BINARY,
|
|
29
29
|
agentHookOwner,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
openCodePluginDir,
|
|
37
37
|
openCodeWired,
|
|
38
38
|
withOpenCodeAskRules
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-I46M3FVO.js";
|
|
40
40
|
import {
|
|
41
41
|
detectClaudeVersion
|
|
42
42
|
} from "./chunk-O2HFH6CO.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
compatibleConfigFile,
|
|
46
46
|
compatibleInstructionsFile,
|
|
47
47
|
hasCompatibleHooks
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-VRDTIJQX.js";
|
|
49
49
|
import {
|
|
50
50
|
GEMINI_HOOK_BINARY,
|
|
51
51
|
addGeminiHooks,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
geminiWired,
|
|
58
58
|
hasGeminiHooks,
|
|
59
59
|
planHooks
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-7MFLS3LV.js";
|
|
61
61
|
import {
|
|
62
62
|
transcriptsEnabled
|
|
63
63
|
} from "./chunk-6EIVM3CN.js";
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
isAdmitted,
|
|
24
24
|
readAdmissionRules
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WXLHDE5H.js";
|
|
26
26
|
import {
|
|
27
27
|
activeHookSource,
|
|
28
28
|
activeIdentity,
|
|
29
29
|
namedSource
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VRDTIJQX.js";
|
|
31
31
|
import {
|
|
32
32
|
DEFAULT_SESSION,
|
|
33
33
|
allow,
|