cntx-ui 3.0.4 → 3.0.6
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.
- package/bin/cntx-ui.js +16 -49
- package/lib/agent-runtime.js +70 -0
- package/lib/api-router.js +1 -136
- package/lib/bundle-manager.js +118 -28
- package/lib/mcp-server.js +0 -146
- package/package.json +1 -1
- package/server.js +85 -373
- package/templates/TOOLS.md +0 -6
- package/templates/agent-config.yaml +0 -5
- package/templates/agent-instructions.md +2 -15
- package/templates/agent-rules/project-specific/architecture.md +0 -1
- package/templates/hidden-files.json +0 -1
- package/web/dist/assets/index-D2RTcdqV.js +1968 -0
- package/web/dist/assets/index-DJi03HLz.css +1 -0
- package/web/dist/index.html +2 -2
- package/templates/activities/README.md +0 -67
- package/templates/activities/activities/create-project-bundles/README.md +0 -84
- package/templates/activities/activities/create-project-bundles/notes.md +0 -98
- package/templates/activities/activities/create-project-bundles/progress.md +0 -63
- package/templates/activities/activities/create-project-bundles/tasks.md +0 -39
- package/templates/activities/activities.json +0 -219
- package/templates/activities/lib/.markdownlint.jsonc +0 -18
- package/templates/activities/lib/create-activity.mdc +0 -63
- package/templates/activities/lib/generate-tasks.mdc +0 -64
- package/templates/activities/lib/process-task-list.mdc +0 -52
- package/templates/agent-rules/capabilities/activities-system.md +0 -147
- package/web/dist/assets/index-4p3KJ0jf.js +0 -2016
- package/web/dist/assets/index-BPIipM25.css +0 -1
package/templates/TOOLS.md
CHANGED
|
@@ -33,9 +33,3 @@ This document maps the **Model Context Protocol (MCP)** tools to their **HTTP AP
|
|
|
33
33
|
| `read_file` | `GET /api/files/:path` | `path: string` | Read file with injected semantic metadata. |
|
|
34
34
|
| `write_file` | `POST /api/files` | `path, content` | Write file with automatic backup. |
|
|
35
35
|
|
|
36
|
-
## Activities
|
|
37
|
-
|
|
38
|
-
| MCP Tool | HTTP Endpoint | Parameters | Description |
|
|
39
|
-
| :--- | :--- | :--- | :--- |
|
|
40
|
-
| `list_activities` | `GET /api/activities` | *None* | List all ongoing agent missions. |
|
|
41
|
-
| `get_reasoning` | `GET /api/activities/:id/reasoning` | `id: string` | Recall agent interaction history for a task. |
|
|
@@ -23,11 +23,6 @@ capabilities:
|
|
|
23
23
|
required: true
|
|
24
24
|
endpoint_check: "/api/bundles"
|
|
25
25
|
|
|
26
|
-
activities_system:
|
|
27
|
-
file: "capabilities/activities-system.md"
|
|
28
|
-
required: false
|
|
29
|
-
endpoint_check: "/api/activities"
|
|
30
|
-
|
|
31
26
|
# Project-specific context
|
|
32
27
|
project_context:
|
|
33
28
|
- "project-specific/architecture.md"
|
|
@@ -9,18 +9,9 @@ This repository has been analyzed by cntx-ui and is ready for intelligent agent
|
|
|
9
9
|
If you're an agent without MCP server access, use this prompt to get up to speed:
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
I'm working in a project that uses cntx-ui for file organization and AI collaboration. Please read
|
|
12
|
+
I'm working in a project that uses cntx-ui for file organization and AI collaboration. Please read this file to understand the project structure:
|
|
13
13
|
|
|
14
14
|
@.cntx/agent-instructions.md
|
|
15
|
-
@.cntx/activities/README.md
|
|
16
|
-
@.cntx/activities/activities.json
|
|
17
|
-
|
|
18
|
-
After reading those, please also examine:
|
|
19
|
-
@.cntx/activities/lib/create-activity.mdc
|
|
20
|
-
@.cntx/activities/lib/generate-tasks.mdc
|
|
21
|
-
@.cntx/activities/lib/process-task-list.mdc
|
|
22
|
-
|
|
23
|
-
These files contain the complete workflow for creating and managing activities with agent assistance.
|
|
24
15
|
```
|
|
25
16
|
|
|
26
17
|
## Your Role
|
|
@@ -98,7 +89,6 @@ _"Help me set up this project" or "Optimize my bundle organization"_
|
|
|
98
89
|
- **Fresh Projects**: Detect project state → Generate semantic analysis → Plan bundles → Create bundles
|
|
99
90
|
- **Established Projects**: Audit organization → Optimize bundles → Suggest improvements
|
|
100
91
|
- **Maintenance**: Cleanup stale patterns → Validate health → Recommend optimizations
|
|
101
|
-
- **Activities**: detect, analyze, bundle (plan), create (execute), optimize, audit, cleanup, validate
|
|
102
92
|
|
|
103
93
|
## Response Guidelines
|
|
104
94
|
|
|
@@ -144,10 +134,7 @@ Would you like me to [specific follow-up options]?
|
|
|
144
134
|
2. **Bundle System** (50ms) - `GET /api/bundles`
|
|
145
135
|
- Use for: project structure, file organization, high-level overview
|
|
146
136
|
|
|
147
|
-
3. **
|
|
148
|
-
- Use for: agent task tracking, progress monitoring
|
|
149
|
-
|
|
150
|
-
4. **Traditional Search** (100ms+, high token cost) - `grep/rg/Read`
|
|
137
|
+
3. **Traditional Search** (100ms+, high token cost) - `grep/rg/Read`
|
|
151
138
|
- Use ONLY when: exact string matching needed, vector search fails
|
|
152
139
|
- Examples: specific error messages, exact function names
|
|
153
140
|
|
|
@@ -59,7 +59,6 @@ cntx-ui/
|
|
|
59
59
|
│ ├── src/lib/ # Client-side utilities
|
|
60
60
|
│ └── dist/ # Built static assets
|
|
61
61
|
├── .cntx/ # Configuration and cache
|
|
62
|
-
│ ├── activities/ # Agent task definitions
|
|
63
62
|
│ ├── agent-rules/ # Modular agent instructions
|
|
64
63
|
│ ├── bundle-states.json # Bundle configuration and metadata
|
|
65
64
|
│ └── semantic-cache.json # Analysis cache
|