Skip to content

feat(core): add testing and media helpers - #183

Merged
sjungwon03 merged 1 commit into
devfrom
feat/182-testing-media
Aug 27, 2026
Merged

sjungwon03 merged 1 commit into
devfrom
feat/182-testing-media

Conversation

@sjungwon03

Copy link
Copy Markdown
Member

Closes #182

Summary

  • add the testing subpath with an official SDK v2 in-memory client/server session and deterministic cleanup
  • add immutable byte-only McpImage and McpAudio helpers with MIME validation
  • normalize direct helpers and mixed helper/string lists to standard MCP content
  • verify the new subpath and media exports in packed ESM and CommonJS consumers

Test-first evidence

  • Media red: McpImage and McpAudio were not constructors.
  • Testing red: src/testing.js did not exist.
  • Green: focused suites cover conversion, validation, real protocol calls, idempotent close, and failed connection cleanup.

Verification

  • clean npm ci
  • npm run lint
  • npm run typecheck
  • npm test (33 files, 91 tests)
  • npm run build
  • npm run verify:package
  • npm run verify:publish
  • npm run audit:prod (0 vulnerabilities)
  • git diff --check

@github-actions
github-actions Bot requested a review from sjungwon03-ai August 27, 2026 06:55

@sjungwon03-ai sjungwon03-ai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The exact-head implementation and public export/release boundaries are coherent. Required CI passed, including packed ESM/CJS consumer and production-audit coverage.

@sjungwon03
sjungwon03 merged commit 554d35f into dev Aug 27, 2026
3 checks passed
@sjungwon03
sjungwon03 deleted the feat/182-testing-media branch August 27, 2026 07:12
sjungwon03 added a commit that referenced this pull request Aug 28, 2026
* fix(security): esbuild 취약 의존성 해소

* ci(security): Dependabot 감시 정책 복구

* fix(ci): make label cleanup idempotent (#163)

* chore(deps-dev): bump @langchain/langgraph from 1.4.8 to 1.4.9

Bumps [@langchain/langgraph](https://github.com/langchain-ai/langgraphjs/tree/HEAD/libs/langgraph-core) from 1.4.8 to 1.4.9.
- [Release notes](https://github.com/langchain-ai/langgraphjs/releases)
- [Changelog](https://github.com/langchain-ai/langgraphjs/blob/main/libs/langgraph-core/CHANGELOG.md)
- [Commits](https://github.com/langchain-ai/langgraphjs/commits/@langchain/langgraph@1.4.9/libs/langgraph-core)

---
updated-dependencies:
- dependency-name: "@langchain/langgraph"
  dependency-version: 1.4.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* feat(core): expose modern MCP component metadata (#171)

* feat(core): expose modern MCP component metadata

* docs(config): mark 0.3.2 as published

* docs(api): separate published and dev contracts

* feat(core): normalize object tool results (#173)

* feat(core): expose server identity metadata (#175)

* feat(runtime): migrate to MCP SDK v2 (#177)

* feat(runtime): migrate to MCP SDK v2

* docs(runtime): align product scope with SDK v2

* feat(core): add dynamic prompts and resources (#179)

* chore(deps-dev): bump @types/node from 22.20.1 to 26.2.0 (#169)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.20.1 to 26.2.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.2.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @biomejs/biome from 2.5.4 to 2.5.10 (#166)

Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 2.5.4 to 2.5.10.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/@biomejs/biome@2.5.10/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.5.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(core): add invocation context (#181)

* chore(deps): bump @hono/node-server from 2.0.12 to 2.1.1 (#167)

* chore(deps): bump @hono/node-server from 2.0.12 to 2.1.1

Bumps [@hono/node-server](https://github.com/honojs/node-server) from 2.0.12 to 2.1.1.
- [Release notes](https://github.com/honojs/node-server/releases)
- [Commits](honojs/node-server@v2.0.12...v2.1.1)

---
updated-dependencies:
- dependency-name: "@hono/node-server"
  dependency-version: 2.1.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* test(security): update hono pin expectation

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sjungwon03 <sjungwon03@gmail.com>

* chore(deps-dev): bump @langchain/core from 1.2.3 to 1.2.9 (#168)

* chore(deps-dev): bump @langchain/core from 1.2.3 to 1.2.9

Bumps [@langchain/core](https://github.com/langchain-ai/langchainjs) from 1.2.3 to 1.2.9.
- [Release notes](https://github.com/langchain-ai/langchainjs/releases)
- [Commits](https://github.com/langchain-ai/langchainjs/compare/@langchain/core@1.2.3...@langchain/core@1.2.9)

---
updated-dependencies:
- dependency-name: "@langchain/core"
  dependency-version: 1.2.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* test(example): align langchain core version

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sjungwon03 <sjungwon03@gmail.com>

* feat(core): add testing and media helpers (#183)

* feat(core): add component visibility (#186)

* chore(tooling): align Biome schema version (#189)

* chore(release): prepare 0.4.0 (#191)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: jungwon <jungwon@jungwonui-Macmini.local>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.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.

feat: add testing and media helpers

2 participants