Skip to content

feat: align TypeScript SDK with AgentScope Python - #48

Closed
rayrayraykk wants to merge 59 commits into
agentscope-ai:mainfrom
rayrayraykk:feat/parity-foundation
Closed

rayrayraykk wants to merge 59 commits into
agentscope-ai:mainfrom
rayrayraykk:feat/parity-foundation

Conversation

@rayrayraykk

@rayrayraykk rayrayraykk commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

PR Title Format

feat: align TypeScript SDK with AgentScope Python

The title follows the Conventional Commits format and starts with a lowercase description.

Linked Issues

  • N/A — no existing issue covers this repository-wide Python parity migration.

Description

Background

The TypeScript SDK previously implemented only part of the public behavior available in AgentScope Python. Core contracts, providers, middleware, workspaces, RAG, service capabilities, channel integrations, HTTP/AG-UI support, and Desktop runtime behavior had no single auditable parity baseline.

Purpose

Align the TypeScript monorepo with agentscope-ai/agentscope@61cdeae4ffe63182f3343229aa6fbd868e30b0c5 while preserving TypeScript-native architecture and existing import compatibility.

Changes

  • Added Python-compatible Core contracts for messages, events, state, permissions, tools, models, agents, middleware, workspaces, RAG, embedding, TTS, pipelines, and console behavior.
  • Added the @agentscope-ai/agentscope-service workspace package for storage, message bus, access control, runtime managers, teams, scheduling, RAG, hubs, channels, HTTP, SSE, and AG-UI.
  • Migrated Desktop to a shared Core/Service composition root and removed duplicated Agent, scheduler, MCP, and skill implementations.
  • Added explicit agent-driven context compression and Python-compatible tool-result splitting.
  • Added replica-safe channel credential binding, Feishu/Lark device flow, HTTP endpoints, and channel connection-state handling.
  • Added a schema-v2 parity manifest pinned by Git SHA and file digests.
  • Added package-installation smoke tests, cross-platform native-path coverage, and Windows/Linux/macOS CI.

Parity inventory

  • 432 Python source files verified.
  • 104 contract-data files verified.
  • 162 Python test files mapped and verified.
  • Every source and contract-data mapping has TypeScript test coverage.
  • Every Python test mapping resolves to an existing TypeScript test, golden fixture, or explicit adapter contract.

How to test

npx --yes pnpm@9.15.9 install --frozen-lockfile
npx --yes pnpm@9.15.9 format
npx --yes pnpm@9.15.9 run test:parity
node scripts/parity/check-manifest.mjs --python-root ../agentscope-python
npx --yes pnpm@9.15.9 run build:agentscope
npx --yes pnpm@9.15.9 run build:service
npx --yes pnpm@9.15.9 run build:desktop
npx --yes pnpm@9.15.9 run test:package
npx --yes pnpm@9.15.9 run test:agentscope
npx --yes pnpm@9.15.9 run test:service
npx --yes pnpm@9.15.9 --filter @agentscope-ai/desktop test

Python baseline verification:

PYTHONPATH=../agentscope-python/src conda run -n agentscope python -m pytest -q

Verification

  • Python: 2,128 passed, 147 skipped, 384 subtests passed.
  • Core: 702 passed, 13 skipped.
  • Service: 398 passed, 5 skipped.
  • Desktop: 8 passed.
  • Core, Service, and Desktop type-checks and builds passed.
  • Package smoke passed for 38 ESM/CJS exports and 1 CLI.
  • Frozen-lockfile installation, formatting, i18n, parity tooling, manifest checkout validation, and PR title validation passed.
  • Ubuntu, macOS, and Windows jobs passed in CI run 33562144270.

External-provider live tests remain credential-gated; deterministic provider and adapter contracts run in the regular test suite.

Documentation

Updated:

  • README.md
  • docs/friday/architecture.mdx
  • docs/friday/development.mdx
  • docs/friday/installation.mdx
  • docs/friday/service-runtime-migration.mdx
  • docs/getting-started/installation.mdx
  • docs/service/runtime.mdx
  • docs/mint.json
  • parity/README.md

Checklist

Please check the following items before the code is ready to be reviewed.

  • This PR is linked to a related issue (N/A: no related issue exists; see above)
  • Code has been formatted with pnpm format
  • Related documentation has been updated (e.g. links, examples, etc.)
  • All tests are passing (workspace test commands are listed above)
  • Code is ready for review

@rayrayraykk rayrayraykk changed the title chore: establish Python parity baseline feat: align TypeScript SDK with AgentScope Python Sep 1, 2026
@rayrayraykk
rayrayraykk marked this pull request as ready for review September 1, 2026 21:53
@rayrayraykk

Copy link
Copy Markdown
Member Author

Closing this aggregate PR in response to the maintainer feedback that the change is too large to review effectively.

The complete implementation is preserved unchanged on rayrayraykk:feat/parity-foundation at ad8f0b57d225a4e2570e6011ac2e21dc58aa7ba8; it will remain available as reference material and will not be force-pushed.

The work is now tracked in #49 and will be resubmitted as small, dependency-ordered PRs. Each PR will contain one capability, its tests and documentation, exact verification commands, and explicit review guidance. Please review only the modular PRs rather than this snapshot.

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