代码提交

This commit is contained in:
董宏凯 committed 2026-08-30 01:25:20 +08:00
1 parent 4ac7bc21cd
commit 17cf849361
110 files changed
+17007 -518

No files matched your search

@@ -168,6 +168,21 @@ FastAPI application providing REST endpoints for frontend integration:
The separately deployed TaskCOP Vue app uses `POST /api/v1/auth/login/username` directly (its `username`, `userId`, or `yUserId` URL parameter identifies the user), so this compatibility flow does not depend on the retired Consumer login service. It calls the Gateway address configured as `b1ConsumerUrl` directly; it does not use a Vite `/api` reverse proxy. An empty TaskCOP store remains empty; task data is introduced through normal creation or the JSON import API. The Gateway CORS middleware always merges local Vite origins `http://localhost|127.0.0.1:{5173,5174,3000,8080}`, including when `GATEWAY_CORS_ORIGINS` is set for another frontend. This keeps a Vite server that falls back from 5173 to 5174 (or the reverse) working after a backend restart. For a deployment, set `GATEWAY_CORS_ORIGINS` to the exact additional frontend origins that are allowed to call the Gateway.
### Workflow Studio interface resources
The Workflow Studio data-source API also registers reusable HTTP interface resources. Create them through
POST /api/workflows/data-sources with kind set to http; provide a non-secret baseUrl, an allowedMethods
allowlist, and optional request headers. The service encrypts the headers immediately and never returns
them through list, detail, resource-catalog, run-event, or canvas APIs. The canvas resource catalog
exposes only the name, description, HTTP address, and allowed methods. HTTP execution continues to
enforce the workflow target security policy, including the default SSRF restrictions.
The same catalog's agent and skill entries are display projections, not a second ownership store:
`/api/workflows/resources/agents` returns `agentId`, cached available `skills`, and `createdBy`; the
skills endpoint returns `skillId`, direct-call capability, and `createdBy`. Creator names are resolved
from the immutable owner id at read time (falling back to the id if an account was removed), while
built-in resources explicitly return `系统内置`.
### Deep Research modes
Deep Research is a separate Gateway feature rather than part of AI Writing. Its