rigscope 0.1.2 → 0.1.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/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +4 -4
- package/.next/build-manifest.json +2 -2
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/administration/page_client-reference-manifest.js +1 -1
- package/.next/server/app/administration.html +1 -1
- package/.next/server/app/administration.rsc +2 -2
- package/.next/server/app/administration.segments/_full.segment.rsc +2 -2
- package/.next/server/app/administration.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/administration.segments/administration/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/alerts/page_client-reference-manifest.js +1 -1
- package/.next/server/app/alerts.html +1 -1
- package/.next/server/app/alerts.rsc +2 -2
- package/.next/server/app/alerts.segments/_full.segment.rsc +2 -2
- package/.next/server/app/alerts.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/alerts.segments/alerts/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/connections/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connections.html +1 -1
- package/.next/server/app/connections.rsc +2 -2
- package/.next/server/app/connections.segments/_full.segment.rsc +2 -2
- package/.next/server/app/connections.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/connections.segments/connections/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/history/page.js +1 -1
- package/.next/server/app/history/page_client-reference-manifest.js +1 -1
- package/.next/server/app/history.html +1 -1
- package/.next/server/app/history.rsc +3 -3
- package/.next/server/app/history.segments/_full.segment.rsc +3 -3
- package/.next/server/app/history.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/history.segments/history/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +2 -2
- package/.next/server/app/login.segments/_full.segment.rsc +2 -2
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/machines/[machineId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/processes/page.js +1 -1
- package/.next/server/app/processes/page_client-reference-manifest.js +1 -1
- package/.next/server/app/processes.html +1 -1
- package/.next/server/app/processes.rsc +3 -3
- package/.next/server/app/processes.segments/_full.segment.rsc +3 -3
- package/.next/server/app/processes.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/processes.segments/processes/__PAGE__.segment.rsc +3 -3
- package/.next/server/app-paths-manifest.json +4 -4
- package/.next/server/chunks/161.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/route-cache/APP_PAGE/16d1ab46157a868f438fa01e04bf53e805c71cddec593ea1535905c59625cd42/$/login.html +1 -0
- package/.next/server/route-cache/APP_PAGE/16d1ab46157a868f438fa01e04bf53e805c71cddec593ea1535905c59625cd42/$/login.meta +1 -0
- package/.next/server/route-cache/APP_PAGE/16d1ab46157a868f438fa01e04bf53e805c71cddec593ea1535905c59625cd42/$/login.rsc +26 -0
- package/.next/server/route-cache/APP_PAGE/16d1ab46157a868f438fa01e04bf53e805c71cddec593ea1535905c59625cd42/$/login.segments/_full.segment.rsc +26 -0
- package/.next/server/route-cache/APP_PAGE/16d1ab46157a868f438fa01e04bf53e805c71cddec593ea1535905c59625cd42/$/login.segments/_tree.segment.rsc +4 -0
- package/.next/server/route-cache/APP_PAGE/16d1ab46157a868f438fa01e04bf53e805c71cddec593ea1535905c59625cd42/$/login.segments/login/__PAGE__.segment.rsc +32 -0
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.html +1 -0
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.meta +1 -0
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.rsc +24 -0
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.segments/_full.segment.rsc +24 -0
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.segments/_not-found/__PAGE__.segment.rsc +30 -0
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.segments/_tree.segment.rsc +4 -0
- package/.next/server/route-cache/APP_PAGE/c6377dd9ce6a1c2cd100eb4344e843eb4639b9ed26f84643f77680e9eb454c4b/$/index.html +1 -0
- package/.next/server/route-cache/APP_PAGE/c6377dd9ce6a1c2cd100eb4344e843eb4639b9ed26f84643f77680e9eb454c4b/$/index.meta +1 -0
- package/.next/server/route-cache/APP_PAGE/c6377dd9ce6a1c2cd100eb4344e843eb4639b9ed26f84643f77680e9eb454c4b/$/index.rsc +26 -0
- package/.next/server/route-cache/APP_PAGE/c6377dd9ce6a1c2cd100eb4344e843eb4639b9ed26f84643f77680e9eb454c4b/$/index.segments/__PAGE__.segment.rsc +31 -0
- package/.next/server/route-cache/APP_PAGE/c6377dd9ce6a1c2cd100eb4344e843eb4639b9ed26f84643f77680e9eb454c4b/$/index.segments/_full.segment.rsc +26 -0
- package/.next/server/route-cache/APP_PAGE/c6377dd9ce6a1c2cd100eb4344e843eb4639b9ed26f84643f77680e9eb454c4b/$/index.segments/_tree.segment.rsc +3 -0
- package/.next/static/chunks/939-514e554087419c71.js +1 -0
- package/.next/static/chunks/app/history/{page-22be927a4c3a9c76.js → page-69ea64476ee5db85.js} +1 -1
- package/.next/static/chunks/app/processes/{page-e471ed23a1d5632f.js → page-0e98a4a64e829c5f.js} +1 -1
- package/ARCHITECTURE.md +30 -4
- package/CHANGELOG.md +32 -2
- package/dist/cli.cjs +1627 -1042
- package/dist/collector.cjs +138 -226
- package/dist/hub.cjs +5 -18
- package/dist/ops.cjs +158 -31
- package/dist/system.cjs +869 -450
- package/docs/bottlenecks.md +4 -6
- package/docs/configuration.md +2 -0
- package/docs/installation.md +42 -7
- package/docs/operations.md +32 -16
- package/docs/releasing.md +21 -17
- package/docs/system-installation.md +11 -2
- package/package.json +1 -2
- package/.next/static/chunks/939-2600d7c8e583d5ef.js +0 -1
- /package/.next/static/{npHoP6NSY976Yaye-xi86 → xjSDCOO8Gpm5iPO9tyRG5}/_buildManifest.js +0 -0
- /package/.next/static/{npHoP6NSY976Yaye-xi86 → xjSDCOO8Gpm5iPO9tyRG5}/_ssgManifest.js +0 -0
package/ARCHITECTURE.md
CHANGED
|
@@ -72,9 +72,30 @@ wire contracts are a real process boundary already.
|
|
|
72
72
|
### Installation and component lifecycle
|
|
73
73
|
|
|
74
74
|
One release contains the hub, collector, UI and administration tools. The install
|
|
75
|
-
role is an initial preset;
|
|
76
|
-
collector enablement
|
|
77
|
-
|
|
75
|
+
role is an initial preset; the canonical configuration records independent hub and
|
|
76
|
+
collector enablement in a required `components` object. Configuration and
|
|
77
|
+
installation state have no schema version fields. Read-only status never rewrites
|
|
78
|
+
configuration or units.
|
|
79
|
+
|
|
80
|
+
Configuration uses one canonical on-disk shape. A pre-canonical installation is
|
|
81
|
+
never migrated: `upgrade` stages and validates the replacement, stops the owned
|
|
82
|
+
hub and collector completely, removes the old configuration and history, and
|
|
83
|
+
installs the latest release fresh. `install` resets detected pre-canonical state
|
|
84
|
+
the same way. There is no rollback to the old format; back up the state directory
|
|
85
|
+
before upgrading if history must be kept. System adoption reads only a canonical
|
|
86
|
+
`config.json`; `hub-config.json` and `collector.json` fallbacks are not read.
|
|
87
|
+
|
|
88
|
+
The low-level manifest installer follows the same rule. Its release manifest and
|
|
89
|
+
`install-state.json` have one canonical shape with no format-version field; an
|
|
90
|
+
unfinished pre-canonical state is rejected with an explicit reset/reinstall
|
|
91
|
+
instruction and is never rewritten. Canonical upgrades retain accounts, history,
|
|
92
|
+
settings and collector identities, and rollback keeps the existing paired-backup
|
|
93
|
+
behaviour.
|
|
94
|
+
|
|
95
|
+
Database migration numbers are the one deliberate exception: `schema_migrations`
|
|
96
|
+
rows order irreversible SQL changes and are not configuration or installation
|
|
97
|
+
state versions. Export payloads, collector state and the hub enrollment state also
|
|
98
|
+
carry no format version; they are validated by shape alone.
|
|
78
99
|
|
|
79
100
|
User installations have separate hashed hub and collector systemd units, each
|
|
80
101
|
running `rigscope run hub|collector` with its own supervisor lease. System scope
|
|
@@ -83,7 +104,7 @@ the other. Each retains its settings, credentials and data when disabled; a
|
|
|
83
104
|
collector can continue sending to remote hubs while its local hub is disabled.
|
|
84
105
|
An unconfigured collector reports Awaiting connection and stays dormant.
|
|
85
106
|
|
|
86
|
-
The configuration module owns presets,
|
|
107
|
+
The configuration module owns presets, canonical state and component setup. The service
|
|
87
108
|
module owns systemd control and component service registration. The lifecycle
|
|
88
109
|
module starts and verifies selected components. Upgrade and rollback coordinate
|
|
89
110
|
one shared runtime, hold both component leases, back up hub storage and restore
|
|
@@ -124,6 +145,11 @@ hub's TLS certificate using ordinary certificate trust. Send credentials in an a
|
|
|
124
145
|
header, not a URL. Remote connections require TLS; loopback-only development may explicitly
|
|
125
146
|
use plaintext. Authenticate first and reject conflicting claimed collector identities.
|
|
126
147
|
|
|
148
|
+
The collector and hub use one canonical wire contract and
|
|
149
|
+
`/api/collector/connect` endpoint. There are no protocol-version markers,
|
|
150
|
+
metric-extension negotiations or alternate endpoint migrations. Update the hub
|
|
151
|
+
and its collectors together when replacing an unfinished installation.
|
|
152
|
+
|
|
127
153
|
JSON message families:
|
|
128
154
|
|
|
129
155
|
- `hello` / `welcome`: capabilities, inventory, hub/session identity.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Release notes
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
- Replace the unfinished versioned configuration formats with one canonical
|
|
6
|
+
on-disk shape. `config.json` and `system-install.json` require a `components`
|
|
7
|
+
object; collector state, `release-state.json`, `install-state.json`, release
|
|
8
|
+
manifests, package metadata, export documents and hub enrollment state carry
|
|
9
|
+
no format-version field. Adoption reads only a canonical `config.json`;
|
|
10
|
+
`hub-config.json` and `collector.json` fallbacks are not read. There is no
|
|
11
|
+
compatibility reader or in-place migration for the unfinished shapes.
|
|
12
|
+
- Reset pre-canonical installations instead of migrating them. Stop the owned
|
|
13
|
+
hub and collector completely first: the latest CLI stages and validates the
|
|
14
|
+
replacement release, then removes the old configuration and history and
|
|
15
|
+
installs fresh. Run `npx --yes rigscope@latest upgrade` directly, because an
|
|
16
|
+
older installed CLI cannot stage a package without the removed metadata.
|
|
17
|
+
`rigscope install` and detected system installs reset the same way. Back up the
|
|
18
|
+
state directory first if that history must be kept; there is no rollback to the
|
|
19
|
+
old shape. Reset upgrades retain the installation preset, and interrupted
|
|
20
|
+
resets cannot reuse the unfinished runtime on retry.
|
|
21
|
+
- Canonical upgrades still retain accounts, history, settings, collector
|
|
22
|
+
identities and pending samples. Rollback still returns to the retained previous
|
|
23
|
+
canonical runtime with its paired database backup. Database migration numbers
|
|
24
|
+
in `schema_migrations` remain independent implementation details.
|
|
25
|
+
- Use one canonical collector endpoint and wire format. Remove collector-version
|
|
26
|
+
markers, metric-extension negotiation, old-peer payload projection and the old
|
|
27
|
+
endpoint/outbox migration. Hub and collector must use the canonical contract;
|
|
28
|
+
reinstall existing collectors when updating an unfinished installation.
|
|
29
|
+
- Add `rigscope configure --port PORT` to change the local hub port while the
|
|
30
|
+
hub and collector are stopped, updating the colocated collector destination and
|
|
31
|
+
moving its outbox. `--origin` and `--port` cannot be combined; `--local
|
|
32
|
+
--port` is allowed.
|
|
33
|
+
|
|
3
34
|
## 0.1.2
|
|
4
35
|
|
|
5
36
|
- Show History downtime shading as soon as the collector disconnects, and stop
|
|
@@ -48,5 +79,4 @@ hub federation and clustering are outside this release.
|
|
|
48
79
|
|
|
49
80
|
See [installation](docs/installation.md) for hardware limits and
|
|
50
81
|
[scale validation](docs/scale-validation.md) for measured synthetic workloads.
|
|
51
|
-
|
|
52
|
-
the application version.
|
|
82
|
+
Database migration numbers are independent of the application version.
|