@moldea.ai/cli 3.3.0 → 3.3.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 CHANGED
@@ -34,8 +34,9 @@ The package exposes the `moldea` executable and no supported JavaScript or TypeS
34
34
  - `@moldea.ai/adapter-google-genai`
35
35
  - `@moldea.ai/adapter-openai`
36
36
  - `@moldea.ai/adapter-openai-agents-sdk`
37
+ - `@moldea.ai/adapter-vercel-ai-sdk`
37
38
 
38
- 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.
39
+ The package-backed `anthropic`, `claude-agent-sdk`, `google-genai`, `openai`, `openai-agents-sdk`, and `vercel-ai-sdk` runtime adapters are active for their experimental TypeScript SDK targets. The `custom` adapter remains built into Core and requires no separate package.
39
40
 
40
41
  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.
41
42
 
@@ -83,7 +84,7 @@ Before attempting a snapshot, the CLI pins the selected root directory, its work
83
84
 
84
85
  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`.
85
86
 
86
- 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.
87
+ 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`, `claude-agent-sdk`, `google-genai`, `openai`, `openai-agents-sdk`, and `vercel-ai-sdk` adapter singletons; Core's built-in `custom` behavior remains available without registration.
87
88
 
88
89
  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.
89
90
 
@@ -101,7 +102,7 @@ A successfully completed Core inspection produces `validate` human or JSON outpu
101
102
 
102
103
  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.
103
104
 
104
- `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`, Claude Agent SDK adapter `1.0.0`, Google Gen AI adapter `1.0.3`, OpenAI adapter `2.0.4`, and OpenAI Agents SDK adapter `1.0.2` are active and available with experimental support for their TypeScript Messages, query/subagent, generate-content, Responses API, and agent-handoff targets. The remaining package-backed adapters stay planned and inactive.
105
+ `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`, Claude Agent SDK adapter `1.0.0`, Google Gen AI adapter `1.0.3`, OpenAI adapter `2.0.4`, OpenAI Agents SDK adapter `1.0.2`, and Vercel AI SDK adapter `1.0.0` are active and available with experimental support for their TypeScript SDK targets. The remaining package-backed adapters stay planned and inactive.
105
106
 
106
107
  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.
107
108
 
@@ -120,6 +121,6 @@ pnpm --filter @moldea.ai/cli test
120
121
 
121
122
  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.
122
123
 
123
- 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.
124
+ CI separately packs Repository, Repository FS, Core, every active package-backed adapter, 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.
124
125
 
125
- 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.
126
+ Every active package-backed adapter has its own repository fixtures, package tests, packed-runtime consumer check, and verified compatibility claim. Cross-repository skill conformance for package-backed adapters remains outside this implementation slice.
package/dist/moldea.js CHANGED
@@ -8,6 +8,7 @@ import { claudeAgentSdkAdapter } from "@moldea.ai/adapter-claude-agent-sdk";
8
8
  import { googleGenAiAdapter } from "@moldea.ai/adapter-google-genai";
9
9
  import { openAiAdapter } from "@moldea.ai/adapter-openai";
10
10
  import { openAiAgentsSdkAdapter } from "@moldea.ai/adapter-openai-agents-sdk";
11
+ import { vercelAiSdkAdapter } from "@moldea.ai/adapter-vercel-ai-sdk";
11
12
  import { TextDecoder as TextDecoder$1 } from "node:util";
12
13
  import { execFile, spawn } from "node:child_process";
13
14
  import { lstat, readFile, readdir, stat } from "node:fs/promises";
@@ -2211,7 +2212,8 @@ var ACTIVE_RUNTIME_ADAPTERS = Object.freeze([
2211
2212
  claudeAgentSdkAdapter,
2212
2213
  googleGenAiAdapter,
2213
2214
  openAiAdapter,
2214
- openAiAgentsSdkAdapter
2215
+ openAiAgentsSdkAdapter,
2216
+ vercelAiSdkAdapter
2215
2217
  ]);
2216
2218
  //#endregion
2217
2219
  //#region src/core-composition/executor.ts
@@ -4981,12 +4983,13 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
4981
4983
  "claude-agent-sdk",
4982
4984
  "google-genai",
4983
4985
  "openai",
4984
- "openai-agents-sdk"
4986
+ "openai-agents-sdk",
4987
+ "vercel-ai-sdk"
4985
4988
  ],
4986
4989
  cliPackage: {
4987
4990
  name: "@moldea.ai/cli",
4988
4991
  supportedNodeRange: "^22.11.0 || ^24.11.0",
4989
- version: "3.3.0"
4992
+ version: "3.3.1"
4990
4993
  },
4991
4994
  coreRecognizedAdapterIds: [
4992
4995
  "anthropic",
@@ -5850,12 +5853,264 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
5850
5853
  }]
5851
5854
  },
5852
5855
  "vercel-ai-sdk": {
5856
+ compatibleCoreRange: "^2.0.0",
5853
5857
  implementation: {
5854
5858
  distribution: "public",
5855
5859
  kind: "package",
5856
- package: "@moldea.ai/adapter-vercel-ai-sdk"
5860
+ package: "@moldea.ai/adapter-vercel-ai-sdk",
5861
+ versionRange: "^1.0.0"
5857
5862
  },
5858
- implementationStatus: "planned"
5863
+ implementationStatus: "available",
5864
+ lastVerifiedAt: "2026-08-19",
5865
+ runtimeGuidance: {
5866
+ expectation: "optional",
5867
+ notes: "Project-local guidance is needed only for repository-specific wrappers or unsupported dynamic integration patterns."
5868
+ },
5869
+ supportedRepositoryFormatVersions: [1],
5870
+ targets: [{
5871
+ bindingSupport: {
5872
+ "instruction-loader": {
5873
+ relationship: "partial",
5874
+ symbol: "partial"
5875
+ },
5876
+ "output-schema": {
5877
+ relationship: "partial",
5878
+ symbol: "partial"
5879
+ },
5880
+ "runtime-agent": {
5881
+ relationship: "partial",
5882
+ symbol: "partial"
5883
+ },
5884
+ "tool-implementation": {
5885
+ relationship: "partial",
5886
+ symbol: "partial"
5887
+ },
5888
+ "tool-input-schema": {
5889
+ relationship: "partial",
5890
+ symbol: "partial"
5891
+ },
5892
+ "tool-output-schema": {
5893
+ relationship: "partial",
5894
+ symbol: "partial"
5895
+ },
5896
+ "tool-registration": {
5897
+ relationship: "partial",
5898
+ symbol: "partial"
5899
+ }
5900
+ },
5901
+ evidenceKinds: [
5902
+ "instruction-loader",
5903
+ "language",
5904
+ "runtime-package",
5905
+ "runtime-pattern",
5906
+ "schema",
5907
+ "tool-registration"
5908
+ ],
5909
+ id: "typescript-generate-stream-text-7",
5910
+ kind: "package",
5911
+ knownLimitations: [
5912
+ "Lockfiles and installed package versions are not inspected.",
5913
+ "Only Output.object establishes an agent output-schema relationship.",
5914
+ "Only TypeScript ESM source and documented direct relative imports are interpreted.",
5915
+ "Only direct generateText and streamText calls in the bound function's own lexical body are interpreted.",
5916
+ "The target does not infer providers, models, routing targets, handoffs, or subagent control transfer.",
5917
+ "prepareStep function bodies are not interpreted."
5918
+ ],
5919
+ language: "typescript",
5920
+ lastVerifiedAt: "2026-08-19",
5921
+ packages: [{
5922
+ ecosystem: "npm",
5923
+ name: "ai",
5924
+ role: "primary",
5925
+ versionRange: ">=7.0.66 <8.0.0"
5926
+ }],
5927
+ patterns: [
5928
+ {
5929
+ description: "A directly exported function containing a direct generateText object-literal call is recognized as the runtime pattern.",
5930
+ id: "direct-generate-text-wrapper",
5931
+ kind: "agent",
5932
+ support: "full"
5933
+ },
5934
+ {
5935
+ description: "A directly exported function containing a direct streamText object-literal call is recognized as the runtime pattern.",
5936
+ id: "direct-stream-text-wrapper",
5937
+ kind: "agent",
5938
+ support: "full"
5939
+ },
5940
+ {
5941
+ description: "Direct loader calls are supported when prepareStep cannot replace the instructions.",
5942
+ id: "direct-generation-instruction-loader",
5943
+ kind: "instruction-loader",
5944
+ support: "partial"
5945
+ },
5946
+ {
5947
+ description: "instructions is authoritative and deprecated system is used only through the supported absence fallback.",
5948
+ id: "instructions-system-precedence",
5949
+ kind: "instruction-loader",
5950
+ support: "full"
5951
+ },
5952
+ {
5953
+ description: "prepareStep may replace per-step instructions and is not interpreted by the initial target.",
5954
+ id: "prepare-step-instruction-overrides",
5955
+ kind: "instruction-loader",
5956
+ support: "ambiguous"
5957
+ },
5958
+ {
5959
+ description: "Calls routed through arbitrary wrappers, factories, callbacks, or request builders are outside the initial target.",
5960
+ id: "indirect-generation-wrapper",
5961
+ kind: "runtime",
5962
+ support: "unsupported"
5963
+ },
5964
+ {
5965
+ description: "The initial direct-generation target publishes no agent input-schema relationship.",
5966
+ id: "direct-agent-input-schema",
5967
+ kind: "schema",
5968
+ support: "unsupported"
5969
+ },
5970
+ {
5971
+ description: "Direct Output.object schema binding establishes the agent output-schema relationship.",
5972
+ id: "object-output-schema",
5973
+ kind: "schema",
5974
+ support: "partial"
5975
+ },
5976
+ {
5977
+ description: "Closed object-map registration supports repository-local function tools created through tool.",
5978
+ id: "closed-tools-map",
5979
+ kind: "tool",
5980
+ support: "partial"
5981
+ },
5982
+ {
5983
+ description: "Direct execute, inputSchema, and outputSchema bindings are interpreted without executing the tool.",
5984
+ id: "direct-function-tool-bindings",
5985
+ kind: "tool",
5986
+ support: "partial"
5987
+ }
5988
+ ],
5989
+ supportLevel: "experimental"
5990
+ }, {
5991
+ bindingSupport: {
5992
+ "input-schema": {
5993
+ relationship: "partial",
5994
+ symbol: "partial"
5995
+ },
5996
+ "instruction-loader": {
5997
+ relationship: "partial",
5998
+ symbol: "partial"
5999
+ },
6000
+ "output-schema": {
6001
+ relationship: "partial",
6002
+ symbol: "partial"
6003
+ },
6004
+ "runtime-agent": {
6005
+ relationship: "partial",
6006
+ symbol: "partial"
6007
+ },
6008
+ "tool-implementation": {
6009
+ relationship: "partial",
6010
+ symbol: "partial"
6011
+ },
6012
+ "tool-input-schema": {
6013
+ relationship: "partial",
6014
+ symbol: "partial"
6015
+ },
6016
+ "tool-output-schema": {
6017
+ relationship: "partial",
6018
+ symbol: "partial"
6019
+ },
6020
+ "tool-registration": {
6021
+ relationship: "partial",
6022
+ symbol: "partial"
6023
+ }
6024
+ },
6025
+ evidenceKinds: [
6026
+ "agent-definition",
6027
+ "instruction-loader",
6028
+ "language",
6029
+ "runtime-package",
6030
+ "schema",
6031
+ "tool-registration"
6032
+ ],
6033
+ id: "typescript-tool-loop-agent-7",
6034
+ kind: "package",
6035
+ knownLimitations: [
6036
+ "Lockfiles and installed package versions are not inspected.",
6037
+ "Only Output.object establishes an agent output-schema relationship.",
6038
+ "Only TypeScript ESM source and documented direct relative imports are interpreted.",
6039
+ "The target does not infer providers, models, routing targets, handoffs, or subagent control transfer.",
6040
+ "prepareCall and prepareStep function bodies are not interpreted; prepareCall therefore leaves instruction, tool, and output-schema wiring unresolved."
6041
+ ],
6042
+ language: "typescript",
6043
+ lastVerifiedAt: "2026-08-19",
6044
+ packages: [{
6045
+ ecosystem: "npm",
6046
+ name: "ai",
6047
+ role: "primary",
6048
+ versionRange: ">=7.0.66 <8.0.0"
6049
+ }],
6050
+ patterns: [
6051
+ {
6052
+ description: "Directly exported ToolLoopAgent construction through one closed object-literal settings value.",
6053
+ id: "direct-tool-loop-agent-construction",
6054
+ kind: "agent",
6055
+ support: "full"
6056
+ },
6057
+ {
6058
+ description: "prepareCall may replace instructions and tools or omit the construction-time output, and is not interpreted by the initial target.",
6059
+ id: "prepare-call-overrides",
6060
+ kind: "agent",
6061
+ support: "ambiguous"
6062
+ },
6063
+ {
6064
+ description: "WorkflowAgent and @ai-sdk/workflow are outside the initial target.",
6065
+ id: "workflow-agent",
6066
+ kind: "agent",
6067
+ support: "unsupported"
6068
+ },
6069
+ {
6070
+ description: "Direct loader calls in instructions are supported when prepareCall and prepareStep cannot replace them.",
6071
+ id: "direct-agent-instruction-loader",
6072
+ kind: "instruction-loader",
6073
+ support: "partial"
6074
+ },
6075
+ {
6076
+ description: "prepareStep may replace per-step instructions and is not interpreted by the initial target.",
6077
+ id: "prepare-step-instruction-overrides",
6078
+ kind: "instruction-loader",
6079
+ support: "ambiguous"
6080
+ },
6081
+ {
6082
+ description: "A function tool that calls another agent does not establish a target or handoff relationship in the initial target.",
6083
+ id: "subagent-handoff-inference",
6084
+ kind: "routing",
6085
+ support: "unsupported"
6086
+ },
6087
+ {
6088
+ description: "Direct callOptionsSchema binding establishes the agent input-schema relationship.",
6089
+ id: "call-options-input-schema",
6090
+ kind: "schema",
6091
+ support: "full"
6092
+ },
6093
+ {
6094
+ description: "Direct Output.object schema binding establishes the agent output-schema relationship when no uninterpreted prepareCall can remove it.",
6095
+ id: "object-output-schema",
6096
+ kind: "schema",
6097
+ support: "partial"
6098
+ },
6099
+ {
6100
+ description: "Closed object-map registration supports repository-local function tools created through tool.",
6101
+ id: "closed-tools-map",
6102
+ kind: "tool",
6103
+ support: "partial"
6104
+ },
6105
+ {
6106
+ description: "Direct execute, inputSchema, and outputSchema bindings are interpreted without executing the tool.",
6107
+ id: "direct-function-tool-bindings",
6108
+ kind: "tool",
6109
+ support: "partial"
6110
+ }
6111
+ ],
6112
+ supportLevel: "experimental"
6113
+ }]
5859
6114
  }
5860
6115
  },
5861
6116
  version: 1
@@ -5883,6 +6138,10 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
5883
6138
  name: "@moldea.ai/adapter-openai-agents-sdk",
5884
6139
  version: "1.0.2"
5885
6140
  },
6141
+ {
6142
+ name: "@moldea.ai/adapter-vercel-ai-sdk",
6143
+ version: "1.0.0"
6144
+ },
5886
6145
  {
5887
6146
  name: "@moldea.ai/core",
5888
6147
  version: "2.0.0"