@moldea.ai/cli 11.0.1 → 11.0.3
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 +3 -3
- package/dist/chunks/{composition-plpY2VTL.js → composition-BwxzXbxO.js} +10 -4
- package/dist/chunks/composition-BwxzXbxO.js.map +1 -0
- package/dist/chunks/{composition-qEC_umal.js → composition-Iz0HsV-0.js} +1 -1
- package/dist/chunks/{core-composition-vn2fp5zf.js → core-composition-DJWI0RN6.js} +2 -2
- package/dist/chunks/{core-composition-vn2fp5zf.js.map → core-composition-DJWI0RN6.js.map} +1 -1
- package/dist/moldea.js +3 -4
- package/dist/moldea.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunks/composition-plpY2VTL.js.map +0 -1
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
|
|
|
@@ -97,11 +97,11 @@ Binding coverage reports the checks performed on each declared reference: `fileC
|
|
|
97
97
|
|
|
98
98
|
`inspect` uses the same completion status and exit codes. Its allowlisted pages contain agent/runtime assignments, asset metadata, diagnostics and binding coverage. Both commands expose coverage counts and the specific file and export checks performed; a successful export check does not prove runtime wiring. Unbounded collections use independent record keys. Canonical bodies are available only through `content`.
|
|
99
99
|
|
|
100
|
-
`scope` accepts either one leading-slash repository-logical path through `--path` or NUL-delimited UTF-8 paths with the same grammar through `--paths-stdin`. Invalid paths return `PATH_INPUT_INVALID` before repository discovery; relative paths are not normalized. It reads only `/moldea/moldea.yaml`, invokes Core's deterministic manifest-only relationship matcher, and returns relevance, complete counts and digests, and paged match or diagnostic records. `content` accepts exactly one canonical moldea text path and returns metadata plus the largest complete Unicode-scalar chunk that fits its output page.
|
|
100
|
+
`scope` accepts either one leading-slash repository-logical path through `--path` or NUL-delimited UTF-8 paths with the same grammar through `--paths-stdin`. Invalid paths return `PATH_INPUT_INVALID` before repository discovery; relative paths are not normalized. It reads only `/moldea/moldea.yaml`, invokes Core's deterministic manifest-only relationship matcher, and returns relevance, complete counts and digests, and paged match or diagnostic records. `content` accepts exactly one canonical `moldea` text path and returns metadata plus the largest complete Unicode-scalar chunk that fits its output page.
|
|
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.
|
|
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 =
|
|
881
|
-
|
|
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.
|
|
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-
|
|
2840
|
+
//# sourceMappingURL=composition-BwxzXbxO.js.map
|