@opencode/browse 0.0.11-dev.74 → 0.0.11-dev.76
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-a7k2dxdn.mjs → cli-qpkh40gh.mjs} +10 -10
- package/dist/cli.mjs +9 -9
- package/dist/{helpers-84e9b406.mjs → helpers-kp0j46jt.mjs} +2 -2
- package/dist/{main-fp9pzxmb.mjs → main-7wgmq04v.mjs} +2 -2
- package/dist/{main-q5y16xa8.mjs → main-ajza8egc.mjs} +4 -4
- package/dist/{main-qdrd6jck.mjs → main-brv9dhy5.mjs} +2 -2
- package/dist/{main-7dpg0mjz.mjs → main-eej5z0y5.mjs} +3 -3
- package/dist/main-exnm62gg.mjs +4 -0
- package/dist/{main-2d1fteqw.mjs → main-hm4fcpfz.mjs} +1 -1
- package/dist/{main-43zcz56n.mjs → main-nqmm7pdz.mjs} +96 -15
- package/dist/{main-2bb5sfft.mjs → main-rn7hdcq2.mjs} +3 -3
- package/dist/{mcp-v0nqt3b0.mjs → mcp-sy8qgkyr.mjs} +214 -249
- package/dist/{relay-pbt8dmpa.mjs → relay-ateyg5ax.mjs} +71 -14
- package/dist/{runtime-update-nhpkbvt2.mjs → runtime-update-70gqzynp.mjs} +4 -4
- package/dist/{setup-gt8mrdn6.mjs → setup-j76yv51b.mjs} +5 -5
- package/dist/{skill-text-q5tkbz98.mjs → skill-text-x7sccp6h.mjs} +6 -4
- package/dist/{supervisor-w0t2qaej.mjs → supervisor-0rvjpf4e.mjs} +3 -3
- package/dist/{update-0ssj6chm.mjs → update-rbd2025v.mjs} +3 -3
- package/dist/{version-1mzgjxcn.mjs → version-4cjr3wpp.mjs} +1 -1
- package/package.json +1 -1
- package/skills/browse/SKILL.md +6 -4
- package/dist/main-7zgqqv4q.mjs +0 -4
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
import {
|
|
106
106
|
opencodeBrowserVersion2,
|
|
107
107
|
opencodeBrowserBuildId2
|
|
108
|
-
} from "./main-
|
|
108
|
+
} from "./main-exnm62gg.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-rn7hdcq2.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-ajza8egc.mjs";
|
|
145
|
+
import"./main-hm4fcpfz.mjs";
|
|
146
146
|
import {
|
|
147
147
|
updateJson2,
|
|
148
148
|
formatUpdateNotice2,
|
|
149
149
|
updateNotice2
|
|
150
|
-
} from "./main-
|
|
150
|
+
} from "./main-brv9dhy5.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-nqmm7pdz.mjs";
|
|
159
159
|
import {
|
|
160
160
|
defaultJournalBaseDir,
|
|
161
161
|
readJournalEntries,
|
|
162
162
|
formatJournalEntry
|
|
163
|
-
} from "./main-
|
|
163
|
+
} from "./main-eej5z0y5.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-sy8qgkyr.mjs"));
|
|
5860
5860
|
yield* runMcpServer;
|
|
5861
5861
|
})).pipe(withDescription4("Run the browse MCP server over stdio"));
|
|
5862
5862
|
registerCliCommand(400, () => tabs);
|
|
@@ -5877,7 +5877,7 @@ registerCliCommand(810, ({ packageRoot }) => make("doctor", {
|
|
|
5877
5877
|
}
|
|
5878
5878
|
})).pipe(withDescription4("Diagnose the local browse install and runtime")));
|
|
5879
5879
|
registerCliCommand(820, () => make("skill", {}, fn("Cli.skill")(function* () {
|
|
5880
|
-
const { skillText } = yield* promise(() => import("./skill-text-
|
|
5880
|
+
const { skillText } = yield* promise(() => import("./skill-text-x7sccp6h.mjs"));
|
|
5881
5881
|
yield* log(skillText.trimEnd());
|
|
5882
5882
|
})).pipe(withDescription4("Print the browse agent skill text")));
|
|
5883
5883
|
registerCliCommand(900, () => mcp);
|
|
@@ -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-ateyg5ax.mjs"), import("./helpers-kp0j46jt.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.11-dev.
|
|
5
|
+
var embeddedVersion = "0.0.11-dev.76";
|
|
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-4cjr3wpp.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-0rvjpf4e.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-0dcypq31.mjs");
|
|
18
|
-
const { runMcpServer } = await import("./mcp-
|
|
18
|
+
const { runMcpServer } = await import("./mcp-sy8qgkyr.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-70gqzynp.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-rbd2025v.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-j76yv51b.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-j76yv51b.mjs");
|
|
63
63
|
printSetupStatus();
|
|
64
64
|
}
|
|
65
|
-
const { runCli } = await import("./cli-
|
|
65
|
+
const { runCli } = await import("./cli-qpkh40gh.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-ajza8egc.mjs";
|
|
35
|
+
import"./main-hm4fcpfz.mjs";
|
|
36
36
|
import"./main-mrew6jy8.mjs";
|
|
37
37
|
export {
|
|
38
38
|
HttpRouteError2 as HttpRouteError,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-hm4fcpfz.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataRoot,
|
|
6
6
|
devExtensionUrl,
|
|
7
7
|
devExtensionFolder
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-rn7hdcq2.mjs";
|
|
9
9
|
|
|
10
10
|
// src/relay/browser-pairing.ts
|
|
11
11
|
import crypto from "node:crypto";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./main-mrew6jy8.mjs";
|
|
8
8
|
import {
|
|
9
9
|
relayAuthorization
|
|
10
|
-
} from "./main-
|
|
10
|
+
} from "./main-hm4fcpfz.mjs";
|
|
11
11
|
import {
|
|
12
12
|
assignProperty,
|
|
13
13
|
PipeInspectableProto,
|
|
@@ -110,14 +110,14 @@ import {
|
|
|
110
110
|
} from "./main-gevbt7h7.mjs";
|
|
111
111
|
import {
|
|
112
112
|
opencodeBrowserBuildId2
|
|
113
|
-
} from "./main-
|
|
113
|
+
} from "./main-exnm62gg.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-rn7hdcq2.mjs";
|
|
121
121
|
import {
|
|
122
122
|
dual,
|
|
123
123
|
memoize,
|
|
@@ -1807,4 +1807,4 @@ function isRelayStartingOrUnreachable(error) {
|
|
|
1807
1807
|
return isRelayStarting(error) || isRelayUnreachable(error);
|
|
1808
1808
|
}
|
|
1809
1809
|
|
|
1810
|
-
export { withDefault, option, String2, Int, Boolean2, SessionContainer, SessionsContainer, SessionDeleted, SessionResetResponse, ExecuteRequest, SessionAdoptRequest, SessionNewRequest, SessionEnsureRequest, SessionIdRequest, SessionAllowlistRequest, SessionAdoptResponse, ExecuteLogEntry, ExecuteLogSummary, ExecuteAftermath, AuthenticatedJsonRequest, AuthenticatedJsonOutcome, ExtensionStatus, RelayVersion, RelayShutdownRequest, NetworkStartRequest, NetworkSessionRequest, NetworkStopRequest,
|
|
1810
|
+
export { withDefault, option, String2, Int, Boolean2, SessionContainer, SessionsContainer, SessionDeleted, SessionResetResponse, ExecuteRequest, SessionAdoptRequest, SessionNewRequest, SessionEnsureRequest, SessionIdRequest, SessionAllowlistRequest, SessionAdoptResponse, ExecuteLogEntry, ExecuteLogSummary, ExecuteAftermath, AuthenticatedJsonRequest, AuthenticatedJsonOutcome, ExtensionStatus, RelayVersion, RelayShutdownRequest, NetworkStartRequest, NetworkSessionRequest, NetworkStopRequest, AuthProfileSummary, NetworkStopResponse, AuthProfileRequest, AuthRefreshRequest, AuthRunRequest, AuthRunResponse, RecordingQuality, RecordingTargetRequest, RecordingStartRequest, TabsCleanupResponse, SettingsGetResponse, SettingsSetResponse, FlightRecorderStartRequest, FlightRecorderSaveRequest, HttpRouteError2, formatHostForUrl2, listenHttpServer2, closeHttpServer2, closeWebSocketServer2, logCloseError2, sendJson2, readJsonBody2, stableUnpackedExtensionOrigin2, chromeExtensionOriginForPath2, parseAdditionalExtensionOrigins2, validateHostHeader2, validateBrowserFetchSite2, validateWebSocketOrigin2, defaultHost2, defaultPort2, optionalSessionId2, isValidSessionId2, requiredSessionId2, parseTargetSelection2, generateSessionId2, sendCdpResponse2, sendCdpEvent2, getObject2, getString2, getNumber2, getIdText2, headerValue2, getTargetInfo2, isRestrictedTarget2, isRestrictedUrl2, dataUrlDocument2, portConfig, extensionOriginsConfig, endpointForPort, RelayUnreachable, RelayRejected, Service, layerFetch, layerFetchMcp, shouldWaitForExtensionReconnect, relayBuildProblem, ensureRelay, restartRelay, extensionReconnectWaitMs, ensureExtensionConnected, stoppedRelayStatus, statusCollections, startManagedRelay };
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
compareVersions,
|
|
7
7
|
npmRuntime,
|
|
8
8
|
autoUpdateStatus
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-rn7hdcq2.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-70gqzynp.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-hm4fcpfz.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isValidSessionId2
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-ajza8egc.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isSome,
|
|
9
9
|
decodeUnknownOption,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./main-gevbt7h7.mjs";
|
|
18
18
|
import {
|
|
19
19
|
dataRoot
|
|
20
|
-
} from "./main-
|
|
20
|
+
} from "./main-rn7hdcq2.mjs";
|
|
21
21
|
|
|
22
22
|
// src/session-manager/journal.ts
|
|
23
23
|
import fs from "node:fs";
|
|
@@ -5,17 +5,18 @@ import {
|
|
|
5
5
|
ExecuteAftermath,
|
|
6
6
|
ExtensionStatus,
|
|
7
7
|
RelayVersion,
|
|
8
|
-
|
|
8
|
+
AuthProfileSummary,
|
|
9
|
+
RecordingQuality,
|
|
9
10
|
SettingsGetResponse,
|
|
10
11
|
SettingsSetResponse,
|
|
11
12
|
parseTargetSelection2,
|
|
12
13
|
getObject2,
|
|
13
14
|
getString2
|
|
14
|
-
} from "./main-
|
|
15
|
+
} from "./main-ajza8egc.mjs";
|
|
15
16
|
import {
|
|
16
17
|
isNodeError,
|
|
17
18
|
writeJsonFileAtomically
|
|
18
|
-
} from "./main-
|
|
19
|
+
} from "./main-hm4fcpfz.mjs";
|
|
19
20
|
import {
|
|
20
21
|
getStackTraceLimit,
|
|
21
22
|
setStackTraceLimit,
|
|
@@ -84,6 +85,7 @@ import {
|
|
|
84
85
|
Any,
|
|
85
86
|
Unknown,
|
|
86
87
|
String3,
|
|
88
|
+
Number2,
|
|
87
89
|
Boolean3,
|
|
88
90
|
Void,
|
|
89
91
|
Struct,
|
|
@@ -129,7 +131,7 @@ import {
|
|
|
129
131
|
import {
|
|
130
132
|
dataRoot,
|
|
131
133
|
cliCommand
|
|
132
|
-
} from "./main-
|
|
134
|
+
} from "./main-rn7hdcq2.mjs";
|
|
133
135
|
|
|
134
136
|
// node_modules/effect/dist/Semaphore.js
|
|
135
137
|
var makeUnsafe = (permits) => new SemaphoreImpl(permits);
|
|
@@ -1472,12 +1474,6 @@ function formatSettings(settings) {
|
|
|
1472
1474
|
}
|
|
1473
1475
|
|
|
1474
1476
|
// src/mcp/schema.ts
|
|
1475
|
-
function browsersNote2(browsers) {
|
|
1476
|
-
if (browsers.length < 2)
|
|
1477
|
-
return "";
|
|
1478
|
-
const list = browsers.map((browser) => `${browser.id} (${browser.name}${browser.default ? ", default" : ""})`).join(", ");
|
|
1479
|
-
return ` Connected browsers: ${list}. Pass browser to use one other than the default.`;
|
|
1480
|
-
}
|
|
1481
1477
|
function mcpUpdateNote2(notice) {
|
|
1482
1478
|
return `Note: browse has an update: ${notice.summary}. Tell the user they can run \`${notice.command}\` and then restart opencode, or ask you to run it for them.`;
|
|
1483
1479
|
}
|
|
@@ -1523,11 +1519,89 @@ var CurrentSessionToolOutput = Struct({
|
|
|
1523
1519
|
var SessionDeleteToolOutput = SessionDeleted.pipe(fieldsAssign({
|
|
1524
1520
|
currentSession: String3
|
|
1525
1521
|
}));
|
|
1526
|
-
var
|
|
1527
|
-
|
|
1528
|
-
|
|
1522
|
+
var NetworkToolOutput = Struct({
|
|
1523
|
+
action: Literals(["start", "status", "stop", "cancel"]),
|
|
1524
|
+
session: String3,
|
|
1525
|
+
active: optionalKey(Boolean3),
|
|
1526
|
+
startedAt: optionalKey(String3),
|
|
1527
|
+
entryCount: optionalKey(Number2),
|
|
1528
|
+
responseCount: optionalKey(Number2),
|
|
1529
|
+
failureCount: optionalKey(Number2),
|
|
1530
|
+
capturedBodyBytes: optionalKey(Number2),
|
|
1531
|
+
truncatedBodyCount: optionalKey(Number2),
|
|
1532
|
+
droppedEntryCount: optionalKey(Number2),
|
|
1533
|
+
urlFilter: optionalKey(String3),
|
|
1534
|
+
resourceTypes: optionalKey(ArraySchema(String3)),
|
|
1535
|
+
content: optionalKey(Literals(["omit", "embed"])),
|
|
1536
|
+
secrets: optionalKey(String3),
|
|
1537
|
+
endsAt: optionalKey(String3),
|
|
1538
|
+
ended: optionalKey(String3),
|
|
1539
|
+
stoppedAt: optionalKey(String3),
|
|
1540
|
+
outputPath: optionalKey(String3),
|
|
1541
|
+
authProfile: optionalKey(AuthProfileSummary),
|
|
1542
|
+
updatedSecretRefs: optionalKey(ArraySchema(String3)),
|
|
1543
|
+
observedSecretRefs: optionalKey(ArraySchema(String3)),
|
|
1544
|
+
endpoints: optionalKey(ArraySchema(Struct({
|
|
1545
|
+
method: String3,
|
|
1546
|
+
url: String3,
|
|
1547
|
+
status: optionalKey(Number2),
|
|
1548
|
+
count: Number2,
|
|
1549
|
+
requestHeaders: optionalKey(ArraySchema(String3)),
|
|
1550
|
+
requestKeys: optionalKey(ArraySchema(String3)),
|
|
1551
|
+
responseKeys: optionalKey(ArraySchema(String3))
|
|
1552
|
+
}))),
|
|
1553
|
+
cancelled: optionalKey(Boolean3)
|
|
1554
|
+
});
|
|
1555
|
+
var RecordingToolOutput = Struct({
|
|
1556
|
+
action: Literals(["start", "stop", "status", "cancel"]),
|
|
1557
|
+
session: String3,
|
|
1558
|
+
success: optionalKey(Boolean3),
|
|
1559
|
+
tabId: optionalKey(Number2),
|
|
1560
|
+
startedAt: optionalKey(Number2),
|
|
1561
|
+
path: optionalKey(String3),
|
|
1562
|
+
mimeType: optionalKey(String3),
|
|
1563
|
+
mode: optionalKey(Literals(["tab-capture", "cdp"])),
|
|
1564
|
+
artifactType: optionalKey(Literals(["webm", "mp4"])),
|
|
1565
|
+
frameRate: optionalKey(Number2),
|
|
1566
|
+
duration: optionalKey(Number2),
|
|
1567
|
+
size: optionalKey(Number2),
|
|
1568
|
+
frameCount: optionalKey(Number2),
|
|
1569
|
+
quality: optionalKey(RecordingQuality),
|
|
1570
|
+
isRecording: optionalKey(Boolean3),
|
|
1571
|
+
error: optionalKey(String3)
|
|
1572
|
+
});
|
|
1573
|
+
var FlightRecorderToolOutput = Struct({
|
|
1574
|
+
action: Literals(["start", "status", "save_last", "cancel"]),
|
|
1575
|
+
session: String3,
|
|
1576
|
+
active: optionalKey(Boolean3),
|
|
1577
|
+
tabId: optionalKey(Number2),
|
|
1578
|
+
sessionId: optionalKey(String3),
|
|
1579
|
+
startedAt: optionalKey(Number2),
|
|
1580
|
+
retentionMs: optionalKey(Number2),
|
|
1581
|
+
retainedDurationMs: optionalKey(Number2),
|
|
1582
|
+
frameRate: optionalKey(Number2),
|
|
1583
|
+
bufferedFrames: optionalKey(Number2),
|
|
1584
|
+
bufferedBytes: optionalKey(Number2),
|
|
1585
|
+
sourceFrameCount: optionalKey(Number2),
|
|
1586
|
+
droppedFrameCount: optionalKey(Number2),
|
|
1587
|
+
saving: optionalKey(Boolean3),
|
|
1588
|
+
path: optionalKey(String3),
|
|
1589
|
+
durationMs: optionalKey(Number2),
|
|
1590
|
+
frameCount: optionalKey(Number2),
|
|
1591
|
+
cancelled: optionalKey(Boolean3)
|
|
1592
|
+
});
|
|
1593
|
+
var agentSettingKeys = settingKeys.filter((key) => key !== "autoUpdate");
|
|
1594
|
+
var AgentSettingValue = Union([String3, Number2]);
|
|
1595
|
+
var AgentSettingReport = Struct({
|
|
1596
|
+
value: AgentSettingValue,
|
|
1597
|
+
effective: AgentSettingValue,
|
|
1598
|
+
allowed: ArraySchema(AgentSettingValue),
|
|
1599
|
+
description: String3,
|
|
1600
|
+
overriddenBy: optionalKey(String3)
|
|
1601
|
+
});
|
|
1602
|
+
var AgentSettings = Record(Literals(agentSettingKeys), AgentSettingReport);
|
|
1529
1603
|
var SettingsToolOutput = Struct({
|
|
1530
|
-
settings:
|
|
1604
|
+
settings: AgentSettings,
|
|
1531
1605
|
note: optionalKey(SettingsGetResponse.fields.note),
|
|
1532
1606
|
changed: optionalKey(SettingsSetResponse.fields.changed),
|
|
1533
1607
|
unchanged: optionalKey(SettingsSetResponse.fields.unchanged),
|
|
@@ -1644,6 +1718,13 @@ function requiredStringField(input, field) {
|
|
|
1644
1718
|
}
|
|
1645
1719
|
return value;
|
|
1646
1720
|
}
|
|
1721
|
+
function requiredAction(input, actions) {
|
|
1722
|
+
const action = optionalStringField(input, "action");
|
|
1723
|
+
if (!action || !actions.includes(action)) {
|
|
1724
|
+
throw new Error(`action must be one of ${actions.join(", ")}`);
|
|
1725
|
+
}
|
|
1726
|
+
return action;
|
|
1727
|
+
}
|
|
1647
1728
|
function optionalStringField(input, field) {
|
|
1648
1729
|
const value = getString2(requireObject(input), field);
|
|
1649
1730
|
return value ? value : undefined;
|
|
@@ -2840,4 +2921,4 @@ function secretText(secret) {
|
|
|
2840
2921
|
return secret.kind === "totp" ? totpCode(secret.value) : secret.value;
|
|
2841
2922
|
}
|
|
2842
2923
|
|
|
2843
|
-
export { makeUnsafe, make, settingKeys, settingSpecs, securityVariables, SettingsInputError, parseSettingChanges, settingsFromExtension, settingsToExtension, describeSettings, describeChanges, formatSettings, isStreamSchema, getStreamSchemas, ClientAbort, ServerClient, make2, exitSchema, isWrapper, make3, Implementation, ClientCapabilities, INVALID_REQUEST_ERROR_CODE, METHOD_NOT_FOUND_ERROR_CODE, INVALID_PARAMS_ERROR_CODE, INTERNAL_ERROR_CODE, HEADER_MISMATCH_ERROR_CODE, ParseError, InvalidRequest, MethodNotFound, InvalidParams, InternalError, McpError, Ping, Initialize, CancelledNotification, ProgressNotification, ResourceListChangedNotification, ResourceUpdatedNotification, Prompt, TextContent, PromptListChangedNotification, Tool, CallToolResult, ToolListChangedNotification, LoggingLevel, LoggingMessageNotification, CreateMessage, ListRootsResult, ListRoots, Elicit, McpReverseOperationUnsupported, McpReverseOperationError, McpRequestContext, McpServerClient, McpServerClientMiddleware, ServerNotificationRpcs, EnabledWhen,
|
|
2924
|
+
export { makeUnsafe, make, settingKeys, settingSpecs, securityVariables, SettingsInputError, parseSettingChanges, settingsFromExtension, settingsToExtension, describeSettings, describeChanges, formatSettings, isStreamSchema, getStreamSchemas, ClientAbort, ServerClient, make2, exitSchema, isWrapper, make3, Implementation, ClientCapabilities, INVALID_REQUEST_ERROR_CODE, METHOD_NOT_FOUND_ERROR_CODE, INVALID_PARAMS_ERROR_CODE, INTERNAL_ERROR_CODE, HEADER_MISMATCH_ERROR_CODE, ParseError, InvalidRequest, MethodNotFound, InvalidParams, InternalError, McpError, Ping, Initialize, CancelledNotification, ProgressNotification, ResourceListChangedNotification, ResourceUpdatedNotification, Prompt, TextContent, PromptListChangedNotification, Tool, CallToolResult, ToolListChangedNotification, LoggingLevel, LoggingMessageNotification, CreateMessage, ListRootsResult, ListRoots, Elicit, McpReverseOperationUnsupported, McpReverseOperationError, McpRequestContext, McpServerClient, McpServerClientMiddleware, ServerNotificationRpcs, EnabledWhen, mcpUpdateNote2, objectSchema, emptyInputSchema, sessionSchemaProperty, sessionAliasSchemaProperty, sessionOnlyInputSchema, ExecuteToolOutput, StatusToolOutput, CurrentSessionToolOutput, SessionDeleteToolOutput, NetworkToolOutput, RecordingToolOutput, FlightRecorderToolOutput, agentSettingKeys, SettingsToolOutput, SecretsListToolOutput, toolOutputJson, executeToolResult, ensureSessionExists, parseExecuteArguments, parseAdoptArguments, requiredStringField, requiredAction, optionalStringField, optionalBooleanField, optionalPositiveIntegerField, optionalStringArrayField, requireObject, toolResultForValue2, mcpErrorMessage2, toolResult, terminateChildProcess, SecretCollector, looksLikeTokenSegment, AuthProfileError, read, readOptional, withLock, write, status, run, OriginPatternError, parseOriginPatterns, normalizeOriginPatterns, isPrivateAddress, explicitlyAllowsHost, checkUrl, checkNavigationUrl, readSecret, addSecret, listSecrets, removeSecret, secretText };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-exnm62gg.mjs";
|
|
4
4
|
|
|
5
5
|
// src/update/auto-update.ts
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
@@ -53,7 +53,7 @@ function cliInstall() {
|
|
|
53
53
|
return { kind: "binary", binary: installedBinary() ?? process.execPath, pathEnv: process.env.PATH };
|
|
54
54
|
if (fromCheckout())
|
|
55
55
|
return { kind: "checkout", bundle: path.join(packageRoot(), "dist", "cli.mjs") };
|
|
56
|
-
return { kind: "npm", version: "0.0.11-dev.
|
|
56
|
+
return { kind: "npm", version: "0.0.11-dev.76" };
|
|
57
57
|
}
|
|
58
58
|
function cliPrefix(install = cliInstall()) {
|
|
59
59
|
if (install.kind === "binary") {
|
|
@@ -73,7 +73,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
73
73
|
return id ? { id } : {};
|
|
74
74
|
}
|
|
75
75
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
76
|
-
function devExtension(baked = { file: "browse-extension-0.0.11-dev.
|
|
76
|
+
function devExtension(baked = { file: "browse-extension-0.0.11-dev.76.zip", sha256: "5c792151b6364e3bb1deee255528588a8043fd65f530c4c250b7a9f72761e47b", size: 182615 }) {
|
|
77
77
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
78
78
|
}
|
|
79
79
|
var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
|