@brandon_9527/tcode 1.0.2 → 1.0.3

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 (71) hide show
  1. package/dist/python-src/.autodev/skills/teams/scripts/README.md +29 -0
  2. package/dist/python-src/.autodev/skills/teams/scripts/cursor_dispatch.sh +88 -0
  3. package/dist/python-src/.autodev/skills/teams/scripts/dispatch.sh +112 -0
  4. package/dist/python-src/.autodev/skills/teams/scripts/label.sh +62 -0
  5. package/dist/python-src/.autodev/skills/teams/scripts/layout.sh +181 -0
  6. package/dist/python-src/.autodev/skills/teams/scripts/old_dispatch.sh +42 -0
  7. package/dist/python-src/.autodev/skills/teams/scripts/pipe.sh +19 -0
  8. package/dist/python-src/.autodev/skills/teams/scripts/pipe_dispatch.sh +59 -0
  9. package/dist/python-src/.autodev/skills/teams/scripts/run.sh +18 -0
  10. package/dist/python-src/.autodev/skills/teams/scripts/stop.sh +26 -0
  11. package/dist/python-src/.autodev/skills/teams/scripts/tmux-layout.sh +43 -0
  12. package/dist/python-src/entry.py +28 -1
  13. package/dist/python-src/main.py +382 -3
  14. package/dist/python-src/pyproject.toml +1 -1
  15. package/dist/python-src/src/ai_tcode.egg-info/PKG-INFO +30 -0
  16. package/dist/python-src/src/ai_tcode.egg-info/SOURCES.txt +48 -0
  17. package/dist/python-src/src/ai_tcode.egg-info/dependency_links.txt +1 -0
  18. package/dist/python-src/src/ai_tcode.egg-info/requires.txt +26 -0
  19. package/dist/python-src/src/ai_tcode.egg-info/top_level.txt +9 -0
  20. package/dist/python-src/src/managers/manager_agent.py +200 -0
  21. package/dist/python-src/src/managers/manager_context.py +49 -0
  22. package/dist/python-src/src/managers/manager_instruction.py +192 -0
  23. package/dist/python-src/src/managers/sandbox.py +3 -3
  24. package/dist/python-src/src/middlewares/dynamic_content.py +63 -0
  25. package/dist/python-src/src/middlewares/hitl.py +3 -3
  26. package/dist/python-src/src/middlewares/memory.py +44 -0
  27. package/dist/python-src/src/middlewares/subagents.py +25 -25
  28. package/dist/python-src/src/middlewares/summary.py +35 -35
  29. package/dist/python-src/src/middlewares/utils.py +5 -0
  30. package/dist/python-src/src/prompts/prompts.py +1 -0
  31. package/dist/python-src/src/stream/formatter.py +17 -17
  32. package/dist/python-src/src/stream/handler.py +109 -81
  33. package/dist/python-src/src/stream/handler_with_tracker.py +10 -10
  34. package/dist/python-src/src/tools/web.py +10 -9
  35. package/dist/python-src/src/tui/chatui.py +67 -51
  36. package/dist/python-src/src/tui/components/tlist.py +6 -6
  37. package/dist/python-src/src/tui/components/tscroll_panel.py +8 -8
  38. package/dist/python-src/src/tui/utils/trender.py +27 -27
  39. package/dist/python-src/src/utils/prompt.py +15 -4
  40. package/dist/python-src/uv.lock +1980 -2094
  41. package/package.json +1 -1
  42. package/dist/python-src/src/__pycache__/__init__.cpython-311.pyc +0 -0
  43. package/dist/python-src/src/managers/__pycache__/__init__.cpython-311.pyc +0 -0
  44. package/dist/python-src/src/managers/__pycache__/sandbox.cpython-311.pyc +0 -0
  45. package/dist/python-src/src/middlewares/__pycache__/__init__.cpython-311.pyc +0 -0
  46. package/dist/python-src/src/middlewares/__pycache__/hitl.cpython-311.pyc +0 -0
  47. package/dist/python-src/src/middlewares/dynamic_prompt.py +0 -15
  48. package/dist/python-src/src/stream/__pycache__/__init__.cpython-311.pyc +0 -0
  49. package/dist/python-src/src/stream/__pycache__/emitter.cpython-311.pyc +0 -0
  50. package/dist/python-src/src/stream/__pycache__/file_write_parser.cpython-311.pyc +0 -0
  51. package/dist/python-src/src/stream/__pycache__/formatter.cpython-311.pyc +0 -0
  52. package/dist/python-src/src/stream/__pycache__/handler.cpython-311.pyc +0 -0
  53. package/dist/python-src/src/stream/__pycache__/tracker.cpython-311.pyc +0 -0
  54. package/dist/python-src/src/stream/__pycache__/utils.cpython-311.pyc +0 -0
  55. package/dist/python-src/src/tools/__pycache__/__init__.cpython-311.pyc +0 -0
  56. package/dist/python-src/src/tools/__pycache__/skill_loader.cpython-311.pyc +0 -0
  57. package/dist/python-src/src/tools/__pycache__/tools.cpython-311.pyc +0 -0
  58. package/dist/python-src/src/tools/__pycache__/web.cpython-311.pyc +0 -0
  59. package/dist/python-src/src/tui/__pycache__/chatui.cpython-311.pyc +0 -0
  60. package/dist/python-src/src/tui/__pycache__/config.cpython-311.pyc +0 -0
  61. package/dist/python-src/src/tui/components/__pycache__/__init__.cpython-311.pyc +0 -0
  62. package/dist/python-src/src/tui/components/__pycache__/live_spinner.cpython-311.pyc +0 -0
  63. package/dist/python-src/src/tui/components/__pycache__/tdiff.cpython-311.pyc +0 -0
  64. package/dist/python-src/src/tui/components/__pycache__/tdisplay.cpython-311.pyc +0 -0
  65. package/dist/python-src/src/tui/components/__pycache__/tlist.cpython-311.pyc +0 -0
  66. package/dist/python-src/src/tui/components/__pycache__/tscroll_panel.cpython-311.pyc +0 -0
  67. package/dist/python-src/src/tui/utils/__pycache__/__init__.cpython-311.pyc +0 -0
  68. package/dist/python-src/src/tui/utils/__pycache__/render.cpython-311.pyc +0 -0
  69. package/dist/python-src/src/tui/utils/__pycache__/trender.cpython-311.pyc +0 -0
  70. package/dist/python-src/src/utils/__pycache__/__init__.cpython-311.pyc +0 -0
  71. package/dist/python-src/src/utils/__pycache__/utils.cpython-311.pyc +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brandon_9527/tcode",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "TypeScript版 单仓库混合方案(Python源码随npm发布,本地Build)",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {
@@ -1,15 +0,0 @@
1
- from typing import Any,Callable,List,Optional
2
- import logging
3
- from langchain.agents.middleware import AgentMiddleware
4
- from langgraph.runtime import Runtime
5
- from src.prompts import apply_prompt_template
6
- logger=logging.getLogger(__name__)
7
- class DynamicPromptMiddleware(AgentMiddleware):
8
- def __init__(A,prompt_template,locale='en-US'):A.prompt_template=prompt_template;A.locale=locale
9
- def before_model(B,state,runtime):
10
- try:
11
- A=apply_prompt_template(B.prompt_template,state,locale=B.locale)
12
- if A and len(A)>0:C=A[0];return{'messages':[C]}
13
- return
14
- except Exception as D:logger.error(f"Failed to apply prompt template in before_model: {D}",exc_info=True);return
15
- async def abefore_model(A,state,runtime):return A.before_model(state,runtime)