@guyghost/swarm-dao-claude-adapter 0.2.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/.mcp.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "mcpServers": {
3
+ "swarm-dao": {
4
+ "type": "stdio",
5
+ "command": "npx",
6
+ "args": ["-y", "@guyghost/swarm-dao-claude-adapter"],
7
+ "env": {
8
+ "DAO_ROOT": "."
9
+ }
10
+ }
11
+ }
12
+ }
package/CLAUDE.md ADDED
@@ -0,0 +1,52 @@
1
+ # CLAUDE.md — Swarm DAO governance
2
+
3
+ This repository is governed by **Swarm DAO**, a multi-agent governance layer.
4
+ Proposals are deliberated by a swarm of agents, validated by quality-control
5
+ gates, then executed and tracked.
6
+
7
+ ## Workflow (always follow this order)
8
+
9
+ 1. `dao_setup` — create the default 7 product agents (once per repo).
10
+ 2. `dao_propose` — open a proposal (`title`, `type`, `description`).
11
+ 3. `dao_deliberate proposalId=N` — returns a dispatch plan naming the agents and
12
+ the model each should use.
13
+ 4. Spawn one sub-agent per dispatch-plan entry (use the `Task` tool / subagents).
14
+ 5. `dao_record_outputs proposalId=N outputs=[...]` — feed each sub-agent's
15
+ `agentId` + `content` back into the DAO.
16
+ 6. `dao_control proposalId=N` — run the quality gates.
17
+ 7. `dao_execute proposalId=N` — apply the approved change.
18
+ 8. `dao_ship proposalId=N` — cascade and finalize dependencies.
19
+
20
+ ## Rules
21
+
22
+ - Treat `dao_*` tool results as the source of truth for DAO state.
23
+ - Never hand-edit files under `.swarm-dao/` — always use the DAO tools.
24
+ - If a gate fails in `dao_control`, fix the root cause; do not force-skip.
25
+ - Run `dao_dry_run` before `dao_execute` for risky changes.
26
+ - Use `dao_rollback` to revert a misbehaving executed proposal.
27
+ - Rate outcomes with `dao_rate` to keep the governance health score accurate.
28
+
29
+ ## Slash commands
30
+
31
+ This package ships a full `/dao:*` namespace with native tab completion.
32
+ Copy `commands/` into `.claude/commands/` to enable them. The colon-namespaced
33
+ commands are auto-generated as flat files `commands/dao:<id>.md` (colons in
34
+ filenames, not subdirectories).
35
+
36
+ ### `/dao:*` namespace (generated from the registry)
37
+
38
+ Every lifecycle, discovery, governance, and GitHub command is available as
39
+ `/dao:<id>`:
40
+
41
+ - `/dao:setup`, `/dao:propose`, `/dao:deliberate`, `/dao:record-outputs`,
42
+ `/dao:control`, `/dao:execute`, `/dao:ship`, `/dao:rollback`
43
+ - `/dao:help`, `/dao:status`, `/dao:list`, `/dao:agents`, `/dao:plan`,
44
+ `/dao:artefacts`, `/dao:audit`, `/dao:dry-run`, `/dao:roundtable`
45
+ - `/dao:rate`, `/dao:update-proposal`, `/dao:propose-amendment`
46
+ - `/dao:github-config`, `/dao:github-branch`, `/dao:github-pr`
47
+
48
+ Run `bun run generate-commands` to regenerate the namespace from the registry.
49
+
50
+ ## Discovery
51
+
52
+ - `dao_help`, `dao_list`, `dao_agents`, `dao_dashboard`, `dao_audit`
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # @guyghost/swarm-dao-claude-adapter
2
+
3
+ Swarm DAO governance adapter for **Claude Code** (Anthropic).
4
+
5
+ It bundles:
6
+
7
+ - the Swarm DAO MCP server (`swarm-dao-claude` bin)
8
+ - a native `.mcp.json` template
9
+ - a `CLAUDE.md` instructions file
10
+ - ready-made slash commands (`/dao-propose`, `/dao-deliberate`, `/dao-ship`)
11
+ - a `HostAdapter` implementation for programmatic use
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm install @guyghost/swarm-dao-claude-adapter
17
+ ```
18
+
19
+ ## Configure
20
+
21
+ ### MCP server
22
+
23
+ Copy `.mcp.json` into your project root. Claude Code auto-detects it and
24
+ registers the `swarm-dao` MCP server. The `dao_*` tools then become available
25
+ as `mcp__swarm-dao__dao_*`.
26
+
27
+ ### Instructions
28
+
29
+ Append the contents of `CLAUDE.md` to your repo's `CLAUDE.md` so Claude Code
30
+ follows the DAO workflow.
31
+
32
+ ### Slash commands
33
+
34
+ Copy the `commands/` directory into `.claude/commands/` to enable:
35
+
36
+ - `/dao-propose` — scaffold a proposal
37
+ - `/dao-deliberate` — deliberate and record sub-agent outputs
38
+ - `/dao-ship` — control, execute, and ship a proposal
39
+
40
+ ## Run the server directly
41
+
42
+ ```bash
43
+ swarm-dao-claude # uses $DAO_ROOT or cwd
44
+ ```
45
+
46
+ ## Programmatic API
47
+
48
+ ```ts
49
+ import { createClaudeHostAdapter, startClaudeServer } from "@guyghost/swarm-dao-claude-adapter";
50
+
51
+ const adapter = createClaudeHostAdapter("/path/to/repo");
52
+ await startClaudeServer();
53
+ ```
54
+
55
+ ## License
56
+
57
+ MIT
@@ -0,0 +1,48 @@
1
+ # `/dao:*` commands (generated)
2
+
3
+ > Auto-generated from `@guyghost/swarm-dao-core`'s `DaoCommandRegistry`.
4
+ > Do not edit by hand — run `bun run scripts/generate-commands.ts`.
5
+ > Claude Code derives command names from filenames (colon namespace in filename).
6
+
7
+ ## Setup
8
+ - [`/dao:setup`](dao:setup.md) `[useDefaults=true]` — Initialize the DAO with the default 7 product agents
9
+
10
+ ## Propose
11
+ - [`/dao:propose`](dao:propose.md) `title type description [acceptanceCriteria...] [affectedPaths...]` — Create a new proposal
12
+ - [`/dao:update-proposal`](dao:update-proposal.md) `proposalId [problemStatement] [acceptanceCriteria] [successMetrics] [rollbackConditions]` — Update structured fields on an open proposal
13
+
14
+ ## Deliberate
15
+ - [`/dao:deliberate`](dao:deliberate.md) `proposalId` — Run swarm deliberation / build the dispatch plan
16
+ - [`/dao:record-outputs`](dao:record-outputs.md) `proposalId outputs[]` — Record sub-agent outputs and finalize deliberation
17
+
18
+ ## Control
19
+ - [`/dao:control`](dao:control.md) `proposalId` — Run the quality-control gates
20
+
21
+ ## Execute
22
+ - [`/dao:execute`](dao:execute.md) `proposalId` — Execute an approved / controlled proposal
23
+
24
+ ## Ship
25
+ - [`/dao:ship`](dao:ship.md) `proposalId [cascade] [force]` — Ship a controlled proposal (optionally cascade dependencies)
26
+
27
+ ## Retro
28
+ - [`/dao:rollback`](dao:rollback.md) `proposalId` — Revert an executed proposal to its pre-execution snapshot
29
+ - [`/dao:rate`](dao:rate.md) `proposalId score comment` — Rate a proposal outcome (1–5 stars)
30
+
31
+ ## Discover
32
+ - [`/dao:help`](dao:help.md) — Show the DAO workflow and every available command
33
+ - [`/dao:status`](dao:status.md) — Show the governance health dashboard
34
+ - [`/dao:list`](dao:list.md) `[--status] [--type]` — List all proposals
35
+ - [`/dao:agents`](dao:agents.md) — List the configured DAO agents
36
+ - [`/dao:plan`](dao:plan.md) `proposalId` — Show the delivery plan for a proposal
37
+ - [`/dao:artefacts`](dao:artefacts.md) `proposalId` — View the auto-generated artefacts for a proposal
38
+ - [`/dao:audit`](dao:audit.md) `[proposalId]` — View the audit trail
39
+ - [`/dao:dry-run`](dao:dry-run.md) `proposalId` — Preview execution without applying changes
40
+ - [`/dao:roundtable`](dao:roundtable.md) — Ask every agent to suggest a proposal idea
41
+
42
+ ## Governance
43
+ - [`/dao:propose-amendment`](dao:propose-amendment.md) `title description amendmentType [agentId] [agentChanges] [configChanges] [addGates] [removeGates]` — Propose an amendment (agents, config, quorum, gates)
44
+
45
+ ## GitHub
46
+ - [`/dao:github-config`](dao:github-config.md) `--token <t> --owner <o> --repo <r>` — Configure the GitHub integration
47
+ - [`/dao:github-branch`](dao:github-branch.md) `proposalId` — Create a GitHub branch for a proposal
48
+ - [`/dao:github-pr`](dao:github-pr.md) `proposalId --head-branch <b>` — Open a GitHub pull request for a proposal
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: List the configured DAO agents
3
+ allowed-tools: mcp__swarm-dao__dao_agents
4
+ ---
5
+
6
+ List the configured DAO agents.
7
+
8
+ `/dao:agents`
9
+
10
+ Call the `mcp__swarm-dao__dao_agents` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: View the auto-generated artefacts for a proposal
3
+ allowed-tools: mcp__swarm-dao__dao_artefacts
4
+ ---
5
+
6
+ View the auto-generated artefacts for a proposal.
7
+
8
+ `/dao:artefacts proposalId`
9
+
10
+ Call the `mcp__swarm-dao__dao_artefacts` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: View the audit trail
3
+ allowed-tools: mcp__swarm-dao__dao_audit
4
+ ---
5
+
6
+ View the audit trail.
7
+
8
+ `/dao:audit [proposalId]`
9
+
10
+ Call the `mcp__swarm-dao__dao_audit` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Run the quality-control gates
3
+ allowed-tools: mcp__swarm-dao__dao_control
4
+ ---
5
+
6
+ Run the quality-control gates.
7
+
8
+ `/dao:control proposalId`
9
+
10
+ Call the `mcp__swarm-dao__dao_control` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Run swarm deliberation / build the dispatch plan
3
+ allowed-tools: mcp__swarm-dao__dao_deliberate, mcp__swarm-dao__dao_record_outputs, mcp__swarm-dao__dao_control, Task
4
+ ---
5
+
6
+ Run swarm deliberation / build the dispatch plan.
7
+
8
+ `/dao:deliberate proposalId`
9
+
10
+ Call the `mcp__swarm-dao__dao_deliberate` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Preview execution without applying changes
3
+ allowed-tools: mcp__swarm-dao__dao_dry_run
4
+ ---
5
+
6
+ Preview execution without applying changes.
7
+
8
+ `/dao:dry-run proposalId`
9
+
10
+ Call the `mcp__swarm-dao__dao_dry_run` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Execute an approved / controlled proposal
3
+ allowed-tools: mcp__swarm-dao__dao_execute
4
+ ---
5
+
6
+ Execute an approved / controlled proposal.
7
+
8
+ `/dao:execute proposalId`
9
+
10
+ Call the `mcp__swarm-dao__dao_execute` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Create a GitHub branch for a proposal
3
+ allowed-tools: mcp__swarm-dao__dao_github_create_branch
4
+ ---
5
+
6
+ Create a GitHub branch for a proposal.
7
+
8
+ `/dao:github-branch proposalId`
9
+
10
+ Call the `mcp__swarm-dao__dao_github_create_branch` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Configure the GitHub integration
3
+ allowed-tools: mcp__swarm-dao__dao_config_github
4
+ ---
5
+
6
+ Configure the GitHub integration.
7
+
8
+ `/dao:github-config --token <t> --owner <o> --repo <r>`
9
+
10
+ Call the `mcp__swarm-dao__dao_config_github` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Open a GitHub pull request for a proposal
3
+ allowed-tools: mcp__swarm-dao__dao_github_open_pr
4
+ ---
5
+
6
+ Open a GitHub pull request for a proposal.
7
+
8
+ `/dao:github-pr proposalId --head-branch <b>`
9
+
10
+ Call the `mcp__swarm-dao__dao_github_open_pr` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Show the DAO workflow and every available command
3
+ allowed-tools: mcp__swarm-dao__dao_help
4
+ ---
5
+
6
+ Show the DAO workflow and every available command.
7
+
8
+ `/dao:help`
9
+
10
+ Call the `mcp__swarm-dao__dao_help` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: List all proposals
3
+ allowed-tools: mcp__swarm-dao__dao_list
4
+ ---
5
+
6
+ List all proposals.
7
+
8
+ `/dao:list [--status] [--type]`
9
+
10
+ Call the `mcp__swarm-dao__dao_list` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Show the delivery plan for a proposal
3
+ allowed-tools: mcp__swarm-dao__dao_plan
4
+ ---
5
+
6
+ Show the delivery plan for a proposal.
7
+
8
+ `/dao:plan proposalId`
9
+
10
+ Call the `mcp__swarm-dao__dao_plan` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Propose an amendment (agents, config, quorum, gates)
3
+ allowed-tools: mcp__swarm-dao__dao_propose_amendment
4
+ ---
5
+
6
+ Propose an amendment (agents, config, quorum, gates).
7
+
8
+ `/dao:propose-amendment title description amendmentType [agentId] [agentChanges] [configChanges] [addGates] [removeGates]`
9
+
10
+ Call the `mcp__swarm-dao__dao_propose_amendment` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Create a new proposal
3
+ allowed-tools: mcp__swarm-dao__dao_propose
4
+ ---
5
+
6
+ Create a new proposal.
7
+
8
+ `/dao:propose title type description [acceptanceCriteria...] [affectedPaths...]`
9
+
10
+ Call the `mcp__swarm-dao__dao_propose` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Rate a proposal outcome (1–5 stars)
3
+ allowed-tools: mcp__swarm-dao__dao_rate
4
+ ---
5
+
6
+ Rate a proposal outcome (1–5 stars).
7
+
8
+ `/dao:rate proposalId score comment`
9
+
10
+ Call the `mcp__swarm-dao__dao_rate` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Record sub-agent outputs and finalize deliberation
3
+ allowed-tools: mcp__swarm-dao__dao_record_outputs
4
+ ---
5
+
6
+ Record sub-agent outputs and finalize deliberation.
7
+
8
+ `/dao:record-outputs proposalId outputs[]`
9
+
10
+ Call the `mcp__swarm-dao__dao_record_outputs` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Revert an executed proposal to its pre-execution snapshot
3
+ allowed-tools: mcp__swarm-dao__dao_rollback
4
+ ---
5
+
6
+ Revert an executed proposal to its pre-execution snapshot.
7
+
8
+ `/dao:rollback proposalId`
9
+
10
+ Call the `mcp__swarm-dao__dao_rollback` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Ask every agent to suggest a proposal idea
3
+ allowed-tools: mcp__swarm-dao__dao_roundtable
4
+ ---
5
+
6
+ Ask every agent to suggest a proposal idea.
7
+
8
+ `/dao:roundtable`
9
+
10
+ Call the `mcp__swarm-dao__dao_roundtable` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Initialize the DAO with the default 7 product agents
3
+ allowed-tools: mcp__swarm-dao__dao_setup
4
+ ---
5
+
6
+ Initialize the DAO with the default 7 product agents.
7
+
8
+ `/dao:setup [useDefaults=true]`
9
+
10
+ Call the `mcp__swarm-dao__dao_setup` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Ship a controlled proposal (optionally cascade dependencies)
3
+ allowed-tools: mcp__swarm-dao__dao_ship, mcp__swarm-dao__dao_control, mcp__swarm-dao__dao_execute, mcp__swarm-dao__dao_rate
4
+ ---
5
+
6
+ Ship a controlled proposal (optionally cascade dependencies).
7
+
8
+ `/dao:ship proposalId [cascade] [force]`
9
+
10
+ Call the `mcp__swarm-dao__dao_ship` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Show the governance health dashboard
3
+ allowed-tools: mcp__swarm-dao__dao_dashboard
4
+ ---
5
+
6
+ Show the governance health dashboard.
7
+
8
+ `/dao:status`
9
+
10
+ Call the `mcp__swarm-dao__dao_dashboard` MCP tool. Pass `$ARGUMENTS` through.
@@ -0,0 +1,10 @@
1
+ ---
2
+ description: Update structured fields on an open proposal
3
+ allowed-tools: mcp__swarm-dao__dao_update_proposal
4
+ ---
5
+
6
+ Update structured fields on an open proposal.
7
+
8
+ `/dao:update-proposal proposalId [problemStatement] [acceptanceCriteria] [successMetrics] [rollbackConditions]`
9
+
10
+ Call the `mcp__swarm-dao__dao_update_proposal` MCP tool. Pass `$ARGUMENTS` through.
package/dist/cli.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
package/dist/cli.js ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { startClaudeServer } from "./index.js";
3
+ startClaudeServer().catch((error) => {
4
+ console.error("[swarm-dao-claude] fatal:", error);
5
+ process.exit(1);
6
+ });
7
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,iBAAiB,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IAClC,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { HostAdapter } from "@guyghost/swarm-dao-core";
2
+ import { resolveDaoRoot } from "@guyghost/swarm-dao-mcp";
3
+ export { resolveDaoRoot };
4
+ /** Host adapter specialized for Claude Code (`hostId = "claude"`). */
5
+ export declare function createClaudeHostAdapter(workDir?: string): HostAdapter;
6
+ /** Boot the Swarm DAO MCP server with Claude defaults. */
7
+ export declare function startClaudeServer(workDir?: string): Promise<void>;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAA0B,cAAc,EAA0B,MAAM,yBAAyB,CAAC;AAEzG,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,sEAAsE;AACtE,wBAAgB,uBAAuB,CAAC,OAAO,SAAmB,GAAG,WAAW,CAE/E;AAED,0DAA0D;AAC1D,wBAAsB,iBAAiB,CAAC,OAAO,SAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjF"}
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ import { createStdioHostAdapter, resolveDaoRoot, startSwarmDaoMcpServer } from "@guyghost/swarm-dao-mcp";
2
+ export { resolveDaoRoot };
3
+ /** Host adapter specialized for Claude Code (`hostId = "claude"`). */
4
+ export function createClaudeHostAdapter(workDir = resolveDaoRoot()) {
5
+ return createStdioHostAdapter("claude", workDir);
6
+ }
7
+ /** Boot the Swarm DAO MCP server with Claude defaults. */
8
+ export async function startClaudeServer(workDir = resolveDaoRoot()) {
9
+ await startSwarmDaoMcpServer(workDir);
10
+ }
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEzG,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,sEAAsE;AACtE,MAAM,UAAU,uBAAuB,CAAC,OAAO,GAAG,cAAc,EAAE;IAChE,OAAO,sBAAsB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC;AAED,0DAA0D;AAC1D,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,OAAO,GAAG,cAAc,EAAE;IAChE,MAAM,sBAAsB,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@guyghost/swarm-dao-claude-adapter",
3
+ "version": "0.2.0",
4
+ "description": "Swarm DAO governance adapter for Claude Code — MCP server, native config, slash commands, and CLAUDE.md",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "sideEffects": false,
9
+ "bin": {
10
+ "swarm-dao-claude": "./dist/cli.js"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "README.md",
15
+ ".mcp.json",
16
+ "CLAUDE.md",
17
+ "commands"
18
+ ],
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js"
23
+ }
24
+ },
25
+ "scripts": {
26
+ "generate-commands": "bun run scripts/generate-commands.ts",
27
+ "prebuild": "bun run generate-commands",
28
+ "build": "tsc",
29
+ "test": "bun test",
30
+ "lint": "biome check .",
31
+ "typecheck": "tsc --noEmit",
32
+ "prepublishOnly": "bun run build"
33
+ },
34
+ "dependencies": {
35
+ "@guyghost/swarm-dao-core": "^0.3.0",
36
+ "@guyghost/swarm-dao-mcp": "^0.2.0"
37
+ },
38
+ "devDependencies": {
39
+ "@types/bun": "latest"
40
+ },
41
+ "keywords": [
42
+ "swarm-dao",
43
+ "claude",
44
+ "claude-code",
45
+ "anthropic",
46
+ "mcp",
47
+ "dao",
48
+ "governance",
49
+ "multi-agent",
50
+ "deliberation",
51
+ "quality-gates"
52
+ ],
53
+ "author": "guyghost",
54
+ "license": "MIT",
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "git+https://github.com/guyghost/swarm-dao.git",
58
+ "directory": "packages/claude-adapter"
59
+ },
60
+ "bugs": {
61
+ "url": "https://github.com/guyghost/swarm-dao/issues"
62
+ },
63
+ "homepage": "https://github.com/guyghost/swarm-dao#readme",
64
+ "publishConfig": {
65
+ "access": "public"
66
+ }
67
+ }