@2digits/opencode-plugin 0.1.16 → 0.1.17

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 +17 -17
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import r from"dedent";import{tool as i}from"@opencode-ai/plugin";import s from"d
8
8
  Provide a detailed explanation of what went wrong and what the user expected to happen.
9
9
  This will be used as the issue body.
10
10
  `}),context:i.schema.string().meta({title:"Relevant code or conversation snippets",description:s`
11
- Show the before and after code or conversation snippets that triggered the issue.
11
+ Show the before and after code or conversation snippets that triggered the issue.
12
12
  `}),suggestedRule:i.schema.string().meta({title:"Suggested rule",description:s`
13
13
  Propose a rule to prevent this happening in the future.
14
14
  Keep in mind that the rule should be specific and not too broad.
@@ -42,28 +42,28 @@ _Created via \`/fix\` command in OpenCode_
42
42
  --title ${n} \
43
43
  --body ${c} \
44
44
  --label agent-feedback`.text()).trim()}`}})}var l=r`
45
- Submit feedback about something the agent did wrong or could improve.
45
+ Submit feedback about something the agent did wrong or could improve.
46
46
 
47
- ## Instructions
47
+ ## Instructions
48
48
 
49
- 1. Ask clarifying questions to understand:
50
- - What specifically went wrong?
51
- - What should have happened instead?
52
- - Is this a recurring pattern or one-off?
49
+ 1. Ask clarifying questions to understand:
50
+ - What specifically went wrong?
51
+ - What should have happened instead?
52
+ - Is this a recurring pattern or one-off?
53
53
 
54
- 2. Use the \`create_feedback_issue\` tool with:
55
- - **title**: Concise description of the issue
56
- - **feedback**: Detailed explanation of what went wrong
57
- - **context**: Relevant code/conversation snippets
58
- - **suggestedRule**: Propose a rule to prevent this
54
+ 2. Use the \`create_feedback_issue\` tool with:
55
+ - **title**: Concise description of the issue
56
+ - **feedback**: Detailed explanation of what went wrong
57
+ - **context**: Relevant code/conversation snippets
58
+ - **suggestedRule**: Propose a rule to prevent this
59
59
 
60
- 3. Return the issue URL so user can track/discuss
60
+ 3. Return the issue URL so user can track/discuss
61
61
 
62
- ## User Input
62
+ ## User Input
63
63
 
64
- <Feedback>
65
- $ARGUMENTS
66
- </Feedback>
64
+ <Feedback>
65
+ $ARGUMENTS
66
+ </Feedback>
67
67
  `;async function p(t){return{config:async(e)=>{e.command=e.command??{},e.command.fix={description:"Submit feedback about agent behavior to improve shared rules",template:l}},"experimental.chat.system.transform":async(e,a)=>{a.system.push(r`
68
68
  Instructions from: @2digits/opencode-plugin
69
69
 
package/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "@2digits/opencode-plugin",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "OpenCode plugin for 2digits team - shared rules and feedback system",
5
+ "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
7
8
  "url": "git+https://github.com/2digits-agency/configs.git",
8
9
  "directory": "packages/opencode-plugin"
9
10
  },
10
- "type": "module",
11
- "module": "./dist/index.js",
12
- "types": "./dist/index.d.ts",
13
11
  "files": [
14
12
  "dist"
15
13
  ],
14
+ "type": "module",
15
+ "sideEffects": false,
16
+ "module": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
16
18
  "exports": {
17
19
  ".": {
18
20
  "import": {
@@ -22,15 +24,13 @@
22
24
  },
23
25
  "./package.json": "./package.json"
24
26
  },
25
- "sideEffects": false,
26
- "license": "MIT",
27
27
  "dependencies": {
28
- "@opencode-ai/plugin": "1.3.3",
28
+ "@opencode-ai/plugin": "1.3.9",
29
29
  "dedent": "1.7.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/bun": "1.3.11",
33
- "@typescript/native-preview": "7.0.0-dev.20260328.1",
33
+ "@typescript/native-preview": "7.0.0-dev.20260330.1",
34
34
  "bunup": "0.16.31",
35
35
  "typescript": "6.0.2",
36
36
  "@2digits/tsconfig": "0.8.7"