From 97fa89796c3543a31ae35771bbbe37efdc4bd2ca Mon Sep 17 00:00:00 2001 From: YANG QIA <2013xile@gmail.com> Date: Sun, 11 Oct 2026 08:34:52 +0800 Subject: [PATCH] fix(preview): remove discontinued framework dependencies (#10673) --- .changeset/studio-drop-workflow-guidance.md | 5 +++++ packages/apps/studio/AGENTS.md | 19 ++++++++++--------- .../studio/tests/logic/app-server.test.ts | 6 ------ 3 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 .changeset/studio-drop-workflow-guidance.md diff --git a/.changeset/studio-drop-workflow-guidance.md b/.changeset/studio-drop-workflow-guidance.md new file mode 100644 index 00000000000..a542956e7fb --- /dev/null +++ b/.changeset/studio-drop-workflow-guidance.md @@ -0,0 +1,5 @@ +--- +'@nocobase/studio': patch +--- + +Stop pointing Studio's agent guidance at the discontinued workflow plugin, and record that the Hub CLI and DSL Workflow plugin are no longer part of Studio. diff --git a/packages/apps/studio/AGENTS.md b/packages/apps/studio/AGENTS.md index 53e1d2f52f8..8cb11730fc1 100644 --- a/packages/apps/studio/AGENTS.md +++ b/packages/apps/studio/AGENTS.md @@ -6,6 +6,8 @@ Do not create a plugin to add a feature. Plugins are separately published packag ## This repository +Studio does not use the discontinued Hub CLI or DSL Workflow plugin. Do not add their dependencies or default configuration back when reconciling with an older template. Studio's project status workflows belong to the projects and agents services, independently of the removed DSL plugin. + NocoBase Studio lives in the public `nocobase/nocobase` repository at `packages/apps/studio` and is published to npm as `@nocobase/studio`. The repository root's `AGENTS.md` applies here as well: branches, commits, pull requests, changesets, migrations and dependency declarations follow it. What this file adds is how to work on Studio itself. - Studio depends on the framework packages and the plugins in this repository through `workspace:` ranges. A framework or plugin change Studio needs goes in the same pull request as the Studio change that needs it. @@ -284,15 +286,14 @@ Route overrides must stay lazy, declare a `componentEntry`, and load a default-e **You are not starting from scratch.** This application ships with NocoBase packages that already solve whole categories of requirement, and packages may publish a Skill explaining how to use them. `pnpm nocobase skills sync` copies Skills from direct `@nocobase/*` dependencies and registered plugins into `.agents/skills/`. Before implementing a feature, check whether an installed and registered plugin already covers it: -| The requirement sounds like | Read the Skill for | -| ------------------------------------------------------------------------------------------------- | ------------------------------------- | -| Approvals, multi-step processes, "when X happens then Y", business rules that outlive one request | `@nocobase/app-plugin-workflow` | -| Email, IM, or in-app messages; notifying someone that something happened | `@nocobase/app-plugin-notification` | -| Roles, permissions, "user A may only see their own records", field-level or row-level access | `@nocobase/app-plugin-authorization` | -| Sign-in, registration, sessions, password reset | `@nocobase/app-plugin-authentication` | -| User listing, account state, password reset, and application-owned role assignment | `@nocobase/app-plugin-users` | -| File upload and metadata through Repository | `@nocobase/app-plugin-file` | -| Translated text and language switching | `@nocobase/app-plugin-i18n` | +| The requirement sounds like | Read the Skill for | +| -------------------------------------------------------------------------------------------- | ------------------------------------- | +| Email, IM, or in-app messages; notifying someone that something happened | `@nocobase/app-plugin-notification` | +| Roles, permissions, "user A may only see their own records", field-level or row-level access | `@nocobase/app-plugin-authorization` | +| Sign-in, registration, sessions, password reset | `@nocobase/app-plugin-authentication` | +| User listing, account state, password reset, and application-owned role assignment | `@nocobase/app-plugin-users` | +| File upload and metadata through Repository | `@nocobase/app-plugin-file` | +| Translated text and language switching | `@nocobase/app-plugin-i18n` | Run `pnpm nocobase skills sync` if `.agents/skills/` is missing or looks out of date, then read the Skill for the plugin you need. It documents that plugin's public entries, the ownership boundary, and how to verify the result — which is faster and more correct than inferring an API from its source. diff --git a/packages/apps/studio/tests/logic/app-server.test.ts b/packages/apps/studio/tests/logic/app-server.test.ts index a028189917a..4bd05e76cce 100644 --- a/packages/apps/studio/tests/logic/app-server.test.ts +++ b/packages/apps/studio/tests/logic/app-server.test.ts @@ -1265,12 +1265,6 @@ function createTestApp(options: CreateTestAppOptions = {}): TestApp { logging: createSilentLoggingConfig(), queue: options.queue ?? createTestQueueConfig(), session: createNullSessionConfig(), - workflow: { - sourceRoot: path.resolve(process.cwd(), 'workflows'), - distRoot: path.resolve(process.cwd(), 'dist/workflows'), - artifactDisk: 'local', - production: false, - }, snowflake: { workerId: 0, },