@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 +2 -0
- package/dist/commands/scaffold.d.ts.map +1 -1
- package/dist/commands/scaffold.js +8 -7
- package/dist/version.d.ts +1 -6
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -6
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
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':
|
|
129
|
-
'@nimbus-sh/worker':
|
|
130
|
-
'@nimbus-sh/sdk':
|
|
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': '^
|
|
134
|
+
'@cloudflare/workers-types': '^5.20260928.1',
|
|
134
135
|
typescript: '^5.7.0',
|
|
135
|
-
wrangler: '^4.
|
|
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-
|
|
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
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"
|
|
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
|
-
|
|
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
|
|
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
|
-
"
|
|
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/
|
|
49
|
-
"@nimbus-sh/
|
|
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",
|