create-moka 0.3.0 → 0.3.1

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.
Files changed (3) hide show
  1. package/README.md +15 -1
  2. package/index.js +4 -0
  3. package/package.json +7 -1
package/README.md CHANGED
@@ -1,8 +1,22 @@
1
1
  # create-moka
2
2
 
3
- Scaffold a shareable [Moka](https://github.com/mokahq/mokalabs) demo: a `moka.json` with models, MCP servers and workspaces, plus example Agent Skills.
3
+ [![npm](https://img.shields.io/npm/v/create-moka?color=c2703d)](https://www.npmjs.com/package/create-moka)
4
+
5
+ Scaffold a shareable [Moka](https://www.npmjs.com/package/@mokalabs/sandbox) demo: a project anyone can clone and run with one command.
4
6
 
5
7
  ```bash
6
8
  npm create moka@latest my-demo
7
9
  cd my-demo && npm install && npm start
8
10
  ```
11
+
12
+ Also `pnpm create moka`, `yarn create moka` or `bun create moka`. Add `--yes` to skip the questions.
13
+
14
+ You get:
15
+
16
+ - `moka.json` with a model, MCP servers and a workspace with starter prompts. API keys are read from the environment (`env:OPENAI_API_KEY`), so the file is safe to commit.
17
+ - Two example [Agent Skills](https://mokalabs.dev/guides/skills/) in `skills/`.
18
+ - `.env.example`, `.gitignore`, and `npm start` to open Moka.
19
+
20
+ Edit everything in Moka's settings, then commit and share. Anyone with the repo runs `npm install && npm start` and gets the same demo.
21
+
22
+ [Docs](https://mokalabs.dev) · [GitHub](https://github.com/mokahq/mokalabs) · MIT
package/index.js CHANGED
@@ -57,6 +57,10 @@ export function scaffold(targetDir, { name } = {}) {
57
57
  const pkgPath = path.join(target, "package.json");
58
58
  const pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
59
59
  pkg.name = name ?? toPackageName(targetDir);
60
+ // create-moka is released together with @mokalabs/sandbox (same version), so new projects get
61
+ // the matching Moka. A caret on 0.x only allows patch updates, so this has to be current.
62
+ const own = JSON.parse(readFileSync(path.join(here, "package.json"), "utf8"));
63
+ pkg.devDependencies = { ...pkg.devDependencies, "@mokalabs/sandbox": `^${own.version}` };
60
64
  writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`);
61
65
  return target;
62
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-moka",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Scaffold a Moka demo project: npm create moka@latest",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -16,12 +16,18 @@
16
16
  "url": "git+https://github.com/mokahq/mokalabs.git",
17
17
  "directory": "packages/create-moka"
18
18
  },
19
+ "homepage": "https://mokalabs.dev",
20
+ "bugs": {
21
+ "url": "https://github.com/mokahq/mokalabs/issues"
22
+ },
19
23
  "keywords": [
20
24
  "moka",
21
25
  "mcp",
22
26
  "llm",
23
27
  "create",
24
28
  "scaffold",
29
+ "starter",
30
+ "template",
25
31
  "agent",
26
32
  "skills"
27
33
  ],