@opencode/browse 0.0.9-dev.59 → 0.0.9-dev.60
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/dist/{cli-7wctcbpy.mjs → cli-ejh2gemy.mjs} +9 -9
- package/dist/cli.mjs +9 -9
- package/dist/{helpers-9xkfe3xa.mjs → helpers-maewqjyn.mjs} +2 -2
- package/dist/{main-z7px5nh4.mjs → main-234bm3p4.mjs} +2 -2
- package/dist/{main-hjn72apj.mjs → main-8b826nf3.mjs} +3 -3
- package/dist/main-ef44e2ny.mjs +4 -0
- package/dist/{main-2rvzmckc.mjs → main-gj56fp1w.mjs} +2 -2
- package/dist/{main-16egrzjs.mjs → main-rck6k913.mjs} +3 -3
- package/dist/{main-v9b6bkze.mjs → main-rj0cm0jp.mjs} +2 -2
- package/dist/{main-7m9y7jra.mjs → main-s34yd4t9.mjs} +1 -1
- package/dist/{main-1gtx0r41.mjs → main-zt63m7k3.mjs} +3 -3
- package/dist/{mcp-1bqjs504.mjs → mcp-zzerchx7.mjs} +6 -6
- package/dist/{relay-xb8rvpzg.mjs → relay-j4qsezrc.mjs} +8 -8
- package/dist/{runtime-update-qva146wy.mjs → runtime-update-tf0csm16.mjs} +4 -4
- package/dist/{setup-txtrw3qh.mjs → setup-2nceywqt.mjs} +59 -74
- package/dist/{supervisor-tsb6dh3f.mjs → supervisor-xbkhd0p6.mjs} +3 -3
- package/dist/{update-a5cyqst6.mjs → update-142fm4h4.mjs} +3 -3
- package/dist/{version-8nftn371.mjs → version-xk5ey1jh.mjs} +1 -1
- package/package.json +1 -1
- package/dist/main-0q7y0ymc.mjs +0 -4
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
import {
|
|
106
106
|
opencodeBrowserVersion2,
|
|
107
107
|
opencodeBrowserBuildId2
|
|
108
|
-
} from "./main-
|
|
108
|
+
} from "./main-ef44e2ny.mjs";
|
|
109
109
|
import {
|
|
110
110
|
dataRoot,
|
|
111
111
|
fromCheckout,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
devExtension,
|
|
116
116
|
installCommand,
|
|
117
117
|
autoUpdateStatus
|
|
118
|
-
} from "./main-
|
|
118
|
+
} from "./main-234bm3p4.mjs";
|
|
119
119
|
import {
|
|
120
120
|
extensionProtocolVersion,
|
|
121
121
|
extensionProtocolAdvice
|
|
@@ -141,13 +141,13 @@ import {
|
|
|
141
141
|
ensureExtensionConnected,
|
|
142
142
|
stoppedRelayStatus,
|
|
143
143
|
statusCollections
|
|
144
|
-
} from "./main-
|
|
145
|
-
import"./main-
|
|
144
|
+
} from "./main-8b826nf3.mjs";
|
|
145
|
+
import"./main-s34yd4t9.mjs";
|
|
146
146
|
import {
|
|
147
147
|
updateJson2,
|
|
148
148
|
formatUpdateNotice2,
|
|
149
149
|
updateNotice2
|
|
150
|
-
} from "./main-
|
|
150
|
+
} from "./main-rj0cm0jp.mjs";
|
|
151
151
|
import {
|
|
152
152
|
settingKeys,
|
|
153
153
|
formatSettings,
|
|
@@ -155,12 +155,12 @@ import {
|
|
|
155
155
|
addSecret,
|
|
156
156
|
listSecrets,
|
|
157
157
|
removeSecret
|
|
158
|
-
} from "./main-
|
|
158
|
+
} from "./main-rck6k913.mjs";
|
|
159
159
|
import {
|
|
160
160
|
defaultJournalBaseDir,
|
|
161
161
|
readJournalEntries,
|
|
162
162
|
formatJournalEntry
|
|
163
|
-
} from "./main-
|
|
163
|
+
} from "./main-zt63m7k3.mjs";
|
|
164
164
|
import {
|
|
165
165
|
pipeArguments,
|
|
166
166
|
dual,
|
|
@@ -5856,7 +5856,7 @@ var status = make("status", {
|
|
|
5856
5856
|
}
|
|
5857
5857
|
})).pipe(withDescription4("Show relay, extension, and target status"));
|
|
5858
5858
|
var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
|
|
5859
|
-
const { runMcpServer } = yield* promise(() => import("./mcp-
|
|
5859
|
+
const { runMcpServer } = yield* promise(() => import("./mcp-zzerchx7.mjs"));
|
|
5860
5860
|
yield* runMcpServer;
|
|
5861
5861
|
})).pipe(withDescription4("Run the browse MCP server over stdio"));
|
|
5862
5862
|
registerCliCommand(400, () => tabs);
|
|
@@ -6304,7 +6304,7 @@ registerCliCommand(710, () => flightRecorder);
|
|
|
6304
6304
|
|
|
6305
6305
|
// src/cli/relay.ts
|
|
6306
6306
|
var serve = make("serve", {}, fn("Cli.serve")(function* () {
|
|
6307
|
-
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-
|
|
6307
|
+
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-j4qsezrc.mjs"), import("./helpers-maewqjyn.mjs")]));
|
|
6308
6308
|
const port = yield* portConfig;
|
|
6309
6309
|
const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
|
|
6310
6310
|
yield* scoped(gen(function* () {
|
package/dist/cli.mjs
CHANGED
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
// src/main.ts
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
var embeddedVersion = "0.0.9-dev.
|
|
5
|
+
var embeddedVersion = "0.0.9-dev.60";
|
|
6
6
|
var setupCommands = new Set(["install", "uninstall", "extension", "pair", "rollback", "set"]);
|
|
7
7
|
var command = process.argv[2];
|
|
8
8
|
var invokedAs = path.basename(process.argv[1] ?? "");
|
|
9
9
|
if (command === "--version" || command === "-v") {
|
|
10
|
-
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-
|
|
10
|
+
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-xk5ey1jh.mjs")).opencodeBrowserVersion;
|
|
11
11
|
process.stdout.write(`${opencodeBrowserVersion}
|
|
12
12
|
`);
|
|
13
13
|
} else if (command === "mcp" && globalThis.__OPENCODE_BROWSER_COMPILED__ && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1") {
|
|
14
|
-
const { runBinaryMcp } = await import("./supervisor-
|
|
14
|
+
const { runBinaryMcp } = await import("./supervisor-xbkhd0p6.mjs");
|
|
15
15
|
await runBinaryMcp(process.argv.slice(3));
|
|
16
16
|
} else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
|
|
17
17
|
const { NodeRuntime } = await import("./index-8v65jg3n.mjs");
|
|
18
|
-
const { runMcpServer } = await import("./mcp-
|
|
18
|
+
const { runMcpServer } = await import("./mcp-zzerchx7.mjs");
|
|
19
19
|
runMcpServer.pipe(NodeRuntime.runMain);
|
|
20
20
|
} else if (command === "runtime-install" || command === "runtime-switch") {
|
|
21
|
-
const { runRuntimeInstall, runRuntimeSwitch } = await import("./runtime-update-
|
|
21
|
+
const { runRuntimeInstall, runRuntimeSwitch } = await import("./runtime-update-tf0csm16.mjs");
|
|
22
22
|
await (command === "runtime-install" ? runRuntimeInstall : runRuntimeSwitch)(process.argv.slice(3));
|
|
23
23
|
} else if (command === "update") {
|
|
24
|
-
const { runUpdateCommand } = await import("./update-
|
|
24
|
+
const { runUpdateCommand } = await import("./update-142fm4h4.mjs");
|
|
25
25
|
await runUpdateCommand(process.argv.slice(3));
|
|
26
26
|
} else if (command && setupCommands.has(command)) {
|
|
27
|
-
const { runSetup } = await import("./setup-
|
|
27
|
+
const { runSetup } = await import("./setup-2nceywqt.mjs");
|
|
28
28
|
await runSetup(command, process.argv.slice(3));
|
|
29
29
|
} else {
|
|
30
30
|
if (!command || command === "--help" || command === "-h") {
|
|
@@ -59,9 +59,9 @@ if (command === "--version" || command === "-v") {
|
|
|
59
59
|
`);
|
|
60
60
|
}
|
|
61
61
|
if (command === "status" && !process.argv.includes("--json")) {
|
|
62
|
-
const { printSetupStatus } = await import("./setup-
|
|
62
|
+
const { printSetupStatus } = await import("./setup-2nceywqt.mjs");
|
|
63
63
|
printSetupStatus();
|
|
64
64
|
}
|
|
65
|
-
const { runCli } = await import("./cli-
|
|
65
|
+
const { runCli } = await import("./cli-ejh2gemy.mjs");
|
|
66
66
|
runCli();
|
|
67
67
|
}
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
isRestrictedTarget2,
|
|
32
32
|
isRestrictedUrl2,
|
|
33
33
|
dataUrlDocument2
|
|
34
|
-
} from "./main-
|
|
35
|
-
import"./main-
|
|
34
|
+
} from "./main-8b826nf3.mjs";
|
|
35
|
+
import"./main-s34yd4t9.mjs";
|
|
36
36
|
import"./main-mrew6jy8.mjs";
|
|
37
37
|
export {
|
|
38
38
|
HttpRouteError2 as HttpRouteError,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-ef44e2ny.mjs";
|
|
4
4
|
|
|
5
5
|
// src/update/auto-update.ts
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
@@ -70,7 +70,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
70
70
|
return id ? { id } : {};
|
|
71
71
|
}
|
|
72
72
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
73
|
-
function devExtension(baked = { file: "browse-extension-0.0.9-dev.
|
|
73
|
+
function devExtension(baked = { file: "browse-extension-0.0.9-dev.60.zip", sha256: "f428831cee84b51cfc2903d2f5e7b2c2547b39f2b7a41149f03258b1ef53d18e", size: 184277 }) {
|
|
74
74
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
75
75
|
}
|
|
76
76
|
var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./main-mrew6jy8.mjs";
|
|
8
8
|
import {
|
|
9
9
|
relayAuthorization
|
|
10
|
-
} from "./main-
|
|
10
|
+
} from "./main-s34yd4t9.mjs";
|
|
11
11
|
import {
|
|
12
12
|
assignProperty,
|
|
13
13
|
PipeInspectableProto,
|
|
@@ -110,14 +110,14 @@ import {
|
|
|
110
110
|
} from "./main-ta3yc4kx.mjs";
|
|
111
111
|
import {
|
|
112
112
|
opencodeBrowserBuildId2
|
|
113
|
-
} from "./main-
|
|
113
|
+
} from "./main-ef44e2ny.mjs";
|
|
114
114
|
import {
|
|
115
115
|
compiledBinary,
|
|
116
116
|
scriptEntry,
|
|
117
117
|
cliCommand,
|
|
118
118
|
installCommand,
|
|
119
119
|
npmRuntime
|
|
120
|
-
} from "./main-
|
|
120
|
+
} from "./main-234bm3p4.mjs";
|
|
121
121
|
import {
|
|
122
122
|
dual,
|
|
123
123
|
memoize,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-s34yd4t9.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataRoot,
|
|
6
6
|
devExtensionUrl,
|
|
7
7
|
devExtensionFolder
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-234bm3p4.mjs";
|
|
9
9
|
|
|
10
10
|
// src/relay/browser-pairing.ts
|
|
11
11
|
import crypto from "node:crypto";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
parseTargetSelection2,
|
|
3
3
|
getObject2,
|
|
4
4
|
getString2
|
|
5
|
-
} from "./main-
|
|
5
|
+
} from "./main-8b826nf3.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isNodeError,
|
|
8
8
|
writeJsonFileAtomically
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-s34yd4t9.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getStackTraceLimit,
|
|
12
12
|
setStackTraceLimit,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
import {
|
|
106
106
|
dataRoot,
|
|
107
107
|
cliCommand
|
|
108
|
-
} from "./main-
|
|
108
|
+
} from "./main-234bm3p4.mjs";
|
|
109
109
|
import {
|
|
110
110
|
pipeArguments,
|
|
111
111
|
identity,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
compareVersions,
|
|
7
7
|
npmRuntime,
|
|
8
8
|
autoUpdateStatus
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-234bm3p4.mjs";
|
|
10
10
|
import {
|
|
11
11
|
unpackedReloadAdvice
|
|
12
12
|
} from "./main-mrew6jy8.mjs";
|
|
@@ -315,7 +315,7 @@ function runUpdate(args, deps) {
|
|
|
315
315
|
async function runUpdateCommand2(args) {
|
|
316
316
|
const log = (line) => process.stdout.write(line + `
|
|
317
317
|
`);
|
|
318
|
-
const { runNpmUpdate } = await import("./runtime-update-
|
|
318
|
+
const { runNpmUpdate } = await import("./runtime-update-tf0csm16.mjs");
|
|
319
319
|
if (await runNpmUpdate(args))
|
|
320
320
|
return;
|
|
321
321
|
if (compiledBinary()) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isNodeError
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-s34yd4t9.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isValidSessionId2
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-8b826nf3.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isSome,
|
|
9
9
|
decodeUnknownOption,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./main-ta3yc4kx.mjs";
|
|
18
18
|
import {
|
|
19
19
|
dataRoot
|
|
20
|
-
} from "./main-
|
|
20
|
+
} from "./main-234bm3p4.mjs";
|
|
21
21
|
|
|
22
22
|
// src/session-manager/journal.ts
|
|
23
23
|
import fs from "node:fs";
|
|
@@ -259,10 +259,10 @@ import {
|
|
|
259
259
|
} from "./main-ta3yc4kx.mjs";
|
|
260
260
|
import {
|
|
261
261
|
opencodeBrowserVersion2
|
|
262
|
-
} from "./main-
|
|
262
|
+
} from "./main-ef44e2ny.mjs";
|
|
263
263
|
import {
|
|
264
264
|
autoUpdateStatus
|
|
265
|
-
} from "./main-
|
|
265
|
+
} from "./main-234bm3p4.mjs";
|
|
266
266
|
import"./main-mrew6jy8.mjs";
|
|
267
267
|
import {
|
|
268
268
|
option,
|
|
@@ -274,12 +274,12 @@ import {
|
|
|
274
274
|
relayBuildProblem,
|
|
275
275
|
ensureRelay,
|
|
276
276
|
ensureExtensionConnected
|
|
277
|
-
} from "./main-
|
|
278
|
-
import"./main-
|
|
277
|
+
} from "./main-8b826nf3.mjs";
|
|
278
|
+
import"./main-s34yd4t9.mjs";
|
|
279
279
|
import {
|
|
280
280
|
updateJson2,
|
|
281
281
|
createUpdateWatcher2
|
|
282
|
-
} from "./main-
|
|
282
|
+
} from "./main-rj0cm0jp.mjs";
|
|
283
283
|
import {
|
|
284
284
|
makeUnsafe,
|
|
285
285
|
make,
|
|
@@ -352,7 +352,7 @@ import {
|
|
|
352
352
|
mcpErrorMessage2,
|
|
353
353
|
toolResult,
|
|
354
354
|
listSecrets
|
|
355
|
-
} from "./main-
|
|
355
|
+
} from "./main-rck6k913.mjs";
|
|
356
356
|
import {
|
|
357
357
|
Clock,
|
|
358
358
|
type,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-ef44e2ny.mjs";
|
|
5
5
|
import {
|
|
6
6
|
dataRoot,
|
|
7
7
|
oldStoreMarker,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
setStoredMode,
|
|
20
20
|
autoUpdateStatus,
|
|
21
21
|
createAutoUpdater
|
|
22
|
-
} from "./main-
|
|
22
|
+
} from "./main-234bm3p4.mjs";
|
|
23
23
|
import {
|
|
24
24
|
extensionProtocolVersion,
|
|
25
25
|
minExtensionProtocolVersion,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
relayToken,
|
|
45
45
|
secretsEqual,
|
|
46
46
|
ensurePrivateDirectory
|
|
47
|
-
} from "./main-
|
|
47
|
+
} from "./main-s34yd4t9.mjs";
|
|
48
48
|
import {
|
|
49
49
|
withDefault,
|
|
50
50
|
option,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
isRestrictedTarget2,
|
|
99
99
|
isRestrictedUrl2,
|
|
100
100
|
dataUrlDocument2
|
|
101
|
-
} from "./main-
|
|
101
|
+
} from "./main-8b826nf3.mjs";
|
|
102
102
|
import {
|
|
103
103
|
relayHostname,
|
|
104
104
|
isLocalPeer,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
wrapToken,
|
|
121
121
|
installedDevExtension,
|
|
122
122
|
syncDevExtension
|
|
123
|
-
} from "./main-
|
|
123
|
+
} from "./main-gj56fp1w.mjs";
|
|
124
124
|
import {
|
|
125
125
|
makeUnsafe,
|
|
126
126
|
SettingsInputError,
|
|
@@ -148,16 +148,16 @@ import {
|
|
|
148
148
|
checkNavigationUrl,
|
|
149
149
|
readSecret,
|
|
150
150
|
secretText
|
|
151
|
-
} from "./main-
|
|
151
|
+
} from "./main-rck6k913.mjs";
|
|
152
152
|
import {
|
|
153
153
|
defaultJournalBaseDir,
|
|
154
154
|
makeJournalEntry,
|
|
155
155
|
appendJournalEntry,
|
|
156
156
|
startJournalRetention
|
|
157
|
-
} from "./main-
|
|
157
|
+
} from "./main-zt63m7k3.mjs";
|
|
158
158
|
import {
|
|
159
159
|
createUpdateWatcher2
|
|
160
|
-
} from "./main-
|
|
160
|
+
} from "./main-rj0cm0jp.mjs";
|
|
161
161
|
import {
|
|
162
162
|
isNone,
|
|
163
163
|
isSome,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-ef44e2ny.mjs";
|
|
2
2
|
import {
|
|
3
3
|
cliCommand,
|
|
4
4
|
installCommand,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
installVersion,
|
|
19
19
|
pruneVersions,
|
|
20
20
|
switchVersion
|
|
21
|
-
} from "./main-
|
|
21
|
+
} from "./main-234bm3p4.mjs";
|
|
22
22
|
import"./main-mrew6jy8.mjs";
|
|
23
23
|
import {
|
|
24
24
|
Service,
|
|
25
25
|
layerFetch,
|
|
26
26
|
restartRelay,
|
|
27
27
|
startManagedRelay
|
|
28
|
-
} from "./main-
|
|
29
|
-
import"./main-
|
|
28
|
+
} from "./main-8b826nf3.mjs";
|
|
29
|
+
import"./main-s34yd4t9.mjs";
|
|
30
30
|
import {
|
|
31
31
|
succeed6,
|
|
32
32
|
suspend2,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-ef44e2ny.mjs";
|
|
5
5
|
import {
|
|
6
6
|
dataRoot,
|
|
7
7
|
oldStoreMarker,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
installVersion,
|
|
27
27
|
pruneVersions,
|
|
28
28
|
switchVersion
|
|
29
|
-
} from "./main-
|
|
29
|
+
} from "./main-234bm3p4.mjs";
|
|
30
30
|
import {
|
|
31
31
|
relayAuthorization
|
|
32
|
-
} from "./main-
|
|
32
|
+
} from "./main-s34yd4t9.mjs";
|
|
33
33
|
import {
|
|
34
34
|
parseHostname,
|
|
35
35
|
readRelayConfig,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
legacyPairingCode,
|
|
47
47
|
removeLegacyPairingCode,
|
|
48
48
|
syncDevExtension
|
|
49
|
-
} from "./main-
|
|
49
|
+
} from "./main-gj56fp1w.mjs";
|
|
50
50
|
import {
|
|
51
51
|
unpackedExtensionId,
|
|
52
52
|
extensionProtocolSkew,
|
|
@@ -7881,70 +7881,6 @@ var limitOptions = ({
|
|
|
7881
7881
|
x.push(n);
|
|
7882
7882
|
return c && x.push(M), x;
|
|
7883
7883
|
};
|
|
7884
|
-
function P(t, c) {
|
|
7885
|
-
if (!t)
|
|
7886
|
-
return true;
|
|
7887
|
-
const n = (c.label ?? String(c.value ?? "")).toLowerCase(), i = (c.hint ?? "").toLowerCase(), r = String(c.value).toLowerCase(), o = t.toLowerCase();
|
|
7888
|
-
return n.includes(o) || i.includes(o) || r.includes(o);
|
|
7889
|
-
}
|
|
7890
|
-
var autocompleteMultiselect = (t) => {
|
|
7891
|
-
const c = (i, r, o, m) => {
|
|
7892
|
-
const p = o.includes(i.value), $ = i.label ?? String(i.value ?? ""), l = i.hint && m !== undefined && i.value === m ? styleText2("dim", ` (${i.hint})`) : "", s = p ? styleText2("green", S_CHECKBOX_SELECTED) : styleText2("dim", S_CHECKBOX_INACTIVE);
|
|
7893
|
-
return i.disabled ? `${styleText2("gray", S_CHECKBOX_INACTIVE)} ${styleText2(["strikethrough", "gray"], $)}` : r ? `${s} ${$}${l}` : `${s} ${styleText2("dim", $)}`;
|
|
7894
|
-
}, n = new T$1({
|
|
7895
|
-
options: t.options,
|
|
7896
|
-
multiple: true,
|
|
7897
|
-
placeholder: t.placeholder,
|
|
7898
|
-
filter: t.filter ?? ((i, r) => P(i, r)),
|
|
7899
|
-
validate: () => {
|
|
7900
|
-
if (t.required && n.selectedValues.length === 0)
|
|
7901
|
-
return "Please select at least one item";
|
|
7902
|
-
},
|
|
7903
|
-
initialValue: t.initialValues,
|
|
7904
|
-
signal: t.signal,
|
|
7905
|
-
input: t.input,
|
|
7906
|
-
output: t.output,
|
|
7907
|
-
render() {
|
|
7908
|
-
const i = t.withGuide ?? settings.withGuide, r = `${i ? `${styleText2("gray", S_BAR)}
|
|
7909
|
-
` : ""}${symbol(this.state)} ${t.message}
|
|
7910
|
-
`, o = this.userInput, m = t.placeholder, p = o === "" && m !== undefined, $ = this.isNavigating || p ? styleText2("dim", p ? m : o) : this.userInputWithCursor, l = this.options, s = this.filteredOptions.length !== l.length ? styleText2("dim", ` (${this.filteredOptions.length} match${this.filteredOptions.length === 1 ? "" : "es"})`) : "";
|
|
7911
|
-
switch (this.state) {
|
|
7912
|
-
case "submit":
|
|
7913
|
-
return `${r}${i ? `${styleText2("gray", S_BAR)} ` : ""}${styleText2("dim", `${this.selectedValues.length} items selected`)}`;
|
|
7914
|
-
case "cancel":
|
|
7915
|
-
return `${r}${i ? `${styleText2("gray", S_BAR)} ` : ""}${styleText2(["strikethrough", "dim"], o)}`;
|
|
7916
|
-
default: {
|
|
7917
|
-
const a = this.state === "error" ? "yellow" : "cyan", u = i ? `${styleText2(a, S_BAR)} ` : "", V = i ? styleText2(a, S_BAR_END) : "", b = [
|
|
7918
|
-
`${styleText2("dim", "↑/↓")} to navigate`,
|
|
7919
|
-
`${styleText2("dim", this.isNavigating ? "Space/Tab:" : "Tab:")} select`,
|
|
7920
|
-
`${styleText2("dim", "Enter:")} confirm`,
|
|
7921
|
-
`${styleText2("dim", "Type:")} to search`
|
|
7922
|
-
], y = this.filteredOptions.length === 0 && o ? [`${u}${styleText2("yellow", "No matches found")}`] : [], S = this.state === "error" ? [`${u}${styleText2("yellow", this.error)}`] : [], g = [
|
|
7923
|
-
...`${r}${i ? styleText2(a, S_BAR) : ""}`.split(`
|
|
7924
|
-
`),
|
|
7925
|
-
`${u}${styleText2("dim", "Search:")} ${$}${s}`,
|
|
7926
|
-
...y,
|
|
7927
|
-
...S
|
|
7928
|
-
], O = [`${u}${b.join(" • ")}`, V], d = limitOptions({
|
|
7929
|
-
cursor: this.cursor,
|
|
7930
|
-
options: this.filteredOptions,
|
|
7931
|
-
style: (f, L) => c(f, L, this.selectedValues, this.focusedValue),
|
|
7932
|
-
maxItems: t.maxItems,
|
|
7933
|
-
output: t.output,
|
|
7934
|
-
rowPadding: g.length + O.length
|
|
7935
|
-
});
|
|
7936
|
-
return [
|
|
7937
|
-
...g,
|
|
7938
|
-
...d.map((f) => `${u}${f}`),
|
|
7939
|
-
...O
|
|
7940
|
-
].join(`
|
|
7941
|
-
`);
|
|
7942
|
-
}
|
|
7943
|
-
}
|
|
7944
|
-
}
|
|
7945
|
-
});
|
|
7946
|
-
return n.prompt();
|
|
7947
|
-
};
|
|
7948
7884
|
var MULTISELECT_INSTRUCTIONS = [
|
|
7949
7885
|
`${styleText2("dim", "↑/↓")} to navigate`,
|
|
7950
7886
|
`${styleText2("dim", "Space:")} select`,
|
|
@@ -10693,6 +10629,7 @@ ${block}`;
|
|
|
10693
10629
|
}
|
|
10694
10630
|
|
|
10695
10631
|
// src/setup/agent-picker.ts
|
|
10632
|
+
import { styleText as styleText3 } from "node:util";
|
|
10696
10633
|
function agentFlags(args) {
|
|
10697
10634
|
const requested = new Set;
|
|
10698
10635
|
let all = args.includes("--all-agents");
|
|
@@ -10733,13 +10670,22 @@ function agentPlan(locations, flags, tty, caller, remembered) {
|
|
|
10733
10670
|
return { picker: false, selected: automatic };
|
|
10734
10671
|
return { picker: true, selected: remembered?.filter((n) => agentNames.includes(n)) ?? detected };
|
|
10735
10672
|
}
|
|
10673
|
+
function agentRow(option, active, selected) {
|
|
10674
|
+
const box = selected.includes(option.value) ? styleText3("green", S_CHECKBOX_SELECTED) : styleText3("dim", S_CHECKBOX_INACTIVE);
|
|
10675
|
+
if (active)
|
|
10676
|
+
return `${styleText3("cyan", "❯")} ${box} ${option.label}`;
|
|
10677
|
+
return ` ${box} ${styleText3("dim", option.label)}`;
|
|
10678
|
+
}
|
|
10679
|
+
function agentSummary(labels) {
|
|
10680
|
+
return labels.length ? labels.join(", ") : "none";
|
|
10681
|
+
}
|
|
10736
10682
|
async function pickAgents(locations, initial) {
|
|
10737
10683
|
const ordered = [...locations].sort((a, b) => Number(b.name === "opencode") - Number(a.name === "opencode") || Number(b.installed) - Number(a.installed) || agentLabels[a.name].localeCompare(agentLabels[b.name]));
|
|
10738
10684
|
const all = ordered.map((a) => ({ value: a.name, label: agentLabels[a.name] }));
|
|
10739
10685
|
const shown = all.filter((_, i) => ordered[i].installed || initial.includes(ordered[i].name));
|
|
10740
10686
|
let last = { query: "", list: shown };
|
|
10741
|
-
const
|
|
10742
|
-
|
|
10687
|
+
const start = [...initial].sort((a, b) => Number(a === "opencode") - Number(b === "opencode"));
|
|
10688
|
+
const prompt = new T$1({
|
|
10743
10689
|
options() {
|
|
10744
10690
|
const query = this.userInput.trim().toLowerCase();
|
|
10745
10691
|
if (query === last.query)
|
|
@@ -10748,10 +10694,49 @@ async function pickAgents(locations, initial) {
|
|
|
10748
10694
|
return last.list;
|
|
10749
10695
|
},
|
|
10750
10696
|
filter: () => true,
|
|
10751
|
-
|
|
10752
|
-
|
|
10697
|
+
multiple: true,
|
|
10698
|
+
initialValue: start,
|
|
10699
|
+
render() {
|
|
10700
|
+
const guide = settings.withGuide;
|
|
10701
|
+
const head = `${guide ? `${styleText3("gray", S_BAR)}
|
|
10702
|
+
` : ""}${symbol(this.state)} Set browse up in these agents for you?`;
|
|
10703
|
+
const summary = agentSummary(ordered.filter((agent) => this.selectedValues.includes(agent.name)).map((agent) => agentLabels[agent.name]));
|
|
10704
|
+
if (this.state === "submit")
|
|
10705
|
+
return `${head}
|
|
10706
|
+
${guide ? `${styleText3("gray", S_BAR)} ` : ""}${styleText3("dim", summary)}`;
|
|
10707
|
+
if (this.state === "cancel")
|
|
10708
|
+
return `${head}
|
|
10709
|
+
${guide ? `${styleText3("gray", S_BAR)} ` : ""}${styleText3(["strikethrough", "dim"], this.userInput)}`;
|
|
10710
|
+
const color = this.state === "error" ? "yellow" : "cyan";
|
|
10711
|
+
const rail = guide ? styleText3(color, S_BAR) : "";
|
|
10712
|
+
const at = guide ? `${rail} ` : "";
|
|
10713
|
+
const count = this.filteredOptions.length !== this.options.length ? ` (${this.filteredOptions.length} match${this.filteredOptions.length === 1 ? "" : "es"})` : "";
|
|
10714
|
+
const search = this.isNavigating || this.userInput === "" ? styleText3("dim", this.userInput) : this.userInputWithCursor;
|
|
10715
|
+
const top = [
|
|
10716
|
+
...head.split(`
|
|
10717
|
+
`),
|
|
10718
|
+
`${at}${styleText3("dim", "Search:")} ${search}${styleText3("dim", count)}`,
|
|
10719
|
+
...this.filteredOptions.length === 0 && this.userInput ? [`${at}${styleText3("yellow", "No matches found")}`] : [],
|
|
10720
|
+
...this.state === "error" ? [`${at}${styleText3("yellow", this.error)}`] : []
|
|
10721
|
+
];
|
|
10722
|
+
const footer = [
|
|
10723
|
+
`${at}${styleText3("dim", "↑/↓")} to navigate • ${styleText3("dim", this.isNavigating ? "Space/Tab:" : "Tab:")} select • ${styleText3("dim", "Enter:")} confirm • ${styleText3("dim", "Type:")} to search`,
|
|
10724
|
+
guide ? styleText3(color, S_BAR_END) : ""
|
|
10725
|
+
];
|
|
10726
|
+
const rows = limitOptions({
|
|
10727
|
+
cursor: this.cursor,
|
|
10728
|
+
options: this.filteredOptions,
|
|
10729
|
+
style: (option, active) => agentRow(option, active, this.selectedValues),
|
|
10730
|
+
maxItems: 10,
|
|
10731
|
+
columnPadding: guide ? 3 : 0,
|
|
10732
|
+
rowPadding: top.length + footer.length
|
|
10733
|
+
});
|
|
10734
|
+
return [...top, ...rows.map((row) => `${at}${row}`), ...footer].join(`
|
|
10735
|
+
`);
|
|
10736
|
+
}
|
|
10753
10737
|
});
|
|
10754
|
-
|
|
10738
|
+
const result = await prompt.prompt();
|
|
10739
|
+
if (isCancel(result) || !result)
|
|
10755
10740
|
return;
|
|
10756
10741
|
return ordered.map((a) => a.name).filter((name) => result.includes(name));
|
|
10757
10742
|
}
|
|
@@ -12162,7 +12147,7 @@ async function runSetup(command, args) {
|
|
|
12162
12147
|
if (command === "set")
|
|
12163
12148
|
return set(args);
|
|
12164
12149
|
if (command === "rollback") {
|
|
12165
|
-
const { runRollback } = await import("./runtime-update-
|
|
12150
|
+
const { runRollback } = await import("./runtime-update-tf0csm16.mjs");
|
|
12166
12151
|
return runRollback(args);
|
|
12167
12152
|
}
|
|
12168
12153
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-ef44e2ny.mjs";
|
|
2
2
|
import {
|
|
3
3
|
versionEntry,
|
|
4
4
|
readCurrent,
|
|
5
5
|
npmRuntime
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-234bm3p4.mjs";
|
|
7
7
|
|
|
8
8
|
// src/mcp/supervisor.ts
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -14,7 +14,7 @@ async function runBinaryMcp(args) {
|
|
|
14
14
|
const runtime = npmRuntime();
|
|
15
15
|
if (!runtime) {
|
|
16
16
|
process.env[directEnvironmentVariable] = "1";
|
|
17
|
-
const { runCli } = await import("./cli-
|
|
17
|
+
const { runCli } = await import("./cli-ejh2gemy.mjs");
|
|
18
18
|
return runCli();
|
|
19
19
|
}
|
|
20
20
|
const { layout } = runtime;
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
updateNotice2,
|
|
5
5
|
createUpdateWatcher2,
|
|
6
6
|
runUpdateCommand2
|
|
7
|
-
} from "./main-
|
|
8
|
-
import"./main-
|
|
9
|
-
import"./main-
|
|
7
|
+
} from "./main-rj0cm0jp.mjs";
|
|
8
|
+
import"./main-234bm3p4.mjs";
|
|
9
|
+
import"./main-ef44e2ny.mjs";
|
|
10
10
|
import"./main-mrew6jy8.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
package/package.json
CHANGED
package/dist/main-0q7y0ymc.mjs
DELETED