@moldea.ai/cli 3.0.0 → 3.1.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 +7 -6
- package/dist/moldea.js +157 -7
- package/dist/moldea.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The canonical read-only local command-line composition for deterministic inspect
|
|
|
6
6
|
|
|
7
7
|
The package's version 3 surface provides the `moldea` executable while preserving version 1 command, option, and JSON contracts. It includes deterministic help and version output, resource-limit validation, safe human or JSON errors, Git-owned working-tree discovery, bounded strict tracked/untracked candidate probing, submodule and nested-repository ownership filtering, deterministic stage collapse, no-follow current entry-type normalization, bounded effective `core.symlinks` resolution, portable logical-path normalization with exact Unicode code-point ordering, bounded effective Git content-transformation classification, exact-path Repository FS construction, private immutable reader wrappers for materialized Git symlinks and guarded regular-file reads, bounded whole-operation snapshot stabilization, attempt-local Core execution, safe Repository/Core operational-error translation, operation-scoped process-signal cancellation, deterministic content-minimized `validate` human and JSON results, concise content-free `inspect` human summaries, complete Core-result `inspect` JSON output, generated immutable compatibility and exact package-version metadata, command-wide release-integrity verification, and complete deterministic `compatibility` human and JSON reporting.
|
|
8
8
|
|
|
9
|
-
Version 3 bundles Anthropic adapter `2.0.
|
|
9
|
+
Version 3 bundles Anthropic adapter `2.0.1`, whose client-tool names must match `^[A-Za-z0-9_-]{1,64}$`.
|
|
10
10
|
|
|
11
11
|
Tarball, installed-bin, and cross-repository skill checks remain the release boundary for every published version.
|
|
12
12
|
|
|
@@ -30,9 +30,10 @@ The package exposes the `moldea` executable and no supported JavaScript or TypeS
|
|
|
30
30
|
- `@moldea.ai/repository-fs`
|
|
31
31
|
- `@moldea.ai/core`
|
|
32
32
|
- `@moldea.ai/adapter-anthropic`
|
|
33
|
+
- `@moldea.ai/adapter-google-genai`
|
|
33
34
|
- `@moldea.ai/adapter-openai`
|
|
34
35
|
|
|
35
|
-
The package-backed `anthropic` and `openai` runtime adapters are active for their experimental TypeScript
|
|
36
|
+
The package-backed `anthropic`, `google-genai`, and `openai` runtime adapters are active for their experimental direct TypeScript SDK targets. The `custom` adapter remains built into Core and requires no separate package.
|
|
36
37
|
|
|
37
38
|
The package declares `preferUnplugged: true` so Yarn Plug'n'Play materializes the executable on the physical filesystem instead of leaving the bundled ESM entry point inside ZipFS. This package-owned hint preserves root-local Yarn execution without requiring client configuration or a `node_modules` linker.
|
|
38
39
|
|
|
@@ -80,7 +81,7 @@ Before attempting a snapshot, the CLI pins the selected root directory, its work
|
|
|
80
81
|
|
|
81
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`.
|
|
82
83
|
|
|
83
|
-
The CLI does not expose selected paths, candidate paths, resolved repository roots, raw process errors, or Git diagnostics in failures. Every accepted snapshot operation creates a fresh Core instance with the exact effective limits: `maxEntries`, `maxFileBytes`, `maxManifestBytes`, `maxDiagnostics`, and `maxEvidence` retain their names, while `maxTotalBytes` becomes Core's `maxTotalBytesRead`. The active package-backed adapter set contains the immutable `anthropic` and `openai` adapter singletons; Core's built-in `custom` behavior remains available without registration.
|
|
84
|
+
The CLI does not expose selected paths, candidate paths, resolved repository roots, raw process errors, or Git diagnostics in failures. Every accepted snapshot operation creates a fresh Core instance with the exact effective limits: `maxEntries`, `maxFileBytes`, `maxManifestBytes`, `maxDiagnostics`, and `maxEvidence` retain their names, while `maxTotalBytes` becomes Core's `maxTotalBytesRead`. The active package-backed adapter set contains the immutable `anthropic`, `google-genai`, and `openai` adapter singletons; Core's built-in `custom` behavior remains available without registration.
|
|
84
85
|
|
|
85
86
|
Known `RepositorySourceException`, `CoreConfigurationException`, and `CoreOperationException` contracts become safe `repository` or `core` errors with their owning code, documented retryability, logical repository path when applicable, and non-confidential metadata. The private content-transformation marker is translated before the common repository-source case. Unexpected failures, including an internal `RepositoryPathException`, become the generic non-retryable `cli:INTERNAL_ERROR` contract without causes or rejected values.
|
|
86
87
|
|
|
@@ -98,7 +99,7 @@ A successfully completed Core inspection produces `validate` human or JSON outpu
|
|
|
98
99
|
|
|
99
100
|
Before `validate`, `inspect`, or `compatibility` produces a result, the executable compares its installed package metadata, actually resolved first-class package identities and versions, generated release snapshot, exact first-class dependency declarations, active package-backed adapter registration, separately generated Core adapter inventory, Core repository-format support, minimum Git constant, and JSON output schema constant. Source-workspace dependencies must use exact `workspace:<version>` declarations; packed dependencies must use the same exact published version. Loose ranges, package-manager overrides, missing or additional first-class dependencies, mismatched package identities or versions, invalid matrix states, invalid adapter activation, unsupported adapter formats, incompatible version ranges, stale constants, and contradictory matrix inventory fail before Git discovery or repository inspection.
|
|
100
101
|
|
|
101
|
-
`compatibility` reports the installed CLI version, supported Node.js range, JSON schema version, matrix version, minimum Git version, sorted package versions, Core repository-format versions, and every sorted matrix adapter. Each adapter record includes its active state, bundled version when applicable, complete normalized matrix entry, implementation identity and status, and any published ranges, runtime guidance, formats, verification date, and targets. Core's built-in `custom` adapter is active and available with bundled Core `2.0.0`, repository format `1`, required project-local runtime guidance, and full support for explicit repository relationships. The bundled Anthropic adapter `2.0.0
|
|
102
|
+
`compatibility` reports the installed CLI version, supported Node.js range, JSON schema version, matrix version, minimum Git version, sorted package versions, Core repository-format versions, and every sorted matrix adapter. Each adapter record includes its active state, bundled version when applicable, complete normalized matrix entry, implementation identity and status, and any published ranges, runtime guidance, formats, verification date, and targets. Core's built-in `custom` adapter is active and available with bundled Core `2.0.0`, repository format `1`, required project-local runtime guidance, and full support for explicit repository relationships. The bundled Anthropic adapter `2.0.1`, Google Gen AI adapter `1.0.2`, and OpenAI adapter `2.0.3` are active and available with experimental support for their TypeScript Messages, generate-content, and Responses API targets. The remaining package-backed adapters stay planned and inactive.
|
|
102
103
|
|
|
103
104
|
Successful human and JSON reports use exit code `0`; JSON uses status `valid` and the version 1 deterministic envelope. The command never uses status `invalid`. A contradictory installed release returns the non-retryable `cli:COMPATIBILITY_STATE_INVALID` error with message `The installed compatibility state is invalid.` and exit code `3`, without a partial result. The command accesses no Git executable, repository filesystem, client manifest, network, or Cloud service.
|
|
104
105
|
|
|
@@ -117,6 +118,6 @@ pnpm --filter @moldea.ai/cli test
|
|
|
117
118
|
|
|
118
119
|
Unit, integration, and end-to-end tests are colocated with their owning modules. The end-to-end suite installs real package tarballs and executes the resulting package bin without requiring any `@moldea.ai/*` package to be published. It verifies command, output, exit, security, package-content, process-signal, and repository-immutability behavior at the consumer boundary.
|
|
119
120
|
|
|
120
|
-
CI separately packs Repository, Repository FS, Core, the Anthropic and OpenAI adapters, and CLI and installs them with npm scripts disabled and strict engine validation on Node.js `22.11.0`, latest Node.js 22, Node.js `24.11.0`, and latest Node.js 24. Dedicated runtime harnesses verify each adapter's installed inspection boundary and the CLI's installed identities plus real `version`, `compatibility`, `validate`, and `inspect` execution. Linux owns this consumer-runtime matrix, while the complete repository tests continue to run on Linux, macOS, and Windows.
|
|
121
|
+
CI separately packs Repository, Repository FS, Core, the Anthropic, Google Gen AI, and OpenAI adapters, and CLI and installs them with npm scripts disabled and strict engine validation on Node.js `22.11.0`, latest Node.js 22, Node.js `24.11.0`, and latest Node.js 24. Dedicated runtime harnesses verify each adapter's installed inspection boundary and the CLI's installed identities plus real `version`, `compatibility`, `validate`, and `inspect` execution. Linux owns this consumer-runtime matrix, while the complete repository tests continue to run on Linux, macOS, and Windows.
|
|
121
122
|
|
|
122
|
-
The Anthropic and OpenAI adapters have their own repository fixtures, package tests, packed-runtime consumer checks, and verified compatibility claims. Cross-repository skill conformance for package-backed adapters remains outside this implementation slice.
|
|
123
|
+
The Anthropic, Google Gen AI, and OpenAI adapters have their own repository fixtures, package tests, packed-runtime consumer checks, and verified compatibility claims. Cross-repository skill conformance for package-backed adapters remains outside this implementation slice.
|
package/dist/moldea.js
CHANGED
|
@@ -4,6 +4,7 @@ import process$1 from "node:process";
|
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { CoreConfigurationException, CoreOperationException, SUPPORTED_REPOSITORY_FORMAT_VERSIONS, createCore } from "@moldea.ai/core";
|
|
6
6
|
import { anthropicAdapter } from "@moldea.ai/adapter-anthropic";
|
|
7
|
+
import { googleGenAiAdapter } from "@moldea.ai/adapter-google-genai";
|
|
7
8
|
import { openAiAdapter } from "@moldea.ai/adapter-openai";
|
|
8
9
|
import { TextDecoder as TextDecoder$1 } from "node:util";
|
|
9
10
|
import { execFile, spawn } from "node:child_process";
|
|
@@ -2203,7 +2204,11 @@ var createMoldeaCliCompatibilityResult = (input) => {
|
|
|
2203
2204
|
};
|
|
2204
2205
|
//#endregion
|
|
2205
2206
|
//#region src/core-composition/constants.ts
|
|
2206
|
-
var ACTIVE_RUNTIME_ADAPTERS = Object.freeze([
|
|
2207
|
+
var ACTIVE_RUNTIME_ADAPTERS = Object.freeze([
|
|
2208
|
+
anthropicAdapter,
|
|
2209
|
+
googleGenAiAdapter,
|
|
2210
|
+
openAiAdapter
|
|
2211
|
+
]);
|
|
2207
2212
|
//#endregion
|
|
2208
2213
|
//#region src/core-composition/executor.ts
|
|
2209
2214
|
var compareAdapterIds = (left, right) => {
|
|
@@ -4967,11 +4972,15 @@ var freezeMoldeaCliReleaseMetadata = (metadata) => {
|
|
|
4967
4972
|
//#endregion
|
|
4968
4973
|
//#region src/release-metadata/release-metadata.generated.ts
|
|
4969
4974
|
var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
|
|
4970
|
-
activeAdapterIds: [
|
|
4975
|
+
activeAdapterIds: [
|
|
4976
|
+
"anthropic",
|
|
4977
|
+
"google-genai",
|
|
4978
|
+
"openai"
|
|
4979
|
+
],
|
|
4971
4980
|
cliPackage: {
|
|
4972
4981
|
name: "@moldea.ai/cli",
|
|
4973
4982
|
supportedNodeRange: "^22.11.0 || ^24.11.0",
|
|
4974
|
-
version: "3.
|
|
4983
|
+
version: "3.1.2"
|
|
4975
4984
|
},
|
|
4976
4985
|
coreRecognizedAdapterIds: [
|
|
4977
4986
|
"anthropic",
|
|
@@ -5148,12 +5157,149 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
|
|
|
5148
5157
|
implementationStatus: "planned"
|
|
5149
5158
|
},
|
|
5150
5159
|
"google-genai": {
|
|
5160
|
+
compatibleCoreRange: "^2.0.0",
|
|
5151
5161
|
implementation: {
|
|
5152
5162
|
distribution: "public",
|
|
5153
5163
|
kind: "package",
|
|
5154
|
-
package: "@moldea.ai/adapter-google-genai"
|
|
5164
|
+
package: "@moldea.ai/adapter-google-genai",
|
|
5165
|
+
versionRange: "^1.0.0"
|
|
5155
5166
|
},
|
|
5156
|
-
implementationStatus: "
|
|
5167
|
+
implementationStatus: "available",
|
|
5168
|
+
lastVerifiedAt: "2026-08-18",
|
|
5169
|
+
runtimeGuidance: {
|
|
5170
|
+
expectation: "optional",
|
|
5171
|
+
notes: "Project-local guidance is needed only for repository-specific wrappers or unsupported indirect integration patterns."
|
|
5172
|
+
},
|
|
5173
|
+
supportedRepositoryFormatVersions: [1],
|
|
5174
|
+
targets: [{
|
|
5175
|
+
bindingSupport: {
|
|
5176
|
+
"instruction-loader": {
|
|
5177
|
+
relationship: "full",
|
|
5178
|
+
symbol: "full"
|
|
5179
|
+
},
|
|
5180
|
+
"runtime-agent": {
|
|
5181
|
+
relationship: "full",
|
|
5182
|
+
symbol: "full"
|
|
5183
|
+
},
|
|
5184
|
+
"tool-input-schema": {
|
|
5185
|
+
relationship: "full",
|
|
5186
|
+
symbol: "full"
|
|
5187
|
+
},
|
|
5188
|
+
"tool-registration": {
|
|
5189
|
+
relationship: "full",
|
|
5190
|
+
symbol: "full"
|
|
5191
|
+
}
|
|
5192
|
+
},
|
|
5193
|
+
evidenceKinds: [
|
|
5194
|
+
"instruction-loader",
|
|
5195
|
+
"language",
|
|
5196
|
+
"runtime-package",
|
|
5197
|
+
"runtime-pattern",
|
|
5198
|
+
"schema",
|
|
5199
|
+
"tool-registration"
|
|
5200
|
+
],
|
|
5201
|
+
id: "typescript-models-generate-content-2",
|
|
5202
|
+
kind: "package",
|
|
5203
|
+
knownLimitations: [
|
|
5204
|
+
"Arbitrary compiler resolution, path aliases, directory indexes, package exports, subpath imports, and re-export graphs are not resolved.",
|
|
5205
|
+
"Backend-specific function-name restrictions are not validated; the published function-name rules cover only the version-matched SDK declaration contract.",
|
|
5206
|
+
"Constructor configuration, provider backend, API version, authentication mode, model selection, request contents, and response handling are not interpreted.",
|
|
5207
|
+
"Dynamic configuration, callable tools, MCP helpers, provider/server tools, automatic function execution, streaming, chats, live sessions, and Interactions API calls are outside the initial target.",
|
|
5208
|
+
"Function input-schema contents, including top-level object shape and parameter-name restrictions, are not validated; the target establishes only direct parametersJsonSchema wiring.",
|
|
5209
|
+
"Source forms outside the verified TypeScript ESM target, legacy @google/generative-ai, alternative parameters schemas, output schemas, runtime variables, and handoffs are outside the initial target."
|
|
5210
|
+
],
|
|
5211
|
+
language: "typescript",
|
|
5212
|
+
lastVerifiedAt: "2026-08-18",
|
|
5213
|
+
packages: [{
|
|
5214
|
+
ecosystem: "npm",
|
|
5215
|
+
name: "@google/genai",
|
|
5216
|
+
role: "primary",
|
|
5217
|
+
versionRange: ">=2.17.1 <3.0.0"
|
|
5218
|
+
}],
|
|
5219
|
+
patterns: [
|
|
5220
|
+
{
|
|
5221
|
+
description: "A directly bound instruction loader supplies config.systemInstruction in a closed generate-content request.",
|
|
5222
|
+
id: "direct-config-system-instruction",
|
|
5223
|
+
kind: "instruction-loader",
|
|
5224
|
+
support: "full"
|
|
5225
|
+
},
|
|
5226
|
+
{
|
|
5227
|
+
description: "Direct Google Gen AI models.generateContent invocation through a module-local client in a directly exported TypeScript function.",
|
|
5228
|
+
id: "direct-models-generate-content",
|
|
5229
|
+
kind: "runtime",
|
|
5230
|
+
support: "full"
|
|
5231
|
+
},
|
|
5232
|
+
{
|
|
5233
|
+
description: "Dynamically assembled requests or configuration cannot be mapped reliably without semantic analysis.",
|
|
5234
|
+
id: "dynamic-request-or-config",
|
|
5235
|
+
kind: "runtime",
|
|
5236
|
+
support: "ambiguous"
|
|
5237
|
+
},
|
|
5238
|
+
{
|
|
5239
|
+
description: "Streaming generation, chat sessions, live sessions, and Interactions API calls are outside the initial direct generate-content target.",
|
|
5240
|
+
id: "streaming-chat-live-interactions",
|
|
5241
|
+
kind: "runtime",
|
|
5242
|
+
support: "unsupported"
|
|
5243
|
+
},
|
|
5244
|
+
{
|
|
5245
|
+
description: "FunctionDeclaration.parameters and its OpenAPI-style Schema representation are outside the initial JSON-schema target.",
|
|
5246
|
+
id: "alternative-parameters-schema",
|
|
5247
|
+
kind: "schema",
|
|
5248
|
+
support: "unsupported"
|
|
5249
|
+
},
|
|
5250
|
+
{
|
|
5251
|
+
description: "A bound tool input schema is referenced directly through the function declaration parametersJsonSchema property.",
|
|
5252
|
+
id: "direct-parameters-json-schema",
|
|
5253
|
+
kind: "schema",
|
|
5254
|
+
support: "full"
|
|
5255
|
+
},
|
|
5256
|
+
{
|
|
5257
|
+
description: "Callable tools, MCP conversion helpers, and automatic tool execution are outside the initial static function-declaration target.",
|
|
5258
|
+
id: "callable-and-mcp-tools",
|
|
5259
|
+
kind: "tool",
|
|
5260
|
+
support: "unsupported"
|
|
5261
|
+
},
|
|
5262
|
+
{
|
|
5263
|
+
description: "Closed inline or immutable module-local collections expose statically declared functions through config.tools and functionDeclarations.",
|
|
5264
|
+
id: "closed-function-declaration-tools",
|
|
5265
|
+
kind: "tool",
|
|
5266
|
+
support: "full"
|
|
5267
|
+
},
|
|
5268
|
+
{
|
|
5269
|
+
description: "Google-hosted or provider/server tools do not establish version 1 repository-local manifest tool relationships.",
|
|
5270
|
+
id: "provider-server-tools",
|
|
5271
|
+
kind: "tool",
|
|
5272
|
+
support: "unsupported"
|
|
5273
|
+
}
|
|
5274
|
+
],
|
|
5275
|
+
providerLimits: [
|
|
5276
|
+
{
|
|
5277
|
+
description: "The Google Gen AI SDK Tool contract permits at most 512 function declarations in each closed functionDeclarations collection.",
|
|
5278
|
+
id: "function-declaration-count",
|
|
5279
|
+
kind: "other",
|
|
5280
|
+
reference: "Google Gen AI SDK Tool reference.",
|
|
5281
|
+
subject: "other",
|
|
5282
|
+
value: 512
|
|
5283
|
+
},
|
|
5284
|
+
{
|
|
5285
|
+
description: "The Google Gen AI SDK FunctionDeclaration contract limits function names to 128 Unicode scalar values.",
|
|
5286
|
+
id: "function-name-length",
|
|
5287
|
+
kind: "max-unicode-scalars",
|
|
5288
|
+
reference: "Google Gen AI SDK FunctionDeclaration reference.",
|
|
5289
|
+
subject: "tool-name",
|
|
5290
|
+
value: 128
|
|
5291
|
+
},
|
|
5292
|
+
{
|
|
5293
|
+
description: "The Google Gen AI SDK FunctionDeclaration contract uses the documented ASCII leading and continuation character set.",
|
|
5294
|
+
id: "function-name-pattern",
|
|
5295
|
+
kind: "pattern",
|
|
5296
|
+
reference: "Google Gen AI SDK FunctionDeclaration reference.",
|
|
5297
|
+
subject: "tool-name",
|
|
5298
|
+
value: "^[A-Za-z_][A-Za-z0-9_.:-]*$"
|
|
5299
|
+
}
|
|
5300
|
+
],
|
|
5301
|
+
supportLevel: "experimental"
|
|
5302
|
+
}]
|
|
5157
5303
|
},
|
|
5158
5304
|
langchain: {
|
|
5159
5305
|
implementation: {
|
|
@@ -5294,7 +5440,11 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
|
|
|
5294
5440
|
packages: [
|
|
5295
5441
|
{
|
|
5296
5442
|
name: "@moldea.ai/adapter-anthropic",
|
|
5297
|
-
version: "2.0.
|
|
5443
|
+
version: "2.0.1"
|
|
5444
|
+
},
|
|
5445
|
+
{
|
|
5446
|
+
name: "@moldea.ai/adapter-google-genai",
|
|
5447
|
+
version: "1.0.2"
|
|
5298
5448
|
},
|
|
5299
5449
|
{
|
|
5300
5450
|
name: "@moldea.ai/adapter-openai",
|
|
@@ -5310,7 +5460,7 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
|
|
|
5310
5460
|
},
|
|
5311
5461
|
{
|
|
5312
5462
|
name: "@moldea.ai/repository-fs",
|
|
5313
|
-
version: "1.0.
|
|
5463
|
+
version: "1.0.2"
|
|
5314
5464
|
}
|
|
5315
5465
|
],
|
|
5316
5466
|
repositoryFormatVersions: [1]
|