@moldea.ai/cli 11.0.5 → 11.1.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.
- package/README.md +5 -3
- package/dist/chunks/{composition-yd6mpUnt.js → composition-P7DOCYEA.js} +4 -4
- package/dist/chunks/{composition-yd6mpUnt.js.map → composition-P7DOCYEA.js.map} +1 -1
- package/dist/chunks/{composition-B_oQMnbd.js → composition-bB23wZlW.js} +1 -1
- package/dist/chunks/{core-composition-h-p3RtWT.js → core-composition-BH3Wj5Lq.js} +3 -2
- package/dist/chunks/core-composition-BH3Wj5Lq.js.map +1 -0
- package/dist/moldea.js +168 -29
- package/dist/moldea.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunks/core-composition-h-p3RtWT.js.map +0 -1
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ The starting directory is the invocation directory unless `--repository <path>`
|
|
|
55
55
|
|
|
56
56
|
Git runs directly without a platform shell, with fixed non-interactive arguments and a sanitized deterministic environment. Version output is limited to 4096 bytes per stream, and each discovery output stream is limited to 262144 bytes. Discovery requires Git `2.30.0` or later and rejects missing or inaccessible paths, nonrepositories, bare repositories, Git-directory paths without a usable work tree, malformed Git output, and sparse checkouts before inventory probing begins.
|
|
57
57
|
|
|
58
|
-
After discovery, `validate` and `inspect` stream NUL-delimited tracked-index and non-ignored untracked records from fixed `git ls-files` commands. `scope` applies a top-level literal pathspec for `/moldea/moldea.yaml`; `content` applies one for its validated canonical path. These selected commands do not probe the rest of a large repository. Tracked records accept only full SHA-1 or SHA-256 object IDs, index stages `0` through `3`, and Git modes `100644`, `100755`, `120000`, or `160000`. Paths are decoded as fatal UTF-8 and preserve exact Unicode scalars, case, tabs, newlines, and an initial BOM without normalization.
|
|
58
|
+
After discovery, `validate` and `inspect` stream NUL-delimited tracked-index and non-ignored untracked records from fixed `git ls-files` commands. `scope` applies a top-level literal pathspec for `/moldea/moldea.yaml`; `content` applies one for its validated canonical path. These selected commands do not probe the rest of a large repository. `validate` and `inspect` also run one separate instruction probe over literal pathspecs for `/AGENTS.md`, `/CLAUDE.md`, `/.claude/CLAUDE.md`, and `/CLAUDE.local.md` that adds Git-ignored files at those paths through `git ls-files --others --ignored --exclude-standard`, with the inventory budgets applied separately. Its records feed only the instruction source passed to Core's coding-agent integration check and never the general inventory. Tracked records accept only full SHA-1 or SHA-256 object IDs, index stages `0` through `3`, and Git modes `100644`, `100755`, `120000`, or `160000`. Paths are decoded as fatal UTF-8 and preserve exact Unicode scalars, case, tabs, newlines, and an initial BOM without normalization.
|
|
59
59
|
|
|
60
60
|
Raw tracked and untracked records share `maxEntries` before ownership filtering, stage collapse, or deduplication. Their combined stdout, nested-root validation stdout, any required effective `core.symlinks` stdout, and effective Git attribute stdout share `maxTotalBytes`, while stderr has a separate fixed 4096-byte diagnostic ceiling per Git command and is never emitted. Exceeding an inventory ceiling discards all candidates and returns the non-retryable `cli:RESOURCE_LIMIT_EXCEEDED` contract with message `A resource limit was exceeded.` Malformed output returns `git:GIT_OUTPUT_INVALID` without a partial inventory or partial attribute classification.
|
|
61
61
|
|
|
@@ -67,7 +67,7 @@ After ownership filtering, the CLI groups exact paths in first-appearance order,
|
|
|
67
67
|
|
|
68
68
|
The effective `core.symlinks` value is queried at most once and only when a tracked Git symlink is currently a regular host file. With `core.symlinks=false`, a path whose retained stages are all mode `120000` remains a logical symlink and is marked for the immutable reader overlay. With symlink support enabled, the current host file represents an intentional file-type change. Mixed regular-file and symlink stages over a host file are accepted only when symlink support is enabled; the disabled case is ambiguous and fails with `GIT_OUTPUT_INVALID`. Native symlinks never require the overlay.
|
|
69
69
|
|
|
70
|
-
Every decoded Git candidate path is validated through `@moldea.ai/repository` before ownership filtering or missing-path omission, without case folding or Unicode normalization. Validation prepends exactly one `/`; for an untracked directory-boundary record, it first removes Git's one trailing directory terminator. A path outside the portable logical-path grammar, including a path containing ASCII control characters, invalid segments, backslashes, or a Windows drive prefix, fails the complete probe with `GIT_OUTPUT_INVALID`. Surviving entries are then converted to branded repository logical paths, and the resulting immutable inventory is sorted by exact Unicode code-point order.
|
|
70
|
+
Every decoded Git candidate path is validated through `@moldea.ai/repository` before ownership filtering or missing-path omission, without case folding or Unicode normalization. Validation prepends exactly one `/`; for an untracked directory-boundary record, it first removes Git's one trailing directory terminator. A path outside the portable logical-path grammar, including a path containing ASCII control characters, invalid segments, backslashes, or a Windows drive prefix, is omitted when it is outside the canonical `/moldea` namespace. An invalid canonical path still fails the complete probe with `GIT_OUTPUT_INVALID`. Omitted paths produce no diagnostic and still count against the raw inventory limits. Surviving entries are then converted to branded repository logical paths, and the resulting immutable inventory is sorted by exact Unicode code-point order.
|
|
71
71
|
|
|
72
72
|
For every effective inventory entry, the CLI sends the exact Git-relative path through NUL-delimited stdin to one fixed `git check-attr --stdin -z` operation and strictly associates the resulting `filter`, `working-tree-encoding`, and `ident` triples. Exact effective values are retained in the immutable inventory so later snapshot comparison can detect any classification change. `unset` and `unspecified` are unguarded; `set` and every other effective value are guarded. Ordinary `text` and `eol` attributes alone remain supported. Invalid UTF-8, missing or duplicate triples, unknown paths or attributes, successful stderr, and output that cannot be associated exactly fail atomically with `GIT_OUTPUT_INVALID`.
|
|
73
73
|
|
|
@@ -75,7 +75,9 @@ Git attribute inspection never invokes configured filters, Git LFS, clean or smu
|
|
|
75
75
|
|
|
76
76
|
The CLI passes the complete normalized logical path set to `@moldea.ai/repository-fs` exact-path selection, so the filesystem reader exposes required parent directories without admitting unrelated files. The CLI derives reader concurrency, queue, page, range, observation, and cache limits from its operation budgets. The private immutable overlay maps materialized Git symlink host files to `type: 'symlink'` in exact lookup and listing, rejects their reads with the common non-retryable `ENTRY_NOT_FILE` contract, and never calls the underlying `readFilePage` for those paths. The content-transformation guard wraps that logical view so symlink semantics take precedence. Missing or contradictory wrapper entries fail with `INVALID_SOURCE_DATA`.
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
The instruction source composes the same layers over the instruction entries, plus a Repository FS link resolver bound to that instruction reader. A private wrapper makes every materialized Git symlink in the overlay resolve as `unsafe` and rejects its target reads with `ENTRY_NOT_FILE`, so Core reports such a link as unverifiable without following its text.
|
|
79
|
+
|
|
80
|
+
Before attempting a snapshot, the CLI pins the selected root directory, its worktree-specific Git directory, and its shared Git common directory by absolute host path plus nonzero device and inode identity. Linked worktrees therefore retain distinct worktree identity while sharing the expected common repository identity. Each attempt verifies the complete pin, derives normalized full or path-selected inventories before and after exact-path reader creation, and runs its provisional operation only when both inventories match exactly, including entry type, retained index stages, symlink-overlay state, and content-transformation classification. The instruction inventory is probed and compared the same way, before and after reader creation.
|
|
79
81
|
|
|
80
82
|
The CLI retries the complete provisional attempt for differing inventories, Repository FS `SNAPSHOT_CHANGED` failures, and reader-creation missing-entry or parent-type failures when a fresh inventory proves the source changed. It recreates the inventory, reader, wrappers, operation state, and filesystem resource budget for every retry and never reuses provisional bytes or results. Three total attempts are allowed. Exhaustion or a changed pinned identity returns `cli:WORKING_TREE_UNSTABLE` with message `The working tree did not remain stable.` and `retryable: true`.
|
|
81
83
|
|
|
@@ -2740,9 +2740,9 @@ var MOLDEA_CLI_FOUNDATIONAL_PACKAGE_NAMES = Object.freeze([
|
|
|
2740
2740
|
"@moldea.ai/repository-fs"
|
|
2741
2741
|
]);
|
|
2742
2742
|
var MOLDEA_CLI_FIRST_CLASS_PACKAGE_RANGES = Object.freeze({
|
|
2743
|
-
"@moldea.ai/core": "^7.0
|
|
2744
|
-
"@moldea.ai/repository": "^2.
|
|
2745
|
-
"@moldea.ai/repository-fs": "^2.0
|
|
2743
|
+
"@moldea.ai/core": "^7.1.0",
|
|
2744
|
+
"@moldea.ai/repository": "^2.1.0",
|
|
2745
|
+
"@moldea.ai/repository-fs": "^2.1.0"
|
|
2746
2746
|
});
|
|
2747
2747
|
//#endregion
|
|
2748
2748
|
//#region src/composition/validations.ts
|
|
@@ -2837,4 +2837,4 @@ var resolveInstalledMoldeaCliComposition = (input) => resolveMoldeaCliCompositio
|
|
|
2837
2837
|
//#endregion
|
|
2838
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 };
|
|
2839
2839
|
|
|
2840
|
-
//# sourceMappingURL=composition-
|
|
2840
|
+
//# sourceMappingURL=composition-P7DOCYEA.js.map
|