pushary 1.9.220 → 1.9.222
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 +10 -0
- package/dist/{api-PRURB2MI.js → api-5FMENCWV.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 +45 -38
- 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 +30 -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-OE6DXYKW.js → chunk-2ODL2KHZ.js} +5 -5
- package/dist/{chunk-KWQCFWMU.js → chunk-3SROGHN7.js} +1 -1
- package/dist/{chunk-HCORWUDA.js → chunk-3UNLHFAQ.js} +5 -5
- package/dist/{chunk-7CW4CDI2.js → chunk-3ZELWDAG.js} +10 -10
- package/dist/{chunk-F2QVGRAI.js → chunk-4L274ET5.js} +3 -3
- package/dist/{chunk-6XNOPB55.js → chunk-4PIHRM37.js} +5 -5
- package/dist/{chunk-CZQDJASK.js → chunk-4XY5VHBW.js} +4 -4
- package/dist/{chunk-KTMAERWS.js → chunk-5CHF6KSC.js} +1 -1
- package/dist/{chunk-R337OH3O.js → chunk-5PEALQVY.js} +6 -6
- package/dist/{chunk-6LKQZBYL.js → chunk-5R3PKRBZ.js} +4 -4
- package/dist/{chunk-SC2ZCI5A.js → chunk-62OI7PJ6.js} +6 -6
- package/dist/{chunk-HJZ5LS6L.js → chunk-66M7UB7P.js} +2 -2
- package/dist/{chunk-IBPIRG4Z.js → chunk-7DQ4NJHO.js} +3 -3
- package/dist/{chunk-RD6OPNMA.js → chunk-AJDNOASW.js} +3 -3
- package/dist/{chunk-CAK3LKEE.js → chunk-AJXODCEY.js} +3 -3
- package/dist/{chunk-AIKND7YL.js → chunk-AQQ2EATU.js} +2 -2
- package/dist/{chunk-7IMXCIQ6.js → chunk-B5B2W6RF.js} +1 -1
- package/dist/{chunk-VWW4WDV5.js → chunk-B7BT6S66.js} +2 -2
- package/dist/{chunk-CB6EWSLA.js → chunk-BVBKGIAH.js} +5 -5
- package/dist/{chunk-XBIJOKKN.js → chunk-CCWBBHOQ.js} +1 -1
- package/dist/{chunk-IFEI3PYH.js → chunk-CJOSYTSG.js} +2 -2
- package/dist/{chunk-M2QFG72W.js → chunk-CQMJ5YLX.js} +1 -1
- package/dist/{chunk-HXWYUYDF.js → chunk-DZUEOUFB.js} +7 -7
- package/dist/{chunk-MHDYRWEV.js → chunk-E3H56JAS.js} +2 -2
- package/dist/{chunk-QIDGUS3F.js → chunk-FERJXII2.js} +2 -2
- package/dist/{chunk-NIUBSNWX.js → chunk-FLI4GFL2.js} +8 -8
- package/dist/{chunk-ZAODDQWM.js → chunk-G7GAOYPA.js} +1 -1
- package/dist/{chunk-4VG5W7G5.js → chunk-GHYB66LW.js} +1 -1
- package/dist/{chunk-2UTMMLJG.js → chunk-GNPULK7J.js} +16 -16
- package/dist/{chunk-O7YA2YEC.js → chunk-H5GFXPBU.js} +1 -1
- package/dist/{chunk-7CDNCQNK.js → chunk-HDYOAYWZ.js} +6 -6
- package/dist/{chunk-QL4ZQU2V.js → chunk-HG76GEOE.js} +1 -1
- package/dist/{chunk-WODG7KLO.js → chunk-HNRN7K22.js} +2 -2
- package/dist/{chunk-5VEGOZHD.js → chunk-IDY5NK64.js} +3 -3
- package/dist/{chunk-WBKZN3QV.js → chunk-J7E3CS5N.js} +4 -4
- package/dist/{chunk-UZGD23XJ.js → chunk-JDTSLDKU.js} +5 -5
- package/dist/{chunk-OJW3DBTS.js → chunk-JEKST75E.js} +12 -12
- package/dist/{chunk-WR67BS44.js → chunk-JMTFCHR3.js} +5 -5
- package/dist/{chunk-EEZT2CKB.js → chunk-JRQCXNT3.js} +1 -1
- package/dist/{chunk-JSLJQ7IW.js → chunk-JZOOJH63.js} +2 -2
- package/dist/{chunk-72IZH2FG.js → chunk-K2RNGCIH.js} +1 -1
- package/dist/{chunk-QUS6YUYD.js → chunk-KESEXC6J.js} +4 -4
- package/dist/{chunk-PIGUCAHE.js → chunk-KQUOVCCS.js} +19 -10
- package/dist/{chunk-V7CO5PU6.js → chunk-LHSKKRGC.js} +5 -5
- package/dist/{chunk-HZAOD2CL.js → chunk-LRZKYIQ6.js} +1 -1
- package/dist/{chunk-D63IRSS4.js → chunk-MJOKUFFE.js} +3 -3
- package/dist/{chunk-5PZ4ABS6.js → chunk-MNUYTEPY.js} +4 -4
- package/dist/{chunk-AVHOWM7T.js → chunk-MXX4JRBI.js} +42 -16
- package/dist/{chunk-U6KM44CA.js → chunk-N4GJ7UEG.js} +2 -2
- package/dist/{chunk-WNARZAOC.js → chunk-O5YMM4NC.js} +3 -3
- package/dist/{chunk-PRQNSXDT.js → chunk-OLBZ2IR4.js} +5 -5
- package/dist/{chunk-R7LLIEXS.js → chunk-PAPMVRHR.js} +1 -1
- package/dist/{chunk-BEUL5CS3.js → chunk-QQHOFBU6.js} +12 -12
- package/dist/{chunk-Q2HBPXTJ.js → chunk-REGGASP3.js} +5 -5
- package/dist/{chunk-PMSQI2SU.js → chunk-RJCLIWNI.js} +6 -6
- package/dist/{chunk-XTOJLJDO.js → chunk-SBQX7DNO.js} +3 -3
- package/dist/{chunk-S3ZXBJP5.js → chunk-STXX44Q2.js} +6 -6
- package/dist/{chunk-Q75DLN2O.js → chunk-SYMM37D5.js} +3 -3
- package/dist/{chunk-JQLWMBRO.js → chunk-TMBHLGDG.js} +3 -3
- package/dist/{chunk-4OEB2CHW.js → chunk-TY26HQND.js} +3 -3
- package/dist/{chunk-M6WSKZW7.js → chunk-TY5UXKIU.js} +5 -5
- package/dist/{chunk-6VAJIILL.js → chunk-U4TBTVKC.js} +7 -7
- package/dist/{chunk-KAJVXYB6.js → chunk-U7734QBB.js} +2 -2
- package/dist/{chunk-MXGTEWOT.js → chunk-UG52X3L4.js} +1 -1
- package/dist/{chunk-SMZGLNQO.js → chunk-UO224FD7.js} +2 -2
- package/dist/{chunk-UWYAU25V.js → chunk-VV7XYIC6.js} +9 -9
- package/dist/{chunk-4QQLBYAR.js → chunk-W35HZ5LB.js} +2 -2
- package/dist/{chunk-KOVR5ZQB.js → chunk-W5BHO4UE.js} +1 -1
- package/dist/{chunk-KH64HWU7.js → chunk-W75STRF5.js} +4 -4
- package/dist/{chunk-VFU7V6ZI.js → chunk-WM5DVEHF.js} +1 -1
- package/dist/{chunk-3KU6ZNA3.js → chunk-XAFLPVOH.js} +4 -4
- package/dist/{chunk-AEKCXWJN.js → chunk-XKF65PRO.js} +1 -1
- package/dist/{chunk-4GDE7ENQ.js → chunk-XRANKHLM.js} +1 -1
- package/dist/{chunk-SFUR4I2B.js → chunk-YDLNKHUC.js} +1 -1
- package/dist/{chunk-SKRM7KFJ.js → chunk-YIIGUJP3.js} +4 -4
- package/dist/{chunk-KJ5ZCFR6.js → chunk-Z2JCNR7O.js} +1 -1
- package/dist/{chunk-JUJ35WEB.js → chunk-ZB5CQM3S.js} +1 -1
- package/dist/{chunk-BJ63TJDR.js → chunk-ZIE3LCHE.js} +4 -4
- package/dist/{chunk-3L732D6Q.js → chunk-ZQYAGL5J.js} +2 -2
- package/dist/{codex-app-cards-switch-YYFIY4PE.js → codex-app-cards-switch-WIMAJIB7.js} +11 -11
- package/dist/{codex-card-routing-DCFMF5HS.js → codex-card-routing-XCFEMXOH.js} +2 -2
- package/dist/{codex-desktop-launch-UFZRH4XD.js → codex-desktop-launch-SIWL62HT.js} +1 -1
- package/dist/{codex-session-launch-U3CG5HZW.js → codex-session-launch-LUCQNTVP.js} +20 -20
- package/dist/{config-XVZK2UAF.js → config-CB7VGWF7.js} +3 -3
- package/dist/{global-upgrade-XDSQ2M64.js → global-upgrade-34UV333H.js} +9 -9
- package/dist/{identity-XMK4J35G.js → identity-GTVFP3LV.js} +4 -4
- package/dist/{live-capabilities-6QYUI2GO.js → live-capabilities-RG7STBKW.js} +4 -4
- package/dist/{paths-WIIOD7OX.js → paths-IIFXE7O2.js} +3 -3
- package/dist/reapply-ZN6LLFVB.js +74 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-H7PM7O6A.js → upgrade-lock-GFNGLGR3.js} +4 -4
- package/dist/{usage-V5IV7YRA.js → usage-AJ2MWOQT.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-NQNUT7VY.js +0 -74
|
@@ -5197,6 +5197,7 @@ var BACKSLASH2 = "\\";
|
|
|
5197
5197
|
var NETWORK_SHARE_PREFIX = "//";
|
|
5198
5198
|
var DOT_SEGMENT = /(?:^|[\\/])\.{1,2}(?=[\\/]|$)/;
|
|
5199
5199
|
var WINDOWS_PATH = /^(?:[A-Za-z]:[\\/]|\\\\)/;
|
|
5200
|
+
var isWindowsRootedPath = (path) => WINDOWS_PATH.test(path);
|
|
5200
5201
|
var FIRST_SEGMENT_WITH_AN_UNKNOWN_BASE = /^(?:~|\$|%|[A-Za-z]:)/;
|
|
5201
5202
|
var hasDotSegment = (path) => DOT_SEGMENT.test(path);
|
|
5202
5203
|
var PATH_SPELLINGS_CACHE_MAX = 64;
|
|
@@ -5227,7 +5228,7 @@ var readingOf = (path, directory) => {
|
|
|
5227
5228
|
const spelling = `${anchor.prefix}${[...Array(climbs).fill(PARENT_SEGMENT), ...kept].join("/")}`;
|
|
5228
5229
|
return { spelling: spelling.length > 0 ? spelling : CURRENT_SEGMENT, standing: standingOf(anchor.base, climbs) };
|
|
5229
5230
|
};
|
|
5230
|
-
var hasOneSeparatorReading = (path, directory) => !path.includes(BACKSLASH2) ||
|
|
5231
|
+
var hasOneSeparatorReading = (path, directory) => !path.includes(BACKSLASH2) || isWindowsRootedPath(path) || directory !== void 0 && DRIVE_ROOT.test(directory);
|
|
5231
5232
|
var separatorReadingsOf = (path, directory) => hasOneSeparatorReading(path, directory) ? [normalizeSeparators(path)] : [path, normalizeSeparators(path)];
|
|
5232
5233
|
var spellingsOfReadings = (readings) => [...new Set(readings.map((reading) => reading.spelling))];
|
|
5233
5234
|
var isPlaced = (reading) => reading.standing === "placed";
|
|
@@ -6463,9 +6464,8 @@ var gitSendsToAPlaceTheCommandNames = ({ program, args }) => {
|
|
|
6463
6464
|
if (GIT_COMMANDS_THAT_SEND_TO_THE_ADDRESS_THEY_ARE_GIVEN.has(subcommand.text)) return true;
|
|
6464
6465
|
return subcommand.text === GIT_PUSH && wordsNamingWhereAGitPushSends(gitArgs.slice(gitArgs.indexOf(subcommand) + 1)).some(mayNameAGitAddress);
|
|
6465
6466
|
};
|
|
6466
|
-
var
|
|
6467
|
+
var changesAFileThatNeedsAPerson = ({ program, args }) => {
|
|
6467
6468
|
if (program === void 0) return false;
|
|
6468
|
-
if (sendsAFileThatNeedsAPerson({ program, args })) return true;
|
|
6469
6469
|
const name = basenameOf(program.text);
|
|
6470
6470
|
const editsInPlace = PERMISSIONS_OFF_EDITS_IN_PLACE.has(name) && args.some((arg) => flagEditsInPlace(name, arg.text));
|
|
6471
6471
|
if (!COPIES_ONTO_ITS_LAST_OPERAND.has(name) && !PERMISSIONS_OFF_WRITES_EVERY_OPERAND.has(name) && !editsInPlace) return false;
|
|
@@ -7467,6 +7467,8 @@ var honoursPreviewFlags = ({ program, args }) => {
|
|
|
7467
7467
|
var onlyPreviews = (invocation) => invocation.program !== void 0 && honoursPreviewFlags(invocation) && invocation.args.some((arg) => !arg.expands && PREVIEW_FLAG.test(arg.text));
|
|
7468
7468
|
var changesWhatIsDeployed = (toolName, invocation, normalized) => !onlyPreviews(invocation) && (changesProduction(invocation) || mergesAPullRequest(invocation) || isCoveredByPolicy(DEPLOY_AND_SCHEMA_COMMAND_PATTERNS, toolName, normalized));
|
|
7469
7469
|
var releasesOrChangesACluster = (toolName, invocation, normalized) => !onlyPreviews(invocation) && (pushesATag(invocation) || publishesAnAppBuild(invocation) || RELEASE_AND_CLUSTER_PROGRAMS.has(basenameOf(invocation.program?.text ?? "")) && isCoveredByPolicy(RELEASE_AND_CLUSTER_COMMAND_PATTERNS, toolName, normalized));
|
|
7470
|
+
var LINES_THAT_ASK_BEFORE_A_PROTECTED_FILE_CHANGES = /* @__PURE__ */ new Set(["posix_standing_allow", "permissions_off"]);
|
|
7471
|
+
var lineAsksBeforeAProtectedFileChanges = (line) => LINES_THAT_ASK_BEFORE_A_PROTECTED_FILE_CHANGES.has(line);
|
|
7470
7472
|
var MAIL_TRANSFER_PROGRAMS = /* @__PURE__ */ new Set(["sendmail", "msmtp", "ssmtp"]);
|
|
7471
7473
|
var MAIL_CLIENTS = /* @__PURE__ */ new Set(["mail", "mailx", "mutt", "s-nail", "nail"]);
|
|
7472
7474
|
var MAIL_TRANSFER_MODE_THAT_ONLY_READS = /^(?:-b[ptv]|--help|--version|-V|--serverinfo|--pretend)$/;
|
|
@@ -7487,14 +7489,14 @@ var stopsTheMachine = ({ program, args }) => {
|
|
|
7487
7489
|
const name = program === void 0 ? void 0 : basenameOf(program.text);
|
|
7488
7490
|
return name !== void 0 && PROGRAMS_THAT_STOP_THE_MACHINE.has(name) && !args.some((arg) => ONLY_DESCRIBES_ITSELF.test(arg.text)) && !(name === SHUTDOWN && args.some((arg) => arg.text === CANCELS_A_SHUTDOWN));
|
|
7489
7491
|
};
|
|
7490
|
-
var invocationHasAConsequenceOnlyPermissionsOffAsksAbout = (toolName, invocation, normalized, reading) => releasesOrChangesACluster(toolName, invocation, normalized) || reading === "as_written" && changesAPublishedPackage(invocation) || mergesAPullRequestByAnyPath(invocation) ||
|
|
7492
|
+
var invocationHasAConsequenceOnlyPermissionsOffAsksAbout = (toolName, invocation, normalized, reading) => releasesOrChangesACluster(toolName, invocation, normalized) || reading === "as_written" && changesAPublishedPackage(invocation) || mergesAPullRequestByAnyPath(invocation) || sendsAFileThatNeedsAPerson(invocation) || changesWhereGitLooksForHooks(invocation) || setsAGitSettingThatRunsAProgram(invocation) || changesWhereGitSends(invocation) || gitSendsToAPlaceTheCommandNames(invocation) || changesSomethingHostedElsewhere(invocation) || sendsMail(invocation) || stopsTheMachine(invocation);
|
|
7491
7493
|
var invocationHasAVisibleConsequence = (toolName, invocation, depth, line, reading = "as_written") => {
|
|
7492
7494
|
if (depth > MAX_CONSEQUENCE_DEPTH) return true;
|
|
7493
7495
|
if (invocation.program === void 0) return false;
|
|
7494
7496
|
const normalized = quotedInvocation(invocation);
|
|
7495
7497
|
const innermost = innermostInvocation(invocation);
|
|
7496
7498
|
const script = shellScriptOf(invocation);
|
|
7497
|
-
return classifyDecisionRisk(toolName, normalized) === "destructive" || changesWhatIsDeployed(toolName, invocation, normalized) || writesASecretFile(invocation) || line === "permissions_off" && invocationHasAConsequenceOnlyPermissionsOffAsksAbout(toolName, invocation, normalized, reading) || losesDataVisibly(toolName, invocation, normalized, depth, line) || subcommandDestroysVisibly(invocation) || sqlClientChangesData(invocation) || innermost !== invocation && invocationHasAVisibleConsequence(toolName, innermost, depth, line) || script === null && passesAnInlineScript(invocation) || script !== null && commandHasAVisibleConsequenceAt(toolName, script, depth + 1, line) || readingsPastGlobalFlags(invocation).some((pastFlags) => invocationHasAVisibleConsequence(toolName, pastFlags, depth + 1, line, "past_global_flags"));
|
|
7499
|
+
return classifyDecisionRisk(toolName, normalized) === "destructive" || changesWhatIsDeployed(toolName, invocation, normalized) || writesASecretFile(invocation) || lineAsksBeforeAProtectedFileChanges(line) && changesAFileThatNeedsAPerson(invocation) || line === "permissions_off" && invocationHasAConsequenceOnlyPermissionsOffAsksAbout(toolName, invocation, normalized, reading) || losesDataVisibly(toolName, invocation, normalized, depth, line) || subcommandDestroysVisibly(invocation) || sqlClientChangesData(invocation) || innermost !== invocation && invocationHasAVisibleConsequence(toolName, innermost, depth, line) || script === null && passesAnInlineScript(invocation) || script !== null && commandHasAVisibleConsequenceAt(toolName, script, depth + 1, line) || readingsPastGlobalFlags(invocation).some((pastFlags) => invocationHasAVisibleConsequence(toolName, pastFlags, depth + 1, line, "past_global_flags"));
|
|
7498
7500
|
};
|
|
7499
7501
|
var RUNS_FETCHED_CODE = /(?:\$\(|`|<\()\s*(?:curl|wget)\b/;
|
|
7500
7502
|
var RUNS_DECODED_CODE = /(?:^|[;&|(\s])(?:bash|sh|zsh|source|\.|python3?|node|ruby|perl)\s+(?:-[A-Za-z]+\s+)*["']?(?:<\(|\$\()[^)]*\b(?:base64|xxd|openssl)\b/;
|
|
@@ -7776,12 +7778,12 @@ var roughReadingHasAVisibleConsequence = (toolName, command, depth, line) => {
|
|
|
7776
7778
|
const producesHiddenCode = invocations.some(producesCodeTheLineCannotSee(line));
|
|
7777
7779
|
return segments.some((segment) => roughSegmentHasAVisibleConsequence(toolName, segment, producesHiddenCode, depth, line)) || runsADownloadedScript(invocations) || line === "permissions_off" && runsInterpreterCodeThatNeedsAPerson(command, invocations, depth);
|
|
7778
7780
|
};
|
|
7779
|
-
var commandHidesWhatItWritesOrRuns = (command, readable) => RUNS_DECODED_CODE.test(readable) || redirectsIntoAFileThatNeedsAPerson(command);
|
|
7780
7781
|
var commandHasAVisibleConsequenceAt = (toolName, command, depth, line) => {
|
|
7781
7782
|
if (toolName === "Bash" && isSafeReadOnlyCommand(command)) return false;
|
|
7782
7783
|
const readable = withHeredocSubstitutionsAsQuotedText(command);
|
|
7783
7784
|
if (classifyDecisionRisk(toolName, readable) === "destructive" || RUNS_FETCHED_CODE.test(readable) || REDIRECTS_INTO_A_SECRET_FILE.test(readable)) return true;
|
|
7784
|
-
if (line === "permissions_off" &&
|
|
7785
|
+
if (line === "permissions_off" && RUNS_DECODED_CODE.test(readable)) return true;
|
|
7786
|
+
if (lineAsksBeforeAProtectedFileChanges(line) && redirectsIntoAFileThatNeedsAPerson(command)) return true;
|
|
7785
7787
|
const segments = readableCommandSegments(command);
|
|
7786
7788
|
if (segments === null) return roughReadingHasAVisibleConsequence(toolName, command, depth, line);
|
|
7787
7789
|
const invocations = segments.map((segment) => invocationOf(withoutShellGrouping(segment)));
|
|
@@ -7814,7 +7816,8 @@ var posixShellJudgeFor = (toolName, line = "standing_allow") => ({
|
|
|
7814
7816
|
});
|
|
7815
7817
|
var commandIsDestructive = (toolName, command) => shellDialectOf(toolName) === "powershell" ? powerShellCommandIsDestructive(command, posixShellJudgeFor(toolName)) : aReadingIsDestructive(toolName, command);
|
|
7816
7818
|
var commandHasAConsequenceOnTheLine = (toolName, command, line) => shellDialectOf(toolName) === "powershell" ? powerShellCommandHasAVisibleConsequence(command, posixShellJudgeFor(toolName, line)) : commandHasAVisibleConsequenceAt(toolNameForAPosixReading(toolName), command, 0, line);
|
|
7817
|
-
var
|
|
7819
|
+
var lineAnAlwaysAllowDraws = (toolName) => shellDialectOf(toolName) === "posix" ? "posix_standing_allow" : "standing_allow";
|
|
7820
|
+
var commandHasAVisibleConsequence = (toolName, command) => commandHasAConsequenceOnTheLine(toolName, command, lineAnAlwaysAllowDraws(toolName));
|
|
7818
7821
|
var commandHasAConsequenceWithPermissionsOff = (toolName, command) => commandHasAConsequenceOnTheLine(toolName, command, "permissions_off");
|
|
7819
7822
|
var MAX_SPELLING_DEPTH = 3;
|
|
7820
7823
|
var GIT_GLOBAL_OPTIONS_WITH_A_VALUE = /* @__PURE__ */ new Set([
|
|
@@ -8886,6 +8889,9 @@ var ASK_QUESTION_MAX = 8e3;
|
|
|
8886
8889
|
var ASK_CONTEXT_MAX = 500;
|
|
8887
8890
|
var ASK_AGENT_NAME_MAX = 100;
|
|
8888
8891
|
var GIT_GLOBAL_OPTION = String.raw`(?:\s+-\S*(?:\s+[^\s-]\S*)?)`;
|
|
8892
|
+
var MOST_GIT_GLOBAL_OPTIONS_BEFORE_THE_SUBCOMMAND = 16;
|
|
8893
|
+
var SOME_GIT_GLOBAL_OPTIONS = String.raw`${GIT_GLOBAL_OPTION}{1,${MOST_GIT_GLOBAL_OPTIONS_BEFORE_THE_SUBCOMMAND}}`;
|
|
8894
|
+
var ANY_GIT_GLOBAL_OPTIONS = String.raw`${GIT_GLOBAL_OPTION}{0,${MOST_GIT_GLOBAL_OPTIONS_BEFORE_THE_SUBCOMMAND}}`;
|
|
8889
8895
|
var AMPERSAND_OR_BAR_OF_A_REDIRECT = String.raw`(?<=[<>])&|(?<=>)\||(?<=>&)\||(?<![<>])&(?=>)`;
|
|
8890
8896
|
var SAME_COMMAND_CHARACTER = String.raw`(?:[^\n;&|]|${AMPERSAND_OR_BAR_OF_A_REDIRECT})`;
|
|
8891
8897
|
var sameCommandBeforeAnother = (program) => String.raw`(?:(?!\b${program}\b)${SAME_COMMAND_CHARACTER})*?`;
|
|
@@ -8902,14 +8908,14 @@ var DESTRUCTIVE_ACTION_RISK_PATTERNS = [
|
|
|
8902
8908
|
{ pattern: new RegExp(String.raw`\bfind\b${sameCommandBeforeAnother("find")}\s-delete\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
8903
8909
|
{ pattern: new RegExp(String.raw`\bfind\b${sameCommandBeforeAnother("find")}\s-(?:exec|execdir|ok|okdir)\s+(?:\S*\/)?rm\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
8904
8910
|
{ pattern: /git\s+push[^\n]*(--force|--force-with-lease|\s-f\b)/i, reason: RISK_REASON.forcePushes },
|
|
8905
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8911
|
+
{ pattern: new RegExp(String.raw`\bgit${SOME_GIT_GLOBAL_OPTIONS}\s+push${sameLineBeforeAnother("git")}(?:--force|--force-with-lease|\s-f\b)`, "i"), reason: RISK_REASON.forcePushes },
|
|
8906
8912
|
{ pattern: /git\s+reset\s+--hard/i, reason: RISK_REASON.discardsLocalChanges },
|
|
8907
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8913
|
+
{ pattern: new RegExp(String.raw`\bgit${SOME_GIT_GLOBAL_OPTIONS}\s+reset\s+--hard`, "i"), reason: RISK_REASON.discardsLocalChanges },
|
|
8908
8914
|
{ pattern: /git\s+clean\s+-[a-z]*f/i, reason: RISK_REASON.deletesUntrackedFiles },
|
|
8909
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8910
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8911
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8912
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8915
|
+
{ pattern: new RegExp(String.raw`\bgit${SOME_GIT_GLOBAL_OPTIONS}\s+clean\s+-[a-z]*f`, "i"), reason: RISK_REASON.deletesUntrackedFiles },
|
|
8916
|
+
{ pattern: new RegExp(String.raw`\bgit${ANY_GIT_GLOBAL_OPTIONS}\s+branch\b${sameCommandBeforeAnother("git")}\s-[a-zA-Z]*D`), reason: RISK_REASON.deletesABranch },
|
|
8917
|
+
{ pattern: new RegExp(String.raw`\bgit${ANY_GIT_GLOBAL_OPTIONS}\s+branch\b(?=${sameCommandBeforeAnother("git")}\s(?:--delete|-[a-z]*d[a-z]*)\b)(?=${sameCommandBeforeAnother("git")}\s(?:--force|-[a-z]*f[a-z]*)\b)`), reason: RISK_REASON.deletesABranch },
|
|
8918
|
+
{ pattern: new RegExp(String.raw`\bgit${ANY_GIT_GLOBAL_OPTIONS}\s+push\b${sameCommandBeforeAnother("git")}\s(?:--delete\b|-d\b|:[^\s:])`), reason: RISK_REASON.deletesABranch },
|
|
8913
8919
|
{ pattern: /\bdrop\s+(table|database|schema)\b/i, reason: RISK_REASON.dropsATableOrDatabase },
|
|
8914
8920
|
{ pattern: /\bdelete\s+from\b/i, reason: RISK_REASON.deletesRows },
|
|
8915
8921
|
{ pattern: /\btruncate\b/i, reason: RISK_REASON.truncates },
|
|
@@ -9983,14 +9989,32 @@ var codexCallIsDestructive = (input, call) => call.deletesFiles || runsADestruct
|
|
|
9983
9989
|
var connectorCallOnlyReads = ({ toolName, toolInputs }) => isCodexConnectorTool(toolName) && mcpToolOnlyReads(toolName) && !mcpToolAppNamesADatabase(toolName) && toolInputs.length > 0 && toolInputs.every((toolInput) => mcpToolInputOnlyReads(toolName, toolInput));
|
|
9984
9990
|
var fullAccessRunsThisConnectorReadUnasked = (input, verdict, call) => !codexRaisesItsOwnPrompts(call.permissionMode) && scopeBreachReasonOf(verdict) === void 0 && noModeOverrideIsActive(input) && connectorCallOnlyReads(input);
|
|
9985
9991
|
var codexCallNeedsAPerson = (input, verdict, call) => onlyCodexPreToolUseCanAsk(verdict, call.permissionMode) && !fullAccessRunsThisConnectorReadUnasked(input, verdict, call) || verdict.kind === "gate" && (aChosenRuleGoverns(input) || call.deletesFiles || runsACommandThatNeedsAPerson(input) || editsAFileThatNeedsAPerson(input) || theProtectedFileFloorHoldsAnAllow(input));
|
|
9992
|
+
var MODES_THAT_RING_THE_PHONE = `${APPROVAL_MODE_META.push_only.label} or ${APPROVAL_MODE_META.push_first.label}`;
|
|
9993
|
+
var PROTECTED_FILE_NEEDS_A_PERSON_REASON = `Pushary did not run this patch. It changes a protected file, which needs a person, and in this Pushary mode no question reaches anyone, so trying again gets the same refusal. Tell the user. To let it run, they can add a rule for this exact file in Pushary's Policies, such as Edit(AGENTS.md) for AGENTS.md, switch the Pushary mode to ${MODES_THAT_RING_THE_PHONE}, which ask on the phone, or make the edit themselves.`;
|
|
9994
|
+
var PROTECTED_FILE_EDIT_REFUSED_TITLE = "Protected file edit refused";
|
|
9995
|
+
var protectedFileEditRefusedAlert = (description) => ({
|
|
9996
|
+
title: PROTECTED_FILE_EDIT_REFUSED_TITLE,
|
|
9997
|
+
body: `${description}. ${APPROVAL_MODE_META.notify_only.label} asks nobody about a protected file, so it did not run. Add a rule for this exact file, switch to ${MODES_THAT_RING_THE_PHONE}, or make the edit yourself.`
|
|
9998
|
+
});
|
|
9999
|
+
var MODE_THAT_ALERTS_WITHOUT_ASKING = "notify_only";
|
|
9986
10000
|
var CODEX_PRE_TOOL_USE_PASSES = { kind: "pass" };
|
|
9987
10001
|
var codexOwnPromptCannotTakeTheCall = (input, call) => codexCallIsDestructive(input, call) || theProtectedFileFloorHoldsAnAllow(input);
|
|
10002
|
+
var nobodyIsAskedAboutAFloorHeldEdit = (floorHoldsAnAllow, verdict, mode) => floorHoldsAnAllow && scopeBreachReasonOf(verdict) === void 0 && approvalWaitsAtTheAgentsPrompt(mode);
|
|
10003
|
+
var refusalOfAFloorHeldEditNobodyIsAskedAbout = (policy) => ({
|
|
10004
|
+
kind: "refuse",
|
|
10005
|
+
policy,
|
|
10006
|
+
reason: PROTECTED_FILE_NEEDS_A_PERSON_REASON,
|
|
10007
|
+
alertsThePerson: policy.mode === MODE_THAT_ALERTS_WITHOUT_ASKING
|
|
10008
|
+
});
|
|
9988
10009
|
var codexPreToolUseDelivery = (input, verdict, call) => {
|
|
9989
10010
|
if (verdict.kind !== "gate" || !codexCallNeedsAPerson(input, verdict, call)) return CODEX_PRE_TOOL_USE_PASSES;
|
|
9990
|
-
const
|
|
10011
|
+
const floorHoldsAnAllow = theProtectedFileFloorHoldsAnAllow(input);
|
|
10012
|
+
const noPromptOfItsOwn = floorHoldsAnAllow || codexHasNoPromptOfItsOwn(scopeBreachReasonOf(verdict), call.permissionMode);
|
|
9991
10013
|
const mode = noPromptOfItsOwn ? approvalModeWithoutLocalPrompt(verdict.policy.mode) : verdict.policy.mode;
|
|
9992
10014
|
if (mode === "push_first" && !codexOwnPromptCannotTakeTheCall(input, call)) return CODEX_PRE_TOOL_USE_PASSES;
|
|
9993
|
-
|
|
10015
|
+
const policy = { ...verdict.policy, mode };
|
|
10016
|
+
if (nobodyIsAskedAboutAFloorHeldEdit(floorHoldsAnAllow, verdict, mode)) return refusalOfAFloorHeldEditNobodyIsAskedAbout(policy);
|
|
10017
|
+
return { kind: "ask", policy, agentPromptFollows: !noPromptOfItsOwn };
|
|
9994
10018
|
};
|
|
9995
10019
|
var MAX_AGENT_PERMISSION_RULES_PER_KIND = 256;
|
|
9996
10020
|
var MAX_AGENT_PERMISSION_RULE_LENGTH = 512;
|
|
@@ -10809,6 +10833,7 @@ export {
|
|
|
10809
10833
|
TOOL_NAME_MAX_LENGTH,
|
|
10810
10834
|
normalizeRepoRemote,
|
|
10811
10835
|
localRepoKey,
|
|
10836
|
+
isWindowsRootedPath,
|
|
10812
10837
|
isSafeReadOnlyCommand,
|
|
10813
10838
|
isAutoApprove,
|
|
10814
10839
|
FILE_TARGET_TOOLS,
|
|
@@ -10878,6 +10903,7 @@ export {
|
|
|
10878
10903
|
refusesWhenUnanswered,
|
|
10879
10904
|
codexDeferredPreToolUse,
|
|
10880
10905
|
scopeBreachReasonOf,
|
|
10906
|
+
protectedFileEditRefusedAlert,
|
|
10881
10907
|
codexPreToolUseDelivery,
|
|
10882
10908
|
claudePermissionRulesFromSettings,
|
|
10883
10909
|
claudeConsultsItsAllowlist,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-TCE3J44Z.js";
|
|
4
4
|
import {
|
|
5
5
|
parseVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MNUYTEPY.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MXX4JRBI.js";
|
|
10
10
|
|
|
11
11
|
// src/setup/agent-probe.ts
|
|
12
12
|
import { execSync } from "child_process";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B5B2W6RF.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CCWBBHOQ.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MXX4JRBI.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AJXODCEY.js";
|
|
7
7
|
import {
|
|
8
8
|
daemonHasRemoteProof,
|
|
9
9
|
daemonServiceManagerAvailable,
|
|
10
10
|
hasDaemonServiceDefinition,
|
|
11
11
|
readDaemonNeedsLogin,
|
|
12
12
|
readDaemonStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RJCLIWNI.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-B5B2W6RF.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SYMM37D5.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CCWBBHOQ.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
26
|
} from "./chunk-CXQWDQCJ.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
toolResultErrorText,
|
|
30
30
|
transcriptTokensIn,
|
|
31
31
|
transcriptUsageRequest
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-KQUOVCCS.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-STXX44Q2.js";
|
|
52
52
|
import {
|
|
53
53
|
RETRY_ACK,
|
|
54
54
|
readCommandAck,
|
|
55
55
|
refusedReceiptMessage
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-HG76GEOE.js";
|
|
57
57
|
import {
|
|
58
58
|
SubscriptionRequiredError,
|
|
59
59
|
isRetryable,
|
|
60
60
|
withRetry
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-LHSKKRGC.js";
|
|
62
62
|
import {
|
|
63
63
|
fetchAsCredential
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-K2RNGCIH.js";
|
|
65
65
|
import {
|
|
66
66
|
branchFor,
|
|
67
67
|
projectNameFor,
|
|
68
68
|
repoKeyFor
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-3SROGHN7.js";
|
|
70
70
|
import {
|
|
71
71
|
getMachineId
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-B5B2W6RF.js";
|
|
73
73
|
import {
|
|
74
74
|
reportedInstallSource
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-ZQYAGL5J.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-UO224FD7.js";
|
|
82
82
|
import {
|
|
83
83
|
compareVersion,
|
|
84
84
|
parseVersion
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-MNUYTEPY.js";
|
|
86
86
|
import {
|
|
87
87
|
getApiKey,
|
|
88
88
|
getBaseUrl
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-CCWBBHOQ.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-MXX4JRBI.js";
|
|
148
148
|
|
|
149
149
|
// src/pending.ts
|
|
150
150
|
import { join } from "path";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZIE3LCHE.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3ZELWDAG.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3UNLHFAQ.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-STXX44Q2.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MXX4JRBI.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"];
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./chunk-3PSNUHC5.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-B5B2W6RF.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SYMM37D5.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UO224FD7.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MNUYTEPY.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CCWBBHOQ.js";
|
|
20
20
|
import {
|
|
21
21
|
readJsonSafe,
|
|
22
22
|
writeFileAtomic,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-CXQWDQCJ.js";
|
|
33
33
|
import {
|
|
34
34
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MXX4JRBI.js";
|
|
36
36
|
|
|
37
37
|
// src/daemon-entry-guard.ts
|
|
38
38
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LRZKYIQ6.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-XRANKHLM.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-MXX4JRBI.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LHSKKRGC.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K2RNGCIH.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-O5YMM4NC.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UO224FD7.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CCWBBHOQ.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-MXX4JRBI.js";
|
|
42
42
|
|
|
43
43
|
// src/api.ts
|
|
44
44
|
import { randomUUID } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZQYAGL5J.js";
|
|
4
4
|
import {
|
|
5
5
|
configFilePath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CCWBBHOQ.js";
|
|
7
7
|
import {
|
|
8
8
|
backupFile,
|
|
9
9
|
backupFileInto,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
API_KEY_PREFIX_PATTERN,
|
|
16
16
|
isRecord,
|
|
17
17
|
isValidApiKey
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MXX4JRBI.js";
|
|
19
19
|
|
|
20
20
|
// src/shell-alias.ts
|
|
21
21
|
import { homedir } from "os";
|
|
@@ -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-5FMENCWV.js");
|
|
540
|
+
var loadTheCardRouting = () => import("./codex-card-routing-XCFEMXOH.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-WIMAJIB7.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,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LHSKKRGC.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K2RNGCIH.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XRANKHLM.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp-stdio-bridge.ts
|
|
12
12
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-62OI7PJ6.js";
|
|
4
4
|
import {
|
|
5
5
|
matchMacAccountStep,
|
|
6
6
|
retryAgentCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MJOKUFFE.js";
|
|
8
8
|
import {
|
|
9
9
|
canChangeApprovalSettings
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CJOSYTSG.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND,
|
|
13
13
|
npmExecSetupCommandFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XRANKHLM.js";
|
|
15
15
|
import {
|
|
16
16
|
EXIT
|
|
17
17
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
compatibleProfileFor,
|
|
23
23
|
isCompatibleAgentType
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MXX4JRBI.js";
|
|
25
25
|
|
|
26
26
|
// src/setup/closing.ts
|
|
27
27
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-B7BT6S66.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CJOSYTSG.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5CHF6KSC.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4L274ET5.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SYMM37D5.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CCWBBHOQ.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT
|
|
26
26
|
} from "./chunk-BG4HHB7E.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MXX4JRBI.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3SROGHN7.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SYMM37D5.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatVersion,
|
|
4
4
|
quoteIfNeeded,
|
|
5
5
|
shellDoubleQuoted
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MNUYTEPY.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-MXX4JRBI.js";
|
|
26
26
|
|
|
27
27
|
// src/setup/paths.ts
|
|
28
28
|
import { createHash as createHash2 } from "crypto";
|