@tanagram/cli 0.5.33 → 0.5.35

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.
Binary file
Binary file
Binary file
Binary file
Binary file
package/install.js CHANGED
@@ -174,6 +174,35 @@ function installClaudeSkill() {
174
174
  }
175
175
  }
176
176
 
177
+ function ensureOpenCode() {
178
+ if (isCIEnvironment()) {
179
+ return;
180
+ }
181
+
182
+ const { execSync } = require('child_process');
183
+
184
+ // Check if opencode is already installed
185
+ try {
186
+ execSync('opencode --version', { stdio: 'ignore' });
187
+ console.error('✓ OpenCode already installed');
188
+ return;
189
+ } catch {
190
+ // Not installed, proceed
191
+ }
192
+
193
+ console.error('Installing OpenCode (LLM agent runtime)...');
194
+
195
+ try {
196
+ execSync('npm install -g opencode-ai', { stdio: 'pipe' });
197
+ console.error('✓ OpenCode installed successfully');
198
+ track('cli.opencode.install.success');
199
+ } catch (err) {
200
+ console.error('Warning: Failed to install OpenCode globally:', err.message);
201
+ console.error(' You can install it manually: npm install -g opencode-ai');
202
+ track('cli.opencode.install.failure', { error: err.message });
203
+ }
204
+ }
205
+
177
206
  // Main installation flow
178
207
  (async () => {
179
208
  // Check if this is a first-time install (no .tanagram directory exists)
@@ -191,6 +220,9 @@ function installClaudeSkill() {
191
220
  // Install Claude skill
192
221
  installClaudeSkill();
193
222
 
223
+ // Install OpenCode (LLM agent for eval)
224
+ ensureOpenCode();
225
+
194
226
  // Track install success
195
227
  track('cli.install.success');
196
228
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanagram/cli",
3
- "version": "0.5.33",
3
+ "version": "0.5.35",
4
4
  "description": "Tanagram - Catch sloppy code before it ships",
5
5
  "main": "index.js",
6
6
  "bin": {