@moldea.ai/adapter-cloudflare-agents 1.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.
Files changed (71) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +77 -0
  3. package/cover.png +0 -0
  4. package/dist/adapter/index.d.ts +3 -0
  5. package/dist/adapter/index.d.ts.map +1 -0
  6. package/dist/constants/index.d.ts +13 -0
  7. package/dist/constants/index.d.ts.map +1 -0
  8. package/dist/contracts/index.d.ts +159 -0
  9. package/dist/contracts/index.d.ts.map +1 -0
  10. package/dist/diagnostics/index.d.ts +28 -0
  11. package/dist/diagnostics/index.d.ts.map +1 -0
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +1646 -0
  15. package/dist/inspection/common.d.ts +19 -0
  16. package/dist/inspection/common.d.ts.map +1 -0
  17. package/dist/inspection/handoffs.d.ts +7 -0
  18. package/dist/inspection/handoffs.d.ts.map +1 -0
  19. package/dist/inspection/index.d.ts +2 -0
  20. package/dist/inspection/index.d.ts.map +1 -0
  21. package/dist/inspection/inspection.d.ts +18 -0
  22. package/dist/inspection/inspection.d.ts.map +1 -0
  23. package/dist/inspection/package-inspection.d.ts +7 -0
  24. package/dist/inspection/package-inspection.d.ts.map +1 -0
  25. package/dist/inspection/relationships.d.ts +7 -0
  26. package/dist/inspection/relationships.d.ts.map +1 -0
  27. package/dist/inspection/resolution.d.ts +20 -0
  28. package/dist/inspection/resolution.d.ts.map +1 -0
  29. package/dist/inspection/session.d.ts +5 -0
  30. package/dist/inspection/session.d.ts.map +1 -0
  31. package/dist/inspection/types.d.ts +12 -0
  32. package/dist/inspection/types.d.ts.map +1 -0
  33. package/dist/package-discovery/index.d.ts +7 -0
  34. package/dist/package-discovery/index.d.ts.map +1 -0
  35. package/dist/source-analysis/agent-tools.d.ts +5 -0
  36. package/dist/source-analysis/agent-tools.d.ts.map +1 -0
  37. package/dist/source-analysis/ai-chat-agents.d.ts +4 -0
  38. package/dist/source-analysis/ai-chat-agents.d.ts.map +1 -0
  39. package/dist/source-analysis/bindings.d.ts +14 -0
  40. package/dist/source-analysis/bindings.d.ts.map +1 -0
  41. package/dist/source-analysis/channel-tools.d.ts +4 -0
  42. package/dist/source-analysis/channel-tools.d.ts.map +1 -0
  43. package/dist/source-analysis/class-definitions.d.ts +4 -0
  44. package/dist/source-analysis/class-definitions.d.ts.map +1 -0
  45. package/dist/source-analysis/class-initialization.d.ts +4 -0
  46. package/dist/source-analysis/class-initialization.d.ts.map +1 -0
  47. package/dist/source-analysis/function-tools.d.ts +5 -0
  48. package/dist/source-analysis/function-tools.d.ts.map +1 -0
  49. package/dist/source-analysis/generation-requests.d.ts +4 -0
  50. package/dist/source-analysis/generation-requests.d.ts.map +1 -0
  51. package/dist/source-analysis/index.d.ts +14 -0
  52. package/dist/source-analysis/index.d.ts.map +1 -0
  53. package/dist/source-analysis/methods.d.ts +7 -0
  54. package/dist/source-analysis/methods.d.ts.map +1 -0
  55. package/dist/source-analysis/output-specifications.d.ts +4 -0
  56. package/dist/source-analysis/output-specifications.d.ts.map +1 -0
  57. package/dist/source-analysis/session-builders.d.ts +4 -0
  58. package/dist/source-analysis/session-builders.d.ts.map +1 -0
  59. package/dist/source-analysis/source-analysis.d.ts +5 -0
  60. package/dist/source-analysis/source-analysis.d.ts.map +1 -0
  61. package/dist/source-analysis/static-strings.d.ts +5 -0
  62. package/dist/source-analysis/static-strings.d.ts.map +1 -0
  63. package/dist/source-analysis/think-instructions.d.ts +4 -0
  64. package/dist/source-analysis/think-instructions.d.ts.map +1 -0
  65. package/dist/source-analysis/think-tools.d.ts +4 -0
  66. package/dist/source-analysis/think-tools.d.ts.map +1 -0
  67. package/dist/source-analysis/tool-maps.d.ts +5 -0
  68. package/dist/source-analysis/tool-maps.d.ts.map +1 -0
  69. package/dist/source-analysis/types.d.ts +11 -0
  70. package/dist/source-analysis/types.d.ts.map +1 -0
  71. package/package.json +60 -0
@@ -0,0 +1,19 @@
1
+ import type ts from 'typescript';
2
+ import type { IRuntimeAdapterEvidence, ISourceRange } from '@moldea.ai/core';
3
+ import type { IAdapterDiagnostic } from '@moldea.ai/core/adapter';
4
+ import type { IRepositoryReference } from '@moldea.ai/core/format';
5
+ import type { IRepositoryPath } from '@moldea.ai/repository';
6
+ import type { ICloudflareAgentsAdapterDiagnosticCode, ICloudflareAgentsInspectionSession, ICloudflareAgentsSourceAnalysis } from '../contracts/index.js';
7
+ /** Compares exact strings without locale-dependent behavior. */
8
+ export declare const compareCloudflareAgentsStrings: (left: string, right: string) => number;
9
+ /** Creates one deeply immutable Cloudflare Agents evidence record. */
10
+ export declare const createCloudflareAgentsEvidence: (evidence: IRuntimeAdapterEvidence) => IRuntimeAdapterEvidence;
11
+ /** Appends one stable package-owned diagnostic. */
12
+ export declare const addCloudflareAgentsDiagnostic: (diagnostics: IAdapterDiagnostic[], code: ICloudflareAgentsAdapterDiagnosticCode, path: IRepositoryPath | null, agentId: string, range?: ISourceRange | null, capabilityId?: string, details?: IAdapterDiagnostic["details"]) => void;
13
+ /** Returns the Core scalar range for one node in its analyzed source. */
14
+ export declare const locateCloudflareAgentsNode: (analysis: ICloudflareAgentsSourceAnalysis, node: ts.Node) => ISourceRange;
15
+ /** Loads and validates one supported bound TypeScript source. */
16
+ export declare const analyzeCloudflareAgentsBoundReference: (session: ICloudflareAgentsInspectionSession, reference: IRepositoryReference, diagnostics: IAdapterDiagnostic[], agentId: string, capabilityId?: string) => Promise<ICloudflareAgentsSourceAnalysis | null>;
17
+ /** Determines whether a declared symbol exists in its exact analyzed module. */
18
+ export declare const hasCloudflareAgentsSymbol: (session: ICloudflareAgentsInspectionSession, reference: IRepositoryReference, diagnostics: IAdapterDiagnostic[], agentId: string, missingCode: ICloudflareAgentsAdapterDiagnosticCode, capabilityId?: string) => Promise<ICloudflareAgentsSourceAnalysis | null>;
19
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/inspection/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,KAAK,EACV,sCAAsC,EACtC,kCAAkC,EAClC,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAG/B,gEAAgE;AAChE,eAAO,MAAM,8BAA8B,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,KAAG,MACnC,CAAC;AAQ3C,sEAAsE;AACtE,eAAO,MAAM,8BAA8B,GACzC,UAAU,uBAAuB,KAChC,uBAKC,CAAC;AASL,mDAAmD;AACnD,eAAO,MAAM,6BAA6B,GACxC,aAAa,kBAAkB,EAAE,EACjC,MAAM,sCAAsC,EAC5C,MAAM,eAAe,GAAG,IAAI,EAC5B,SAAS,MAAM,EACf,QAAO,YAAY,GAAG,IAAW,EACjC,eAAe,MAAM,EACrB,UAAS,kBAAkB,CAAC,SAAS,CAAM,KAC1C,IAWF,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,0BAA0B,GACrC,UAAU,+BAA+B,EACzC,MAAM,EAAE,CAAC,IAAI,KACZ,YACmF,CAAC;AAEvF,iEAAiE;AACjE,eAAO,MAAM,qCAAqC,GAChD,SAAS,kCAAkC,EAC3C,WAAW,oBAAoB,EAC/B,aAAa,kBAAkB,EAAE,EACjC,SAAS,MAAM,EACf,eAAe,MAAM,KACpB,OAAO,CAAC,+BAA+B,GAAG,IAAI,CAgChD,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,yBAAyB,GACpC,SAAS,kCAAkC,EAC3C,WAAW,oBAAoB,EAC/B,aAAa,kBAAkB,EAAE,EACjC,SAAS,MAAM,EACf,aAAa,sCAAsC,EACnD,eAAe,MAAM,KACpB,OAAO,CAAC,+BAA+B,GAAG,IAAI,CA0BhD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { IIndexedAgent, IRuntimeAdapterEvidence } from '@moldea.ai/core';
2
+ import type { IAdapterDiagnostic } from '@moldea.ai/core/adapter';
3
+ import type { ICloudflareAgentsInspectionSession } from '../contracts/index.js';
4
+ import type { ICloudflareAgentsResolvedToolMap } from './resolution.js';
5
+ /** Inspects active Cloudflare `agentTool` helpers as runtime handoff registrations. */
6
+ export declare const inspectCloudflareAgentsHandoffs: (session: ICloudflareAgentsInspectionSession, sourceAgent: IIndexedAgent, agents: readonly IIndexedAgent[], resolvedMaps: readonly ICloudflareAgentsResolvedToolMap[], evidence: IRuntimeAdapterEvidence[], diagnostics: IAdapterDiagnostic[]) => Promise<void>;
7
+ //# sourceMappingURL=handoffs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handoffs.d.ts","sourceRoot":"","sources":["../../src/inspection/handoffs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,OAAO,KAAK,EACV,kCAAkC,EAEnC,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAC;AA6BxE,uFAAuF;AACvF,eAAO,MAAM,+BAA+B,GAC1C,SAAS,kCAAkC,EAC3C,aAAa,aAAa,EAC1B,QAAQ,SAAS,aAAa,EAAE,EAChC,cAAc,SAAS,gCAAgC,EAAE,EACzD,UAAU,uBAAuB,EAAE,EACnC,aAAa,kBAAkB,EAAE,KAChC,OAAO,CAAC,IAAI,CAmFd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { inspectCloudflareAgents } from './inspection.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/inspection/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { IRuntimeAdapterContext, IRuntimeAdapterResult } from '@moldea.ai/core/adapter';
2
+ /**
3
+ * Inspects all scoped Cloudflare Agents agents through one deterministic session.
4
+ * @param context The Core-provided immutable adapter context.
5
+ * @returns A promise resolving to source-grounded evidence and diagnostics.
6
+ * @throws
7
+ * - INVALID_REPOSITORY_PATH: The repository path is invalid.
8
+ * - ENTRY_NOT_FOUND: The requested repository entry was not found.
9
+ * - ENTRY_NOT_FILE: The requested repository entry is not a file.
10
+ * - ACCESS_DENIED: Access to the repository source was denied.
11
+ * - SOURCE_UNAVAILABLE: The repository source is unavailable.
12
+ * - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
13
+ * - INVALID_SOURCE_DATA: The repository source returned invalid data.
14
+ * - RESOURCE_LIMIT_EXCEEDED: A repository reading resource limit was exceeded.
15
+ * - ABORTED: The repository operation or inspection signal was aborted.
16
+ */
17
+ export declare const inspectCloudflareAgents: (context: IRuntimeAdapterContext) => Promise<IRuntimeAdapterResult>;
18
+ //# sourceMappingURL=inspection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspection.d.ts","sourceRoot":"","sources":["../../src/inspection/inspection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAkMjC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,GAClC,SAAS,sBAAsB,KAC9B,OAAO,CAAC,qBAAqB,CA0B/B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { IRuntimeAdapterEvidence } from '@moldea.ai/core';
2
+ import type { IAdapterDiagnostic } from '@moldea.ai/core/adapter';
3
+ import type { IRepositoryPath } from '@moldea.ai/repository';
4
+ import type { ICloudflareAgentsInspectionSession, ICloudflareAgentsTargetId } from '../contracts/index.js';
5
+ /** Inspects exact package declarations and gates one verified target. */
6
+ export declare const inspectCloudflareAgentsPackage: (session: ICloudflareAgentsInspectionSession, sourcePath: IRepositoryPath, targetId: ICloudflareAgentsTargetId, evidence: IRuntimeAdapterEvidence[], diagnostics: IAdapterDiagnostic[], agentId: string) => Promise<boolean>;
7
+ //# sourceMappingURL=package-inspection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-inspection.d.ts","sourceRoot":"","sources":["../../src/inspection/package-inspection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAc7D,OAAO,KAAK,EACV,kCAAkC,EAGlC,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AA6C/B,yEAAyE;AACzE,eAAO,MAAM,8BAA8B,GACzC,SAAS,kCAAkC,EAC3C,YAAY,eAAe,EAC3B,UAAU,yBAAyB,EACnC,UAAU,uBAAuB,EAAE,EACnC,aAAa,kBAAkB,EAAE,EACjC,SAAS,MAAM,KACd,OAAO,CAAC,OAAO,CAiEjB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { IRuntimeAdapterEvidence } from '@moldea.ai/core';
2
+ import type { IAdapterDiagnostic } from '@moldea.ai/core/adapter';
3
+ import type { ICloudflareAgentsInspectionSession } from '../contracts/index.js';
4
+ import type { ICloudflareAgentsInspectedAgent } from './types.js';
5
+ /** Inspects manifest relationships for every supported Cloudflare runtime agent. */
6
+ export declare const inspectCloudflareAgentsRelationships: (session: ICloudflareAgentsInspectionSession, inspectedAgents: readonly ICloudflareAgentsInspectedAgent[], evidence: IRuntimeAdapterEvidence[], diagnostics: IAdapterDiagnostic[]) => Promise<void>;
7
+ //# sourceMappingURL=relationships.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relationships.d.ts","sourceRoot":"","sources":["../../src/inspection/relationships.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAiB,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAIlE,OAAO,KAAK,EAEV,kCAAkC,EAGnC,MAAM,uBAAuB,CAAC;AAiB/B,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAC;AAoRlE,oFAAoF;AACpF,eAAO,MAAM,oCAAoC,GAC/C,SAAS,kCAAkC,EAC3C,iBAAiB,SAAS,+BAA+B,EAAE,EAC3D,UAAU,uBAAuB,EAAE,EACnC,aAAa,kBAAkB,EAAE,KAChC,OAAO,CAAC,IAAI,CAuCd,CAAC"}
@@ -0,0 +1,20 @@
1
+ import ts from 'typescript';
2
+ import type { IRepositoryReference } from '@moldea.ai/core/format';
3
+ import type { ICloudflareAgentsInspectionSession, ICloudflareAgentsRelationship, ICloudflareAgentsSourceAnalysis, ICloudflareAgentsToolDefinition, ICloudflareAgentsToolMapResult } from '../contracts/index.js';
4
+ export interface ICloudflareAgentsResolvedToolMap {
5
+ readonly analysis: ICloudflareAgentsSourceAnalysis;
6
+ readonly map: ICloudflareAgentsToolMapResult;
7
+ readonly reference: IRepositoryReference | null;
8
+ }
9
+ export interface ICloudflareAgentsResolvedToolDefinition {
10
+ readonly analysis: ICloudflareAgentsSourceAnalysis;
11
+ readonly definition: ICloudflareAgentsToolDefinition;
12
+ readonly reference: IRepositoryReference & {
13
+ readonly symbol: string;
14
+ };
15
+ }
16
+ /** Resolves one supported inline, local, or relative-imported tools map. */
17
+ export declare const resolveCloudflareAgentsToolMap: (session: ICloudflareAgentsInspectionSession, analysis: ICloudflareAgentsSourceAnalysis, relationship: ICloudflareAgentsRelationship) => Promise<ICloudflareAgentsResolvedToolMap | null>;
18
+ /** Resolves one supported ordinary tool or `agentTool` declaration from a map entry. */
19
+ export declare const resolveCloudflareAgentsToolDefinition: (session: ICloudflareAgentsInspectionSession, analysis: ICloudflareAgentsSourceAnalysis, expression: ts.Expression) => Promise<ICloudflareAgentsResolvedToolDefinition | null>;
20
+ //# sourceMappingURL=resolution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolution.d.ts","sourceRoot":"","sources":["../../src/inspection/resolution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAGnE,OAAO,KAAK,EACV,kCAAkC,EAClC,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,EAC/B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAO/B,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,+BAA+B,CAAC;IACnD,QAAQ,CAAC,GAAG,EAAE,8BAA8B,CAAC;IAC7C,QAAQ,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACjD;AAED,MAAM,WAAW,uCAAuC;IACtD,QAAQ,CAAC,QAAQ,EAAE,+BAA+B,CAAC;IACnD,QAAQ,CAAC,UAAU,EAAE,+BAA+B,CAAC;IACrD,QAAQ,CAAC,SAAS,EAAE,oBAAoB,GAAG;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CACxE;AA8CD,4EAA4E;AAC5E,eAAO,MAAM,8BAA8B,GACzC,SAAS,kCAAkC,EAC3C,UAAU,+BAA+B,EACzC,cAAc,6BAA6B,KAC1C,OAAO,CAAC,gCAAgC,GAAG,IAAI,CA0BjD,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,qCAAqC,GAChD,SAAS,kCAAkC,EAC3C,UAAU,+BAA+B,EACzC,YAAY,EAAE,CAAC,UAAU,KACxB,OAAO,CAAC,uCAAuC,GAAG,IAAI,CA0BxD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IRuntimeAdapterContext } from '@moldea.ai/core/adapter';
2
+ import type { ICloudflareAgentsInspectionSession } from '../contracts/index.js';
3
+ /** Creates one operation-local Cloudflare Agents inspection session. */
4
+ export declare const createCloudflareAgentsInspectionSession: (context: IRuntimeAdapterContext) => ICloudflareAgentsInspectionSession;
5
+ //# sourceMappingURL=session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/inspection/session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAIhF,wEAAwE;AACxE,eAAO,MAAM,uCAAuC,GAClD,SAAS,sBAAsB,KAC9B,kCAUC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { IIndexedAgent } from '@moldea.ai/core';
2
+ import type { ICloudflareAgentsClassDefinition, ICloudflareAgentsGenerationRequest, ICloudflareAgentsRelationship, ICloudflareAgentsSourceAnalysis } from '../contracts/index.js';
3
+ export interface ICloudflareAgentsInspectedAgent {
4
+ readonly agent: IIndexedAgent;
5
+ readonly analysis: ICloudflareAgentsSourceAnalysis;
6
+ readonly definition: ICloudflareAgentsClassDefinition;
7
+ readonly instructions: ICloudflareAgentsRelationship;
8
+ readonly output: ICloudflareAgentsRelationship;
9
+ readonly requests: readonly ICloudflareAgentsGenerationRequest[];
10
+ readonly tools: readonly ICloudflareAgentsRelationship[];
11
+ }
12
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/inspection/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EACV,gCAAgC,EAChC,kCAAkC,EAClC,6BAA6B,EAC7B,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAG/B,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,+BAA+B,CAAC;IACnD,QAAQ,CAAC,UAAU,EAAE,gCAAgC,CAAC;IACtD,QAAQ,CAAC,YAAY,EAAE,6BAA6B,CAAC;IACrD,QAAQ,CAAC,MAAM,EAAE,6BAA6B,CAAC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,SAAS,kCAAkC,EAAE,CAAC;IACjE,QAAQ,CAAC,KAAK,EAAE,SAAS,6BAA6B,EAAE,CAAC;CAC1D"}
@@ -0,0 +1,7 @@
1
+ import type { IRepositoryPath, IRepositoryReader } from '@moldea.ai/repository';
2
+ import type { ICloudflareAgentsPackageDiscoveryResult } from '../contracts/index.js';
3
+ /** Creates nearest-to-root package-manifest candidates for one source path. */
4
+ export declare const createCloudflareAgentsPackageManifestCandidatePaths: (sourcePath: IRepositoryPath) => readonly IRepositoryPath[];
5
+ /** Discovers the nearest manifest containing a Cloudflare Agents target dependency. */
6
+ export declare const discoverCloudflareAgentsPackage: (repository: IRepositoryReader, sourcePath: IRepositoryPath, signal?: AbortSignal) => Promise<ICloudflareAgentsPackageDiscoveryResult>;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/package-discovery/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAShF,OAAO,KAAK,EAGV,uCAAuC,EACxC,MAAM,uBAAuB,CAAC;AAkB/B,+EAA+E;AAC/E,eAAO,MAAM,mDAAmD,GAC9D,YAAY,eAAe,KAC1B,SAAS,eAAe,EAC+D,CAAC;AAwC3F,uFAAuF;AACvF,eAAO,MAAM,+BAA+B,GAC1C,YAAY,iBAAiB,EAC7B,YAAY,eAAe,EAC3B,SAAS,WAAW,KACnB,OAAO,CAAC,uCAAuC,CAyDjD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import ts from 'typescript';
2
+ import type { ICloudflareAgentsAgentTool, ICloudflareAgentsSourceAnalysis } from '../contracts/index.js';
3
+ /** Classifies one direct Cloudflare `agentTool(...)` declaration. */
4
+ export declare const getCloudflareAgentsAgentTool: (analysis: ICloudflareAgentsSourceAnalysis, declaration: ts.VariableDeclaration) => ICloudflareAgentsAgentTool | null;
5
+ //# sourceMappingURL=agent-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-tools.d.ts","sourceRoot":"","sources":["../../src/source-analysis/agent-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAS5B,OAAO,KAAK,EACV,0BAA0B,EAC1B,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAE/B,qEAAqE;AACrE,eAAO,MAAM,4BAA4B,GACvC,UAAU,+BAA+B,EACzC,aAAa,EAAE,CAAC,mBAAmB,KAClC,0BAA0B,GAAG,IAkD/B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ICloudflareAgentsClassDefinition, ICloudflareAgentsGenerationRequest, ICloudflareAgentsSourceAnalysis } from '../contracts/index.js';
2
+ /** Extracts direct AI SDK requests from the supported AIChatAgent handler. */
3
+ export declare const getCloudflareAgentsAiChatRequests: (definition: ICloudflareAgentsClassDefinition, analysis: ICloudflareAgentsSourceAnalysis) => readonly ICloudflareAgentsGenerationRequest[];
4
+ //# sourceMappingURL=ai-chat-agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-chat-agents.d.ts","sourceRoot":"","sources":["../../src/source-analysis/ai-chat-agents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gCAAgC,EAChC,kCAAkC,EAClC,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAI/B,8EAA8E;AAC9E,eAAO,MAAM,iCAAiC,GAC5C,YAAY,gCAAgC,EAC5C,UAAU,+BAA+B,KACxC,SAAS,kCAAkC,EAK7C,CAAC"}
@@ -0,0 +1,14 @@
1
+ import ts from 'typescript';
2
+ import type { IRepositoryReference } from '@moldea.ai/core/format';
3
+ import type { ICloudflareAgentsRelationship, ICloudflareAgentsSourceAnalysis } from '../contracts/index.js';
4
+ /** Returns an exact supported object or class member name. */
5
+ export declare const getCloudflareAgentsPropertyName: (name: ts.PropertyName) => string | null;
6
+ /** Determines whether an object uses JavaScript's non-own `__proto__` setter form. */
7
+ export declare const hasCloudflareAgentsPrototypeSetter: (object: ts.ObjectLiteralExpression) => boolean;
8
+ /** Classifies exact fields in one closed or partially unrelated object literal. */
9
+ export declare const analyzeCloudflareAgentsObjectRelationships: <TName extends string>(object: ts.ObjectLiteralExpression, names: readonly TName[]) => Record<TName, ICloudflareAgentsRelationship>;
10
+ /** Classifies a direct relationship to one explicitly bound runtime symbol. */
11
+ export declare const classifyCloudflareAgentsDirectBinding: (relationship: ICloudflareAgentsRelationship, analysis: ICloudflareAgentsSourceAnalysis, reference: IRepositoryReference) => boolean | null;
12
+ /** Classifies a required direct or awaited instruction-loader call. */
13
+ export declare const classifyCloudflareAgentsInstructionLoader: (relationship: ICloudflareAgentsRelationship, analysis: ICloudflareAgentsSourceAnalysis, reference: IRepositoryReference) => boolean | null;
14
+ //# sourceMappingURL=bindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../../src/source-analysis/bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAS5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,KAAK,EACV,6BAA6B,EAC7B,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAE/B,8DAA8D;AAC9D,eAAO,MAAM,+BAA+B,GAAI,MAAM,EAAE,CAAC,YAAY,KAAG,MAAM,GAAG,IACX,CAAC;AAEvE,sFAAsF;AACtF,eAAO,MAAM,kCAAkC,GAAI,QAAQ,EAAE,CAAC,uBAAuB,KAAG,OAMrF,CAAC;AAEJ,mFAAmF;AACnF,eAAO,MAAM,0CAA0C,GAAI,KAAK,SAAS,MAAM,EAC7E,QAAQ,EAAE,CAAC,uBAAuB,EAClC,OAAO,SAAS,KAAK,EAAE,KACtB,MAAM,CAAC,KAAK,EAAE,6BAA6B,CA0C7C,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,qCAAqC,GAChD,cAAc,6BAA6B,EAC3C,UAAU,+BAA+B,EACzC,WAAW,oBAAoB,KAC9B,OAAO,GAAG,IAgCZ,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,yCAAyC,GACpD,cAAc,6BAA6B,EAC3C,UAAU,+BAA+B,EACzC,WAAW,oBAAoB,KAC9B,OAAO,GAAG,IA0BZ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ICloudflareAgentsClassDefinition, ICloudflareAgentsRelationship } from '../contracts/index.js';
2
+ /** Determines whether Think channel configuration can influence the assembled tool set. */
3
+ export declare const getCloudflareAgentsThinkChannelTools: (definition: ICloudflareAgentsClassDefinition) => ICloudflareAgentsRelationship;
4
+ //# sourceMappingURL=channel-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel-tools.d.ts","sourceRoot":"","sources":["../../src/source-analysis/channel-tools.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC9B,MAAM,uBAAuB,CAAC;AAG/B,2FAA2F;AAC3F,eAAO,MAAM,oCAAoC,GAC/C,YAAY,gCAAgC,KAC3C,6BAkDF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ICloudflareAgentsClassDefinitionResult, ICloudflareAgentsSourceAnalysis } from '../contracts/index.js';
2
+ /** Classifies one directly exported Cloudflare agent class under the closed class contract. */
3
+ export declare const getCloudflareAgentsClassDefinition: (analysis: ICloudflareAgentsSourceAnalysis, symbol: string) => ICloudflareAgentsClassDefinitionResult;
4
+ //# sourceMappingURL=class-definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-definitions.d.ts","sourceRoot":"","sources":["../../src/source-analysis/class-definitions.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,sCAAsC,EACtC,+BAA+B,EAEhC,MAAM,uBAAuB,CAAC;AAoD/B,+FAA+F;AAC/F,eAAO,MAAM,kCAAkC,GAC7C,UAAU,+BAA+B,EACzC,QAAQ,MAAM,KACb,sCAgDF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import ts from 'typescript';
2
+ /** Determines whether the class initialization surface is closed and side-effect free. */
3
+ export declare const isCloudflareAgentsClassInitializationSupported: (declaration: ts.ClassDeclaration) => boolean;
4
+ //# sourceMappingURL=class-initialization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-initialization.d.ts","sourceRoot":"","sources":["../../src/source-analysis/class-initialization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAmD5B,0FAA0F;AAC1F,eAAO,MAAM,8CAA8C,GACzD,aAAa,EAAE,CAAC,gBAAgB,KAC/B,OAgDF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import ts from 'typescript';
2
+ import type { ICloudflareAgentsFunctionTool, ICloudflareAgentsSourceAnalysis } from '../contracts/index.js';
3
+ /** Classifies one direct AI SDK function-tool declaration. */
4
+ export declare const getCloudflareAgentsFunctionTool: (analysis: ICloudflareAgentsSourceAnalysis, declaration: ts.VariableDeclaration) => ICloudflareAgentsFunctionTool | null;
5
+ //# sourceMappingURL=function-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function-tools.d.ts","sourceRoot":"","sources":["../../src/source-analysis/function-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAI5B,OAAO,KAAK,EACV,6BAA6B,EAC7B,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAyB/B,8DAA8D;AAC9D,eAAO,MAAM,+BAA+B,GAC1C,UAAU,+BAA+B,EACzC,aAAa,EAAE,CAAC,mBAAmB,KAClC,6BAA6B,GAAG,IAiDlC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ICloudflareAgentsGenerationRequest, ICloudflareAgentsMethod, ICloudflareAgentsSourceAnalysis } from '../contracts/index.js';
2
+ /** Finds supported direct AI SDK requests in the method's own lexical body. */
3
+ export declare const getCloudflareAgentsGenerationRequests: (method: ICloudflareAgentsMethod, analysis: ICloudflareAgentsSourceAnalysis) => readonly ICloudflareAgentsGenerationRequest[];
4
+ //# sourceMappingURL=generation-requests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generation-requests.d.ts","sourceRoot":"","sources":["../../src/source-analysis/generation-requests.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,kCAAkC,EAClC,uBAAuB,EACvB,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAG/B,+EAA+E;AAC/E,eAAO,MAAM,qCAAqC,GAChD,QAAQ,uBAAuB,EAC/B,UAAU,+BAA+B,KACxC,SAAS,kCAAkC,EAuD7C,CAAC"}
@@ -0,0 +1,14 @@
1
+ export { analyzeCloudflareAgentsSource } from './source-analysis.js';
2
+ export { getCloudflareAgentsClassDefinition } from './class-definitions.js';
3
+ export { getCloudflareAgentsThinkSystemPrompt } from './think-instructions.js';
4
+ export { getCloudflareAgentsThinkSessionInstructions } from './session-builders.js';
5
+ export { getCloudflareAgentsThinkChannelTools } from './channel-tools.js';
6
+ export { getCloudflareAgentsThinkTools } from './think-tools.js';
7
+ export { getCloudflareAgentsAiChatRequests } from './ai-chat-agents.js';
8
+ export { getCloudflareAgentsOutputSchema } from './output-specifications.js';
9
+ export { getCloudflareAgentsFunctionTool } from './function-tools.js';
10
+ export { getCloudflareAgentsAgentTool } from './agent-tools.js';
11
+ export { getCloudflareAgentsToolMap } from './tool-maps.js';
12
+ export { classifyCloudflareAgentsDirectBinding, classifyCloudflareAgentsInstructionLoader, } from './bindings.js';
13
+ export { resolveCloudflareAgentsStaticString } from './static-strings.js';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/source-analysis/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAGrE,OAAO,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AAG5E,OAAO,EAAE,oCAAoC,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,2CAA2C,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,oCAAoC,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAGjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAG7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAG5D,OAAO,EACL,qCAAqC,EACrC,yCAAyC,GAC1C,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import ts from 'typescript';
2
+ import type { ICloudflareAgentsMethod } from '../contracts/index.js';
3
+ /** Returns a supported non-generator block-bodied method with an exact parameter count. */
4
+ export declare const getCloudflareAgentsMethod: (methods: ReadonlyMap<string, ICloudflareAgentsMethod>, name: string, parameterCount: number) => ICloudflareAgentsMethod | null;
5
+ /** Indexes static method names while rejecting overloads and duplicate implementations. */
6
+ export declare const indexCloudflareAgentsMethods: (declaration: ts.ClassDeclaration) => ReadonlyMap<string, ICloudflareAgentsMethod> | null;
7
+ //# sourceMappingURL=methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../src/source-analysis/methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAGrE,2FAA2F;AAC3F,eAAO,MAAM,yBAAyB,GACpC,SAAS,WAAW,CAAC,MAAM,EAAE,uBAAuB,CAAC,EACrD,MAAM,MAAM,EACZ,gBAAgB,MAAM,KACrB,uBAAuB,GAAG,IAkB5B,CAAC;AAEF,2FAA2F;AAC3F,eAAO,MAAM,4BAA4B,GACvC,aAAa,EAAE,CAAC,gBAAgB,KAC/B,WAAW,CAAC,MAAM,EAAE,uBAAuB,CAAC,GAAG,IAkBjD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ICloudflareAgentsRelationship, ICloudflareAgentsSourceAnalysis } from '../contracts/index.js';
2
+ /** Classifies a direct AI SDK `Output.object(...)` schema relationship. */
3
+ export declare const getCloudflareAgentsOutputSchema: (relationship: ICloudflareAgentsRelationship, analysis: ICloudflareAgentsSourceAnalysis) => ICloudflareAgentsRelationship;
4
+ //# sourceMappingURL=output-specifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output-specifications.d.ts","sourceRoot":"","sources":["../../src/source-analysis/output-specifications.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,6BAA6B,EAC7B,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAG/B,2EAA2E;AAC3E,eAAO,MAAM,+BAA+B,GAC1C,cAAc,6BAA6B,EAC3C,UAAU,+BAA+B,KACxC,6BA2DF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ICloudflareAgentsClassDefinition, ICloudflareAgentsRelationship } from '../contracts/index.js';
2
+ /** Extracts an exact Think session-builder instruction source from supported chaining. */
3
+ export declare const getCloudflareAgentsThinkSessionInstructions: (definition: ICloudflareAgentsClassDefinition) => ICloudflareAgentsRelationship;
4
+ //# sourceMappingURL=session-builders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-builders.d.ts","sourceRoot":"","sources":["../../src/source-analysis/session-builders.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC9B,MAAM,uBAAuB,CAAC;AAkD/B,0FAA0F;AAC1F,eAAO,MAAM,2CAA2C,GACtD,YAAY,gCAAgC,KAC3C,6BA4FF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IRepositoryPath } from '@moldea.ai/repository';
2
+ import type { ICloudflareAgentsSourceAnalysisResult } from '../contracts/index.js';
3
+ /** Parses and indexes one Cloudflare Agents TypeScript module without executing it. */
4
+ export declare const analyzeCloudflareAgentsSource: (path: IRepositoryPath, bytes: Uint8Array, signal?: AbortSignal) => ICloudflareAgentsSourceAnalysisResult;
5
+ //# sourceMappingURL=source-analysis.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-analysis.d.ts","sourceRoot":"","sources":["../../src/source-analysis/source-analysis.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,KAAK,EAGV,qCAAqC,EACtC,MAAM,uBAAuB,CAAC;AAgE/B,uFAAuF;AACvF,eAAO,MAAM,6BAA6B,GACxC,MAAM,eAAe,EACrB,OAAO,UAAU,EACjB,SAAS,WAAW,KACnB,qCAcF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type ts from 'typescript';
2
+ import type { ICloudflareAgentsInspectionSession, ICloudflareAgentsSourceAnalysis, ICloudflareAgentsStaticStringResult } from './types.js';
3
+ /** Resolves one supported immutable source string across one relative import edge. */
4
+ export declare const resolveCloudflareAgentsStaticString: (session: ICloudflareAgentsInspectionSession, analysis: ICloudflareAgentsSourceAnalysis, expression: ts.Expression) => Promise<ICloudflareAgentsStaticStringResult>;
5
+ //# sourceMappingURL=static-strings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-strings.d.ts","sourceRoot":"","sources":["../../src/source-analysis/static-strings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC,OAAO,KAAK,EACV,kCAAkC,EAClC,+BAA+B,EAC/B,mCAAmC,EACpC,MAAM,YAAY,CAAC;AAEpB,sFAAsF;AACtF,eAAO,MAAM,mCAAmC,GAC9C,SAAS,kCAAkC,EAC3C,UAAU,+BAA+B,EACzC,YAAY,EAAE,CAAC,UAAU,KACxB,OAAO,CAAC,mCAAmC,CAQ1C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ICloudflareAgentsClassDefinition, ICloudflareAgentsRelationship } from '../contracts/index.js';
2
+ /** Extracts the exact direct loader call returned by `getSystemPrompt`. */
3
+ export declare const getCloudflareAgentsThinkSystemPrompt: (definition: ICloudflareAgentsClassDefinition) => ICloudflareAgentsRelationship;
4
+ //# sourceMappingURL=think-instructions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"think-instructions.d.ts","sourceRoot":"","sources":["../../src/source-analysis/think-instructions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC9B,MAAM,uBAAuB,CAAC;AAG/B,2EAA2E;AAC3E,eAAO,MAAM,oCAAoC,GAC/C,YAAY,gCAAgC,KAC3C,6BAsBF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ICloudflareAgentsClassDefinition, ICloudflareAgentsRelationship } from '../contracts/index.js';
2
+ /** Extracts the direct tools expression returned by a closed Think `getTools` method. */
3
+ export declare const getCloudflareAgentsThinkTools: (definition: ICloudflareAgentsClassDefinition) => ICloudflareAgentsRelationship;
4
+ //# sourceMappingURL=think-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"think-tools.d.ts","sourceRoot":"","sources":["../../src/source-analysis/think-tools.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC9B,MAAM,uBAAuB,CAAC;AAG/B,yFAAyF;AACzF,eAAO,MAAM,6BAA6B,GACxC,YAAY,gCAAgC,KAC3C,6BAcF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import ts from 'typescript';
2
+ import type { ICloudflareAgentsToolMapResult } from '../contracts/index.js';
3
+ /** Classifies one direct tools-map object while retaining supported own entries. */
4
+ export declare const getCloudflareAgentsToolMap: (object: ts.ObjectLiteralExpression) => ICloudflareAgentsToolMapResult;
5
+ //# sourceMappingURL=tool-maps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-maps.d.ts","sourceRoot":"","sources":["../../src/source-analysis/tool-maps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAI5B,OAAO,KAAK,EAEV,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAG/B,oFAAoF;AACpF,eAAO,MAAM,0BAA0B,GACrC,QAAQ,EAAE,CAAC,uBAAuB,KACjC,8BAiCF,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type ts from 'typescript';
2
+ import type { ICloudflareAgentsInspectionSession, ICloudflareAgentsSourceAnalysis } from '../contracts/index.js';
3
+ export type { ICloudflareAgentsInspectionSession, ICloudflareAgentsSourceAnalysis };
4
+ export type ICloudflareAgentsStaticStringResult = {
5
+ readonly expression: ts.Expression;
6
+ readonly kind: 'supported';
7
+ readonly value: string;
8
+ } | {
9
+ readonly kind: 'unsupported';
10
+ };
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/source-analysis/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EACV,kCAAkC,EAClC,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,kCAAkC,EAAE,+BAA+B,EAAE,CAAC;AAGpF,MAAM,MAAM,mCAAmC,GAC3C;IAAE,QAAQ,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC1F;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC"}
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@moldea.ai/adapter-cloudflare-agents",
3
+ "version": "1.0.0",
4
+ "description": "Deterministic runtime evidence and diagnostics for Cloudflare Agents integrations.",
5
+ "homepage": "https://github.com/moldea-ai/packages/tree/main/projects/adapter-cloudflare-agents#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/moldea-ai/packages/issues"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/moldea-ai/packages.git",
12
+ "directory": "projects/adapter-cloudflare-agents"
13
+ },
14
+ "license": "MIT",
15
+ "author": "Jesus Graterol",
16
+ "type": "module",
17
+ "sideEffects": false,
18
+ "files": [
19
+ "cover.png",
20
+ "dist",
21
+ "LICENSE",
22
+ "README.md"
23
+ ],
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js"
28
+ }
29
+ },
30
+ "main": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
32
+ "engines": {
33
+ "node": "^22.11.0 || ^24.11.0"
34
+ },
35
+ "dependencies": {
36
+ "@moldea.ai/core": "^2.0.0",
37
+ "@moldea.ai/repository": "^1.0.0",
38
+ "semver": "7.8.5",
39
+ "typescript": "6.0.3"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "22.20.1",
43
+ "@types/semver": "7.8.0",
44
+ "vite": "8.2.1",
45
+ "vitest": "4.1.10",
46
+ "@moldea.ai/adapter-static-analysis": "0.0.0"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public"
50
+ },
51
+ "scripts": {
52
+ "build": "vite build --emptyOutDir && tsc -p tsconfig.build.json",
53
+ "dev": "vite build --watch",
54
+ "lint": "eslint .",
55
+ "test": "pnpm run test:unit && pnpm run test:integration",
56
+ "test:integration": "pnpm run build && vitest run --config vitest/test-integration.config.ts",
57
+ "test:unit": "vitest run --config vitest/test-unit.config.ts",
58
+ "typecheck": "tsc -p tsconfig.src.json --noEmit && tsc -p tsconfig.json --noEmit"
59
+ }
60
+ }