@moldea.ai/adapter-cloudflare-agents 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -8,7 +8,7 @@ The package implements the official `cloudflare-agents` runtime adapter for `@mo
8
8
 
9
9
  ## Supported targets
10
10
 
11
- Version `1.0.0` experimentally supports:
11
+ Version `1.0.1` experimentally supports:
12
12
 
13
13
  - Repository Format version `1`
14
14
  - `@moldea.ai/core ^2.0.0`
package/dist/index.js CHANGED
@@ -451,6 +451,17 @@ var isBoundIdentifier = (identifier, analysis, reference) => {
451
451
  if (reference.symbol === void 0) return false;
452
452
  return resolveBindingReferences(identifier, analysis).some((candidate) => candidate.path === reference.path && candidate.symbol === reference.symbol);
453
453
  };
454
+ var TYPESCRIPT_DECLARATION_EXTENSIONS = [
455
+ ".d.ts",
456
+ ".d.tsx",
457
+ ".d.mts",
458
+ ".d.cts"
459
+ ];
460
+ var TYPESCRIPT_SOURCE_EXTENSIONS = [
461
+ ".ts",
462
+ ".tsx",
463
+ ".mts"
464
+ ];
454
465
  var getScriptKind = (path) => path.endsWith(".tsx") ? ts.ScriptKind.TSX : ts.ScriptKind.TS;
455
466
  var createSyntaxProgram = (sourceFile, text) => {
456
467
  return ts.createProgram({
@@ -533,11 +544,7 @@ var analyzeTypeScriptModule = (path, bytes, importConfig, signal) => {
533
544
  * @param path The bound source path.
534
545
  * @returns Whether its extension is supported.
535
546
  */
536
- var isSupportedTypeScriptSourcePath = (path) => [
537
- ".ts",
538
- ".tsx",
539
- ".mts"
540
- ].some((extension) => path.endsWith(extension));
547
+ var isSupportedTypeScriptSourcePath = (path) => !TYPESCRIPT_DECLARATION_EXTENSIONS.some((extension) => path.endsWith(extension)) && TYPESCRIPT_SOURCE_EXTENSIONS.some((extension) => path.endsWith(extension));
541
548
  //#endregion
542
549
  //#region src/source-analysis/source-analysis.ts
543
550
  var IMPORT_CONFIG = Object.freeze({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moldea.ai/adapter-cloudflare-agents",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Deterministic runtime evidence and diagnostics for Cloudflare Agents integrations.",
5
5
  "homepage": "https://github.com/moldea-ai/packages/tree/main/projects/adapter-cloudflare-agents#readme",
6
6
  "bugs": {