create-meterkit 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.
- package/README.md +3 -3
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/plan.js +3 -3
- package/package.json +5 -5
- package/templates/express/package.json +3 -3
- package/templates/hono/package.json +5 -5
- package/templates/mcp/package.json +5 -5
- package/templates/next-route/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# create-meterkit
|
|
2
2
|
|
|
3
|
-
Public devnet-beta initializer for MeterKit 0.3.
|
|
3
|
+
Public devnet-beta initializer for MeterKit 0.3.1. It creates Express, Next.js,
|
|
4
4
|
Hono or experimental MCP projects without cloning the monorepo.
|
|
5
5
|
|
|
6
6
|
Interactive:
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
npm create meterkit@0.3.
|
|
9
|
+
npm create meterkit@0.3.1
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
Reproducible non-interactive Express path:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm create meterkit@0.3.
|
|
15
|
+
npm create meterkit@0.3.1 -- meterkit-app --surface express --package-manager npm --recipient <DEVNET_PUBLIC_WALLET> --yes
|
|
16
16
|
cd meterkit-app
|
|
17
17
|
npm run dev
|
|
18
18
|
```
|
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createInterface } from "node:readline/promises";
|
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import { createInitializerPlan } from "./plan.js";
|
|
8
8
|
import { installGeneratedProject, writeInitializerPlan } from "./write.js";
|
|
9
|
-
export const CREATE_METERKIT_VERSION = "0.3.
|
|
9
|
+
export const CREATE_METERKIT_VERSION = "0.3.1";
|
|
10
10
|
export function parseCliArguments(args) {
|
|
11
11
|
const directory = args[0];
|
|
12
12
|
if (!directory || directory.startsWith("-"))
|
package/dist/plan.js
CHANGED
|
@@ -3,7 +3,7 @@ import { readdir, readFile } from "node:fs/promises";
|
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { join, relative, resolve, sep } from "node:path";
|
|
5
5
|
import { initializerPackageManagerSchema, initializerPlanSchema, initializerSurfaceSchema, } from "@usemeterkit/core";
|
|
6
|
-
const VERSION = "0.3.
|
|
6
|
+
const VERSION = "0.3.1";
|
|
7
7
|
const TEMPLATE_ROOT = fileURLToPath(new URL("../templates", import.meta.url));
|
|
8
8
|
async function templateFiles(directory) {
|
|
9
9
|
const entries = await readdir(directory, { withFileTypes: true });
|
|
@@ -64,8 +64,8 @@ export async function createInitializerPlan(options) {
|
|
|
64
64
|
...(options.recipient ? { recipient: options.recipient } : {}),
|
|
65
65
|
files,
|
|
66
66
|
dependencies: {
|
|
67
|
-
"@usemeterkit/sdk": "0.3.
|
|
68
|
-
"@usemeterkit/database": "0.3.
|
|
67
|
+
"@usemeterkit/sdk": "0.3.1",
|
|
68
|
+
"@usemeterkit/database": "0.3.1",
|
|
69
69
|
},
|
|
70
70
|
environmentKeys: [
|
|
71
71
|
"MERCHANT_WALLET",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-meterkit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Safe devnet-first project initializer for MeterKit API and MCP payments",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"engines": {
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"url": "https://github.com/JuanTorchia/meterkit/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"zod": "^4.
|
|
41
|
-
"@usemeterkit/core": "0.3.
|
|
40
|
+
"zod": "^4.6.7",
|
|
41
|
+
"@usemeterkit/core": "0.3.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/node": "^24.
|
|
44
|
+
"@types/node": "^24.19.2",
|
|
45
45
|
"typescript": "^5.9.2",
|
|
46
|
-
"vitest": "^
|
|
46
|
+
"vitest": "^4.1.12"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsc -p tsconfig.json",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"pay:test": "meterkit pay http://localhost:3000/premium --keypair .local-wallets/payer.json --mint 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU --recipient {{RECIPIENT}} --max-amount 10000 --max-session 10000 --rpc-url https://api.devnet.solana.com --replay --yes"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@usemeterkit/database": "0.3.
|
|
14
|
-
"@usemeterkit/sdk": "0.3.
|
|
13
|
+
"@usemeterkit/database": "0.3.1",
|
|
14
|
+
"@usemeterkit/sdk": "0.3.1",
|
|
15
15
|
"express": "5.1.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@usemeterkit/cli": "0.3.
|
|
18
|
+
"@usemeterkit/cli": "0.3.1",
|
|
19
19
|
"tsx": "^4.23.12",
|
|
20
20
|
"typescript": "^5.9.3"
|
|
21
21
|
}
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"pay:test": "meterkit pay http://localhost:3000/premium --keypair .local-wallets/payer.json --mint 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU --recipient {{RECIPIENT}} --max-amount 10000 --max-session 10000 --rpc-url https://api.devnet.solana.com --replay --yes"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@usemeterkit/database": "0.3.
|
|
14
|
-
"@usemeterkit/sdk": "0.3.
|
|
13
|
+
"@usemeterkit/database": "0.3.1",
|
|
14
|
+
"@usemeterkit/sdk": "0.3.1",
|
|
15
15
|
"@x402/hono": "2.22.0",
|
|
16
|
-
"hono": "4.13.
|
|
17
|
-
"@hono/node-server": "2.1.
|
|
16
|
+
"hono": "4.13.16",
|
|
17
|
+
"@hono/node-server": "2.1.6"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@usemeterkit/cli": "0.3.
|
|
20
|
+
"@usemeterkit/cli": "0.3.1",
|
|
21
21
|
"tsx": "^4.23.12",
|
|
22
22
|
"typescript": "^5.9.3"
|
|
23
23
|
}
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
"doctor": "meterkit doctor --project ."
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@modelcontextprotocol/sdk": "1.
|
|
12
|
-
"@usemeterkit/database": "0.3.
|
|
13
|
-
"@usemeterkit/sdk": "0.3.
|
|
11
|
+
"@modelcontextprotocol/sdk": "1.32.0",
|
|
12
|
+
"@usemeterkit/database": "0.3.1",
|
|
13
|
+
"@usemeterkit/sdk": "0.3.1",
|
|
14
14
|
"@x402/core": "2.22.0",
|
|
15
15
|
"@x402/mcp": "2.22.0",
|
|
16
16
|
"@x402/svm": "2.22.0",
|
|
17
|
-
"zod": "^4.
|
|
17
|
+
"zod": "^4.6.7"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@usemeterkit/cli": "0.3.
|
|
20
|
+
"@usemeterkit/cli": "0.3.1",
|
|
21
21
|
"tsx": "^4.23.12",
|
|
22
22
|
"typescript": "^5.9.3"
|
|
23
23
|
}
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"pay:test": "meterkit pay http://localhost:3000/api/premium --keypair .local-wallets/payer.json --mint 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU --recipient {{RECIPIENT}} --max-amount 10000 --max-session 10000 --rpc-url https://api.devnet.solana.com --replay --yes"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@usemeterkit/database": "0.3.
|
|
14
|
-
"@usemeterkit/sdk": "0.3.
|
|
13
|
+
"@usemeterkit/database": "0.3.1",
|
|
14
|
+
"@usemeterkit/sdk": "0.3.1",
|
|
15
15
|
"@x402/next": "2.22.0",
|
|
16
|
-
"next": "16.
|
|
16
|
+
"next": "16.4.5",
|
|
17
17
|
"react": "19.2.8",
|
|
18
18
|
"react-dom": "19.2.8"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@usemeterkit/cli": "0.3.
|
|
21
|
+
"@usemeterkit/cli": "0.3.1",
|
|
22
22
|
"@types/node": "^24.3.0",
|
|
23
23
|
"@types/react": "^19.1.10",
|
|
24
24
|
"@types/react-dom": "^19.1.7",
|