@ymdvsymd/tornado 0.7.0 → 0.7.2

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/tornado.js CHANGED
@@ -10636,7 +10636,12 @@ function _M0FP36mizchi7tornado5agent15create__backend(config) {
10636
10636
  return _M0MP36mizchi7tornado5agent10ApiBackend5boxed(_M0MP36mizchi7tornado5agent10ApiBackend17anthropic_2einner(api_key, model$3));
10637
10637
  }
10638
10638
  default: {
10639
- return _M0MP36mizchi7tornado5agent11MockBackend5boxed(_M0MP36mizchi7tornado5agent11MockBackend11new_2einner("mock response"));
10639
+ const _bind$2 = config.role;
10640
+ if (_bind$2 === 4) {
10641
+ return _M0MP36mizchi7tornado5agent11MockBackend5boxed(_M0MP36mizchi7tornado5agent11MockBackend11new_2einner("<wave_approved>"));
10642
+ } else {
10643
+ return _M0MP36mizchi7tornado5agent11MockBackend5boxed(_M0MP36mizchi7tornado5agent11MockBackend11new_2einner("mock response"));
10644
+ }
10640
10645
  }
10641
10646
  }
10642
10647
  }
@@ -12162,7 +12167,7 @@ function _M0MP36mizchi7tornado5ralph13VerifierAgent14parse__verdict(_self, outpu
12162
12167
  if (_M0MPC16string6String8contains(output, new _M0TPC16string10StringView(_bind, 0, _bind.length))) {
12163
12168
  return _M0DTP36mizchi7tornado5types15VerifierVerdict8Approved__;
12164
12169
  }
12165
- return _M0DTP36mizchi7tornado5types15VerifierVerdict8Approved__;
12170
+ return new _M0DTP36mizchi7tornado5types15VerifierVerdict15MilestoneFailed("Verifier output did not contain expected verdict tags");
12166
12171
  }
12167
12172
  function _M0FP36mizchi7tornado5ralph24inject__perspective__tag(item, perspective) {
12168
12173
  const tag = `[${_M0IP016_24default__implPB4Show10to__stringGRP36mizchi7tornado5ralph19VerifierPerspectiveE(perspective)}] `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ymdvsymd/tornado",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "Multi-agent development orchestrator with TUI",
5
5
  "bin": {
6
6
  "tornado": "bin/tornado.js"
@@ -0,0 +1,13 @@
1
+ import test from 'node:test';
2
+ import assert from 'node:assert/strict';
3
+ import { readFileSync } from 'node:fs';
4
+
5
+ test('bin/tornado.js has valid shebang without backslash escaping', () => {
6
+ const buf = readFileSync('bin/tornado.js');
7
+ // 先頭2バイトが #! (0x23 0x21) であること
8
+ assert.equal(buf[0], 0x23, 'first byte should be # (0x23)');
9
+ assert.equal(buf[1], 0x21, 'second byte should be ! (0x21), not \\! (0x5c 0x21)');
10
+ // 完全な shebang 行の検証
11
+ const firstLine = buf.toString('utf8').split('\n')[0];
12
+ assert.equal(firstLine, '#!/usr/bin/env node');
13
+ });