@mindfoldhq/trellis 0.3.10 → 0.4.0-beta.10
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/README.md +19 -5
- package/dist/cli/index.js +5 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts +4 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +240 -43
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +206 -47
- package/dist/commands/update.js.map +1 -1
- package/dist/configurators/codebuddy.d.ts +11 -0
- package/dist/configurators/codebuddy.d.ts.map +1 -0
- package/dist/configurators/codebuddy.js +58 -0
- package/dist/configurators/codebuddy.js.map +1 -0
- package/dist/configurators/codex.d.ts +7 -4
- package/dist/configurators/codex.d.ts.map +1 -1
- package/dist/configurators/codex.js +40 -10
- package/dist/configurators/codex.js.map +1 -1
- package/dist/configurators/copilot.d.ts +9 -0
- package/dist/configurators/copilot.d.ts.map +1 -0
- package/dist/configurators/copilot.js +34 -0
- package/dist/configurators/copilot.js.map +1 -0
- package/dist/configurators/index.d.ts +11 -1
- package/dist/configurators/index.d.ts.map +1 -1
- package/dist/configurators/index.js +72 -4
- package/dist/configurators/index.js.map +1 -1
- package/dist/configurators/opencode.d.ts +1 -1
- package/dist/configurators/opencode.js +1 -1
- package/dist/configurators/windsurf.d.ts +8 -0
- package/dist/configurators/windsurf.d.ts.map +1 -0
- package/dist/configurators/windsurf.js +18 -0
- package/dist/configurators/windsurf.js.map +1 -0
- package/dist/configurators/workflow.d.ts +6 -2
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +90 -58
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/migrations/index.d.ts +1 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +2 -0
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/manifests/0.4.0-beta.1.json +228 -0
- package/dist/migrations/manifests/0.4.0-beta.10.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.2.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.3.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.4.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.5.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.6.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.7.json +9 -0
- package/dist/migrations/manifests/0.4.0-beta.8.json +34 -0
- package/dist/migrations/manifests/0.4.0-beta.9.json +9 -0
- package/dist/templates/claude/agents/dispatch.md +1 -2
- package/dist/templates/claude/agents/implement.md +2 -3
- package/dist/templates/claude/commands/trellis/before-dev.md +29 -0
- package/dist/templates/claude/commands/trellis/check.md +25 -0
- package/dist/templates/claude/commands/trellis/create-command.md +2 -2
- package/dist/templates/claude/commands/trellis/onboard.md +13 -13
- package/dist/templates/claude/commands/trellis/parallel.md +1 -2
- package/dist/templates/claude/commands/trellis/record-session.md +3 -2
- package/dist/templates/claude/commands/trellis/start.md +8 -4
- package/dist/templates/claude/hooks/inject-subagent-context.py +29 -14
- package/dist/templates/claude/hooks/ralph-loop.py +18 -10
- package/dist/templates/claude/hooks/session-start.py +201 -9
- package/dist/templates/claude/hooks/statusline.py +211 -0
- package/dist/templates/claude/settings.json +4 -0
- package/dist/templates/codebuddy/commands/trellis/before-dev.md +29 -0
- package/dist/templates/codebuddy/commands/trellis/brainstorm.md +487 -0
- package/dist/templates/codebuddy/commands/trellis/break-loop.md +107 -0
- package/dist/templates/codebuddy/commands/trellis/check-cross-layer.md +153 -0
- package/dist/templates/codebuddy/commands/trellis/check.md +25 -0
- package/dist/templates/codebuddy/commands/trellis/create-command.md +154 -0
- package/dist/templates/codebuddy/commands/trellis/finish-work.md +143 -0
- package/dist/templates/codebuddy/commands/trellis/integrate-skill.md +219 -0
- package/dist/templates/codebuddy/commands/trellis/onboard.md +358 -0
- package/dist/templates/codebuddy/commands/trellis/record-session.md +61 -0
- package/dist/templates/codebuddy/commands/trellis/start.md +373 -0
- package/dist/templates/codebuddy/commands/trellis/update-spec.md +354 -0
- package/dist/templates/codebuddy/index.d.ts +25 -0
- package/dist/templates/codebuddy/index.d.ts.map +1 -0
- package/dist/templates/codebuddy/index.js +45 -0
- package/dist/templates/codebuddy/index.js.map +1 -0
- package/dist/templates/codex/agents/check.toml +23 -0
- package/dist/templates/codex/agents/implement.toml +19 -0
- package/dist/templates/codex/agents/research.toml +26 -0
- package/dist/templates/codex/codex-skills/parallel/SKILL.md +194 -0
- package/dist/templates/codex/config.toml +5 -0
- package/dist/templates/codex/hooks/session-start.py +228 -0
- package/dist/templates/codex/hooks.json +16 -0
- package/dist/templates/codex/index.d.ts +27 -5
- package/dist/templates/codex/index.d.ts.map +1 -1
- package/dist/templates/codex/index.js +60 -8
- package/dist/templates/codex/index.js.map +1 -1
- package/dist/templates/codex/skills/before-dev/SKILL.md +34 -0
- package/dist/templates/codex/skills/brainstorm/SKILL.md +1 -1
- package/dist/templates/codex/skills/break-loop/SKILL.md +1 -1
- package/dist/templates/codex/skills/check/SKILL.md +30 -0
- package/dist/templates/codex/skills/check-cross-layer/SKILL.md +1 -1
- package/dist/templates/codex/skills/create-command/SKILL.md +3 -3
- package/dist/templates/codex/skills/finish-work/SKILL.md +1 -1
- package/dist/templates/codex/skills/improve-ut/SKILL.md +69 -0
- package/dist/templates/codex/skills/integrate-skill/SKILL.md +1 -1
- package/dist/templates/codex/skills/onboard/SKILL.md +12 -12
- package/dist/templates/codex/skills/record-session/SKILL.md +4 -3
- package/dist/templates/codex/skills/start/SKILL.md +9 -4
- package/dist/templates/codex/skills/update-spec/SKILL.md +1 -1
- package/dist/templates/copilot/hooks/session-start.py +218 -0
- package/dist/templates/copilot/hooks.json +11 -0
- package/dist/templates/copilot/index.d.ts +23 -0
- package/dist/templates/copilot/index.d.ts.map +1 -0
- package/dist/templates/copilot/index.js +54 -0
- package/dist/templates/copilot/index.js.map +1 -0
- package/dist/templates/copilot/prompts/before-dev.prompt.md +33 -0
- package/dist/templates/copilot/prompts/brainstorm.prompt.md +491 -0
- package/dist/templates/copilot/prompts/break-loop.prompt.md +129 -0
- package/dist/templates/copilot/prompts/check-cross-layer.prompt.md +157 -0
- package/dist/templates/copilot/prompts/check.prompt.md +29 -0
- package/dist/templates/copilot/prompts/create-command.prompt.md +116 -0
- package/dist/templates/copilot/prompts/finish-work.prompt.md +157 -0
- package/dist/templates/copilot/prompts/integrate-skill.prompt.md +223 -0
- package/dist/templates/copilot/prompts/onboard.prompt.md +362 -0
- package/dist/templates/copilot/prompts/parallel.prompt.md +196 -0
- package/dist/templates/copilot/prompts/record-session.prompt.md +66 -0
- package/dist/templates/copilot/prompts/start.prompt.md +397 -0
- package/dist/templates/copilot/prompts/update-spec.prompt.md +358 -0
- package/dist/templates/cursor/commands/trellis-before-dev.md +29 -0
- package/dist/templates/cursor/commands/trellis-check.md +25 -0
- package/dist/templates/cursor/commands/trellis-create-command.md +2 -2
- package/dist/templates/cursor/commands/trellis-onboard.md +13 -13
- package/dist/templates/cursor/commands/trellis-record-session.md +3 -2
- package/dist/templates/cursor/commands/trellis-start.md +7 -16
- package/dist/templates/extract.d.ts +36 -0
- package/dist/templates/extract.d.ts.map +1 -1
- package/dist/templates/extract.js +64 -0
- package/dist/templates/extract.js.map +1 -1
- package/dist/templates/gemini/commands/trellis/before-dev.toml +33 -0
- package/dist/templates/gemini/commands/trellis/check.toml +29 -0
- package/dist/templates/gemini/commands/trellis/create-command.toml +2 -2
- package/dist/templates/gemini/commands/trellis/onboard.toml +2 -2
- package/dist/templates/gemini/commands/trellis/record-session.toml +3 -2
- package/dist/templates/gemini/commands/trellis/start.toml +9 -4
- package/dist/templates/iflow/agents/dispatch.md +1 -2
- package/dist/templates/iflow/agents/implement.md +2 -3
- package/dist/templates/iflow/commands/trellis/before-dev.md +29 -0
- package/dist/templates/iflow/commands/trellis/check.md +25 -0
- package/dist/templates/iflow/commands/trellis/create-command.md +2 -2
- package/dist/templates/iflow/commands/trellis/onboard.md +13 -13
- package/dist/templates/iflow/commands/trellis/parallel.md +1 -2
- package/dist/templates/iflow/commands/trellis/record-session.md +3 -2
- package/dist/templates/iflow/commands/trellis/start.md +8 -4
- package/dist/templates/iflow/hooks/inject-subagent-context.py +29 -14
- package/dist/templates/iflow/hooks/ralph-loop.py +8 -1
- package/dist/templates/iflow/hooks/session-start.py +187 -8
- package/dist/templates/kilo/workflows/before-dev.md +29 -0
- package/dist/templates/kilo/workflows/check.md +25 -0
- package/dist/templates/kilo/workflows/create-command.md +2 -2
- package/dist/templates/kilo/workflows/onboard.md +13 -13
- package/dist/templates/kilo/workflows/parallel.md +1 -2
- package/dist/templates/kilo/workflows/record-session.md +3 -2
- package/dist/templates/kilo/workflows/start.md +8 -3
- package/dist/templates/kiro/skills/before-dev/SKILL.md +34 -0
- package/dist/templates/kiro/skills/brainstorm/SKILL.md +1 -1
- package/dist/templates/kiro/skills/break-loop/SKILL.md +1 -1
- package/dist/templates/kiro/skills/check/SKILL.md +30 -0
- package/dist/templates/kiro/skills/check-cross-layer/SKILL.md +1 -1
- package/dist/templates/kiro/skills/create-command/SKILL.md +3 -3
- package/dist/templates/kiro/skills/finish-work/SKILL.md +1 -1
- package/dist/templates/kiro/skills/integrate-skill/SKILL.md +1 -1
- package/dist/templates/kiro/skills/onboard/SKILL.md +12 -12
- package/dist/templates/kiro/skills/record-session/SKILL.md +4 -3
- package/dist/templates/kiro/skills/start/SKILL.md +9 -4
- package/dist/templates/kiro/skills/update-spec/SKILL.md +1 -1
- package/dist/templates/markdown/agents.md +4 -0
- package/dist/templates/markdown/spec/backend/directory-structure.md +1 -1
- package/dist/templates/markdown/spec/backend/script-conventions.md +93 -0
- package/dist/templates/markdown/workspace-index.md +2 -0
- package/dist/templates/opencode/agents/dispatch.md +21 -21
- package/dist/templates/opencode/agents/implement.md +2 -2
- package/dist/templates/opencode/agents/research.md +1 -2
- package/dist/templates/opencode/commands/trellis/before-dev.md +29 -0
- package/dist/templates/opencode/commands/trellis/check.md +25 -0
- package/dist/templates/opencode/commands/trellis/create-command.md +2 -2
- package/dist/templates/opencode/commands/trellis/onboard.md +13 -13
- package/dist/templates/opencode/commands/trellis/parallel.md +1 -2
- package/dist/templates/opencode/commands/trellis/record-session.md +3 -2
- package/dist/templates/opencode/commands/trellis/start.md +8 -3
- package/dist/templates/opencode/lib/trellis-context.js +42 -2
- package/dist/templates/opencode/{plugin → plugins}/inject-subagent-context.js +45 -18
- package/dist/templates/opencode/{plugin → plugins}/session-start.js +156 -28
- package/dist/templates/qoder/skills/before-dev/SKILL.md +34 -0
- package/dist/templates/qoder/skills/brainstorm/SKILL.md +1 -1
- package/dist/templates/qoder/skills/break-loop/SKILL.md +1 -1
- package/dist/templates/qoder/skills/check/SKILL.md +30 -0
- package/dist/templates/qoder/skills/check-cross-layer/SKILL.md +1 -1
- package/dist/templates/qoder/skills/create-command/SKILL.md +3 -3
- package/dist/templates/qoder/skills/finish-work/SKILL.md +1 -1
- package/dist/templates/qoder/skills/integrate-skill/SKILL.md +1 -1
- package/dist/templates/qoder/skills/onboard/SKILL.md +14 -14
- package/dist/templates/qoder/skills/record-session/SKILL.md +4 -3
- package/dist/templates/qoder/skills/start/SKILL.md +9 -4
- package/dist/templates/qoder/skills/update-spec/SKILL.md +1 -1
- package/dist/templates/trellis/config.yaml +20 -0
- package/dist/templates/trellis/index.d.ts +11 -0
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +22 -0
- package/dist/templates/trellis/index.js.map +1 -1
- package/dist/templates/trellis/scripts/add_session.py +111 -13
- package/dist/templates/trellis/scripts/common/__init__.py +2 -0
- package/dist/templates/trellis/scripts/common/cli_adapter.py +164 -64
- package/dist/templates/trellis/scripts/common/config.py +192 -0
- package/dist/templates/trellis/scripts/common/developer.py +2 -2
- package/dist/templates/trellis/scripts/common/git.py +31 -0
- package/dist/templates/trellis/scripts/common/git_context.py +23 -586
- package/dist/templates/trellis/scripts/common/io.py +37 -0
- package/dist/templates/trellis/scripts/common/log.py +45 -0
- package/dist/templates/trellis/scripts/common/packages_context.py +238 -0
- package/dist/templates/trellis/scripts/common/paths.py +103 -6
- package/dist/templates/trellis/scripts/common/phase.py +50 -49
- package/dist/templates/trellis/scripts/common/registry.py +41 -72
- package/dist/templates/trellis/scripts/common/session_context.py +562 -0
- package/dist/templates/trellis/scripts/common/task_context.py +410 -0
- package/dist/templates/trellis/scripts/common/task_queue.py +27 -98
- package/dist/templates/trellis/scripts/common/task_store.py +536 -0
- package/dist/templates/trellis/scripts/common/task_utils.py +106 -10
- package/dist/templates/trellis/scripts/common/tasks.py +109 -0
- package/dist/templates/trellis/scripts/common/types.py +112 -0
- package/dist/templates/trellis/scripts/create_bootstrap.py +32 -27
- package/dist/templates/trellis/scripts/hooks/linear_sync.py +243 -0
- package/dist/templates/trellis/scripts/multi_agent/_bootstrap.py +17 -0
- package/dist/templates/trellis/scripts/multi_agent/cleanup.py +43 -48
- package/dist/templates/trellis/scripts/multi_agent/create_pr.py +336 -45
- package/dist/templates/trellis/scripts/multi_agent/plan.py +9 -32
- package/dist/templates/trellis/scripts/multi_agent/start.py +142 -68
- package/dist/templates/trellis/scripts/multi_agent/status.py +12 -753
- package/dist/templates/trellis/scripts/multi_agent/status_display.py +542 -0
- package/dist/templates/trellis/scripts/multi_agent/status_monitor.py +225 -0
- package/dist/templates/trellis/scripts/task.py +51 -976
- package/dist/templates/trellis/scripts-shell-archive/create-bootstrap.sh +1 -1
- package/dist/templates/trellis/workflow.md +38 -38
- package/dist/templates/windsurf/index.d.ts +21 -0
- package/dist/templates/windsurf/index.d.ts.map +1 -0
- package/dist/templates/windsurf/index.js +44 -0
- package/dist/templates/windsurf/index.js.map +1 -0
- package/dist/templates/windsurf/workflows/trellis-before-dev.md +31 -0
- package/dist/templates/windsurf/workflows/trellis-brainstorm.md +491 -0
- package/dist/templates/windsurf/workflows/trellis-break-loop.md +111 -0
- package/dist/templates/windsurf/workflows/trellis-check-cross-layer.md +157 -0
- package/dist/templates/windsurf/workflows/trellis-check.md +27 -0
- package/dist/templates/windsurf/workflows/trellis-create-command.md +154 -0
- package/dist/templates/windsurf/workflows/trellis-finish-work.md +147 -0
- package/dist/templates/windsurf/workflows/trellis-integrate-skill.md +220 -0
- package/dist/templates/windsurf/workflows/trellis-onboard.md +362 -0
- package/dist/templates/windsurf/workflows/trellis-record-session.md +66 -0
- package/dist/templates/windsurf/workflows/trellis-start.md +373 -0
- package/dist/templates/windsurf/workflows/trellis-update-spec.md +358 -0
- package/dist/types/ai-tools.d.ts +15 -3
- package/dist/types/ai-tools.d.ts.map +1 -1
- package/dist/types/ai-tools.js +42 -2
- package/dist/types/ai-tools.js.map +1 -1
- package/dist/types/migration.d.ts +3 -1
- package/dist/types/migration.d.ts.map +1 -1
- package/dist/utils/project-detector.d.ts +28 -0
- package/dist/utils/project-detector.d.ts.map +1 -1
- package/dist/utils/project-detector.js +371 -0
- package/dist/utils/project-detector.js.map +1 -1
- package/dist/utils/template-fetcher.d.ts +19 -6
- package/dist/utils/template-fetcher.d.ts.map +1 -1
- package/dist/utils/template-fetcher.js +99 -17
- package/dist/utils/template-fetcher.js.map +1 -1
- package/package.json +1 -1
- package/dist/templates/claude/commands/trellis/before-backend-dev.md +0 -13
- package/dist/templates/claude/commands/trellis/before-frontend-dev.md +0 -13
- package/dist/templates/claude/commands/trellis/check-backend.md +0 -13
- package/dist/templates/claude/commands/trellis/check-frontend.md +0 -13
- package/dist/templates/codex/skills/before-backend-dev/SKILL.md +0 -18
- package/dist/templates/codex/skills/before-frontend-dev/SKILL.md +0 -18
- package/dist/templates/codex/skills/check-backend/SKILL.md +0 -18
- package/dist/templates/codex/skills/check-frontend/SKILL.md +0 -18
- package/dist/templates/cursor/commands/trellis-before-backend-dev.md +0 -13
- package/dist/templates/cursor/commands/trellis-before-frontend-dev.md +0 -13
- package/dist/templates/cursor/commands/trellis-check-backend.md +0 -13
- package/dist/templates/cursor/commands/trellis-check-frontend.md +0 -13
- package/dist/templates/gemini/commands/trellis/before-backend-dev.toml +0 -17
- package/dist/templates/gemini/commands/trellis/before-frontend-dev.toml +0 -17
- package/dist/templates/gemini/commands/trellis/check-backend.toml +0 -17
- package/dist/templates/gemini/commands/trellis/check-frontend.toml +0 -17
- package/dist/templates/iflow/commands/trellis/before-backend-dev.md +0 -13
- package/dist/templates/iflow/commands/trellis/before-frontend-dev.md +0 -13
- package/dist/templates/iflow/commands/trellis/check-backend.md +0 -13
- package/dist/templates/iflow/commands/trellis/check-frontend.md +0 -13
- package/dist/templates/kilo/workflows/before-backend-dev.md +0 -13
- package/dist/templates/kilo/workflows/before-frontend-dev.md +0 -13
- package/dist/templates/kilo/workflows/check-backend.md +0 -13
- package/dist/templates/kilo/workflows/check-frontend.md +0 -13
- package/dist/templates/kiro/skills/before-backend-dev/SKILL.md +0 -18
- package/dist/templates/kiro/skills/before-frontend-dev/SKILL.md +0 -18
- package/dist/templates/kiro/skills/check-backend/SKILL.md +0 -18
- package/dist/templates/kiro/skills/check-frontend/SKILL.md +0 -18
- package/dist/templates/opencode/commands/trellis/before-backend-dev.md +0 -13
- package/dist/templates/opencode/commands/trellis/before-frontend-dev.md +0 -13
- package/dist/templates/opencode/commands/trellis/check-backend.md +0 -13
- package/dist/templates/opencode/commands/trellis/check-frontend.md +0 -13
- package/dist/templates/qoder/skills/before-backend-dev/SKILL.md +0 -18
- package/dist/templates/qoder/skills/before-frontend-dev/SKILL.md +0 -18
- package/dist/templates/qoder/skills/check-backend/SKILL.md +0 -18
- package/dist/templates/qoder/skills/check-frontend/SKILL.md +0 -18
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import fs from "node:fs";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import { AI_TOOLS } from "../types/ai-tools.js";
|
|
12
|
+
import { AI_TOOLS, getManagedPaths, } from "../types/ai-tools.js";
|
|
13
13
|
// Platform configurators
|
|
14
14
|
import { configureClaude } from "./claude.js";
|
|
15
15
|
import { configureCursor } from "./cursor.js";
|
|
@@ -20,19 +20,25 @@ import { configureKilo } from "./kilo.js";
|
|
|
20
20
|
import { configureKiro } from "./kiro.js";
|
|
21
21
|
import { configureGemini } from "./gemini.js";
|
|
22
22
|
import { configureAntigravity } from "./antigravity.js";
|
|
23
|
+
import { configureWindsurf } from "./windsurf.js";
|
|
23
24
|
import { configureQoder } from "./qoder.js";
|
|
25
|
+
import { configureCodebuddy } from "./codebuddy.js";
|
|
26
|
+
import { configureCopilot } from "./copilot.js";
|
|
24
27
|
// Shared utilities
|
|
25
28
|
import { resolvePlaceholders } from "./shared.js";
|
|
26
29
|
// Template content for update tracking
|
|
27
30
|
import { getAllAgents as getClaudeAgents, getAllCommands as getClaudeCommands, getAllHooks as getClaudeHooks, getSettingsTemplate as getClaudeSettings, } from "../templates/claude/index.js";
|
|
28
31
|
import { getAllCommands as getCursorCommands } from "../templates/cursor/index.js";
|
|
29
32
|
import { getAllAgents as getIflowAgents, getAllCommands as getIflowCommands, getAllHooks as getIflowHooks, getSettingsTemplate as getIflowSettings, } from "../templates/iflow/index.js";
|
|
30
|
-
import { getAllSkills as getCodexSkills } from "../templates/codex/index.js";
|
|
33
|
+
import { getAllAgents as getCodexAgents, getAllCodexSkills as getCodexPlatformSkills, getAllHooks as getCodexHooks, getAllSkills as getCodexSkills, getConfigTemplate as getCodexConfigTemplate, getHooksConfig as getCodexHooksConfig, } from "../templates/codex/index.js";
|
|
31
34
|
import { getAllWorkflows as getKiloWorkflows } from "../templates/kilo/index.js";
|
|
32
35
|
import { getAllSkills as getKiroSkills } from "../templates/kiro/index.js";
|
|
33
36
|
import { getAllCommands as getGeminiCommands } from "../templates/gemini/index.js";
|
|
34
37
|
import { getAllWorkflows as getAntigravityWorkflows } from "../templates/antigravity/index.js";
|
|
38
|
+
import { getAllWorkflows as getAllWindsurfWorkflows } from "../templates/windsurf/index.js";
|
|
35
39
|
import { getAllSkills as getQoderSkills } from "../templates/qoder/index.js";
|
|
40
|
+
import { getAllCommands as getCodebuddyCommands } from "../templates/codebuddy/index.js";
|
|
41
|
+
import { getAllHooks as getCopilotHooks, getAllPrompts as getCopilotPrompts, getHooksConfig as getCopilotHooksConfig, } from "../templates/copilot/index.js";
|
|
36
42
|
/**
|
|
37
43
|
* Platform functions registry — maps each AITool to its behavior.
|
|
38
44
|
* When adding a new platform, add an entry here.
|
|
@@ -104,6 +110,18 @@ const PLATFORM_FUNCTIONS = {
|
|
|
104
110
|
for (const skill of getCodexSkills()) {
|
|
105
111
|
files.set(`.agents/skills/${skill.name}/SKILL.md`, skill.content);
|
|
106
112
|
}
|
|
113
|
+
for (const skill of getCodexPlatformSkills()) {
|
|
114
|
+
files.set(`.codex/skills/${skill.name}/SKILL.md`, skill.content);
|
|
115
|
+
}
|
|
116
|
+
for (const agent of getCodexAgents()) {
|
|
117
|
+
files.set(`.codex/agents/${agent.name}.toml`, agent.content);
|
|
118
|
+
}
|
|
119
|
+
for (const hook of getCodexHooks()) {
|
|
120
|
+
files.set(`.codex/hooks/${hook.name}`, hook.content);
|
|
121
|
+
}
|
|
122
|
+
files.set(".codex/hooks.json", resolvePlaceholders(getCodexHooksConfig()));
|
|
123
|
+
const config = getCodexConfigTemplate();
|
|
124
|
+
files.set(`.codex/${config.targetPath}`, config.content);
|
|
107
125
|
return files;
|
|
108
126
|
},
|
|
109
127
|
},
|
|
@@ -147,6 +165,16 @@ const PLATFORM_FUNCTIONS = {
|
|
|
147
165
|
return files;
|
|
148
166
|
},
|
|
149
167
|
},
|
|
168
|
+
windsurf: {
|
|
169
|
+
configure: configureWindsurf,
|
|
170
|
+
collectTemplates: () => {
|
|
171
|
+
const files = new Map();
|
|
172
|
+
for (const workflow of getAllWindsurfWorkflows()) {
|
|
173
|
+
files.set(`.windsurf/workflows/${workflow.name}.md`, workflow.content);
|
|
174
|
+
}
|
|
175
|
+
return files;
|
|
176
|
+
},
|
|
177
|
+
},
|
|
150
178
|
qoder: {
|
|
151
179
|
configure: configureQoder,
|
|
152
180
|
collectTemplates: () => {
|
|
@@ -157,6 +185,34 @@ const PLATFORM_FUNCTIONS = {
|
|
|
157
185
|
return files;
|
|
158
186
|
},
|
|
159
187
|
},
|
|
188
|
+
codebuddy: {
|
|
189
|
+
configure: configureCodebuddy,
|
|
190
|
+
collectTemplates: () => {
|
|
191
|
+
const files = new Map();
|
|
192
|
+
// Commands in trellis/ subdirectory (CodeBuddy supports nested dirs)
|
|
193
|
+
for (const cmd of getCodebuddyCommands()) {
|
|
194
|
+
files.set(`.codebuddy/commands/trellis/${cmd.name}.md`, cmd.content);
|
|
195
|
+
}
|
|
196
|
+
return files;
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
copilot: {
|
|
200
|
+
configure: configureCopilot,
|
|
201
|
+
collectTemplates: () => {
|
|
202
|
+
const files = new Map();
|
|
203
|
+
for (const prompt of getCopilotPrompts()) {
|
|
204
|
+
files.set(`.github/prompts/${prompt.name}.prompt.md`, prompt.content);
|
|
205
|
+
}
|
|
206
|
+
for (const hook of getCopilotHooks()) {
|
|
207
|
+
files.set(`.github/copilot/hooks/${hook.name}`, hook.content);
|
|
208
|
+
}
|
|
209
|
+
// Tracked copy under platform config directory
|
|
210
|
+
files.set(".github/copilot/hooks.json", resolvePlaceholders(getCopilotHooksConfig()));
|
|
211
|
+
// VS Code Copilot discovery entry written by configureCopilot
|
|
212
|
+
files.set(".github/hooks/trellis.json", resolvePlaceholders(getCopilotHooksConfig()));
|
|
213
|
+
return files;
|
|
214
|
+
},
|
|
215
|
+
},
|
|
160
216
|
};
|
|
161
217
|
// =============================================================================
|
|
162
218
|
// Derived Helpers — all derived from AI_TOOLS registry
|
|
@@ -165,10 +221,16 @@ const PLATFORM_FUNCTIONS = {
|
|
|
165
221
|
export const PLATFORM_IDS = Object.keys(AI_TOOLS);
|
|
166
222
|
/** All platform config directory names (e.g., [".claude", ".cursor", ".iflow", ".opencode"]) */
|
|
167
223
|
export const CONFIG_DIRS = PLATFORM_IDS.map((id) => AI_TOOLS[id].configDir);
|
|
224
|
+
/** All managed paths for every platform (primary configDir + extra managed paths). */
|
|
225
|
+
export const PLATFORM_MANAGED_DIRS = PLATFORM_IDS.flatMap((id) => getManagedPaths(id));
|
|
168
226
|
/** All directories managed by Trellis (including .trellis itself) */
|
|
169
|
-
export const ALL_MANAGED_DIRS = [".trellis", ...
|
|
227
|
+
export const ALL_MANAGED_DIRS = [".trellis", ...new Set(PLATFORM_MANAGED_DIRS)];
|
|
170
228
|
/**
|
|
171
|
-
* Detect which platforms are configured by checking for
|
|
229
|
+
* Detect which platforms are configured by checking for configDir existence.
|
|
230
|
+
*
|
|
231
|
+
* Note: Detection uses only `configDir` (the platform-specific directory),
|
|
232
|
+
* NOT shared layers like `.agents/skills/`. This prevents false positives
|
|
233
|
+
* where a shared directory triggers detection of a specific platform.
|
|
172
234
|
*/
|
|
173
235
|
export function getConfiguredPlatforms(cwd) {
|
|
174
236
|
const platforms = new Set();
|
|
@@ -199,6 +261,12 @@ export function isManagedPath(dirPath) {
|
|
|
199
261
|
export function isManagedRootDir(dirName) {
|
|
200
262
|
return ALL_MANAGED_DIRS.includes(dirName);
|
|
201
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
* Get all managed paths for a platform.
|
|
266
|
+
*/
|
|
267
|
+
export function getPlatformManagedPaths(platformId) {
|
|
268
|
+
return getManagedPaths(platformId);
|
|
269
|
+
}
|
|
202
270
|
/**
|
|
203
271
|
* Get the configure function for a platform
|
|
204
272
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/configurators/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/configurators/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;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uBAAuB,CAAC,UAAkB;IACxD,OAAO,eAAe,CAAC,UAAU,CAAC,CAAC;AACrC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAC/B,UAAkB,EAClB,GAAW;IAEX,OAAO,kBAAkB,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;AACvD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,kBAAkB,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,EAAE,CAAC;AAC7D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB;IAMhC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/B,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,OAAO;QACzB,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI;QACvB,cAAc,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,cAAc;QAC3C,UAAU,EAAE,EAAE;KACf,CAAC,CAAC,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* The opencode templates include:
|
|
11
11
|
* - commands/ - Slash commands
|
|
12
12
|
* - agents/ - Multi-agent pipeline configurations
|
|
13
|
-
* -
|
|
13
|
+
* - plugins/ - Context injection plugins
|
|
14
14
|
* - lib/ - Shared JavaScript utilities
|
|
15
15
|
* - package.json - Plugin dependencies
|
|
16
16
|
*/
|
|
@@ -60,7 +60,7 @@ async function copyDirFiltered(src, dest) {
|
|
|
60
60
|
* The opencode templates include:
|
|
61
61
|
* - commands/ - Slash commands
|
|
62
62
|
* - agents/ - Multi-agent pipeline configurations
|
|
63
|
-
* -
|
|
63
|
+
* - plugins/ - Context injection plugins
|
|
64
64
|
* - lib/ - Shared JavaScript utilities
|
|
65
65
|
* - package.json - Plugin dependencies
|
|
66
66
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windsurf.d.ts","sourceRoot":"","sources":["../../src/configurators/windsurf.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAQlE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { getAllWorkflows } from "../templates/windsurf/index.js";
|
|
3
|
+
import { ensureDir, writeFile } from "../utils/file-writer.js";
|
|
4
|
+
/**
|
|
5
|
+
* Configure Windsurf by writing workflow templates.
|
|
6
|
+
*
|
|
7
|
+
* Output:
|
|
8
|
+
* - .windsurf/workflows/<workflow-name>.md
|
|
9
|
+
*/
|
|
10
|
+
export async function configureWindsurf(cwd) {
|
|
11
|
+
const workflowRoot = path.join(cwd, ".windsurf", "workflows");
|
|
12
|
+
ensureDir(workflowRoot);
|
|
13
|
+
for (const workflow of getAllWorkflows()) {
|
|
14
|
+
const targetPath = path.join(workflowRoot, `${workflow.name}.md`);
|
|
15
|
+
await writeFile(targetPath, workflow.content);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=windsurf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windsurf.js","sourceRoot":"","sources":["../../src/configurators/windsurf.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,GAAW;IACjD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IAC9D,SAAS,CAAC,YAAY,CAAC,CAAC;IAExB,KAAK,MAAM,QAAQ,IAAI,eAAe,EAAE,EAAE,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,CAAC;QAClE,MAAM,SAAS,CAAC,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAChD,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ProjectType, type DetectedPackage } from "../utils/project-detector.js";
|
|
2
2
|
/**
|
|
3
3
|
* Options for creating workflow structure
|
|
4
4
|
*/
|
|
@@ -7,8 +7,12 @@ export interface WorkflowOptions {
|
|
|
7
7
|
projectType: ProjectType;
|
|
8
8
|
/** Enable multi-agent pipeline with worktree support */
|
|
9
9
|
multiAgent?: boolean;
|
|
10
|
-
/** Skip creating local spec templates (when using remote template) */
|
|
10
|
+
/** Skip creating local spec templates (when using remote template) — single-repo mode */
|
|
11
11
|
skipSpecTemplates?: boolean;
|
|
12
|
+
/** Detected monorepo packages (enables monorepo spec creation) */
|
|
13
|
+
packages?: DetectedPackage[];
|
|
14
|
+
/** Package names that use remote templates (skip blank spec for these) */
|
|
15
|
+
remoteSpecPackages?: Set<string>;
|
|
12
16
|
}
|
|
13
17
|
/**
|
|
14
18
|
* Create workflow structure based on project type
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AAsCA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,8BAA8B,CAAC;AAOtC;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,WAAW,EAAE,WAAW,CAAC;IACzB,wDAAwD;IACxD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,IAAI,CAAC,CA4Df"}
|
|
@@ -12,6 +12,7 @@ frontendIndexContent, frontendDirectoryStructureContent, frontendTypeSafetyConte
|
|
|
12
12
|
// Guides structure
|
|
13
13
|
guidesIndexContent, guidesCrossLayerThinkingGuideContent, guidesCodeReuseThinkingGuideContent, } from "../templates/markdown/index.js";
|
|
14
14
|
import { writeFile, ensureDir } from "../utils/file-writer.js";
|
|
15
|
+
import { sanitizePkgName, } from "../utils/project-detector.js";
|
|
15
16
|
/**
|
|
16
17
|
* Create workflow structure based on project type
|
|
17
18
|
*
|
|
@@ -30,6 +31,8 @@ export async function createWorkflowStructure(cwd, options) {
|
|
|
30
31
|
const projectType = options?.projectType ?? "fullstack";
|
|
31
32
|
const multiAgent = options?.multiAgent ?? false;
|
|
32
33
|
const skipSpecTemplates = options?.skipSpecTemplates ?? false;
|
|
34
|
+
const packages = options?.packages;
|
|
35
|
+
const remoteSpecPackages = options?.remoteSpecPackages;
|
|
33
36
|
// Create base .trellis directory
|
|
34
37
|
ensureDir(path.join(cwd, DIR_NAMES.WORKFLOW));
|
|
35
38
|
// Copy scripts/ directory from templates
|
|
@@ -53,16 +56,84 @@ export async function createWorkflowStructure(cwd, options) {
|
|
|
53
56
|
}
|
|
54
57
|
// Create spec templates based on project type
|
|
55
58
|
// These are NOT dogfooded - they are generic templates for new projects
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
if (packages && packages.length > 0) {
|
|
60
|
+
// Monorepo mode: create per-package spec directories
|
|
61
|
+
await createSpecTemplates(cwd, projectType, packages, remoteSpecPackages);
|
|
62
|
+
}
|
|
63
|
+
else if (!skipSpecTemplates) {
|
|
64
|
+
// Single-repo mode: create global spec (skip if using remote template)
|
|
58
65
|
await createSpecTemplates(cwd, projectType);
|
|
59
66
|
}
|
|
60
67
|
}
|
|
61
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Write backend spec docs into a target spec directory.
|
|
70
|
+
*/
|
|
71
|
+
async function writeBackendDocs(specBase) {
|
|
72
|
+
const backendDir = path.join(specBase, "backend");
|
|
73
|
+
ensureDir(backendDir);
|
|
74
|
+
const docs = [
|
|
75
|
+
{ name: "index.md", content: backendIndexContent },
|
|
76
|
+
{
|
|
77
|
+
name: "directory-structure.md",
|
|
78
|
+
content: backendDirectoryStructureContent,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "database-guidelines.md",
|
|
82
|
+
content: backendDatabaseGuidelinesContent,
|
|
83
|
+
},
|
|
84
|
+
{ name: "logging-guidelines.md", content: backendLoggingGuidelinesContent },
|
|
85
|
+
{ name: "quality-guidelines.md", content: backendQualityGuidelinesContent },
|
|
86
|
+
{ name: "error-handling.md", content: backendErrorHandlingContent },
|
|
87
|
+
];
|
|
88
|
+
for (const doc of docs) {
|
|
89
|
+
await writeFile(path.join(backendDir, doc.name), doc.content);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Write frontend spec docs into a target spec directory.
|
|
94
|
+
*/
|
|
95
|
+
async function writeFrontendDocs(specBase) {
|
|
96
|
+
const frontendDir = path.join(specBase, "frontend");
|
|
97
|
+
ensureDir(frontendDir);
|
|
98
|
+
const docs = [
|
|
99
|
+
{ name: "index.md", content: frontendIndexContent },
|
|
100
|
+
{
|
|
101
|
+
name: "directory-structure.md",
|
|
102
|
+
content: frontendDirectoryStructureContent,
|
|
103
|
+
},
|
|
104
|
+
{ name: "type-safety.md", content: frontendTypeSafetyContent },
|
|
105
|
+
{ name: "hook-guidelines.md", content: frontendHookGuidelinesContent },
|
|
106
|
+
{
|
|
107
|
+
name: "component-guidelines.md",
|
|
108
|
+
content: frontendComponentGuidelinesContent,
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "quality-guidelines.md",
|
|
112
|
+
content: frontendQualityGuidelinesContent,
|
|
113
|
+
},
|
|
114
|
+
{ name: "state-management.md", content: frontendStateManagementContent },
|
|
115
|
+
];
|
|
116
|
+
for (const doc of docs) {
|
|
117
|
+
await writeFile(path.join(frontendDir, doc.name), doc.content);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Write spec docs for a given project type into a target spec directory.
|
|
122
|
+
*/
|
|
123
|
+
async function writeSpecForType(specBase, projectType) {
|
|
124
|
+
if (projectType !== "frontend") {
|
|
125
|
+
await writeBackendDocs(specBase);
|
|
126
|
+
}
|
|
127
|
+
if (projectType !== "backend") {
|
|
128
|
+
await writeFrontendDocs(specBase);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
async function createSpecTemplates(cwd, projectType, packages, remoteSpecPackages) {
|
|
62
132
|
// Ensure spec directory exists
|
|
63
133
|
ensureDir(path.join(cwd, PATHS.SPEC));
|
|
64
|
-
// Guides - always created
|
|
65
|
-
|
|
134
|
+
// Guides - always created regardless of mode
|
|
135
|
+
const guidesDir = path.join(cwd, `${PATHS.SPEC}/guides`);
|
|
136
|
+
ensureDir(guidesDir);
|
|
66
137
|
const guidesDocs = [
|
|
67
138
|
{ name: "index.md", content: guidesIndexContent },
|
|
68
139
|
{
|
|
@@ -75,62 +146,23 @@ async function createSpecTemplates(cwd, projectType) {
|
|
|
75
146
|
},
|
|
76
147
|
];
|
|
77
148
|
for (const doc of guidesDocs) {
|
|
78
|
-
await writeFile(path.join(
|
|
149
|
+
await writeFile(path.join(guidesDir, doc.name), doc.content);
|
|
79
150
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
name: "database-guidelines.md",
|
|
91
|
-
content: backendDatabaseGuidelinesContent,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: "logging-guidelines.md",
|
|
95
|
-
content: backendLoggingGuidelinesContent,
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: "quality-guidelines.md",
|
|
99
|
-
content: backendQualityGuidelinesContent,
|
|
100
|
-
},
|
|
101
|
-
{ name: "error-handling.md", content: backendErrorHandlingContent },
|
|
102
|
-
];
|
|
103
|
-
for (const doc of backendDocs) {
|
|
104
|
-
await writeFile(path.join(cwd, `${PATHS.SPEC}/backend`, doc.name), doc.content);
|
|
151
|
+
if (packages && packages.length > 0) {
|
|
152
|
+
// Monorepo mode: create spec/<name>/ for each package
|
|
153
|
+
for (const pkg of packages) {
|
|
154
|
+
const dirName = sanitizePkgName(pkg.name);
|
|
155
|
+
if (remoteSpecPackages?.has(dirName))
|
|
156
|
+
continue;
|
|
157
|
+
const pkgSpecBase = path.join(cwd, `${PATHS.SPEC}/${dirName}`);
|
|
158
|
+
ensureDir(pkgSpecBase);
|
|
159
|
+
const pkgType = pkg.type === "unknown" ? "fullstack" : pkg.type;
|
|
160
|
+
await writeSpecForType(pkgSpecBase, pkgType);
|
|
105
161
|
}
|
|
106
162
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
const frontendDocs = [
|
|
111
|
-
{ name: "index.md", content: frontendIndexContent },
|
|
112
|
-
{
|
|
113
|
-
name: "directory-structure.md",
|
|
114
|
-
content: frontendDirectoryStructureContent,
|
|
115
|
-
},
|
|
116
|
-
{ name: "type-safety.md", content: frontendTypeSafetyContent },
|
|
117
|
-
{ name: "hook-guidelines.md", content: frontendHookGuidelinesContent },
|
|
118
|
-
{
|
|
119
|
-
name: "component-guidelines.md",
|
|
120
|
-
content: frontendComponentGuidelinesContent,
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: "quality-guidelines.md",
|
|
124
|
-
content: frontendQualityGuidelinesContent,
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: "state-management.md",
|
|
128
|
-
content: frontendStateManagementContent,
|
|
129
|
-
},
|
|
130
|
-
];
|
|
131
|
-
for (const doc of frontendDocs) {
|
|
132
|
-
await writeFile(path.join(cwd, `${PATHS.SPEC}/frontend`, doc.name), doc.content);
|
|
133
|
-
}
|
|
163
|
+
else {
|
|
164
|
+
// Single-repo mode
|
|
165
|
+
await writeSpecForType(path.join(cwd, PATHS.SPEC), projectType);
|
|
134
166
|
}
|
|
135
167
|
}
|
|
136
168
|
//# sourceMappingURL=workflow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,2DAA2D;AAC3D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AAEvC,4BAA4B;AAC5B,OAAO,EACL,yBAAyB;AACzB,gCAAgC;AAChC,mBAAmB,EACnB,gCAAgC,EAChC,gCAAgC,EAChC,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B;AAC3B,iCAAiC;AACjC,oBAAoB,EACpB,iCAAiC,EACjC,yBAAyB,EACzB,6BAA6B,EAC7B,k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/C,CAAC;IACH,CAAC;SAAM,CAAC;QACN,mBAAmB;QACnB,MAAM,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC;IAClE,CAAC;AACH,CAAC"}
|
|
@@ -23,6 +23,7 @@ export declare function hasPendingMigrations(fromVersion: string, toVersion: str
|
|
|
23
23
|
export declare function getMigrationSummary(fromVersion: string, toVersion: string): {
|
|
24
24
|
renames: number;
|
|
25
25
|
deletes: number;
|
|
26
|
+
safeFileDeletes: number;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
29
|
* Get all registered migration versions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAqB,MAAM,uBAAuB,CAAC;AAoD9E;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,aAAa,EAAE,CAuBjB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAET;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAqB,MAAM,uBAAuB,CAAC;AAoD9E;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,aAAa,EAAE,CAuBjB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAET;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CAQ/D;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,EAAE,CAGlD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,EAAE,CAOlD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB;IACD,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,EAAE,CAAC;CACL,CA6CA"}
|
package/dist/migrations/index.js
CHANGED
|
@@ -90,6 +90,8 @@ export function getMigrationSummary(fromVersion, toVersion) {
|
|
|
90
90
|
return {
|
|
91
91
|
renames: migrations.filter((m) => m.type === "rename").length,
|
|
92
92
|
deletes: migrations.filter((m) => m.type === "delete").length,
|
|
93
|
+
safeFileDeletes: migrations.filter((m) => m.type === "safe-file-delete")
|
|
94
|
+
.length,
|
|
93
95
|
};
|
|
94
96
|
}
|
|
95
97
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;A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