@moldea.ai/cli 10.0.0 → 11.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.
@@ -1,52 +1,20 @@
1
1
  #!/usr/bin/env node
2
- import { o as MoldeaCliCompositionException, t as resolveInstalledMoldeaCliComposition } from "./composition-DIN3r5rw.js";
2
+ import { o as MoldeaCliCompositionException, t as resolveInstalledMoldeaCliComposition } from "./composition-plpY2VTL.js";
3
3
  import { createNodeProjectInspection } from "@moldea.ai/core/node";
4
- import { createMemoryRepositoryReader } from "@moldea.ai/repository/memory";
5
4
  //#region src/core-composition/executor.ts
6
5
  var calculateRetainedByteLimit = (maxTotalBytes) => maxTotalBytes > Math.floor(Number.MAX_SAFE_INTEGER / 4) ? Number.MAX_SAFE_INTEGER : maxTotalBytes * 4;
7
- var installedRegistryUrl = () => new URL(import.meta.resolve("#moldea-cli-adapter-registry"));
8
6
  /**
9
- * Resolves actual installed adapter identities without importing adapters into the CLI process.
10
- * @returns The complete composition after closing the isolated inspection.
11
- * @throws
12
- * - DUPLICATE_ADAPTER_ID: A runtime adapter ID is registered more than once.
13
- * - RESERVED_ADAPTER_ID: A reserved runtime adapter ID was supplied.
14
- * - INVALID_ADAPTER_DEFINITION: A runtime adapter definition is invalid.
15
- * - ABORTED: The Core operation was aborted.
16
- * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
17
- * - INSPECTION_BUSY: Project inspection capacity is busy. Try again shortly.
18
- * - INSPECTION_TIMEOUT: The isolated project inspection timed out.
19
- * - INSPECTION_PROCESS_FAILED: The isolated project inspection failed.
20
- */
21
- var inspectMoldeaCliComposition = async (input) => {
22
- const inspection = await createNodeProjectInspection({
23
- repository: createMemoryRepositoryReader([]),
24
- adapterRegistryUrl: installedRegistryUrl(),
25
- ...input.signal === void 0 ? {} : { signal: input.signal }
26
- });
27
- try {
28
- return resolveInstalledMoldeaCliComposition({
29
- ...input,
30
- activeAdapters: inspection.adapters
31
- });
32
- } finally {
33
- await inspection.dispose();
34
- }
35
- };
36
- /**
37
- * Creates one isolated inspection per snapshot attempt, with no in-process adapter fallback.
7
+ * Creates one isolated inspection per snapshot attempt, with no in-process fallback.
38
8
  * @param nodeInspectionFactory The supervised Node inspection boundary.
39
- * @param adapterRegistryUrl The registry resolved from trusted installed code.
40
9
  * @returns An executor that disposes its worker before returning any successful result.
41
10
  */
42
- var createMoldeaCliCoreInspectionExecutor = (nodeInspectionFactory = createNodeProjectInspection, adapterRegistryUrl = installedRegistryUrl()) => async (input) => {
11
+ var createMoldeaCliCoreInspectionExecutor = (nodeInspectionFactory = createNodeProjectInspection) => async (input) => {
43
12
  const inspection = await nodeInspectionFactory({
44
- adapterRegistryUrl,
45
13
  repository: input.repository,
46
14
  limits: {
47
15
  maxDiagnostics: input.resourceLimits.maxDiagnostics,
48
16
  maxEntries: input.resourceLimits.maxEntries,
49
- maxEvidence: input.resourceLimits.maxEvidence,
17
+ maxCoverage: input.resourceLimits.maxCoverage,
50
18
  maxFileBytes: input.resourceLimits.maxFileBytes,
51
19
  maxManifestBytes: input.resourceLimits.maxManifestBytes,
52
20
  maxRetainedBytes: calculateRetainedByteLimit(input.resourceLimits.maxTotalBytes),
@@ -55,18 +23,15 @@ var createMoldeaCliCoreInspectionExecutor = (nodeInspectionFactory = createNodeP
55
23
  ...input.signal === void 0 ? {} : { signal: input.signal }
56
24
  });
57
25
  try {
58
- if (resolveInstalledMoldeaCliComposition({
59
- packageMetadata: input.packageMetadata,
60
- activeAdapters: inspection.adapters
61
- }).kind === "invalid") throw new MoldeaCliCompositionException();
26
+ if (resolveInstalledMoldeaCliComposition({ packageMetadata: input.packageMetadata }).kind === "invalid") throw new MoldeaCliCompositionException();
62
27
  if (input.command === "inspect") return await inspection.readPage({
63
28
  ...input.cursor === void 0 ? {} : { cursor: input.cursor },
64
29
  maxItems: Math.min(256, input.resourceLimits.maxEntries),
65
30
  view: "all"
66
31
  });
67
32
  const diagnostics = [];
68
- const evidence = [];
69
- for (const view of ["diagnostics", "evidence"]) {
33
+ const coverage = [];
34
+ for (const view of ["diagnostics", "coverage"]) {
70
35
  let cursor;
71
36
  do {
72
37
  const result = await inspection.readPage({
@@ -75,17 +40,19 @@ var createMoldeaCliCoreInspectionExecutor = (nodeInspectionFactory = createNodeP
75
40
  ...cursor === void 0 ? {} : { cursor }
76
41
  });
77
42
  for (const { item } of result.page.records) if (item.kind === "diagnostic") diagnostics.push(item.diagnostic);
78
- else if (item.kind === "evidence") evidence.push(item.evidence);
43
+ else if (item.kind === "coverage") coverage.push(item.coverage);
79
44
  cursor = result.page.nextCursor ?? void 0;
80
45
  } while (cursor !== void 0);
81
46
  }
82
47
  return Object.freeze({
83
48
  diagnostics: Object.freeze(diagnostics),
84
- evidence: Object.freeze(evidence),
49
+ coverage: Object.freeze(coverage),
50
+ coverageCounts: inspection.coverageCounts,
51
+ diagnosticCount: inspection.counts.diagnostics,
52
+ acceptedWarningCount: inspection.counts.acceptedWarnings,
85
53
  errorCount: inspection.counts.errors,
86
54
  warningCount: inspection.counts.warnings,
87
55
  valid: inspection.valid,
88
- runtimeInspection: inspection.runtimeInspection,
89
56
  formatVersion: inspection.formatVersion,
90
57
  source: inspection.source,
91
58
  summary: inspection.summary
@@ -98,9 +65,6 @@ var createMoldeaCliCoreInspectionExecutor = (nodeInspectionFactory = createNodeP
98
65
  * Executes one project inspection through the isolated CLI-configured Node boundary.
99
66
  * @returns A promise resolving to Core's complete immutable inspection result.
100
67
  * @throws
101
- * - DUPLICATE_ADAPTER_ID: A runtime adapter ID is registered more than once.
102
- * - RESERVED_ADAPTER_ID: A reserved runtime adapter ID was supplied.
103
- * - INVALID_ADAPTER_DEFINITION: A runtime adapter definition is invalid.
104
68
  * - INVALID_RESOURCE_LIMIT: A Core resource limit is invalid.
105
69
  * - INVALID_ARGUMENT: The Core operation received an invalid argument.
106
70
  * - INVALID_REPOSITORY_PATH: The repository path is invalid.
@@ -117,7 +81,6 @@ var createMoldeaCliCoreInspectionExecutor = (nodeInspectionFactory = createNodeP
117
81
  * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
118
82
  * - ABORTED: The repository operation was aborted.
119
83
  * - ABORTED: The Core operation was aborted.
120
- * - ADAPTER_EXECUTION_FAILED: A runtime adapter failed during inspection.
121
84
  * - INSPECTION_BUSY: Project inspection capacity is busy. Try again shortly.
122
85
  * - INSPECTION_TIMEOUT: The isolated project inspection timed out.
123
86
  * - INSPECTION_PROCESS_FAILED: The isolated project inspection failed.
@@ -125,6 +88,6 @@ var createMoldeaCliCoreInspectionExecutor = (nodeInspectionFactory = createNodeP
125
88
  */
126
89
  var executeMoldeaCliCoreInspection = createMoldeaCliCoreInspectionExecutor();
127
90
  //#endregion
128
- export { executeMoldeaCliCoreInspection, inspectMoldeaCliComposition };
91
+ export { executeMoldeaCliCoreInspection };
129
92
 
130
- //# sourceMappingURL=core-composition-CWyDX8h6.js.map
93
+ //# sourceMappingURL=core-composition-vn2fp5zf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-composition-vn2fp5zf.js","names":[],"sources":["../../src/core-composition/executor.ts"],"sourcesContent":["import type { IDiagnostic, IProjectValidationResult, IBindingCoverage } from '@moldea.ai/core';\nimport { createNodeProjectInspection } from '@moldea.ai/core/node';\n\nimport {\n MoldeaCliCompositionException,\n resolveInstalledMoldeaCliComposition,\n} from '../composition/index.js';\n\nimport type { IMoldeaCliCoreInspectionExecutor, IMoldeaCliNodeInspectionFactory } from './types.js';\n\nconst calculateRetainedByteLimit = (maxTotalBytes: number): number =>\n maxTotalBytes > Math.floor(Number.MAX_SAFE_INTEGER / 4)\n ? Number.MAX_SAFE_INTEGER\n : maxTotalBytes * 4;\n\n/**\n * Creates one isolated inspection per snapshot attempt, with no in-process fallback.\n * @param nodeInspectionFactory The supervised Node inspection boundary.\n * @returns An executor that disposes its worker before returning any successful result.\n */\nexport const createMoldeaCliCoreInspectionExecutor =\n (\n nodeInspectionFactory: IMoldeaCliNodeInspectionFactory = createNodeProjectInspection,\n ): IMoldeaCliCoreInspectionExecutor =>\n async (input) => {\n const inspection = await nodeInspectionFactory({\n repository: input.repository,\n limits: {\n maxDiagnostics: input.resourceLimits.maxDiagnostics,\n maxEntries: input.resourceLimits.maxEntries,\n maxCoverage: input.resourceLimits.maxCoverage,\n maxFileBytes: input.resourceLimits.maxFileBytes,\n maxManifestBytes: input.resourceLimits.maxManifestBytes,\n maxRetainedBytes: calculateRetainedByteLimit(input.resourceLimits.maxTotalBytes),\n maxTotalBytesRead: input.resourceLimits.maxTotalBytes,\n },\n ...(input.signal === undefined ? {} : { signal: input.signal }),\n });\n try {\n if (\n resolveInstalledMoldeaCliComposition({\n packageMetadata: input.packageMetadata,\n }).kind === 'invalid'\n )\n throw new MoldeaCliCompositionException();\n if (input.command === 'inspect')\n return await inspection.readPage({\n ...(input.cursor === undefined ? {} : { cursor: input.cursor }),\n maxItems: Math.min(256, input.resourceLimits.maxEntries),\n view: 'all',\n });\n const diagnostics: IDiagnostic[] = [];\n const coverage: IBindingCoverage[] = [];\n for (const view of ['diagnostics', 'coverage'] as const) {\n let cursor: string | undefined;\n do {\n const result = await inspection.readPage({\n view,\n maxItems: Math.min(256, input.resourceLimits.maxEntries),\n ...(cursor === undefined ? {} : { cursor }),\n });\n for (const { item } of result.page.records) {\n if (item.kind === 'diagnostic') diagnostics.push(item.diagnostic);\n else if (item.kind === 'coverage') coverage.push(item.coverage);\n }\n cursor = result.page.nextCursor ?? undefined;\n } while (cursor !== undefined);\n }\n return Object.freeze({\n diagnostics: Object.freeze(diagnostics),\n coverage: Object.freeze(coverage),\n coverageCounts: inspection.coverageCounts,\n diagnosticCount: inspection.counts.diagnostics,\n acceptedWarningCount: inspection.counts.acceptedWarnings,\n errorCount: inspection.counts.errors,\n warningCount: inspection.counts.warnings,\n valid: inspection.valid,\n formatVersion: inspection.formatVersion,\n source: inspection.source,\n summary: inspection.summary,\n } satisfies IProjectValidationResult);\n } finally {\n await inspection.dispose();\n }\n };\n\n/**\n * Executes one project inspection through the isolated CLI-configured Node boundary.\n * @returns A promise resolving to Core's complete immutable inspection result.\n * @throws\n * - INVALID_RESOURCE_LIMIT: A Core resource limit is invalid.\n * - INVALID_ARGUMENT: The Core operation received an invalid argument.\n * - INVALID_REPOSITORY_PATH: The repository path is invalid.\n * - ENTRY_NOT_FOUND: The requested repository entry was not found.\n * - ENTRY_NOT_FILE: The requested repository entry is not a file.\n * - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.\n * - INVALID_PAGE_REQUEST: The repository page request is invalid.\n * - ACCESS_DENIED: Access to the repository source was denied.\n * - SOURCE_UNAVAILABLE: The repository source is unavailable.\n * - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.\n * - PROVIDER_INCOMPLETE: The repository provider cannot expose a complete result.\n * - INVALID_SOURCE_DATA: The repository source returned invalid data.\n * - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.\n * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.\n * - ABORTED: The repository operation was aborted.\n * - ABORTED: The Core operation was aborted.\n * - INSPECTION_BUSY: Project inspection capacity is busy. Try again shortly.\n * - INSPECTION_TIMEOUT: The isolated project inspection timed out.\n * - INSPECTION_PROCESS_FAILED: The isolated project inspection failed.\n * - COMPOSITION_STATE_INVALID: The installed composition state is invalid.\n */\nexport const executeMoldeaCliCoreInspection = createMoldeaCliCoreInspectionExecutor();\n"],"mappings":";;;;AAUA,IAAM,8BAA8B,kBAClC,gBAAgB,KAAK,MAAM,OAAO,mBAAmB,CAAC,IAClD,OAAO,mBACP,gBAAgB;;;;;;AAOtB,IAAa,yCAET,wBAAyD,gCAE3D,OAAO,UAAU;CACf,MAAM,aAAa,MAAM,sBAAsB;EAC7C,YAAY,MAAM;EAClB,QAAQ;GACN,gBAAgB,MAAM,eAAe;GACrC,YAAY,MAAM,eAAe;GACjC,aAAa,MAAM,eAAe;GAClC,cAAc,MAAM,eAAe;GACnC,kBAAkB,MAAM,eAAe;GACvC,kBAAkB,2BAA2B,MAAM,eAAe,aAAa;GAC/E,mBAAmB,MAAM,eAAe;EAC1C;EACA,GAAI,MAAM,WAAW,KAAA,IAAY,CAAC,IAAI,EAAE,QAAQ,MAAM,OAAO;CAC/D,CAAC;CACD,IAAI;EACF,IACE,qCAAqC,EACnC,iBAAiB,MAAM,gBACzB,CAAC,CAAC,CAAC,SAAS,WAEZ,MAAM,IAAI,8BAA8B;EAC1C,IAAI,MAAM,YAAY,WACpB,OAAO,MAAM,WAAW,SAAS;GAC/B,GAAI,MAAM,WAAW,KAAA,IAAY,CAAC,IAAI,EAAE,QAAQ,MAAM,OAAO;GAC7D,UAAU,KAAK,IAAI,KAAK,MAAM,eAAe,UAAU;GACvD,MAAM;EACR,CAAC;EACH,MAAM,cAA6B,CAAC;EACpC,MAAM,WAA+B,CAAC;EACtC,KAAK,MAAM,QAAQ,CAAC,eAAe,UAAU,GAAY;GACvD,IAAI;GACJ,GAAG;IACD,MAAM,SAAS,MAAM,WAAW,SAAS;KACvC;KACA,UAAU,KAAK,IAAI,KAAK,MAAM,eAAe,UAAU;KACvD,GAAI,WAAW,KAAA,IAAY,CAAC,IAAI,EAAE,OAAO;IAC3C,CAAC;IACD,KAAK,MAAM,EAAE,UAAU,OAAO,KAAK,SACjC,IAAI,KAAK,SAAS,cAAc,YAAY,KAAK,KAAK,UAAU;SAC3D,IAAI,KAAK,SAAS,YAAY,SAAS,KAAK,KAAK,QAAQ;IAEhE,SAAS,OAAO,KAAK,cAAc,KAAA;GACrC,SAAS,WAAW,KAAA;EACtB;EACA,OAAO,OAAO,OAAO;GACnB,aAAa,OAAO,OAAO,WAAW;GACtC,UAAU,OAAO,OAAO,QAAQ;GAChC,gBAAgB,WAAW;GAC3B,iBAAiB,WAAW,OAAO;GACnC,sBAAsB,WAAW,OAAO;GACxC,YAAY,WAAW,OAAO;GAC9B,cAAc,WAAW,OAAO;GAChC,OAAO,WAAW;GAClB,eAAe,WAAW;GAC1B,QAAQ,WAAW;GACnB,SAAS,WAAW;EACtB,CAAoC;CACtC,UAAU;EACR,MAAM,WAAW,QAAQ;CAC3B;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BF,IAAa,iCAAiC,sCAAsC"}
package/dist/moldea.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { A as hasOnlyUnicodeScalarValues$1, C as formatMoldeaCliJsonError, D as createMoldeaCliOwnedError, E as formatMoldeaCliJsonValidateResult, F as encodeMoldeaCliCursor, I as MoldeaCliOutputPageException, L as MOLDEA_CLI_COMMANDS, M as createMoldeaCliOutputPage, N as calculateMoldeaCliJsonDigest, O as MOLDEA_CLI_GIT_WORKING_TREE_SOURCE, P as decodeMoldeaCliCursor, S as formatMoldeaCliJsonContentResult, T as formatMoldeaCliJsonScopeResult, _ as formatMoldeaCliHumanError, a as require_semver, b as formatMoldeaCliHumanValidateResult, c as executeGitStreamingProcess, d as createMoldeaCliDiagnosticRecord, f as createMoldeaCliInspectProjection, g as formatMoldeaCliHumanContentResult, h as formatMoldeaCliHumanCompositionResult, j as isRepositoryDirectoryInputValid, k as parseMoldeaCliArguments, l as executeGitProcess, m as formatMoldeaCliHelp, o as MoldeaCliCompositionException, p as createMoldeaCliValidateProjection, s as createGitVersionPreflight, u as MAX_GIT_PROCESS_DIAGNOSTIC_BYTES, v as formatMoldeaCliHumanInspectResult, w as formatMoldeaCliJsonInspectResult, x as formatMoldeaCliJsonCompositionResult, y as formatMoldeaCliHumanScopeResult } from "./chunks/composition-DIN3r5rw.js";
2
+ import { A as hasOnlyUnicodeScalarValues$1, C as formatMoldeaCliJsonError, D as createMoldeaCliOwnedError, E as formatMoldeaCliJsonValidateResult, F as encodeMoldeaCliCursor, I as MoldeaCliOutputPageException, L as MOLDEA_CLI_COMMANDS, M as createMoldeaCliOutputPage, N as calculateMoldeaCliJsonDigest, O as MOLDEA_CLI_GIT_WORKING_TREE_SOURCE, P as decodeMoldeaCliCursor, S as formatMoldeaCliJsonContentResult, T as formatMoldeaCliJsonScopeResult, _ as formatMoldeaCliHumanError, a as require_semver, b as formatMoldeaCliHumanValidateResult, c as executeGitStreamingProcess, d as createMoldeaCliDiagnosticRecord, f as createMoldeaCliInspectProjection, g as formatMoldeaCliHumanContentResult, h as formatMoldeaCliHumanCompositionResult, j as isRepositoryDirectoryInputValid, k as parseMoldeaCliArguments, l as executeGitProcess, m as formatMoldeaCliHelp, o as MoldeaCliCompositionException, p as createMoldeaCliValidateProjection, s as createGitVersionPreflight, u as MAX_GIT_PROCESS_DIAGNOSTIC_BYTES, v as formatMoldeaCliHumanInspectResult, w as formatMoldeaCliJsonInspectResult, x as formatMoldeaCliJsonCompositionResult, y as formatMoldeaCliHumanScopeResult } from "./chunks/composition-plpY2VTL.js";
3
3
  import path from "node:path";
4
4
  import process from "node:process";
5
5
  import { fileURLToPath } from "node:url";
@@ -422,13 +422,13 @@ var parseMoldeaCliCanonicalContentPath = (input) => {
422
422
  };
423
423
  //#endregion
424
424
  //#region src/project-content/executor.ts
425
- /** Creates an adapter-free executor for one bounded canonical content range. */
425
+ /** Creates an executor for one bounded canonical content range. */
426
426
  var createMoldeaCliProjectContentExecutor = (coreFactory = createCore) => {
427
427
  return async (input) => {
428
428
  return coreFactory({ limits: Object.freeze({
429
429
  maxDiagnostics: input.resourceLimits.maxDiagnostics,
430
430
  maxEntries: input.resourceLimits.maxEntries,
431
- maxEvidence: input.resourceLimits.maxEvidence,
431
+ maxCoverage: input.resourceLimits.maxCoverage,
432
432
  maxFileBytes: input.resourceLimits.maxFileBytes,
433
433
  maxManifestBytes: input.resourceLimits.maxManifestBytes,
434
434
  maxTotalBytesRead: input.resourceLimits.maxTotalBytes
@@ -441,7 +441,7 @@ var createMoldeaCliProjectContentExecutor = (coreFactory = createCore) => {
441
441
  });
442
442
  };
443
443
  };
444
- /** Executes one adapter-free explicit canonical content range read. */
444
+ /** Executes one explicit canonical content range read. */
445
445
  var executeMoldeaCliProjectContent = createMoldeaCliProjectContentExecutor();
446
446
  //#endregion
447
447
  //#region src/project-content/page.ts
@@ -608,14 +608,14 @@ var readBoundedManifest = async (input) => {
608
608
  }
609
609
  return manifestBytes;
610
610
  };
611
- /** Creates an adapter-free manifest-only Core scope executor. */
611
+ /** Creates an manifest-only Core scope executor. */
612
612
  var createMoldeaCliProjectScopeExecutor = (coreFactory = createCore) => {
613
613
  return async (input) => {
614
614
  const manifestBytes = await readBoundedManifest(input);
615
615
  const scope = await coreFactory({ limits: Object.freeze({
616
616
  maxDiagnostics: input.resourceLimits.maxDiagnostics,
617
617
  maxEntries: input.resourceLimits.maxEntries,
618
- maxEvidence: input.resourceLimits.maxEvidence,
618
+ maxCoverage: input.resourceLimits.maxCoverage,
619
619
  maxFileBytes: input.resourceLimits.maxFileBytes,
620
620
  maxManifestBytes: input.resourceLimits.maxManifestBytes,
621
621
  maxTotalBytesRead: input.resourceLimits.maxTotalBytes
@@ -632,7 +632,7 @@ var createMoldeaCliProjectScopeExecutor = (coreFactory = createCore) => {
632
632
  });
633
633
  };
634
634
  };
635
- /** Executes one adapter-free manifest-only changed-path scope match. */
635
+ /** Executes one manifest-only changed-path scope match. */
636
636
  var executeMoldeaCliProjectScope = createMoldeaCliProjectScopeExecutor();
637
637
  //#endregion
638
638
  //#region src/project-scope/transformers.ts
@@ -823,15 +823,9 @@ var REPOSITORY_SOURCE_ERROR_MESSAGES = Object.freeze({
823
823
  SNAPSHOT_CHANGED: "The repository snapshot changed during the operation.",
824
824
  SOURCE_UNAVAILABLE: "The repository source is unavailable."
825
825
  });
826
- var CORE_CONFIGURATION_ERROR_MESSAGES = Object.freeze({
827
- DUPLICATE_ADAPTER_ID: "A runtime adapter ID is registered more than once.",
828
- INVALID_ADAPTER_DEFINITION: "A runtime adapter definition is invalid.",
829
- INVALID_RESOURCE_LIMIT: "A Core resource limit is invalid.",
830
- RESERVED_ADAPTER_ID: "A reserved runtime adapter ID was supplied."
831
- });
826
+ var CORE_CONFIGURATION_ERROR_MESSAGES = Object.freeze({ INVALID_RESOURCE_LIMIT: "A Core resource limit is invalid." });
832
827
  var CORE_OPERATION_ERROR_MESSAGES = Object.freeze({
833
828
  ABORTED: "The Core operation was aborted.",
834
- ADAPTER_EXECUTION_FAILED: "A runtime adapter failed during inspection.",
835
829
  CONTENT_INVALID: "The requested canonical content is invalid.",
836
830
  INVALID_ARGUMENT: "The Core operation received an invalid argument.",
837
831
  INSPECTION_BUSY: "Project inspection capacity is busy. Try again shortly.",
@@ -845,7 +839,6 @@ var EMPTY_ERROR_DETAILS = Object.freeze({});
845
839
  /** Creates frozen safe Core metadata without retaining null fields. */
846
840
  var createCoreErrorDetails = (error) => {
847
841
  const details = { operation: error.operation };
848
- if (error.adapterId !== null) details["adapterId"] = error.adapterId;
849
842
  if (error instanceof CoreOperationException) {
850
843
  if (error.agentId !== null) details["agentId"] = error.agentId;
851
844
  if (error.limit !== null) details["limit"] = error.limit;
@@ -2395,13 +2388,14 @@ var createMoldeaCliErrorResult = (error, command, cliVersion, isJson, exitCode)
2395
2388
  var createMoldeaCliValidateExecutionResult = (inspection, cliVersion, isJson, cursor, maxOutputBytes) => {
2396
2389
  const projection = createMoldeaCliValidateProjection(inspection);
2397
2390
  const createResult = (page) => ({
2398
- diagnosticCount: projection.diagnostics.length,
2391
+ diagnosticCount: projection.diagnosticCount,
2392
+ acceptedWarningCount: projection.acceptedWarningCount,
2399
2393
  errorCount: projection.errorCount,
2400
2394
  formatVersion: projection.formatVersion,
2401
2395
  page,
2402
2396
  snapshotDigest: projection.snapshotDigest,
2403
2397
  source: projection.source,
2404
- runtimeInspection: projection.runtimeInspection,
2398
+ coverageCounts: projection.coverageCounts,
2405
2399
  valid: projection.valid,
2406
2400
  warningCount: projection.warningCount
2407
2401
  });
@@ -2411,7 +2405,7 @@ var createMoldeaCliValidateExecutionResult = (inspection, cliVersion, isJson, cu
2411
2405
  filters: {},
2412
2406
  maxOutputBytes,
2413
2407
  measure: (candidate, serializedRecordsUtf8Bytes) => measurePagedOutput(candidate, serializedRecordsUtf8Bytes, isJson, (page) => formatMoldeaCliJsonValidateResult(createResult(page), cliVersion), (page) => formatMoldeaCliHumanValidateResult(createResult(page))),
2414
- records: projection.diagnostics,
2408
+ records: projection.records,
2415
2409
  snapshotDigest: projection.snapshotDigest
2416
2410
  });
2417
2411
  const result = Object.freeze(createResult(page));
@@ -2438,7 +2432,7 @@ var createMoldeaCliInspectExecutionResult = (inspection, cliVersion, isJson, cur
2438
2432
  project: projection.project,
2439
2433
  snapshotDigest: projection.snapshotDigest,
2440
2434
  source: projection.source,
2441
- runtimeInspection: projection.runtimeInspection,
2435
+ coverageCounts: projection.coverageCounts,
2442
2436
  valid: projection.valid,
2443
2437
  view: projection.view
2444
2438
  });
@@ -2518,30 +2512,26 @@ var createMoldeaCliContentExecutionResult = (pageResult, cliVersion, isJson, cur
2518
2512
  };
2519
2513
  //#endregion
2520
2514
  //#region src/cli-execution/command-executor.ts
2521
- /** Loads adapter-backed Core inspection only for commands that need it. */
2515
+ /** Loads isolated Core inspection only for commands that need it. */
2522
2516
  var executeLazyCoreInspection = async (input) => {
2523
- const { executeMoldeaCliCoreInspection } = await import("./chunks/core-composition-CWyDX8h6.js");
2517
+ const { executeMoldeaCliCoreInspection } = await import("./chunks/core-composition-vn2fp5zf.js");
2524
2518
  return executeMoldeaCliCoreInspection(input);
2525
2519
  };
2526
2520
  var loadInstalledComposition = async (input) => {
2527
- if (input.verifyRuntime === true) {
2528
- const { inspectMoldeaCliComposition } = await import("./chunks/core-composition-CWyDX8h6.js");
2529
- return inspectMoldeaCliComposition(input);
2530
- }
2531
- const { resolveInstalledMoldeaCliComposition } = await import("./chunks/composition-B1VCddjs.js");
2521
+ const { resolveInstalledMoldeaCliComposition } = await import("./chunks/composition-qEC_umal.js");
2532
2522
  return resolveInstalledMoldeaCliComposition(input);
2533
2523
  };
2534
2524
  /** Creates one operational error result without exposing caught failure details. */
2535
2525
  var createOperationalErrorResult = (code, input) => createMoldeaCliErrorResult(createMoldeaCliOwnedError(code), input.invocation.command, input.packageMetadata.version, input.invocation.options.isJson, MOLDEA_CLI_EXIT_CODES.OperationalError);
2536
2526
  /**
2537
- * Creates command dispatch with lazy adapter composition and bounded working-tree snapshots.
2527
+ * Creates command dispatch with lazy Core loading and bounded working-tree snapshots.
2538
2528
  * @param workingTreeDiscovery The Git working-tree discovery operation.
2539
2529
  * @param workingTreeSnapshotExecutor The complete working-tree snapshot operation.
2540
- * @param coreInspectionExecutor The adapter-backed Core inspection operation.
2530
+ * @param coreInspectionExecutor The isolated Core inspection operation.
2541
2531
  * @param compositionLoader The installed executable-integrity composition boundary.
2542
- * @param projectScopeExecutor The adapter-free manifest scope operation.
2543
- * @param projectContentExecutor The adapter-free canonical content operation.
2544
- * @returns A command executor for the schema 6 CLI.
2532
+ * @param projectScopeExecutor The manifest-only manifest scope operation.
2533
+ * @param projectContentExecutor The manifest-only canonical content operation.
2534
+ * @returns A command executor for the schema 7 CLI.
2545
2535
  */
2546
2536
  var createMoldeaCliCommandExecutor = (workingTreeDiscovery = discoverGitWorkingTree, workingTreeSnapshotExecutor = executeWorkingTreeSnapshot, coreInspectionExecutor = executeLazyCoreInspection, compositionLoader = loadInstalledComposition, projectScopeExecutor = executeMoldeaCliProjectScope, projectContentExecutor = executeMoldeaCliProjectContent) => {
2547
2537
  return async (input) => {
@@ -2551,7 +2541,6 @@ var createMoldeaCliCommandExecutor = (workingTreeDiscovery = discoverGitWorkingT
2551
2541
  if (command === MOLDEA_CLI_COMMANDS.Composition || command === MOLDEA_CLI_COMMANDS.Inspect || command === MOLDEA_CLI_COMMANDS.Validate) {
2552
2542
  const compositionResolution = await compositionLoader({
2553
2543
  packageMetadata: input.packageMetadata,
2554
- verifyRuntime: command === MOLDEA_CLI_COMMANDS.Composition,
2555
2544
  ...input.signal === void 0 ? {} : { signal: input.signal }
2556
2545
  });
2557
2546
  if (compositionResolution.kind === "invalid") return createOperationalErrorResult("COMPOSITION_STATE_INVALID", input);