Skip to content

feat: add FastGPT debug session integration#465

Open
FinleyGe wants to merge 1 commit into
labring:dev/tcp-debugfrom
FinleyGe:codex/fastgpt-debug-integration
Open

feat: add FastGPT debug session integration#465
FinleyGe wants to merge 1 commit into
labring:dev/tcp-debugfrom
FinleyGe:codex/fastgpt-debug-integration

Conversation

@FinleyGe

Copy link
Copy Markdown
Collaborator

Summary

  • Add FastGPT-facing plugin debug session APIs for tmbId-scoped source, one-time ticket exchange, status, and revoke
  • Add Redis-backed debug session/ticket store and gateway bind metadata persistence
  • Add CLI --connect flow that uses scoped connection info instead of gateway global secrets
  • Update debug runtime/source handling to support debug:tmbId:{tmbId}:session:{debugSessionId}
  • Document the integration plan and CLI connect-link usage

Validation

  • pnpm exec tsc --noEmit --pretty false --incremental false
  • pnpm exec eslint apps/server/src/routes/debug-session.route.ts apps/server/main.ts apps/server/src/deps.ts apps/cli/src/commands/debug.ts apps/cli/src/debug/gateway.ts apps/cli/src/commands/debug.spec.ts apps/cli/src/debug/gateway.spec.ts apps/connection-gateway/src/routes.ts packages/domain/src/ports/connection-gateway/session-registry.port.ts packages/domain/src/ports/plugin/plugin-debug-session.port.ts packages/domain/src/ports/plugin/plugin-runtime-manager.port.ts packages/domain/src/value-objects/plugin-debug-session.vo.ts packages/domain/src/value-objects/plugin-debug-session.vo.test.ts packages/interface-adapter/src/contracts/dto/connection-gateway.dto.ts packages/interface-adapter/src/contracts/dto/plugin-debug-session.dto.ts packages/interface-adapter/src/contracts/route/plugin-debug-session.contract.ts packages/infrastructure/src/connection-gateway/service.ts packages/infrastructure/src/connection-gateway/service.test.ts packages/infrastructure/src/connection-gateway/session-registry.ts packages/infrastructure/src/env/index.ts packages/infrastructure/src/plugin/debug-session.repo.ts packages/infrastructure/src/plugin/debug-session.repo.test.ts packages/infrastructure/src/plugin/tool.impl.ts packages/infrastructure/src/plugin/plugin-runtime/drivers/connection-gateway/debug-runtime.driver.ts packages/infrastructure/src/plugin/plugin-runtime/drivers/connection-gateway/debug-runtime.driver.test.ts
  • pnpm exec vitest run packages/domain/src/value-objects/plugin-debug-session.vo.test.ts packages/infrastructure/src/plugin/debug-session.repo.test.ts packages/infrastructure/src/connection-gateway/service.test.ts packages/infrastructure/src/plugin/plugin-runtime/drivers/connection-gateway/debug-runtime.driver.test.ts --pool=forks
  • git diff --check
  • pnpm build:server
  • pnpm build:connection-gateway

Notes: Vitest still prints the existing missing .env.test / .env.test.local warnings. Build still prints the existing protobufjs direct eval warning.

@github-actions

Copy link
Copy Markdown

Build Successful - Preview Server image for this PR:

ghcr.io/labring/fastgpt-plugin-pr:server_35caf47b928ff181c8dd4bc5b643ea8eebd37a59

Time: 2026-06-15 12:54:08 (UTC+8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant