You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 594002d
Browse filesBrowse the repository at this point in the historyBrowse files
* fix(runtime): seed-apply read-back reads body from wrapper .item field
The diagnostic added in the prior fix revealed the exact shape: a direct
protocol.getMetaItem() call returns a WRAPPER `{ type, name, item, lock,
editable, deletable, resettable }` — the seed body (object/records) is under
`.item`, not top-level and not `.metadata`/`.body` (the HTTP endpoint unwraps
it, which is why a manual GET showed the body directly and misled the first
guess). Add `.item` to the extraction chain so the published seed body is
actually read → its rows load on publish.
This completes the magic-moment loop: AI builds → publishes → sample seed rows
load into the object.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(seed): complete Dataset->Seed rename + load published seed rows
Locally verified together (106 spec + 163 runtime tests green) BEFORE deploying.
Prior split attempts failed because the rename never landed on main (auto-merge
raced ahead of the rename commit) and the seed-apply hook was patched blind
through the slow deploy loop.
1. Finish the lost Dataset->Seed rename:
- data/dataset.zod.ts -> data/seed.zod.ts (+ dataset.test.ts -> seed.test.ts)
- DatasetSchema->SeedSchema (canonical), Dataset->Seed, DatasetInput->SeedInput,
DatasetMode->SeedMode, DatasetImportMode->SeedImportMode,
DatasetLoadResult(Schema)->SeedLoadResult(Schema), defineDataset->defineSeed
- SeedLoaderRequest field datasets->seeds (+ all constructors/readers/tests)
- callers: 3 examples, plugin-org-scoping, runtime seed-loader + app-plugin,
spec stack/manifest/package-artifact/metadata-collection/solution-blueprint
Frees the dataset name for the ADR-0021 analytics layer. NOT renamed (other
concepts): env-artifact datasets bucket, seed-datasets service key, manifest
data, RAGFlow datasets.
2. Fix publish-drafts seed-apply so published seed rows actually load:
protocol.getMetaItem (direct) returns a WRAPPER {type,name,item,...} - the
seed body is under .item (the HTTP endpoint unwraps it, which misled earlier
guesses). Read .item; try active-org then env-wide; never report success while
loading 0 rows. New integration test (http-dispatcher.test.ts) exercises the
real SeedLoaderService end-to-end and pins this.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments