opencastle 0.1.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/LICENSE +21 -0
- package/README.md +215 -0
- package/bin/cli.mjs +69 -0
- package/dist/cli/adapters/claude-code.d.ts +22 -0
- package/dist/cli/adapters/claude-code.d.ts.map +1 -0
- package/dist/cli/adapters/claude-code.js +237 -0
- package/dist/cli/adapters/claude-code.js.map +1 -0
- package/dist/cli/adapters/cursor.d.ts +20 -0
- package/dist/cli/adapters/cursor.d.ts.map +1 -0
- package/dist/cli/adapters/cursor.js +231 -0
- package/dist/cli/adapters/cursor.js.map +1 -0
- package/dist/cli/adapters/vscode.d.ts +20 -0
- package/dist/cli/adapters/vscode.d.ts.map +1 -0
- package/dist/cli/adapters/vscode.js +132 -0
- package/dist/cli/adapters/vscode.js.map +1 -0
- package/dist/cli/copy.d.ts +14 -0
- package/dist/cli/copy.d.ts.map +1 -0
- package/dist/cli/copy.js +62 -0
- package/dist/cli/copy.js.map +1 -0
- package/dist/cli/dashboard.d.ts +3 -0
- package/dist/cli/dashboard.d.ts.map +1 -0
- package/dist/cli/dashboard.js +183 -0
- package/dist/cli/dashboard.js.map +1 -0
- package/dist/cli/diff.d.ts +3 -0
- package/dist/cli/diff.d.ts.map +1 -0
- package/dist/cli/diff.js +27 -0
- package/dist/cli/diff.js.map +1 -0
- package/dist/cli/eject.d.ts +3 -0
- package/dist/cli/eject.d.ts.map +1 -0
- package/dist/cli/eject.js +27 -0
- package/dist/cli/eject.js.map +1 -0
- package/dist/cli/init.d.ts +3 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +92 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/manifest.d.ts +14 -0
- package/dist/cli/manifest.d.ts.map +1 -0
- package/dist/cli/manifest.js +34 -0
- package/dist/cli/manifest.js.map +1 -0
- package/dist/cli/mcp.d.ts +14 -0
- package/dist/cli/mcp.d.ts.map +1 -0
- package/dist/cli/mcp.js +35 -0
- package/dist/cli/mcp.js.map +1 -0
- package/dist/cli/prompt.d.ts +12 -0
- package/dist/cli/prompt.d.ts.map +1 -0
- package/dist/cli/prompt.js +104 -0
- package/dist/cli/prompt.js.map +1 -0
- package/dist/cli/run/adapters/claude-code.d.ts +16 -0
- package/dist/cli/run/adapters/claude-code.d.ts.map +1 -0
- package/dist/cli/run/adapters/claude-code.js +82 -0
- package/dist/cli/run/adapters/claude-code.js.map +1 -0
- package/dist/cli/run/adapters/copilot.d.ts +16 -0
- package/dist/cli/run/adapters/copilot.d.ts.map +1 -0
- package/dist/cli/run/adapters/copilot.js +84 -0
- package/dist/cli/run/adapters/copilot.js.map +1 -0
- package/dist/cli/run/adapters/cursor.d.ts +16 -0
- package/dist/cli/run/adapters/cursor.d.ts.map +1 -0
- package/dist/cli/run/adapters/cursor.js +81 -0
- package/dist/cli/run/adapters/cursor.js.map +1 -0
- package/dist/cli/run/adapters/index.d.ts +14 -0
- package/dist/cli/run/adapters/index.d.ts.map +1 -0
- package/dist/cli/run/adapters/index.js +35 -0
- package/dist/cli/run/adapters/index.js.map +1 -0
- package/dist/cli/run/executor.d.ts +15 -0
- package/dist/cli/run/executor.d.ts.map +1 -0
- package/dist/cli/run/executor.js +249 -0
- package/dist/cli/run/executor.js.map +1 -0
- package/dist/cli/run/reporter.d.ts +10 -0
- package/dist/cli/run/reporter.d.ts.map +1 -0
- package/dist/cli/run/reporter.js +112 -0
- package/dist/cli/run/reporter.js.map +1 -0
- package/dist/cli/run/schema.d.ts +28 -0
- package/dist/cli/run/schema.d.ts.map +1 -0
- package/dist/cli/run/schema.js +511 -0
- package/dist/cli/run/schema.js.map +1 -0
- package/dist/cli/run.d.ts +6 -0
- package/dist/cli/run.d.ts.map +1 -0
- package/dist/cli/run.js +123 -0
- package/dist/cli/run.js.map +1 -0
- package/dist/cli/stack-config.d.ts +12 -0
- package/dist/cli/stack-config.d.ts.map +1 -0
- package/dist/cli/stack-config.js +146 -0
- package/dist/cli/stack-config.js.map +1 -0
- package/dist/cli/types.d.ts +169 -0
- package/dist/cli/types.d.ts.map +1 -0
- package/dist/cli/types.js +2 -0
- package/dist/cli/types.js.map +1 -0
- package/dist/cli/update.d.ts +3 -0
- package/dist/cli/update.d.ts.map +1 -0
- package/dist/cli/update.js +50 -0
- package/dist/cli/update.js.map +1 -0
- package/package.json +48 -0
- package/src/cli/adapters/claude-code.ts +287 -0
- package/src/cli/adapters/cursor.ts +377 -0
- package/src/cli/adapters/vscode.ts +168 -0
- package/src/cli/copy.ts +79 -0
- package/src/cli/dashboard.ts +225 -0
- package/src/cli/diff.ts +44 -0
- package/src/cli/eject.ts +39 -0
- package/src/cli/init.ts +120 -0
- package/src/cli/manifest.ts +45 -0
- package/src/cli/mcp.ts +49 -0
- package/src/cli/prompt.ts +115 -0
- package/src/cli/run/adapters/claude-code.ts +95 -0
- package/src/cli/run/adapters/copilot.ts +97 -0
- package/src/cli/run/adapters/cursor.ts +94 -0
- package/src/cli/run/adapters/index.ts +40 -0
- package/src/cli/run/executor.ts +292 -0
- package/src/cli/run/reporter.ts +129 -0
- package/src/cli/run/schema.ts +595 -0
- package/src/cli/run.ts +137 -0
- package/src/cli/stack-config.ts +180 -0
- package/src/cli/types.ts +207 -0
- package/src/cli/update.ts +75 -0
- package/src/dashboard/astro.config.mjs +6 -0
- package/src/dashboard/package-lock.json +5455 -0
- package/src/dashboard/package.json +14 -0
- package/src/dashboard/public/data/delegations.ndjson +35 -0
- package/src/dashboard/public/data/panels.ndjson +13 -0
- package/src/dashboard/public/data/sessions.ndjson +50 -0
- package/src/dashboard/public/icon-192.png +0 -0
- package/src/dashboard/scripts/generate-seed-data.ts +355 -0
- package/src/dashboard/src/layouts/Layout.astro +25 -0
- package/src/dashboard/src/pages/index.astro +1070 -0
- package/src/dashboard/src/styles/dashboard.css +1078 -0
- package/src/dashboard/tsconfig.json +6 -0
- package/src/orchestrator/agent-workflows/README.md +22 -0
- package/src/orchestrator/agent-workflows/bug-fix.md +128 -0
- package/src/orchestrator/agent-workflows/data-pipeline.md +145 -0
- package/src/orchestrator/agent-workflows/database-migration.md +159 -0
- package/src/orchestrator/agent-workflows/feature-implementation.md +223 -0
- package/src/orchestrator/agent-workflows/performance-optimization.md +125 -0
- package/src/orchestrator/agent-workflows/refactoring.md +142 -0
- package/src/orchestrator/agent-workflows/schema-changes.md +164 -0
- package/src/orchestrator/agent-workflows/security-audit.md +148 -0
- package/src/orchestrator/agent-workflows/shared-delivery-phase.md +33 -0
- package/src/orchestrator/agents/api-designer.agent.md +68 -0
- package/src/orchestrator/agents/architect.agent.md +129 -0
- package/src/orchestrator/agents/content-engineer.agent.md +57 -0
- package/src/orchestrator/agents/copywriter.agent.md +95 -0
- package/src/orchestrator/agents/data-expert.agent.md +63 -0
- package/src/orchestrator/agents/database-engineer.agent.md +62 -0
- package/src/orchestrator/agents/developer.agent.md +66 -0
- package/src/orchestrator/agents/devops-expert.agent.md +57 -0
- package/src/orchestrator/agents/documentation-writer.agent.md +60 -0
- package/src/orchestrator/agents/performance-expert.agent.md +58 -0
- package/src/orchestrator/agents/release-manager.agent.md +72 -0
- package/src/orchestrator/agents/researcher.agent.md +145 -0
- package/src/orchestrator/agents/reviewer.agent.md +62 -0
- package/src/orchestrator/agents/security-expert.agent.md +64 -0
- package/src/orchestrator/agents/seo-specialist.agent.md +67 -0
- package/src/orchestrator/agents/team-lead.agent.md +644 -0
- package/src/orchestrator/agents/testing-expert.agent.md +85 -0
- package/src/orchestrator/agents/ui-ux-expert.agent.md +63 -0
- package/src/orchestrator/copilot-instructions.md +3 -0
- package/src/orchestrator/customizations/AGENT-EXPERTISE.md +325 -0
- package/src/orchestrator/customizations/AGENT-FAILURES.md +69 -0
- package/src/orchestrator/customizations/AGENT-PERFORMANCE.md +58 -0
- package/src/orchestrator/customizations/DISPUTES.md +162 -0
- package/src/orchestrator/customizations/KNOWLEDGE-GRAPH.md +10 -0
- package/src/orchestrator/customizations/LESSONS-LEARNED.md +70 -0
- package/src/orchestrator/customizations/README.md +59 -0
- package/src/orchestrator/customizations/agents/agent-registry.md +46 -0
- package/src/orchestrator/customizations/agents/skill-matrix.md +142 -0
- package/src/orchestrator/customizations/logs/README.md +181 -0
- package/src/orchestrator/customizations/logs/delegations.ndjson +1 -0
- package/src/orchestrator/customizations/logs/panels.ndjson +1 -0
- package/src/orchestrator/customizations/logs/sessions.ndjson +1 -0
- package/src/orchestrator/customizations/project/docs-structure.md +23 -0
- package/src/orchestrator/customizations/project/tracker-config.md +45 -0
- package/src/orchestrator/customizations/project.instructions.md +64 -0
- package/src/orchestrator/customizations/stack/api-config.md +37 -0
- package/src/orchestrator/customizations/stack/cms-config.md +26 -0
- package/src/orchestrator/customizations/stack/data-pipeline-config.md +41 -0
- package/src/orchestrator/customizations/stack/database-config.md +44 -0
- package/src/orchestrator/customizations/stack/deployment-config.md +45 -0
- package/src/orchestrator/customizations/stack/testing-config.md +56 -0
- package/src/orchestrator/instructions/ai-optimization.instructions.md +143 -0
- package/src/orchestrator/instructions/general.instructions.md +194 -0
- package/src/orchestrator/mcp.json +55 -0
- package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +235 -0
- package/src/orchestrator/prompts/brainstorm.prompt.md +115 -0
- package/src/orchestrator/prompts/bug-fix.prompt.md +141 -0
- package/src/orchestrator/prompts/create-skill.prompt.md +103 -0
- package/src/orchestrator/prompts/generate-task-spec.prompt.md +154 -0
- package/src/orchestrator/prompts/implement-feature.prompt.md +124 -0
- package/src/orchestrator/prompts/metrics-report.prompt.md +142 -0
- package/src/orchestrator/prompts/quick-refinement.prompt.md +137 -0
- package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +100 -0
- package/src/orchestrator/skills/accessibility-standards/SKILL.md +164 -0
- package/src/orchestrator/skills/agent-hooks/SKILL.md +147 -0
- package/src/orchestrator/skills/agent-memory/SKILL.md +144 -0
- package/src/orchestrator/skills/api-patterns/SKILL.md +106 -0
- package/src/orchestrator/skills/browser-testing/SKILL.md +203 -0
- package/src/orchestrator/skills/code-commenting/SKILL.md +133 -0
- package/src/orchestrator/skills/contentful-cms/SKILL.md +43 -0
- package/src/orchestrator/skills/context-map/SKILL.md +135 -0
- package/src/orchestrator/skills/convex-database/SKILL.md +80 -0
- package/src/orchestrator/skills/data-engineering/SKILL.md +99 -0
- package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +49 -0
- package/src/orchestrator/skills/documentation-standards/SKILL.md +85 -0
- package/src/orchestrator/skills/fast-review/SKILL.md +327 -0
- package/src/orchestrator/skills/frontend-design/SKILL.md +42 -0
- package/src/orchestrator/skills/jira-management/SKILL.md +168 -0
- package/src/orchestrator/skills/memory-merger/SKILL.md +123 -0
- package/src/orchestrator/skills/nextjs-patterns/SKILL.md +75 -0
- package/src/orchestrator/skills/nx-workspace/SKILL.md +192 -0
- package/src/orchestrator/skills/panel-majority-vote/SKILL.md +184 -0
- package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +38 -0
- package/src/orchestrator/skills/performance-optimization/SKILL.md +101 -0
- package/src/orchestrator/skills/react-development/SKILL.md +117 -0
- package/src/orchestrator/skills/sanity-cms/SKILL.md +18 -0
- package/src/orchestrator/skills/security-hardening/SKILL.md +118 -0
- package/src/orchestrator/skills/self-improvement/SKILL.md +137 -0
- package/src/orchestrator/skills/seo-patterns/SKILL.md +40 -0
- package/src/orchestrator/skills/session-checkpoints/SKILL.md +205 -0
- package/src/orchestrator/skills/slack-notifications/SKILL.md +211 -0
- package/src/orchestrator/skills/strapi-cms/SKILL.md +43 -0
- package/src/orchestrator/skills/supabase-database/SKILL.md +24 -0
- package/src/orchestrator/skills/task-management/SKILL.md +143 -0
- package/src/orchestrator/skills/team-lead-reference/SKILL.md +317 -0
- package/src/orchestrator/skills/teams-notifications/SKILL.md +249 -0
- package/src/orchestrator/skills/testing-workflow/SKILL.md +134 -0
- package/src/orchestrator/skills/validation-gates/SKILL.md +100 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Filip Mares
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# OpenCastle
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="opencastle-logo.png" alt="OpenCastle" width="480" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<strong>Turn your AI coding assistant into a multi-agent team.</strong>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://www.npmjs.com/package/opencastle"><img src="https://img.shields.io/npm/v/opencastle.svg" alt="npm version" /></a>
|
|
13
|
+
<a href="LICENSE"><img src="https://img.shields.io/npm/l/opencastle.svg" alt="license" /></a>
|
|
14
|
+
<a href="https://www.npmjs.com/package/opencastle"><img src="https://img.shields.io/npm/dm/opencastle.svg" alt="downloads" /></a>
|
|
15
|
+
<a href="https://github.com/etylsarin/opencastle"><img src="https://img.shields.io/github/stars/etylsarin/opencastle.svg?style=social" alt="GitHub stars" /></a>
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
<p align="center">
|
|
19
|
+
<a href="https://www.opencastle.dev/">Website</a> ·
|
|
20
|
+
<a href="#quick-start">Quick Start</a> ·
|
|
21
|
+
<a href="ARCHITECTURE.md">Architecture</a> ·
|
|
22
|
+
<a href="#contributing">Contributing</a>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
Works with **GitHub Copilot**, **Cursor**, and **Claude Code**.
|
|
28
|
+
|
|
29
|
+
One command sets up specialized agents that decompose tasks, work in parallel, and verify each other's output.
|
|
30
|
+
|
|
31
|
+
One command. Any repo. Any IDE.
|
|
32
|
+
|
|
33
|
+
<br>
|
|
34
|
+
|
|
35
|
+
## Quick Start
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npx opencastle init
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The CLI asks about your IDE and stack. It installs agents, skills, and MCP servers tailored to your project.
|
|
42
|
+
|
|
43
|
+
That's it. Start coding with your Team Lead agent.
|
|
44
|
+
|
|
45
|
+
<br>
|
|
46
|
+
|
|
47
|
+
### What gets generated
|
|
48
|
+
|
|
49
|
+
| IDE | Output |
|
|
50
|
+
|-----|--------|
|
|
51
|
+
| **VS Code** | `.github/` — agents, skills, workflows, prompts |
|
|
52
|
+
| **Cursor** | `.cursorrules` + `.cursor/rules/` |
|
|
53
|
+
| **Claude Code** | `CLAUDE.md` + `.claude/` |
|
|
54
|
+
|
|
55
|
+
MCP servers are auto-configured for your stack (Sanity, Supabase, Linear, Slack, etc.).
|
|
56
|
+
|
|
57
|
+
<br>
|
|
58
|
+
|
|
59
|
+
### CLI
|
|
60
|
+
|
|
61
|
+
| Command | Description |
|
|
62
|
+
|---------|-------------|
|
|
63
|
+
| `opencastle init` | Set up agents in your project |
|
|
64
|
+
| `opencastle update` | Update framework files (keeps your config) |
|
|
65
|
+
| `opencastle diff` | Preview what an update would change |
|
|
66
|
+
| `opencastle eject` | Remove the dependency, keep all files |
|
|
67
|
+
| `opencastle run` | Run a [task queue](#task-queue) autonomously |
|
|
68
|
+
| `opencastle dashboard` | Open the observability dashboard |
|
|
69
|
+
|
|
70
|
+
<br>
|
|
71
|
+
|
|
72
|
+
## What's Inside
|
|
73
|
+
|
|
74
|
+
**18 agents.** Developer, UI/UX, Database, Security, Testing, Reviewer, and more.
|
|
75
|
+
|
|
76
|
+
**34 skills.** Loaded on demand to keep context windows lean. Auto-selected during init based on your stack.
|
|
77
|
+
|
|
78
|
+
**8 workflows.** Features, bug fixes, data pipelines, security audits — reproducible execution templates.
|
|
79
|
+
|
|
80
|
+
**Quality gates.** Fast review after every step. Panel majority vote for high-stakes changes. Lint, test, build checks.
|
|
81
|
+
|
|
82
|
+
**Cost-aware routing.** Picks the right model tier (Premium → Economy) based on task complexity.
|
|
83
|
+
|
|
84
|
+
**Self-improving.** Agents capture lessons and graduate them into permanent instructions.
|
|
85
|
+
|
|
86
|
+
<br>
|
|
87
|
+
|
|
88
|
+
## Dashboard
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
npx opencastle dashboard
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
<p align="center">
|
|
95
|
+
<img src="dashboard-screenshot.png" alt="OpenCastle Dashboard" width="800" />
|
|
96
|
+
</p>
|
|
97
|
+
|
|
98
|
+
Visualizes real agent data from your project — sessions, success rates, model usage, execution logs, and panel reviews.
|
|
99
|
+
|
|
100
|
+
Reads from the same NDJSON logs your agents already write. No setup needed.
|
|
101
|
+
|
|
102
|
+
<br>
|
|
103
|
+
|
|
104
|
+
## Task Queue
|
|
105
|
+
|
|
106
|
+
Queue tasks in YAML. Let agents run overnight. Dependencies resolve automatically.
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
npx opencastle run
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
```yaml
|
|
113
|
+
name: "Overnight feature batch"
|
|
114
|
+
concurrency: 2
|
|
115
|
+
adapter: claude-code
|
|
116
|
+
|
|
117
|
+
tasks:
|
|
118
|
+
- id: migrate-db
|
|
119
|
+
agent: database-engineer
|
|
120
|
+
prompt: "Create a reviews table migration."
|
|
121
|
+
timeout: 10m
|
|
122
|
+
|
|
123
|
+
- id: build-component
|
|
124
|
+
agent: ui-ux-expert
|
|
125
|
+
prompt: "Build a ReviewCard component."
|
|
126
|
+
timeout: 15m
|
|
127
|
+
|
|
128
|
+
- id: wire-page
|
|
129
|
+
agent: developer
|
|
130
|
+
prompt: "Add reviews to the place detail page."
|
|
131
|
+
depends_on: [migrate-db, build-component]
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Use the **"Generate Task Spec"** prompt to create this file from a plain description. No YAML by hand.
|
|
135
|
+
|
|
136
|
+
<details>
|
|
137
|
+
<summary>Adapters</summary>
|
|
138
|
+
|
|
139
|
+
| Adapter | Status |
|
|
140
|
+
|---------|--------|
|
|
141
|
+
| `claude-code` | ✅ Supported |
|
|
142
|
+
| `copilot` | ✅ Supported |
|
|
143
|
+
| `cursor` | ✅ Supported |
|
|
144
|
+
|
|
145
|
+
</details>
|
|
146
|
+
|
|
147
|
+
<details>
|
|
148
|
+
<summary>Full reference</summary>
|
|
149
|
+
|
|
150
|
+
**Task fields**
|
|
151
|
+
|
|
152
|
+
| Field | Required | Default | Description |
|
|
153
|
+
|-------|----------|---------|-------------|
|
|
154
|
+
| `id` | Yes | — | Unique identifier |
|
|
155
|
+
| `prompt` | Yes | — | Instructions for the agent |
|
|
156
|
+
| `agent` | No | `developer` | Specialist agent role |
|
|
157
|
+
| `depends_on` | No | `[]` | Tasks that must complete first |
|
|
158
|
+
| `files` | No | `[]` | File/directory scope |
|
|
159
|
+
| `timeout` | No | `30m` | Max duration |
|
|
160
|
+
|
|
161
|
+
**Top-level options**
|
|
162
|
+
|
|
163
|
+
| Field | Default | Description |
|
|
164
|
+
|-------|---------|-------------|
|
|
165
|
+
| `name` | *(required)* | Run name |
|
|
166
|
+
| `concurrency` | `1` | Max parallel tasks |
|
|
167
|
+
| `on_failure` | `continue` | `continue` or `stop` |
|
|
168
|
+
| `adapter` | `claude-code` | Agent runtime |
|
|
169
|
+
|
|
170
|
+
**CLI flags**
|
|
171
|
+
|
|
172
|
+
| Flag | Description |
|
|
173
|
+
|------|-------------|
|
|
174
|
+
| `-f <path>` | Task spec file |
|
|
175
|
+
| `--dry-run` | Preview without running |
|
|
176
|
+
| `-c <n>` | Max parallel tasks |
|
|
177
|
+
| `-a <name>` | Override adapter |
|
|
178
|
+
| `--verbose` | Full agent output |
|
|
179
|
+
|
|
180
|
+
</details>
|
|
181
|
+
|
|
182
|
+
<br>
|
|
183
|
+
|
|
184
|
+
## Architecture
|
|
185
|
+
|
|
186
|
+
18 agents across 4 model tiers, coordinated by a Team Lead.
|
|
187
|
+
|
|
188
|
+
See **[ARCHITECTURE.md](ARCHITECTURE.md)** for the full diagram, workflow templates, and quality gates.
|
|
189
|
+
|
|
190
|
+
<br>
|
|
191
|
+
|
|
192
|
+
## Contributing
|
|
193
|
+
|
|
194
|
+
1. Fork the repo
|
|
195
|
+
2. Create a branch — `feat/your-feature` or `fix/your-fix`
|
|
196
|
+
3. Make changes and ensure `npm run build:cli` passes
|
|
197
|
+
4. Open a PR
|
|
198
|
+
|
|
199
|
+
For large changes, [open an issue](https://github.com/etylsarin/opencastle/issues) first.
|
|
200
|
+
|
|
201
|
+
<br>
|
|
202
|
+
|
|
203
|
+
## Support
|
|
204
|
+
|
|
205
|
+
OpenCastle is free and open-source.
|
|
206
|
+
|
|
207
|
+
<p align="center">
|
|
208
|
+
<a href="https://ko-fi.com/A0A61V4992" target="_blank"><img height="36" style="border:0px;height:36px;" src="https://storage.ko-fi.com/cdn/kofi4.png?v=6" border="0" alt="Buy Me a Coffee at ko-fi.com" /></a>
|
|
209
|
+
</p>
|
|
210
|
+
|
|
211
|
+
<br>
|
|
212
|
+
|
|
213
|
+
## License
|
|
214
|
+
|
|
215
|
+
[MIT](LICENSE) — Filip Mares, 2026
|
package/bin/cli.mjs
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/* global console, process */
|
|
3
|
+
|
|
4
|
+
import { fileURLToPath } from 'node:url'
|
|
5
|
+
import { dirname, resolve } from 'node:path'
|
|
6
|
+
import { readFile } from 'node:fs/promises'
|
|
7
|
+
|
|
8
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
9
|
+
const __dirname = dirname(__filename)
|
|
10
|
+
const pkgRoot = resolve(__dirname, '..')
|
|
11
|
+
|
|
12
|
+
const [, , command, ...args] = process.argv
|
|
13
|
+
|
|
14
|
+
const HELP = `
|
|
15
|
+
🏰 opencastle — Multi-agent orchestration framework
|
|
16
|
+
|
|
17
|
+
Usage:
|
|
18
|
+
npx opencastle <command>
|
|
19
|
+
|
|
20
|
+
Commands:
|
|
21
|
+
init Set up OpenCastle in your project
|
|
22
|
+
update Update framework files (preserves customizations)
|
|
23
|
+
diff Preview what an update would change
|
|
24
|
+
eject Remove dependency, keep all files standalone
|
|
25
|
+
run Process a task queue from a spec file autonomously
|
|
26
|
+
dashboard View agent observability dashboard in your browser
|
|
27
|
+
|
|
28
|
+
Options:
|
|
29
|
+
--help, -h Show this help message
|
|
30
|
+
--version, -v Show version number
|
|
31
|
+
`
|
|
32
|
+
|
|
33
|
+
if (!command || command === '--help' || command === '-h') {
|
|
34
|
+
console.log(HELP)
|
|
35
|
+
process.exit(0)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (command === '--version' || command === '-v') {
|
|
39
|
+
const pkg = JSON.parse(
|
|
40
|
+
await readFile(resolve(pkgRoot, 'package.json'), 'utf8')
|
|
41
|
+
)
|
|
42
|
+
console.log(pkg.version)
|
|
43
|
+
process.exit(0)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const commands = {
|
|
47
|
+
init: () => import('../dist/cli/init.js'),
|
|
48
|
+
update: () => import('../dist/cli/update.js'),
|
|
49
|
+
diff: () => import('../dist/cli/diff.js'),
|
|
50
|
+
eject: () => import('../dist/cli/eject.js'),
|
|
51
|
+
run: () => import('../dist/cli/run.js'),
|
|
52
|
+
dashboard: () => import('../dist/cli/dashboard.js'),
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (!commands[command]) {
|
|
56
|
+
console.error(
|
|
57
|
+
` Unknown command: ${command}\n Run "opencastle --help" for usage.`
|
|
58
|
+
)
|
|
59
|
+
process.exit(1)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
try {
|
|
63
|
+
const mod = await commands[command]()
|
|
64
|
+
await mod.default({ pkgRoot, args })
|
|
65
|
+
} catch (err) {
|
|
66
|
+
console.error(`\n ✗ ${err.message}\n`)
|
|
67
|
+
if (args.includes('--debug')) console.error(err)
|
|
68
|
+
process.exit(1)
|
|
69
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CopyResults, ManagedPaths, StackConfig } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Claude Code adapter.
|
|
4
|
+
*
|
|
5
|
+
* Generates CLAUDE.md (root instructions) and .claude/ structure.
|
|
6
|
+
*
|
|
7
|
+
* copilot-instructions.md → CLAUDE.md (combined with instructions/)
|
|
8
|
+
* skills/\*\/SKILL.md → .claude/skills/<name>.md
|
|
9
|
+
* agent-workflows/*.md → .claude/commands/workflow-<name>.md
|
|
10
|
+
* prompts/*.prompt.md → .claude/commands/<name>.md
|
|
11
|
+
* customizations/ → .claude/customizations/ (scaffolded once)
|
|
12
|
+
*
|
|
13
|
+
* Note: Claude Code has no "agents" concept. Agent definitions are embedded
|
|
14
|
+
* as reference sections within CLAUDE.md so Claude can adopt personas
|
|
15
|
+
* when asked.
|
|
16
|
+
*/
|
|
17
|
+
export declare const IDE_ID = "claude-code";
|
|
18
|
+
export declare const IDE_LABEL = "Claude Code";
|
|
19
|
+
export declare function install(pkgRoot: string, projectRoot: string, stack?: StackConfig): Promise<CopyResults>;
|
|
20
|
+
export declare function update(pkgRoot: string, projectRoot: string, stack?: StackConfig): Promise<CopyResults>;
|
|
21
|
+
export declare function getManagedPaths(): ManagedPaths;
|
|
22
|
+
//# sourceMappingURL=claude-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code.d.ts","sourceRoot":"","sources":["../../../src/cli/adapters/claude-code.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzE;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,MAAM,gBAAgB,CAAA;AACnC,eAAO,MAAM,SAAS,gBAAgB,CAAA;AAsBtC,wBAAsB,OAAO,CAC3B,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,WAAW,CAAC,CA2LtB;AAID,wBAAsB,MAAM,CAC1B,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,WAAW,CAAC,CA0BtB;AAID,wBAAgB,eAAe,IAAI,YAAY,CAU9C"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { resolve, basename } from 'node:path';
|
|
2
|
+
import { mkdir, writeFile, readdir, readFile, unlink, rm } from 'node:fs/promises';
|
|
3
|
+
import { existsSync } from 'node:fs';
|
|
4
|
+
import { copyDir, getOrchestratorRoot } from '../copy.js';
|
|
5
|
+
import { scaffoldMcpConfig } from '../mcp.js';
|
|
6
|
+
import { getExcludedSkills, getExcludedAgents, getCustomizationsTransform } from '../stack-config.js';
|
|
7
|
+
/**
|
|
8
|
+
* Claude Code adapter.
|
|
9
|
+
*
|
|
10
|
+
* Generates CLAUDE.md (root instructions) and .claude/ structure.
|
|
11
|
+
*
|
|
12
|
+
* copilot-instructions.md → CLAUDE.md (combined with instructions/)
|
|
13
|
+
* skills/\*\/SKILL.md → .claude/skills/<name>.md
|
|
14
|
+
* agent-workflows/*.md → .claude/commands/workflow-<name>.md
|
|
15
|
+
* prompts/*.prompt.md → .claude/commands/<name>.md
|
|
16
|
+
* customizations/ → .claude/customizations/ (scaffolded once)
|
|
17
|
+
*
|
|
18
|
+
* Note: Claude Code has no "agents" concept. Agent definitions are embedded
|
|
19
|
+
* as reference sections within CLAUDE.md so Claude can adopt personas
|
|
20
|
+
* when asked.
|
|
21
|
+
*/
|
|
22
|
+
export const IDE_ID = 'claude-code';
|
|
23
|
+
export const IDE_LABEL = 'Claude Code';
|
|
24
|
+
// ─── Helpers ──────────────────────────────────────────────────────
|
|
25
|
+
function stripFrontmatter(content) {
|
|
26
|
+
const m = content.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/);
|
|
27
|
+
return m ? m[2].trim() : content.trim();
|
|
28
|
+
}
|
|
29
|
+
function parseFrontmatterMeta(content) {
|
|
30
|
+
const m = content.match(/^---\n([\s\S]*?)\n---/);
|
|
31
|
+
if (!m)
|
|
32
|
+
return {};
|
|
33
|
+
const meta = {};
|
|
34
|
+
for (const line of m[1].split('\n')) {
|
|
35
|
+
const kv = line.match(/^(\w[\w-]*):\s*['"]?(.+?)['"]?\s*$/);
|
|
36
|
+
if (kv)
|
|
37
|
+
meta[kv[1]] = kv[2];
|
|
38
|
+
}
|
|
39
|
+
return meta;
|
|
40
|
+
}
|
|
41
|
+
// ─── Install ──────────────────────────────────────────────────────
|
|
42
|
+
export async function install(pkgRoot, projectRoot, stack) {
|
|
43
|
+
const srcRoot = getOrchestratorRoot(pkgRoot);
|
|
44
|
+
const results = { copied: [], skipped: [], created: [] };
|
|
45
|
+
const excludedSkills = stack ? getExcludedSkills(stack) : new Set();
|
|
46
|
+
const excludedAgents = stack ? getExcludedAgents(stack) : new Set();
|
|
47
|
+
// 1. Build CLAUDE.md ← copilot-instructions + instructions/* + agent index + skill index
|
|
48
|
+
const claudeMd = resolve(projectRoot, 'CLAUDE.md');
|
|
49
|
+
if (!existsSync(claudeMd)) {
|
|
50
|
+
const sections = [];
|
|
51
|
+
// Main instructions
|
|
52
|
+
const main = await readFile(resolve(srcRoot, 'copilot-instructions.md'), 'utf8');
|
|
53
|
+
sections.push(stripFrontmatter(main));
|
|
54
|
+
// Always-loaded instruction files
|
|
55
|
+
const instDir = resolve(srcRoot, 'instructions');
|
|
56
|
+
if (existsSync(instDir)) {
|
|
57
|
+
for (const file of (await readdir(instDir)).sort()) {
|
|
58
|
+
if (!file.endsWith('.md'))
|
|
59
|
+
continue;
|
|
60
|
+
const content = await readFile(resolve(instDir, file), 'utf8');
|
|
61
|
+
sections.push(`\n---\n\n<!-- Source: instructions/${file} -->\n\n${stripFrontmatter(content)}`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// Agent reference (so Claude can adopt personas)
|
|
65
|
+
const agentsDir = resolve(srcRoot, 'agents');
|
|
66
|
+
if (existsSync(agentsDir)) {
|
|
67
|
+
const agentLines = ['\n---\n\n## Agent Definitions\n'];
|
|
68
|
+
agentLines.push('The following agent personas are available. Adopt the appropriate persona when asked.\n');
|
|
69
|
+
for (const file of (await readdir(agentsDir)).sort()) {
|
|
70
|
+
if (!file.endsWith('.md'))
|
|
71
|
+
continue;
|
|
72
|
+
if (excludedAgents.has(file))
|
|
73
|
+
continue;
|
|
74
|
+
const meta = parseFrontmatterMeta(await readFile(resolve(agentsDir, file), 'utf8'));
|
|
75
|
+
const name = meta['name'] ?? basename(file, '.agent.md');
|
|
76
|
+
const desc = meta['description'] ?? '';
|
|
77
|
+
agentLines.push(`- **${name}**: ${desc}`);
|
|
78
|
+
}
|
|
79
|
+
agentLines.push('\nFull agent definitions are in `.claude/agents/`. Read the relevant file when adopting a persona.');
|
|
80
|
+
sections.push(agentLines.join('\n'));
|
|
81
|
+
}
|
|
82
|
+
// Skill index
|
|
83
|
+
const skillsDir = resolve(srcRoot, 'skills');
|
|
84
|
+
if (existsSync(skillsDir)) {
|
|
85
|
+
const skillLines = ['\n---\n\n## Available Skills\n'];
|
|
86
|
+
skillLines.push('Skills are on-demand knowledge files. Read the file when the task matches.\n');
|
|
87
|
+
const subdirs = (await readdir(skillsDir, { withFileTypes: true })).filter((e) => e.isDirectory());
|
|
88
|
+
for (const entry of subdirs.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
89
|
+
if (excludedSkills.has(entry.name))
|
|
90
|
+
continue;
|
|
91
|
+
const skillFile = resolve(skillsDir, entry.name, 'SKILL.md');
|
|
92
|
+
if (!existsSync(skillFile))
|
|
93
|
+
continue;
|
|
94
|
+
const meta = parseFrontmatterMeta(await readFile(skillFile, 'utf8'));
|
|
95
|
+
const desc = meta['description'] ?? '';
|
|
96
|
+
skillLines.push(`- **${entry.name}** (\`.claude/skills/${entry.name}.md\`): ${desc}`);
|
|
97
|
+
}
|
|
98
|
+
sections.push(skillLines.join('\n'));
|
|
99
|
+
}
|
|
100
|
+
await writeFile(claudeMd, sections.join('\n') + '\n');
|
|
101
|
+
results.created.push(claudeMd);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
results.skipped.push(claudeMd);
|
|
105
|
+
}
|
|
106
|
+
const claudeDir = resolve(projectRoot, '.claude');
|
|
107
|
+
// 2. Agent definitions → .claude/agents/
|
|
108
|
+
const agentsDir = resolve(srcRoot, 'agents');
|
|
109
|
+
if (existsSync(agentsDir)) {
|
|
110
|
+
const destAgents = resolve(claudeDir, 'agents');
|
|
111
|
+
await mkdir(destAgents, { recursive: true });
|
|
112
|
+
for (const file of await readdir(agentsDir)) {
|
|
113
|
+
if (!file.endsWith('.md'))
|
|
114
|
+
continue;
|
|
115
|
+
if (excludedAgents.has(file))
|
|
116
|
+
continue;
|
|
117
|
+
const destPath = resolve(destAgents, file);
|
|
118
|
+
if (existsSync(destPath)) {
|
|
119
|
+
results.skipped.push(destPath);
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
const content = await readFile(resolve(agentsDir, file), 'utf8');
|
|
123
|
+
await writeFile(destPath, stripFrontmatter(content) + '\n');
|
|
124
|
+
results.created.push(destPath);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
// 3. Skills → .claude/skills/<name>.md
|
|
128
|
+
const skillsDir = resolve(srcRoot, 'skills');
|
|
129
|
+
if (existsSync(skillsDir)) {
|
|
130
|
+
const destSkills = resolve(claudeDir, 'skills');
|
|
131
|
+
await mkdir(destSkills, { recursive: true });
|
|
132
|
+
const subdirs = (await readdir(skillsDir, { withFileTypes: true })).filter((e) => e.isDirectory());
|
|
133
|
+
for (const entry of subdirs) {
|
|
134
|
+
if (excludedSkills.has(entry.name))
|
|
135
|
+
continue;
|
|
136
|
+
const skillFile = resolve(skillsDir, entry.name, 'SKILL.md');
|
|
137
|
+
if (!existsSync(skillFile))
|
|
138
|
+
continue;
|
|
139
|
+
const destPath = resolve(destSkills, `${entry.name}.md`);
|
|
140
|
+
if (existsSync(destPath)) {
|
|
141
|
+
results.skipped.push(destPath);
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
const content = await readFile(skillFile, 'utf8');
|
|
145
|
+
await writeFile(destPath, stripFrontmatter(content) + '\n');
|
|
146
|
+
results.created.push(destPath);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
// 4. Prompts → .claude/commands/<name>.md
|
|
150
|
+
const promptDir = resolve(srcRoot, 'prompts');
|
|
151
|
+
if (existsSync(promptDir)) {
|
|
152
|
+
const destCmds = resolve(claudeDir, 'commands');
|
|
153
|
+
await mkdir(destCmds, { recursive: true });
|
|
154
|
+
for (const file of await readdir(promptDir)) {
|
|
155
|
+
if (!file.endsWith('.md'))
|
|
156
|
+
continue;
|
|
157
|
+
const name = basename(file, '.prompt.md') || basename(file, '.md');
|
|
158
|
+
const destPath = resolve(destCmds, `${name}.md`);
|
|
159
|
+
if (existsSync(destPath)) {
|
|
160
|
+
results.skipped.push(destPath);
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
const content = await readFile(resolve(promptDir, file), 'utf8');
|
|
164
|
+
await writeFile(destPath, stripFrontmatter(content) + '\n');
|
|
165
|
+
results.created.push(destPath);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
// 5. Agent Workflows → .claude/commands/workflow-<name>.md
|
|
169
|
+
const wfDir = resolve(srcRoot, 'agent-workflows');
|
|
170
|
+
if (existsSync(wfDir)) {
|
|
171
|
+
const destCmds = resolve(claudeDir, 'commands');
|
|
172
|
+
await mkdir(destCmds, { recursive: true });
|
|
173
|
+
for (const file of await readdir(wfDir)) {
|
|
174
|
+
if (!file.endsWith('.md'))
|
|
175
|
+
continue;
|
|
176
|
+
const name = basename(file, '.md');
|
|
177
|
+
const destPath = resolve(destCmds, `workflow-${name}.md`);
|
|
178
|
+
if (existsSync(destPath)) {
|
|
179
|
+
results.skipped.push(destPath);
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
const content = await readFile(resolve(wfDir, file), 'utf8');
|
|
183
|
+
await writeFile(destPath, stripFrontmatter(content) + '\n');
|
|
184
|
+
results.created.push(destPath);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
// 6. Customizations (scaffold once, pre-populated with stack choices)
|
|
188
|
+
const custDir = resolve(srcRoot, 'customizations');
|
|
189
|
+
if (existsSync(custDir)) {
|
|
190
|
+
const destCust = resolve(claudeDir, 'customizations');
|
|
191
|
+
const custTransform = stack ? getCustomizationsTransform(stack) : undefined;
|
|
192
|
+
const sub = await copyDir(custDir, destCust, { transform: custTransform });
|
|
193
|
+
results.created.push(...sub.created);
|
|
194
|
+
results.skipped.push(...sub.skipped);
|
|
195
|
+
}
|
|
196
|
+
// 7. MCP server config → .claude/mcp.json (scaffold once)
|
|
197
|
+
const mcpResult = await scaffoldMcpConfig(pkgRoot, projectRoot, '.claude/mcp.json', stack);
|
|
198
|
+
results[mcpResult.action].push(mcpResult.path);
|
|
199
|
+
return results;
|
|
200
|
+
}
|
|
201
|
+
// ─── Update ───────────────────────────────────────────────────────
|
|
202
|
+
export async function update(pkgRoot, projectRoot, stack) {
|
|
203
|
+
const results = { copied: [], skipped: [], created: [] };
|
|
204
|
+
const claudeDir = resolve(projectRoot, '.claude');
|
|
205
|
+
// 1. Regenerate CLAUDE.md (overwrite)
|
|
206
|
+
const claudeMd = resolve(projectRoot, 'CLAUDE.md');
|
|
207
|
+
if (existsSync(claudeMd)) {
|
|
208
|
+
await unlink(claudeMd);
|
|
209
|
+
}
|
|
210
|
+
// 2. Remove existing framework files so install() recreates them
|
|
211
|
+
const frameworkDirs = ['agents', 'skills', 'commands'];
|
|
212
|
+
for (const dir of frameworkDirs) {
|
|
213
|
+
const dirPath = resolve(claudeDir, dir);
|
|
214
|
+
if (existsSync(dirPath)) {
|
|
215
|
+
await rm(dirPath, { recursive: true });
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
// 3. Re-run full install (CLAUDE.md + agents + skills + commands)
|
|
219
|
+
const installResult = await install(pkgRoot, projectRoot, stack);
|
|
220
|
+
// Everything install created is an "update" copy
|
|
221
|
+
results.copied.push(...installResult.created);
|
|
222
|
+
results.skipped.push(...installResult.skipped);
|
|
223
|
+
return results;
|
|
224
|
+
}
|
|
225
|
+
// ─── Managed paths ────────────────────────────────────────────────
|
|
226
|
+
export function getManagedPaths() {
|
|
227
|
+
return {
|
|
228
|
+
framework: [
|
|
229
|
+
'CLAUDE.md',
|
|
230
|
+
'.claude/agents/',
|
|
231
|
+
'.claude/skills/',
|
|
232
|
+
'.claude/commands/',
|
|
233
|
+
],
|
|
234
|
+
customizable: ['.claude/customizations/', '.claude/mcp.json'],
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
//# sourceMapp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EAAE,CAAC,CAAA;QACxC,CAAC;IACH,CAAC;IAED,kEAAkE;IAClE,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,CAAA;IAChE,iDAAiD;IACjD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,CAAA;IAC7C,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,CAAA;IAE9C,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,qEAAqE;AAErE,MAAM,UAAU,eAAe;IAC7B,OAAO;QACL,SAAS,EAAE;YACT,WAAW;YACX,iBAAiB;YACjB,iBAAiB;YACjB,mBAAmB;SACpB;QACD,YAAY,EAAE,CAAC,yBAAyB,EAAE,kBAAkB,CAAC;KAC9D,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CopyResults, ManagedPaths, StackConfig } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Cursor adapter.
|
|
4
|
+
*
|
|
5
|
+
* Transforms Copilot-format orchestrator files into Cursor's .mdc rule format.
|
|
6
|
+
*
|
|
7
|
+
* copilot-instructions.md → .cursorrules
|
|
8
|
+
* instructions/*.md → .cursor/rules/*.mdc (alwaysApply: true)
|
|
9
|
+
* agents/*.agent.md → .cursor/rules/agents/*.mdc (description-triggered)
|
|
10
|
+
* skills/\*\/SKILL.md → .cursor/rules/skills/*.mdc (alwaysApply: false)
|
|
11
|
+
* agent-workflows/*.md → .cursor/rules/agent-workflows/*.mdc
|
|
12
|
+
* prompts/*.prompt.md → .cursor/rules/prompts/*.mdc
|
|
13
|
+
* customizations/ → .cursor/rules/customizations/ (scaffolded once)
|
|
14
|
+
*/
|
|
15
|
+
export declare const IDE_ID = "cursor";
|
|
16
|
+
export declare const IDE_LABEL = "Cursor";
|
|
17
|
+
export declare function install(pkgRoot: string, projectRoot: string, stack?: StackConfig): Promise<CopyResults>;
|
|
18
|
+
export declare function update(pkgRoot: string, projectRoot: string, stack?: StackConfig): Promise<CopyResults>;
|
|
19
|
+
export declare function getManagedPaths(): ManagedPaths;
|
|
20
|
+
//# sourceMappingURL=cursor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../../src/cli/adapters/cursor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzE;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,eAAO,MAAM,SAAS,WAAW,CAAA;AAkGjC,wBAAsB,OAAO,CAC3B,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,WAAW,CAAC,CAwEtB;AAID,wBAAsB,MAAM,CAC1B,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,WAAW,CAAC,CAyDtB;AAID,wBAAgB,eAAe,IAAI,YAAY,CAgB9C"}
|