Skip to content

docs(sdk): add TypeScript guides and generated API reference - #1404

Merged
samuv merged 4 commits into
mainfrom
t3code/document-sdk-building-guide
Sep 11, 2026
Merged

samuv merged 4 commits into
mainfrom
t3code/document-sdk-building-guide

Conversation

@samuv

@samuv samuv commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a task-oriented TypeScript SDK section under Building while preserving the existing quickstart URL
  • generate deterministic core and Node.js/Bun SDK reference pages from the API Extractor document model and public TSDoc
  • make root documentation tasks and CI regenerate or verify the committed SDK reference, and compile the examples used by the guides

Development stage

  • Plan / Interface — Bounded/Architectural behavioral and exact-interface contract; no implementation
  • Implementation — based on an approved, merged Plan / Interface PR
  • Combined — compact one-task Bounded/Architectural exception; no separate plan PR,
    and the in-PR plan declares **Expected tasks:** 1, a non-placeholder
    **Combined rationale:**, and no runtime/public/operator/persistence/trust-boundary
    interface change (None — rationale; workflow-only meta-changes may review process
    docs/skills here)
  • Spike / Routine — acceptance-plan spine exempt; Spike evidence does not ship as-is

Contract linkage

Interface conformance

Issue relationship

Closes #1391
Closes #1392
Relates to #761

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other (describe):

Test plan

Baseline checks

  • Acceptance-plan checker
  • Linting (task lint)
  • Offline test suite (task test)
  • Offline demo (go run ./cmd/mecademo)
  • Markdown changed: docs generation/link checks (task docs)
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md
  • Landed plan: strict acceptance trace (task ac-trace-strict)
  • Final implementation review: /panel-review

Additional checks:

  • task sdk:lint
  • task sdk:typecheck
  • task sdk:test (42 files, 210 tests)
  • task sdk:examples:typecheck
  • task sdk:api:check
  • task sdk:docs:check

Changes

File Change
user-docs/building/typescript-sdk/ Add focused connection, local-daemon, session/run, permission/plan, durable-activity, and callback-tool guides.
user-docs/reference/typescript-sdk-api/ Add the entry-point overview and generated core and Node.js/Bun reference.
sdk/typescript/scripts/generate-api-docs.mjs Generate Docusaurus-compatible reference pages from API Extractor models and reject missing required summaries.
sdk/typescript/src/ Add and refine public TSDoc used by the generated reference.
Taskfile.yml, sdk/typescript/Taskfile.yml, .github/workflows/ci.yml Integrate regeneration and non-mutating freshness checks.

User-facing change

TypeScript developers now have a focused first-run tutorial, task-oriented SDK workflows under Building, and automatically generated method and type reference under Reference.

Special notes for reviewers

  • The Node.js/Bun page contains only declarations added by or changed in the /node entry point, avoiding duplicate canonical pages for the shared core API.
  • Callback tools currently require the noop authority evaluator because per-session callback names are absent from the root capability set. The guide limits this workflow to controlled local environments.

@samuv samuv self-assigned this Sep 11, 2026
@samuv
samuv merged commit 868d38f into main Sep 11, 2026
34 checks passed
@samuv
samuv deleted the t3code/document-sdk-building-guide branch September 11, 2026 14:02
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 11, 2026
2 tasks
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.

Autogenerate TypeScript SDK method reference Document TypeScript SDK workflows under Building

1 participant