From 3e76bee9445c5c1b17548db92670461e0a59a89f Mon Sep 17 00:00:00 2001 From: u0b002 Date: Mon, 4 May 2026 22:41:57 +0300 Subject: [PATCH] docs(dart): align morph_core and morph_storage metadata (#33) Refresh README and pubspec descriptions with shipped parity (runtime, OAuth helpers, host pipeline, plugins). Correct morph_storage scope: in-memory for VM/tests, not browser-storage parity. Co-authored-by: Cursor --- packages/dart/morph_core/README.md | 11 +++++++---- packages/dart/morph_core/pubspec.yaml | 4 ++-- packages/dart/morph_storage/pubspec.yaml | 5 ++++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/dart/morph_core/README.md b/packages/dart/morph_core/README.md index 7a83d0c..b590859 100644 --- a/packages/dart/morph_core/README.md +++ b/packages/dart/morph_core/README.md @@ -9,11 +9,14 @@ Dart port of **`@morph/core`** (Morph API Client). See `packages/ts/core/src/config/validate.ts` (throws **`ConfigValidationError`** with aggregated messages). - **`normalizeExchangeSources`**, **`listAuthIdsForProvider`** — parity with TS helpers. -- **`MorphClient.init`** — runs config validation, then throws **`UnimplementedError`** - until runtime / OAuth / HTTP / plugins are ported ([#3](https://github.com/burgan-tech/morph-api-client/issues/3)). +- **`MorphClient`**, **`MorphRuntime`**, plugin install (**`provides` / `requires`**), + **`HostPipeline.hostFetch`**, and **`MorphPlugin`** surface — shipped; mirrors TS + client/runtime/pipeline behavior per **`docs/dart-parity.md`**. +- Public OAuth helpers (authorize URL, OAuth state/return utilities), JWT helpers, + and types aligned with **`packages/ts/core`** exports where applicable. -Typed **`MorphConfig` / strong `MorphOptions`** DTOs (vs `Map`) are -planned; config is validated as decoded JSON maps for now. +Typed **`MorphConfig` / strong `MorphOptions`** DTOs (vs `Map`) remain +**backlog**; config is validated as decoded JSON maps for now ([#3](https://github.com/burgan-tech/morph-api-client/issues/3)). ```bash dart pub get diff --git a/packages/dart/morph_core/pubspec.yaml b/packages/dart/morph_core/pubspec.yaml index 8d07b8c..f4a6c83 100644 --- a/packages/dart/morph_core/pubspec.yaml +++ b/packages/dart/morph_core/pubspec.yaml @@ -1,7 +1,7 @@ name: morph_core description: > - Dart port of @morph/core (Morph API Client). Scaffold: mirrors TypeScript init - shape; OAuth, HTTP pipeline, and plugins unimplemented until parity milestones. + Dart port of @morph/core — MorphClient, config validation, MorphRuntime, HTTP host + pipeline, plugin composition, and shared types (parity with packages/ts/core). publish_to: "none" version: 0.1.0 diff --git a/packages/dart/morph_storage/pubspec.yaml b/packages/dart/morph_storage/pubspec.yaml index 871b298..1b44500 100644 --- a/packages/dart/morph_storage/pubspec.yaml +++ b/packages/dart/morph_storage/pubspec.yaml @@ -1,5 +1,8 @@ name: morph_storage -description: Storage adapters for Morph (Dart parity with @morph/browser-storage). +description: > + In-memory StorageProvider and MorphPlugin for Morph (tests/VM). Browser + session/local storage lives in @morph/browser-storage (TS); production Flutter + apps typically use morph-data-store via morph_core_storage. publish_to: "none" version: 0.1.0