the-grid-cc 1.1.0 → 1.1.2
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/.grid/STATE.md +22 -0
- package/README.md +3 -11
- package/commands/grid/help.md +4 -1
- package/commands/grid/mcp.md +37 -0
- package/commands/grid/update.md +53 -0
- package/package.json +1 -1
- package/todo-app/README.md +16 -0
- package/todo-app/eslint.config.js +29 -0
- package/todo-app/index.html +13 -0
- package/todo-app/package-lock.json +2917 -0
- package/todo-app/package.json +27 -0
- package/todo-app/public/vite.svg +1 -0
- package/todo-app/src/App.css +125 -0
- package/todo-app/src/App.jsx +84 -0
- package/todo-app/src/index.css +68 -0
- package/todo-app/src/main.jsx +10 -0
- package/todo-app/vite.config.js +7 -0
package/.grid/STATE.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# THE GRID - State File
|
|
2
|
+
|
|
3
|
+
## CLUSTER: React Todo App
|
|
4
|
+
**Status:** COMPLETE
|
|
5
|
+
**Energy:** 9000
|
|
6
|
+
**Created:** 2026-01-23
|
|
7
|
+
|
|
8
|
+
## BLOCKS
|
|
9
|
+
|
|
10
|
+
### BLOCK: Core Application
|
|
11
|
+
| Thread | Status |
|
|
12
|
+
|--------|--------|
|
|
13
|
+
| Initialize React project | COMPLETE |
|
|
14
|
+
| Create Todo components | COMPLETE |
|
|
15
|
+
| Implement add/delete/toggle | COMPLETE |
|
|
16
|
+
| Add styling | COMPLETE |
|
|
17
|
+
|
|
18
|
+
## ACTIVE PROGRAMS
|
|
19
|
+
None - All Programs derezzed
|
|
20
|
+
|
|
21
|
+
## I/O TOWER
|
|
22
|
+
Cluster complete. Awaiting User.
|
package/README.md
CHANGED
|
@@ -31,20 +31,11 @@ This keeps MCP's context window lean while heavy work happens in fresh subagent
|
|
|
31
31
|
|
|
32
32
|
## Quick Start
|
|
33
33
|
|
|
34
|
-
### Install
|
|
35
|
-
|
|
36
34
|
```bash
|
|
37
|
-
|
|
38
|
-
git clone https://github.com/JamesWeatherhead/grid.git
|
|
39
|
-
|
|
40
|
-
# Copy commands to Claude Code
|
|
41
|
-
cp -r grid/commands/* ~/.claude/commands/
|
|
42
|
-
cp -r grid/agents/* ~/.claude/agents/
|
|
35
|
+
npx the-grid-cc
|
|
43
36
|
```
|
|
44
37
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
In Claude Code:
|
|
38
|
+
Then in Claude Code:
|
|
48
39
|
|
|
49
40
|
```
|
|
50
41
|
/grid
|
|
@@ -99,6 +90,7 @@ If any Program needs your input → **I/O Tower** activates → MCP asks you.
|
|
|
99
90
|
|---------|-------------|
|
|
100
91
|
| `/grid` | Enter The Grid - activates MCP |
|
|
101
92
|
| `/grid:mcp` | Same as above |
|
|
93
|
+
| `/grid:update` | Pull latest updates from GitHub |
|
|
102
94
|
| `/grid:init` | Initialize `.grid/` state directory |
|
|
103
95
|
| `/grid:help` | Show command reference |
|
|
104
96
|
|
package/commands/grid/help.md
CHANGED
|
@@ -15,7 +15,10 @@ Display this help text:
|
|
|
15
15
|
|
|
16
16
|
COMMANDS
|
|
17
17
|
--------
|
|
18
|
-
/grid
|
|
18
|
+
/grid Enter The Grid - speak to MCP
|
|
19
|
+
/grid:mcp Same as above
|
|
20
|
+
/grid:update Pull latest updates from GitHub
|
|
21
|
+
/grid:init Initialize .grid/ state directory
|
|
19
22
|
/grid:help Show this help
|
|
20
23
|
|
|
21
24
|
CONCEPTS
|
package/commands/grid/mcp.md
CHANGED
|
@@ -149,6 +149,41 @@ What would you like to build?
|
|
|
149
149
|
End of Line.
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
+
## PROGRAM MONITORING
|
|
153
|
+
|
|
154
|
+
When you spawn a Program, run it in BACKGROUND (`run_in_background: true`) and show live progress:
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
+============================================================+
|
|
158
|
+
| PROGRAM: Executor [RUNNING] |
|
|
159
|
+
+============================================================+
|
|
160
|
+
| ████████████░░░░░░░░░░░░░░░░░░ 40% | Energy: 9200 |
|
|
161
|
+
| -------------------------------------------------------- |
|
|
162
|
+
| Thread: Initialize React project |
|
|
163
|
+
| Status: Creating package.json... |
|
|
164
|
+
+============================================================+
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Check program output every few seconds using Read tool on the output file. Update the display:
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
| ████████████████████░░░░░░░░░░ 65% | Energy: 9000 |
|
|
171
|
+
| Thread: Create Todo components |
|
|
172
|
+
| Status: Building TodoList.jsx... |
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
When complete:
|
|
176
|
+
```
|
|
177
|
+
| ██████████████████████████████ 100% | Energy: 8800 |
|
|
178
|
+
| Thread: COMPLETE |
|
|
179
|
+
| Status: All files written successfully |
|
|
180
|
+
+============================================================+
|
|
181
|
+
|
|
182
|
+
MCP > Program returned. Verifying results...
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**NEVER leave the User in darkness.** Always show what's happening.
|
|
186
|
+
|
|
152
187
|
## CRITICAL RULES
|
|
153
188
|
|
|
154
189
|
1. NEVER execute heavy work yourself - spawn Programs
|
|
@@ -157,3 +192,5 @@ End of Line.
|
|
|
157
192
|
4. NEVER let your context exceed 50% - spawn more Programs
|
|
158
193
|
5. ALWAYS end important statements with "End of Line."
|
|
159
194
|
6. User ONLY talks to you - Programs report to you
|
|
195
|
+
7. ALWAYS run Programs in background and show progress
|
|
196
|
+
8. NEVER leave User waiting without status updates
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# /grid:update - Update The Grid
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
name: grid:update
|
|
5
|
+
description: Pull latest Grid updates from GitHub
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Bash
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
Update The Grid to the latest version without leaving Claude Code.
|
|
11
|
+
|
|
12
|
+
## EXECUTION
|
|
13
|
+
|
|
14
|
+
Run this sequence:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Create temp directory
|
|
18
|
+
rm -rf ~/.grid-temp 2>/dev/null
|
|
19
|
+
git clone --depth 1 https://github.com/JamesWeatherhead/grid.git ~/.grid-temp
|
|
20
|
+
|
|
21
|
+
# Copy updated commands
|
|
22
|
+
cp -r ~/.grid-temp/commands/* ~/.claude/commands/
|
|
23
|
+
|
|
24
|
+
# Copy updated agents
|
|
25
|
+
cp -r ~/.grid-temp/agents/* ~/.claude/agents/
|
|
26
|
+
|
|
27
|
+
# Get version
|
|
28
|
+
cat ~/.grid-temp/commands/grid/VERSION
|
|
29
|
+
|
|
30
|
+
# Cleanup
|
|
31
|
+
rm -rf ~/.grid-temp
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## DISPLAY
|
|
35
|
+
|
|
36
|
+
Show this after update:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
+============================================================+
|
|
40
|
+
| THE GRID - Update Complete |
|
|
41
|
+
+============================================================+
|
|
42
|
+
| |
|
|
43
|
+
| Commands updated: ~/.claude/commands/grid/ |
|
|
44
|
+
| Agents updated: ~/.claude/agents/grid-*.md |
|
|
45
|
+
| |
|
|
46
|
+
| Version: {version from VERSION file} |
|
|
47
|
+
| |
|
|
48
|
+
+============================================================+
|
|
49
|
+
|
|
50
|
+
MCP > Grid updated. Changes take effect immediately.
|
|
51
|
+
|
|
52
|
+
End of Line.
|
|
53
|
+
```
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# React + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## React Compiler
|
|
11
|
+
|
|
12
|
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
|
13
|
+
|
|
14
|
+
## Expanding the ESLint configuration
|
|
15
|
+
|
|
16
|
+
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
+
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
6
|
+
|
|
7
|
+
export default defineConfig([
|
|
8
|
+
globalIgnores(['dist']),
|
|
9
|
+
{
|
|
10
|
+
files: ['**/*.{js,jsx}'],
|
|
11
|
+
extends: [
|
|
12
|
+
js.configs.recommended,
|
|
13
|
+
reactHooks.configs.flat.recommended,
|
|
14
|
+
reactRefresh.configs.vite,
|
|
15
|
+
],
|
|
16
|
+
languageOptions: {
|
|
17
|
+
ecmaVersion: 2020,
|
|
18
|
+
globals: globals.browser,
|
|
19
|
+
parserOptions: {
|
|
20
|
+
ecmaVersion: 'latest',
|
|
21
|
+
ecmaFeatures: { jsx: true },
|
|
22
|
+
sourceType: 'module',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
rules: {
|
|
26
|
+
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
])
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>todo-app</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/main.jsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|