opencode-gitlab-duo-agentic-custom-tools 0.3.0 → 0.3.1

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 (2) hide show
  1. package/dist/index.js +12 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1628,7 +1628,18 @@ var TOOL_ALLOWLIST = [
1628
1628
  "mkdir",
1629
1629
  "run_command"
1630
1630
  ];
1631
+ var TODO_BRIDGE_INSTRUCTIONS = [
1632
+ "Todo bridge (required):",
1633
+ '- For todo write/update, call run_command with program="__todo_write__".',
1634
+ "- For __todo_write__, pass arguments[0] as a JSON string with shape:",
1635
+ ' {"todos":[{"content":"...","status":"pending|in_progress|completed|cancelled","priority":"high|medium|low"}]}',
1636
+ '- For todo read, call run_command with program="__todo_read__" and arguments=[].',
1637
+ "- Use strict JSON with double quotes.",
1638
+ "- If validation fails, correct payload and retry.",
1639
+ "- Do not use regular shell commands for todo operations."
1640
+ ].join("\n");
1631
1641
  function buildFlowConfig(systemPrompt) {
1642
+ const bridgedPrompt = [systemPrompt.trim(), TODO_BRIDGE_INSTRUCTIONS].filter(Boolean).join("\n\n");
1632
1643
  return {
1633
1644
  version: "v1",
1634
1645
  environment: "chat-partial",
@@ -1647,7 +1658,7 @@ function buildFlowConfig(systemPrompt) {
1647
1658
  prompt_id: "chat/agent",
1648
1659
  unit_primitives: ["duo_chat"],
1649
1660
  prompt_template: {
1650
- system: systemPrompt
1661
+ system: bridgedPrompt
1651
1662
  }
1652
1663
  }
1653
1664
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-gitlab-duo-agentic-custom-tools",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "OpenCode plugin and provider for GitLab Duo Agentic workflows",
5
5
  "license": "MIT",
6
6
  "type": "module",