@hasna/machines 0.0.1

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 (58) hide show
  1. package/README.md +71 -0
  2. package/dist/agent/index.d.ts +3 -0
  3. package/dist/agent/index.d.ts.map +1 -0
  4. package/dist/agent/index.js +11776 -0
  5. package/dist/agent/runtime.d.ts +10 -0
  6. package/dist/agent/runtime.d.ts.map +1 -0
  7. package/dist/cli/index.d.ts +3 -0
  8. package/dist/cli/index.d.ts.map +1 -0
  9. package/dist/cli/index.js +17594 -0
  10. package/dist/commands/apps.d.ts +11 -0
  11. package/dist/commands/apps.d.ts.map +1 -0
  12. package/dist/commands/backup.d.ts +7 -0
  13. package/dist/commands/backup.d.ts.map +1 -0
  14. package/dist/commands/cert.d.ts +7 -0
  15. package/dist/commands/cert.d.ts.map +1 -0
  16. package/dist/commands/diff.d.ts +3 -0
  17. package/dist/commands/diff.d.ts.map +1 -0
  18. package/dist/commands/dns.d.ts +14 -0
  19. package/dist/commands/dns.d.ts.map +1 -0
  20. package/dist/commands/install-claude.d.ts +14 -0
  21. package/dist/commands/install-claude.d.ts.map +1 -0
  22. package/dist/commands/install-tailscale.d.ts +7 -0
  23. package/dist/commands/install-tailscale.d.ts.map +1 -0
  24. package/dist/commands/manifest.d.ts +9 -0
  25. package/dist/commands/manifest.d.ts.map +1 -0
  26. package/dist/commands/notifications.d.ts +12 -0
  27. package/dist/commands/notifications.d.ts.map +1 -0
  28. package/dist/commands/ports.d.ts +13 -0
  29. package/dist/commands/ports.d.ts.map +1 -0
  30. package/dist/commands/serve.d.ts +14 -0
  31. package/dist/commands/serve.d.ts.map +1 -0
  32. package/dist/commands/setup.d.ts +7 -0
  33. package/dist/commands/setup.d.ts.map +1 -0
  34. package/dist/commands/ssh.d.ts +8 -0
  35. package/dist/commands/ssh.d.ts.map +1 -0
  36. package/dist/commands/status.d.ts +3 -0
  37. package/dist/commands/status.d.ts.map +1 -0
  38. package/dist/commands/sync.d.ts +7 -0
  39. package/dist/commands/sync.d.ts.map +1 -0
  40. package/dist/db.d.ts +18 -0
  41. package/dist/db.d.ts.map +1 -0
  42. package/dist/index.d.ts +23 -0
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/index.js +30553 -0
  45. package/dist/manifests.d.ts +271 -0
  46. package/dist/manifests.d.ts.map +1 -0
  47. package/dist/mcp/index.d.ts +3 -0
  48. package/dist/mcp/index.d.ts.map +1 -0
  49. package/dist/mcp/index.js +15019 -0
  50. package/dist/mcp/server.d.ts +4 -0
  51. package/dist/mcp/server.d.ts.map +1 -0
  52. package/dist/paths.d.ts +7 -0
  53. package/dist/paths.d.ts.map +1 -0
  54. package/dist/types.d.ts +119 -0
  55. package/dist/types.d.ts.map +1 -0
  56. package/dist/version.d.ts +2 -0
  57. package/dist/version.d.ts.map +1 -0
  58. package/package.json +70 -0
package/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # @hasna/machines
2
+
3
+ Machine fleet management for developers — provision, sync, and manage multiple dev machines from CLI and MCP.
4
+
5
+ ## Planned surface
6
+
7
+ - `machines`: Commander-based CLI for manifest, setup, sync, and status commands
8
+ - `machines-mcp`: MCP server exposing fleet tools to AI agents
9
+ - `machines-agent`: lightweight local daemon for heartbeats and runtime reporting
10
+
11
+ ## Manifest
12
+
13
+ `machines.json` is the desired fleet declaration. Current commands:
14
+
15
+ ```bash
16
+ machines manifest init
17
+ machines manifest bootstrap
18
+ machines manifest add --id spark01 --platform linux --workspace-path ~/workspace
19
+ machines manifest add --id apple03 --platform macos --workspace-path ~/Workspace --app ghostty:cask
20
+ machines manifest validate
21
+ machines manifest list
22
+ ```
23
+
24
+ ## Provision and reconcile
25
+
26
+ ```bash
27
+ machines setup --machine spark01 --json
28
+ machines setup --machine spark01 --apply --yes
29
+ machines sync --machine spark01 --json
30
+ machines sync --machine spark01 --apply --yes
31
+ ```
32
+
33
+ ## Applications and tooling
34
+
35
+ ```bash
36
+ machines apps list --machine apple03 --json
37
+ machines apps plan --machine apple03 --json
38
+ machines apps apply --machine apple03 --yes
39
+
40
+ machines install-claude --machine spark01 --json
41
+ machines install-claude --machine spark01 --tool claude codex --apply --yes
42
+
43
+ machines install-tailscale --machine apple03 --json
44
+ machines notifications add --id ops --type webhook --target https://example.com/hook --event sync_failed
45
+ machines notifications test --channel ops --json
46
+ ```
47
+
48
+ ## Dashboard
49
+
50
+ ```bash
51
+ machines serve --json
52
+ machines serve --host 0.0.0.0 --port 7676
53
+ ```
54
+
55
+ The dashboard exposes:
56
+
57
+ - `/` HTML dashboard
58
+ - `/health` health probe
59
+ - `/api/status` fleet status JSON
60
+ - `/api/manifest` current manifest JSON
61
+ - `/api/notifications` notification channel JSON
62
+
63
+ ## Local development
64
+
65
+ ```bash
66
+ bun install
67
+ bun test
68
+ bun run typecheck
69
+ bun run build
70
+ bun run src/cli/index.ts --help
71
+ ```
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bun
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":""}