pushary 1.9.39 → 1.9.41
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 +10 -0
- package/dist/bin/pushary-bell-hook.js +25 -25
- package/dist/bin/pushary-bell.js +9 -9
- package/dist/bin/pushary-claude.js +24 -24
- package/dist/bin/pushary-clean.js +29 -29
- package/dist/bin/pushary-codex-bridge.js +157 -38
- package/dist/bin/pushary-codex-hook.js +30 -30
- package/dist/bin/pushary-codex.js +12 -12
- package/dist/bin/pushary-connect.js +24 -24
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +32 -32
- package/dist/bin/pushary-disconnect.js +24 -24
- package/dist/bin/pushary-doctor.js +33 -33
- package/dist/bin/pushary-elicitation-hook.js +25 -25
- package/dist/bin/pushary-gemini-bridge.js +13 -13
- package/dist/bin/pushary-gemini-hook.js +27 -27
- package/dist/bin/pushary-hook.js +29 -29
- package/dist/bin/pushary-login.js +12 -12
- package/dist/bin/pushary-logout.js +24 -24
- package/dist/bin/pushary-mcp.js +9 -9
- package/dist/bin/pushary-mode.js +12 -12
- package/dist/bin/pushary-notification-hook.js +24 -24
- package/dist/bin/pushary-opencode-hook.js +26 -26
- package/dist/bin/pushary-permission-denied-hook.js +29 -29
- package/dist/bin/pushary-permission-hook.js +28 -28
- package/dist/bin/pushary-post-hook.js +24 -24
- package/dist/bin/pushary-prompt-hook.js +24 -24
- package/dist/bin/pushary-session-end-hook.js +24 -24
- package/dist/bin/pushary-session-start-hook.js +28 -28
- package/dist/bin/pushary-setup.js +35 -35
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +26 -26
- package/dist/bin/pushary-stop-hook.js +24 -24
- package/dist/bin/pushary-stopfailure-hook.js +24 -24
- package/dist/bin/pushary-suggestions.js +12 -12
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +7 -7
- package/dist/bin/pushary-upgrade.js +30 -30
- package/dist/bin/pushary-wait.js +12 -12
- package/dist/bin/pushary.js +6 -6
- package/dist/{chunk-RJDMLAHO.js → chunk-3U3FU6ZX.js} +3 -3
- package/dist/{chunk-ZEJ4HPXN.js → chunk-4UCTKLHY.js} +3 -3
- package/dist/{chunk-L5OCX5EH.js → chunk-4WM7IVVQ.js} +2 -2
- package/dist/{chunk-IHP6X4MJ.js → chunk-5INZFKHL.js} +1 -1
- package/dist/{chunk-YHTGLZ3F.js → chunk-6PABNQVH.js} +4 -4
- package/dist/{chunk-NBH6KBD4.js → chunk-7L6YSHZO.js} +2 -2
- package/dist/{chunk-EBBESQKO.js → chunk-ASXBYX2N.js} +1 -1
- package/dist/{chunk-54OESWJ5.js → chunk-AUDM6HU6.js} +2 -2
- package/dist/{chunk-Z4IBDCBH.js → chunk-AW4TDBUJ.js} +3 -3
- package/dist/{chunk-I2SXJH5G.js → chunk-B7PZBWBU.js} +7 -7
- package/dist/{chunk-W52MFAWQ.js → chunk-BDSIE2MT.js} +2 -2
- package/dist/{chunk-AVCTQB2J.js → chunk-BZIXDIIT.js} +1 -1
- package/dist/{chunk-GLGMC25A.js → chunk-CGRVIUKE.js} +8 -8
- package/dist/{chunk-SOPKWVMZ.js → chunk-CHD6IUNM.js} +1 -1
- package/dist/{chunk-AX4MCCIQ.js → chunk-DIJ532S7.js} +1 -1
- package/dist/{chunk-O4ZDPJU2.js → chunk-DPISXMLL.js} +4 -4
- package/dist/{chunk-6EVKSX75.js → chunk-E47JEBUR.js} +4 -4
- package/dist/{chunk-IL5NWORI.js → chunk-EBZK2SJ2.js} +4 -4
- package/dist/{chunk-RDR4CWVU.js → chunk-F43LAKAK.js} +2 -2
- package/dist/{chunk-3KWEGRNF.js → chunk-FMYXPJYS.js} +5 -5
- package/dist/{chunk-6DYR4SX2.js → chunk-FP2ZJK3T.js} +5 -5
- package/dist/{chunk-KBH7AEQK.js → chunk-I7EZMNKI.js} +5 -5
- package/dist/{chunk-PP3D2TG6.js → chunk-IVUP2EE4.js} +4 -4
- package/dist/{chunk-JTHGOW7A.js → chunk-IXNVIWNN.js} +2 -2
- package/dist/{chunk-J4FVW55Z.js → chunk-J7OBJZ5S.js} +1 -1
- package/dist/{chunk-XWG22IUE.js → chunk-JBK47Y2M.js} +6 -6
- package/dist/{chunk-4QAX6YTC.js → chunk-JQX2L3ES.js} +1 -1
- package/dist/{chunk-BPHAE44X.js → chunk-K2SSNAUW.js} +1 -1
- package/dist/{chunk-EOULXXHA.js → chunk-KYFWYPHN.js} +1 -1
- package/dist/{chunk-6FBQLKOJ.js → chunk-M2YE3OEC.js} +3 -3
- package/dist/{chunk-Z2ZPMSJO.js → chunk-M7VKFAAK.js} +3 -3
- package/dist/{chunk-NEPOKBSG.js → chunk-MAB6CGL5.js} +1 -1
- package/dist/{chunk-HYRUW76F.js → chunk-MI67QQEQ.js} +10 -10
- package/dist/{chunk-LBNXMPQ6.js → chunk-NRSTNZYJ.js} +5 -5
- package/dist/{chunk-WBZEW5RY.js → chunk-ODPULZZG.js} +2 -2
- package/dist/{chunk-KLNC2KW5.js → chunk-OLLWYLQX.js} +2 -2
- package/dist/{chunk-AWPUBTCU.js → chunk-ORLTWJ2O.js} +31 -13
- package/dist/{chunk-77HOP22I.js → chunk-PJ3C6IID.js} +4 -4
- package/dist/{chunk-RQN752UC.js → chunk-Q3QRD67J.js} +5 -5
- package/dist/{chunk-E3ZYXYBV.js → chunk-QPT4PTUG.js} +1 -1
- package/dist/{chunk-BCOS5PVT.js → chunk-QRNNIDGY.js} +1 -1
- package/dist/{chunk-A4C6JKIJ.js → chunk-RBUCXUT7.js} +4 -4
- package/dist/{chunk-GFPUTOME.js → chunk-RETRVO47.js} +2 -2
- package/dist/{chunk-6UQC6RLE.js → chunk-RTM5GVRZ.js} +8 -8
- package/dist/{chunk-BXD33IG7.js → chunk-STETTN4K.js} +5 -5
- package/dist/{chunk-NNJNN5OL.js → chunk-T3Q4B6WV.js} +2 -2
- package/dist/{chunk-XN3DMUWI.js → chunk-WZNRDDC4.js} +6 -6
- package/dist/{chunk-4G4T2EL2.js → chunk-X7TNLYNZ.js} +1 -1
- package/dist/{chunk-X7OOLKKT.js → chunk-Y3HTWB5S.js} +1 -1
- package/dist/{chunk-VHGTMFKS.js → chunk-Z4RM54LU.js} +2 -2
- package/dist/{chunk-DMGXWZYC.js → chunk-ZJY4KON3.js} +4 -4
- package/dist/{chunk-SSV75WCM.js → chunk-ZV56INA6.js} +3 -3
- package/dist/{chunk-TNGCGQ4R.js → chunk-ZVMFRUBD.js} +4 -4
- package/dist/{chunk-36Y2YAAQ.js → chunk-ZX3PFROQ.js} +1 -1
- package/dist/{global-upgrade-364SJFGE.js → global-upgrade-YEAGJG4G.js} +6 -6
- package/dist/{paths-HRX7TWHU.js → paths-HQAICWAF.js} +2 -2
- package/dist/{reapply-3IZIQNEU.js → reapply-XBEB2B5A.js} +20 -20
- package/dist/src/index.js +19 -19
- package/dist/{upgrade-lock-PPYGYFVQ.js → upgrade-lock-GIO5QZ7E.js} +3 -3
- package/package.json +1 -1
|
@@ -388,9 +388,9 @@ var CANONICAL_COMMAND_KEYS = ["command"];
|
|
|
388
388
|
var SHELL_TOOLS = /* @__PURE__ */ new Set([SHELL_TOOL, POWERSHELL_TOOL]);
|
|
389
389
|
var PATH_TOOLS = /* @__PURE__ */ new Set(["Write", "Edit", "MultiEdit", "NotebookEdit", "Read"]);
|
|
390
390
|
var PHONE_ANSWERED_TOOLS = /* @__PURE__ */ new Set(["AskUserQuestion", "ExitPlanMode"]);
|
|
391
|
-
var firstString = (
|
|
391
|
+
var firstString = (record2, keys) => {
|
|
392
392
|
for (const key of keys) {
|
|
393
|
-
const value =
|
|
393
|
+
const value = record2[key];
|
|
394
394
|
if (typeof value === "string" && value.length > 0) return value;
|
|
395
395
|
}
|
|
396
396
|
return void 0;
|
|
@@ -2528,6 +2528,12 @@ var ANSWER_DRAFT_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
|
2528
2528
|
var DECISION_REMINDER_DELAY_MS = 10 * 60 * 1e3;
|
|
2529
2529
|
var DECISION_CACHE_TTL_SECONDS = 10 * 60;
|
|
2530
2530
|
|
|
2531
|
+
// ../contracts/src/question-continuation.ts
|
|
2532
|
+
var PERSONAL_QUESTION_CAPABILITY = "codex-owned-question-v1";
|
|
2533
|
+
var record = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
|
|
2534
|
+
var identifier = (value) => typeof value === "string" && value.length > 0 && value.length <= 200;
|
|
2535
|
+
var isQuestionOwner = (value) => record(value) && value.capability === PERSONAL_QUESTION_CAPABILITY && identifier(value.machineId) && identifier(value.generation) && identifier(value.threadId) && identifier(value.turnId) && identifier(value.itemId) && (identifier(value.requestId) || typeof value.requestId === "number" && Number.isSafeInteger(value.requestId)) && value.method === "item/tool/requestUserInput" && typeof value.subjectHash === "string" && /^[a-f0-9]{64}$/.test(value.subjectHash) && Object.keys(value).length === 9;
|
|
2536
|
+
|
|
2531
2537
|
// ../contracts/src/index.ts
|
|
2532
2538
|
var KEY_SCOPES = ["full_access", "agent", "connector", "bound"];
|
|
2533
2539
|
var normalizeKeyScope = (value) => typeof value === "string" && KEY_SCOPES.includes(value) ? value : null;
|
|
@@ -2556,6 +2562,9 @@ var approvalModeWithoutLocalPrompt = (mode) => {
|
|
|
2556
2562
|
var TIMEOUT_ACTION_THAT_REFUSES = "deny";
|
|
2557
2563
|
var timeoutActionWithoutLocalPrompt = ({ mode, timeoutAction }) => mode !== "push_only" && timeoutAction === "approve" ? TIMEOUT_ACTION_THAT_REFUSES : timeoutAction;
|
|
2558
2564
|
var MAX_AGENT_QUESTIONS = 4;
|
|
2565
|
+
var AGENT_QUESTION_HEADER_MAX = 40;
|
|
2566
|
+
var AGENT_QUESTION_OPTION_MAX = 100;
|
|
2567
|
+
var AGENT_QUESTION_DESCRIPTION_MAX = 500;
|
|
2559
2568
|
var parseAgentQuestion = (raw) => {
|
|
2560
2569
|
const q = raw;
|
|
2561
2570
|
if (!q || typeof q.question !== "string") return void 0;
|
|
@@ -2599,9 +2608,9 @@ var isAgentQuestionSet = (value) => {
|
|
|
2599
2608
|
const labels = /* @__PURE__ */ new Set();
|
|
2600
2609
|
for (const option of question.options) {
|
|
2601
2610
|
if (!option || typeof option !== "object" || Array.isArray(option)) return false;
|
|
2602
|
-
const
|
|
2603
|
-
const label =
|
|
2604
|
-
if (typeof label !== "string" || label.length === 0 || labels.has(label) ||
|
|
2611
|
+
const record2 = option;
|
|
2612
|
+
const label = record2.label;
|
|
2613
|
+
if (typeof label !== "string" || label.length === 0 || labels.has(label) || record2.description !== void 0 && typeof record2.description !== "string") return false;
|
|
2605
2614
|
labels.add(label);
|
|
2606
2615
|
}
|
|
2607
2616
|
questions.add(question.question);
|
|
@@ -4657,6 +4666,8 @@ var API_KEY_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}\\.[a-f0-9]+$`);
|
|
|
4657
4666
|
var isValidApiKey = (value) => API_KEY_PATTERN.test(value);
|
|
4658
4667
|
var ACTION_BODY_MAX = 4e3;
|
|
4659
4668
|
var DECISION_LINE_MAX = 500;
|
|
4669
|
+
var ASK_QUESTION_MAX = 8e3;
|
|
4670
|
+
var ASK_CONTEXT_MAX = 500;
|
|
4660
4671
|
var ASK_AGENT_NAME_MAX = 100;
|
|
4661
4672
|
var TRUNCATION_MARK = "\u2026";
|
|
4662
4673
|
var isHighSurrogate = (code) => code >= 55296 && code <= 56319;
|
|
@@ -5329,8 +5340,8 @@ var isBlockedActionRequest = (request) => isBlockedActionEvent(request) && block
|
|
|
5329
5340
|
var canonicalJsonText = (value) => {
|
|
5330
5341
|
if (Array.isArray(value)) return `[${value.map(canonicalJsonText).join(",")}]`;
|
|
5331
5342
|
if (value !== null && typeof value === "object") {
|
|
5332
|
-
const
|
|
5333
|
-
return `{${Object.keys(
|
|
5343
|
+
const record2 = value;
|
|
5344
|
+
return `{${Object.keys(record2).filter((key) => record2[key] !== void 0).sort().map((key) => `${JSON.stringify(key)}:${canonicalJsonText(record2[key])}`).join(",")}}`;
|
|
5334
5345
|
}
|
|
5335
5346
|
return JSON.stringify(value) ?? "null";
|
|
5336
5347
|
};
|
|
@@ -5710,11 +5721,11 @@ var elicitationEnum = (property) => {
|
|
|
5710
5721
|
return members.length === property.enum.length && members.length >= ELICITATION_MIN_OPTIONS ? members : null;
|
|
5711
5722
|
};
|
|
5712
5723
|
var readElicitationFields = (schema) => {
|
|
5713
|
-
const
|
|
5714
|
-
const properties = elicitationRecord(
|
|
5715
|
-
if (!properties ||
|
|
5716
|
-
if (Object.keys(
|
|
5717
|
-
if (
|
|
5724
|
+
const record2 = elicitationRecord(schema);
|
|
5725
|
+
const properties = elicitationRecord(record2?.properties);
|
|
5726
|
+
if (!properties || record2?.type !== "object") return null;
|
|
5727
|
+
if (Object.keys(record2).some((key) => !["type", "properties", "required", "$schema"].includes(key))) return null;
|
|
5728
|
+
if (record2.required !== void 0 && (!Array.isArray(record2.required) || !record2.required.every((name) => typeof name === "string" && Object.hasOwn(properties, name)))) return null;
|
|
5718
5729
|
const entries = Object.entries(properties);
|
|
5719
5730
|
if (entries.length === 0) return null;
|
|
5720
5731
|
const fields = [];
|
|
@@ -6037,11 +6048,15 @@ export {
|
|
|
6037
6048
|
withDeclinedAgent,
|
|
6038
6049
|
withoutDeclinedAgent,
|
|
6039
6050
|
isAutoUpdateResult,
|
|
6051
|
+
PERSONAL_QUESTION_CAPABILITY,
|
|
6052
|
+
isQuestionOwner,
|
|
6040
6053
|
normalizeKeyScope,
|
|
6041
6054
|
isApprovalMode,
|
|
6042
6055
|
approvalModeWithoutLocalPrompt,
|
|
6043
6056
|
timeoutActionWithoutLocalPrompt,
|
|
6044
|
-
|
|
6057
|
+
AGENT_QUESTION_HEADER_MAX,
|
|
6058
|
+
AGENT_QUESTION_OPTION_MAX,
|
|
6059
|
+
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
6045
6060
|
parseAgentQuestions,
|
|
6046
6061
|
parseAgentQuestionAnswers,
|
|
6047
6062
|
parseCodexQuestions,
|
|
@@ -6074,6 +6089,8 @@ export {
|
|
|
6074
6089
|
isValidApiKey,
|
|
6075
6090
|
ACTION_BODY_MAX,
|
|
6076
6091
|
DECISION_LINE_MAX,
|
|
6092
|
+
ASK_QUESTION_MAX,
|
|
6093
|
+
ASK_CONTEXT_MAX,
|
|
6077
6094
|
ASK_AGENT_NAME_MAX,
|
|
6078
6095
|
truncateLine,
|
|
6079
6096
|
isAnswerSource,
|
|
@@ -6094,6 +6111,7 @@ export {
|
|
|
6094
6111
|
questionHandedToTheTerminal,
|
|
6095
6112
|
CODEX_RESCUE_TOOL_NAME,
|
|
6096
6113
|
isBlockedActionRequest,
|
|
6114
|
+
canonicalJsonText,
|
|
6097
6115
|
BLOCKED_ACTION_GRANT_TTL_SECONDS,
|
|
6098
6116
|
blockedActionIdentity,
|
|
6099
6117
|
PRETOOLUSE_GATED_TOOLS,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FP2ZJK3T.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M7VKFAAK.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EBZK2SJ2.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-AQFEP65J.js";
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ORLTWJ2O.js";
|
|
16
16
|
|
|
17
17
|
// src/shared-mcp-key.ts
|
|
18
18
|
var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
forkFinishWithUpgradeLock,
|
|
5
5
|
installWithUpgradeLock,
|
|
6
6
|
releaseAutoUpdateLock
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BZIXDIIT.js";
|
|
8
8
|
import {
|
|
9
9
|
describeAutoUpdateCheck,
|
|
10
10
|
globalInstallLocation,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
readAutoUpdateState,
|
|
15
15
|
updateAutoUpdateState,
|
|
16
16
|
upgradeEntryFor
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7L6YSHZO.js";
|
|
18
18
|
import {
|
|
19
19
|
EXIT
|
|
20
20
|
} from "./chunk-KZERVKTD.js";
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
npmErrorMessage,
|
|
28
28
|
readGlobalCliInstallAt,
|
|
29
29
|
readGlobalPrefix
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EBZK2SJ2.js";
|
|
31
31
|
import {
|
|
32
32
|
NPX_LATEST_COMMAND
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-DIJ532S7.js";
|
|
34
34
|
import {
|
|
35
35
|
commandsPackage,
|
|
36
36
|
globalUpgradeEntry,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
isSameMajorVersion,
|
|
40
40
|
ownPackageRoot,
|
|
41
41
|
packageVersionAt
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ORLTWJ2O.js";
|
|
43
43
|
|
|
44
44
|
// src/global-upgrade.ts
|
|
45
45
|
import { existsSync } from "fs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IVUP2EE4.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NRSTNZYJ.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EBZK2SJ2.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ORLTWJ2O.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -6,38 +6,38 @@ import {
|
|
|
6
6
|
} from "./chunk-DWQYCOPI.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureDaemonRunning
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-STETTN4K.js";
|
|
10
10
|
import {
|
|
11
11
|
buildTranscriptRecords,
|
|
12
12
|
decodePublicKey,
|
|
13
13
|
generateSessionKey,
|
|
14
14
|
wrapSessionKey
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-X7TNLYNZ.js";
|
|
16
16
|
import {
|
|
17
17
|
fetchTranscriptRecipients,
|
|
18
18
|
uploadTranscriptRecords
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MAB6CGL5.js";
|
|
20
20
|
import {
|
|
21
21
|
transcriptEnvironmentPreference,
|
|
22
22
|
transcriptsEnabled
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QRNNIDGY.js";
|
|
24
24
|
import {
|
|
25
25
|
hookOwnerOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NRSTNZYJ.js";
|
|
27
27
|
import {
|
|
28
28
|
readTranscriptPreference
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-M7VKFAAK.js";
|
|
30
30
|
import {
|
|
31
31
|
codexHome,
|
|
32
32
|
pusharyDir
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EBZK2SJ2.js";
|
|
34
34
|
import {
|
|
35
35
|
writeJsonAtomic
|
|
36
36
|
} from "./chunk-AQFEP65J.js";
|
|
37
37
|
import {
|
|
38
38
|
getApiKey,
|
|
39
39
|
getBaseUrl
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-CHD6IUNM.js";
|
|
41
41
|
|
|
42
42
|
// src/transcript-registration.ts
|
|
43
43
|
import { createHash } from "crypto";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-XHKBHWLX.js";
|
|
5
5
|
import {
|
|
6
6
|
readControlMode
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M7VKFAAK.js";
|
|
8
8
|
import {
|
|
9
9
|
getMachineId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QPT4PTUG.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir,
|
|
13
13
|
resolveGlobalBinary
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EBZK2SJ2.js";
|
|
15
15
|
import {
|
|
16
16
|
readJsonSafe,
|
|
17
17
|
writeFileAtomic,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-AQFEP65J.js";
|
|
21
21
|
import {
|
|
22
22
|
getApiKey
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CHD6IUNM.js";
|
|
24
24
|
import {
|
|
25
25
|
CLI_PACKAGE_NAMES,
|
|
26
26
|
cmdShimTarget,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
globalPackageFolder,
|
|
29
29
|
globalRootFor,
|
|
30
30
|
isRecord
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ORLTWJ2O.js";
|
|
32
32
|
|
|
33
33
|
// src/daemon-lifecycle.ts
|
|
34
34
|
import { dirname, join, win32 as win32Path } from "path";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
resolvePackageVersionFromBinary,
|
|
11
11
|
resolvePathBinary,
|
|
12
12
|
resolvePathBinaryAsync
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EBZK2SJ2.js";
|
|
14
14
|
import {
|
|
15
15
|
MANAGED_PROVIDERS
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ORLTWJ2O.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/codex-install.ts
|
|
19
19
|
var NATIVE_BINARY_MIN_BYTES = 20 * 1024 * 1024;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
announceSubscriptionRequired,
|
|
3
3
|
isDeferAnswer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZX3PFROQ.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-CGRVIUKE.js";
|
|
14
14
|
import {
|
|
15
15
|
askUser,
|
|
16
16
|
isDecisionStopped,
|
|
17
17
|
waitForQuestion
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-I7EZMNKI.js";
|
|
19
19
|
import {
|
|
20
20
|
SubscriptionRequiredError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AW4TDBUJ.js";
|
|
22
22
|
import {
|
|
23
23
|
getMachineId
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QPT4PTUG.js";
|
|
25
25
|
import {
|
|
26
26
|
machineDecisionFor,
|
|
27
27
|
parseAgentQuestionAnswers,
|
|
28
28
|
shouldDeferToNativeMode,
|
|
29
29
|
wireVerdictFor
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ORLTWJ2O.js";
|
|
31
31
|
|
|
32
32
|
// src/machine-decision-audit.ts
|
|
33
33
|
import { basename } from "path";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand,
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EBZK2SJ2.js";
|
|
12
12
|
import {
|
|
13
13
|
getPackageVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ORLTWJ2O.js";
|
|
15
15
|
|
|
16
16
|
// src/codex-app-server.ts
|
|
17
17
|
import { existsSync, realpathSync } from "fs";
|
|
@@ -14,19 +14,19 @@ import {
|
|
|
14
14
|
} from "./chunk-FO3MDD26.js";
|
|
15
15
|
import {
|
|
16
16
|
callMcpTool
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AW4TDBUJ.js";
|
|
18
18
|
import {
|
|
19
19
|
reportedInstallSource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ODPULZZG.js";
|
|
21
21
|
import {
|
|
22
22
|
NPX_LATEST_COMMAND
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DIJ532S7.js";
|
|
24
24
|
import {
|
|
25
25
|
NO_PAIRING_COMPUTER,
|
|
26
26
|
PAIR_TTL_SECONDS,
|
|
27
27
|
classifyConfirmResponse,
|
|
28
28
|
isAnswerSource
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ORLTWJ2O.js";
|
|
30
30
|
|
|
31
31
|
// src/reach.ts
|
|
32
32
|
var reachVerdict = (channels) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4UCTKLHY.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-CHD6IUNM.js";
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ORLTWJ2O.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;
|
|
@@ -2,25 +2,25 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IXNVIWNN.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-M7VKFAAK.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZV56INA6.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-CHD6IUNM.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/report-key.ts
|
|
26
26
|
var { dim, yellow } = createIo();
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readGlobalUpgradeSubject,
|
|
6
6
|
upgradeInstalledPackage,
|
|
7
7
|
withUpgradeLock
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-Q3QRD67J.js";
|
|
9
|
+
import "./chunk-BZIXDIIT.js";
|
|
10
|
+
import "./chunk-7L6YSHZO.js";
|
|
11
11
|
import "./chunk-POFBE6ZY.js";
|
|
12
12
|
import "./chunk-KZERVKTD.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-EBZK2SJ2.js";
|
|
14
14
|
import "./chunk-AQFEP65J.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-DIJ532S7.js";
|
|
16
|
+
import "./chunk-ORLTWJ2O.js";
|
|
17
17
|
export {
|
|
18
18
|
finishGlobalUpgrade,
|
|
19
19
|
finishUpgradeWithLock,
|
|
@@ -11,34 +11,34 @@ import {
|
|
|
11
11
|
reapplyOpenCodePlugin,
|
|
12
12
|
reapplyVsCodePlugin,
|
|
13
13
|
repairCodexHolds
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-B7PZBWBU.js";
|
|
15
|
+
import "./chunk-Z4RM54LU.js";
|
|
16
16
|
import "./chunk-RIVNNBEK.js";
|
|
17
17
|
import "./chunk-XHKBHWLX.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-FP2ZJK3T.js";
|
|
19
|
+
import "./chunk-IVUP2EE4.js";
|
|
20
|
+
import "./chunk-NRSTNZYJ.js";
|
|
21
|
+
import "./chunk-3U3FU6ZX.js";
|
|
22
|
+
import "./chunk-KYFWYPHN.js";
|
|
23
|
+
import "./chunk-Y3HTWB5S.js";
|
|
24
24
|
import "./chunk-GMXKITVA.js";
|
|
25
25
|
import "./chunk-6ICPEJY5.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-CGRVIUKE.js";
|
|
27
|
+
import "./chunk-K2SSNAUW.js";
|
|
28
|
+
import "./chunk-I7EZMNKI.js";
|
|
29
29
|
import "./chunk-POFBE6ZY.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-AW4TDBUJ.js";
|
|
31
|
+
import "./chunk-ZV56INA6.js";
|
|
32
|
+
import "./chunk-4UCTKLHY.js";
|
|
33
|
+
import "./chunk-QPT4PTUG.js";
|
|
34
34
|
import "./chunk-7QLSKOSU.js";
|
|
35
35
|
import "./chunk-KZERVKTD.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-ODPULZZG.js";
|
|
37
|
+
import "./chunk-EBZK2SJ2.js";
|
|
38
38
|
import "./chunk-AQFEP65J.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-CHD6IUNM.js";
|
|
40
|
+
import "./chunk-DIJ532S7.js";
|
|
41
|
+
import "./chunk-ORLTWJ2O.js";
|
|
42
42
|
export {
|
|
43
43
|
ensureCodexTrustAfterReapply,
|
|
44
44
|
inspectConfiguredManagedProviders,
|
package/dist/src/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handlePreToolUse
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-MI67QQEQ.js";
|
|
4
|
+
import "../chunk-WZNRDDC4.js";
|
|
5
|
+
import "../chunk-JQX2L3ES.js";
|
|
6
|
+
import "../chunk-ZX3PFROQ.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAccountPublicKey
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-MAB6CGL5.js";
|
|
10
|
+
import "../chunk-IVUP2EE4.js";
|
|
11
|
+
import "../chunk-3U3FU6ZX.js";
|
|
12
12
|
import "../chunk-6ICPEJY5.js";
|
|
13
13
|
import {
|
|
14
14
|
fetchModeOverride,
|
|
@@ -18,31 +18,31 @@ import {
|
|
|
18
18
|
handlePostToolUse,
|
|
19
19
|
handleStop,
|
|
20
20
|
reportEvent
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-CGRVIUKE.js";
|
|
22
|
+
import "../chunk-K2SSNAUW.js";
|
|
23
23
|
import {
|
|
24
24
|
askUser,
|
|
25
25
|
cancelQuestion,
|
|
26
26
|
waitForAnswer
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-I7EZMNKI.js";
|
|
28
28
|
import "../chunk-POFBE6ZY.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-AW4TDBUJ.js";
|
|
30
|
+
import "../chunk-ZV56INA6.js";
|
|
31
|
+
import "../chunk-4UCTKLHY.js";
|
|
32
|
+
import "../chunk-QPT4PTUG.js";
|
|
33
33
|
import "../chunk-7QLSKOSU.js";
|
|
34
34
|
import "../chunk-KZERVKTD.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-ODPULZZG.js";
|
|
36
|
+
import "../chunk-EBZK2SJ2.js";
|
|
37
37
|
import "../chunk-AQFEP65J.js";
|
|
38
38
|
import {
|
|
39
39
|
getApiKey,
|
|
40
40
|
getBaseUrl
|
|
41
|
-
} from "../chunk-
|
|
42
|
-
import "../chunk-
|
|
41
|
+
} from "../chunk-CHD6IUNM.js";
|
|
42
|
+
import "../chunk-DIJ532S7.js";
|
|
43
43
|
import {
|
|
44
44
|
resolvePolicy
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-ORLTWJ2O.js";
|
|
46
46
|
export {
|
|
47
47
|
askUser,
|
|
48
48
|
cancelQuestion,
|