@pushary/agent-hooks 1.9.44 → 1.9.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/bin/pushary-bell-hook.js +25 -26
- package/dist/bin/pushary-bell.js +9 -9
- package/dist/bin/pushary-claude.js +32 -34
- package/dist/bin/pushary-clean.js +30 -31
- package/dist/bin/pushary-codex-bridge.js +22 -690
- package/dist/bin/pushary-codex-hook.js +32 -34
- package/dist/bin/pushary-codex-session.js +437 -41
- package/dist/bin/pushary-codex.js +12 -13
- package/dist/bin/pushary-connect.js +24 -25
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +42 -43
- package/dist/bin/pushary-disconnect.js +24 -25
- package/dist/bin/pushary-doctor.js +35 -36
- package/dist/bin/pushary-elicitation-hook.js +25 -26
- package/dist/bin/pushary-gemini-bridge.js +22 -22
- package/dist/bin/pushary-gemini-hook.js +29 -31
- package/dist/bin/pushary-hook.js +30 -31
- package/dist/bin/pushary-login.js +13 -13
- package/dist/bin/pushary-logout.js +24 -25
- package/dist/bin/pushary-mcp.js +9 -9
- package/dist/bin/pushary-mode.js +12 -12
- package/dist/bin/pushary-notification-hook.js +24 -25
- package/dist/bin/pushary-opencode-hook.js +28 -30
- package/dist/bin/pushary-permission-denied-hook.js +29 -30
- package/dist/bin/pushary-permission-hook.js +28 -29
- package/dist/bin/pushary-post-hook.js +24 -25
- package/dist/bin/pushary-prompt-hook.js +24 -25
- package/dist/bin/pushary-session-end-hook.js +24 -25
- package/dist/bin/pushary-session-start-hook.js +29 -30
- package/dist/bin/pushary-setup.js +37 -38
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +27 -28
- package/dist/bin/pushary-stop-hook.js +24 -25
- package/dist/bin/pushary-stopfailure-hook.js +24 -25
- package/dist/bin/pushary-suggestions.js +12 -12
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +7 -7
- package/dist/bin/pushary-upgrade.js +31 -32
- package/dist/bin/pushary-wait.js +12 -12
- package/dist/bin/pushary.js +6 -6
- package/dist/{chunk-MIBCRQWK.js → chunk-2DORVRDB.js} +2 -2
- package/dist/{chunk-KILK6SWZ.js → chunk-2FUHSKXH.js} +4 -4
- package/dist/{chunk-UY5E2UUW.js → chunk-2SXXH6JY.js} +5 -5
- package/dist/{chunk-UJXLVH66.js → chunk-335ZDJ7R.js} +1 -1
- package/dist/{chunk-OZ7MLVDM.js → chunk-3PM62C2R.js} +8 -8
- package/dist/{chunk-GRAPJKDK.js → chunk-46F4BRUQ.js} +1 -1
- package/dist/{chunk-WMO2XVG4.js → chunk-4A6VUVXV.js} +1 -1
- package/dist/{chunk-T3KMJI4W.js → chunk-57M4ERJK.js} +2 -2
- package/dist/{chunk-SI2NC6UU.js → chunk-5DCZL3BC.js} +3 -3
- package/dist/chunk-6JPDAUFP.js +866 -0
- package/dist/{chunk-S2ALW446.js → chunk-6TYKZ4DN.js} +3 -3
- package/dist/{chunk-WBD7HZEZ.js → chunk-7SGYCU5C.js} +1 -1
- package/dist/{chunk-KYLY6UMN.js → chunk-7URSJMAB.js} +1 -1
- package/dist/{chunk-T4CKP47U.js → chunk-ASK2MSD2.js} +5 -5
- package/dist/{chunk-W2TA4EVZ.js → chunk-AUOSFZJ3.js} +7 -7
- package/dist/{chunk-TWATOPHK.js → chunk-BT57FUMT.js} +2 -2
- package/dist/{chunk-GOEIW2VH.js → chunk-CDERSTBO.js} +182 -39
- package/dist/{chunk-M2L7625S.js → chunk-CFMCV6Z7.js} +2 -2
- package/dist/{chunk-FI2F5KZJ.js → chunk-DSGB5JLG.js} +4 -4
- package/dist/{chunk-2NVXFWQY.js → chunk-ECFEYB6Z.js} +1 -1
- package/dist/{chunk-DD6IBKEJ.js → chunk-EH5ZDG6V.js} +4 -4
- package/dist/{chunk-PQAFH4DF.js → chunk-EKGQEDQ4.js} +2 -2
- package/dist/{chunk-OWQOMGBF.js → chunk-EWC4P4ZL.js} +1 -1
- package/dist/{chunk-LEHBWBCG.js → chunk-FOUK4CBO.js} +4 -4
- package/dist/{chunk-4WBAHVBK.js → chunk-GQ5KCVGK.js} +6 -6
- package/dist/{chunk-BKK3JCTD.js → chunk-GZSSAY6N.js} +12 -14
- package/dist/{chunk-PGHN5D4N.js → chunk-H4ODQD3Y.js} +2 -2
- package/dist/{chunk-CAJCCQ7N.js → chunk-HHX6IRSH.js} +1 -1
- package/dist/{chunk-3IRC3XFG.js → chunk-IFT3GU7Y.js} +2 -2
- package/dist/{chunk-UC4PNLMK.js → chunk-IKYI63RF.js} +6 -6
- package/dist/{chunk-4JHEZ2PV.js → chunk-IOVJVGIT.js} +4 -4
- package/dist/{chunk-JNU3LV47.js → chunk-K7EGWMDU.js} +18 -3
- package/dist/{chunk-CESLE4UN.js → chunk-KS7NA5CK.js} +7 -7
- package/dist/{chunk-IWHDNMM3.js → chunk-N2K3BSCA.js} +5 -5
- package/dist/{chunk-HV4TEKNP.js → chunk-NJN5NRHZ.js} +4 -4
- package/dist/{chunk-6EV3B5CD.js → chunk-OHFC3GJY.js} +1 -1
- package/dist/{chunk-SWDPCDLT.js → chunk-P2F3JUFX.js} +4 -4
- package/dist/{chunk-TKTS3SIM.js → chunk-PWUIPQ2I.js} +3 -3
- package/dist/{chunk-ALY7ZBNB.js → chunk-QQXP3CQA.js} +1 -1
- package/dist/{chunk-FYNMFSIZ.js → chunk-R7ZQHAVL.js} +2 -2
- package/dist/{chunk-FKDZU6YX.js → chunk-RBJWPUI6.js} +4 -4
- package/dist/{chunk-MRQJCIFO.js → chunk-RFQWB5ZV.js} +1 -1
- package/dist/{chunk-XPQDBTW4.js → chunk-S6EGJBI5.js} +1 -1
- package/dist/{chunk-53UZN7JW.js → chunk-SFQSOBLM.js} +3 -3
- package/dist/{chunk-75M7NFFC.js → chunk-SIN7NJD7.js} +1 -1
- package/dist/{chunk-OSMNLNPF.js → chunk-U45OINYS.js} +1 -1
- package/dist/{chunk-E76QCZIA.js → chunk-U6Z56IQS.js} +2 -2
- package/dist/{chunk-GBCR2FH2.js → chunk-VO6XI6AX.js} +3 -3
- package/dist/{chunk-7UM4NCUI.js → chunk-WDIX4XZH.js} +2 -2
- package/dist/{chunk-CEZTYTBN.js → chunk-WM76AN4X.js} +11 -13
- package/dist/{chunk-L2ZM7LXN.js → chunk-WPPKXVV3.js} +2 -2
- package/dist/{chunk-RGBTKOCC.js → chunk-XFHISCJM.js} +5 -5
- package/dist/{chunk-TJZUQRMH.js → chunk-YK7FGPYS.js} +3 -3
- package/dist/{chunk-42CVAOC5.js → chunk-YWIFK2UB.js} +2 -2
- package/dist/{chunk-UZVF6MP2.js → chunk-YXGWG5PO.js} +5 -5
- package/dist/{chunk-OR6KJOHE.js → chunk-ZSY6BWUD.js} +2 -2
- package/dist/{global-upgrade-QSSDYZCZ.js → global-upgrade-U6NWZA5W.js} +6 -6
- package/dist/{paths-55DDFLY4.js → paths-IQTB3ZZI.js} +2 -2
- package/dist/{reapply-MEU66ALO.js → reapply-LILGWJO3.js} +21 -22
- package/dist/src/index.js +19 -20
- package/dist/{upgrade-lock-YLXAU4AD.js → upgrade-lock-2BVFIDU4.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-5ZSBQHCM.js +0 -161
- package/dist/chunk-SVCT5D7K.js +0 -196
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
isReleaseVersion,
|
|
15
15
|
ownPackageName,
|
|
16
16
|
withHookHoldBudget
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-K7EGWMDU.js";
|
|
18
18
|
|
|
19
19
|
// src/setup/paths.ts
|
|
20
20
|
import { homedir as homedir2 } from "os";
|
|
@@ -402,9 +402,9 @@ var installGlobally = (options) => {
|
|
|
402
402
|
}
|
|
403
403
|
const started = (async () => {
|
|
404
404
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
405
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
406
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
407
|
-
const { autoUpdateLock: autoUpdateLock2 } = await import("./paths-
|
|
405
|
+
const { withUpgradeLock } = await import("./global-upgrade-U6NWZA5W.js");
|
|
406
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-2BVFIDU4.js");
|
|
407
|
+
const { autoUpdateLock: autoUpdateLock2 } = await import("./paths-IQTB3ZZI.js");
|
|
408
408
|
let result = "skipped";
|
|
409
409
|
const install = async () => {
|
|
410
410
|
const platform = process.platform;
|
|
@@ -2662,6 +2662,8 @@ var boundedJson = (value) => {
|
|
|
2662
2662
|
};
|
|
2663
2663
|
var BASE_KEYS = ["threadId", "turnId", "itemId", "startedAtMs", "reason"];
|
|
2664
2664
|
var MCP_META_KEYS = ["codex_approval_kind", "codex_requires_user_input", "codex_request_type", "codex_strict_auto_review", "codex_sensitive_action", "approvals_reviewer", "persist", "source", "connector_id", "connector_name", "connector_description", "tool_name", "tool_title", "tool_description", "tool_params", "tool_params_display"];
|
|
2665
|
+
var COMPUTER_USE_META_KEYS = [...MCP_META_KEYS, "riskLevel", "subtitle", "tool_call_id"];
|
|
2666
|
+
var computerUseDisplay = (value) => Array.isArray(value) && value.length <= 16 && value.every((item) => record2(item) && keys(item, ["name", "display_name", "value"]) && text(item.name) && text(item.display_name) && text(item.value));
|
|
2665
2667
|
var isExecpolicyAmendment = (value) => Array.isArray(value) && value.length > 0 && value.length <= 128 && value.every((token) => typeof token === "string" && token.length <= 16384);
|
|
2666
2668
|
var isCommandDecision = (value) => {
|
|
2667
2669
|
if (typeof value === "string") return ["accept", "acceptForSession", "decline", "cancel"].includes(value);
|
|
@@ -2682,15 +2684,28 @@ var parseCodexNativeApproval = (value) => {
|
|
|
2682
2684
|
negativeDecision: "decline"
|
|
2683
2685
|
};
|
|
2684
2686
|
if (value.method === "mcpServer/elicitation/request") {
|
|
2685
|
-
if (value.changes !== void 0 || !keys(p, ["threadId", "turnId", "serverName", "mode", "message", "requestedSchema", "_meta"]) || p.mode !== "form" || !identifier2(p.serverName) || !text(p.message) || p.message.length > 500 || !record2(p.requestedSchema) || !keys(p.requestedSchema, ["type", "properties", "required", "$schema"]) || p.requestedSchema.type !== "object" || !record2(p.requestedSchema.properties) || Object.keys(p.requestedSchema.properties).length !== 0 || p.requestedSchema.required != null && (!Array.isArray(p.requestedSchema.required) || p.requestedSchema.required.length !== 0)) return null;
|
|
2686
2687
|
const meta = p._meta;
|
|
2687
|
-
|
|
2688
|
+
const computerUse = record2(meta) && meta.connector_id === "computer-use";
|
|
2689
|
+
if (value.changes !== void 0 || !keys(p, ["threadId", "turnId", "serverName", "mode", "message", "requestedSchema", "_meta"]) || !(p.mode === "form" || computerUse && (p.mode === "openai/form" || p.mode === "openaiForm")) || !identifier2(p.serverName) || !text(p.message) || p.message.length > 500 || !record2(p.requestedSchema) || !keys(p.requestedSchema, ["type", "properties", "required", "$schema"]) || p.requestedSchema.type !== "object" || !record2(p.requestedSchema.properties) || Object.keys(p.requestedSchema.properties).length !== 0 || p.requestedSchema.required != null && (!Array.isArray(p.requestedSchema.required) || p.requestedSchema.required.length !== 0)) return null;
|
|
2690
|
+
if (!record2(meta) || !keys(meta, computerUse ? COMPUTER_USE_META_KEYS : MCP_META_KEYS) || meta.codex_approval_kind !== "mcp_tool_call" || !identifier2(meta.tool_name) || !record2(meta.tool_params) || meta.tool_params_display != null && !(computerUse ? computerUseDisplay(meta.tool_params_display) : record2(meta.tool_params_display))) return null;
|
|
2691
|
+
if (computerUse && (meta.riskLevel !== "low" && meta.riskLevel !== "high" || meta.subtitle != null && !text(meta.subtitle) || !optionalIdentifier(meta.tool_call_id))) return null;
|
|
2688
2692
|
if (["codex_requires_user_input", "codex_strict_auto_review", "codex_sensitive_action"].some((key) => meta[key] != null && typeof meta[key] !== "boolean")) return null;
|
|
2689
2693
|
if (meta.approvals_reviewer != null && meta.approvals_reviewer !== "user") return null;
|
|
2690
2694
|
if (meta.codex_request_type != null && meta.codex_request_type !== "approval_request") return null;
|
|
2691
2695
|
if (["source", "connector_id", "connector_name", "connector_description", "tool_title", "tool_description"].some((key) => meta[key] != null && !text(meta[key]))) return null;
|
|
2692
2696
|
const persistence = meta.persist == null ? [] : typeof meta.persist === "string" ? [meta.persist] : meta.persist;
|
|
2693
2697
|
if (!Array.isArray(persistence) || persistence.some((v) => v !== "session" && v !== "always")) return null;
|
|
2698
|
+
if (computerUse) {
|
|
2699
|
+
if (!persistence.includes("session")) return null;
|
|
2700
|
+
return {
|
|
2701
|
+
...base,
|
|
2702
|
+
toolName: `mcp__${p.serverName}__${meta.tool_name}`,
|
|
2703
|
+
toolInputs: [meta.tool_params],
|
|
2704
|
+
question: p.message,
|
|
2705
|
+
detail: [`Risk: ${meta.riskLevel}`, meta.subtitle, JSON.stringify(meta.tool_params)].filter(Boolean).join("\n"),
|
|
2706
|
+
options: [CODEX_NATIVE_APPROVAL_CHOICES.session, CODEX_NATIVE_APPROVAL_CHOICES.deny]
|
|
2707
|
+
};
|
|
2708
|
+
}
|
|
2694
2709
|
return {
|
|
2695
2710
|
...base,
|
|
2696
2711
|
toolName: `mcp__${p.serverName}__${meta.tool_name}`,
|
|
@@ -2725,7 +2740,7 @@ ${change.diff}`);
|
|
|
2725
2740
|
}
|
|
2726
2741
|
return {
|
|
2727
2742
|
...base,
|
|
2728
|
-
toolName: "
|
|
2743
|
+
toolName: "Edit",
|
|
2729
2744
|
toolInputs: paths.map((file_path) => ({ file_path })),
|
|
2730
2745
|
scopePaths: paths,
|
|
2731
2746
|
question: `Allow these ${paths.length} file changes once?`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureCodexTrustsPusharyHooks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U6Z56IQS.js";
|
|
4
4
|
import {
|
|
5
5
|
OPENCODE_HOOK_BINARY,
|
|
6
6
|
agentHookOwner,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
openCodeHookArgv,
|
|
10
10
|
openCodePluginDir,
|
|
11
11
|
openCodeWired
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YXGWG5PO.js";
|
|
13
13
|
import {
|
|
14
14
|
addClaudeMcpServer,
|
|
15
15
|
addCompatibleHooks,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
addPusharyToolPermissions,
|
|
18
18
|
compatibleConfigFile,
|
|
19
19
|
hasCompatibleHooks
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RBJWPUI6.js";
|
|
21
21
|
import {
|
|
22
22
|
claudeUnprovenHolds,
|
|
23
23
|
claudeWired,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
codexWired,
|
|
26
26
|
geminiWired,
|
|
27
27
|
planHooks
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ASK2MSD2.js";
|
|
29
29
|
import {
|
|
30
30
|
CLAUDE_HOOK_BINARY,
|
|
31
31
|
CLAUDE_HOOK_EVENTS,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
needsReregistration,
|
|
37
37
|
registrationSignatures,
|
|
38
38
|
supportedClaudeEvents
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-5DCZL3BC.js";
|
|
40
40
|
import {
|
|
41
41
|
detectClaudeVersion
|
|
42
42
|
} from "./chunk-RIVNNBEK.js";
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
resolveGlobalBinDir,
|
|
64
64
|
resolveGlobalBinary,
|
|
65
65
|
vscodePluginMcp
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-IOVJVGIT.js";
|
|
67
67
|
import {
|
|
68
68
|
readJsonSafe,
|
|
69
69
|
writeFileAtomic,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
HOOK_COMPATIBLE_PROFILES,
|
|
74
74
|
isCompatibleAgentType,
|
|
75
75
|
isRecord
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-K7EGWMDU.js";
|
|
77
77
|
|
|
78
78
|
// src/reapply.ts
|
|
79
79
|
import { dirname, join } from "path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_SETTINGS_PATH
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P2F3JUFX.js";
|
|
4
4
|
import {
|
|
5
5
|
readMacAppAgentKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FOUK4CBO.js";
|
|
7
7
|
import {
|
|
8
8
|
findExportedKeyLines,
|
|
9
9
|
isAdoptedMacAppKey,
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
readConfigFileKey,
|
|
14
14
|
readKeySource,
|
|
15
15
|
readMacAppKeyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YK7FGPYS.js";
|
|
17
17
|
import {
|
|
18
18
|
absoluteUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PWUIPQ2I.js";
|
|
20
20
|
import {
|
|
21
21
|
isValidApiKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-K7EGWMDU.js";
|
|
23
23
|
|
|
24
24
|
// src/key-revocation.ts
|
|
25
25
|
var SELF_REVOKE_PATH = "/api/v1/server/keys/self/revoke";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openCodeConfigDirFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YXGWG5PO.js";
|
|
4
4
|
import {
|
|
5
5
|
grokHome
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RBJWPUI6.js";
|
|
7
7
|
import {
|
|
8
8
|
codexHomeFrom,
|
|
9
9
|
resolvePathBinary
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IOVJVGIT.js";
|
|
11
11
|
import {
|
|
12
12
|
HOOK_COMPATIBLE_PROFILES
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-K7EGWMDU.js";
|
|
14
14
|
|
|
15
15
|
// src/hermes-config.ts
|
|
16
16
|
import { execFileSync } from "child_process";
|
|
@@ -2,25 +2,25 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YWIFK2UB.js";
|
|
6
6
|
import {
|
|
7
7
|
createIo
|
|
8
8
|
} from "./chunk-FO3MDD26.js";
|
|
9
9
|
import {
|
|
10
10
|
readKeySource
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YK7FGPYS.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PWUIPQ2I.js";
|
|
18
18
|
import {
|
|
19
19
|
EXIT
|
|
20
20
|
} from "./chunk-KZERVKTD.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EWC4P4ZL.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/report-key.ts
|
|
26
26
|
var { dim, yellow } = createIo();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6TYKZ4DN.js";
|
|
4
4
|
import {
|
|
5
5
|
NetworkError
|
|
6
6
|
} from "./chunk-7QLSKOSU.js";
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./chunk-KZERVKTD.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EWC4P4ZL.js";
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-K7EGWMDU.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,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-AQFEP65J.js";
|
|
5
5
|
import {
|
|
6
6
|
configFilePath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EWC4P4ZL.js";
|
|
8
8
|
import {
|
|
9
9
|
readSetupOutcomeProperties
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K7EGWMDU.js";
|
|
11
11
|
|
|
12
12
|
// src/hooks-spec.ts
|
|
13
13
|
var CURSOR_GATE_SCRIPT = "pushary-gate.mjs";
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
addGeminiMcpServer,
|
|
4
4
|
removeGeminiMcpServer,
|
|
5
5
|
supportedClaudeEvents
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5DCZL3BC.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_CODE_AGENT,
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GZSSAY6N.js";
|
|
11
11
|
import {
|
|
12
12
|
guardBinary,
|
|
13
13
|
guardBinaryRefusing,
|
|
14
14
|
holdBudgetOf,
|
|
15
15
|
isProtectedByScope,
|
|
16
16
|
registerHookEntry
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IOVJVGIT.js";
|
|
18
18
|
import {
|
|
19
19
|
HOOK_LOCATOR_BINARY,
|
|
20
20
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
pusharyMissingReason,
|
|
26
26
|
refusalOutput,
|
|
27
27
|
withHookHoldBudget
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-K7EGWMDU.js";
|
|
29
29
|
|
|
30
30
|
// src/claude-config.ts
|
|
31
31
|
import { join } from "path";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
keyCheckFromResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PWUIPQ2I.js";
|
|
4
4
|
import {
|
|
5
5
|
installNetworkDefaults
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6TYKZ4DN.js";
|
|
7
7
|
import {
|
|
8
8
|
getBaseUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EWC4P4ZL.js";
|
|
10
10
|
|
|
11
11
|
// src/retry.ts
|
|
12
12
|
var isRetryable = (err) => {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand,
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IOVJVGIT.js";
|
|
12
12
|
import {
|
|
13
13
|
getPackageVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K7EGWMDU.js";
|
|
15
15
|
|
|
16
16
|
// src/codex-app-server.ts
|
|
17
17
|
import { existsSync, realpathSync } from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OHFC3GJY.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-GMXKITVA.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-7QLSKOSU.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-57M4ERJK.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-K7EGWMDU.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IOVJVGIT.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe,
|
|
6
6
|
writeFileAtomic
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-K7EGWMDU.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
outcomeOfFailedAsk,
|
|
5
5
|
reportMachineDenial,
|
|
6
6
|
storedWaitDeadline
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IKYI63RF.js";
|
|
8
8
|
import {
|
|
9
9
|
isGatingMoment,
|
|
10
10
|
recordKeylessMoment
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-46F4BRUQ.js";
|
|
12
12
|
import {
|
|
13
13
|
isDeferAnswer,
|
|
14
14
|
oncePerSession
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ECFEYB6Z.js";
|
|
16
16
|
import {
|
|
17
17
|
activeHookSource,
|
|
18
18
|
activeIdentity
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RBJWPUI6.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_SESSION,
|
|
22
22
|
UNNAMED_ACTION,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
reportEvent,
|
|
41
41
|
scopePathFor,
|
|
42
42
|
settleQuestionsForToolUse
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-GZSSAY6N.js";
|
|
44
44
|
import {
|
|
45
45
|
askUser,
|
|
46
46
|
cancelQuestion,
|
|
@@ -49,24 +49,22 @@ import {
|
|
|
49
49
|
isDecisionStopped,
|
|
50
50
|
isLocalQuestionHandoff,
|
|
51
51
|
pollForAnswer,
|
|
52
|
+
repoKeyFor,
|
|
52
53
|
requestGate,
|
|
53
54
|
sendNotification,
|
|
54
55
|
waitForQuestion,
|
|
55
56
|
waitsForThePhone
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import {
|
|
58
|
-
repoKeyFor
|
|
59
|
-
} from "./chunk-GOEIW2VH.js";
|
|
57
|
+
} from "./chunk-CDERSTBO.js";
|
|
60
58
|
import {
|
|
61
59
|
getMachineId
|
|
62
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-4A6VUVXV.js";
|
|
63
61
|
import {
|
|
64
62
|
getApiKey,
|
|
65
63
|
getBaseUrl
|
|
66
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-EWC4P4ZL.js";
|
|
67
65
|
import {
|
|
68
66
|
NPX_LATEST_COMMAND
|
|
69
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-57M4ERJK.js";
|
|
70
68
|
import {
|
|
71
69
|
AGENT_QUESTION_STRATEGY,
|
|
72
70
|
AGENT_QUESTION_TOOL,
|
|
@@ -111,7 +109,7 @@ import {
|
|
|
111
109
|
resolveGate,
|
|
112
110
|
timeoutActionWithoutLocalPrompt,
|
|
113
111
|
unansweredRefusalReason
|
|
114
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-K7EGWMDU.js";
|
|
115
113
|
|
|
116
114
|
// src/claude-permission-rules.ts
|
|
117
115
|
import { readFileSync, statSync } from "fs";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
resolvePackageVersionFromBinary,
|
|
11
11
|
resolvePathBinary,
|
|
12
12
|
resolvePathBinaryAsync
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IOVJVGIT.js";
|
|
14
14
|
import {
|
|
15
15
|
MANAGED_PROVIDERS
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-K7EGWMDU.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/codex-install.ts
|
|
19
19
|
var NATIVE_BINARY_MIN_BYTES = 20 * 1024 * 1024;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MCP_BRIDGE_BINARY
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BT57FUMT.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_FILE_MODE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YK7FGPYS.js";
|
|
7
7
|
import {
|
|
8
8
|
NpmInstallError,
|
|
9
9
|
NpmMissingError,
|
|
10
10
|
NpmPermissionError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IOVJVGIT.js";
|
|
12
12
|
import {
|
|
13
13
|
readJsonSafe,
|
|
14
14
|
writeFileAtomic,
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
} from "./chunk-AQFEP65J.js";
|
|
17
17
|
import {
|
|
18
18
|
NPX_LATEST_COMMAND
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-57M4ERJK.js";
|
|
20
20
|
import {
|
|
21
21
|
readSetupAgentFailures
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-K7EGWMDU.js";
|
|
23
23
|
|
|
24
24
|
// src/instruction-file.ts
|
|
25
25
|
import { existsSync, readFileSync, writeFileSync, mkdirSync, rmSync } from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CFMCV6Z7.js";
|
|
4
4
|
import {
|
|
5
5
|
backupFile,
|
|
6
6
|
readJsonSafe,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./chunk-AQFEP65J.js";
|
|
10
10
|
import {
|
|
11
11
|
configFilePath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EWC4P4ZL.js";
|
|
13
13
|
import {
|
|
14
14
|
API_KEY_PREFIX_PATTERN,
|
|
15
15
|
isRecord
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-K7EGWMDU.js";
|
|
17
17
|
|
|
18
18
|
// src/shell-alias.ts
|
|
19
19
|
import { homedir } from "os";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YK7FGPYS.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-57M4ERJK.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RBJWPUI6.js";
|
|
4
4
|
import {
|
|
5
5
|
hookOwnerOf,
|
|
6
6
|
hookOwnerOfCommands,
|
|
7
7
|
liveBridgeProbe,
|
|
8
8
|
resolveBridgeStub
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ASK2MSD2.js";
|
|
10
10
|
import {
|
|
11
11
|
AGENT_CHOICES
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OHFC3GJY.js";
|
|
13
13
|
import {
|
|
14
14
|
claudeSettings,
|
|
15
15
|
codexHooksJson,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
guardedArgv,
|
|
19
19
|
pusharyDir,
|
|
20
20
|
vscodePluginDir
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IOVJVGIT.js";
|
|
22
22
|
import {
|
|
23
23
|
readJsonSafe
|
|
24
24
|
} from "./chunk-AQFEP65J.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
OPENCODE_APPROVAL_EVENT,
|
|
30
30
|
hookCompatibleProfile,
|
|
31
31
|
isRecord
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-K7EGWMDU.js";
|
|
33
33
|
|
|
34
34
|
// src/opencode-plugin.ts
|
|
35
35
|
var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-KZERVKTD.js";
|
|
4
4
|
import {
|
|
5
5
|
renderCommandHelp
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-57M4ERJK.js";
|
|
7
7
|
import {
|
|
8
8
|
getPackageVersion
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-K7EGWMDU.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/usage.ts
|
|
12
12
|
var exitOnHelpFlag = (command) => {
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readGlobalUpgradeSubject,
|
|
6
6
|
upgradeInstalledPackage,
|
|
7
7
|
withUpgradeLock
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-2SXXH6JY.js";
|
|
9
|
+
import "./chunk-S6EGJBI5.js";
|
|
10
|
+
import "./chunk-IFT3GU7Y.js";
|
|
11
11
|
import "./chunk-POFBE6ZY.js";
|
|
12
12
|
import "./chunk-KZERVKTD.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-IOVJVGIT.js";
|
|
14
14
|
import "./chunk-AQFEP65J.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-57M4ERJK.js";
|
|
16
|
+
import "./chunk-K7EGWMDU.js";
|
|
17
17
|
export {
|
|
18
18
|
finishGlobalUpgrade,
|
|
19
19
|
finishUpgradeWithLock,
|