Skip to content

refactor!: remove skill-draft, web_site handling and mail attachments - #30

Open
TheGreatAxios wants to merge 1 commit into
cl-9324-artifacts-add-shared-real-postgres-test-harness-in-testsfrom
cl-9068-artifacts-remove-skill-draft-web_site-handling-and-mail
Open

TheGreatAxios wants to merge 1 commit into
cl-9324-artifacts-add-shared-real-postgres-test-harness-in-testsfrom
cl-9068-artifacts-remove-skill-draft-web_site-handling-and-mail

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • skill-draft is an ordinary kind; SKILL_DRAFT_KIND and every check against it are gone.
  • web_site has no special handling; web-site.ts, its exports, and artifact_read's path are gone.
  • The mail-attachment routes, helpers and schema are gone: 0001 no longer creates mail_attachment_ref, and 0003_drop_mail_attachment_ref drops it from upgraded databases.
  • windowContent is internal to tools.ts.
  • tests/upgrade-from-0.1.0.test.ts migrates and writes a real database with the published @corbits/artifacts@0.1.0 (dev alias), then runs this version's migrations over it.
  • README and CHANGELOG list the removals under Breaking.
  • Stacked on test: add a real-Postgres harness for end-to-end suites in tests/ #29.

Verification

  • bun install --frozen-lockfile, bun run typecheck, bun run build: pass.
  • bun run test:coverage against local Postgres 16 (ARTIFACT_DATABASE_URL=.../artifact_core, ALLOW_DESTRUCTIVE_ARTIFACT_TESTS=1): 288 pass, 0 fail, coverage floor met.

Closes CL-9068

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review: an independent review checked migration idempotency, tenant scoping, and leftover references. No leftovers found. Upgrade from a 0.1.0 database proven against real Postgres.

@TheGreatAxios
TheGreatAxios force-pushed the cl-9068-artifacts-remove-skill-draft-web_site-handling-and-mail branch 3 times, most recently from c71399f to 070bb3c Compare September 25, 2026 23:57
@TheGreatAxios
TheGreatAxios force-pushed the cl-9068-artifacts-remove-skill-draft-web_site-handling-and-mail branch from 070bb3c to b1ed815 Compare September 26, 2026 01:29
@TheGreatAxios TheGreatAxios changed the title Remove skill-draft, web_site handling and mail attachment refs refactor!: remove skill-draft, web_site handling and mail attachments Sep 26, 2026
skill-draft is an ordinary kind and web_site content is stored as
given. The mail-attachment routes, helpers and table are gone: 0001 no
longer creates mail_attachment_ref, a new migration drops it from
upgraded databases, and an end-to-end test upgrades a database written
by the published 0.1.0. windowContent is no longer exported.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9068-artifacts-remove-skill-draft-web_site-handling-and-mail branch from b1ed815 to e231702 Compare September 26, 2026 01:37
@TheGreatAxios
TheGreatAxios added this pull request to stack #32 September 26, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant