pushary 1.9.282 → 1.9.285
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 +23 -0
- package/README.md +3 -1
- package/dist/{api-WBSDPSHN.js → api-4MGFAW5H.js} +12 -12
- package/dist/bin/pushary-ask.js +14 -14
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +11 -11
- package/dist/bin/pushary-calls.js +14 -14
- package/dist/bin/pushary-claude.js +25 -25
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +22 -22
- package/dist/bin/pushary-codex-hook.js +38 -36
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +115 -52
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +18 -4
- package/dist/bin/pushary-doctor.js +72 -73
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +46 -43
- package/dist/bin/pushary-logout.js +31 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +21 -21
- package/dist/bin/pushary-opencode-hook.js +32 -32
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +35 -35
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +65 -61
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -36
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +54 -50
- package/dist/bin/pushary-wait.js +67 -30
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-JUZC524C.js → chunk-2HA6AGLM.js} +8 -7
- package/dist/{chunk-GS6XPW45.js → chunk-2MQUKVMW.js} +7 -7
- package/dist/{chunk-MYXHCXD3.js → chunk-2NUVES3K.js} +4 -4
- package/dist/{chunk-36CZVHOH.js → chunk-2SW5J3J2.js} +1 -1
- package/dist/{chunk-SIZMK3SF.js → chunk-44RAWLI3.js} +1 -1
- package/dist/{chunk-67D6KDPJ.js → chunk-4KPUTQPG.js} +4 -4
- package/dist/{chunk-PATTVCJS.js → chunk-4TOJHGPX.js} +2 -2
- package/dist/{chunk-YQNGHX3P.js → chunk-4Y7RNQO5.js} +3 -3
- package/dist/{chunk-O6LVUSRY.js → chunk-52XX2DYG.js} +6 -6
- package/dist/{chunk-3FCGMTG2.js → chunk-5DF6YZPG.js} +63 -7
- package/dist/{chunk-PUDKDFOZ.js → chunk-5FZ2K4UV.js} +1 -1
- package/dist/{chunk-T2JHF3E4.js → chunk-5IJ252DT.js} +7 -7
- package/dist/{chunk-3AKD2IMA.js → chunk-6T367UEE.js} +6 -6
- package/dist/{chunk-VY7Q5MEQ.js → chunk-6VN46PV6.js} +5 -5
- package/dist/{chunk-KSHM2X7A.js → chunk-6YVIWLL2.js} +2 -2
- package/dist/{chunk-TCQ3SHEC.js → chunk-6ZNQDNFS.js} +11 -7
- package/dist/{chunk-7OV4MW6B.js → chunk-6ZRSO6PM.js} +2 -2
- package/dist/{chunk-R5P25UN2.js → chunk-745DB5AH.js} +5 -5
- package/dist/{chunk-XV54WWNB.js → chunk-77F7TPQE.js} +3 -3
- package/dist/{chunk-2SE3TSWT.js → chunk-7GHHQFHH.js} +10 -10
- package/dist/{chunk-7WCBGOXC.js → chunk-7O4XAG63.js} +2 -2
- package/dist/{chunk-3I6Z6YKA.js → chunk-7U43GCFH.js} +5 -5
- package/dist/{chunk-HPYVOBVO.js → chunk-7ZCIUEBP.js} +1 -1
- package/dist/{chunk-QXPI7LOZ.js → chunk-A533F6TF.js} +3 -3
- package/dist/{chunk-IJOGKO3Z.js → chunk-ACAMCU2Y.js} +1 -1
- package/dist/{chunk-L25W4SZ2.js → chunk-BCYXPGOQ.js} +3 -3
- package/dist/{chunk-USRBNJJX.js → chunk-BETDBGC7.js} +2 -2
- package/dist/{chunk-M4B3D76U.js → chunk-CDOFQJ2Z.js} +1 -1
- package/dist/{chunk-SCR7JFIZ.js → chunk-CE4D3FCO.js} +12 -12
- package/dist/{chunk-QGQA4VUR.js → chunk-CITB5W5V.js} +8 -8
- package/dist/{chunk-LKL7VIWF.js → chunk-CP65XDI7.js} +3 -3
- package/dist/{chunk-KV65OAIF.js → chunk-DBBLMMBL.js} +1 -1
- package/dist/{chunk-ZL46IS5W.js → chunk-DYIU6SSG.js} +1 -1
- package/dist/{chunk-2562EGWD.js → chunk-ESTQIKTS.js} +1 -1
- package/dist/{chunk-7CCJLPFF.js → chunk-EZBNWOZM.js} +2 -2
- package/dist/{chunk-AGBCUPRE.js → chunk-FLUKEERY.js} +5 -5
- package/dist/{chunk-ODSUVMII.js → chunk-FQC76AYR.js} +5 -5
- package/dist/{chunk-DLRZZHXC.js → chunk-HHGZZIKD.js} +6 -6
- package/dist/{chunk-RECYGQIM.js → chunk-HOAWHKM3.js} +20 -18
- package/dist/{chunk-G6EN7DLG.js → chunk-HWIDUN2Q.js} +10 -10
- package/dist/{chunk-NL4NVNSD.js → chunk-IGDC2GMU.js} +2 -2
- package/dist/{chunk-URYZAUMK.js → chunk-IVIG4LUZ.js} +4 -4
- package/dist/{chunk-MZPWMXPX.js → chunk-JBK7WRPB.js} +2 -10
- package/dist/{chunk-VYMBV6M5.js → chunk-JMPGFGCM.js} +3 -3
- package/dist/{chunk-D35MHKUM.js → chunk-JPCVW3BA.js} +2 -2
- package/dist/{chunk-Q5MYEDCP.js → chunk-KI6IY52L.js} +6 -6
- package/dist/{chunk-6SJ3YYPS.js → chunk-L4PIOZIP.js} +2 -2
- package/dist/{chunk-5WZAL3IG.js → chunk-LAPJNDQG.js} +4 -4
- package/dist/{chunk-4EJ6BFQ6.js → chunk-LF2BFP3F.js} +3 -3
- package/dist/{chunk-HJ25OOZL.js → chunk-LP2VGPHZ.js} +1 -1
- package/dist/{chunk-DEGZHZLH.js → chunk-MBUENM7S.js} +1 -1
- package/dist/{chunk-QG742PJG.js → chunk-MTSTB2GL.js} +1 -1
- package/dist/{chunk-LE2GNKVF.js → chunk-NAD2JOKF.js} +19 -9
- package/dist/{chunk-JKMX5HMU.js → chunk-O2BQDYHI.js} +1 -1
- package/dist/{chunk-RI6C7WBQ.js → chunk-P47NDCPH.js} +2 -2
- package/dist/{chunk-DGIMLJ7N.js → chunk-P4FD4WGC.js} +3 -3
- package/dist/{chunk-JP545GB4.js → chunk-PAY473GK.js} +1 -1
- package/dist/{chunk-XKTBFWO2.js → chunk-PCKCLSGP.js} +1 -1
- package/dist/{chunk-6TC6Y5FE.js → chunk-PGCMTR5N.js} +5 -5
- package/dist/{chunk-NQCIACTR.js → chunk-PMHOO355.js} +4 -4
- package/dist/{chunk-GOMIXT5C.js → chunk-PU5MHVE2.js} +5 -5
- package/dist/{chunk-7CIMT2QH.js → chunk-QQDGYEWB.js} +1 -1
- package/dist/{chunk-7DZ7UZQE.js → chunk-QTNBPBYN.js} +31 -6
- package/dist/{chunk-GBMURSB4.js → chunk-QWBPCCFQ.js} +7 -7
- package/dist/{chunk-FYGOACNH.js → chunk-RRDQYSNT.js} +2 -2
- package/dist/{chunk-ENTFHIJ5.js → chunk-RT4KU4JT.js} +1 -1
- package/dist/{chunk-KKPI7MVG.js → chunk-SNR7BUWT.js} +4 -4
- package/dist/{chunk-I2OOSUJN.js → chunk-SRGKENVI.js} +1 -1
- package/dist/{chunk-YEQF4H76.js → chunk-V5LIBKOQ.js} +4 -4
- package/dist/{chunk-VSF3OSWI.js → chunk-V77JIYBK.js} +1 -1
- package/dist/{chunk-DI7VQ4PL.js → chunk-VFPXC2HE.js} +1 -1
- package/dist/{chunk-DPTI6ZTZ.js → chunk-VVXWDBZK.js} +2 -2
- package/dist/{chunk-Z7F7SITX.js → chunk-VZXBPQIX.js} +4 -4
- package/dist/{chunk-OPWXKDXN.js → chunk-WKXO22AI.js} +4 -4
- package/dist/{chunk-JXVZO2TC.js → chunk-WUDKVYSQ.js} +2 -2
- package/dist/chunk-WY2HGMNV.js +42 -0
- package/dist/{chunk-H5BATWAL.js → chunk-XCPZ64EV.js} +3 -3
- package/dist/{chunk-2NNCVW26.js → chunk-XNWLSADP.js} +5 -4
- package/dist/{chunk-DWL2XZNZ.js → chunk-XV7ZL2JN.js} +5 -5
- package/dist/{chunk-OVUJLLPD.js → chunk-YJ6OARPK.js} +36 -24
- package/dist/{chunk-I5RNSFXB.js → chunk-YPDWI6KV.js} +4 -4
- package/dist/{chunk-YM3TSHT2.js → chunk-YQVGPAZV.js} +1 -1
- package/dist/{chunk-7FUEG6WT.js → chunk-YV7BK4UO.js} +1 -1
- package/dist/{codex-app-cards-switch-DGTEKXMX.js → codex-app-cards-switch-JPDKYQ5R.js} +11 -11
- package/dist/{codex-card-routing-ESKPXKXS.js → codex-card-routing-BDAI3C5X.js} +2 -2
- package/dist/{codex-desktop-launch-HCEBT2IM.js → codex-desktop-launch-WELLPX34.js} +3 -3
- package/dist/{codex-session-launch-PXWW7EDP.js → codex-session-launch-BAVV7JK7.js} +21 -21
- package/dist/{config-PFH6OQ6M.js → config-L57XINHY.js} +3 -3
- package/dist/{global-upgrade-UU3H3EFW.js → global-upgrade-ZD6PXYIH.js} +9 -9
- package/dist/{identity-JHCLWMLI.js → identity-ZTXVU75K.js} +4 -4
- package/dist/{live-capabilities-3K6DM4A3.js → live-capabilities-TFAUA6FN.js} +4 -4
- package/dist/{paths-TMTWXB5B.js → paths-3VDI3LAG.js} +3 -3
- package/dist/{reapply-RT4T77RQ.js → reapply-DWXARPLQ.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-NGYIAYBZ.js → upgrade-lock-KNVJBN5G.js} +4 -4
- package/dist/{usage-LGGUWLJM.js → usage-YDADZALP.js} +3 -3
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QWBPCCFQ.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VVXWDBZK.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6YVIWLL2.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-PM2NRK6Y.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NAD2JOKF.js";
|
|
17
17
|
|
|
18
18
|
// src/shared-mcp-key.ts
|
|
19
19
|
var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
NpmMissingError,
|
|
5
5
|
NpmPermissionError,
|
|
6
6
|
NpmReleaseAgeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SNR7BUWT.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic
|
|
10
10
|
} from "./chunk-PM2NRK6Y.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BETDBGC7.js";
|
|
14
14
|
import {
|
|
15
15
|
readSetupAgentFailures
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NAD2JOKF.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/config-write.ts
|
|
19
19
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
OPENCODE_PLUGIN_PLACEHOLDER,
|
|
7
7
|
OPENCODE_PLUGIN_SIBLING,
|
|
8
8
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DYIU6SSG.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -4913,12 +4913,11 @@ var GROK_BOT_CONNECTOR_TEST = `Use Pushary ask_user to ask \u201C${CONNECTOR_SET
|
|
|
4913
4913
|
|
|
4914
4914
|
// ../contracts/src/partner-developer-guide.ts
|
|
4915
4915
|
var PARTNER_API_KEYS_URL = "https://pushary.com/dashboard/agent/settings";
|
|
4916
|
-
var PARTNER_INSTALL_COMMAND = "npm
|
|
4916
|
+
var PARTNER_INSTALL_COMMAND = "npm install @pushary/server";
|
|
4917
4917
|
var PARTNER_DEVELOPER_STEPS = [
|
|
4918
4918
|
`Install on our server: ${PARTNER_INSTALL_COMMAND}. Create the client with our Partner API key, shown once in onboarding, and keep it on the server. Lost it? Create a new one at ${PARTNER_API_KEYS_URL}.`,
|
|
4919
4919
|
"For each customer, call pushary.enroll(customerId) and show the universalLink it returns as a button or QR code in our app. They open it in the free Pushary app and allow notifications. Installing the app does not carry the link over, so keep it available until they finish.",
|
|
4920
|
-
"Before a risky action, call pushary.decisions.ask({ externalId: customerId, question }) and run the action only if approved is true."
|
|
4921
|
-
"If the answer can come later than the request, create a decision with pushary.decisions.create, save its id, and resume from pushary.decisions.get or the webhook."
|
|
4920
|
+
"Before a risky action, call pushary.decisions.ask({ externalId: customerId, question }) and run the action only if approved is true."
|
|
4922
4921
|
];
|
|
4923
4922
|
|
|
4924
4923
|
// ../contracts/src/degraded.ts
|
|
@@ -4941,12 +4940,13 @@ var OUTBOX_BACKLOG_STALL_MS = 20 * MINUTE_MS;
|
|
|
4941
4940
|
var PUSHARY_HOSTS = ["pushary.com", "www.pushary.com"];
|
|
4942
4941
|
|
|
4943
4942
|
// ../contracts/src/key-scope.ts
|
|
4944
|
-
var KEY_SCOPES = ["full_access", "agent", "connector", "bound"];
|
|
4943
|
+
var KEY_SCOPES = ["full_access", "agent", "connector", "bound", "enroll"];
|
|
4945
4944
|
var KEY_SCOPE = {
|
|
4946
4945
|
full_access: "full_access",
|
|
4947
4946
|
agent: "agent",
|
|
4948
4947
|
connector: "connector",
|
|
4949
|
-
bound: "bound"
|
|
4948
|
+
bound: "bound",
|
|
4949
|
+
enroll: "enroll"
|
|
4950
4950
|
};
|
|
4951
4951
|
var normalizeKeyScope = (value) => typeof value === "string" && KEY_SCOPES.includes(value) ? value : null;
|
|
4952
4952
|
|
|
@@ -12384,6 +12384,8 @@ var GATE_ALLOW_SOURCE = {
|
|
|
12384
12384
|
allowlist: "allowlist",
|
|
12385
12385
|
policy: "policy"
|
|
12386
12386
|
};
|
|
12387
|
+
var EXPLICIT_ANSWER_ONLY = { onlyAnExplicitAnswerRunsIt: true };
|
|
12388
|
+
var onlyAnExplicitAnswerRunsTheCall = (verdict) => verdict.kind === "gate" && verdict.onlyAnExplicitAnswerRunsIt === true;
|
|
12387
12389
|
var isGateRefusal = (verdict) => verdict.kind === "kill" || verdict.kind === "deny";
|
|
12388
12390
|
var PUSHARY_TOOL_PREFIX = "mcp__pushary__";
|
|
12389
12391
|
var PUSHARY_CONNECTOR_TOOL_PREFIXES = ["mcp__claude_ai_Pushary__", "mcp__plugin_pushary_pushary__"];
|
|
@@ -12628,7 +12630,11 @@ var GATE_VERDICT_RESTRAINT = { allow: 0, defer: 1, gate: 2, deny: 3, kill: 4 };
|
|
|
12628
12630
|
var strictestGateVerdictOf = (strictest, verdict) => {
|
|
12629
12631
|
const restraint = GATE_VERDICT_RESTRAINT[verdict.kind] - GATE_VERDICT_RESTRAINT[strictest.kind];
|
|
12630
12632
|
if (restraint !== 0) return restraint > 0 ? verdict : strictest;
|
|
12631
|
-
return strictest.kind === "gate" && verdict.kind === "gate" ? {
|
|
12633
|
+
return strictest.kind === "gate" && verdict.kind === "gate" ? {
|
|
12634
|
+
...strictest,
|
|
12635
|
+
policy: strictestReadingOf(verdict.policy, strictest.policy),
|
|
12636
|
+
...onlyAnExplicitAnswerRunsTheCall(strictest) || onlyAnExplicitAnswerRunsTheCall(verdict) ? EXPLICIT_ANSWER_ONLY : {}
|
|
12637
|
+
} : strictest;
|
|
12632
12638
|
};
|
|
12633
12639
|
var policyOfReadings = (readings) => readings.policy;
|
|
12634
12640
|
var toolInputsOfReadings = (readings) => readings.toolInputs;
|
|
@@ -12917,7 +12923,7 @@ var verdictWithoutTheAsksThatMayApprove = (input, original) => {
|
|
|
12917
12923
|
const fallback = { ...input, config: withoutAsksThatMayApproveWithoutAnAnswer(input.config) };
|
|
12918
12924
|
const verdict = gateVerdictOfTheCall(fallback);
|
|
12919
12925
|
if (verdict.kind !== "deny" || namesAnArgumentOf(verdict.policy.tool, input.toolName)) return verdict;
|
|
12920
|
-
const explicitAnswer = { ...original, policy: { ...original.policy, timeoutAction: "wait" } };
|
|
12926
|
+
const explicitAnswer = { ...original, policy: { ...original.policy, timeoutAction: "wait" }, ...EXPLICIT_ANSWER_ONLY };
|
|
12921
12927
|
return strictestGateVerdictOf(explicitAnswer, gateVerdictOfTheCall(withoutStandingDeniesOfTheWholeTool(fallback)));
|
|
12922
12928
|
};
|
|
12923
12929
|
var theWholeVerdictThatDoesNotApprove = (withoutTheAsks, verdict) => withoutTheAsks.kind === "gate" && !gateMayApproveWithoutAnAnswer(withoutTheAsks) ? withoutTheAsks : strictestGateVerdictOf(verdict, withoutTheAsks);
|
|
@@ -13042,7 +13048,8 @@ var refusesWhenUnanswered = ({ mode, timeoutAction }) => mode === "push_only" &&
|
|
|
13042
13048
|
var codexDeferredPreToolUse = () => ({ kind: "deny", reason: CODEX_PRE_TOOL_USE_HAND_BACK.reason });
|
|
13043
13049
|
var isScopeReason = (scopeReason) => typeof scopeReason === "string" && scopeReason.length > 0;
|
|
13044
13050
|
var scopeBreachReasonOf = (verdict) => verdict.kind === "gate" && isScopeReason(verdict.scopeReason) ? verdict.scopeReason : void 0;
|
|
13045
|
-
var
|
|
13051
|
+
var gateOutranksTheNativeMode = (verdict) => scopeBreachReasonOf(verdict) !== void 0 || onlyAnExplicitAnswerRunsTheCall(verdict);
|
|
13052
|
+
var onlyCodexPreToolUseCanAsk = (verdict, permissionMode) => verdict.kind === "gate" && (gateOutranksTheNativeMode(verdict) || !codexRaisesItsOwnPrompts(permissionMode));
|
|
13046
13053
|
var runsACommandThatNeedsAPersonUnderOneArrowReading = ({ toolName, toolInputs }) => SHELL_DIALECT_BY_TOOL.has(toolName) && toolInputs.some((toolInput) => {
|
|
13047
13054
|
const command = extractPolicyArg(toolName, toolInput);
|
|
13048
13055
|
return command !== void 0 && (commandNeedsAPerson(toolName, command) || commandWritesThroughARemoteApi(command));
|
|
@@ -13107,7 +13114,7 @@ var refusalOfAFloorHeldEditNobodyIsAskedAbout = (policy) => ({
|
|
|
13107
13114
|
var codexPreToolUseDelivery = (input, verdict, call) => {
|
|
13108
13115
|
if (verdict.kind !== "gate" || !codexCallNeedsAPerson(input, verdict, call)) return CODEX_PRE_TOOL_USE_PASSES;
|
|
13109
13116
|
const floorHoldsAnAllow = theProtectedFileFloorHoldsAnAllow(input);
|
|
13110
|
-
const noPromptOfItsOwn = floorHoldsAnAllow || codexDestructiveCallIsDecidedOnThePhone(input, verdict.policy.mode, call) || codexHasNoPromptOfItsOwn(scopeBreachReasonOf(verdict), call.permissionMode);
|
|
13117
|
+
const noPromptOfItsOwn = floorHoldsAnAllow || codexDestructiveCallIsDecidedOnThePhone(input, verdict.policy.mode, call) || codexHasNoPromptOfItsOwn(scopeBreachReasonOf(verdict), call.permissionMode) || onlyAnExplicitAnswerRunsTheCall(verdict);
|
|
13111
13118
|
const mode = noPromptOfItsOwn ? approvalModeWithoutLocalPrompt(verdict.policy.mode) : verdict.policy.mode;
|
|
13112
13119
|
if (mode === "push_first" && !codexOwnPromptCannotTakeTheCall(input, call)) return CODEX_PRE_TOOL_USE_PASSES;
|
|
13113
13120
|
const policy = { ...verdict.policy, mode };
|
|
@@ -13980,6 +13987,7 @@ export {
|
|
|
13980
13987
|
isWindowsRootedPath,
|
|
13981
13988
|
isSafeReadOnlyCommand,
|
|
13982
13989
|
isAutoApprove,
|
|
13990
|
+
isAutoDeny,
|
|
13983
13991
|
FILE_TARGET_TOOLS,
|
|
13984
13992
|
MCP_TOOL_PREFIX,
|
|
13985
13993
|
parseMcpToolName,
|
|
@@ -13997,6 +14005,7 @@ export {
|
|
|
13997
14005
|
buildDecisionEpisodeFeatures,
|
|
13998
14006
|
resolveAutoResolveOrigin,
|
|
13999
14007
|
resolvePolicy,
|
|
14008
|
+
onlyAnExplicitAnswerRunsTheCall,
|
|
14000
14009
|
isGateRefusal,
|
|
14001
14010
|
PUSHARY_TOOL_PREFIX,
|
|
14002
14011
|
PUSHARY_CONNECTOR_TOOL_PREFIXES,
|
|
@@ -14053,6 +14062,7 @@ export {
|
|
|
14053
14062
|
refusesWhenUnanswered,
|
|
14054
14063
|
codexDeferredPreToolUse,
|
|
14055
14064
|
scopeBreachReasonOf,
|
|
14065
|
+
gateOutranksTheNativeMode,
|
|
14056
14066
|
protectedFileEditRefusedAlert,
|
|
14057
14067
|
codexPreToolUseDelivery,
|
|
14058
14068
|
claudePermissionRulesFromSettings,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JMPGFGCM.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YVIWLL2.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-PM2NRK6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NAD2JOKF.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6YVIWLL2.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SNR7BUWT.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NAD2JOKF.js";
|
|
15
15
|
|
|
16
16
|
// src/openclaw/wiring-state.ts
|
|
17
17
|
var OPENCLAW_PLUGIN_ID = "pushary";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LAPJNDQG.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EZBNWOZM.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A533F6TF.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
readConfigFileKey,
|
|
22
22
|
readKeySource,
|
|
23
23
|
readMacAppKeyPrefix
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VVXWDBZK.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NAD2JOKF.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6T367UEE.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PCKCLSGP.js";
|
|
7
7
|
import {
|
|
8
8
|
malformedApiKeyMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JPCVW3BA.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BETDBGC7.js";
|
|
13
13
|
|
|
14
14
|
// src/mcp-stdio-bridge.ts
|
|
15
15
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WKXO22AI.js";
|
|
13
13
|
import {
|
|
14
14
|
writeHuman
|
|
15
15
|
} from "./chunk-QCGNGEGE.js";
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
} from "./chunk-U4P4NDVB.js";
|
|
21
21
|
import {
|
|
22
22
|
parseConfigDocument
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LP2VGPHZ.js";
|
|
24
24
|
import {
|
|
25
25
|
xml
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5DF6YZPG.js";
|
|
27
27
|
import {
|
|
28
28
|
codexHomeFrom
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6YVIWLL2.js";
|
|
30
30
|
import {
|
|
31
31
|
readRegularTextFile,
|
|
32
32
|
writeFileAtomic
|
|
33
33
|
} from "./chunk-PM2NRK6Y.js";
|
|
34
34
|
import {
|
|
35
35
|
isRecord
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-NAD2JOKF.js";
|
|
37
37
|
|
|
38
38
|
// src/codex-app-cards-switch.ts
|
|
39
39
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
@@ -3,8 +3,11 @@ import {
|
|
|
3
3
|
MCP_TOOLS_THAT_SEND_SOMETHING_OUT_PATTERN,
|
|
4
4
|
WILDCARD_TOOL_PATTERN,
|
|
5
5
|
effectiveWaitSeconds,
|
|
6
|
-
hookMaxWaitSeconds
|
|
7
|
-
|
|
6
|
+
hookMaxWaitSeconds,
|
|
7
|
+
isAutoApprove,
|
|
8
|
+
isAutoDeny,
|
|
9
|
+
isTimeoutAction
|
|
10
|
+
} from "./chunk-NAD2JOKF.js";
|
|
8
11
|
|
|
9
12
|
// src/wait-ladder.ts
|
|
10
13
|
var WAIT_RULE_LABELS = {
|
|
@@ -13,7 +16,18 @@ var WAIT_RULE_LABELS = {
|
|
|
13
16
|
};
|
|
14
17
|
var waitRuleLabelOf = (tool) => Object.hasOwn(WAIT_RULE_LABELS, tool) ? WAIT_RULE_LABELS[tool] ?? tool : tool;
|
|
15
18
|
var HAND_BACK = "then hand back to the agent's own prompt";
|
|
19
|
+
var RULE_APPROVES_LADDER = "approved by a rule, nothing is asked";
|
|
20
|
+
var RULE_REFUSES_LADDER = "refused by a rule, nothing is asked";
|
|
21
|
+
var standingDecisionLadderOf = (p) => {
|
|
22
|
+
if (!isTimeoutAction(p.timeoutAction)) return null;
|
|
23
|
+
const rule = { timeoutSeconds: p.timeoutSeconds, timeoutAction: p.timeoutAction };
|
|
24
|
+
if (isAutoDeny(rule)) return RULE_REFUSES_LADDER;
|
|
25
|
+
if (isAutoApprove(rule)) return RULE_APPROVES_LADDER;
|
|
26
|
+
return null;
|
|
27
|
+
};
|
|
16
28
|
var describeWaitLadder = (p) => {
|
|
29
|
+
const standingDecision = standingDecisionLadderOf(p);
|
|
30
|
+
if (standingDecision !== null) return standingDecision;
|
|
17
31
|
if (p.mode === "terminal_only") return "no approval alerts, the agent's own prompt decides";
|
|
18
32
|
if (p.mode === "notify_only") return "send an approval alert, then the agent's own prompt decides";
|
|
19
33
|
if (p.mode === "push_only") {
|
|
@@ -36,7 +50,7 @@ var servedPushOnlyWait = (p, agent) => {
|
|
|
36
50
|
timeoutAction: handsBack ? HANDED_BACK_ACTION : p.timeoutAction
|
|
37
51
|
};
|
|
38
52
|
};
|
|
39
|
-
var describeHookWaitLadder = (p, agent) => describeWaitLadder(p.mode === "push_only" ? servedPushOnlyWait(p, agent) : p);
|
|
53
|
+
var describeHookWaitLadder = (p, agent) => standingDecisionLadderOf(p) ?? describeWaitLadder(p.mode === "push_only" ? servedPushOnlyWait(p, agent) : p);
|
|
40
54
|
var STOPPED_FROM_PUSHARY_LADDER = "agents are stopped from Pushary, every call is refused and nothing waits";
|
|
41
55
|
var UNREAD_MODE_LADDER = "your mode could not be read, so the waits below may be shorter than what the hook does";
|
|
42
56
|
var describeGateVerdictWait = (verdict, agent) => {
|
|
@@ -44,9 +58,9 @@ var describeGateVerdictWait = (verdict, agent) => {
|
|
|
44
58
|
case "kill":
|
|
45
59
|
return STOPPED_FROM_PUSHARY_LADDER;
|
|
46
60
|
case "deny":
|
|
47
|
-
return
|
|
61
|
+
return RULE_REFUSES_LADDER;
|
|
48
62
|
case "allow":
|
|
49
|
-
return
|
|
63
|
+
return RULE_APPROVES_LADDER;
|
|
50
64
|
case "defer":
|
|
51
65
|
return "the agent's own prompt decides";
|
|
52
66
|
case "gate":
|
|
@@ -54,6 +68,14 @@ var describeGateVerdictWait = (verdict, agent) => {
|
|
|
54
68
|
}
|
|
55
69
|
};
|
|
56
70
|
var gateVerdictRuleOf = (verdict) => verdict.kind === "kill" ? null : verdict.policy.tool;
|
|
71
|
+
var effectiveModeOverrideOf = (modeState, config) => modeState.mode ?? config.modeOverride ?? null;
|
|
72
|
+
var waitLadderNoticeOf = (modeState, config) => {
|
|
73
|
+
if (modeState.kill) return { kind: "stopped" };
|
|
74
|
+
if (modeState.degraded === true) return { kind: "mode_unread" };
|
|
75
|
+
const mode = effectiveModeOverrideOf(modeState, config);
|
|
76
|
+
return mode === null ? { kind: "own_rules" } : { kind: "override_applied", mode };
|
|
77
|
+
};
|
|
78
|
+
var ruleUnderModeOverride = (rule, modeOverride) => modeOverride === null ? rule : { ...rule, mode: modeOverride };
|
|
57
79
|
|
|
58
80
|
export {
|
|
59
81
|
waitRuleLabelOf,
|
|
@@ -64,5 +86,8 @@ export {
|
|
|
64
86
|
STOPPED_FROM_PUSHARY_LADDER,
|
|
65
87
|
UNREAD_MODE_LADDER,
|
|
66
88
|
describeGateVerdictWait,
|
|
67
|
-
gateVerdictRuleOf
|
|
89
|
+
gateVerdictRuleOf,
|
|
90
|
+
effectiveModeOverrideOf,
|
|
91
|
+
waitLadderNoticeOf,
|
|
92
|
+
ruleUnderModeOverride
|
|
68
93
|
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
openCodePluginArgv,
|
|
4
4
|
openCodePluginModule,
|
|
5
5
|
renderOpenCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MTSTB2GL.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENCODE_FAILED_EVENT,
|
|
9
9
|
OPENCODE_IDLE_EVENT,
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
OPENCODE_PLUGIN_SIBLING,
|
|
13
13
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
14
14
|
OPENCODE_SUBAGENT_IDLE_EVENT
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DYIU6SSG.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KI6IY52L.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-V5LIBKOQ.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VFPXC2HE.js";
|
|
26
26
|
import {
|
|
27
27
|
OPENCODE_INSTRUCTIONS_LABEL,
|
|
28
28
|
bridgeStub,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveBridgeStub,
|
|
37
37
|
vscodePluginDir,
|
|
38
38
|
windowsNodeLauncherFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6YVIWLL2.js";
|
|
40
40
|
import {
|
|
41
41
|
readJsonSafe
|
|
42
42
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
OPENCODE_APPROVAL_EVENT,
|
|
47
47
|
hookCompatibleProfile,
|
|
48
48
|
isRecord
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-NAD2JOKF.js";
|
|
50
50
|
|
|
51
51
|
// src/opencode-config.ts
|
|
52
52
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YJ6OARPK.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePromptMayFollowPreToolUseAllow,
|
|
6
6
|
promptedCallIdentityText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ESTQIKTS.js";
|
|
8
8
|
|
|
9
9
|
// src/phone-approval.ts
|
|
10
10
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computerOsOfPlatform,
|
|
3
3
|
isComputerAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NAD2JOKF.js";
|
|
5
5
|
|
|
6
6
|
// src/setup/phone-check.ts
|
|
7
7
|
var NO_AGENT_CONNECTED_LINE = "Skipping the phone step: no agent was connected, so nothing could ask you anything on your phone yet.";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NAD2JOKF.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -610,9 +610,9 @@ var installGlobally = (options) => {
|
|
|
610
610
|
}
|
|
611
611
|
const started = (async () => {
|
|
612
612
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
613
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
614
|
-
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
615
|
-
const { autoUpdateLock } = await import("./paths-
|
|
613
|
+
const { withUpgradeLock } = await import("./global-upgrade-ZD6PXYIH.js");
|
|
614
|
+
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-KNVJBN5G.js");
|
|
615
|
+
const { autoUpdateLock } = await import("./paths-3VDI3LAG.js");
|
|
616
616
|
const lockPath = options.lockPath ?? autoUpdateLock();
|
|
617
617
|
const lockFile = canonicalLockPath(lockPath);
|
|
618
618
|
const unfinishedHere = failuresThisProcessLeftUnfinished.get(lockFile);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VFPXC2HE.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5FZ2K4UV.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_HOOK_EVENTS,
|
|
9
9
|
CODEX_HOOK_EVENTS,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
isBridgeLocator,
|
|
17
17
|
isProtectedByScope,
|
|
18
18
|
registerHookEntry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6YVIWLL2.js";
|
|
20
20
|
import {
|
|
21
21
|
CURSOR_GATE_EVENTS,
|
|
22
22
|
HOOK_BUDGETS,
|
|
23
23
|
HOOK_LOCATOR_BINARY,
|
|
24
24
|
hookCommandHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NAD2JOKF.js";
|
|
26
26
|
|
|
27
27
|
// src/gemini-config.ts
|
|
28
28
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
apiKeyInForce,
|
|
3
3
|
configFilePath,
|
|
4
4
|
keyPrefixToShow
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JPCVW3BA.js";
|
|
6
6
|
import {
|
|
7
7
|
backupFile,
|
|
8
8
|
backupFileInto,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isRecord,
|
|
16
16
|
isValidApiKey,
|
|
17
17
|
normalizeInstallSource
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NAD2JOKF.js";
|
|
19
19
|
|
|
20
20
|
// src/install-source.ts
|
|
21
21
|
import { readFileSync } from "fs";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-WHB622LP.js";
|
|
5
5
|
import {
|
|
6
6
|
keyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VVXWDBZK.js";
|
|
8
8
|
import {
|
|
9
9
|
keyPrefixToShow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JPCVW3BA.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BETDBGC7.js";
|
|
14
14
|
import {
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NAD2JOKF.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/key-account.ts
|
|
19
19
|
var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-U4P4NDVB.js";
|
|
17
17
|
import {
|
|
18
18
|
withoutNpmInstallConsent
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SNR7BUWT.js";
|
|
20
20
|
|
|
21
21
|
// src/codex-desktop-launch.ts
|
|
22
22
|
import { spawn as spawn2, execFileSync as execFileSync2 } from "child_process";
|
|
@@ -539,8 +539,8 @@ var loadedOnce = (load) => {
|
|
|
539
539
|
};
|
|
540
540
|
|
|
541
541
|
// src/codex-desktop-proxy.ts
|
|
542
|
-
var loadThePhone = () => import("./api-
|
|
543
|
-
var loadTheCardRouting = () => import("./codex-card-routing-
|
|
542
|
+
var loadThePhone = () => import("./api-4MGFAW5H.js");
|
|
543
|
+
var loadTheCardRouting = () => import("./codex-card-routing-BDAI3C5X.js");
|
|
544
544
|
var theFirstCardLoadsAgain = () => {
|
|
545
545
|
};
|
|
546
546
|
var ASKS_WITHOUT_ROUTING = {};
|
|
@@ -1101,7 +1101,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1101
1101
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1102
1102
|
}
|
|
1103
1103
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1104
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1104
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-JPDKYQ5R.js");
|
|
1105
1105
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1106
1106
|
}
|
|
1107
1107
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6YVIWLL2.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CXQWDQCJ.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NAD2JOKF.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|