aicoding-backend 0.1.1__tar.gz
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.
- aicoding_backend-0.1.1/.coverage +0 -0
- aicoding_backend-0.1.1/.idea/.gitignore +10 -0
- aicoding_backend-0.1.1/.idea/AICoding-backend.iml +9 -0
- aicoding_backend-0.1.1/.idea/JapiProjectStorage.xml +7 -0
- aicoding_backend-0.1.1/.idea/misc.xml +6 -0
- aicoding_backend-0.1.1/.idea/modules.xml +8 -0
- aicoding_backend-0.1.1/.idea/vcs.xml +6 -0
- aicoding_backend-0.1.1/.idea/workspace.xml +101 -0
- aicoding_backend-0.1.1/.joycode/docs/RequirementsDoc.md +72 -0
- aicoding_backend-0.1.1/.joycode/mcp.json +53 -0
- aicoding_backend-0.1.1/.joycode/prompt.json +1 -0
- aicoding_backend-0.1.1/.pypirc +1 -0
- aicoding_backend-0.1.1/.python-version +1 -0
- aicoding_backend-0.1.1/.vscode/settings.json +3 -0
- aicoding_backend-0.1.1/LICENSE +21 -0
- aicoding_backend-0.1.1/MANIFEST.in +24 -0
- aicoding_backend-0.1.1/PKG-INFO +91 -0
- aicoding_backend-0.1.1/PRPs/RequirementsDoc.md +317 -0
- aicoding_backend-0.1.1/README.md +65 -0
- aicoding_backend-0.1.1/TOCoding-rules.md +214 -0
- aicoding_backend-0.1.1/aicoding_backend/__init__.py +3 -0
- aicoding_backend-0.1.1/aicoding_backend/main.py +349 -0
- aicoding_backend-0.1.1/aicoding_backend/notebooks/agent.ipynb +19 -0
- aicoding_backend-0.1.1/aicoding_backend/prompts/CreateFeatureProjectRules.md +81 -0
- aicoding_backend-0.1.1/aicoding_backend/prompts/__init__.py +3 -0
- aicoding_backend-0.1.1/aicoding_backend/prompts/init_project_rules.py +255 -0
- aicoding_backend-0.1.1/aicoding_backend/prompts/init_requirements_doc.py +113 -0
- aicoding_backend-0.1.1/aicoding_backend/prompts/prp_base.md +217 -0
- aicoding_backend-0.1.1/aicoding_backend/tools/__init__.py +1 -0
- aicoding_backend-0.1.1/aicoding_backend/tools/init_project_rules.py +188 -0
- aicoding_backend-0.1.1/aicoding_backend/tools/init_requirements_doc.py +138 -0
- aicoding_backend-0.1.1/aicoding_backend/utils/__init__.py +5 -0
- aicoding_backend-0.1.1/aicoding_backend/utils/file_reader.py +167 -0
- aicoding_backend-0.1.1/aicoding_backend/utils/file_utils.py +84 -0
- aicoding_backend-0.1.1/aicoding_backend/utils/loader.py +34 -0
- aicoding_backend-0.1.1/aicoding_backend/utils/template.py +169 -0
- aicoding_backend-0.1.1/mcp-config.json +11 -0
- aicoding_backend-0.1.1/pyproject.toml +45 -0
- aicoding_backend-0.1.1/uv.lock +745 -0
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Default ignored files
|
|
2
|
+
/shelf/
|
|
3
|
+
/workspace.xml
|
|
4
|
+
# Editor-based HTTP Client requests
|
|
5
|
+
/httpRequests/
|
|
6
|
+
# Environment-dependent path to Maven home directory
|
|
7
|
+
/mavenHomeManager.xml
|
|
8
|
+
# Datasource local storage ignored files
|
|
9
|
+
/dataSources/
|
|
10
|
+
/dataSources.local.xml
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="JapiProjectStorage">
|
|
4
|
+
<option name="envConfigs" value="[{"name":"默认环境","params":[],"headers":[]}]" />
|
|
5
|
+
<option name="selectedEnvConfigName" value="默认环境" />
|
|
6
|
+
</component>
|
|
7
|
+
</project>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="ms-21" project-jdk-type="JavaSDK">
|
|
4
|
+
<output url="file://$PROJECT_DIR$/out" />
|
|
5
|
+
</component>
|
|
6
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/AICoding-backend.iml" filepath="$PROJECT_DIR$/.idea/AICoding-backend.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="AutoImportSettings">
|
|
4
|
+
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ChangeListManager">
|
|
7
|
+
<list default="true" id="65bcae28-a046-4490-b44b-04f815a6ef92" name="Changes" comment="" />
|
|
8
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
9
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
10
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
11
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
12
|
+
</component>
|
|
13
|
+
<component name="Git.Settings">
|
|
14
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
15
|
+
</component>
|
|
16
|
+
<component name="ProjectColorInfo">{
|
|
17
|
+
"associatedIndex": 8
|
|
18
|
+
}</component>
|
|
19
|
+
<component name="ProjectId" id="34JkWRYo6DauO2N4fVjKKWtniv9" />
|
|
20
|
+
<component name="ProjectViewState">
|
|
21
|
+
<option name="hideEmptyMiddlePackages" value="true" />
|
|
22
|
+
<option name="showLibraryContents" value="true" />
|
|
23
|
+
</component>
|
|
24
|
+
<component name="PropertiesComponent">{
|
|
25
|
+
"keyToString": {
|
|
26
|
+
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
|
27
|
+
"Python.main.executor": "Run",
|
|
28
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
29
|
+
"RunOnceActivity.git.unshallow": "true",
|
|
30
|
+
"git-widget-placeholder": "master",
|
|
31
|
+
"last_opened_file_path": "/Users/chenshuren.5/proj/AICoding-backend",
|
|
32
|
+
"node.js.detected.package.eslint": "true",
|
|
33
|
+
"node.js.detected.package.tslint": "true",
|
|
34
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
35
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
36
|
+
"nodejs_package_manager_path": "npm",
|
|
37
|
+
"project.structure.last.edited": "SDKs",
|
|
38
|
+
"project.structure.proportion": "0.15",
|
|
39
|
+
"project.structure.side.proportion": "0.27471265",
|
|
40
|
+
"settings.editor.selected.configurable": "preferences.pluginManager",
|
|
41
|
+
"vue.rearranger.settings.migration": "true"
|
|
42
|
+
}
|
|
43
|
+
}</component>
|
|
44
|
+
<component name="RunManager">
|
|
45
|
+
<configuration name="main" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
|
46
|
+
<module name="AICoding-backend" />
|
|
47
|
+
<option name="ENV_FILES" value="" />
|
|
48
|
+
<option name="INTERPRETER_OPTIONS" value="" />
|
|
49
|
+
<option name="PARENT_ENVS" value="true" />
|
|
50
|
+
<envs>
|
|
51
|
+
<env name="PYTHONUNBUFFERED" value="1" />
|
|
52
|
+
</envs>
|
|
53
|
+
<option name="SDK_HOME" value="" />
|
|
54
|
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src" />
|
|
55
|
+
<option name="IS_MODULE_SDK" value="true" />
|
|
56
|
+
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
57
|
+
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
58
|
+
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
|
59
|
+
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/main.py" />
|
|
60
|
+
<option name="PARAMETERS" value="" />
|
|
61
|
+
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
62
|
+
<option name="EMULATE_TERMINAL" value="false" />
|
|
63
|
+
<option name="MODULE_MODE" value="false" />
|
|
64
|
+
<option name="REDIRECT_INPUT" value="false" />
|
|
65
|
+
<option name="INPUT_FILE" value="" />
|
|
66
|
+
<method v="2" />
|
|
67
|
+
</configuration>
|
|
68
|
+
<recent_temporary>
|
|
69
|
+
<list>
|
|
70
|
+
<item itemvalue="Python.main" />
|
|
71
|
+
</list>
|
|
72
|
+
</recent_temporary>
|
|
73
|
+
</component>
|
|
74
|
+
<component name="SharedIndexes">
|
|
75
|
+
<attachedChunks>
|
|
76
|
+
<set>
|
|
77
|
+
<option value="bundled-jdk-9823dce3aa75-fbdcb00ec9e3-intellij.indexing.shared.core-IU-251.23774.435" />
|
|
78
|
+
<option value="bundled-js-predefined-d6986cc7102b-f27c65a3e318-JavaScript-IU-251.23774.435" />
|
|
79
|
+
</set>
|
|
80
|
+
</attachedChunks>
|
|
81
|
+
</component>
|
|
82
|
+
<component name="TaskManager">
|
|
83
|
+
<task active="true" id="Default" summary="Default task">
|
|
84
|
+
<changelist id="65bcae28-a046-4490-b44b-04f815a6ef92" name="Changes" comment="" />
|
|
85
|
+
<created>1760939093468</created>
|
|
86
|
+
<option name="number" value="Default" />
|
|
87
|
+
<option name="presentableId" value="Default" />
|
|
88
|
+
<updated>1760939093468</updated>
|
|
89
|
+
<workItem from="1760939094591" duration="1907000" />
|
|
90
|
+
<workItem from="1760943537002" duration="9000" />
|
|
91
|
+
</task>
|
|
92
|
+
<servers />
|
|
93
|
+
</component>
|
|
94
|
+
<component name="TypeScriptGeneratedFilesManager">
|
|
95
|
+
<option name="version" value="3" />
|
|
96
|
+
</component>
|
|
97
|
+
<component name="XSLT-Support.FileAssociations.UIState">
|
|
98
|
+
<expand />
|
|
99
|
+
<select />
|
|
100
|
+
</component>
|
|
101
|
+
</project>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# 需求描述文档
|
|
2
|
+
|
|
3
|
+
## 功能特性:
|
|
4
|
+
|
|
5
|
+
**必须实现 Python 版本的 init_requirements_doc 功能模块,包含以下核心特性:**
|
|
6
|
+
|
|
7
|
+
- **Prompt 参数接口定义**:创建 `InitRequirementsDocPromptParams` 类型定义
|
|
8
|
+
- **Prompt 生成函数**:实现 `get_init_requirements_doc_prompt` 异步函数
|
|
9
|
+
- **模板加载机制**:集成现有的 `load_prompt` 工具函数
|
|
10
|
+
- **环境变量支持**:通过 `INIT_REQUIREMENTS_DOC` 环境变量允许自定义覆盖
|
|
11
|
+
- **需求文档模板**:内置完整的需求描述文档结构模板
|
|
12
|
+
|
|
13
|
+
## 参考示例:
|
|
14
|
+
|
|
15
|
+
**基于现有项目结构的实现模式:**
|
|
16
|
+
|
|
17
|
+
- 参考 `src/prompts/init_project_rules.py` 的模块结构和命名约定
|
|
18
|
+
- 参考 `src/utils/loader.py` 中的 `load_prompt` 函数使用方式
|
|
19
|
+
- 参考 `src/tools/init_project_rules.py` 中的工具函数实现模式
|
|
20
|
+
|
|
21
|
+
**TypeScript 原版功能对照:**
|
|
22
|
+
```typescript
|
|
23
|
+
// 原版接口定义
|
|
24
|
+
export interface InitRequirementsDocPromptParams {
|
|
25
|
+
// 目前没有额外参数,未来可按需扩展
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// 原版函数签名
|
|
29
|
+
export async function getInitRequirementsDocPrompt(
|
|
30
|
+
params?: InitRequirementsDocPromptParams
|
|
31
|
+
): Promise<string>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## 参考文档:
|
|
35
|
+
|
|
36
|
+
- **现有工具模块**:`src/utils/loader.py` - 了解 `load_prompt` 函数的参数和返回值
|
|
37
|
+
- **项目结构规范**:`src/prompts/` 目录 - 查看现有 prompt 模块的组织方式
|
|
38
|
+
- **类型定义模式**:`src/tools/` 目录 - 参考现有工具函数的实现模式
|
|
39
|
+
- **Python 异步编程**:确保函数定义为 `async def` 并返回 `str` 类型
|
|
40
|
+
|
|
41
|
+
## 注意事项:
|
|
42
|
+
|
|
43
|
+
**⚠️ 严格遵循项目规范:**
|
|
44
|
+
|
|
45
|
+
- **文件位置**:必须在 `src/prompts/` 目录下创建 `init_requirements_doc.py`
|
|
46
|
+
- **导入路径**:使用相对导入 `from ..utils.loader import load_prompt`
|
|
47
|
+
- **函数命名**:使用下划线命名法 `get_init_requirements_doc_prompt`
|
|
48
|
+
- **类型注解**:必须添加完整的类型注解,包括 `Optional`, `Dict`, `Any` 等
|
|
49
|
+
|
|
50
|
+
**⚠️ 模板内容完整性:**
|
|
51
|
+
|
|
52
|
+
- **必须包含完整的需求文档模板结构**
|
|
53
|
+
- **必须保持 markdown 格式的正确转义**
|
|
54
|
+
- **必须包含所有四个主要部分**:功能特性、参考示例、参考文档、注意事项
|
|
55
|
+
|
|
56
|
+
**⚠️ 环境变量处理:**
|
|
57
|
+
|
|
58
|
+
- **环境变量名称**:必须使用 `INIT_REQUIREMENTS_DOC` 作为环境变量名
|
|
59
|
+
- **默认行为**:当环境变量不存在时,返回内置模板
|
|
60
|
+
- **覆盖机制**:当环境变量存在时,完全使用环境变量内容
|
|
61
|
+
|
|
62
|
+
**⚠️ 异步函数实现:**
|
|
63
|
+
|
|
64
|
+
- **函数签名**:必须定义为 `async def`
|
|
65
|
+
- **参数处理**:支持可选的 `InitRequirementsDocPromptParams` 参数
|
|
66
|
+
- **返回类型**:必须返回 `str` 类型的 prompt 内容
|
|
67
|
+
|
|
68
|
+
**⚠️ 避免常见错误:**
|
|
69
|
+
|
|
70
|
+
- **禁止硬编码路径**:不要在代码中硬编码 `.joycode/docs` 路径
|
|
71
|
+
- **禁止直接文件操作**:此模块仅负责生成 prompt,不负责文件创建
|
|
72
|
+
- **禁止包含执行逻辑**:保持模块职责单一,仅处理 prompt 生成
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"aicoding-backend": {
|
|
4
|
+
"command": "python",
|
|
5
|
+
"args": [
|
|
6
|
+
"-m",
|
|
7
|
+
"src.mcp_server"
|
|
8
|
+
],
|
|
9
|
+
"cwd": "/Users/chenshuren.5/proj/AICoding-backend",
|
|
10
|
+
"env": {
|
|
11
|
+
"PYTHONPATH": "/Users/chenshuren.5/proj/AICoding-backend"
|
|
12
|
+
},
|
|
13
|
+
"disabled": true,
|
|
14
|
+
"autoApprove": []
|
|
15
|
+
},
|
|
16
|
+
"backend-coding": {
|
|
17
|
+
"autoApprove": [
|
|
18
|
+
"init_project_rules",
|
|
19
|
+
"process_thought",
|
|
20
|
+
"generate_prp",
|
|
21
|
+
"execute_prp"
|
|
22
|
+
],
|
|
23
|
+
"timeout": 180,
|
|
24
|
+
"command": "uv",
|
|
25
|
+
"type": "stdio",
|
|
26
|
+
"transportType": "stdio",
|
|
27
|
+
"args": [
|
|
28
|
+
"--directory",
|
|
29
|
+
"/Users/chenshuren.5/proj/AICoding-backend/src",
|
|
30
|
+
"run",
|
|
31
|
+
"main.py"
|
|
32
|
+
],
|
|
33
|
+
"disabled": false
|
|
34
|
+
},
|
|
35
|
+
"backend-coding-src": {
|
|
36
|
+
"autoApprove": [
|
|
37
|
+
"init_project_rules",
|
|
38
|
+
"process_thought",
|
|
39
|
+
"generate_prp",
|
|
40
|
+
"execute_prp",
|
|
41
|
+
"init_requirements_doc"
|
|
42
|
+
],
|
|
43
|
+
"disabled": false,
|
|
44
|
+
"timeout": 180,
|
|
45
|
+
"command": "uvx",
|
|
46
|
+
"type": "stdio",
|
|
47
|
+
"transportType": "stdio",
|
|
48
|
+
"args": [
|
|
49
|
+
"aicoding-backend"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"label":"一键安装环境","name":"Install","description":"专注于解决工作空间环境问题","prompt":"你是一位专门从事解决工作空间环境问题的全栈工程师和DevOps专家,你的主要任务是帮助用户诊断、修复和配置当前工作空间`/Users/chenshuren.5/proj/AICoding-backend`的开发环境。\n\n## 核心职责\n\n### 1. 环境检测与诊断\n- 自动扫描工作空间中的项目文件(package.json, requirements.txt, pom.xml, Gemfile, go.mod等)\n- 识别项目所需的运行环境和依赖\n- 检测当前系统已安装的环境版本\n- 分析环境配置冲突和兼容性问题\n\n### 2. 主流环境支持\n**Node.js生态系统:**\n- 检测和安装Node.js(如果用户没要求推荐LTS版本)\n- 配置npm/yarn/pnpm包管理器\n- 处理node_modules依赖问题\n- 解决版本冲突和权限问题\n\n**Python生态系统:**\n- 安装Python(2.x/3.x版本管理)\n- 配置pip包管理器和虚拟环境(venv/conda)\n- 处理requirements.txt依赖安装\n- 解决Python路径和模块导入问题\n\n**Java生态系统:**\n- 安装和配置JDK/JRE(版本选择和JAVA_HOME设置)\n- 配置Maven/Gradle构建工具\n- 处理依赖下载和仓库配置\n- 解决类路径和编译问题\n\n**其他主流环境:**\n- Go语言环境配置\n- Ruby和Rails环境\n- PHP和Composer\n- .NET Core环境\n- Docker容器化环境\n\n### 3. 项目启动与运行\n- 分析项目启动脚本和配置文件\n- 提供标准化的启动命令\n- 配置开发服务器和热重载\n- 设置环境变量和配置文件\n- 处理端口冲突和服务依赖\n\n### 4. 问题解决策略\n- 提供跨平台解决方案(Windows/macOS/Linux)\n- 给出详细的安装步骤和命令\n- 提供多种安装方式选择(官方安装器/包管理器/容器化)\n- 预防常见错误和最佳实践建议\n- 提供环境验证和测试方法\n\n### 5. 交互方式\n- 首先询问用户的操作系统和项目类型\n- 逐步引导用户完成环境配置\n- 提供可复制的命令和脚本\n- 在每个步骤后确认执行结果\n- 遇到问题时提供多种备选方案\n\n## 工作流程\n1. **环境扫描**:分析工作空间文件结构,识别项目类型\n2. **需求评估**:确定所需的运行环境和版本要求\n3. **现状检查**:检测当前已安装的环境和工具\n4. **差距分析**:对比需求与现状,列出缺失项\n5. **安装指导**:提供详细的安装和配置步骤\n6. **验证测试**:确保环境配置正确可用\n7. **项目启动**:协助用户成功启动项目\n\n请始终保持耐心和专业,用通俗易懂的语言解释技术概念,并在每个关键步骤提供清晰的指导。现在请开始分析当前工作空间的环境需求。\n"},{"label":"一键生成JoyCode Rules","name":"generateRules","description":"专注于生成JoyCode规则","prompt":"\n # 你是一位资深的代码架构分析专家,专门负责分析项目结构并生成 JoyCode Rules 配置文件。\n\n## 任务目标\n基于当前工作空间`/Users/chenshuren.5/proj/AICoding-backend`的代码结构,生成一份完整结构清晰、可操作性强的 `[object Promise].md` Rules文件,Rules文件存放在`/Users/chenshuren.5/proj/AICoding-backend`工作空间下.joycode文件夹下rules文件夹中,用于指导 AI 助手更好地理解和协助开发工作。\n\n## 分析维度\n请按以下维度深入分析当前项目:\n\n### 1. 项目概览\n- 项目类型(前端/后端/全栈/移动端等)\n- 主要技术栈和框架\n- 项目规模和复杂度\n\n### 2. 调用关系分析\n- 模块间依赖关系\n- API 调用链路\n- 数据流向\n- 关键组件交互模式\n\n### 3. 仓库结构总结\n- 目录组织架构\n- 文件命名规范\n- 配置文件分布\n- 资源文件管理\n\n### 4. 代码特征总结\n- 编程语言和版本\n- 代码风格和规范\n- 设计模式使用\n- 第三方库依赖\n\n## 输出要求\n生成的 `git@coding.jd.com:chenshuren.5/AICoding-backend.md` 文件必须包含:\n- 项目背景和技术栈说明\n- 代码风格和命名约定\n- 架构模式和最佳实践\n- 开发约束和注意事项\n- 常用命令和工作流程\n- 格式如下:\n`\n---\nglobs: *\nalwaysApply: true\n---\n\n# 项目规则要求如下\n\n规则(Rules)内容放在这里\n`\n\n## 约束条件\n- 仅分析当前工作空间内的文件\n- 不要包含敏感信息(如密钥、密码等)\n- 确保规则具体可执行,避免模糊描述\n- 生成的规则要便于 AI 助手理解和遵循\n\n\n请开始分析当前工作空间并生成对应的 JoyCode Rules 配置。\n"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Chen Shuren
|
|
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.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include pyproject.toml
|
|
4
|
+
include TOCoding-rules.md
|
|
5
|
+
include mcp-config.json
|
|
6
|
+
|
|
7
|
+
# Include markdown files in prompts directory
|
|
8
|
+
recursive-include src/prompts *.md
|
|
9
|
+
|
|
10
|
+
# Include any other non-Python files that should be included
|
|
11
|
+
recursive-include src *.md
|
|
12
|
+
recursive-include src *.txt
|
|
13
|
+
recursive-include src *.json
|
|
14
|
+
|
|
15
|
+
# Include PRPs directory
|
|
16
|
+
recursive-include PRPs *.md
|
|
17
|
+
|
|
18
|
+
# Exclude unnecessary files
|
|
19
|
+
global-exclude *.pyc
|
|
20
|
+
global-exclude __pycache__
|
|
21
|
+
global-exclude .DS_Store
|
|
22
|
+
global-exclude *.egg-info
|
|
23
|
+
global-exclude package_test
|
|
24
|
+
prune package_test
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aicoding-backend
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: AI Coding Backend - A backend service for AI-assisted coding with MCP (Model Context Protocol) integration
|
|
5
|
+
Project-URL: Homepage, https://github.com/yourusername/aicoding-backend
|
|
6
|
+
Project-URL: Documentation, https://github.com/yourusername/aicoding-backend#readme
|
|
7
|
+
Project-URL: Repository, https://github.com/yourusername/aicoding-backend
|
|
8
|
+
Project-URL: Issues, https://github.com/yourusername/aicoding-backend/issues
|
|
9
|
+
Author-email: Chen Shuren <csrrrr@whut.edu.com>
|
|
10
|
+
License: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: ai,backend,code-generation,coding,mcp
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Requires-Python: >=3.13
|
|
20
|
+
Requires-Dist: httpx>=0.28.1
|
|
21
|
+
Requires-Dist: keyring>=25.6.0
|
|
22
|
+
Requires-Dist: mcp[cli]>=1.18.0
|
|
23
|
+
Requires-Dist: pipx>=1.8.0
|
|
24
|
+
Requires-Dist: pydantic>=2.0.0
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
# AI Coding Backend
|
|
28
|
+
|
|
29
|
+
AI Coding Backend - A backend service for AI-assisted coding with MCP (Model Context Protocol) integration
|
|
30
|
+
|
|
31
|
+
## Description
|
|
32
|
+
|
|
33
|
+
This project provides a backend service for AI-assisted coding with MCP integration.
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
uv add aicoding-backend
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Usage
|
|
42
|
+
|
|
43
|
+
After installation, you can run the service using:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
uv run aicoding-backend
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Available MCP Tools
|
|
50
|
+
|
|
51
|
+
This backend provides the following MCP tools:
|
|
52
|
+
|
|
53
|
+
### init_requirements_doc
|
|
54
|
+
- **Description**: 初始化需求描述文档模板 (Initialize requirements document template)
|
|
55
|
+
- **Usage**: Generates a standardized requirements document template for AI Agent usage
|
|
56
|
+
- **Parameters**: None
|
|
57
|
+
- **Returns**: Complete requirements document template with structure guidelines
|
|
58
|
+
|
|
59
|
+
### init_project_rules
|
|
60
|
+
- **Description**: 初始化项目规范 (Initialize project specification)
|
|
61
|
+
- **Usage**: Provides project specification guidelines for AI Agent operations
|
|
62
|
+
- **Parameters**: None
|
|
63
|
+
- **Returns**: Project specification template
|
|
64
|
+
|
|
65
|
+
### generate_prp
|
|
66
|
+
- **Description**: 根据功能需求文件生成全面的产品需求提示(PRP)文档
|
|
67
|
+
- **Parameters**: `feature_file` (string) - Path to the feature requirements file
|
|
68
|
+
- **Returns**: Complete PRP document generation guidance
|
|
69
|
+
|
|
70
|
+
### execute_prp
|
|
71
|
+
- **Description**: 根据 PRP 文件生成执行指南
|
|
72
|
+
- **Parameters**: `prpFile` (string) - Path to the PRP file
|
|
73
|
+
- **Returns**: Complete execution steps guidance
|
|
74
|
+
|
|
75
|
+
### process_thought
|
|
76
|
+
- **Description**: 处理单一思维并返回格式化输出
|
|
77
|
+
- **Parameters**: Various thought processing parameters
|
|
78
|
+
- **Returns**: Formatted thought processing output
|
|
79
|
+
|
|
80
|
+
## Development
|
|
81
|
+
|
|
82
|
+
To contribute to this project:
|
|
83
|
+
|
|
84
|
+
1. Clone the repository
|
|
85
|
+
2. Install dependencies: `uv sync`
|
|
86
|
+
3. Make your changes
|
|
87
|
+
4. Run tests: `uv run pytest`
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
|
|
91
|
+
MIT License
|