puter-cli 1.7.2 → 1.7.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 CHANGED
@@ -4,8 +4,14 @@ 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.7.3](https://github.com/HeyPuter/puter-cli/compare/v1.7.2...v1.7.3)
8
+
9
+ - fix: absolute remote path treated as relative in update #10 [`cb716a3`](https://github.com/HeyPuter/puter-cli/commit/cb716a37afdd9f552c53244a3eb63d7a649e244c)
10
+
7
11
  #### [v1.7.2](https://github.com/HeyPuter/puter-cli/compare/v1.7.1...v1.7.2)
8
12
 
13
+ > 4 March 2025
14
+
9
15
  - fix: mv command for both rename/move files [`0b944c8`](https://github.com/HeyPuter/puter-cli/commit/0b944c8295f615427bd90d19a6058b2053c1b3dc)
10
16
 
11
17
  #### [v1.7.1](https://github.com/HeyPuter/puter-cli/compare/v1.7.0...v1.7.1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puter-cli",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Command line interface for Puter cloud platform",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -284,7 +284,14 @@ export async function updateApp(args = []) {
284
284
  return;
285
285
  }
286
286
  const name = args[0]; // App name (required)
287
- const remoteDir = resolvePath(getCurrentDirectory(), args[1] || '.');
287
+ // Fix: Properly handle absolute paths by checking if the path starts with '/'
288
+ let remoteDir;
289
+ if (args[1] && args[1].startsWith('/')) {
290
+ remoteDir = args[1]; // Use the absolute path as-is
291
+ } else {
292
+ remoteDir = resolvePath(getCurrentDirectory(), args[1] || '.');
293
+ }
294
+
288
295
  const remoteDirExists = await pathExists(remoteDir);
289
296
 
290
297
  if (!remoteDirExists){