@moldea.ai/cli 3.1.2 → 3.2.1
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 -5
- package/dist/moldea.js +178 -10
- package/dist/moldea.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -32,8 +32,9 @@ The package exposes the `moldea` executable and no supported JavaScript or TypeS
|
|
|
32
32
|
- `@moldea.ai/adapter-anthropic`
|
|
33
33
|
- `@moldea.ai/adapter-google-genai`
|
|
34
34
|
- `@moldea.ai/adapter-openai`
|
|
35
|
+
- `@moldea.ai/adapter-openai-agents-sdk`
|
|
35
36
|
|
|
36
|
-
The package-backed `anthropic`, `google-genai`, and `openai` runtime adapters are active for their experimental
|
|
37
|
+
The package-backed `anthropic`, `google-genai`, `openai`, and `openai-agents-sdk` runtime adapters are active for their experimental TypeScript SDK targets. The `custom` adapter remains built into Core and requires no separate package.
|
|
37
38
|
|
|
38
39
|
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.
|
|
39
40
|
|
|
@@ -81,7 +82,7 @@ Before attempting a snapshot, the CLI pins the selected root directory, its work
|
|
|
81
82
|
|
|
82
83
|
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`.
|
|
83
84
|
|
|
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.
|
|
85
|
+
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`, `openai`, and `openai-agents-sdk` adapter singletons; Core's built-in `custom` behavior remains available without registration.
|
|
85
86
|
|
|
86
87
|
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.
|
|
87
88
|
|
|
@@ -99,7 +100,7 @@ A successfully completed Core inspection produces `validate` human or JSON outpu
|
|
|
99
100
|
|
|
100
101
|
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.
|
|
101
102
|
|
|
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 `
|
|
103
|
+
`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.3`, OpenAI adapter `2.0.4`, and OpenAI Agents SDK adapter `1.0.1` are active and available with experimental support for their TypeScript Messages, generate-content, Responses API, and agent-handoff targets. The remaining package-backed adapters stay planned and inactive.
|
|
103
104
|
|
|
104
105
|
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.
|
|
105
106
|
|
|
@@ -118,6 +119,6 @@ pnpm --filter @moldea.ai/cli test
|
|
|
118
119
|
|
|
119
120
|
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.
|
|
120
121
|
|
|
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.
|
|
122
|
+
CI separately packs Repository, Repository FS, Core, the Anthropic, Google Gen AI, OpenAI, and OpenAI Agents SDK 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.
|
|
122
123
|
|
|
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.
|
|
124
|
+
The Anthropic, Google Gen AI, OpenAI, and OpenAI Agents SDK 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
|
@@ -6,6 +6,7 @@ import { CoreConfigurationException, CoreOperationException, SUPPORTED_REPOSITOR
|
|
|
6
6
|
import { anthropicAdapter } from "@moldea.ai/adapter-anthropic";
|
|
7
7
|
import { googleGenAiAdapter } from "@moldea.ai/adapter-google-genai";
|
|
8
8
|
import { openAiAdapter } from "@moldea.ai/adapter-openai";
|
|
9
|
+
import { openAiAgentsSdkAdapter } from "@moldea.ai/adapter-openai-agents-sdk";
|
|
9
10
|
import { TextDecoder as TextDecoder$1 } from "node:util";
|
|
10
11
|
import { execFile, spawn } from "node:child_process";
|
|
11
12
|
import { lstat, readFile, readdir, stat } from "node:fs/promises";
|
|
@@ -2207,7 +2208,8 @@ var createMoldeaCliCompatibilityResult = (input) => {
|
|
|
2207
2208
|
var ACTIVE_RUNTIME_ADAPTERS = Object.freeze([
|
|
2208
2209
|
anthropicAdapter,
|
|
2209
2210
|
googleGenAiAdapter,
|
|
2210
|
-
openAiAdapter
|
|
2211
|
+
openAiAdapter,
|
|
2212
|
+
openAiAgentsSdkAdapter
|
|
2211
2213
|
]);
|
|
2212
2214
|
//#endregion
|
|
2213
2215
|
//#region src/core-composition/executor.ts
|
|
@@ -4975,12 +4977,13 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
|
|
|
4975
4977
|
activeAdapterIds: [
|
|
4976
4978
|
"anthropic",
|
|
4977
4979
|
"google-genai",
|
|
4978
|
-
"openai"
|
|
4980
|
+
"openai",
|
|
4981
|
+
"openai-agents-sdk"
|
|
4979
4982
|
],
|
|
4980
4983
|
cliPackage: {
|
|
4981
4984
|
name: "@moldea.ai/cli",
|
|
4982
4985
|
supportedNodeRange: "^22.11.0 || ^24.11.0",
|
|
4983
|
-
version: "3.1
|
|
4986
|
+
version: "3.2.1"
|
|
4984
4987
|
},
|
|
4985
4988
|
coreRecognizedAdapterIds: [
|
|
4986
4989
|
"anthropic",
|
|
@@ -5162,10 +5165,10 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
|
|
|
5162
5165
|
distribution: "public",
|
|
5163
5166
|
kind: "package",
|
|
5164
5167
|
package: "@moldea.ai/adapter-google-genai",
|
|
5165
|
-
versionRange: "^1.0.
|
|
5168
|
+
versionRange: "^1.0.3"
|
|
5166
5169
|
},
|
|
5167
5170
|
implementationStatus: "available",
|
|
5168
|
-
lastVerifiedAt: "2026-08-
|
|
5171
|
+
lastVerifiedAt: "2026-08-19",
|
|
5169
5172
|
runtimeGuidance: {
|
|
5170
5173
|
expectation: "optional",
|
|
5171
5174
|
notes: "Project-local guidance is needed only for repository-specific wrappers or unsupported indirect integration patterns."
|
|
@@ -5209,7 +5212,7 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
|
|
|
5209
5212
|
"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
5213
|
],
|
|
5211
5214
|
language: "typescript",
|
|
5212
|
-
lastVerifiedAt: "2026-08-
|
|
5215
|
+
lastVerifiedAt: "2026-08-19",
|
|
5213
5216
|
packages: [{
|
|
5214
5217
|
ecosystem: "npm",
|
|
5215
5218
|
name: "@google/genai",
|
|
@@ -5417,12 +5420,173 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
|
|
|
5417
5420
|
}]
|
|
5418
5421
|
},
|
|
5419
5422
|
"openai-agents-sdk": {
|
|
5423
|
+
compatibleCoreRange: "^2.0.0",
|
|
5420
5424
|
implementation: {
|
|
5421
5425
|
distribution: "public",
|
|
5422
5426
|
kind: "package",
|
|
5423
|
-
package: "@moldea.ai/adapter-openai-agents-sdk"
|
|
5427
|
+
package: "@moldea.ai/adapter-openai-agents-sdk",
|
|
5428
|
+
versionRange: "^1.0.0"
|
|
5424
5429
|
},
|
|
5425
|
-
implementationStatus: "
|
|
5430
|
+
implementationStatus: "available",
|
|
5431
|
+
lastVerifiedAt: "2026-08-19",
|
|
5432
|
+
runtimeGuidance: {
|
|
5433
|
+
expectation: "optional",
|
|
5434
|
+
notes: "Project-local guidance is needed only for repository-specific wrappers, dynamic graph construction, or unsupported indirect integration patterns."
|
|
5435
|
+
},
|
|
5436
|
+
supportedRepositoryFormatVersions: [1],
|
|
5437
|
+
targets: [{
|
|
5438
|
+
bindingSupport: {
|
|
5439
|
+
"instruction-loader": {
|
|
5440
|
+
relationship: "full",
|
|
5441
|
+
symbol: "full"
|
|
5442
|
+
},
|
|
5443
|
+
"output-schema": {
|
|
5444
|
+
relationship: "full",
|
|
5445
|
+
symbol: "full"
|
|
5446
|
+
},
|
|
5447
|
+
"runtime-agent": {
|
|
5448
|
+
relationship: "full",
|
|
5449
|
+
symbol: "full"
|
|
5450
|
+
},
|
|
5451
|
+
"tool-implementation": {
|
|
5452
|
+
relationship: "full",
|
|
5453
|
+
symbol: "full"
|
|
5454
|
+
},
|
|
5455
|
+
"tool-input-schema": {
|
|
5456
|
+
relationship: "full",
|
|
5457
|
+
symbol: "full"
|
|
5458
|
+
},
|
|
5459
|
+
"tool-output-schema": {
|
|
5460
|
+
relationship: "full",
|
|
5461
|
+
symbol: "full"
|
|
5462
|
+
},
|
|
5463
|
+
"tool-registration": {
|
|
5464
|
+
relationship: "full",
|
|
5465
|
+
symbol: "full"
|
|
5466
|
+
}
|
|
5467
|
+
},
|
|
5468
|
+
evidenceKinds: [
|
|
5469
|
+
"agent-definition",
|
|
5470
|
+
"handoff-registration",
|
|
5471
|
+
"instruction-loader",
|
|
5472
|
+
"language",
|
|
5473
|
+
"runtime-package",
|
|
5474
|
+
"schema",
|
|
5475
|
+
"tool-registration"
|
|
5476
|
+
],
|
|
5477
|
+
id: "typescript-agent-handoffs-0-16",
|
|
5478
|
+
kind: "package",
|
|
5479
|
+
knownLimitations: [
|
|
5480
|
+
"Agent output, tool input, and tool output schema contents are not validated; the target establishes only direct schema wiring.",
|
|
5481
|
+
"Arbitrary compiler resolution, path aliases, directory indexes, package exports, CommonJS, and re-export graphs are not resolved.",
|
|
5482
|
+
"Custom Handoff objects, agents as tools, hosted tools, MCP tools, Realtime agents, sandbox agents, and dynamically assembled agent graphs are outside the initial target.",
|
|
5483
|
+
"Function tools require an explicit static name already in the initial normalized runtime subset; omitted names and names requiring SDK normalization are outside the target rather than invalid.",
|
|
5484
|
+
"Handoff evidence reports a runtime name only for a supported static non-empty toolNameOverride that can be represented as a valid Runtime Adapter Contract machine string. SDK-generated default names and absent, empty, dynamic, unsupported, mutation-obscured, or evidence-unrepresentable overrides are reported as null.",
|
|
5485
|
+
"Handoff input schemas, callbacks, filters, enablement, runtime variables, guardrails, prompt templates, sessions, tracing, approvals, models, and provider behavior are not interpreted.",
|
|
5486
|
+
"Routing-description validation supports only static inline, immutable module-local, and directly imported static strings; loaders, file reads, transformations, and runtime-generated values remain unresolved."
|
|
5487
|
+
],
|
|
5488
|
+
language: "typescript",
|
|
5489
|
+
lastVerifiedAt: "2026-08-19",
|
|
5490
|
+
packages: [{
|
|
5491
|
+
ecosystem: "npm",
|
|
5492
|
+
name: "@openai/agents",
|
|
5493
|
+
role: "primary",
|
|
5494
|
+
versionRange: ">=0.16.1 <0.17.0"
|
|
5495
|
+
}],
|
|
5496
|
+
patterns: [
|
|
5497
|
+
{
|
|
5498
|
+
description: "A directly exported TypeScript const constructs an Agent through Agent.create with one closed object-literal configuration.",
|
|
5499
|
+
id: "agent-create-construction",
|
|
5500
|
+
kind: "agent",
|
|
5501
|
+
support: "full"
|
|
5502
|
+
},
|
|
5503
|
+
{
|
|
5504
|
+
description: "A directly exported TypeScript const constructs an Agent through new Agent with one closed object-literal configuration.",
|
|
5505
|
+
id: "direct-agent-construction",
|
|
5506
|
+
kind: "agent",
|
|
5507
|
+
support: "full"
|
|
5508
|
+
},
|
|
5509
|
+
{
|
|
5510
|
+
description: "Dynamically assembled Agent configurations cannot be mapped reliably without semantic analysis.",
|
|
5511
|
+
id: "dynamic-agent-configuration",
|
|
5512
|
+
kind: "agent",
|
|
5513
|
+
support: "ambiguous"
|
|
5514
|
+
},
|
|
5515
|
+
{
|
|
5516
|
+
description: "Realtime and sandbox agent abstractions are outside the initial Agent target.",
|
|
5517
|
+
id: "realtime-and-sandbox-agents",
|
|
5518
|
+
kind: "agent",
|
|
5519
|
+
support: "unsupported"
|
|
5520
|
+
},
|
|
5521
|
+
{
|
|
5522
|
+
description: "A declared instruction loader is used by direct call, direct reference, or one supported single-return dynamic-instruction wrapper.",
|
|
5523
|
+
id: "direct-instruction-loader",
|
|
5524
|
+
kind: "instruction-loader",
|
|
5525
|
+
support: "full"
|
|
5526
|
+
},
|
|
5527
|
+
{
|
|
5528
|
+
description: "Agent-as-tool delegation retains manager control and is not interpreted as a handoff by the initial target.",
|
|
5529
|
+
id: "agents-as-tools",
|
|
5530
|
+
kind: "routing",
|
|
5531
|
+
support: "unsupported"
|
|
5532
|
+
},
|
|
5533
|
+
{
|
|
5534
|
+
description: "A source Agent registers a supported target through handoff with optional closed name and description overrides.",
|
|
5535
|
+
id: "configured-handoff-helper",
|
|
5536
|
+
kind: "routing",
|
|
5537
|
+
support: "full"
|
|
5538
|
+
},
|
|
5539
|
+
{
|
|
5540
|
+
description: "A source Agent registers a supported target Agent directly in its closed handoffs collection.",
|
|
5541
|
+
id: "direct-agent-handoff",
|
|
5542
|
+
kind: "routing",
|
|
5543
|
+
support: "full"
|
|
5544
|
+
},
|
|
5545
|
+
{
|
|
5546
|
+
description: "Runtime-generated or transformed handoff descriptions and description overrides remain unestablished.",
|
|
5547
|
+
id: "dynamic-routing-description",
|
|
5548
|
+
kind: "routing",
|
|
5549
|
+
support: "ambiguous"
|
|
5550
|
+
},
|
|
5551
|
+
{
|
|
5552
|
+
description: "Target handoffDescription uses the canonical handoff description when present and the canonical agent-description fallback otherwise.",
|
|
5553
|
+
id: "effective-routing-description",
|
|
5554
|
+
kind: "routing",
|
|
5555
|
+
support: "full"
|
|
5556
|
+
},
|
|
5557
|
+
{
|
|
5558
|
+
description: "A non-empty static toolDescriptionOverride is authoritative for its handoff registration and must use the target effective routing description.",
|
|
5559
|
+
id: "registration-description-override",
|
|
5560
|
+
kind: "routing",
|
|
5561
|
+
support: "full"
|
|
5562
|
+
},
|
|
5563
|
+
{
|
|
5564
|
+
description: "A bound agent output schema is referenced directly through outputType.",
|
|
5565
|
+
id: "direct-agent-output-schema",
|
|
5566
|
+
kind: "schema",
|
|
5567
|
+
support: "full"
|
|
5568
|
+
},
|
|
5569
|
+
{
|
|
5570
|
+
description: "Closed inline or immutable module-local arrays register supported function tools on an Agent.",
|
|
5571
|
+
id: "closed-agent-tool-array",
|
|
5572
|
+
kind: "tool",
|
|
5573
|
+
support: "full"
|
|
5574
|
+
},
|
|
5575
|
+
{
|
|
5576
|
+
description: "A directly exported function tool uses the root tool helper, an explicit normalized static name, direct implementation, and direct schema bindings.",
|
|
5577
|
+
id: "closed-function-tool",
|
|
5578
|
+
kind: "tool",
|
|
5579
|
+
support: "full"
|
|
5580
|
+
},
|
|
5581
|
+
{
|
|
5582
|
+
description: "Hosted, MCP-generated, namespaced, and tool-search tools are outside the initial repository-local function-tool target.",
|
|
5583
|
+
id: "hosted-and-mcp-tools",
|
|
5584
|
+
kind: "tool",
|
|
5585
|
+
support: "unsupported"
|
|
5586
|
+
}
|
|
5587
|
+
],
|
|
5588
|
+
supportLevel: "experimental"
|
|
5589
|
+
}]
|
|
5426
5590
|
},
|
|
5427
5591
|
"vercel-ai-sdk": {
|
|
5428
5592
|
implementation: {
|
|
@@ -5444,11 +5608,15 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
|
|
|
5444
5608
|
},
|
|
5445
5609
|
{
|
|
5446
5610
|
name: "@moldea.ai/adapter-google-genai",
|
|
5447
|
-
version: "1.0.
|
|
5611
|
+
version: "1.0.3"
|
|
5448
5612
|
},
|
|
5449
5613
|
{
|
|
5450
5614
|
name: "@moldea.ai/adapter-openai",
|
|
5451
|
-
version: "2.0.
|
|
5615
|
+
version: "2.0.4"
|
|
5616
|
+
},
|
|
5617
|
+
{
|
|
5618
|
+
name: "@moldea.ai/adapter-openai-agents-sdk",
|
|
5619
|
+
version: "1.0.1"
|
|
5452
5620
|
},
|
|
5453
5621
|
{
|
|
5454
5622
|
name: "@moldea.ai/core",
|