@nimbus-sh/cli 0.1.12 → 0.2.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 CHANGED
@@ -5,6 +5,8 @@ runtime cache.
5
5
 
6
6
  ## Install
7
7
 
8
+ Requires Node.js 20.10.0 or later for JSON import attributes.
9
+
8
10
  ```bash
9
11
  npx @nimbus-sh/cli --help
10
12
  npx @nimbus-sh/cli init my-app
@@ -1 +1 @@
1
- {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAuF9D"}
1
+ {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAuF9D"}
@@ -17,6 +17,7 @@
17
17
  */
18
18
  import { mkdirSync, writeFileSync, existsSync } from 'node:fs';
19
19
  import { resolve, join, basename, relative } from 'node:path';
20
+ import manifest from '@nimbus-sh/cli/package.json' with { type: 'json' };
20
21
  /**
21
22
  * Scaffold a new Nimbus project at the given directory.
22
23
  *
@@ -125,14 +126,14 @@ function renderPackageJson(name) {
125
126
  typecheck: 'tsc --noEmit',
126
127
  },
127
128
  dependencies: {
128
- '@nimbus-sh/config': '^0.1.4',
129
- '@nimbus-sh/worker': '^0.2.0',
130
- '@nimbus-sh/sdk': '^0.2.0',
129
+ '@nimbus-sh/config': manifest.dependencies['@nimbus-sh/config'],
130
+ '@nimbus-sh/worker': manifest.dependencies['@nimbus-sh/worker'],
131
+ '@nimbus-sh/sdk': manifest.dependencies['@nimbus-sh/sdk'],
131
132
  },
132
133
  devDependencies: {
133
- '@cloudflare/workers-types': '^4.20250327.0',
134
+ '@cloudflare/workers-types': '^5.20260928.1',
134
135
  typescript: '^5.7.0',
135
- wrangler: '^4.0.0',
136
+ wrangler: '^4.143.0',
136
137
  },
137
138
  }, null, 2) + '\n';
138
139
  }
@@ -141,8 +142,7 @@ function renderWranglerJsonc(name) {
141
142
  "$schema": "./node_modules/wrangler/config-schema.json",
142
143
  "name": "${name}",
143
144
  "main": "src/index.ts",
144
- "compatibility_date": "2026-04-01",
145
- "compatibility_flags": ["nodejs_compat"],
145
+ "compatibility_date": "2026-09-26",
146
146
  "placement": { "mode": "smart" },
147
147
  "vars": {
148
148
  "NIMBUS_AGENT_MODEL": "@cf/moonshotai/kimi-k2.6",
@@ -197,6 +197,7 @@ function renderWranglerJsonc(name) {
197
197
  function renderIndexTs() {
198
198
  return `import {
199
199
  NimbusSession,
200
+ NimbusPublicDirectory,
200
201
  SupervisorRPC,
201
202
  NimbusAssetsRPC,
202
203
  NimbusLoaderRPC,
package/dist/version.d.ts CHANGED
@@ -1,7 +1,2 @@
1
- /**
2
- * Hardcoded version constant. Updated by release tooling. We avoid
3
- * `require('./package.json')` because that breaks under bun's
4
- * single-file binary mode.
5
- */
6
- export declare const CLI_VERSION = "0.1.8";
1
+ export declare const CLI_VERSION: string;
7
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,WAAW,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,QAAmB,CAAC"}
package/dist/version.js CHANGED
@@ -1,6 +1,2 @@
1
- /**
2
- * Hardcoded version constant. Updated by release tooling. We avoid
3
- * `require('./package.json')` because that breaks under bun's
4
- * single-file binary mode.
5
- */
6
- export const CLI_VERSION = '0.1.8';
1
+ import manifest from '@nimbus-sh/cli/package.json' with { type: 'json' };
2
+ export const CLI_VERSION = manifest.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimbus-sh/cli",
3
- "version": "0.1.12",
3
+ "version": "0.2.1",
4
4
  "description": "Nimbus CLI \u2014 `create-nimbus-app` scaffolder + `token mint` + `runtime sync`.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -40,16 +40,17 @@
40
40
  "NOTICE.md"
41
41
  ],
42
42
  "scripts": {
43
- "build": "tsc -p tsconfig.json --noCheck --noEmit false --declaration true --declarationMap true --outDir dist --rootDir src && chmod +x dist/bin.js dist/scaffold-bin.js",
44
- "prepack": "bun run build",
43
+ "build": "node ../../scripts/clean-dist.mjs && tsc -p tsconfig.json --noCheck --noEmit false --declaration true --declarationMap true --outDir dist --rootDir src && chmod +x dist/bin.js dist/scaffold-bin.js",
44
+ "prepublishOnly": "bun ../../scripts/dist-integrity.mjs --publish",
45
45
  "typecheck": "tsc --noEmit"
46
46
  },
47
47
  "dependencies": {
48
- "@nimbus-sh/sdk": "^0.8.0",
49
- "@nimbus-sh/worker": "^0.10.0"
48
+ "@nimbus-sh/config": "^0.2.3",
49
+ "@nimbus-sh/sdk": "^0.10.0",
50
+ "@nimbus-sh/worker": "^0.12.0"
50
51
  },
51
52
  "engines": {
52
- "node": ">=20"
53
+ "node": ">=20.10.0"
53
54
  },
54
55
  "devDependencies": {
55
56
  "@types/node": "^22.0.0",