nothumanallowed 14.6.0 → 15.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nothumanallowed",
3
- "version": "14.6.0",
3
+ "version": "15.0.0",
4
4
  "description": "NotHumanAllowed — 38 AI agents, 80 tools, Studio (visual agentic workflows). Email, calendar, browser automation, screen capture, canvas, cron/heartbeat, Alexandria E2E messaging, GitHub, Notion, Slack, voice chat, free AI (Liara), 28 languages. Zero-dependency CLI.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/constants.mjs CHANGED
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'url';
5
5
  const __filename = fileURLToPath(import.meta.url);
6
6
  const __dirname = path.dirname(__filename);
7
7
 
8
- export const VERSION = '14.6.0';
8
+ export const VERSION = '15.0.0';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11
 
@@ -1936,10 +1936,9 @@ export function register(router) {
1936
1936
  _tscChecked = true;
1937
1937
  // Our own bundled tsc (from package dependency)
1938
1938
  const __dir = path.dirname(fileURLToPath(import.meta.url));
1939
- const ownTsc = path.resolve(__dir, '../../node_modules/.bin/tsc');
1940
1939
  const candidates = [
1941
- ownTsc,
1942
1940
  path.resolve(__dir, '../../../node_modules/.bin/tsc'),
1941
+ path.resolve(__dir, '../../../../node_modules/.bin/tsc'),
1943
1942
  ];
1944
1943
  // Also try global
1945
1944
  try {
@@ -1961,7 +1960,7 @@ export function register(router) {
1961
1960
 
1962
1961
  try {
1963
1962
  const { stdout, stderr } = await execAsync(
1964
- `"${tsc}" --noEmit --checkJs --allowJs --target es2020 --moduleResolution node --skipLibCheck --lib es2020,dom --strict false "${absFile}" 2>&1`,
1963
+ `"${tsc}" --noEmit --checkJs --allowJs --target es2020 --moduleResolution bundler --skipLibCheck --ignoreConfig "${absFile}" 2>&1`,
1965
1964
  { cwd: projectDir, timeout: 10000 }
1966
1965
  );
1967
1966
  const output = stdout || stderr || '';
@@ -2701,6 +2700,16 @@ function _patchEntry(projectDir, entryFile, shimDir, port) {
2701
2700
  ` } catch(e) {}`,
2702
2701
  ` return _origEnd.apply(this, arguments);`,
2703
2702
  `};`,
2703
+ `// Strip X-Frame-Options so sandbox iframe works`,
2704
+ `const _origSetHeader = require('http').ServerResponse.prototype.setHeader;`,
2705
+ `require('http').ServerResponse.prototype.setHeader = function(name, val) {`,
2706
+ ` if (name.toLowerCase() === 'x-frame-options') return this;`,
2707
+ ` if (name.toLowerCase() === 'content-security-policy' && typeof val === 'string' && val.includes('frame-ancestors')) {`,
2708
+ ` val = val.replace(/frame-ancestors[^;]*(;|$)/gi, '');`,
2709
+ ` if (!val.trim()) return this;`,
2710
+ ` }`,
2711
+ ` return _origSetHeader.call(this, name, val);`,
2712
+ `};`,
2704
2713
  `require('${entryAbs}');`,
2705
2714
  ].join('\n');
2706
2715
  fs.writeFileSync(launcherPath, launcher, 'utf-8');