@moldea.ai/core 5.0.1 → 7.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 (136) hide show
  1. package/README.md +12 -11
  2. package/dist/analysis-worker.js +180 -0
  3. package/dist/analysis-worker.js.map +1 -0
  4. package/dist/binding-coverage/index.d.ts +26 -0
  5. package/dist/binding-coverage/index.d.ts.map +1 -0
  6. package/dist/chunks/core-Cdeiu6xG.js +3364 -0
  7. package/dist/chunks/core-Cdeiu6xG.js.map +1 -0
  8. package/dist/chunks/errors-BE4DS3Ak.js +435 -0
  9. package/dist/chunks/errors-BE4DS3Ak.js.map +1 -0
  10. package/dist/chunks/{exceptions-HS9ofVy2.js → exceptions-IXsorE8t.js} +27 -28
  11. package/dist/chunks/exceptions-IXsorE8t.js.map +1 -0
  12. package/dist/chunks/lifecycle-D_RvxhDC.js +67 -0
  13. package/dist/chunks/lifecycle-D_RvxhDC.js.map +1 -0
  14. package/dist/chunks/options-5x9gu2Qb.js +604 -0
  15. package/dist/chunks/options-5x9gu2Qb.js.map +1 -0
  16. package/dist/chunks/repository-rpc-B_y0Kspf.js +124 -0
  17. package/dist/chunks/repository-rpc-B_y0Kspf.js.map +1 -0
  18. package/dist/chunks/scope-AGMcHUE_.js +1827 -0
  19. package/dist/chunks/scope-AGMcHUE_.js.map +1 -0
  20. package/dist/chunks/syntax-CVvExx4R.js +137 -0
  21. package/dist/chunks/syntax-CVvExx4R.js.map +1 -0
  22. package/dist/constants/index.d.ts +2 -1
  23. package/dist/constants/index.d.ts.map +1 -1
  24. package/dist/contracts/index.d.ts +37 -27
  25. package/dist/contracts/index.d.ts.map +1 -1
  26. package/dist/core/index.d.ts +1 -4
  27. package/dist/core/index.d.ts.map +1 -1
  28. package/dist/decision/index.d.ts +1 -1
  29. package/dist/decision-graph/index.d.ts +9 -7
  30. package/dist/decision-graph/index.d.ts.map +1 -1
  31. package/dist/diagnostic-utilities/index.d.ts +6 -2
  32. package/dist/diagnostic-utilities/index.d.ts.map +1 -1
  33. package/dist/diagnostics/index.d.ts +21 -33
  34. package/dist/diagnostics/index.d.ts.map +1 -1
  35. package/dist/exceptions/index.d.ts +25 -10
  36. package/dist/exceptions/index.d.ts.map +1 -1
  37. package/dist/export-inventory/index.d.ts +3 -0
  38. package/dist/export-inventory/index.d.ts.map +1 -0
  39. package/dist/export-inventory/inventory.d.ts +22 -0
  40. package/dist/export-inventory/inventory.d.ts.map +1 -0
  41. package/dist/export-inventory/syntax.d.ts +4 -0
  42. package/dist/export-inventory/syntax.d.ts.map +1 -0
  43. package/dist/export-inventory/types.d.ts +9 -0
  44. package/dist/export-inventory/types.d.ts.map +1 -0
  45. package/dist/format/index.d.ts +8 -0
  46. package/dist/format/index.d.ts.map +1 -1
  47. package/dist/impact-pattern-validation/index.d.ts +2 -0
  48. package/dist/impact-pattern-validation/index.d.ts.map +1 -0
  49. package/dist/impact-pattern-validation/inspection.d.ts +24 -0
  50. package/dist/impact-pattern-validation/inspection.d.ts.map +1 -0
  51. package/dist/index.d.ts +5 -3
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +4 -5776
  54. package/dist/integration-validation/index.d.ts +4 -0
  55. package/dist/integration-validation/index.d.ts.map +1 -0
  56. package/dist/integration-validation/inspection.d.ts +18 -0
  57. package/dist/integration-validation/inspection.d.ts.map +1 -0
  58. package/dist/integration-validation/parser.d.ts +9 -0
  59. package/dist/integration-validation/parser.d.ts.map +1 -0
  60. package/dist/integration-validation/types.d.ts +13 -0
  61. package/dist/integration-validation/types.d.ts.map +1 -0
  62. package/dist/manifest/index.d.ts +2 -4
  63. package/dist/manifest/index.d.ts.map +1 -1
  64. package/dist/manifest-validation/index.d.ts +7 -10
  65. package/dist/manifest-validation/index.d.ts.map +1 -1
  66. package/dist/node/index.d.ts +4 -0
  67. package/dist/node/index.d.ts.map +1 -0
  68. package/dist/node-inspection/analysis-worker.d.ts +2 -0
  69. package/dist/node-inspection/analysis-worker.d.ts.map +1 -0
  70. package/dist/node-inspection/client.d.ts +28 -0
  71. package/dist/node-inspection/client.d.ts.map +1 -0
  72. package/dist/node-inspection/constants.d.ts +21 -0
  73. package/dist/node-inspection/constants.d.ts.map +1 -0
  74. package/dist/node-inspection/errors.d.ts +11 -0
  75. package/dist/node-inspection/errors.d.ts.map +1 -0
  76. package/dist/node-inspection/lifecycle.d.ts +15 -0
  77. package/dist/node-inspection/lifecycle.d.ts.map +1 -0
  78. package/dist/node-inspection/protocol.d.ts +20 -0
  79. package/dist/node-inspection/protocol.d.ts.map +1 -0
  80. package/dist/node-inspection/repository-rpc.d.ts +28 -0
  81. package/dist/node-inspection/repository-rpc.d.ts.map +1 -0
  82. package/dist/node-inspection/runner.d.ts +2 -0
  83. package/dist/node-inspection/runner.d.ts.map +1 -0
  84. package/dist/node-inspection/types.d.ts +95 -0
  85. package/dist/node-inspection/types.d.ts.map +1 -0
  86. package/dist/node-runner.js +149 -0
  87. package/dist/node-runner.js.map +1 -0
  88. package/dist/node.js +335 -0
  89. package/dist/node.js.map +1 -0
  90. package/dist/options/index.d.ts +2 -14
  91. package/dist/options/index.d.ts.map +1 -1
  92. package/dist/project-inspection/index.d.ts +21 -1
  93. package/dist/project-inspection/index.d.ts.map +1 -1
  94. package/dist/project-validation/index.d.ts +33 -11
  95. package/dist/project-validation/index.d.ts.map +1 -1
  96. package/dist/repository-inspection-session/index.d.ts +2 -4
  97. package/dist/repository-inspection-session/index.d.ts.map +1 -1
  98. package/dist/repository-reference-validation/index.d.ts +12 -6
  99. package/dist/repository-reference-validation/index.d.ts.map +1 -1
  100. package/dist/retained-memory/index.d.ts +18 -0
  101. package/dist/retained-memory/index.d.ts.map +1 -0
  102. package/dist/scope/index.d.ts +3 -0
  103. package/dist/scope/index.d.ts.map +1 -0
  104. package/dist/scope/scope.d.ts +13 -0
  105. package/dist/scope/scope.d.ts.map +1 -0
  106. package/dist/scope-matching/index.d.ts +2 -1
  107. package/dist/scope-matching/index.d.ts.map +1 -1
  108. package/dist/scope-matching/matching.d.ts +11 -2
  109. package/dist/scope-matching/matching.d.ts.map +1 -1
  110. package/dist/scope-matching/patterns.d.ts +4 -0
  111. package/dist/scope-matching/patterns.d.ts.map +1 -0
  112. package/dist/scope.js +17 -0
  113. package/dist/scope.js.map +1 -0
  114. package/dist/universal-project-inspection/index.d.ts +13 -11
  115. package/dist/universal-project-inspection/index.d.ts.map +1 -1
  116. package/dist/warning-acceptance/acceptance.d.ts +11 -0
  117. package/dist/warning-acceptance/acceptance.d.ts.map +1 -0
  118. package/dist/warning-acceptance/index.d.ts +2 -0
  119. package/dist/warning-acceptance/index.d.ts.map +1 -0
  120. package/package.json +14 -6
  121. package/dist/adapter/index.d.ts +0 -131
  122. package/dist/adapter/index.d.ts.map +0 -1
  123. package/dist/adapter-availability/index.d.ts +0 -15
  124. package/dist/adapter-availability/index.d.ts.map +0 -1
  125. package/dist/adapter-execution/index.d.ts +0 -31
  126. package/dist/adapter-execution/index.d.ts.map +0 -1
  127. package/dist/adapter-repository/index.d.ts +0 -27
  128. package/dist/adapter-repository/index.d.ts.map +0 -1
  129. package/dist/adapter-retained-memory/index.d.ts +0 -8
  130. package/dist/adapter-retained-memory/index.d.ts.map +0 -1
  131. package/dist/adapter-validation/index.d.ts +0 -43
  132. package/dist/adapter-validation/index.d.ts.map +0 -1
  133. package/dist/adapter.js +0 -115
  134. package/dist/adapter.js.map +0 -1
  135. package/dist/chunks/exceptions-HS9ofVy2.js.map +0 -1
  136. package/dist/index.js.map +0 -1
@@ -0,0 +1,13 @@
1
+ import type { ICoreOptions } from '../contracts/index.js';
2
+ import { type IManifestScopeInput, type IManifestScopeResult } from '../scope-matching/index.js';
3
+ /**
4
+ * Matches only the supplied manifest and changed paths, without inspecting source files.
5
+ * @returns A content-free result with deterministic relationship matches.
6
+ * @throws
7
+ * - INVALID_RESOURCE_LIMIT: A Core resource limit is invalid.
8
+ * - INVALID_REPOSITORY_PATH: The repository path is invalid.
9
+ * - INVALID_ARGUMENT: The Core operation received an invalid argument.
10
+ * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
11
+ */
12
+ export declare const matchManifestScope: (input: IManifestScopeInput, options?: ICoreOptions) => Promise<IManifestScopeResult>;
13
+ //# sourceMappingURL=scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/scope/scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,mBAAmB,EAC1B,UAAU,YAAY,KACrB,OAAO,CAAC,oBAAoB,CACuD,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export type { IExactManifestScopeDeclaration, IGlobManifestScopeDeclaration, IManifestScopeCounts, IManifestScopeDeclaration, IManifestScopeInput, IManifestScopeMatch, IManifestScopeOwner, IManifestScopeOwnerKind, IManifestScopeRelationshipField, IManifestScopeResult, } from './types.js';
2
- export { calculateManifestScopeInputDigest, matchParsedManifestScope } from './matching.js';
2
+ export { calculateManifestScopeInputDigest, matchParsedManifestScope, collectManifestScopeDeclarations, } from './matching.js';
3
3
  export { matchManifestScope } from './scope.js';
4
4
  export { normalizeManifestScopeInput } from './validations.js';
5
+ export { matchesRepositoryGlob } from './patterns.js';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope-matching/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,8BAA8B,EAC9B,6BAA6B,EAC7B,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,+BAA+B,EAC/B,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,iCAAiC,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAG5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGhD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope-matching/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,8BAA8B,EAC9B,6BAA6B,EAC7B,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,+BAA+B,EAC/B,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,iCAAiC,EACjC,wBAAwB,EACxB,gCAAgC,GACjC,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGhD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAG/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC"}
@@ -1,7 +1,15 @@
1
1
  import type { IRepositoryPath } from '@moldea.ai/repository';
2
2
  import type { IContentDigest, ICoreResourceLimits } from '../contracts/index.js';
3
3
  import type { IMoldeaManifestV1 } from '../format/index.js';
4
- import type { IManifestScopeCounts, IManifestScopeMatch } from './types.js';
4
+ import type { IManifestScopeCounts, IManifestScopeDeclaration, IManifestScopeMatch, IManifestScopeOwner, IManifestScopeRelationshipField } from './types.js';
5
+ interface IManifestScopeRelationshipDeclaration {
6
+ readonly owner: IManifestScopeOwner;
7
+ readonly field: IManifestScopeRelationshipField;
8
+ readonly pointer: string;
9
+ readonly declaration: IManifestScopeDeclaration;
10
+ }
11
+ /** Collects every version 1 declaration that can establish changed-path relevance. */
12
+ export declare const collectManifestScopeDeclarations: (manifest: IMoldeaManifestV1) => readonly IManifestScopeRelationshipDeclaration[];
5
13
  /** Creates the canonical digest of the sorted unique changed-path set. */
6
14
  export declare const calculateManifestScopeInputDigest: (paths: readonly IRepositoryPath[]) => Promise<IContentDigest>;
7
15
  /**
@@ -11,10 +19,11 @@ export declare const calculateManifestScopeInputDigest: (paths: readonly IReposi
11
19
  * @param limits The immutable Core operation limits.
12
20
  * @returns Frozen content-free matches and stable aggregate counts.
13
21
  * @throws
14
- * - RESOURCE_LIMIT_EXCEEDED: The declaration or match count exceeded `maxEntries`.
22
+ * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
15
23
  */
16
24
  export declare const matchParsedManifestScope: (manifest: IMoldeaManifestV1, paths: readonly IRepositoryPath[], limits: ICoreResourceLimits) => {
17
25
  readonly counts: IManifestScopeCounts;
18
26
  readonly matches: readonly IManifestScopeMatch[];
19
27
  };
28
+ export {};
20
29
  //# sourceMappingURL=matching.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"matching.d.ts","sourceRoot":"","sources":["../../src/scope-matching/matching.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAIjF,OAAO,KAAK,EAEV,iBAAiB,EAKlB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EACV,oBAAoB,EAEpB,mBAAmB,EAGpB,MAAM,YAAY,CAAC;AA2fpB,0EAA0E;AAC1E,eAAO,MAAM,iCAAiC,GAC5C,OAAO,SAAS,eAAe,EAAE,KAChC,OAAO,CAAC,cAAc,CAQxB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,iBAAiB,EAC3B,OAAO,SAAS,eAAe,EAAE,EACjC,QAAQ,mBAAmB,KAC1B;IAAE,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAA;CAmC3F,CAAC"}
1
+ {"version":3,"file":"matching.d.ts","sourceRoot":"","sources":["../../src/scope-matching/matching.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAIjF,OAAO,KAAK,EAEV,iBAAiB,EAKlB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,YAAY,CAAC;AAIpB,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,+BAA+B,CAAC;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,yBAAyB,CAAC;CACjD;AAwRD,sFAAsF;AACtF,eAAO,MAAM,gCAAgC,GAC3C,UAAU,iBAAiB,KAC1B,SAAS,qCAAqC,EA0ChD,CAAC;AA2GF,0EAA0E;AAC1E,eAAO,MAAM,iCAAiC,GAC5C,OAAO,SAAS,eAAe,EAAE,KAChC,OAAO,CAAC,cAAc,CAQxB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,iBAAiB,EAC3B,OAAO,SAAS,eAAe,EAAE,EACjC,QAAQ,mBAAmB,KAC1B;IAAE,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAA;CAmC3F,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IRepositoryPath } from '@moldea.ai/repository';
2
+ /** Matches validated simple-glob segments with zero-or-more-segment globstars. */
3
+ export declare const matchesRepositoryGlob: (patternSegments: readonly string[], path: IRepositoryPath) => boolean;
4
+ //# sourceMappingURL=patterns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patterns.d.ts","sourceRoot":"","sources":["../../src/scope-matching/patterns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAuC7D,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,GAChC,iBAAiB,SAAS,MAAM,EAAE,EAClC,MAAM,eAAe,KACpB,OA2BF,CAAC"}
package/dist/scope.js ADDED
@@ -0,0 +1,17 @@
1
+ import { n as normalizeCoreOptions, t as createCoreOperationOptionsSnapshot } from "./chunks/options-5x9gu2Qb.js";
2
+ import { t as matchManifestScope$1 } from "./chunks/scope-AGMcHUE_.js";
3
+ //#region src/scope/scope.ts
4
+ /**
5
+ * Matches only the supplied manifest and changed paths, without inspecting source files.
6
+ * @returns A content-free result with deterministic relationship matches.
7
+ * @throws
8
+ * - INVALID_RESOURCE_LIMIT: A Core resource limit is invalid.
9
+ * - INVALID_REPOSITORY_PATH: The repository path is invalid.
10
+ * - INVALID_ARGUMENT: The Core operation received an invalid argument.
11
+ * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
12
+ */
13
+ var matchManifestScope = (input, options) => matchManifestScope$1(input, createCoreOperationOptionsSnapshot(normalizeCoreOptions(options)));
14
+ //#endregion
15
+ export { matchManifestScope };
16
+
17
+ //# sourceMappingURL=scope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope.js","names":[],"sources":["../src/scope/scope.ts"],"sourcesContent":["import type { ICoreOptions } from '../contracts/index.js';\nimport { normalizeCoreOptions, createCoreOperationOptionsSnapshot } from '../options/index.js';\nimport {\n matchManifestScope as matchScope,\n type IManifestScopeInput,\n type IManifestScopeResult,\n} from '../scope-matching/index.js';\n\n/**\n * Matches only the supplied manifest and changed paths, without inspecting source files.\n * @returns A content-free result with deterministic relationship matches.\n * @throws\n * - INVALID_RESOURCE_LIMIT: A Core resource limit is invalid.\n * - INVALID_REPOSITORY_PATH: The repository path is invalid.\n * - INVALID_ARGUMENT: The Core operation received an invalid argument.\n * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.\n */\nexport const matchManifestScope = (\n input: IManifestScopeInput,\n options?: ICoreOptions,\n): Promise<IManifestScopeResult> =>\n matchScope(input, createCoreOperationOptionsSnapshot(normalizeCoreOptions(options)));\n"],"mappings":";;;;;;;;;;;;AAiBA,IAAa,sBACX,OACA,YAEA,qBAAW,OAAO,mCAAmC,qBAAqB,OAAO,CAAC,CAAC"}
@@ -1,35 +1,37 @@
1
+ import type { IBindingCoverage } from '../binding-coverage/index.js';
1
2
  import type { IMoldeaProjectIndex } from '../contracts/index.js';
2
3
  import type { ICoreDiagnostic } from '../diagnostics/index.js';
3
4
  import type { IRepositoryFormatVersion } from '../format/index.js';
4
- import type { IRuntimeManifestLocation } from '../manifest-validation/index.js';
5
5
  import { type ICoreOptionsSnapshot } from '../options/index.js';
6
6
  import type { IRepositoryInspectionSession } from '../repository-inspection-session/index.js';
7
7
  export interface IUniversalProjectInspectionResult {
8
8
  readonly formatVersion: IRepositoryFormatVersion | null;
9
9
  readonly project: IMoldeaProjectIndex | null;
10
10
  readonly diagnostics: readonly ICoreDiagnostic[];
11
- readonly runtimeLocations: readonly IRuntimeManifestLocation[];
11
+ readonly coverage: readonly IBindingCoverage[];
12
12
  }
13
13
  export interface IUniversalProjectInspectionContext {
14
14
  readonly session: IRepositoryInspectionSession;
15
15
  readonly signal?: AbortSignal;
16
16
  }
17
17
  /**
18
- * Executes every universal repository-format phase before runtime adapter validation.
18
+ * Executes every universal repository-format phase with syntax-only export checks.
19
19
  * @param context The shared inspection session and optional cancellation signal.
20
20
  * @param options The immutable Core configuration snapshot.
21
21
  * @returns The frozen provisional index only when no universal diagnostic remains.
22
22
  * @throws
23
- * - INVALID_REPOSITORY_PATH: A repository path is invalid.
24
- * - ENTRY_NOT_FOUND: A discovered file disappeared from the reader snapshot.
25
- * - ENTRY_NOT_FILE: A discovered file changed type during inspection.
26
- * - ENTRY_NOT_DIRECTORY: A discovered directory changed type during inspection.
23
+ * - INVALID_REPOSITORY_PATH: The repository path is invalid.
24
+ * - ENTRY_NOT_FOUND: The requested repository entry was not found.
25
+ * - ENTRY_NOT_FILE: The requested repository entry is not a file.
26
+ * - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.
27
27
  * - ACCESS_DENIED: Access to the repository source was denied.
28
28
  * - SOURCE_UNAVAILABLE: The repository source is unavailable.
29
- * - SNAPSHOT_CHANGED: The repository snapshot changed during inspection.
30
- * - INVALID_SOURCE_DATA: The repository reader returned invalid contract data.
31
- * - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
32
- * - ABORTED: Project inspection or a repository operation was aborted.
29
+ * - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
30
+ * - INVALID_SOURCE_DATA: The repository source returned invalid data.
31
+ * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
32
+ * - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
33
+ * - ABORTED: The Core operation was aborted.
34
+ * - ABORTED: The repository operation was aborted.
33
35
  */
34
36
  export declare const inspectUniversalProject: (context: IUniversalProjectInspectionContext, options: ICoreOptionsSnapshot) => Promise<IUniversalProjectInspectionResult>;
35
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/universal-project-inspection/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAoB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAMnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAInE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAEhF,OAAO,EAAsC,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGpG,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2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gB,EAAE,CAAC;CAChD;AAGD,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,OAAO,EAAE,4BAA4B,CAAC;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAWD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,GAClC,SAAS,kCAAkC,EAC3C,SAAS,oBAAoB,KAC5B,OAAO,CAAC,iCAAiC,CAgL3C,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { ICoreResourceLimits } from '../contracts/index.js';
2
+ import type { ICoreDiagnostic, ICoreWarningCode } from '../diagnostics/index.js';
3
+ import type { IAcceptedWarningManifestEntry } from '../format/index.js';
4
+ /**
5
+ * Applies explicit manifest acceptances only to checks that completed, retaining all findings.
6
+ * @returns Normalized diagnostics with acceptance flags, reasons, and obsolete-acceptance warnings.
7
+ * @throws
8
+ * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
9
+ */
10
+ export declare const applyWarningAcceptances: (diagnostics: readonly ICoreDiagnostic[], entries: readonly IAcceptedWarningManifestEntry[], completed: ReadonlySet<ICoreWarningCode>, limits: ICoreResourceLimits) => readonly ICoreDiagnostic[];
11
+ //# sourceMappingURL=acceptance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acceptance.d.ts","sourceRoot":"","sources":["../../src/warning-acceptance/acceptance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAKjE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAMxE;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,eAAe,EAAE,EACvC,SAAS,SAAS,6BAA6B,EAAE,EACjD,WAAW,WAAW,CAAC,gBAAgB,CAAC,EACxC,QAAQ,mBAAmB,KAC1B,SAAS,eAAe,EAkC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { applyWarningAcceptances } from './acceptance.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/warning-acceptance/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moldea.ai/core",
3
- "version": "5.0.1",
3
+ "version": "7.0.0",
4
4
  "description": "Source-neutral, deterministic interpretation and indexing of moldea repositories.",
5
5
  "homepage": "https://github.com/moldea-ai/packages/tree/main/projects/core#readme",
6
6
  "bugs": {
@@ -30,21 +30,29 @@
30
30
  "types": "./dist/format/index.d.ts",
31
31
  "import": "./dist/format.js"
32
32
  },
33
- "./adapter": {
34
- "types": "./dist/adapter/index.d.ts",
35
- "import": "./dist/adapter.js"
33
+ "./node": {
34
+ "types": "./dist/node/index.d.ts",
35
+ "import": "./dist/node.js"
36
+ },
37
+ "./scope": {
38
+ "types": "./dist/scope/index.d.ts",
39
+ "import": "./dist/scope.js"
36
40
  }
37
41
  },
38
42
  "main": "./dist/index.js",
43
+ "imports": {
44
+ "#moldea-core-runner": "./dist/node-runner.js",
45
+ "#moldea-core-analysis-worker": "./dist/analysis-worker.js"
46
+ },
39
47
  "types": "./dist/index.d.ts",
40
48
  "dependencies": {
41
49
  "@moldea.ai/repository": "^2.0.0",
42
50
  "error-message-utils": "1.2.11",
43
- "yaml": "2.9.0"
51
+ "yaml": "2.9.0",
52
+ "typescript": "6.0.3"
44
53
  },
45
54
  "devDependencies": {
46
55
  "@types/node": "22.20.1",
47
- "typescript": "6.0.3",
48
56
  "vite": "8.2.1",
49
57
  "vitest": "4.1.10"
50
58
  },
@@ -1,131 +0,0 @@
1
- import type { IRepositoryEntry, IRepositoryEntryPage, IRepositoryEntryPageOptions, IRepositoryFilePage, IRepositoryFilePageOptions, IRepositoryOperationOptions, IRepositoryPath, IRepositorySnapshot } from '@moldea.ai/repository';
2
- import type { IIndexedAgent, IIndexedDescriptionAsset } from '../contracts/index.js';
3
- import type { IAdapterDiagnostic, IDiagnosticDetails } from '../diagnostics/index.js';
4
- import type { IRepositoryFormatVersion, IRepositoryReference } from '../format/index.js';
5
- export interface IRuntimeAdapter {
6
- readonly id: string;
7
- readonly supportedRepositoryFormatVersions: readonly IRepositoryFormatVersion[];
8
- /**
9
- * Inspects the trusted provisional project through the supplied budget-aware reader.
10
- * @param context The immutable agent closure, reader, and cancellation signal.
11
- * @returns A promise resolving to deterministic evidence and adapter diagnostics.
12
- * @throws
13
- * - INVALID_REPOSITORY_PATH: The repository path is invalid.
14
- * - ENTRY_NOT_FOUND: The requested repository entry was not found.
15
- * - ENTRY_NOT_FILE: The requested repository entry is not a file.
16
- * - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.
17
- * - ACCESS_DENIED: Access to the repository source was denied.
18
- * - SOURCE_UNAVAILABLE: The repository source is unavailable.
19
- * - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
20
- * - INVALID_SOURCE_DATA: The repository source returned invalid data.
21
- * - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
22
- * - ABORTED: The repository operation was aborted.
23
- */
24
- inspect(context: IRuntimeAdapterContext): Promise<IRuntimeAdapterResult>;
25
- }
26
- export interface IRuntimeAdapterContext {
27
- readonly agent: IIndexedAgent;
28
- readonly repository: IRuntimeAdapterRepository;
29
- readonly signal?: AbortSignal;
30
- /**
31
- * Resolves one exact same-runtime manifest agent binding without exposing an agent index.
32
- * @param reference The runtime-agent source reference to match exactly.
33
- * @returns The absent, ambiguous, or content-minimal matched agent result.
34
- */
35
- resolveAgent(reference: IRepositoryReference): IRuntimeAdapterAgentResolution;
36
- }
37
- export interface IRuntimeAdapterResolvedAgent {
38
- readonly declaration: IIndexedAgent['declaration'];
39
- readonly description: IIndexedDescriptionAsset;
40
- readonly handoffDescription: IIndexedDescriptionAsset | null;
41
- readonly id: string;
42
- }
43
- export type IRuntimeAdapterAgentResolution = {
44
- readonly kind: 'absent';
45
- } | {
46
- readonly candidateCount: number;
47
- readonly kind: 'ambiguous';
48
- } | {
49
- readonly agent: IRuntimeAdapterResolvedAgent;
50
- readonly kind: 'matched';
51
- };
52
- export interface IRuntimeAdapterRepository {
53
- readonly limits: IRuntimeAdapterRepositoryLimits;
54
- readonly snapshot: IRepositorySnapshot;
55
- /**
56
- * Looks up one exact logical path without following symlinks.
57
- * @param path The validated repository-logical path.
58
- * @param options Optional cancellation controls.
59
- * @returns The detached entry or `null` when it is absent.
60
- * @throws
61
- * - INVALID_REPOSITORY_PATH: The repository path is invalid.
62
- * - ACCESS_DENIED: Access to the repository source was denied.
63
- * - SOURCE_UNAVAILABLE: The repository source is unavailable.
64
- * - SNAPSHOT_CHANGED: The repository snapshot changed during inspection.
65
- * - INVALID_SOURCE_DATA: The repository reader returned invalid contract data.
66
- * - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
67
- * - ABORTED: Adapter inspection or the repository operation was aborted.
68
- */
69
- getEntry(path: IRepositoryPath, options?: IRepositoryOperationOptions): Promise<IRepositoryEntry | null>;
70
- /**
71
- * Returns one deterministic bounded descendant page.
72
- * @param options The prefix, keyset cursor, page bound, and cancellation controls.
73
- * @returns One immutable source-bound page and continuation state.
74
- * @throws
75
- * - INVALID_REPOSITORY_PATH: The repository path is invalid.
76
- * - ENTRY_NOT_FOUND: The requested repository entry was not found.
77
- * - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.
78
- * - INVALID_PAGE_REQUEST: The repository page request is invalid.
79
- * - ACCESS_DENIED: Access to the repository source was denied.
80
- * - SOURCE_UNAVAILABLE: The repository source is unavailable.
81
- * - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
82
- * - INVALID_SOURCE_DATA: The repository source returned invalid data.
83
- * - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
84
- * - ABORTED: The repository operation was aborted.
85
- */
86
- listEntriesPage(options: IRepositoryEntryPageOptions): Promise<IRepositoryEntryPage>;
87
- /**
88
- * Reads one bounded regular-file byte range without following symlinks.
89
- * @param path The validated repository-logical file path.
90
- * @param options The offset, byte bound, and cancellation controls.
91
- * @returns One detached source-bound byte page and continuation offset.
92
- * @throws
93
- * - INVALID_REPOSITORY_PATH: The repository path is invalid.
94
- * - ENTRY_NOT_FOUND: The requested repository entry was not found.
95
- * - ENTRY_NOT_FILE: The requested repository entry is not a file.
96
- * - INVALID_PAGE_REQUEST: The repository page request is invalid.
97
- * - ACCESS_DENIED: Access to the repository source was denied.
98
- * - SOURCE_UNAVAILABLE: The repository source is unavailable.
99
- * - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
100
- * - INVALID_SOURCE_DATA: The repository source returned invalid data.
101
- * - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
102
- * - ABORTED: The repository operation was aborted.
103
- */
104
- readFilePage(path: IRepositoryPath, options: IRepositoryFilePageOptions): Promise<IRepositoryFilePage>;
105
- }
106
- export interface IRuntimeAdapterRepositoryLimits {
107
- readonly maxEntries: number;
108
- readonly maxFileBytes: number;
109
- readonly maxPageBytes: number;
110
- readonly maxPageEntries: number;
111
- readonly maxTotalBytesRead: number;
112
- }
113
- export type IRuntimeAdapterEvidenceKind = 'runtime-package' | 'language' | 'agent-definition' | 'instruction-loader' | 'schema' | 'tool-registration' | 'skill-registration' | 'handoff-registration' | 'variable-provider' | 'runtime-pattern';
114
- export interface IRuntimeAdapterEvidence {
115
- readonly source: string;
116
- readonly kind: IRuntimeAdapterEvidenceKind;
117
- readonly agentId: string | null;
118
- readonly capabilityKind: 'tool' | 'skill' | null;
119
- readonly capabilityId: string | null;
120
- readonly runtimeName: string | null;
121
- readonly references: readonly IRepositoryReference[];
122
- readonly details: IDiagnosticDetails;
123
- }
124
- export interface IRuntimeAdapterResult {
125
- readonly evidence: readonly IRuntimeAdapterEvidence[];
126
- readonly diagnostics: readonly IAdapterDiagnostic[];
127
- }
128
- export type { IAdapterDiagnostic, IAdapterErrorDiagnostic, IAdapterWarningDiagnostic, IUnverifiedRelationship, IUnverifiedRelationshipDetails, } from '../diagnostics/index.js';
129
- export type { IIndexedAgent, IIndexedContextAsset, IIndexedDecision, IIndexedDescriptionAsset, IIndexedManifest, IIndexedMirror, IIndexedRuntimeGuidance, IIndexedTextAsset, } from '../contracts/index.js';
130
- export { iterateRuntimeAdapterEntries, readRuntimeAdapterFile, } from '../adapter-repository/index.js';
131
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,0BAA0B,EAC1B,2BAA2B,EAC3B,eAAe,EACf,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,KAAK,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAGzF,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,iCAAiC,EAAE,SAAS,wBAAwB,EAAE,CAAC;IAEhF;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAC1E;AAGD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,yBAAyB,CAAC;IAC/C,QAAQ,CA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AAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,gCAAgC,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { ICoreDiagnostic } from '../diagnostics/index.js';
2
- import type { IRepositoryFormatVersion } from '../format/index.js';
3
- import type { IRuntimeManifestLocation } from '../manifest-validation/index.js';
4
- import type { ICoreOptionsSnapshot } from '../options/index.js';
5
- /**
6
- * Validates adapter availability and format support before any runtime adapter runs.
7
- * @param locations The recognized runtime declarations retained from manifest parsing.
8
- * @param formatVersion The active repository-format version.
9
- * @param options The immutable Core adapter registry and limits.
10
- * @returns Frozen deterministic preflight diagnostics.
11
- * @throws
12
- * - RESOURCE_LIMIT_EXCEEDED: The raw Core diagnostic limit was exceeded.
13
- */
14
- export declare const validateRuntimeAdapterAvailability: (locations: readonly IRuntimeManifestLocation[], formatVersion: IRepositoryFormatVersion, options: ICoreOptionsSnapshot) => readonly ICoreDiagnostic[];
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-availability/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,kCAAkC,GAC7C,WAAW,SAAS,wBAAwB,EAAE,EAC9C,eAAe,wBAAwB,EACvC,SAAS,oBAAoB,KAC5B,SAAS,eAAe,EAkC1B,CAAC"}
@@ -1,31 +0,0 @@
1
- import type { IRuntimeAdapterEvidence } from '../adapter/index.js';
2
- import type { IMoldeaProjectIndex } from '../contracts/index.js';
3
- import type { IAdapterDiagnostic } from '../diagnostics/index.js';
4
- import type { ICoreOptionsSnapshot } from '../options/index.js';
5
- import type { IRepositoryInspectionSession } from '../repository-inspection-session/index.js';
6
- export interface IRuntimeAdapterInspectionResult {
7
- readonly evidence: readonly IRuntimeAdapterEvidence[];
8
- readonly diagnostics: readonly IAdapterDiagnostic[];
9
- }
10
- /**
11
- * Invokes every applicable configured adapter in canonical ID order.
12
- * @param project The complete frozen universal project index.
13
- * @param session The shared inspection reader, cache, and resource budget.
14
- * @param options The immutable Core adapter registry and resource limits.
15
- * @param signal Optional cancellation shared by the complete inspection.
16
- * @returns A promise resolving to normalized evidence and adapter diagnostics.
17
- * @throws
18
- * - INVALID_REPOSITORY_PATH: An adapter repository path is invalid.
19
- * - ENTRY_NOT_FOUND: A requested repository entry is absent.
20
- * - ENTRY_NOT_FILE: A requested repository entry is not a regular file.
21
- * - ENTRY_NOT_DIRECTORY: A requested repository entry is not a directory.
22
- * - ACCESS_DENIED: Access to the repository source was denied.
23
- * - SOURCE_UNAVAILABLE: The repository source is unavailable.
24
- * - SNAPSHOT_CHANGED: The repository snapshot changed during adapter inspection.
25
- * - INVALID_SOURCE_DATA: The repository reader returned invalid contract data.
26
- * - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
27
- * - ABORTED: Adapter inspection or a repository operation was aborted.
28
- * - ADAPTER_EXECUTION_FAILED: An adapter failed or returned an invalid result.
29
- */
30
- export declare const inspectRuntimeAdapters: (project: IMoldeaProjectIndex, session: IRepositoryInspectionSession, options: ICoreOptionsSnapshot, signal?: AbortSignal) => Promise<IRuntimeAdapterInspectionResult>;
31
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-execution/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAGV,uBAAuB,EAGxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOhF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,OAAO,KAAK,EAAE,oBAAoB,EAA2B,MAAM,qBAAqB,CAAC;AAEzF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAG9F,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACtD,QAAQ,CAAC,WAAW,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACrD;AA0ID;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,sBAAsB,GACjC,SAAS,mBAAmB,EAC5B,SAAS,4BAA4B,EACrC,SAAS,oBAAoB,EAC7B,SAAS,WAAW,KACnB,OAAO,CAAC,+BAA+B,CAwCzC,CAAC"}
@@ -1,27 +0,0 @@
1
- import { type IRepositoryEntry, type IRepositoryOperationOptions, type IRepositoryPath } from '@moldea.ai/repository';
2
- import type { IRuntimeAdapterRepository } from '../adapter/index.js';
3
- /**
4
- * Reads one complete adapter source file through bounded repository pages.
5
- * @param repository The Core-created repository for the current adapter invocation.
6
- * @param path The exact source file path.
7
- * @param options Optional cancellation controls.
8
- * @returns A promise resolving to one detached complete source buffer.
9
- * @throws
10
- * - INVALID_REPOSITORY_PATH: The repository path is invalid.
11
- * - ENTRY_NOT_FOUND: The requested repository entry was not found.
12
- * - ENTRY_NOT_FILE: The requested repository entry is not a file.
13
- * - INVALID_PAGE_REQUEST: The repository page request is invalid.
14
- * - ACCESS_DENIED: Access to the repository source was denied.
15
- * - SOURCE_UNAVAILABLE: The repository source is unavailable.
16
- * - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
17
- * - INVALID_SOURCE_DATA: The repository source returned invalid data.
18
- * - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
19
- * - ABORTED: The repository operation was aborted.
20
- * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
21
- */
22
- export declare const readRuntimeAdapterFile: (repository: IRuntimeAdapterRepository, path: IRepositoryPath, options?: IRepositoryOperationOptions) => Promise<Uint8Array>;
23
- /** Iterates one adapter-scoped descendant listing through bounded pages. */
24
- export declare const iterateRuntimeAdapterEntries: (repository: IRuntimeAdapterRepository, options?: IRepositoryOperationOptions & {
25
- readonly prefix?: IRepositoryPath;
26
- }) => AsyncIterable<IRepositoryEntry>;
27
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-repository/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA+BrE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sBAAsB,GACjC,YAAY,yBAAyB,EACrC,MAAM,eAAe,EACrB,UAAU,2BAA2B,KACpC,OAAO,CAAC,UAAU,CAyEpB,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,4BAA4B,GACvC,YAAY,yBAAyB,EACrC,UAAU,2BAA2B,GAAG;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,eAAe,CAAA;CAAE,KAC5E,aAAa,CAAC,gBAAgB,CA6DhC,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { IRuntimeAdapterRepository } from '../adapter/index.js';
2
- type IRetainedByteReservation = (byteLength: number) => void;
3
- /** Registers the retained-memory reservation owned by one inspection session. */
4
- export declare const registerRuntimeAdapterRetainedByteReservation: (repository: IRuntimeAdapterRepository, reserve: IRetainedByteReservation) => void;
5
- /** Reserves a complete adapter-owned buffer when Core owns the repository session. */
6
- export declare const reserveRuntimeAdapterRetainedBytesIfTracked: (repository: IRuntimeAdapterRepository, byteLength: number) => void;
7
- export {};
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-retained-memory/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AACrE,KAAK,wBAAwB,GAAG,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;AAK7D,iFAAiF;AACjF,eAAO,MAAM,6CAA6C,GACxD,YAAY,yBAAyB,EACrC,SAAS,wBAAwB,KAChC,IAMF,CAAC;AAEF,sFAAsF;AACtF,eAAO,MAAM,2CAA2C,GACtD,YAAY,yBAAyB,EACrC,YAAY,MAAM,KACjB,IAMF,CAAC"}
@@ -1,43 +0,0 @@
1
- import type { IRuntimeAdapterEvidence, IRuntimeAdapterRepository } from '../adapter/index.js';
2
- import type { ICoreResourceLimits, IIndexedAgent, IMoldeaProjectIndex } from '../contracts/index.js';
3
- import type { IAdapterDiagnostic } from '../diagnostics/index.js';
4
- export interface IValidatedRuntimeAdapterResult {
5
- readonly evidence: readonly IRuntimeAdapterEvidence[];
6
- readonly diagnostics: readonly IAdapterDiagnostic[];
7
- }
8
- export interface IRuntimeAdapterOutputCounts {
9
- diagnostics: number;
10
- evidence: number;
11
- }
12
- interface IAdapterValidationContext {
13
- readonly adapterId: string;
14
- readonly agents: readonly IIndexedAgent[];
15
- readonly project: IMoldeaProjectIndex;
16
- readonly repository: IRuntimeAdapterRepository;
17
- readonly limits: ICoreResourceLimits;
18
- readonly signal?: AbortSignal;
19
- }
20
- /**
21
- * Deduplicates and sorts normalized evidence from every completed adapter.
22
- * @param candidates The normalized evidence items to combine.
23
- * @returns A frozen deterministic evidence collection.
24
- */
25
- export declare const normalizeRuntimeAdapterEvidence: (candidates: readonly IRuntimeAdapterEvidence[]) => readonly IRuntimeAdapterEvidence[];
26
- /**
27
- * Validates and normalizes one untrusted runtime adapter result.
28
- * @param candidate The result returned by the adapter implementation.
29
- * @param context The invoking adapter scope, project, reader, limits, and signal.
30
- * @returns A promise resolving to frozen deterministic evidence and diagnostics.
31
- * @throws
32
- * - INVALID_REPOSITORY_PATH: An adapter repository reference path is invalid.
33
- * - ACCESS_DENIED: Access to the repository source was denied.
34
- * - SOURCE_UNAVAILABLE: The repository source is unavailable.
35
- * - SNAPSHOT_CHANGED: The repository snapshot changed during validation.
36
- * - INVALID_SOURCE_DATA: The repository reader returned invalid contract data.
37
- * - RESOURCE_LIMIT_EXCEEDED: A Core or repository resource limit was exceeded.
38
- * - ABORTED: Adapter validation or a repository operation was aborted.
39
- * - ADAPTER_EXECUTION_FAILED: The adapter result violates its public contract.
40
- */
41
- export declare const validateRuntimeAdapterResult: (candidate: unknown, context: IAdapterValidationContext, outputCounts: IRuntimeAdapterOutputCounts) => Promise<IValidatedRuntimeAdapterResult>;
42
- export {};
43
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter-validation/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,uBAAuB,EAEvB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,KAAK,EACV,kBAAkB,EAMnB,MAAM,yBAAyB,CAAC;AA4FjC,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACtD,QAAQ,CAAC,WAAW,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACrD;AAGD,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,yBAAyB;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,yBAAyB,CAAC;IAC/C,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AA8nBD;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAC1C,YAAY,SAAS,uBAAuB,EAAE,KAC7C,SAAS,uBAAuB,EAQlC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,4BAA4B,GACvC,WAAW,OAAO,EAClB,SAAS,yBAAyB,EAClC,cAAc,2BAA2B,KACxC,OAAO,CAAC,8BAA8B,CA4DxC,CAAC"}