@aipanel/provider-opencode 1.2.26 → 1.2.28

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.
@@ -90,8 +90,7 @@ function startOpenCodeWeb(options) {
90
90
  cwd,
91
91
  env,
92
92
  reject: false,
93
- cleanup: true,
94
- shell: true
93
+ cleanup: true
95
94
  });
96
95
  proc.stdout?.on("data", (data) => {
97
96
  const output = data.toString().trim();
@@ -7,8 +7,6 @@ import {
7
7
  runAllChecks,
8
8
  runProjectDiagnostics,
9
9
  formatDiagnosticsSections,
10
- lintSectionTitle,
11
- tscSectionTitle,
12
10
  isJsFile,
13
11
  MUTATING_TOOLS,
14
12
  OPENCODE_ENV,
@@ -70,18 +68,9 @@ var edit_diagnostics_default = {
70
68
  lintEnabled: isLintEnabled()
71
69
  });
72
70
  const { eslintOutput, tscOutput } = await runAllChecks(filePath, workspace);
73
- const parts = [];
74
- if (tscOutput.rawOutput.trim()) {
75
- parts.push(`## ${tscSectionTitle(tscOutput)}
76
-
77
- ` + tscOutput.rawOutput.trim());
78
- }
79
- if (eslintOutput.text) {
80
- parts.push(`## ${lintSectionTitle(eslintOutput)}
81
-
82
- ` + eslintOutput.text);
83
- }
84
- const diagText = parts.join("\n\n");
71
+ const diagText = formatDiagnosticsSections("", eslintOutput, tscOutput, {
72
+ onlyFindings: true
73
+ });
85
74
  log.debug("Diagnostics result", {
86
75
  filePath,
87
76
  eslintError: !!eslintOutput.text,
@@ -118,8 +118,7 @@ function startOpenCodeWeb(options) {
118
118
  cwd,
119
119
  env,
120
120
  reject: false,
121
- cleanup: true,
122
- shell: true
121
+ cleanup: true
123
122
  });
124
123
  proc.stdout?.on("data", (data) => {
125
124
  const output = data.toString().trim();
@@ -90,18 +90,9 @@ var edit_diagnostics_default = {
90
90
  lintEnabled: isLintEnabled()
91
91
  });
92
92
  const { eslintOutput, tscOutput } = await (0, import_node.runAllChecks)(filePath, workspace);
93
- const parts = [];
94
- if (tscOutput.rawOutput.trim()) {
95
- parts.push(`## ${(0, import_node.tscSectionTitle)(tscOutput)}
96
-
97
- ` + tscOutput.rawOutput.trim());
98
- }
99
- if (eslintOutput.text) {
100
- parts.push(`## ${(0, import_node.lintSectionTitle)(eslintOutput)}
101
-
102
- ` + eslintOutput.text);
103
- }
104
- const diagText = parts.join("\n\n");
93
+ const diagText = (0, import_node.formatDiagnosticsSections)("", eslintOutput, tscOutput, {
94
+ onlyFindings: true
95
+ });
105
96
  log.debug("Diagnostics result", {
106
97
  filePath,
107
98
  eslintError: !!eslintOutput.text,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aipanel/provider-opencode",
3
- "version": "1.2.26",
3
+ "version": "1.2.28",
4
4
  "type": "module",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.js",
@@ -24,7 +24,7 @@
24
24
  "vitest": "^4.1.0"
25
25
  },
26
26
  "dependencies": {
27
- "@aipanel/core": "1.2.26",
27
+ "@aipanel/core": "1.2.28",
28
28
  "@opencode-ai/plugin": "^1.18.0",
29
29
  "execa": "^9.6.1"
30
30
  },