shoud-cli 3.0.6 → 3.0.8

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/bin/shoud.js CHANGED
@@ -1,4 +1,13 @@
1
1
  #!/usr/bin/env node
2
+ // Force UTF-8 on Windows consoles so box-drawing chars render correctly
3
+ if (process.platform === 'win32') {
4
+ try {
5
+ require('child_process').execSync('chcp 65001 > nul', { stdio: 'ignore' });
6
+ } catch (_) {}
7
+ }
8
+ // Optional: ensure Node's stdout uses UTF-8
9
+ try { process.stdout.setDefaultEncoding('utf8'); } catch (_) {}
10
+
2
11
  const pkg = require('../package.json');
3
12
  const { program } = require('commander');
4
13
  const chalk = require('chalk');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoud-cli",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
4
4
  "description": "SHOUD Terminal Agent: Give your computer a job.",
5
5
  "main": "bin/shoud.js",
6
6
  "bin": {
@@ -214,6 +214,12 @@ async function executeTask(job) {
214
214
  .filter(c => c.type === 'text')
215
215
  .map(t => t.text).join('\n');
216
216
 
217
+ // Detect test-cheating: did the agent modify package.json scripts?
218
+ const pkgChanged = job.changedFiles.includes('package.json');
219
+ if (pkgChanged) {
220
+ console.log(chalk.yellow('\n⚠ package.json was modified. Review before trusting verification.'));
221
+ }
222
+
217
223
  // ── 8. Verification ──────────────────────────────────────
218
224
  if (verificationCommands.length) {
219
225
  console.log(chalk.cyan('\n● Agent claims completion. Verifying...'));