puter-cli 1.8.2 → 1.8.3
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/CHANGELOG.md +9 -1
- package/package.json +10 -10
- package/src/commands/apps.js +5 -3
- package/src/executor.js +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,19 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v1.8.3](https://github.com/HeyPuter/puter-cli/compare/v1.8.2...v1.8.3)
|
|
8
|
+
|
|
9
|
+
- fix(app): improve `app:create` validation and usage [`73fc030`](https://github.com/HeyPuter/puter-cli/commit/73fc0300e244a7e94f16d266bfad6128528144b6)
|
|
10
|
+
- chore(config): add ignore patterns for AI tools and agent files [`2b19d6c`](https://github.com/HeyPuter/puter-cli/commit/2b19d6c4c8233d560d4ca16820b3f601875b6c79)
|
|
11
|
+
|
|
7
12
|
#### [v1.8.2](https://github.com/HeyPuter/puter-cli/compare/v1.8.1...v1.8.2)
|
|
8
13
|
|
|
14
|
+
> 18 September 2025
|
|
15
|
+
|
|
9
16
|
- feat: support multiple user profiles and hosts [`#12`](https://github.com/HeyPuter/puter-cli/pull/12)
|
|
10
17
|
- feat: merge profile feature and fix tests [`f234bc2`](https://github.com/HeyPuter/puter-cli/commit/f234bc2704047f39d2899962cd2aaa63df8331ce)
|
|
11
|
-
- ci
|
|
18
|
+
- ci: revert to pnpm for publishing [`dcd2fbc`](https://github.com/HeyPuter/puter-cli/commit/dcd2fbcbb8f9b5c5cb115a6c90a7e1e5225a2854)
|
|
19
|
+
- fix(ci): improve pnpm lockfile handling in publish workflow [`4731270`](https://github.com/HeyPuter/puter-cli/commit/4731270c3fcd4e4b855c3e1e2f77dbf79ed4ee4b)
|
|
12
20
|
|
|
13
21
|
#### [v1.8.1](https://github.com/HeyPuter/puter-cli/compare/v1.8.0...v1.8.1)
|
|
14
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "puter-cli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "Command line interface for Puter cloud platform",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -8,13 +8,6 @@
|
|
|
8
8
|
},
|
|
9
9
|
"preferGlobal": true,
|
|
10
10
|
"type": "module",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"start": "node bin/index.js",
|
|
13
|
-
"test": "TZ=UTC vitest run tests/*",
|
|
14
|
-
"test:watch": "TZ=UTC vitest --watch tests/*",
|
|
15
|
-
"version": "auto-changelog -p && git add CHANGELOG.md",
|
|
16
|
-
"coverage": "TZ=UTC vitest run --coverage"
|
|
17
|
-
},
|
|
18
11
|
"engines": {
|
|
19
12
|
"node": ">=18.0.0"
|
|
20
13
|
},
|
|
@@ -53,5 +46,12 @@
|
|
|
53
46
|
"bugs": {
|
|
54
47
|
"url": "https://github.com/HeyPuter/puter-cli/issues"
|
|
55
48
|
},
|
|
56
|
-
"homepage": "https://github.com/HeyPuter/puter-cli"
|
|
57
|
-
|
|
49
|
+
"homepage": "https://github.com/HeyPuter/puter-cli",
|
|
50
|
+
"scripts": {
|
|
51
|
+
"start": "node bin/index.js",
|
|
52
|
+
"test": "TZ=UTC vitest run tests/*",
|
|
53
|
+
"test:watch": "TZ=UTC vitest --watch tests/*",
|
|
54
|
+
"version": "auto-changelog -p && git add CHANGELOG.md",
|
|
55
|
+
"coverage": "TZ=UTC vitest run --coverage"
|
|
56
|
+
}
|
|
57
|
+
}
|
package/src/commands/apps.js
CHANGED
|
@@ -133,9 +133,11 @@ export async function appInfo(args = []) {
|
|
|
133
133
|
*/
|
|
134
134
|
export async function createApp(args) {
|
|
135
135
|
const name = args.name; // App name (required)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
if (!name || !isValidAppName(name)) {
|
|
137
|
+
console.log(chalk.red('Usage: app:create <name> <directory>'));
|
|
138
|
+
console.log(chalk.yellow('Example: app:create myApp .'));
|
|
139
|
+
console.log(chalk.yellow('Example: app:create myApp ./myApp'));
|
|
140
|
+
return;
|
|
139
141
|
}
|
|
140
142
|
// Use the default home page if the root directory if none specified
|
|
141
143
|
const localDir = args.directory ? resolvePath(getCurrentDirectory(), args.directory) : '';
|
package/src/executor.js
CHANGED
|
@@ -74,11 +74,7 @@ const commands = {
|
|
|
74
74
|
// alias: { d: 'description', u: 'url', },
|
|
75
75
|
// });
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
console.log(chalk.red('Usage: app:create <name> [directory] [--description="My App Description"] [--url=app-url]'));
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
|
|
77
|
+
// NOTE: Keep the check for now at the function level, move the check here so in the future we'll use the function for non-interactive command mode.
|
|
82
78
|
await createApp({
|
|
83
79
|
name: args._[0],
|
|
84
80
|
directory: args._[1] || '',
|
|
@@ -252,7 +248,7 @@ function showHelp(command) {
|
|
|
252
248
|
Example: app myapp
|
|
253
249
|
`,
|
|
254
250
|
'app:create': `
|
|
255
|
-
${chalk.cyan('app:create <name>
|
|
251
|
+
${chalk.cyan('app:create <name> <remote_dir>')}
|
|
256
252
|
Create a new app.
|
|
257
253
|
Example: app:create myapp https://myapp.puter.site
|
|
258
254
|
`,
|