pushary 1.9.136 → 1.9.138
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 +16 -0
- package/dist/{api-5H25QRNM.js → api-J4XJ7XWW.js} +9 -9
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +19 -19
- package/dist/bin/pushary-bell.js +7 -7
- package/dist/bin/pushary-claude.js +23 -23
- package/dist/bin/pushary-clean.js +34 -34
- package/dist/bin/pushary-codex-bridge.js +15 -15
- package/dist/bin/pushary-codex-hook.js +30 -30
- package/dist/bin/pushary-codex-session.js +6 -6
- package/dist/bin/pushary-codex.js +11 -11
- package/dist/bin/pushary-connect.js +23 -23
- package/dist/bin/pushary-daemon-supervisor.js +91 -12
- package/dist/bin/pushary-daemon.js +35 -35
- package/dist/bin/pushary-disconnect.js +23 -23
- package/dist/bin/pushary-display-hook.js +45 -24
- package/dist/bin/pushary-doctor.js +49 -45
- package/dist/bin/pushary-elicitation-hook.js +20 -20
- package/dist/bin/pushary-gemini-bridge.js +6 -6
- package/dist/bin/pushary-gemini-hook.js +23 -23
- package/dist/bin/pushary-hook.js +25 -25
- package/dist/bin/pushary-login.js +17 -17
- package/dist/bin/pushary-logout.js +21 -21
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +12 -12
- package/dist/bin/pushary-notification-hook.js +19 -19
- package/dist/bin/pushary-opencode-hook.js +22 -22
- package/dist/bin/pushary-permission-denied-hook.js +25 -25
- package/dist/bin/pushary-permission-hook.js +25 -25
- package/dist/bin/pushary-post-hook.js +20 -20
- package/dist/bin/pushary-prompt-hook.js +19 -19
- package/dist/bin/pushary-session-end-hook.js +19 -19
- package/dist/bin/pushary-session-start-hook.js +28 -28
- package/dist/bin/pushary-setup.js +54 -52
- package/dist/bin/pushary-status.js +27 -27
- package/dist/bin/pushary-stop-hook.js +19 -19
- package/dist/bin/pushary-stopfailure-hook.js +19 -19
- package/dist/bin/pushary-suggestions.js +12 -12
- package/dist/bin/pushary-transcript-register.js +9 -9
- package/dist/bin/pushary-transcripts.js +19 -19
- package/dist/bin/pushary-upgrade.js +37 -37
- package/dist/bin/pushary-wait.js +12 -12
- package/dist/bin/pushary.js +6 -6
- package/dist/{chunk-ICCM3DLT.js → chunk-33E75LIY.js} +1 -1
- package/dist/{chunk-IHAKBLW2.js → chunk-42BVIKPZ.js} +3 -3
- package/dist/{chunk-3QBI5C6P.js → chunk-52B2TQJM.js} +1 -1
- package/dist/{chunk-NZD6ISCL.js → chunk-5ZK4RHYR.js} +1 -1
- package/dist/{chunk-FAF5RDWT.js → chunk-6TK3DWSF.js} +293 -48
- package/dist/{chunk-DBIPNY7J.js → chunk-7WR3FDDX.js} +2 -2
- package/dist/{chunk-6SWFS4GU.js → chunk-AGVE7MXF.js} +2 -2
- package/dist/{chunk-43DT3QWZ.js → chunk-APTNHX63.js} +3 -3
- package/dist/{chunk-L2GADKFL.js → chunk-B3AZPYRU.js} +6 -6
- package/dist/chunk-B4UIRMOE.js +31 -0
- package/dist/{chunk-JZJ5CM6X.js → chunk-CBTXOWB3.js} +3 -3
- package/dist/{chunk-A7R43KOX.js → chunk-CULDO4UA.js} +2 -2
- package/dist/{chunk-YHX5YF77.js → chunk-DES272QQ.js} +3 -3
- package/dist/{chunk-WXUEOHYY.js → chunk-DK6CMXYI.js} +5 -5
- package/dist/{chunk-VV7WRIQT.js → chunk-DMZMPYLB.js} +2 -2
- package/dist/{chunk-WNT4JHK3.js → chunk-EHQCMJHI.js} +1 -1
- package/dist/{chunk-V7ZY7P2X.js → chunk-EJSU5YWO.js} +3 -3
- package/dist/{chunk-HKJLPVPZ.js → chunk-FJ7OESWX.js} +3 -3
- package/dist/{chunk-2R4OVJHS.js → chunk-FO5MHOBI.js} +4 -4
- package/dist/{chunk-NN43KGTN.js → chunk-FQ3ASV5L.js} +3 -3
- package/dist/{chunk-GS5FH3C2.js → chunk-FYLYAVQG.js} +2 -2
- package/dist/{chunk-2MVKT7KH.js → chunk-H5XLVJI7.js} +1 -1
- package/dist/{chunk-UP5QXEUU.js → chunk-HVRXBHX2.js} +2 -2
- package/dist/{chunk-VBWJ756P.js → chunk-ICQU3SNR.js} +3 -3
- package/dist/{chunk-2XDVEBHI.js → chunk-IDGWQY3J.js} +4 -4
- package/dist/{chunk-L7Q57R4J.js → chunk-JFGM6VSU.js} +3 -3
- package/dist/{chunk-RPFSVNH6.js → chunk-KN4YJ4QS.js} +2 -2
- package/dist/{chunk-Q2VV77IY.js → chunk-KXKE3SW3.js} +4 -4
- package/dist/{chunk-MQ3I5OIC.js → chunk-L3UV4LLL.js} +7 -7
- package/dist/{chunk-D7AAAD6W.js → chunk-LF3ZRLUQ.js} +8 -8
- package/dist/{chunk-YURIU333.js → chunk-LIUWN23V.js} +4 -4
- package/dist/{chunk-54TZGPZP.js → chunk-LIZEMDE4.js} +1 -1
- package/dist/{chunk-G73ACPR2.js → chunk-LPXHKIJC.js} +1 -1
- package/dist/{chunk-2E46RALI.js → chunk-NIBF37NU.js} +2 -2
- package/dist/{chunk-EJHD44ZN.js → chunk-NLJ2ILA7.js} +1 -1
- package/dist/{chunk-3HXOR6E5.js → chunk-NNDUDXOJ.js} +9 -9
- package/dist/{chunk-H2RE3IPK.js → chunk-NUG2A73X.js} +1 -1
- package/dist/{chunk-62GD26OE.js → chunk-O26H5X5M.js} +2 -2
- package/dist/{chunk-POV2TBFA.js → chunk-OAGYR5LI.js} +9 -9
- package/dist/{chunk-4T72AHIA.js → chunk-OXPYENHL.js} +1 -1
- package/dist/{chunk-EQZB5P6I.js → chunk-P6HLLS5J.js} +2 -2
- package/dist/{chunk-ZWLSXECG.js → chunk-P7YVVWTW.js} +1 -1
- package/dist/{chunk-TLK5YLIE.js → chunk-PNDL3OMR.js} +2 -2
- package/dist/{chunk-A4YOXS24.js → chunk-PPCZSOCL.js} +2 -2
- package/dist/{chunk-KLV2NQVT.js → chunk-S47AAQFT.js} +2 -2
- package/dist/{chunk-PHA6AFOR.js → chunk-SNMTACCY.js} +4 -4
- package/dist/{chunk-VO77WHK4.js → chunk-TJCUGBCZ.js} +5 -5
- package/dist/{chunk-R7KC57PC.js → chunk-TN5PGMH5.js} +1 -1
- package/dist/{chunk-O5T53LZ5.js → chunk-TXPXK5Q6.js} +10 -10
- package/dist/{chunk-ZWIJJYN3.js → chunk-VF4N6NHG.js} +3 -3
- package/dist/{chunk-HY4ATVCT.js → chunk-VQMGR32B.js} +1 -1
- package/dist/{chunk-LAWI6NQK.js → chunk-WHOFZB5W.js} +1 -1
- package/dist/{chunk-J42EAEX3.js → chunk-XR27HPYC.js} +2 -1
- package/dist/{codex-app-cards-switch-Z7TMF2OR.js → codex-app-cards-switch-R3MIDYFA.js} +6 -6
- package/dist/{codex-desktop-launch-HKXGKL3T.js → codex-desktop-launch-2YRIBVDK.js} +1 -1
- package/dist/{codex-session-launch-DTGH7ZKM.js → codex-session-launch-CTMTMGHU.js} +15 -15
- package/dist/{global-upgrade-5UAH5DCG.js → global-upgrade-NMTIVAJ3.js} +8 -8
- package/dist/{identity-UFJEWGEU.js → identity-3XKATUN2.js} +3 -3
- package/dist/{live-capabilities-BL3SHFWX.js → live-capabilities-MR35FXPF.js} +3 -3
- package/dist/paths-YA5ROXGC.js +2 -2
- package/dist/{reapply-OPQF4DPQ.js → reapply-LIBOIVBT.js} +23 -23
- package/dist/src/index.js +25 -25
- package/dist/{upgrade-lock-AZLOOGKV.js → upgrade-lock-LK4XD3HR.js} +3 -3
- package/package.json +1 -1
- package/dist/bin/pushary-daemon-supervisor.d.ts +0 -1
- package/dist/chunk-GACQSKNG.js +0 -75
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
package/dist/chunk-GACQSKNG.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
configFilePath
|
|
3
|
-
} from "./chunk-IKBTG3OT.js";
|
|
4
|
-
import {
|
|
5
|
-
readJsonSafe,
|
|
6
|
-
writeJsonAtomic
|
|
7
|
-
} from "./chunk-TODDEIYG.js";
|
|
8
|
-
import {
|
|
9
|
-
readSetupOutcomeProperties
|
|
10
|
-
} from "./chunk-DL67HX3D.js";
|
|
11
|
-
|
|
12
|
-
// src/diagnostics/service-runtime.ts
|
|
13
|
-
var unescapeXml = (value) => value.replaceAll(""", '"').replaceAll("'", "'").replaceAll("<", "<").replaceAll(">", ">").replaceAll("&", "&");
|
|
14
|
-
var unquoteSystemd = (value) => value.replaceAll('\\"', '"').replaceAll("\\\\", "\\").replaceAll("%%", "%");
|
|
15
|
-
var readServiceExecPath = (contents, platform) => {
|
|
16
|
-
if (platform === "darwin") {
|
|
17
|
-
const program = contents.match(/<key>ProgramArguments<\/key>\s*<array>\s*<string>([^<]*)<\/string>/)?.[1];
|
|
18
|
-
return program ? unescapeXml(program) : null;
|
|
19
|
-
}
|
|
20
|
-
if (platform === "linux") {
|
|
21
|
-
const exec = contents.match(/^ExecStart="((?:[^"\\]|\\.)*)"/m)?.[1];
|
|
22
|
-
return exec ? unquoteSystemd(exec) : null;
|
|
23
|
-
}
|
|
24
|
-
if (platform === "win32") {
|
|
25
|
-
const command = contents.match(/<Command>([^<]*)<\/Command>/)?.[1];
|
|
26
|
-
return command ? unescapeXml(command) : null;
|
|
27
|
-
}
|
|
28
|
-
return null;
|
|
29
|
-
};
|
|
30
|
-
var MANAGER_SEGMENTS = [
|
|
31
|
-
[".nvm", "nvm"],
|
|
32
|
-
["nvm", "nvm"],
|
|
33
|
-
["fnm", "fnm"],
|
|
34
|
-
[".fnm", "fnm"],
|
|
35
|
-
[".volta", "volta"],
|
|
36
|
-
["volta", "volta"],
|
|
37
|
-
[".asdf", "asdf"],
|
|
38
|
-
["asdf", "asdf"],
|
|
39
|
-
["Cellar", "homebrew"]
|
|
40
|
-
];
|
|
41
|
-
var versionManagerOf = (execPath) => {
|
|
42
|
-
const segments = execPath.split(/[/\\]/);
|
|
43
|
-
for (const segment of segments) {
|
|
44
|
-
const hit = MANAGER_SEGMENTS.find(([name]) => name === segment);
|
|
45
|
-
if (hit) return hit[1];
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
};
|
|
49
|
-
var describeVersionManagerPin = (execPath, manager) => `The background service is pinned to ${execPath}, which ${manager} manages. Switching or upgrading Node strands it; run pushary daemon install afterwards.`;
|
|
50
|
-
var describeServiceNodeRisk = (manager) => manager === "homebrew" ? "a Homebrew version folder; brew upgrade strands the service, and `pushary daemon install` repins it to the stable link" : `managed by ${manager}; a version switch strands the service`;
|
|
51
|
-
|
|
52
|
-
// src/setup/failure-record.ts
|
|
53
|
-
import { dirname, join } from "path";
|
|
54
|
-
var failurePath = () => join(dirname(configFilePath()), "last-setup-failure.json");
|
|
55
|
-
var saveSetupFailure = (body, path = failurePath()) => {
|
|
56
|
-
const properties = readSetupOutcomeProperties(body);
|
|
57
|
-
if (properties.exitCode === null || properties.exitCode === 0) return;
|
|
58
|
-
writeJsonAtomic(path, { ...properties, recordedAt: (/* @__PURE__ */ new Date()).toISOString() }, 384);
|
|
59
|
-
};
|
|
60
|
-
var readSetupFailure = (path = failurePath()) => {
|
|
61
|
-
const result = readJsonSafe(path);
|
|
62
|
-
if (result.kind !== "ok" || typeof result.value !== "object" || result.value === null || Array.isArray(result.value)) return null;
|
|
63
|
-
const body = result.value;
|
|
64
|
-
if (!("recordedAt" in body) || typeof body.recordedAt !== "string" || body.recordedAt.length > 30 || !Number.isFinite(Date.parse(body.recordedAt))) return null;
|
|
65
|
-
return { ...readSetupOutcomeProperties({ ...body }), recordedAt: body.recordedAt };
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export {
|
|
69
|
-
saveSetupFailure,
|
|
70
|
-
readSetupFailure,
|
|
71
|
-
readServiceExecPath,
|
|
72
|
-
versionManagerOf,
|
|
73
|
-
describeVersionManagerPin,
|
|
74
|
-
describeServiceNodeRisk
|
|
75
|
-
};
|