pushary 1.9.218 → 1.9.220
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 +12 -0
- package/dist/{api-KAPP3NXC.js → api-PRURB2MI.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 +28 -7
- 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-7556QS55.js → chunk-2UTMMLJG.js} +16 -16
- package/dist/{chunk-JUCKFPQD.js → chunk-3KU6ZNA3.js} +4 -4
- package/dist/{chunk-P2M3JLQR.js → chunk-3L732D6Q.js} +2 -2
- package/dist/{chunk-MXVG6TTT.js → chunk-4GDE7ENQ.js} +1 -1
- package/dist/{chunk-H3RGQFR4.js → chunk-4OEB2CHW.js} +3 -3
- package/dist/{chunk-RGBEEMLB.js → chunk-4QQLBYAR.js} +2 -2
- package/dist/{chunk-CFDTAJM4.js → chunk-4VG5W7G5.js} +1 -1
- package/dist/{chunk-X57OU4QH.js → chunk-5PZ4ABS6.js} +4 -4
- package/dist/{chunk-GCQ47XXW.js → chunk-5VEGOZHD.js} +3 -3
- package/dist/{chunk-KOZR4SUM.js → chunk-6LKQZBYL.js} +4 -4
- package/dist/{chunk-NUYODLZP.js → chunk-6VAJIILL.js} +7 -7
- package/dist/{chunk-VKGPSCFZ.js → chunk-6XNOPB55.js} +5 -5
- package/dist/{chunk-XY6HEXPD.js → chunk-72IZH2FG.js} +1 -1
- package/dist/{chunk-FX2P2HB6.js → chunk-7CDNCQNK.js} +6 -6
- package/dist/{chunk-RQKQ62YB.js → chunk-7CW4CDI2.js} +10 -10
- package/dist/{chunk-2DYPFCHP.js → chunk-7IMXCIQ6.js} +1 -1
- package/dist/{chunk-6TVWBVVH.js → chunk-AEKCXWJN.js} +1 -1
- package/dist/{chunk-HNF5GFG2.js → chunk-AIKND7YL.js} +2 -2
- package/dist/{chunk-4XXYTUOZ.js → chunk-AVHOWM7T.js} +62 -28
- package/dist/{chunk-UJ4TYBWG.js → chunk-BEUL5CS3.js} +12 -12
- package/dist/{chunk-IB5XJH6W.js → chunk-BJ63TJDR.js} +4 -4
- package/dist/{chunk-T5KYMIK5.js → chunk-CAK3LKEE.js} +3 -3
- package/dist/{chunk-YGEI4VR3.js → chunk-CB6EWSLA.js} +5 -5
- package/dist/{chunk-E4UGLCWP.js → chunk-CZQDJASK.js} +4 -4
- package/dist/{chunk-FLJMT5QO.js → chunk-D63IRSS4.js} +3 -3
- package/dist/{chunk-R5CJDUMQ.js → chunk-EEZT2CKB.js} +1 -1
- package/dist/{chunk-S7EYWMU6.js → chunk-F2QVGRAI.js} +3 -3
- package/dist/{chunk-JDCUOGVN.js → chunk-HCORWUDA.js} +5 -5
- package/dist/{chunk-7UJ6J7RI.js → chunk-HJZ5LS6L.js} +2 -2
- package/dist/{chunk-6XI2JS76.js → chunk-HXWYUYDF.js} +7 -7
- package/dist/{chunk-OZCTQZVB.js → chunk-HZAOD2CL.js} +1 -1
- package/dist/{chunk-KC5WHTKG.js → chunk-IBPIRG4Z.js} +3 -3
- package/dist/{chunk-FRZE6LMN.js → chunk-IFEI3PYH.js} +2 -2
- package/dist/{chunk-KUEOPN6X.js → chunk-JQLWMBRO.js} +3 -3
- package/dist/{chunk-2ICXDSCX.js → chunk-JSLJQ7IW.js} +2 -2
- package/dist/{chunk-FB2XRODD.js → chunk-JUJ35WEB.js} +1 -1
- package/dist/{chunk-25P4G2QQ.js → chunk-KAJVXYB6.js} +2 -2
- package/dist/{chunk-EQ7WCM6M.js → chunk-KH64HWU7.js} +4 -4
- package/dist/{chunk-I6YFKG7O.js → chunk-KJ5ZCFR6.js} +1 -1
- package/dist/{chunk-REIBOLDO.js → chunk-KOVR5ZQB.js} +1 -1
- package/dist/{chunk-CR64Q25K.js → chunk-KTMAERWS.js} +1 -1
- package/dist/{chunk-3PWUPLAM.js → chunk-KWQCFWMU.js} +1 -1
- package/dist/{chunk-75PCOKGW.js → chunk-M2QFG72W.js} +1 -1
- package/dist/{chunk-W4ZJEV3I.js → chunk-M6WSKZW7.js} +5 -5
- package/dist/{chunk-CF7VMW3M.js → chunk-MHDYRWEV.js} +2 -2
- package/dist/{chunk-UI5TGZPZ.js → chunk-MXGTEWOT.js} +1 -1
- package/dist/{chunk-P5FXFD5N.js → chunk-NIUBSNWX.js} +8 -8
- package/dist/{chunk-IW3V2GLS.js → chunk-O7YA2YEC.js} +1 -1
- package/dist/{chunk-RVBOBBRE.js → chunk-OE6DXYKW.js} +5 -5
- package/dist/{chunk-FXS5HCMC.js → chunk-OJW3DBTS.js} +12 -12
- package/dist/{chunk-DTMI6ILY.js → chunk-PIGUCAHE.js} +1 -1
- package/dist/{chunk-2M2IASWF.js → chunk-PMSQI2SU.js} +6 -6
- package/dist/{chunk-4W4VER53.js → chunk-PRQNSXDT.js} +5 -5
- package/dist/{chunk-SWETSBQJ.js → chunk-Q2HBPXTJ.js} +5 -5
- package/dist/{chunk-DULFAB47.js → chunk-Q75DLN2O.js} +3 -3
- package/dist/{chunk-GDUBHZND.js → chunk-QIDGUS3F.js} +2 -2
- package/dist/{chunk-SR456TO5.js → chunk-QL4ZQU2V.js} +1 -1
- package/dist/{chunk-OBCGSXFO.js → chunk-QUS6YUYD.js} +4 -4
- package/dist/{chunk-6WI57GDA.js → chunk-R337OH3O.js} +6 -6
- package/dist/{chunk-7E4ZHEHK.js → chunk-R7LLIEXS.js} +1 -1
- package/dist/{chunk-UHYMKUJJ.js → chunk-RD6OPNMA.js} +3 -3
- package/dist/{chunk-OX3PVR7V.js → chunk-S3ZXBJP5.js} +6 -6
- package/dist/{chunk-OKD4EGJH.js → chunk-SC2ZCI5A.js} +6 -6
- package/dist/{chunk-BVJDALPL.js → chunk-SFUR4I2B.js} +1 -1
- package/dist/{chunk-RLHLRZCK.js → chunk-SKRM7KFJ.js} +4 -4
- package/dist/{chunk-5DR7GNJ2.js → chunk-SMZGLNQO.js} +2 -2
- package/dist/{chunk-H347UWHS.js → chunk-U6KM44CA.js} +2 -2
- package/dist/{chunk-S6W44P3F.js → chunk-UWYAU25V.js} +9 -9
- package/dist/{chunk-AQQYMXN4.js → chunk-UZGD23XJ.js} +5 -5
- package/dist/{chunk-QHWVWUTB.js → chunk-V7CO5PU6.js} +5 -5
- package/dist/{chunk-CLSLZ4SX.js → chunk-VFU7V6ZI.js} +1 -1
- package/dist/{chunk-ETMDAJN6.js → chunk-VWW4WDV5.js} +2 -2
- package/dist/{chunk-4RLTTTE2.js → chunk-WBKZN3QV.js} +4 -4
- package/dist/{chunk-LGMHSJGA.js → chunk-WNARZAOC.js} +3 -3
- package/dist/{chunk-6DFUPH3E.js → chunk-WODG7KLO.js} +2 -2
- package/dist/{chunk-A7JD7TYZ.js → chunk-WR67BS44.js} +5 -5
- package/dist/{chunk-ERE62LY4.js → chunk-XBIJOKKN.js} +1 -1
- package/dist/{chunk-RYUMJQRU.js → chunk-XTOJLJDO.js} +3 -3
- package/dist/{chunk-DRFOMZGE.js → chunk-ZAODDQWM.js} +1 -1
- package/dist/{codex-app-cards-switch-UVKORLOE.js → codex-app-cards-switch-YYFIY4PE.js} +11 -11
- package/dist/{codex-card-routing-Y5E2FYMQ.js → codex-card-routing-DCFMF5HS.js} +2 -2
- package/dist/{codex-desktop-launch-AULTV62U.js → codex-desktop-launch-UFZRH4XD.js} +1 -1
- package/dist/{codex-session-launch-SBXEHQ7S.js → codex-session-launch-U3CG5HZW.js} +20 -20
- package/dist/{config-4BCUBF26.js → config-XVZK2UAF.js} +3 -3
- package/dist/{global-upgrade-4XUZJ2K2.js → global-upgrade-XDSQ2M64.js} +9 -9
- package/dist/{identity-KH4652PK.js → identity-XMK4J35G.js} +4 -4
- package/dist/{live-capabilities-3KECKHXE.js → live-capabilities-6QYUI2GO.js} +4 -4
- package/dist/{paths-7JBN46UK.js → paths-WIIOD7OX.js} +3 -3
- package/dist/reapply-NQNUT7VY.js +74 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-HBXCQELZ.js → upgrade-lock-H7PM7O6A.js} +4 -4
- package/dist/{usage-H5RRCZYQ.js → usage-V5IV7YRA.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-QXEF3CRH.js +0 -74
|
@@ -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",
|
|
@@ -8861,15 +8886,18 @@ var ASK_QUESTION_MAX = 8e3;
|
|
|
8861
8886
|
var ASK_CONTEXT_MAX = 500;
|
|
8862
8887
|
var ASK_AGENT_NAME_MAX = 100;
|
|
8863
8888
|
var GIT_GLOBAL_OPTION = String.raw`(?:\s+-\S*(?:\s+[^\s-]\S*)?)`;
|
|
8864
|
-
var
|
|
8889
|
+
var AMPERSAND_OR_BAR_OF_A_REDIRECT = String.raw`(?<=[<>])&|(?<=>)\||(?<=>&)\||(?<![<>])&(?=>)`;
|
|
8890
|
+
var SAME_COMMAND_CHARACTER = String.raw`(?:[^\n;&|]|${AMPERSAND_OR_BAR_OF_A_REDIRECT})`;
|
|
8891
|
+
var sameCommandBeforeAnother = (program) => String.raw`(?:(?!\b${program}\b)${SAME_COMMAND_CHARACTER})*?`;
|
|
8865
8892
|
var RM_AS_A_PROGRAM = String.raw`(?:^|[^\w-])rm\b`;
|
|
8866
|
-
var RM_COMMAND_BEFORE_ANOTHER_RM = String.raw`(?:(?![^\w-]rm\b)
|
|
8867
|
-
var REDIRECTS_THEN_AN_ARGUMENT = String.raw`(
|
|
8893
|
+
var RM_COMMAND_BEFORE_ANOTHER_RM = String.raw`(?:(?![^\w-]rm\b)${SAME_COMMAND_CHARACTER})*?`;
|
|
8894
|
+
var REDIRECTS_THEN_AN_ARGUMENT = String.raw`(?:(?:&(?=>)|\d*)[<>]+[&|]?[ \t]*[^\s;&|<>]+(?:[<>]+[&|]?[^\s;&|<>]+)*[ \t]+)*(?!\d*[<>])[^\s;&|<>]`;
|
|
8895
|
+
var NOT_A_REDIRECT_TARGET = String.raw`(?<![<>]|[<>][&|]|[ \t])`;
|
|
8868
8896
|
var sameLineBeforeAnother = (program) => String.raw`(?:(?!\b${program}\b)[^\n])*?`;
|
|
8869
8897
|
var DESTRUCTIVE_ACTION_RISK_PATTERNS = [
|
|
8870
8898
|
{ pattern: /\brm\s+-[a-z]*r/i, reason: RISK_REASON.deletesFiles },
|
|
8871
8899
|
{ pattern: new RegExp(String.raw`${RM_AS_A_PROGRAM}${RM_COMMAND_BEFORE_ANOTHER_RM}\s(?:-[a-z]*r[a-z]*|--recursive)\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
8872
|
-
{ pattern: new RegExp(String.raw`${RM_AS_A_PROGRAM}${RM_COMMAND_BEFORE_ANOTHER_RM}\
|
|
8900
|
+
{ pattern: new RegExp(String.raw`${RM_AS_A_PROGRAM}${RM_COMMAND_BEFORE_ANOTHER_RM}${NOT_A_REDIRECT_TARGET}[ \t]+\$\{?[A-Za-z_][A-Za-z0-9_]*\}?[ \t]+${REDIRECTS_THEN_AN_ARGUMENT}`), reason: RISK_REASON.deletesFiles },
|
|
8873
8901
|
{ pattern: /\brmdir\b/i, reason: RISK_REASON.deletesFiles },
|
|
8874
8902
|
{ pattern: new RegExp(String.raw`\bfind\b${sameCommandBeforeAnother("find")}\s-delete\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
8875
8903
|
{ pattern: new RegExp(String.raw`\bfind\b${sameCommandBeforeAnother("find")}\s-(?:exec|execdir|ok|okdir)\s+(?:\S*\/)?rm\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
@@ -9482,7 +9510,10 @@ var heldUnderAGeneralRule = (config, tool, mode) => ({
|
|
|
9482
9510
|
var governedByAnExactPathRule = (rank) => rank === "exact";
|
|
9483
9511
|
var THE_FLOOR_HOLDS = "holds";
|
|
9484
9512
|
var THE_FLOOR_SET_ASIDE = "set_aside";
|
|
9485
|
-
var
|
|
9513
|
+
var approvesWithoutAnAnswer = (policy) => policy.timeoutAction === "approve";
|
|
9514
|
+
var WAITS_FOR_AN_ANSWER = "wait";
|
|
9515
|
+
var generalAllowMeetsTheProtectedFileFloor = (rank, policy, toolName, toolInput, cwd) => approvesWithoutAnAnswer(policy) && !governedByAnExactPathRule(rank) && editTargetNeedsAPersonEvenWhenAllowed(toolName, toolInput, cwd);
|
|
9516
|
+
var heldByTheProtectedFileFloor = (config, policy, mode) => isAutoApprove(policy) ? heldUnderAGeneralRule(config, policy.tool, mode) : { ...policy, timeoutAction: WAITS_FOR_AN_ANSWER };
|
|
9486
9517
|
var stricterOfTheReadings = (asWritten, asSpelled, unmatched) => comparePolicyStrictness(asWritten?.policy ?? unmatched, asSpelled?.policy ?? unmatched) > 0 ? asWritten : asSpelled;
|
|
9487
9518
|
var resolvePolicyReading = (floor, reach, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId) => {
|
|
9488
9519
|
const args = toolInput ? policyArgForms(toolName, toolInput, cwd) : [];
|
|
@@ -9508,8 +9539,8 @@ var resolvePolicyReading = (floor, reach, config, toolName, modeOverride, toolIn
|
|
|
9508
9539
|
if (!governedBySpecificRule && wouldAutoApprove && SHELL_DIALECT_BY_TOOL.has(toolName) && typeof arg === "string" && (commandIsDestructive(toolName, arg) || governedByStandingShellAllow && commandHasAVisibleConsequence(toolName, arg))) {
|
|
9509
9540
|
base = heldUnderAGeneralRule(config, base.tool, governingMode);
|
|
9510
9541
|
}
|
|
9511
|
-
if (floor === THE_FLOOR_HOLDS && generalAllowMeetsTheProtectedFileFloor(match?.rank, base, toolName, toolInput)) {
|
|
9512
|
-
base =
|
|
9542
|
+
if (floor === THE_FLOOR_HOLDS && generalAllowMeetsTheProtectedFileFloor(match?.rank, base, toolName, toolInput, cwd)) {
|
|
9543
|
+
base = heldByTheProtectedFileFloor(config, base, governingMode);
|
|
9513
9544
|
}
|
|
9514
9545
|
const effectiveOverride = modeOverride ?? config.modeOverride;
|
|
9515
9546
|
if (effectiveOverride) {
|
|
@@ -9564,7 +9595,7 @@ var policyAcrossUnderTheFloor = (floor, config, toolName, modeOverride, toolInpu
|
|
|
9564
9595
|
var resolvePolicyAcross = (config, toolName, modeOverride, toolInputs, cwd, repoKey, sessionId) => policyAcrossUnderTheFloor(THE_FLOOR_HOLDS, config, toolName, modeOverride, toolInputs, cwd, repoKey, sessionId);
|
|
9565
9596
|
var repoKeyTheGateResolvesUnder = (input) => input.sharedRepoKey ?? input.repoKey;
|
|
9566
9597
|
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) &&
|
|
9598
|
+
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
9599
|
var theProtectedFileFloorHoldsAnAllow = (input) => input.toolInputs.some((toolInput) => theFloorHoldsAnAllowOn(input, toolInput));
|
|
9569
9600
|
var policyAsTheRulesWroteIt = (input) => policyAcrossUnderTheFloor(THE_FLOOR_SET_ASIDE, input.config, input.toolName, input.modeState.mode, input.toolInputs, input.cwd, repoKeyTheGateResolvesUnder(input), input.sessionId);
|
|
9570
9601
|
var isModeStateDegraded = (state) => state?.degraded === true;
|
|
@@ -9725,17 +9756,17 @@ var standingDenyOfSubagentAlias = (toolName, verdictFor) => {
|
|
|
9725
9756
|
return verdict.kind === "deny" && verdict.policy.tool !== WILDCARD_TOOL_PATTERN ? verdict : void 0;
|
|
9726
9757
|
};
|
|
9727
9758
|
var LINE_BREAK = /[\r\n]/;
|
|
9728
|
-
var bypassModeCovers = (toolName, toolInput) => {
|
|
9759
|
+
var bypassModeCovers = (toolName, toolInput, cwd) => {
|
|
9729
9760
|
const arg = extractPolicyArg(toolName, toolInput);
|
|
9730
9761
|
if (SHELL_DIALECT_BY_TOOL.has(toolName)) {
|
|
9731
9762
|
return arg !== void 0 && !commandIsDestructive(toolName, arg) && !commandHasAConsequenceWithPermissionsOff(toolName, arg);
|
|
9732
9763
|
}
|
|
9733
|
-
if (FILE_EDIT_TOOLS.has(toolName)) return arg !== void 0 && !LINE_BREAK.test(arg) && !fileEditNeedsAPersonEvenWhenAllowed(toolName, arg);
|
|
9764
|
+
if (FILE_EDIT_TOOLS.has(toolName)) return arg !== void 0 && !LINE_BREAK.test(arg) && !fileEditNeedsAPersonEvenWhenAllowed(toolName, arg, cwd);
|
|
9734
9765
|
return mcpToolOnlyReads(toolName) && mcpToolInputOnlyReads(toolName, toolInput);
|
|
9735
9766
|
};
|
|
9736
9767
|
var aChosenRuleGovernsInEitherRepository = (input, counts = everyRule) => aChosenRuleGoverns(input, counts) || input.sharedRepoKey !== void 0 && input.sharedRepoKey !== input.repoKey && aChosenRuleGoverns({ ...input, repoKey: input.sharedRepoKey }, counts);
|
|
9737
9768
|
var ruleAsksOrRefuses = (rule) => !isAutoApprove(rule);
|
|
9738
|
-
var bypassModeCoversEveryInput = (input) => input.deletesFiles !== true && input.toolInputs.every((toolInput) => bypassModeCovers(input.toolName, toolInput)) && !aChosenRuleGovernsInEitherRepository(input);
|
|
9769
|
+
var bypassModeCoversEveryInput = (input) => input.deletesFiles !== true && input.toolInputs.every((toolInput) => bypassModeCovers(input.toolName, toolInput, input.cwd)) && !aChosenRuleGovernsInEitherRepository(input);
|
|
9739
9770
|
var bypassModeApplies = (input) => isBypassPermissionMode(input.permissionMode) && !isModeStateDegraded(input.modeState) && noModeOverrideIsActive(input) && input.toolInputs.length > 0;
|
|
9740
9771
|
var bypassModeAllows = (input) => bypassModeApplies(input) && (bypassStopsOf(input.config) === "nothing" ? !aChosenRuleGovernsInEitherRepository(input, ruleAsksOrRefuses) : bypassModeCoversEveryInput(input));
|
|
9741
9772
|
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 +9918,7 @@ var governingToolInputOf = (input) => {
|
|
|
9887
9918
|
return resolved.find((candidate) => candidate.policy === strictest)?.toolInput;
|
|
9888
9919
|
};
|
|
9889
9920
|
var noModeOverrideIsActive = (input) => (input.modeState.mode ?? input.config.modeOverride ?? null) === null;
|
|
9890
|
-
var editAsksAtTheAgentsPrompt = (input, verdict) => verdict.kind === "gate" && !verdict.scopeReason && noModeOverrideIsActive(input) && !
|
|
9921
|
+
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
9922
|
var claudePromptsBeforeAnEdit = (permissionMode) => permissionMode === "default";
|
|
9892
9923
|
var runsTheClaudeHook = (source) => source === null || source === "claude" || hookCompatibleProfileBySource(source) !== void 0;
|
|
9893
9924
|
var agentPromptsBeforeAnEdit = ({ source, event, permissionMode }) => {
|
|
@@ -9926,15 +9957,18 @@ var runsACommandThatNeedsAPersonUnderOneArrowReading = ({ toolName, toolInputs }
|
|
|
9926
9957
|
return command !== void 0 && (commandNeedsAPerson(toolName, command) || commandWritesThroughARemoteApi(command));
|
|
9927
9958
|
});
|
|
9928
9959
|
var runsACommandThatNeedsAPerson = (input) => underEitherArrowReading(() => runsACommandThatNeedsAPersonUnderOneArrowReading(input));
|
|
9929
|
-
var
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
|
|
9934
|
-
|
|
9935
|
-
|
|
9960
|
+
var spellingNamesASecretOrCiFile = (written) => SECRET_FILE_NAME.test(basenameOf(written)) || CI_WORKFLOW_OR_ACTION_FILE.test(written);
|
|
9961
|
+
var namesASecretOrCiFile = (path) => protectedCheckSpellingsOf(path).some(spellingNamesASecretOrCiFile);
|
|
9962
|
+
var fileEditNeedsAPerson = (toolName, path) => FILE_EDIT_TOOLS.has(toolName) && namesASecretOrCiFile(path);
|
|
9963
|
+
var placesAnEditLands = (path, cwd) => {
|
|
9964
|
+
if (cwd === void 0 || isTooLongToMatch(path)) return [path];
|
|
9965
|
+
const location = locatePath(path, locatedDirectoryOf(cwd));
|
|
9966
|
+
return location.kind === "located" ? [path, location.path] : [path, ...spellingsOfReadings(location.readings)];
|
|
9967
|
+
};
|
|
9968
|
+
var fileEditNeedsAPersonEvenWhenAllowed = (toolName, path, cwd) => FILE_EDIT_TOOLS.has(toolName) && placesAnEditLands(path, cwd).some(pathNeedsAPersonToChange);
|
|
9969
|
+
var editTargetNeedsAPersonEvenWhenAllowed = (toolName, toolInput, cwd) => {
|
|
9936
9970
|
const path = toolInput === void 0 ? void 0 : extractPolicyArg(toolName, toolInput);
|
|
9937
|
-
return path !== void 0 && fileEditNeedsAPersonEvenWhenAllowed(toolName, path);
|
|
9971
|
+
return path !== void 0 && fileEditNeedsAPersonEvenWhenAllowed(toolName, path, cwd);
|
|
9938
9972
|
};
|
|
9939
9973
|
var editsAFileThatNeedsAPerson = ({ toolName, toolInputs }) => toolInputs.some((toolInput) => {
|
|
9940
9974
|
const path = extractPolicyArg(toolName, toolInput);
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
toolResultErrorText,
|
|
30
30
|
transcriptTokensIn,
|
|
31
31
|
transcriptUsageRequest
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PIGUCAHE.js";
|
|
33
33
|
import {
|
|
34
34
|
askUser,
|
|
35
35
|
cancelQuestion,
|
|
@@ -48,45 +48,45 @@ import {
|
|
|
48
48
|
waitForQuestion,
|
|
49
49
|
waitsForThePhone,
|
|
50
50
|
writeDegraded
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-S3ZXBJP5.js";
|
|
52
52
|
import {
|
|
53
53
|
RETRY_ACK,
|
|
54
54
|
readCommandAck,
|
|
55
55
|
refusedReceiptMessage
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-QL4ZQU2V.js";
|
|
57
57
|
import {
|
|
58
58
|
SubscriptionRequiredError,
|
|
59
59
|
isRetryable,
|
|
60
60
|
withRetry
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-V7CO5PU6.js";
|
|
62
62
|
import {
|
|
63
63
|
fetchAsCredential
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-72IZH2FG.js";
|
|
65
65
|
import {
|
|
66
66
|
branchFor,
|
|
67
67
|
projectNameFor,
|
|
68
68
|
repoKeyFor
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-KWQCFWMU.js";
|
|
70
70
|
import {
|
|
71
71
|
getMachineId
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-7IMXCIQ6.js";
|
|
73
73
|
import {
|
|
74
74
|
reportedInstallSource
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-3L732D6Q.js";
|
|
76
76
|
import {
|
|
77
77
|
IDLE_PROMPT_NOTIFICATION,
|
|
78
78
|
NOTIFICATION_PUSH_TYPES,
|
|
79
79
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
80
80
|
claudeConfigDir
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-SMZGLNQO.js";
|
|
82
82
|
import {
|
|
83
83
|
compareVersion,
|
|
84
84
|
parseVersion
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-5PZ4ABS6.js";
|
|
86
86
|
import {
|
|
87
87
|
getApiKey,
|
|
88
88
|
getBaseUrl
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-XBIJOKKN.js";
|
|
90
90
|
import {
|
|
91
91
|
writeFileAtomic,
|
|
92
92
|
writeJsonAtomicDurable
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
resolveAutoResolveOrigin,
|
|
145
145
|
resolvePolicy,
|
|
146
146
|
unansweredRefusalReason
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-AVHOWM7T.js";
|
|
148
148
|
|
|
149
149
|
// src/pending.ts
|
|
150
150
|
import { join } from "path";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CZQDJASK.js";
|
|
4
4
|
import {
|
|
5
5
|
bridgeResolvesToApp,
|
|
6
6
|
cursorUserHooks,
|
|
7
7
|
executableFileName,
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SMZGLNQO.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5PZ4ABS6.js";
|
|
15
15
|
import {
|
|
16
16
|
CURSOR_GATE_COVERAGE,
|
|
17
17
|
CURSOR_GATE_SCRIPT,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isCursorHookPayload,
|
|
22
22
|
isRecord,
|
|
23
23
|
toolsCoveredByGateEntry
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-AVHOWM7T.js";
|
|
25
25
|
|
|
26
26
|
// src/cursor-gate-registration.ts
|
|
27
27
|
import { dirname, isAbsolute, join, resolve } from "path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U6KM44CA.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-TCE3J44Z.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolvePackageVersionFromBinary,
|
|
13
13
|
resolvePathBinary,
|
|
14
14
|
resolvePathBinaryAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5PZ4ABS6.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENTS,
|
|
18
18
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
OPENCODE_BRIDGE_CAPABILITY,
|
|
26
26
|
SPAWN_CAPABILITY,
|
|
27
27
|
sessionProvidersAdvertisedBy
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AVHOWM7T.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D63IRSS4.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4OEB2CHW.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Q75DLN2O.js";
|
|
14
14
|
import {
|
|
15
15
|
CLINE_SERVER_NAME_TAKEN,
|
|
16
16
|
CLINE_SETTINGS_REFUSALS,
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
withClinePusharyServer,
|
|
33
33
|
withRefreshedClineKey,
|
|
34
34
|
withoutClinePusharyServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-SMZGLNQO.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveGlobalBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5PZ4ABS6.js";
|
|
39
39
|
import {
|
|
40
40
|
readJsonSafe,
|
|
41
41
|
writeFileAtomic,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HZAOD2CL.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SFUR4I2B.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_HOOK_EVENTS,
|
|
9
9
|
CODEX_HOOK_EVENTS,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
isBridgeLocator,
|
|
17
17
|
isProtectedByScope,
|
|
18
18
|
registerHookEntry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SMZGLNQO.js";
|
|
20
20
|
import {
|
|
21
21
|
CURSOR_GATE_EVENTS,
|
|
22
22
|
HOOK_BUDGETS,
|
|
23
23
|
HOOK_LOCATOR_BINARY,
|
|
24
24
|
hookCommandHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AVHOWM7T.js";
|
|
26
26
|
|
|
27
27
|
// src/gemini-config.ts
|
|
28
28
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
NpmMissingError,
|
|
4
4
|
NpmPermissionError,
|
|
5
5
|
NpmReleaseAgeError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5PZ4ABS6.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-PM2NRK6Y.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4GDE7ENQ.js";
|
|
13
13
|
import {
|
|
14
14
|
readSetupAgentFailures
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AVHOWM7T.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/config-write.ts
|
|
18
18
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5VEGOZHD.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WNARZAOC.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XBIJOKKN.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AVHOWM7T.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;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CZQDJASK.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BEUL5CS3.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PIGUCAHE.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-SMZGLNQO.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-AVHOWM7T.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SMZGLNQO.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5PZ4ABS6.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
openCodePluginArgv,
|
|
4
4
|
openCodePluginModule,
|
|
5
5
|
renderOpenCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KJ5ZCFR6.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENCODE_FAILED_EVENT,
|
|
9
9
|
OPENCODE_IDLE_EVENT,
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
OPENCODE_PLUGIN_SIBLING,
|
|
13
13
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
14
14
|
OPENCODE_SUBAGENT_IDLE_EVENT
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-O7YA2YEC.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HCORWUDA.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CZQDJASK.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HZAOD2CL.js";
|
|
26
26
|
import {
|
|
27
27
|
OPENCODE_INSTRUCTIONS_LABEL,
|
|
28
28
|
bridgeStub,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveBridgeStub,
|
|
37
37
|
vscodePluginDir,
|
|
38
38
|
windowsNodeLauncherFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SMZGLNQO.js";
|
|
40
40
|
import {
|
|
41
41
|
readJsonSafe
|
|
42
42
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
OPENCODE_APPROVAL_EVENT,
|
|
47
47
|
hookCompatibleProfile,
|
|
48
48
|
isRecord
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-AVHOWM7T.js";
|
|
50
50
|
|
|
51
51
|
// src/opencode-config.ts
|
|
52
52
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serviceNodeFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PMSQI2SU.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-SMZGLNQO.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-5PZ4ABS6.js";
|
|
25
25
|
import {
|
|
26
26
|
getPackageVersion,
|
|
27
27
|
globalTranscriptRegisterEntry
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F2QVGRAI.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AVHOWM7T.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -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-PRURB2MI.js");
|
|
540
|
+
var loadTheCardRouting = () => import("./codex-card-routing-DCFMF5HS.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-YYFIY4PE.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]");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SMZGLNQO.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-AVHOWM7T.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
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KWQCFWMU.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q75DLN2O.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|