pushary 1.9.212 → 1.9.213
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 +4 -0
- package/dist/{api-SNFXRUBO.js → api-XXA3DBK5.js} +7 -7
- package/dist/bin/pushary-bell-hook.js +16 -16
- package/dist/bin/pushary-bell.js +3 -3
- package/dist/bin/pushary-calls.js +7 -7
- package/dist/bin/pushary-claude.js +16 -16
- package/dist/bin/pushary-clean.js +25 -25
- package/dist/bin/pushary-codex-bridge.js +12 -12
- package/dist/bin/pushary-codex-hook.js +20 -20
- package/dist/bin/pushary-codex-session.js +6 -6
- package/dist/bin/pushary-codex.js +8 -8
- package/dist/bin/pushary-connect.js +19 -19
- package/dist/bin/pushary-daemon.js +31 -32
- package/dist/bin/pushary-disconnect.js +17 -17
- package/dist/bin/pushary-doctor.js +31 -30
- package/dist/bin/pushary-elicitation-hook.js +16 -16
- package/dist/bin/pushary-gemini-bridge.js +7 -7
- package/dist/bin/pushary-gemini-hook.js +19 -19
- package/dist/bin/pushary-hook.js +20 -20
- package/dist/bin/pushary-login.js +11 -11
- package/dist/bin/pushary-logout.js +15 -15
- package/dist/bin/pushary-mcp.js +8 -8
- package/dist/bin/pushary-mode.js +7 -7
- package/dist/bin/pushary-notification-hook.js +16 -16
- package/dist/bin/pushary-opencode-bridge.js +12 -12
- package/dist/bin/pushary-opencode-hook.js +18 -18
- package/dist/bin/pushary-permission-denied-hook.js +20 -20
- package/dist/bin/pushary-permission-hook.js +20 -20
- package/dist/bin/pushary-post-hook.js +17 -17
- package/dist/bin/pushary-prompt-hook.js +16 -16
- package/dist/bin/pushary-session-end-hook.js +16 -16
- package/dist/bin/pushary-session-start-hook.js +26 -27
- package/dist/bin/pushary-sessions.js +6 -6
- package/dist/bin/pushary-setup.js +44 -46
- package/dist/bin/pushary-status.js +20 -20
- package/dist/bin/pushary-stop-hook.js +16 -16
- package/dist/bin/pushary-stopfailure-hook.js +16 -16
- package/dist/bin/pushary-suggestions.js +7 -7
- package/dist/bin/pushary-transcript-register.js +13 -11
- package/dist/bin/pushary-transcripts.js +15 -15
- package/dist/bin/pushary-upgrade.js +36 -37
- package/dist/bin/pushary-wait.js +7 -7
- package/dist/bin/pushary.js +4 -4
- package/dist/{chunk-3KADQBEQ.js → chunk-2BKMZ2CZ.js} +3 -3
- package/dist/{chunk-Q73RI245.js → chunk-2DNM6F7C.js} +2 -2
- package/dist/{chunk-HCILDIRX.js → chunk-2OREQ7MI.js} +1 -1
- package/dist/{chunk-NDYH6TS3.js → chunk-2WCI5BY6.js} +2 -2
- package/dist/{chunk-ZNF5ATIQ.js → chunk-3T7KADQO.js} +5 -5
- package/dist/{chunk-LLCNGORA.js → chunk-3USB6JEH.js} +1 -1
- package/dist/{chunk-7TROI3WY.js → chunk-47G72ONB.js} +1 -1
- package/dist/{chunk-UXQI33VO.js → chunk-4DXHNWUY.js} +3 -3
- package/dist/{chunk-74RTPZ2B.js → chunk-53PLSLF5.js} +9 -9
- package/dist/{chunk-VLV34V6X.js → chunk-5ML6PZ4U.js} +12 -14
- package/dist/{chunk-NETM5KD2.js → chunk-5XBZABC5.js} +2 -2
- package/dist/{chunk-NMG6GB3W.js → chunk-6D54GFZC.js} +3 -3
- package/dist/{chunk-NYJXBV6G.js → chunk-6FLCKWIH.js} +4 -4
- package/dist/{chunk-V2R6Y4ES.js → chunk-6N73T3G2.js} +1 -1
- package/dist/{chunk-D347AAH7.js → chunk-BKTWGQLC.js} +29 -9
- package/dist/{chunk-BLQ2JF2F.js → chunk-CJRHVIUJ.js} +1 -1
- package/dist/{chunk-LWFFQJ3Y.js → chunk-CXLHBAN4.js} +1 -1
- package/dist/{chunk-ZWT4WF2W.js → chunk-FBDVDCMC.js} +8 -5
- package/dist/{chunk-E5BZJAJ7.js → chunk-FJJRXIZC.js} +3 -3
- package/dist/{chunk-AUDKOK2X.js → chunk-G4UCXWJX.js} +2 -2
- package/dist/{chunk-GWDAFH4B.js → chunk-GKMSHV5D.js} +1 -1
- package/dist/{chunk-HCBPEZXH.js → chunk-HT4WO7V6.js} +2 -2
- package/dist/{chunk-A4I6XOX3.js → chunk-IHG2TFXZ.js} +2 -2
- package/dist/{chunk-DOPDHW6I.js → chunk-JKM7YRYV.js} +141 -7
- package/dist/{chunk-HVBMU7HP.js → chunk-JYDVDSBM.js} +3 -3
- package/dist/{chunk-I2ZILRS4.js → chunk-K3HFMX5R.js} +5 -5
- package/dist/{chunk-RS6WYORY.js → chunk-K5IPDN4D.js} +3 -3
- package/dist/{chunk-N4D5YYO2.js → chunk-KJA5JZXV.js} +1 -1
- package/dist/{chunk-RIGWC5YP.js → chunk-LBPGPPHU.js} +1 -1
- package/dist/{chunk-ZXQNUTK3.js → chunk-NTNEBBYW.js} +3 -3
- package/dist/{chunk-KSAE6TKK.js → chunk-O372NWUI.js} +4 -4
- package/dist/{chunk-AINVDTY2.js → chunk-ODF2RMXP.js} +3 -3
- package/dist/{chunk-PIXOAUE6.js → chunk-OLD2IPCZ.js} +3 -3
- package/dist/{chunk-5E7QI7VP.js → chunk-OV7W5JYC.js} +7 -7
- package/dist/{chunk-I7KUHNSA.js → chunk-QEMU3P55.js} +2 -2
- package/dist/{chunk-3NEKVCP2.js → chunk-RDWNFNDW.js} +2 -2
- package/dist/{chunk-W2LDJTM6.js → chunk-RN2PB5JJ.js} +3 -3
- package/dist/{chunk-Z5OUGH4K.js → chunk-RZISUO3M.js} +17 -7
- package/dist/{chunk-65QMCTQ3.js → chunk-SK6242SK.js} +2 -2
- package/dist/{chunk-O3375GQ5.js → chunk-SR3FOAJE.js} +1 -1
- package/dist/{chunk-2FFSF562.js → chunk-T63XZCBU.js} +3 -3
- package/dist/{chunk-HTLG7JIU.js → chunk-TBCV2U6Y.js} +1 -1
- package/dist/{chunk-CVZMRD73.js → chunk-UPZHYN4N.js} +1 -1
- package/dist/{chunk-7KTLZJGF.js → chunk-VUCXVBDQ.js} +2 -2
- package/dist/{chunk-R4BUYRSV.js → chunk-VZD4SLJE.js} +3 -3
- package/dist/{chunk-V3QWU2WK.js → chunk-W6PL3FPJ.js} +3 -3
- package/dist/{chunk-PRRJZZAF.js → chunk-W7Z4GJZI.js} +1 -1
- package/dist/{chunk-VY7UHIPW.js → chunk-WIWFIQL4.js} +1 -1
- package/dist/{chunk-GDWAKBBT.js → chunk-YN4Q3ZXZ.js} +5 -3
- package/dist/{chunk-NCPBMIR5.js → chunk-Z6QGSQEN.js} +2 -2
- package/dist/{chunk-LMQDIQI4.js → chunk-ZRDDV7QK.js} +4 -4
- package/dist/{codex-app-cards-switch-3TCXMVNB.js → codex-app-cards-switch-3A5N6T77.js} +6 -6
- package/dist/{codex-desktop-launch-4JX7HA66.js → codex-desktop-launch-XFYCWMO6.js} +1 -1
- package/dist/{codex-session-launch-ITEGM77S.js → codex-session-launch-O4ZB2CTG.js} +11 -11
- package/dist/{global-upgrade-SSWKV5NF.js → global-upgrade-MRY3EP7V.js} +7 -7
- package/dist/{identity-BMEZY3ST.js → identity-PSFVJNH5.js} +3 -3
- package/dist/{live-capabilities-AXVWZKBK.js → live-capabilities-VBKANCXF.js} +3 -3
- package/dist/{paths-EFJCRBNQ.js → paths-JPEMX4YI.js} +2 -2
- package/dist/{reapply-S26S7GHW.js → reapply-TBGC63MP.js} +22 -23
- package/dist/src/index.js +20 -20
- package/dist/{upgrade-lock-FCKMP6W2.js → upgrade-lock-RW44O57U.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-UP2JWLPI.js +0 -78
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
serviceNodeFor
|
|
3
|
+
} from "./chunk-4DXHNWUY.js";
|
|
4
|
+
import {
|
|
5
|
+
OWNER_ONLY_FILE_MODE,
|
|
6
|
+
readOwnerOnlyJson
|
|
7
|
+
} from "./chunk-P6DUWKAO.js";
|
|
1
8
|
import {
|
|
2
9
|
spawnClaude
|
|
3
10
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -7,17 +14,139 @@ import {
|
|
|
7
14
|
codexHome,
|
|
8
15
|
codexHooksJsonIn,
|
|
9
16
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SR3FOAJE.js";
|
|
11
18
|
import {
|
|
19
|
+
DEFAULT_WINDOWS_PATHEXT,
|
|
20
|
+
DIRECTLY_STARTABLE_EXTENSIONS,
|
|
21
|
+
plannedGlobalPackage,
|
|
22
|
+
readGlobalPrefix,
|
|
12
23
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
14
25
|
import {
|
|
15
|
-
getPackageVersion
|
|
26
|
+
getPackageVersion,
|
|
27
|
+
globalTranscriptRegisterEntry
|
|
16
28
|
} from "./chunk-CXQWDQCJ.js";
|
|
17
29
|
|
|
30
|
+
// src/hermes/history-helper.ts
|
|
31
|
+
import { chmodSync, existsSync, mkdirSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
|
|
32
|
+
import { dirname, join, win32 } from "path";
|
|
33
|
+
var HERMES_HISTORY_HELPER_RECORD_FILE = "hermes-history-helper.json";
|
|
34
|
+
var HERMES_HISTORY_HELPER_RECORD_VERSION = 1;
|
|
35
|
+
var HERMES_HISTORY_HELPER_RECORD_MAX_BYTES = 8192;
|
|
36
|
+
var PUSHARY_DIRECTORY_MODE = 448;
|
|
37
|
+
var HERMES_HISTORY_HELPER_COMMAND = "pushary-transcript-register";
|
|
38
|
+
var WINDOWS_NPM_SHIM_EXTENSION = ".cmd";
|
|
39
|
+
var WINDOWS_DEFAULT_EXEC_PATH = ".;C:\\bin";
|
|
40
|
+
var hermesHistoryNeedsTheCliHelper = (facts) => facts.sessionHistory && facts.macAppHistory === "none";
|
|
41
|
+
var hermesHistoryHelperRecordPath = (pusharyDirectory) => join(pusharyDirectory, HERMES_HISTORY_HELPER_RECORD_FILE);
|
|
42
|
+
var hermesHistoryHelperRecordFor = (runtime, entry) => ({
|
|
43
|
+
version: HERMES_HISTORY_HELPER_RECORD_VERSION,
|
|
44
|
+
command: [runtime, entry]
|
|
45
|
+
});
|
|
46
|
+
var hermesHistoryHelperRecordFailed = (outcome) => outcome.kind === "helper_not_installed" || outcome.kind === "write_failed" || outcome.kind === "not_on_path";
|
|
47
|
+
var serializedRecord = (record) => `${JSON.stringify(record, null, 2)}
|
|
48
|
+
`;
|
|
49
|
+
var recordIsAlreadyInPlace = (record, path) => {
|
|
50
|
+
try {
|
|
51
|
+
return JSON.stringify(readOwnerOnlyJson(path, HERMES_HISTORY_HELPER_RECORD_MAX_BYTES)) === JSON.stringify(record);
|
|
52
|
+
} catch {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var discardStagedRecord = (staged) => {
|
|
57
|
+
try {
|
|
58
|
+
rmSync(staged, { force: true });
|
|
59
|
+
} catch {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
var writeHermesHistoryHelperRecord = (record, path) => {
|
|
64
|
+
if (record === null || !record.command.every((part) => existsSync(part))) return { kind: "helper_not_installed" };
|
|
65
|
+
if (recordIsAlreadyInPlace(record, path)) return { kind: "unchanged", path };
|
|
66
|
+
const staged = `${path}.${process.pid}.tmp`;
|
|
67
|
+
try {
|
|
68
|
+
mkdirSync(dirname(path), { recursive: true, mode: PUSHARY_DIRECTORY_MODE });
|
|
69
|
+
writeFileSync(staged, serializedRecord(record), { mode: OWNER_ONLY_FILE_MODE });
|
|
70
|
+
chmodSync(staged, OWNER_ONLY_FILE_MODE);
|
|
71
|
+
renameSync(staged, path);
|
|
72
|
+
return { kind: "written", path };
|
|
73
|
+
} catch {
|
|
74
|
+
discardStagedRecord(staged);
|
|
75
|
+
return { kind: "write_failed", path };
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var installedHermesHistoryHelper = (execPath) => {
|
|
79
|
+
const prefix = readGlobalPrefix();
|
|
80
|
+
if (prefix === void 0) return null;
|
|
81
|
+
const entry = globalTranscriptRegisterEntry(prefix, plannedGlobalPackage(), process.platform);
|
|
82
|
+
return hermesHistoryHelperRecordFor(serviceNodeFor(execPath, existsSync), entry);
|
|
83
|
+
};
|
|
84
|
+
var isRootedWindowsDirectory = (entry) => win32.isAbsolute(entry) && win32.parse(entry).root.length > 1;
|
|
85
|
+
var ONE_COMMAND_BIN_FOLDER = ["node_modules", ".bin"];
|
|
86
|
+
var NPM_PATH_MARKER = ["@npmcli", "run-script", "lib", "node-gyp-bin"];
|
|
87
|
+
var lowerCaseSegmentsOf = (entry) => win32.normalize(entry).split(win32.sep).filter((segment) => segment.length > 0).map((segment) => segment.toLowerCase());
|
|
88
|
+
var endsWithSegments = (entry, tail) => {
|
|
89
|
+
const segments = lowerCaseSegmentsOf(entry);
|
|
90
|
+
return tail.every((segment, index) => segments.at(index - tail.length) === segment);
|
|
91
|
+
};
|
|
92
|
+
var isFolderAddedForOneCommand = (entry) => endsWithSegments(entry, ONE_COMMAND_BIN_FOLDER);
|
|
93
|
+
var isNpmPathMarker = (entry) => endsWithSegments(entry, NPM_PATH_MARKER);
|
|
94
|
+
var pathBeforeNpmChangedIt = (entries) => entries.slice(entries.map(isNpmPathMarker).lastIndexOf(true) + 1);
|
|
95
|
+
var isPathFolderHermesShares = (entry) => isRootedWindowsDirectory(entry) && !isFolderAddedForOneCommand(entry);
|
|
96
|
+
var pluginSearchExtensions = (pathExt) => (pathExt ?? DEFAULT_WINDOWS_PATHEXT).split(";").filter((extension) => DIRECTLY_STARTABLE_EXTENSIONS.has(extension.toLowerCase()));
|
|
97
|
+
var windowsHermesHistoryHelperOnPath = (search) => {
|
|
98
|
+
const extensions = pluginSearchExtensions(search.pathExt);
|
|
99
|
+
for (const directory of pathBeforeNpmChangedIt((search.pathValue ?? WINDOWS_DEFAULT_EXEC_PATH).split(win32.delimiter)).filter(isPathFolderHermesShares)) {
|
|
100
|
+
const found = extensions.map((extension) => win32.join(directory, `${HERMES_HISTORY_HELPER_COMMAND}${extension}`)).find(search.exists);
|
|
101
|
+
if (found !== void 0) return found;
|
|
102
|
+
}
|
|
103
|
+
return void 0;
|
|
104
|
+
};
|
|
105
|
+
var windowsHermesHistoryHelperOutcome = (facts) => {
|
|
106
|
+
if (!facts.installedInPrefix) return { kind: "helper_not_installed" };
|
|
107
|
+
if (facts.firstOnPath === void 0 || !facts.firstOnPath.isTheInstall) return { kind: "not_on_path", directory: facts.prefix };
|
|
108
|
+
return { kind: "on_path", directory: win32.dirname(facts.firstOnPath.path) };
|
|
109
|
+
};
|
|
110
|
+
var isFileAt = (path) => {
|
|
111
|
+
try {
|
|
112
|
+
return statSync(path, { throwIfNoEntry: false })?.isFile() === true;
|
|
113
|
+
} catch {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
var windowsSpellingKey = (path) => win32.resolve(path).toLowerCase();
|
|
118
|
+
var resolvedWindowsFileKey = (path) => {
|
|
119
|
+
try {
|
|
120
|
+
return realpathSync.native(path).toLowerCase();
|
|
121
|
+
} catch {
|
|
122
|
+
return void 0;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
var isTheSameWindowsFile = (left, right) => {
|
|
126
|
+
if (windowsSpellingKey(left) === windowsSpellingKey(right)) return true;
|
|
127
|
+
const resolved = resolvedWindowsFileKey(left);
|
|
128
|
+
return resolved !== void 0 && resolved === resolvedWindowsFileKey(right);
|
|
129
|
+
};
|
|
130
|
+
var windowsNpmShimIn = (prefix) => win32.join(prefix, `${HERMES_HISTORY_HELPER_COMMAND}${WINDOWS_NPM_SHIM_EXTENSION}`);
|
|
131
|
+
var windowsHermesHistoryHelperIsInstalledIn = (prefix) => [windowsNpmShimIn(prefix), globalTranscriptRegisterEntry(prefix, plannedGlobalPackage(), "win32")].every(isFileAt);
|
|
132
|
+
var installedWindowsHermesHistoryHelper = (pathValue, pathExt) => {
|
|
133
|
+
const prefix = readGlobalPrefix();
|
|
134
|
+
if (prefix === void 0 || !windowsHermesHistoryHelperIsInstalledIn(prefix)) return windowsHermesHistoryHelperOutcome({ installedInPrefix: false });
|
|
135
|
+
const onPath = windowsHermesHistoryHelperOnPath({ pathValue, pathExt, exists: isFileAt });
|
|
136
|
+
return windowsHermesHistoryHelperOutcome({
|
|
137
|
+
installedInPrefix: true,
|
|
138
|
+
prefix,
|
|
139
|
+
firstOnPath: onPath === void 0 ? void 0 : { path: onPath, isTheInstall: isTheSameWindowsFile(onPath, windowsNpmShimIn(prefix)) }
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
var recordInstalledHermesHistoryHelper = (pusharyDirectory, execPath = process.execPath, platform = process.platform, pathValue = process.env.PATH, pathExt = process.env.PATHEXT) => {
|
|
143
|
+
if (platform === "win32") return installedWindowsHermesHistoryHelper(pathValue, pathExt);
|
|
144
|
+
return writeHermesHistoryHelperRecord(installedHermesHistoryHelper(execPath), hermesHistoryHelperRecordPath(pusharyDirectory));
|
|
145
|
+
};
|
|
146
|
+
|
|
18
147
|
// src/codex-app-server.ts
|
|
19
|
-
import { existsSync, realpathSync } from "fs";
|
|
20
|
-
import { join } from "path";
|
|
148
|
+
import { existsSync as existsSync2, realpathSync as realpathSync2 } from "fs";
|
|
149
|
+
import { join as join2 } from "path";
|
|
21
150
|
var CODEX_HOOK_STATUS = {
|
|
22
151
|
trusted: "trusted",
|
|
23
152
|
untrusted: "untrusted",
|
|
@@ -151,7 +280,7 @@ var mayAskCodex = (conditions) => {
|
|
|
151
280
|
};
|
|
152
281
|
var canonicalPath = (path) => {
|
|
153
282
|
try {
|
|
154
|
-
return
|
|
283
|
+
return realpathSync2(path);
|
|
155
284
|
} catch {
|
|
156
285
|
return path;
|
|
157
286
|
}
|
|
@@ -269,7 +398,7 @@ var launchOf = (options) => {
|
|
|
269
398
|
const decision = mayAskCodex({
|
|
270
399
|
interactive: options.interactive ?? process.stdout.isTTY === true,
|
|
271
400
|
codexOnPath: binary ? canonicalPath(binary) : null,
|
|
272
|
-
codexOpenedBefore:
|
|
401
|
+
codexOpenedBefore: existsSync2(join2(home, CODEX_INSTALLATION_ID_FILE))
|
|
273
402
|
});
|
|
274
403
|
if (decision.kind === "skipped") return decision;
|
|
275
404
|
return { binary: decision.binary, codexHome: home, timeoutMs: options.timeoutMs ?? CODEX_APP_SERVER_TIMEOUT_MS };
|
|
@@ -329,6 +458,11 @@ var readCodexTrustForPusharyHooks = async (options = {}) => {
|
|
|
329
458
|
};
|
|
330
459
|
|
|
331
460
|
export {
|
|
461
|
+
HERMES_HISTORY_HELPER_COMMAND,
|
|
462
|
+
hermesHistoryNeedsTheCliHelper,
|
|
463
|
+
hermesHistoryHelperRecordPath,
|
|
464
|
+
hermesHistoryHelperRecordFailed,
|
|
465
|
+
recordInstalledHermesHistoryHelper,
|
|
332
466
|
CODEX_HOOK_STATUS,
|
|
333
467
|
assessCodexHookTrust,
|
|
334
468
|
ensureCodexTrustsPusharyHooks,
|
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2DNM6F7C.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
14
|
} from "./chunk-HFDNWC2K.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3USB6JEH.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SR3FOAJE.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5XBZABC5.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VUCXVBDQ.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WIWFIQL4.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SR3FOAJE.js";
|
|
27
27
|
import {
|
|
28
28
|
describeReleaseNpmHolds,
|
|
29
29
|
execNpm,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
npmExitedOnReleaseAge,
|
|
34
34
|
readGlobalCliInstallAt,
|
|
35
35
|
readGlobalPrefix
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
39
|
} from "./chunk-KQRWWJLF.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OLD2IPCZ.js";
|
|
4
4
|
import {
|
|
5
5
|
matchMacAccountStep,
|
|
6
6
|
retryAgentCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CXLHBAN4.js";
|
|
8
8
|
import {
|
|
9
9
|
canChangeApprovalSettings
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KJA5JZXV.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND,
|
|
13
13
|
npmExecSetupCommandFor
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
describeIdleWindow,
|
|
17
17
|
idleDeadlinePassed,
|
|
18
18
|
startProcessOwnership
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6N73T3G2.js";
|
|
20
20
|
import {
|
|
21
21
|
spawnClaude
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
isWaitForAnswerResponse,
|
|
26
26
|
withdrawQuestion,
|
|
27
27
|
writeDegraded
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JYDVDSBM.js";
|
|
29
29
|
import {
|
|
30
30
|
readCommandAck
|
|
31
31
|
} from "./chunk-ID7W4YBQ.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2DNM6F7C.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W6PL3FPJ.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RZISUO3M.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RN2PB5JJ.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JYDVDSBM.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RN2PB5JJ.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z6QGSQEN.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SR3FOAJE.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
14
|
} from "./chunk-POXHWH73.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KJA5JZXV.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2DNM6F7C.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-47G72ONB.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
13
|
} from "./chunk-ZJYSZDFR.js";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2OREQ7MI.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LBPGPPHU.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENCODE_HOOK_BINARY,
|
|
10
10
|
openCodeConfigDir,
|
|
11
11
|
openCodePluginFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FJJRXIZC.js";
|
|
13
13
|
import {
|
|
14
14
|
openCodePluginArgv
|
|
15
15
|
} from "./chunk-QQEJDPYK.js";
|
|
16
16
|
import {
|
|
17
17
|
liveCursorGateCoverage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-W6PL3FPJ.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
22
|
grokHome,
|
|
23
23
|
parseConfigDocument
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-RN2PB5JJ.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_HOOKS_KEY_PATH,
|
|
27
27
|
GEMINI_HOOK_BINARY,
|
|
28
28
|
GEMINI_HOOK_EVENTS,
|
|
29
29
|
hooksAt
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Z6QGSQEN.js";
|
|
31
31
|
import {
|
|
32
32
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
33
33
|
CODEX_HOOK_BINARY,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
parseHookArgv,
|
|
56
56
|
parseHookCommand,
|
|
57
57
|
supportedClaudeEvents
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-SR3FOAJE.js";
|
|
59
59
|
import {
|
|
60
60
|
readRegularJsonFile,
|
|
61
61
|
readRegularTextFile
|
|
@@ -536,7 +536,7 @@ var loadedOnce = (load) => {
|
|
|
536
536
|
};
|
|
537
537
|
|
|
538
538
|
// src/codex-desktop-proxy.ts
|
|
539
|
-
var loadThePhone = () => import("./api-
|
|
539
|
+
var loadThePhone = () => import("./api-XXA3DBK5.js");
|
|
540
540
|
var loadTheCardRouting = () => import("./codex-card-routing-SYP6VQTQ.js");
|
|
541
541
|
var theFirstCardLoadsAgain = () => {
|
|
542
542
|
};
|
|
@@ -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-3A5N6T77.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
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FJJRXIZC.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
6
|
} from "./chunk-PKDU2BY4.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SR3FOAJE.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Z6QGSQEN.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3T7KADQO.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
10
|
} from "./chunk-UQQN6ST3.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isPusharyHook,
|
|
20
20
|
registerHookEntry,
|
|
21
21
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SR3FOAJE.js";
|
|
23
23
|
import {
|
|
24
24
|
HOOK_COMPATIBLE_PROFILES,
|
|
25
25
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4DXHNWUY.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Z6QGSQEN.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
12
|
} from "./chunk-UQQN6ST3.js";
|
|
@@ -25,15 +25,15 @@ import {
|
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
27
|
} from "./chunk-RE5KA47K.js";
|
|
28
|
+
import {
|
|
29
|
+
transcriptEnvironmentPreference,
|
|
30
|
+
transcriptsEnabled
|
|
31
|
+
} from "./chunk-GJ5XTWNZ.js";
|
|
28
32
|
import {
|
|
29
33
|
external_exports,
|
|
30
34
|
ownedOnlyByThisUser,
|
|
31
35
|
savedTranscriptReadPositions
|
|
32
36
|
} from "./chunk-P6DUWKAO.js";
|
|
33
|
-
import {
|
|
34
|
-
transcriptEnvironmentPreference,
|
|
35
|
-
transcriptsEnabled
|
|
36
|
-
} from "./chunk-GJ5XTWNZ.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
39
|
} from "./chunk-HFDNWC2K.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SR3FOAJE.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
@@ -1253,6 +1253,15 @@ var closesSession = (source, input) => {
|
|
|
1253
1253
|
if (typeof event !== "string") return false;
|
|
1254
1254
|
return event === SESSION_END_EVENT || isHookSource(source) && hookMeaning(source, event)?.kind === "session_closed";
|
|
1255
1255
|
};
|
|
1256
|
+
var workFromTheHomeFolderOnWindows = (platform = process.platform, home = homedir2, changeDirectory = (path) => process.chdir(path)) => {
|
|
1257
|
+
if (platform !== "win32") return false;
|
|
1258
|
+
try {
|
|
1259
|
+
changeDirectory(home());
|
|
1260
|
+
return true;
|
|
1261
|
+
} catch {
|
|
1262
|
+
return false;
|
|
1263
|
+
}
|
|
1264
|
+
};
|
|
1256
1265
|
var registerTranscript = (source, input, startDaemon = () => {
|
|
1257
1266
|
void ensureDaemonRunning({ waitTimeoutMs: 0 }).catch(() => {
|
|
1258
1267
|
});
|
|
@@ -1423,6 +1432,7 @@ export {
|
|
|
1423
1432
|
snapshotRecipientPinFile,
|
|
1424
1433
|
clearSnapshotRecipientPins,
|
|
1425
1434
|
registeredTranscriptEnabled,
|
|
1435
|
+
workFromTheHomeFolderOnWindows,
|
|
1426
1436
|
registerTranscript,
|
|
1427
1437
|
startRegisteredTranscripts
|
|
1428
1438
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3T7KADQO.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SR3FOAJE.js";
|
|
8
8
|
|
|
9
9
|
// src/phone-approval.ts
|
|
10
10
|
import { createHash } from "crypto";
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BKTWGQLC.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCLAW_MIN_VERSION,
|
|
24
24
|
OPENCLAW_PLUGIN_ID,
|
|
25
25
|
OPENCLAW_PLUGIN_PACKAGE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IHG2TFXZ.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-CXLHBAN4.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
32
|
} from "./chunk-ZJYSZDFR.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GKMSHV5D.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-TCE3J44Z.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolvePackageVersionFromBinary,
|
|
13
13
|
resolvePathBinary,
|
|
14
14
|
resolvePathBinaryAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENTS,
|
|
18
18
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionWindowOf
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3T7KADQO.js";
|
|
4
4
|
import {
|
|
5
5
|
UNNAMED_ACTION
|
|
6
6
|
} from "./chunk-UQQN6ST3.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
isLocalQuestionHandoff,
|
|
13
13
|
unavailableQuestionUnlessRefused,
|
|
14
14
|
waitForQuestion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JYDVDSBM.js";
|
|
16
16
|
import {
|
|
17
17
|
getMachineId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CJRHVIUJ.js";
|
|
19
19
|
import {
|
|
20
20
|
hookMaxWaitSeconds,
|
|
21
21
|
hookWaitClamped,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z6QGSQEN.js";
|
|
4
4
|
import {
|
|
5
5
|
bridgeResolvesToApp,
|
|
6
6
|
cursorUserHooks,
|
|
7
7
|
executableFileName,
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SR3FOAJE.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
15
15
|
import {
|
|
16
16
|
CURSOR_GATE_COVERAGE,
|
|
17
17
|
CURSOR_GATE_SCRIPT,
|