pushary 1.9.219 → 1.9.221
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-HLSVV37E.js → api-JTOIAJHT.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 +17 -11
- 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-YFYD7TZX.js → chunk-2PYVR6W4.js} +2 -2
- package/dist/{chunk-5T73V757.js → chunk-3JDBILMC.js} +1 -1
- package/dist/{chunk-WGOQNQAJ.js → chunk-3YBPITHZ.js} +1 -1
- package/dist/{chunk-BLE5VR4N.js → chunk-45RB4A5I.js} +3 -3
- package/dist/{chunk-KEG2RUV2.js → chunk-4JBJ47K7.js} +6 -6
- package/dist/{chunk-CZJZ4NTJ.js → chunk-5MTASFSB.js} +4 -4
- package/dist/{chunk-ANENQIII.js → chunk-624434K4.js} +12 -12
- package/dist/{chunk-P6GK3NJF.js → chunk-6HWIQEPF.js} +5 -5
- package/dist/{chunk-ALBZHD3K.js → chunk-6ML2JCSW.js} +4 -4
- package/dist/{chunk-V4STGM2V.js → chunk-7DSSWYIS.js} +5 -5
- package/dist/{chunk-63UN5EUK.js → chunk-7HMNT5DR.js} +7 -7
- package/dist/{chunk-AMVK36AI.js → chunk-7JNLUN65.js} +4 -4
- package/dist/{chunk-EYIV7NHX.js → chunk-A4WF3WDA.js} +5 -5
- package/dist/{chunk-OR6LG45T.js → chunk-A5MNFZL5.js} +9 -9
- package/dist/{chunk-N4GJSAVY.js → chunk-AN2EIWF3.js} +3 -3
- package/dist/{chunk-J355LTH7.js → chunk-BAH3WT7Z.js} +2 -2
- package/dist/{chunk-R7TYJMIX.js → chunk-CIETRIS6.js} +5 -5
- package/dist/{chunk-DG6YDFFC.js → chunk-DKDURRNS.js} +2 -2
- package/dist/{chunk-IBEX5YUN.js → chunk-DUDBTT3J.js} +4 -4
- package/dist/{chunk-XAAUGAEC.js → chunk-DVFQ2ILC.js} +3 -3
- package/dist/{chunk-5YKUH4IX.js → chunk-EBRDPALD.js} +1 -1
- package/dist/{chunk-LQ5W3PQI.js → chunk-GBQC3S6V.js} +1 -1
- package/dist/{chunk-T7ITVKNC.js → chunk-GL7RJODG.js} +1 -1
- package/dist/{chunk-NOA5325L.js → chunk-H5MSCUQW.js} +5 -5
- package/dist/{chunk-QP5K3VAU.js → chunk-HFS627UG.js} +6 -6
- package/dist/{chunk-FIRKU3MH.js → chunk-HQJPT5KI.js} +4 -4
- package/dist/{chunk-DNOOPEMW.js → chunk-HWGF3NYS.js} +1 -1
- package/dist/{chunk-O3VKOGTN.js → chunk-I6ODTB3M.js} +2 -2
- package/dist/{chunk-KLSNXMZT.js → chunk-IQ2HY4D5.js} +5 -5
- package/dist/{chunk-5ZGD6AZV.js → chunk-IV43BDFN.js} +1 -1
- package/dist/{chunk-I5ILQPMH.js → chunk-JEOQ4VXD.js} +8 -8
- package/dist/{chunk-R7L65RZQ.js → chunk-JGD7KVCM.js} +10 -10
- package/dist/{chunk-GPYHVSYW.js → chunk-JNNLSAS5.js} +1 -1
- package/dist/{chunk-33BJNS3C.js → chunk-JSEHZPLC.js} +4 -4
- package/dist/{chunk-PZZFRUGH.js → chunk-JX4AEMKB.js} +1 -1
- package/dist/{chunk-MTARW7ZM.js → chunk-KANE733H.js} +1 -1
- package/dist/{chunk-ZAJIKNSK.js → chunk-LTJI4SBZ.js} +2 -2
- package/dist/{chunk-6LRLLOK2.js → chunk-LV4G3THM.js} +3 -3
- package/dist/{chunk-QVPPK677.js → chunk-MLDI6AF3.js} +1 -1
- package/dist/{chunk-G6HBBR6G.js → chunk-NOXGXO2D.js} +2 -2
- package/dist/{chunk-A5HEOPN3.js → chunk-OLFIEDEY.js} +3 -3
- package/dist/{chunk-D67H74VR.js → chunk-PEVHQDEW.js} +1 -1
- package/dist/{chunk-QNN7PXJC.js → chunk-PKDV377M.js} +3 -3
- package/dist/{chunk-AALWOL35.js → chunk-PVMQE42Q.js} +7 -7
- package/dist/{chunk-VWIKYJMA.js → chunk-RCRNZ27Z.js} +16 -16
- package/dist/{chunk-W7HBQJBU.js → chunk-RETWX7MH.js} +6 -6
- package/dist/{chunk-DP6M4VNO.js → chunk-RI3JPM5A.js} +1 -1
- package/dist/{chunk-VY3WDMN5.js → chunk-RIXQJT7Y.js} +1 -1
- package/dist/{chunk-G2H3TZIT.js → chunk-RLYMOZFR.js} +1 -1
- package/dist/{chunk-VCNVOXSF.js → chunk-RX5U2GCR.js} +3 -3
- package/dist/{chunk-BX43EONR.js → chunk-RZYGO6AP.js} +5 -5
- package/dist/{chunk-ZDI5CXNP.js → chunk-SCJQGYE6.js} +2 -2
- package/dist/{chunk-HYTYYZCW.js → chunk-SHJMSG2V.js} +16 -10
- package/dist/{chunk-M5C6BAYU.js → chunk-SUNV63JU.js} +3 -3
- package/dist/{chunk-6HEYYF4M.js → chunk-SY7IDQEJ.js} +3 -3
- package/dist/{chunk-JWRV7KGV.js → chunk-TCZ46QAX.js} +5 -5
- package/dist/{chunk-4JC4KEAK.js → chunk-TXBAJEMC.js} +1 -1
- package/dist/{chunk-I5C5JTD7.js → chunk-U6O6UBGW.js} +1 -1
- package/dist/{chunk-3RON5GEL.js → chunk-UDKEHYEH.js} +5 -5
- package/dist/{chunk-MZEHIL5X.js → chunk-UIWTGSZP.js} +6 -6
- package/dist/{chunk-4OU6AMW2.js → chunk-UK66PEWW.js} +4 -4
- package/dist/{chunk-CXGE57RE.js → chunk-US6SM7WS.js} +1 -1
- package/dist/{chunk-3LJAZXQH.js → chunk-UW5STDS3.js} +1 -1
- package/dist/{chunk-4I2SNDAP.js → chunk-UWY2QJ6D.js} +2 -2
- package/dist/{chunk-LZU2OKF5.js → chunk-UXLGIXAW.js} +3 -3
- package/dist/{chunk-H3Q2UISR.js → chunk-UYW456YU.js} +1 -1
- package/dist/{chunk-43GTIQA6.js → chunk-VCN5MOSO.js} +6 -6
- package/dist/{chunk-KGSIBDQH.js → chunk-VFVLM6OC.js} +2 -2
- package/dist/{chunk-MMONXTP4.js → chunk-WZ3FGOGX.js} +2 -2
- package/dist/{chunk-EHMLODBU.js → chunk-X3DWEYLO.js} +3 -3
- package/dist/{chunk-2NIFT2XQ.js → chunk-XVH3M2LX.js} +1 -1
- package/dist/{chunk-TNFUBZZP.js → chunk-YEVBZVZH.js} +4 -4
- package/dist/{chunk-NJGZLUXW.js → chunk-YSJI3CNQ.js} +2 -2
- package/dist/{chunk-TPWFAGYZ.js → chunk-YW6TMH5Q.js} +2 -2
- package/dist/{chunk-OFJ63I2T.js → chunk-YYQHBOQB.js} +5 -5
- package/dist/{chunk-SSGEIHML.js → chunk-ZHF2HQAH.js} +4 -4
- package/dist/{chunk-SXB4UCSW.js → chunk-ZROUIAPA.js} +12 -12
- package/dist/{chunk-K26RWC2P.js → chunk-ZRYTUECR.js} +2 -2
- package/dist/{chunk-TOUN7PUZ.js → chunk-ZWMQR6TE.js} +1 -1
- package/dist/{codex-app-cards-switch-QX2IJVRJ.js → codex-app-cards-switch-2EVH7E5F.js} +11 -11
- package/dist/{codex-card-routing-UZ3MIVHK.js → codex-card-routing-GDVRWK2E.js} +2 -2
- package/dist/{codex-desktop-launch-YUJINX2O.js → codex-desktop-launch-ODHJNOKB.js} +1 -1
- package/dist/{codex-session-launch-MVWZBHWE.js → codex-session-launch-J2BVVYQN.js} +20 -20
- package/dist/{config-IUICQWNS.js → config-6EROWTFW.js} +3 -3
- package/dist/{global-upgrade-L2FBXTHX.js → global-upgrade-WTIVMPOJ.js} +9 -9
- package/dist/{identity-62FPQQZL.js → identity-BA4HGNJ5.js} +4 -4
- package/dist/{live-capabilities-4U3KT3GQ.js → live-capabilities-JLRZCD2P.js} +4 -4
- package/dist/{paths-S2NXPE7E.js → paths-LLHZWMPM.js} +3 -3
- package/dist/reapply-YAEKWAUL.js +74 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-RE5DB37L.js → upgrade-lock-LVC72XIF.js} +4 -4
- package/dist/{usage-DZDCO7O2.js → usage-2WSXDV5P.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-M7YPZ5XG.js +0 -74
|
@@ -8886,27 +8886,33 @@ var ASK_QUESTION_MAX = 8e3;
|
|
|
8886
8886
|
var ASK_CONTEXT_MAX = 500;
|
|
8887
8887
|
var ASK_AGENT_NAME_MAX = 100;
|
|
8888
8888
|
var GIT_GLOBAL_OPTION = String.raw`(?:\s+-\S*(?:\s+[^\s-]\S*)?)`;
|
|
8889
|
-
var
|
|
8889
|
+
var MOST_GIT_GLOBAL_OPTIONS_BEFORE_THE_SUBCOMMAND = 16;
|
|
8890
|
+
var SOME_GIT_GLOBAL_OPTIONS = String.raw`${GIT_GLOBAL_OPTION}{1,${MOST_GIT_GLOBAL_OPTIONS_BEFORE_THE_SUBCOMMAND}}`;
|
|
8891
|
+
var ANY_GIT_GLOBAL_OPTIONS = String.raw`${GIT_GLOBAL_OPTION}{0,${MOST_GIT_GLOBAL_OPTIONS_BEFORE_THE_SUBCOMMAND}}`;
|
|
8892
|
+
var AMPERSAND_OR_BAR_OF_A_REDIRECT = String.raw`(?<=[<>])&|(?<=>)\||(?<=>&)\||(?<![<>])&(?=>)`;
|
|
8893
|
+
var SAME_COMMAND_CHARACTER = String.raw`(?:[^\n;&|]|${AMPERSAND_OR_BAR_OF_A_REDIRECT})`;
|
|
8894
|
+
var sameCommandBeforeAnother = (program) => String.raw`(?:(?!\b${program}\b)${SAME_COMMAND_CHARACTER})*?`;
|
|
8890
8895
|
var RM_AS_A_PROGRAM = String.raw`(?:^|[^\w-])rm\b`;
|
|
8891
|
-
var RM_COMMAND_BEFORE_ANOTHER_RM = String.raw`(?:(?![^\w-]rm\b)
|
|
8892
|
-
var REDIRECTS_THEN_AN_ARGUMENT = String.raw`(
|
|
8896
|
+
var RM_COMMAND_BEFORE_ANOTHER_RM = String.raw`(?:(?![^\w-]rm\b)${SAME_COMMAND_CHARACTER})*?`;
|
|
8897
|
+
var REDIRECTS_THEN_AN_ARGUMENT = String.raw`(?:(?:&(?=>)|\d*)[<>]+[&|]?[ \t]*[^\s;&|<>]+(?:[<>]+[&|]?[^\s;&|<>]+)*[ \t]+)*(?!\d*[<>])[^\s;&|<>]`;
|
|
8898
|
+
var NOT_A_REDIRECT_TARGET = String.raw`(?<![<>]|[<>][&|]|[ \t])`;
|
|
8893
8899
|
var sameLineBeforeAnother = (program) => String.raw`(?:(?!\b${program}\b)[^\n])*?`;
|
|
8894
8900
|
var DESTRUCTIVE_ACTION_RISK_PATTERNS = [
|
|
8895
8901
|
{ pattern: /\brm\s+-[a-z]*r/i, reason: RISK_REASON.deletesFiles },
|
|
8896
8902
|
{ 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}\
|
|
8903
|
+
{ 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 },
|
|
8898
8904
|
{ pattern: /\brmdir\b/i, reason: RISK_REASON.deletesFiles },
|
|
8899
8905
|
{ pattern: new RegExp(String.raw`\bfind\b${sameCommandBeforeAnother("find")}\s-delete\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
8900
8906
|
{ pattern: new RegExp(String.raw`\bfind\b${sameCommandBeforeAnother("find")}\s-(?:exec|execdir|ok|okdir)\s+(?:\S*\/)?rm\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
8901
8907
|
{ pattern: /git\s+push[^\n]*(--force|--force-with-lease|\s-f\b)/i, reason: RISK_REASON.forcePushes },
|
|
8902
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8908
|
+
{ 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 },
|
|
8903
8909
|
{ pattern: /git\s+reset\s+--hard/i, reason: RISK_REASON.discardsLocalChanges },
|
|
8904
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8910
|
+
{ pattern: new RegExp(String.raw`\bgit${SOME_GIT_GLOBAL_OPTIONS}\s+reset\s+--hard`, "i"), reason: RISK_REASON.discardsLocalChanges },
|
|
8905
8911
|
{ pattern: /git\s+clean\s+-[a-z]*f/i, reason: RISK_REASON.deletesUntrackedFiles },
|
|
8906
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8907
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8908
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8909
|
-
{ pattern: new RegExp(String.raw`\bgit${
|
|
8912
|
+
{ pattern: new RegExp(String.raw`\bgit${SOME_GIT_GLOBAL_OPTIONS}\s+clean\s+-[a-z]*f`, "i"), reason: RISK_REASON.deletesUntrackedFiles },
|
|
8913
|
+
{ pattern: new RegExp(String.raw`\bgit${ANY_GIT_GLOBAL_OPTIONS}\s+branch\b${sameCommandBeforeAnother("git")}\s-[a-zA-Z]*D`), reason: RISK_REASON.deletesABranch },
|
|
8914
|
+
{ 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 },
|
|
8915
|
+
{ 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 },
|
|
8910
8916
|
{ pattern: /\bdrop\s+(table|database|schema)\b/i, reason: RISK_REASON.dropsATableOrDatabase },
|
|
8911
8917
|
{ pattern: /\bdelete\s+from\b/i, reason: RISK_REASON.deletesRows },
|
|
8912
8918
|
{ pattern: /\btruncate\b/i, reason: RISK_REASON.truncates },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GBQC3S6V.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-JX4AEMKB.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-SHJMSG2V.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YSJI3CNQ.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UK66PEWW.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SHJMSG2V.js";
|
|
15
15
|
|
|
16
16
|
// src/openclaw/wiring-state.ts
|
|
17
17
|
var OPENCLAW_PLUGIN_ID = "pushary";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HQJPT5KI.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-624434K4.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XVH3M2LX.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-YSJI3CNQ.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-SHJMSG2V.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LV4G3THM.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-RETWX7MH.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-US6SM7WS.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OLFIEDEY.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KANE733H.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
26
|
} from "./chunk-CXQWDQCJ.js";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RZYGO6AP.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HWGF3NYS.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-45RB4A5I.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YSJI3CNQ.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KANE733H.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-SHJMSG2V.js";
|
|
42
42
|
|
|
43
43
|
// src/api.ts
|
|
44
44
|
import { randomUUID } from "crypto";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SHJMSG2V.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -600,9 +600,9 @@ var installGlobally = (options) => {
|
|
|
600
600
|
}
|
|
601
601
|
const started = (async () => {
|
|
602
602
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
603
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
604
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
605
|
-
const { autoUpdateLock } = await import("./paths-
|
|
603
|
+
const { withUpgradeLock } = await import("./global-upgrade-WTIVMPOJ.js");
|
|
604
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-LVC72XIF.js");
|
|
605
|
+
const { autoUpdateLock } = await import("./paths-LLHZWMPM.js");
|
|
606
606
|
let result = "skipped";
|
|
607
607
|
const install = async () => {
|
|
608
608
|
const planned = readPlannedSetupInstall(process.platform);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YSJI3CNQ.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UK66PEWW.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RZYGO6AP.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HWGF3NYS.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JX4AEMKB.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp-stdio-bridge.ts
|
|
12
12
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4JBJ47K7.js";
|
|
18
18
|
import {
|
|
19
19
|
describeRevokeAttempt,
|
|
20
20
|
keyNoLongerAccepted,
|
|
@@ -29,20 +29,20 @@ import {
|
|
|
29
29
|
isCI,
|
|
30
30
|
terminalColumns,
|
|
31
31
|
useColor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RI3JPM5A.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-X3DWEYLO.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-YW6TMH5Q.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-JX4AEMKB.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-SHJMSG2V.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U6O6UBGW.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OLFIEDEY.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YSJI3CNQ.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-SHJMSG2V.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-45RB4A5I.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KANE733H.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-SHJMSG2V.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;
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
claimThrottle,
|
|
5
5
|
releaseThrottle,
|
|
6
6
|
reportEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-624434K4.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveToolTarget,
|
|
10
10
|
permissionDeniedAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XVH3M2LX.js";
|
|
12
12
|
import {
|
|
13
13
|
projectNameFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U6O6UBGW.js";
|
|
15
15
|
import {
|
|
16
16
|
PERMISSION_ALLOWED_EVENT,
|
|
17
17
|
PERMISSION_DENIED_EVENT,
|
|
18
18
|
machineApprovalFor,
|
|
19
19
|
machineDecisionFor,
|
|
20
20
|
wireVerdictFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SHJMSG2V.js";
|
|
22
22
|
|
|
23
23
|
// src/machine-decision-audit.ts
|
|
24
24
|
var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatVersion,
|
|
4
4
|
quoteIfNeeded,
|
|
5
5
|
shellDoubleQuoted
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UK66PEWW.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-SHJMSG2V.js";
|
|
26
26
|
|
|
27
27
|
// src/setup/paths.ts
|
|
28
28
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5MTASFSB.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2PYVR6W4.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-X3DWEYLO.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
readConfigFileKey,
|
|
22
22
|
readKeySource,
|
|
23
23
|
readMacAppKeyPrefix
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OLFIEDEY.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SHJMSG2V.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
} from "./chunk-WHB622LP.js";
|
|
14
14
|
import {
|
|
15
15
|
keyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OLFIEDEY.js";
|
|
17
17
|
import {
|
|
18
18
|
getBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KANE733H.js";
|
|
20
20
|
import {
|
|
21
21
|
NPX_LATEST_COMMAND
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JX4AEMKB.js";
|
|
23
23
|
import {
|
|
24
24
|
isValidApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SHJMSG2V.js";
|
|
26
26
|
|
|
27
27
|
// src/cli/login-ui.ts
|
|
28
28
|
import { hostname } from "os";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureCodexTrustsPusharyHooks,
|
|
6
6
|
hermesHistoryNeedsTheCliHelper,
|
|
7
7
|
recordInstalledHermesHistoryHelper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AN2EIWF3.js";
|
|
9
9
|
import {
|
|
10
10
|
hermesReceiptPaths,
|
|
11
11
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
refreshHermesPluginFiles,
|
|
15
15
|
refreshOpenClawPlugin,
|
|
16
16
|
shippedHermesPlugin
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6ML2JCSW.js";
|
|
18
18
|
import {
|
|
19
19
|
fxIgnoresInstructionsFile,
|
|
20
20
|
fxInstructionsBody,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
macAppFxBridge,
|
|
24
24
|
refreshClineKey,
|
|
25
25
|
switchFxHttpEntryToBridge
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-A4WF3WDA.js";
|
|
27
27
|
import {
|
|
28
28
|
OPENCODE_HOOK_BINARY,
|
|
29
29
|
agentHookOwner,
|
|
@@ -36,16 +36,16 @@ import {
|
|
|
36
36
|
openCodePluginDir,
|
|
37
37
|
openCodeWired,
|
|
38
38
|
withOpenCodeAskRules
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PVMQE42Q.js";
|
|
40
40
|
import {
|
|
41
41
|
detectClaudeVersion
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-DKDURRNS.js";
|
|
43
43
|
import {
|
|
44
44
|
addCompatibleHooks,
|
|
45
45
|
compatibleConfigFile,
|
|
46
46
|
compatibleInstructionsFile,
|
|
47
47
|
hasCompatibleHooks
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-TCZ46QAX.js";
|
|
49
49
|
import {
|
|
50
50
|
GEMINI_HOOK_BINARY,
|
|
51
51
|
addGeminiHooks,
|
|
@@ -57,13 +57,13 @@ import {
|
|
|
57
57
|
geminiWired,
|
|
58
58
|
hasGeminiHooks,
|
|
59
59
|
planHooks
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-HQJPT5KI.js";
|
|
61
61
|
import {
|
|
62
62
|
transcriptsEnabled
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-EBRDPALD.js";
|
|
64
64
|
import {
|
|
65
65
|
KEY_FILE_MODE
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-OLFIEDEY.js";
|
|
67
67
|
import {
|
|
68
68
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
69
69
|
CLAUDE_HOOK_BINARY,
|
|
@@ -110,13 +110,13 @@ import {
|
|
|
110
110
|
renderAgentInstructions,
|
|
111
111
|
supportedClaudeEvents,
|
|
112
112
|
vscodePluginMcp
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-YSJI3CNQ.js";
|
|
114
114
|
import {
|
|
115
115
|
formatVersion,
|
|
116
116
|
hookCommandsUseBareNames,
|
|
117
117
|
resolveGlobalBinDir,
|
|
118
118
|
resolveGlobalBinary
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-UK66PEWW.js";
|
|
120
120
|
import {
|
|
121
121
|
readJsonSafe,
|
|
122
122
|
writeFileAtomic,
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
HOOK_COMPATIBLE_PROFILES,
|
|
127
127
|
isCompatibleAgentType,
|
|
128
128
|
isRecord
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-SHJMSG2V.js";
|
|
130
130
|
|
|
131
131
|
// src/reapply.ts
|
|
132
132
|
import { dirname, join } from "path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YSJI3CNQ.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-SHJMSG2V.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -22,24 +22,24 @@ import {
|
|
|
22
22
|
turnCodexAppCardsOff,
|
|
23
23
|
turnCodexAppCardsOn,
|
|
24
24
|
whyLaunchctlFailed
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-LTJI4SBZ.js";
|
|
26
|
+
import "./chunk-PKDV377M.js";
|
|
27
27
|
import "./chunk-XCEN33UP.js";
|
|
28
28
|
import "./chunk-U4P4NDVB.js";
|
|
29
29
|
import "./chunk-QCGNGEGE.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-RETWX7MH.js";
|
|
31
31
|
import "./chunk-3PSNUHC5.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-US6SM7WS.js";
|
|
33
|
+
import "./chunk-OLFIEDEY.js";
|
|
34
|
+
import "./chunk-YW6TMH5Q.js";
|
|
35
|
+
import "./chunk-YSJI3CNQ.js";
|
|
36
|
+
import "./chunk-UK66PEWW.js";
|
|
37
|
+
import "./chunk-KANE733H.js";
|
|
38
38
|
import "./chunk-PM2NRK6Y.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-JX4AEMKB.js";
|
|
40
40
|
import "./chunk-BG4HHB7E.js";
|
|
41
41
|
import "./chunk-CXQWDQCJ.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-SHJMSG2V.js";
|
|
43
43
|
import "./chunk-MLKGABMK.js";
|
|
44
44
|
export {
|
|
45
45
|
CODEX_APP_CARDS_DIRECTORY,
|