puter-cli 1.8.2 → 1.8.4
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 +15 -1
- package/package.json +10 -10
- package/src/commands/apps.js +5 -3
- package/src/executor.js +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,25 @@ 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.4](https://github.com/HeyPuter/puter-cli/compare/v1.8.3...v1.8.4)
|
|
8
|
+
|
|
9
|
+
- fix(app): improve `app:delete` argument validation and usage [`eda41cd`](https://github.com/HeyPuter/puter-cli/commit/eda41cd7c623b8a3f0c60f586de756d4369face3)
|
|
10
|
+
|
|
11
|
+
#### [v1.8.3](https://github.com/HeyPuter/puter-cli/compare/v1.8.2...v1.8.3)
|
|
12
|
+
|
|
13
|
+
> 20 September 2025
|
|
14
|
+
|
|
15
|
+
- fix(app): improve `app:create` validation and usage [`73fc030`](https://github.com/HeyPuter/puter-cli/commit/73fc0300e244a7e94f16d266bfad6128528144b6)
|
|
16
|
+
- chore(config): add ignore patterns for AI tools and agent files [`2b19d6c`](https://github.com/HeyPuter/puter-cli/commit/2b19d6c4c8233d560d4ca16820b3f601875b6c79)
|
|
17
|
+
|
|
7
18
|
#### [v1.8.2](https://github.com/HeyPuter/puter-cli/compare/v1.8.1...v1.8.2)
|
|
8
19
|
|
|
20
|
+
> 18 September 2025
|
|
21
|
+
|
|
9
22
|
- feat: support multiple user profiles and hosts [`#12`](https://github.com/HeyPuter/puter-cli/pull/12)
|
|
10
23
|
- feat: merge profile feature and fix tests [`f234bc2`](https://github.com/HeyPuter/puter-cli/commit/f234bc2704047f39d2899962cd2aaa63df8331ce)
|
|
11
|
-
- ci
|
|
24
|
+
- ci: revert to pnpm for publishing [`dcd2fbc`](https://github.com/HeyPuter/puter-cli/commit/dcd2fbcbb8f9b5c5cb115a6c90a7e1e5225a2854)
|
|
25
|
+
- fix(ci): improve pnpm lockfile handling in publish workflow [`4731270`](https://github.com/HeyPuter/puter-cli/commit/4731270c3fcd4e4b855c3e1e2f77dbf79ed4ee4b)
|
|
12
26
|
|
|
13
27
|
#### [v1.8.1](https://github.com/HeyPuter/puter-cli/compare/v1.8.0...v1.8.1)
|
|
14
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "puter-cli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
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] || '',
|
|
@@ -104,8 +100,9 @@ const commands = {
|
|
|
104
100
|
'populate--': true
|
|
105
101
|
}
|
|
106
102
|
});
|
|
107
|
-
if (args.length < 1) {
|
|
108
|
-
console.log(chalk.red('
|
|
103
|
+
if (args._.length < 1) {
|
|
104
|
+
console.log(chalk.red('You must specify the app name:'));
|
|
105
|
+
console.log(chalk.yellow('Example: app:delete <name>'));
|
|
109
106
|
return;
|
|
110
107
|
}
|
|
111
108
|
const name = args._[0];
|
|
@@ -252,7 +249,7 @@ function showHelp(command) {
|
|
|
252
249
|
Example: app myapp
|
|
253
250
|
`,
|
|
254
251
|
'app:create': `
|
|
255
|
-
${chalk.cyan('app:create <name>
|
|
252
|
+
${chalk.cyan('app:create <name> <remote_dir>')}
|
|
256
253
|
Create a new app.
|
|
257
254
|
Example: app:create myapp https://myapp.puter.site
|
|
258
255
|
`,
|