@moldea.ai/cli 7.0.0 → 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 +6 -4
- package/dist/chunks/{composition-B9oqoRqn.js → composition-7d632gM8.js} +19 -3
- package/dist/chunks/composition-7d632gM8.js.map +1 -0
- package/dist/moldea.js +10 -1
- package/dist/moldea.js.map +1 -1
- package/package.json +14 -14
- package/dist/chunks/composition-B9oqoRqn.js.map +0 -1
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
|
|
|
@@ -27,7 +27,7 @@ The executable supports top-level and command-specific help, `moldea --version`,
|
|
|
27
27
|
|
|
28
28
|
## Package boundary
|
|
29
29
|
|
|
30
|
-
The package exposes the `moldea` executable and no supported JavaScript or TypeScript import API. Its
|
|
30
|
+
The package exposes the `moldea` executable and no supported JavaScript or TypeScript import API. Its compatible-major first-class dependencies are:
|
|
31
31
|
|
|
32
32
|
- `@moldea.ai/repository`
|
|
33
33
|
- `@moldea.ai/repository-fs`
|
|
@@ -103,15 +103,17 @@ 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
|
|
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
|
|
|
110
110
|
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.
|
|
111
111
|
|
|
112
|
+
The 65,536-byte default is retained by a reproducible three-sample resource corpus covering ordinary and 1,024-path repositories, large Unicode content, broad relationship output, dense diagnostics, and invalid binary content. 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.
|
|
113
|
+
|
|
112
114
|
## Installed composition and integrity
|
|
113
115
|
|
|
114
|
-
Before `validate`, `inspect`, or `composition` produces a result, the executable compares its installed package metadata, actually resolved first-class package identities and versions,
|
|
116
|
+
Before `validate`, `inspect`, or `composition` produces a result, the executable compares its installed package metadata, actually resolved first-class package identities and versions, compatible-major first-class dependency declarations, active package-backed adapter registration, Core repository-format support, minimum Git constant, and JSON output schema constant. Source-workspace dependencies use `workspace:^<major>.0.0`; packed dependencies retain the equivalent `^<major>.0.0` range. Every resolved package must satisfy the CLI release's declared major line. Exact pins, unbounded ranges, package-manager overrides to a different major or prerelease, missing or additional first-class dependencies, duplicate or invalid adapter IDs, package-backed registration of `custom`, unsupported adapter formats, and invalid constants fail before Git discovery or repository inspection. Compatible patch and minor resolutions remain valid and are reported exactly by `composition`.
|
|
115
117
|
|
|
116
118
|
`composition` reports the installed CLI version and JSON schema version in the envelope, plus the supported Node.js range, minimum Git version, sorted exact package versions, Core repository-format versions, and every sorted executable adapter with its accepted repository formats. Core's built-in `custom` adapter is included using Core's format support. The CLI does not report matrix entries, maturity, implementation status, target profiles, evidence links, or compatibility claims owned by the packages website. Current published technical compatibility and target maturity are available from [`https://packages.moldea.ai/compatibility/runtimes.json`](https://packages.moldea.ai/compatibility/runtimes.json).
|
|
117
119
|
|
|
@@ -11,6 +11,21 @@ var MOLDEA_CLI_FOUNDATIONAL_PACKAGE_NAMES = Object.freeze([
|
|
|
11
11
|
]);
|
|
12
12
|
var MOLDEA_CLI_ADAPTER_PACKAGE_PREFIX = "@moldea.ai/adapter-";
|
|
13
13
|
var MOLDEA_CLI_CUSTOM_ADAPTER_ID = "custom";
|
|
14
|
+
var MOLDEA_CLI_FIRST_CLASS_PACKAGE_RANGES = Object.freeze({
|
|
15
|
+
"@moldea.ai/adapter-anthropic": "^3.0.0",
|
|
16
|
+
"@moldea.ai/adapter-claude-agent-sdk": "^2.0.0",
|
|
17
|
+
"@moldea.ai/adapter-cloudflare-agents": "^2.0.0",
|
|
18
|
+
"@moldea.ai/adapter-eve": "^2.0.0",
|
|
19
|
+
"@moldea.ai/adapter-google-genai": "^2.0.0",
|
|
20
|
+
"@moldea.ai/adapter-langchain": "^2.0.0",
|
|
21
|
+
"@moldea.ai/adapter-langgraph": "^2.0.0",
|
|
22
|
+
"@moldea.ai/adapter-openai": "^3.0.0",
|
|
23
|
+
"@moldea.ai/adapter-openai-agents-sdk": "^2.0.0",
|
|
24
|
+
"@moldea.ai/adapter-vercel-ai-sdk": "^2.0.0",
|
|
25
|
+
"@moldea.ai/core": "^3.0.0",
|
|
26
|
+
"@moldea.ai/repository": "^2.0.0",
|
|
27
|
+
"@moldea.ai/repository-fs": "^2.0.0"
|
|
28
|
+
});
|
|
14
29
|
//#endregion
|
|
15
30
|
//#region src/composition/validations.ts
|
|
16
31
|
var ADAPTER_ID_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/u;
|
|
@@ -44,8 +59,9 @@ var isMoldeaCliCompositionStateValid = (input) => {
|
|
|
44
59
|
if (!hasExactStringSet(declaredPackageNames, expectedPackageNames) || !hasExactStringSet(resolvedPackageNames, expectedPackageNames)) return false;
|
|
45
60
|
return expectedPackageNames.every((packageName) => {
|
|
46
61
|
const resolvedVersion = installedPackageVersions[packageName];
|
|
47
|
-
const
|
|
48
|
-
|
|
62
|
+
const declaredRange = dependencies[packageName];
|
|
63
|
+
const supportedRange = MOLDEA_CLI_FIRST_CLASS_PACKAGE_RANGES[packageName];
|
|
64
|
+
return resolvedVersion !== void 0 && (0, import_semver.valid)(resolvedVersion) !== null && supportedRange !== void 0 && (declaredRange === supportedRange || declaredRange === `workspace:${supportedRange}`) && (0, import_semver.satisfies)(resolvedVersion, supportedRange);
|
|
49
65
|
});
|
|
50
66
|
};
|
|
51
67
|
//#endregion
|
|
@@ -123,4 +139,4 @@ var resolveInstalledMoldeaCliComposition = (input) => resolveMoldeaCliCompositio
|
|
|
123
139
|
//#endregion
|
|
124
140
|
export { resolveInstalledMoldeaCliComposition };
|
|
125
141
|
|
|
126
|
-
//# sourceMappingURL=composition-
|
|
142
|
+
//# sourceMappingURL=composition-7d632gM8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composition-7d632gM8.js","names":[],"sources":["../../src/composition/constants.ts","../../src/composition/validations.ts","../../src/composition/transformers.ts","../../src/composition/composition.ts"],"sourcesContent":["// exact first-class package identities required by every CLI release\nexport const MOLDEA_CLI_FOUNDATIONAL_PACKAGE_NAMES = Object.freeze([\n '@moldea.ai/core',\n '@moldea.ai/repository',\n '@moldea.ai/repository-fs',\n] as const);\n\n// stable package and adapter identities used by runtime composition validation\nexport const MOLDEA_CLI_ADAPTER_PACKAGE_PREFIX = '@moldea.ai/adapter-';\nexport const MOLDEA_CLI_CUSTOM_ADAPTER_ID = 'custom';\n\n// compatible first-class package lines accepted by CLI 7\nexport const MOLDEA_CLI_FIRST_CLASS_PACKAGE_RANGES = Object.freeze({\n '@moldea.ai/adapter-anthropic': '^3.0.0',\n '@moldea.ai/adapter-claude-agent-sdk': '^2.0.0',\n '@moldea.ai/adapter-cloudflare-agents': '^2.0.0',\n '@moldea.ai/adapter-eve': '^2.0.0',\n '@moldea.ai/adapter-google-genai': '^2.0.0',\n '@moldea.ai/adapter-langchain': '^2.0.0',\n '@moldea.ai/adapter-langgraph': '^2.0.0',\n '@moldea.ai/adapter-openai': '^3.0.0',\n '@moldea.ai/adapter-openai-agents-sdk': '^2.0.0',\n '@moldea.ai/adapter-vercel-ai-sdk': '^2.0.0',\n '@moldea.ai/core': '^3.0.0',\n '@moldea.ai/repository': '^2.0.0',\n '@moldea.ai/repository-fs': '^2.0.0',\n} as const);\n","import { satisfies as doesVersionSatisfy, valid as isValidVersion, validRange } from 'semver';\n\nimport type { IRuntimeAdapter } from '@moldea.ai/core/adapter';\n\nimport {\n MOLDEA_CLI_ADAPTER_PACKAGE_PREFIX,\n MOLDEA_CLI_CUSTOM_ADAPTER_ID,\n MOLDEA_CLI_FIRST_CLASS_PACKAGE_RANGES,\n MOLDEA_CLI_FOUNDATIONAL_PACKAGE_NAMES,\n} from './constants.js';\nimport type { IMoldeaCliCompositionStateInput } from './types.js';\n\nconst ADAPTER_ID_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/u;\n\nconst hasExactStringSet = (left: readonly string[], right: readonly string[]): boolean => {\n if (\n left.length !== right.length ||\n new Set(left).size !== left.length ||\n new Set(right).size !== right.length\n ) {\n return false;\n }\n\n const rightValues = new Set(right);\n return left.every((entry) => rightValues.has(entry));\n};\n\nconst hasUniquePositiveIntegers = (entries: readonly number[]): boolean =>\n entries.length > 0 &&\n entries.every((entry) => Number.isSafeInteger(entry) && entry > 0) &&\n new Set(entries).size === entries.length;\n\nconst createActiveAdapterMap = (\n adapters: readonly IRuntimeAdapter[],\n coreRepositoryFormatVersions: readonly number[],\n): ReadonlyMap<string, IRuntimeAdapter> | null => {\n const adapterMap = new Map<string, IRuntimeAdapter>();\n\n for (const adapter of adapters) {\n if (\n adapterMap.has(adapter.id) ||\n adapter.id === MOLDEA_CLI_CUSTOM_ADAPTER_ID ||\n !ADAPTER_ID_PATTERN.test(adapter.id) ||\n !hasUniquePositiveIntegers(adapter.supportedRepositoryFormatVersions) ||\n adapter.supportedRepositoryFormatVersions.some(\n (version) => !coreRepositoryFormatVersions.includes(version),\n )\n ) {\n return null;\n }\n\n adapterMap.set(adapter.id, adapter);\n }\n\n return adapterMap;\n};\n\n/**\n * Verifies the installed package manifest and actual executable adapter composition.\n * @param input The installed package, Core, adapter, Git, and JSON-schema state.\n * @returns Whether every runtime composition invariant is satisfied.\n */\nexport const isMoldeaCliCompositionStateValid = (\n input: IMoldeaCliCompositionStateInput,\n): boolean => {\n const { dependencies, installedPackageVersions, supportedNodeRange, version } =\n input.packageMetadata;\n\n if (\n isValidVersion(version) === null ||\n supportedNodeRange === null ||\n validRange(supportedNodeRange) === null ||\n isValidVersion(input.minimumGitVersion) === null ||\n input.outputSchemaVersion !== 4 ||\n dependencies === null ||\n installedPackageVersions === null ||\n !hasUniquePositiveIntegers(input.coreSupportedRepositoryFormatVersions)\n ) {\n return false;\n }\n\n const activeAdapterMap = createActiveAdapterMap(\n input.activeAdapters,\n input.coreSupportedRepositoryFormatVersions,\n );\n\n if (activeAdapterMap === null) {\n return false;\n }\n\n const expectedPackageNames = [\n ...MOLDEA_CLI_FOUNDATIONAL_PACKAGE_NAMES,\n ...[...activeAdapterMap.keys()].map(\n (adapterId) => `${MOLDEA_CLI_ADAPTER_PACKAGE_PREFIX}${adapterId}`,\n ),\n ];\n const declaredPackageNames = Object.keys(dependencies).filter((packageName) =>\n packageName.startsWith('@moldea.ai/'),\n );\n const resolvedPackageNames = Object.keys(installedPackageVersions);\n\n if (\n !hasExactStringSet(declaredPackageNames, expectedPackageNames) ||\n !hasExactStringSet(resolvedPackageNames, expectedPackageNames)\n ) {\n return false;\n }\n\n return expectedPackageNames.every((packageName) => {\n const resolvedVersion = installedPackageVersions[packageName];\n const declaredRange = dependencies[packageName];\n const supportedRange =\n MOLDEA_CLI_FIRST_CLASS_PACKAGE_RANGES[\n packageName as keyof typeof MOLDEA_CLI_FIRST_CLASS_PACKAGE_RANGES\n ];\n\n return (\n resolvedVersion !== undefined &&\n isValidVersion(resolvedVersion) !== null &&\n supportedRange !== undefined &&\n (declaredRange === supportedRange || declaredRange === `workspace:${supportedRange}`) &&\n doesVersionSatisfy(resolvedVersion, supportedRange)\n );\n });\n};\n","import { MOLDEA_CLI_CUSTOM_ADAPTER_ID } from './constants.js';\nimport type {\n IMoldeaCliAdapterComposition,\n IMoldeaCliCompositionResult,\n IMoldeaCliCompositionStateInput,\n} from './types.js';\n\nconst compareIdentifiers = (left: string, right: string): number =>\n left < right ? -1 : left > right ? 1 : 0;\n\n/** Recursively freezes a composition result without retaining mutable input ownership. */\nconst freezeCompositionValue = <TValue extends object>(value: TValue): TValue => {\n const pendingValues: object[] = [value];\n const visitedValues = new Set<object>();\n\n while (pendingValues.length > 0) {\n const currentValue = pendingValues.pop();\n\n if (currentValue === undefined || visitedValues.has(currentValue)) {\n continue;\n }\n\n visitedValues.add(currentValue);\n for (const nestedValue of Object.values(currentValue as Readonly<Record<string, unknown>>)) {\n if (typeof nestedValue === 'object' && nestedValue !== null) {\n pendingValues.push(nestedValue);\n }\n }\n\n Object.freeze(currentValue);\n }\n\n return value;\n};\n\n/**\n * Creates the compact immutable composition result from validated installed state.\n * @param input The already validated installed and executable composition.\n * @returns A deeply immutable composition result in deterministic report order.\n */\nexport const createMoldeaCliCompositionResult = (\n input: IMoldeaCliCompositionStateInput,\n): IMoldeaCliCompositionResult => {\n const adapters: IMoldeaCliAdapterComposition[] = [\n {\n id: MOLDEA_CLI_CUSTOM_ADAPTER_ID,\n repositoryFormatVersions: [...input.coreSupportedRepositoryFormatVersions].sort(\n (left, right) => left - right,\n ),\n },\n ...input.activeAdapters.map((adapter) => ({\n id: adapter.id,\n repositoryFormatVersions: [...adapter.supportedRepositoryFormatVersions].sort(\n (left, right) => left - right,\n ),\n })),\n ].sort((left, right) => compareIdentifiers(left.id, right.id));\n const packages = Object.entries(input.packageMetadata.installedPackageVersions ?? {})\n .map(([name, version]) => ({ name, version }))\n .sort((left, right) => compareIdentifiers(left.name, right.name));\n\n return freezeCompositionValue({\n adapters,\n minimumGitVersion: input.minimumGitVersion,\n packages,\n repositoryFormatVersions: [...input.coreSupportedRepositoryFormatVersions].sort(\n (left, right) => left - right,\n ),\n supportedNodeRange: input.packageMetadata.supportedNodeRange ?? '',\n });\n};\n","import { SUPPORTED_REPOSITORY_FORMAT_VERSIONS } from '@moldea.ai/core';\n\nimport { ACTIVE_RUNTIME_ADAPTERS } from '../core-composition/index.js';\nimport { MINIMUM_GIT_VERSION } from '../git-version/index.js';\nimport { MOLDEA_CLI_JSON_SCHEMA_VERSION } from '../json-output-contract/index.js';\n\nimport { createMoldeaCliCompositionResult } from './transformers.js';\nimport type {\n IMoldeaCliCompositionResolution,\n IMoldeaCliCompositionStateInput,\n IMoldeaCliInstalledCompositionInput,\n} from './types.js';\nimport { isMoldeaCliCompositionStateValid } from './validations.js';\n\nconst INVALID_COMPOSITION_RESOLUTION = Object.freeze({ kind: 'invalid' as const });\n\n/**\n * Resolves one explicit runtime composition without emitting a partial composition result.\n * @param input The installed and actual runtime state to compare.\n * @returns A valid immutable result or the single invalid-state outcome.\n */\nexport const resolveMoldeaCliComposition = (\n input: IMoldeaCliCompositionStateInput,\n): IMoldeaCliCompositionResolution => {\n try {\n if (!isMoldeaCliCompositionStateValid(input)) {\n return INVALID_COMPOSITION_RESOLUTION;\n }\n\n return Object.freeze({\n kind: 'valid',\n result: createMoldeaCliCompositionResult(input),\n });\n } catch {\n return INVALID_COMPOSITION_RESOLUTION;\n }\n};\n\n/**\n * Resolves composition through the fixed package, Core, adapter, Git, and JSON composition.\n * @param input The installed package metadata.\n * @returns A valid immutable result or the single invalid-state outcome.\n */\nexport const resolveInstalledMoldeaCliComposition = (\n input: IMoldeaCliInstalledCompositionInput,\n): IMoldeaCliCompositionResolution =>\n resolveMoldeaCliComposition({\n activeAdapters: ACTIVE_RUNTIME_ADAPTERS,\n coreSupportedRepositoryFormatVersions: SUPPORTED_REPOSITORY_FORMAT_VERSIONS,\n minimumGitVersion: MINIMUM_GIT_VERSION,\n outputSchemaVersion: MOLDEA_CLI_JSON_SCHEMA_VERSION,\n packageMetadata: input.packageMetadata,\n });\n"],"mappings":";;;;;;AACA,IAAa,wCAAwC,OAAO,OAAO;CACjE;CACA;CACA;AACF,CAAU;AAGV,IAAa,oCAAoC;AACjD,IAAa,+BAA+B;AAG5C,IAAa,wCAAwC,OAAO,OAAO;CACjE,gCAAgC;CAChC,uCAAuC;CACvC,wCAAwC;CACxC,0BAA0B;CAC1B,mCAAmC;CACnC,gCAAgC;CAChC,gCAAgC;CAChC,6BAA6B;CAC7B,wC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|
|
|
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)
|
|
@@ -3392,7 +3401,7 @@ var executeLazyCoreInspection = async (input) => {
|
|
|
3392
3401
|
return executeMoldeaCliCoreInspection(input);
|
|
3393
3402
|
};
|
|
3394
3403
|
var loadInstalledComposition = async (input) => {
|
|
3395
|
-
const { resolveInstalledMoldeaCliComposition } = await import("./chunks/composition-
|
|
3404
|
+
const { resolveInstalledMoldeaCliComposition } = await import("./chunks/composition-7d632gM8.js");
|
|
3396
3405
|
return resolveInstalledMoldeaCliComposition(input);
|
|
3397
3406
|
};
|
|
3398
3407
|
/** Creates one operational error result without exposing caught failure details. */
|