snow-ai 0.6.48 → 0.6.50

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/bundle/cli.mjs CHANGED
@@ -1,10 +1,25 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as _createRequire } from 'module';
3
3
  import { fileURLToPath as _fileURLToPath } from 'url';
4
- const require = _createRequire(import.meta.url);
4
+ const __snow_raw_require = _createRequire(import.meta.url);
5
+ const require = Object.assign((moduleName) => {
6
+ const moduleValue = __snow_raw_require(moduleName);
7
+ if (moduleName === 'fetch-cookie' && typeof moduleValue !== 'function' && typeof moduleValue?.default === 'function') {
8
+ return moduleValue.default;
9
+ }
10
+ return moduleValue;
11
+ }, __snow_raw_require);
5
12
  const __filename = _fileURLToPath(import.meta.url);
6
13
  const __dirname = _fileURLToPath(new URL('.', import.meta.url));
7
14
 
15
+ // Polyfill for @microsoft/signalr dynamic require
16
+ // SignalR uses: const requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : require;
17
+ // Keep __non_webpack_require__ aligned with our wrapped require for both branches.
18
+ const __non_webpack_require__ = require;
19
+ if (typeof globalThis.__non_webpack_require__ === 'undefined') {
20
+ globalThis.__non_webpack_require__ = require;
21
+ }
22
+
8
23
  // Polyfill for undici's web API dependencies
9
24
  // undici uses File, Blob, etc. which are only available in Node.js 20+
10
25
  // For Node.js 16-18, we provide minimal polyfills
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-ai",
3
- "version": "0.6.48",
3
+ "version": "0.6.50",
4
4
  "description": "Agentic coding in your terminal",
5
5
  "license": "MIT",
6
6
  "bin": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-ai",
3
- "version": "0.6.48",
3
+ "version": "0.6.50",
4
4
  "description": "Agentic coding in your terminal",
5
5
  "license": "MIT",
6
6
  "bin": {