claude-flow 3.72.2 → 3.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/proven-config.json +1 -1
- package/.claude-plugin/marketplace.json +2 -2
- package/README.md +29 -21
- package/README.zh-CN.md +69 -4
- package/node_modules/@claude-flow/plugin-agent-federation/package.json +5 -5
- package/node_modules/@claude-flow/security/dist/input-validator.d.ts +138 -106
- package/node_modules/@claude-flow/security/dist/input-validator.d.ts.map +1 -1
- package/node_modules/@claude-flow/security/dist/input-validator.js +23 -26
- package/node_modules/@claude-flow/security/dist/input-validator.js.map +1 -1
- package/node_modules/@claude-flow/security/package.json +2 -2
- package/package.json +4 -4
- package/v3/@claude-flow/cli/README.md +29 -21
- package/v3/@claude-flow/cli/catalog-manifest.json +2 -2
- package/v3/@claude-flow/cli/dist/src/commands/agent.js +2 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.js +5 -3
- package/v3/@claude-flow/cli/dist/src/commands/funnel.d.ts +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/funnel.js +37 -2
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js +16 -2
- package/v3/@claude-flow/cli/dist/src/commands/init.js +70 -16
- package/v3/@claude-flow/cli/dist/src/commands/mcp.js +15 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.js +2 -0
- package/v3/@claude-flow/cli/dist/src/funnel/activation.d.ts +30 -0
- package/v3/@claude-flow/cli/dist/src/funnel/activation.js +69 -0
- package/v3/@claude-flow/cli/dist/src/funnel/events.js +4 -1
- package/v3/@claude-flow/cli/dist/src/funnel/index.d.ts +2 -1
- package/v3/@claude-flow/cli/dist/src/funnel/index.js +2 -1
- package/v3/@claude-flow/cli/dist/src/funnel/message-transport.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/funnel/message-transport.js +23 -1
- package/v3/@claude-flow/cli/dist/src/funnel/types.d.ts +2 -2
- package/v3/@claude-flow/cli/dist/src/init/first-win.d.ts +24 -0
- package/v3/@claude-flow/cli/dist/src/init/first-win.js +97 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js +2 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js +17 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/metaharness-tools.js +19 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.js +2 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +2 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.js +1 -1
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +2 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js +1 -1
- package/v3/@claude-flow/cli/dist/src/metaharness/darwin-lib.d.ts +68 -0
- package/v3/@claude-flow/cli/dist/src/metaharness/darwin-lib.js +150 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.d.ts +1 -1
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.js +22 -21
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.d.ts +1 -1
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.js +13 -14
- package/v3/@claude-flow/cli/package.json +10 -10
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"url": "https://github.com/ruvnet/agentic-flow.git",
|
|
81
81
|
"path": "plugins/agentic-flow",
|
|
82
82
|
"ref": "main",
|
|
83
|
-
"sha": "
|
|
83
|
+
"sha": "d19737b8574c956d17d695f09113e8b445d965b0"
|
|
84
84
|
},
|
|
85
|
-
"description": "agentic-flow (external: maintained in ruvnet/agentic-flow, pinned to commit
|
|
85
|
+
"description": "agentic-flow (external: maintained in ruvnet/agentic-flow, pinned to commit d19737b, plugin 3.4.0): the agentic-flow MCP server pinned to agentic-flow@3.4.0 (ReasoningBank learning, ecosystem tools prompt_injection_scan, swarm_partition_tasks, sublinear_solve, sublinear_pagerank and ecosystem_status, multi-provider routing, autopilot learning; readonly profile by default, no tool pre-approved), 2 agents, 4 skills, /agentic-flow-status, and a mod guard on agentic_flow_agent with /agentic-flow-guard"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"name": "ruflo-docs",
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<!-- Try Ruflo — the 3 badges first-time visitors actually act on -->
|
|
8
8
|
[](https://www.npmjs.com/package/ruflo)
|
|
9
9
|
[](https://opensource.org/licenses/MIT)
|
|
10
|
-
[](https://github.com/ruvnet/ruflo)
|
|
11
11
|
[](https://x.com/rUv)
|
|
12
12
|
|
|
13
13
|
<p align="center">
|
|
@@ -23,42 +23,49 @@
|
|
|
23
23
|
|
|
24
24
|
<a id="start-here"></a>
|
|
25
25
|
|
|
26
|
-
## <img src="docs/assets/readme/icons/terminal.svg" width="32" height="32" alt=""> Get started
|
|
26
|
+
## <img src="docs/assets/readme/icons/terminal.svg" width="32" height="32" alt=""> Get started in one command
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Run this in your project folder:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npx ruflo@latest init
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Then open Claude Code in the same folder and give it a real task, for example:
|
|
29
35
|
|
|
30
36
|
```text
|
|
31
|
-
|
|
32
|
-
/plugin install ruflo-core@ruflo
|
|
33
|
-
/plugin install ruflo-console@ruflo
|
|
34
|
-
/plugin install ruflo-mods@ruflo
|
|
35
|
-
/reload-plugins
|
|
36
|
-
/ruflo
|
|
37
|
+
Use a ruflo swarm to review this repo: find the riskiest module, write tests for it, and summarise what you changed.
|
|
37
38
|
```
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
`init` adds ruflo's agents, hooks, memory and MCP server to the project, and Claude Code picks them up on its next start. Codex and other MCP clients work too: point them at `npx -y ruflo@latest mcp start`.
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
<p align="center"><img src="docs/assets/ruflo-console-tour.gif" width="720" alt="Looping recording of the ruflo console: overview, swarm view and missions in a sample project"></p>
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
[First useful task, step by step](docs/ruflo-explained.md) · [User guide](docs/USERGUIDE.md) · [Compare install paths](#quick-start)
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
```
|
|
46
|
+
<details>
|
|
47
|
+
<summary><b>Other ways to install</b> (Claude Code plugins only, MCP-only clients, terminal UI)</summary>
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
**Claude Code plugins only.** This route installs core tools, the visual console and runtime mods, with no files added to your project. It needs Claude Code **2.1.287 or later**. Run inside Claude Code:
|
|
50
50
|
|
|
51
|
-
```
|
|
52
|
-
|
|
51
|
+
```text
|
|
52
|
+
/plugin marketplace add ruvnet/ruflo
|
|
53
|
+
/plugin install ruflo-core@ruflo
|
|
54
|
+
/plugin install ruflo-console@ruflo
|
|
55
|
+
/plugin install ruflo-mods@ruflo
|
|
56
|
+
/reload-plugins
|
|
57
|
+
/ruflo
|
|
53
58
|
```
|
|
54
59
|
|
|
55
|
-
|
|
60
|
+
From a terminal, on Claude Code 2.1.292 or later: `claude plugin install ruflo-core@ruflo --marketplace ruvnet/ruflo`. Mods run with your account's permissions, so review their code before installing.
|
|
61
|
+
|
|
62
|
+
**Codex or another MCP client, without project setup.** Configure the **command** `npx` with the **arguments** `["-y", "ruflo@latest", "mcp", "start"]`. To set up a project interactively, run `npx ruflo@latest init wizard`.
|
|
56
63
|
|
|
57
|
-
|
|
64
|
+
**Plain terminal.** The console also runs on its own, without Claude Code: `npx ruflo tui`. Add `--plain` to print one frame for scripts. See the [terminal UI guide](docs/USERGUIDE.md#terminal-ui-optional).
|
|
58
65
|
|
|
59
66
|
<p align="center"><img src="docs/assets/ruflo-tui-compact.svg" width="640" alt="Looping recording of the optional ruflo terminal UI with its pictures: Overview in the Classic BBS look, the Orbital look with its moving globe, and the Swarm graph, in a sample project"></p>
|
|
60
67
|
|
|
61
|
-
|
|
68
|
+
</details>
|
|
62
69
|
|
|
63
70
|
<div align="center">
|
|
64
71
|
|
|
@@ -484,6 +491,7 @@ Four docs for four audiences:
|
|
|
484
491
|
|-----|-----------------|
|
|
485
492
|
| **[Status](docs/STATUS.md)** | See what currently works — capability counts, test baselines, recent fixes, what's next. The *is-it-ready* doc. |
|
|
486
493
|
| **[User Guide](docs/USERGUIDE.md)** | Daily reference — every command, every config flag, every plugin. The *how-do-I* doc. |
|
|
494
|
+
| **[Compare frameworks](docs/compare.md)** | Deciding between Ruflo, Claude Code built-in agents, CrewAI, LangGraph, or AutoGen. The *which-one-for-me* doc. |
|
|
487
495
|
| **[MetaHarness Guide](docs/metaharness-user-guide.md)** | How to grade your agent setup, scan tool configs for security, detect changes between runs, and eject a project into a standalone agent toolkit. The *audit-my-setup* doc. |
|
|
488
496
|
| **[Benchmarks](https://gist.github.com/ruvnet/298f8c668c8859b369f91734a0e9cbbe)** | v3.8.0 SOTA matrix vs LangGraph / AutoGen / CrewAI on darwin-arm64 + linux-x64. ruflo wins cold start, single turn, RSS by 1.3×–1953×. The *is-it-fast* doc. |
|
|
489
497
|
| **[Verification](verification.md)** | Cryptographically prove your installed bytes match the signed witness — `ruflo verify`. The *trust-but-verify* doc. |
|
package/README.zh-CN.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<a href="https://cognitum.one/agentic-engineering"><img src="ruflo/assets/ruflo-neon-flicker.gif" alt="Ruflo animated neon sign" width="100%"></a>
|
|
4
|
+
|
|
5
|
+
**面向 Claude Code 与 Codex 的智能体元基座(meta-harness)。**
|
|
4
6
|
|
|
5
7
|
<!-- Try Ruflo — the 3 badges first-time visitors actually act on -->
|
|
6
8
|
[](https://www.npmjs.com/package/ruflo)
|
|
7
9
|
[](https://opensource.org/licenses/MIT)
|
|
8
|
-
[](https://github.com/ruvnet/ruflo)
|
|
9
11
|
|
|
10
12
|
<!-- Ecosystem strip (collapsed visually with flat-square) -->
|
|
11
13
|
[](https://github.com/ruvnet/ruvector)
|
|
@@ -14,12 +16,75 @@
|
|
|
14
16
|
[](https://github.com/ruvnet/claude-flow)
|
|
15
17
|
[](https://www.npmjs.com/package/@claude-flow/codex)
|
|
16
18
|
|
|
19
|
+
<a id="start-here"></a>
|
|
20
|
+
|
|
21
|
+
## <img src="docs/assets/readme/icons/terminal.svg" width="32" height="32" alt=""> 一条命令快速开始
|
|
22
|
+
|
|
23
|
+
在你的项目文件夹中运行:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npx ruflo@latest init
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
然后在同一文件夹打开 Claude Code 并给它一个真实的任务,例如:
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
用 ruflo 蜂群来审查这个代码库:找出风险最高的模块,为它写测试,总结你改了什么。
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`init` 会为项目添加 ruflo 的智能体、钩子、记忆和 MCP 服务器。Claude Code 在下次启动时会自动识别它们。Codex 和其他 MCP 客户端也支持:只需指向 `npx -y ruflo@latest mcp start`。
|
|
36
|
+
|
|
37
|
+
<p align="center"><img src="docs/assets/ruflo-console-tour.gif" width="720" alt="ruflo 控制台演示:概览、蜂群视图和任务"></p>
|
|
38
|
+
|
|
39
|
+
[第一个实用任务,逐步讲解](docs/ruflo-explained.md) · [用户指南](docs/USERGUIDE.md) · [比较安装路径](#快速开始)
|
|
40
|
+
|
|
41
|
+
<details>
|
|
42
|
+
<summary><b>其他安装方式</b>(仅 Claude Code 插件、MCP 客户端、终端 UI)</summary>
|
|
43
|
+
|
|
44
|
+
**仅 Claude Code 插件。** 这种方式安装核心工具、可视控制台和运行时 mod,无需向项目添加文件。需要 Claude Code **2.1.287 或更高版本**。在 Claude Code 中运行:
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
/plugin marketplace add ruvnet/ruflo
|
|
48
|
+
/plugin install ruflo-core@ruflo
|
|
49
|
+
/plugin install ruflo-console@ruflo
|
|
50
|
+
/plugin install ruflo-mods@ruflo
|
|
51
|
+
/reload-plugins
|
|
52
|
+
/ruflo
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
从终端运行(Claude Code 2.1.292 或更高版本):`claude plugin install ruflo-core@ruflo --marketplace ruvnet/ruflo`。Mod 运行在你的账户权限下,安装前请审查代码。
|
|
56
|
+
|
|
57
|
+
**Codex 或其他 MCP 客户端,无需项目配置。** 配置 **命令** 为 `npx`,**参数** 为 `["-y", "ruflo@latest", "mcp", "start"]`。要进行交互式项目配置,运行 `npx ruflo@latest init wizard`。
|
|
58
|
+
|
|
59
|
+
**纯终端。** 控制台也可独立运行,无需 Claude Code:`npx ruflo tui`。加上 `--plain` 为脚本打印单一画面。详见[终端 UI 指南](docs/USERGUIDE.md#terminal-ui-optional)。
|
|
60
|
+
|
|
61
|
+
<p align="center"><img src="docs/assets/ruflo-tui-compact.svg" width="640" alt="可选的 ruflo 终端 UI 及其界面:经典 BBS 外观、带移动地球的 Orbital 外观、和蜂群图表"></p>
|
|
62
|
+
|
|
63
|
+
</details>
|
|
64
|
+
|
|
65
|
+
<div align="center">
|
|
66
|
+
|
|
67
|
+
### 可选:ruOS Desktop
|
|
68
|
+
|
|
69
|
+
<a href="https://ruos.cognitum.one"><img src="ruflo/assets/ruos-animated.svg" alt="ruOS — 一个能自己运行的桌面" width="100%"></a>
|
|
70
|
+
|
|
71
|
+
**通过 MCP 将 ruOS 连接到 ChatGPT 或 Claude:**
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
https://ruos.cognitum.one/mcp
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
<!-- RuVector promo -->
|
|
78
|
+
<a href="https://github.com/ruvnet/ruvector"><img src="docs/assets/readme/ruvector-promo-depth.svg" width="100%" alt="RuVector:给智能体加装记忆。本地向量搜索、持久上下文、图关系、反馈学习。探索 RuVector。"></a>
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
npx ruvector
|
|
82
|
+
```
|
|
83
|
+
|
|
17
84
|
# Ruflo
|
|
18
85
|
|
|
19
86
|
[English](README.md) · [简体中文](README.zh-CN.md)
|
|
20
87
|
|
|
21
|
-
**面向 Claude Code 与 Codex 的智能体元基座(meta-harness)。**
|
|
22
|
-
|
|
23
88
|
[](docs/ruflo-explained.md)
|
|
24
89
|
|
|
25
90
|
**[📖 RuFlo 详解——组建一支会规划、会记忆、会测试、会自我改进的 AI 团队](docs/ruflo-explained.md)**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/plugin-agent-federation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Cross-installation agent federation with zero-trust security, PII-gated data flow, and compliance-grade audit trails.",
|
|
5
5
|
"homepage": "https://github.com/ruvnet/ruflo",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@claude-flow/shared": "^3.0.0",
|
|
27
27
|
"@claude-flow/security": "^3.0.0",
|
|
28
28
|
"@types/ws": "^8.18.1",
|
|
29
|
-
"agentic-flow": "2.0.
|
|
29
|
+
"agentic-flow": "2.0.14",
|
|
30
30
|
"typescript": "^5.4.0",
|
|
31
31
|
"vitest": "^4.1.0"
|
|
32
32
|
},
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"sourceDependencies": {
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@noble/ed25519": "^2.0.0",
|
|
49
|
-
"ws": "^8.
|
|
49
|
+
"ws": "^8.21.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"agentic-flow": "
|
|
53
|
-
"midstreamer": "
|
|
52
|
+
"agentic-flow": "^2.0.14 || ^3.0.0",
|
|
53
|
+
"midstreamer": "^0.3.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"agentic-flow": {
|
|
@@ -54,7 +54,7 @@ export declare const EmailSchema: z.ZodString;
|
|
|
54
54
|
/**
|
|
55
55
|
* Password schema with complexity requirements
|
|
56
56
|
*/
|
|
57
|
-
export declare const PasswordSchema: z.
|
|
57
|
+
export declare const PasswordSchema: z.ZodString;
|
|
58
58
|
/**
|
|
59
59
|
* UUID schema
|
|
60
60
|
*/
|
|
@@ -62,7 +62,7 @@ export declare const UUIDSchema: z.ZodString;
|
|
|
62
62
|
/**
|
|
63
63
|
* URL schema with HTTPS enforcement
|
|
64
64
|
*/
|
|
65
|
-
export declare const HttpsUrlSchema: z.
|
|
65
|
+
export declare const HttpsUrlSchema: z.ZodString;
|
|
66
66
|
/**
|
|
67
67
|
* URL schema (allows HTTP for development)
|
|
68
68
|
*/
|
|
@@ -78,19 +78,40 @@ export declare const PortSchema: z.ZodNumber;
|
|
|
78
78
|
/**
|
|
79
79
|
* IP address schema (v4)
|
|
80
80
|
*/
|
|
81
|
-
export declare const IPv4Schema: z.
|
|
81
|
+
export declare const IPv4Schema: z.ZodIPv4;
|
|
82
82
|
/**
|
|
83
83
|
* IP address schema (v4 or v6)
|
|
84
84
|
*/
|
|
85
|
-
export declare const IPSchema: z.
|
|
85
|
+
export declare const IPSchema: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
86
86
|
/**
|
|
87
87
|
* User role schema
|
|
88
88
|
*/
|
|
89
|
-
export declare const UserRoleSchema: z.ZodEnum<
|
|
89
|
+
export declare const UserRoleSchema: z.ZodEnum<{
|
|
90
|
+
admin: "admin";
|
|
91
|
+
operator: "operator";
|
|
92
|
+
developer: "developer";
|
|
93
|
+
viewer: "viewer";
|
|
94
|
+
service: "service";
|
|
95
|
+
}>;
|
|
90
96
|
/**
|
|
91
97
|
* Permission schema
|
|
92
98
|
*/
|
|
93
|
-
export declare const PermissionSchema: z.ZodEnum<
|
|
99
|
+
export declare const PermissionSchema: z.ZodEnum<{
|
|
100
|
+
"swarm.create": "swarm.create";
|
|
101
|
+
"swarm.read": "swarm.read";
|
|
102
|
+
"swarm.update": "swarm.update";
|
|
103
|
+
"swarm.delete": "swarm.delete";
|
|
104
|
+
"swarm.scale": "swarm.scale";
|
|
105
|
+
"agent.spawn": "agent.spawn";
|
|
106
|
+
"agent.read": "agent.read";
|
|
107
|
+
"agent.terminate": "agent.terminate";
|
|
108
|
+
"task.create": "task.create";
|
|
109
|
+
"task.read": "task.read";
|
|
110
|
+
"task.cancel": "task.cancel";
|
|
111
|
+
"metrics.read": "metrics.read";
|
|
112
|
+
"system.admin": "system.admin";
|
|
113
|
+
"api.access": "api.access";
|
|
114
|
+
}>;
|
|
94
115
|
/**
|
|
95
116
|
* Login request schema
|
|
96
117
|
*/
|
|
@@ -98,106 +119,145 @@ export declare const LoginRequestSchema: z.ZodObject<{
|
|
|
98
119
|
email: z.ZodString;
|
|
99
120
|
password: z.ZodString;
|
|
100
121
|
mfaCode: z.ZodOptional<z.ZodString>;
|
|
101
|
-
},
|
|
102
|
-
email: string;
|
|
103
|
-
password: string;
|
|
104
|
-
mfaCode?: string | undefined;
|
|
105
|
-
}, {
|
|
106
|
-
email: string;
|
|
107
|
-
password: string;
|
|
108
|
-
mfaCode?: string | undefined;
|
|
109
|
-
}>;
|
|
122
|
+
}, z.core.$strip>;
|
|
110
123
|
/**
|
|
111
124
|
* User creation schema
|
|
112
125
|
*/
|
|
113
126
|
export declare const CreateUserSchema: z.ZodObject<{
|
|
114
127
|
email: z.ZodString;
|
|
115
|
-
password: z.
|
|
116
|
-
role: z.ZodEnum<
|
|
117
|
-
|
|
128
|
+
password: z.ZodString;
|
|
129
|
+
role: z.ZodEnum<{
|
|
130
|
+
admin: "admin";
|
|
131
|
+
operator: "operator";
|
|
132
|
+
developer: "developer";
|
|
133
|
+
viewer: "viewer";
|
|
134
|
+
service: "service";
|
|
135
|
+
}>;
|
|
136
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
137
|
+
"swarm.create": "swarm.create";
|
|
138
|
+
"swarm.read": "swarm.read";
|
|
139
|
+
"swarm.update": "swarm.update";
|
|
140
|
+
"swarm.delete": "swarm.delete";
|
|
141
|
+
"swarm.scale": "swarm.scale";
|
|
142
|
+
"agent.spawn": "agent.spawn";
|
|
143
|
+
"agent.read": "agent.read";
|
|
144
|
+
"agent.terminate": "agent.terminate";
|
|
145
|
+
"task.create": "task.create";
|
|
146
|
+
"task.read": "task.read";
|
|
147
|
+
"task.cancel": "task.cancel";
|
|
148
|
+
"metrics.read": "metrics.read";
|
|
149
|
+
"system.admin": "system.admin";
|
|
150
|
+
"api.access": "api.access";
|
|
151
|
+
}>>>;
|
|
118
152
|
isActive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
119
|
-
},
|
|
120
|
-
email: string;
|
|
121
|
-
password: string;
|
|
122
|
-
role: "admin" | "operator" | "developer" | "viewer" | "service";
|
|
123
|
-
isActive: boolean;
|
|
124
|
-
permissions?: ("swarm.create" | "swarm.read" | "swarm.update" | "swarm.delete" | "swarm.scale" | "agent.spawn" | "agent.read" | "agent.terminate" | "task.create" | "task.read" | "task.cancel" | "metrics.read" | "system.admin" | "api.access")[] | undefined;
|
|
125
|
-
}, {
|
|
126
|
-
email: string;
|
|
127
|
-
password: string;
|
|
128
|
-
role: "admin" | "operator" | "developer" | "viewer" | "service";
|
|
129
|
-
permissions?: ("swarm.create" | "swarm.read" | "swarm.update" | "swarm.delete" | "swarm.scale" | "agent.spawn" | "agent.read" | "agent.terminate" | "task.create" | "task.read" | "task.cancel" | "metrics.read" | "system.admin" | "api.access")[] | undefined;
|
|
130
|
-
isActive?: boolean | undefined;
|
|
131
|
-
}>;
|
|
153
|
+
}, z.core.$strip>;
|
|
132
154
|
/**
|
|
133
155
|
* API key creation schema
|
|
134
156
|
*/
|
|
135
157
|
export declare const CreateApiKeySchema: z.ZodObject<{
|
|
136
158
|
name: z.ZodString;
|
|
137
|
-
permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<
|
|
159
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
160
|
+
"swarm.create": "swarm.create";
|
|
161
|
+
"swarm.read": "swarm.read";
|
|
162
|
+
"swarm.update": "swarm.update";
|
|
163
|
+
"swarm.delete": "swarm.delete";
|
|
164
|
+
"swarm.scale": "swarm.scale";
|
|
165
|
+
"agent.spawn": "agent.spawn";
|
|
166
|
+
"agent.read": "agent.read";
|
|
167
|
+
"agent.terminate": "agent.terminate";
|
|
168
|
+
"task.create": "task.create";
|
|
169
|
+
"task.read": "task.read";
|
|
170
|
+
"task.cancel": "task.cancel";
|
|
171
|
+
"metrics.read": "metrics.read";
|
|
172
|
+
"system.admin": "system.admin";
|
|
173
|
+
"api.access": "api.access";
|
|
174
|
+
}>>>;
|
|
138
175
|
expiresAt: z.ZodOptional<z.ZodDate>;
|
|
139
|
-
},
|
|
140
|
-
name: string;
|
|
141
|
-
permissions?: ("swarm.create" | "swarm.read" | "swarm.update" | "swarm.delete" | "swarm.scale" | "agent.spawn" | "agent.read" | "agent.terminate" | "task.create" | "task.read" | "task.cancel" | "metrics.read" | "system.admin" | "api.access")[] | undefined;
|
|
142
|
-
expiresAt?: Date | undefined;
|
|
143
|
-
}, {
|
|
144
|
-
name: string;
|
|
145
|
-
permissions?: ("swarm.create" | "swarm.read" | "swarm.update" | "swarm.delete" | "swarm.scale" | "agent.spawn" | "agent.read" | "agent.terminate" | "task.create" | "task.read" | "task.cancel" | "metrics.read" | "system.admin" | "api.access")[] | undefined;
|
|
146
|
-
expiresAt?: Date | undefined;
|
|
147
|
-
}>;
|
|
176
|
+
}, z.core.$strip>;
|
|
148
177
|
/**
|
|
149
178
|
* Agent type schema
|
|
150
179
|
*/
|
|
151
|
-
export declare const AgentTypeSchema: z.ZodEnum<
|
|
180
|
+
export declare const AgentTypeSchema: z.ZodEnum<{
|
|
181
|
+
coder: "coder";
|
|
182
|
+
reviewer: "reviewer";
|
|
183
|
+
tester: "tester";
|
|
184
|
+
planner: "planner";
|
|
185
|
+
researcher: "researcher";
|
|
186
|
+
"security-architect": "security-architect";
|
|
187
|
+
"security-auditor": "security-auditor";
|
|
188
|
+
"memory-specialist": "memory-specialist";
|
|
189
|
+
"swarm-specialist": "swarm-specialist";
|
|
190
|
+
"integration-architect": "integration-architect";
|
|
191
|
+
"performance-engineer": "performance-engineer";
|
|
192
|
+
"core-architect": "core-architect";
|
|
193
|
+
"test-architect": "test-architect";
|
|
194
|
+
"queen-coordinator": "queen-coordinator";
|
|
195
|
+
"project-coordinator": "project-coordinator";
|
|
196
|
+
}>;
|
|
152
197
|
/**
|
|
153
198
|
* Agent spawn request schema
|
|
154
199
|
*/
|
|
155
200
|
export declare const SpawnAgentSchema: z.ZodObject<{
|
|
156
|
-
type: z.ZodEnum<
|
|
201
|
+
type: z.ZodEnum<{
|
|
202
|
+
coder: "coder";
|
|
203
|
+
reviewer: "reviewer";
|
|
204
|
+
tester: "tester";
|
|
205
|
+
planner: "planner";
|
|
206
|
+
researcher: "researcher";
|
|
207
|
+
"security-architect": "security-architect";
|
|
208
|
+
"security-auditor": "security-auditor";
|
|
209
|
+
"memory-specialist": "memory-specialist";
|
|
210
|
+
"swarm-specialist": "swarm-specialist";
|
|
211
|
+
"integration-architect": "integration-architect";
|
|
212
|
+
"performance-engineer": "performance-engineer";
|
|
213
|
+
"core-architect": "core-architect";
|
|
214
|
+
"test-architect": "test-architect";
|
|
215
|
+
"queen-coordinator": "queen-coordinator";
|
|
216
|
+
"project-coordinator": "project-coordinator";
|
|
217
|
+
}>;
|
|
157
218
|
id: z.ZodOptional<z.ZodString>;
|
|
158
219
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
159
220
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
160
|
-
},
|
|
161
|
-
type: "coder" | "reviewer" | "tester" | "planner" | "researcher" | "security-architect" | "security-auditor" | "memory-specialist" | "swarm-specialist" | "integration-architect" | "performance-engineer" | "core-architect" | "test-architect" | "queen-coordinator" | "project-coordinator";
|
|
162
|
-
config?: Record<string, unknown> | undefined;
|
|
163
|
-
timeout?: number | undefined;
|
|
164
|
-
id?: string | undefined;
|
|
165
|
-
}, {
|
|
166
|
-
type: "coder" | "reviewer" | "tester" | "planner" | "researcher" | "security-architect" | "security-auditor" | "memory-specialist" | "swarm-specialist" | "integration-architect" | "performance-engineer" | "core-architect" | "test-architect" | "queen-coordinator" | "project-coordinator";
|
|
167
|
-
config?: Record<string, unknown> | undefined;
|
|
168
|
-
timeout?: number | undefined;
|
|
169
|
-
id?: string | undefined;
|
|
170
|
-
}>;
|
|
221
|
+
}, z.core.$strip>;
|
|
171
222
|
/**
|
|
172
223
|
* Task input schema
|
|
173
224
|
*/
|
|
174
225
|
export declare const TaskInputSchema: z.ZodObject<{
|
|
175
226
|
taskId: z.ZodString;
|
|
176
227
|
content: z.ZodString;
|
|
177
|
-
agentType: z.ZodEnum<
|
|
178
|
-
|
|
228
|
+
agentType: z.ZodEnum<{
|
|
229
|
+
coder: "coder";
|
|
230
|
+
reviewer: "reviewer";
|
|
231
|
+
tester: "tester";
|
|
232
|
+
planner: "planner";
|
|
233
|
+
researcher: "researcher";
|
|
234
|
+
"security-architect": "security-architect";
|
|
235
|
+
"security-auditor": "security-auditor";
|
|
236
|
+
"memory-specialist": "memory-specialist";
|
|
237
|
+
"swarm-specialist": "swarm-specialist";
|
|
238
|
+
"integration-architect": "integration-architect";
|
|
239
|
+
"performance-engineer": "performance-engineer";
|
|
240
|
+
"core-architect": "core-architect";
|
|
241
|
+
"test-architect": "test-architect";
|
|
242
|
+
"queen-coordinator": "queen-coordinator";
|
|
243
|
+
"project-coordinator": "project-coordinator";
|
|
244
|
+
}>;
|
|
245
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
246
|
+
critical: "critical";
|
|
247
|
+
high: "high";
|
|
248
|
+
medium: "medium";
|
|
249
|
+
low: "low";
|
|
250
|
+
}>>;
|
|
179
251
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
180
|
-
},
|
|
181
|
-
taskId: string;
|
|
182
|
-
content: string;
|
|
183
|
-
agentType: "coder" | "reviewer" | "tester" | "planner" | "researcher" | "security-architect" | "security-auditor" | "memory-specialist" | "swarm-specialist" | "integration-architect" | "performance-engineer" | "core-architect" | "test-architect" | "queen-coordinator" | "project-coordinator";
|
|
184
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
185
|
-
metadata?: Record<string, unknown> | undefined;
|
|
186
|
-
}, {
|
|
187
|
-
taskId: string;
|
|
188
|
-
content: string;
|
|
189
|
-
agentType: "coder" | "reviewer" | "tester" | "planner" | "researcher" | "security-architect" | "security-auditor" | "memory-specialist" | "swarm-specialist" | "integration-architect" | "performance-engineer" | "core-architect" | "test-architect" | "queen-coordinator" | "project-coordinator";
|
|
190
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
191
|
-
metadata?: Record<string, unknown> | undefined;
|
|
192
|
-
}>;
|
|
252
|
+
}, z.core.$strip>;
|
|
193
253
|
/**
|
|
194
254
|
* Command argument schema
|
|
195
255
|
*/
|
|
196
|
-
export declare const CommandArgumentSchema: z.
|
|
256
|
+
export declare const CommandArgumentSchema: z.ZodString;
|
|
197
257
|
/**
|
|
198
258
|
* Path schema
|
|
199
259
|
*/
|
|
200
|
-
export declare const PathSchema: z.
|
|
260
|
+
export declare const PathSchema: z.ZodString;
|
|
201
261
|
/**
|
|
202
262
|
* Security configuration schema
|
|
203
263
|
*/
|
|
@@ -208,46 +268,18 @@ export declare const SecurityConfigSchema: z.ZodObject<{
|
|
|
208
268
|
maxLoginAttempts: z.ZodDefault<z.ZodNumber>;
|
|
209
269
|
lockoutDuration: z.ZodDefault<z.ZodNumber>;
|
|
210
270
|
requireMFA: z.ZodDefault<z.ZodBoolean>;
|
|
211
|
-
},
|
|
212
|
-
bcryptRounds: number;
|
|
213
|
-
jwtExpiresIn: string;
|
|
214
|
-
sessionTimeout: number;
|
|
215
|
-
maxLoginAttempts: number;
|
|
216
|
-
lockoutDuration: number;
|
|
217
|
-
requireMFA: boolean;
|
|
218
|
-
}, {
|
|
219
|
-
bcryptRounds?: number | undefined;
|
|
220
|
-
jwtExpiresIn?: string | undefined;
|
|
221
|
-
sessionTimeout?: number | undefined;
|
|
222
|
-
maxLoginAttempts?: number | undefined;
|
|
223
|
-
lockoutDuration?: number | undefined;
|
|
224
|
-
requireMFA?: boolean | undefined;
|
|
225
|
-
}>;
|
|
271
|
+
}, z.core.$strip>;
|
|
226
272
|
/**
|
|
227
273
|
* Executor configuration schema
|
|
228
274
|
*/
|
|
229
275
|
export declare const ExecutorConfigSchema: z.ZodObject<{
|
|
230
|
-
allowedCommands: z.ZodArray<z.ZodString
|
|
231
|
-
blockedPatterns: z.ZodOptional<z.ZodArray<z.ZodString
|
|
276
|
+
allowedCommands: z.ZodArray<z.ZodString>;
|
|
277
|
+
blockedPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
232
278
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
233
279
|
maxBuffer: z.ZodDefault<z.ZodNumber>;
|
|
234
|
-
cwd: z.ZodOptional<z.
|
|
280
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
235
281
|
allowSudo: z.ZodDefault<z.ZodBoolean>;
|
|
236
|
-
},
|
|
237
|
-
allowedCommands: string[];
|
|
238
|
-
timeout: number;
|
|
239
|
-
maxBuffer: number;
|
|
240
|
-
allowSudo: boolean;
|
|
241
|
-
blockedPatterns?: string[] | undefined;
|
|
242
|
-
cwd?: string | undefined;
|
|
243
|
-
}, {
|
|
244
|
-
allowedCommands: string[];
|
|
245
|
-
blockedPatterns?: string[] | undefined;
|
|
246
|
-
timeout?: number | undefined;
|
|
247
|
-
maxBuffer?: number | undefined;
|
|
248
|
-
cwd?: string | undefined;
|
|
249
|
-
allowSudo?: boolean | undefined;
|
|
250
|
-
}>;
|
|
282
|
+
}, z.core.$strip>;
|
|
251
283
|
/**
|
|
252
284
|
* Sanitizes a string by removing dangerous characters
|
|
253
285
|
*/
|
|
@@ -264,11 +296,11 @@ export declare class InputValidator {
|
|
|
264
296
|
/**
|
|
265
297
|
* Validates input against a schema
|
|
266
298
|
*/
|
|
267
|
-
static validate<T>(schema: z.
|
|
299
|
+
static validate<T>(schema: z.ZodType<T>, input: unknown): T;
|
|
268
300
|
/**
|
|
269
301
|
* Safely validates input, returning result
|
|
270
302
|
*/
|
|
271
|
-
static safeParse<T>(schema: z.
|
|
303
|
+
static safeParse<T>(schema: z.ZodType<T>, input: unknown): z.ZodSafeParseResult<T>;
|
|
272
304
|
/**
|
|
273
305
|
* Validates email
|
|
274
306
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-validator.d.ts","sourceRoot":"","sources":["../src/input-validator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"input-validator.d.ts","sourceRoot":"","sources":["../src/input-validator.ts"],"names":[],"mappings":"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"}
|