@opencode/browse 0.0.11-dev.70 → 0.0.11-dev.72

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.
Files changed (26) hide show
  1. package/dist/{cli-fvrcjg4g.mjs → cli-w445s77h.mjs} +11 -11
  2. package/dist/cli.mjs +10 -10
  3. package/dist/{helpers-6by6j39a.mjs → helpers-spk1cnxw.mjs} +2 -2
  4. package/dist/{index-8v65jg3n.mjs → index-0dcypq31.mjs} +1 -1
  5. package/dist/main-4qy2q686.mjs +4 -0
  6. package/dist/{main-8xg8gp0m.mjs → main-c03yxxa5.mjs} +4 -4
  7. package/dist/{main-0m7y7537.mjs → main-dfac31gt.mjs} +1 -1
  8. package/dist/{main-bfnwm4x3.mjs → main-g606v7zz.mjs} +2 -2
  9. package/dist/{main-ta3yc4kx.mjs → main-gevbt7h7.mjs} +1134 -2
  10. package/dist/{main-pgrahcqx.mjs → main-gz443nq8.mjs} +3 -3
  11. package/dist/{main-493hqqst.mjs → main-jfw7tc5g.mjs} +2 -2
  12. package/dist/{main-fx1xgftk.mjs → main-psy10am0.mjs} +128 -11
  13. package/dist/{main-kxbs88e4.mjs → main-rt6g5418.mjs} +1 -1
  14. package/dist/{main-2jk7tv3t.mjs → main-yz931fa0.mjs} +5 -5
  15. package/dist/{mcp-7cz1j97q.mjs → mcp-qw645sjd.mjs} +83 -32
  16. package/dist/{relay-6vm4z2c4.mjs → relay-pysa3c90.mjs} +10 -10
  17. package/dist/{runtime-update-7hq0ms16.mjs → runtime-update-kyd27gdx.mjs} +5 -5
  18. package/dist/{setup-9m7r8m7t.mjs → setup-p20qjea1.mjs} +5 -5
  19. package/dist/skill-text-q5tkbz98.mjs +402 -0
  20. package/dist/{supervisor-d62ebrqn.mjs → supervisor-68nzaabf.mjs} +3 -3
  21. package/dist/{update-8qjdkkza.mjs → update-4a7wp8tc.mjs} +3 -3
  22. package/dist/{version-7h7wv1pt.mjs → version-zy6f2nw4.mjs} +1 -1
  23. package/package.json +1 -1
  24. package/skills/browse/SKILL.md +229 -760
  25. package/dist/main-b39e4gny.mjs +0 -4
  26. package/dist/skill-text-g8avyxz3.mjs +0 -933
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  opencodeBrowserVersion2
3
- } from "./main-b39e4gny.mjs";
3
+ } from "./main-4qy2q686.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.70" };
56
+ return { kind: "npm", version: "0.0.11-dev.72" };
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.70.zip", sha256: "c4e29b323a17dd777de64bbbc06af6834eecf394593526d5243bf975da148fb0", size: 182519 }) {
76
+ function devExtension(baked = { file: "browse-extension-0.0.11-dev.72.zip", sha256: "fa3dcd44eae0129b3ed00bcb03f437488281312512fe140ad05b6bd160bd4d45", size: 182518 }) {
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}`;
@@ -6,7 +6,7 @@ import {
6
6
  compareVersions,
7
7
  npmRuntime,
8
8
  autoUpdateStatus
9
- } from "./main-pgrahcqx.mjs";
9
+ } from "./main-gz443nq8.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-7hq0ms16.mjs");
318
+ const { runNpmUpdate } = await import("./runtime-update-kyd27gdx.mjs");
319
319
  if (await runNpmUpdate(args))
320
320
  return;
321
321
  if (compiledBinary()) {
@@ -1,12 +1,21 @@
1
1
  import {
2
+ SessionDeleted,
3
+ ExecuteLogEntry,
4
+ ExecuteLogSummary,
5
+ ExecuteAftermath,
6
+ ExtensionStatus,
7
+ RelayVersion,
8
+ NetworkStatusResponse,
9
+ SettingsGetResponse,
10
+ SettingsSetResponse,
2
11
  parseTargetSelection2,
3
12
  getObject2,
4
13
  getString2
5
- } from "./main-2jk7tv3t.mjs";
14
+ } from "./main-yz931fa0.mjs";
6
15
  import {
7
16
  isNodeError,
8
17
  writeJsonFileAtomically
9
- } from "./main-0m7y7537.mjs";
18
+ } from "./main-dfac31gt.mjs";
10
19
  import {
11
20
  getStackTraceLimit,
12
21
  setStackTraceLimit,
@@ -63,6 +72,7 @@ import {
63
72
  declare,
64
73
  decodeUnknownEffect2,
65
74
  decodeUnknownSync,
75
+ encodeUnknownOption,
66
76
  make11,
67
77
  isSchema,
68
78
  optionalKey,
@@ -77,6 +87,7 @@ import {
77
87
  Boolean3,
78
88
  Void,
79
89
  Struct,
90
+ fieldsAssign,
80
91
  Record,
81
92
  StructWithRest,
82
93
  ArraySchema,
@@ -99,9 +110,10 @@ import {
99
110
  Class2,
100
111
  Error2,
101
112
  TaggedError2,
113
+ toJsonSchemaDocument,
102
114
  Json,
103
115
  JsonObject
104
- } from "./main-ta3yc4kx.mjs";
116
+ } from "./main-gevbt7h7.mjs";
105
117
  import {
106
118
  pipeArguments,
107
119
  identity,
@@ -117,7 +129,7 @@ import {
117
129
  import {
118
130
  dataRoot,
119
131
  cliCommand
120
- } from "./main-pgrahcqx.mjs";
132
+ } from "./main-gz443nq8.mjs";
121
133
 
122
134
  // node_modules/effect/dist/Semaphore.js
123
135
  var makeUnsafe = (permits) => new SemaphoreImpl(permits);
@@ -1486,6 +1498,100 @@ var sessionAliasSchemaProperty = { type: "string", description: "Same as id." };
1486
1498
  var sessionOnlyInputSchema = objectSchema({
1487
1499
  session: sessionSchemaProperty
1488
1500
  });
1501
+ var ExecuteToolOutput = Struct({
1502
+ session: String3,
1503
+ value: optionalKey(Unknown),
1504
+ logs: optionalKey(ArraySchema(ExecuteLogEntry)),
1505
+ logSummary: optionalKey(ExecuteLogSummary),
1506
+ warnings: optionalKey(ArraySchema(String3)),
1507
+ diagnostic: optionalKey(String3),
1508
+ aftermath: optionalKey(ExecuteAftermath),
1509
+ notice: optionalKey(String3)
1510
+ });
1511
+ var StatusToolOutput = Struct({
1512
+ endpoint: String3,
1513
+ currentSession: String3,
1514
+ version: RelayVersion,
1515
+ status: ExtensionStatus,
1516
+ buildProblem: optionalKey(String3),
1517
+ update: optionalKey(Json),
1518
+ autoUpdate: Json
1519
+ });
1520
+ var CurrentSessionToolOutput = Struct({
1521
+ currentSession: String3
1522
+ });
1523
+ var SessionDeleteToolOutput = SessionDeleted.pipe(fieldsAssign({
1524
+ currentSession: String3
1525
+ }));
1526
+ var NetworkToolStatus = NetworkStatusResponse.pipe(fieldsAssign({
1527
+ session: String3
1528
+ }));
1529
+ var SettingsToolOutput = Struct({
1530
+ settings: SettingsGetResponse.fields.settings,
1531
+ note: optionalKey(SettingsGetResponse.fields.note),
1532
+ changed: optionalKey(SettingsSetResponse.fields.changed),
1533
+ unchanged: optionalKey(SettingsSetResponse.fields.unchanged),
1534
+ overridden: optionalKey(SettingsSetResponse.fields.overridden),
1535
+ message: optionalKey(SettingsSetResponse.fields.message)
1536
+ });
1537
+ var SecretsListToolOutput = Struct({
1538
+ secrets: ArraySchema(Struct({
1539
+ name: String3,
1540
+ kind: Literals(["password", "totp"]),
1541
+ allowedOrigins: ArraySchema(String3),
1542
+ createdAt: String3,
1543
+ updatedAt: String3
1544
+ }))
1545
+ });
1546
+ function toolOutputJson(schema) {
1547
+ const document = toJsonSchemaDocument(schema);
1548
+ const json = Object.keys(document.definitions).length === 0 ? document.schema : { ...document.schema, $defs: document.definitions };
1549
+ return json;
1550
+ }
1551
+ function logSummaryHasContent(summary) {
1552
+ return summary !== undefined && (summary.totalCount > 0 || summary.returnedCount > 0 || summary.repeatedCount > 0 || summary.omittedCount > 0);
1553
+ }
1554
+ function aftermathHasContent(aftermath) {
1555
+ return aftermath !== undefined && (aftermath.startUrl !== aftermath.endUrl || aftermath.navigations.length > 0 || aftermath.consoleErrorCount > 0 || aftermath.pageErrorCount > 0 || aftermath.handoffs > 0 || aftermath.challenge !== undefined);
1556
+ }
1557
+ function executeToolOutput(result) {
1558
+ return {
1559
+ session: result.session.id,
1560
+ ...result.value === undefined ? {} : { value: result.value },
1561
+ ...result.logs.length > 0 ? { logs: result.logs } : {},
1562
+ ...logSummaryHasContent(result.logSummary) ? { logSummary: result.logSummary } : {},
1563
+ ...result.warnings && result.warnings.length > 0 ? { warnings: result.warnings } : {},
1564
+ ...result.diagnostic ? { diagnostic: result.diagnostic } : {},
1565
+ ...aftermathHasContent(result.aftermath) ? { aftermath: result.aftermath } : {},
1566
+ ...result.notice ? { notice: result.notice } : {}
1567
+ };
1568
+ }
1569
+ function executeToolText(result) {
1570
+ const text = result.isError ? result.text : isString(result.value) ? result.value : result.value === undefined ? result.text : JSON.stringify(result.value);
1571
+ return result.notice ? `${text}
1572
+
1573
+ ${result.notice}` : text;
1574
+ }
1575
+ function executeToolResult(value) {
1576
+ const result = value;
1577
+ if (result.media && result.media.length > 0) {
1578
+ return new CallToolResult({
1579
+ content: [
1580
+ TextContent.make({ text: result.text }),
1581
+ ...result.media.map((image) => ImageContent.make({
1582
+ data: new Uint8Array(Buffer.from(image.data, "base64")),
1583
+ mimeType: image.mimeType
1584
+ }))
1585
+ ],
1586
+ isError: result.isError
1587
+ });
1588
+ }
1589
+ return toolResultForValue2(executeToolOutput(result), {
1590
+ outputSchema: ExecuteToolOutput,
1591
+ text: executeToolText(result),
1592
+ isError: result.isError
1593
+ });
1594
+ }
1489
1595
  var ensureSessionExists = fnUntraced(function* (relay, id) {
1490
1596
  const sessions = yield* relay.sessions;
1491
1597
  const exists = sessions.some((session) => {
@@ -1584,11 +1690,17 @@ function stringifyResult(value) {
1584
1690
  if (isString(value)) {
1585
1691
  return value;
1586
1692
  }
1587
- return JSON.stringify(value, null, 2);
1693
+ return JSON.stringify(value);
1588
1694
  }
1589
- function toolResultForValue2(value) {
1695
+ function encodedStructuredContent(value, schema) {
1696
+ if (!schema)
1697
+ return value;
1698
+ const encoded = encodeUnknownOption(schema)(value);
1699
+ return isSome(encoded) ? encoded.value : undefined;
1700
+ }
1701
+ function toolResultForValue2(value, options = {}) {
1590
1702
  const object = getObject2(value);
1591
- const isError = object?.isError === true;
1703
+ const isError = options.isError ?? object?.isError === true;
1592
1704
  const media = Array.isArray(object?.media) ? object.media.flatMap((item) => {
1593
1705
  const image = getObject2(item);
1594
1706
  const mimeType = getString2(image, "mimeType");
@@ -1598,7 +1710,7 @@ function toolResultForValue2(value) {
1598
1710
  const errorText = isError ? getString2(object, "text") : undefined;
1599
1711
  if (media.length > 0) {
1600
1712
  const { media: _media, ...rest } = object ?? {};
1601
- const text = errorText ?? stringifyResult(rest);
1713
+ const text = options.text ?? errorText ?? stringifyResult(rest);
1602
1714
  return new CallToolResult({
1603
1715
  content: [
1604
1716
  TextContent.make({ text }),
@@ -1610,8 +1722,13 @@ function toolResultForValue2(value) {
1610
1722
  isError
1611
1723
  });
1612
1724
  }
1613
- const text = errorText ?? stringifyResult(value);
1614
- return toolResult({ text, ...object ? { structuredContent: object } : {}, isError });
1725
+ const text = options.text ?? errorText ?? stringifyResult(value);
1726
+ const structuredContent = object ? encodedStructuredContent(object, options.outputSchema) : undefined;
1727
+ return toolResult({
1728
+ text,
1729
+ ...structuredContent === undefined ? {} : { structuredContent },
1730
+ isError
1731
+ });
1615
1732
  }
1616
1733
  function mcpErrorMessage2(tool, message) {
1617
1734
  if (!message.startsWith("Session not found:")) {
@@ -2723,4 +2840,4 @@ function secretText(secret) {
2723
2840
  return secret.kind === "totp" ? totpCode(secret.value) : secret.value;
2724
2841
  }
2725
2842
 
2726
- 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, browsersNote2, mcpUpdateNote2, objectSchema, emptyInputSchema, sessionSchemaProperty, sessionAliasSchemaProperty, sessionOnlyInputSchema, ensureSessionExists, parseExecuteArguments, parseAdoptArguments, requiredStringField, 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 };
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, browsersNote2, mcpUpdateNote2, objectSchema, emptyInputSchema, sessionSchemaProperty, sessionAliasSchemaProperty, sessionOnlyInputSchema, ExecuteToolOutput, StatusToolOutput, CurrentSessionToolOutput, SessionDeleteToolOutput, NetworkToolStatus, SettingsToolOutput, SecretsListToolOutput, toolOutputJson, executeToolResult, ensureSessionExists, parseExecuteArguments, parseAdoptArguments, requiredStringField, 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 };
@@ -5,7 +5,7 @@ import {
5
5
  isSuccess,
6
6
  ClockRef,
7
7
  currentTimeMillis
8
- } from "./main-ta3yc4kx.mjs";
8
+ } from "./main-gevbt7h7.mjs";
9
9
  import {
10
10
  pipeArguments,
11
11
  identity,
@@ -7,7 +7,7 @@ import {
7
7
  } from "./main-mrew6jy8.mjs";
8
8
  import {
9
9
  relayAuthorization
10
- } from "./main-0m7y7537.mjs";
10
+ } from "./main-dfac31gt.mjs";
11
11
  import {
12
12
  assignProperty,
13
13
  PipeInspectableProto,
@@ -107,17 +107,17 @@ import {
107
107
  bodyJson,
108
108
  HttpClient,
109
109
  layerNodeHttp
110
- } from "./main-ta3yc4kx.mjs";
110
+ } from "./main-gevbt7h7.mjs";
111
111
  import {
112
112
  opencodeBrowserBuildId2
113
- } from "./main-b39e4gny.mjs";
113
+ } from "./main-4qy2q686.mjs";
114
114
  import {
115
115
  compiledBinary,
116
116
  scriptEntry,
117
117
  cliCommand,
118
118
  installCommand,
119
119
  npmRuntime
120
- } from "./main-pgrahcqx.mjs";
120
+ } from "./main-gz443nq8.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, ExecuteRequest, SessionAdoptRequest, SessionNewRequest, SessionEnsureRequest, SessionIdRequest, SessionAllowlistRequest, AuthenticatedJsonRequest, AuthenticatedJsonOutcome, RelayShutdownRequest, NetworkStartRequest, NetworkSessionRequest, NetworkStopRequest, AuthProfileRequest, AuthRefreshRequest, AuthRunRequest, RecordingTargetRequest, RecordingStartRequest, 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 };
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, NetworkStatusResponse, AuthProfileSummary, NetworkStopResponse, NetworkCancelResponse, AuthProfileRequest, AuthRefreshRequest, AuthRunRequest, AuthRunResponse, RecordingTargetRequest, RecordingStartRequest, RecordingStartResponse, RecordingStopResponse, RecordingStatusResponse, TabsCleanupResponse, SettingsGetResponse, SettingsSetResponse, RecordingCancelResponse, FlightRecorderStartRequest, FlightRecorderStatusResponse, FlightRecorderSaveRequest, FlightRecorderSaveResponse, FlightRecorderCancelResponse, 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 };