pushary 1.9.217 → 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 +19 -0
- package/dist/{api-ZNICU66O.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 +26 -5
- 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-DCAA3IYO.js → chunk-2NIFT2XQ.js} +1 -1
- package/dist/{chunk-MOKQRBP6.js → chunk-33BJNS3C.js} +4 -4
- package/dist/{chunk-AVTCKBDJ.js → chunk-3LJAZXQH.js} +1 -1
- package/dist/{chunk-FXPBDS6E.js → chunk-3RON5GEL.js} +5 -5
- package/dist/{chunk-OXXRBIUI.js → chunk-43GTIQA6.js} +6 -6
- package/dist/{chunk-NMHWLPL5.js → chunk-4I2SNDAP.js} +2 -2
- package/dist/{chunk-57DE6FG6.js → chunk-4JC4KEAK.js} +1 -1
- package/dist/{chunk-RU4AHKSQ.js → chunk-4OU6AMW2.js} +4 -4
- package/dist/{chunk-4ZGQHNZC.js → chunk-5T73V757.js} +1 -1
- package/dist/{chunk-4T5IHHPF.js → chunk-5YKUH4IX.js} +1 -1
- package/dist/{chunk-TZKOBO6S.js → chunk-5ZGD6AZV.js} +1 -1
- package/dist/{chunk-OTG2JBD6.js → chunk-63UN5EUK.js} +7 -7
- package/dist/{chunk-7KU5LBUN.js → chunk-6HEYYF4M.js} +3 -3
- package/dist/{chunk-7MIDEZQK.js → chunk-6LRLLOK2.js} +3 -3
- package/dist/{chunk-EVRIPQVH.js → chunk-A5HEOPN3.js} +3 -3
- package/dist/{chunk-XNIBAEPA.js → chunk-AALWOL35.js} +7 -7
- package/dist/{chunk-FSTBKIRM.js → chunk-ALBZHD3K.js} +4 -4
- package/dist/{chunk-JWY5E4O3.js → chunk-AMVK36AI.js} +4 -4
- package/dist/{chunk-D2PW657V.js → chunk-ANENQIII.js} +12 -12
- package/dist/{chunk-F4KC5RCQ.js → chunk-BLE5VR4N.js} +3 -3
- package/dist/{chunk-I7PAEL2P.js → chunk-BX43EONR.js} +5 -5
- package/dist/{chunk-XTSFNWGW.js → chunk-CXGE57RE.js} +1 -1
- package/dist/{chunk-LICDCELW.js → chunk-CZJZ4NTJ.js} +4 -4
- package/dist/{chunk-HBDLPOL5.js → chunk-D67H74VR.js} +1 -1
- package/dist/{chunk-7R5UO3UQ.js → chunk-DG6YDFFC.js} +2 -2
- package/dist/{chunk-WB6YVVNN.js → chunk-DNOOPEMW.js} +1 -1
- package/dist/{chunk-KD4MSRZY.js → chunk-DP6M4VNO.js} +1 -1
- package/dist/{chunk-OE5SPNUY.js → chunk-EHMLODBU.js} +3 -3
- package/dist/{chunk-B3UFIVCF.js → chunk-EYIV7NHX.js} +5 -5
- package/dist/{chunk-MQFAF5WF.js → chunk-FIRKU3MH.js} +4 -4
- package/dist/{chunk-3F7QKDA3.js → chunk-G2H3TZIT.js} +1 -1
- package/dist/{chunk-UYG3BSPV.js → chunk-G6HBBR6G.js} +2 -2
- package/dist/{chunk-YZXF5KRX.js → chunk-GPYHVSYW.js} +1 -1
- package/dist/{chunk-FOT4WYTR.js → chunk-H3Q2UISR.js} +1 -1
- package/dist/{chunk-QQUKS2MB.js → chunk-HYTYYZCW.js} +60 -26
- package/dist/{chunk-DDAB5CFW.js → chunk-I5C5JTD7.js} +1 -1
- package/dist/{chunk-I5IAKVJU.js → chunk-I5ILQPMH.js} +8 -8
- package/dist/{chunk-2DOZXSHN.js → chunk-IBEX5YUN.js} +4 -4
- package/dist/{chunk-AOJGUN6O.js → chunk-J355LTH7.js} +2 -2
- package/dist/{chunk-T3C2U6ZW.js → chunk-JWRV7KGV.js} +5 -5
- package/dist/{chunk-HY24XUYQ.js → chunk-K26RWC2P.js} +2 -2
- package/dist/{chunk-G457ALKZ.js → chunk-KEG2RUV2.js} +6 -6
- package/dist/{chunk-C5RTX3FG.js → chunk-KGSIBDQH.js} +2 -2
- package/dist/{chunk-GJXAKA47.js → chunk-KLSNXMZT.js} +5 -5
- package/dist/{chunk-4HQQRM3I.js → chunk-LQ5W3PQI.js} +1 -1
- package/dist/{chunk-M2YK63QJ.js → chunk-LZU2OKF5.js} +3 -3
- package/dist/{chunk-RBYR44B6.js → chunk-M5C6BAYU.js} +3 -3
- package/dist/{chunk-TLL3O3J4.js → chunk-MMONXTP4.js} +2 -2
- package/dist/{chunk-66OVH5CY.js → chunk-MTARW7ZM.js} +1 -1
- package/dist/{chunk-36YVBUPS.js → chunk-MZEHIL5X.js} +6 -6
- package/dist/{chunk-XDIBRXDP.js → chunk-N4GJSAVY.js} +3 -3
- package/dist/{chunk-2I2SXVMP.js → chunk-NJGZLUXW.js} +2 -2
- package/dist/{chunk-GQ2NDIQK.js → chunk-NOA5325L.js} +5 -5
- package/dist/{chunk-73JRQ7N4.js → chunk-O3VKOGTN.js} +2 -2
- package/dist/{chunk-VKHDBCXO.js → chunk-OFJ63I2T.js} +5 -5
- package/dist/{chunk-KQYM5Q4M.js → chunk-OR6LG45T.js} +9 -9
- package/dist/{chunk-JSPHVG3N.js → chunk-P6GK3NJF.js} +5 -5
- package/dist/{chunk-4GJZTJO6.js → chunk-PZZFRUGH.js} +1 -1
- package/dist/{chunk-TWHTLBSX.js → chunk-QNN7PXJC.js} +3 -3
- package/dist/{chunk-A745KBRC.js → chunk-QP5K3VAU.js} +6 -6
- package/dist/{chunk-WMHMOR4C.js → chunk-QVPPK677.js} +1 -1
- package/dist/{chunk-WDBWDGRU.js → chunk-R7L65RZQ.js} +10 -10
- package/dist/{chunk-D46IWNF2.js → chunk-R7TYJMIX.js} +5 -5
- package/dist/{chunk-SS7EDGVA.js → chunk-SSGEIHML.js} +4 -4
- package/dist/{chunk-PCUP5Z56.js → chunk-SXB4UCSW.js} +12 -12
- package/dist/{chunk-OMI4FOKD.js → chunk-T7ITVKNC.js} +1 -1
- package/dist/{chunk-47MPX2VI.js → chunk-TNFUBZZP.js} +4 -4
- package/dist/{chunk-HVRYKWKV.js → chunk-TOUN7PUZ.js} +1 -1
- package/dist/{chunk-3FBC6HPX.js → chunk-TPWFAGYZ.js} +2 -2
- package/dist/{chunk-ZTH3B5HU.js → chunk-V4STGM2V.js} +5 -5
- package/dist/{chunk-USHCIV45.js → chunk-VCNVOXSF.js} +3 -3
- package/dist/{chunk-54HFDBJZ.js → chunk-VWIKYJMA.js} +16 -16
- package/dist/{chunk-PASDGQ2W.js → chunk-VY3WDMN5.js} +1 -1
- package/dist/{chunk-YMOXAW6S.js → chunk-W7HBQJBU.js} +6 -6
- package/dist/{chunk-U22LQ5ZO.js → chunk-WGOQNQAJ.js} +1 -1
- package/dist/{chunk-C3F65EFY.js → chunk-XAAUGAEC.js} +3 -3
- package/dist/{chunk-BMM6BM7M.js → chunk-YFYD7TZX.js} +2 -2
- package/dist/{chunk-SZRKAP7M.js → chunk-ZAJIKNSK.js} +2 -2
- package/dist/{chunk-KQBKD5DH.js → chunk-ZDI5CXNP.js} +2 -2
- package/dist/{codex-app-cards-switch-WERD2IJE.js → codex-app-cards-switch-QX2IJVRJ.js} +11 -11
- package/dist/{codex-card-routing-7ZP2GHOQ.js → codex-card-routing-UZ3MIVHK.js} +2 -2
- package/dist/{codex-desktop-launch-N5WGL5CB.js → codex-desktop-launch-YUJINX2O.js} +1 -1
- package/dist/{codex-session-launch-DXCQRRCW.js → codex-session-launch-MVWZBHWE.js} +20 -20
- package/dist/{config-QV23FSAM.js → config-IUICQWNS.js} +3 -3
- package/dist/{global-upgrade-IIY7P4C5.js → global-upgrade-L2FBXTHX.js} +9 -9
- package/dist/{identity-ABY5TCBD.js → identity-62FPQQZL.js} +4 -4
- package/dist/{live-capabilities-XOGZBIUX.js → live-capabilities-4U3KT3GQ.js} +4 -4
- package/dist/{paths-UBS7SLX2.js → paths-S2NXPE7E.js} +3 -3
- package/dist/reapply-M7YPZ5XG.js +74 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-BVDUDIQ7.js → upgrade-lock-RE5DB37L.js} +4 -4
- package/dist/{usage-A7LAUHJE.js → usage-DZDCO7O2.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-HDDLTCBL.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",
|
|
@@ -8862,11 +8887,14 @@ 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
8889
|
var sameCommandBeforeAnother = (program) => String.raw`(?:(?!\b${program}\b)[^\n;&|])*?`;
|
|
8890
|
+
var RM_AS_A_PROGRAM = String.raw`(?:^|[^\w-])rm\b`;
|
|
8891
|
+
var RM_COMMAND_BEFORE_ANOTHER_RM = String.raw`(?:(?![^\w-]rm\b)[^\n;&|])*?`;
|
|
8892
|
+
var REDIRECTS_THEN_AN_ARGUMENT = String.raw`(?:\d*[<>]+[&|]?\s*[^\s;&|<>]+(?:[<>]+[&|]?[^\s;&|<>]+)*\s+)*(?!\d*[<>])[^\s;&|<>]`;
|
|
8865
8893
|
var sameLineBeforeAnother = (program) => String.raw`(?:(?!\b${program}\b)[^\n])*?`;
|
|
8866
8894
|
var DESTRUCTIVE_ACTION_RISK_PATTERNS = [
|
|
8867
8895
|
{ pattern: /\brm\s+-[a-z]*r/i, reason: RISK_REASON.deletesFiles },
|
|
8868
|
-
{ pattern: new RegExp(String.raw
|
|
8869
|
-
{ pattern: new RegExp(String.raw
|
|
8896
|
+
{ 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 },
|
|
8897
|
+
{ pattern: new RegExp(String.raw`${RM_AS_A_PROGRAM}${RM_COMMAND_BEFORE_ANOTHER_RM}\s\$\{?[A-Za-z_][A-Za-z0-9_]*\}?\s+${REDIRECTS_THEN_AN_ARGUMENT}`), reason: RISK_REASON.deletesFiles },
|
|
8870
8898
|
{ pattern: /\brmdir\b/i, reason: RISK_REASON.deletesFiles },
|
|
8871
8899
|
{ pattern: new RegExp(String.raw`\bfind\b${sameCommandBeforeAnother("find")}\s-delete\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
8872
8900
|
{ pattern: new RegExp(String.raw`\bfind\b${sameCommandBeforeAnother("find")}\s-(?:exec|execdir|ok|okdir)\s+(?:\S*\/)?rm\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
@@ -9479,7 +9507,10 @@ var heldUnderAGeneralRule = (config, tool, mode) => ({
|
|
|
9479
9507
|
var governedByAnExactPathRule = (rank) => rank === "exact";
|
|
9480
9508
|
var THE_FLOOR_HOLDS = "holds";
|
|
9481
9509
|
var THE_FLOOR_SET_ASIDE = "set_aside";
|
|
9482
|
-
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 };
|
|
9483
9514
|
var stricterOfTheReadings = (asWritten, asSpelled, unmatched) => comparePolicyStrictness(asWritten?.policy ?? unmatched, asSpelled?.policy ?? unmatched) > 0 ? asWritten : asSpelled;
|
|
9484
9515
|
var resolvePolicyReading = (floor, reach, config, toolName, modeOverride, toolInput, cwd, repoKey, sessionId) => {
|
|
9485
9516
|
const args = toolInput ? policyArgForms(toolName, toolInput, cwd) : [];
|
|
@@ -9505,8 +9536,8 @@ var resolvePolicyReading = (floor, reach, config, toolName, modeOverride, toolIn
|
|
|
9505
9536
|
if (!governedBySpecificRule && wouldAutoApprove && SHELL_DIALECT_BY_TOOL.has(toolName) && typeof arg === "string" && (commandIsDestructive(toolName, arg) || governedByStandingShellAllow && commandHasAVisibleConsequence(toolName, arg))) {
|
|
9506
9537
|
base = heldUnderAGeneralRule(config, base.tool, governingMode);
|
|
9507
9538
|
}
|
|
9508
|
-
if (floor === THE_FLOOR_HOLDS && generalAllowMeetsTheProtectedFileFloor(match?.rank, base, toolName, toolInput)) {
|
|
9509
|
-
base =
|
|
9539
|
+
if (floor === THE_FLOOR_HOLDS && generalAllowMeetsTheProtectedFileFloor(match?.rank, base, toolName, toolInput, cwd)) {
|
|
9540
|
+
base = heldByTheProtectedFileFloor(config, base, governingMode);
|
|
9510
9541
|
}
|
|
9511
9542
|
const effectiveOverride = modeOverride ?? config.modeOverride;
|
|
9512
9543
|
if (effectiveOverride) {
|
|
@@ -9561,7 +9592,7 @@ var policyAcrossUnderTheFloor = (floor, config, toolName, modeOverride, toolInpu
|
|
|
9561
9592
|
var resolvePolicyAcross = (config, toolName, modeOverride, toolInputs, cwd, repoKey, sessionId) => policyAcrossUnderTheFloor(THE_FLOOR_HOLDS, config, toolName, modeOverride, toolInputs, cwd, repoKey, sessionId);
|
|
9562
9593
|
var repoKeyTheGateResolvesUnder = (input) => input.sharedRepoKey ?? input.repoKey;
|
|
9563
9594
|
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) &&
|
|
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));
|
|
9565
9596
|
var theProtectedFileFloorHoldsAnAllow = (input) => input.toolInputs.some((toolInput) => theFloorHoldsAnAllowOn(input, toolInput));
|
|
9566
9597
|
var policyAsTheRulesWroteIt = (input) => policyAcrossUnderTheFloor(THE_FLOOR_SET_ASIDE, input.config, input.toolName, input.modeState.mode, input.toolInputs, input.cwd, repoKeyTheGateResolvesUnder(input), input.sessionId);
|
|
9567
9598
|
var isModeStateDegraded = (state) => state?.degraded === true;
|
|
@@ -9722,17 +9753,17 @@ var standingDenyOfSubagentAlias = (toolName, verdictFor) => {
|
|
|
9722
9753
|
return verdict.kind === "deny" && verdict.policy.tool !== WILDCARD_TOOL_PATTERN ? verdict : void 0;
|
|
9723
9754
|
};
|
|
9724
9755
|
var LINE_BREAK = /[\r\n]/;
|
|
9725
|
-
var bypassModeCovers = (toolName, toolInput) => {
|
|
9756
|
+
var bypassModeCovers = (toolName, toolInput, cwd) => {
|
|
9726
9757
|
const arg = extractPolicyArg(toolName, toolInput);
|
|
9727
9758
|
if (SHELL_DIALECT_BY_TOOL.has(toolName)) {
|
|
9728
9759
|
return arg !== void 0 && !commandIsDestructive(toolName, arg) && !commandHasAConsequenceWithPermissionsOff(toolName, arg);
|
|
9729
9760
|
}
|
|
9730
|
-
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);
|
|
9731
9762
|
return mcpToolOnlyReads(toolName) && mcpToolInputOnlyReads(toolName, toolInput);
|
|
9732
9763
|
};
|
|
9733
9764
|
var aChosenRuleGovernsInEitherRepository = (input, counts = everyRule) => aChosenRuleGoverns(input, counts) || input.sharedRepoKey !== void 0 && input.sharedRepoKey !== input.repoKey && aChosenRuleGoverns({ ...input, repoKey: input.sharedRepoKey }, counts);
|
|
9734
9765
|
var ruleAsksOrRefuses = (rule) => !isAutoApprove(rule);
|
|
9735
|
-
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);
|
|
9736
9767
|
var bypassModeApplies = (input) => isBypassPermissionMode(input.permissionMode) && !isModeStateDegraded(input.modeState) && noModeOverrideIsActive(input) && input.toolInputs.length > 0;
|
|
9737
9768
|
var bypassModeAllows = (input) => bypassModeApplies(input) && (bypassStopsOf(input.config) === "nothing" ? !aChosenRuleGovernsInEitherRepository(input, ruleAsksOrRefuses) : bypassModeCoversEveryInput(input));
|
|
9738
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.";
|
|
@@ -9884,7 +9915,7 @@ var governingToolInputOf = (input) => {
|
|
|
9884
9915
|
return resolved.find((candidate) => candidate.policy === strictest)?.toolInput;
|
|
9885
9916
|
};
|
|
9886
9917
|
var noModeOverrideIsActive = (input) => (input.modeState.mode ?? input.config.modeOverride ?? null) === null;
|
|
9887
|
-
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);
|
|
9888
9919
|
var claudePromptsBeforeAnEdit = (permissionMode) => permissionMode === "default";
|
|
9889
9920
|
var runsTheClaudeHook = (source) => source === null || source === "claude" || hookCompatibleProfileBySource(source) !== void 0;
|
|
9890
9921
|
var agentPromptsBeforeAnEdit = ({ source, event, permissionMode }) => {
|
|
@@ -9923,15 +9954,18 @@ var runsACommandThatNeedsAPersonUnderOneArrowReading = ({ toolName, toolInputs }
|
|
|
9923
9954
|
return command !== void 0 && (commandNeedsAPerson(toolName, command) || commandWritesThroughARemoteApi(command));
|
|
9924
9955
|
});
|
|
9925
9956
|
var runsACommandThatNeedsAPerson = (input) => underEitherArrowReading(() => runsACommandThatNeedsAPersonUnderOneArrowReading(input));
|
|
9926
|
-
var
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
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) => {
|
|
9933
9967
|
const path = toolInput === void 0 ? void 0 : extractPolicyArg(toolName, toolInput);
|
|
9934
|
-
return path !== void 0 && fileEditNeedsAPersonEvenWhenAllowed(toolName, path);
|
|
9968
|
+
return path !== void 0 && fileEditNeedsAPersonEvenWhenAllowed(toolName, path, cwd);
|
|
9935
9969
|
};
|
|
9936
9970
|
var editsAFileThatNeedsAPerson = ({ toolName, toolInputs }) => toolInputs.some((toolInput) => {
|
|
9937
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";
|