Skip to content

feat(sdk/js): add async PoolManager and PoolsAdapter#360

Open
wangdengshan wants to merge 1 commit intoalibaba:mainfrom
wangdengshan:feat/sdk-js-pool-manager-async
Open

feat(sdk/js): add async PoolManager and PoolsAdapter#360
wangdengshan wants to merge 1 commit intoalibaba:mainfrom
wangdengshan:feat/sdk-js-pool-manager-async

Conversation

@wangdengshan
Copy link
Contributor

Summary

  • Add async PoolManager and PoolsAdapter to the JavaScript/TypeScript SDK for managing pre-warmed sandbox pools
  • Add TypeScript domain models: PoolCapacitySpec, PoolStatus, PoolInfo, PoolListResponse, CreatePoolRequest, UpdatePoolRequest
  • Add Pools service interface (async)
  • Add PoolComponents schema types and poolPaths route definitions to lifecycle.ts (typed against server /pools endpoints)
  • Add PoolsAdapter using openapi-fetch typed against poolPaths
  • Add PoolManager with static create() factory and async CRUD methods
  • Extend LifecycleStack interface and DefaultAdapterFactory to include pools service
  • Export all Pool types and PoolManager from index.ts

Testing

  • Unit tests
  • 59 tests across 3 test files (model shapes, adapter HTTP routing/mapping, manager delegation/lifecycle)

Breaking Changes

  • None

Checklist

  • Linked Issue or clearly described motivation
  • Added/updated docs (if needed)
  • Added/updated tests (if needed)
  • Security impact considered
  • Backward compatibility considered

- Add TypeScript domain models: PoolCapacitySpec, PoolStatus, PoolInfo,
  PoolListResponse, CreatePoolRequest, UpdatePoolRequest
- Add Pools service interface (async)
- Add PoolComponents schema types and poolPaths route definitions
  to lifecycle.ts (typed against server /pools endpoints)
- Add PoolsAdapter using openapi-fetch typed against poolPaths
- Add PoolManager with static create() factory and async CRUD methods
- Extend LifecycleStack interface and DefaultAdapterFactory to include
  pools service
- Export all Pool types and PoolManager from index.ts
- Add vitest config and 59 tests across 3 test files (model shapes,
  adapter HTTP routing/mapping, manager delegation/lifecycle)
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