synurex 2026.2.19-1 → 2026.2.27
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/assets/chrome-extension/README.md +5 -5
- package/assets/chrome-extension/background.js +5 -5
- package/assets/chrome-extension/manifest.json +3 -3
- package/assets/chrome-extension/options.html +5 -5
- package/assets/chrome-extension/options.js +1 -1
- package/dist/{acp-cli-C3a9o7M2.js → acp-cli-DE8cM2El.js} +2 -2
- package/dist/{agent-9DtpfYJk.js → agent-COM-4PbL.js} +7 -7
- package/dist/{audit--oGM5x0J.js → audit-DWZBSh2N.js} +7 -7
- package/dist/{call-BJsfB_NC.js → call-5aMaMdGl.js} +1 -1
- package/dist/{channel-options-BXpm2xHl.js → channel-options-D-lP7aRV.js} +1 -1
- package/dist/{channel-summary-Cw9cmi4M.js → channel-summary-2b6qt5Cm.js} +3 -3
- package/dist/{channels-cli-DFia3kGl.js → channels-cli-BAZXZSuz.js} +17 -17
- package/dist/{chrome-CXlGlG3I.js → chrome-BTQJDtEX.js} +7 -7
- package/dist/{cli-1b35n5Cc.js → cli-C1ywLVhK.js} +14 -14
- package/dist/{command-options-BnW-e302.js → command-options-C3aRsW7k.js} +2 -2
- package/dist/{commands-U_88HsqX.js → commands-D24fBHIc.js} +1 -1
- package/dist/{completion-cli-BhVl7J3C.js → completion-cli-CsD7A2O0.js} +1 -1
- package/dist/{completion-cli-Bh3ds9Rv.js → completion-cli-DaOtySik.js} +3 -3
- package/dist/{config-guard-BCvAEaxA.js → config-guard-HucBfeLF.js} +22 -22
- package/dist/{config-BBxxzNm-.js → config-nvHm49RH.js} +5 -5
- package/dist/{configure-0W-OLHK1.js → configure-BpnOD65O.js} +6 -6
- package/dist/{control-service-BLzGkUMf.js → control-service-Cgrsb6v8.js} +1 -1
- package/dist/{cron-cli-BGc0ZmXl.js → cron-cli-DnMfj-JB.js} +3 -3
- package/dist/{daemon-cli-RFrEzOyc.js → daemon-cli-CuNBL-Hv.js} +7 -7
- package/dist/{daemon-runtime-BlKOqOPH.js → daemon-runtime-sBNXpVgk.js} +1 -1
- package/dist/{deliver-BUV-sfaF.js → deliver-C2TEJxeH.js} +1 -1
- package/dist/{deliver-CQQ0e2eM.js → deliver-C4xT__Jw.js} +4 -4
- package/dist/{deps-D1eiWUgD.js → deps-DHoBVhwZ.js} +2 -2
- package/dist/{devices-cli-De1Q_0ob.js → devices-cli-DXulGFqa.js} +2 -2
- package/dist/{directory-cli-DYkFHmO6.js → directory-cli-74fIX6Ci.js} +1 -1
- package/dist/{dns-cli-C5dXU6Nk.js → dns-cli-D__S01mG.js} +1 -1
- package/dist/{docs-cli-DrFTuzUe.js → docs-cli-DkdtjNk5.js} +1 -1
- package/dist/{doctor-Cuk5zryG.js → doctor-DUVk7nA4.js} +1 -1
- package/dist/{doctor-Cakg6jea.js → doctor-tRjn6C29.js} +12 -12
- package/dist/entry.js +3 -3
- package/dist/{exec-approvals-cli-DBgnm_6P.js → exec-approvals-cli-D3lKd9XP.js} +6 -6
- package/dist/extensionAPI.js +9 -9
- package/dist/{gateway-cli-DMbgzP3o.js → gateway-cli-B3RvRiTM.js} +37 -37
- package/dist/{gateway-cli-BKJbSNiq.js → gateway-cli-EBWWKYck.js} +4 -4
- package/dist/{gateway-rpc-CJljb7MY.js → gateway-rpc-DqZGJ-5z.js} +1 -1
- package/dist/{github-copilot-auth-BGWtD7lK.js → github-copilot-auth-DWFisj3D.js} +3 -3
- package/dist/{gmail-setup-utils-C97cHaGd.js → gmail-setup-utils-BCT-GvpI.js} +1 -1
- package/dist/{health-format-KsXnqZiA.js → health-format-B3wTmrqY.js} +5 -5
- package/dist/{hooks-cli-Dsah_Ryz.js → hooks-cli-nGmjlGE7.js} +16 -16
- package/dist/{hooks-status-DQRtaH38.js → hooks-status-DFRuWWMp.js} +3 -3
- package/dist/{image-Cyv4Hr2t.js → image-BzqeYd9i.js} +2 -2
- package/dist/{image-C6SHcuJM.js → image-saBkWIDR.js} +1 -1
- package/dist/index.js +4 -4
- package/dist/{loader-ysGIXyYq.js → loader-Ds66eH4-.js} +16 -16
- package/dist/{login-qr-wnUfVUoC.js → login-qr-BsYLJut1.js} +1 -1
- package/dist/{logs-cli-DHYl4Nfl.js → logs-cli-BbRlZoUV.js} +3 -3
- package/dist/{models-cli-CURq5BOw.js → models-cli-Vsoz5huP.js} +15 -15
- package/dist/{node-cli-PesFC8YY.js → node-cli-BHz_j73x.js} +174 -0
- package/dist/{node-cli-BkEdPem3.js → node-cli-DfJyrzif.js} +179 -5
- package/dist/{nodes-cli-BV7z71Ke.js → nodes-cli-DbL_Z-Tf.js} +3 -3
- package/dist/{onboard-channels-CSGrNeHm.js → onboard-channels-BuQPrqIE.js} +1 -1
- package/dist/{onboard-skills-Z3OoXEqp.js → onboard-skills-BPBFfhVp.js} +6 -6
- package/dist/{onboarding--5CEtfSX.js → onboarding-B0ESr9xX.js} +2 -2
- package/dist/{pairing-cli-BrPmwezL.js → pairing-cli-BR2zXIdH.js} +1 -1
- package/dist/{pi-embedded-helpers-dkrwwXev.js → pi-embedded-helpers-DKKB89sm.js} +4 -4
- package/dist/{pi-embedded-helpers-Dpu3lm3V.js → pi-embedded-helpers-DyfPH1I_.js} +2 -2
- package/dist/{plugins-cli-B8FonfqG.js → plugins-cli-s2-Xp26x.js} +15 -15
- package/dist/{program-_5hB5I-4.js → program-C2rn86CM.js} +36 -36
- package/dist/{pw-ai-BUeSOvm-.js → pw-ai-BKN0Jm4P.js} +1 -1
- package/dist/{register.subclis-CZG20DZj.js → register.subclis-so6_O2Wg.js} +28 -28
- package/dist/{routes-BxFcXB4m.js → routes-BymehwI9.js} +1 -1
- package/dist/{rpc-f-LmE9z_.js → rpc-hF-BCzRo.js} +1 -1
- package/dist/{run-main-_bbXf2vQ.js → run-main-BvQqsXUd.js} +39 -39
- package/dist/{sandbox-DfBaWfDh.js → sandbox-DBpsZtIS.js} +5 -5
- package/dist/{sandbox-cli-BRcke02J.js → sandbox-cli-sT1dyR69.js} +4 -4
- package/dist/{security-cli-76hHzPsz.js → security-cli-Ct93VQD5.js} +9 -9
- package/dist/{server-node-events-CkLBKtGs.js → server-node-events-DPixVKRb.js} +16 -16
- package/dist/{service-audit-DBdadurs.js → service-audit-DO0Uy4z0.js} +1 -1
- package/dist/{skills-DxzXqcWw.js → skills-B60zX2bC.js} +2 -2
- package/dist/{skills-cli-BWqUiFIC.js → skills-cli-HqfGTO9J.js} +3 -3
- package/dist/{skills-status-DQyBTrvU.js → skills-status-Ck6eJ9hl.js} +1 -1
- package/dist/{status-RJGk9wHW.js → status-1JPSXofF.js} +16 -16
- package/dist/{status-BHPh7bCk.js → status-Bstd0cot.js} +2 -2
- package/dist/{system-cli-pg7MxYKd.js → system-cli-MPiQMTjv.js} +3 -3
- package/dist/{tui-BniTBjBP.js → tui-Biuvuiog.js} +4 -4
- package/dist/{tui-cli-DrWl0dkQ.js → tui-cli-ScD8BrCY.js} +8 -8
- package/dist/{update-cli-j0POazuO.js → update-cli-Q3Z1O3mX.js} +24 -24
- package/dist/{update-cli-DTXxX27F.js → update-cli-tfiY1IXz.js} +3 -3
- package/dist/{update-runner-CmdPxJg5.js → update-runner-DjcJdL_T.js} +5 -5
- package/dist/{update-runner-BY-i_k4L.js → update-runner-DmTrtmEp.js} +1 -1
- package/dist/{webhooks-cli-BBw-pRTs.js → webhooks-cli-_q8cVlh6.js} +3 -3
- package/dist/{wsl-QYB9yGZN.js → wsl-CQM6jaZi.js} +1 -1
- package/docs/install/northflank.mdx +9 -9
- package/docs/install/railway.mdx +8 -8
- package/docs/install/render.mdx +13 -13
- package/docs/zh-CN/install/northflank.mdx +9 -9
- package/docs/zh-CN/install/railway.mdx +8 -8
- package/docs/zh-CN/install/render.mdx +13 -13
- package/package.json +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# SYNUREX Chrome Extension (Browser Relay)
|
|
2
2
|
|
|
3
|
-
Purpose: attach
|
|
3
|
+
Purpose: attach SYNUREX to an existing Chrome tab so the Gateway can automate it (via the local CDP relay server).
|
|
4
4
|
|
|
5
5
|
## Dev / load unpacked
|
|
6
6
|
|
|
7
|
-
1. Build/run
|
|
7
|
+
1. Build/run SYNUREX Gateway with browser control enabled.
|
|
8
8
|
2. Ensure the relay server is reachable at `http://127.0.0.1:18792/` (default).
|
|
9
9
|
3. Install the extension to a stable path:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
SYNUREX browser extension install
|
|
13
|
+
SYNUREX browser extension path
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
4. Chrome → `chrome://extensions` → enable “Developer mode”.
|
|
@@ -114,7 +114,7 @@ function onRelayClosed(reason) {
|
|
|
114
114
|
setBadge(tabId, 'connecting')
|
|
115
115
|
void chrome.action.setTitle({
|
|
116
116
|
tabId,
|
|
117
|
-
title: '
|
|
117
|
+
title: 'SYNUREX Browser Relay: disconnected (click to re-attach)',
|
|
118
118
|
})
|
|
119
119
|
}
|
|
120
120
|
tabs.clear()
|
|
@@ -225,7 +225,7 @@ async function attachTab(tabId, opts = {}) {
|
|
|
225
225
|
tabBySession.set(sessionId, tabId)
|
|
226
226
|
void chrome.action.setTitle({
|
|
227
227
|
tabId,
|
|
228
|
-
title: '
|
|
228
|
+
title: 'SYNUREX Browser Relay: attached (click to detach)',
|
|
229
229
|
})
|
|
230
230
|
|
|
231
231
|
if (!opts.skipAttachedEvent) {
|
|
@@ -278,7 +278,7 @@ async function detachTab(tabId, reason) {
|
|
|
278
278
|
setBadge(tabId, 'off')
|
|
279
279
|
void chrome.action.setTitle({
|
|
280
280
|
tabId,
|
|
281
|
-
title: '
|
|
281
|
+
title: 'SYNUREX Browser Relay (click to attach/detach)',
|
|
282
282
|
})
|
|
283
283
|
}
|
|
284
284
|
|
|
@@ -297,7 +297,7 @@ async function connectOrToggleForActiveTab() {
|
|
|
297
297
|
setBadge(tabId, 'connecting')
|
|
298
298
|
void chrome.action.setTitle({
|
|
299
299
|
tabId,
|
|
300
|
-
title: '
|
|
300
|
+
title: 'SYNUREX Browser Relay: connecting to local relay…',
|
|
301
301
|
})
|
|
302
302
|
|
|
303
303
|
try {
|
|
@@ -308,7 +308,7 @@ async function connectOrToggleForActiveTab() {
|
|
|
308
308
|
setBadge(tabId, 'error')
|
|
309
309
|
void chrome.action.setTitle({
|
|
310
310
|
tabId,
|
|
311
|
-
title: '
|
|
311
|
+
title: 'SYNUREX Browser Relay: relay not running (open options for setup)',
|
|
312
312
|
})
|
|
313
313
|
void maybeOpenHelpOnce()
|
|
314
314
|
// Extra breadcrumbs in chrome://extensions service worker logs.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": 3,
|
|
3
|
-
"name": "
|
|
3
|
+
"name": "SYNUREX Browser Relay",
|
|
4
4
|
"version": "0.1.0",
|
|
5
|
-
"description": "Attach
|
|
5
|
+
"description": "Attach SYNUREX to your existing Chrome tab via a local CDP relay server.",
|
|
6
6
|
"icons": {
|
|
7
7
|
"16": "icons/icon16.png",
|
|
8
8
|
"32": "icons/icon32.png",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"host_permissions": ["http://127.0.0.1/*", "http://localhost/*"],
|
|
14
14
|
"background": { "service_worker": "background.js", "type": "module" },
|
|
15
15
|
"action": {
|
|
16
|
-
"default_title": "
|
|
16
|
+
"default_title": "SYNUREX Browser Relay (click to attach/detach)",
|
|
17
17
|
"default_icon": {
|
|
18
18
|
"16": "icons/icon16.png",
|
|
19
19
|
"32": "icons/icon32.png",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<title>
|
|
6
|
+
<title>SYNUREX Browser Relay</title>
|
|
7
7
|
<style>
|
|
8
8
|
:root {
|
|
9
9
|
color-scheme: light dark;
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
<img src="icons/icon128.png" alt="" />
|
|
159
159
|
</div>
|
|
160
160
|
<div>
|
|
161
|
-
<h1>
|
|
161
|
+
<h1>SYNUREX Browser Relay</h1>
|
|
162
162
|
<p class="subtitle">Click the toolbar button on a tab to attach / detach.</p>
|
|
163
163
|
</div>
|
|
164
164
|
</header>
|
|
@@ -168,10 +168,10 @@
|
|
|
168
168
|
<h2>Getting started</h2>
|
|
169
169
|
<p>
|
|
170
170
|
If you see a red <code>!</code> badge on the extension icon, the relay server is not reachable.
|
|
171
|
-
Start
|
|
171
|
+
Start SYNUREX’s browser relay on this machine (Gateway or node host), then click the toolbar button again.
|
|
172
172
|
</p>
|
|
173
173
|
<p>
|
|
174
|
-
Full guide (install, remote Gateway, security): <a href="https://docs.
|
|
174
|
+
Full guide (install, remote Gateway, security): <a href="https://docs.SYNUREX.ai/tools/chrome-extension" target="_blank" rel="noreferrer">docs.SYNUREX.ai/tools/chrome-extension</a>
|
|
175
175
|
</p>
|
|
176
176
|
</div>
|
|
177
177
|
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
</div>
|
|
185
185
|
<div class="hint">
|
|
186
186
|
Default: <code>18792</code>. Extension connects to: <code id="relay-url">http://127.0.0.1:<port>/</code>.
|
|
187
|
-
Only change this if your
|
|
187
|
+
Only change this if your SYNUREX profile uses a different <code>cdpUrl</code> port.
|
|
188
188
|
</div>
|
|
189
189
|
<div class="status" id="status"></div>
|
|
190
190
|
</div>
|
|
@@ -31,7 +31,7 @@ async function checkRelayReachable(port) {
|
|
|
31
31
|
} catch {
|
|
32
32
|
setStatus(
|
|
33
33
|
'error',
|
|
34
|
-
`Relay not reachable at ${url}. Start
|
|
34
|
+
`Relay not reachable at ${url}. Start SYNUREX’s browser relay on this machine, then click the toolbar button again.`,
|
|
35
35
|
)
|
|
36
36
|
} finally {
|
|
37
37
|
clearTimeout(t)
|
|
@@ -4,13 +4,13 @@ import "./utils-DBu98aoz.js";
|
|
|
4
4
|
import "./exec-B8JKbXKW.js";
|
|
5
5
|
import "./agent-scope-DNmzkYn4.js";
|
|
6
6
|
import "./github-copilot-token-SLWintYd.js";
|
|
7
|
-
import { i as loadConfig, j as VERSION } from "./config-
|
|
7
|
+
import { i as loadConfig, j as VERSION } from "./config-nvHm49RH.js";
|
|
8
8
|
import "./manifest-registry-DjRSe72U.js";
|
|
9
9
|
import { t as ensureSynurexCliOnPath } from "./path-env-DwZUJC_M.js";
|
|
10
10
|
import "./tailscale-9MusRvOi.js";
|
|
11
11
|
import { t as GatewayClient } from "./client-atZzP6kK.js";
|
|
12
12
|
import { i as resolveGatewayAuth } from "./auth-3NYeRZYb.js";
|
|
13
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
13
|
+
import { t as buildGatewayConnectionDetails } from "./call-5aMaMdGl.js";
|
|
14
14
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-DcxF0eJh.js";
|
|
15
15
|
import { t as isMainModule } from "./is-main-PYGa3tDA.js";
|
|
16
16
|
import { t as formatDocsLink } from "./links-B79LZSNJ.js";
|
|
@@ -3,17 +3,17 @@ import { C as buildAllowedModelSet, D as isCliProvider, L as resolveThinkingDefa
|
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-DUskR3Ej.js";
|
|
4
4
|
import { d as resolveAgentIdFromSessionKey, l as normalizeAgentId, u as normalizeMainKey } from "./session-key-n2HVbrj0.js";
|
|
5
5
|
import { a as resolveAgentModelPrimary, i as resolveAgentModelFallbacksOverride, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, x as ensureAgentWorkspace } from "./agent-scope-DNmzkYn4.js";
|
|
6
|
-
import { i as loadConfig } from "./config-
|
|
6
|
+
import { i as loadConfig } from "./config-nvHm49RH.js";
|
|
7
7
|
import { a as isInternalMessageChannel, d as resolveMessageChannel, i as isGatewayMessageChannel, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-DcxF0eJh.js";
|
|
8
8
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-C1mc_xWv.js";
|
|
9
|
-
import { Bt as clearAgentRunContext, Dt as runEmbeddedPiAgent, H as getCliSessionId, Jt as applyModelOverrideToSessionEntry, K as resolveSendPolicy, Kt as AGENT_LANE_NESTED, Tn as runWithModelFallback, U as setCliSessionId, Vt as emitAgentEvent, W as runCliAgent, Wt as registerAgentRunContext, bn as resolveOutboundTarget, ct as clearSessionAuthProfileOverride, dn as lookupContextTokens, lt as applyVerboseOverride, ot as getSkillsSnapshotVersion, q as getRemoteSkillEligibility, qt as loadModelCatalog, xn as resolveSessionDeliveryTarget, zt as resolveAgentTimeoutMs } from "./loader-
|
|
9
|
+
import { Bt as clearAgentRunContext, Dt as runEmbeddedPiAgent, H as getCliSessionId, Jt as applyModelOverrideToSessionEntry, K as resolveSendPolicy, Kt as AGENT_LANE_NESTED, Tn as runWithModelFallback, U as setCliSessionId, Vt as emitAgentEvent, W as runCliAgent, Wt as registerAgentRunContext, bn as resolveOutboundTarget, ct as clearSessionAuthProfileOverride, dn as lookupContextTokens, lt as applyVerboseOverride, ot as getSkillsSnapshotVersion, q as getRemoteSkillEligibility, qt as loadModelCatalog, xn as resolveSessionDeliveryTarget, zt as resolveAgentTimeoutMs } from "./loader-Ds66eH4-.js";
|
|
10
10
|
import { n as resolveSessionFilePath, o as resolveStorePath } from "./paths-Cn5vXlEi.js";
|
|
11
|
-
import { B as normalizeThinkLevel, F as formatXHighModelHint, H as normalizeVerboseLevel, P as formatThinkingLevels, W as supportsXHighThinking } from "./pi-embedded-helpers-
|
|
12
|
-
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-
|
|
13
|
-
import { A as resolveSessionResetType, D as evaluateSessionFreshness, E as resolveSessionKey, F as resolveExplicitAgentSessionKey, O as resolveChannelResetConfig, T as normalizeAccountId, d as loadSessionStore, g as updateSessionStore, k as resolveSessionResetPolicy } from "./sandbox-
|
|
14
|
-
import { r as buildWorkspaceSkillSnapshot } from "./skills-
|
|
11
|
+
import { B as normalizeThinkLevel, F as formatXHighModelHint, H as normalizeVerboseLevel, P as formatThinkingLevels, W as supportsXHighThinking } from "./pi-embedded-helpers-DyfPH1I_.js";
|
|
12
|
+
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-C4xT__Jw.js";
|
|
13
|
+
import { A as resolveSessionResetType, D as evaluateSessionFreshness, E as resolveSessionKey, F as resolveExplicitAgentSessionKey, O as resolveChannelResetConfig, T as normalizeAccountId, d as loadSessionStore, g as updateSessionStore, k as resolveSessionResetPolicy } from "./sandbox-DBpsZtIS.js";
|
|
14
|
+
import { r as buildWorkspaceSkillSnapshot } from "./skills-B60zX2bC.js";
|
|
15
15
|
import { l as hasNonzeroUsage } from "./session-cost-usage-lYVH5MAy.js";
|
|
16
|
-
import { t as createDefaultDeps } from "./deps-
|
|
16
|
+
import { t as createDefaultDeps } from "./deps-DHoBVhwZ.js";
|
|
17
17
|
import crypto from "node:crypto";
|
|
18
18
|
|
|
19
19
|
//#region src/cli/outbound-send-deps.ts
|
|
@@ -3,23 +3,23 @@ import { t as formatCliCommand } from "./command-format-DUskR3Ej.js";
|
|
|
3
3
|
import { l as normalizeAgentId } from "./session-key-n2HVbrj0.js";
|
|
4
4
|
import { n as runExec } from "./exec-B8JKbXKW.js";
|
|
5
5
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-DNmzkYn4.js";
|
|
6
|
-
import { D as MAX_INCLUDE_DEPTH, E as INCLUDE_KEY, r as createConfigIO } from "./config-
|
|
6
|
+
import { D as MAX_INCLUDE_DEPTH, E as INCLUDE_KEY, r as createConfigIO } from "./config-nvHm49RH.js";
|
|
7
7
|
import { a as MANIFEST_KEY } from "./manifest-registry-DjRSe72U.js";
|
|
8
8
|
import { a as resolveBrowserConfig, o as resolveProfile } from "./server-context-CFielb4y.js";
|
|
9
9
|
import { t as GatewayClient } from "./client-atZzP6kK.js";
|
|
10
10
|
import { i as resolveGatewayAuth } from "./auth-3NYeRZYb.js";
|
|
11
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
11
|
+
import { t as buildGatewayConnectionDetails } from "./call-5aMaMdGl.js";
|
|
12
12
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-DcxF0eJh.js";
|
|
13
13
|
import { n as listChannelPlugins } from "./plugins-C1mc_xWv.js";
|
|
14
14
|
import { t as resolveChannelDefaultAccountId } from "./helpers-DMlRCrD6.js";
|
|
15
15
|
import { t as scanDirectoryWithSummary } from "./skill-scanner-COatt01v.js";
|
|
16
|
-
import { G as resolveSandboxToolPolicyForAgent, Q as resolveToolProfilePolicy, U as resolveSandboxConfigForAgent } from "./sandbox-
|
|
17
|
-
import { i as loadWorkspaceSkillEntries } from "./skills-
|
|
18
|
-
import { a as isToolAllowedByPolicies, n as resolveNativeCommandsEnabled, r as resolveNativeSkillsEnabled } from "./commands-
|
|
16
|
+
import { G as resolveSandboxToolPolicyForAgent, Q as resolveToolProfilePolicy, U as resolveSandboxConfigForAgent } from "./sandbox-DBpsZtIS.js";
|
|
17
|
+
import { i as loadWorkspaceSkillEntries } from "./skills-B60zX2bC.js";
|
|
18
|
+
import { a as isToolAllowedByPolicies, n as resolveNativeCommandsEnabled, r as resolveNativeSkillsEnabled } from "./commands-D24fBHIc.js";
|
|
19
19
|
import { i as readChannelAllowFromStore } from "./pairing-store-D_NP0mJs.js";
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import os from "node:os";
|
|
22
|
-
import
|
|
22
|
+
import JSON5 from "json5";
|
|
23
23
|
import fs from "node:fs/promises";
|
|
24
24
|
import { randomUUID } from "node:crypto";
|
|
25
25
|
|
|
@@ -819,7 +819,7 @@ async function collectIncludePathsRecursive(params) {
|
|
|
819
819
|
if (!rawText) continue;
|
|
820
820
|
const nestedParsed = (() => {
|
|
821
821
|
try {
|
|
822
|
-
return
|
|
822
|
+
return JSON5.parse(rawText);
|
|
823
823
|
} catch {
|
|
824
824
|
return null;
|
|
825
825
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as resolveConfigPath, W as resolveGatewayPort, X as resolveStateDir } from "./entry.js";
|
|
2
2
|
import { h as shortenHomeInString, m as resolveUserPath, o as ensureDir, t as CONFIG_DIR } from "./utils-DBu98aoz.js";
|
|
3
|
-
import { i as loadConfig } from "./config-
|
|
3
|
+
import { i as loadConfig } from "./config-nvHm49RH.js";
|
|
4
4
|
import { t as pickPrimaryTailnetIPv4 } from "./tailnet-Byp3obcc.js";
|
|
5
5
|
import { Et as PROTOCOL_VERSION, Mt as normalizeFingerprint, Pt as loadOrCreateDeviceIdentity, Vt as pickPrimaryLanIPv4, t as GatewayClient } from "./client-atZzP6kK.js";
|
|
6
6
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-DcxF0eJh.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Q as CHAT_CHANNEL_ORDER, n as isTruthyEnvValue } from "./entry.js";
|
|
2
2
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-Bu3hK0U6.js";
|
|
3
3
|
import { n as listChannelPlugins } from "./plugins-C1mc_xWv.js";
|
|
4
|
-
import { n as ensurePluginRegistryLoaded } from "./command-options-
|
|
4
|
+
import { n as ensurePluginRegistryLoaded } from "./command-options-C3aRsW7k.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/channel-options.ts
|
|
7
7
|
function dedupe(values) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { k as theme, st as getActivePluginRegistry } from "./entry.js";
|
|
2
2
|
import { N as resolveConfiguredModelRef, bt as DEFAULT_PROVIDER, yt as DEFAULT_MODEL } from "./auth-profiles-xwZAMwdh.js";
|
|
3
3
|
import { t as DEFAULT_ACCOUNT_ID } from "./session-key-n2HVbrj0.js";
|
|
4
|
-
import { i as loadConfig } from "./config-
|
|
4
|
+
import { i as loadConfig } from "./config-nvHm49RH.js";
|
|
5
5
|
import { n as listChannelPlugins } from "./plugins-C1mc_xWv.js";
|
|
6
|
-
import { L as listThinkingLevels, m as formatRawAssistantErrorForUi } from "./pi-embedded-helpers-
|
|
7
|
-
import { it as listChannelDocks } from "./sandbox-
|
|
6
|
+
import { L as listThinkingLevels, m as formatRawAssistantErrorForUi } from "./pi-embedded-helpers-DyfPH1I_.js";
|
|
7
|
+
import { it as listChannelDocks } from "./sandbox-DBpsZtIS.js";
|
|
8
8
|
import { n as formatTokenCount } from "./usage-format-BcU1flOY.js";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import path from "node:path";
|
|
@@ -7,54 +7,54 @@ import "./exec-B8JKbXKW.js";
|
|
|
7
7
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-DNmzkYn4.js";
|
|
8
8
|
import "./github-copilot-token-SLWintYd.js";
|
|
9
9
|
import "./pi-model-discovery-DzEIEgHL.js";
|
|
10
|
-
import { c as writeConfigFile, i as loadConfig, o as readConfigFileSnapshot } from "./config-
|
|
10
|
+
import { c as writeConfigFile, i as loadConfig, o as readConfigFileSnapshot } from "./config-nvHm49RH.js";
|
|
11
11
|
import "./manifest-registry-DjRSe72U.js";
|
|
12
12
|
import "./server-context-CFielb4y.js";
|
|
13
13
|
import "./errors-C8t2PjW_.js";
|
|
14
|
-
import "./control-service-
|
|
14
|
+
import "./control-service-Cgrsb6v8.js";
|
|
15
15
|
import "./client-atZzP6kK.js";
|
|
16
|
-
import { n as callGateway } from "./call-
|
|
16
|
+
import { n as callGateway } from "./call-5aMaMdGl.js";
|
|
17
17
|
import "./message-channel-DcxF0eJh.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-B79LZSNJ.js";
|
|
19
19
|
import { i as listChannelPluginCatalogEntries } from "./plugin-auto-enable-Bu3hK0U6.js";
|
|
20
20
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-C1mc_xWv.js";
|
|
21
21
|
import "./logging-pqyrk15z.js";
|
|
22
22
|
import "./accounts-B6AkTILW.js";
|
|
23
|
-
import { R as fetchChannelPermissionsDiscord, Xt as formatUsageReportLines, Yt as loadProviderUsageSummary, _n as parseDiscordTarget, jr as createSlackWebClient } from "./loader-
|
|
23
|
+
import { R as fetchChannelPermissionsDiscord, Xt as formatUsageReportLines, Yt as loadProviderUsageSummary, _n as parseDiscordTarget, jr as createSlackWebClient } from "./loader-Ds66eH4-.js";
|
|
24
24
|
import { n as withProgress } from "./progress-Bcjniu7m.js";
|
|
25
25
|
import "./prompt-style-CFsleyxV.js";
|
|
26
26
|
import "./note-_C44YfAQ.js";
|
|
27
27
|
import { t as createClackPrompter } from "./clack-prompter-B9yLhyOm.js";
|
|
28
28
|
import { t as resolveChannelDefaultAccountId } from "./helpers-DMlRCrD6.js";
|
|
29
|
-
import { i as reloadOnboardingPluginRegistry, n as setupChannels, r as ensureOnboardingPluginInstalled } from "./onboard-channels-
|
|
29
|
+
import { i as reloadOnboardingPluginRegistry, n as setupChannels, r as ensureOnboardingPluginInstalled } from "./onboard-channels-BuQPrqIE.js";
|
|
30
30
|
import "./archive-ccN9aDgq.js";
|
|
31
31
|
import "./skill-scanner-COatt01v.js";
|
|
32
32
|
import "./installs-Snp4gUlG.js";
|
|
33
33
|
import "./manager-e20ne1Ai.js";
|
|
34
34
|
import "./paths-Cn5vXlEi.js";
|
|
35
35
|
import "./sqlite-BjhYBODp.js";
|
|
36
|
-
import "./routes-
|
|
37
|
-
import "./pi-embedded-helpers-
|
|
38
|
-
import "./deliver-
|
|
39
|
-
import "./sandbox-
|
|
40
|
-
import { n as formatAge } from "./channel-summary-
|
|
41
|
-
import "./wsl-
|
|
42
|
-
import "./skills-
|
|
43
|
-
import "./image-
|
|
36
|
+
import "./routes-BymehwI9.js";
|
|
37
|
+
import "./pi-embedded-helpers-DyfPH1I_.js";
|
|
38
|
+
import "./deliver-C4xT__Jw.js";
|
|
39
|
+
import "./sandbox-DBpsZtIS.js";
|
|
40
|
+
import { n as formatAge } from "./channel-summary-2b6qt5Cm.js";
|
|
41
|
+
import "./wsl-CQM6jaZi.js";
|
|
42
|
+
import "./skills-B60zX2bC.js";
|
|
43
|
+
import "./image-BzqeYd9i.js";
|
|
44
44
|
import "./redact-Bt-krp_b.js";
|
|
45
45
|
import "./tool-display-D_HGmnfa.js";
|
|
46
46
|
import { n as resolveMessageChannelSelection } from "./channel-selection-D2iDbzGy.js";
|
|
47
47
|
import "./session-cost-usage-lYVH5MAy.js";
|
|
48
|
-
import "./commands-
|
|
48
|
+
import "./commands-D24fBHIc.js";
|
|
49
49
|
import "./pairing-store-D_NP0mJs.js";
|
|
50
|
-
import "./login-qr-
|
|
50
|
+
import "./login-qr-BsYLJut1.js";
|
|
51
51
|
import { r as runCommandWithRuntime } from "./cli-utils-DzrdzskQ.js";
|
|
52
52
|
import "./pairing-labels-CrJtLbMY.js";
|
|
53
53
|
import { t as buildChannelAccountSnapshot } from "./status-CWDof7Cn.js";
|
|
54
54
|
import { t as parseLogLine } from "./parse-log-line-BnB7770k.js";
|
|
55
55
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-CgVNTMMz.js";
|
|
56
|
-
import { t as hasExplicitOptions } from "./command-options-
|
|
57
|
-
import { t as formatCliChannelOptions } from "./channel-options-
|
|
56
|
+
import { t as hasExplicitOptions } from "./command-options-C3aRsW7k.js";
|
|
57
|
+
import { t as formatCliChannelOptions } from "./channel-options-D-lP7aRV.js";
|
|
58
58
|
import fs from "node:fs/promises";
|
|
59
59
|
|
|
60
60
|
//#region src/commands/channels/add-mutators.ts
|
|
@@ -7,7 +7,7 @@ import fs$1 from "node:fs/promises";
|
|
|
7
7
|
import { execFileSync, spawn } from "node:child_process";
|
|
8
8
|
import { randomBytes } from "node:crypto";
|
|
9
9
|
import { createServer } from "node:http";
|
|
10
|
-
import WebSocket
|
|
10
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
11
11
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
12
12
|
import net from "node:net";
|
|
13
13
|
|
|
@@ -135,7 +135,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
135
135
|
let nextExtensionId = 1;
|
|
136
136
|
const sendToExtension = async (payload) => {
|
|
137
137
|
const ws = extensionWs;
|
|
138
|
-
if (!ws || ws.readyState !== WebSocket
|
|
138
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
139
139
|
ws.send(JSON.stringify(payload));
|
|
140
140
|
return await new Promise((resolve, reject) => {
|
|
141
141
|
const timer = setTimeout(() => {
|
|
@@ -152,12 +152,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
152
152
|
const broadcastToCdpClients = (evt) => {
|
|
153
153
|
const msg = JSON.stringify(evt);
|
|
154
154
|
for (const ws of cdpClients) {
|
|
155
|
-
if (ws.readyState !== WebSocket
|
|
155
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
156
156
|
ws.send(msg);
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
159
|
const sendResponseToCdp = (ws, res) => {
|
|
160
|
-
if (ws.readyState !== WebSocket
|
|
160
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
161
161
|
ws.send(JSON.stringify(res));
|
|
162
162
|
};
|
|
163
163
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -377,7 +377,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
377
377
|
wssExtension.on("connection", (ws) => {
|
|
378
378
|
extensionWs = ws;
|
|
379
379
|
const ping = setInterval(() => {
|
|
380
|
-
if (ws.readyState !== WebSocket
|
|
380
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
381
381
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
382
382
|
}, 5e3);
|
|
383
383
|
ws.on("message", (data) => {
|
|
@@ -674,7 +674,7 @@ async function fetchJson(url, timeoutMs = 1500, init) {
|
|
|
674
674
|
}
|
|
675
675
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
676
676
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
677
|
-
const ws = new WebSocket
|
|
677
|
+
const ws = new WebSocket(wsUrl, {
|
|
678
678
|
handshakeTimeout: 5e3,
|
|
679
679
|
...Object.keys(headers).length ? { headers } : {}
|
|
680
680
|
});
|
|
@@ -1808,7 +1808,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1808
1808
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1809
1809
|
return await new Promise((resolve) => {
|
|
1810
1810
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1811
|
-
const ws = new WebSocket
|
|
1811
|
+
const ws = new WebSocket(wsUrl, {
|
|
1812
1812
|
handshakeTimeout: timeoutMs,
|
|
1813
1813
|
...Object.keys(headers).length ? { headers } : {}
|
|
1814
1814
|
});
|
|
@@ -5,39 +5,39 @@ import "./exec-B8JKbXKW.js";
|
|
|
5
5
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-DNmzkYn4.js";
|
|
6
6
|
import "./github-copilot-token-SLWintYd.js";
|
|
7
7
|
import "./pi-model-discovery-DzEIEgHL.js";
|
|
8
|
-
import { i as loadConfig } from "./config-
|
|
8
|
+
import { i as loadConfig } from "./config-nvHm49RH.js";
|
|
9
9
|
import "./manifest-registry-DjRSe72U.js";
|
|
10
10
|
import "./server-context-CFielb4y.js";
|
|
11
11
|
import "./errors-C8t2PjW_.js";
|
|
12
|
-
import "./control-service-
|
|
12
|
+
import "./control-service-Cgrsb6v8.js";
|
|
13
13
|
import "./client-atZzP6kK.js";
|
|
14
|
-
import "./call-
|
|
14
|
+
import "./call-5aMaMdGl.js";
|
|
15
15
|
import "./message-channel-DcxF0eJh.js";
|
|
16
16
|
import "./links-B79LZSNJ.js";
|
|
17
17
|
import "./plugins-C1mc_xWv.js";
|
|
18
18
|
import "./logging-pqyrk15z.js";
|
|
19
19
|
import "./accounts-B6AkTILW.js";
|
|
20
|
-
import { t as loadSynurexPlugins } from "./loader-
|
|
20
|
+
import { t as loadSynurexPlugins } from "./loader-Ds66eH4-.js";
|
|
21
21
|
import "./progress-Bcjniu7m.js";
|
|
22
22
|
import "./prompt-style-CFsleyxV.js";
|
|
23
23
|
import "./manager-e20ne1Ai.js";
|
|
24
24
|
import "./paths-Cn5vXlEi.js";
|
|
25
25
|
import "./sqlite-BjhYBODp.js";
|
|
26
|
-
import "./routes-
|
|
27
|
-
import "./pi-embedded-helpers-
|
|
28
|
-
import "./deliver-
|
|
29
|
-
import "./sandbox-
|
|
30
|
-
import "./channel-summary-
|
|
31
|
-
import "./wsl-
|
|
32
|
-
import "./skills-
|
|
33
|
-
import "./image-
|
|
26
|
+
import "./routes-BymehwI9.js";
|
|
27
|
+
import "./pi-embedded-helpers-DyfPH1I_.js";
|
|
28
|
+
import "./deliver-C4xT__Jw.js";
|
|
29
|
+
import "./sandbox-DBpsZtIS.js";
|
|
30
|
+
import "./channel-summary-2b6qt5Cm.js";
|
|
31
|
+
import "./wsl-CQM6jaZi.js";
|
|
32
|
+
import "./skills-B60zX2bC.js";
|
|
33
|
+
import "./image-BzqeYd9i.js";
|
|
34
34
|
import "./redact-Bt-krp_b.js";
|
|
35
35
|
import "./tool-display-D_HGmnfa.js";
|
|
36
36
|
import "./channel-selection-D2iDbzGy.js";
|
|
37
37
|
import "./session-cost-usage-lYVH5MAy.js";
|
|
38
|
-
import "./commands-
|
|
38
|
+
import "./commands-D24fBHIc.js";
|
|
39
39
|
import "./pairing-store-D_NP0mJs.js";
|
|
40
|
-
import "./login-qr-
|
|
40
|
+
import "./login-qr-BsYLJut1.js";
|
|
41
41
|
import "./pairing-labels-CrJtLbMY.js";
|
|
42
42
|
|
|
43
43
|
//#region src/plugins/cli.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as createSubsystemLogger } from "./entry.js";
|
|
2
2
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-DNmzkYn4.js";
|
|
3
|
-
import { i as loadConfig } from "./config-
|
|
4
|
-
import { t as loadSynurexPlugins } from "./loader-
|
|
3
|
+
import { i as loadConfig } from "./config-nvHm49RH.js";
|
|
4
|
+
import { t as loadSynurexPlugins } from "./loader-Ds66eH4-.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/plugin-registry.ts
|
|
7
7
|
const log = createSubsystemLogger("plugins");
|
|
@@ -2,7 +2,7 @@ import { d as resolveAgentIdFromSessionKey, y as resolveThreadParentSessionKey }
|
|
|
2
2
|
import { n as resolveAgentConfig } from "./agent-scope-DNmzkYn4.js";
|
|
3
3
|
import { l as normalizeMessageChannel } from "./message-channel-DcxF0eJh.js";
|
|
4
4
|
import { r as normalizeChannelId } from "./plugins-C1mc_xWv.js";
|
|
5
|
-
import { X as expandToolGroups, Z as normalizeToolName, rt as getChannelDock, st as resolveChannelGroupToolsPolicy } from "./sandbox-
|
|
5
|
+
import { X as expandToolGroups, Z as normalizeToolName, rt as getChannelDock, st as resolveChannelGroupToolsPolicy } from "./sandbox-DBpsZtIS.js";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/pi-tools.policy.ts
|
|
8
8
|
function compilePattern(pattern) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { X as resolveStateDir } from "./entry.js";
|
|
3
|
-
import { n as registerSubCliByName, t as getSubCliEntries } from "./register.subclis-
|
|
3
|
+
import { n as registerSubCliByName, t as getSubCliEntries } from "./register.subclis-so6_O2Wg.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
@@ -124,7 +124,7 @@ const entries = [
|
|
|
124
124
|
name: "gateway",
|
|
125
125
|
description: "Gateway control",
|
|
126
126
|
register: async (program) => {
|
|
127
|
-
(await import("./gateway-cli-
|
|
127
|
+
(await import("./gateway-cli-EBWWKYck.js")).registerGatewayCli(program);
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
{
|
|
@@ -180,7 +180,7 @@ const entries = [
|
|
|
180
180
|
name: "node",
|
|
181
181
|
description: "Node control",
|
|
182
182
|
register: async (program) => {
|
|
183
|
-
(await import("./node-cli-
|
|
183
|
+
(await import("./node-cli-BHz_j73x.js")).registerNodeCli(program);
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
186
|
{
|
|
@@ -282,7 +282,7 @@ const entries = [
|
|
|
282
282
|
name: "update",
|
|
283
283
|
description: "CLI update helpers",
|
|
284
284
|
register: async (program) => {
|
|
285
|
-
(await import("./update-cli-
|
|
285
|
+
(await import("./update-cli-tfiY1IXz.js")).registerUpdateCli(program);
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
{
|
|
@@ -5,44 +5,44 @@ import { l as normalizeAgentId, n as DEFAULT_AGENT_ID, t as DEFAULT_ACCOUNT_ID }
|
|
|
5
5
|
import { f as resolveHomeDir, g as shortenHomePath, h as shortenHomeInString, m as resolveUserPath } from "./utils-DBu98aoz.js";
|
|
6
6
|
import { t as runCommandWithTimeout } from "./exec-B8JKbXKW.js";
|
|
7
7
|
import { c as resolveDefaultAgentId, f as DEFAULT_AGENT_WORKSPACE_DIR, h as DEFAULT_IDENTITY_FILENAME, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, w as resolveDefaultAgentWorkspaceDir, x as ensureAgentWorkspace } from "./agent-scope-DNmzkYn4.js";
|
|
8
|
-
import { c as writeConfigFile, h as parseDurationMs, i as loadConfig, o as readConfigFileSnapshot, r as createConfigIO } from "./config-
|
|
8
|
+
import { c as writeConfigFile, h as parseDurationMs, i as loadConfig, o as readConfigFileSnapshot, r as createConfigIO } from "./config-nvHm49RH.js";
|
|
9
9
|
import { n as movePathToTrash } from "./server-context-CFielb4y.js";
|
|
10
|
-
import { i as randomIdempotencyKey, n as callGateway } from "./call-
|
|
10
|
+
import { i as randomIdempotencyKey, n as callGateway } from "./call-5aMaMdGl.js";
|
|
11
11
|
import { h as GATEWAY_CLIENT_NAMES, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES } from "./message-channel-DcxF0eJh.js";
|
|
12
12
|
import { t as formatDocsLink } from "./links-B79LZSNJ.js";
|
|
13
13
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-C1mc_xWv.js";
|
|
14
|
-
import { D as runMemoryStatus, E as registerMemoryCli, Jn as CHANNEL_TARGET_DESCRIPTION, Sn as formatTargetDisplay, _ as randomToken, a as applyWizardMetadata, c as ensureWorkspaceAndSessions, d as handleReset, dn as lookupContextTokens, f as moveToTrash, i as DEFAULT_WORKSPACE, l as formatControlUiSshHint, m as openUrl, mn as runMessageAction, qn as CHANNEL_TARGETS_DESCRIPTION, s as detectBrowserOpenSupport, v as resolveControlUiLinks, wn as CHANNEL_MESSAGE_ACTION_NAMES, x as waitForGatewayReachable } from "./loader-
|
|
14
|
+
import { D as runMemoryStatus, E as registerMemoryCli, Jn as CHANNEL_TARGET_DESCRIPTION, Sn as formatTargetDisplay, _ as randomToken, a as applyWizardMetadata, c as ensureWorkspaceAndSessions, d as handleReset, dn as lookupContextTokens, f as moveToTrash, i as DEFAULT_WORKSPACE, l as formatControlUiSshHint, m as openUrl, mn as runMessageAction, qn as CHANNEL_TARGETS_DESCRIPTION, s as detectBrowserOpenSupport, v as resolveControlUiLinks, wn as CHANNEL_MESSAGE_ACTION_NAMES, x as waitForGatewayReachable } from "./loader-Ds66eH4-.js";
|
|
15
15
|
import { n as withProgress } from "./progress-Bcjniu7m.js";
|
|
16
16
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-CFsleyxV.js";
|
|
17
17
|
import { t as WizardCancelledError } from "./prompts-CudpZgTI.js";
|
|
18
18
|
import { t as createClackPrompter } from "./clack-prompter-B9yLhyOm.js";
|
|
19
19
|
import { t as resolveChannelDefaultAccountId } from "./helpers-DMlRCrD6.js";
|
|
20
|
-
import { n as setupChannels } from "./onboard-channels-
|
|
20
|
+
import { n as setupChannels } from "./onboard-channels-BuQPrqIE.js";
|
|
21
21
|
import { a as resolveSessionTranscriptsDirForAgent, i as resolveSessionTranscriptsDir, o as resolveStorePath } from "./paths-Cn5vXlEi.js";
|
|
22
|
-
import { d as loadSessionStore } from "./sandbox-
|
|
22
|
+
import { d as loadSessionStore } from "./sandbox-DBpsZtIS.js";
|
|
23
23
|
import { r as runCommandWithRuntime } from "./cli-utils-DzrdzskQ.js";
|
|
24
|
-
import { n as ensurePluginRegistryLoaded, t as hasExplicitOptions } from "./command-options-
|
|
25
|
-
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-
|
|
24
|
+
import { n as ensurePluginRegistryLoaded, t as hasExplicitOptions } from "./command-options-C3aRsW7k.js";
|
|
25
|
+
import { l as getVerboseFlag, o as getFlagValue, r as registerSubCliCommands, s as getPositiveIntFlagValue, u as hasFlag } from "./register.subclis-so6_O2Wg.js";
|
|
26
26
|
import { n as parsePositiveIntOrUndefined, t as collectOption } from "./helpers-azbX_hrI.js";
|
|
27
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
28
|
-
import { t as createDefaultDeps } from "./deps-
|
|
29
|
-
import { a as gatewayInstallErrorHint, h as assertSupportedRuntime, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-
|
|
27
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-DqZGJ-5z.js";
|
|
28
|
+
import { t as createDefaultDeps } from "./deps-DHoBVhwZ.js";
|
|
29
|
+
import { a as gatewayInstallErrorHint, h as assertSupportedRuntime, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-sBNXpVgk.js";
|
|
30
30
|
import { t as resolveGatewayService } from "./service-sZqtAG53.js";
|
|
31
31
|
import { r as isSystemdUserServiceAvailable } from "./systemd-Gt0riLnX.js";
|
|
32
32
|
import { t as renderTable } from "./table-BzJyfJCd.js";
|
|
33
|
-
import { d as applyAuthChoice, f as applyOpenAIConfig, h as promptAuthChoiceGrouped, m as applyGoogleGeminiModelDefault, p as upsertSharedEnvVar, u as warnIfModelConfigLooksOff } from "./onboard-skills-
|
|
34
|
-
import { l as healthCommand } from "./health-format-
|
|
35
|
-
import { $ as setOpenrouterApiKey, C as applyMoonshotConfig, D as applyOpenrouterConfig, F as applyVercelAiGatewayConfig, J as setGeminiApiKey, K as setAnthropicApiKey, L as applyXaiConfig, N as applyVeniceConfig, Q as setOpencodeZenApiKey, V as applyZaiConfig, X as setMinimaxApiKey, Y as setKimiCodingApiKey, Z as setMoonshotApiKey, at as setXiaomiApiKey, et as setQianfanApiKey, f as applyOpencodeZenConfig, ft as buildTokenProfileId, g as applyMinimaxConfig, it as setXaiApiKey, j as applySyntheticConfig, k as applyQianfanConfig, m as applyMinimaxApiConfig, nt as setVeniceApiKey, ot as setZaiApiKey, pt as validateAnthropicSetupToken, q as setCloudflareAiGatewayConfig, rt as setVercelAiGatewayApiKey, tt as setSyntheticApiKey, v as applyAuthProfileConfig, w as applyMoonshotConfigCn, x as applyKimiCodeConfig, y as applyCloudflareAiGatewayConfig, z as applyXiaomiConfig } from "./github-copilot-auth-
|
|
33
|
+
import { d as applyAuthChoice, f as applyOpenAIConfig, h as promptAuthChoiceGrouped, m as applyGoogleGeminiModelDefault, p as upsertSharedEnvVar, u as warnIfModelConfigLooksOff } from "./onboard-skills-BPBFfhVp.js";
|
|
34
|
+
import { l as healthCommand } from "./health-format-B3wTmrqY.js";
|
|
35
|
+
import { $ as setOpenrouterApiKey, C as applyMoonshotConfig, D as applyOpenrouterConfig, F as applyVercelAiGatewayConfig, J as setGeminiApiKey, K as setAnthropicApiKey, L as applyXaiConfig, N as applyVeniceConfig, Q as setOpencodeZenApiKey, V as applyZaiConfig, X as setMinimaxApiKey, Y as setKimiCodingApiKey, Z as setMoonshotApiKey, at as setXiaomiApiKey, et as setQianfanApiKey, f as applyOpencodeZenConfig, ft as buildTokenProfileId, g as applyMinimaxConfig, it as setXaiApiKey, j as applySyntheticConfig, k as applyQianfanConfig, m as applyMinimaxApiConfig, nt as setVeniceApiKey, ot as setZaiApiKey, pt as validateAnthropicSetupToken, q as setCloudflareAiGatewayConfig, rt as setVercelAiGatewayApiKey, tt as setSyntheticApiKey, v as applyAuthProfileConfig, w as applyMoonshotConfigCn, x as applyKimiCodeConfig, y as applyCloudflareAiGatewayConfig, z as applyXiaomiConfig } from "./github-copilot-auth-DWFisj3D.js";
|
|
36
36
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-CzN9OPmT.js";
|
|
37
|
-
import { a as findAgentEntryIndex, c as pruneAgentConfig, d as parseIdentityMarkdown, f as runOnboardingWizard, i as buildAgentSummaries, l as identityHasValues, o as listAgentEntries, r as applyAgentConfig, s as loadAgentIdentity, t as statusCommand } from "./status-
|
|
38
|
-
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-
|
|
37
|
+
import { a as findAgentEntryIndex, c as pruneAgentConfig, d as parseIdentityMarkdown, f as runOnboardingWizard, i as buildAgentSummaries, l as identityHasValues, o as listAgentEntries, r as applyAgentConfig, s as loadAgentIdentity, t as statusCommand } from "./status-1JPSXofF.js";
|
|
38
|
+
import { a as createOutboundSendDeps, n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-COM-4PbL.js";
|
|
39
39
|
import { t as formatHelpExamples } from "./help-format-DuMTLWZ-.js";
|
|
40
|
-
import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCommandWithSections } from "./configure-
|
|
40
|
+
import { i as CONFIGURE_WIZARD_SECTIONS, n as configureCommand, r as configureCommandWithSections } from "./configure-BpnOD65O.js";
|
|
41
41
|
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-DS0IcHsk.js";
|
|
42
|
-
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-
|
|
42
|
+
import { n as loadAndMaybeMigrateDoctorConfig, t as doctorCommand } from "./doctor-tRjn6C29.js";
|
|
43
43
|
import path from "node:path";
|
|
44
44
|
import fs from "node:fs";
|
|
45
|
-
import
|
|
45
|
+
import JSON5 from "json5";
|
|
46
46
|
import fs$1 from "node:fs/promises";
|
|
47
47
|
import { fileURLToPath } from "node:url";
|
|
48
48
|
import { cancel, confirm, isCancel, multiselect, select } from "@clack/prompts";
|
|
@@ -2689,12 +2689,12 @@ function parsePath(raw) {
|
|
|
2689
2689
|
function parseValue(raw, opts) {
|
|
2690
2690
|
const trimmed = raw.trim();
|
|
2691
2691
|
if (opts.json) try {
|
|
2692
|
-
return
|
|
2692
|
+
return JSON5.parse(trimmed);
|
|
2693
2693
|
} catch (err) {
|
|
2694
2694
|
throw new Error(`Failed to parse JSON5 value: ${String(err)}`, { cause: err });
|
|
2695
2695
|
}
|
|
2696
2696
|
try {
|
|
2697
|
-
return
|
|
2697
|
+
return JSON5.parse(trimmed);
|
|
2698
2698
|
} catch {
|
|
2699
2699
|
return raw;
|
|
2700
2700
|
}
|
|
@@ -2790,7 +2790,7 @@ async function loadValidConfig() {
|
|
|
2790
2790
|
}
|
|
2791
2791
|
function registerConfigCli(program) {
|
|
2792
2792
|
const cmd = program.command("config").description("Config helpers (get/set/unset). Run without subcommand for the wizard.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.synurex.com/cli/config")}\n`).option("--section <section>", "Configure wizard sections (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
2793
|
-
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections } = await import("./configure-
|
|
2793
|
+
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections } = await import("./configure-BpnOD65O.js").then((n) => n.t);
|
|
2794
2794
|
const sections = Array.isArray(opts.section) ? opts.section.map((value) => typeof value === "string" ? value.trim() : "").filter(Boolean) : [];
|
|
2795
2795
|
if (sections.length === 0) {
|
|
2796
2796
|
await configureCommand(defaultRuntime);
|
|
@@ -5127,7 +5127,7 @@ function registerOnboardCommand(program) {
|
|
|
5127
5127
|
async function readConfigFileRaw(configPath) {
|
|
5128
5128
|
try {
|
|
5129
5129
|
const raw = await fs$1.readFile(configPath, "utf-8");
|
|
5130
|
-
const parsed =
|
|
5130
|
+
const parsed = JSON5.parse(raw);
|
|
5131
5131
|
if (parsed && typeof parsed === "object") return {
|
|
5132
5132
|
exists: true,
|
|
5133
5133
|
parsed
|