openwork-server 0.18.70 → 0.18.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 (100) hide show
  1. package/dist/opencode-plugin-deps-1.18.33.tgz +0 -0
  2. package/dist/opencode-plugins/agent-instruction-compose.js +0 -24
  3. package/dist/opencode-plugins/approval-loopback-fetch.js +0 -9
  4. package/dist/opencode-plugins/browser-tool-args.js +37 -0
  5. package/dist/opencode-plugins/computer-listing-files.js +0 -19
  6. package/dist/opencode-plugins/drive-file-tools.js +0 -4
  7. package/dist/opencode-plugins/gmail-attachment-fulfillment.js +0 -14
  8. package/dist/opencode-plugins/managed-policy-client.js +0 -2
  9. package/dist/opencode-plugins/opencode-stop-fence-client.js +0 -1
  10. package/dist/opencode-plugins/openwork-agent-permissions-v2.js +16 -3
  11. package/dist/opencode-plugins/openwork-agent-questions.js +2 -10
  12. package/dist/opencode-plugins/openwork-capabilities-knowledge.js +2 -2
  13. package/dist/opencode-plugins/openwork-chrome-devtools.js +47 -4
  14. package/dist/opencode-plugins/openwork-cloud-skills-v2.js +34 -49
  15. package/dist/opencode-plugins/openwork-codemode-discovery-v2.js +0 -7
  16. package/dist/opencode-plugins/openwork-context-v2.js +81 -12
  17. package/dist/opencode-plugins/openwork-extensions-preview-steering.js +0 -16
  18. package/dist/opencode-plugins/openwork-extensions-preview.js +1 -1
  19. package/dist/opencode-plugins/openwork-office-attachments.js +1401 -10
  20. package/dist/opencode-plugins/openwork-provider-adapters.js +0 -11
  21. package/dist/opencode-plugins/openwork-sandbox-v2.js +28 -26
  22. package/dist/opencode-plugins/openwork-session-groups.js +0 -13
  23. package/dist/opencode-plugins/openwork-spreadsheets.js +1401 -10
  24. package/dist/opencode-plugins/openwork-ui-bridge.js +1 -6
  25. package/dist/opencode-plugins/provider-safe-tool-schema.js +0 -10
  26. package/dist/opencode-plugins/session-read-detail.js +0 -36
  27. package/dist/opencode-plugins/workspace-file-destinations.js +0 -5
  28. package/dist/openwork-server.mjs +5227 -2144
  29. package/package.json +1 -1
  30. package/web/assets/{abnfDiagram-VCTEODGH-BfWj70CF.js → abnfDiagram-VCTEODGH-Bk2JrJ3j.js} +1 -1
  31. package/web/assets/app-BinIaXyk.css +32 -0
  32. package/web/assets/{app-CtII-ooM.js → app-CNo6L1tq.js} +494 -486
  33. package/web/assets/{arc-Cz5KTFDj.js → arc-BeMgz_zn.js} +1 -1
  34. package/web/assets/{architectureDiagram-5GKGNRK7-BFd6EGv5.js → architectureDiagram-5GKGNRK7-CRxylST_.js} +1 -1
  35. package/web/assets/{artifact-code-view-CfXGXYRR.js → artifact-code-view-BwBuxnOh.js} +1 -1
  36. package/web/assets/artifact-office-preview-v_N9yGCg.js +6 -0
  37. package/web/assets/artifact-spreadsheet-editor-5lpd49cl.js +4 -0
  38. package/web/assets/{artifact-text-editor-BzmSVt6K.js → artifact-text-editor-Dj0SDUYJ.js} +1 -1
  39. package/web/assets/{blockDiagram-OSKFZWR5--dd2K6D0.js → blockDiagram-OSKFZWR5-CYcFpnr1.js} +1 -1
  40. package/web/assets/{c4Diagram-7LVT6UL2-CCycmUvG.js → c4Diagram-7LVT6UL2-KL6win2t.js} +1 -1
  41. package/web/assets/channel-C7q2VHY_.js +1 -0
  42. package/web/assets/{chunk-2Q5K7J3B-90KYWV7T.js → chunk-2Q5K7J3B-CjBMu5Dk.js} +1 -1
  43. package/web/assets/{chunk-5VM5RSS4-CLQaz_GH.js → chunk-5VM5RSS4-CVfSxxeV.js} +1 -1
  44. package/web/assets/{chunk-F27PBJKO-MT74J5Z1.js → chunk-F27PBJKO-Da-CK7uS.js} +1 -1
  45. package/web/assets/{chunk-HLEWEB6X-tTtGU2Xj.js → chunk-HLEWEB6X-DaBpQjxM.js} +1 -1
  46. package/web/assets/{chunk-JWPE2WC7-DWP93t5G.js → chunk-JWPE2WC7-eZhhKb-9.js} +1 -1
  47. package/web/assets/{chunk-POPQ4Y6H-RbW8ZiSg.js → chunk-POPQ4Y6H-BuQza4Dl.js} +1 -1
  48. package/web/assets/{chunk-SVP7TREG-CO4LWTWe.js → chunk-SVP7TREG-MuA1wNzK.js} +1 -1
  49. package/web/assets/{chunk-XXDRQBXY-Dk6SwkRo.js → chunk-XXDRQBXY-CIpJOQtx.js} +1 -1
  50. package/web/assets/{chunk-ZLD2IHE6-DbudI5Ai.js → chunk-ZLD2IHE6-NhKoLW1Y.js} +1 -1
  51. package/web/assets/classDiagram-CYGNFDIV-DKD7FwJZ.js +1 -0
  52. package/web/assets/classDiagram-v2-TLXNO2FR-DKD7FwJZ.js +1 -0
  53. package/web/assets/{cose-bilkent-JH36ORCC-DnjeuL46.js → cose-bilkent-JH36ORCC-B_lNY9db.js} +1 -1
  54. package/web/assets/{cynefin-OW5HDTMX-T49OK4gf.js → cynefin-OW5HDTMX-BmqyCndA.js} +1 -1
  55. package/web/assets/{cynefinDiagram-5FMLGOSQ-Cl2-VYbB.js → cynefinDiagram-5FMLGOSQ-By2KC7b4.js} +1 -1
  56. package/web/assets/{dagre-OS7QT2EB-DVmRIfRg.js → dagre-OS7QT2EB-By7csWyW.js} +1 -1
  57. package/web/assets/{diagram-S7CK7UJ4-B4HosGU_.js → diagram-S7CK7UJ4-5_mhvlGk.js} +1 -1
  58. package/web/assets/{diagram-UQ7AKVKN-BZipTqE-.js → diagram-UQ7AKVKN-BPHF9t90.js} +1 -1
  59. package/web/assets/{diagram-VSXAHHWV-CqnZ8iAC.js → diagram-VSXAHHWV-CyVv5z8B.js} +1 -1
  60. package/web/assets/{diagram-VX7I27RA-u6TXpwMA.js → diagram-VX7I27RA-BdfxwGwk.js} +1 -1
  61. package/web/assets/{diagram-Z3DM3KII-D9Sx-QCn.js → diagram-Z3DM3KII-BXg_HOys.js} +1 -1
  62. package/web/assets/{ebnfDiagram-PWID7BFC-MZzyo5bT.js → ebnfDiagram-PWID7BFC-57--ZiB5.js} +1 -1
  63. package/web/assets/{erDiagram-2YWLMYGG-Cp4Uqe7T.js → erDiagram-2YWLMYGG-2WR_i4mr.js} +1 -1
  64. package/web/assets/{flowDiagram-T62WH6J4-DCIZoWMb.js → flowDiagram-T62WH6J4-1qB430Tj.js} +1 -1
  65. package/web/assets/{ganttDiagram-EL5Y4UJY-wc3QTJBu.js → ganttDiagram-EL5Y4UJY-DlsKL-gN.js} +1 -1
  66. package/web/assets/{gitGraphDiagram-WWUBYQGX-BQFprEQM.js → gitGraphDiagram-WWUBYQGX-DQ8IU_wC.js} +1 -1
  67. package/web/assets/{infoDiagram-FKFFQAWI-DvlmsTbd.js → infoDiagram-FKFFQAWI-kh9s5sRC.js} +1 -1
  68. package/web/assets/{ishikawaDiagram-5VMMS53U-DCvoBIzt.js → ishikawaDiagram-5VMMS53U-CaknQUcm.js} +1 -1
  69. package/web/assets/{journeyDiagram-EYS64GPL-BuCERl5u.js → journeyDiagram-EYS64GPL-DenZYZs9.js} +1 -1
  70. package/web/assets/{kanban-definition-UXKFOSKX-CyYDmi1h.js → kanban-definition-UXKFOSKX-ptoI6qD1.js} +1 -1
  71. package/web/assets/{layout-CEcDiw1D.js → layout-B4UdHd1t.js} +1 -1
  72. package/web/assets/{linear-BA9oEO_U.js → linear-DbhtXtCn.js} +1 -1
  73. package/web/assets/{mermaid.core-CpK4FHY9.js → mermaid.core-BoXM2BMZ.js} +6 -6
  74. package/web/assets/{mindmap-definition-THT77NOG-BNapAGkQ.js → mindmap-definition-THT77NOG-Bcw34klO.js} +1 -1
  75. package/web/assets/{pegDiagram-XKGWAZYB-DOACjZVK.js → pegDiagram-XKGWAZYB-CZ49Cylj.js} +1 -1
  76. package/web/assets/{pieDiagram-E7YTZNPT-BFj12eki.js → pieDiagram-E7YTZNPT-F5Tl-jOo.js} +1 -1
  77. package/web/assets/{quadrantDiagram-AXDQQJYC-CJp4T9Qc.js → quadrantDiagram-AXDQQJYC-BindC9Ln.js} +1 -1
  78. package/web/assets/{railroadDiagram-O6MQD6OU-C5iGnU_p.js → railroadDiagram-O6MQD6OU-BHfARQKt.js} +1 -1
  79. package/web/assets/{requirementDiagram-IS5BZ75X-n60vIsGm.js → requirementDiagram-IS5BZ75X-DeyyjrFZ.js} +1 -1
  80. package/web/assets/{sankeyDiagram-P5KCCOFB-DYlkrlW8.js → sankeyDiagram-P5KCCOFB-Bf4RYjdY.js} +1 -1
  81. package/web/assets/{sequenceDiagram-WJ2MYXX4-D_nrAKD2.js → sequenceDiagram-WJ2MYXX4-D0I5Iail.js} +1 -1
  82. package/web/assets/{sizeCapture-INFHLROL-sdI5LzZL.js → sizeCapture-INFHLROL-ZMHjeD6L.js} +1 -1
  83. package/web/assets/{stateDiagram-XQSTLZYL-BUq5qUN3.js → stateDiagram-XQSTLZYL-XMu0akCC.js} +1 -1
  84. package/web/assets/stateDiagram-v2-IH3M54BS-CNv5Ofd5.js +1 -0
  85. package/web/assets/{swimlanes-V6O3JKXN-LSlgNBco.js → swimlanes-V6O3JKXN-BX1vgjAt.js} +1 -1
  86. package/web/assets/swimlanesDiagram-JKAHXJPX-yIR7kUmA.js +8 -0
  87. package/web/assets/{timeline-definition-24CTP7MA-D01Xu3oD.js → timeline-definition-24CTP7MA-B-V8Y7U9.js} +1 -1
  88. package/web/assets/{vennDiagram-4TSXK5OY-DxW5KqmM.js → vennDiagram-4TSXK5OY-iHvsobDU.js} +1 -1
  89. package/web/assets/{wardleyDiagram-VM6X3IG4-DN1IzAEa.js → wardleyDiagram-VM6X3IG4-BTl7bSNi.js} +1 -1
  90. package/web/assets/{workspace-file-tree-B4a_8llr.js → workspace-file-tree-EJaUSokl.js} +1 -1
  91. package/web/assets/xlsx-workbook-DVIQLEdk.js +9 -0
  92. package/web/assets/{xychartDiagram-S5SC5T6Z-DyLIA7zi.js → xychartDiagram-S5SC5T6Z-BKhJK0Av.js} +1 -1
  93. package/web/index.html +2 -2
  94. package/web/assets/app-CS1SPYq0.css +0 -32
  95. package/web/assets/artifact-spreadsheet-editor-BIO9_bv7.js +0 -11
  96. package/web/assets/channel-DSUEEVke.js +0 -1
  97. package/web/assets/classDiagram-CYGNFDIV-NJFrvIrX.js +0 -1
  98. package/web/assets/classDiagram-v2-TLXNO2FR-NJFrvIrX.js +0 -1
  99. package/web/assets/stateDiagram-v2-IH3M54BS-DOZDIr7B.js +0 -1
  100. package/web/assets/swimlanesDiagram-JKAHXJPX-B6NATjf_.js +0 -8
@@ -24,8 +24,6 @@ function uiControlDiscoveryPaths() {
24
24
  ].filter((p) => Boolean(p));
25
25
  }
26
26
  async function discoverUiBridge() {
27
- // A changed discovery override points at a different desktop; never reuse
28
- // the bridge cached for the previous one.
29
27
  const discovery = process.env.OPENWORK_UI_CONTROL_DISCOVERY?.trim();
30
28
  if (cachedBridge && cachedBridgeDiscovery === discovery && Date.now() - cachedBridgeAt < BRIDGE_CACHE_MS)
31
29
  return cachedBridge;
@@ -45,14 +43,11 @@ async function discoverUiBridge() {
45
43
  }
46
44
  }
47
45
  catch {
48
- // Try next
49
46
  }
50
47
  }
51
48
  return null;
52
49
  }
53
- export async function uiBridgeRequest(path,
54
- /** `timeoutMs: null` waits until `signal` aborts. */
55
- options = {}) {
50
+ export async function uiBridgeRequest(path, options = {}) {
56
51
  const bridge = await discoverUiBridge();
57
52
  if (!bridge)
58
53
  return { ok: false, code: "browser_unavailable", dispatched: false, error: "The built-in browser is unavailable. Open the desktop app on the same machine as this task's server." };
@@ -1,11 +1,3 @@
1
- // Providers validate tool input schemas differently, and one schema a provider
2
- // rejects fails every request in the conversation. These rules cover the
3
- // rejections seen so far:
4
- // - `$ref`: strict validators (DeepSeek, Groq) reject pointers that an engine
5
- // moved or dropped, and some reject recursion outright.
6
- // - top-level anyOf/oneOf/allOf: Anthropic rejects them.
7
- // - large size bounds: grammar-constrained providers (Fireworks, xAI,
8
- // llama.cpp) turn each bound into grammar rules, capped at 2^21 - 1 per request.
9
1
  export const MAX_SCHEMA_SIZE_BOUND = 32_000;
10
2
  const COMBINATORS = ["anyOf", "oneOf", "allOf"];
11
3
  const SIZE_BOUNDS = ["maxLength", "minLength", "maxItems", "minItems"];
@@ -13,7 +5,6 @@ const SCHEMA_MAPS = ["properties", "patternProperties", "$defs", "definitions"];
13
5
  const SCHEMA_LISTS = [...COMBINATORS, "prefixItems"];
14
6
  const SCHEMAS = ["items", "additionalProperties", "not", "contains", "propertyNames", "if", "then", "else"];
15
7
  const isSchema = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
16
- /** What would make a provider reject this tool input schema; empty when it is safe to send. */
17
8
  export function providerSchemaProblems(schema) {
18
9
  if (!isSchema(schema) || schema.type !== "object")
19
10
  return ["the root is not an object schema"];
@@ -45,7 +36,6 @@ export function providerSchemaProblems(schema) {
45
36
  visit(schema, "");
46
37
  return problems;
47
38
  }
48
- /** Adds the tool unless a provider would reject its schema, so one bad tool is missing instead of every request failing. */
49
39
  export function addProviderSafeTool(editor, tool) {
50
40
  const problems = providerSchemaProblems(tool.input);
51
41
  if (problems.length) {
@@ -1,25 +1,3 @@
1
- /**
2
- * `session.read` with `detail: "full"`: every message and content item the
3
- * engine stores, mapped from OpenCode v2's native message schema
4
- * (`Session.Message.Info`, `GET /api/session/:id/message`, engine 2.2.0) and,
5
- * for sessions still on v1, from the equivalent v1 message parts into the
6
- * same shape.
7
- *
8
- * Kept: every message type (user, assistant, synthetic, system, skill, shell,
9
- * compaction, idle, agent/model/location switches) and every assistant
10
- * content item (text, reasoning, tool calls with input, output, files, error,
11
- * metadata and timing), plus model, agent, finish reason, tokens, cost,
12
- * retries and changed files.
13
- *
14
- * Left out on purpose: provider `native` blobs (opaque, provider-specific,
15
- * may hold signed reasoning), inline base64 file data (the file's name, type
16
- * and URI are kept) and raw provider response bodies in errors.
17
- *
18
- * Long fields are clipped with a visible marker and the message is flagged
19
- * `truncated`; reading one message by `messageId` raises the limits.
20
- *
21
- * Dependency-free on purpose: the bundled engine plugin imports it.
22
- */
23
1
  function isRecord(value) {
24
2
  return typeof value === "object" && value !== null && !Array.isArray(value);
25
3
  }
@@ -35,7 +13,6 @@ function rec(value) {
35
13
  function list(value) {
36
14
  return Array.isArray(value) ? value : [];
37
15
  }
38
- /** Drops undefined fields so the result stays compact. */
39
16
  function compact(value) {
40
17
  for (const key of Object.keys(value))
41
18
  if (value[key] === undefined)
@@ -66,7 +43,6 @@ export const SESSION_READ_MESSAGE_LIMITS = {
66
43
  errorMessage: 4_000,
67
44
  toolBudget: 400_000,
68
45
  };
69
- /** Whole-result character budget for a list read. One message is always returned. */
70
46
  export const SESSION_READ_RESULT_BUDGET = 200_000;
71
47
  class Clipper {
72
48
  limits;
@@ -82,7 +58,6 @@ class Clipper {
82
58
  this.truncated = true;
83
59
  return `${value.slice(0, limit)}…[+${value.length - limit} chars; read this message by messageId for more]`;
84
60
  }
85
- /** Small JSON values stay structured; large ones become a clipped JSON string. */
86
61
  json(value, limit) {
87
62
  if (value === undefined)
88
63
  return undefined;
@@ -122,7 +97,6 @@ function richTokens(value) {
122
97
  cache: cache ? compact({ read: num(cache.read), write: num(cache.write) }) : undefined,
123
98
  });
124
99
  }
125
- /** v2 `Session.StructuredError`; the provider response body is omitted. */
126
100
  function richV2Error(value, clip) {
127
101
  const error = rec(value);
128
102
  if (!error)
@@ -143,7 +117,6 @@ function childSessionId(tool, metadata) {
143
117
  return undefined;
144
118
  return str(metadata.sessionId)?.trim() || str(metadata.sessionID)?.trim() || undefined;
145
119
  }
146
- /** A file reference without its bytes: `data:` URLs carry the whole file, so they become `inline`. */
147
120
  function fileRef(name, mime, uri) {
148
121
  const inline = uri?.startsWith("data:") === true;
149
122
  return compact({ name, mime, uri: inline ? undefined : uri, inline: inline ? true : undefined });
@@ -151,7 +124,6 @@ function fileRef(name, mime, uri) {
151
124
  function nonEmpty(value) {
152
125
  return value && Object.keys(value).length > 0 ? value : undefined;
153
126
  }
154
- /** Keeps tool input, output and metadata within the message's tool budget. */
155
127
  function budgetTools(content, clip) {
156
128
  let budget = clip.limits.toolBudget;
157
129
  return content.map((item) => {
@@ -199,7 +171,6 @@ function v2Tool(item, clip) {
199
171
  name,
200
172
  status,
201
173
  executed: typeof item.executed === "boolean" ? item.executed : undefined,
202
- // Streaming input is the raw partial JSON text the model is still writing.
203
174
  input: clip.json(state.input, clip.limits.toolInput),
204
175
  output: clip.text(output, clip.limits.toolOutput),
205
176
  files,
@@ -243,7 +214,6 @@ function v2File(value) {
243
214
  return fileRef(str(file.name), str(file.mime), str(source.uri));
244
215
  return compact({ name: str(file.name), mime: str(file.mime), inline: true });
245
216
  }
246
- /** Maps one native v2 `Session.Message.Info`. Unknown future types keep id, type and time. */
247
217
  export function richV2Message(row, limits, options = {}) {
248
218
  if (!isRecord(row))
249
219
  return null;
@@ -338,7 +308,6 @@ export function richV2Message(row, limits, options = {}) {
338
308
  const metadata = options.includeMetadata ? clip.json(nonEmpty(rec(row.metadata)), limits.toolMetadata) : undefined;
339
309
  return compact({ ...base, ...fields, metadata, truncated: clip.truncated ? true : undefined });
340
310
  }
341
- /** v1 errors are `{ name, data: { message } }`. */
342
311
  function richV1Error(value, clip) {
343
312
  const error = rec(value);
344
313
  if (!error)
@@ -377,7 +346,6 @@ function v1Tool(part, clip) {
377
346
  };
378
347
  return compact(call);
379
348
  }
380
- /** Maps one v1 `{ info, parts }` message into the same shape as v2. */
381
349
  export function richV1Message(message, limits, options = {}) {
382
350
  if (!isRecord(message))
383
351
  return null;
@@ -453,10 +421,6 @@ export function richV1Message(message, limits, options = {}) {
453
421
  truncated: clip.truncated ? true : undefined,
454
422
  });
455
423
  }
456
- /**
457
- * The newest (from end) or oldest (from start) messages that fit the result
458
- * budget, in chronological order. Always keeps at least one message.
459
- */
460
424
  export function fitSessionReadBudget(messages, from, budget = SESSION_READ_RESULT_BUDGET) {
461
425
  const ordered = from === "end" ? [...messages].reverse() : messages;
462
426
  const kept = [];
@@ -16,7 +16,6 @@ export function correctWorkspaceRoot(system, directory) {
16
16
  export function workspaceFileGuidance(directory) {
17
17
  return `The opened workspace directory is ${JSON.stringify(promptWorkspacePath(directory))}. For files requested in this workspace, prefer plain relative names such as report.html; native file tools save them inside this directory. Do not invent /workspace or a drive-root location. On Windows, drive-less rooted file paths such as /report.html or \\report.html are interpreted relative to this workspace, with the actual destination reported. Explicit full drive paths and UNC paths retain external-folder permissions. Do not bypass a denied path using another tool.`;
18
18
  }
19
- /** Only drive-less rooted syntax changes. Fully qualified and shell-drive forms keep native semantics. */
20
19
  export function workspaceRootedPath(input, directory) {
21
20
  if (!/^[\\/]/.test(input))
22
21
  return undefined;
@@ -58,7 +57,6 @@ export async function planWorkspacePaths(tool, args, directory, options = {}) {
58
57
  const resolved = workspaceRootedPath(requested, directory);
59
58
  if (!resolved)
60
59
  return requested;
61
- // Explicit folder grants continue to use the engine's original destination/permission flow.
62
60
  const original = tool === "apply_patch" ? win32.resolve(directory, requested) : win32.resolve(options.cwd ?? process.cwd(), requested);
63
61
  if (await options.externalAllowed?.(original))
64
62
  return requested;
@@ -74,7 +72,6 @@ export async function planWorkspacePaths(tool, args, directory, options = {}) {
74
72
  return undefined;
75
73
  const lines = args.patchText.split("\n");
76
74
  for (let index = 0; index < lines.length; index++) {
77
- // Match the pinned v1 parser's source/move headers, not added/context lines.
78
75
  const match = /^(\*\*\* (?:Add File|Update File|Delete File|Move to):[ \t]*)([^\r]*)(\r?)$/.exec(lines[index]);
79
76
  if (match)
80
77
  lines[index] = match[1] + await path(match[2].trim()) + match[3];
@@ -88,7 +85,6 @@ export function workspaceFileHooks(context, options = {}) {
88
85
  if (!context?.directory || !nativeMutations.has(input.toolID))
89
86
  return;
90
87
  output.description += `\n\n${workspaceFileGuidance(context.directory)}`;
91
- // Pinned v1 file schemas; runtime validation remains the engine's original schema.
92
88
  const filePath = { type: "string", description: "Path to the file. Prefer a plain workspace-relative name such as report.html; relative paths are saved in the opened workspace. Explicit full external paths retain folder permissions." };
93
89
  if (input.toolID === "write")
94
90
  output.jsonSchema = { type: "object", properties: { content: { type: "string", description: "The content to write" }, filePath }, required: ["content", "filePath"] };
@@ -111,7 +107,6 @@ export function workspaceFileHooks(context, options = {}) {
111
107
  throw new Error("Could not check external-folder grants; no workspace path was changed. Retry the operation.");
112
108
  const rules = rulesFromPermissionConfig(response.data.permission);
113
109
  const grant = winningRule(rules, "external_directory", win32.join(win32.dirname(original), "*"));
114
- // A blanket run-mode allow is not an explicit destination choice.
115
110
  return grant?.permission === "external_directory" && grant.action === "allow" && grant.pattern !== "*";
116
111
  },
117
112
  });