summer-engine 2.5.0 → 2.6.0
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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +5 -4
- package/.codex-plugin/plugin.json +5 -4
- package/.cursor-plugin/plugin.json +4 -3
- package/.factory-plugin/plugin.json +3 -3
- package/AGENTS.md +6 -4
- package/CHANGELOG.md +20 -2
- package/GEMINI.md +3 -3
- package/README.md +83 -97
- package/dist/bin/summer.js +6 -1
- package/dist/commands/cloud.d.ts +2 -0
- package/dist/commands/cloud.js +80 -0
- package/dist/commands/doctor.js +19 -0
- package/dist/commands/login.js +4 -1
- package/dist/commands/logout.js +1 -1
- package/dist/commands/open.js +1 -1
- package/dist/commands/plan.d.ts +2 -0
- package/dist/commands/plan.js +60 -0
- package/dist/commands/run.js +132 -35
- package/dist/lib/auth.d.ts +2 -0
- package/dist/lib/auth.js +13 -0
- package/dist/lib/cloud/api.d.ts +79 -0
- package/dist/lib/cloud/api.js +107 -0
- package/dist/lib/cloud/apply.d.ts +32 -0
- package/dist/lib/cloud/apply.js +294 -0
- package/dist/lib/cloud/checkpoint.d.ts +26 -0
- package/dist/lib/cloud/checkpoint.js +142 -0
- package/dist/lib/cloud/conflicts.d.ts +55 -0
- package/dist/lib/cloud/conflicts.js +131 -0
- package/dist/lib/cloud/containment.d.ts +8 -0
- package/dist/lib/cloud/containment.js +52 -0
- package/dist/lib/cloud/diff.d.ts +39 -0
- package/dist/lib/cloud/diff.js +138 -0
- package/dist/lib/cloud/engine-bridge.d.ts +21 -0
- package/dist/lib/cloud/engine-bridge.js +105 -0
- package/dist/lib/cloud/hash-cache.d.ts +23 -0
- package/dist/lib/cloud/hash-cache.js +44 -0
- package/dist/lib/cloud/hash.d.ts +10 -0
- package/dist/lib/cloud/hash.js +111 -0
- package/dist/lib/cloud/http.d.ts +17 -0
- package/dist/lib/cloud/http.js +47 -0
- package/dist/lib/cloud/lock-path.d.ts +1 -0
- package/dist/lib/cloud/lock-path.js +5 -0
- package/dist/lib/cloud/lock.d.ts +14 -0
- package/dist/lib/cloud/lock.js +143 -0
- package/dist/lib/cloud/manifest.d.ts +6 -0
- package/dist/lib/cloud/manifest.js +41 -0
- package/dist/lib/cloud/paths.d.ts +20 -0
- package/dist/lib/cloud/paths.js +90 -0
- package/dist/lib/cloud/project-godot-merge.d.ts +32 -0
- package/dist/lib/cloud/project-godot-merge.js +185 -0
- package/dist/lib/cloud/rules.d.ts +39 -0
- package/dist/lib/cloud/rules.js +159 -0
- package/dist/lib/cloud/sync.d.ts +21 -0
- package/dist/lib/cloud/sync.js +518 -0
- package/dist/lib/cloud/transfer.d.ts +23 -0
- package/dist/lib/cloud/transfer.js +184 -0
- package/dist/lib/cloud/types.d.ts +62 -0
- package/dist/lib/cloud/types.js +1 -0
- package/dist/lib/cloud/validate-path.d.ts +23 -0
- package/dist/lib/cloud/validate-path.js +103 -0
- package/dist/lib/engine.d.ts +6 -0
- package/dist/lib/engine.js +36 -1
- package/dist/lib/game-task-plan.d.ts +42 -0
- package/dist/lib/game-task-plan.js +376 -0
- package/dist/mcp/server.js +2 -0
- package/dist/mcp/tools/asset-tools.js +265 -45
- package/dist/mcp/tools/cloud-tools.d.ts +2 -0
- package/dist/mcp/tools/cloud-tools.js +42 -0
- package/dist/mcp/tools/generate-tools.js +101 -13
- package/dist/mcp/tools/project-tools.js +59 -16
- package/gemini-extension.json +3 -3
- package/package.json +16 -5
- package/skills/3d-assets/character-model/SKILL.md +27 -5
- package/skills/3d-assets/environment-kit/SKILL.md +7 -2
- package/skills/3d-assets/organic-model/SKILL.md +4 -3
- package/skills/3d-assets/prop-model/SKILL.md +16 -8
- package/skills/3d-assets/vehicle-model/SKILL.md +4 -3
- package/skills/animation/animation-tree/SKILL.md +2 -0
- package/skills/animation/generate-motion/SKILL.md +25 -4
- package/skills/asset-pipeline/asset-strategy/SKILL.md +3 -2
- package/skills/workflow/mcpupdate/SKILL.md +134 -0
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Summer Engine
|
|
1
|
+
# Summer Engine: the AI game engine
|
|
2
2
|
|
|
3
3
|
Build real 2D and 3D games through conversation. No coding required. Export to Steam, desktop, mobile, and web. Built on the Godot team's work, customized and honed so AI agents and humans can collaborate on great games.
|
|
4
4
|
|
|
5
|
-
**Summer** is the open-source
|
|
5
|
+
**Summer** is the MIT open-source agent layer that connects your AI coding agent to Summer Engine: CLI, MCP server, skills, hooks, and plugin manifests. First-class setup works in Claude Code, Cursor, Codex, Windsurf, Cline, Roo Code, Gemini CLI, GitHub Copilot CLI, GitHub Copilot in VS Code, and OpenCode. Factory Droid uses the plugin marketplace path.
|
|
6
6
|
|
|
7
|
-
- **Source:** [github.com/SummerEngine/summer](https://github.com/SummerEngine/summer)
|
|
7
|
+
- **Source:** [github.com/SummerEngine/summer-engine-agent](https://github.com/SummerEngine/summer-engine-agent)
|
|
8
8
|
- **Docs:** [summerengine.com/docs](https://summerengine.com/docs)
|
|
9
9
|
- **MCP setup:** [summerengine.com/mcp](https://summerengine.com/mcp)
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ It just works. Open your agent, say *"let's make an FPS in Summer Engine,"* and
|
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
-
## Get started
|
|
15
|
+
## Get started: one prompt
|
|
16
16
|
|
|
17
17
|
Open your AI agent (Claude Code, Cursor, Codex, Copilot, Windsurf, etc.) and paste:
|
|
18
18
|
|
|
@@ -22,8 +22,8 @@ That's it. The agent reads this README, detects what's already on your machine,
|
|
|
22
22
|
|
|
23
23
|
The first run will:
|
|
24
24
|
1. Install the `summer-engine` npm package (~3 MB) if it's not on `PATH`.
|
|
25
|
-
2.
|
|
26
|
-
3. Download the Summer Engine app (~1 GB
|
|
25
|
+
2. Install Summer's game-dev skills into `~/.claude/skills/` (or your agent's user-skill directory) so the agent loads them next session.
|
|
26
|
+
3. Download the Summer Engine app (~1 GB, including the engine binary, Git, and other runtime tools so users without them aren't blocked) if it's not installed.
|
|
27
27
|
4. Open your browser for one-click sign-in.
|
|
28
28
|
5. Scaffold a starter project and open the engine.
|
|
29
29
|
|
|
@@ -31,19 +31,19 @@ At that point the agent has the skills, the MCP server, and your engine running.
|
|
|
31
31
|
|
|
32
32
|
---
|
|
33
33
|
|
|
34
|
-
## AGENTS READING THIS
|
|
34
|
+
## AGENTS READING THIS: install playbook
|
|
35
35
|
|
|
36
|
-
You are an AI coding agent. The user told you to install Summer Engine. **Run this playbook via your shell
|
|
36
|
+
You are an AI coding agent. The user told you to install Summer Engine. **Run this playbook via your shell**: Bash on macOS/Linux or PowerShell on Windows. `npx -y` is shell-agnostic and works identically in both. Detection first, then only install what's missing.
|
|
37
37
|
|
|
38
|
-
### Step
|
|
38
|
+
### Step -1: Verify Node.js is on PATH
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
node --version
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
If this
|
|
44
|
+
If this command does not print Node.js 18 or newer, **stop**. Tell the user: "Summer needs Node.js 18+. Install from https://nodejs.org and re-run the prompt." Do NOT try to install Node yourself.
|
|
45
45
|
|
|
46
|
-
### Step 0
|
|
46
|
+
### Step 0: Pre-detection (no commits to disk, just check state)
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
49
|
npx -y summer-engine@latest doctor --json
|
|
@@ -51,29 +51,14 @@ npx -y summer-engine@latest doctor --json
|
|
|
51
51
|
|
|
52
52
|
The first invocation downloads the npm package transparently to npx's cache (~3 MB, ~5 sec). Subsequent calls are fast. The `-y` flag auto-confirms npx's "ok to install summer-engine?" prompt so the call doesn't hang in a non-interactive shell.
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
-
"ok": true | false,
|
|
59
|
-
"checks": [
|
|
60
|
-
{ "id": "node-version", "status": "ok" | "warning" | "fail", ... },
|
|
61
|
-
{ "id": "cli-version", "status": "ok" | "warning" | "fail", ... },
|
|
62
|
-
{ "id": "cli-version-current", "status": "ok" | "warning" | "fail", ... },
|
|
63
|
-
{ "id": "skills-version-stale","status": "ok" | "warning" | "fail", ... },
|
|
64
|
-
{ "id": "login", "status": "ok" | "warning" | "fail", ... },
|
|
65
|
-
{ "id": "engine-install", "status": "ok" | "warning" | "fail", ... },
|
|
66
|
-
{ "id": "local-api", "status": "ok" | "warning" | "fail", ... },
|
|
67
|
-
{ "id": "project-memory", "status": "ok" | "warning" | "fail", ... },
|
|
68
|
-
{ "id": "mcp-server", "status": "ok" | "warning" | "fail", ... }
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
```
|
|
54
|
+
Read the JSON output. If top-level `ok` is `true`, everything is installed and you can skip straight to Step 5. Otherwise use the `checks` array to run only the remediation steps that need attention.
|
|
55
|
+
|
|
56
|
+
The relevant check ids are `node-version`, `cli-version`, `cli-version-current`, `skills-version-stale`, `login`, `engine-install`, `local-api`, `project-memory`, and `mcp-server`. For any check that is not `ok`, run the action in the table below, then re-run doctor.
|
|
72
57
|
|
|
73
|
-
| Check id | If `ok` |
|
|
58
|
+
| Check id | If `ok` | Action when attention is needed |
|
|
74
59
|
|---|---|---|
|
|
75
|
-
| `node-version` | continue |
|
|
76
|
-
| `cli-version` |
|
|
60
|
+
| `node-version` | continue | Step -1 already covered this |
|
|
61
|
+
| `cli-version` | always ok via npx | no action |
|
|
77
62
|
| `cli-version-current` | continue | run `npx clear-npx-cache && npx -y summer-engine@latest doctor --json` (forces a fresh resolve) |
|
|
78
63
|
| `skills-version-stale` | skip Step 1 | run Step 1 with `--force` |
|
|
79
64
|
| `engine-install` | skip Step 2 | run Step 2 |
|
|
@@ -82,55 +67,55 @@ Parse the JSON output. Top-level `ok: true` means everything is installed and yo
|
|
|
82
67
|
| `project-memory` | continue | if a project is open, run `summer:brainstorm-game` before building |
|
|
83
68
|
| `mcp-server` | skip Step 1 | run Step 1 |
|
|
84
69
|
|
|
85
|
-
**On version drift:** if either `cli-version-current` or `skills-version-stale`
|
|
70
|
+
**On version drift:** if either `cli-version-current` or `skills-version-stale` needs attention, refresh before proceeding. Tell the user once: "There's a newer Summer (X.Y.Z to A.B.C); updating before we start." Then run the recommended action from `details.recommendedAction` and re-run doctor. Don't ask the user to choose; they paste "install" and want the latest.
|
|
86
71
|
|
|
87
|
-
### Step 1
|
|
72
|
+
### Step 1: Install user-level skills (idempotent, fast)
|
|
88
73
|
|
|
89
74
|
```bash
|
|
90
75
|
npx -y summer-engine@latest setup claude-code --yes --force
|
|
91
76
|
```
|
|
92
77
|
|
|
93
|
-
Replace `claude-code` with the user's actual agent: `codex`, `cursor`, `windsurf`, `cline`, `roo-code`, `gemini`, `github-copilot`, `vscode-copilot`, or `opencode`. Use `github-copilot` for Copilot CLI and `vscode-copilot` for GitHub Copilot Chat/Agent in VS Code. Factory Droid still uses the plugin marketplace path in the install section below. This writes
|
|
78
|
+
Replace `claude-code` with the user's actual agent: `codex`, `cursor`, `windsurf`, `cline`, `roo-code`, `gemini`, `github-copilot`, `vscode-copilot`, or `opencode`. Use `github-copilot` for Copilot CLI and `vscode-copilot` for GitHub Copilot Chat/Agent in VS Code. Factory Droid still uses the plugin marketplace path in the install section below. This writes the current Summer skill bundle to `~/.claude/skills/<name>/SKILL.md` (or the agent's equivalent user-skill directory) AND writes the MCP server config so the agent can talk to the engine. The `--force` flag wipes any stale skill content first, so re-runs always end up with the latest copy.
|
|
94
79
|
|
|
95
|
-
**First-install detection:** if `~/.claude/skills/` didn't exist before this command, Claude Code wasn't watching it and won't auto-detect the new files this session. Tell the user **once**: "Skills installed
|
|
80
|
+
**First-install detection:** if `~/.claude/skills/` didn't exist before this command, Claude Code wasn't watching it and won't auto-detect the new files this session. Tell the user **once**: "Skills installed - restart your agent so they load." On subsequent installs (directory already existed), skills auto-detect mid-session and no restart is needed. **You can detect first-install vs upgrade by checking if `~/.claude/skills/` existed before Step 1; record the result before running setup.**
|
|
96
81
|
|
|
97
82
|
**Do NOT run `/plugin install` or any slash command.** The CLI path is the canonical install. The marketplace path is an alternative for users who specifically prefer the official plugin TUI; we don't route agents there.
|
|
98
83
|
|
|
99
|
-
### Step 2
|
|
84
|
+
### Step 2: Install the engine app (only if `engine-install` needs attention)
|
|
100
85
|
|
|
101
86
|
```bash
|
|
102
87
|
npx -y summer-engine@latest install
|
|
103
88
|
```
|
|
104
89
|
|
|
105
|
-
~1 GB. Downloads from Summer's signed releases. The bundle includes the engine binary plus Git and a handful of other runtime tools so users who don't already have them aren't blocked. The CLI prints the URL and size before touching disk. Tell the user **"downloading the engine app, ~1 GB
|
|
90
|
+
~1 GB. Downloads from Summer's signed releases. The bundle includes the engine binary plus Git and a handful of other runtime tools so users who don't already have them aren't blocked. The CLI prints the URL and size before touching disk. Tell the user **"downloading the engine app, ~1 GB, this takes a couple minutes"** so they don't bail thinking it stalled.
|
|
106
91
|
|
|
107
|
-
**Linux note:** the engine app currently supports macOS and Windows only. On Linux, `summer install` exits with a "Linux support coming soon" message. Surface the manual download URL to the user (https://summerengine.com/download) and stop
|
|
92
|
+
**Linux note:** the engine app currently supports macOS and Windows only. On Linux, `summer install` exits with a "Linux support coming soon" message. Surface the manual download URL to the user (https://summerengine.com/download) and stop. The rest of the playbook still works once they've installed manually.
|
|
108
93
|
|
|
109
|
-
### Step 3
|
|
94
|
+
### Step 3: Sign in (only if `login` needs attention)
|
|
110
95
|
|
|
111
96
|
```bash
|
|
112
97
|
npx -y summer-engine@latest login
|
|
113
98
|
```
|
|
114
99
|
|
|
115
|
-
This opens the user's default browser. **Tell the user**: "Your browser is opening now. Click sign-in once and come back to this terminal." The CLI waits up to 120 seconds for the auth callback, writes the token to `~/.summer/auth-token`, and returns. **If the user takes longer than
|
|
100
|
+
This opens the user's default browser. **Tell the user**: "Your browser is opening now. Click sign-in once and come back to this terminal." The CLI waits up to 120 seconds for the auth callback, writes the token to `~/.summer/auth-token`, and returns. **If the user takes longer than 120 seconds, re-run `npx -y summer-engine@latest login` and tell them to come back to the terminal quickly.** Don't loop indefinitely. The same token is shared with the engine; they sign in once, both surfaces accept it.
|
|
116
101
|
|
|
117
|
-
### Step 4
|
|
102
|
+
### Step 4: Re-run doctor to confirm
|
|
118
103
|
|
|
119
104
|
```bash
|
|
120
105
|
npx -y summer-engine@latest doctor --json
|
|
121
106
|
```
|
|
122
107
|
|
|
123
|
-
Should now return `ok: true` for `cli-version`, `login`, and `engine-install`.
|
|
108
|
+
Should now return `ok: true` for `cli-version`, `login`, and `engine-install`. `local-api` may still need attention because the engine is not running yet. If a setup check still needs attention, surface the specific message to the user and do not loop or paper over it.
|
|
124
109
|
|
|
125
|
-
### Step 5
|
|
110
|
+
### Step 5: Scaffold a project and run
|
|
126
111
|
|
|
127
|
-
**Important:** `summer create` writes the project into the current working directory. **Pick a stable parent directory first
|
|
112
|
+
**Important:** `summer create` writes the project into the current working directory. **Pick a stable parent directory first**, such as the user's home or a Projects folder, and `cd` there before running `create`. Don't let it land in a temp dir or wherever the agent happened to start.
|
|
128
113
|
|
|
129
114
|
```bash
|
|
130
115
|
cd ~/Projects # or wherever the user keeps code
|
|
131
116
|
```
|
|
132
117
|
|
|
133
|
-
If the user said "let's make a game" without specifying a template, default to `3d-basic`. Pick a sensible project name from the user's request
|
|
118
|
+
If the user said "let's make a game" without specifying a template, default to `3d-basic`. Pick a sensible project name from the user's request, for example "FPS" to `my-fps-game`. Avoid spaces in the name.
|
|
134
119
|
|
|
135
120
|
```bash
|
|
136
121
|
npx -y summer-engine@latest create 3d-basic my-fps-game
|
|
@@ -139,9 +124,9 @@ npx -y summer-engine@latest run my-fps-game
|
|
|
139
124
|
|
|
140
125
|
`summer run` launches the engine app with the project loaded and polls the engine's local API for up to 20 seconds before returning.
|
|
141
126
|
|
|
142
|
-
### Step 5b
|
|
127
|
+
### Step 5b: Wait for the engine to be reachable (only if `summer run` printed "API not responding yet")
|
|
143
128
|
|
|
144
|
-
If the engine takes longer than 20s to boot (cold start, slow disk, etc.), `summer run` returns successfully but the local API isn't up yet.
|
|
129
|
+
If the engine takes longer than 20s to boot (cold start, slow disk, etc.), `summer run` returns successfully but the local API isn't up yet. MCP tools may not connect until the local API is ready. Wait for it:
|
|
145
130
|
|
|
146
131
|
```bash
|
|
147
132
|
# Poll doctor until local-api flips to ok (max ~30s):
|
|
@@ -156,9 +141,9 @@ done
|
|
|
156
141
|
|
|
157
142
|
Once `local-api` is `ok`, MCP tools are safe to call.
|
|
158
143
|
|
|
159
|
-
### Step 6
|
|
144
|
+
### Step 6: Brainstorm the game, then build
|
|
160
145
|
|
|
161
|
-
Now you have skills + MCP. **Don't jump into `summer create` content from a vague prompt
|
|
146
|
+
Now you have skills + MCP. **Don't jump into `summer create` content from a vague prompt**. Call `summer_start_game_task` with the user's goal, then invoke the recommended skill. For vague "make a game" requests, that should usually be `summer:brainstorm-game`. It scopes mechanics, art direction, and the V1 cut list, and writes the result to `.summer/GameSoul.md`. Every other Summer skill reads from that file.
|
|
162
147
|
|
|
163
148
|
Project memory lives in `.summer/` as readable Markdown. Use `.summer/memory/` for locked facts that should not drift across sessions, such as character voice IDs, world canon, and provider bindings. Users can inspect it with `summer memory`; agents should read relevant memory surfaced by `summer_get_project_context` before changing creative/audio/dialogue/level/character work.
|
|
164
149
|
|
|
@@ -166,15 +151,15 @@ Only skip brainstorm if the user explicitly said "skip brainstorm" or "just buil
|
|
|
166
151
|
|
|
167
152
|
### Anti-patterns (do NOT do these)
|
|
168
153
|
|
|
169
|
-
- **Don't run `npm install -g summer-engine`.** Use `npx -y summer-engine@latest ...` instead. `-g` requires `sudo` on most Mac/Linux setups
|
|
170
|
-
- **Don't try to install Node.js for the user.** If `node --version`
|
|
171
|
-
- **Don't ask the user "do you want the engine too?" or "do you also want the CLI?"**
|
|
154
|
+
- **Don't run `npm install -g summer-engine`.** Use `npx -y summer-engine@latest ...` instead. `-g` requires `sudo` on most Mac/Linux setups, so the user will get permission errors and you'll get stuck. `npx` works without root and the MCP config we ship already points at `npx summer-engine mcp`.
|
|
155
|
+
- **Don't try to install Node.js for the user.** If `node --version` is unavailable, point them at https://nodejs.org and stop.
|
|
156
|
+
- **Don't ask the user "do you want the engine too?" or "do you also want the CLI?"** There is one product, three pieces, all installed by this playbook.
|
|
172
157
|
- **Don't double-install.** Always run `npx -y summer-engine@latest doctor --json` first. Skip steps that already returned `status: ok`.
|
|
173
|
-
- **Don't tell the user to type `/plugin marketplace add` or `/plugin install`.** The CLI path is the canonical install
|
|
158
|
+
- **Don't tell the user to type `/plugin marketplace add` or `/plugin install`.** The CLI path is the canonical install. Those slash commands are an alternative for the marketplace TUI, not the primary flow.
|
|
174
159
|
- **Don't run `summer install` or `summer login` in the background.** They print user-facing output (engine download progress, browser-opening notice). Run them in the foreground so the user sees what's happening.
|
|
175
|
-
- **Don't skip the `--json` flag on `summer doctor
|
|
176
|
-
- **Don't skip the `-y` flag on `npx
|
|
177
|
-
- **Don't drop `@latest` from the npx commands.** `npx -y summer-engine` (no version pin) serves whatever's in npx's local cache, which can be a stale older version. The `@latest` tag forces npm to re-resolve from the registry. If a user reports "unknown command 'doctor'" or sees a much smaller skill list than expected, they got cache-served
|
|
160
|
+
- **Don't skip the `--json` flag on `summer doctor`.** Text output is fragile to parse and changes per version.
|
|
161
|
+
- **Don't skip the `-y` flag on `npx`.** Without it, npx prompts "ok to install summer-engine?" interactively and the call hangs in a non-interactive shell.
|
|
162
|
+
- **Don't drop `@latest` from the npx commands.** `npx -y summer-engine` (no version pin) serves whatever's in npx's local cache, which can be a stale older version. The `@latest` tag forces npm to re-resolve from the registry. If a user reports "unknown command 'doctor'" or sees a much smaller skill list than expected, they got cache-served. Tell them to run `npx clear-npx-cache` then retry with `@latest`.
|
|
178
163
|
- **Don't call MCP tools (`summer_get_scene_tree`, etc.) until `local-api` is `ok`.** The engine takes a few seconds to boot after `summer run`. Use Step 5b's wait-loop.
|
|
179
164
|
- **Don't `summer create` without `cd`'ing to a stable parent directory first.** It writes into CWD; agents that start in a temp dir will leave the project there.
|
|
180
165
|
- **Don't loop `summer login` if it times out at 120s.** Re-run it once and tell the user to be quicker; loop forever and the user is stuck.
|
|
@@ -186,12 +171,12 @@ Only skip brainstorm if the user explicitly said "skip brainstorm" or "just buil
|
|
|
186
171
|
|
|
187
172
|
---
|
|
188
173
|
|
|
189
|
-
## Get started
|
|
174
|
+
## Get started: alternative manual install via plugin marketplace
|
|
190
175
|
|
|
191
176
|
If you specifically prefer the official Claude Code plugin marketplace UI, you can install via:
|
|
192
177
|
|
|
193
178
|
```
|
|
194
|
-
/plugin marketplace add SummerEngine/summer
|
|
179
|
+
/plugin marketplace add SummerEngine/summer-engine-agent
|
|
195
180
|
/plugin install summer@summer-engine
|
|
196
181
|
```
|
|
197
182
|
|
|
@@ -201,13 +186,13 @@ This is functionally equivalent to `npx -y summer-engine@latest setup claude-cod
|
|
|
201
186
|
|
|
202
187
|
## What just happened (the three pieces)
|
|
203
188
|
|
|
204
|
-
You installed one product. It has three parts. You don't have to think about them
|
|
189
|
+
You installed one product. It has three parts. You don't have to think about them because Summer wires them up, but here's what each does:
|
|
205
190
|
|
|
206
|
-
- **Summer Engine
|
|
207
|
-
- **Summer
|
|
208
|
-
- **Summer CLI
|
|
191
|
+
- **Summer Engine**: the game engine app. Where you see, play, and debug your game. Installed by the agent via `npx -y summer-engine@latest install`. Proprietary, free to use.
|
|
192
|
+
- **Summer agent layer**: the skills, hooks, and plugin manifests that tell Claude Code, Codex, Cursor, and other agents how to build games. Installed by `summer setup` or the marketplace path. MIT, open source.
|
|
193
|
+
- **Summer CLI and MCP bridge**: the terminal command and local tool server that install the engine, scaffold projects, run them, sign you in, and let agents talk to the running engine. Usually invoked through `npx -y summer-engine@latest ...`, so no global install is needed. MIT, open source.
|
|
209
194
|
|
|
210
|
-
The
|
|
195
|
+
The agent layer gives the agent judgment. The CLI and MCP bridge give it hands. The engine is where the game actually lives.
|
|
211
196
|
|
|
212
197
|
---
|
|
213
198
|
|
|
@@ -219,7 +204,7 @@ We tell you before we touch your disk.
|
|
|
219
204
|
|---|---|---|---|
|
|
220
205
|
| `summer-engine` npm package (CLI + plugin source) | ~3 MB | first `npx -y summer-engine@latest ...` call | [npmjs.com/package/summer-engine](https://www.npmjs.com/package/summer-engine) |
|
|
221
206
|
| Summer Engine app | ~1 GB (engine + bundled Git/runtime tools) | `npx -y summer-engine@latest install` | Summer's signed releases |
|
|
222
|
-
| Auth token | ~1 KB | `npx -y summer-engine@latest login` | Browser
|
|
207
|
+
| Auth token | ~1 KB | `npx -y summer-engine@latest login` | Browser to `~/.summer/auth-token` |
|
|
223
208
|
| Skill files | < 50 KB | bundled in the npm package | no extra network call |
|
|
224
209
|
| Generated assets (3D / image / audio / video) | varies | only on explicit `summer_generate_*` calls | Summer Engine Studio |
|
|
225
210
|
| URL imports | varies | only on explicit `summer_import_from_url` calls | the URL you provide |
|
|
@@ -235,11 +220,11 @@ Not downloaded:
|
|
|
235
220
|
|
|
236
221
|
| Thing | License | Source |
|
|
237
222
|
|---|---|---|
|
|
238
|
-
| **Summer** (this repo:
|
|
239
|
-
| **Summer Engine** (the
|
|
240
|
-
| **Summer
|
|
223
|
+
| **Summer** (this repo: CLI, MCP server, skills, hooks, plugin manifests) | **MIT** | [SummerEngine/summer-engine-agent](https://github.com/SummerEngine/summer-engine-agent) |
|
|
224
|
+
| **Summer Engine app** (the desktop editor and runtime) | free to download, closed source for now | [summerengine.com/download](https://summerengine.com/download) |
|
|
225
|
+
| **Hosted Summer AI and cloud services** (asset generation, storage, multiplayer, orchestration) | paid Summer services | [summerengine.com/pricing](https://summerengine.com/pricing) |
|
|
241
226
|
|
|
242
|
-
The
|
|
227
|
+
The desktop app is free to download. The AI-agent layer, meaning the CLI, MCP server, skills, and plugin manifests, is MIT open source. Hosted Summer AI, asset generation, storage, multiplayer, and cloud features are paid Summer services.
|
|
243
228
|
|
|
244
229
|
---
|
|
245
230
|
|
|
@@ -247,29 +232,29 @@ The engine is the moat. The agent layer is open so you can audit it, fork it, ex
|
|
|
247
232
|
|
|
248
233
|
Two pieces, plus the glue.
|
|
249
234
|
|
|
250
|
-
**Skills.**
|
|
235
|
+
**Skills.** A bundled set of markdown playbooks. Each one is a discipline guide for the agent. They auto-fire on natural language:
|
|
251
236
|
|
|
252
|
-
- "Let's brainstorm a game"
|
|
253
|
-
- "It crashes when I press play"
|
|
254
|
-
- "Add an FPS controller"
|
|
255
|
-
- "Make it look prettier"
|
|
256
|
-
- "Set up multiplayer"
|
|
237
|
+
- "Let's brainstorm a game" -> `summer:brainstorm-game`
|
|
238
|
+
- "It crashes when I press play" -> `summer:debug`
|
|
239
|
+
- "Add an FPS controller" -> `summer:fps-controller`
|
|
240
|
+
- "Make it look prettier" -> `summer:art-direction`
|
|
241
|
+
- "Set up multiplayer" -> `summer:setup-multiplayer` -> `summer:host-authoritative-state`
|
|
257
242
|
|
|
258
243
|
Skills don't list steps. They encode the **order of operations**: diagnose before editing, scope before building, ask before guessing. [Agent Skills](https://agentskills.io) format, so any conformant tool picks them up.
|
|
259
244
|
|
|
260
|
-
**MCP bridge.** The `summer-engine` MCP server gives the agent
|
|
245
|
+
**MCP bridge.** The `summer-engine` MCP server gives the agent 44 tools that talk to your local engine on `localhost:6550`:
|
|
261
246
|
|
|
262
247
|
| | |
|
|
263
248
|
|---|---|
|
|
264
|
-
| Scene | `summer_add_node`, `summer_set_prop`, `summer_replace_node`, `summer_get_scene_tree`, `summer_inspect_node`, `summer_batch` |
|
|
265
|
-
| Diagnostics | `summer_get_script_errors`, `summer_get_diagnostics`, `summer_get_console`, `summer_get_debugger_errors` |
|
|
249
|
+
| Scene | `summer_add_node`, `summer_set_prop`, `summer_instantiate_scene`, `summer_replace_node`, `summer_get_scene_tree`, `summer_inspect_node`, `summer_batch` |
|
|
250
|
+
| Diagnostics | `summer_get_script_errors`, `summer_get_diagnostics`, `summer_get_console`, `summer_get_debugger_errors`, `summer_get_debugger_warnings` |
|
|
266
251
|
| Runtime | `summer_play`, `summer_stop`, `summer_is_running` |
|
|
267
252
|
| Project | `summer_get_project_context`, `summer_open_main_scene`, `summer_project_setting`, `summer_input_map_bind` |
|
|
268
253
|
| Assets | `summer_search_assets`, `summer_import_asset`, `summer_import_from_url`, `summer_generate_image`, `summer_generate_3d`, `summer_generate_audio`, `summer_generate_video` |
|
|
269
254
|
|
|
270
|
-
File ops, git, shell, grep
|
|
255
|
+
File ops, git, shell, and grep already belong to your agent. We don't shadow them.
|
|
271
256
|
|
|
272
|
-
**Lifecycle hooks.** A `session-start` hook detects whether you're in a Summer Engine project and feeds the agent a one-line orientation. An opt-in `pre-commit doctor` runs `summer doctor` before `git commit` and blocks
|
|
257
|
+
**Lifecycle hooks.** A `session-start` hook detects whether you're in a Summer Engine project and feeds the agent a one-line orientation. An opt-in `pre-commit doctor` runs `summer doctor` before `git commit` and blocks when the setup needs attention.
|
|
273
258
|
|
|
274
259
|
For the full architecture, see [docs/OVERVIEW.md](docs/OVERVIEW.md).
|
|
275
260
|
|
|
@@ -286,27 +271,27 @@ For the full architecture, see [docs/OVERVIEW.md](docs/OVERVIEW.md).
|
|
|
286
271
|
7. **debug** runs the cheapest diagnostic, forms one specific hypothesis, asks before editing, re-verifies after the fix.
|
|
287
272
|
8. **export-and-ship** runs the pre-flight checklist before producing a release build.
|
|
288
273
|
|
|
289
|
-
|
|
274
|
+
The skill bundle replaces "agent flailing through tutorials" with measurable craft.
|
|
290
275
|
|
|
291
276
|
---
|
|
292
277
|
|
|
293
278
|
## What's inside
|
|
294
279
|
|
|
295
|
-
**Process
|
|
280
|
+
**Process**: `using-summer`, `brainstorm-game`, `debug`, `play`
|
|
296
281
|
|
|
297
|
-
**Project setup
|
|
282
|
+
**Project setup**: `new-project`, `browse-templates`, `make-game`, `scene-composition`
|
|
298
283
|
|
|
299
|
-
**Build
|
|
284
|
+
**Build**: `fps-controller`, `design-mechanic`, `design-level`, `design-npc`
|
|
300
285
|
|
|
301
|
-
**Multiplayer
|
|
286
|
+
**Multiplayer**: `setup-multiplayer`, `host-authoritative-state`, `peer-to-peer-multiplayer`
|
|
302
287
|
|
|
303
|
-
**Look & feel
|
|
288
|
+
**Look & feel**: `art-direction`, `audio-direction`, `3d-lighting`, `vfx`, `ui-basics`
|
|
304
289
|
|
|
305
|
-
**Code & assets
|
|
290
|
+
**Code & assets**: `gdscript-patterns`, `asset-strategy`
|
|
306
291
|
|
|
307
|
-
**Performance & ship
|
|
292
|
+
**Performance & ship**: `tune-performance`, `export-and-ship`
|
|
308
293
|
|
|
309
|
-
**Skill authoring
|
|
294
|
+
**Skill authoring**: `skill-create`, `skill-improve`, `skill-test`
|
|
310
295
|
|
|
311
296
|
C# is supported by the engine. A `summer:csharp-patterns` skill is on the roadmap; for now write C# from Godot 4.5 docs.
|
|
312
297
|
|
|
@@ -322,12 +307,12 @@ Full list of shipping skills: the `skills:` array in [`.claude-plugin/plugin.jso
|
|
|
322
307
|
|
|
323
308
|
---
|
|
324
309
|
|
|
325
|
-
## Install
|
|
310
|
+
## Install: full instructions per harness
|
|
326
311
|
|
|
327
312
|
### Claude Code
|
|
328
313
|
|
|
329
314
|
```bash
|
|
330
|
-
claude /plugin marketplace add SummerEngine/summer
|
|
315
|
+
claude /plugin marketplace add SummerEngine/summer-engine-agent
|
|
331
316
|
claude /plugin install summer@summer-engine
|
|
332
317
|
```
|
|
333
318
|
|
|
@@ -347,7 +332,7 @@ Search `summer`, install.
|
|
|
347
332
|
|
|
348
333
|
### Codex App
|
|
349
334
|
|
|
350
|
-
Sidebar
|
|
335
|
+
Sidebar to **Plugins** to **Coding**, then click `+` next to **Summer**.
|
|
351
336
|
|
|
352
337
|
### Cursor
|
|
353
338
|
|
|
@@ -360,7 +345,7 @@ Or search `summer` in the Cursor plugin marketplace.
|
|
|
360
345
|
### Factory Droid
|
|
361
346
|
|
|
362
347
|
```bash
|
|
363
|
-
droid plugin marketplace add https://github.com/SummerEngine/summer
|
|
348
|
+
droid plugin marketplace add https://github.com/SummerEngine/summer-engine-agent
|
|
364
349
|
droid plugin install summer@summer-engine
|
|
365
350
|
```
|
|
366
351
|
|
|
@@ -378,7 +363,7 @@ Writes the MCP server config to VS Code's globalStorage for the Cline extension
|
|
|
378
363
|
npx -y summer-engine@latest setup roo-code --yes
|
|
379
364
|
```
|
|
380
365
|
|
|
381
|
-
Same shape as Cline (Roo Code is a Cline fork)
|
|
366
|
+
Same shape as Cline (Roo Code is a Cline fork): writes globalStorage MCP config and `.clinerules/` files. **Restart VS Code** afterward.
|
|
382
367
|
|
|
383
368
|
### Gemini CLI
|
|
384
369
|
|
|
@@ -386,7 +371,7 @@ Same shape as Cline (Roo Code is a Cline fork) — writes globalStorage MCP conf
|
|
|
386
371
|
npx -y summer-engine@latest setup gemini --yes
|
|
387
372
|
```
|
|
388
373
|
|
|
389
|
-
Drops a Summer extension manifest at `~/.gemini/extensions/summer-engine/`. If the extension isn't auto-enabled on next launch, run `gemini extensions enable summer-engine`. The marketplace path (`gemini extensions install https://github.com/SummerEngine/summer`) still works for users who prefer it
|
|
374
|
+
Drops a Summer extension manifest at `~/.gemini/extensions/summer-engine/`. If the extension isn't auto-enabled on next launch, run `gemini extensions enable summer-engine`. The marketplace path (`gemini extensions install https://github.com/SummerEngine/summer-engine-agent`) still works for users who prefer it. Both end up at the same place.
|
|
390
375
|
|
|
391
376
|
### GitHub Copilot CLI
|
|
392
377
|
|
|
@@ -425,11 +410,12 @@ npx -y summer-engine@latest doctor
|
|
|
425
410
|
|
|
426
411
|
| Command | What it does |
|
|
427
412
|
|---|---|
|
|
428
|
-
| `summer install` | Download Summer Engine.
|
|
413
|
+
| `summer install` | Download Summer Engine. Prints URL and size first. |
|
|
429
414
|
| `summer login` | Browser-based sign-in. |
|
|
430
415
|
| `summer logout` | Clear auth tokens. |
|
|
431
416
|
| `summer status` | Engine state, port, auth. |
|
|
432
417
|
| `summer doctor` | Diagnose Node, login, engine, project memory, MCP. |
|
|
418
|
+
| `summer plan <goal>` | Route a game-building goal into skills, MCP tools, gates, and verification. |
|
|
433
419
|
| `summer memory` | Inspect project memory in `.summer`. |
|
|
434
420
|
| `summer memory show <file>` | Print a project memory Markdown file. |
|
|
435
421
|
| `summer run [path]` | Launch the engine. |
|
|
@@ -501,4 +487,4 @@ MIT for everything in this repo. Summer Engine itself is proprietary. See [What'
|
|
|
501
487
|
- [Download Summer Engine](https://summerengine.com/download)
|
|
502
488
|
- [Documentation](https://summerengine.com/docs)
|
|
503
489
|
- [Community](https://summerengine.com/community)
|
|
504
|
-
- [Issues](https://github.com/SummerEngine/summer/issues)
|
|
490
|
+
- [Issues](https://github.com/SummerEngine/summer-engine-agent/issues)
|
package/dist/bin/summer.js
CHANGED
|
@@ -15,6 +15,8 @@ import { skillsCommand } from "../commands/skills.js";
|
|
|
15
15
|
import { orchestratorCommand } from "../commands/orchestrator.js";
|
|
16
16
|
import { setupCommand } from "../commands/setup.js";
|
|
17
17
|
import { doctorCommand } from "../commands/doctor.js";
|
|
18
|
+
import { planCommand } from "../commands/plan.js";
|
|
19
|
+
import { cloudCommand } from "../commands/cloud.js";
|
|
18
20
|
import { getBanner } from "../lib/banner.js";
|
|
19
21
|
import { c, sym } from "../lib/format.js";
|
|
20
22
|
const require = createRequire(import.meta.url);
|
|
@@ -40,7 +42,9 @@ program.addCommand(skillsCommand);
|
|
|
40
42
|
program.addCommand(mcpCommand);
|
|
41
43
|
program.addCommand(setupCommand);
|
|
42
44
|
program.addCommand(doctorCommand);
|
|
45
|
+
program.addCommand(planCommand);
|
|
43
46
|
program.addCommand(orchestratorCommand);
|
|
47
|
+
program.addCommand(cloudCommand);
|
|
44
48
|
program.parseAsync().catch((err) => {
|
|
45
49
|
console.error(err instanceof Error ? err.message : String(err));
|
|
46
50
|
process.exit(1);
|
|
@@ -58,6 +62,7 @@ function printIntro(version) {
|
|
|
58
62
|
console.log(` ${c.bold("Manual commands")}`);
|
|
59
63
|
console.log(` ${c.dim("$")} npx -y summer-engine@latest setup claude-code --yes`);
|
|
60
64
|
console.log(` ${c.dim("$")} npx -y summer-engine@latest create 3d-basic my-game`);
|
|
65
|
+
console.log(` ${c.dim("$")} npx -y summer-engine@latest plan make a small arena shooter`);
|
|
61
66
|
console.log(` ${c.dim("$")} npx -y summer-engine@latest memory`);
|
|
62
67
|
console.log(` ${c.dim("$")} npx -y summer-engine@latest doctor`);
|
|
63
68
|
console.log("");
|
|
@@ -66,6 +71,6 @@ function printIntro(version) {
|
|
|
66
71
|
console.log(` ${c.brand("/play")} ${c.dim("Run the game and report state")}`);
|
|
67
72
|
console.log("");
|
|
68
73
|
console.log(` ${c.dim("Docs:")} https://summerengine.com/docs`);
|
|
69
|
-
console.log(` ${c.dim("Source:")} https://github.com/SummerEngine/summer`);
|
|
74
|
+
console.log(` ${c.dim("Source:")} https://github.com/SummerEngine/summer-engine-agent`);
|
|
70
75
|
console.log("");
|
|
71
76
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import { cloudCheckpoints, cloudConflicts, cloudInit, cloudPull, cloudPush, cloudRestore, cloudStatus, } from "../lib/cloud/sync.js";
|
|
3
|
+
export const cloudCommand = new Command("cloud").description("Sync Summer Engine projects with Summer Cloud");
|
|
4
|
+
cloudCommand
|
|
5
|
+
.command("init")
|
|
6
|
+
.description("Enable Summer Cloud for this project")
|
|
7
|
+
.option("--project <path>", "Project root path")
|
|
8
|
+
.option("--json", "Print JSON")
|
|
9
|
+
.action(async (opts) => printResult(await cloudInit(opts), opts.json));
|
|
10
|
+
cloudCommand
|
|
11
|
+
.command("status")
|
|
12
|
+
.description("Show Summer Cloud sync status")
|
|
13
|
+
.option("--project <path>", "Project root path")
|
|
14
|
+
.option("--json", "Print JSON")
|
|
15
|
+
.action(async (opts) => printResult(await cloudStatus(opts), opts.json));
|
|
16
|
+
cloudCommand
|
|
17
|
+
.command("push")
|
|
18
|
+
.description("Push local project changes to Summer Cloud")
|
|
19
|
+
.option("--project <path>", "Project root path")
|
|
20
|
+
.option("--json", "Print JSON")
|
|
21
|
+
.option("--confirm-deletes", "Allow guarded cloud deletions")
|
|
22
|
+
.option("--bootstrap <choice>", "No-base bootstrap choice: keep-cloud, keep-local, merge")
|
|
23
|
+
.option("--adopt-path", "Accept that the project folder moved and update the recorded path")
|
|
24
|
+
.action(async (opts) => printResult(await cloudPush(opts), opts.json));
|
|
25
|
+
cloudCommand
|
|
26
|
+
.command("pull")
|
|
27
|
+
.description("Pull Summer Cloud changes into this project")
|
|
28
|
+
.option("--project <path>", "Project root path")
|
|
29
|
+
.option("--json", "Print JSON")
|
|
30
|
+
.option("--bootstrap <choice>", "No-base bootstrap choice: keep-cloud, keep-local, merge")
|
|
31
|
+
.option("--adopt-path", "Accept that the project folder moved and update the recorded path")
|
|
32
|
+
.action(async (opts) => printResult(await cloudPull(opts), opts.json));
|
|
33
|
+
cloudCommand
|
|
34
|
+
.command("restore")
|
|
35
|
+
.description("Restore a retained cloud version (new head, then pull) or a local pre-sync checkpoint")
|
|
36
|
+
.option("--version <number>", "Cloud version number to restore", Number)
|
|
37
|
+
.option("--checkpoint <stamp>", "Local checkpoint stamp or full ref (see: summer cloud checkpoints)")
|
|
38
|
+
.option("--project <path>", "Project root path")
|
|
39
|
+
.option("--json", "Print JSON")
|
|
40
|
+
.action(async (opts) => printResult(await cloudRestore(opts), opts.json));
|
|
41
|
+
cloudCommand
|
|
42
|
+
.command("checkpoints")
|
|
43
|
+
.description("List local pre-sync checkpoints")
|
|
44
|
+
.option("--project <path>", "Project root path")
|
|
45
|
+
.option("--json", "Print JSON")
|
|
46
|
+
.action(async (opts) => printResult(await cloudCheckpoints(opts), opts.json));
|
|
47
|
+
const conflictsCommand = new Command("conflicts").description("Inspect and recover Summer Cloud conflict sets");
|
|
48
|
+
conflictsCommand
|
|
49
|
+
.command("list", { isDefault: true })
|
|
50
|
+
.description("List local Summer Cloud conflict sets")
|
|
51
|
+
.option("--project <path>", "Project root path")
|
|
52
|
+
.option("--json", "Print JSON")
|
|
53
|
+
.action(async (opts) => printResult(await cloudConflicts(opts), opts.json));
|
|
54
|
+
conflictsCommand
|
|
55
|
+
.command("restore <path>")
|
|
56
|
+
.description("Restore a preserved conflict file back into the project as a fresh edit")
|
|
57
|
+
.option("--set <stamp>", "Conflict set stamp (defaults to the newest set containing the path)")
|
|
58
|
+
.option("--project <path>", "Project root path")
|
|
59
|
+
.option("--json", "Print JSON")
|
|
60
|
+
.action(async (restorePath, opts) => printResult(await cloudConflicts({ ...opts, restorePath }), opts.json));
|
|
61
|
+
cloudCommand.addCommand(conflictsCommand);
|
|
62
|
+
function printResult(result, json) {
|
|
63
|
+
if (json) {
|
|
64
|
+
console.log(JSON.stringify(result, null, 2));
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
console.log(result.message);
|
|
68
|
+
if (result.projectId)
|
|
69
|
+
console.log(`Project: ${result.projectId}`);
|
|
70
|
+
if (result.version !== undefined)
|
|
71
|
+
console.log(`Version: ${result.version}`);
|
|
72
|
+
for (const notice of result.notices ?? []) {
|
|
73
|
+
console.log(`notice: ${notice}`);
|
|
74
|
+
}
|
|
75
|
+
if (result.details) {
|
|
76
|
+
for (const [key, value] of Object.entries(result.details)) {
|
|
77
|
+
console.log(`${key}: ${Array.isArray(value) ? value.length : String(value)}`);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
package/dist/commands/doctor.js
CHANGED
|
@@ -4,6 +4,7 @@ import { createRequire } from "node:module";
|
|
|
4
4
|
import { platform } from "os";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import { getAuthToken, getUserInfo } from "../lib/auth.js";
|
|
7
|
+
import { isGitAvailable } from "../lib/cloud/checkpoint.js";
|
|
7
8
|
import { checkEngineHealth, getApiPort, getApiToken } from "../lib/engine.js";
|
|
8
9
|
import { brandLine, c, pad, sym, tildeify } from "../lib/format.js";
|
|
9
10
|
import { getProjectMemorySummary } from "../lib/project-memory.js";
|
|
@@ -48,6 +49,7 @@ export async function runDoctor(options = {}) {
|
|
|
48
49
|
checks.push(checkSkillsVersion());
|
|
49
50
|
checks.push(await checkLogin());
|
|
50
51
|
checks.push(checkEngineInstall());
|
|
52
|
+
checks.push(await checkGitForCheckpoints());
|
|
51
53
|
checks.push(await checkLocalApi());
|
|
52
54
|
checks.push(await checkProjectMemory());
|
|
53
55
|
checks.push(await checkMcpBoot());
|
|
@@ -144,6 +146,23 @@ function checkEngineInstall() {
|
|
|
144
146
|
message: "not installed (run: summer install)",
|
|
145
147
|
};
|
|
146
148
|
}
|
|
149
|
+
async function checkGitForCheckpoints() {
|
|
150
|
+
const available = await isGitAvailable();
|
|
151
|
+
if (available) {
|
|
152
|
+
return {
|
|
153
|
+
id: "git",
|
|
154
|
+
label: "Git (cloud checkpoints)",
|
|
155
|
+
status: "ok",
|
|
156
|
+
message: "git found on PATH",
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
id: "git",
|
|
161
|
+
label: "Git (cloud checkpoints)",
|
|
162
|
+
status: "warning",
|
|
163
|
+
message: "git not found; Summer Cloud sync needs git for pre-sync safety checkpoints",
|
|
164
|
+
};
|
|
165
|
+
}
|
|
147
166
|
async function checkLocalApi() {
|
|
148
167
|
const token = await getApiToken();
|
|
149
168
|
const port = await getApiPort();
|
package/dist/commands/login.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
2
|
import { randomUUID } from "crypto";
|
|
3
3
|
import open from "open";
|
|
4
|
-
import { getAuthToken, saveAuthToken, saveUserInfo } from "../lib/auth.js";
|
|
4
|
+
import { getAuthToken, saveAuthToken, saveCloudToken, saveUserInfo } from "../lib/auth.js";
|
|
5
5
|
const GATEWAY_URL = process.env.SUMMER_GATEWAY_URL || "https://www.summerengine.com";
|
|
6
6
|
const POLL_INTERVAL_MS = 2000;
|
|
7
7
|
const POLL_TIMEOUT_MS = 120000;
|
|
@@ -52,6 +52,9 @@ async function doLogin() {
|
|
|
52
52
|
continue;
|
|
53
53
|
if (data.status === "complete" && data.token) {
|
|
54
54
|
await saveAuthToken(data.token);
|
|
55
|
+
if (data.cloudToken) {
|
|
56
|
+
await saveCloudToken(data.cloudToken);
|
|
57
|
+
}
|
|
55
58
|
if (data.user) {
|
|
56
59
|
await saveUserInfo(data.user);
|
|
57
60
|
}
|
package/dist/commands/logout.js
CHANGED
|
@@ -6,7 +6,7 @@ export const logoutCommand = new Command("logout")
|
|
|
6
6
|
.description("Sign out and clear stored auth tokens")
|
|
7
7
|
.action(async () => {
|
|
8
8
|
const dir = getSummerDir();
|
|
9
|
-
const files = ["auth-token", "user.json"];
|
|
9
|
+
const files = ["auth-token", "cloud-token", "user.json"];
|
|
10
10
|
let cleared = false;
|
|
11
11
|
for (const file of files) {
|
|
12
12
|
try {
|
package/dist/commands/open.js
CHANGED
|
@@ -28,5 +28,5 @@ export const openCommand = new Command("open")
|
|
|
28
28
|
}
|
|
29
29
|
console.log(`Opening project: ${fullPath}`);
|
|
30
30
|
console.log("Note: To switch projects, close the current one in Summer Engine first,\n" +
|
|
31
|
-
"
|
|
31
|
+
"then run: summer run " + fullPath);
|
|
32
32
|
});
|