openwork-server 0.18.62 → 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.33.tgz +0 -0
  2. package/dist/opencode-plugins/drive-file-tools.js +18 -3
  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 +7868 -1967
  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 +13560 -6350
  17. package/package.json +1 -1
  18. package/web/assets/{abnfDiagram-VCTEODGH-DJzrT8Ql.js → abnfDiagram-VCTEODGH-BSIb81ug.js} +1 -1
  19. package/web/assets/app-Bx1ym5U0.css +32 -0
  20. package/web/assets/{app-_2KkkZIM.js → app-DZr96oX3.js} +482 -447
  21. package/web/assets/{arc-KehB1xN5.js → arc-BTCnV0Ha.js} +1 -1
  22. package/web/assets/{architectureDiagram-5GKGNRK7-C_GL2639.js → architectureDiagram-5GKGNRK7-3IgeX1_6.js} +1 -1
  23. package/web/assets/{artifact-code-view-CYn_58gV.js → artifact-code-view-ZP8nVuQx.js} +1 -1
  24. package/web/assets/{artifact-spreadsheet-editor-f6V-tYvi.js → artifact-spreadsheet-editor-BW94PK45.js} +1 -1
  25. package/web/assets/{artifact-text-editor-CiSlW3kl.js → artifact-text-editor-BhIcTcNi.js} +1 -1
  26. package/web/assets/{blockDiagram-OSKFZWR5-DErH-7gY.js → blockDiagram-OSKFZWR5-d1pNUfi4.js} +1 -1
  27. package/web/assets/{c4Diagram-7LVT6UL2-aML4z_n9.js → c4Diagram-7LVT6UL2-BTVoP_gs.js} +1 -1
  28. package/web/assets/channel-DqkU7DUB.js +1 -0
  29. package/web/assets/{chunk-2Q5K7J3B-Dw_IH9rW.js → chunk-2Q5K7J3B-BIy8BDgC.js} +1 -1
  30. package/web/assets/{chunk-5VM5RSS4-aeJEQ945.js → chunk-5VM5RSS4-BDvSSuPz.js} +1 -1
  31. package/web/assets/{chunk-F27PBJKO-hZwti-Oc.js → chunk-F27PBJKO-CqT02j1I.js} +1 -1
  32. package/web/assets/{chunk-HLEWEB6X-JFNzm3Ge.js → chunk-HLEWEB6X-DOSYJ6qO.js} +1 -1
  33. package/web/assets/{chunk-JWPE2WC7-B34hvYk7.js → chunk-JWPE2WC7-BLJ5TLJ6.js} +1 -1
  34. package/web/assets/{chunk-POPQ4Y6H-CDqgEp-q.js → chunk-POPQ4Y6H-TRvB63--.js} +1 -1
  35. package/web/assets/{chunk-SVP7TREG-B65ta9aQ.js → chunk-SVP7TREG-Bz6HrnA2.js} +1 -1
  36. package/web/assets/{chunk-XXDRQBXY-DjTi6c9m.js → chunk-XXDRQBXY-wBuvw6SP.js} +1 -1
  37. package/web/assets/{chunk-ZLD2IHE6-CbviXFvb.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-Cl9SO5zd.js → cose-bilkent-JH36ORCC-CISbKtKO.js} +1 -1
  41. package/web/assets/{cynefin-OW5HDTMX-CAcz2tHt.js → cynefin-OW5HDTMX-Dk7vIkhw.js} +1 -1
  42. package/web/assets/{cynefinDiagram-5FMLGOSQ-BJHft4FO.js → cynefinDiagram-5FMLGOSQ-C3bIjcy0.js} +1 -1
  43. package/web/assets/{dagre-OS7QT2EB-DbdnY1uS.js → dagre-OS7QT2EB-BsP75gf5.js} +1 -1
  44. package/web/assets/{diagram-S7CK7UJ4-C07WD5Lc.js → diagram-S7CK7UJ4-B4K-iSz7.js} +1 -1
  45. package/web/assets/{diagram-UQ7AKVKN-D8VCjq9x.js → diagram-UQ7AKVKN-bly7AwhV.js} +1 -1
  46. package/web/assets/{diagram-VSXAHHWV-D1XSfMnK.js → diagram-VSXAHHWV-DObKajM9.js} +1 -1
  47. package/web/assets/{diagram-VX7I27RA-3GZe-yrf.js → diagram-VX7I27RA-SQp5kc6I.js} +1 -1
  48. package/web/assets/{diagram-Z3DM3KII-CI43WcIB.js → diagram-Z3DM3KII-BmaqS6Rw.js} +1 -1
  49. package/web/assets/{ebnfDiagram-PWID7BFC-CTzouade.js → ebnfDiagram-PWID7BFC-BOhK-9Al.js} +1 -1
  50. package/web/assets/{erDiagram-2YWLMYGG-CNcqsnqx.js → erDiagram-2YWLMYGG-DP0d4SRU.js} +1 -1
  51. package/web/assets/{flowDiagram-T62WH6J4-pomAqjgF.js → flowDiagram-T62WH6J4-CJLvattq.js} +1 -1
  52. package/web/assets/{ganttDiagram-EL5Y4UJY-C1dNaxxj.js → ganttDiagram-EL5Y4UJY-Dzi8suyh.js} +1 -1
  53. package/web/assets/{gitGraphDiagram-WWUBYQGX-Ni8GECg1.js → gitGraphDiagram-WWUBYQGX-D-xOZUu9.js} +1 -1
  54. package/web/assets/{infoDiagram-FKFFQAWI-C0kvE7Zu.js → infoDiagram-FKFFQAWI-CTR7Ei2k.js} +1 -1
  55. package/web/assets/{ishikawaDiagram-5VMMS53U-CxmP_irp.js → ishikawaDiagram-5VMMS53U-CBf51Qea.js} +1 -1
  56. package/web/assets/{journeyDiagram-EYS64GPL-60GkPgH5.js → journeyDiagram-EYS64GPL-ZumMGF2u.js} +1 -1
  57. package/web/assets/{kanban-definition-UXKFOSKX-ByxcB0T_.js → kanban-definition-UXKFOSKX-81Fni8Sl.js} +1 -1
  58. package/web/assets/{layout-BD9ef90s.js → layout-D-HFg0Gy.js} +1 -1
  59. package/web/assets/{linear-Dp9l0lBr.js → linear-lAHomfjd.js} +1 -1
  60. package/web/assets/{mermaid.core-FKm3Akes.js → mermaid.core-sRbhnZ3C.js} +6 -6
  61. package/web/assets/{mindmap-definition-THT77NOG-i7WJlWHV.js → mindmap-definition-THT77NOG-t_uxFNYx.js} +1 -1
  62. package/web/assets/{pegDiagram-XKGWAZYB-DfI-LsJq.js → pegDiagram-XKGWAZYB-B4FryuiE.js} +1 -1
  63. package/web/assets/{pieDiagram-E7YTZNPT-kcgWYBSb.js → pieDiagram-E7YTZNPT-DrIgLewj.js} +1 -1
  64. package/web/assets/{quadrantDiagram-AXDQQJYC-DVyziZnc.js → quadrantDiagram-AXDQQJYC-DifmQS8L.js} +1 -1
  65. package/web/assets/{railroadDiagram-O6MQD6OU-CWgHq9nv.js → railroadDiagram-O6MQD6OU-C76a1ZKv.js} +1 -1
  66. package/web/assets/{requirementDiagram-IS5BZ75X-B7fgi4lz.js → requirementDiagram-IS5BZ75X-CT_K8F_V.js} +1 -1
  67. package/web/assets/{sankeyDiagram-P5KCCOFB-D1-pD_qh.js → sankeyDiagram-P5KCCOFB-DWQLcVQR.js} +1 -1
  68. package/web/assets/{sequenceDiagram-WJ2MYXX4-B6oeRmVj.js → sequenceDiagram-WJ2MYXX4-aTZD72z2.js} +1 -1
  69. package/web/assets/{sizeCapture-INFHLROL-BTpKGFt5.js → sizeCapture-INFHLROL-BzVHqyuK.js} +1 -1
  70. package/web/assets/{stateDiagram-XQSTLZYL-zXJRxE6h.js → stateDiagram-XQSTLZYL-D9BpFjx0.js} +1 -1
  71. package/web/assets/stateDiagram-v2-IH3M54BS-B7xLeFMx.js +1 -0
  72. package/web/assets/{swimlanes-V6O3JKXN-Dc7MXPb3.js → swimlanes-V6O3JKXN-DiN46HW4.js} +1 -1
  73. package/web/assets/swimlanesDiagram-JKAHXJPX-C1vbqhAp.js +8 -0
  74. package/web/assets/{timeline-definition-24CTP7MA-DYhgbnjW.js → timeline-definition-24CTP7MA-CJZAuVpz.js} +1 -1
  75. package/web/assets/{vennDiagram-4TSXK5OY-DRnme7za.js → vennDiagram-4TSXK5OY-d5RgWEF0.js} +1 -1
  76. package/web/assets/{wardleyDiagram-VM6X3IG4-wAoo4GsZ.js → wardleyDiagram-VM6X3IG4-DP1nzuP1.js} +1 -1
  77. package/web/assets/{workspace-file-tree-DmAwvqtx.js → workspace-file-tree-iodkCqW9.js} +1 -1
  78. package/web/assets/{xychartDiagram-S5SC5T6Z-_Z_TOWBn.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-7oM0ncHI.js +0 -1
  82. package/web/assets/classDiagram-CYGNFDIV-BkidFauP.js +0 -1
  83. package/web/assets/classDiagram-v2-TLXNO2FR-BkidFauP.js +0 -1
  84. package/web/assets/stateDiagram-v2-IH3M54BS-CmwZ6tXj.js +0 -1
  85. package/web/assets/swimlanesDiagram-JKAHXJPX-BXoJEx2b.js +0 -8
@@ -21,6 +21,21 @@ export const drivePushFileArgs = z.object({
21
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."),
22
22
  name: z.string().min(1).max(255).optional().describe("Name for a copy."),
23
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
+ };
24
39
  function isRecord(value) {
25
40
  return typeof value === "object" && value !== null && !Array.isArray(value);
26
41
  }
@@ -35,7 +50,7 @@ async function askPermission(context, permission, patterns, metadata) {
35
50
  export function createDriveFileTools(call) {
36
51
  return {
37
52
  drive_pull_file: {
38
- 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.",
53
+ description: DRIVE_FILE_TOOLS.drive_pull_file.description,
39
54
  args: drivePullFileArgs.shape,
40
55
  async execute(rawArgs, context) {
41
56
  const args = drivePullFileArgs.parse(rawArgs ?? {});
@@ -45,14 +60,14 @@ export function createDriveFileTools(call) {
45
60
  },
46
61
  },
47
62
  drive_file_status: {
48
- 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.",
63
+ description: DRIVE_FILE_TOOLS.drive_file_status.description,
49
64
  args: driveFileStatusArgs.shape,
50
65
  async execute(rawArgs, context) {
51
66
  return JSON.stringify(await call("drive_file_status", driveFileStatusArgs.parse(rawArgs ?? {}), context), null, 2);
52
67
  },
53
68
  },
54
69
  drive_push_file: {
55
- 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.",
70
+ description: DRIVE_FILE_TOOLS.drive_push_file.description,
56
71
  args: drivePushFileArgs.shape,
57
72
  async execute(rawArgs, context) {
58
73
  const args = drivePushFileArgs.parse(rawArgs ?? {});