pushary 1.9.117 → 1.9.118
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 +11 -0
- package/dist/{api-OXKVQGTP.js → api-Q2HBBRLT.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +27 -27
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +35 -40
- package/dist/bin/pushary-clean.js +34 -34
- package/dist/bin/pushary-codex-bridge.js +21 -21
- package/dist/bin/pushary-codex-hook.js +62 -73
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +15 -15
- package/dist/bin/pushary-connect.js +28 -28
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +42 -42
- package/dist/bin/pushary-disconnect.js +27 -27
- package/dist/bin/pushary-display-hook.js +17 -17
- package/dist/bin/pushary-doctor.js +42 -42
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +15 -15
- package/dist/bin/pushary-gemini-hook.js +91 -88
- package/dist/bin/pushary-hook.js +33 -32
- package/dist/bin/pushary-login.js +21 -21
- package/dist/bin/pushary-logout.js +26 -26
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +26 -26
- package/dist/bin/pushary-opencode-hook.js +93 -75
- package/dist/bin/pushary-permission-denied-hook.js +33 -32
- package/dist/bin/pushary-permission-hook.js +33 -32
- package/dist/bin/pushary-post-hook.js +26 -26
- package/dist/bin/pushary-prompt-hook.js +26 -26
- package/dist/bin/pushary-session-end-hook.js +26 -26
- package/dist/bin/pushary-session-start-hook.js +35 -35
- package/dist/bin/pushary-setup.js +49 -49
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +32 -32
- package/dist/bin/pushary-stop-hook.js +26 -26
- package/dist/bin/pushary-stopfailure-hook.js +26 -26
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +25 -25
- 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-NSCLVG7M.js → chunk-2WCARUXQ.js} +1 -1
- package/dist/{chunk-DZI6MSR4.js → chunk-46ZIEQGC.js} +2 -2
- package/dist/{chunk-BL7ESWIQ.js → chunk-4PXJ2LBU.js} +2 -2
- package/dist/{chunk-2NN5ODYJ.js → chunk-5FJPEDMZ.js} +3 -3
- package/dist/chunk-5UIRDDJN.js +60 -0
- package/dist/{chunk-G5EB7GAR.js → chunk-6UN3AUIS.js} +3 -3
- package/dist/{chunk-6ICAZ33G.js → chunk-7K6DZPYV.js} +1 -1
- package/dist/{chunk-C32IT2TR.js → chunk-7YQPI4UE.js} +1 -1
- package/dist/{chunk-ARRXCME5.js → chunk-A23GIPWY.js} +2 -2
- package/dist/{chunk-RCCISH7T.js → chunk-A2TAWW5L.js} +1 -1
- package/dist/{chunk-UJGA7WL5.js → chunk-AN6AKKHO.js} +2 -2
- package/dist/{chunk-J3PBLQUD.js → chunk-B6HPULOG.js} +3 -3
- package/dist/{chunk-PHCZ26TZ.js → chunk-BBLXVKW2.js} +4 -4
- package/dist/{chunk-SE62HPB7.js → chunk-BQVB563P.js} +6 -61
- package/dist/{chunk-XJC6PG7J.js → chunk-BUNRL7QV.js} +2 -2
- package/dist/{chunk-4BV525QE.js → chunk-C664L36M.js} +2 -2
- package/dist/{chunk-R5ZMI6BM.js → chunk-CKR43BBJ.js} +1 -1
- package/dist/{chunk-TKTNQORW.js → chunk-CTBNVQND.js} +10 -10
- package/dist/{chunk-H5RGOO3B.js → chunk-CUQOWRYT.js} +1 -1
- package/dist/{chunk-F3Z7UWM6.js → chunk-CVIJBTGE.js} +6 -6
- package/dist/{chunk-NZFYK75R.js → chunk-D3PHTY54.js} +3 -3
- package/dist/{chunk-C2NKILG3.js → chunk-EJYLQNMC.js} +1 -1
- package/dist/{chunk-IUPEFEBH.js → chunk-F5C6XZZ7.js} +4 -4
- package/dist/{chunk-EXWJBUL5.js → chunk-FAL7WRMM.js} +3 -3
- package/dist/{chunk-3OVRAD25.js → chunk-FEP7FXBP.js} +3 -3
- package/dist/{chunk-NI5KTEVM.js → chunk-FLBMCN45.js} +6 -6
- package/dist/{chunk-RVYREG7X.js → chunk-FNT4VWXV.js} +1 -1
- package/dist/{chunk-BE6JIWTM.js → chunk-GAYUSL24.js} +1 -1
- package/dist/{chunk-4SI3CUWN.js → chunk-GX3QCU32.js} +6 -6
- package/dist/{chunk-2JQZFGIF.js → chunk-H6YES2DS.js} +5 -5
- package/dist/{chunk-3ZQT5LQ3.js → chunk-H7B6LLP4.js} +9 -6
- package/dist/{chunk-KYWTX4R2.js → chunk-I7LP4DKM.js} +14 -1
- package/dist/{chunk-XU4DUX7K.js → chunk-IKX4X4LJ.js} +3 -3
- package/dist/{chunk-YU3LDR5W.js → chunk-JBWEGNKE.js} +3 -3
- package/dist/{chunk-T3UOM443.js → chunk-K5H4YAMZ.js} +10 -10
- package/dist/{chunk-N4DQDFEP.js → chunk-KOEQIRDA.js} +1 -1
- package/dist/{chunk-U2AB2ZUZ.js → chunk-KWDQI7TI.js} +4 -4
- package/dist/{chunk-7VPA5PXJ.js → chunk-LWY2U7NZ.js} +4 -4
- package/dist/{chunk-RYAWSPAR.js → chunk-M2PLZ5V3.js} +5 -5
- package/dist/{chunk-2KYPNVRC.js → chunk-MG5WFAND.js} +1 -1
- package/dist/{chunk-FW2SOQ5J.js → chunk-MTG3JLMP.js} +4 -4
- package/dist/{chunk-MI56IIXG.js → chunk-NJSCVQ6S.js} +2 -2
- package/dist/{chunk-SUMWA5VN.js → chunk-NPMVVR6I.js} +2 -2
- package/dist/{chunk-MA4KQLCT.js → chunk-OP2ZDOBR.js} +5 -5
- package/dist/{chunk-EBL6XYOI.js → chunk-P2H6TDL4.js} +1 -1
- package/dist/{chunk-ZJKH3CTN.js → chunk-PZLNBKMS.js} +5 -5
- package/dist/{chunk-PHDPS5C7.js → chunk-Q64D24NF.js} +2 -2
- package/dist/{chunk-2UYYX6VC.js → chunk-QASBFNVD.js} +2 -2
- package/dist/{chunk-FRIQ4LQ5.js → chunk-QO6SWGLH.js} +2 -2
- package/dist/{chunk-DH23XX7X.js → chunk-QQ24SUBD.js} +3 -3
- package/dist/{chunk-X2JY437V.js → chunk-R4BBSIUK.js} +2 -2
- package/dist/{chunk-MYSBGQU6.js → chunk-RMUKFMT3.js} +1 -1
- package/dist/{chunk-BSSD6UWJ.js → chunk-RPW7LX2L.js} +3 -3
- package/dist/{chunk-BJ7FGYF7.js → chunk-SAISSZZA.js} +6 -6
- package/dist/{chunk-MHU7CW7T.js → chunk-SMBFZFVN.js} +8 -8
- package/dist/{chunk-LN6LLUY7.js → chunk-T5N42XDU.js} +1 -1
- package/dist/{chunk-SQLXC4PM.js → chunk-TOUMNM7M.js} +6 -6
- package/dist/{chunk-6GZU4IYU.js → chunk-TUQ6R6DD.js} +4 -4
- package/dist/{chunk-GJNWZWMA.js → chunk-UJ6UCGY4.js} +4 -4
- package/dist/{chunk-PPNJ3INA.js → chunk-UKCCVMI2.js} +1 -1
- package/dist/{chunk-5TVOBKRE.js → chunk-UNXVORET.js} +19 -13
- package/dist/{chunk-K54Y2QFA.js → chunk-UXVCDVPL.js} +1 -1
- package/dist/{chunk-S5MQA774.js → chunk-VIR7SCIQ.js} +5 -5
- package/dist/chunk-WCSPOQ5W.js +121 -0
- package/dist/{chunk-74MC5LRW.js → chunk-WELDACYF.js} +1 -1
- package/dist/{chunk-FKH3KT4U.js → chunk-WLXXEFHA.js} +31 -21
- package/dist/{chunk-MKTZZPWV.js → chunk-WZZHWX7Q.js} +5 -5
- package/dist/{chunk-XIJ4ADBX.js → chunk-X4UWBBFI.js} +3 -3
- package/dist/{chunk-4UGNMAQ2.js → chunk-XSUNHOAP.js} +4 -4
- package/dist/{chunk-DE6ZYZZZ.js → chunk-XWVEAAZO.js} +3 -3
- package/dist/{chunk-N74WJAL6.js → chunk-YQVZQM53.js} +6 -6
- package/dist/{chunk-YEV6CIQZ.js → chunk-ZGYLMVNB.js} +2 -2
- package/dist/{codex-app-cards-switch-ANBV6CA6.js → codex-app-cards-switch-45UK7FRY.js} +11 -11
- package/dist/{codex-card-routing-POEBILLG.js → codex-card-routing-7B77ISR2.js} +2 -2
- package/dist/{codex-desktop-launch-Z4HXKBYP.js → codex-desktop-launch-DWC7Q5A6.js} +1 -1
- package/dist/{codex-session-launch-XA6BMIVU.js → codex-session-launch-MK2CXFRQ.js} +18 -18
- package/dist/{config-ATKVK4QQ.js → config-OHLNHWP4.js} +3 -3
- package/dist/{global-upgrade-BJKCVYJU.js → global-upgrade-KKFYAQVO.js} +9 -9
- package/dist/{identity-X3FI7ZYE.js → identity-AKGGBW3A.js} +4 -4
- package/dist/{live-capabilities-6OV363JK.js → live-capabilities-O6MAYZZS.js} +4 -4
- package/dist/{paths-U67N2RPP.js → paths-5XEJTZAS.js} +3 -3
- package/dist/{reapply-L3KVM3ZO.js → reapply-VQFRLS3P.js} +28 -28
- package/dist/src/index.js +32 -31
- package/dist/{upgrade-lock-ZIPY7I2T.js → upgrade-lock-6HGNG7RT.js} +4 -4
- package/dist/{usage-RAJPNVE5.js → usage-ATA2A3TZ.js} +3 -3
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_STATUS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BUNRL7QV.js";
|
|
4
4
|
import {
|
|
5
5
|
retryAgentCommand
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B6HPULOG.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CKR43BBJ.js";
|
|
10
10
|
|
|
11
11
|
// src/setup/codex-trust.ts
|
|
12
12
|
var CODEX_TRUST_TELEMETRY = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A2TAWW5L.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KOEQIRDA.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-YU2EUD7O.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-I7LP4DKM.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
postLiveSession,
|
|
5
5
|
postLiveSessionUntilAccepted,
|
|
6
6
|
startLiveSessionHeartbeat
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UKCCVMI2.js";
|
|
8
8
|
import {
|
|
9
9
|
CommandReceipts,
|
|
10
10
|
controllerCommandSchema
|
|
@@ -14,21 +14,21 @@ import {
|
|
|
14
14
|
describeIdleWindow,
|
|
15
15
|
idleDeadlinePassed,
|
|
16
16
|
startProcessOwnership
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QASBFNVD.js";
|
|
18
18
|
import {
|
|
19
19
|
repositoryScopeFor
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WELDACYF.js";
|
|
21
21
|
import {
|
|
22
22
|
isAskUserResponse,
|
|
23
23
|
isDecisionStopped,
|
|
24
24
|
isWaitForAnswerResponse,
|
|
25
25
|
withdrawQuestion,
|
|
26
26
|
writeDegraded
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YQVZQM53.js";
|
|
28
28
|
import {
|
|
29
29
|
callMcpTool,
|
|
30
30
|
isRetryable
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PZLNBKMS.js";
|
|
32
32
|
import {
|
|
33
33
|
spawnClaude
|
|
34
34
|
} from "./chunk-XHKBHWLX.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
parseCodexQuestions,
|
|
53
53
|
planElicitationAsk,
|
|
54
54
|
readElicitationFields
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-I7LP4DKM.js";
|
|
56
56
|
|
|
57
57
|
// src/codex-question-owner.ts
|
|
58
58
|
import { createHash } from "crypto";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4PXJ2LBU.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NPMVVR6I.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "./chunk-FO3MDD26.js";
|
|
@@ -14,19 +14,19 @@ import {
|
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QQ24SUBD.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JBWEGNKE.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KOEQIRDA.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT
|
|
26
26
|
} from "./chunk-BG4HHB7E.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-I7LP4DKM.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readMacAppAgentKey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F5C6XZZ7.js";
|
|
4
4
|
import {
|
|
5
5
|
API_KEYS_PATH
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NPMVVR6I.js";
|
|
7
7
|
import {
|
|
8
8
|
absoluteUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QQ24SUBD.js";
|
|
10
10
|
import {
|
|
11
11
|
findExportedKeyLines,
|
|
12
12
|
isAdoptedMacAppKey,
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
readConfigFileKey,
|
|
17
17
|
readKeySource,
|
|
18
18
|
readMacAppKeyPrefix
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JBWEGNKE.js";
|
|
20
20
|
import {
|
|
21
21
|
isValidApiKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-I7LP4DKM.js";
|
|
23
23
|
|
|
24
24
|
// src/key-revocation.ts
|
|
25
25
|
var SELF_REVOKE_PATH = "/api/v1/server/keys/self/revoke";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XSUNHOAP.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K5H4YAMZ.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OP2ZDOBR.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YQVZQM53.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-I7LP4DKM.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"];
|
|
@@ -101,7 +101,10 @@ var readHookInputOutcome = async (source, fallbackEvent = "", stdin = process.st
|
|
|
101
101
|
const shaped = inClaudeShape(source, namedEvent(process.argv) ?? fallbackEvent, parsed);
|
|
102
102
|
if (source === "grok" && isGrokSessionEndStop(shaped.hook_event_name, shaped.reason)) return UNREADABLE;
|
|
103
103
|
const input = parseInput ? parseInput(shaped) : shaped;
|
|
104
|
-
if (input === null)
|
|
104
|
+
if (input === null) {
|
|
105
|
+
writeDegraded("hook", { reason: "unreadable_input", fallback: "could not read this call, so Pushary did not judge it", event: fallbackEvent });
|
|
106
|
+
return UNREADABLE;
|
|
107
|
+
}
|
|
105
108
|
const event = eventNameOf(input) ?? fallbackEvent;
|
|
106
109
|
if (!isAdmitted(readAdmissionRules(), source, event)) return { kind: "not_admitted", input };
|
|
107
110
|
if (stdin === process.stdin) registerTranscript(source, input);
|
|
@@ -8488,6 +8488,13 @@ var askAtTheRouteOfAPushOfTheCurrentBranch = (input, repoKey) => {
|
|
|
8488
8488
|
return void 0;
|
|
8489
8489
|
};
|
|
8490
8490
|
var permissionsOffAskReason = (input, verdict) => verdict.kind === "gate" && !verdict.scopeReason && !isAskedInEveryMode(input.toolName) && bypassModeApplies(input) && bypassStopsOf(input.config) === "consequences" && !aChosenRuleGovernsInEitherRepository(input) ? PERMISSIONS_OFF_ASK_REASON : void 0;
|
|
8491
|
+
var SCOPE_QUESTION_FIRST_WAIT_SECONDS = 30;
|
|
8492
|
+
var policyForScopeQuestion = (policy) => policy.timeoutAction === "approve" ? {
|
|
8493
|
+
...policy,
|
|
8494
|
+
mode: policy.mode === "push_only" ? "push_first" : policy.mode,
|
|
8495
|
+
timeoutAction: "wait",
|
|
8496
|
+
pushFirstSeconds: policy.pushFirstSeconds > 0 ? policy.pushFirstSeconds : SCOPE_QUESTION_FIRST_WAIT_SECONDS
|
|
8497
|
+
} : policy;
|
|
8491
8498
|
var resolveGate = (input) => {
|
|
8492
8499
|
const { modeState, config, toolName, toolInputs, cwd, sessionId } = input;
|
|
8493
8500
|
const repoKey = input.sharedRepoKey ?? input.repoKey;
|
|
@@ -8521,6 +8528,9 @@ var resolveGate = (input) => {
|
|
|
8521
8528
|
const scopeVerdict = modeState.scope ? strictestScopeVerdict(modeState.scope, input.scopePaths ?? []) : { outcome: "no_contract" };
|
|
8522
8529
|
if (autoApproves) {
|
|
8523
8530
|
if (!scopeRequiresHuman(scopeVerdict)) {
|
|
8531
|
+
if (config.knownSuperseded === true && !survivesDegraded(config, toolName, toolInputs, cwd, repoKey, sessionId)) {
|
|
8532
|
+
return { kind: "defer", policy };
|
|
8533
|
+
}
|
|
8524
8534
|
return {
|
|
8525
8535
|
kind: "allow",
|
|
8526
8536
|
policy: allowedByBypassMode ? autoApprove(policy.tool) : policy,
|
|
@@ -8531,7 +8541,7 @@ var resolveGate = (input) => {
|
|
|
8531
8541
|
const scopeReason = scopeChangeReason(scopeVerdict);
|
|
8532
8542
|
return {
|
|
8533
8543
|
kind: "gate",
|
|
8534
|
-
policy: askedPolicy,
|
|
8544
|
+
policy: scopeReason ? policyForScopeQuestion(askedPolicy) : askedPolicy,
|
|
8535
8545
|
scopeReason,
|
|
8536
8546
|
scopePath: scopeReason && "path" in scopeVerdict ? widenablePath(scopeVerdict.path) : void 0
|
|
8537
8547
|
};
|
|
@@ -8749,6 +8759,7 @@ var mcpCallCouldBeHeldForSomeoneElse = (toolName, permissionMode) => permissionM
|
|
|
8749
8759
|
var approvalRouteHoldsMcpCall = (input, verdict, permissionMode) => mcpCallCouldBeHeldForSomeoneElse(input.toolName, permissionMode) && verdictCanHoldTheCall(verdict) && namedRouteWaitsForSomeoneElse(input);
|
|
8750
8760
|
var claudeAllowlistOwnsCall = (input, verdict, permissionMode, rules) => rules !== null && verdict.kind === "gate" && !verdict.scopeReason && !aChosenRuleGoverns(input) && !isAskedInEveryMode(input.toolName) && claudeConsultsItsAllowlist(permissionMode) && agentRulesAllowEveryInput(rules, input.toolName, input.toolInputs, input.cwd);
|
|
8751
8761
|
var claudePromptTakesTheCall = (facts, input, verdict) => verdict.kind === "gate" && !verdict.scopeReason && terminalStaysLiveForTheCall(facts) && noModeOverrideIsActive(input) && !aChosenRuleGoverns(input) && !editGoesToTheAgentsPrompt({ source: facts.source, event: "PreToolUse", permissionMode: facts.permissionMode }, input, verdict);
|
|
8762
|
+
var isProvenModeResponse = (value) => isRecord(value) && typeof value.kill === "boolean";
|
|
8752
8763
|
var toPolicyVersion = (value) => typeof value === "string" || typeof value === "number" ? String(value) : null;
|
|
8753
8764
|
var modeStateFromResponse = (data) => {
|
|
8754
8765
|
const mode = data.override?.mode;
|
|
@@ -9247,6 +9258,7 @@ export {
|
|
|
9247
9258
|
answersToQuestionsAsAsked,
|
|
9248
9259
|
normalizeInstallSource,
|
|
9249
9260
|
HOOK_BUDGETS,
|
|
9261
|
+
hookMaxWaitSeconds,
|
|
9250
9262
|
HOOK_HOLD_BUDGET_ENV,
|
|
9251
9263
|
withHookHoldBudget,
|
|
9252
9264
|
hookCommandHoldBudget,
|
|
@@ -9337,6 +9349,7 @@ export {
|
|
|
9337
9349
|
approvalRouteHoldsMcpCall,
|
|
9338
9350
|
claudeAllowlistOwnsCall,
|
|
9339
9351
|
claudePromptTakesTheCall,
|
|
9352
|
+
isProvenModeResponse,
|
|
9340
9353
|
modeStateFromResponse,
|
|
9341
9354
|
GATE_WIRE,
|
|
9342
9355
|
GATE_MAX_TOOL_INPUTS,
|
|
@@ -399,9 +399,9 @@ var installGlobally = (options) => {
|
|
|
399
399
|
}
|
|
400
400
|
const started = (async () => {
|
|
401
401
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
402
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
403
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
404
|
-
const { autoUpdateLock } = await import("./paths-
|
|
402
|
+
const { withUpgradeLock } = await import("./global-upgrade-KKFYAQVO.js");
|
|
403
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-6HGNG7RT.js");
|
|
404
|
+
const { autoUpdateLock } = await import("./paths-5XEJTZAS.js");
|
|
405
405
|
let result = "skipped";
|
|
406
406
|
const install = async () => {
|
|
407
407
|
const platform = process.platform;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-46ZIEQGC.js";
|
|
4
4
|
import {
|
|
5
5
|
configFilePath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KOEQIRDA.js";
|
|
7
7
|
import {
|
|
8
8
|
backupFile,
|
|
9
9
|
readJsonSafe,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
API_KEY_PREFIX_PATTERN,
|
|
15
15
|
isRecord,
|
|
16
16
|
isValidApiKey
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-I7LP4DKM.js";
|
|
18
18
|
|
|
19
19
|
// src/shell-alias.ts
|
|
20
20
|
import { homedir } from "os";
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
} from "./chunk-G66WIAST.js";
|
|
8
8
|
import {
|
|
9
9
|
ensureDaemonRunning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SAISSZZA.js";
|
|
11
11
|
import {
|
|
12
12
|
hookOwnerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LWY2U7NZ.js";
|
|
14
14
|
import {
|
|
15
15
|
hookMeaning
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GAYUSL24.js";
|
|
17
17
|
import {
|
|
18
18
|
buildTranscriptRecords,
|
|
19
19
|
decodePublicKey,
|
|
@@ -24,29 +24,29 @@ import {
|
|
|
24
24
|
recordSealerFor,
|
|
25
25
|
uploadTranscriptRecords,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XWVEAAZO.js";
|
|
28
28
|
import {
|
|
29
29
|
external_exports
|
|
30
30
|
} from "./chunk-XMSDA5WA.js";
|
|
31
31
|
import {
|
|
32
32
|
transcriptEnvironmentPreference,
|
|
33
33
|
transcriptsEnabled
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EJYLQNMC.js";
|
|
35
35
|
import {
|
|
36
36
|
fetchAsCredential
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7K6DZPYV.js";
|
|
38
38
|
import {
|
|
39
39
|
readTranscriptPreference
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-JBWEGNKE.js";
|
|
41
41
|
import {
|
|
42
42
|
claudeConfigDir,
|
|
43
43
|
codexHome,
|
|
44
44
|
pusharyDir
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-A23GIPWY.js";
|
|
46
46
|
import {
|
|
47
47
|
getApiKey,
|
|
48
48
|
getBaseUrl
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-KOEQIRDA.js";
|
|
50
50
|
import {
|
|
51
51
|
writeJsonAtomic,
|
|
52
52
|
writeJsonAtomicDurable
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
isHookSource,
|
|
59
59
|
isRecord,
|
|
60
60
|
redactSecretsFromContent
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-I7LP4DKM.js";
|
|
62
62
|
|
|
63
63
|
// src/transcript-recipient-pin.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
reachVerdict,
|
|
13
13
|
reachesYou,
|
|
14
14
|
verifyDelivery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TOUMNM7M.js";
|
|
16
16
|
import {
|
|
17
17
|
humanIsTty,
|
|
18
18
|
writeHuman
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
} from "./chunk-FO3MDD26.js";
|
|
25
25
|
import {
|
|
26
26
|
reportedInstallSource
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-46ZIEQGC.js";
|
|
28
28
|
import {
|
|
29
29
|
NPX_LATEST_COMMAND
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CKR43BBJ.js";
|
|
31
31
|
import {
|
|
32
32
|
NO_PAIRING_COMPUTER,
|
|
33
33
|
PAIR_TTL_SECONDS
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-I7LP4DKM.js";
|
|
35
35
|
|
|
36
36
|
// src/onboarding.ts
|
|
37
37
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CUQOWRYT.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7YQPI4UE.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_HOOK_EVENTS,
|
|
9
9
|
CODEX_HOOK_EVENTS,
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
isBridgeLocator,
|
|
16
16
|
isProtectedByScope,
|
|
17
17
|
registerHookEntry
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-A23GIPWY.js";
|
|
19
19
|
import {
|
|
20
20
|
CURSOR_GATE_EVENTS,
|
|
21
21
|
HOOK_BUDGETS,
|
|
22
22
|
HOOK_LOCATOR_BINARY,
|
|
23
23
|
hookCommandHoldBudget
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-I7LP4DKM.js";
|
|
25
25
|
|
|
26
26
|
// src/gemini-config.ts
|
|
27
27
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6UN3AUIS.js";
|
|
7
7
|
import {
|
|
8
8
|
daemonHasRemoteProof,
|
|
9
9
|
daemonServiceManagerAvailable,
|
|
10
10
|
hasDaemonServiceDefinition,
|
|
11
11
|
readDaemonNeedsLogin,
|
|
12
12
|
readDaemonStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SAISSZZA.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-A2TAWW5L.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JBWEGNKE.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KOEQIRDA.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
26
|
} from "./chunk-ZVU6WMMU.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OP2ZDOBR.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LWY2U7NZ.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-A23GIPWY.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-I7LP4DKM.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A23GIPWY.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-I7LP4DKM.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QQ24SUBD.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I7LP4DKM.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
|
CLAUDE_CODE_AGENT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UNXVORET.js";
|
|
4
4
|
import {
|
|
5
5
|
addGeminiMcpServer,
|
|
6
6
|
removeGeminiMcpServer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LWY2U7NZ.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GAYUSL24.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-A23GIPWY.js";
|
|
23
23
|
import {
|
|
24
24
|
HOOK_COMPATIBLE_PROFILES,
|
|
25
25
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
pusharyMissingReason,
|
|
31
31
|
refusalOutput,
|
|
32
32
|
withHookHoldBudget
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-I7LP4DKM.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
keyCheckFromResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QQ24SUBD.js";
|
|
4
4
|
import {
|
|
5
5
|
installNetworkDefaults
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FEP7FXBP.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAsCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7K6DZPYV.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KOEQIRDA.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-I7LP4DKM.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-ROVLRXBI.js";
|
|
4
4
|
import {
|
|
5
5
|
parseVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IKX4X4LJ.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I7LP4DKM.js";
|
|
10
10
|
|
|
11
11
|
// src/setup/agent-probe.ts
|
|
12
12
|
import { execSync } from "child_process";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A23GIPWY.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-T5I4PKOQ.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I7LP4DKM.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-A23GIPWY.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-ZVU6WMMU.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-I7LP4DKM.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
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FEP7FXBP.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KOEQIRDA.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-YU2EUD7O.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-I7LP4DKM.js";
|
|
17
17
|
|
|
18
18
|
// src/session.ts
|
|
19
19
|
var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
|