@shendu-sdt/sdt-dev-agent 0.1.1 → 0.1.3-beta.9

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.
Files changed (101) hide show
  1. package/README.md +78 -31
  2. package/dist/catalog.d.ts +16 -0
  3. package/dist/catalog.d.ts.map +1 -0
  4. package/dist/catalog.js +98 -0
  5. package/dist/catalog.js.map +1 -0
  6. package/dist/cli/index.js +72 -3
  7. package/dist/cli/index.js.map +1 -1
  8. package/dist/commands/add.d.ts +7 -0
  9. package/dist/commands/add.d.ts.map +1 -0
  10. package/dist/commands/add.js +267 -0
  11. package/dist/commands/add.js.map +1 -0
  12. package/dist/commands/init.d.ts.map +1 -1
  13. package/dist/commands/init.js +31 -5
  14. package/dist/commands/init.js.map +1 -1
  15. package/dist/commands/list.d.ts +4 -0
  16. package/dist/commands/list.d.ts.map +1 -0
  17. package/dist/commands/list.js +20 -0
  18. package/dist/commands/list.js.map +1 -0
  19. package/dist/commands/status.d.ts +2 -0
  20. package/dist/commands/status.d.ts.map +1 -0
  21. package/dist/commands/status.js +66 -0
  22. package/dist/commands/status.js.map +1 -0
  23. package/dist/core/capability-discovery.d.ts +23 -0
  24. package/dist/core/capability-discovery.d.ts.map +1 -0
  25. package/dist/core/capability-discovery.js +49 -0
  26. package/dist/core/capability-discovery.js.map +1 -0
  27. package/dist/core/init-options.d.ts +7 -1
  28. package/dist/core/init-options.d.ts.map +1 -1
  29. package/dist/core/init-options.js +64 -34
  30. package/dist/core/init-options.js.map +1 -1
  31. package/dist/core/init-plan.d.ts +25 -1
  32. package/dist/core/init-plan.d.ts.map +1 -1
  33. package/dist/core/init-plan.js +211 -37
  34. package/dist/core/init-plan.js.map +1 -1
  35. package/dist/core/init-writer.d.ts +17 -1
  36. package/dist/core/init-writer.d.ts.map +1 -1
  37. package/dist/core/init-writer.js +72 -19
  38. package/dist/core/init-writer.js.map +1 -1
  39. package/dist/core/manifest.d.ts +8 -0
  40. package/dist/core/manifest.d.ts.map +1 -0
  41. package/dist/core/manifest.js +16 -0
  42. package/dist/core/manifest.js.map +1 -0
  43. package/dist/core/mcp-config.d.ts +12 -0
  44. package/dist/core/mcp-config.d.ts.map +1 -0
  45. package/dist/core/mcp-config.js +60 -0
  46. package/dist/core/mcp-config.js.map +1 -0
  47. package/dist/core/project-inspector.d.ts +1 -0
  48. package/dist/core/project-inspector.d.ts.map +1 -1
  49. package/dist/core/project-inspector.js +4 -0
  50. package/dist/core/project-inspector.js.map +1 -1
  51. package/dist/core/remote-skill-installer.d.ts +16 -0
  52. package/dist/core/remote-skill-installer.d.ts.map +1 -0
  53. package/dist/core/remote-skill-installer.js +104 -0
  54. package/dist/core/remote-skill-installer.js.map +1 -0
  55. package/dist/core/workflow-installer.d.ts +22 -0
  56. package/dist/core/workflow-installer.d.ts.map +1 -0
  57. package/dist/core/workflow-installer.js +103 -0
  58. package/dist/core/workflow-installer.js.map +1 -0
  59. package/dist/types.d.ts +103 -6
  60. package/dist/types.d.ts.map +1 -1
  61. package/dist/types.js +10 -2
  62. package/dist/types.js.map +1 -1
  63. package/dist/utils/follow-up-notice.d.ts +7 -0
  64. package/dist/utils/follow-up-notice.d.ts.map +1 -0
  65. package/dist/utils/follow-up-notice.js +29 -0
  66. package/dist/utils/follow-up-notice.js.map +1 -0
  67. package/dist/utils/init-welcome.d.ts.map +1 -1
  68. package/dist/utils/init-welcome.js +20 -33
  69. package/dist/utils/init-welcome.js.map +1 -1
  70. package/dist/utils/mastergo-notice.d.ts +7 -0
  71. package/dist/utils/mastergo-notice.d.ts.map +1 -0
  72. package/dist/utils/mastergo-notice.js +14 -0
  73. package/dist/utils/mastergo-notice.js.map +1 -0
  74. package/dist/utils/searchable-multi-select.js +5 -6
  75. package/dist/utils/searchable-multi-select.js.map +1 -1
  76. package/dist/utils/styled-select.d.ts.map +1 -1
  77. package/dist/utils/styled-select.js.map +1 -1
  78. package/dist/utils/terminal-theme.d.ts +4 -0
  79. package/dist/utils/terminal-theme.d.ts.map +1 -0
  80. package/dist/utils/terminal-theme.js +25 -0
  81. package/dist/utils/terminal-theme.js.map +1 -0
  82. package/package.json +6 -3
  83. package/templates/bootstrap/project-entry.md +17 -0
  84. package/templates/mcp/context7/claude-code/server.json +6 -0
  85. package/templates/mcp/context7/codex/config.toml +3 -0
  86. package/templates/mcp/mastergo/claude-code/server.json +6 -0
  87. package/templates/mcp/mastergo/codex/config.toml +4 -0
  88. package/templates/skills/builtin/bootstrap-project-docs/SKILL.md +16 -0
  89. package/templates/skills/builtin/bootstrap-project-docs/references/architecture-first.md +7 -0
  90. package/templates/skills/builtin/bootstrap-project-docs/references/tool-rules-follow-up.md +8 -0
  91. package/templates/skills/remote/catalog.json +68 -0
  92. package/templates/workflows/openspec/README.md +7 -0
  93. package/templates/workflows/openspec/claude-code/README.md +7 -0
  94. package/templates/workflows/openspec/codex/README.md +7 -0
  95. package/templates/AGENTS.md +0 -24
  96. package/templates/ARCHITECTURE.md +0 -26
  97. package/templates/capabilities/mcp/README.md +0 -8
  98. package/templates/capabilities/skills/README.md +0 -8
  99. package/templates/docs/ai-collaboration/README.md +0 -16
  100. package/templates/tools/claude-code/README.md +0 -8
  101. package/templates/tools/codex/README.md +0 -8
@@ -0,0 +1,4 @@
1
+ [mcp_servers.mastergo]
2
+ command = "npx"
3
+ args = ["-y", "@mastergo/magic-mcp", "--token=<MG_MCP_TOKEN>", "--url=https://mastergo.com"]
4
+ startup_timeout_sec = 120.0
@@ -0,0 +1,16 @@
1
+ # bootstrap-project-docs
2
+
3
+ 用于初始化项目文档链路的必装 bootstrap skill。
4
+
5
+ 执行顺序:
6
+
7
+ 1. 先读取真实代码、目录结构、构建与测试入口。
8
+ 2. 如果缺少 `ARCHITECTURE.md`,先生成或刷新它,并把无法确认的信息标记为“待确认”。
9
+ 3. `ARCHITECTURE.md` 就绪后,再生成目标工具规则文档。
10
+ 4. `Codex` 目标规则文档是 `AGENTS.md`;`Claude Code` 目标规则文档是 `CLAUDE.md`。
11
+
12
+ 禁止事项:
13
+
14
+ - 不要把未确认信息写成事实。
15
+ - 不要跳过 `ARCHITECTURE.md` 直接生成规则文档。
16
+ - 不要把 bootstrap 入口文案当作最终项目规则文档。
@@ -0,0 +1,7 @@
1
+ # Architecture First
2
+
3
+ 项目事实文档 `ARCHITECTURE.md` 是后续规则文档的事实源。
4
+
5
+ - 只写源码、配置、目录结构中能确认的事实
6
+ - 无法确认的信息标记为“待确认”
7
+ - 过时或错误描述直接删除,不保留历史口径
@@ -0,0 +1,8 @@
1
+ # Tool Rules Follow-up
2
+
3
+ 在 `ARCHITECTURE.md` 完成后:
4
+
5
+ - `Codex` 项目再生成或刷新 `AGENTS.md`
6
+ - `Claude Code` 项目再生成或刷新 `CLAUDE.md`
7
+
8
+ 工具级规则文档只负责执行规则,不重复写项目事实。
@@ -0,0 +1,68 @@
1
+ [
2
+ {
3
+ "id": "code-review-expert",
4
+ "displayName": "code-review-expert",
5
+ "description": "默认安装的高质量代码审查 skill。",
6
+ "selection": "default",
7
+ "detectionMode": "single",
8
+ "supportedTools": ["codex", "claude-code"],
9
+ "source": "https://github.com/sanyuan0704/sanyuan-skills",
10
+ "installCommand": "npx -y skills add https://github.com/sanyuan0704/sanyuan-skills --yes --skill code-review-expert -a <tool> --copy"
11
+ },
12
+ {
13
+ "id": "superpowers",
14
+ "displayName": "superpowers",
15
+ "description": "默认安装的 superpowers 核心工作流集合,仅包含 brainstorm、write-plan、execute-plan 和 using-superpowers。",
16
+ "selection": "default",
17
+ "detectionMode": "bundle",
18
+ "supportedTools": ["codex", "claude-code"],
19
+ "source": "https://github.com/obra/superpowers",
20
+ "installTargets": [
21
+ { "skillName": "brainstorming", "targetDirName": "brainstorming" },
22
+ { "skillName": "writing-plans", "targetDirName": "writing-plans" },
23
+ { "skillName": "executing-plans", "targetDirName": "executing-plans" },
24
+ { "skillName": "using-superpowers", "targetDirName": "using-superpowers" }
25
+ ],
26
+ "installCommand": "npx -y skills add https://github.com/obra/superpowers --yes --skill brainstorming writing-plans executing-plans using-superpowers -a <tool> --copy"
27
+ },
28
+ {
29
+ "id": "frontend-design",
30
+ "displayName": "frontend-design",
31
+ "description": "默认安装的高质量前端设计 skill。",
32
+ "selection": "default",
33
+ "detectionMode": "single",
34
+ "supportedTools": ["codex", "claude-code"],
35
+ "source": "https://github.com/anthropics/skills",
36
+ "installCommand": "npx -y skills add https://github.com/anthropics/skills --yes --skill frontend-design -a <tool> --copy"
37
+ },
38
+ {
39
+ "id": "agent-browser",
40
+ "displayName": "agent-browser",
41
+ "description": "默认安装的浏览器自动化 skill。",
42
+ "selection": "default",
43
+ "detectionMode": "single",
44
+ "supportedTools": ["codex", "claude-code"],
45
+ "source": "https://github.com/vercel-labs/agent-browser",
46
+ "installCommand": "npx -y skills add https://github.com/vercel-labs/agent-browser --yes --skill agent-browser -a <tool> --copy"
47
+ },
48
+ {
49
+ "id": "find-skills",
50
+ "displayName": "find-skills",
51
+ "description": "选装的 skills 发现辅助工具。",
52
+ "selection": "optional",
53
+ "detectionMode": "single",
54
+ "supportedTools": ["codex", "claude-code"],
55
+ "source": "https://github.com/vercel-labs/skills",
56
+ "installCommand": "npx -y skills add https://github.com/vercel-labs/skills --yes --skill find-skills -a <tool> --copy"
57
+ },
58
+ {
59
+ "id": "skill-creator",
60
+ "displayName": "skill-creator",
61
+ "description": "选装的 skill 编写辅助工具。",
62
+ "selection": "optional",
63
+ "detectionMode": "single",
64
+ "supportedTools": ["codex", "claude-code"],
65
+ "source": "https://github.com/anthropics/skills",
66
+ "installCommand": "npx -y skills add https://github.com/anthropics/skills --yes --skill skill-creator -a <tool> --copy"
67
+ }
68
+ ]
@@ -0,0 +1,7 @@
1
+ # OpenSpec Workflow
2
+
3
+ 这里存放 `OpenSpec` 这类独立 workflow 工作流能力的模板源。
4
+
5
+ - 它不属于普通 `skills`
6
+ - 也不属于 `MCP`
7
+ - 当前通过 `list workflows` / `add workflow` 进入命令面
@@ -0,0 +1,7 @@
1
+ # OpenSpec For Claude Code
2
+
3
+ `OpenSpec` 在 `Claude Code` 下属于独立的 workflow 工作流能力。
4
+
5
+ - 项目级 skills 路径:`.claude/skills/`
6
+ - 项目级 MCP 路径:项目根 `.mcp.json`
7
+ - 当前仓库通过 `list workflows` / `add workflow` 管理 `OpenSpec`
@@ -0,0 +1,7 @@
1
+ # OpenSpec For Codex
2
+
3
+ `OpenSpec` 在 `Codex` 下属于独立的 workflow 工作流能力。
4
+
5
+ - 项目级 skills 路径:`.agents/skills/`
6
+ - 项目级 MCP 路径:`.codex/config.toml`
7
+ - 当前仓库通过 `list workflows` / `add workflow` 管理 `OpenSpec`
@@ -1,24 +0,0 @@
1
- # AGENTS.md
2
-
3
- ## 用途
4
-
5
- 此文件由 `sdt-dev-agent init` 生成,作为项目级 AI 协作入口。
6
-
7
- ## 已知事实
8
-
9
- - 项目名称:{{projectName}}
10
- - 包管理器:{{packageManager}}
11
- - 源码目录:{{sourceRoot}}
12
- - 测试目录:{{testRoot}}
13
- - 已选择工具:{{selectedTools}}
14
-
15
- ## 协作边界
16
-
17
- - 修改前优先阅读现有架构文档和源码。
18
- - 保持最小改动,并且改动必须直接对应当前任务。
19
- - 优先遵循项目已有约定,不要用通用 AI 默认做法覆盖项目规则。
20
-
21
- ## 待补充
22
-
23
- - 补充业务边界、关键模块和部署注意事项。
24
- - 补充项目级评审规则和常见陷阱。
@@ -1,26 +0,0 @@
1
- # ARCHITECTURE.md
2
-
3
- ## 项目快照
4
-
5
- - 项目名称:{{projectName}}
6
- - 包管理器:{{packageManager}}
7
- - 源码目录:{{sourceRoot}}
8
- - 测试目录:{{testRoot}}
9
-
10
- ## 建议章节
11
-
12
- ### 运行入口
13
-
14
- 说明应用如何启动,以及主要运行入口位于哪些目录。
15
-
16
- ### 模块边界
17
-
18
- 列出主要业务模块,以及每个模块负责的范围。
19
-
20
- ### 外部依赖
21
-
22
- 记录关键第三方服务、MCP 工具和项目特有集成。
23
-
24
- ### 高风险区域
25
-
26
- 列出需要 AI 谨慎处理的文件、链路或业务域。
@@ -1,8 +0,0 @@
1
- # MCP 能力包
2
-
3
- 这个占位文件表示:已为所选工具安装了 MCP 能力包目录。
4
-
5
- ## 当前状态
6
-
7
- - 当前 `init` 基座版只会创建目录契约。
8
- - 具体的 MCP Server 接线可在后续实现阶段补充。
@@ -1,8 +0,0 @@
1
- # Skills 能力包
2
-
3
- 这个占位文件表示:已为所选工具安装了 Skills 能力包目录。
4
-
5
- ## 当前状态
6
-
7
- - 当前 `init` 基座版只会创建目录契约。
8
- - 具体的 Skill 内容可在后续实现阶段补充。
@@ -1,16 +0,0 @@
1
- # AI 协作
2
-
3
- 此目录由 `sdt-dev-agent init` 生成。
4
-
5
- ## 已安装概况
6
-
7
- - 已选择工具:{{selectedTools}}
8
- - 安装模式:{{installMode}}
9
- - 能力包:{{capabilities}}
10
-
11
- ## 下一步建议
12
-
13
- 1. 检查 `AGENTS.md`,将占位内容替换为项目实际规则。
14
- 2. 检查 `ARCHITECTURE.md`,补充真实运行链路和模块边界。
15
- 3. 确认各工具目录下生成的工具专属文件。
16
- 4. 后续可在此目录继续补充 Bug 分析、Review 和 PR 协作模板。
@@ -1,8 +0,0 @@
1
- # Claude Code 接入
2
-
3
- 这个占位文件表示:`sdt-dev-agent init` 已生成 Claude Code 的接入目录。
4
-
5
- ## 下一步
6
-
7
- - 项目级协作规则继续维护在仓库根目录 `AGENTS.md`。
8
- - 后续扩展接入能力时,可在这里补充 Claude Code 专属的本地规则、提示词或生成资产。
@@ -1,8 +0,0 @@
1
- # Codex 接入
2
-
3
- 这个占位文件表示:`sdt-dev-agent init` 已生成 Codex 的接入目录。
4
-
5
- ## 下一步
6
-
7
- - 项目级协作规则继续维护在仓库根目录 `AGENTS.md`。
8
- - 后续扩展接入能力时,可在这里补充 Codex 专属的本地规则、快捷指令或生成资产。