monoco-toolkit 0.2.5__py3-none-any.whl → 0.2.7__py3-none-any.whl
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.
- monoco/core/agent/adapters.py +24 -1
- monoco/core/config.py +77 -17
- monoco/core/integrations.py +8 -0
- monoco/core/lsp.py +7 -0
- monoco/core/output.py +8 -1
- monoco/core/resources/zh/SKILL.md +6 -7
- monoco/core/setup.py +8 -0
- monoco/features/i18n/resources/zh/SKILL.md +5 -5
- monoco/features/issue/commands.py +135 -55
- monoco/features/issue/core.py +157 -122
- monoco/features/issue/domain/__init__.py +0 -0
- monoco/features/issue/domain/lifecycle.py +126 -0
- monoco/features/issue/domain/models.py +170 -0
- monoco/features/issue/domain/parser.py +223 -0
- monoco/features/issue/domain/workspace.py +104 -0
- monoco/features/issue/engine/__init__.py +22 -0
- monoco/features/issue/engine/config.py +172 -0
- monoco/features/issue/engine/machine.py +185 -0
- monoco/features/issue/engine/models.py +18 -0
- monoco/features/issue/linter.py +32 -11
- monoco/features/issue/lsp/__init__.py +3 -0
- monoco/features/issue/lsp/definition.py +72 -0
- monoco/features/issue/models.py +26 -9
- monoco/features/issue/resources/zh/SKILL.md +8 -9
- monoco/features/issue/validator.py +181 -65
- monoco/features/spike/core.py +5 -22
- monoco/features/spike/resources/zh/SKILL.md +2 -2
- monoco/main.py +2 -26
- monoco_toolkit-0.2.7.dist-info/METADATA +129 -0
- {monoco_toolkit-0.2.5.dist-info → monoco_toolkit-0.2.7.dist-info}/RECORD +33 -27
- monoco/features/agent/commands.py +0 -166
- monoco/features/agent/doctor.py +0 -30
- monoco/features/pty/core.py +0 -185
- monoco/features/pty/router.py +0 -138
- monoco/features/pty/server.py +0 -56
- monoco_toolkit-0.2.5.dist-info/METADATA +0 -93
- {monoco_toolkit-0.2.5.dist-info → monoco_toolkit-0.2.7.dist-info}/WHEEL +0 -0
- {monoco_toolkit-0.2.5.dist-info → monoco_toolkit-0.2.7.dist-info}/entry_points.txt +0 -0
- {monoco_toolkit-0.2.5.dist-info → monoco_toolkit-0.2.7.dist-info}/licenses/LICENSE +0 -0
monoco/features/pty/server.py
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import logging
|
|
2
|
-
import signal
|
|
3
|
-
import sys
|
|
4
|
-
from typing import Optional
|
|
5
|
-
from pathlib import Path
|
|
6
|
-
from contextlib import asynccontextmanager
|
|
7
|
-
import uvicorn
|
|
8
|
-
from fastapi import FastAPI
|
|
9
|
-
from monoco.features.pty.router import router as pty_router, pty_manager
|
|
10
|
-
|
|
11
|
-
@asynccontextmanager
|
|
12
|
-
async def lifespan(app: FastAPI):
|
|
13
|
-
# Startup
|
|
14
|
-
yield
|
|
15
|
-
# Shutdown
|
|
16
|
-
logging.info("Shutting down PTY manager and cleaning up sessions...")
|
|
17
|
-
pty_manager.close_all_sessions()
|
|
18
|
-
|
|
19
|
-
def run_pty_server(host: str = "127.0.0.1", port: int = 3124, cwd: Optional[Path] = None):
|
|
20
|
-
"""
|
|
21
|
-
Entry point for the 'monoco pty' command.
|
|
22
|
-
"""
|
|
23
|
-
# Configure Logging
|
|
24
|
-
logging.basicConfig(level=logging.INFO)
|
|
25
|
-
|
|
26
|
-
# Register a manual signal handler to ensure we catch termination even if uvicorn misses it
|
|
27
|
-
# or if we are stuck before uvicorn starts.
|
|
28
|
-
def handle_signal(signum, frame):
|
|
29
|
-
logging.info(f"Received signal {signum}, initiating shutdown...")
|
|
30
|
-
# We rely on uvicorn to handle the actual exit loop for SIGINT/SIGTERM usually,
|
|
31
|
-
# but having this log confirms propagation.
|
|
32
|
-
# If uvicorn is running, it should catch this first.
|
|
33
|
-
# If not, we exit manually.
|
|
34
|
-
sys.exit(0)
|
|
35
|
-
|
|
36
|
-
# Note: Uvicorn overwrites SIGINT/SIGTERM handlers by default.
|
|
37
|
-
# relying on lifespan is the standard "Uvicorn way".
|
|
38
|
-
|
|
39
|
-
app = FastAPI(title="Monoco PTY Service", lifespan=lifespan)
|
|
40
|
-
app.include_router(pty_router)
|
|
41
|
-
|
|
42
|
-
# If cwd is provided, we might want to set it as current process CWD
|
|
43
|
-
# so that new sessions default to it.
|
|
44
|
-
if cwd and cwd.exists():
|
|
45
|
-
import os
|
|
46
|
-
os.chdir(cwd)
|
|
47
|
-
logging.info(f"PTY Service Root: {cwd}")
|
|
48
|
-
|
|
49
|
-
logging.info(f"Starting Monoco PTY Service on ws://{host}:{port}")
|
|
50
|
-
try:
|
|
51
|
-
uvicorn.run(app, host=host, port=port)
|
|
52
|
-
except KeyboardInterrupt:
|
|
53
|
-
pass
|
|
54
|
-
finally:
|
|
55
|
-
# Final safety net
|
|
56
|
-
pty_manager.close_all_sessions()
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: monoco-toolkit
|
|
3
|
-
Version: 0.2.5
|
|
4
|
-
Summary: Agent Native Toolkit for Monoco - Task Management & Kanban for AI Agents
|
|
5
|
-
Project-URL: Homepage, https://monoco.io
|
|
6
|
-
Project-URL: Repository, https://github.com/IndenScale/Monoco
|
|
7
|
-
Project-URL: Documentation, https://monoco.io/docs
|
|
8
|
-
Project-URL: Issues, https://github.com/IndenScale/Monoco/issues
|
|
9
|
-
Author-email: Monoco Team <dev@monoco.io>
|
|
10
|
-
License-Expression: MIT
|
|
11
|
-
License-File: LICENSE
|
|
12
|
-
Keywords: agent-native,ai-agents,cli,kanban,monoco,task-management,workflow
|
|
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.10
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
-
Classifier: Topic :: Office/Business :: Groupware
|
|
21
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
|
-
Classifier: Topic :: Software Development :: Quality Assurance
|
|
23
|
-
Requires-Python: >=3.10
|
|
24
|
-
Requires-Dist: fastapi>=0.100.0
|
|
25
|
-
Requires-Dist: httpx>=0.28.1
|
|
26
|
-
Requires-Dist: prompt-toolkit>=3.0.0
|
|
27
|
-
Requires-Dist: pydantic>=2.0.0
|
|
28
|
-
Requires-Dist: pyyaml>=6.0
|
|
29
|
-
Requires-Dist: rich>=13.0.0
|
|
30
|
-
Requires-Dist: sse-starlette>=1.6.0
|
|
31
|
-
Requires-Dist: typer[all]>=0.9.0
|
|
32
|
-
Requires-Dist: uvicorn[standard]>=0.20.0
|
|
33
|
-
Requires-Dist: watchdog>=6.0.0
|
|
34
|
-
Description-Content-Type: text/markdown
|
|
35
|
-
|
|
36
|
-
# Monoco: Harnessing AI Agents
|
|
37
|
-
|
|
38
|
-
> **The control interface between raw AI velocity and human information bandwidth.**
|
|
39
|
-
|
|
40
|
-
Production in the LLM era is exploding along a vertical curve. A single AI agent can work 24/7, generating massive amounts of intermediate data that far exceeds the biological information bandwidth of a human supervisor. When one agent becomes a hundred, the bottleneck is no longer "intelligence"—it is "command and control."
|
|
41
|
-
|
|
42
|
-
**Monoco is the Cockpit.**
|
|
43
|
-
|
|
44
|
-
It doesn't just "run" agents; it "encapsulates" them. It provides a deterministic barrier between the chaotic, raw execution power of LLMs and the rigorous, finite decision bandwidth of human engineers. It ensures that every agentic action eventually collapses into the outcome you intended.
|
|
45
|
-
|
|
46
|
-
## Workflow: Plan - Execute - Review - Archive
|
|
47
|
-
|
|
48
|
-
Monoco channels agent execution into a clear cycle:
|
|
49
|
-
|
|
50
|
-
1. **Plan**: Decompose complex missions through **Project → Epic → Feature** hierarchies into executable atomic units.
|
|
51
|
-
2. **Execute**: Agents work autonomously based on acceptance criteria defined in Issues, with all intermediate states persisted as structured files.
|
|
52
|
-
3. **Review**: Humans monitor progress through the Kanban dashboard, intervening only at critical decision points.
|
|
53
|
-
4. **Archive**: Completed tasks automatically transition to archived states, forming a traceable project history.
|
|
54
|
-
|
|
55
|
-
## The Control Matrix
|
|
56
|
-
|
|
57
|
-
- **Task Anchors (Issues)**: Define missions via structured files, setting clear boundaries and acceptance criteria for agents.
|
|
58
|
-
- **Deterministic Interface (CLI)**: Acts as a sensory extension for LLMs, providing them with structured perception of project state and eliminating hallucinated guesses.
|
|
59
|
-
- **Mission Dashboard (Kanban)**: A high-fidelity visual console that allows humans to audit tasks and transition states with minimal cognitive load.
|
|
60
|
-
|
|
61
|
-
## Quick Start
|
|
62
|
-
|
|
63
|
-
### 1. Install the Control Suite
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
pip install monoco-toolkit
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### 2. Initialize the Workflow
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
monoco init
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### 3. Take Control
|
|
76
|
-
|
|
77
|
-
Start the backend control hub:
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
monoco serve
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
Then, launch the visual mission dashboard from anywhere:
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
npx @monoco-io/kanban
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Visit `http://localhost:3123` (or the URL displayed in your terminal) to enter your cockpit.
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
_"Cars are made to drive, not to fix."_
|
|
File without changes
|
|
File without changes
|
|
File without changes
|