@pushary/agent-hooks 1.9.50 → 1.9.53
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 +28 -0
- package/README.md +9 -1
- package/dist/api-K6ZROHYB.js +55 -0
- package/dist/bin/pushary-bell-hook.js +28 -25
- package/dist/bin/pushary-bell.js +13 -11
- package/dist/bin/pushary-claude.js +37 -33
- package/dist/bin/pushary-clean.js +70 -42
- package/dist/bin/pushary-codex-bridge.js +23 -20
- package/dist/bin/pushary-codex-hook.js +36 -32
- package/dist/bin/pushary-codex-session.js +17 -616
- package/dist/bin/pushary-codex.js +15 -12
- package/dist/bin/pushary-connect.js +31 -28
- package/dist/bin/pushary-cowork.js +7 -6
- package/dist/bin/pushary-daemon.js +57 -52
- package/dist/bin/pushary-disconnect.js +29 -26
- package/dist/bin/pushary-doctor.js +58 -53
- package/dist/bin/pushary-elicitation-hook.js +29 -26
- package/dist/bin/pushary-gemini-bridge.js +17 -15
- package/dist/bin/pushary-gemini-hook.js +33 -29
- package/dist/bin/pushary-hook.js +34 -31
- package/dist/bin/pushary-login.js +19 -16
- package/dist/bin/pushary-logout.js +30 -27
- package/dist/bin/pushary-mcp.js +16 -9
- package/dist/bin/pushary-mode.js +16 -14
- package/dist/bin/pushary-notification-hook.js +27 -24
- package/dist/bin/pushary-opencode-hook.js +32 -28
- package/dist/bin/pushary-permission-denied-hook.js +32 -29
- package/dist/bin/pushary-permission-hook.js +31 -28
- package/dist/bin/pushary-post-hook.js +27 -24
- package/dist/bin/pushary-prompt-hook.js +27 -24
- package/dist/bin/pushary-session-end-hook.js +27 -24
- package/dist/bin/pushary-session-start-hook.js +34 -29
- package/dist/bin/pushary-setup.js +195 -138
- package/dist/bin/pushary-stats.js +8 -7
- package/dist/bin/pushary-status.js +35 -32
- package/dist/bin/pushary-stop-hook.js +27 -24
- package/dist/bin/pushary-stopfailure-hook.js +27 -24
- package/dist/bin/pushary-suggestions.js +16 -14
- package/dist/bin/pushary-transcript-register.js +19 -17
- package/dist/bin/pushary-transcripts.js +10 -9
- package/dist/bin/pushary-upgrade.js +76 -46
- package/dist/bin/pushary-wait.js +16 -14
- package/dist/bin/pushary.js +10 -8
- package/dist/{chunk-GBKSCDEK.js → chunk-2LEH5IGX.js} +17 -4
- package/dist/chunk-36NGFHE4.js +72 -0
- package/dist/{chunk-B7LV6W7U.js → chunk-3RPN7AAT.js} +1 -1
- package/dist/{chunk-GDDXGBTM.js → chunk-46TC24ET.js} +2 -2
- package/dist/{chunk-KEAIIVW3.js → chunk-4QQEUJL4.js} +2 -2
- package/dist/{chunk-XNZB274I.js → chunk-5463UUO2.js} +1 -1
- package/dist/{chunk-FPKQGWAF.js → chunk-56ZTIY6D.js} +2 -2
- package/dist/{chunk-34AQAQKW.js → chunk-63IQRYVP.js} +4 -4
- package/dist/{chunk-25SYEAW4.js → chunk-6C4S3QYD.js} +3 -3
- package/dist/{chunk-4PCJ6DYK.js → chunk-6SWMKF5E.js} +2 -2
- package/dist/{chunk-Y7WD72J7.js → chunk-7CLLWDCP.js} +1 -1
- package/dist/chunk-ABGN5RN2.js +732 -0
- package/dist/{chunk-WLT6J3SB.js → chunk-ALZZVC3E.js} +2 -2
- package/dist/{chunk-ZMYLVFXC.js → chunk-BL3WAGIK.js} +14 -9
- package/dist/{chunk-PA54A437.js → chunk-BUXDR6US.js} +1 -1
- package/dist/{chunk-VUS6QGND.js → chunk-CQ5JGRML.js} +5 -1
- package/dist/{chunk-IF2UPWD2.js → chunk-DHJSBK63.js} +1 -1
- package/dist/{chunk-ABMEBN2R.js → chunk-EK7SZJ4K.js} +6 -4
- package/dist/{chunk-VCZN7NAB.js → chunk-EPOD7QHT.js} +7 -5
- package/dist/{chunk-KIO2MZQC.js → chunk-FCMWUYIE.js} +5 -3
- package/dist/{chunk-YTYXFA5M.js → chunk-FI73DGNB.js} +1 -1
- package/dist/{chunk-JGNYCRB2.js → chunk-FV34HT35.js} +1 -1
- package/dist/{chunk-KK2DIUVV.js → chunk-GCN73COS.js} +1 -1
- package/dist/{chunk-KBGKWB5T.js → chunk-H57DXSHR.js} +4 -2
- package/dist/{chunk-SALUTWPX.js → chunk-IHUFRAHB.js} +4 -4
- package/dist/chunk-JBT3ZSJS.js +92 -0
- package/dist/{chunk-5Q2FRMPC.js → chunk-JOWF4Y4P.js} +4 -4
- package/dist/{chunk-EP6S6VY3.js → chunk-JPABKXK6.js} +6 -6
- package/dist/{chunk-LLRYP5TR.js → chunk-K23WMLPY.js} +5 -5
- package/dist/{chunk-34RXPM5U.js → chunk-L5YTS2BP.js} +3 -3
- package/dist/{chunk-SE4JFMLW.js → chunk-LD4MWJMD.js} +8 -6
- package/dist/{chunk-OR5F63C2.js → chunk-LF3TLC7B.js} +2 -168
- package/dist/{chunk-XTVEW2NG.js → chunk-LIESRXK5.js} +1 -1
- package/dist/{chunk-ZOKMGBPR.js → chunk-MC4VY5LK.js} +16 -5
- package/dist/{chunk-K73CBZKW.js → chunk-MHQB62K5.js} +4 -4
- package/dist/{chunk-DH4BWFU7.js → chunk-MTKV4RUQ.js} +82 -16
- package/dist/{chunk-Y74IJ2IO.js → chunk-N77BH7H2.js} +10 -4
- package/dist/{chunk-ZTTCYHOM.js → chunk-NECZKPJN.js} +31 -6
- package/dist/{chunk-TGCIFEDE.js → chunk-NELH25J7.js} +13 -11
- package/dist/{chunk-HXRH7ZCK.js → chunk-NHVEQLQC.js} +2 -2
- package/dist/{chunk-OW4DNSQ6.js → chunk-NSY2V7XU.js} +1 -1
- package/dist/{chunk-ZYYQJSIO.js → chunk-OML4YFBN.js} +44 -462
- package/dist/{chunk-X3RCIOIH.js → chunk-ONCWYACA.js} +1 -1
- package/dist/{chunk-LZYJMSOY.js → chunk-P2546BBI.js} +3 -3
- package/dist/{chunk-WEY5ZHDB.js → chunk-Q7OXI6VS.js} +5 -5
- package/dist/{chunk-APASKZ2I.js → chunk-QKU46TK5.js} +5 -3
- package/dist/chunk-QTOLNRET.js +169 -0
- package/dist/{chunk-TYTIDEBW.js → chunk-RH6KR6EH.js} +5 -5
- package/dist/{chunk-7RMSB4A2.js → chunk-RL7EOD6I.js} +87 -24
- package/dist/{chunk-BOVSUH4N.js → chunk-S6RNS4UL.js} +2 -2
- package/dist/chunk-SUIB4O3S.js +311 -0
- package/dist/{chunk-LY3OJFBW.js → chunk-T6RIKJUO.js} +2 -1
- package/dist/{chunk-YVO4HIHX.js → chunk-U2L42GVI.js} +12 -10
- package/dist/{chunk-BXK6ZJVJ.js → chunk-UVT6B6XN.js} +2 -2
- package/dist/{chunk-UCF3EZZL.js → chunk-VQPSWD3A.js} +13 -13
- package/dist/{chunk-XH3F66VD.js → chunk-VYBH6D4X.js} +3 -3
- package/dist/chunk-XCEN33UP.js +7 -0
- package/dist/{chunk-GTGXQ7FJ.js → chunk-XDCXTDHH.js} +11 -11
- package/dist/{chunk-OZLGTMIY.js → chunk-XSUJ2PQY.js} +2 -2
- package/dist/chunk-XUW2DRAQ.js +427 -0
- package/dist/{chunk-UHVD7BSV.js → chunk-XZRLFBEA.js} +6 -6
- package/dist/{chunk-AWMMABVB.js → chunk-ZMPR436Z.js} +52 -138
- package/dist/{chunk-PXUNPXOX.js → chunk-ZOP3I2GQ.js} +3 -3
- package/dist/codex-app-cards-switch-RENOSSDD.js +60 -0
- package/dist/codex-desktop-launch-I2D6QATK.js +31 -0
- package/dist/codex-session-launch-KLH2FSSJ.js +331 -0
- package/dist/config-HX6ZNOIL.js +14 -0
- package/dist/{global-upgrade-AIUSS2YH.js → global-upgrade-AZN3BPI3.js} +8 -6
- package/dist/identity-AQIMUWYN.js +15 -0
- package/dist/live-capabilities-4IIFAMHU.js +53 -0
- package/dist/{paths-RO34TYNM.js → paths-X4IPV2WJ.js} +4 -2
- package/dist/{reapply-KTNPP4XE.js → reapply-CXODG53B.js} +27 -21
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.js +22 -19
- package/dist/{upgrade-lock-5UAGXIW7.js → upgrade-lock-AHISGKER.js} +5 -3
- package/dist/usage-ZC6BKIE3.js +10 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OML4YFBN.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-LF3TLC7B.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
readControlMode
|
|
3
|
-
} from "./chunk-XH3F66VD.js";
|
|
4
1
|
import {
|
|
5
2
|
needsShell,
|
|
6
3
|
spawnClaude
|
|
7
4
|
} from "./chunk-XHKBHWLX.js";
|
|
5
|
+
import {
|
|
6
|
+
readControlMode
|
|
7
|
+
} from "./chunk-VYBH6D4X.js";
|
|
8
8
|
import {
|
|
9
9
|
getMachineId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T6RIKJUO.js";
|
|
11
|
+
import {
|
|
12
|
+
pusharyDir
|
|
13
|
+
} from "./chunk-OML4YFBN.js";
|
|
11
14
|
import {
|
|
12
|
-
pusharyDir,
|
|
13
15
|
resolveGlobalBinary
|
|
14
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XUW2DRAQ.js";
|
|
15
17
|
import {
|
|
16
18
|
readJsonSafe,
|
|
17
19
|
writeFileAtomic,
|
|
@@ -20,15 +22,17 @@ import {
|
|
|
20
22
|
} from "./chunk-AQFEP65J.js";
|
|
21
23
|
import {
|
|
22
24
|
getApiKey
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CQ5JGRML.js";
|
|
24
26
|
import {
|
|
25
27
|
CLI_PACKAGE_NAMES,
|
|
26
28
|
cmdShimTarget,
|
|
27
29
|
getPackageVersion,
|
|
28
30
|
globalPackageFolder,
|
|
29
|
-
globalRootFor
|
|
31
|
+
globalRootFor
|
|
32
|
+
} from "./chunk-QTOLNRET.js";
|
|
33
|
+
import {
|
|
30
34
|
isRecord
|
|
31
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LF3TLC7B.js";
|
|
32
36
|
|
|
33
37
|
// src/daemon-lifecycle.ts
|
|
34
38
|
import { dirname, join, win32 as win32Path } from "path";
|
|
@@ -1121,6 +1125,7 @@ export {
|
|
|
1121
1125
|
daemonHasRemoteProof,
|
|
1122
1126
|
daemonServiceManagerAvailable,
|
|
1123
1127
|
DAEMON_LEASE_RENEW_INTERVAL_MS,
|
|
1128
|
+
xml,
|
|
1124
1129
|
parseDaemonAction,
|
|
1125
1130
|
manageDaemonService,
|
|
1126
1131
|
hasDaemonServiceDefinition,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NPX_LATEST_COMMAND
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MC4VY5LK.js";
|
|
4
4
|
|
|
5
5
|
// src/config.ts
|
|
6
6
|
import { readFileSync } from "fs";
|
|
@@ -28,6 +28,9 @@ var warnOnKeyDrift = (envKey) => {
|
|
|
28
28
|
`
|
|
29
29
|
);
|
|
30
30
|
};
|
|
31
|
+
var resetKeyDriftWarning = () => {
|
|
32
|
+
driftChecked = false;
|
|
33
|
+
};
|
|
31
34
|
var getApiKey = () => {
|
|
32
35
|
const envKey = process.env.PUSHARY_API_KEY?.trim();
|
|
33
36
|
if (envKey) {
|
|
@@ -44,6 +47,7 @@ var getBaseUrl = () => process.env.PUSHARY_BASE_URL?.trim() || process.env.PUSHA
|
|
|
44
47
|
|
|
45
48
|
export {
|
|
46
49
|
configFilePath,
|
|
50
|
+
resetKeyDriftWarning,
|
|
47
51
|
getApiKey,
|
|
48
52
|
getBaseUrl
|
|
49
53
|
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T6RIKJUO.js";
|
|
4
4
|
import {
|
|
5
5
|
NetworkError
|
|
6
6
|
} from "./chunk-7QLSKOSU.js";
|
|
7
7
|
import {
|
|
8
8
|
getBaseUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CQ5JGRML.js";
|
|
10
10
|
import {
|
|
11
|
-
clientContextHeaders,
|
|
12
11
|
getPackageVersion
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QTOLNRET.js";
|
|
13
|
+
import {
|
|
14
|
+
clientContextHeaders
|
|
15
|
+
} from "./chunk-LF3TLC7B.js";
|
|
14
16
|
|
|
15
17
|
// src/cli/net.ts
|
|
16
18
|
import { createRequire } from "module";
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openCodeConfigDirFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K23WMLPY.js";
|
|
4
4
|
import {
|
|
5
5
|
grokHome
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N77BH7H2.js";
|
|
7
|
+
import {
|
|
8
|
+
codexHomeFrom
|
|
9
|
+
} from "./chunk-OML4YFBN.js";
|
|
7
10
|
import {
|
|
8
|
-
codexHomeFrom,
|
|
9
11
|
resolvePathBinary
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XUW2DRAQ.js";
|
|
11
13
|
import {
|
|
12
14
|
HOOK_COMPATIBLE_PROFILES
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LF3TLC7B.js";
|
|
14
16
|
|
|
15
17
|
// src/hermes-config.ts
|
|
16
18
|
import { execFileSync } from "child_process";
|
|
@@ -6,12 +6,14 @@ import {
|
|
|
6
6
|
CODEX_REQUIRED_APPROVAL_EVENTS,
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
|
-
isPusharyCodexCommand
|
|
9
|
+
isPusharyCodexCommand
|
|
10
|
+
} from "./chunk-OML4YFBN.js";
|
|
11
|
+
import {
|
|
10
12
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XUW2DRAQ.js";
|
|
12
14
|
import {
|
|
13
15
|
getPackageVersion
|
|
14
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QTOLNRET.js";
|
|
15
17
|
|
|
16
18
|
// src/codex-app-server.ts
|
|
17
19
|
import { existsSync, realpathSync } from "fs";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerTranscript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VQPSWD3A.js";
|
|
4
4
|
import {
|
|
5
5
|
namedEvent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N77BH7H2.js";
|
|
7
7
|
import {
|
|
8
8
|
writeDegraded
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZMPR436Z.js";
|
|
10
10
|
import {
|
|
11
11
|
claudeShapedHookInput,
|
|
12
12
|
hookCompatibleProfileBySource,
|
|
13
13
|
isGrokHookPayload,
|
|
14
14
|
isGrokSessionEndStop
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LF3TLC7B.js";
|
|
16
16
|
|
|
17
17
|
// src/tool-hook-input.ts
|
|
18
18
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode"];
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {
|
|
2
|
+
localRepoKey,
|
|
3
|
+
normalizeRepoRemote
|
|
4
|
+
} from "./chunk-LF3TLC7B.js";
|
|
5
|
+
|
|
6
|
+
// src/repo.ts
|
|
7
|
+
import { existsSync, readFileSync, statSync } from "fs";
|
|
8
|
+
import { basename, dirname, isAbsolute, join, resolve } from "path";
|
|
9
|
+
var MAX_PARENT_WALK = 64;
|
|
10
|
+
var GIT_FILE_PREFIX = "gitdir:";
|
|
11
|
+
var findGitDir = (startDir) => {
|
|
12
|
+
let current = resolve(startDir);
|
|
13
|
+
for (let depth = 0; depth < MAX_PARENT_WALK; depth += 1) {
|
|
14
|
+
const candidate = join(current, ".git");
|
|
15
|
+
try {
|
|
16
|
+
if (existsSync(candidate)) {
|
|
17
|
+
if (statSync(candidate).isDirectory()) return candidate;
|
|
18
|
+
const pointer = readFileSync(candidate, "utf-8").trim();
|
|
19
|
+
if (pointer.startsWith(GIT_FILE_PREFIX)) {
|
|
20
|
+
const target = pointer.slice(GIT_FILE_PREFIX.length).trim();
|
|
21
|
+
return isAbsolute(target) ? target : resolve(current, target);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
} catch {
|
|
25
|
+
}
|
|
26
|
+
const parent = dirname(current);
|
|
27
|
+
if (parent === current) return void 0;
|
|
28
|
+
current = parent;
|
|
29
|
+
}
|
|
30
|
+
return void 0;
|
|
31
|
+
};
|
|
32
|
+
var configPathFor = (gitDir) => {
|
|
33
|
+
const index = gitDir.replace(/\\/g, "/").indexOf("/worktrees/");
|
|
34
|
+
return index === -1 ? join(gitDir, "config") : join(gitDir.slice(0, index), "config");
|
|
35
|
+
};
|
|
36
|
+
var ORIGIN_SECTION = /^\[remote "origin"\]/;
|
|
37
|
+
var SECTION_HEADER = /^\[/;
|
|
38
|
+
var URL_LINE = /^url\s*=\s*(.+)$/;
|
|
39
|
+
var readOriginRemote = (gitDir) => {
|
|
40
|
+
try {
|
|
41
|
+
const configPath = configPathFor(gitDir);
|
|
42
|
+
if (!existsSync(configPath)) return void 0;
|
|
43
|
+
let inOrigin = false;
|
|
44
|
+
for (const rawLine of readFileSync(configPath, "utf-8").split("\n")) {
|
|
45
|
+
const line = rawLine.trim();
|
|
46
|
+
if (SECTION_HEADER.test(line)) {
|
|
47
|
+
inOrigin = ORIGIN_SECTION.test(line);
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
if (!inOrigin) continue;
|
|
51
|
+
const url = URL_LINE.exec(line);
|
|
52
|
+
if (url) return url[1]?.trim();
|
|
53
|
+
}
|
|
54
|
+
} catch {
|
|
55
|
+
}
|
|
56
|
+
return void 0;
|
|
57
|
+
};
|
|
58
|
+
var deriveRepoKey = (cwd) => {
|
|
59
|
+
const dir = cwd && cwd.length > 0 ? cwd : process.cwd();
|
|
60
|
+
try {
|
|
61
|
+
const gitDir = findGitDir(dir);
|
|
62
|
+
if (gitDir) {
|
|
63
|
+
const remote = readOriginRemote(gitDir);
|
|
64
|
+
const normalized = remote ? normalizeRepoRemote(remote) : void 0;
|
|
65
|
+
if (normalized) return normalized;
|
|
66
|
+
const root = gitDir.endsWith(".git") ? dirname(gitDir) : dir;
|
|
67
|
+
return localRepoKey(basename(root));
|
|
68
|
+
}
|
|
69
|
+
return localRepoKey(basename(resolve(dir)));
|
|
70
|
+
} catch {
|
|
71
|
+
return void 0;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var repoKeyCache = /* @__PURE__ */ new Map();
|
|
75
|
+
var REPO_KEY_ENV = "PUSHARY_REPO_KEY";
|
|
76
|
+
var repoKeyFor = (cwd) => {
|
|
77
|
+
const override = process.env[REPO_KEY_ENV];
|
|
78
|
+
if (typeof override === "string") {
|
|
79
|
+
const trimmed = override.trim();
|
|
80
|
+
if (trimmed.toLowerCase() === "off") return void 0;
|
|
81
|
+
if (trimmed.length > 0) return trimmed.toLowerCase();
|
|
82
|
+
}
|
|
83
|
+
const dir = cwd && cwd.length > 0 ? cwd : process.cwd();
|
|
84
|
+
if (repoKeyCache.has(dir)) return repoKeyCache.get(dir);
|
|
85
|
+
const derived = deriveRepoKey(dir);
|
|
86
|
+
repoKeyCache.set(dir, derived);
|
|
87
|
+
return derived;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
repoKeyFor
|
|
92
|
+
};
|
|
@@ -2,25 +2,25 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6SWMKF5E.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-VYBH6D4X.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L5YTS2BP.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-CQ5JGRML.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/report-key.ts
|
|
26
26
|
var { dim, yellow } = createIo();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
announceSubscriptionRequired,
|
|
3
3
|
isDeferAnswer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DHJSBK63.js";
|
|
5
5
|
import {
|
|
6
6
|
AUTO_DECISION_WINDOW_MS,
|
|
7
7
|
DEFAULT_SESSION,
|
|
@@ -10,24 +10,24 @@ import {
|
|
|
10
10
|
permissionDeniedAction,
|
|
11
11
|
releaseThrottle,
|
|
12
12
|
reportEvent
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-U2L42GVI.js";
|
|
14
14
|
import {
|
|
15
15
|
askUser,
|
|
16
16
|
isDecisionStopped,
|
|
17
17
|
waitForQuestion
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZMPR436Z.js";
|
|
19
19
|
import {
|
|
20
20
|
SubscriptionRequiredError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-P2546BBI.js";
|
|
22
22
|
import {
|
|
23
23
|
getMachineId
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-T6RIKJUO.js";
|
|
25
25
|
import {
|
|
26
26
|
machineDecisionFor,
|
|
27
27
|
parseAgentQuestionAnswers,
|
|
28
28
|
shouldDeferToNativeMode,
|
|
29
29
|
wireVerdictFor
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-LF3TLC7B.js";
|
|
31
31
|
|
|
32
32
|
// src/machine-decision-audit.ts
|
|
33
33
|
import { basename } from "path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N77BH7H2.js";
|
|
4
4
|
import {
|
|
5
5
|
hookOwnerOf,
|
|
6
6
|
hookOwnerOfCommands,
|
|
7
7
|
liveBridgeProbe,
|
|
8
8
|
resolveBridgeStub
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Q7OXI6VS.js";
|
|
10
10
|
import {
|
|
11
11
|
AGENT_CHOICES
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BUXDR6US.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-OML4YFBN.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-LF3TLC7B.js";
|
|
33
33
|
|
|
34
34
|
// src/opencode-plugin.ts
|
|
35
35
|
var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EK7SZJ4K.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-CQ5JGRML.js";
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LF3TLC7B.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,28 +4,30 @@ import {
|
|
|
4
4
|
postLiveSession,
|
|
5
5
|
postLiveSessionUntilAccepted,
|
|
6
6
|
startLiveSessionHeartbeat
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UVT6B6XN.js";
|
|
8
8
|
import {
|
|
9
9
|
SESSION_IDLE_TIMEOUT_MS,
|
|
10
10
|
describeIdleWindow,
|
|
11
11
|
idleDeadlinePassed,
|
|
12
12
|
startProcessOwnership
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-56ZTIY6D.js";
|
|
14
14
|
import {
|
|
15
15
|
spawnClaude
|
|
16
16
|
} from "./chunk-XHKBHWLX.js";
|
|
17
|
+
import {
|
|
18
|
+
repoKeyFor
|
|
19
|
+
} from "./chunk-JBT3ZSJS.js";
|
|
17
20
|
import {
|
|
18
21
|
isAskUserResponse,
|
|
19
22
|
isDecisionStopped,
|
|
20
23
|
isWaitForAnswerResponse,
|
|
21
|
-
repoKeyFor,
|
|
22
24
|
withdrawQuestion,
|
|
23
25
|
writeDegraded
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZMPR436Z.js";
|
|
25
27
|
import {
|
|
26
28
|
callMcpTool,
|
|
27
29
|
isRetryable
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-P2546BBI.js";
|
|
29
31
|
import {
|
|
30
32
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
31
33
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -46,7 +48,7 @@ import {
|
|
|
46
48
|
parseCodexQuestions,
|
|
47
49
|
planElicitationAsk,
|
|
48
50
|
readElicitationFields
|
|
49
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-LF3TLC7B.js";
|
|
50
52
|
|
|
51
53
|
// src/codex-question-owner.ts
|
|
52
54
|
import { createHash } from "crypto";
|