openwork-server 0.18.61 → 0.18.63

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 (85) hide show
  1. package/dist/{opencode-plugin-deps-1.18.30.tgz → opencode-plugin-deps-1.18.33.tgz} +0 -0
  2. package/dist/opencode-plugins/drive-file-tools.js +25 -8
  3. package/dist/opencode-plugins/managed-policy-next.js +7771 -1881
  4. package/dist/opencode-plugins/openwork-agent-permissions-v2.js +7772 -1885
  5. package/dist/opencode-plugins/openwork-capabilities-knowledge.js +7795 -1908
  6. package/dist/opencode-plugins/openwork-chrome-devtools.js +7734 -1847
  7. package/dist/opencode-plugins/openwork-computer-use.js +7774 -1887
  8. package/dist/opencode-plugins/openwork-context-v2.js +7954 -1892
  9. package/dist/opencode-plugins/openwork-extensions-preview.js +7874 -1971
  10. package/dist/opencode-plugins/openwork-gateway-quota-v2.js +7742 -1855
  11. package/dist/opencode-plugins/openwork-gateway-quota.js +7743 -1856
  12. package/dist/opencode-plugins/openwork-pdf-attachments.js +8032 -2145
  13. package/dist/opencode-plugins/openwork-spreadsheets.js +7809 -1922
  14. package/dist/opencode-plugins/openwork-visible-reasoning-v2.js +153 -0
  15. package/dist/opencode-plugins/provider-safe-tool-schema.js +57 -0
  16. package/dist/openwork-server.mjs +13858 -6371
  17. package/package.json +1 -1
  18. package/web/assets/{abnfDiagram-VCTEODGH-DGCabXot.js → abnfDiagram-VCTEODGH-BSIb81ug.js} +1 -1
  19. package/web/assets/app-Bx1ym5U0.css +32 -0
  20. package/web/assets/{app-Cy3sY2K8.js → app-DZr96oX3.js} +482 -447
  21. package/web/assets/{arc-OJTfUP9L.js → arc-BTCnV0Ha.js} +1 -1
  22. package/web/assets/{architectureDiagram-5GKGNRK7-Ch0Zt81S.js → architectureDiagram-5GKGNRK7-3IgeX1_6.js} +1 -1
  23. package/web/assets/{artifact-code-view-CSo8dBet.js → artifact-code-view-ZP8nVuQx.js} +1 -1
  24. package/web/assets/{artifact-spreadsheet-editor-DG2AL4aO.js → artifact-spreadsheet-editor-BW94PK45.js} +1 -1
  25. package/web/assets/{artifact-text-editor-BKs1cI6V.js → artifact-text-editor-BhIcTcNi.js} +1 -1
  26. package/web/assets/{blockDiagram-OSKFZWR5-Dur4PitI.js → blockDiagram-OSKFZWR5-d1pNUfi4.js} +1 -1
  27. package/web/assets/{c4Diagram-7LVT6UL2-DN-qrh5o.js → c4Diagram-7LVT6UL2-BTVoP_gs.js} +1 -1
  28. package/web/assets/channel-DqkU7DUB.js +1 -0
  29. package/web/assets/{chunk-2Q5K7J3B-BSmk0dam.js → chunk-2Q5K7J3B-BIy8BDgC.js} +1 -1
  30. package/web/assets/{chunk-5VM5RSS4-BwAmjLhK.js → chunk-5VM5RSS4-BDvSSuPz.js} +1 -1
  31. package/web/assets/{chunk-F27PBJKO-DLKbY_DS.js → chunk-F27PBJKO-CqT02j1I.js} +1 -1
  32. package/web/assets/{chunk-HLEWEB6X-s4I3BuHN.js → chunk-HLEWEB6X-DOSYJ6qO.js} +1 -1
  33. package/web/assets/{chunk-JWPE2WC7-LslAnaQK.js → chunk-JWPE2WC7-BLJ5TLJ6.js} +1 -1
  34. package/web/assets/{chunk-POPQ4Y6H-e0_lKBGk.js → chunk-POPQ4Y6H-TRvB63--.js} +1 -1
  35. package/web/assets/{chunk-SVP7TREG-CBKOSsQl.js → chunk-SVP7TREG-Bz6HrnA2.js} +1 -1
  36. package/web/assets/{chunk-XXDRQBXY-Bwqkh7ZD.js → chunk-XXDRQBXY-wBuvw6SP.js} +1 -1
  37. package/web/assets/{chunk-ZLD2IHE6-anLhhsDd.js → chunk-ZLD2IHE6-CsK6m1Sk.js} +1 -1
  38. package/web/assets/classDiagram-CYGNFDIV-C-Tb50QW.js +1 -0
  39. package/web/assets/classDiagram-v2-TLXNO2FR-C-Tb50QW.js +1 -0
  40. package/web/assets/{cose-bilkent-JH36ORCC-CCj043X5.js → cose-bilkent-JH36ORCC-CISbKtKO.js} +1 -1
  41. package/web/assets/{cynefin-OW5HDTMX-BGWD-i0N.js → cynefin-OW5HDTMX-Dk7vIkhw.js} +1 -1
  42. package/web/assets/{cynefinDiagram-5FMLGOSQ-ZWq_C5SK.js → cynefinDiagram-5FMLGOSQ-C3bIjcy0.js} +1 -1
  43. package/web/assets/{dagre-OS7QT2EB-In3Mah_T.js → dagre-OS7QT2EB-BsP75gf5.js} +1 -1
  44. package/web/assets/{diagram-S7CK7UJ4-DaTd6oXD.js → diagram-S7CK7UJ4-B4K-iSz7.js} +1 -1
  45. package/web/assets/{diagram-UQ7AKVKN-D3jwCd_v.js → diagram-UQ7AKVKN-bly7AwhV.js} +1 -1
  46. package/web/assets/{diagram-VSXAHHWV-CsK-_hfn.js → diagram-VSXAHHWV-DObKajM9.js} +1 -1
  47. package/web/assets/{diagram-VX7I27RA-BBLQ2mL7.js → diagram-VX7I27RA-SQp5kc6I.js} +1 -1
  48. package/web/assets/{diagram-Z3DM3KII-CUM2PN0X.js → diagram-Z3DM3KII-BmaqS6Rw.js} +1 -1
  49. package/web/assets/{ebnfDiagram-PWID7BFC-BjJTJ9Vr.js → ebnfDiagram-PWID7BFC-BOhK-9Al.js} +1 -1
  50. package/web/assets/{erDiagram-2YWLMYGG-BhjMQMDs.js → erDiagram-2YWLMYGG-DP0d4SRU.js} +1 -1
  51. package/web/assets/{flowDiagram-T62WH6J4-KrGbrW-t.js → flowDiagram-T62WH6J4-CJLvattq.js} +1 -1
  52. package/web/assets/{ganttDiagram-EL5Y4UJY-Co_OE6ls.js → ganttDiagram-EL5Y4UJY-Dzi8suyh.js} +1 -1
  53. package/web/assets/{gitGraphDiagram-WWUBYQGX-BxM4C4Ti.js → gitGraphDiagram-WWUBYQGX-D-xOZUu9.js} +1 -1
  54. package/web/assets/{infoDiagram-FKFFQAWI-C8YaW3a6.js → infoDiagram-FKFFQAWI-CTR7Ei2k.js} +1 -1
  55. package/web/assets/{ishikawaDiagram-5VMMS53U-MPTb2C9Y.js → ishikawaDiagram-5VMMS53U-CBf51Qea.js} +1 -1
  56. package/web/assets/{journeyDiagram-EYS64GPL-Dzq-vllP.js → journeyDiagram-EYS64GPL-ZumMGF2u.js} +1 -1
  57. package/web/assets/{kanban-definition-UXKFOSKX-DWhE5bnH.js → kanban-definition-UXKFOSKX-81Fni8Sl.js} +1 -1
  58. package/web/assets/{layout-CMyIV62W.js → layout-D-HFg0Gy.js} +1 -1
  59. package/web/assets/{linear-CX-tWibZ.js → linear-lAHomfjd.js} +1 -1
  60. package/web/assets/{mermaid.core-DcgS6fFC.js → mermaid.core-sRbhnZ3C.js} +6 -6
  61. package/web/assets/{mindmap-definition-THT77NOG-CJzNRYpk.js → mindmap-definition-THT77NOG-t_uxFNYx.js} +1 -1
  62. package/web/assets/{pegDiagram-XKGWAZYB-BSIi724T.js → pegDiagram-XKGWAZYB-B4FryuiE.js} +1 -1
  63. package/web/assets/{pieDiagram-E7YTZNPT-CoArMhZD.js → pieDiagram-E7YTZNPT-DrIgLewj.js} +1 -1
  64. package/web/assets/{quadrantDiagram-AXDQQJYC-B9HoxOyK.js → quadrantDiagram-AXDQQJYC-DifmQS8L.js} +1 -1
  65. package/web/assets/{railroadDiagram-O6MQD6OU-C-aYV4dU.js → railroadDiagram-O6MQD6OU-C76a1ZKv.js} +1 -1
  66. package/web/assets/{requirementDiagram-IS5BZ75X-DHPnVlti.js → requirementDiagram-IS5BZ75X-CT_K8F_V.js} +1 -1
  67. package/web/assets/{sankeyDiagram-P5KCCOFB-DlxAwgv1.js → sankeyDiagram-P5KCCOFB-DWQLcVQR.js} +1 -1
  68. package/web/assets/{sequenceDiagram-WJ2MYXX4-DzVPZb2m.js → sequenceDiagram-WJ2MYXX4-aTZD72z2.js} +1 -1
  69. package/web/assets/{sizeCapture-INFHLROL-BkwjaMAx.js → sizeCapture-INFHLROL-BzVHqyuK.js} +1 -1
  70. package/web/assets/{stateDiagram-XQSTLZYL-DIeNtdWj.js → stateDiagram-XQSTLZYL-D9BpFjx0.js} +1 -1
  71. package/web/assets/stateDiagram-v2-IH3M54BS-B7xLeFMx.js +1 -0
  72. package/web/assets/{swimlanes-V6O3JKXN-CPUSs3Tj.js → swimlanes-V6O3JKXN-DiN46HW4.js} +1 -1
  73. package/web/assets/swimlanesDiagram-JKAHXJPX-C1vbqhAp.js +8 -0
  74. package/web/assets/{timeline-definition-24CTP7MA-CjBwDFJH.js → timeline-definition-24CTP7MA-CJZAuVpz.js} +1 -1
  75. package/web/assets/{vennDiagram-4TSXK5OY-DOsoEsMT.js → vennDiagram-4TSXK5OY-d5RgWEF0.js} +1 -1
  76. package/web/assets/{wardleyDiagram-VM6X3IG4-_fhLZdvF.js → wardleyDiagram-VM6X3IG4-DP1nzuP1.js} +1 -1
  77. package/web/assets/{workspace-file-tree-CTzNl5A5.js → workspace-file-tree-iodkCqW9.js} +1 -1
  78. package/web/assets/{xychartDiagram-S5SC5T6Z-D4Kz81TF.js → xychartDiagram-S5SC5T6Z-Bh1aCFiI.js} +1 -1
  79. package/web/index.html +2 -2
  80. package/web/assets/app-CkmqBm_1.css +0 -32
  81. package/web/assets/channel-68fpiRG4.js +0 -1
  82. package/web/assets/classDiagram-CYGNFDIV-Z4CG2h2d.js +0 -1
  83. package/web/assets/classDiagram-v2-TLXNO2FR-Z4CG2h2d.js +0 -1
  84. package/web/assets/stateDiagram-v2-IH3M54BS-CZR_2wND.js +0 -1
  85. package/web/assets/swimlanesDiagram-JKAHXJPX-C1Sms2Ey.js +0 -8
@@ -1,13 +1,15 @@
1
1
  import { z } from "zod";
2
2
  // The host performs these actions for its signed-in caller, as with drive_upload_file. Agents use these tools, which ask before writes.
3
3
  export const DRIVE_FILE_ACTIONS = ["drive_pull_file", "drive_file_status", "drive_push_file"];
4
- const connectionId = z.string().regex(/^(google-workspace|emc_[A-Za-z0-9]+)$/).optional()
5
- .describe("Selected Google Workspace connection; omit for the default. Unavailable selections never fall back to another account.");
4
+ const connectionId = z.string().regex(/^(google-workspace|microsoft-365|emc_[A-Za-z0-9]+)$/).optional()
5
+ .describe("Selected Google Workspace or Microsoft 365 connection; omit for the default. Unavailable selections never fall back to another account.");
6
6
  const workspacePath = z.string().min(1).max(4096);
7
7
  export const drivePullFileArgs = z.object({
8
- fileId: z.string().min(1).max(2048).describe("Drive file ID or link."),
8
+ fileId: z.string().min(1).max(2048).describe("Google Drive file ID or link, or a OneDrive, SharePoint or Teams file link or item id."),
9
+ driveId: z.string().min(1).max(512).optional().describe("Microsoft 365 only: the driveId that came with the item id from a search or folder listing."),
10
+ provider: z.enum(["google-workspace", "microsoft-365"]).optional().describe("Only needed for a Microsoft item id without driveId; links and driveId identify Microsoft 365 files."),
9
11
  path: workspacePath.optional().describe("Workspace path to save to. Defaults to drive/<file name>."),
10
- format: z.string().regex(/^[a-z]{2,5}$/).optional().describe("Docs, Sheets, Slides and Drawings only: xlsx, csv (first tab only), docx, md, txt, pptx, pdf, png or svg."),
12
+ format: z.string().regex(/^[a-z]{2,5}$/).optional().describe("Docs, Sheets, Slides and Drawings: xlsx, csv (first tab only), docx, md, txt, pptx, pdf, png or svg. OneDrive and SharePoint: pdf converts an Office file."),
11
13
  connectionId,
12
14
  overwrite: z.boolean().optional().describe("Replace a local copy even if it has edits not in Drive. Asks the person first."),
13
15
  }).strict();
@@ -16,9 +18,24 @@ export const driveFileStatusArgs = z.object({
16
18
  }).strict();
17
19
  export const drivePushFileArgs = z.object({
18
20
  path: workspacePath.describe("Workspace path of a pulled file."),
19
- mode: z.enum(["replace", "copy"]).optional().describe("replace (default for stored files) updates the same Drive file; copy saves a new file next to it."),
21
+ mode: z.enum(["replace", "copy"]).optional().describe("replace (default for stored files) updates the same file; copy saves a new file next to it."),
20
22
  name: z.string().min(1).max(255).optional().describe("Name for a copy."),
21
23
  }).strict();
24
+ /** What the model sees for each tool; v1 tools and the v2 context plugin share these. */
25
+ export const DRIVE_FILE_TOOLS = {
26
+ drive_pull_file: {
27
+ description: "Save a Google Drive, OneDrive or SharePoint file into the workspace and return its path and revision, never its content. Use it to analyze or edit Office, PDF, CSV or any large file with shell tools. Docs, Sheets and Slides arrive as docx, xlsx and pptx unless format says otherwise.",
28
+ args: drivePullFileArgs,
29
+ },
30
+ drive_file_status: {
31
+ description: "For files pulled with drive_pull_file, report whether the local copy has edits not saved back and whether the file changed in Drive, OneDrive or SharePoint since the pull.",
32
+ args: driveFileStatusArgs,
33
+ },
34
+ drive_push_file: {
35
+ description: "Save a pulled file back to where it came from when the person asks. Asks the person first. Stored files, including Office files in OneDrive and SharePoint, are replaced in place as a new version; Google Docs, Sheets and Slides and PDF conversions are saved as a new file next to the original. Returns drive_conflict, and changes nothing, when someone changed the file since the pull: pull it again and reapply the edits, or save a copy.",
36
+ args: drivePushFileArgs,
37
+ },
38
+ };
22
39
  function isRecord(value) {
23
40
  return typeof value === "object" && value !== null && !Array.isArray(value);
24
41
  }
@@ -33,7 +50,7 @@ async function askPermission(context, permission, patterns, metadata) {
33
50
  export function createDriveFileTools(call) {
34
51
  return {
35
52
  drive_pull_file: {
36
- description: "Save a Google Drive file into the workspace and return its path and revision, never its content. Use it to analyze or edit Office, PDF, CSV or any large file with shell tools. Docs, Sheets and Slides arrive as docx, xlsx and pptx unless format says otherwise.",
53
+ description: DRIVE_FILE_TOOLS.drive_pull_file.description,
37
54
  args: drivePullFileArgs.shape,
38
55
  async execute(rawArgs, context) {
39
56
  const args = drivePullFileArgs.parse(rawArgs ?? {});
@@ -43,14 +60,14 @@ export function createDriveFileTools(call) {
43
60
  },
44
61
  },
45
62
  drive_file_status: {
46
- description: "For files pulled with drive_pull_file, report whether the local copy has edits not saved to Drive and whether the file changed in Drive since the pull.",
63
+ description: DRIVE_FILE_TOOLS.drive_file_status.description,
47
64
  args: driveFileStatusArgs.shape,
48
65
  async execute(rawArgs, context) {
49
66
  return JSON.stringify(await call("drive_file_status", driveFileStatusArgs.parse(rawArgs ?? {}), context), null, 2);
50
67
  },
51
68
  },
52
69
  drive_push_file: {
53
- description: "Save a pulled file back to Google Drive when the person asks. Asks the person first. Stored files are replaced in place as a new Drive version; Docs, Sheets and Slides are saved as a new Google file next to the original. Returns drive_conflict, and changes nothing, when someone changed the file in Drive since the pull: pull it again and reapply the edits, or save a copy.",
70
+ description: DRIVE_FILE_TOOLS.drive_push_file.description,
54
71
  args: drivePushFileArgs.shape,
55
72
  async execute(rawArgs, context) {
56
73
  const args = drivePushFileArgs.parse(rawArgs ?? {});