fix(sdk): sync version metadata and task status exports
DI
4mo ago+6+6+0123456789-2-2-0123456789
Description
This PR fixes two SDK public-contract drifts:
src/version.tsnow matches the package version (0.0.1-alpha.12) so generated SDK package metadata/user-agent headers do not report the stale0.0.1-alpha.7value.- the package root now exports
TaskStatuses,TaskStatus, andTaskStatusListResponse, matching the already-exposedclient.tasks.statusesresource.
While validating the SDK build, TypeScript 6 also required an explicit rootDir for declaration output. This PR adds the narrow SDK rootDir: "src" setting so the package build can emit declarations successfully.
Related Issues
No existing issue. This was discovered during repository analysis.
Type of Change
- Bug fix
- New feature
- Documentation
- Refactor
- Other (please describe):
Testing
Commands run:
bun -e 'import sdk, { Superset, TaskStatuses } from "./packages/sdk/dist/index.js"; import pkg from "./packages/sdk/dist/package.json" with { type: "json" }; console.log(typeof sdk, typeof Superset, TaskStatuses.name, pkg.version);'— passed (function function TaskStatuses 0.0.1-alpha.12)bun --cwd packages/sdk typecheck— passedbun --cwd packages/sdk build— passedgit diff --check— passed
Not run:
- Biome check — the repo Biome config ignores the generated SDK source files, and
biome check packages/sdk/src/index.ts packages/sdk/src/version.tsreports that no files are processed.
Screenshots (if applicable)
N/A.
Additional Notes
Risk level: low. The export additions expose already-existing SDK resource/types from the package root; runtime behavior is otherwise unchanged except for corrected version metadata.
Summary by cubic
Syncs SDK version metadata and exposes task status resource/types from the package root to match the public API. Adds rootDir in the SDK tsconfig so TypeScript 6 can emit declarations.
- Bug Fixes
- Update
src/version.tsto0.0.1-alpha.12to matchpackage.json. - Export
TaskStatuses,TaskStatus, andTaskStatusListResponsefrom the package root to align withclient.tasks.statuses. - Set
compilerOptions.rootDirtosrcintsconfig.jsonfor successful TS 6 declaration builds.
- Update
Summary by CodeRabbit
- New Features
- Added direct SDK exports for task status resources, making them easier to import from the package’s main entry point.
- Chores
- Updated the SDK version to the latest alpha release.
- Improved TypeScript project configuration for more consistent package builds.