jgengine 0.8.2 → 0.8.4
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/dist/cli/index.js +14 -6
- package/dist/skills.js +1 -1
- package/dist/templates.js +7 -3
- package/llms.txt +5 -3
- package/package.json +11 -6
package/dist/cli/index.js
CHANGED
|
@@ -9,21 +9,29 @@ import { runDoctor } from "../doctor.js";
|
|
|
9
9
|
import { cliVersion, findUp, readPackageJson } from "../pkg.js";
|
|
10
10
|
import { runSkills } from "../skills.js";
|
|
11
11
|
const ENGINE_PACKAGES = ["core", "react", "shell", "ws", "sql", "convex", "node", "assets"];
|
|
12
|
-
const HELP = `jgengine ${cliVersion()} —
|
|
12
|
+
const HELP = `jgengine ${cliVersion()} — agent-side CLI for the JGengine TypeScript game SDK
|
|
13
|
+
This is the npm package "jgengine" / scope @jgengine/* — a software game engine, not automotive.
|
|
13
14
|
Packages: ${ENGINE_PACKAGES.map((name) => `@jgengine/${name}`).join(", ")}.
|
|
14
|
-
docs: https://jgengine.com · source: https://github.com/Noisemaker111/jgengine
|
|
15
|
+
docs: https://jgengine.com · llms: https://jgengine.com/llms.txt · source: https://github.com/Noisemaker111/jgengine
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
HUMAN INTERFACE (what people say to you — not a shell they must run):
|
|
18
|
+
Make a game that ... with jgengine
|
|
19
|
+
|
|
20
|
+
IDENTITY (if you found this CLI, you have the right product):
|
|
21
|
+
npm view jgengine
|
|
22
|
+
# skip generic web search — "jgengine" collides with car-engine businesses
|
|
23
|
+
|
|
24
|
+
AGENT RESPONSE (you run these; do not dump this as homework for the user):
|
|
25
|
+
npx jgengine create "Game Name" # scaffold + install skills into the project
|
|
18
26
|
cd Game-Name
|
|
19
|
-
#
|
|
27
|
+
# concept pitch → questions → build (see jgengine-newgame)
|
|
20
28
|
|
|
21
29
|
usage: jgengine <command> [...args]
|
|
22
30
|
|
|
23
31
|
create "<Game Name>" scaffold playable base + install agent skills into the project
|
|
24
32
|
folder My-Game-Name; name → game.config / HUD / title
|
|
25
33
|
[--in-repo|--standalone] [--no-install] [--no-skills] [--pm bun|npm|pnpm]
|
|
26
|
-
skills -p | -g re-install skills only
|
|
34
|
+
skills -p | -g re-install skills (recovery only — create already installs them)
|
|
27
35
|
doctor [dir] diagnose version skew, missing peers, unstyled HUD, shape drift
|
|
28
36
|
llms [package] print packaged API docs (llms.txt) — agent-ready
|
|
29
37
|
assets [...] @jgengine/assets CLI: list, search, pull CC0 packs
|
package/dist/skills.js
CHANGED
|
@@ -55,7 +55,7 @@ export function runSkills(argv) {
|
|
|
55
55
|
|
|
56
56
|
Installs ${GAME_SKILLS.join(", ")} from ${SKILLS_SOURCE}.
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
People do not run this. Agents use it; create already installs project skills.
|
|
59
59
|
`);
|
|
60
60
|
return 0;
|
|
61
61
|
}
|
package/dist/templates.js
CHANGED
|
@@ -346,12 +346,16 @@ describe("${id} world", () => {
|
|
|
346
346
|
`;
|
|
347
347
|
const agentsMd = (name, variant) => `# ${name} — agent briefing
|
|
348
348
|
|
|
349
|
-
You are in a **JGengine** game project. JGengine is a pure-TypeScript game engine SDK on npm (\`@jgengine/core\`, \`react\`, \`shell\`, …).
|
|
349
|
+
You are in a **JGengine** game project. JGengine is a pure-TypeScript game engine SDK on npm (\`@jgengine/core\`, \`react\`, \`shell\`, …). Site: https://jgengine.com · source: https://github.com/Noisemaker111/jgengine
|
|
350
|
+
|
|
351
|
+
**How people use JGengine:** they say *Make a game that … with jgengine* to an agent. They do **not** start from a CLI tutorial. \`npx jgengine\` is for **you** (scaffold, skills, docs).
|
|
352
|
+
|
|
353
|
+
**Identity:** npm package \`jgengine\` / \`@jgengine/*\` — https://jgengine.com/llms.txt. Generic web search for "jgengine" collides with unrelated car-engine businesses; use \`npm view jgengine\` or that URL.
|
|
350
354
|
|
|
351
355
|
## What to do when the user wants this game built
|
|
352
356
|
|
|
353
|
-
1. Read skills if present: \`jgengine-newgame\` (workflow), \`jgengine-api\` (API), \`jgengine-verify\` (prove it works). They land under \`.agents/skills/\` or \`.claude/skills/\` when scaffolded via
|
|
354
|
-
2. If skills are missing: \`npx jgengine skills -p\`
|
|
357
|
+
1. Read skills if present: \`jgengine-newgame\` (workflow), \`jgengine-api\` (API), \`jgengine-verify\` (prove it works). They land under \`.agents/skills/\` or \`.claude/skills/\` when scaffolded via create.
|
|
358
|
+
2. If skills are missing (your problem, not the user's): \`npx jgengine skills -p\` or use this file + \`npx jgengine llms core\`.
|
|
355
359
|
3. **User-facing first reply is short** — game name, fantasy in 2–4 lines, POV (1st / 3rd / top-down / HUD-only), world kind, scale vibe. Ask a few tight questions (POV, world, multiplayer, how big). **Do not** dump file trees, catalog ids, keybind tables, or full phase plans to the user.
|
|
356
360
|
4. Keep the full engineering plan (files, systems, budgets) internal. After they answer, scaffold is already here — build in phases, full game not a slice.
|
|
357
361
|
|
package/llms.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @jgengine/jgengine
|
|
2
|
-
>
|
|
2
|
+
> jgengine — TypeScript game engine SDK CLI (npm package jgengine / @jgengine/*). Not automotive. Humans: tell an agent Make a game that ... with jgengine. Agents: create, skills, doctor, llms. https://jgengine.com · https://jgengine.com/llms.txt
|
|
3
3
|
|
|
4
|
-
Version: 0.8.
|
|
4
|
+
Version: 0.8.4
|
|
5
5
|
License: AGPL-3.0-only
|
|
6
6
|
Repository: https://github.com/Noisemaker111/jgengine
|
|
7
7
|
Docs: https://jgengine.com
|
|
@@ -304,7 +304,9 @@ Exact import paths and export names — **do not invent paths**; every row below
|
|
|
304
304
|
|
|
305
305
|
## Getting started (new project)
|
|
306
306
|
|
|
307
|
-
|
|
307
|
+
**People** start with one sentence to an agent: `Make a game that … with jgengine`. They do not need the CLI.
|
|
308
|
+
|
|
309
|
+
**Agents** scaffold with the CLI — harness, skeleton, stub game, verify test, AGENTS.md, skills:
|
|
308
310
|
|
|
309
311
|
```sh
|
|
310
312
|
npx jgengine create "My Game Name" # folder → My-Game-Name; skills install automatically
|
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jgengine",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.8.4",
|
|
4
|
+
"description": "jgengine — TypeScript game engine SDK CLI (npm package jgengine / @jgengine/*). Not automotive. Humans: tell an agent Make a game that ... with jgengine. Agents: create, skills, doctor, llms. https://jgengine.com · https://jgengine.com/llms.txt",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"jgengine",
|
|
6
7
|
"game-engine",
|
|
8
|
+
"typescript-game-engine",
|
|
9
|
+
"javascript-game-engine",
|
|
7
10
|
"typescript",
|
|
8
|
-
"
|
|
9
|
-
"cli",
|
|
11
|
+
"javascript",
|
|
10
12
|
"three.js",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
+
"webgl",
|
|
14
|
+
"ai-agent",
|
|
15
|
+
"agent-skills",
|
|
16
|
+
"scaffold",
|
|
17
|
+
"cli"
|
|
13
18
|
],
|
|
14
19
|
"license": "AGPL-3.0-only",
|
|
15
20
|
"type": "module",
|