@moldea.ai/cli 7.0.1 → 7.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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  The canonical read-only local command-line composition for deterministic inspection of `moldea` repositories.
6
6
 
7
- The version 7 executable exposes one schema-4-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.
7
+ The version 7.1 executable exposes one schema-4-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
 
9
9
  Install and invoke the CLI from each adopted repository. Global or user-home installation is outside the supported trust boundary because it can make unrelated repositories share ambient skill and executable behavior.
10
10
 
@@ -103,7 +103,7 @@ Git process cancellation uses the safe retryable `git:GIT_OPERATION_ABORTED` con
103
103
 
104
104
  A successfully completed Core inspection produces `validate` human or JSON output without exposing the project index, canonical content, or adapter evidence details. Zero diagnostics return status `valid` and exit code `0`; one or more diagnostics return status `invalid` and exit with code `1`. Diagnostics use bounded pages in JSON mode.
105
105
 
106
- `inspect` uses the same completion status and exit codes. Human output reports the repository format and complete collection counts. JSON output contains only allowlisted metadata records: identifiers, logical paths, digests, scalar and UTF-8 lengths, references, relationships, requirements, diagnostics without arbitrary details, and evidence summaries without adapter detail payloads. Unbounded child collections are emitted as independently keyed records, so no parent record grows with the repository. A recursive guard rejects any non-`content` result containing a `content` property or an exact canonical body.
106
+ `inspect` uses the same completion status and exit codes. Human output reports the repository format and complete collection counts. JSON output contains only allowlisted records: one independently keyed `agent` record per canonical agent with exactly its `agentId` and manifest-declared `runtimeId`, asset identifiers and metadata, diagnostics without arbitrary details, and evidence summaries without adapter detail payloads. An assignment establishes canonical configuration only. It does not claim that a runtime is installed, implemented, qualified, or published. Unbounded child collections are emitted as independently keyed records, so no parent record grows with the repository. A recursive guard rejects any non-`content` result containing a `content` property or an exact canonical body.
107
107
 
108
108
  `scope` accepts either one repository-logical path through `--path` or NUL-delimited UTF-8 paths through `--paths-stdin`. It reads only `/moldea/moldea.yaml`, invokes Core's deterministic relationship matcher without adapters, 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.
109
109
 
package/dist/moldea.js CHANGED
@@ -833,6 +833,15 @@ var createMoldeaCliDiagnosticRecord = (diagnostic, occurrence = 0) => Object.fre
833
833
  /** Projects one bounded Core inspection item through the schema 4 allowlist. */
834
834
  var createInspectRecord = (item, index) => {
835
835
  const order = index.toString().padStart(6, "0");
836
+ if (item.kind === "agent") {
837
+ const record = {
838
+ agentId: item.agent.agentId,
839
+ key: createRecordKey(order, "agent", item.agent.agentId, item.agent.runtimeId),
840
+ kind: "agent",
841
+ runtimeId: item.agent.runtimeId
842
+ };
843
+ return Object.freeze(record);
844
+ }
836
845
  if (item.kind === "diagnostic") return Object.freeze({
837
846
  ...createMoldeaCliDiagnosticRecord(item.diagnostic, index),
838
847
  key: createRecordKey(order, "diagnostic", item.diagnostic.source, item.diagnostic.code)