@siteoshq/cli 1.1.1 → 1.3.0
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 +51 -3
- package/dist/cli.js +913 -31
- package/dist/cli.js.map +1 -1
- package/package.json +21 -21
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.
|
|
4
|
+
Search, Trace, SEO and Integrations. This source prepares version 1.3.0; publishing is a separate release.
|
|
5
5
|
Node.js 22 or newer is required.
|
|
6
6
|
|
|
7
7
|
## Install and authenticate
|
|
@@ -22,7 +22,7 @@ grants; the durable session never reaches a product endpoint.
|
|
|
22
22
|
|
|
23
23
|
## Hosted origins
|
|
24
24
|
|
|
25
|
-
CLI 1.
|
|
25
|
+
CLI 1.2.0 defaults to `https://app.siteos.sh` for Auth and every service. Existing credentials
|
|
26
26
|
and repository bindings retain their selected origin; sign in again when moving installations.
|
|
27
27
|
Never copy private state between production and staging.
|
|
28
28
|
|
|
@@ -69,7 +69,7 @@ siteos project environment connect forms --environment production --resource '<f
|
|
|
69
69
|
Omit `--resource` to create a new local environment. `siteos project environment list` reports the
|
|
70
70
|
common catalog and connections. Forms/Search/Trace operational `--environment` flags accept common
|
|
71
71
|
slugs and resolve explicit native bindings; without the flag, commands use the selected environment.
|
|
72
|
-
Pulse/Cookie use separate bound resources per environment. Missing bindings fail without a fallback.
|
|
72
|
+
Pulse/Cookie/SEO use separate bound resources per environment. Missing bindings fail without a fallback.
|
|
73
73
|
Manage names and website URLs with `project update` and `project environment update <slug>`.
|
|
74
74
|
Cookie/Trace published addresses remain unchanged until explicit republication.
|
|
75
75
|
|
|
@@ -136,6 +136,35 @@ snippet is unavailable until runtime publication succeeds. Integrations connecti
|
|
|
136
136
|
Organization; provider authorization opens the shared browser flow, and notification destinations
|
|
137
137
|
are connected explicitly by each service.
|
|
138
138
|
|
|
139
|
+
### SEO (prepared for release)
|
|
140
|
+
|
|
141
|
+
Check `siteos seo --help` before use; install a matching release only after it is published. An
|
|
142
|
+
SEO-capable server returns SEO in its Project service catalog, which older strict CLI parsers may
|
|
143
|
+
reject. Coordinate the CLI update before that server rollout, then publish the matching plugin.
|
|
144
|
+
|
|
145
|
+
```sh
|
|
146
|
+
siteos project connect seo --json
|
|
147
|
+
siteos seo status --environment production --json
|
|
148
|
+
siteos seo audit run --environment production --json
|
|
149
|
+
siteos seo audit list --json
|
|
150
|
+
siteos seo audit show '<audit-id>' --json
|
|
151
|
+
siteos seo pages --audit '<audit-id>' --json
|
|
152
|
+
siteos seo issues --audit '<audit-id>' --json
|
|
153
|
+
siteos seo changes --audit '<audit-id>' --state resolved --json
|
|
154
|
+
siteos seo recheck --audit '<audit-id>' --url https://example.com/pricing --json
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Setup performs no crawl. `audit run` queues a full HTML audit; `recheck` queues one previously
|
|
158
|
+
observed URL. Read the returned audit ID until a terminal state; a queued response is not a result.
|
|
159
|
+
`audit cancel '<audit-id>'` revokes further work. Pages and changes are paginated with `--page`.
|
|
160
|
+
|
|
161
|
+
`issue ignore` and `issue restore` require `--audit`, `--url`, `--rule`, `--reason` and the current
|
|
162
|
+
`--revision` (0 before the first decision). They use a distinct issue-write scope. Read back the
|
|
163
|
+
decision after success; a revision conflict requires refreshing it. Ignore never means resolved.
|
|
164
|
+
All SEO commands resolve the selected common Project and explicit environment binding. Current
|
|
165
|
+
Auth policy permits CLI service-grant issuance to Organization owners/admins. JSON uses contract
|
|
166
|
+
version 1 and does not include credentials. The focused plugin skill is `siteos-seo`.
|
|
167
|
+
|
|
139
168
|
## Local state and diagnostics
|
|
140
169
|
|
|
141
170
|
```sh
|
|
@@ -183,3 +212,22 @@ pnpm --dir packages/cli pack:check
|
|
|
183
212
|
```
|
|
184
213
|
|
|
185
214
|
`pack:check` creates the publishable tarball locally. It does not publish the package.
|
|
215
|
+
|
|
216
|
+
## Cookie verification
|
|
217
|
+
|
|
218
|
+
CLI 1.2.0 adds `cookie schema`, `cookie validate --input draft.json`,
|
|
219
|
+
`cookie regions resolve --country GB --source published` and `cookie restore --input restore.json`.
|
|
220
|
+
Restore changes the draft only. Validation makes no write and reports a stale draft version.
|
|
221
|
+
|
|
222
|
+
From the selected website repository, run `siteos cookie verify --json` or
|
|
223
|
+
`siteos cookie verify --url /pricing --browser webkit --json`. Install the matching local browser
|
|
224
|
+
when requested with `npx playwright@1.61.1 install chromium` or `npx playwright@1.61.1 install webkit`.
|
|
225
|
+
The check opens fresh contexts, exercises the public consent API and reports request origins and
|
|
226
|
+
storage names without values, query strings, request bodies or authenticated sessions. These are
|
|
227
|
+
real visits; normal installation/aggregate signals may be recorded. Reports remain local.
|
|
228
|
+
|
|
229
|
+
A report records the revision, runtime, observed Edge location, scenario scope and 24-hour expiry.
|
|
230
|
+
`passed` exits 0; `needs-review` and `failed` exit 1. Unknown origins/storage require classification.
|
|
231
|
+
The check covers one route and a bounded observation window, not hidden first-party/server-side
|
|
232
|
+
tracking, every delayed interaction, visual accessibility or legal compliance. Repeat after
|
|
233
|
+
website/publication changes and preserve a separate GTM Tag Assistant check where applicable.
|