pushary 1.9.88 → 1.9.90
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 +9 -0
- package/dist/{api-BE4B7HBE.js → api-ORGHXO4N.js} +10 -10
- package/dist/bin/pushary-bell-hook.js +26 -26
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +34 -34
- package/dist/bin/pushary-codex-bridge.js +21 -21
- package/dist/bin/pushary-codex-hook.js +31 -31
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +14 -14
- package/dist/bin/pushary-connect.js +27 -27
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +39 -39
- package/dist/bin/pushary-disconnect.js +26 -26
- package/dist/bin/pushary-display-hook.js +17 -17
- package/dist/bin/pushary-doctor.js +42 -42
- package/dist/bin/pushary-elicitation-hook.js +26 -26
- package/dist/bin/pushary-gemini-bridge.js +15 -15
- package/dist/bin/pushary-gemini-hook.js +28 -28
- package/dist/bin/pushary-hook.js +30 -30
- package/dist/bin/pushary-login.js +20 -20
- package/dist/bin/pushary-logout.js +25 -25
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +25 -25
- package/dist/bin/pushary-opencode-hook.js +27 -27
- package/dist/bin/pushary-permission-denied-hook.js +30 -30
- package/dist/bin/pushary-permission-hook.js +30 -30
- package/dist/bin/pushary-post-hook.js +25 -25
- package/dist/bin/pushary-prompt-hook.js +25 -25
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +35 -35
- package/dist/bin/pushary-setup.js +48 -48
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +32 -32
- package/dist/bin/pushary-stop-hook.js +25 -25
- package/dist/bin/pushary-stopfailure-hook.js +25 -25
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +18 -18
- package/dist/bin/pushary-transcripts.js +59 -30
- package/dist/bin/pushary-upgrade.js +40 -40
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-N7OMDSXK.js → chunk-2EOTXWFK.js} +3 -3
- package/dist/{chunk-3BG5S7MB.js → chunk-2RUJIPNN.js} +2 -2
- package/dist/{chunk-Z2LYELNQ.js → chunk-2U6FPMXG.js} +3 -3
- package/dist/{chunk-NP65LEAY.js → chunk-32F3BWRY.js} +1 -1
- package/dist/{chunk-2NJNC26C.js → chunk-3EVOYLXQ.js} +5 -5
- package/dist/{chunk-QQCGYHYG.js → chunk-3N4GETIW.js} +2 -2
- package/dist/{chunk-FRUKY6KV.js → chunk-4V25M4X5.js} +2 -2
- package/dist/{chunk-JQMOQLM2.js → chunk-53YQO4HL.js} +151 -93
- package/dist/{chunk-6RFDH4JU.js → chunk-5DTOMJVD.js} +2 -2
- package/dist/{chunk-3ZE7VQOU.js → chunk-6B4O7XNC.js} +6 -6
- package/dist/{chunk-P4W5TP2X.js → chunk-6LJOCQBB.js} +1 -1
- package/dist/{chunk-CAXE3TYX.js → chunk-6P4II3ZL.js} +5 -5
- package/dist/{chunk-JOULYVW6.js → chunk-72UCLJJW.js} +1 -1
- package/dist/{chunk-LHXJYSNX.js → chunk-7BEQB3X4.js} +1 -1
- package/dist/{chunk-NOGDU4XS.js → chunk-7EGNVZLK.js} +2 -2
- package/dist/{chunk-I6MNMAS7.js → chunk-7MN3KPHM.js} +38 -38
- package/dist/{chunk-RKX2ZOIG.js → chunk-AF3OHGKE.js} +1 -1
- package/dist/{chunk-O53SJBBB.js → chunk-ALT4KW5M.js} +5 -5
- package/dist/{chunk-D7ZJ3AUK.js → chunk-ALTGRWSO.js} +1 -1
- package/dist/{chunk-6GDZ4RYR.js → chunk-APT7KJ5I.js} +6 -6
- package/dist/{chunk-33RQ7I3K.js → chunk-ASTOMXHJ.js} +1 -1
- package/dist/{chunk-BSTZ66FA.js → chunk-CDBGZWPY.js} +3 -3
- package/dist/{chunk-M4UXDYNJ.js → chunk-CE2ISNPN.js} +5 -5
- package/dist/{chunk-BC2HT6JP.js → chunk-CNFM6JEV.js} +2 -2
- package/dist/{chunk-4C7OJLSL.js → chunk-DADN6GJO.js} +4 -4
- package/dist/{chunk-RPXPRBBA.js → chunk-E3EJARHF.js} +1 -1
- package/dist/{chunk-KWWHFTNJ.js → chunk-E4XGV5UG.js} +3 -2
- package/dist/{chunk-JQPY2B2H.js → chunk-EFQQLEWW.js} +4 -4
- package/dist/{chunk-TXJ65MIV.js → chunk-FAM2TLFC.js} +1 -1
- package/dist/{chunk-3XJL2M7H.js → chunk-FSJYYZ3G.js} +5 -5
- package/dist/{chunk-4Z7MR5FE.js → chunk-G7GVI5RL.js} +3 -3
- package/dist/{chunk-DWUD47H5.js → chunk-G7MVZHMM.js} +2 -2
- package/dist/{chunk-FK2EK27I.js → chunk-GKDVI6WX.js} +3 -3
- package/dist/{chunk-LXFBSMAE.js → chunk-HKGGENVU.js} +6 -6
- package/dist/{chunk-FUVVGIXZ.js → chunk-HT5WOP2M.js} +6 -6
- package/dist/{chunk-LH3SNS6H.js → chunk-I567L2KG.js} +10 -10
- package/dist/{chunk-QOMIFKQL.js → chunk-I7UZODYO.js} +3 -3
- package/dist/{chunk-DHVVEH2K.js → chunk-INNH7EUK.js} +10 -10
- package/dist/{chunk-4TT2ZFWZ.js → chunk-JJNO3ACZ.js} +3 -3
- package/dist/{chunk-GJXRYXMC.js → chunk-JQUMX7YZ.js} +2 -2
- package/dist/{chunk-B4NVYPX5.js → chunk-K2NIENKY.js} +1 -1
- package/dist/{chunk-OUIUIJV4.js → chunk-K6QLKUCT.js} +1 -1
- package/dist/{chunk-ZXDHPPGI.js → chunk-KT25MC57.js} +4 -4
- package/dist/{chunk-2HTE4ECJ.js → chunk-LGQQUQDZ.js} +4 -4
- package/dist/{chunk-DM5LNEGJ.js → chunk-LJFITB6T.js} +4 -4
- package/dist/{chunk-KXGKUV2F.js → chunk-MWXX34K4.js} +1 -1
- package/dist/{chunk-2JTWOTOC.js → chunk-NIZ6ITRH.js} +1 -1
- package/dist/{chunk-OBS7O22Q.js → chunk-NMDWW3EY.js} +3 -3
- package/dist/{chunk-ZEPS4KIK.js → chunk-NWSGMYX7.js} +4 -4
- package/dist/{chunk-TBPMI4LY.js → chunk-OEPP5VUW.js} +6 -6
- package/dist/{chunk-RX5FSSQK.js → chunk-OGR5WSHI.js} +7 -7
- package/dist/{chunk-FFIDXKQ7.js → chunk-OH67LB2U.js} +14 -14
- package/dist/{chunk-ZP5AB6R5.js → chunk-OODEIR3Z.js} +6 -6
- package/dist/{chunk-3C4UGMIV.js → chunk-P4OZVK2B.js} +4 -4
- package/dist/{chunk-A2F7T3IR.js → chunk-QCSPLJL6.js} +3 -3
- package/dist/{chunk-NWLGRSGE.js → chunk-QUKDNQ4L.js} +3 -3
- package/dist/{chunk-ZUIAABLS.js → chunk-SJCPI4WT.js} +1 -1
- package/dist/{chunk-IXOCJHJW.js → chunk-TOPXBWUN.js} +2 -2
- package/dist/{chunk-YN4IXOFK.js → chunk-TTXUWHBL.js} +1 -1
- package/dist/{chunk-MQKXQWXA.js → chunk-URJHH72Z.js} +1 -1
- package/dist/{chunk-STQEIEYJ.js → chunk-V4ZLZYQ4.js} +3 -3
- package/dist/{chunk-BOWXZWHG.js → chunk-VMUBIBHQ.js} +7 -7
- package/dist/{chunk-VIDB26GQ.js → chunk-VTF6EYVB.js} +5 -5
- package/dist/{chunk-PYI2EFRH.js → chunk-WGBW66IO.js} +5 -5
- package/dist/{chunk-PG5WFIHE.js → chunk-XBXBX7YF.js} +2 -2
- package/dist/{chunk-LAYKEYZE.js → chunk-XIPP777K.js} +3 -3
- package/dist/{chunk-4PS27SCG.js → chunk-XO3UJDJE.js} +26 -8
- package/dist/{chunk-WBZA72O5.js → chunk-XRSE2PAM.js} +3 -3
- package/dist/{chunk-OMLR56J5.js → chunk-Y5BPNOJI.js} +1 -1
- package/dist/{codex-app-cards-switch-XLSLVXDP.js → codex-app-cards-switch-UQ7TGFYV.js} +11 -11
- package/dist/{codex-desktop-launch-HRE6YP56.js → codex-desktop-launch-O5FWONZ7.js} +1 -1
- package/dist/{codex-session-launch-7RGYGW32.js → codex-session-launch-MTKJC2RH.js} +18 -18
- package/dist/{config-ZDOHQUNU.js → config-EGBMIS5K.js} +3 -3
- package/dist/{global-upgrade-VR76ZRWG.js → global-upgrade-QOAUUHZ6.js} +10 -10
- package/dist/{identity-NJAXA45Q.js → identity-Z5TRRQL5.js} +4 -4
- package/dist/{live-capabilities-5UTM55OC.js → live-capabilities-M4HOY7EM.js} +5 -5
- package/dist/{paths-BX4DXC3B.js → paths-ZOS6Y3PS.js} +3 -3
- package/dist/{reapply-PMCMNTED.js → reapply-PYDRWYKU.js} +28 -28
- package/dist/src/index.js +29 -29
- package/dist/{upgrade-lock-2G2S3FH7.js → upgrade-lock-QZOSOFK5.js} +4 -4
- package/dist/{usage-3EPWR2WQ.js → usage-4FVOG3QN.js} +3 -3
- package/package.json +2 -2
- /package/dist/{chunk-5TLDFPW6.js → chunk-VE333PL5.js} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
quoteIfNeeded,
|
|
5
5
|
shellDoubleQuoted,
|
|
6
6
|
writeFileAtomic
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I7UZODYO.js";
|
|
8
8
|
import {
|
|
9
9
|
cmdShimScriptOf
|
|
10
10
|
} from "./chunk-ZVU6WMMU.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
HOOK_LOCATOR_BINARY,
|
|
16
16
|
PRETOOLUSE_GATED_TOOLS,
|
|
17
17
|
withHookHoldBudget
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VE333PL5.js";
|
|
19
19
|
|
|
20
20
|
// src/setup/paths.ts
|
|
21
21
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -3,7 +3,40 @@ import {
|
|
|
3
3
|
} from "./chunk-XMSDA5WA.js";
|
|
4
4
|
import {
|
|
5
5
|
writeJsonAtomic
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I7UZODYO.js";
|
|
7
|
+
|
|
8
|
+
// src/transcript-read-positions.ts
|
|
9
|
+
import { lstatSync, readFileSync } from "fs";
|
|
10
|
+
var OWNER_ONLY_FILE_MODE = 384;
|
|
11
|
+
var MAXIMUM_READ_POSITIONS_BYTES = 4 * 1024 * 1024;
|
|
12
|
+
var transcriptReadPositionSchema = external_exports.object({
|
|
13
|
+
identity: external_exports.string().nullable(),
|
|
14
|
+
offset: external_exports.number().int().nonnegative(),
|
|
15
|
+
startedBeforeEpoch: external_exports.boolean()
|
|
16
|
+
});
|
|
17
|
+
var savedReadPositionsSchema = external_exports.object({ positions: external_exports.record(external_exports.string(), transcriptReadPositionSchema) });
|
|
18
|
+
var ownedOnlyByThisUser = (info) => !process.getuid || info.uid === process.getuid() && (info.mode & 511) === OWNER_ONLY_FILE_MODE;
|
|
19
|
+
var readOwnerOnlyJson = (path, maximumBytes) => {
|
|
20
|
+
const info = lstatSync(path);
|
|
21
|
+
if (!info.isFile() || info.nlink !== 1 || !ownedOnlyByThisUser(info) || info.size > maximumBytes) return null;
|
|
22
|
+
return JSON.parse(readFileSync(path, "utf8"));
|
|
23
|
+
};
|
|
24
|
+
var savedTranscriptReadPositions = (file) => ({
|
|
25
|
+
load: () => {
|
|
26
|
+
try {
|
|
27
|
+
return new Map(Object.entries(savedReadPositionsSchema.parse(readOwnerOnlyJson(file, MAXIMUM_READ_POSITIONS_BYTES)).positions));
|
|
28
|
+
} catch {
|
|
29
|
+
return /* @__PURE__ */ new Map();
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
save: (positions) => {
|
|
33
|
+
try {
|
|
34
|
+
writeJsonAtomic(file, { positions: Object.fromEntries(positions) }, OWNER_ONLY_FILE_MODE);
|
|
35
|
+
} catch {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
});
|
|
7
40
|
|
|
8
41
|
// ../contracts/src/billing.ts
|
|
9
42
|
var PARTNER_SELF_SERVE_PLANS = ["partner_launch", "partner_growth", "partner_scale"];
|
|
@@ -239,44 +272,11 @@ var PLAN_CONFIGS = {
|
|
|
239
272
|
}
|
|
240
273
|
};
|
|
241
274
|
|
|
242
|
-
// src/transcript-read-positions.ts
|
|
243
|
-
import { lstatSync, readFileSync } from "fs";
|
|
244
|
-
var OWNER_ONLY_FILE_MODE = 384;
|
|
245
|
-
var MAXIMUM_READ_POSITIONS_BYTES = 4 * 1024 * 1024;
|
|
246
|
-
var transcriptReadPositionSchema = external_exports.object({
|
|
247
|
-
identity: external_exports.string().nullable(),
|
|
248
|
-
offset: external_exports.number().int().nonnegative(),
|
|
249
|
-
startedBeforeEpoch: external_exports.boolean()
|
|
250
|
-
});
|
|
251
|
-
var savedReadPositionsSchema = external_exports.object({ positions: external_exports.record(external_exports.string(), transcriptReadPositionSchema) });
|
|
252
|
-
var ownedOnlyByThisUser = (info) => !process.getuid || info.uid === process.getuid() && (info.mode & 511) === OWNER_ONLY_FILE_MODE;
|
|
253
|
-
var readOwnerOnlyJson = (path, maximumBytes) => {
|
|
254
|
-
const info = lstatSync(path);
|
|
255
|
-
if (!info.isFile() || info.nlink !== 1 || !ownedOnlyByThisUser(info) || info.size > maximumBytes) return null;
|
|
256
|
-
return JSON.parse(readFileSync(path, "utf8"));
|
|
257
|
-
};
|
|
258
|
-
var savedTranscriptReadPositions = (file) => ({
|
|
259
|
-
load: () => {
|
|
260
|
-
try {
|
|
261
|
-
return new Map(Object.entries(savedReadPositionsSchema.parse(readOwnerOnlyJson(file, MAXIMUM_READ_POSITIONS_BYTES)).positions));
|
|
262
|
-
} catch {
|
|
263
|
-
return /* @__PURE__ */ new Map();
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
save: (positions) => {
|
|
267
|
-
try {
|
|
268
|
-
writeJsonAtomic(file, { positions: Object.fromEntries(positions) }, OWNER_ONLY_FILE_MODE);
|
|
269
|
-
} catch {
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
|
|
275
275
|
export {
|
|
276
|
-
PLAN_TYPES,
|
|
277
|
-
SESSION_HISTORY_RETENTION_DAYS,
|
|
278
|
-
PLAN_CONFIGS,
|
|
279
276
|
transcriptReadPositionSchema,
|
|
280
277
|
readOwnerOnlyJson,
|
|
281
|
-
savedTranscriptReadPositions
|
|
278
|
+
savedTranscriptReadPositions,
|
|
279
|
+
PLAN_TYPES,
|
|
280
|
+
SESSION_HISTORY_RETENTION_DAYS,
|
|
281
|
+
PLAN_CONFIGS
|
|
282
282
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LJFITB6T.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-INNH7EUK.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FAM2TLFC.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-7EGNVZLK.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-VE333PL5.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4V25M4X5.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DADN6GJO.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,25 +18,25 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CDBGZWPY.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7EGNVZLK.js";
|
|
27
27
|
import {
|
|
28
28
|
execNpm,
|
|
29
29
|
fetchLatestPublishedVersion,
|
|
30
30
|
npmErrorMessage,
|
|
31
31
|
readGlobalCliInstallAt,
|
|
32
32
|
readGlobalPrefix
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-I7UZODYO.js";
|
|
34
34
|
import {
|
|
35
35
|
EXIT
|
|
36
36
|
} from "./chunk-KZERVKTD.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-E4XGV5UG.js";
|
|
40
40
|
import {
|
|
41
41
|
commandsPackage,
|
|
42
42
|
globalUpgradeEntry,
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7EGNVZLK.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I7UZODYO.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_PACKAGE_NAMES,
|
|
13
13
|
POSIX_GLOBAL_ROOT_SEGMENTS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-ZVU6WMMU.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VE333PL5.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openCodeConfigDirFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OEPP5VUW.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeClaudeInstallPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K2NIENKY.js";
|
|
7
7
|
import {
|
|
8
8
|
grokHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ALT4KW5M.js";
|
|
10
10
|
import {
|
|
11
11
|
claudeConfigDir,
|
|
12
12
|
clineDataDirectory,
|
|
13
13
|
codexHomeFrom
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7EGNVZLK.js";
|
|
15
15
|
import {
|
|
16
16
|
HOOK_COMPATIBLE_PROFILES
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VE333PL5.js";
|
|
18
18
|
|
|
19
19
|
// src/vscode-config.ts
|
|
20
20
|
import { homedir } from "os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XRSE2PAM.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K2NIENKY.js";
|
|
7
7
|
import {
|
|
8
8
|
readGlobalPrefixAsync,
|
|
9
9
|
resolveGlobalBinary,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
resolvePackageVersionFromBinary,
|
|
14
14
|
resolvePathBinary,
|
|
15
15
|
resolvePathBinaryAsync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-I7UZODYO.js";
|
|
17
17
|
import {
|
|
18
18
|
MANAGED_PROVIDERS
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VE333PL5.js";
|
|
20
20
|
|
|
21
21
|
// src/live-capabilities.ts
|
|
22
22
|
import { homedir } from "os";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DISCONNECT_AGENT_IDS,
|
|
3
3
|
SETUP_AGENT_CHOICES,
|
|
4
4
|
isApprovalMode
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VE333PL5.js";
|
|
6
6
|
|
|
7
7
|
// src/cli/mode-request.ts
|
|
8
8
|
var parseDuration = (value) => {
|
|
@@ -171,7 +171,8 @@ var COMMAND_OPTIONS = {
|
|
|
171
171
|
["on", "Sync encrypted transcripts from this machine so your phone shows the conversation"],
|
|
172
172
|
["off", "Stop syncing transcripts from this machine"],
|
|
173
173
|
["status", "Show the pinned keys and their fingerprints (default)"],
|
|
174
|
-
["trust --
|
|
174
|
+
["trust --fingerprint <sha256>", "Verify the fingerprint from phone Settings without replacing existing keys"],
|
|
175
|
+
["trust --rotate", "Clear saved recipient trust (legacy reset)"]
|
|
175
176
|
],
|
|
176
177
|
mode: [
|
|
177
178
|
["<mode>", `One of: push_only, push_first, terminal_only, notify_only (Updates only; also: ${UPDATES_ONLY_MODE_INPUTS.join(", ")})`],
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
reachVerdict,
|
|
13
13
|
reachesYou,
|
|
14
14
|
verifyDelivery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OODEIR3Z.js";
|
|
16
16
|
import {
|
|
17
17
|
humanIsTty,
|
|
18
18
|
writeHuman
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
} from "./chunk-FO3MDD26.js";
|
|
25
25
|
import {
|
|
26
26
|
reportedInstallSource
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-G7MVZHMM.js";
|
|
28
28
|
import {
|
|
29
29
|
NPX_LATEST_COMMAND
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-E4XGV5UG.js";
|
|
31
31
|
import {
|
|
32
32
|
NO_PAIRING_COMPUTER,
|
|
33
33
|
PAIR_TTL_SECONDS
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-VE333PL5.js";
|
|
35
35
|
|
|
36
36
|
// src/onboarding.ts
|
|
37
37
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
McpToolError,
|
|
7
7
|
SubscriptionRequiredError,
|
|
8
8
|
callMcpTool
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NWSGMYX7.js";
|
|
10
10
|
import {
|
|
11
11
|
installNetworkDefaults,
|
|
12
12
|
isNetworkFailure
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QCSPLJL6.js";
|
|
14
14
|
import {
|
|
15
15
|
clientReportClaims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7EGNVZLK.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey,
|
|
19
19
|
getBaseUrl
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-32F3BWRY.js";
|
|
21
21
|
import {
|
|
22
22
|
ASK_AGENT_NAME_MAX,
|
|
23
23
|
CLIENT_REPORT_PATH,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
TOOL_FAILURE_CODES,
|
|
27
27
|
degradedLine,
|
|
28
28
|
truncateLine
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VE333PL5.js";
|
|
30
30
|
|
|
31
31
|
// src/api.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_STATUS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TOPXBWUN.js";
|
|
4
4
|
import {
|
|
5
5
|
retryAgentCommand
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2EOTXWFK.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E4XGV5UG.js";
|
|
10
10
|
|
|
11
11
|
// src/setup/codex-trust.ts
|
|
12
12
|
var CODEX_TRUST_TELEMETRY = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7EGNVZLK.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe,
|
|
6
6
|
writeFileAtomic
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I7UZODYO.js";
|
|
8
8
|
import {
|
|
9
9
|
DECLINED_AGENTS_FILE,
|
|
10
10
|
DISCONNECT_AGENT_IDS,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VE333PL5.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XBXBX7YF.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5DTOMJVD.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "./chunk-FO3MDD26.js";
|
|
12
12
|
import {
|
|
13
13
|
readKeySource
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LGQQUQDZ.js";
|
|
15
15
|
import {
|
|
16
16
|
absoluteUrl,
|
|
17
17
|
checkApiKey,
|
|
18
18
|
describeKeyCheck,
|
|
19
19
|
keyCheckFromResponse
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JJNO3ACZ.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-32F3BWRY.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT
|
|
26
26
|
} from "./chunk-KZERVKTD.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VE333PL5.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
} from "./chunk-XHKBHWLX.js";
|
|
5
5
|
import {
|
|
6
6
|
readControlMode
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LGQQUQDZ.js";
|
|
8
8
|
import {
|
|
9
9
|
getMachineId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CNFM6JEV.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7EGNVZLK.js";
|
|
14
14
|
import {
|
|
15
15
|
readJsonSafe,
|
|
16
16
|
resolveGlobalBinary,
|
|
17
17
|
writeFileAtomic,
|
|
18
18
|
writeJsonAtomic,
|
|
19
19
|
writeJsonAtomicDurable
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-I7UZODYO.js";
|
|
21
21
|
import {
|
|
22
22
|
getApiKey
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-32F3BWRY.js";
|
|
24
24
|
import {
|
|
25
25
|
CLI_PACKAGE_NAMES,
|
|
26
26
|
cmdShimScriptOf,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "./chunk-ZVU6WMMU.js";
|
|
31
31
|
import {
|
|
32
32
|
isRecord
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VE333PL5.js";
|
|
34
34
|
|
|
35
35
|
// src/daemon-lifecycle.ts
|
|
36
36
|
import { dirname, join, win32 as win32Path } from "path";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureCodexTrustsPusharyHooks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TOPXBWUN.js";
|
|
4
4
|
import {
|
|
5
5
|
hermesReceiptPaths,
|
|
6
6
|
hermesSetupPredatesThePluginFolder,
|
|
7
7
|
installHermesPlugin,
|
|
8
8
|
refreshHermesPluginFiles,
|
|
9
9
|
shippedHermesPlugin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2U6FPMXG.js";
|
|
11
11
|
import {
|
|
12
12
|
fxIgnoresInstructionsFile,
|
|
13
13
|
fxInstructionsBody,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
macAppFxBridge,
|
|
17
17
|
refreshClineKey,
|
|
18
18
|
switchFxHttpEntryToBridge
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6P4II3ZL.js";
|
|
20
20
|
import {
|
|
21
21
|
OPENCODE_HOOK_BINARY,
|
|
22
22
|
agentHookOwner,
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
openCodePluginDir,
|
|
29
29
|
openCodeWired,
|
|
30
30
|
withOpenCodeAskRules
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OEPP5VUW.js";
|
|
32
32
|
import {
|
|
33
33
|
detectClaudeVersion
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XRSE2PAM.js";
|
|
35
35
|
import {
|
|
36
36
|
addCompatibleHooks,
|
|
37
37
|
compatibleConfigFile,
|
|
38
38
|
compatibleInstructionsFile,
|
|
39
39
|
hasCompatibleHooks
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ALT4KW5M.js";
|
|
41
41
|
import {
|
|
42
42
|
GEMINI_HOOK_BINARY,
|
|
43
43
|
addGeminiHooks,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
geminiWired,
|
|
50
50
|
hasGeminiHooks,
|
|
51
51
|
planHooks
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-LJFITB6T.js";
|
|
53
53
|
import {
|
|
54
54
|
CLAUDE_HOOK_BINARY,
|
|
55
55
|
CLAUDE_HOOK_EVENTS,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
renderAgentInstructions,
|
|
96
96
|
supportedClaudeEvents,
|
|
97
97
|
vscodePluginMcp
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-7EGNVZLK.js";
|
|
99
99
|
import {
|
|
100
100
|
formatVersion,
|
|
101
101
|
hookCommandsUseBareNames,
|
|
@@ -104,12 +104,12 @@ import {
|
|
|
104
104
|
resolveGlobalBinary,
|
|
105
105
|
writeFileAtomic,
|
|
106
106
|
writeJsonAtomic
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-I7UZODYO.js";
|
|
108
108
|
import {
|
|
109
109
|
HOOK_COMPATIBLE_PROFILES,
|
|
110
110
|
isCompatibleAgentType,
|
|
111
111
|
isRecord
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-VE333PL5.js";
|
|
113
113
|
|
|
114
114
|
// src/reapply.ts
|
|
115
115
|
import { dirname, join } from "path";
|
|
@@ -471,9 +471,9 @@ var installGlobally = (options) => {
|
|
|
471
471
|
}
|
|
472
472
|
const started = (async () => {
|
|
473
473
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
474
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
475
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
476
|
-
const { autoUpdateLock } = await import("./paths-
|
|
474
|
+
const { withUpgradeLock } = await import("./global-upgrade-QOAUUHZ6.js");
|
|
475
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-QZOSOFK5.js");
|
|
476
|
+
const { autoUpdateLock } = await import("./paths-ZOS6Y3PS.js");
|
|
477
477
|
let result = "skipped";
|
|
478
478
|
const install = async () => {
|
|
479
479
|
const platform = process.platform;
|