pockethost 4.2.1 → 4.2.2

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
@@ -2,6 +2,14 @@
2
2
 
3
3
  Formerly published as `phio`. Versions below 3.0.0 are phio's history.
4
4
 
5
+ ## 4.2.2
6
+
7
+ ### Patch Changes
8
+
9
+ - The CLI talks to `https://mothership.pockethost.io` by default (PocketHost's API has a new name). The old
10
+ `pockethost-central.pockethost.io` keeps working, so older versions are unaffected. `POCKETHOST_MOTHERSHIP_URL`
11
+ still overrides it.
12
+
5
13
  ## 4.2.1
6
14
 
7
15
  ### Patch Changes
package/README.md CHANGED
@@ -135,8 +135,9 @@ The CLI signs in with a personal access token (`ph_pat_…`) only. Every command
135
135
  2. the token saved by `pockethost login` (or `pockethost token set`)
136
136
 
137
137
  Create tokens under [Account → API Tokens](https://pockethost.io/account/tokens). A token sees only the instances
138
- you give it. `list`, `link`, `show` and `logs` work with any token. `deploy`, `dev` and the instance commands need
139
- write access, and `create` needs a token for all instances. Email/password login was removed in 4.0.
138
+ you give it. You can change those instances later with the token's **Edit** button; the token itself stays the same.
139
+ `list`, `link`, `show` and `logs` work with any token. `deploy`, `dev` and the instance commands need write access,
140
+ and `create` needs a token for all instances. Email/password login was removed in 4.0.
140
141
 
141
142
  Deploy from GitHub Actions:
142
143
 
package/dist/cli.js CHANGED
@@ -6444,7 +6444,7 @@ function useColor() {
6444
6444
  var program = new Command();
6445
6445
 
6446
6446
  // package.json
6447
- var version = "4.2.1";
6447
+ var version = "4.2.2";
6448
6448
 
6449
6449
  // src/lib/projectRoot.ts
6450
6450
  import { existsSync as existsSync2 } from "fs";
@@ -6608,7 +6608,7 @@ var CLI_HOME = (...paths) => {
6608
6608
  };
6609
6609
  var MOTHERSHIP_URL = (...paths) => {
6610
6610
  const url = new URL(
6611
- envVar("MOTHERSHIP_URL") ?? `https://pockethost-central.pockethost.io`
6611
+ envVar("MOTHERSHIP_URL") ?? `https://mothership.pockethost.io`
6612
6612
  );
6613
6613
  url.pathname = join(url.pathname, ...paths);
6614
6614
  return url.toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pockethost",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "The PocketHost CLI: deploy, sync, and tail logs for your PocketHost instances",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,6 +25,15 @@
25
25
  "engines": {
26
26
  "node": ">=20"
27
27
  },
28
+ "scripts": {
29
+ "build": "node scripts/build.mjs",
30
+ "check:types": "tsc --noEmit",
31
+ "dev": "node --import tsx ./src/cli.ts",
32
+ "start": "node --import tsx ./src/cli.ts",
33
+ "test": "vitest run",
34
+ "prepublishOnly": "pnpm check:types && pnpm test",
35
+ "prepack": "pnpm build"
36
+ },
28
37
  "files": [
29
38
  "dist",
30
39
  "CHANGELOG.md",
@@ -57,12 +66,5 @@
57
66
  "semi": false,
58
67
  "singleQuote": true,
59
68
  "trailingComma": "es5"
60
- },
61
- "scripts": {
62
- "build": "node scripts/build.mjs",
63
- "check:types": "tsc --noEmit",
64
- "dev": "node --import tsx ./src/cli.ts",
65
- "start": "node --import tsx ./src/cli.ts",
66
- "test": "vitest run"
67
69
  }
68
- }
70
+ }
package/LICENSE.md DELETED
@@ -1,16 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4
- and associated documentation files (the "Software"), to deal in the Software without restriction,
5
- including without limitation the rights to use, copy, modify, merge, publish, distribute,
6
- sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
7
- is furnished to do so, subject to the following conditions:
8
-
9
- The above copyright notice and this permission notice shall be included in all copies or
10
- substantial portions of the Software.
11
-
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
13
- BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.