@ymdvsymd/tornado 0.7.1 → 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
@@ -1,4 +1,4 @@
1
- #\!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  function _M0DTPB4Json4Null() {}
3
3
  _M0DTPB4Json4Null.prototype.$tag = 0;
4
4
  const _M0DTPB4Json4Null__ = new _M0DTPB4Json4Null();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ymdvsymd/tornado",
3
- "version": "0.7.1",
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
+ });