pushary 1.9.215 → 1.9.217
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 +8 -0
- package/README.md +14 -1
- package/dist/{api-XWZBB6T3.js → api-ZNICU66O.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +30 -30
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +35 -35
- package/dist/bin/pushary-clean.js +46 -46
- package/dist/bin/pushary-codex-bridge.js +24 -24
- package/dist/bin/pushary-codex-hook.js +37 -37
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +36 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +70 -70
- package/dist/bin/pushary-disconnect.js +32 -32
- package/dist/bin/pushary-doctor.js +77 -77
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +19 -19
- package/dist/bin/pushary-gemini-hook.js +33 -33
- package/dist/bin/pushary-hook.js +36 -36
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +30 -30
- package/dist/bin/pushary-mcp.js +14 -14
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +26 -26
- package/dist/bin/pushary-opencode-hook.js +44 -44
- package/dist/bin/pushary-permission-denied-hook.js +36 -36
- package/dist/bin/pushary-permission-hook.js +36 -36
- 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 +30 -30
- package/dist/bin/pushary-session-start-hook.js +40 -40
- package/dist/bin/pushary-sessions.js +14 -14
- package/dist/bin/pushary-setup.js +92 -92
- package/dist/bin/pushary-stats.js +7 -7
- package/dist/bin/pushary-status.js +37 -37
- 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 +27 -27
- package/dist/bin/pushary-upgrade.js +64 -64
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-RFMCANSE.js → chunk-2DOZXSHN.js} +4 -4
- package/dist/{chunk-PKJSKMHN.js → chunk-2I2SXVMP.js} +2 -2
- package/dist/{chunk-BJHNLQ6P.js → chunk-36YVBUPS.js} +10 -10
- package/dist/{chunk-GHADQWO4.js → chunk-3F7QKDA3.js} +1 -1
- package/dist/{chunk-UQZSWS5N.js → chunk-3FBC6HPX.js} +2 -2
- package/dist/{chunk-H4DPYO4Y.js → chunk-47MPX2VI.js} +4 -4
- package/dist/{chunk-VOZCKBDW.js → chunk-4GJZTJO6.js} +1 -1
- package/dist/{chunk-5RDMY45N.js → chunk-4HQQRM3I.js} +1 -1
- package/dist/{chunk-2MUM3LU5.js → chunk-4T5IHHPF.js} +1 -1
- package/dist/{chunk-AFH5KBDN.js → chunk-4ZGQHNZC.js} +1 -1
- package/dist/{chunk-PVUHWWOG.js → chunk-54HFDBJZ.js} +19 -19
- package/dist/{chunk-HB6IHK4C.js → chunk-57DE6FG6.js} +1 -1
- package/dist/{chunk-36CULUSD.js → chunk-66OVH5CY.js} +1 -1
- package/dist/{chunk-FOGVWSQE.js → chunk-73JRQ7N4.js} +2 -2
- package/dist/{chunk-5M6RPX7S.js → chunk-7KU5LBUN.js} +3 -3
- package/dist/{chunk-PREV3MB3.js → chunk-7MIDEZQK.js} +3 -3
- package/dist/{chunk-4L7J6BRJ.js → chunk-7R5UO3UQ.js} +2 -2
- package/dist/{chunk-QV75JAWJ.js → chunk-A745KBRC.js} +8 -8
- package/dist/{chunk-TH76GW6V.js → chunk-AOJGUN6O.js} +2 -2
- package/dist/{chunk-BJN5TOC4.js → chunk-AVTCKBDJ.js} +1 -1
- package/dist/{chunk-R7AOWTC7.js → chunk-B3UFIVCF.js} +5 -5
- package/dist/{chunk-NPQ3EM6V.js → chunk-BMM6BM7M.js} +2 -2
- package/dist/{chunk-4H3I7GRP.js → chunk-C3F65EFY.js} +3 -3
- package/dist/{chunk-GIFI5NK6.js → chunk-C5RTX3FG.js} +2 -2
- package/dist/{chunk-4FVTKKCF.js → chunk-D2PW657V.js} +12 -12
- package/dist/{chunk-4KTJY32G.js → chunk-D46IWNF2.js} +7 -7
- package/dist/{chunk-L4PP7PIC.js → chunk-DCAA3IYO.js} +1 -1
- package/dist/{chunk-4CD4UBXQ.js → chunk-DDAB5CFW.js} +1 -1
- package/dist/{chunk-HZUSRGMR.js → chunk-EVRIPQVH.js} +3 -3
- package/dist/{chunk-2KHIQPLJ.js → chunk-F4KC5RCQ.js} +3 -3
- package/dist/{chunk-IRD2A3U3.js → chunk-FOT4WYTR.js} +1 -1
- package/dist/{chunk-UQ7KNUGE.js → chunk-FSTBKIRM.js} +4 -4
- package/dist/{chunk-MZRJIIJR.js → chunk-FXPBDS6E.js} +10 -10
- package/dist/{chunk-PAYCSLF7.js → chunk-G457ALKZ.js} +6 -6
- package/dist/{chunk-PSELB3S6.js → chunk-GJXAKA47.js} +5 -5
- package/dist/{chunk-X2S73KKK.js → chunk-GQ2NDIQK.js} +5 -5
- package/dist/{chunk-UG4OSDTI.js → chunk-HBDLPOL5.js} +1 -1
- package/dist/{chunk-5BGBBJQG.js → chunk-HVRYKWKV.js} +1 -1
- package/dist/{chunk-ZPHPLN57.js → chunk-HY24XUYQ.js} +2 -2
- package/dist/{chunk-OIPCTKKW.js → chunk-I5IAKVJU.js} +8 -8
- package/dist/{chunk-J4NXKVFQ.js → chunk-I7PAEL2P.js} +5 -5
- package/dist/{chunk-KMEC7QT6.js → chunk-JSPHVG3N.js} +5 -5
- package/dist/{chunk-IBYLEMUR.js → chunk-JWY5E4O3.js} +4 -4
- package/dist/{chunk-WRI7IC2H.js → chunk-KD4MSRZY.js} +1 -1
- package/dist/{chunk-RCSQUCPO.js → chunk-KQBKD5DH.js} +2 -2
- package/dist/{chunk-TMDVLDAQ.js → chunk-KQYM5Q4M.js} +13 -13
- package/dist/{chunk-L3THP3F7.js → chunk-LICDCELW.js} +4 -4
- package/dist/{chunk-MBLV2JEW.js → chunk-M2YK63QJ.js} +3 -3
- package/dist/{chunk-P2YMJFUV.js → chunk-MOKQRBP6.js} +4 -4
- package/dist/{chunk-Z5QAHZMW.js → chunk-MQFAF5WF.js} +4 -4
- package/dist/{chunk-MIGJBAAV.js → chunk-NMHWLPL5.js} +2 -2
- package/dist/{chunk-Q6BSCMTF.js → chunk-OE5SPNUY.js} +3 -3
- package/dist/{chunk-DD2N34BA.js → chunk-OMI4FOKD.js} +1 -1
- package/dist/{chunk-SAUDBECW.js → chunk-OTG2JBD6.js} +7 -7
- package/dist/{chunk-VBYOWFFX.js → chunk-OXXRBIUI.js} +6 -6
- package/dist/{chunk-AK5YSBXN.js → chunk-PASDGQ2W.js} +1 -1
- package/dist/{chunk-XQ3WV2TN.js → chunk-PCUP5Z56.js} +14 -14
- package/dist/{chunk-WXSXY3KB.js → chunk-QQUKS2MB.js} +49 -25
- package/dist/{chunk-K2AQK4U7.js → chunk-RBYR44B6.js} +3 -3
- package/dist/{chunk-BLXTU3OW.js → chunk-RU4AHKSQ.js} +4 -4
- package/dist/{chunk-KYELHNLG.js → chunk-SS7EDGVA.js} +4 -4
- package/dist/{chunk-H5F4JGY4.js → chunk-SZRKAP7M.js} +2 -2
- package/dist/{chunk-QAIZFFYW.js → chunk-T3C2U6ZW.js} +5 -5
- package/dist/{chunk-GZZMUSE4.js → chunk-TLL3O3J4.js} +2 -2
- package/dist/{chunk-T6FFBHXL.js → chunk-TWHTLBSX.js} +3 -3
- package/dist/{chunk-IJ7NWEH3.js → chunk-TZKOBO6S.js} +1 -1
- package/dist/{chunk-ZTF4TU32.js → chunk-U22LQ5ZO.js} +1 -1
- package/dist/{chunk-ZBU6BNSV.js → chunk-USHCIV45.js} +3 -3
- package/dist/{chunk-L6ULVSMG.js → chunk-UYG3BSPV.js} +2 -2
- package/dist/{chunk-JQRVFOGP.js → chunk-VKHDBCXO.js} +5 -5
- package/dist/{chunk-C5Z7UG3R.js → chunk-WB6YVVNN.js} +1 -1
- package/dist/{chunk-VDEQEOYR.js → chunk-WDBWDGRU.js} +10 -10
- package/dist/{chunk-J76JIJKV.js → chunk-WMHMOR4C.js} +1 -1
- package/dist/{chunk-DS2ZCTHO.js → chunk-XDIBRXDP.js} +3 -3
- package/dist/{chunk-5645QNZN.js → chunk-XNIBAEPA.js} +7 -7
- package/dist/{chunk-SAJIIJIQ.js → chunk-XTSFNWGW.js} +1 -1
- package/dist/{chunk-NWQZUTYR.js → chunk-YMOXAW6S.js} +6 -6
- package/dist/{chunk-ILA555NU.js → chunk-YZXF5KRX.js} +1 -1
- package/dist/{chunk-3A3FS6PX.js → chunk-ZTH3B5HU.js} +5 -5
- package/dist/{codex-app-cards-switch-Q5KTCOEU.js → codex-app-cards-switch-WERD2IJE.js} +11 -11
- package/dist/{codex-card-routing-LE6DRUVC.js → codex-card-routing-7ZP2GHOQ.js} +2 -2
- package/dist/{codex-desktop-launch-TSYLN5TA.js → codex-desktop-launch-N5WGL5CB.js} +1 -1
- package/dist/{codex-session-launch-Z42Y4B5A.js → codex-session-launch-DXCQRRCW.js} +21 -21
- package/dist/{config-YCAHSHZ6.js → config-QV23FSAM.js} +3 -3
- package/dist/{global-upgrade-PIZGC2OG.js → global-upgrade-IIY7P4C5.js} +9 -9
- package/dist/{identity-FJRJQJG5.js → identity-ABY5TCBD.js} +4 -4
- package/dist/{live-capabilities-RDC5H7T5.js → live-capabilities-XOGZBIUX.js} +4 -4
- package/dist/{paths-2ZMXMHVL.js → paths-UBS7SLX2.js} +3 -3
- package/dist/reapply-HDDLTCBL.js +74 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-QBL77P6P.js → upgrade-lock-BVDUDIQ7.js} +4 -4
- package/dist/{usage-2WQFAZCW.js → usage-A7LAUHJE.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-VAYO3AMI.js +0 -74
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureCodexTrustsPusharyHooks,
|
|
6
6
|
hermesHistoryNeedsTheCliHelper,
|
|
7
7
|
recordInstalledHermesHistoryHelper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XDIBRXDP.js";
|
|
9
9
|
import {
|
|
10
10
|
hermesReceiptPaths,
|
|
11
11
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
refreshHermesPluginFiles,
|
|
15
15
|
refreshOpenClawPlugin,
|
|
16
16
|
shippedHermesPlugin
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FSTBKIRM.js";
|
|
18
18
|
import {
|
|
19
19
|
fxIgnoresInstructionsFile,
|
|
20
20
|
fxInstructionsBody,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
macAppFxBridge,
|
|
24
24
|
refreshClineKey,
|
|
25
25
|
switchFxHttpEntryToBridge
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-B3UFIVCF.js";
|
|
27
27
|
import {
|
|
28
28
|
OPENCODE_HOOK_BINARY,
|
|
29
29
|
agentHookOwner,
|
|
@@ -36,13 +36,16 @@ import {
|
|
|
36
36
|
openCodePluginDir,
|
|
37
37
|
openCodeWired,
|
|
38
38
|
withOpenCodeAskRules
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XNIBAEPA.js";
|
|
40
|
+
import {
|
|
41
|
+
detectClaudeVersion
|
|
42
|
+
} from "./chunk-7R5UO3UQ.js";
|
|
40
43
|
import {
|
|
41
44
|
addCompatibleHooks,
|
|
42
45
|
compatibleConfigFile,
|
|
43
46
|
compatibleInstructionsFile,
|
|
44
47
|
hasCompatibleHooks
|
|
45
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-T3C2U6ZW.js";
|
|
46
49
|
import {
|
|
47
50
|
GEMINI_HOOK_BINARY,
|
|
48
51
|
addGeminiHooks,
|
|
@@ -54,16 +57,13 @@ import {
|
|
|
54
57
|
geminiWired,
|
|
55
58
|
hasGeminiHooks,
|
|
56
59
|
planHooks
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import {
|
|
59
|
-
detectClaudeVersion
|
|
60
|
-
} from "./chunk-4L7J6BRJ.js";
|
|
60
|
+
} from "./chunk-MQFAF5WF.js";
|
|
61
61
|
import {
|
|
62
62
|
transcriptsEnabled
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-4T5IHHPF.js";
|
|
64
64
|
import {
|
|
65
65
|
KEY_FILE_MODE
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-EVRIPQVH.js";
|
|
67
67
|
import {
|
|
68
68
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
69
69
|
CLAUDE_HOOK_BINARY,
|
|
@@ -110,13 +110,13 @@ import {
|
|
|
110
110
|
renderAgentInstructions,
|
|
111
111
|
supportedClaudeEvents,
|
|
112
112
|
vscodePluginMcp
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-2I2SXVMP.js";
|
|
114
114
|
import {
|
|
115
115
|
formatVersion,
|
|
116
116
|
hookCommandsUseBareNames,
|
|
117
117
|
resolveGlobalBinDir,
|
|
118
118
|
resolveGlobalBinary
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-RU4AHKSQ.js";
|
|
120
120
|
import {
|
|
121
121
|
readJsonSafe,
|
|
122
122
|
writeFileAtomic,
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
HOOK_COMPATIBLE_PROFILES,
|
|
127
127
|
isCompatibleAgentType,
|
|
128
128
|
isRecord
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-QQUKS2MB.js";
|
|
130
130
|
|
|
131
131
|
// src/reapply.ts
|
|
132
132
|
import { dirname, join } from "path";
|
|
@@ -9198,6 +9198,7 @@ var CAPABILITY_PATTERNS = {
|
|
|
9198
9198
|
"Bash(mkfs:*)"
|
|
9199
9199
|
]
|
|
9200
9200
|
};
|
|
9201
|
+
var DEFAULT_PUSH_WINDOW_SECONDS = 20;
|
|
9201
9202
|
var MAX_PUSH_WINDOW_SECONDS = 300;
|
|
9202
9203
|
var DECISION_EPISODE_SCHEMA_VERSION = 1;
|
|
9203
9204
|
var DELTA_TOKEN_RULE_VERSION = 2;
|
|
@@ -9468,8 +9469,19 @@ var unmatchedPolicyOf = (config, toolName) => ({
|
|
|
9468
9469
|
pushFirstSeconds: config.defaultPushFirstSeconds ?? 20
|
|
9469
9470
|
});
|
|
9470
9471
|
var sessionToolGrantCannotCover = (toolName, arg, toolInput) => typeof arg === "string" && commandNeedsAPerson(toolName, arg) || parseMcpToolName(toolName) !== void 0 && (toolInput === void 0 || !mcpToolInputOnlyReads(toolName, toolInput));
|
|
9472
|
+
var heldUnderAGeneralRule = (config, tool, mode) => ({
|
|
9473
|
+
tool,
|
|
9474
|
+
timeoutSeconds: config.defaultTimeoutSeconds,
|
|
9475
|
+
timeoutAction: "wait",
|
|
9476
|
+
mode,
|
|
9477
|
+
pushFirstSeconds: config.defaultPushFirstSeconds ?? DEFAULT_PUSH_WINDOW_SECONDS
|
|
9478
|
+
});
|
|
9479
|
+
var governedByAnExactPathRule = (rank) => rank === "exact";
|
|
9480
|
+
var THE_FLOOR_HOLDS = "holds";
|
|
9481
|
+
var THE_FLOOR_SET_ASIDE = "set_aside";
|
|
9482
|
+
var generalAllowMeetsTheProtectedFileFloor = (rank, policy, toolName, toolInput) => isAutoApprove(policy) && !governedByAnExactPathRule(rank) && editTargetNeedsAPersonEvenWhenAllowed(toolName, toolInput);
|
|
9471
9483
|
var stricterOfTheReadings = (asWritten, asSpelled, unmatched) => comparePolicyStrictness(asWritten?.policy ?? unmatched, asSpelled?.policy ?? unmatched) > 0 ? asWritten : asSpelled;
|
|
9472
|
-
var resolvePolicyReading = (reach, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId) => {
|
|
9484
|
+
var resolvePolicyReading = (floor, reach, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId) => {
|
|
9473
9485
|
const args = toolInput ? policyArgForms(toolName, toolInput, cwd) : [];
|
|
9474
9486
|
const arg = args[0];
|
|
9475
9487
|
const unmatched = unmatchedPolicyOf(config, toolName);
|
|
@@ -9484,20 +9496,17 @@ var resolvePolicyReading = (reach, config, toolName, modeOverride, toolInput, cw
|
|
|
9484
9496
|
const aRuleNamesASpelling = isSpecificArgumentRank(asSpelled?.rank);
|
|
9485
9497
|
const approvedByReadOnlyFloor = !isAutoDeny(base) && (shellReadOnlyFloorApplies(toolName, arg, match?.rank) && !aRuleNamesASpelling || coordinationFloorApplies(toolName, match?.rank));
|
|
9486
9498
|
if (governedBySessionToolGrant && !approvedByReadOnlyFloor && sessionToolGrantCannotCover(toolName, arg, toolInput)) {
|
|
9487
|
-
return resolvePolicyReading(reach, withoutSessionToolGrants(config), toolName, modeOverride, toolInput, cwd, repoKey, sessionId);
|
|
9499
|
+
return resolvePolicyReading(floor, reach, withoutSessionToolGrants(config), toolName, modeOverride, toolInput, cwd, repoKey, sessionId);
|
|
9488
9500
|
}
|
|
9489
9501
|
if (approvedByReadOnlyFloor) {
|
|
9490
9502
|
base = autoApprove(base.tool);
|
|
9491
9503
|
}
|
|
9492
9504
|
const wouldAutoApprove = isAutoApprove(base);
|
|
9493
9505
|
if (!governedBySpecificRule && wouldAutoApprove && SHELL_DIALECT_BY_TOOL.has(toolName) && typeof arg === "string" && (commandIsDestructive(toolName, arg) || governedByStandingShellAllow && commandHasAVisibleConsequence(toolName, arg))) {
|
|
9494
|
-
base =
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
mode: governingMode,
|
|
9499
|
-
pushFirstSeconds: config.defaultPushFirstSeconds ?? 20
|
|
9500
|
-
};
|
|
9506
|
+
base = heldUnderAGeneralRule(config, base.tool, governingMode);
|
|
9507
|
+
}
|
|
9508
|
+
if (floor === THE_FLOOR_HOLDS && generalAllowMeetsTheProtectedFileFloor(match?.rank, base, toolName, toolInput)) {
|
|
9509
|
+
base = heldUnderAGeneralRule(config, base.tool, governingMode);
|
|
9501
9510
|
}
|
|
9502
9511
|
const effectiveOverride = modeOverride ?? config.modeOverride;
|
|
9503
9512
|
if (effectiveOverride) {
|
|
@@ -9505,13 +9514,14 @@ var resolvePolicyReading = (reach, config, toolName, modeOverride, toolInput, cw
|
|
|
9505
9514
|
}
|
|
9506
9515
|
return base;
|
|
9507
9516
|
};
|
|
9508
|
-
var policyUnderOneArrowReading = (config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId) => {
|
|
9509
|
-
const withoutRunners = resolvePolicyReading(SPELLS_WITHOUT_COMMAND_RUNNERS, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId);
|
|
9510
|
-
const withRunners = resolvePolicyReading(SPELLS_COMMAND_RUNNERS_TOO, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId);
|
|
9517
|
+
var policyUnderOneArrowReading = (floor, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId) => {
|
|
9518
|
+
const withoutRunners = resolvePolicyReading(floor, SPELLS_WITHOUT_COMMAND_RUNNERS, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId);
|
|
9519
|
+
const withRunners = resolvePolicyReading(floor, SPELLS_COMMAND_RUNNERS_TOO, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId);
|
|
9511
9520
|
return strictestReadingOf(withRunners, withoutRunners);
|
|
9512
9521
|
};
|
|
9513
9522
|
var keepingTheStrictestReading = (strictest, reading) => strictestReadingOf(reading, strictest);
|
|
9514
|
-
var
|
|
9523
|
+
var policyUnderTheFloor = (floor, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId) => underEachArrowReading(() => policyUnderOneArrowReading(floor, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId)).reduce(keepingTheStrictestReading);
|
|
9524
|
+
var resolvePolicy = (config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId) => policyUnderTheFloor(THE_FLOOR_HOLDS, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId);
|
|
9515
9525
|
var VERDICT_RESTRAINT = { allow: 0, requires_human: 1, deny: 2 };
|
|
9516
9526
|
var verdictRestraint = (policy) => VERDICT_RESTRAINT[verdictForPolicy(policy)];
|
|
9517
9527
|
var asksAtLeastAsHard = (policy, than) => restraintRank(policy) >= restraintRank(than) && TIMEOUT_ACTION_STRICTNESS[policy.timeoutAction] >= TIMEOUT_ACTION_STRICTNESS[than.timeoutAction] && policy.timeoutSeconds >= than.timeoutSeconds && policy.pushFirstSeconds <= than.pushFirstSeconds;
|
|
@@ -9544,10 +9554,16 @@ var TIMEOUT_ACTION_STRICTNESS = {
|
|
|
9544
9554
|
};
|
|
9545
9555
|
var comparePolicyStrictness = (a, b) => restraintRank(a) - restraintRank(b) || TIMEOUT_ACTION_STRICTNESS[a.timeoutAction] - TIMEOUT_ACTION_STRICTNESS[b.timeoutAction];
|
|
9546
9556
|
var strictestPolicy = (current, challenger) => comparePolicyStrictness(current, challenger) > 0 ? current : challenger;
|
|
9547
|
-
var
|
|
9548
|
-
if (toolInputs.length === 0) return
|
|
9549
|
-
return toolInputs.map((input) =>
|
|
9550
|
-
};
|
|
9557
|
+
var policyAcrossUnderTheFloor = (floor, config, toolName, modeOverride, toolInputs, cwd, repoKey, sessionId) => {
|
|
9558
|
+
if (toolInputs.length === 0) return policyUnderTheFloor(floor, config, toolName, modeOverride, void 0, cwd, repoKey, sessionId);
|
|
9559
|
+
return toolInputs.map((input) => policyUnderTheFloor(floor, config, toolName, modeOverride, input, cwd, repoKey, sessionId)).reduce(strictestPolicy);
|
|
9560
|
+
};
|
|
9561
|
+
var resolvePolicyAcross = (config, toolName, modeOverride, toolInputs, cwd, repoKey, sessionId) => policyAcrossUnderTheFloor(THE_FLOOR_HOLDS, config, toolName, modeOverride, toolInputs, cwd, repoKey, sessionId);
|
|
9562
|
+
var repoKeyTheGateResolvesUnder = (input) => input.sharedRepoKey ?? input.repoKey;
|
|
9563
|
+
var policyOfACallUnderTheFloor = (floor, input, toolInput) => policyUnderTheFloor(floor, input.config, input.toolName, input.modeState.mode, toolInput, input.cwd, repoKeyTheGateResolvesUnder(input), input.sessionId);
|
|
9564
|
+
var theFloorHoldsAnAllowOn = (input, toolInput) => editTargetNeedsAPersonEvenWhenAllowed(input.toolName, toolInput) && isAutoApprove(policyOfACallUnderTheFloor(THE_FLOOR_SET_ASIDE, input, toolInput)) && !isAutoApprove(policyOfACallUnderTheFloor(THE_FLOOR_HOLDS, input, toolInput));
|
|
9565
|
+
var theProtectedFileFloorHoldsAnAllow = (input) => input.toolInputs.some((toolInput) => theFloorHoldsAnAllowOn(input, toolInput));
|
|
9566
|
+
var policyAsTheRulesWroteIt = (input) => policyAcrossUnderTheFloor(THE_FLOOR_SET_ASIDE, input.config, input.toolName, input.modeState.mode, input.toolInputs, input.cwd, repoKeyTheGateResolvesUnder(input), input.sessionId);
|
|
9551
9567
|
var isModeStateDegraded = (state) => state?.degraded === true;
|
|
9552
9568
|
var GATE_ALLOW_SOURCE = {
|
|
9553
9569
|
allowlist: "allowlist",
|
|
@@ -9711,7 +9727,7 @@ var bypassModeCovers = (toolName, toolInput) => {
|
|
|
9711
9727
|
if (SHELL_DIALECT_BY_TOOL.has(toolName)) {
|
|
9712
9728
|
return arg !== void 0 && !commandIsDestructive(toolName, arg) && !commandHasAConsequenceWithPermissionsOff(toolName, arg);
|
|
9713
9729
|
}
|
|
9714
|
-
if (FILE_EDIT_TOOLS.has(toolName)) return arg !== void 0 && !LINE_BREAK.test(arg) && !
|
|
9730
|
+
if (FILE_EDIT_TOOLS.has(toolName)) return arg !== void 0 && !LINE_BREAK.test(arg) && !fileEditNeedsAPersonEvenWhenAllowed(toolName, arg);
|
|
9715
9731
|
return mcpToolOnlyReads(toolName) && mcpToolInputOnlyReads(toolName, toolInput);
|
|
9716
9732
|
};
|
|
9717
9733
|
var aChosenRuleGovernsInEitherRepository = (input, counts = everyRule) => aChosenRuleGoverns(input, counts) || input.sharedRepoKey !== void 0 && input.sharedRepoKey !== input.repoKey && aChosenRuleGoverns({ ...input, repoKey: input.sharedRepoKey }, counts);
|
|
@@ -9755,6 +9771,7 @@ var policyForScopeQuestion = (policy) => policy.timeoutAction === "approve" ? {
|
|
|
9755
9771
|
timeoutAction: "wait",
|
|
9756
9772
|
pushFirstSeconds: policy.pushFirstSeconds > 0 ? policy.pushFirstSeconds : SCOPE_QUESTION_FIRST_WAIT_SECONDS
|
|
9757
9773
|
} : policy;
|
|
9774
|
+
var scopeQuestionBasisOf = (input, askedPolicy) => theProtectedFileFloorHoldsAnAllow(input) ? policyAsTheRulesWroteIt(input) : askedPolicy;
|
|
9758
9775
|
var isAReading = (reading) => reading !== null && reading.trim() !== "";
|
|
9759
9776
|
var readingsOfScriptsWrittenForAShell = (command) => readingsOfNestedShellScripts(command, scriptsWrittenForAShellOrAnEval);
|
|
9760
9777
|
var extraReadingsOf = (toolInput) => {
|
|
@@ -9846,7 +9863,7 @@ var gateVerdictUnderOneArrowReading = (rawInput) => {
|
|
|
9846
9863
|
const scopeReason = scopeChangeReason(scopeVerdict);
|
|
9847
9864
|
return {
|
|
9848
9865
|
kind: "gate",
|
|
9849
|
-
policy: scopeReason ? policyForScopeQuestion(askedPolicy) : askedPolicy,
|
|
9866
|
+
policy: scopeReason ? policyForScopeQuestion(scopeQuestionBasisOf(input, askedPolicy)) : askedPolicy,
|
|
9850
9867
|
scopeReason,
|
|
9851
9868
|
scopePath: scopeReason && "path" in scopeVerdict ? widenablePath(scopeVerdict.path) : void 0
|
|
9852
9869
|
};
|
|
@@ -9911,7 +9928,11 @@ var namesASecretOrWorkflowFile = (path) => {
|
|
|
9911
9928
|
return SECRET_FILE_NAME.test(basenameOf(written)) || CI_WORKFLOW_FILE.test(written);
|
|
9912
9929
|
};
|
|
9913
9930
|
var fileEditNeedsAPerson = (toolName, path) => FILE_EDIT_TOOLS.has(toolName) && namesASecretOrWorkflowFile(path);
|
|
9914
|
-
var
|
|
9931
|
+
var fileEditNeedsAPersonEvenWhenAllowed = (toolName, path) => FILE_EDIT_TOOLS.has(toolName) && pathNeedsAPersonToChange(path);
|
|
9932
|
+
var editTargetNeedsAPersonEvenWhenAllowed = (toolName, toolInput) => {
|
|
9933
|
+
const path = toolInput === void 0 ? void 0 : extractPolicyArg(toolName, toolInput);
|
|
9934
|
+
return path !== void 0 && fileEditNeedsAPersonEvenWhenAllowed(toolName, path);
|
|
9935
|
+
};
|
|
9915
9936
|
var editsAFileThatNeedsAPerson = ({ toolName, toolInputs }) => toolInputs.some((toolInput) => {
|
|
9916
9937
|
const path = extractPolicyArg(toolName, toolInput);
|
|
9917
9938
|
return path !== void 0 && fileEditNeedsAPerson(toolName, path);
|
|
@@ -9924,13 +9945,14 @@ var runsADestructiveCommand = (input) => underEitherArrowReading(() => runsADest
|
|
|
9924
9945
|
var codexCallIsDestructive = (input, call) => call.deletesFiles || runsADestructiveCommand(input);
|
|
9925
9946
|
var connectorCallOnlyReads = ({ toolName, toolInputs }) => isCodexConnectorTool(toolName) && mcpToolOnlyReads(toolName) && !mcpToolAppNamesADatabase(toolName) && toolInputs.length > 0 && toolInputs.every((toolInput) => mcpToolInputOnlyReads(toolName, toolInput));
|
|
9926
9947
|
var fullAccessRunsThisConnectorReadUnasked = (input, verdict, call) => !codexRaisesItsOwnPrompts(call.permissionMode) && scopeBreachReasonOf(verdict) === void 0 && noModeOverrideIsActive(input) && connectorCallOnlyReads(input);
|
|
9927
|
-
var codexCallNeedsAPerson = (input, verdict, call) => onlyCodexPreToolUseCanAsk(verdict, call.permissionMode) && !fullAccessRunsThisConnectorReadUnasked(input, verdict, call) || verdict.kind === "gate" && (aChosenRuleGoverns(input) || call.deletesFiles || runsACommandThatNeedsAPerson(input) || editsAFileThatNeedsAPerson(input));
|
|
9948
|
+
var codexCallNeedsAPerson = (input, verdict, call) => onlyCodexPreToolUseCanAsk(verdict, call.permissionMode) && !fullAccessRunsThisConnectorReadUnasked(input, verdict, call) || verdict.kind === "gate" && (aChosenRuleGoverns(input) || call.deletesFiles || runsACommandThatNeedsAPerson(input) || editsAFileThatNeedsAPerson(input) || theProtectedFileFloorHoldsAnAllow(input));
|
|
9928
9949
|
var CODEX_PRE_TOOL_USE_PASSES = { kind: "pass" };
|
|
9950
|
+
var codexOwnPromptCannotTakeTheCall = (input, call) => codexCallIsDestructive(input, call) || theProtectedFileFloorHoldsAnAllow(input);
|
|
9929
9951
|
var codexPreToolUseDelivery = (input, verdict, call) => {
|
|
9930
9952
|
if (verdict.kind !== "gate" || !codexCallNeedsAPerson(input, verdict, call)) return CODEX_PRE_TOOL_USE_PASSES;
|
|
9931
|
-
const noPromptOfItsOwn = codexHasNoPromptOfItsOwn(scopeBreachReasonOf(verdict), call.permissionMode);
|
|
9953
|
+
const noPromptOfItsOwn = theProtectedFileFloorHoldsAnAllow(input) || codexHasNoPromptOfItsOwn(scopeBreachReasonOf(verdict), call.permissionMode);
|
|
9932
9954
|
const mode = noPromptOfItsOwn ? approvalModeWithoutLocalPrompt(verdict.policy.mode) : verdict.policy.mode;
|
|
9933
|
-
if (mode === "push_first" && !
|
|
9955
|
+
if (mode === "push_first" && !codexOwnPromptCannotTakeTheCall(input, call)) return CODEX_PRE_TOOL_USE_PASSES;
|
|
9934
9956
|
return { kind: "ask", policy: { ...verdict.policy, mode }, agentPromptFollows: !noPromptOfItsOwn };
|
|
9935
9957
|
};
|
|
9936
9958
|
var MAX_AGENT_PERMISSION_RULES_PER_KIND = 256;
|
|
@@ -10165,8 +10187,10 @@ var verdictCanHoldTheCall = (verdict) => verdict.kind === "gate" && !approvalWai
|
|
|
10165
10187
|
var approvalRouteOutranksAutoMode = (input, verdict, permissionMode) => permissionMode === AUTO_PERMISSION_MODE && PRETOOLUSE_HANDLED_TOOLS.has(input.toolName) && verdictCanHoldTheCall(verdict) && callWaitsForSomeoneElse(input);
|
|
10166
10188
|
var mcpCallCouldBeHeldForSomeoneElse = (toolName, permissionMode) => permissionMode === AUTO_PERMISSION_MODE && parseMcpToolName(toolName) !== void 0 && !isPusharyOwnOrConnectorTool(toolName);
|
|
10167
10189
|
var approvalRouteHoldsMcpCall = (input, verdict, permissionMode) => mcpCallCouldBeHeldForSomeoneElse(input.toolName, permissionMode) && verdictCanHoldTheCall(verdict) && namedRouteWaitsForSomeoneElse(input);
|
|
10168
|
-
var claudeAllowlistOwnsCall = (input, verdict, permissionMode, rules) => rules !== null && verdict.kind === "gate" && !verdict.scopeReason && !
|
|
10169
|
-
var
|
|
10190
|
+
var claudeAllowlistOwnsCall = (input, verdict, permissionMode, rules) => rules !== null && verdict.kind === "gate" && !verdict.scopeReason && !aChosenRuleGovernsInEitherRepository(input) && !isAskedInEveryMode(input.toolName) && claudeConsultsItsAllowlist(permissionMode) && agentRulesAllowEveryInput(rules, input.toolName, input.toolInputs, input.cwd);
|
|
10191
|
+
var onlyAnAllowGovernsAProtectedFileEdit = (input) => theProtectedFileFloorHoldsAnAllow(input) && !aChosenRuleGovernsInEitherRepository(input, ruleAsksOrRefuses);
|
|
10192
|
+
var aChosenRuleHoldsTheCall = (input) => aChosenRuleGovernsInEitherRepository(input) && !onlyAnAllowGovernsAProtectedFileEdit(input);
|
|
10193
|
+
var claudePromptTakesTheCall = (facts, input, verdict) => verdict.kind === "gate" && !verdict.scopeReason && terminalStaysLiveForTheCall(facts) && noModeOverrideIsActive(input) && !aChosenRuleHoldsTheCall(input) && !editGoesToTheAgentsPrompt({ source: facts.source, event: "PreToolUse", permissionMode: facts.permissionMode }, input, verdict);
|
|
10170
10194
|
var isProvenModeResponse = (value) => isRecord(value) && typeof value.kill === "boolean";
|
|
10171
10195
|
var toPolicyVersion = (value) => typeof value === "string" || typeof value === "number" ? String(value) : null;
|
|
10172
10196
|
var modeStateFromResponse = (data) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4HQQRM3I.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-4GJZTJO6.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-QQUKS2MB.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QQUKS2MB.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -600,9 +600,9 @@ var installGlobally = (options) => {
|
|
|
600
600
|
}
|
|
601
601
|
const started = (async () => {
|
|
602
602
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
603
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
604
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
605
|
-
const { autoUpdateLock } = await import("./paths-
|
|
603
|
+
const { withUpgradeLock } = await import("./global-upgrade-IIY7P4C5.js");
|
|
604
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-BVDUDIQ7.js");
|
|
605
|
+
const { autoUpdateLock } = await import("./paths-UBS7SLX2.js");
|
|
606
606
|
let result = "skipped";
|
|
607
607
|
const install = async () => {
|
|
608
608
|
const planned = readPlannedSetupInstall(process.platform);
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
} from "./chunk-WHB622LP.js";
|
|
14
14
|
import {
|
|
15
15
|
keyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EVRIPQVH.js";
|
|
17
17
|
import {
|
|
18
18
|
getBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-66OVH5CY.js";
|
|
20
20
|
import {
|
|
21
21
|
NPX_LATEST_COMMAND
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4GJZTJO6.js";
|
|
23
23
|
import {
|
|
24
24
|
isValidApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QQUKS2MB.js";
|
|
26
26
|
|
|
27
27
|
// src/cli/login-ui.ts
|
|
28
28
|
import { hostname } from "os";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TWHTLBSX.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-QCGNGEGE.js";
|
|
20
20
|
import {
|
|
21
21
|
xml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YMOXAW6S.js";
|
|
23
23
|
import {
|
|
24
24
|
writeFileAtomic
|
|
25
25
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MQFAF5WF.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D2PW657V.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DCAA3IYO.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-2I2SXVMP.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-QQUKS2MB.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2I2SXVMP.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-QQUKS2MB.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -536,8 +536,8 @@ var loadedOnce = (load) => {
|
|
|
536
536
|
};
|
|
537
537
|
|
|
538
538
|
// src/codex-desktop-proxy.ts
|
|
539
|
-
var loadThePhone = () => import("./api-
|
|
540
|
-
var loadTheCardRouting = () => import("./codex-card-routing-
|
|
539
|
+
var loadThePhone = () => import("./api-ZNICU66O.js");
|
|
540
|
+
var loadTheCardRouting = () => import("./codex-card-routing-7ZP2GHOQ.js");
|
|
541
541
|
var theFirstCardLoadsAgain = () => {
|
|
542
542
|
};
|
|
543
543
|
var ASKS_WITHOUT_ROUTING = {};
|
|
@@ -1097,7 +1097,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1097
1097
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1098
1098
|
}
|
|
1099
1099
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1100
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1100
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-WERD2IJE.js");
|
|
1101
1101
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1102
1102
|
}
|
|
1103
1103
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -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-AVTCKBDJ.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WB6YVVNN.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-66OVH5CY.js";
|
|
11
11
|
import {
|
|
12
12
|
writeJsonAtomicDurable
|
|
13
13
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
compressTranscriptRecord,
|
|
16
16
|
redactSecretsFromContent,
|
|
17
17
|
transcriptRecordPlaintext
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QQUKS2MB.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } 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-2I2SXVMP.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CXQWDQCJ.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QQUKS2MB.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LICDCELW.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BMM6BM7M.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OE5SPNUY.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-EVRIPQVH.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QQUKS2MB.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YMOXAW6S.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MQFAF5WF.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DCAA3IYO.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
changedRecipientsMessage,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
uploadTranscriptRecords,
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-USHCIV45.js";
|
|
28
28
|
import {
|
|
29
29
|
transcriptEnvironmentPreference,
|
|
30
30
|
transcriptsEnabled
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4T5IHHPF.js";
|
|
32
32
|
import {
|
|
33
33
|
external_exports,
|
|
34
34
|
ownedOnlyByThisUser,
|
|
@@ -36,19 +36,19 @@ import {
|
|
|
36
36
|
} from "./chunk-P6DUWKAO.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-WB6YVVNN.js";
|
|
40
40
|
import {
|
|
41
41
|
readTranscriptPreference
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-EVRIPQVH.js";
|
|
43
43
|
import {
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-2I2SXVMP.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-66OVH5CY.js";
|
|
52
52
|
import {
|
|
53
53
|
writeJsonAtomic,
|
|
54
54
|
writeJsonAtomicDurable
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
isHookSource,
|
|
62
62
|
isRecord,
|
|
63
63
|
redactSecretsFromContent
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-QQUKS2MB.js";
|
|
65
65
|
|
|
66
66
|
// src/transcript-registration.ts
|
|
67
67
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-USHCIV45.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
|
serviceNodeFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YMOXAW6S.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-2I2SXVMP.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-RU4AHKSQ.js";
|
|
25
25
|
import {
|
|
26
26
|
getPackageVersion,
|
|
27
27
|
globalTranscriptRegisterEntry
|