pushary 1.9.224 → 1.9.225
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-ONC3NYEU.js → api-XGUBV6TG.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 +33 -32
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +37 -35
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +56 -51
- 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 +42 -13
- package/dist/bin/pushary-doctor.js +59 -51
- 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 +34 -32
- package/dist/bin/pushary-hook.js +34 -34
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +30 -30
- package/dist/bin/pushary-mcp.js +15 -22
- 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 +37 -34
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +34 -34
- 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 +18 -18
- package/dist/bin/pushary-setup.js +57 -57
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +60 -40
- 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 +25 -25
- package/dist/bin/pushary-upgrade.js +46 -46
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-NQXJ3HP7.js → chunk-2GQWSBX2.js} +8 -8
- package/dist/{chunk-7RWQULME.js → chunk-2HHQA42H.js} +3 -3
- package/dist/{chunk-35MX2DYY.js → chunk-2MAPVRYT.js} +4 -4
- package/dist/{chunk-TUL6ESJL.js → chunk-2RKHIDZJ.js} +3 -3
- package/dist/{chunk-IRTDVRPP.js → chunk-3BGYVYXJ.js} +5 -5
- package/dist/{chunk-GMIIYOOD.js → chunk-3LNGHZ2A.js} +1 -1
- package/dist/{chunk-BDFS2KC3.js → chunk-3P2VKDFP.js} +2 -2
- package/dist/{chunk-7Z6FW2FX.js → chunk-3ZF74CHU.js} +6 -6
- package/dist/{chunk-F4ZWZ3NF.js → chunk-4DP54WUK.js} +1 -1
- package/dist/chunk-5C55SFEG.js +90 -0
- package/dist/{chunk-WWWJHD5W.js → chunk-5DLPB6VD.js} +1 -1
- package/dist/{chunk-MDOLCJRZ.js → chunk-5HGY2GS7.js} +1 -1
- package/dist/{chunk-TZTPY2QF.js → chunk-5IGIQ6FR.js} +2 -2
- package/dist/{chunk-QGA57PZ2.js → chunk-66JT67XZ.js} +29 -22
- package/dist/{chunk-ZMFR6APZ.js → chunk-67NX2ZEC.js} +5 -5
- package/dist/{chunk-XP6EIQDC.js → chunk-6LNEYLGC.js} +5 -5
- package/dist/{chunk-BHQ2USGM.js → chunk-6W25WVDD.js} +1 -1
- package/dist/{chunk-LTNWYLVK.js → chunk-7D2FYVBW.js} +3 -3
- package/dist/{chunk-V3GMYPTF.js → chunk-ABUIWYET.js} +6 -6
- package/dist/{chunk-QJT5ZEQ7.js → chunk-BBDFTX3K.js} +1 -1
- package/dist/{chunk-37O3TEYR.js → chunk-BMQMT2LQ.js} +12 -12
- package/dist/{chunk-ZVDJNBYV.js → chunk-BTFQLHZ2.js} +4 -4
- package/dist/{chunk-Q7OEKDFK.js → chunk-DKI5QA46.js} +4 -4
- package/dist/{chunk-Z3GKJWBV.js → chunk-DUUE36M5.js} +3 -3
- package/dist/{chunk-SSBYRK22.js → chunk-EPJQPPBU.js} +4 -4
- package/dist/{chunk-SNQODYMM.js → chunk-F4G22HS4.js} +1 -1
- package/dist/{chunk-XANXXZVC.js → chunk-FGEPXL5K.js} +3 -3
- package/dist/{chunk-QVGXCFGJ.js → chunk-FOABNWRY.js} +3 -3
- package/dist/{chunk-NR6K7SFA.js → chunk-GPLEY6JL.js} +5 -5
- package/dist/{chunk-TO5T2D5C.js → chunk-H4QSDEVU.js} +4 -4
- package/dist/{chunk-FMX56I6G.js → chunk-HZH5X3D6.js} +5 -5
- package/dist/{chunk-P4FAWEDR.js → chunk-I3F2RT6H.js} +3 -3
- package/dist/{chunk-FNIGFFVQ.js → chunk-I5K4M6RO.js} +1 -1
- package/dist/{chunk-ENXYENW3.js → chunk-IPGEDXFD.js} +5 -5
- package/dist/{chunk-XLGNI7ZM.js → chunk-IZHCLPRX.js} +6 -6
- package/dist/{chunk-JJECC5TS.js → chunk-JDWRKP73.js} +4 -4
- package/dist/{chunk-SZOG3UW3.js → chunk-JOR5C5EN.js} +5 -5
- package/dist/{chunk-TKWS6E7B.js → chunk-JTWSDHDB.js} +19 -8
- package/dist/{chunk-6AQOULFH.js → chunk-JYNIBOW6.js} +1 -1
- package/dist/{chunk-FND4HRMJ.js → chunk-K6JUQVL6.js} +2 -2
- package/dist/{chunk-OQP2SBVG.js → chunk-KMBUWYIF.js} +27 -13
- package/dist/{chunk-GV42N5QE.js → chunk-L3OZKXAH.js} +1 -1
- package/dist/{chunk-6EGV3GON.js → chunk-LMP5K32O.js} +6 -6
- package/dist/{chunk-QKMBCZYI.js → chunk-LOJ7U6VW.js} +2 -2
- package/dist/{chunk-ZBIDKPCA.js → chunk-LVB2UNTX.js} +5 -5
- package/dist/{chunk-ZJKWVWVW.js → chunk-MSAFTQ5S.js} +7 -7
- package/dist/{chunk-OCGOLDIU.js → chunk-NUPW3G4F.js} +5 -5
- package/dist/{chunk-7FSB46RG.js → chunk-OA4BOYDG.js} +1 -1
- package/dist/{chunk-73QU5HGK.js → chunk-OOHHMEYX.js} +2 -2
- package/dist/{chunk-4SW5ILAY.js → chunk-PCWVQ6PT.js} +9 -9
- package/dist/{chunk-3SQBFADX.js → chunk-PPIPBJR2.js} +1 -1
- package/dist/{chunk-VWHZS7CZ.js → chunk-QCZEPAHW.js} +1 -1
- package/dist/{chunk-S5GJILJ7.js → chunk-QYNBB5OO.js} +2 -2
- package/dist/{chunk-WBM5QRLH.js → chunk-SP5YAAFD.js} +1 -1
- package/dist/{chunk-HSHHV7KX.js → chunk-THE2SPHY.js} +3 -3
- package/dist/{chunk-J4KRS6U6.js → chunk-TKAHYLOH.js} +2 -2
- package/dist/{chunk-J6TV66B5.js → chunk-TUACBIHO.js} +2 -2
- package/dist/{chunk-2CY3RVXV.js → chunk-TYD3HCOZ.js} +1 -1
- package/dist/{chunk-KXWFB5C3.js → chunk-UC3CPRDS.js} +2 -2
- package/dist/{chunk-PJQFIGIH.js → chunk-UC5LKWWC.js} +2 -2
- package/dist/{chunk-YSASHNPA.js → chunk-UNHODOXL.js} +2 -2
- package/dist/{chunk-NSVXD77O.js → chunk-V2BCZ2HN.js} +4 -4
- package/dist/{chunk-PPCDXEKQ.js → chunk-V5JRLAHZ.js} +1 -1
- package/dist/{chunk-HQQLBTLR.js → chunk-VQKDSIJ6.js} +7 -7
- package/dist/{chunk-LTGOBKBE.js → chunk-VYPGDTD5.js} +1 -1
- package/dist/{chunk-3I5OH3BQ.js → chunk-W456LKRF.js} +1 -1
- package/dist/{chunk-H7OAPHT6.js → chunk-W5SKLM2R.js} +12 -4
- package/dist/{chunk-7322XHFA.js → chunk-WA737SQM.js} +4 -4
- package/dist/{chunk-QODLGTAJ.js → chunk-WKTGDK5J.js} +2 -2
- package/dist/{chunk-7YBP6JUZ.js → chunk-WUOJXMOM.js} +4 -4
- package/dist/{chunk-KAE2B7B3.js → chunk-XOMANR2K.js} +1 -1
- package/dist/{chunk-ROJXEYYY.js → chunk-XRF2QECS.js} +1 -1
- package/dist/{chunk-T2X5A6ON.js → chunk-YCDBEW2Q.js} +10 -10
- package/dist/{chunk-YIWQPPNE.js → chunk-YIMMMBLU.js} +3 -3
- package/dist/{chunk-CXYGVLWY.js → chunk-YMMRJK2S.js} +5 -5
- package/dist/{chunk-TRTD7K6F.js → chunk-Z2WM6DAC.js} +2 -2
- package/dist/{chunk-45FJXU6L.js → chunk-ZK3GC5X6.js} +6 -6
- package/dist/{chunk-YWJW3GBN.js → chunk-ZOJCQT65.js} +1 -1
- package/dist/{codex-app-cards-switch-LXPMFON2.js → codex-app-cards-switch-R5F7XIWI.js} +11 -11
- package/dist/{codex-card-routing-D5YIOCO4.js → codex-card-routing-JODZRLQ6.js} +2 -2
- package/dist/{codex-desktop-launch-QPPHABQW.js → codex-desktop-launch-7DSOU5NE.js} +1 -1
- package/dist/{codex-session-launch-BXQPUMWB.js → codex-session-launch-SZ5TQPGZ.js} +20 -20
- package/dist/config-ZH3LNGIR.js +28 -0
- package/dist/{global-upgrade-NTZCGPYN.js → global-upgrade-PE7BP5QH.js} +9 -9
- package/dist/{identity-F6D3HRMJ.js → identity-2EITAH3V.js} +4 -4
- package/dist/{live-capabilities-YSGKGSP4.js → live-capabilities-CMWLJFZO.js} +4 -4
- package/dist/{paths-Q3PUCZZQ.js → paths-YDAYO6TG.js} +3 -3
- package/dist/reapply-MCB2MIQN.js +74 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-FH6YYKRD.js → upgrade-lock-46BLXPXN.js} +4 -4
- package/dist/{usage-RUBRRQDK.js → usage-GEWJJOAD.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-KK75BMI5.js +0 -53
- package/dist/config-74YKDTUD.js +0 -16
- package/dist/reapply-RSNZA5DQ.js +0 -74
- /package/dist/{chunk-4E3NSM4E.js → chunk-4DKVCK2C.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2MAPVRYT.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YCDBEW2Q.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LVB2UNTX.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3ZF74CHU.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4DKVCK2C.js";
|
|
20
20
|
|
|
21
21
|
// src/tool-hook-input.ts
|
|
22
22
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LOJ7U6VW.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3BGYVYXJ.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FOABNWRY.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5C55SFEG.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4DP54WUK.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-4DKVCK2C.js";
|
|
25
25
|
|
|
26
26
|
// src/reach.ts
|
|
27
27
|
var PUSHARY_APP_DOWNLOAD_URL = "https://pushary.com/download";
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
claimThrottle,
|
|
5
5
|
releaseThrottle,
|
|
6
6
|
reportEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KMBUWYIF.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveToolTarget,
|
|
10
10
|
permissionDeniedAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XRF2QECS.js";
|
|
12
12
|
import {
|
|
13
13
|
projectNameFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PPIPBJR2.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-4DKVCK2C.js";
|
|
22
22
|
|
|
23
23
|
// src/machine-decision-audit.ts
|
|
24
24
|
var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BTFQLHZ2.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LOJ7U6VW.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FOABNWRY.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-JTWSDHDB.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4DKVCK2C.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UNHODOXL.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
apiKeyInForce,
|
|
6
|
+
configFilePath,
|
|
7
|
+
keyPrefixToShow
|
|
8
|
+
} from "./chunk-5C55SFEG.js";
|
|
7
9
|
import {
|
|
8
10
|
backupFile,
|
|
9
11
|
backupFileInto,
|
|
@@ -15,7 +17,7 @@ import {
|
|
|
15
17
|
API_KEY_PREFIX_PATTERN,
|
|
16
18
|
isRecord,
|
|
17
19
|
isValidApiKey
|
|
18
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4DKVCK2C.js";
|
|
19
21
|
|
|
20
22
|
// src/shell-alias.ts
|
|
21
23
|
import { homedir } from "os";
|
|
@@ -496,15 +498,23 @@ var writeTranscriptPreference = (enabled, configPath = configFilePath()) => {
|
|
|
496
498
|
restrictFile(configPath);
|
|
497
499
|
return { kind: "saved", configPath };
|
|
498
500
|
};
|
|
499
|
-
var
|
|
501
|
+
var readKeyReadings = () => {
|
|
500
502
|
const configPath = configFilePath();
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
503
|
+
return { envKey: process.env.PUSHARY_API_KEY?.trim() || null, fileKey: readConfigKey(configPath), configPath };
|
|
504
|
+
};
|
|
505
|
+
var rawKeySourceOf = ({ envKey, fileKey, configPath }) => {
|
|
506
|
+
const drift = envKey && fileKey && envKey !== fileKey ? { envPrefix: keyPrefixToShow(envKey), configPrefix: keyPrefixToShow(fileKey), configPath } : null;
|
|
504
507
|
if (envKey) return { kind: "env", key: envKey, origin: "PUSHARY_API_KEY", drift };
|
|
505
508
|
if (fileKey) return { kind: "config", key: fileKey, origin: configPath, drift: null };
|
|
506
509
|
return { kind: "none", key: null, origin: null, drift: null };
|
|
507
510
|
};
|
|
511
|
+
var keySourceInForceOf = (readings) => {
|
|
512
|
+
const inForce = apiKeyInForce({ environmentKey: readings.envKey ?? void 0, configFileKey: readings.fileKey ?? void 0, configLocation: readings.configPath });
|
|
513
|
+
if (readings.envKey === null || inForce.kind !== "key" || inForce.origin !== "config_file") return rawKeySourceOf(readings);
|
|
514
|
+
return { kind: "config", key: inForce.key, origin: readings.configPath, drift: null, ignoredEnvironmentKey: keyPrefixToShow(readings.envKey) };
|
|
515
|
+
};
|
|
516
|
+
var readKeySource = () => rawKeySourceOf(readKeyReadings());
|
|
517
|
+
var readKeyInForce = () => keySourceInForceOf(readKeyReadings());
|
|
508
518
|
var readRecordedKeyPrefix = (configPath, field) => {
|
|
509
519
|
const recorded = readConfigRecord(configPath)?.[field];
|
|
510
520
|
return typeof recorded === "string" && API_KEY_PREFIX_PATTERN.test(recorded) ? recorded : null;
|
|
@@ -568,6 +578,7 @@ export {
|
|
|
568
578
|
readTranscriptPreference,
|
|
569
579
|
writeTranscriptPreference,
|
|
570
580
|
readKeySource,
|
|
581
|
+
readKeyInForce,
|
|
571
582
|
readMacAppKeyPrefix,
|
|
572
583
|
isAdoptedMacAppKey,
|
|
573
584
|
readCliCreatedKeyPrefix,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeConfigDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UC3CPRDS.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePermissionRulesFromSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4DKVCK2C.js";
|
|
7
7
|
|
|
8
8
|
// src/claude-permission-rules.ts
|
|
9
9
|
import { readFileSync, statSync } from "fs";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
toolResultErrorText,
|
|
30
30
|
transcriptTokensIn,
|
|
31
31
|
transcriptUsageRequest
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XRF2QECS.js";
|
|
33
33
|
import {
|
|
34
34
|
askUser,
|
|
35
35
|
cancelQuestion,
|
|
@@ -48,45 +48,46 @@ import {
|
|
|
48
48
|
waitForQuestion,
|
|
49
49
|
waitsForThePhone,
|
|
50
50
|
writeDegraded
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-3ZF74CHU.js";
|
|
52
52
|
import {
|
|
53
53
|
RETRY_ACK,
|
|
54
54
|
readCommandAck,
|
|
55
55
|
refusedReceiptMessage
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-VYPGDTD5.js";
|
|
57
57
|
import {
|
|
58
58
|
SubscriptionRequiredError,
|
|
59
59
|
isRetryable,
|
|
60
60
|
withRetry
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-3BGYVYXJ.js";
|
|
62
62
|
import {
|
|
63
63
|
fetchAsCredential
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-I5K4M6RO.js";
|
|
65
65
|
import {
|
|
66
66
|
branchFor,
|
|
67
67
|
projectNameFor,
|
|
68
68
|
repoKeyFor
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-PPIPBJR2.js";
|
|
70
70
|
import {
|
|
71
71
|
getMachineId
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-W456LKRF.js";
|
|
73
73
|
import {
|
|
74
74
|
reportedInstallSource
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-UNHODOXL.js";
|
|
76
76
|
import {
|
|
77
77
|
IDLE_PROMPT_NOTIFICATION,
|
|
78
78
|
NOTIFICATION_PUSH_TYPES,
|
|
79
79
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
80
80
|
claudeConfigDir
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-UC3CPRDS.js";
|
|
82
82
|
import {
|
|
83
83
|
compareVersion,
|
|
84
84
|
parseVersion
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-H4QSDEVU.js";
|
|
86
86
|
import {
|
|
87
87
|
getApiKey,
|
|
88
|
-
getBaseUrl
|
|
89
|
-
|
|
88
|
+
getBaseUrl,
|
|
89
|
+
isMalformedApiKeyError
|
|
90
|
+
} from "./chunk-5C55SFEG.js";
|
|
90
91
|
import {
|
|
91
92
|
writeFileAtomic,
|
|
92
93
|
writeJsonAtomicDurable
|
|
@@ -144,7 +145,7 @@ import {
|
|
|
144
145
|
resolveAutoResolveOrigin,
|
|
145
146
|
resolvePolicy,
|
|
146
147
|
unansweredRefusalReason
|
|
147
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-4DKVCK2C.js";
|
|
148
149
|
|
|
149
150
|
// src/pending.ts
|
|
150
151
|
import { join } from "path";
|
|
@@ -860,6 +861,7 @@ import { existsSync as existsSync3, writeFileSync as writeFileSync4 } from "fs";
|
|
|
860
861
|
import { tmpdir as tmpdir4 } from "os";
|
|
861
862
|
import { join as join4 } from "path";
|
|
862
863
|
var SUBSCRIPTION_REQUIRED_NOTICE_KIND = "subscription-required";
|
|
864
|
+
var MALFORMED_API_KEY_NOTICE_KIND = "malformed-key";
|
|
863
865
|
var oncePerSession = (kind, sessionId) => {
|
|
864
866
|
try {
|
|
865
867
|
const key = (sessionId || DEFAULT_SESSION).replace(/[^a-zA-Z0-9_-]/g, "");
|
|
@@ -881,6 +883,17 @@ var announceSubscriptionRequired = (upgradeUrl, sessionId) => {
|
|
|
881
883
|
return;
|
|
882
884
|
}
|
|
883
885
|
};
|
|
886
|
+
var malformedApiKeyNotice = (message) => `[pushary] Not connected, so your agent runs untouched. ${message}`;
|
|
887
|
+
var announceMalformedApiKey = (keyError, sessionId) => {
|
|
888
|
+
if (!isMalformedApiKeyError(keyError)) return;
|
|
889
|
+
try {
|
|
890
|
+
if (!oncePerSession(MALFORMED_API_KEY_NOTICE_KIND, sessionId)) return;
|
|
891
|
+
process.stderr.write(`${malformedApiKeyNotice(keyError.message)}
|
|
892
|
+
`);
|
|
893
|
+
} catch {
|
|
894
|
+
return;
|
|
895
|
+
}
|
|
896
|
+
};
|
|
884
897
|
|
|
885
898
|
// src/agent-question-ask.ts
|
|
886
899
|
var ONLY_QUESTION = { index: 0, total: 1 };
|
|
@@ -2371,6 +2384,7 @@ export {
|
|
|
2371
2384
|
isDeferAnswer,
|
|
2372
2385
|
oncePerSession,
|
|
2373
2386
|
announceSubscriptionRequired,
|
|
2387
|
+
announceMalformedApiKey,
|
|
2374
2388
|
outcomeOfFailedAsk,
|
|
2375
2389
|
storedWaitDeadline,
|
|
2376
2390
|
askAgentQuestionWhileOpen,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IZHCLPRX.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-3LNGHZ2A.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FOABNWRY.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-UNHODOXL.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-4DP54WUK.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-4DKVCK2C.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FOABNWRY.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4DKVCK2C.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DKI5QA46.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KMBUWYIF.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XRF2QECS.js";
|
|
11
11
|
import {
|
|
12
12
|
CLAUDE_HOOK_EVENTS,
|
|
13
13
|
PUSHARY_MCP_URL,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isPusharyHook,
|
|
20
20
|
registerHookEntry,
|
|
21
21
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UC3CPRDS.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_ENFORCEMENT,
|
|
25
25
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
pusharyMissingReason,
|
|
33
33
|
refusalOutput,
|
|
34
34
|
withHookHoldBudget
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-4DKVCK2C.js";
|
|
36
36
|
|
|
37
37
|
// src/config-document.ts
|
|
38
38
|
import { parse, stringify } from "smol-toml";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
openCodePluginArgv,
|
|
4
4
|
openCodePluginModule,
|
|
5
5
|
renderOpenCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OA4BOYDG.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-JYNIBOW6.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LVB2UNTX.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DKI5QA46.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-V5JRLAHZ.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-UC3CPRDS.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-4DKVCK2C.js";
|
|
50
50
|
|
|
51
51
|
// src/opencode-config.ts
|
|
52
52
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IZHCLPRX.js";
|
|
4
4
|
import {
|
|
5
5
|
matchMacAccountStep,
|
|
6
6
|
retryAgentCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3F2RT6H.js";
|
|
8
8
|
import {
|
|
9
9
|
canChangeApprovalSettings
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LOJ7U6VW.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND,
|
|
13
13
|
npmExecSetupCommandFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4DP54WUK.js";
|
|
15
15
|
import {
|
|
16
16
|
EXIT
|
|
17
17
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
compatibleProfileFor,
|
|
23
23
|
isCompatibleAgentType
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4DKVCK2C.js";
|
|
25
25
|
|
|
26
26
|
// src/setup/closing.ts
|
|
27
27
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
OPENCODE_PLUGIN_PLACEHOLDER,
|
|
7
7
|
OPENCODE_PLUGIN_SIBLING,
|
|
8
8
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JYNIBOW6.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UC3CPRDS.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-PM2NRK6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4DKVCK2C.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K6JUQVL6.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TUACBIHO.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENCODE_HOOK_BINARY,
|
|
10
10
|
openCodeConfigDir,
|
|
11
11
|
openCodePluginFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MSAFTQ5S.js";
|
|
13
13
|
import {
|
|
14
14
|
openCodePluginArgv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OA4BOYDG.js";
|
|
16
16
|
import {
|
|
17
17
|
liveCursorGateCoverage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2MAPVRYT.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
22
|
grokHome,
|
|
23
23
|
parseConfigDocument
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LVB2UNTX.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_HOOKS_KEY_PATH,
|
|
27
27
|
GEMINI_HOOK_BINARY,
|
|
28
28
|
GEMINI_HOOK_EVENTS,
|
|
29
29
|
hooksAt
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-DKI5QA46.js";
|
|
31
31
|
import {
|
|
32
32
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
33
33
|
CODEX_HOOK_BINARY,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
parseHookArgv,
|
|
56
56
|
parseHookCommand,
|
|
57
57
|
supportedClaudeEvents
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-UC3CPRDS.js";
|
|
59
59
|
import {
|
|
60
60
|
readRegularJsonFile,
|
|
61
61
|
readRegularTextFile
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
OPENCODE_APPROVAL_EVENT,
|
|
70
70
|
isRecord,
|
|
71
71
|
matcherMatchesEveryCall
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-4DKVCK2C.js";
|
|
73
73
|
|
|
74
74
|
// src/hook-wiring.ts
|
|
75
75
|
import { createHash } from "crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KMBUWYIF.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UC3CPRDS.js";
|
|
8
8
|
|
|
9
9
|
// src/phone-approval.ts
|
|
10
10
|
import { createHash } from "crypto";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UC3CPRDS.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-H4QSDEVU.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4DKVCK2C.js";
|
|
15
15
|
|
|
16
16
|
// src/openclaw/wiring-state.ts
|
|
17
17
|
var OPENCLAW_PLUGIN_ID = "pushary";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JTWSDHDB.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4DP54WUK.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UC3CPRDS.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-4DKVCK2C.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|