@moldea.ai/cli 11.0.0 → 11.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `@moldea.ai/cli`
4
4
 
5
- The canonical read-only local command-line composition for deterministic inspection of `moldea` repositories.
5
+ The canonical read-only local command-line composition for deterministic inspection of moldea repositories.
6
6
 
7
7
  The version 11 executable exposes one schema-7-only JSON contract. `validate` and `inspect` are content-free, `scope` matches changed paths by reading only the project manifest, and `content` retrieves one explicitly selected canonical text asset in bounded Unicode-safe chunks. Collection and content responses use deterministic snapshot-bound cursors, exact final UTF-8 byte accounting, a 65,536-byte default page budget, and a 1,048,576-byte hard page ceiling.
8
8
 
@@ -14,7 +14,7 @@ Tarball, installed-bin, runtime, and testing-peer checks remain the package rele
14
14
 
15
15
  The command names are:
16
16
 
17
- ```text
17
+ ```bash
18
18
  moldea validate
19
19
  moldea inspect
20
20
  moldea scope --path /src/example.ts
@@ -101,7 +101,7 @@ Binding coverage reports the checks performed on each declared reference: `fileC
101
101
 
102
102
  For JSON collection and content output, `--max-output-bytes` accepts 4,096 through 1,048,576 bytes and defaults to 65,536. The measurement covers the final newline-terminated UTF-8 envelope after JSON escaping. `--cursor` continues a prior JSON page. Cursors are opaque canonical base64url documents bound to their format version, command, normalized filters, source snapshot, last key, and checksum. Invalid, tampered, cross-command, filter-mismatched, unsupported, or stale cursors fail with a safe structured error. An envelope or atomic record that cannot fit returns `OUTPUT_BUDGET_TOO_SMALL`; output is never truncated into invalid JSON.
103
103
 
104
- The default output budget remains 65,536 bytes. The [historical release observations](../../docs/launch-readiness.md) record the earlier resource corpus and its original package versions; those measurements do not establish current release performance. Large traversals use additional bounded pages without raising the page peak. The 1 MiB hard maximum is a single-response safety boundary, not a total repository-size limit.
104
+ The default output budget remains 65,536 bytes. Large traversals use additional bounded pages without raising the page peak. The 1 MiB hard maximum is a single-response safety boundary, not a total repository-size limit.
105
105
 
106
106
  The `inspect` unresolved count includes project-owned and agent-owned requirements across all effects. IDs are scoped to their owners, so identical IDs under different owners count separately. These readiness gaps do not themselves invalidate structurally valid project state.
107
107
 
@@ -877,8 +877,14 @@ var createInspectRecord = (item, index) => {
877
877
  /** Creates content-free validation metadata and ordered diagnostic records. */
878
878
  var createMoldeaCliValidateProjection = (validation) => {
879
879
  assertProjectValidationInvariant(validation);
880
- const diagnostics = Object.freeze(validation.diagnostics.map((diagnostic, index) => createMoldeaCliDiagnosticRecord(diagnostic, index)).sort((left, right) => left.key < right.key ? -1 : left.key > right.key ? 1 : 0));
881
- const records = Object.freeze([...diagnostics, ...validation.coverage.map((coverage, index) => createCoverageRecord(coverage, index))].sort((left, right) => left.key < right.key ? -1 : left.key > right.key ? 1 : 0));
880
+ const diagnostics = validation.diagnostics.map((diagnostic, index) => {
881
+ const record = createMoldeaCliDiagnosticRecord(diagnostic, index);
882
+ return Object.freeze({
883
+ ...record,
884
+ key: createRecordKey(index.toString().padStart(6, "0"), "diagnostic", record.key)
885
+ });
886
+ });
887
+ const records = Object.freeze([...diagnostics, ...validation.coverage.map((coverage, index) => createCoverageRecord(coverage, index, (diagnostics.length + index).toString().padStart(6, "0")))]);
882
888
  const snapshotDigest = calculateMoldeaCliJsonDigest({
883
889
  records,
884
890
  coverageCounts: validation.coverageCounts,
@@ -2734,7 +2740,7 @@ var MOLDEA_CLI_FOUNDATIONAL_PACKAGE_NAMES = Object.freeze([
2734
2740
  "@moldea.ai/repository-fs"
2735
2741
  ]);
2736
2742
  var MOLDEA_CLI_FIRST_CLASS_PACKAGE_RANGES = Object.freeze({
2737
- "@moldea.ai/core": "^7.0.0",
2743
+ "@moldea.ai/core": "^7.0.2",
2738
2744
  "@moldea.ai/repository": "^2.0.0",
2739
2745
  "@moldea.ai/repository-fs": "^2.0.3"
2740
2746
  });
@@ -2831,4 +2837,4 @@ var resolveInstalledMoldeaCliComposition = (input) => resolveMoldeaCliCompositio
2831
2837
  //#endregion
2832
2838
  export { hasOnlyUnicodeScalarValues as A, formatMoldeaCliJsonError as C, createMoldeaCliOwnedError as D, formatMoldeaCliJsonValidateResult as E, encodeMoldeaCliCursor as F, MoldeaCliOutputPageException as I, MOLDEA_CLI_COMMANDS as L, createMoldeaCliOutputPage as M, calculateMoldeaCliJsonDigest as N, MOLDEA_CLI_GIT_WORKING_TREE_SOURCE as O, decodeMoldeaCliCursor as P, formatMoldeaCliJsonContentResult as S, formatMoldeaCliJsonScopeResult as T, formatMoldeaCliHumanError as _, require_semver as a, formatMoldeaCliHumanValidateResult as b, executeGitStreamingProcess as c, createMoldeaCliDiagnosticRecord as d, createMoldeaCliInspectProjection as f, formatMoldeaCliHumanContentResult as g, formatMoldeaCliHumanCompositionResult as h, isMoldeaCliCompositionStateValid as i, isRepositoryDirectoryInputValid as j, parseMoldeaCliArguments as k, executeGitProcess as l, formatMoldeaCliHelp as m, resolveMoldeaCliComposition as n, MoldeaCliCompositionException as o, createMoldeaCliValidateProjection as p, createMoldeaCliCompositionResult as r, createGitVersionPreflight as s, resolveInstalledMoldeaCliComposition as t, MAX_GIT_PROCESS_DIAGNOSTIC_BYTES as u, formatMoldeaCliHumanInspectResult as v, formatMoldeaCliJsonInspectResult as w, formatMoldeaCliJsonCompositionResult as x, formatMoldeaCliHumanScopeResult as y };
2833
2839
 
2834
- //# sourceMappingURL=composition-plpY2VTL.js.map
2840
+ //# sourceMappingURL=composition-BwxzXbxO.js.map