# Moltlazy

## 0.8.1

### Patch Changes

- fix(software): reset the progress log before each provisioning run ([5476899](https://github.com/0xCAB0/fouria/commit/5476899a04baa2f41ed732fccf40cebeec373149))

## 0.8.0

### Minor Changes

- feat: seed the fouria-product-build build-method skill for the Fouria Builder (per-agent workspace skill) ([95a1107](https://github.com/0xCAB0/fouria/commit/95a1107978a5b82460d61c5344177d6fc145ba03))

## 0.7.0 — 2026-10-04

> Changesets is adopted from this release onward. Earlier entries were
> maintained manually; this section collects the changes that shipped in the
> 0.4.0–0.7.0 line.

### New features

#### SDK Module

- **`config.patch()` re-added.** The upstream `config.patch` RPC now exists, so
  `client.config.patch({ raw, baseHash?, replacePaths?, sessionKey?, deliveryContext?, note?, restartDelayMs? })`
  is the supported partial-update path (JSON merge patch). It waits for the
  active Gateway to apply the write and returns the effective `changedPaths`.
- **`config.schema()` / `config.schemaLookup(path)`.** New methods for the live
  config schema and path-scoped schema drill-down (`schema`, `reloadKind`,
  presentation hints, child summaries).
- **`config.get()` is now typed as `ConfigSnapshot`.** Exposes `config`, the
  opaque `hash` (pass as `baseHash`), and optional `configRevisionHash` /
  `appliedConfigHash`.
- **New `update` domain module.** `client.update.run(params?)` (`update.run`,
  with `continuationMessage`) and `client.update.status()` (`update.status`).
- **CLI SDK parity:** `client.config.schema()` runs `openclaw config schema`.

### Deprecations

- **`config.set()` is deprecated.** It acknowledges persistence only; use
  `config.patch()` for partial updates or `config.apply()` for a full replace.

## v0.3.0 — 2026-05-23

### Breaking changes

#### Config Module

- **TOML replaced by JSON feature flags.** `MOLTLAZY_TOML_CONTENT` and `MOLTLAZY_TOML_PATH` env vars are removed. Feature flags are now passed as `MOLTLAZY_FEATURE_FLAGS` (a JSON string).
- **`init-toml` CLI command removed.** No replacement — feature flags are set by the Worker directly.
- **Force flags removed.** `--force-gateway`, `--force-channels`, `--force-agents` CLI flags are gone. The `$include` mechanism is always authoritative.
- **`moltlazy-meta.json` removed.** Patch tracking metadata no longer exists. `$include` is idempotent.
- **`shouldPatchConfig()` / `computeConfigHash()` / `MOLTLAZY_TOML_ETAG` removed.**
- **Deprecated flag aliases removed.** `enableUnifiedBilling` → `unifiedBilling`, `enableMicrosoftGraph` → `microsoftGraph`.

#### SDK Module

- **Feature packs removed.** `buildGatewayCalls()`, `buildSessionCalls()`, `buildToolsCalls()`, `buildLoggingCalls()`, `buildAgentsCalls()`, `buildChannelsCalls()`, `buildKnowledgeGraphCalls()`, `buildMicrosoftGraphCalls()`, `buildCfUnifiedBillingCalls()` are all gone.
- **`applyConfig()` orchestrator removed.** No replacement — use `createClient()` and call domain modules directly.
- **`ConfigPatchParams` removed.** `config.patch()` method does not exist upstream. Use `config.set()` or `config.apply()` with `{ raw: string }`.
- **`config.set()` / `config.apply()` params changed.** Now accept `{ raw: string, baseHash?: string }` (serialised JSON string), not `{ path: string, value: unknown }`.
- **`AgentCreateParams` changed.** `id` field removed. `name` and `workspace` are now required. `model` is a `string` (not an object).
- **`ChannelParams` removed.** Replaced by `ChannelStatusParams` and `ChannelAccountInfo`.

### New features

#### Config Module

- **Immutable `$include`-based config.** `moltlazy patch` generates `/home/openclaw/.openclaw/moltlazy.json` and injects `$include: "./moltlazy.json"` into `openclaw.json`. OpenClaw natively merges both files on startup.
- **New mandatory config modules:** `config/tools.ts` (`tools.toolSearch`) and `config/logging.ts` (`logging.*`) always run regardless of feature flags.
- **`config/include.ts`** — manages `$include` injection and `moltlazy.json` generation.
- **`config/skills.ts`** — always-on `skills.entries` config section.

#### SDK Module

- **New SDK typed RPC client** (`sdk/`) — `createClient()` returns a `MoltlazyClient` with 7 domain modules: `config`, `agents`, `channels`, `devices`, `cron`, `models`, `gateway`.
- **Upstream-aligned types** — all types in `sdk/types.ts` aligned to `ProtocolSchemas` from `openclaw/plugin-sdk`:
  - `ConfigSetParams` / `ConfigApplyParams`: `{ raw: string, baseHash?: string }`
  - `CronJob` / `CronAddParams`: discriminated `CronSchedule` union (`at` / `every` / `cron`)
  - `ChannelStatus`: full `ChannelsStatusResult`-aligned shape
  - `DevicePairRequest`: `displayName` (not `name`), added `deviceId` / `publicKey` / `ts`
  - `ModelInfo`: `name: string` required
  - `RpcError.error`: added `details?`, `retryable?`, `retryAfterMs?`
  - `RpcClient.call()` params widened to `unknown`

### Other changes

- **608 tests** across 33 test files (up from 399/21).
- `bun run typecheck` passes in strict mode with zero errors.
- `AGENTS.md` updated to v0.3 architecture (two-system overview, removed TOML/force references).
- Docs rewritten: `concepts.md`, `quickstart.md`, `orchestration.md` (now "Startup Flow"), `feature-packs.md` (now "SDK Domain Modules").

### Migration from v0.2

See [Migration Guide](/latest/llms/platform/libraries/moltlazy/migration/index.md) for the full step-by-step guide.

| Old                          | New                                             |
| ---------------------------- | ----------------------------------------------- |
| `MOLTLAZY_TOML_CONTENT`      | `MOLTLAZY_FEATURE_FLAGS` (JSON string)          |
| `MOLTLAZY_TOML_PATH`         | removed                                         |
| `MOLTLAZY_TOML_ETAG`         | removed                                         |
| `moltlazy init-toml`         | removed                                         |
| `--force-gateway` etc.       | removed                                         |
| `buildGatewayCalls()` etc.   | removed — use `createClient()` domain modules   |
| `applyConfig()`              | removed — use `createClient()` domain modules   |
| `config.patch()`             | removed — use `config.set({ raw: '...' })`      |
| `config.set({ path, value})` | `config.set({ raw: string })`                   |
| `AgentCreateParams.id`       | removed (`name` + `workspace` required instead) |
