@arcteninc/core 0.0.93 → 0.0.95

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": "@arcteninc/core",
3
- "version": "0.0.93",
3
+ "version": "0.0.95",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -26,6 +26,7 @@
26
26
  "files": [
27
27
  "dist",
28
28
  "scripts/cli-extract-types-auto.ts",
29
+ "scripts/cli-extract-types-auto.js",
29
30
  "scripts/cli-extract-types-auto-wrapper.cjs",
30
31
  "scripts/cli-extract-types-auto-wrapper.js",
31
32
  "scripts/arcten-cli.cjs"
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Fallback entry point for binary resolution
4
+ * Some package managers may look for this file name directly
5
+ * This file simply re-exports the wrapper to ensure compatibility
6
+ */
7
+
8
+ import { createRequire } from 'module';
9
+ import { fileURLToPath } from 'url';
10
+ import { dirname, join } from 'path';
11
+
12
+ // Get __dirname equivalent for ES modules
13
+ const __filename = fileURLToPath(import.meta.url);
14
+ const __dirname = dirname(__filename);
15
+
16
+ // Create require function that works in ES module context
17
+ const require = createRequire(import.meta.url);
18
+
19
+ // Load and execute the CommonJS wrapper
20
+ // This works in both Node.js (v12+) and Bun
21
+ const wrapperPath = join(__dirname, 'cli-extract-types-auto-wrapper.cjs');
22
+ require(wrapperPath);
23
+
@@ -344,6 +344,18 @@ function extractToolNamesFromFile(
344
344
  );
345
345
  extracted.names.forEach(name => toolNames.add(name));
346
346
  }
347
+ } else if (ts.isShorthandPropertyAssignment(prop)) {
348
+ // Handle shorthand: { safeTools } instead of { safeTools: safeTools }
349
+ const propName = prop.name.getText(sourceFile);
350
+ if (propName === 'tools' || propName === 'safeTools') {
351
+ // For shorthand, the property name IS the identifier
352
+ const extracted = extractToolNamesFromExpression(
353
+ prop.name,
354
+ sourceFile,
355
+ variableMap
356
+ );
357
+ extracted.names.forEach(name => toolNames.add(name));
358
+ }
347
359
  }
348
360
  }
349
361
  }
@@ -366,6 +378,18 @@ function extractToolNamesFromFile(
366
378
  );
367
379
  allToolOrder.push(...extracted.order);
368
380
  }
381
+ } else if (ts.isShorthandPropertyAssignment(prop)) {
382
+ // Handle shorthand: { safeTools } instead of { safeTools: safeTools }
383
+ const propName = prop.name.getText(sourceFile);
384
+ if (propName === 'tools' || propName === 'safeTools') {
385
+ // For shorthand, the property name IS the identifier
386
+ const extracted = extractToolNamesFromExpression(
387
+ prop.name,
388
+ sourceFile,
389
+ variableMap
390
+ );
391
+ allToolOrder.push(...extracted.order);
392
+ }
369
393
  }
370
394
  }
371
395
  }