@siteoshq/cli 1.1.0 → 1.1.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 +20 -2
- package/dist/cli.js +4 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# SiteOS CLI
|
|
2
2
|
|
|
3
3
|
`@siteoshq/cli` exposes one `siteos` binary for Auth, common Projects, Pulse, Cookie, Forms,
|
|
4
|
-
Search, Trace and Integrations. This source prepares version 1.1.
|
|
4
|
+
Search, Trace and Integrations. This source prepares version 1.1.1; publishing is a separate release.
|
|
5
5
|
Node.js 22 or newer is required.
|
|
6
6
|
|
|
7
7
|
## Install and authenticate
|
|
@@ -20,6 +20,24 @@ The one-time token is secret. Only `auth complete` receives it. The durable sess
|
|
|
20
20
|
privately in `~/.siteos/auth.json`. Product commands exchange it for short-lived, audience-bound
|
|
21
21
|
grants; the durable session never reaches a product endpoint.
|
|
22
22
|
|
|
23
|
+
## Hosted origins
|
|
24
|
+
|
|
25
|
+
CLI 1.1.1 defaults to `https://app.siteos.sh` for Auth and every service. Existing credentials
|
|
26
|
+
and repository bindings retain their selected origin; sign in again when moving installations.
|
|
27
|
+
Never copy private state between production and staging.
|
|
28
|
+
|
|
29
|
+
For the separate SiteOS staging installation, set all four overrides before authentication:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
export SITEOS_AUTH_BASE_URL=https://siteosapp.xui.se
|
|
33
|
+
export SITEOS_PULSE_API_URL=https://siteosapp.xui.se
|
|
34
|
+
export SITEOS_FORMS_PUBLIC_URL=https://siteosapp.xui.se
|
|
35
|
+
export SITEOS_SEARCH_PUBLIC_URL=https://siteosapp.xui.se
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
These select the SiteOS installation. A Project's Production or Staging Environment is a separate,
|
|
39
|
+
project-level selection inside that installation.
|
|
40
|
+
|
|
23
41
|
## Select one Project
|
|
24
42
|
|
|
25
43
|
From the website repository:
|
|
@@ -141,7 +159,7 @@ Organization and tracked Pulse slug agree. It leaves the original file untouched
|
|
|
141
159
|
## Origins and errors
|
|
142
160
|
|
|
143
161
|
`SITEOS_AUTH_BASE_URL` selects the shared application origin for common Projects and all service
|
|
144
|
-
commands using that context (default `https://
|
|
162
|
+
commands using that context (default `https://app.siteos.sh`). The legacy service flows retain
|
|
145
163
|
`SITEOS_PULSE_API_URL`, `SITEOS_FORMS_PUBLIC_URL` and `SITEOS_SEARCH_PUBLIC_URL` overrides. Runtime
|
|
146
164
|
integration uses its service's configured public URL and scoped credential.
|
|
147
165
|
|
package/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import os2 from "os";
|
|
|
11
11
|
|
|
12
12
|
// src/siteos-auth-api.ts
|
|
13
13
|
import { z } from "zod";
|
|
14
|
-
var DEFAULT_SITEOS_AUTH_BASE_URL = "https://
|
|
14
|
+
var DEFAULT_SITEOS_AUTH_BASE_URL = "https://app.siteos.sh";
|
|
15
15
|
var SITEOS_AUTH_BASE_URL_ENV = "SITEOS_AUTH_BASE_URL";
|
|
16
16
|
var siteOSCliSessionStatusSchema = z.object({
|
|
17
17
|
contractVersion: z.literal(1),
|
|
@@ -2502,7 +2502,7 @@ import { z as z10 } from "zod";
|
|
|
2502
2502
|
|
|
2503
2503
|
// src/siteos-forms-api.ts
|
|
2504
2504
|
import { z as z9 } from "zod";
|
|
2505
|
-
var DEFAULT_SITEOS_FORMS_BASE_URL = "https://
|
|
2505
|
+
var DEFAULT_SITEOS_FORMS_BASE_URL = "https://app.siteos.sh";
|
|
2506
2506
|
var SITEOS_FORMS_BASE_URL_ENV = "SITEOS_FORMS_PUBLIC_URL";
|
|
2507
2507
|
var opaqueIdentifierSchema = z9.string().trim().min(1).max(255);
|
|
2508
2508
|
var formsProjectSchema = z9.object({
|
|
@@ -4616,7 +4616,7 @@ import path14 from "path";
|
|
|
4616
4616
|
import { z as z12 } from "zod";
|
|
4617
4617
|
|
|
4618
4618
|
// src/pulse/constants.ts
|
|
4619
|
-
var DEFAULT_SITEOS_PULSE_API_URL = "https://
|
|
4619
|
+
var DEFAULT_SITEOS_PULSE_API_URL = "https://app.siteos.sh";
|
|
4620
4620
|
function normalizeApiUrl(value) {
|
|
4621
4621
|
let url;
|
|
4622
4622
|
try {
|
|
@@ -6562,7 +6562,7 @@ import path27 from "path";
|
|
|
6562
6562
|
|
|
6563
6563
|
// src/siteos-search-api.ts
|
|
6564
6564
|
import { z as z13 } from "zod";
|
|
6565
|
-
var DEFAULT_SITEOS_SEARCH_BASE_URL = "https://
|
|
6565
|
+
var DEFAULT_SITEOS_SEARCH_BASE_URL = "https://app.siteos.sh";
|
|
6566
6566
|
var SITEOS_SEARCH_BASE_URL_ENV = "SITEOS_SEARCH_PUBLIC_URL";
|
|
6567
6567
|
var permissiveObjectSchema = z13.record(z13.unknown());
|
|
6568
6568
|
var environmentSlugSchema = z13.string().min(2).max(30).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
|