@hasna/machines 0.0.32 → 0.0.33
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 +14 -13
- package/dist/cli/index.js +132 -1318
- package/dist/commands/screen.d.ts +2 -1
- package/dist/commands/screen.d.ts.map +1 -1
- package/dist/index.js +32 -544
- package/dist/mcp/index.js +85 -601
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -138,9 +138,9 @@ Enable Remote Management / Screen Sharing on a fresh macOS machine over SSH
|
|
|
138
138
|
Screen Sharing.app and Apple Remote Desktop):
|
|
139
139
|
|
|
140
140
|
```bash
|
|
141
|
-
secrets set
|
|
141
|
+
secrets set machines/screen-sharing/screen-machine005-vnc-password "$VNC_PASSWORD" --type password
|
|
142
142
|
machines screen-enable --machine machine005 --user jo \
|
|
143
|
-
--vnc-password-secret
|
|
143
|
+
--vnc-password-secret machines/screen-sharing/screen-machine005-vnc-password
|
|
144
144
|
machines screen-enable --machine machine005 --user jo --print # show the SSH command, don't run it
|
|
145
145
|
```
|
|
146
146
|
|
|
@@ -148,8 +148,9 @@ The legacy VNC protocol honors only the first 8 password characters. The
|
|
|
148
148
|
password is read through the `secrets` CLI and piped over SSH stdin; it is not
|
|
149
149
|
embedded in generated command text. If `--vnc-password-secret` is omitted,
|
|
150
150
|
machines defaults to
|
|
151
|
-
`
|
|
152
|
-
comes from the manifest
|
|
151
|
+
`machines/screen-sharing/screen-<machine>-vnc-password`, or the namespace set in
|
|
152
|
+
`HASNA_MACHINES_SCREEN_SECRET_NAMESPACE`. The user comes from the manifest
|
|
153
|
+
(`metadata.user`) when present, or `--user`.
|
|
153
154
|
`screen-credentials` verifies the resolved user and secret key for a machine or
|
|
154
155
|
the full fleet without printing secret values.
|
|
155
156
|
|
|
@@ -206,11 +207,11 @@ import { checkMachineCompatibility } from "@hasna/machines/consumer";
|
|
|
206
207
|
const report = checkMachineCompatibility({
|
|
207
208
|
machineId: "spark01",
|
|
208
209
|
commands: [{ command: "bun" }],
|
|
209
|
-
packages: [{ name: "@
|
|
210
|
+
packages: [{ name: "@example/knowledge", command: "knowledge", expectedVersion: "0.2.29" }],
|
|
210
211
|
workspaces: [{
|
|
211
212
|
label: "open-knowledge",
|
|
212
|
-
path: "/
|
|
213
|
-
expectedPackageName: "@
|
|
213
|
+
path: "/srv/workspaces/open-knowledge",
|
|
214
|
+
expectedPackageName: "@example/knowledge",
|
|
214
215
|
expectedVersion: "0.2.29",
|
|
215
216
|
}],
|
|
216
217
|
});
|
|
@@ -226,14 +227,14 @@ CLI and MCP expose the same shape:
|
|
|
226
227
|
```bash
|
|
227
228
|
machines compatibility --machine spark01 \
|
|
228
229
|
--command bun \
|
|
229
|
-
--package @
|
|
230
|
-
--workspace open-knowledge=/
|
|
230
|
+
--package @example/knowledge:knowledge:0.2.29 \
|
|
231
|
+
--workspace open-knowledge=/srv/workspaces/open-knowledge:@example/knowledge:0.2.29 \
|
|
231
232
|
--json
|
|
232
233
|
```
|
|
233
234
|
|
|
234
235
|
## Storage
|
|
235
236
|
|
|
236
|
-
Machines stores runtime data locally in SQLite under
|
|
237
|
+
Machines stores runtime data locally in SQLite under its data directory and includes repo-owned PostgreSQL migrations for remote storage deployments.
|
|
237
238
|
|
|
238
239
|
```bash
|
|
239
240
|
machines storage status --json
|
|
@@ -252,14 +253,14 @@ target can be explicit or environment-backed:
|
|
|
252
253
|
|
|
253
254
|
```bash
|
|
254
255
|
machines backup --bucket fleet-backups --prefix machines --json
|
|
255
|
-
|
|
256
|
+
MACHINES_S3_BUCKET=fleet-backups machines backup --json
|
|
256
257
|
```
|
|
257
258
|
|
|
258
259
|
`--bucket` and `--prefix` always win. Without `--bucket`, the backup command
|
|
259
260
|
uses `HASNA_MACHINES_S3_BUCKET` or fallback `MACHINES_S3_BUCKET`; prefix uses
|
|
260
261
|
`HASNA_MACHINES_S3_PREFIX`, fallback `MACHINES_S3_PREFIX`, or `machines`.
|
|
261
262
|
This keeps the open-source CLI local/self-hosted by default while allowing
|
|
262
|
-
|
|
263
|
+
deployments to route app-owned backups through explicit storage metadata.
|
|
263
264
|
|
|
264
265
|
## Applications and tooling
|
|
265
266
|
|
|
@@ -295,7 +296,7 @@ machines notifications dispatch --event manual.test --message "hello fleet"
|
|
|
295
296
|
## Runtime Events
|
|
296
297
|
|
|
297
298
|
`machines runtime tmux-watch` probes tmux with `display-message` and emits shared
|
|
298
|
-
|
|
299
|
+
events without sending keys, killing panes, or changing tmux state.
|
|
299
300
|
|
|
300
301
|
```bash
|
|
301
302
|
machines runtime tmux-watch %11 --once --json
|