@siteoshq/cli 1.13.0 → 2.0.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.
Files changed (4) hide show
  1. package/README.md +21 -22
  2. package/dist/cli.js +789 -2471
  3. package/dist/cli.js.map +1 -1
  4. package/package.json +18 -20
package/README.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # SiteOS CLI
2
2
 
3
3
  `@siteoshq/cli` exposes one `siteos` binary for Auth, common Projects, Pulse, Cookie, Forms,
4
- Search, Trace, SEO/GEO and Integrations. This source is version 1.13.0; source changes require a separate release to reach npm.
4
+ Search, Trace, SEO/GEO and Integrations. This source is version 2.0.0; source changes require a separate release to reach npm.
5
+
6
+ CLI 2 requires `siteos project use <id-or-slug> --environment <slug>` once per repository.
7
+ It stores only the common selection in private `projects.json`; older service bindings are not
8
+ read or imported. Authentication and installed runtime/deployment credentials remain valid.
9
+ Service-local `project` and `environment` commands have been removed; use `siteos project`.
10
+
5
11
  Node.js 22 or newer is required.
6
12
 
7
13
  ## Install and authenticate
@@ -74,7 +80,7 @@ Manage names and website URLs with `project update` and `project environment upd
74
80
  Cookie/Trace published addresses remain unchanged until explicit republication.
75
81
 
76
82
  `project use` writes one private binding keyed by real repository path and application origin in
77
- `~/.siteos/project-bindings.json`. It does not write a tracked global Project file. All service
83
+ `~/.siteos/projects.json`. It does not write a tracked global Project file. All service
78
84
  management commands use this selection and their own runtime authority. An Organization mismatch
79
85
  requires selecting the Project in the active Organization again.
80
86
 
@@ -84,7 +90,7 @@ requires selecting the Project in the active Organization again.
84
90
 
85
91
  ```sh
86
92
  siteos project connect pulse --json
87
- siteos pulse project list --json
93
+ siteos project status --json
88
94
  siteos pulse init
89
95
  siteos pulse validate --json
90
96
  siteos pulse test
@@ -99,8 +105,7 @@ monitoring are explicit operations. `deploy --dry-run` builds locally without up
99
105
  In a monorepo, run Pulse commands from the directory containing that website's
100
106
  `siteos.config.json`. The current source resolves deployment configuration, specs and archive
101
107
  output from that directory; private Project selection remains scoped to the Git repository.
102
- This fixes published CLI 1.10.0, which incorrectly bundled the repository root on deployment.
103
- Use a locally built CLI containing the fix until its separate npm release is available.
108
+ Nested website deployments resolve files relative to that website while retaining the repository’s common Project selection.
104
109
 
105
110
  CLI 1.10.0 adds an optional `environmentVariables` array to each Check, for
106
111
  example `"environmentVariables": ["TEST_EMAIL", "TEST_INBOX_TOKEN"]`. Declare names only, and set
@@ -114,11 +119,11 @@ earlier published versions do not preserve these declarations. See
114
119
  ### Forms and Search
115
120
 
116
121
  ```sh
117
- siteos forms environment list --json
122
+ siteos project environment list --json
118
123
  siteos forms definition check --manifest .siteos/forms/manifest.json --json
119
124
  siteos forms definition sync --environment production --manifest .siteos/forms/manifest.json --json
120
125
  siteos forms credential issue --environment production --install --json
121
- siteos search environment list --json
126
+ siteos project environment list --json
122
127
  siteos search diagnostics --environment production --json
123
128
  siteos search credential issue --environment production --install --json
124
129
  siteos search indexing-credential issue --environment production --install --json
@@ -247,33 +252,27 @@ version 1 and does not include credentials. The focused plugin skill is `siteos-
247
252
  siteos health-check --json
248
253
  ```
249
254
 
250
- Diagnostics report local Project selection and legacy service references without contacting APIs
251
- or reading runtime credentials. A selected Project means local setup exists, not remote health.
255
+ Diagnostics report the common Project selection and local Pulse configuration without contacting
256
+ APIs or reading runtime credentials. A selected Project means local setup exists, not remote health.
252
257
  Set `SITEOS_HOME` to relocate private CLI state. Never commit `auth.json` or private bindings.
253
258
 
254
- Legacy `pulse project`, `forms project` and `search project` selections remain supported for existing
255
- repositories. Their service-aware bindings and tracked references (`siteos.config.json`,
256
- `.siteos/forms/project.json`, `.siteos/search/project.json`) are fallback context when no common
257
- Project is selected. They do not create common attachments. Old global `.siteos/project.json` and
258
- old shared API keys are not imported or interpreted.
259
-
260
- The retained Pulse migration can import a matching version 2 private binding from
261
- `${XDG_CONFIG_HOME:-~/.config}/siteos/pulse/project-bindings.json` only when the origin, repository,
262
- Organization and tracked Pulse slug agree. It leaves the original file untouched.
259
+ CLI 2 uses only `siteos project` for Project selection, service setup and environments. Service-local
260
+ Project and environment commands and binding imports have been removed. Re-select existing Projects
261
+ with `project use`; this preserves their data, attachments and credentials. Module resource IDs are
262
+ internal references, not common Project IDs or browser URLs.
263
263
 
264
264
  ## Origins and errors
265
265
 
266
266
  `SITEOS_AUTH_BASE_URL` selects the shared application origin for common Projects and all service
267
- commands using that context (default `https://app.siteos.sh`). The legacy service flows retain
268
- `SITEOS_PULSE_API_URL`, `SITEOS_FORMS_PUBLIC_URL` and `SITEOS_SEARCH_PUBLIC_URL` overrides. Runtime
267
+ commands using that context (default `https://app.siteos.sh`). Runtime
269
268
  integration uses its service's configured public URL and scoped credential.
270
269
 
271
270
  Run `siteos <group> --help` for supported commands. Exit code 0 means success, 2 invalid usage,
272
- and 1 an operational failure. Legacy Pulse additionally uses 3, 4 and 5 for authorization,
271
+ and 1 an operational failure. Pulse additionally uses 3, 4 and 5 for authorization,
273
272
  conflict and unavailable-service failures. JSON output is intended for agents and automation.
274
273
 
275
274
  One SiteOS plugin supports Codex and Claude Code, with a general workflow and focused service
276
- skills. Common Projects require CLI 1.1.0 and plugin 1.3.0 or newer.
275
+ skills. The current common-only workflow requires CLI 2.0.0 and plugin 2.0.0.
277
276
 
278
277
  ## Development and publication checks
279
278