openwork-server 0.18.73 → 0.18.74
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.
- package/dist/opencode-plugin-deps-1.18.33.tgz +0 -0
- package/dist/opencode-plugins/cloud-coding-turn-release.js +58 -0
- package/dist/opencode-plugins/computer-routing-v2.js +77 -0
- package/dist/opencode-plugins/openwork-agent-permissions-v2.js +14 -3
- package/dist/opencode-plugins/openwork-chrome-devtools.js +2 -2
- package/dist/opencode-plugins/openwork-context-v2.js +348 -65
- package/dist/opencode-plugins/openwork-extensions-preview.js +456 -4
- package/dist/opencode-plugins/openwork-gateway-quota-v2.js +41 -1
- package/dist/opencode-plugins/openwork-gateway-quota.js +41 -1
- package/dist/opencode-plugins/openwork-mcp-results-v2.js +164 -14
- package/dist/opencode-plugins/openwork-mcp-server-events-v2.js +111 -0
- package/dist/opencode-plugins/openwork-mcp-server-skills-v2.js +176 -0
- package/dist/opencode-plugins/openwork-private-values-v2.js +15 -4
- package/dist/opencode-plugins/openwork-private-values.js +15 -4
- package/dist/opencode-plugins/openwork-provider-adapters.js +27 -1
- package/dist/opencode-plugins/openwork-provider-keys-v2.js +67 -0
- package/dist/opencode-plugins/openwork-sandbox-v2.js +1477 -10
- package/dist/opencode-plugins/private-values-tool.js +1 -1
- package/dist/openwork-server.mjs +66764 -5037
- package/package.json +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-CT7h6RSR.js → abnfDiagram-VCTEODGH-C1Gri9T8.js} +1 -1
- package/web/assets/{app-DDsVI393.js → app-CoFPYBYF.js} +542 -526
- package/web/assets/app-aKrWzh-_.css +32 -0
- package/web/assets/{arc-DrdxwkS1.js → arc-DcBBW_Q9.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-BHmeLgIo.js → architectureDiagram-5GKGNRK7-CTnuu2og.js} +1 -1
- package/web/assets/{artifact-code-view-BGAA8-Ej.js → artifact-code-view-CVhOSCb2.js} +1 -1
- package/web/assets/{artifact-office-preview-CCkdmKIT.js → artifact-office-preview-DHx-nPK0.js} +1 -1
- package/web/assets/{artifact-spreadsheet-editor-CMs_-Fs-.js → artifact-spreadsheet-editor-CyLsgBTK.js} +1 -1
- package/web/assets/{artifact-text-editor-TtuV8SdE.js → artifact-text-editor-4rrtf0C2.js} +1 -1
- package/web/assets/{blockDiagram-OSKFZWR5-CQ3xUn93.js → blockDiagram-OSKFZWR5-DbHntwyh.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-s1wM6Iib.js → c4Diagram-7LVT6UL2-DPjlygzs.js} +1 -1
- package/web/assets/channel-UI6sNcoO.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-BZGXkEN4.js → chunk-2Q5K7J3B-CwWe3fjf.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-C0tCaGEn.js → chunk-5VM5RSS4-D6ahhVKI.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-CGT4AvxR.js → chunk-F27PBJKO-CKHJE6FB.js} +1 -1
- package/web/assets/{chunk-HLEWEB6X-BUm0nTzw.js → chunk-HLEWEB6X-CpB4YFh9.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-BrmOFhXE.js → chunk-JWPE2WC7-CuGkPOY8.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-D0Red1rH.js → chunk-POPQ4Y6H-BNCy4Rnz.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-BOfUyMpo.js → chunk-SVP7TREG-BRLZtRG2.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-DdDJLBr5.js → chunk-XXDRQBXY-BXUFFdz9.js} +1 -1
- package/web/assets/{chunk-ZLD2IHE6-CtgRsQI9.js → chunk-ZLD2IHE6-DgSq1MWh.js} +1 -1
- package/web/assets/classDiagram-CYGNFDIV-Cwqk7Tox.js +1 -0
- package/web/assets/classDiagram-v2-TLXNO2FR-Cwqk7Tox.js +1 -0
- package/web/assets/{cose-bilkent-JH36ORCC-C2GkVjI-.js → cose-bilkent-JH36ORCC-BNS5x2WS.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-290exk3b.js → cynefin-OW5HDTMX-xcD6kiaN.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-Bn4pzfGg.js → cynefinDiagram-5FMLGOSQ-Uh07MG7J.js} +1 -1
- package/web/assets/{dagre-OS7QT2EB-pvGtPuBl.js → dagre-OS7QT2EB-BR2ZK2Ka.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-CWs5HWfs.js → diagram-S7CK7UJ4-CkeF04XL.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-DAtsBm-A.js → diagram-UQ7AKVKN-tszgJvn1.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-B0Z-KH-p.js → diagram-VSXAHHWV-vQ_L10cP.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-Bz5GVlm5.js → diagram-VX7I27RA-DhttrIa4.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-BhwH3kbC.js → diagram-Z3DM3KII-CSOtexfx.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-CIEcjysp.js → ebnfDiagram-PWID7BFC-DrXIeAI2.js} +1 -1
- package/web/assets/{erDiagram-2YWLMYGG-BrdXGtuT.js → erDiagram-2YWLMYGG-B6eY49sP.js} +1 -1
- package/web/assets/{flowDiagram-T62WH6J4-DskTn8O1.js → flowDiagram-T62WH6J4-BSWkKNsB.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-OCmeEDkw.js → ganttDiagram-EL5Y4UJY-DjLWzUnc.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-BuhI6DQ1.js → gitGraphDiagram-WWUBYQGX-DLix_KEt.js} +1 -1
- package/web/assets/{infoDiagram-FKFFQAWI-C3k38hJ_.js → infoDiagram-FKFFQAWI-Qk5Rwj1J.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-C6Hpxc9K.js → ishikawaDiagram-5VMMS53U-BYnLLj60.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-C7KcOJMH.js → journeyDiagram-EYS64GPL-DWbjv9jB.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-ZcMziysx.js → kanban-definition-UXKFOSKX-DBKDdN7W.js} +1 -1
- package/web/assets/{layout-DzriRV2A.js → layout-C3nuFW6O.js} +1 -1
- package/web/assets/{linear-DL_T580R.js → linear-yuvoF7oC.js} +1 -1
- package/web/assets/{mermaid.core-C4R8NQRz.js → mermaid.core-Cf_HDEwk.js} +6 -6
- package/web/assets/{mindmap-definition-THT77NOG-n6izCCQf.js → mindmap-definition-THT77NOG-CLlmGHfy.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-BADF-j9h.js → pegDiagram-XKGWAZYB-DF2jK0hL.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-BtdHIRbI.js → pieDiagram-E7YTZNPT-B7D6K8Dy.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-DhbkPfnT.js → quadrantDiagram-AXDQQJYC-BJs4k_-l.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-BlyQ_Gry.js → railroadDiagram-O6MQD6OU-Bvh8M0tG.js} +1 -1
- package/web/assets/{requirementDiagram-IS5BZ75X-BzIoUxA6.js → requirementDiagram-IS5BZ75X-LojIE3iY.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-qPG2gCyL.js → sankeyDiagram-P5KCCOFB-DDgsHbe_.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-Bx12LmjC.js → sequenceDiagram-WJ2MYXX4-B0n0qkKj.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-CvyuDIwF.js → sizeCapture-INFHLROL-dvjrjvhR.js} +1 -1
- package/web/assets/{stateDiagram-XQSTLZYL-DU9RhZb1.js → stateDiagram-XQSTLZYL-6R2ncL9w.js} +1 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-C3zcPvlu.js +1 -0
- package/web/assets/{swimlanes-V6O3JKXN-CTXpVjqj.js → swimlanes-V6O3JKXN-NgTb-Uz5.js} +1 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-CA7dhlYX.js +8 -0
- package/web/assets/{timeline-definition-24CTP7MA-U_izIFdJ.js → timeline-definition-24CTP7MA-2H_ljVU0.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-DWquLtuy.js → vennDiagram-4TSXK5OY-BKJ-Jni_.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-CH8aTVHX.js → wardleyDiagram-VM6X3IG4-BY36Sv2N.js} +1 -1
- package/web/assets/{workspace-file-tree-CmGwayaP.js → workspace-file-tree-C2bTmTtl.js} +7 -7
- package/web/assets/{xlsx-workbook-DcK1GLDS.js → xlsx-workbook-B0y0zWAe.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-r1FFIWA_.js → xychartDiagram-S5SC5T6Z-DabU-r2I.js} +1 -1
- package/web/index.html +2 -2
- package/web/assets/app-BinIaXyk.css +0 -32
- package/web/assets/channel-DUquWRxW.js +0 -1
- package/web/assets/classDiagram-CYGNFDIV-D5L4nTet.js +0 -1
- package/web/assets/classDiagram-v2-TLXNO2FR-D5L4nTet.js +0 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-iZjygJwL.js +0 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-GfrjbmAb.js +0 -8
|
@@ -37202,7 +37202,7 @@ function date4(params) {
|
|
|
37202
37202
|
}
|
|
37203
37203
|
// ../../packages/types/src/den/agent-permissions.ts
|
|
37204
37204
|
var AGENT_PERMISSION_DECISIONS = ["allow", "ask", "deny"];
|
|
37205
|
-
var AGENT_PERMISSION_ACTIONS = ["shell", "edit", "webfetch", "websearch", "skill", "mcp", "external_directory", "computer", "computer_files", "computer_clipboard", "script", "browser_upload", "file_send", "host_execution", "sandbox_opt_out", "private_value_fill", "private_value_command", "private_value_paste", "private_value_terminal", "private_value_run"];
|
|
37205
|
+
var AGENT_PERMISSION_ACTIONS = ["shell", "edit", "webfetch", "websearch", "skill", "mcp", "mcp_skill", "external_directory", "computer", "computer_files", "computer_clipboard", "script", "browser_upload", "file_send", "host_execution", "sandbox_opt_out", "private_value_fill", "private_value_command", "private_value_paste", "private_value_terminal", "private_value_run"];
|
|
37206
37206
|
var agentPermissionDefinitions = [
|
|
37207
37207
|
{
|
|
37208
37208
|
key: "commands",
|
|
@@ -37362,7 +37362,7 @@ var agentPermissionDefinitions = [
|
|
|
37362
37362
|
key: "privateValueRuns",
|
|
37363
37363
|
section: "privateValues",
|
|
37364
37364
|
label: "Give private values to programs",
|
|
37365
|
-
description: "Programs the agent runs with a private value in their environment or in a file only they read, such as a deploy script that needs a token. The member approves
|
|
37365
|
+
description: "Programs the agent runs with a private value in their environment or in a file only they read, such as a deploy script that needs a token. The member approves each run on a card, or chooses Always there for one chat, and the agent sees what the program prints with every value hidden.",
|
|
37366
37366
|
action: "private_value_run",
|
|
37367
37367
|
control: "choice",
|
|
37368
37368
|
decisions: ["allow", "deny"],
|
|
@@ -37408,6 +37408,16 @@ var agentPermissionDefinitions = [
|
|
|
37408
37408
|
control: "toggle",
|
|
37409
37409
|
patterns: null,
|
|
37410
37410
|
patternNoun: null
|
|
37411
|
+
},
|
|
37412
|
+
{
|
|
37413
|
+
key: "mcpServerSkills",
|
|
37414
|
+
section: "extensions",
|
|
37415
|
+
label: "Use skills from MCP servers",
|
|
37416
|
+
description: "Skills that MCP servers added on the member's computer offer the agent. The organization's skills in OpenWork Cloud are not affected.",
|
|
37417
|
+
action: "mcp_skill",
|
|
37418
|
+
control: "toggle",
|
|
37419
|
+
patterns: null,
|
|
37420
|
+
patternNoun: null
|
|
37411
37421
|
}
|
|
37412
37422
|
];
|
|
37413
37423
|
var agentPermissionKeys = agentPermissionDefinitions.map((definition) => definition.key);
|
|
@@ -37648,7 +37658,8 @@ var BLOCKED_SUBJECT = {
|
|
|
37648
37658
|
sandbox_opt_out: () => "working without the OpenWork Sandbox",
|
|
37649
37659
|
websearch: () => "searching the web",
|
|
37650
37660
|
skill: (resource) => resource === "*" ? "local skills" : `the local skill "${resource}"`,
|
|
37651
|
-
mcp: (resource) => resource === "*" ? "local MCP servers" : `the local MCP server "${resource}"
|
|
37661
|
+
mcp: (resource) => resource === "*" ? "local MCP servers" : `the local MCP server "${resource}"`,
|
|
37662
|
+
mcp_skill: () => "skills from MCP servers"
|
|
37652
37663
|
};
|
|
37653
37664
|
function agentPermissionDenialMessage(rule, resource) {
|
|
37654
37665
|
const by = rule.resource === "*" ? `set for ${rule.source}` : `"${rule.resource}" is blocked for ${rule.source}`;
|
|
@@ -38113,7 +38124,7 @@ var usePrivateValuesArgs = {
|
|
|
38113
38124
|
})).min(1).max(4).optional().describe("Secrets in the answer to keep for this chat instead of showing you.")
|
|
38114
38125
|
}).optional().describe("One https request. Give run or request, never both.")
|
|
38115
38126
|
};
|
|
38116
|
-
var usePrivateValuesDescription = "Give private values (tokens, passwords, keys, account numbers) to one program or one https request without seeing them. Decide on your own which values are private: anything the person would not want you to read. Each value comes from a command that prints it, such as a password manager's CLI, or from the person pasting it on a card. The person approves every use on a card that shows the exact command or request. Use this whenever a program or API needs a value you should not read: never print, cat or echo such a value in a terminal, and never ask for it in chat. With run, the program gets each value in the named environment variable, or a private file whose path is there, in the workspace folder. With request, write {{NAME}} where each value goes in a header or the body, never in the URL; redirects are not followed. You get back what the program printed or the response, with every value replaced by [secret].
|
|
38127
|
+
var usePrivateValuesDescription = "Give private values (tokens, passwords, keys, account numbers) to one program or one https request without seeing them. Decide on your own which values are private: anything the person would not want you to read. Each value comes from a command that prints it, such as a password manager's CLI, or from the person pasting it on a card. The person approves every use on a card that shows the exact command or request. Use this whenever a program or API needs a value you should not read: never print, cat or echo such a value in a terminal, and never ask for it in chat. With run, the program gets each value in the named environment variable, or a private file whose path is there, in the workspace folder. With request, write {{NAME}} where each value goes in a header or the body, never in the URL; redirects are not followed. You get back what the program printed or the response, with every value replaced by [secret]. A command's value is fetched again each time. A value the person pastes can be kept for this chat when they choose that on the card: ask for it under the same NAME, for the same program or site, and they have nothing to paste again. When several steps need the same value, do them in one program so the person approves once. The card is the person's whole answer: never ask in chat whether they pasted or approved it. When a request's JSON answer holds a new secret, such as an access token from a token endpoint, list it in request.seal: it is kept for this chat, never shown to you, and you send it later with a value { name, ask: <the sealed name> } in a request to its for origin.";
|
|
38117
38128
|
var schema = exports_external.object(usePrivateValuesArgs);
|
|
38118
38129
|
function record4(value) {
|
|
38119
38130
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -36832,7 +36832,7 @@ function date4(params) {
|
|
|
36832
36832
|
}
|
|
36833
36833
|
// ../../packages/types/src/den/agent-permissions.ts
|
|
36834
36834
|
var AGENT_PERMISSION_DECISIONS = ["allow", "ask", "deny"];
|
|
36835
|
-
var AGENT_PERMISSION_ACTIONS = ["shell", "edit", "webfetch", "websearch", "skill", "mcp", "external_directory", "computer", "computer_files", "computer_clipboard", "script", "browser_upload", "file_send", "host_execution", "sandbox_opt_out", "private_value_fill", "private_value_command", "private_value_paste", "private_value_terminal", "private_value_run"];
|
|
36835
|
+
var AGENT_PERMISSION_ACTIONS = ["shell", "edit", "webfetch", "websearch", "skill", "mcp", "mcp_skill", "external_directory", "computer", "computer_files", "computer_clipboard", "script", "browser_upload", "file_send", "host_execution", "sandbox_opt_out", "private_value_fill", "private_value_command", "private_value_paste", "private_value_terminal", "private_value_run"];
|
|
36836
36836
|
var agentPermissionDefinitions = [
|
|
36837
36837
|
{
|
|
36838
36838
|
key: "commands",
|
|
@@ -36992,7 +36992,7 @@ var agentPermissionDefinitions = [
|
|
|
36992
36992
|
key: "privateValueRuns",
|
|
36993
36993
|
section: "privateValues",
|
|
36994
36994
|
label: "Give private values to programs",
|
|
36995
|
-
description: "Programs the agent runs with a private value in their environment or in a file only they read, such as a deploy script that needs a token. The member approves
|
|
36995
|
+
description: "Programs the agent runs with a private value in their environment or in a file only they read, such as a deploy script that needs a token. The member approves each run on a card, or chooses Always there for one chat, and the agent sees what the program prints with every value hidden.",
|
|
36996
36996
|
action: "private_value_run",
|
|
36997
36997
|
control: "choice",
|
|
36998
36998
|
decisions: ["allow", "deny"],
|
|
@@ -37038,6 +37038,16 @@ var agentPermissionDefinitions = [
|
|
|
37038
37038
|
control: "toggle",
|
|
37039
37039
|
patterns: null,
|
|
37040
37040
|
patternNoun: null
|
|
37041
|
+
},
|
|
37042
|
+
{
|
|
37043
|
+
key: "mcpServerSkills",
|
|
37044
|
+
section: "extensions",
|
|
37045
|
+
label: "Use skills from MCP servers",
|
|
37046
|
+
description: "Skills that MCP servers added on the member's computer offer the agent. The organization's skills in OpenWork Cloud are not affected.",
|
|
37047
|
+
action: "mcp_skill",
|
|
37048
|
+
control: "toggle",
|
|
37049
|
+
patterns: null,
|
|
37050
|
+
patternNoun: null
|
|
37041
37051
|
}
|
|
37042
37052
|
];
|
|
37043
37053
|
var agentPermissionKeys = agentPermissionDefinitions.map((definition) => definition.key);
|
|
@@ -37278,7 +37288,8 @@ var BLOCKED_SUBJECT = {
|
|
|
37278
37288
|
sandbox_opt_out: () => "working without the OpenWork Sandbox",
|
|
37279
37289
|
websearch: () => "searching the web",
|
|
37280
37290
|
skill: (resource) => resource === "*" ? "local skills" : `the local skill "${resource}"`,
|
|
37281
|
-
mcp: (resource) => resource === "*" ? "local MCP servers" : `the local MCP server "${resource}"
|
|
37291
|
+
mcp: (resource) => resource === "*" ? "local MCP servers" : `the local MCP server "${resource}"`,
|
|
37292
|
+
mcp_skill: () => "skills from MCP servers"
|
|
37282
37293
|
};
|
|
37283
37294
|
function agentPermissionDenialMessage(rule, resource) {
|
|
37284
37295
|
const by = rule.resource === "*" ? `set for ${rule.source}` : `"${rule.resource}" is blocked for ${rule.source}`;
|
|
@@ -38113,7 +38124,7 @@ var usePrivateValuesArgs = {
|
|
|
38113
38124
|
})).min(1).max(4).optional().describe("Secrets in the answer to keep for this chat instead of showing you.")
|
|
38114
38125
|
}).optional().describe("One https request. Give run or request, never both.")
|
|
38115
38126
|
};
|
|
38116
|
-
var usePrivateValuesDescription = "Give private values (tokens, passwords, keys, account numbers) to one program or one https request without seeing them. Decide on your own which values are private: anything the person would not want you to read. Each value comes from a command that prints it, such as a password manager's CLI, or from the person pasting it on a card. The person approves every use on a card that shows the exact command or request. Use this whenever a program or API needs a value you should not read: never print, cat or echo such a value in a terminal, and never ask for it in chat. With run, the program gets each value in the named environment variable, or a private file whose path is there, in the workspace folder. With request, write {{NAME}} where each value goes in a header or the body, never in the URL; redirects are not followed. You get back what the program printed or the response, with every value replaced by [secret].
|
|
38127
|
+
var usePrivateValuesDescription = "Give private values (tokens, passwords, keys, account numbers) to one program or one https request without seeing them. Decide on your own which values are private: anything the person would not want you to read. Each value comes from a command that prints it, such as a password manager's CLI, or from the person pasting it on a card. The person approves every use on a card that shows the exact command or request. Use this whenever a program or API needs a value you should not read: never print, cat or echo such a value in a terminal, and never ask for it in chat. With run, the program gets each value in the named environment variable, or a private file whose path is there, in the workspace folder. With request, write {{NAME}} where each value goes in a header or the body, never in the URL; redirects are not followed. You get back what the program printed or the response, with every value replaced by [secret]. A command's value is fetched again each time. A value the person pastes can be kept for this chat when they choose that on the card: ask for it under the same NAME, for the same program or site, and they have nothing to paste again. When several steps need the same value, do them in one program so the person approves once. The card is the person's whole answer: never ask in chat whether they pasted or approved it. When a request's JSON answer holds a new secret, such as an access token from a token endpoint, list it in request.seal: it is kept for this chat, never shown to you, and you send it later with a value { name, ask: <the sealed name> } in a request to its for origin.";
|
|
38117
38128
|
var schema = exports_external.object(usePrivateValuesArgs);
|
|
38118
38129
|
function record4(value) {
|
|
38119
38130
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -295,6 +295,31 @@ function automationContribution() {
|
|
|
295
295
|
guidance: [],
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
+
function agentContribution() {
|
|
299
|
+
const provider = { id: "openwork-agents", kind: "builtin" };
|
|
300
|
+
return {
|
|
301
|
+
featureId: "agents",
|
|
302
|
+
provider,
|
|
303
|
+
affordances: [
|
|
304
|
+
affordance({
|
|
305
|
+
id: "agent.propose",
|
|
306
|
+
kind: "command",
|
|
307
|
+
title: "Propose an agent",
|
|
308
|
+
description: "Offer an agent of the person's own, with its first routine, for them to start with one confirmation. This only renders a \"Start like this?\" card in the chat; it cannot create or run anything. Use it only where the chat's instructions say to set up an agent. Propose before checking tools or connections.",
|
|
309
|
+
provider,
|
|
310
|
+
arguments: [
|
|
311
|
+
argument("name", "string", true, "Short name for the agent taken from its job, two or three words with only the first capitalized, e.g. \"Bug watcher\"."),
|
|
312
|
+
argument("brief", "string", true, "The agent's standing brief as Markdown, written from what the person said: what it watches or does, how it decides, what it never does."),
|
|
313
|
+
argument("never", "array", false, 'Things the person said the agent must never do, each { app, action? } in their words, e.g. { app: "Slack", action: "post message" }. OpenWork turns them into blocked tools.'),
|
|
314
|
+
argument("connectorNames", "array", false, 'Names of connections the person explicitly asked to use or that the job clearly needs, e.g. ["Slack"]. Do not look up tools or connections before proposing. Leave out services they said not to use; pass [] when no connection is needed.'),
|
|
315
|
+
argument("routine", "object", true, "Its first routine: { name (short, e.g. \"Check #bugs\"), instructions (what one run does), schedule }. The schedule is one of, with every number a JSON number and timezone an IANA zone: { kind: \"daily\", timezone, hour: 0-23, minute: 0-59 }; { kind: \"weekly\", timezone, daysOfWeek: [1,2,3,4,5] (numbers, 0 = Sunday), hour, minute }; { kind: \"interval\", timezone, everyHours: 1-24, daysOfWeek: [1,2,3,4,5], startHour: 0-23, endHour: 1-24 } for every few hours on the hour. Pick a sensible default yourself when the person named none."),
|
|
316
|
+
],
|
|
317
|
+
effects: noEffects,
|
|
318
|
+
}),
|
|
319
|
+
],
|
|
320
|
+
guidance: [],
|
|
321
|
+
};
|
|
322
|
+
}
|
|
298
323
|
function extensionContribution() {
|
|
299
324
|
const provider = { id: "openwork-extensions", kind: "extension" };
|
|
300
325
|
return {
|
|
@@ -385,13 +410,14 @@ function mcpContribution(mcp) {
|
|
|
385
410
|
guidance: [],
|
|
386
411
|
};
|
|
387
412
|
}
|
|
388
|
-
export function buildOpenworkProviderContributions(skills, mcps = []) {
|
|
413
|
+
export function buildOpenworkProviderContributions(skills, mcps = [], personalAgentsEnabled = false) {
|
|
389
414
|
const cloudMcp = mcps.find((mcp) => mcp.name === "openwork-cloud");
|
|
390
415
|
const connect = connectContribution(skills, cloudMcp);
|
|
391
416
|
return [
|
|
392
417
|
sessionContribution(),
|
|
393
418
|
sessionGroupContribution(),
|
|
394
419
|
automationContribution(),
|
|
420
|
+
...(personalAgentsEnabled ? [agentContribution()] : []),
|
|
395
421
|
extensionContribution(),
|
|
396
422
|
...mcps
|
|
397
423
|
.filter((mcp) => mcp.name !== "openwork-cloud")
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
12
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
20
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
|
+
for (let key of __getOwnPropNames(mod))
|
|
23
|
+
if (!__hasOwnProp.call(to, key))
|
|
24
|
+
__defProp(to, key, {
|
|
25
|
+
get: __accessProp.bind(mod, key),
|
|
26
|
+
enumerable: true
|
|
27
|
+
});
|
|
28
|
+
if (canCache)
|
|
29
|
+
cache.set(mod, to);
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
33
|
+
var __returnValue = (v) => v;
|
|
34
|
+
function __exportSetter(name, newValue) {
|
|
35
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
36
|
+
}
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, {
|
|
40
|
+
get: all[name],
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
set: __exportSetter.bind(all, name)
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
47
|
+
|
|
48
|
+
// src/opencode-plugins/openwork-provider-keys-v2.ts
|
|
49
|
+
var CREDENTIAL_FREE_INTEGRATION_ID = "openwork-provider-key";
|
|
50
|
+
var openwork_provider_keys_v2_default = {
|
|
51
|
+
id: "openwork.provider-keys",
|
|
52
|
+
async setup(context) {
|
|
53
|
+
const registration = await context.provider.transform((editor) => {
|
|
54
|
+
for (const id of context.options.providers ?? []) {
|
|
55
|
+
editor.update(id, (provider) => {
|
|
56
|
+
provider.integrationID = CREDENTIAL_FREE_INTEGRATION_ID;
|
|
57
|
+
provider.activation = "enabled";
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return () => registration.dispose();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
openwork_provider_keys_v2_default as default,
|
|
66
|
+
CREDENTIAL_FREE_INTEGRATION_ID
|
|
67
|
+
};
|