@moldea.ai/cli 1.0.1 → 1.1.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
@@ -28,7 +28,7 @@ The package exposes the `moldea` executable and no supported JavaScript or TypeS
28
28
  - `@moldea.ai/repository-fs`
29
29
  - `@moldea.ai/core`
30
30
 
31
- No package-backed runtime adapter is active yet. The `custom` adapter remains built into Core and requires no separate package.
31
+ The package-backed `openai` runtime adapter is active for its experimental TypeScript Responses API target. The `custom` adapter remains built into Core and requires no separate package.
32
32
 
33
33
  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.
34
34
 
@@ -76,7 +76,7 @@ Before attempting a snapshot, the CLI pins the selected root directory, its work
76
76
 
77
77
  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`.
78
78
 
79
- 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 is currently the immutable empty set; Core's built-in `custom` behavior remains available without registration.
79
+ 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 `openai` adapter singleton; Core's built-in `custom` behavior remains available without registration.
80
80
 
81
81
  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.
82
82
 
@@ -94,7 +94,7 @@ A successfully completed Core inspection produces `validate` human or JSON outpu
94
94
 
95
95
  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.
96
96
 
97
- `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 `1.0.1`, repository format `1`, required project-local runtime guidance, and full support for explicit repository relationships. The remaining package-backed adapters stay planned and inactive.
97
+ `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 `1.0.1`, repository format `1`, required project-local runtime guidance, and full support for explicit repository relationships. The bundled OpenAI adapter `1.0.0` is active and available with experimental support for its TypeScript Responses API target. The remaining package-backed adapters stay planned and inactive.
98
98
 
99
99
  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.
100
100
 
@@ -113,6 +113,6 @@ pnpm --filter @moldea.ai/cli test
113
113
 
114
114
  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.
115
115
 
116
- CI separately packs Repository, Repository FS, Core, 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. The runtime harness verifies installed identities and 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.
116
+ CI separately packs Repository, Repository FS, Core, the OpenAI 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 the 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.
117
117
 
118
- The open-source skill repository exercises the real candidate tarballs through supported npm, pnpm, and Yarn versions and validates deterministic `compatibility --json` and `inspect --json` behavior without registry publication. Package-backed runtime adapters remain excluded until their own implementations, fixtures, and verified compatibility claims exist.
118
+ The OpenAI 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
@@ -3,6 +3,7 @@ import path from "node:path";
3
3
  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
+ import { openAiAdapter } from "@moldea.ai/adapter-openai";
6
7
  import { TextDecoder as TextDecoder$1 } from "node:util";
7
8
  import { execFile, spawn } from "node:child_process";
8
9
  import { lstat, readFile, readdir, stat } from "node:fs/promises";
@@ -2201,7 +2202,7 @@ var createMoldeaCliCompatibilityResult = (input) => {
2201
2202
  };
2202
2203
  //#endregion
2203
2204
  //#region src/core-composition/constants.ts
2204
- var ACTIVE_RUNTIME_ADAPTERS = Object.freeze([]);
2205
+ var ACTIVE_RUNTIME_ADAPTERS = Object.freeze([openAiAdapter]);
2205
2206
  //#endregion
2206
2207
  //#region src/core-composition/executor.ts
2207
2208
  var compareAdapterIds = (left, right) => {
@@ -4965,11 +4966,11 @@ var freezeMoldeaCliReleaseMetadata = (metadata) => {
4965
4966
  //#endregion
4966
4967
  //#region src/release-metadata/release-metadata.generated.ts
4967
4968
  var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
4968
- activeAdapterIds: [],
4969
+ activeAdapterIds: ["openai"],
4969
4970
  cliPackage: {
4970
4971
  name: "@moldea.ai/cli",
4971
4972
  supportedNodeRange: "^22.11.0 || ^24.11.0",
4972
- version: "1.0.1"
4973
+ version: "1.1.1"
4973
4974
  },
4974
4975
  coreRecognizedAdapterIds: [
4975
4976
  "anthropic",
@@ -5072,12 +5073,103 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
5072
5073
  implementationStatus: "planned"
5073
5074
  },
5074
5075
  openai: {
5076
+ compatibleCoreRange: "^1.0.0",
5075
5077
  implementation: {
5076
5078
  distribution: "public",
5077
5079
  kind: "package",
5078
- package: "@moldea.ai/adapter-openai"
5080
+ package: "@moldea.ai/adapter-openai",
5081
+ versionRange: "^1.0.0"
5079
5082
  },
5080
- implementationStatus: "planned"
5083
+ implementationStatus: "available",
5084
+ lastVerifiedAt: "2026-08-15",
5085
+ runtimeGuidance: {
5086
+ expectation: "recommended",
5087
+ notes: "Document project-specific model selection, tool execution, streaming, retry, and error behavior that static inspection cannot establish."
5088
+ },
5089
+ supportedRepositoryFormatVersions: [1],
5090
+ targets: [{
5091
+ bindingSupport: {
5092
+ "instruction-loader": {
5093
+ relationship: "full",
5094
+ symbol: "full"
5095
+ },
5096
+ "runtime-agent": {
5097
+ relationship: "full",
5098
+ symbol: "full"
5099
+ },
5100
+ "tool-input-schema": {
5101
+ relationship: "full",
5102
+ symbol: "full"
5103
+ },
5104
+ "tool-registration": {
5105
+ relationship: "full",
5106
+ symbol: "full"
5107
+ }
5108
+ },
5109
+ evidenceKinds: [
5110
+ "instruction-loader",
5111
+ "language",
5112
+ "runtime-package",
5113
+ "runtime-pattern",
5114
+ "schema",
5115
+ "tool-registration"
5116
+ ],
5117
+ id: "typescript-responses-api-7",
5118
+ kind: "package",
5119
+ knownLimitations: [
5120
+ "Agent input and output schemas, tool implementations and output schemas, skills, variables, and runtime-native routing do not produce evidence.",
5121
+ "JavaScript, CommonJS, Python, Realtime, Assistants, Agents SDK, streaming semantics, and provider-hosted configuration are not interpreted.",
5122
+ "Only TypeScript ESM files with supported direct default and relative named imports are interpreted.",
5123
+ "Package versions are classified from nearest package manifests; lockfiles and installed node_modules are not inspected."
5124
+ ],
5125
+ language: "typescript",
5126
+ lastVerifiedAt: "2026-08-15",
5127
+ packages: [{
5128
+ ecosystem: "npm",
5129
+ name: "openai",
5130
+ role: "primary",
5131
+ versionRange: ">=7.4.0 <8.0.0"
5132
+ }],
5133
+ patterns: [
5134
+ {
5135
+ description: "A bound loader is called directly, optionally through await, by a Responses request instructions property.",
5136
+ id: "direct-instruction-loader",
5137
+ kind: "instruction-loader",
5138
+ support: "full"
5139
+ },
5140
+ {
5141
+ description: "Chat Completions usage is outside this target and is not rejected merely because Responses is preferred.",
5142
+ id: "chat-completions",
5143
+ kind: "runtime",
5144
+ support: "ambiguous"
5145
+ },
5146
+ {
5147
+ description: "A bound exported TypeScript function uses a module-local OpenAI client for one or more direct closed Responses API requests.",
5148
+ id: "direct-responses-runtime-agent",
5149
+ kind: "runtime",
5150
+ support: "full"
5151
+ },
5152
+ {
5153
+ description: "Factories, computed properties, spreads, mutable arrays, and indirect request values are not resolved.",
5154
+ id: "dynamic-source-indirection",
5155
+ kind: "runtime",
5156
+ support: "ambiguous"
5157
+ },
5158
+ {
5159
+ description: "A bound tool input schema is referenced directly by function-tool parameters.",
5160
+ id: "direct-tool-input-schema",
5161
+ kind: "schema",
5162
+ support: "full"
5163
+ },
5164
+ {
5165
+ description: "Bound static OpenAI function-tool objects are included in a closed inline or immutable module-local Responses tools array.",
5166
+ id: "static-function-tools",
5167
+ kind: "tool",
5168
+ support: "full"
5169
+ }
5170
+ ],
5171
+ supportLevel: "experimental"
5172
+ }]
5081
5173
  },
5082
5174
  "openai-agents-sdk": {
5083
5175
  implementation: {
@@ -5109,6 +5201,10 @@ var MOLDEA_CLI_RELEASE_METADATA = freezeMoldeaCliReleaseMetadata({
5109
5201
  minimumGitVersion: "2.30.0",
5110
5202
  outputSchemaVersion: 1,
5111
5203
  packages: [
5204
+ {
5205
+ name: "@moldea.ai/adapter-openai",
5206
+ version: "1.0.1"
5207
+ },
5112
5208
  {
5113
5209
  name: "@moldea.ai/core",
5114
5210
  version: "1.0.1"