openwork-server 0.18.71 → 0.18.73

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 (105) 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 +47 -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 +91 -7
  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 +73 -10
  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-computer-use.js +4 -4
  17. package/dist/opencode-plugins/openwork-context-v2.js +116 -22
  18. package/dist/opencode-plugins/openwork-extensions-preview-steering.js +0 -16
  19. package/dist/opencode-plugins/openwork-extensions-preview.js +1 -1
  20. package/dist/opencode-plugins/openwork-office-attachments.js +1401 -10
  21. package/dist/opencode-plugins/openwork-private-values-v2.js +38262 -0
  22. package/dist/opencode-plugins/openwork-private-values.js +38173 -0
  23. package/dist/opencode-plugins/openwork-provider-adapters.js +0 -11
  24. package/dist/opencode-plugins/openwork-session-groups.js +0 -13
  25. package/dist/opencode-plugins/openwork-spreadsheets.js +1401 -10
  26. package/dist/opencode-plugins/openwork-ui-bridge.js +1 -6
  27. package/dist/opencode-plugins/private-values-filter.js +150 -0
  28. package/dist/opencode-plugins/private-values-terminal.js +28 -0
  29. package/dist/opencode-plugins/private-values-tool.js +52 -0
  30. package/dist/opencode-plugins/provider-safe-tool-schema.js +0 -10
  31. package/dist/opencode-plugins/session-read-detail.js +0 -36
  32. package/dist/opencode-plugins/workspace-file-destinations.js +0 -5
  33. package/dist/openwork-server.mjs +6044 -2988
  34. package/package.json +1 -1
  35. package/web/assets/{abnfDiagram-VCTEODGH-DlWncS8i.js → abnfDiagram-VCTEODGH-CT7h6RSR.js} +1 -1
  36. package/web/assets/app-BinIaXyk.css +32 -0
  37. package/web/assets/{app-DSUHKGsm.js → app-DDsVI393.js} +480 -472
  38. package/web/assets/{arc-BtZC6wuw.js → arc-DrdxwkS1.js} +1 -1
  39. package/web/assets/{architectureDiagram-5GKGNRK7-DTbl4Rnl.js → architectureDiagram-5GKGNRK7-BHmeLgIo.js} +1 -1
  40. package/web/assets/{artifact-code-view-Ck4sjscy.js → artifact-code-view-BGAA8-Ej.js} +1 -1
  41. package/web/assets/artifact-office-preview-CCkdmKIT.js +6 -0
  42. package/web/assets/artifact-spreadsheet-editor-CMs_-Fs-.js +4 -0
  43. package/web/assets/{artifact-text-editor-DjSmnNjJ.js → artifact-text-editor-TtuV8SdE.js} +1 -1
  44. package/web/assets/{blockDiagram-OSKFZWR5-DAYSy6DL.js → blockDiagram-OSKFZWR5-CQ3xUn93.js} +1 -1
  45. package/web/assets/{c4Diagram-7LVT6UL2-CjyvESYl.js → c4Diagram-7LVT6UL2-s1wM6Iib.js} +1 -1
  46. package/web/assets/channel-DUquWRxW.js +1 -0
  47. package/web/assets/{chunk-2Q5K7J3B-CcMgFZAV.js → chunk-2Q5K7J3B-BZGXkEN4.js} +1 -1
  48. package/web/assets/{chunk-5VM5RSS4-D4c8XRGl.js → chunk-5VM5RSS4-C0tCaGEn.js} +1 -1
  49. package/web/assets/{chunk-F27PBJKO-BnyyjaCS.js → chunk-F27PBJKO-CGT4AvxR.js} +1 -1
  50. package/web/assets/{chunk-HLEWEB6X-JXz7B5zc.js → chunk-HLEWEB6X-BUm0nTzw.js} +1 -1
  51. package/web/assets/{chunk-JWPE2WC7-CYcnmDz7.js → chunk-JWPE2WC7-BrmOFhXE.js} +1 -1
  52. package/web/assets/{chunk-POPQ4Y6H-2llTUUN7.js → chunk-POPQ4Y6H-D0Red1rH.js} +1 -1
  53. package/web/assets/{chunk-SVP7TREG-BnWFSOpJ.js → chunk-SVP7TREG-BOfUyMpo.js} +1 -1
  54. package/web/assets/{chunk-XXDRQBXY-XqHzbo0u.js → chunk-XXDRQBXY-DdDJLBr5.js} +1 -1
  55. package/web/assets/{chunk-ZLD2IHE6-Dz_IjbQJ.js → chunk-ZLD2IHE6-CtgRsQI9.js} +1 -1
  56. package/web/assets/classDiagram-CYGNFDIV-D5L4nTet.js +1 -0
  57. package/web/assets/classDiagram-v2-TLXNO2FR-D5L4nTet.js +1 -0
  58. package/web/assets/{cose-bilkent-JH36ORCC--bD81EP5.js → cose-bilkent-JH36ORCC-C2GkVjI-.js} +1 -1
  59. package/web/assets/{cynefin-OW5HDTMX-tTD-HcrI.js → cynefin-OW5HDTMX-290exk3b.js} +1 -1
  60. package/web/assets/{cynefinDiagram-5FMLGOSQ-CMslIrwy.js → cynefinDiagram-5FMLGOSQ-Bn4pzfGg.js} +1 -1
  61. package/web/assets/{dagre-OS7QT2EB-B__oM1cx.js → dagre-OS7QT2EB-pvGtPuBl.js} +1 -1
  62. package/web/assets/{diagram-S7CK7UJ4-D2ghWE6t.js → diagram-S7CK7UJ4-CWs5HWfs.js} +1 -1
  63. package/web/assets/{diagram-UQ7AKVKN-BanDxdhW.js → diagram-UQ7AKVKN-DAtsBm-A.js} +1 -1
  64. package/web/assets/{diagram-VSXAHHWV-DGvbp0xT.js → diagram-VSXAHHWV-B0Z-KH-p.js} +1 -1
  65. package/web/assets/{diagram-VX7I27RA-CThCeJli.js → diagram-VX7I27RA-Bz5GVlm5.js} +1 -1
  66. package/web/assets/{diagram-Z3DM3KII-CAt65CmM.js → diagram-Z3DM3KII-BhwH3kbC.js} +1 -1
  67. package/web/assets/{ebnfDiagram-PWID7BFC-Cp5nPs03.js → ebnfDiagram-PWID7BFC-CIEcjysp.js} +1 -1
  68. package/web/assets/{erDiagram-2YWLMYGG-HLBdDnlf.js → erDiagram-2YWLMYGG-BrdXGtuT.js} +1 -1
  69. package/web/assets/{flowDiagram-T62WH6J4-CELW8hlc.js → flowDiagram-T62WH6J4-DskTn8O1.js} +1 -1
  70. package/web/assets/{ganttDiagram-EL5Y4UJY-C7R0OzTb.js → ganttDiagram-EL5Y4UJY-OCmeEDkw.js} +1 -1
  71. package/web/assets/{gitGraphDiagram-WWUBYQGX-qBuuQIor.js → gitGraphDiagram-WWUBYQGX-BuhI6DQ1.js} +1 -1
  72. package/web/assets/{infoDiagram-FKFFQAWI-iEzBkgjk.js → infoDiagram-FKFFQAWI-C3k38hJ_.js} +1 -1
  73. package/web/assets/{ishikawaDiagram-5VMMS53U-DrK4XY4T.js → ishikawaDiagram-5VMMS53U-C6Hpxc9K.js} +1 -1
  74. package/web/assets/{journeyDiagram-EYS64GPL-CGd8HUPB.js → journeyDiagram-EYS64GPL-C7KcOJMH.js} +1 -1
  75. package/web/assets/{kanban-definition-UXKFOSKX-DQmiyxel.js → kanban-definition-UXKFOSKX-ZcMziysx.js} +1 -1
  76. package/web/assets/{layout-DLjmmpHK.js → layout-DzriRV2A.js} +1 -1
  77. package/web/assets/{linear-DHJPnkfR.js → linear-DL_T580R.js} +1 -1
  78. package/web/assets/{mermaid.core-PQNy-dHT.js → mermaid.core-C4R8NQRz.js} +6 -6
  79. package/web/assets/{mindmap-definition-THT77NOG-B5jNdC9x.js → mindmap-definition-THT77NOG-n6izCCQf.js} +1 -1
  80. package/web/assets/{pegDiagram-XKGWAZYB-wbhF-roR.js → pegDiagram-XKGWAZYB-BADF-j9h.js} +1 -1
  81. package/web/assets/{pieDiagram-E7YTZNPT-2HAV5f46.js → pieDiagram-E7YTZNPT-BtdHIRbI.js} +1 -1
  82. package/web/assets/{quadrantDiagram-AXDQQJYC-CLDLYWPn.js → quadrantDiagram-AXDQQJYC-DhbkPfnT.js} +1 -1
  83. package/web/assets/{railroadDiagram-O6MQD6OU-Be5VkSOo.js → railroadDiagram-O6MQD6OU-BlyQ_Gry.js} +1 -1
  84. package/web/assets/{requirementDiagram-IS5BZ75X-qBk4BaLm.js → requirementDiagram-IS5BZ75X-BzIoUxA6.js} +1 -1
  85. package/web/assets/{sankeyDiagram-P5KCCOFB-a-kGn14g.js → sankeyDiagram-P5KCCOFB-qPG2gCyL.js} +1 -1
  86. package/web/assets/{sequenceDiagram-WJ2MYXX4-B19t616Z.js → sequenceDiagram-WJ2MYXX4-Bx12LmjC.js} +1 -1
  87. package/web/assets/{sizeCapture-INFHLROL-CGM0ZmNa.js → sizeCapture-INFHLROL-CvyuDIwF.js} +1 -1
  88. package/web/assets/{stateDiagram-XQSTLZYL-CQYuKN4p.js → stateDiagram-XQSTLZYL-DU9RhZb1.js} +1 -1
  89. package/web/assets/stateDiagram-v2-IH3M54BS-iZjygJwL.js +1 -0
  90. package/web/assets/{swimlanes-V6O3JKXN-CvzknNlU.js → swimlanes-V6O3JKXN-CTXpVjqj.js} +1 -1
  91. package/web/assets/swimlanesDiagram-JKAHXJPX-GfrjbmAb.js +8 -0
  92. package/web/assets/{timeline-definition-24CTP7MA-BhF3gzcl.js → timeline-definition-24CTP7MA-U_izIFdJ.js} +1 -1
  93. package/web/assets/{vennDiagram-4TSXK5OY-6DNrrc2_.js → vennDiagram-4TSXK5OY-DWquLtuy.js} +1 -1
  94. package/web/assets/{wardleyDiagram-VM6X3IG4-DO0onK3t.js → wardleyDiagram-VM6X3IG4-CH8aTVHX.js} +1 -1
  95. package/web/assets/{workspace-file-tree-BCpC4HYD.js → workspace-file-tree-CmGwayaP.js} +1 -1
  96. package/web/assets/xlsx-workbook-DcK1GLDS.js +9 -0
  97. package/web/assets/{xychartDiagram-S5SC5T6Z-44sg_69l.js → xychartDiagram-S5SC5T6Z-r1FFIWA_.js} +1 -1
  98. package/web/index.html +2 -2
  99. package/web/assets/app-CfKQPy_C.css +0 -32
  100. package/web/assets/artifact-spreadsheet-editor-O5R5Qt-8.js +0 -11
  101. package/web/assets/channel-OiorT9Re.js +0 -1
  102. package/web/assets/classDiagram-CYGNFDIV-CLY7M0C9.js +0 -1
  103. package/web/assets/classDiagram-v2-TLXNO2FR-CLY7M0C9.js +0 -1
  104. package/web/assets/stateDiagram-v2-IH3M54BS-CVq-yI8K.js +0 -1
  105. package/web/assets/swimlanesDiagram-JKAHXJPX-YWNRXT7V.js +0 -8
@@ -1,10 +1,5 @@
1
1
  import { openworkModelSelectorSchema, openworkModelsListArgsSchema, } from "@openwork/types/openwork-affordance";
2
2
  import { z } from "zod";
3
- /**
4
- * An affordance's argument object. Keys it does not define are refused with
5
- * the valid names, so a wrong name (`limit` for `count`) fails loudly instead
6
- * of being dropped and silently falling back to a default.
7
- */
8
3
  export function strictArgsSchema(shape) {
9
4
  const valid = Object.keys(shape).join(", ");
10
5
  return z.strictObject(shape, {
@@ -13,7 +8,6 @@ export function strictArgsSchema(shape) {
13
8
  : undefined,
14
9
  });
15
10
  }
16
- // Epoch milliseconds or an ISO-8601 string; resolve with sessionTimestampMs.
17
11
  const sessionTimestampArgSchema = z.union([z.number().int().nonnegative(), z.string().trim().min(1)])
18
12
  .refine((value) => typeof value === "number" || Number.isFinite(Date.parse(value)), {
19
13
  message: "Expected epoch milliseconds or an ISO-8601 date string.",
@@ -57,21 +51,18 @@ export const sessionSendArgsSchema = strictArgsSchema({
57
51
  workspaceId: z.string().trim().optional().describe("Optional OpenWork workspace id/name. Omit to resolve the session across all workspaces."),
58
52
  reveal: z.boolean().optional().describe("true to also open that session in the person's focused pane after sending. Defaults to false: nothing on screen changes."),
59
53
  });
60
- /** The engine permission a person answers before the agent answers another session's question for them. */
61
54
  export const SESSION_QUESTION_ANSWER_PERMISSION = "openwork_session_question_answer";
62
55
  const sessionQuestionListArgsShape = {
63
56
  sessionId: z.string().trim().min(1).describe("Session ID from session.search or session.read."),
64
57
  workspaceId: z.string().trim().optional().describe("Optional OpenWork workspace id/name. Omit to resolve the session across all workspaces."),
65
58
  };
66
59
  export const sessionQuestionListArgsSchema = strictArgsSchema(sessionQuestionListArgsShape);
67
- // Built from the shape, not extended: an extended schema keeps the list of valid names it was made with.
68
60
  export const sessionQuestionAnswerArgsSchema = strictArgsSchema({
69
61
  ...sessionQuestionListArgsShape,
70
62
  requestId: z.string().trim().min(1).describe("Pending question id from session.question.list."),
71
63
  answers: z.array(z.array(z.string().trim().min(1).max(10_000)).min(1).max(50)).min(1).max(20)
72
64
  .describe("One array per question, in order: the chosen option labels, or the person's own text where the question allows it."),
73
65
  });
74
- /** Argument schemas by affordance id; sessionContribution must advertise exactly these keys. */
75
66
  export const sessionAffordanceArgsSchemas = {
76
67
  "models.list": openworkModelsListArgsSchema,
77
68
  "session.search": sessionSearchArgsSchema,
@@ -375,8 +366,6 @@ function connectContribution(skills, cloudMcp) {
375
366
  argument("name", "string", false, "Exact capability ref returned by Connect search or remote skill guidance."),
376
367
  argument("arguments", "object", false, "Arguments matching the search match's inputSchema."),
377
368
  argument("schemaDigest", "string", false, "Optional schema digest from the search match."),
378
- // Den keeps accepting these older inputs for a while, for callers
379
- // and older Den builds from before `arguments`.
380
369
  argument("path", "object", false, "Older form of arguments.path."),
381
370
  argument("query", "object", false, "Older form of arguments.query."),
382
371
  argument("body", "object", false, "Older form of arguments."),
@@ -1,8 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import { strictArgsSchema } from "./openwork-provider-adapters.js";
3
- // Sidebar groups live in the OpenWork server's workspace store, so the agent
4
- // changes them there directly. Nothing here needs the desktop window: the app
5
- // follows these writes through its session-group event feed.
6
3
  export const SESSION_GROUP_COMMAND_IDS = ["session.group.create", "session.group.move", "session.group.remove"];
7
4
  export const SESSION_GROUP_AFFORDANCE_IDS = ["session.group.list", ...SESSION_GROUP_COMMAND_IDS];
8
5
  const workspaceIdArg = z.string().trim().optional()
@@ -29,7 +26,6 @@ const sessionGroupStateSchema = z.object({
29
26
  assignments: z.record(z.string(), z.string()),
30
27
  }),
31
28
  });
32
- // Bounds the cleanup done alongside one command; the rest goes on the next one.
33
29
  const STALE_PRUNE_LIMIT = 50;
34
30
  function groupsPath(workspaceId, suffix = "") {
35
31
  return `/workspace/${encodeURIComponent(workspaceId)}/session-groups${suffix}`;
@@ -42,7 +38,6 @@ function describeGroups(state) {
42
38
  ? state.groups.map((group) => `${group.label} (${group.id})`).join(", ")
43
39
  : "none yet; create one with session.group.create";
44
40
  }
45
- /** An exact id wins; otherwise one case-insensitive label match. */
46
41
  function resolveGroup(state, ref) {
47
42
  const byId = state.groups.find((group) => group.id === ref);
48
43
  if (byId)
@@ -63,11 +58,6 @@ function staleSessionIds(state, live) {
63
58
  return [];
64
59
  return Object.keys(state.assignments).filter((sessionId) => !live.has(sessionId));
65
60
  }
66
- /**
67
- * Drop assignments whose session no longer exists, one key at a time so a
68
- * concurrent sidebar edit is never overwritten. Skipped when the session list
69
- * is incomplete: an unknown session is not proof that it was deleted.
70
- */
71
61
  async function pruneStaleAssignments(host, workspaceId, state, live) {
72
62
  const stale = staleSessionIds(state, live).slice(0, STALE_PRUNE_LIMIT);
73
63
  for (const sessionId of stale) {
@@ -89,7 +79,6 @@ export async function listSessionGroups(host, workspaceId) {
89
79
  ok: true,
90
80
  workspaceId,
91
81
  groups: state.groups.map((group) => ({ id: group.id, label: group.label, sessions: sessionsByGroup.get(group.id) ?? [] })),
92
- // Sessions not listed under any group are ungrouped.
93
82
  ...(stale.size ? { staleAssignments: stale.size } : {}),
94
83
  ...(live ? {} : { note: "Session titles are unavailable; deleted sessions may still be listed." }),
95
84
  };
@@ -97,7 +86,6 @@ export async function listSessionGroups(host, workspaceId) {
97
86
  export async function createSessionGroup(host, workspaceId, label) {
98
87
  const [state, live] = await Promise.all([readState(host, workspaceId), host.liveSessions(workspaceId)]);
99
88
  const pruned = await pruneStaleAssignments(host, workspaceId, state, live);
100
- // Retried or repeated requests reuse the group instead of adding a twin.
101
89
  const existing = state.groups.find((group) => group.label.trim().toLowerCase() === label.toLowerCase());
102
90
  if (existing)
103
91
  return { ok: true, workspaceId, groupId: existing.id, label: existing.label, created: false, ...(pruned ? { pruned } : {}) };
@@ -116,7 +104,6 @@ export async function moveSessionToGroup(host, workspaceId, sessionId, groupRef)
116
104
  return { ok: false, error: `Session ${sessionId} is not a task in this workspace` };
117
105
  const pruned = await pruneStaleAssignments(host, workspaceId, state, live);
118
106
  const after = sessionGroupStateSchema.parse(await host.send("PATCH", groupsPath(workspaceId, `/assignments/${encodeURIComponent(sessionId)}`), group ? { groupId: group.id } : {})).state;
119
- // The server ignores unknown groups, so confirm the saved assignment.
120
107
  if ((after.assignments[sessionId] ?? null) !== (group?.id ?? null)) {
121
108
  return { ok: false, error: `Session ${sessionId} could not be moved; read session.group.list and retry` };
122
109
  }