Skip to content

feat(connect): migrate @monad-inc/connect into embed + relicense Apache-2.0 (ENG-8646) - #2

Closed
andrewc-monad wants to merge 2 commits into
feature/eng-8333from
feature/eng-8646
Closed

feat(connect): migrate @monad-inc/connect into embed + relicense Apache-2.0 (ENG-8646)#2
andrewc-monad wants to merge 2 commits into
feature/eng-8333from
feature/eng-8646

Conversation

@andrewc-monad

Copy link
Copy Markdown
Collaborator

What

Migrates the self-contained @monad-inc/connect host SDK from monad-inc/ui into this repo, relicensed Apache-2.0 and ready for public npm. Stacked on #1 (ENG-8333 scaffold) — review/merge that first.

  • packages/connect/src/{index,protocol,lifecycle}.ts + README/USAGE/CHANGELOG/vitest config copied verbatim.
  • tsconfig.jsonextends ../../tsconfig.base.json.
  • Apache-2.0 LICENSE + NOTICE ship in the package; the proprietary LICENSE.md is not carried over.
  • package.json:
    • license: UNLICENSEDApache-2.0
    • publishConfig: access restrictedpublic, provenance: true
    • files: now ["dist","README.md","USAGE.md","CHANGELOG.md","LICENSE","NOTICE"] — the old stale LICENSE.md entry would have shipped a license-less tarball
    • repo/homepage/bugs → monad-inc/embed; dropped redundant prepack
  • ESLint: @typescript-eslint/no-explicit-anywarn (the SDK deliberately treats Monad API responses as untyped JSON via MonadRequest); added "type": "module" at root.

Verification

pnpm -r build         ✅ (DTS resolves the extended base tsconfig)
pnpm -r typecheck     ✅
pnpm -r test          ✅ (no tests yet; passWithNoTests)
pnpm lint             ✅ (5 no-explicit-any warnings, 0 errors)
prettier --check .    ✅
npm pack --dry-run    ✅ LICENSE + NOTICE + dist/*.{js,cjs,d.ts} + USAGE.md present, no LICENSE.md

Next

ENG-8647 (CI + Changesets + OIDC publish) stacks on this.

🤖 Generated with Claude Code

…he-2.0 (ENG-8646)

Move the self-contained host SDK from monad-inc/ui into this public repo:

- copy src/{index,protocol,lifecycle}.ts, README, USAGE, CHANGELOG, vitest config
- tsconfig extends ../../tsconfig.base.json
- ship Apache-2.0 LICENSE + NOTICE in the package (drop proprietary LICENSE.md)
- package.json: license UNLICENSED -> Apache-2.0; publishConfig access
  restricted -> public + provenance: true; files now ships LICENSE/NOTICE/USAGE.md
  (the stale LICENSE.md entry would have shipped a license-less tarball);
  repo/homepage/bugs -> monad-inc/embed; drop redundant prepack
- eslint: no-explicit-any -> warn (SDK treats Monad API responses as untyped JSON)
- root: add "type": "module"

Verified: build, typecheck, test, lint (warnings only), prettier --check, and
npm pack --dry-run (LICENSE + NOTICE + dist + d.ts present, no LICENSE.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…kage resolution

Single top-level "types" resolved index.d.ts (ESM-flavored) for the require
condition, tripping TS1479 for CJS + moduleResolution:node16 consumers. Split
into per-condition types (import -> index.d.ts, require -> index.d.cts, both
already emitted by tsup). Verified resolving under Bundler, Node16 CJS, Node16 ESM.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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