summer-engine 3.3.0 → 3.4.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 +4 -2
- package/.codex-plugin/plugin.json +5 -3
- package/.cursor-plugin/plugin.json +4 -2
- package/.factory-plugin/plugin.json +4 -2
- package/CHANGELOG.md +36 -0
- package/README.md +2 -1
- package/assets/api-docs.json.gz +0 -0
- package/dist/cli/commands/install.d.ts +10 -0
- package/dist/cli/commands/install.js +55 -10
- package/dist/cli/commands/tool.d.ts +7 -0
- package/dist/cli/commands/tool.js +36 -1
- package/dist/core/capabilities/capture-gameplay.d.ts +69 -0
- package/dist/core/capabilities/capture-gameplay.js +283 -0
- package/dist/core/capabilities/creator.js +1 -1
- package/dist/core/capabilities/doctor.d.ts +9 -1
- package/dist/core/capabilities/doctor.js +47 -4
- package/dist/core/capabilities/engine-run.d.ts +4 -0
- package/dist/core/capabilities/engine-run.js +33 -5
- package/dist/core/capabilities/export-engine-version.d.ts +15 -0
- package/dist/core/capabilities/export-engine-version.js +24 -0
- package/dist/core/capabilities/export-game.d.ts +9 -1
- package/dist/core/capabilities/export-game.js +112 -36
- package/dist/core/capabilities/image-generation.d.ts +9 -0
- package/dist/core/capabilities/image-generation.js +19 -1
- package/dist/core/capabilities/publish-build.d.ts +14 -1
- package/dist/core/capabilities/publish-build.js +74 -22
- package/dist/core/capabilities/tool-dispatch.js +10 -0
- package/dist/core/config.js +2 -2
- package/dist/core/engine-install.d.ts +16 -0
- package/dist/core/engine-install.js +32 -2
- package/dist/core/hosted-mcp.d.ts +115 -0
- package/dist/core/hosted-mcp.js +164 -0
- package/dist/core/launch-posture.d.ts +3 -0
- package/dist/core/launch-posture.js +15 -2
- package/dist/mcp/hosted-mount.d.ts +13 -59
- package/dist/mcp/hosted-mount.js +24 -30
- package/dist/mcp/server.js +3 -2
- package/dist/mcp/tools/creator-tools.js +13 -3
- package/dist/mcp/tools/generate-tools.js +12 -2
- package/gemini-extension.json +3 -1
- package/library/references/mcp-tools-reference/mcp-tools-reference.md +3 -2
- package/library/skills/README.md +6 -4
- package/library/skills/bounded-engine-runs/SKILL.md +96 -0
- package/library/skills/bounded-engine-runs/resource.yaml +29 -0
- package/library/skills/compatibility-renderer-traps/SKILL.md +78 -0
- package/library/skills/compatibility-renderer-traps/resource.yaml +28 -0
- package/library/skills/concept-art/SKILL.md +2 -2
- package/library/skills/export-and-ship/SKILL.md +2 -0
- package/library/skills/headless-scripting/resource.yaml +1 -0
- package/library/skills/in-game-purchases/SKILL.md +123 -118
- package/library/skills/in-game-purchases/resource.yaml +2 -2
- package/library/skills/web-compatibility-look/resource.yaml +1 -0
- package/library/tools/capture-gameplay/resource.yaml +73 -0
- package/library/tools/generate-image/resource.yaml +15 -1
- package/library/tools/publish-build/resource.yaml +1 -1
- package/package.json +1 -1
- package/registry/generated/aliases.json +1 -0
- package/registry/generated/counts.json +3 -3
- package/registry/generated/gemini-extension.json +3 -1
- package/registry/generated/index.json +125 -12
- package/registry/generated/marketplace.claude.json +2 -2
- package/registry/generated/plugin.claude.json +4 -2
- package/registry/generated/plugin.codex.json +5 -3
- package/registry/generated/plugin.cursor.json +4 -2
- package/registry/generated/plugin.factory.json +4 -2
- package/registry/generated/skills-index.md +6 -4
- package/registry/generated/skills-registry.json +28 -1
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
{
|
|
12
12
|
"name": "summer",
|
|
13
13
|
"source": "./",
|
|
14
|
-
"version": "3.
|
|
15
|
-
"description": "Agent tooling for Summer Engine: game-dev skills, lifecycle hooks, and a
|
|
14
|
+
"version": "3.4.0",
|
|
15
|
+
"description": "Agent tooling for Summer Engine: game-dev skills, lifecycle hooks, and a 105-tool MCP bridge to the local desktop app.",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "Summer Engine",
|
|
18
18
|
"email": "founders@summerengine.com"
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
|
|
3
3
|
"_generated": "GENERATED from integrations/claude — do not edit; npm run generate:registry",
|
|
4
4
|
"name": "summer",
|
|
5
|
-
"version": "3.
|
|
6
|
-
"description": "Agent tooling for Summer Engine: game-dev skills, lifecycle hooks, and a
|
|
5
|
+
"version": "3.4.0",
|
|
6
|
+
"description": "Agent tooling for Summer Engine: game-dev skills, lifecycle hooks, and a 105-tool MCP bridge to the local desktop app.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Summer Engine",
|
|
9
9
|
"email": "founders@summerengine.com",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"./library/skills/asset-strategy/",
|
|
39
39
|
"./library/skills/audio-direction/",
|
|
40
40
|
"./library/skills/auto-fire-targeting/",
|
|
41
|
+
"./library/skills/bounded-engine-runs/",
|
|
41
42
|
"./library/skills/brainstorm-game/",
|
|
42
43
|
"./library/skills/brainstorming/",
|
|
43
44
|
"./library/skills/browse-templates/",
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"./library/skills/character-portrait/",
|
|
50
51
|
"./library/skills/cinematic-cutscene/",
|
|
51
52
|
"./library/skills/combat-basics/",
|
|
53
|
+
"./library/skills/compatibility-renderer-traps/",
|
|
52
54
|
"./library/skills/concept-art/",
|
|
53
55
|
"./library/skills/create-asset-sheet/",
|
|
54
56
|
"./library/skills/debug/",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_generated": "GENERATED from integrations/codex — do not edit; npm run generate:registry",
|
|
3
3
|
"name": "summer",
|
|
4
|
-
"version": "3.
|
|
5
|
-
"description": "Agent tooling for Summer Engine: game-dev skills, lifecycle hooks, and a
|
|
4
|
+
"version": "3.4.0",
|
|
5
|
+
"description": "Agent tooling for Summer Engine: game-dev skills, lifecycle hooks, and a 105-tool MCP bridge. Build games by talking.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Summer Engine",
|
|
8
8
|
"email": "founders@summerengine.com",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"./library/skills/asset-strategy/",
|
|
34
34
|
"./library/skills/audio-direction/",
|
|
35
35
|
"./library/skills/auto-fire-targeting/",
|
|
36
|
+
"./library/skills/bounded-engine-runs/",
|
|
36
37
|
"./library/skills/brainstorm-game/",
|
|
37
38
|
"./library/skills/brainstorming/",
|
|
38
39
|
"./library/skills/browse-templates/",
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
"./library/skills/character-portrait/",
|
|
45
46
|
"./library/skills/cinematic-cutscene/",
|
|
46
47
|
"./library/skills/combat-basics/",
|
|
48
|
+
"./library/skills/compatibility-renderer-traps/",
|
|
47
49
|
"./library/skills/concept-art/",
|
|
48
50
|
"./library/skills/create-asset-sheet/",
|
|
49
51
|
"./library/skills/debug/",
|
|
@@ -144,7 +146,7 @@
|
|
|
144
146
|
"interface": {
|
|
145
147
|
"displayName": "Summer",
|
|
146
148
|
"shortDescription": "Superpowers for AI game dev. Build games by talking.",
|
|
147
|
-
"longDescription": "Summer turns Codex into a game-dev studio for Summer Engine. Users make Summer games with the Summer SDK and GDScript. The plugin adds game-dev skills, lifecycle hooks, and a
|
|
149
|
+
"longDescription": "Summer turns Codex into a game-dev studio for Summer Engine. Users make Summer games with the Summer SDK and GDScript. The plugin adds game-dev skills, lifecycle hooks, and a 105-tool MCP bridge for guarded project files, scene editing, asset import, play mode, diagnostics, generation, and creator workflows. Git, shell, and grep stay with the host agent. Summer follows its upstream technical base continuously; version-sensitive work uses the bundled compatibility reference instead of a fixed onboarding version. Session-start orients the session. Pre-commit doctor (opt-in) blocks bad commits.",
|
|
148
150
|
"developerName": "Summer Engine",
|
|
149
151
|
"category": "Coding",
|
|
150
152
|
"capabilities": [
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"_generated": "GENERATED from integrations/cursor — do not edit; npm run generate:registry",
|
|
4
4
|
"name": "summer",
|
|
5
5
|
"displayName": "Summer",
|
|
6
|
-
"version": "3.
|
|
7
|
-
"description": "Agent tooling for Summer Engine: game-dev skills, lifecycle hooks, and a
|
|
6
|
+
"version": "3.4.0",
|
|
7
|
+
"description": "Agent tooling for Summer Engine: game-dev skills, lifecycle hooks, and a 105-tool MCP bridge to the local desktop app.",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Summer Engine",
|
|
10
10
|
"email": "founders@summerengine.com"
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"./library/skills/asset-strategy/",
|
|
46
46
|
"./library/skills/audio-direction/",
|
|
47
47
|
"./library/skills/auto-fire-targeting/",
|
|
48
|
+
"./library/skills/bounded-engine-runs/",
|
|
48
49
|
"./library/skills/brainstorm-game/",
|
|
49
50
|
"./library/skills/brainstorming/",
|
|
50
51
|
"./library/skills/browse-templates/",
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
"./library/skills/character-portrait/",
|
|
57
58
|
"./library/skills/cinematic-cutscene/",
|
|
58
59
|
"./library/skills/combat-basics/",
|
|
60
|
+
"./library/skills/compatibility-renderer-traps/",
|
|
59
61
|
"./library/skills/concept-art/",
|
|
60
62
|
"./library/skills/create-asset-sheet/",
|
|
61
63
|
"./library/skills/debug/",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_generated": "GENERATED from integrations/factory — do not edit; npm run generate:registry",
|
|
3
3
|
"name": "summer",
|
|
4
|
-
"description": "Agent tooling for Summer Engine: game-dev skills, lifecycle hooks, and a
|
|
5
|
-
"version": "3.
|
|
4
|
+
"description": "Agent tooling for Summer Engine: game-dev skills, lifecycle hooks, and a 105-tool MCP bridge to the local desktop app.",
|
|
5
|
+
"version": "3.4.0",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Summer Engine",
|
|
8
8
|
"email": "founders@summerengine.com",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"./library/skills/asset-strategy/",
|
|
31
31
|
"./library/skills/audio-direction/",
|
|
32
32
|
"./library/skills/auto-fire-targeting/",
|
|
33
|
+
"./library/skills/bounded-engine-runs/",
|
|
33
34
|
"./library/skills/brainstorm-game/",
|
|
34
35
|
"./library/skills/brainstorming/",
|
|
35
36
|
"./library/skills/browse-templates/",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"./library/skills/character-portrait/",
|
|
42
43
|
"./library/skills/cinematic-cutscene/",
|
|
43
44
|
"./library/skills/combat-basics/",
|
|
45
|
+
"./library/skills/compatibility-renderer-traps/",
|
|
44
46
|
"./library/skills/concept-art/",
|
|
45
47
|
"./library/skills/create-asset-sheet/",
|
|
46
48
|
"./library/skills/debug/",
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to summer-engine will be documented here. Following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [Semantic Versioning](https://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [3.4.0] - 2026-10-09
|
|
6
|
+
|
|
7
|
+
Publishing a game from your agent now works end to end, with fewer surprises:
|
|
8
|
+
|
|
9
|
+
- Take store screenshots of real gameplay without opening the editor (`summer_capture_gameplay`).
|
|
10
|
+
- Make store-size art: ask `summer_generate_image` for an aspect ratio or a size.
|
|
11
|
+
- See the store tools as soon as your agent connects, and use them from the terminal (`summer tool`). `summer doctor` checks that the store accepts your sign-in.
|
|
12
|
+
- An export tells you first when your Summer Engine is too old, shows the engine's real error when it fails, and lists the project files it changed.
|
|
13
|
+
- A publish preview checks that the game exists before it asks you to confirm.
|
|
14
|
+
- `summer install --path` installs Summer.app into the folder you name, and every command uses that engine.
|
|
15
|
+
- New skills for running the engine safely from an agent and for games that also run on the Compatibility renderer.
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- `summer_capture_gameplay` (CLI `summer tool capture-gameplay`): saves real gameplay frames (HUD included) without a running editor. It starts the game in the engine's offscreen verify instance (`--summer-verify`, real renderer, window offscreen, no focus, never `--headless`) at `resolution` (default `1920x1080`), waits `waitSeconds`, and saves `frames` PNGs to `<project>/.summer/captures/<time>/`. It imports a never-opened project first, passes `--summer-no-api`, and returns each frame's path with its real width and height. It warns when the stretch settings render another size.
|
|
19
|
+
- `summer_generate_image` `aspectRatio` (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 5:4, 4:5, 21:9) and `width` + `height` (64 to 4096), sent to the image route as top-level fields. The server picks a model that reaches the size, or refuses a named model that cannot, before any spend. The result reports the real size and the model. The `options` description now says what the server really does. Until the server side ships, the new fields are accepted and ignored.
|
|
20
|
+
- `summer tool` runs a name that is not a local tool on the hosted Summer Engine MCP with the store sign-in (`summer tool summer_store_list_games`). `summer tool --list` lists the hosted tools after the local ones, or says to run `summer login --store`.
|
|
21
|
+
- `summer doctor` store-access check: with a store sign-in it calls `summer_store_list_games` (8 s limit) and shows the answer, or the store's code, message and request id on a refusal. Without a sign-in it says only publishing needs one.
|
|
22
|
+
- `summer doctor` shows the installed engine version and warns below 0.7.0, the first version that exports for summer.games.
|
|
23
|
+
- Skills `bounded-engine-runs` (run the engine from an agent with a time limit, a memory cap, one engine per project, muted and offscreen) and `compatibility-renderer-traps` (Forward+ games that also run on Compatibility: the instance-uniform budget, black MultiMesh colors, sRGB vertex colors, paired captures).
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
- With a store sign-in, the first `tools/list` waits up to 5 s for the hosted mount, so hosts that list tools once see the store tools. Without a sign-in nothing waits. A slower mount still adds them later.
|
|
27
|
+
- `summer_export_game` reads the engine version before it writes any preset. Below 0.7.0 it stops with `engine_too_old` and says how to update; nothing is written to the project.
|
|
28
|
+
- `summer_export_game` runs the engine with `--summer-no-api`, so an export no longer starts the local engine API. The result lists `projectChanges` (top-level files created, changed or deleted) and warns when the engine rewrote `project.godot`.
|
|
29
|
+
- `summer_publish_build` checks the game in the store before the confirmation preview. An unknown id returns `game_not_found` with your real games. A platform the store page does not list returns a warning. The preview shows the game name and id.
|
|
30
|
+
- `summer install --path` on macOS installs to `<dir>/Summer.app` (before, the bundle's contents went loose into the folder). Each install is recorded in `~/.summer/engine-install.json`, and run, doctor and export use that engine before the default locations. Without a terminal, progress prints one line per 10%. After an install, a note says the first start of a new engine version can take several minutes.
|
|
31
|
+
- `export-and-ship` skill: store key art, covers and icons carry no text, logos or UI; screenshots are real gameplay and may show the game's own HUD. On the hosted-game error "is in the source graph's authority_engine domain", narrow the authority root in `source-domains.json`.
|
|
32
|
+
- `concept-art` skill no longer says the aspect ratio cannot be set over MCP.
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
- `summer_export_game` failures show the engine's own `ERROR:` lines: the first three in the message, up to 20 in `detail.errors`, instead of a guess about an old engine. The old-engine hint appears only when the engine names a missing or invalid preset. A source-graph domain error gets its own recovery step.
|
|
36
|
+
- `summer_publish_build` without a `gameId` says why the game list is missing (for example the store's 401 message). `store_auth_refused` carries the store's message and request id and no longer sends you to `summer login --store --force` first, which looped.
|
|
37
|
+
- `gateway.url`, `creator.apiUrl` and the creator upload URL accept the IPv6 loopback (`http://[::1]:3000`) as local HTTP.
|
|
38
|
+
- `in-game-purchases` skill: uses only engine APIs that exist. It no longer calls `Summer.client.store.request_sparks_purchase`, `check_sparks_purchase_readiness` or `Summer.authority.items.consume`, which the engine does not have. Short players get Sparks in the Summer app; an authority grants a paid effect after checking `Summer.authority.items.inventory_for_session` and recording the redemption in the player's secret player data.
|
|
39
|
+
- `summer_api_docs`: the offline class reference is rebuilt from the engine's current class XML (1282 classes), so it now includes `SummerRuntime` (`Summer`), `Summer.client.*`, `Summer.authority.*` and the Summer SDK types.
|
|
40
|
+
|
|
5
41
|
## [3.3.0] - 2026-10-09
|
|
6
42
|
|
|
7
43
|
Your agent can now take a game from the editor to the Summer Games store:
|
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ The first invocation downloads the npm package transparently to npx's cache (~3
|
|
|
97
97
|
|
|
98
98
|
Read the JSON output. **Top-level `ok: true` means "no check failed" — it does NOT mean Summer is installed.** A machine with no skills, no MCP config, and no login can report `ok: true` (those checks warn, they do not fail). So never skip Step 1 on `ok`: it is idempotent and fast. Use the `checks` array (each entry: `id`, `label`, `status` of `ok` / `warning` / `fail`, `message`, optional `details`) only to decide whether the expensive steps — engine download (Step 2) and browser login (Step 3) — are needed.
|
|
99
99
|
|
|
100
|
-
The check ids are `node-version`, `cli-version`, `cli-version-current`, `skills-version-stale`, `login`, `engine-install`, `local-api`, `project-memory`, `mcp-boot`, and `mcp-tools-list`. For any check whose `status` is not `ok`, run the action in the table below, then re-run doctor.
|
|
100
|
+
The check ids are `node-version`, `cli-version`, `cli-version-current`, `skills-version-stale`, `login`, `store-access`, `engine-install`, `local-api`, `project-memory`, `mcp-boot`, and `mcp-tools-list`. For any check whose `status` is not `ok`, run the action in the table below, then re-run doctor.
|
|
101
101
|
|
|
102
102
|
| Check id | If `status` is `ok` | Action when attention is needed |
|
|
103
103
|
|---|---|---|
|
|
@@ -106,6 +106,7 @@ The check ids are `node-version`, `cli-version`, `cli-version-current`, `skills-
|
|
|
106
106
|
| `cli-version-current` | continue | run `npx clear-npx-cache && npx -y summer-engine@latest doctor --json` (forces a fresh resolve) |
|
|
107
107
|
| `skills-version-stale` | run Step 1 anyway (idempotent) | run Step 1 (`--force` is already in the command) |
|
|
108
108
|
| `login` | skip Step 3 | run Step 3 |
|
|
109
|
+
| `store-access` | continue | only for publishing: surface the `message` (it carries the store's own reason); signing in again does not fix a refusal the store gives a valid sign-in |
|
|
109
110
|
| `engine-install` | skip Step 2 | run Step 2 |
|
|
110
111
|
| `local-api` | skip Step 5b wait-loop | expected before `summer run`; run the wait-loop after it |
|
|
111
112
|
| `project-memory` | continue | if a project is open, use the `brainstorm-game` skill before building |
|
package/assets/api-docs.json.gz
CHANGED
|
Binary file
|
|
@@ -44,6 +44,16 @@ export declare function replaceMacApp(mountPoint: string, destApp: string, exec:
|
|
|
44
44
|
* setup.exe CLI). The old NSIS flags (/S, /D=) are rejected by the Velopack
|
|
45
45
|
* installer with "unexpected argument '/S' found" — this is the wizard bug. */
|
|
46
46
|
export declare function windowsInstallerArgs(customPath?: string): string;
|
|
47
|
+
/** Printed after an install: the first start of a new engine is slow and silent. */
|
|
48
|
+
export declare const FIRST_START_NOTE: string;
|
|
49
|
+
/** Where the Velopack installer put Summer.exe: <dir>/current/Summer.exe for --path, else the default locations. */
|
|
50
|
+
export declare function windowsInstalledBinary(customPath?: string, exists?: (path: string) => boolean): string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Download progress: rewrites one line on a terminal; elsewhere (an agent,
|
|
53
|
+
* a log file) one line per 10%, so a 1 GB download is about ten lines
|
|
54
|
+
* instead of hundreds of kilobytes.
|
|
55
|
+
*/
|
|
56
|
+
export declare function createProgressReporter(isTTY: boolean, write: (text: string) => void): (downloaded: number, total: number) => void;
|
|
47
57
|
export declare const installCommand: Command;
|
|
48
58
|
export declare function downloadFile(url: string, dest: string): Promise<{
|
|
49
59
|
sha256: string;
|
|
@@ -6,8 +6,8 @@ import { chmodSync, createWriteStream, existsSync, mkdirSync, readdirSync, renam
|
|
|
6
6
|
import { pipeline } from "stream/promises";
|
|
7
7
|
import { Readable } from "stream";
|
|
8
8
|
import { tmpdir, platform } from "os";
|
|
9
|
-
import { join, resolve } from "path";
|
|
10
|
-
import { ENGINE_BINARY_ENV, LINUX_ENGINE_BINARY_NAME, findExtractedEngineBinary, linuxArchiveKind, linuxEngineInstallDir, pickLinuxReleaseAsset, resolveLinuxInstallSource, } from "../../core/engine-install.js";
|
|
9
|
+
import { dirname, join, resolve } from "path";
|
|
10
|
+
import { ENGINE_BINARY_ENV, LINUX_ENGINE_BINARY_NAME, macInstallDestination, recordEngineInstall, windowsEnginePaths, findExtractedEngineBinary, linuxArchiveKind, linuxEngineInstallDir, pickLinuxReleaseAsset, resolveLinuxInstallSource, } from "../../core/engine-install.js";
|
|
11
11
|
const RELEASES_URL = "https://www.summerengine.com/api/desktop/releases";
|
|
12
12
|
/** Guard a download URL from the releases endpoint. A missing/empty URL (an
|
|
13
13
|
* outdated or misconfigured endpoint) otherwise becomes a cryptic
|
|
@@ -116,9 +116,42 @@ async function confirm(question) {
|
|
|
116
116
|
export function windowsInstallerArgs(customPath) {
|
|
117
117
|
return customPath ? `--silent --installto "${customPath}"` : "--silent";
|
|
118
118
|
}
|
|
119
|
+
/** Printed after an install: the first start of a new engine is slow and silent. */
|
|
120
|
+
export const FIRST_START_NOTE = "The first start of a new engine version can take several minutes with no output " +
|
|
121
|
+
"(the system checks the new app and the engine builds its caches). Later starts are fast.";
|
|
122
|
+
/** Where the Velopack installer put Summer.exe: <dir>/current/Summer.exe for --path, else the default locations. */
|
|
123
|
+
export function windowsInstalledBinary(customPath, exists = existsSync) {
|
|
124
|
+
const candidates = customPath
|
|
125
|
+
? [join(customPath, "current", "Summer.exe"), join(customPath, "Summer.exe")]
|
|
126
|
+
: windowsEnginePaths();
|
|
127
|
+
return candidates.find((path) => exists(path)) ?? null;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Download progress: rewrites one line on a terminal; elsewhere (an agent,
|
|
131
|
+
* a log file) one line per 10%, so a 1 GB download is about ten lines
|
|
132
|
+
* instead of hundreds of kilobytes.
|
|
133
|
+
*/
|
|
134
|
+
export function createProgressReporter(isTTY, write) {
|
|
135
|
+
let lastStep = -1;
|
|
136
|
+
return (downloaded, total) => {
|
|
137
|
+
if (total <= 0)
|
|
138
|
+
return;
|
|
139
|
+
const pct = Math.min(100, Math.floor((downloaded / total) * 100));
|
|
140
|
+
const mb = (downloaded / 1024 / 1024).toFixed(1);
|
|
141
|
+
if (isTTY) {
|
|
142
|
+
write(`\r ${pct}% (${mb}MB)`);
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const step = Math.floor(pct / 10);
|
|
146
|
+
if (step > lastStep) {
|
|
147
|
+
lastStep = step;
|
|
148
|
+
write(` ${pct}% (${mb}MB)\n`);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
119
152
|
export const installCommand = new Command("install")
|
|
120
153
|
.description("Download and install Summer Engine")
|
|
121
|
-
.option("--path <dir>", "Custom install directory")
|
|
154
|
+
.option("--path <dir>", "Custom install directory (macOS: the engine goes in <dir>/Summer.app). summer remembers it, so later commands find this engine")
|
|
122
155
|
.option("--yes", "Replace an already-installed engine without prompting")
|
|
123
156
|
.action(async (opts) => {
|
|
124
157
|
const os = platform();
|
|
@@ -160,7 +193,8 @@ async function installMac(releases, customPath, yes = false) {
|
|
|
160
193
|
}
|
|
161
194
|
const dmgUrl = requireDownloadUrl(info.dmg_url, "macOS DMG");
|
|
162
195
|
console.log(`Latest version: ${info.version}`);
|
|
163
|
-
const destApp = customPath
|
|
196
|
+
const destApp = macInstallDestination(customPath);
|
|
197
|
+
const destBinary = join(destApp, "Contents", "MacOS", "Summer");
|
|
164
198
|
const exists = existsSync(destApp);
|
|
165
199
|
const installedVersion = exists ? readMacBundleVersion(destApp) : null;
|
|
166
200
|
const plan = planMacInstall({
|
|
@@ -171,6 +205,7 @@ async function installMac(releases, customPath, yes = false) {
|
|
|
171
205
|
isTTY: Boolean(process.stdin.isTTY),
|
|
172
206
|
});
|
|
173
207
|
if (plan.action === "up-to-date") {
|
|
208
|
+
await recordEngineInstall(destBinary, plan.version);
|
|
174
209
|
console.log(`Summer Engine v${plan.version} is already installed at ${destApp} (up to date).`);
|
|
175
210
|
return;
|
|
176
211
|
}
|
|
@@ -218,6 +253,7 @@ async function installMac(releases, customPath, yes = false) {
|
|
|
218
253
|
}
|
|
219
254
|
try {
|
|
220
255
|
console.log("Installing to " + destApp + "...");
|
|
256
|
+
mkdirSync(dirname(destApp), { recursive: true });
|
|
221
257
|
replaceMacApp(mountPoint, destApp, (command) => execSync(command, { stdio: "ignore" }));
|
|
222
258
|
console.log("Done!");
|
|
223
259
|
}
|
|
@@ -235,7 +271,9 @@ async function installMac(releases, customPath, yes = false) {
|
|
|
235
271
|
catch { }
|
|
236
272
|
releaseSignals();
|
|
237
273
|
}
|
|
274
|
+
await recordEngineInstall(destBinary, info.version);
|
|
238
275
|
console.log(`\nSummer Engine v${info.version} installed to ${destApp}`);
|
|
276
|
+
console.log(FIRST_START_NOTE);
|
|
239
277
|
console.log("\nNext steps:");
|
|
240
278
|
console.log(" summer login # Sign in to your account");
|
|
241
279
|
console.log(" summer run # Launch the engine");
|
|
@@ -276,7 +314,11 @@ async function installWindows(releases, customPath) {
|
|
|
276
314
|
execSync(`del "${exePath}"`, { stdio: "ignore" });
|
|
277
315
|
}
|
|
278
316
|
catch { }
|
|
279
|
-
|
|
317
|
+
const installed = windowsInstalledBinary(customPath);
|
|
318
|
+
if (installed)
|
|
319
|
+
await recordEngineInstall(installed, info.version);
|
|
320
|
+
console.log(`\nSummer Engine v${info.version} installed${installed ? ` to ${installed}` : "!"}`);
|
|
321
|
+
console.log(FIRST_START_NOTE);
|
|
280
322
|
console.log("\nNext steps:");
|
|
281
323
|
console.log(" summer login # Sign in to your account");
|
|
282
324
|
console.log(" summer run # Launch the engine");
|
|
@@ -338,6 +380,7 @@ async function installLinux(customPath) {
|
|
|
338
380
|
const source = resolveLinuxInstallSource();
|
|
339
381
|
if (source.kind === "binary") {
|
|
340
382
|
registerExistingLinuxBinary(source.path, destDir, destBinary);
|
|
383
|
+
await recordEngineInstall(destBinary, null);
|
|
341
384
|
printLinuxNextSteps(destBinary);
|
|
342
385
|
return;
|
|
343
386
|
}
|
|
@@ -409,7 +452,9 @@ async function installLinux(customPath) {
|
|
|
409
452
|
finally {
|
|
410
453
|
rmSync(downloadPath, { force: true });
|
|
411
454
|
}
|
|
455
|
+
await recordEngineInstall(destBinary, versionLabel === "custom" ? null : versionLabel);
|
|
412
456
|
console.log(`\nSummer Engine (${versionLabel}) installed to ${destBinary}`);
|
|
457
|
+
console.log(FIRST_START_NOTE);
|
|
413
458
|
printLinuxNextSteps(destBinary);
|
|
414
459
|
}
|
|
415
460
|
function printLinuxNextSteps(binary) {
|
|
@@ -433,15 +478,15 @@ export async function downloadFile(url, dest) {
|
|
|
433
478
|
const hash = createHash("sha256");
|
|
434
479
|
let downloaded = 0;
|
|
435
480
|
const total = parseInt(res.headers.get("content-length") || "0", 10);
|
|
481
|
+
const isTTY = Boolean(process.stdout.isTTY);
|
|
482
|
+
const report = createProgressReporter(isTTY, (text) => process.stdout.write(text));
|
|
436
483
|
readable.on("data", (chunk) => {
|
|
437
484
|
hash.update(chunk);
|
|
438
485
|
downloaded += chunk.length;
|
|
439
|
-
|
|
440
|
-
const pct = Math.round((downloaded / total) * 100);
|
|
441
|
-
process.stdout.write(`\r ${pct}% (${(downloaded / 1024 / 1024).toFixed(1)}MB)`);
|
|
442
|
-
}
|
|
486
|
+
report(downloaded, total);
|
|
443
487
|
});
|
|
444
488
|
await pipeline(readable, fileStream);
|
|
445
|
-
|
|
489
|
+
if (isTTY)
|
|
490
|
+
process.stdout.write("\n");
|
|
446
491
|
return { sha256: hash.digest("hex") };
|
|
447
492
|
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
2
|
import { type ToolDispatchEntry } from "../../core/capabilities/tool-dispatch.js";
|
|
3
|
+
import { callHostedToolForCli, listHostedToolsForCli, type HostedToolsListing } from "../../core/hosted-mcp.js";
|
|
4
|
+
/** The hosted store and publishing tools (Summer Engine MCP); replaceable in tests. */
|
|
5
|
+
export declare const hostedCli: {
|
|
6
|
+
list: typeof listHostedToolsForCli;
|
|
7
|
+
call: typeof callHostedToolForCli;
|
|
8
|
+
};
|
|
9
|
+
export declare function formatHostedToolList(listing: HostedToolsListing): string;
|
|
3
10
|
/** Resolve a name through the compiled registry index when it exists —
|
|
4
11
|
* accepts full ids ("tool/add-node") and legacy aliases, returning the slug
|
|
5
12
|
* the dispatch table knows. Returns null when the index is absent or the
|
|
@@ -14,6 +14,25 @@ import { PACKAGE_ROOT } from "../../core/package-root.js";
|
|
|
14
14
|
import { Command, Option } from "commander";
|
|
15
15
|
import { ToolDispatchError, ToolResultError, dispatchTool, listToolDispatches, resolveToolDispatch, } from "../../core/capabilities/tool-dispatch.js";
|
|
16
16
|
import { c } from "../../core/format.js";
|
|
17
|
+
import { callHostedToolForCli, hostedResultPayload, listHostedToolsForCli, } from "../../core/hosted-mcp.js";
|
|
18
|
+
/** The hosted store and publishing tools (Summer Engine MCP); replaceable in tests. */
|
|
19
|
+
export const hostedCli = { list: listHostedToolsForCli, call: callHostedToolForCli };
|
|
20
|
+
const STORE_SIGN_IN_HINT = "Store and publishing tools (summer_store_*, summer_upload_image_*, summer_list_projects, ...) come from the hosted Summer Engine MCP: run 'summer login --store' to use them here.";
|
|
21
|
+
export function formatHostedToolList(listing) {
|
|
22
|
+
if (listing.status === "not_signed_in")
|
|
23
|
+
return c.dim(STORE_SIGN_IN_HINT);
|
|
24
|
+
if (listing.status === "unavailable")
|
|
25
|
+
return c.dim(`Store and publishing tools: the hosted Summer Engine MCP did not answer (${listing.message}).`);
|
|
26
|
+
const local = new Set(listToolDispatches().map((entry) => `summer_${entry.slug.replace(/-/g, "_")}`));
|
|
27
|
+
const tools = listing.tools.filter((tool) => !local.has(tool.name)).sort((a, b) => a.name.localeCompare(b.name));
|
|
28
|
+
if (!tools.length)
|
|
29
|
+
return c.dim("Store and publishing tools: none listed by the hosted Summer Engine MCP.");
|
|
30
|
+
const width = Math.max(...tools.map((tool) => tool.name.length));
|
|
31
|
+
return [
|
|
32
|
+
c.bold(`Store and publishing tools (${tools.length}, hosted, with your store sign-in)`),
|
|
33
|
+
...tools.map((tool) => ` ${tool.name.padEnd(width)} ${(tool.description ?? "").split(/(?<=\.)\s/)[0].slice(0, 120)}`),
|
|
34
|
+
].join("\n");
|
|
35
|
+
}
|
|
17
36
|
/** Resolve a name through the compiled registry index when it exists —
|
|
18
37
|
* accepts full ids ("tool/add-node") and legacy aliases, returning the slug
|
|
19
38
|
* the dispatch table knows. Returns null when the index is absent or the
|
|
@@ -86,6 +105,8 @@ export const toolCommand = new Command("tool")
|
|
|
86
105
|
.action(async (name, options) => {
|
|
87
106
|
if (options.list || name === undefined) {
|
|
88
107
|
console.log(formatToolList(listToolDispatches()));
|
|
108
|
+
console.log("");
|
|
109
|
+
console.log(formatHostedToolList(await hostedCli.list()));
|
|
89
110
|
if (name === undefined && !options.list) {
|
|
90
111
|
console.log("");
|
|
91
112
|
console.log(c.dim("Pass a tool name to run one."));
|
|
@@ -94,7 +115,21 @@ export const toolCommand = new Command("tool")
|
|
|
94
115
|
}
|
|
95
116
|
const entry = resolveToolForCli(name);
|
|
96
117
|
if (!entry) {
|
|
97
|
-
|
|
118
|
+
// Not a local tool: the hosted store and publishing tools, with the store sign-in.
|
|
119
|
+
const hosted = await hostedCli.call(name, parseJsonArgs(options.args ?? options.json));
|
|
120
|
+
if (hosted.status === "called") {
|
|
121
|
+
const payload = hostedResultPayload(hosted.result);
|
|
122
|
+
console.log(payload.json ? JSON.stringify(payload.json, null, 2) : payload.text);
|
|
123
|
+
if (payload.isError)
|
|
124
|
+
process.exitCode = 1;
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
const why = hosted.status === "not_signed_in"
|
|
128
|
+
? ` ${STORE_SIGN_IN_HINT}`
|
|
129
|
+
: hosted.status === "unavailable"
|
|
130
|
+
? ` The hosted Summer Engine MCP did not answer: ${hosted.message}.`
|
|
131
|
+
: "";
|
|
132
|
+
throw new ToolDispatchError(`Unknown tool "${name}". Run 'summer tool --list' to see every tool.${why}`);
|
|
98
133
|
}
|
|
99
134
|
if (options.json !== undefined && options.args === undefined) {
|
|
100
135
|
console.error("Note: 'summer tool --json <args>' is deprecated; use --args <json>.");
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type EngineRun } from "./engine-run.js";
|
|
2
|
+
/**
|
|
3
|
+
* summer_capture_gameplay: real gameplay frames without a running editor.
|
|
4
|
+
*
|
|
5
|
+
* Reuses the engine's offscreen verify instance (the one RunVerification and
|
|
6
|
+
* tests/autopilot spawn): a real renderer in a window parked offscreen with no
|
|
7
|
+
* focus, so it never shows on screen, unlike --headless, which has no pixels.
|
|
8
|
+
*
|
|
9
|
+
* <engine> --disable-crash-handler --summer-no-api --path <project> --resolution WxH
|
|
10
|
+
* [--scene res://...] --summer-verify <probe.gd>
|
|
11
|
+
* --summer-verify-out <dir> --summer-verify-max <s>
|
|
12
|
+
*
|
|
13
|
+
* The stock probe waits for the scene to draw and settle, saves PNG frames of
|
|
14
|
+
* the game viewport, and writes results.json. The frames are what the game
|
|
15
|
+
* really draws, HUD included: use them as store screenshots.
|
|
16
|
+
*/
|
|
17
|
+
export interface CaptureGameplayInput {
|
|
18
|
+
/** Project root (has project.godot). Defaults to the MCP's --project, then the working directory. */
|
|
19
|
+
project?: string;
|
|
20
|
+
/** Scene to start (res:// or uid://). Default: the project's main scene. */
|
|
21
|
+
scene?: string;
|
|
22
|
+
/** Window size, WIDTHxHEIGHT. Default 1920x1080; 1080x1920 for portrait. */
|
|
23
|
+
resolution?: string;
|
|
24
|
+
/** Frames to save. Default 1. */
|
|
25
|
+
frames?: number;
|
|
26
|
+
/** Seconds to let the game run before the first frame. Default 3. */
|
|
27
|
+
waitSeconds?: number;
|
|
28
|
+
/** Seconds between frames. Default 1. */
|
|
29
|
+
intervalSeconds?: number;
|
|
30
|
+
/** Output folder. Default <project>/.summer/captures/<time>/. */
|
|
31
|
+
out?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface CapturedFrame {
|
|
34
|
+
path: string;
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
}
|
|
38
|
+
export interface CaptureGameplayResult {
|
|
39
|
+
ok: true;
|
|
40
|
+
project: string;
|
|
41
|
+
scene: string;
|
|
42
|
+
resolution: string;
|
|
43
|
+
frames: CapturedFrame[];
|
|
44
|
+
out: string;
|
|
45
|
+
engine: string;
|
|
46
|
+
imported: boolean;
|
|
47
|
+
durationMs: number;
|
|
48
|
+
warnings?: string[];
|
|
49
|
+
next: string;
|
|
50
|
+
}
|
|
51
|
+
export interface CaptureGameplayDependencies {
|
|
52
|
+
findBinary: () => string | null;
|
|
53
|
+
run: (binary: string, args: string[], timeoutMs: number) => Promise<EngineRun>;
|
|
54
|
+
now: () => Date;
|
|
55
|
+
}
|
|
56
|
+
/** Width and height from a PNG's IHDR chunk, or null when the file is not a PNG. */
|
|
57
|
+
export declare function pngSize(bytes: Buffer): {
|
|
58
|
+
width: number;
|
|
59
|
+
height: number;
|
|
60
|
+
} | null;
|
|
61
|
+
/**
|
|
62
|
+
* The stock probe. Self-contained (extends Node, no base class to copy into the
|
|
63
|
+
* project); follows the verify-instance contract of assets/autopilot/probe_base.gd:
|
|
64
|
+
* the engine sets summer_out_dir and summer_max_seconds before _ready(), the
|
|
65
|
+
* first frames are empty until the scene has drawn twice, results.json is
|
|
66
|
+
* always written.
|
|
67
|
+
*/
|
|
68
|
+
export declare function captureProbeSource(frames: number, waitSeconds: number, intervalSeconds: number): string;
|
|
69
|
+
export declare function captureGameplay(input: CaptureGameplayInput, overrides?: Partial<CaptureGameplayDependencies>): Promise<CaptureGameplayResult>;
|