DeepThinking 0.2.3__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.
Files changed (98) hide show
  1. deepthinking-0.2.3/.claude/settings.local.json +37 -0
  2. deepthinking-0.2.3/.env.example +74 -0
  3. deepthinking-0.2.3/.gitignore +114 -0
  4. deepthinking-0.2.3/ARCHITECTURE.md +1097 -0
  5. deepthinking-0.2.3/CHANGELOG.md +118 -0
  6. deepthinking-0.2.3/LICENSE +21 -0
  7. deepthinking-0.2.3/MANIFEST.in +16 -0
  8. deepthinking-0.2.3/PKG-INFO +447 -0
  9. deepthinking-0.2.3/README.md +407 -0
  10. deepthinking-0.2.3/docs/ASYNC_SYNC_ANALYSIS.md +333 -0
  11. deepthinking-0.2.3/docs/CODE_REVIEW_2025-12-31.md +226 -0
  12. deepthinking-0.2.3/docs/COMPREHENSIVE_ANALYSIS.md +660 -0
  13. deepthinking-0.2.3/docs/DEVELOPMENT_STANDARDS.md +251 -0
  14. deepthinking-0.2.3/docs/DEVELOPMENT_WORKFLOW.md +729 -0
  15. deepthinking-0.2.3/docs/MIGRATION.md +315 -0
  16. deepthinking-0.2.3/docs/PUBLISHING.md +660 -0
  17. deepthinking-0.2.3/docs/README.md +214 -0
  18. deepthinking-0.2.3/docs/TASKS-current.md +30 -0
  19. deepthinking-0.2.3/docs/TASKS.md +92 -0
  20. deepthinking-0.2.3/docs/TESTING.md +580 -0
  21. deepthinking-0.2.3/docs/WORKFLOW_MECHANISM.md +635 -0
  22. deepthinking-0.2.3/docs/WORKFLOW_VISUALIZATION.md +611 -0
  23. deepthinking-0.2.3/docs/api.md +907 -0
  24. deepthinking-0.2.3/docs/claude-code-config.md +345 -0
  25. deepthinking-0.2.3/docs/configuration.md +249 -0
  26. deepthinking-0.2.3/docs/ide-config.md +306 -0
  27. deepthinking-0.2.3/docs/installation.md +317 -0
  28. deepthinking-0.2.3/docs/sse-guide.md +533 -0
  29. deepthinking-0.2.3/docs/tasks-archive/.gitkeep +0 -0
  30. deepthinking-0.2.3/docs/tasks-archive/TASKS-phase-01-06.md +483 -0
  31. deepthinking-0.2.3/docs/tasks-archive/TASKS-phase-07-12.md +522 -0
  32. deepthinking-0.2.3/docs/tasks-archive/TASKS-phase-13-18.md +1605 -0
  33. deepthinking-0.2.3/docs/tasks-archive/TASKS-phase-19-20.md +380 -0
  34. deepthinking-0.2.3/docs/user_guide.md +467 -0
  35. deepthinking-0.2.3/examples/README.md +295 -0
  36. deepthinking-0.2.3/examples/claude_desktop_config_custom_storage.json +17 -0
  37. deepthinking-0.2.3/examples/claude_desktop_config_debug.json +20 -0
  38. deepthinking-0.2.3/examples/claude_desktop_config_sse.json +11 -0
  39. deepthinking-0.2.3/examples/claude_desktop_config_stdio.json +18 -0
  40. deepthinking-0.2.3/pyproject.toml +174 -0
  41. deepthinking-0.2.3/scripts/generate_config_docs.py +595 -0
  42. deepthinking-0.2.3/src/deep_thinking/__init__.py +3 -0
  43. deepthinking-0.2.3/src/deep_thinking/__main__.py +260 -0
  44. deepthinking-0.2.3/src/deep_thinking/models/__init__.py +26 -0
  45. deepthinking-0.2.3/src/deep_thinking/models/config.py +175 -0
  46. deepthinking-0.2.3/src/deep_thinking/models/task.py +133 -0
  47. deepthinking-0.2.3/src/deep_thinking/models/template.py +186 -0
  48. deepthinking-0.2.3/src/deep_thinking/models/thinking_session.py +276 -0
  49. deepthinking-0.2.3/src/deep_thinking/models/thought.py +434 -0
  50. deepthinking-0.2.3/src/deep_thinking/server.py +206 -0
  51. deepthinking-0.2.3/src/deep_thinking/storage/__init__.py +31 -0
  52. deepthinking-0.2.3/src/deep_thinking/storage/json_file_store.py +361 -0
  53. deepthinking-0.2.3/src/deep_thinking/storage/migration.py +234 -0
  54. deepthinking-0.2.3/src/deep_thinking/storage/storage_manager.py +426 -0
  55. deepthinking-0.2.3/src/deep_thinking/storage/task_list_store.py +307 -0
  56. deepthinking-0.2.3/src/deep_thinking/templates/__init__.py +0 -0
  57. deepthinking-0.2.3/src/deep_thinking/templates/analysis.json +56 -0
  58. deepthinking-0.2.3/src/deep_thinking/templates/decision_making.json +56 -0
  59. deepthinking-0.2.3/src/deep_thinking/templates/problem_solving.json +56 -0
  60. deepthinking-0.2.3/src/deep_thinking/tools/__init__.py +23 -0
  61. deepthinking-0.2.3/src/deep_thinking/tools/export.py +180 -0
  62. deepthinking-0.2.3/src/deep_thinking/tools/sequential_thinking.py +326 -0
  63. deepthinking-0.2.3/src/deep_thinking/tools/session_manager.py +401 -0
  64. deepthinking-0.2.3/src/deep_thinking/tools/task_manager.py +268 -0
  65. deepthinking-0.2.3/src/deep_thinking/tools/template.py +256 -0
  66. deepthinking-0.2.3/src/deep_thinking/tools/visualization.py +178 -0
  67. deepthinking-0.2.3/src/deep_thinking/transports/__init__.py +0 -0
  68. deepthinking-0.2.3/src/deep_thinking/transports/sse.py +206 -0
  69. deepthinking-0.2.3/src/deep_thinking/transports/stdio.py +39 -0
  70. deepthinking-0.2.3/src/deep_thinking/utils/__init__.py +0 -0
  71. deepthinking-0.2.3/src/deep_thinking/utils/formatters.py +915 -0
  72. deepthinking-0.2.3/src/deep_thinking/utils/logger.py +129 -0
  73. deepthinking-0.2.3/src/deep_thinking/utils/template_loader.py +193 -0
  74. deepthinking-0.2.3/tests/conftest.py +296 -0
  75. deepthinking-0.2.3/tests/test_integration/__init__.py +1 -0
  76. deepthinking-0.2.3/tests/test_integration/test_sequential_thinking.py +463 -0
  77. deepthinking-0.2.3/tests/test_integration/test_session_manager.py +353 -0
  78. deepthinking-0.2.3/tests/test_integration/test_task_tools.py +176 -0
  79. deepthinking-0.2.3/tests/test_main.py +290 -0
  80. deepthinking-0.2.3/tests/test_models/test_config.py +175 -0
  81. deepthinking-0.2.3/tests/test_models/test_task.py +154 -0
  82. deepthinking-0.2.3/tests/test_models/test_template.py +239 -0
  83. deepthinking-0.2.3/tests/test_models/test_thinking_session.py +294 -0
  84. deepthinking-0.2.3/tests/test_models/test_thought.py +740 -0
  85. deepthinking-0.2.3/tests/test_server.py +218 -0
  86. deepthinking-0.2.3/tests/test_storage/test_json_file_store.py +491 -0
  87. deepthinking-0.2.3/tests/test_storage/test_migration.py +266 -0
  88. deepthinking-0.2.3/tests/test_storage/test_storage_manager.py +299 -0
  89. deepthinking-0.2.3/tests/test_storage/test_task_list_store.py +181 -0
  90. deepthinking-0.2.3/tests/test_tools/test_export.py +439 -0
  91. deepthinking-0.2.3/tests/test_tools/test_template_tools.py +518 -0
  92. deepthinking-0.2.3/tests/test_tools/test_visualization.py +470 -0
  93. deepthinking-0.2.3/tests/test_transports/__init__.py +0 -0
  94. deepthinking-0.2.3/tests/test_transports/test_sse.py +773 -0
  95. deepthinking-0.2.3/tests/test_transports/test_stdio.py +105 -0
  96. deepthinking-0.2.3/tests/test_utils/__init__.py +1 -0
  97. deepthinking-0.2.3/tests/test_utils/test_logger.py +226 -0
  98. deepthinking-0.2.3/uv.lock +1911 -0
@@ -0,0 +1,37 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "mcp__GitHub__get_file_contents",
5
+ "mcp__Thinking__create_session",
6
+ "mcp__Thinking__sequential_thinking",
7
+ "mcp__Thinking__update_session_status",
8
+ "mcp__Thinking__visualize_session_simple",
9
+ "Bash(git add:*)",
10
+ "mcp__GitHub__get_me",
11
+ "mcp__GitHub__list_branches",
12
+ "mcp__GitHub__list_commits",
13
+ "Bash(git push:*)",
14
+ "Bash(python:*)",
15
+ "Bash(ruff check:*)",
16
+ "Bash(mypy:*)",
17
+ "Bash(test:*)",
18
+ "Bash(cat:*)",
19
+ "Bash(pytest:*)",
20
+ "Bash(find:*)",
21
+ "Bash(twine check:*)",
22
+ "Bash(git remote set-url:*)",
23
+ "Bash(gh release create:*)",
24
+ "Bash(dist/deepthinking-0.2.2-py3-none-any.whl)",
25
+ "Bash(gh release view:*)",
26
+ "Bash(gh release:*)",
27
+ "Bash(ls:*)",
28
+ "Bash(git mv:*)",
29
+ "Bash(git tag:*)",
30
+ "Bash(git show:*)",
31
+ "Bash(claude mcp add-json:*)",
32
+ "Bash(claude mcp remove:*)",
33
+ "Bash(python3:*)",
34
+ "mcp__Thinking__list_templates"
35
+ ]
36
+ }
37
+ }
@@ -0,0 +1,74 @@
1
+ # DeepThinking-MCP 环境变量配置示例
2
+ # 复制此文件为 .env 并根据需要修改配置
3
+
4
+ # =============================================================================
5
+ # 传输模式配置
6
+ # =============================================================================
7
+
8
+ # 传输模式: stdio(本地)或 sse(远程)
9
+ DEEP_THINKING_TRANSPORT=stdio
10
+
11
+ # =============================================================================
12
+ # SSE模式配置(当DEEP_THINKING_TRANSPORT=sse时使用)
13
+ # =============================================================================
14
+
15
+ # SSE服务器监听地址
16
+ DEEP_THINKING_HOST=localhost
17
+
18
+ # SSE服务器监听端口
19
+ DEEP_THINKING_PORT=8000
20
+
21
+ # Bearer Token认证(可选)
22
+ # DEEP_THINKING_AUTH_TOKEN=your-secret-token-here
23
+
24
+ # API Key认证(可选)
25
+ # DEEP_THINKING_API_KEY=your-api-key-here
26
+
27
+ # =============================================================================
28
+ # 日志配置
29
+ # =============================================================================
30
+
31
+ # 日志级别: DEBUG, INFO, WARNING, ERROR
32
+ DEEP_THINKING_LOG_LEVEL=INFO
33
+
34
+ # =============================================================================
35
+ # 存储配置
36
+ # =============================================================================
37
+
38
+ # 数据存储目录
39
+ # DEEP_THINKING_DATA_DIR=~/.deep-thinking-mcp
40
+
41
+ # 自动备份保留数量
42
+ # DEEP_THINKING_BACKUP_COUNT=10
43
+
44
+ # =============================================================================
45
+ # 服务器配置
46
+ # =============================================================================
47
+
48
+ # 自定义服务器描述(可选)
49
+ # 用于在MCP工具列表中显示自定义的服务器功能说明
50
+ # 默认值:"深度思考MCP服务器 - 高级思维编排引擎,提供顺序思考,适合处理多步骤、跨工具的复杂任务,会话管理和状态持久化功能"
51
+ # DEEP_THINKING_DESCRIPTION=我的AI助手服务器
52
+
53
+ # =============================================================================
54
+ # 思考配置
55
+ # =============================================================================
56
+
57
+ # 最大思考步骤数(防止无限循环,支持 1-10000,推荐 50)
58
+ DEEP_THINKING_MAX_THOUGHTS=50
59
+
60
+ # 最小思考步骤数(确保合理范围,支持 1-10000,推荐 3)
61
+ DEEP_THINKING_MIN_THOUGHTS=3
62
+
63
+ # 思考步骤增量(needsMoreThoughts 功能使用,支持 1-100,默认 10)
64
+ DEEP_THINKING_THOUGHTS_INCREMENT=10
65
+
66
+ # =============================================================================
67
+ # 开发选项
68
+ # =============================================================================
69
+
70
+ # 启用开发模式(自动重载等)
71
+ # DEEP_THINKING_DEV=false
72
+
73
+ # 启用性能分析
74
+ # DEEP_THINKING_PROFILE=false
@@ -0,0 +1,114 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ var/
17
+ wheels/
18
+ *.egg-info/
19
+ .installed.cfg
20
+ *.egg
21
+ MANIFEST
22
+
23
+ # 虚拟环境
24
+ venv/
25
+ ENV/
26
+ env/
27
+ .venv
28
+
29
+ # PyCharm
30
+ .idea/
31
+
32
+ # VSCode
33
+ .vscode/
34
+ *.code-workspace
35
+
36
+ # Jupyter Notebook
37
+ .ipynb_checkpoints
38
+
39
+ # 环境变量
40
+ .env
41
+ .env.local
42
+
43
+ # 测试和覆盖率
44
+ .pytest_cache/
45
+ .coverage
46
+ .coverage.*
47
+ htmlcov/
48
+ *.cover
49
+ .hypothesis/
50
+
51
+ # mypy
52
+ .mypy_cache/
53
+ .dmypy.json
54
+ dmypy.json
55
+
56
+ # ruff
57
+ .ruff_cache/
58
+
59
+ # 日志
60
+ *.log
61
+ logs/
62
+
63
+ # 数据目录
64
+ .data/
65
+ deep-thinking-data/
66
+
67
+ # macOS
68
+ .DS_Store
69
+
70
+ # 备份文件
71
+ *.bak
72
+ *.backup
73
+ *~
74
+
75
+ # 临时文件
76
+ *.tmp
77
+ *.temp
78
+ .tmp/
79
+ .temp/
80
+
81
+ # 编译文件
82
+ *.com
83
+ *.class
84
+ *.dll
85
+ *.exe
86
+ *.o
87
+ *.pyc
88
+
89
+ # 项目特定
90
+ sessions/
91
+ exports/
92
+ backups/
93
+ *.session.json
94
+
95
+ # 数据目录
96
+ .deep-thinking-mcp/
97
+ test_env/
98
+ test_install_venv/
99
+
100
+ # 参考项目(不应该提交)
101
+ autonomous-coding/
102
+ claude-code-docs/
103
+
104
+ # 项目计划文档(保留主计划文档)
105
+ !Plan-DeepThinking-MCP.md
106
+
107
+ # 临时计划文件(使用TASKS.md作为唯一追踪源)
108
+ Plan-*.md
109
+ prompt*.md
110
+ *开发计划.md
111
+ *深度分析.md
112
+ .release_notes.md
113
+ STAGE*_QUALITY_REPORT.md
114
+ 双Agent迭代开发深度分析.md