@arcteninc/core 0.0.94 → 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.94",
3
+ "version": "0.0.95",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -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
  }