pushary 1.9.218 → 1.9.219
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 +6 -0
- package/dist/{api-KAPP3NXC.js → api-HLSVV37E.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 +26 -26
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +34 -34
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -46
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +21 -3
- package/dist/bin/pushary-doctor.js +47 -47
- 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 +31 -31
- 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 +12 -12
- 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 +32 -32
- 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 +14 -14
- package/dist/bin/pushary-setup.js +57 -57
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -36
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +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-DTMI6ILY.js → chunk-2NIFT2XQ.js} +1 -1
- package/dist/{chunk-IB5XJH6W.js → chunk-33BJNS3C.js} +4 -4
- package/dist/{chunk-IW3V2GLS.js → chunk-3LJAZXQH.js} +1 -1
- package/dist/{chunk-4W4VER53.js → chunk-3RON5GEL.js} +5 -5
- package/dist/{chunk-FX2P2HB6.js → chunk-43GTIQA6.js} +6 -6
- package/dist/{chunk-7UJ6J7RI.js → chunk-4I2SNDAP.js} +2 -2
- package/dist/{chunk-FB2XRODD.js → chunk-4JC4KEAK.js} +1 -1
- package/dist/{chunk-X57OU4QH.js → chunk-4OU6AMW2.js} +4 -4
- package/dist/{chunk-7E4ZHEHK.js → chunk-5T73V757.js} +1 -1
- package/dist/{chunk-UI5TGZPZ.js → chunk-5YKUH4IX.js} +1 -1
- package/dist/{chunk-I6YFKG7O.js → chunk-5ZGD6AZV.js} +1 -1
- package/dist/{chunk-NUYODLZP.js → chunk-63UN5EUK.js} +7 -7
- package/dist/{chunk-UHYMKUJJ.js → chunk-6HEYYF4M.js} +3 -3
- package/dist/{chunk-T5KYMIK5.js → chunk-6LRLLOK2.js} +3 -3
- package/dist/{chunk-DULFAB47.js → chunk-A5HEOPN3.js} +3 -3
- package/dist/{chunk-6XI2JS76.js → chunk-AALWOL35.js} +7 -7
- package/dist/{chunk-EQ7WCM6M.js → chunk-ALBZHD3K.js} +4 -4
- package/dist/{chunk-KOZR4SUM.js → chunk-AMVK36AI.js} +4 -4
- package/dist/{chunk-UJ4TYBWG.js → chunk-ANENQIII.js} +12 -12
- package/dist/{chunk-LGMHSJGA.js → chunk-BLE5VR4N.js} +3 -3
- package/dist/{chunk-QHWVWUTB.js → chunk-BX43EONR.js} +5 -5
- package/dist/{chunk-2DYPFCHP.js → chunk-CXGE57RE.js} +1 -1
- package/dist/{chunk-JUCKFPQD.js → chunk-CZJZ4NTJ.js} +4 -4
- package/dist/{chunk-SR456TO5.js → chunk-D67H74VR.js} +1 -1
- package/dist/{chunk-H347UWHS.js → chunk-DG6YDFFC.js} +2 -2
- package/dist/{chunk-XY6HEXPD.js → chunk-DNOOPEMW.js} +1 -1
- package/dist/{chunk-CR64Q25K.js → chunk-DP6M4VNO.js} +1 -1
- package/dist/{chunk-S7EYWMU6.js → chunk-EHMLODBU.js} +3 -3
- package/dist/{chunk-YGEI4VR3.js → chunk-EYIV7NHX.js} +5 -5
- package/dist/{chunk-E4UGLCWP.js → chunk-FIRKU3MH.js} +4 -4
- package/dist/{chunk-BVJDALPL.js → chunk-G2H3TZIT.js} +1 -1
- package/dist/{chunk-6DFUPH3E.js → chunk-G6HBBR6G.js} +2 -2
- package/dist/{chunk-75PCOKGW.js → chunk-GPYHVSYW.js} +1 -1
- package/dist/{chunk-REIBOLDO.js → chunk-H3Q2UISR.js} +1 -1
- package/dist/{chunk-4XXYTUOZ.js → chunk-HYTYYZCW.js} +55 -24
- package/dist/{chunk-3PWUPLAM.js → chunk-I5C5JTD7.js} +1 -1
- package/dist/{chunk-P5FXFD5N.js → chunk-I5ILQPMH.js} +8 -8
- package/dist/{chunk-RLHLRZCK.js → chunk-IBEX5YUN.js} +4 -4
- package/dist/{chunk-ETMDAJN6.js → chunk-J355LTH7.js} +2 -2
- package/dist/{chunk-JDCUOGVN.js → chunk-JWRV7KGV.js} +5 -5
- package/dist/{chunk-2ICXDSCX.js → chunk-K26RWC2P.js} +2 -2
- package/dist/{chunk-OKD4EGJH.js → chunk-KEG2RUV2.js} +6 -6
- package/dist/{chunk-25P4G2QQ.js → chunk-KGSIBDQH.js} +2 -2
- package/dist/{chunk-SWETSBQJ.js → chunk-KLSNXMZT.js} +5 -5
- package/dist/{chunk-OZCTQZVB.js → chunk-LQ5W3PQI.js} +1 -1
- package/dist/{chunk-H3RGQFR4.js → chunk-LZU2OKF5.js} +3 -3
- package/dist/{chunk-RYUMJQRU.js → chunk-M5C6BAYU.js} +3 -3
- package/dist/{chunk-GDUBHZND.js → chunk-MMONXTP4.js} +2 -2
- package/dist/{chunk-ERE62LY4.js → chunk-MTARW7ZM.js} +1 -1
- package/dist/{chunk-OX3PVR7V.js → chunk-MZEHIL5X.js} +6 -6
- package/dist/{chunk-KC5WHTKG.js → chunk-N4GJSAVY.js} +3 -3
- package/dist/{chunk-5DR7GNJ2.js → chunk-NJGZLUXW.js} +2 -2
- package/dist/{chunk-RVBOBBRE.js → chunk-NOA5325L.js} +5 -5
- package/dist/{chunk-CF7VMW3M.js → chunk-O3VKOGTN.js} +2 -2
- package/dist/{chunk-A7JD7TYZ.js → chunk-OFJ63I2T.js} +5 -5
- package/dist/{chunk-S6W44P3F.js → chunk-OR6LG45T.js} +9 -9
- package/dist/{chunk-W4ZJEV3I.js → chunk-P6GK3NJF.js} +5 -5
- package/dist/{chunk-MXVG6TTT.js → chunk-PZZFRUGH.js} +1 -1
- package/dist/{chunk-KUEOPN6X.js → chunk-QNN7PXJC.js} +3 -3
- package/dist/{chunk-6WI57GDA.js → chunk-QP5K3VAU.js} +6 -6
- package/dist/{chunk-R5CJDUMQ.js → chunk-QVPPK677.js} +1 -1
- package/dist/{chunk-RQKQ62YB.js → chunk-R7L65RZQ.js} +10 -10
- package/dist/{chunk-VKGPSCFZ.js → chunk-R7TYJMIX.js} +5 -5
- package/dist/{chunk-4RLTTTE2.js → chunk-SSGEIHML.js} +4 -4
- package/dist/{chunk-FXS5HCMC.js → chunk-SXB4UCSW.js} +12 -12
- package/dist/{chunk-CLSLZ4SX.js → chunk-T7ITVKNC.js} +1 -1
- package/dist/{chunk-OBCGSXFO.js → chunk-TNFUBZZP.js} +4 -4
- package/dist/{chunk-DRFOMZGE.js → chunk-TOUN7PUZ.js} +1 -1
- package/dist/{chunk-P2M3JLQR.js → chunk-TPWFAGYZ.js} +2 -2
- package/dist/{chunk-AQQYMXN4.js → chunk-V4STGM2V.js} +5 -5
- package/dist/{chunk-GCQ47XXW.js → chunk-VCNVOXSF.js} +3 -3
- package/dist/{chunk-7556QS55.js → chunk-VWIKYJMA.js} +16 -16
- package/dist/{chunk-6TVWBVVH.js → chunk-VY3WDMN5.js} +1 -1
- package/dist/{chunk-2M2IASWF.js → chunk-W7HBQJBU.js} +6 -6
- package/dist/{chunk-CFDTAJM4.js → chunk-WGOQNQAJ.js} +1 -1
- package/dist/{chunk-FLJMT5QO.js → chunk-XAAUGAEC.js} +3 -3
- package/dist/{chunk-FRZE6LMN.js → chunk-YFYD7TZX.js} +2 -2
- package/dist/{chunk-HNF5GFG2.js → chunk-ZAJIKNSK.js} +2 -2
- package/dist/{chunk-RGBEEMLB.js → chunk-ZDI5CXNP.js} +2 -2
- package/dist/{codex-app-cards-switch-UVKORLOE.js → codex-app-cards-switch-QX2IJVRJ.js} +11 -11
- package/dist/{codex-card-routing-Y5E2FYMQ.js → codex-card-routing-UZ3MIVHK.js} +2 -2
- package/dist/{codex-desktop-launch-AULTV62U.js → codex-desktop-launch-YUJINX2O.js} +1 -1
- package/dist/{codex-session-launch-SBXEHQ7S.js → codex-session-launch-MVWZBHWE.js} +20 -20
- package/dist/{config-4BCUBF26.js → config-IUICQWNS.js} +3 -3
- package/dist/{global-upgrade-4XUZJ2K2.js → global-upgrade-L2FBXTHX.js} +9 -9
- package/dist/{identity-KH4652PK.js → identity-62FPQQZL.js} +4 -4
- package/dist/{live-capabilities-3KECKHXE.js → live-capabilities-4U3KT3GQ.js} +4 -4
- package/dist/{paths-7JBN46UK.js → paths-S2NXPE7E.js} +3 -3
- package/dist/reapply-M7YPZ5XG.js +74 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-HBXCQELZ.js → upgrade-lock-RE5DB37L.js} +4 -4
- package/dist/{usage-H5RRCZYQ.js → usage-DZDCO7O2.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-QXEF3CRH.js +0 -74
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NJGZLUXW.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-HYTYYZCW.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -6137,7 +6137,7 @@ var pushesATag = ({ program, args }) => {
|
|
|
6137
6137
|
return rest.some((arg) => PUSHES_EVERY_TAG.has(arg.text)) || operands.slice(1).some((operand) => NAMES_A_TAG.test(operand.text) || TAG_HELD_IN_A_VARIABLE.test(operand.text) || !pushesABranch && NAMES_A_MAJOR_VERSION_TAG.test(operand.text));
|
|
6138
6138
|
};
|
|
6139
6139
|
var SECRET_FILE_NAME = /^(?:\.env(?:\.(?!example$|sample$|template$)[\w.-]+)?|(?:secrets?|credentials)\.(?:json|ya?ml|env|toml|ini)|credentials)$/i;
|
|
6140
|
-
var
|
|
6140
|
+
var CI_WORKFLOW_OR_ACTION_FILE = /(?:^|\/)\.github\/(?:workflows\/[^/]+|actions\/(?:.+\/)?action\.ya?ml)$/i;
|
|
6141
6141
|
var AGENT_SETTINGS_FILE = new RegExp(String.raw`(?:^|/)(?:${[
|
|
6142
6142
|
String.raw`\.claude/settings(?:\.local)?\.json`,
|
|
6143
6143
|
String.raw`\.claude\.json`,
|
|
@@ -6172,7 +6172,24 @@ var FILE_THE_MACHINE_RUNS_LATER = new RegExp(String.raw`^(?:${[
|
|
|
6172
6172
|
var FILE_A_PROJECT_TOOL_RUNS_LATER = /^(?:.*\/)?(?:\.husky\/.+|\.envrc|\.vscode\/tasks\.json)$/i;
|
|
6173
6173
|
var LINE_TERMINATOR = /[\n\r\u2028\u2029]/;
|
|
6174
6174
|
var CREDENTIAL_FILE_IN_THE_HOME_FOLDER = new RegExp(String.raw`^${HOME_DIRECTORY}/(?:\.npmrc|[._]netrc|\.kube/config)$`, "i");
|
|
6175
|
-
var AGENT_INSTRUCTION_FILE =
|
|
6175
|
+
var AGENT_INSTRUCTION_FILE = new RegExp(String.raw`(?:^|/)(?:${[
|
|
6176
|
+
String.raw`CLAUDE(?:\.local)?\.md`,
|
|
6177
|
+
String.raw`AGENTS(?:\.override)?\.md`,
|
|
6178
|
+
String.raw`GEMINI\.md`,
|
|
6179
|
+
String.raw`QWEN\.md`,
|
|
6180
|
+
String.raw`\.claude/(?:commands|agents|skills)/.+`,
|
|
6181
|
+
String.raw`\.gemini/commands/.+`,
|
|
6182
|
+
String.raw`\.codex/prompts/.+`,
|
|
6183
|
+
String.raw`\.cursor/rules/.+`,
|
|
6184
|
+
String.raw`\.cursorrules`,
|
|
6185
|
+
String.raw`\.github/copilot-instructions\.md`,
|
|
6186
|
+
String.raw`\.github/instructions/.+\.instructions\.md`
|
|
6187
|
+
].join("|")})$`, "i");
|
|
6188
|
+
var NTFS_DEFAULT_STREAM = /::?\$DATA$/i;
|
|
6189
|
+
var TRAILING_DOTS_AND_SPACES = /[. ]+$/;
|
|
6190
|
+
var DOT_SEGMENT_NAME = /^\.{1,2}$/;
|
|
6191
|
+
var segmentAsWindowsNamesIt = (segment) => DOT_SEGMENT_NAME.test(segment) ? segment : segment.replace(TRAILING_DOTS_AND_SPACES, "");
|
|
6192
|
+
var pathAsWindowsNamesIt = (path) => path.replace(NTFS_DEFAULT_STREAM, "").split("/").map(segmentAsWindowsNamesIt).join("/");
|
|
6176
6193
|
var withoutDotSegments = (path) => {
|
|
6177
6194
|
const kept = [];
|
|
6178
6195
|
for (const segment of path.split("/")) {
|
|
@@ -6182,10 +6199,13 @@ var withoutDotSegments = (path) => {
|
|
|
6182
6199
|
return `${path.startsWith("/") ? "/" : ""}${kept.join("/")}`;
|
|
6183
6200
|
};
|
|
6184
6201
|
var namesAFileAToolOrAnAgentReadsLater = (path) => !LINE_TERMINATOR.test(path) && (FILE_A_PROJECT_TOOL_RUNS_LATER.test(path) || AGENT_INSTRUCTION_FILE.test(path));
|
|
6185
|
-
var
|
|
6186
|
-
const
|
|
6187
|
-
|
|
6202
|
+
var protectedCheckSpellingsOf = (path) => {
|
|
6203
|
+
const separated = normalizeSeparators(path);
|
|
6204
|
+
const asWindowsNamesIt = pathAsWindowsNamesIt(separated);
|
|
6205
|
+
return (asWindowsNamesIt === separated ? [separated] : [separated, asWindowsNamesIt]).map(withoutDotSegments);
|
|
6188
6206
|
};
|
|
6207
|
+
var spellingNeedsAPersonToChange = (written) => SECRET_FILE_NAME.test(basenameOf(written)) || CI_WORKFLOW_OR_ACTION_FILE.test(written) || AGENT_SETTINGS_FILE.test(written) || FILE_THE_MACHINE_RUNS_LATER.test(written) || CREDENTIAL_FILE_IN_THE_HOME_FOLDER.test(written) || namesAFileAToolOrAnAgentReadsLater(written);
|
|
6208
|
+
var pathNeedsAPersonToChange = (path) => protectedCheckSpellingsOf(path).some(spellingNeedsAPersonToChange);
|
|
6189
6209
|
var REDIRECTS_INTO_A_SECRET_FILE = />>?\s*(?:[^\s;|&<>]*\/)?\.env(?:\.[\w-]+)?(?=$|[\s;|&)])/;
|
|
6190
6210
|
var COPIES_ONTO_ITS_LAST_OPERAND = /* @__PURE__ */ new Set(["cp", "install", "ln", "rsync", "scp"]);
|
|
6191
6211
|
var WRITES_EVERY_OPERAND = /* @__PURE__ */ new Set(["mv", "tee", "rm", "unlink", "shred", "truncate"]);
|
|
@@ -6234,7 +6254,7 @@ var namesASecretFile = (word) => word !== void 0 && SECRET_FILE_NAME.test(basena
|
|
|
6234
6254
|
var namesAFileThatNeedsAPerson = (word) => word !== void 0 && pathNeedsAPersonToChange(word.text);
|
|
6235
6255
|
var RECURSIVE_COPY_FLAG = /^(?:-[A-Za-z]*[rRa][A-Za-z]*|--recursive|--archive)$/;
|
|
6236
6256
|
var FOLDER_THAT_NEEDS_A_PERSON = new RegExp(String.raw`(?:^|/)(?:${[
|
|
6237
|
-
String.raw`\.github/workflows`,
|
|
6257
|
+
String.raw`\.github/(?:workflows|actions)`,
|
|
6238
6258
|
String.raw`\.claude`,
|
|
6239
6259
|
String.raw`\.codex`,
|
|
6240
6260
|
String.raw`\.cursor`,
|
|
@@ -6248,9 +6268,14 @@ var FOLDER_THAT_NEEDS_A_PERSON = new RegExp(String.raw`(?:^|/)(?:${[
|
|
|
6248
6268
|
String.raw`\.config/opencode(?:/plugins?)?`,
|
|
6249
6269
|
String.raw`Library/Launch(?:Agents|Daemons)`,
|
|
6250
6270
|
String.raw`\.husky`,
|
|
6251
|
-
String.raw`\.claude/(?:commands|agents)
|
|
6271
|
+
String.raw`\.claude/(?:commands|agents|skills)`,
|
|
6272
|
+
String.raw`\.gemini/commands`,
|
|
6273
|
+
String.raw`\.codex/prompts`,
|
|
6274
|
+
String.raw`\.cursor/rules`,
|
|
6275
|
+
String.raw`\.github/instructions`
|
|
6252
6276
|
].join("|")})$`, "i");
|
|
6253
|
-
var
|
|
6277
|
+
var spellingIsAFolderThatNeedsAPerson = (spelling) => FOLDER_THAT_NEEDS_A_PERSON.test(spelling);
|
|
6278
|
+
var folderNeedsAPersonToChange = (path) => protectedCheckSpellingsOf(path).some(spellingIsAFolderThatNeedsAPerson);
|
|
6254
6279
|
var NETWORK_SENDERS = /* @__PURE__ */ new Set([
|
|
6255
6280
|
"curl",
|
|
6256
6281
|
"wget",
|
|
@@ -9482,7 +9507,10 @@ var heldUnderAGeneralRule = (config, tool, mode) => ({
|
|
|
9482
9507
|
var governedByAnExactPathRule = (rank) => rank === "exact";
|
|
9483
9508
|
var THE_FLOOR_HOLDS = "holds";
|
|
9484
9509
|
var THE_FLOOR_SET_ASIDE = "set_aside";
|
|
9485
|
-
var
|
|
9510
|
+
var approvesWithoutAnAnswer = (policy) => policy.timeoutAction === "approve";
|
|
9511
|
+
var WAITS_FOR_AN_ANSWER = "wait";
|
|
9512
|
+
var generalAllowMeetsTheProtectedFileFloor = (rank, policy, toolName, toolInput, cwd) => approvesWithoutAnAnswer(policy) && !governedByAnExactPathRule(rank) && editTargetNeedsAPersonEvenWhenAllowed(toolName, toolInput, cwd);
|
|
9513
|
+
var heldByTheProtectedFileFloor = (config, policy, mode) => isAutoApprove(policy) ? heldUnderAGeneralRule(config, policy.tool, mode) : { ...policy, timeoutAction: WAITS_FOR_AN_ANSWER };
|
|
9486
9514
|
var stricterOfTheReadings = (asWritten, asSpelled, unmatched) => comparePolicyStrictness(asWritten?.policy ?? unmatched, asSpelled?.policy ?? unmatched) > 0 ? asWritten : asSpelled;
|
|
9487
9515
|
var resolvePolicyReading = (floor, reach, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId) => {
|
|
9488
9516
|
const args = toolInput ? policyArgForms(toolName, toolInput, cwd) : [];
|
|
@@ -9508,8 +9536,8 @@ var resolvePolicyReading = (floor, reach, config, toolName, modeOverride, toolIn
|
|
|
9508
9536
|
if (!governedBySpecificRule && wouldAutoApprove && SHELL_DIALECT_BY_TOOL.has(toolName) && typeof arg === "string" && (commandIsDestructive(toolName, arg) || governedByStandingShellAllow && commandHasAVisibleConsequence(toolName, arg))) {
|
|
9509
9537
|
base = heldUnderAGeneralRule(config, base.tool, governingMode);
|
|
9510
9538
|
}
|
|
9511
|
-
if (floor === THE_FLOOR_HOLDS && generalAllowMeetsTheProtectedFileFloor(match?.rank, base, toolName, toolInput)) {
|
|
9512
|
-
base =
|
|
9539
|
+
if (floor === THE_FLOOR_HOLDS && generalAllowMeetsTheProtectedFileFloor(match?.rank, base, toolName, toolInput, cwd)) {
|
|
9540
|
+
base = heldByTheProtectedFileFloor(config, base, governingMode);
|
|
9513
9541
|
}
|
|
9514
9542
|
const effectiveOverride = modeOverride ?? config.modeOverride;
|
|
9515
9543
|
if (effectiveOverride) {
|
|
@@ -9564,7 +9592,7 @@ var policyAcrossUnderTheFloor = (floor, config, toolName, modeOverride, toolInpu
|
|
|
9564
9592
|
var resolvePolicyAcross = (config, toolName, modeOverride, toolInputs, cwd, repoKey, sessionId) => policyAcrossUnderTheFloor(THE_FLOOR_HOLDS, config, toolName, modeOverride, toolInputs, cwd, repoKey, sessionId);
|
|
9565
9593
|
var repoKeyTheGateResolvesUnder = (input) => input.sharedRepoKey ?? input.repoKey;
|
|
9566
9594
|
var policyOfACallUnderTheFloor = (floor, input, toolInput) => policyUnderTheFloor(floor, input.config, input.toolName, input.modeState.mode, toolInput, input.cwd, repoKeyTheGateResolvesUnder(input), input.sessionId);
|
|
9567
|
-
var theFloorHoldsAnAllowOn = (input, toolInput) => editTargetNeedsAPersonEvenWhenAllowed(input.toolName, toolInput) &&
|
|
9595
|
+
var theFloorHoldsAnAllowOn = (input, toolInput) => editTargetNeedsAPersonEvenWhenAllowed(input.toolName, toolInput, input.cwd) && approvesWithoutAnAnswer(policyOfACallUnderTheFloor(THE_FLOOR_SET_ASIDE, input, toolInput)) && !approvesWithoutAnAnswer(policyOfACallUnderTheFloor(THE_FLOOR_HOLDS, input, toolInput));
|
|
9568
9596
|
var theProtectedFileFloorHoldsAnAllow = (input) => input.toolInputs.some((toolInput) => theFloorHoldsAnAllowOn(input, toolInput));
|
|
9569
9597
|
var policyAsTheRulesWroteIt = (input) => policyAcrossUnderTheFloor(THE_FLOOR_SET_ASIDE, input.config, input.toolName, input.modeState.mode, input.toolInputs, input.cwd, repoKeyTheGateResolvesUnder(input), input.sessionId);
|
|
9570
9598
|
var isModeStateDegraded = (state) => state?.degraded === true;
|
|
@@ -9725,17 +9753,17 @@ var standingDenyOfSubagentAlias = (toolName, verdictFor) => {
|
|
|
9725
9753
|
return verdict.kind === "deny" && verdict.policy.tool !== WILDCARD_TOOL_PATTERN ? verdict : void 0;
|
|
9726
9754
|
};
|
|
9727
9755
|
var LINE_BREAK = /[\r\n]/;
|
|
9728
|
-
var bypassModeCovers = (toolName, toolInput) => {
|
|
9756
|
+
var bypassModeCovers = (toolName, toolInput, cwd) => {
|
|
9729
9757
|
const arg = extractPolicyArg(toolName, toolInput);
|
|
9730
9758
|
if (SHELL_DIALECT_BY_TOOL.has(toolName)) {
|
|
9731
9759
|
return arg !== void 0 && !commandIsDestructive(toolName, arg) && !commandHasAConsequenceWithPermissionsOff(toolName, arg);
|
|
9732
9760
|
}
|
|
9733
|
-
if (FILE_EDIT_TOOLS.has(toolName)) return arg !== void 0 && !LINE_BREAK.test(arg) && !fileEditNeedsAPersonEvenWhenAllowed(toolName, arg);
|
|
9761
|
+
if (FILE_EDIT_TOOLS.has(toolName)) return arg !== void 0 && !LINE_BREAK.test(arg) && !fileEditNeedsAPersonEvenWhenAllowed(toolName, arg, cwd);
|
|
9734
9762
|
return mcpToolOnlyReads(toolName) && mcpToolInputOnlyReads(toolName, toolInput);
|
|
9735
9763
|
};
|
|
9736
9764
|
var aChosenRuleGovernsInEitherRepository = (input, counts = everyRule) => aChosenRuleGoverns(input, counts) || input.sharedRepoKey !== void 0 && input.sharedRepoKey !== input.repoKey && aChosenRuleGoverns({ ...input, repoKey: input.sharedRepoKey }, counts);
|
|
9737
9765
|
var ruleAsksOrRefuses = (rule) => !isAutoApprove(rule);
|
|
9738
|
-
var bypassModeCoversEveryInput = (input) => input.deletesFiles !== true && input.toolInputs.every((toolInput) => bypassModeCovers(input.toolName, toolInput)) && !aChosenRuleGovernsInEitherRepository(input);
|
|
9766
|
+
var bypassModeCoversEveryInput = (input) => input.deletesFiles !== true && input.toolInputs.every((toolInput) => bypassModeCovers(input.toolName, toolInput, input.cwd)) && !aChosenRuleGovernsInEitherRepository(input);
|
|
9739
9767
|
var bypassModeApplies = (input) => isBypassPermissionMode(input.permissionMode) && !isModeStateDegraded(input.modeState) && noModeOverrideIsActive(input) && input.toolInputs.length > 0;
|
|
9740
9768
|
var bypassModeAllows = (input) => bypassModeApplies(input) && (bypassStopsOf(input.config) === "nothing" ? !aChosenRuleGovernsInEitherRepository(input, ruleAsksOrRefuses) : bypassModeCoversEveryInput(input));
|
|
9741
9769
|
var PERMISSIONS_OFF_ASK_REASON = "Permissions are off in your agent, so Pushary only stops for risky steps like this one. You can change this in Settings on pushary.com.";
|
|
@@ -9887,7 +9915,7 @@ var governingToolInputOf = (input) => {
|
|
|
9887
9915
|
return resolved.find((candidate) => candidate.policy === strictest)?.toolInput;
|
|
9888
9916
|
};
|
|
9889
9917
|
var noModeOverrideIsActive = (input) => (input.modeState.mode ?? input.config.modeOverride ?? null) === null;
|
|
9890
|
-
var editAsksAtTheAgentsPrompt = (input, verdict) => verdict.kind === "gate" && !verdict.scopeReason && noModeOverrideIsActive(input) && !
|
|
9918
|
+
var editAsksAtTheAgentsPrompt = (input, verdict) => verdict.kind === "gate" && !verdict.scopeReason && noModeOverrideIsActive(input) && !aChosenRuleGovernsInEitherRepository(input) && verdict.policy.mode === "push_first" && FILE_EDIT_TOOLS.has(input.toolName);
|
|
9891
9919
|
var claudePromptsBeforeAnEdit = (permissionMode) => permissionMode === "default";
|
|
9892
9920
|
var runsTheClaudeHook = (source) => source === null || source === "claude" || hookCompatibleProfileBySource(source) !== void 0;
|
|
9893
9921
|
var agentPromptsBeforeAnEdit = ({ source, event, permissionMode }) => {
|
|
@@ -9926,15 +9954,18 @@ var runsACommandThatNeedsAPersonUnderOneArrowReading = ({ toolName, toolInputs }
|
|
|
9926
9954
|
return command !== void 0 && (commandNeedsAPerson(toolName, command) || commandWritesThroughARemoteApi(command));
|
|
9927
9955
|
});
|
|
9928
9956
|
var runsACommandThatNeedsAPerson = (input) => underEitherArrowReading(() => runsACommandThatNeedsAPersonUnderOneArrowReading(input));
|
|
9929
|
-
var
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
|
|
9934
|
-
|
|
9935
|
-
|
|
9957
|
+
var spellingNamesASecretOrCiFile = (written) => SECRET_FILE_NAME.test(basenameOf(written)) || CI_WORKFLOW_OR_ACTION_FILE.test(written);
|
|
9958
|
+
var namesASecretOrCiFile = (path) => protectedCheckSpellingsOf(path).some(spellingNamesASecretOrCiFile);
|
|
9959
|
+
var fileEditNeedsAPerson = (toolName, path) => FILE_EDIT_TOOLS.has(toolName) && namesASecretOrCiFile(path);
|
|
9960
|
+
var placesAnEditLands = (path, cwd) => {
|
|
9961
|
+
if (cwd === void 0 || isTooLongToMatch(path)) return [path];
|
|
9962
|
+
const location = locatePath(path, locatedDirectoryOf(cwd));
|
|
9963
|
+
return location.kind === "located" ? [path, location.path] : [path, ...spellingsOfReadings(location.readings)];
|
|
9964
|
+
};
|
|
9965
|
+
var fileEditNeedsAPersonEvenWhenAllowed = (toolName, path, cwd) => FILE_EDIT_TOOLS.has(toolName) && placesAnEditLands(path, cwd).some(pathNeedsAPersonToChange);
|
|
9966
|
+
var editTargetNeedsAPersonEvenWhenAllowed = (toolName, toolInput, cwd) => {
|
|
9936
9967
|
const path = toolInput === void 0 ? void 0 : extractPolicyArg(toolName, toolInput);
|
|
9937
|
-
return path !== void 0 && fileEditNeedsAPersonEvenWhenAllowed(toolName, path);
|
|
9968
|
+
return path !== void 0 && fileEditNeedsAPersonEvenWhenAllowed(toolName, path, cwd);
|
|
9938
9969
|
};
|
|
9939
9970
|
var editsAFileThatNeedsAPerson = ({ toolName, toolInputs }) => toolInputs.some((toolInput) => {
|
|
9940
9971
|
const path = extractPolicyArg(toolName, toolInput);
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QVPPK677.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5T73V757.js";
|
|
14
14
|
import {
|
|
15
15
|
SESSION_IDLE_TIMEOUT_MS,
|
|
16
16
|
describeIdleWindow,
|
|
17
17
|
idleDeadlinePassed,
|
|
18
18
|
startProcessOwnership
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MMONXTP4.js";
|
|
20
20
|
import {
|
|
21
21
|
spawnClaude
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -25,18 +25,18 @@ import {
|
|
|
25
25
|
isWaitForAnswerResponse,
|
|
26
26
|
withdrawQuestion,
|
|
27
27
|
writeDegraded
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MZEHIL5X.js";
|
|
29
29
|
import {
|
|
30
30
|
readCommandAck
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-D67H74VR.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BX43EONR.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-I5C5JTD7.js";
|
|
40
40
|
import {
|
|
41
41
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
42
42
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
parseCodexQuestions,
|
|
59
59
|
planElicitationAsk,
|
|
60
60
|
readElicitationFields
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-HYTYYZCW.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JWRV7KGV.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FIRKU3MH.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NJGZLUXW.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HYTYYZCW.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A5HEOPN3.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PZZFRUGH.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FIRKU3MH.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ANENQIII.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2NIFT2XQ.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-NJGZLUXW.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-HYTYYZCW.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NJGZLUXW.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-HYTYYZCW.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YFYD7TZX.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BX43EONR.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EHMLODBU.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MTARW7ZM.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PZZFRUGH.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-HYTYYZCW.js";
|
|
25
25
|
|
|
26
26
|
// src/reach.ts
|
|
27
27
|
var PUSHARY_APP_DOWNLOAD_URL = "https://pushary.com/download";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I5C5JTD7.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-A5HEOPN3.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-33BJNS3C.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R7L65RZQ.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JWRV7KGV.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MZEHIL5X.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HYTYYZCW.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,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BX43EONR.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DNOOPEMW.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PZZFRUGH.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp-stdio-bridge.ts
|
|
12
12
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LQ5W3PQI.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-PZZFRUGH.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-HYTYYZCW.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NJGZLUXW.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-HYTYYZCW.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BX43EONR.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DNOOPEMW.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BLE5VR4N.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NJGZLUXW.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MTARW7ZM.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
isRecord,
|
|
39
39
|
truncateLine,
|
|
40
40
|
waitEndAnswered
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-HYTYYZCW.js";
|
|
42
42
|
|
|
43
43
|
// src/api.ts
|
|
44
44
|
import { randomUUID } from "crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serviceNodeFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W7HBQJBU.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-NJGZLUXW.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-4OU6AMW2.js";
|
|
25
25
|
import {
|
|
26
26
|
getPackageVersion,
|
|
27
27
|
globalTranscriptRegisterEntry
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatVersion,
|
|
4
4
|
quoteIfNeeded,
|
|
5
5
|
shellDoubleQuoted
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4OU6AMW2.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
PUSHARY_HOSTS,
|
|
23
23
|
PUSHARY_TOOL_PREFIX,
|
|
24
24
|
withHookHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HYTYYZCW.js";
|
|
26
26
|
|
|
27
27
|
// src/setup/paths.ts
|
|
28
28
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ALBZHD3K.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCLAW_MIN_VERSION,
|
|
24
24
|
OPENCLAW_PLUGIN_ID,
|
|
25
25
|
OPENCLAW_PLUGIN_PACKAGE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6HEYYF4M.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XAAUGAEC.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MTARW7ZM.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonSafe,
|
|
35
35
|
writeJsonAtomic
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
readSetupOutcomeProperties,
|
|
39
39
|
redactSecretsFromContent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-HYTYYZCW.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ANENQIII.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NJGZLUXW.js";
|
|
8
8
|
|
|
9
9
|
// src/phone-approval.ts
|
|
10
10
|
import { createHash } from "crypto";
|