Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions plugins/stevenjj33/workflow-console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ anything, and that the `demo` executor calls no model. It also tells the Agent n
working directory on the user's behalf and not to approve a run without the user's say-so.

The Skill is what the Host loads when it registers this plugin; the console process itself never
reads it. It is also what makes the package importable through **"Import from a Git repository"**:
the Host accepts a Git import only when the package declares at least one Skill, MCP server, or
hook, and a Mini App on its own does not count.
reads it.

## Tested environment

Expand Down Expand Up @@ -136,7 +134,8 @@ Written — always under `context.dataDir`, never elsewhere:

- `workspace.json` — the working directory the embedded engine is bound to.
- `hidden-runs.json` — the list of runs hidden locally. Hiding is not deletion; the run record
stays in the engine's database and can be restored.
stays in the bundled engine's own database — `workflows.sqlite` under `context.dataDir/engine/` —
and can be restored.
- `engine/` — `address.json`, `endpoint.json`, `service.log`, and `workflows.sqlite`, written by the
embedded engine.

Expand Down Expand Up @@ -202,9 +201,12 @@ The tests use Node's built-in test runner and start an isolated console instance
directory, so they never touch a real project:

```bash
node --test "tests/*.test.mjs"
npm test
```

`npm test` runs `node --test "tests/*.test.mjs"` in this directory; the same command works
without npm.

`tests/workspace-resolution.test.mjs` covers working-directory resolution: the Host's temporary
deployment directory and other implausible paths are rejected, the home directory is never used as
a fallback, and the engine does not start until a project directory is known.
Expand Down
9 changes: 5 additions & 4 deletions plugins/stevenjj33/workflow-console/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ Apache-2.0)。
`demo` 执行器不调模型。也明确要求 Agent 不要替用户猜工作目录,也不要在用户没点头时替他批准运行。

这个 Skill 是宿主注册本插件时加载的,控制台进程自己不会读它。
它同时也是本包**能通过「从 Git 仓库导入」装上**的原因:宿主只在包里声明了 Skill、MCP Server 或
Hook 时才接受 Git 导入,光有一个 Mini App 不算。

## 测试环境

Expand Down Expand Up @@ -107,7 +105,8 @@ Hook 时才接受 Git 导入,光有一个 Mini App 不算。
一律写在 `context.dataDir` 下,绝不写到别处:

- `workspace.json` —— 内置引擎绑定的工作目录;
- `hidden-runs.json` —— 本地隐藏的运行列表。隐藏不是删除,记录仍在引擎数据库里,可恢复;
- `hidden-runs.json` —— 本地隐藏的运行列表。隐藏不是删除,记录仍在**内置引擎自己的数据库**里
(`context.dataDir/engine/` 下的 `workflows.sqlite`),可恢复;
- `engine/` —— `address.json`、`endpoint.json`、`service.log`、`workflows.sqlite`,由内置引擎写入。

### 网络
Expand Down Expand Up @@ -167,9 +166,11 @@ icon.png 插件图标
测试用 Node 自带的测试运行器,在沙箱主目录里起一个隔离的控制台实例,不会碰任何真实项目:

```bash
node --test "tests/*.test.mjs"
npm test
```

`npm test` 就是在本目录跑 `node --test "tests/*.test.mjs"`,不用 npm 直接敲那条命令也一样。

`tests/workspace-resolution.test.mjs` 覆盖工作目录解析:宿主那个临时投放目录和其它不可信路径会被拒掉,
用户主目录绝不会被当成兜底,没选定项目目录之前引擎不会启动。
`tests/engine-isolation.test.mjs` 造一份别的插件的服务登记簿——指向一个会计账的本地服务——
Expand Down
3 changes: 3 additions & 0 deletions plugins/stevenjj33/workflow-console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"mcode": {
"schemaVersion": 2,
"miniApp": "./miniapp/miniapp.json"
},
"scripts": {
"test": "node --test \"tests/*.test.mjs\""
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ description: "运行、查看与管控 MiniMax Code 动态工作流(多 Agent
- 引擎只监听 `127.0.0.1`,控制台只代理到它:不连外网,也不连别的本地服务。
- 状态文件全在 `context.dataDir`:`workspace.json`、`hidden-runs.json`、`engine/`。
- 引擎在项目目录里工作,真实执行会读写那个目录。
- 隐藏某个运行只是本地隐藏,不是删除;运行记录还在引擎数据库里,可以恢复。
- 隐藏某个运行只是本地隐藏,不是删除;运行记录还在内置引擎自己的数据库里
(`context.dataDir/engine/` 下的 `workflows.sqlite`),可以恢复。

## 不要做的事

Expand Down
Loading