@moldea.ai/adapter-eve 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 (57) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -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 +11 -0
  7. package/dist/constants/index.d.ts.map +1 -0
  8. package/dist/contracts/index.d.ts +127 -0
  9. package/dist/contracts/index.d.ts.map +1 -0
  10. package/dist/diagnostics/index.d.ts +38 -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 +1831 -0
  15. package/dist/inspection/agent-inspection.d.ts +6 -0
  16. package/dist/inspection/agent-inspection.d.ts.map +1 -0
  17. package/dist/inspection/common.d.ts +16 -0
  18. package/dist/inspection/common.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 +19 -0
  22. package/dist/inspection/inspection.d.ts.map +1 -0
  23. package/dist/inspection/instruction-inspection.d.ts +6 -0
  24. package/dist/inspection/instruction-inspection.d.ts.map +1 -0
  25. package/dist/inspection/package-inspection.d.ts +7 -0
  26. package/dist/inspection/package-inspection.d.ts.map +1 -0
  27. package/dist/inspection/relationships.d.ts +9 -0
  28. package/dist/inspection/relationships.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/skill-inspection.d.ts +6 -0
  32. package/dist/inspection/skill-inspection.d.ts.map +1 -0
  33. package/dist/inspection/subagent-inspection.d.ts +6 -0
  34. package/dist/inspection/subagent-inspection.d.ts.map +1 -0
  35. package/dist/inspection/tool-inspection.d.ts +6 -0
  36. package/dist/inspection/tool-inspection.d.ts.map +1 -0
  37. package/dist/package-discovery/index.d.ts +5 -0
  38. package/dist/package-discovery/index.d.ts.map +1 -0
  39. package/dist/repository-discovery/agent-roots.d.ts +5 -0
  40. package/dist/repository-discovery/agent-roots.d.ts.map +1 -0
  41. package/dist/repository-discovery/candidate-index.d.ts +5 -0
  42. package/dist/repository-discovery/candidate-index.d.ts.map +1 -0
  43. package/dist/repository-discovery/index.d.ts +3 -0
  44. package/dist/repository-discovery/index.d.ts.map +1 -0
  45. package/dist/source-analysis/functions.d.ts +9 -0
  46. package/dist/source-analysis/functions.d.ts.map +1 -0
  47. package/dist/source-analysis/helper-imports.d.ts +5 -0
  48. package/dist/source-analysis/helper-imports.d.ts.map +1 -0
  49. package/dist/source-analysis/index.d.ts +6 -0
  50. package/dist/source-analysis/index.d.ts.map +1 -0
  51. package/dist/source-analysis/object-definitions.d.ts +11 -0
  52. package/dist/source-analysis/object-definitions.d.ts.map +1 -0
  53. package/dist/source-analysis/source-analysis.d.ts +5 -0
  54. package/dist/source-analysis/source-analysis.d.ts.map +1 -0
  55. package/dist/source-analysis/static-values.d.ts +7 -0
  56. package/dist/source-analysis/static-values.d.ts.map +1 -0
  57. package/package.json +60 -0
@@ -0,0 +1,6 @@
1
+ import type { IIndexedAgent, IRuntimeAdapterEvidence } from '@moldea.ai/core';
2
+ import type { IAdapterDiagnostic } from '@moldea.ai/core/adapter';
3
+ import type { IEveAgentDefinition, IEveInspectionSession } from '../contracts/index.js';
4
+ /** Inspects one exact manifest-bound Eve agent definition and its output schema. */
5
+ export declare const inspectEveAgent: (session: IEveInspectionSession, agent: IIndexedAgent, evidence: IRuntimeAdapterEvidence[], diagnostics: IAdapterDiagnostic[]) => Promise<IEveAgentDefinition | null>;
6
+ //# sourceMappingURL=agent-inspection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-inspection.d.ts","sourceRoot":"","sources":["../../src/inspection/agent-inspection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAkBxF,oFAAoF;AACpF,eAAO,MAAM,eAAe,GAC1B,SAAS,qBAAqB,EAC9B,OAAO,aAAa,EACpB,UAAU,uBAAuB,EAAE,EACnC,aAAa,kBAAkB,EAAE,KAChC,OAAO,CAAC,mBAAmB,GAAG,IAAI,CA0LpC,CAAC"}
@@ -0,0 +1,16 @@
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 { IRepositoryPath } from '@moldea.ai/repository';
5
+ import type { IEveAdapterDiagnosticCode, IEveSourceAnalysis, IEveSourceAnalysisResult } from '../contracts/index.js';
6
+ /** Compares exact strings without locale-sensitive behavior. */
7
+ export declare const compareEveStrings: (left: string, right: string) => number;
8
+ /** Creates one deeply immutable Eve evidence record. */
9
+ export declare const createEveEvidence: (evidence: IRuntimeAdapterEvidence) => IRuntimeAdapterEvidence;
10
+ /** Appends one stable package-owned Eve diagnostic. */
11
+ export declare const addEveDiagnostic: (diagnostics: IAdapterDiagnostic[], code: IEveAdapterDiagnosticCode, path: IRepositoryPath | null, agentId: string, range?: ISourceRange | null, capabilityKind?: "skill" | "tool", capabilityId?: string, details?: IAdapterDiagnostic["details"]) => void;
12
+ /** Adds the sole permitted diagnostic for invalid referenced TypeScript source. */
13
+ export declare const addEveSourceFailureDiagnostic: (diagnostics: IAdapterDiagnostic[], result: IEveSourceAnalysisResult, path: IRepositoryPath, agentId: string, capabilityKind?: "skill" | "tool", capabilityId?: string) => boolean;
14
+ /** Returns the Core scalar range for one Eve source node. */
15
+ export declare const locateEveNode: (analysis: IEveSourceAnalysis, node: ts.Node) => ISourceRange;
16
+ //# 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;AAEjC,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,KAAK,EACV,yBAAyB,EACzB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,uBAAuB,CAAC;AAG/B,gEAAgE;AAChE,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,KAAG,MACtB,CAAC;AAQ3C,wDAAwD;AACxD,eAAO,MAAM,iBAAiB,GAAI,UAAU,uBAAuB,KAAG,uBAKlE,CAAC;AAWL,uDAAuD;AACvD,eAAO,MAAM,gBAAgB,GAC3B,aAAa,kBAAkB,EAAE,EACjC,MAAM,yBAAyB,EAC/B,MAAM,eAAe,GAAG,IAAI,EAC5B,SAAS,MAAM,EACf,QAAO,YAAY,GAAG,IAAW,EACjC,iBAAiB,OAAO,GAAG,MAAM,EACjC,eAAe,MAAM,EACrB,UAAS,kBAAkB,CAAC,SAAS,CAAM,KAC1C,IAWF,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,6BAA6B,GACxC,aAAa,kBAAkB,EAAE,EACjC,QAAQ,wBAAwB,EAChC,MAAM,eAAe,EACrB,SAAS,MAAM,EACf,iBAAiB,OAAO,GAAG,MAAM,EACjC,eAAe,MAAM,KACpB,OA0CF,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,aAAa,GAAI,UAAU,kBAAkB,EAAE,MAAM,EAAE,CAAC,IAAI,KAAG,YACU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { inspectEve } 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,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { IRuntimeAdapterContext, IRuntimeAdapterResult } from '@moldea.ai/core/adapter';
2
+ /**
3
+ * Inspects all scoped Eve agents through one deterministic read-only 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
+ * - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.
11
+ * - ACCESS_DENIED: Access to the repository source was denied.
12
+ * - SOURCE_UNAVAILABLE: The repository source is unavailable.
13
+ * - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
14
+ * - INVALID_SOURCE_DATA: The repository source returned invalid data.
15
+ * - RESOURCE_LIMIT_EXCEEDED: A repository reading resource limit was exceeded.
16
+ * - ABORTED: The repository operation or inspection signal was aborted.
17
+ */
18
+ export declare const inspectEve: (context: IRuntimeAdapterContext) => Promise<IRuntimeAdapterResult>;
19
+ //# sourceMappingURL=inspection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspection.d.ts","sourceRoot":"","sources":["../../src/inspection/inspection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAWjC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,GACrB,SAAS,sBAAsB,KAC9B,OAAO,CAAC,qBAAqB,CAoC/B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { IRuntimeAdapterEvidence } from '@moldea.ai/core';
2
+ import type { IAdapterDiagnostic } from '@moldea.ai/core/adapter';
3
+ import type { IEveAgentDefinition, IEveInspectionSession } from '../contracts/index.js';
4
+ /** Inspects the exclusive modern instruction surface for one supported Eve agent. */
5
+ export declare const inspectEveInstructions: (session: IEveInspectionSession, definition: IEveAgentDefinition, evidence: IRuntimeAdapterEvidence[], diagnostics: IAdapterDiagnostic[]) => Promise<void>;
6
+ //# sourceMappingURL=instruction-inspection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instruction-inspection.d.ts","sourceRoot":"","sources":["../../src/inspection/instruction-inspection.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAIlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAiLxF,qFAAqF;AACrF,eAAO,MAAM,sBAAsB,GACjC,SAAS,qBAAqB,EAC9B,YAAY,mBAAmB,EAC/B,UAAU,uBAAuB,EAAE,EACnC,aAAa,kBAAkB,EAAE,KAChC,OAAO,CAAC,IAAI,CAwEd,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 { IRepositoryPath } from '@moldea.ai/repository';
4
+ import type { IEveInspectionSession, IEvePackageObservation } from '../contracts/index.js';
5
+ /** Inspects one scoped agent's nearest Eve package declaration. */
6
+ export declare const inspectEvePackage: (session: IEveInspectionSession, agent: IIndexedAgent, sourcePath: IRepositoryPath, evidence: IRuntimeAdapterEvidence[], diagnostics: IAdapterDiagnostic[]) => Promise<IEvePackageObservation | null>;
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,aAAa,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAG3F,mEAAmE;AACnE,eAAO,MAAM,iBAAiB,GAC5B,SAAS,qBAAqB,EAC9B,OAAO,aAAa,EACpB,YAAY,eAAe,EAC3B,UAAU,uBAAuB,EAAE,EACnC,aAAa,kBAAkB,EAAE,KAChC,OAAO,CAAC,sBAAsB,GAAG,IAAI,CA8CvC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import ts from 'typescript';
2
+ import type { IRepositoryReference } from '@moldea.ai/core/format';
3
+ import type { IEveInspectionSession, IEveSourceAnalysis } from '../contracts/index.js';
4
+ export type IEveBindingState = 'different' | 'missing' | 'unresolved' | 'wired';
5
+ /** Classifies whether one direct expression uses the exact manifest-bound runtime value. */
6
+ export declare const classifyEveBoundExpression: (session: IEveInspectionSession, analysis: IEveSourceAnalysis, expression: ts.Expression | null, reference: IRepositoryReference, requiresFunction?: boolean) => Promise<IEveBindingState>;
7
+ /** Classifies one direct call to an exact manifest-bound function. */
8
+ export declare const classifyEveBoundCall: (session: IEveInspectionSession, analysis: IEveSourceAnalysis, expression: ts.Expression | null, reference: IRepositoryReference) => Promise<IEveBindingState>;
9
+ //# sourceMappingURL=relationships.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relationships.d.ts","sourceRoot":"","sources":["../../src/inspection/relationships.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAGnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGvF,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,CAAC;AAiChF,4FAA4F;AAC5F,eAAO,MAAM,0BAA0B,GACrC,SAAS,qBAAqB,EAC9B,UAAU,kBAAkB,EAC5B,YAAY,EAAE,CAAC,UAAU,GAAG,IAAI,EAChC,WAAW,oBAAoB,EAC/B,0BAAwB,KACvB,OAAO,CAAC,gBAAgB,CAiE1B,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,GAC/B,SAAS,qBAAqB,EAC9B,UAAU,kBAAkB,EAC5B,YAAY,EAAE,CAAC,UAAU,GAAG,IAAI,EAChC,WAAW,oBAAoB,KAC9B,OAAO,CAAC,gBAAgB,CAU1B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IRuntimeAdapterContext } from '@moldea.ai/core/adapter';
2
+ import type { IEveInspectionSession } from '../contracts/index.js';
3
+ /** Creates one operation-local Eve inspection session with source and listing caches. */
4
+ export declare const createEveInspectionSession: (context: IRuntimeAdapterContext) => IEveInspectionSession;
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;AAGtE,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAKvF,yFAAyF;AACzF,eAAO,MAAM,0BAA0B,GACrC,SAAS,sBAAsB,KAC9B,qBA2CF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { IRuntimeAdapterEvidence } from '@moldea.ai/core';
2
+ import type { IAdapterDiagnostic } from '@moldea.ai/core/adapter';
3
+ import type { IEveAgentDefinition, IEveInspectionSession } from '../contracts/index.js';
4
+ /** Inspects flat, packaged, and TypeScript Eve skills for one scoped agent. */
5
+ export declare const inspectEveSkills: (session: IEveInspectionSession, definition: IEveAgentDefinition, evidence: IRuntimeAdapterEvidence[], diagnostics: IAdapterDiagnostic[]) => Promise<void>;
6
+ //# sourceMappingURL=skill-inspection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-inspection.d.ts","sourceRoot":"","sources":["../../src/inspection/skill-inspection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAIlE,OAAO,KAAK,EACV,mBAAmB,EAEnB,qBAAqB,EAGtB,MAAM,uBAAuB,CAAC;AAgF/B,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,GAC3B,SAAS,qBAAqB,EAC9B,YAAY,mBAAmB,EAC/B,UAAU,uBAAuB,EAAE,EACnC,aAAa,kBAAkB,EAAE,KAChC,OAAO,CAAC,IAAI,CAmKd,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { IRuntimeAdapterEvidence } from '@moldea.ai/core';
2
+ import type { IAdapterDiagnostic } from '@moldea.ai/core/adapter';
3
+ import type { IEveAgentDefinition } from '../contracts/index.js';
4
+ /** Inspects exact immediate directory-backed local-subagent registrations. */
5
+ export declare const inspectEveSubagents: (definitions: readonly IEveAgentDefinition[], preparedToolNames: ReadonlyMap<string, ReadonlySet<string>>, evidence: IRuntimeAdapterEvidence[], diagnostics: IAdapterDiagnostic[]) => void;
6
+ //# sourceMappingURL=subagent-inspection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subagent-inspection.d.ts","sourceRoot":"","sources":["../../src/inspection/subagent-inspection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAOlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGjE,8EAA8E;AAC9E,eAAO,MAAM,mBAAmB,GAC9B,aAAa,SAAS,mBAAmB,EAAE,EAC3C,mBAAmB,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,EAC3D,UAAU,uBAAuB,EAAE,EACnC,aAAa,kBAAkB,EAAE,KAChC,IAgIF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { IRuntimeAdapterEvidence } from '@moldea.ai/core';
2
+ import type { IAdapterDiagnostic } from '@moldea.ai/core/adapter';
3
+ import type { IEveAgentDefinition, IEveInspectionSession } from '../contracts/index.js';
4
+ /** Inspects recursive static Eve tools declared by one scoped agent. */
5
+ export declare const inspectEveTools: (session: IEveInspectionSession, definition: IEveAgentDefinition, evidence: IRuntimeAdapterEvidence[], diagnostics: IAdapterDiagnostic[]) => Promise<ReadonlySet<string>>;
6
+ //# sourceMappingURL=tool-inspection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-inspection.d.ts","sourceRoot":"","sources":["../../src/inspection/tool-inspection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAQlE,OAAO,KAAK,EACV,mBAAmB,EAEnB,qBAAqB,EAGtB,MAAM,uBAAuB,CAAC;AAuQ/B,wEAAwE;AACxE,eAAO,MAAM,eAAe,GAC1B,SAAS,qBAAqB,EAC9B,YAAY,mBAAmB,EAC/B,UAAU,uBAAuB,EAAE,EACnC,aAAa,kBAAkB,EAAE,KAChC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAqT7B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IRepositoryPath, IRepositoryReader } from '@moldea.ai/repository';
2
+ import type { IEvePackageDiscoveryResult } from '../contracts/index.js';
3
+ /** Discovers the nearest owning Eve package and its safe root identity. */
4
+ export declare const discoverEvePackage: (reader: IRepositoryReader, sourcePath: IRepositoryPath, signal?: AbortSignal) => Promise<IEvePackageDiscoveryResult>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/package-discovery/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAGhF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAExE,2EAA2E;AAC3E,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,iBAAiB,EACzB,YAAY,eAAe,EAC3B,SAAS,WAAW,KACnB,OAAO,CAAC,0BAA0B,CA2BpC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type IRepositoryPath } from '@moldea.ai/repository';
2
+ import type { IEveAgentRoot, IEvePackageObservation } from '../contracts/index.js';
3
+ /** Resolves one bound `agent.ts` into an exact Eve root or local-subagent layout. */
4
+ export declare const resolveEveAgentRoot: (path: IRepositoryPath, packageObservation: IEvePackageObservation) => IEveAgentRoot | null;
5
+ //# sourceMappingURL=agent-roots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-roots.d.ts","sourceRoot":"","sources":["../../src/repository-discovery/agent-roots.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAElF,OAAO,KAAK,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AA4DnF,qFAAqF;AACrF,eAAO,MAAM,mBAAmB,GAC9B,MAAM,eAAe,EACrB,oBAAoB,sBAAsB,KACzC,aAAa,GAAG,IA+BlB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IRepositoryEntry, IRepositoryPath } from '@moldea.ai/repository';
2
+ import type { IEveAgentRootIndex } from '../contracts/index.js';
3
+ /** Creates the deterministic candidate index for one selected Eve agent root. */
4
+ export declare const createEveAgentRootIndex: (root: IRepositoryPath, sourceEntries: readonly IRepositoryEntry[]) => IEveAgentRootIndex;
5
+ //# sourceMappingURL=candidate-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"candidate-index.d.ts","sourceRoot":"","sources":["../../src/repository-discovery/candidate-index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG/E,OAAO,KAAK,EACV,kBAAkB,EAInB,MAAM,uBAAuB,CAAC;AA6P/B,iFAAiF;AACjF,eAAO,MAAM,uBAAuB,GAClC,MAAM,eAAe,EACrB,eAAe,SAAS,gBAAgB,EAAE,KACzC,kBAuCF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { resolveEveAgentRoot } from './agent-roots.js';
2
+ export { createEveAgentRootIndex } from './candidate-index.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repository-discovery/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import ts from 'typescript';
2
+ import type { IEveInspectionSession, IEveSourceAnalysis } from '../contracts/index.js';
3
+ /** Determines whether a declaration is one supported runtime function value. */
4
+ export declare const isEveFunctionDeclaration: (declaration: ts.Declaration | undefined) => boolean;
5
+ /** Classifies an inline or module-local direct runtime function expression. */
6
+ export declare const isEveFunctionValue: (analysis: IEveSourceAnalysis, expression: ts.Expression) => boolean;
7
+ /** Resolves an inline, module-local, or exact relative-imported runtime function. */
8
+ export declare const isEveResolvedFunctionValue: (session: IEveInspectionSession, analysis: IEveSourceAnalysis, expression: ts.Expression) => Promise<boolean>;
9
+ //# sourceMappingURL=functions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/source-analysis/functions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,YAAY,CAAC;AAK5B,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEvF,gFAAgF;AAChF,eAAO,MAAM,wBAAwB,GAAI,aAAa,EAAE,CAAC,WAAW,GAAG,SAAS,KAAG,OAgBlF,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,GAC7B,UAAU,kBAAkB,EAC5B,YAAY,EAAE,CAAC,UAAU,KACxB,OASF,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,0BAA0B,GACrC,SAAS,qBAAqB,EAC9B,UAAU,kBAAkB,EAC5B,YAAY,EAAE,CAAC,UAAU,KACxB,OAAO,CAAC,OAAO,CAoCjB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import ts from 'typescript';
2
+ import type { IEveHelperImports } from '../contracts/index.js';
3
+ /** Indexes exact Eve helper runtime imports by lexical local binding. */
4
+ export declare const indexEveHelperImports: (sourceFile: ts.SourceFile) => IEveHelperImports;
5
+ //# sourceMappingURL=helper-imports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper-imports.d.ts","sourceRoot":"","sources":["../../src/source-analysis/helper-imports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAS/D,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,GAAI,YAAY,EAAE,CAAC,UAAU,KAAG,iBAkCjE,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { analyzeEveSource } from './source-analysis.js';
2
+ export { indexEveHelperImports } from './helper-imports.js';
3
+ export { getEveDefinition, getEveObjectMemberName, getEveObjectMembers, getEvePropertyExpression, } from './object-definitions.js';
4
+ export { isEveFunctionDeclaration, isEveFunctionValue, isEveResolvedFunctionValue, } from './functions.js';
5
+ export { isEveStaticStringRecord, resolveEveStaticString } from './static-values.js';
6
+ //# 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,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import ts from 'typescript';
2
+ import type { IEveDefinitionKind, IEveDefinitionResult, IEveSourceAnalysis } from '../contracts/index.js';
3
+ /** Returns the exact static name of an ordinary Eve object member. */
4
+ export declare const getEveObjectMemberName: (member: ts.ObjectLiteralElementLike) => string | null;
5
+ /** Indexes unique ordinary members without accepting spreads or prototype setters. */
6
+ export declare const getEveObjectMembers: (object: ts.ObjectLiteralExpression) => ReadonlyMap<string, ts.ObjectLiteralElementLike> | null;
7
+ /** Returns an ordinary property-assignment expression from a closed definition. */
8
+ export declare const getEvePropertyExpression: (properties: ReadonlyMap<string, ts.ObjectLiteralElementLike>, name: string) => ts.Expression | null;
9
+ /** Classifies one exact direct default-exported Eve helper definition. */
10
+ export declare const getEveDefinition: (analysis: IEveSourceAnalysis, kind: IEveDefinitionKind) => IEveDefinitionResult;
11
+ //# sourceMappingURL=object-definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-definitions.d.ts","sourceRoot":"","sources":["../../src/source-analysis/object-definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAI5B,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAS/B,sEAAsE;AACtE,eAAO,MAAM,sBAAsB,GAAI,QAAQ,EAAE,CAAC,wBAAwB,KAAG,MAAM,GAAG,IAYrF,CAAC;AAEF,sFAAsF;AACtF,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,EAAE,CAAC,uBAAuB,KACjC,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,wBAAwB,CAAC,GAAG,IAqBrD,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,GACnC,YAAY,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,wBAAwB,CAAC,EAC5D,MAAM,MAAM,KACX,EAAE,CAAC,UAAU,GAAG,IAMlB,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,GAC3B,UAAU,kBAAkB,EAC5B,MAAM,kBAAkB,KACvB,oBAmDF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IRepositoryPath } from '@moldea.ai/repository';
2
+ import type { IEveSourceAnalysisResult } from '../contracts/index.js';
3
+ /** Parses one supported Eve TypeScript module without executing or resolving it. */
4
+ export declare const analyzeEveSource: (path: IRepositoryPath, bytes: Uint8Array, signal?: AbortSignal) => IEveSourceAnalysisResult;
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;AAE7D,OAAO,KAAK,EAAsB,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AA+B1F,oFAAoF;AACpF,eAAO,MAAM,gBAAgB,GAC3B,MAAM,eAAe,EACrB,OAAO,UAAU,EACjB,SAAS,WAAW,KACnB,wBA8BF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import ts from 'typescript';
2
+ import type { IEveInspectionSession, IEveSourceAnalysis } from '../contracts/index.js';
3
+ /** Resolves one exact Eve static string through supported local and relative bindings. */
4
+ export declare const resolveEveStaticString: (session: IEveInspectionSession, analysis: IEveSourceAnalysis, expression: ts.Expression) => Promise<import("@moldea.ai/adapter-static-analysis").IStaticAnalysisStaticStringResult>;
5
+ /** Resolves a closed object whose keys and values are exact static strings. */
6
+ export declare const isEveStaticStringRecord: (session: IEveInspectionSession, analysis: IEveSourceAnalysis, expression: ts.Expression) => Promise<boolean>;
7
+ //# sourceMappingURL=static-values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-values.d.ts","sourceRoot":"","sources":["../../src/source-analysis/static-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAK5B,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEvF,0FAA0F;AAC1F,eAAO,MAAM,sBAAsB,GACjC,SAAS,qBAAqB,EAC9B,UAAU,kBAAkB,EAC5B,YAAY,EAAE,CAAC,UAAU,4FASvB,CAAC;AAEL,+EAA+E;AAC/E,eAAO,MAAM,uBAAuB,GAClC,SAAS,qBAAqB,EAC9B,UAAU,kBAAkB,EAC5B,YAAY,EAAE,CAAC,UAAU,KACxB,OAAO,CAAC,OAAO,CA6BjB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@moldea.ai/adapter-eve",
3
+ "version": "1.0.0",
4
+ "description": "Deterministic runtime evidence and diagnostics for Eve filesystem agents.",
5
+ "homepage": "https://github.com/moldea-ai/packages/tree/main/projects/adapter-eve#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-eve"
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
+ }