pushary 1.9.136 → 1.9.137
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 +11 -0
- package/dist/bin/pushary-bell-hook.js +3 -3
- package/dist/bin/pushary-claude.js +2 -2
- package/dist/bin/pushary-clean.js +9 -9
- package/dist/bin/pushary-codex-hook.js +3 -3
- package/dist/bin/pushary-codex-session.js +2 -2
- package/dist/bin/pushary-daemon.js +3 -3
- package/dist/bin/pushary-display-hook.js +36 -24
- package/dist/bin/pushary-doctor.js +12 -8
- package/dist/bin/pushary-elicitation-hook.js +3 -3
- package/dist/bin/pushary-gemini-hook.js +3 -3
- package/dist/bin/pushary-hook.js +4 -4
- package/dist/bin/pushary-login.js +1 -1
- package/dist/bin/pushary-notification-hook.js +3 -3
- package/dist/bin/pushary-opencode-hook.js +3 -3
- package/dist/bin/pushary-permission-denied-hook.js +4 -4
- package/dist/bin/pushary-permission-hook.js +4 -4
- package/dist/bin/pushary-post-hook.js +3 -3
- package/dist/bin/pushary-prompt-hook.js +3 -3
- package/dist/bin/pushary-session-end-hook.js +3 -3
- package/dist/bin/pushary-session-start-hook.js +3 -3
- package/dist/bin/pushary-setup.js +11 -9
- package/dist/bin/pushary-status.js +2 -2
- package/dist/bin/pushary-stop-hook.js +3 -3
- package/dist/bin/pushary-stopfailure-hook.js +3 -3
- package/dist/bin/pushary-transcript-register.js +2 -2
- package/dist/bin/pushary-transcripts.js +2 -2
- package/dist/bin/pushary-upgrade.js +2 -2
- package/dist/{chunk-L7Q57R4J.js → chunk-6WT5OIRM.js} +1 -1
- package/dist/{chunk-EQZB5P6I.js → chunk-7NCI2DGB.js} +2 -2
- package/dist/{chunk-RPFSVNH6.js → chunk-7VKW7OA5.js} +1 -1
- package/dist/{chunk-YURIU333.js → chunk-7XD56GXA.js} +1 -1
- package/dist/chunk-B4UIRMOE.js +31 -0
- package/dist/{chunk-HKJLPVPZ.js → chunk-CMAB4KQG.js} +1 -1
- package/dist/{chunk-FAF5RDWT.js → chunk-MD63J3T7.js} +229 -38
- package/dist/{chunk-O5T53LZ5.js → chunk-R6N6FREL.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-JU236CG2.js} +3 -3
- package/dist/{codex-desktop-launch-HKXGKL3T.js → codex-desktop-launch-LRQ4LU64.js} +1 -1
- package/dist/src/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-GACQSKNG.js +0 -75
|
@@ -51,10 +51,8 @@ import {
|
|
|
51
51
|
declinedAgentForSetupChoice
|
|
52
52
|
} from "../chunk-ZWLSXECG.js";
|
|
53
53
|
import {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
versionManagerOf
|
|
57
|
-
} from "../chunk-GACQSKNG.js";
|
|
54
|
+
saveSetupFailure
|
|
55
|
+
} from "../chunk-B4UIRMOE.js";
|
|
58
56
|
import {
|
|
59
57
|
describeWaitLadder
|
|
60
58
|
} from "../chunk-CVWG2N3Y.js";
|
|
@@ -98,7 +96,7 @@ import {
|
|
|
98
96
|
import {
|
|
99
97
|
readManagedControlEvidence,
|
|
100
98
|
waitForMachineReadiness
|
|
101
|
-
} from "../chunk-
|
|
99
|
+
} from "../chunk-CMAB4KQG.js";
|
|
102
100
|
import {
|
|
103
101
|
ensureCodexTrustsPusharyHooks
|
|
104
102
|
} from "../chunk-6SWFS4GU.js";
|
|
@@ -106,10 +104,10 @@ import {
|
|
|
106
104
|
describeSetupSideEffects,
|
|
107
105
|
installAgentSkill,
|
|
108
106
|
installSkillViaSkillsCli
|
|
109
|
-
} from "../chunk-
|
|
107
|
+
} from "../chunk-XR27HPYC.js";
|
|
110
108
|
import {
|
|
111
109
|
codexEngineBehindLauncher
|
|
112
|
-
} from "../chunk-
|
|
110
|
+
} from "../chunk-7VKW7OA5.js";
|
|
113
111
|
import "../chunk-XCEN33UP.js";
|
|
114
112
|
import {
|
|
115
113
|
CURSOR_PLUGIN_BACKUP_INFIX,
|
|
@@ -246,10 +244,12 @@ import {
|
|
|
246
244
|
import {
|
|
247
245
|
DAEMON_COLD_START_TIMEOUT_MS,
|
|
248
246
|
clearDaemonNeedsLogin,
|
|
247
|
+
daemonEntryGuardPathFor,
|
|
249
248
|
daemonHasRemoteProof,
|
|
250
249
|
daemonIsServing,
|
|
251
250
|
daemonServiceDefinitionPath,
|
|
252
251
|
daemonServiceManagerAvailable,
|
|
252
|
+
describeVersionManagerPin,
|
|
253
253
|
disableDaemonService,
|
|
254
254
|
ensureDaemonRunning,
|
|
255
255
|
hasDaemonServiceDefinition,
|
|
@@ -257,8 +257,9 @@ import {
|
|
|
257
257
|
replaceDaemonService,
|
|
258
258
|
serviceNodeFor,
|
|
259
259
|
stopDaemonService,
|
|
260
|
+
versionManagerOf,
|
|
260
261
|
waitForDaemonRemoteProof
|
|
261
|
-
} from "../chunk-
|
|
262
|
+
} from "../chunk-MD63J3T7.js";
|
|
262
263
|
import {
|
|
263
264
|
GEMINI_HOOK_BINARY,
|
|
264
265
|
GEMINI_HOOK_EVENTS,
|
|
@@ -2266,7 +2267,8 @@ var reportDryRun = (apiKey, agents, keyCheck, controlMode) => {
|
|
|
2266
2267
|
configFile: PUSHARY_CONFIG_FILE,
|
|
2267
2268
|
rcPath: rc?.path ?? null,
|
|
2268
2269
|
controlMode,
|
|
2269
|
-
serviceDefinitionPath: daemonServiceDefinitionPath()
|
|
2270
|
+
serviceDefinitionPath: daemonServiceDefinitionPath(),
|
|
2271
|
+
serviceStartGuardPath: daemonEntryGuardPathFor()
|
|
2270
2272
|
})) console.log(` ${dim(line)}`);
|
|
2271
2273
|
console.log();
|
|
2272
2274
|
if (agents.length === 0) {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
describeLastSeen,
|
|
15
15
|
listMachines
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-CMAB4KQG.js";
|
|
17
17
|
import {
|
|
18
18
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
19
19
|
activeKeyVerdictOf,
|
|
@@ -38,7 +38,7 @@ import "../chunk-DBIPNY7J.js";
|
|
|
38
38
|
import "../chunk-EJHD44ZN.js";
|
|
39
39
|
import "../chunk-CYTPQDQY.js";
|
|
40
40
|
import "../chunk-43DT3QWZ.js";
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-MD63J3T7.js";
|
|
42
42
|
import "../chunk-TLK5YLIE.js";
|
|
43
43
|
import "../chunk-D7AAAD6W.js";
|
|
44
44
|
import "../chunk-A2YJ2FBR.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7XD56GXA.js";
|
|
5
5
|
import "../chunk-NN43KGTN.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-6WT5OIRM.js";
|
|
7
7
|
import "../chunk-VAE5JBR5.js";
|
|
8
8
|
import "../chunk-G66WIAST.js";
|
|
9
9
|
import {
|
|
10
10
|
activeHookSource,
|
|
11
11
|
activeIdentity
|
|
12
12
|
} from "../chunk-43DT3QWZ.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-MD63J3T7.js";
|
|
14
14
|
import "../chunk-TLK5YLIE.js";
|
|
15
15
|
import {
|
|
16
16
|
emitHookOutput,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7XD56GXA.js";
|
|
5
5
|
import "../chunk-NN43KGTN.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-6WT5OIRM.js";
|
|
7
7
|
import "../chunk-VAE5JBR5.js";
|
|
8
8
|
import "../chunk-G66WIAST.js";
|
|
9
9
|
import {
|
|
10
10
|
activeHookSource,
|
|
11
11
|
activeIdentity
|
|
12
12
|
} from "../chunk-43DT3QWZ.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-MD63J3T7.js";
|
|
14
14
|
import "../chunk-TLK5YLIE.js";
|
|
15
15
|
import {
|
|
16
16
|
handleStopFailure
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "../chunk-S4HS6VTI.js";
|
|
6
6
|
import {
|
|
7
7
|
registerTranscript
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-6WT5OIRM.js";
|
|
9
9
|
import "../chunk-VAE5JBR5.js";
|
|
10
10
|
import "../chunk-G66WIAST.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-MD63J3T7.js";
|
|
12
12
|
import "../chunk-TLK5YLIE.js";
|
|
13
13
|
import "../chunk-A2YJ2FBR.js";
|
|
14
14
|
import "../chunk-5XDFQ6E3.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
snapshotRecipientPinFile,
|
|
22
22
|
trustPhoneRecipient,
|
|
23
23
|
verifyTrustedRecipients
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-6WT5OIRM.js";
|
|
25
25
|
import "../chunk-VAE5JBR5.js";
|
|
26
26
|
import "../chunk-G66WIAST.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-MD63J3T7.js";
|
|
28
28
|
import "../chunk-TLK5YLIE.js";
|
|
29
29
|
import "../chunk-A2YJ2FBR.js";
|
|
30
30
|
import "../chunk-5XDFQ6E3.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "../chunk-AIZYJJGD.js";
|
|
41
41
|
import {
|
|
42
42
|
waitForMachineReadiness
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-CMAB4KQG.js";
|
|
44
44
|
import "../chunk-6SWFS4GU.js";
|
|
45
45
|
import {
|
|
46
46
|
readMacAppAgentKey
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
replaceDaemonService,
|
|
95
95
|
stopDaemonService,
|
|
96
96
|
waitForDaemonRemoteProof
|
|
97
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-MD63J3T7.js";
|
|
98
98
|
import "../chunk-TLK5YLIE.js";
|
|
99
99
|
import "../chunk-D7AAAD6W.js";
|
|
100
100
|
import "../chunk-A2YJ2FBR.js";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7VKW7OA5.js";
|
|
13
13
|
import {
|
|
14
14
|
writeHuman
|
|
15
15
|
} from "./chunk-QCGNGEGE.js";
|
|
16
16
|
import {
|
|
17
17
|
xml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MD63J3T7.js";
|
|
19
19
|
import {
|
|
20
20
|
writeFileAtomic
|
|
21
21
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -1085,7 +1085,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1085
1085
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1086
1086
|
}
|
|
1087
1087
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1088
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1088
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-JU236CG2.js");
|
|
1089
1089
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1090
1090
|
}
|
|
1091
1091
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -0,0 +1,31 @@
|
|
|
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/setup/failure-record.ts
|
|
13
|
+
import { dirname, join } from "path";
|
|
14
|
+
var failurePath = () => join(dirname(configFilePath()), "last-setup-failure.json");
|
|
15
|
+
var saveSetupFailure = (body, path = failurePath()) => {
|
|
16
|
+
const properties = readSetupOutcomeProperties(body);
|
|
17
|
+
if (properties.exitCode === null || properties.exitCode === 0) return;
|
|
18
|
+
writeJsonAtomic(path, { ...properties, recordedAt: (/* @__PURE__ */ new Date()).toISOString() }, 384);
|
|
19
|
+
};
|
|
20
|
+
var readSetupFailure = (path = failurePath()) => {
|
|
21
|
+
const result = readJsonSafe(path);
|
|
22
|
+
if (result.kind !== "ok" || typeof result.value !== "object" || result.value === null || Array.isArray(result.value)) return null;
|
|
23
|
+
const body = result.value;
|
|
24
|
+
if (!("recordedAt" in body) || typeof body.recordedAt !== "string" || body.recordedAt.length > 30 || !Number.isFinite(Date.parse(body.recordedAt))) return null;
|
|
25
|
+
return { ...readSetupOutcomeProperties({ ...body }), recordedAt: body.recordedAt };
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
saveSetupFailure,
|
|
30
|
+
readSetupFailure
|
|
31
|
+
};
|