@hivemagnus/hive-skills 0.0.0-stage → 1.1.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/LICENSE +202 -0
- package/README.md +156 -2
- package/dist/app.js +332 -0
- package/dist/archive.js +43 -0
- package/dist/auth.js +61 -0
- package/dist/check.js +67 -0
- package/dist/cli.js +73 -0
- package/dist/compatibility.js +27 -0
- package/dist/config.js +62 -0
- package/dist/db.js +152 -0
- package/dist/deployment-worker.js +41 -0
- package/dist/env-schema.js +25 -0
- package/dist/paths.js +6 -0
- package/dist/seed.js +30 -0
- package/dist/server.js +12 -0
- package/dist/types.js +1 -0
- package/dist/ui.js +304 -0
- package/package.json +60 -4
- package/registry-sources/hivemem/SKILL.md +28 -0
- package/registry-sources/hivemem/references/tools.md +9 -0
- package/scripts/archive-utils.mjs +70 -0
- package/scripts/deploy-hermes-agent.sh +43 -0
- package/scripts/hermes-sync.mjs +130 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,157 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @hivemagnus/hive-skills
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`hive-skills` is the top-level Skills registry for Hermes Agents. It exposes a digest-verified HTTPS archive API, an OS-authenticated operator page, and a pull-side Hermes bridge. Hermes itself remains unmodified: each host gets a user systemd timer that syncs skill archives into `~/.hermes/skills/registry` and restarts the gateway only when content changes.
|
|
4
|
+
|
|
5
|
+
The registry is intentionally small and local-first. SQLite records skills, releases, sessions, audit events, and deployment targets; archives live under the configured data directory. The initial catalog entry is **HiveMem**, based on the existing HiveMem Hermes plugin/skill source supplied at seed time.
|
|
6
|
+
|
|
7
|
+
## Install with the Hive launcher
|
|
8
|
+
|
|
9
|
+
Run `npx @hivemagnus/hive@^1.1.0 init --services all` to configure all four services,
|
|
10
|
+
or select `--services skills` for this registry alone. The launcher generates private
|
|
11
|
+
configuration, a strong session secret and TLS, and wires the Router's Skills panel.
|
|
12
|
+
Skills OS/PAM administration remains separate from IAM sign-in. See the
|
|
13
|
+
[launcher guide](../../packages/hive/README.md#include-hive-skills).
|
|
14
|
+
|
|
15
|
+
## Install from npm
|
|
16
|
+
|
|
17
|
+
Requires Linux, Node.js 24.22.1+ or 26.13.0+, TLS certificates, and `pamtester` for
|
|
18
|
+
OS-backed sign-in. SQLite is provided by Node; there are no native npm add-ons.
|
|
19
|
+
Agent deployment also needs Bash, OpenSSH, and permission to enable the target's user timer.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install --prefix /opt/hive-skills/runtime @hivemagnus/hive-skills@1.1.0
|
|
23
|
+
/opt/hive-skills/runtime/node_modules/.bin/hive-skills --env-file /opt/hive-skills/skills.env
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Or run `npx @hivemagnus/hive-skills --env-file skills.env`. The CLI accepts `start`
|
|
27
|
+
(the default), `seed`, `check`, `env-schema`, `--help` and `--version`. `check` validates TLS,
|
|
28
|
+
configuration and an existing database without creating or migrating state. `env-schema` prints
|
|
29
|
+
configuration metadata without loading runtime configuration. Environment-file paths may be absolute;
|
|
30
|
+
existing environment variables win. Without `--env-file`, the historical `./.env` lookup
|
|
31
|
+
is retained. Help/version do not initialize storage. A fresh install starts with an empty
|
|
32
|
+
catalog; startup never seeds or replaces existing records.
|
|
33
|
+
|
|
34
|
+
Configure these values in a private environment file (mode 0600):
|
|
35
|
+
|
|
36
|
+
```dotenv
|
|
37
|
+
NODE_ENV=production
|
|
38
|
+
HIVE_SKILLS_HOST=127.0.0.1
|
|
39
|
+
HIVE_SKILLS_PORT=4030
|
|
40
|
+
HIVE_SKILLS_PUBLIC_URL=https://hive.example.com:4030
|
|
41
|
+
HIVE_SKILLS_DATA_DIR=/opt/hive-skills/shared/data
|
|
42
|
+
HIVE_SKILLS_SESSION_SECRET=replace-with-at-least-32-random-characters
|
|
43
|
+
HIVE_SKILLS_ADMIN_USERS=admin
|
|
44
|
+
HIVE_SKILLS_PAM_SERVICE=login
|
|
45
|
+
HIVE_SKILLS_TLS_KEY_FILE=/opt/hive-skills/tls/server.key
|
|
46
|
+
HIVE_SKILLS_TLS_CERT_FILE=/opt/hive-skills/tls/server.crt
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Generate the session secret with `openssl rand -hex 32`. Configure a bind address suitable
|
|
50
|
+
for the network where the registry is exposed and a certificate covering its public URL.
|
|
51
|
+
The service account needs write access to the data directory and read access to its TLS files.
|
|
52
|
+
Keep the session secret unchanged on upgrades to preserve active sessions.
|
|
53
|
+
|
|
54
|
+
The packaged deployment helper is selected automatically; set `HIVE_SKILLS_DEPLOY_SCRIPT` only
|
|
55
|
+
for an intentional override. The package also ships `scripts/hermes-sync.mjs`,
|
|
56
|
+
`scripts/archive-utils.mjs`, `scripts/deploy-hermes-agent.sh` and the bundled seed source.
|
|
57
|
+
They work independently of the process working directory.
|
|
58
|
+
|
|
59
|
+
For an existing systemd installation, follow the
|
|
60
|
+
[npm migration runbook](../../docs/npm-deployments.md#optional-skills-registry).
|
|
61
|
+
Preserve that installation's environment, database, archives, release channels, target policies,
|
|
62
|
+
credentials and service account. Back up first; do not seed a production migration.
|
|
63
|
+
|
|
64
|
+
## Bring up the registry server
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
cp .env.example .env
|
|
68
|
+
# Set a real session secret and the certificate/key paths already managed by the server.
|
|
69
|
+
npm install
|
|
70
|
+
npm run build
|
|
71
|
+
HIVE_SKILLS_DEPLOY_HOST=hive.example.com HIVE_SKILLS_ENV_FILE="$PWD/.env" bash scripts/deploy-hive-skills.sh
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The service listens on a dedicated TLS port (default `4030`) and does not mint certificates itself. It uses the server's existing certificate and key specified in `.env`.
|
|
75
|
+
|
|
76
|
+
`HIVE_SKILLS_SESSION_SECRET` (at least 32 characters) is required. Only a non-production instance bound to a loopback address falls back to an ephemeral random secret, with a warning; its sessions end on restart.
|
|
77
|
+
|
|
78
|
+
`scripts/deploy-hive-skills.sh` preserves `/opt/hive-skills/shared/.env`, installs the PAM policy and `hive-skills.service`, and activates a health-gated release. New hosts require their own env file; existing hosts retain their own state. `HIVE_SKILLS_ADMIN_USERS` lists the OS accounts allowed to administer the registry (there is no default); authentication is checked through PAM against the host OS account, and the registry stores only a server-side session hash—never an OS password.
|
|
79
|
+
|
|
80
|
+
## Seed HiveMem
|
|
81
|
+
|
|
82
|
+
The bundled `registry-sources/hivemem` skill is the initial registry entry and documents the existing HiveMem plugin/tools. Seed it after build:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
npm run seed
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
For an npm install, run the same explicit operation with its CLI:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
/opt/hive-skills/runtime/node_modules/.bin/hive-skills seed --env-file /opt/hive-skills/skills.env
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The command validates and archives the bundled source as `hivemem` release `1.0.0` and promotes it to stable. Set `HIVEMEM_ARCHIVE` to seed a separately packaged replacement instead. Releases are immutable; later release and catalog CRUD operations are available to the OS-admin through the API.
|
|
95
|
+
|
|
96
|
+
## Hermes compatibility
|
|
97
|
+
|
|
98
|
+
Install the client bridge on an agent host using its own SSH key and explicit target settings:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
HIVE_SKILLS_PUBLIC_URL=https://hive.example.com:4030 \
|
|
102
|
+
HIVE_SKILLS_TARGET_HOST=agent-host.example.com \
|
|
103
|
+
HIVE_SKILLS_TARGET_USER=deploy \
|
|
104
|
+
scripts/deploy-hermes-agent.sh --target agent-1
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
That installs a `hive-skills-sync` systemd **user** service and timer for the target account. The timer pulls `/v1/agent/manifest` and downloads only changed archives with SHA-256 verification. It never edits Hermes core code. A registry admin can invoke the same deployment from the web page; the server queues a durable deployment job and records its completion status. No target OS password is stored in the network service environment.
|
|
108
|
+
|
|
109
|
+
Releases may declare `minHermesVersion` and `maxHermesVersion` when published.
|
|
110
|
+
The bridge detects the local `hermes --version`, supplies it to the manifest, and
|
|
111
|
+
checks the returned range again before installation. Set
|
|
112
|
+
`HIVE_SKILLS_HERMES_VERSION` in the target's private bridge environment only when
|
|
113
|
+
the Hermes wrapper cannot report its version. A bounded release is omitted when
|
|
114
|
+
the target version is missing or incompatible; unbounded existing releases remain
|
|
115
|
+
backward compatible. Compatibility is evaluated locally per installation; separate
|
|
116
|
+
registry installations do not synchronize Skills state.
|
|
117
|
+
|
|
118
|
+
## API overview
|
|
119
|
+
|
|
120
|
+
- `GET /healthz` – unauthenticated readiness
|
|
121
|
+
- `GET /v1/skills` / `GET /v1/skills/:slug` – public catalog
|
|
122
|
+
- `GET /v1/agent/manifest` – Hermes pull manifest
|
|
123
|
+
- `GET /v1/skills/:slug/releases/:version/archive[?channel=canary]` – archive payload, only for the release currently promoted on that channel (default `stable`)
|
|
124
|
+
- `POST /auth/login` – PAM-backed OS login
|
|
125
|
+
- `POST /admin/skills`, `PATCH /admin/skills/:slug`, `DELETE /admin/skills/:slug`
|
|
126
|
+
- `POST /admin/skills/:slug/releases`, `POST /admin/deployments/:target`
|
|
127
|
+
|
|
128
|
+
Every write and deployment action is audit logged with the authenticated OS username.
|
|
129
|
+
|
|
130
|
+
Skills is optional; each registry installation is independent.
|
|
131
|
+
|
|
132
|
+
Deployment targets can be seeded at startup with `HIVE_SKILLS_TARGETS`, a
|
|
133
|
+
comma-separated list of `name=user@host` entries (for example
|
|
134
|
+
`agent-1=deploy@agent-host.example.com`). Manage them afterwards with `GET /admin/targets` and `PUT /admin/targets/:name`
|
|
135
|
+
(`host`, `username`, `enabled`). Changing a target host/account or disabling it
|
|
136
|
+
revokes its pull enrollment. Enroll again to assign a channel and optional skill
|
|
137
|
+
list. Preserve `~/.config/hive-skills/bridge.env` on that target for its own
|
|
138
|
+
`HIVE_SKILLS_TARGET` and `HIVE_SKILLS_TARGET_TOKEN`; the installer reads this
|
|
139
|
+
optional file without replacing it. The manifest of a canary-enrolled target
|
|
140
|
+
points at channel-scoped archive URLs. Unpromoted, superseded and withdrawn
|
|
141
|
+
releases cannot be downloaded. Promoted archives remain public within the
|
|
142
|
+
registry's network boundary: target skill lists select distribution, they are
|
|
143
|
+
not an archive confidentiality boundary.
|
|
144
|
+
|
|
145
|
+
## Package verification
|
|
146
|
+
|
|
147
|
+
From the repository, after building, run `npm run check:skills-install`. It packs the package,
|
|
148
|
+
installs it into an empty temporary directory, and verifies CLI startup/seed, HTTPS, catalog,
|
|
149
|
+
manifest, archive digests, authorization boundaries, a real bridge pull, a repeated pull, and
|
|
150
|
+
persistence after restart. All data and the bridge profile are temporary; gateway restart is
|
|
151
|
+
replaced by a counter. No production registry, OS account or gateway is changed.
|
|
152
|
+
|
|
153
|
+
Run `npm run check:skills-install -- --registry` to repeat this against the exact published
|
|
154
|
+
version in `package.json`. CI also checks the package allowlist and npm 12 installation.
|
|
155
|
+
The package publishes from `.github/workflows/publish.yml` alongside the other packages;
|
|
156
|
+
configure its npm trusted publisher for that workflow and the `npm-publish` environment after
|
|
157
|
+
the initial authenticated publication.
|