@hasna/computer 0.1.7 → 0.1.8

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 CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  Apache License
3
2
  Version 2.0, January 2004
4
3
  http://www.apache.org/licenses/
@@ -35,8 +34,7 @@
35
34
 
36
35
  "Work" shall mean the work of authorship, whether in Source or
37
36
  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).
37
+ copyright notice that is included in or attached to the work.
40
38
 
41
39
  "Derivative Works" shall mean any work, whether in Source or Object
42
40
  form, that is based on (or derived from) the Work and for which the
@@ -176,7 +174,7 @@
176
174
 
177
175
  END OF TERMS AND CONDITIONS
178
176
 
179
- Copyright 2026 Hasna, Inc.
177
+ Copyright 2026 Andrei Hasna
180
178
 
181
179
  Licensed under the Apache License, Version 2.0 (the "License");
182
180
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -67,19 +67,6 @@ Add to your Claude Code config:
67
67
  }
68
68
  ```
69
69
 
70
- ## HTTP mode
71
-
72
- Shared Streamable HTTP transport for multi-agent sessions (stdio remains the default):
73
-
74
- ```bash
75
- computer-mcp --http # http://127.0.0.1:8806/mcp
76
- MCP_HTTP=1 computer-mcp # same via env
77
- computer-mcp --http --port 9000 # override port
78
- ```
79
-
80
- - Health: `GET http://127.0.0.1:8806/health` → `{"status":"ok","name":"computer"}`
81
- - MCP endpoint is also mounted on `computer-serve` at `/mcp`.
82
-
83
70
  **Available tools:**
84
71
  - `computer_run_task` — Run a full computer use task
85
72
  - `computer_screenshot` — Capture the screen
@@ -159,6 +146,20 @@ const result = await driver.execute({
159
146
 
160
147
  Sessions and action logs are stored in `~/.hasna/computer/computer.db` (SQLite).
161
148
 
149
+ ## Cloud Sync
150
+
151
+ Optional Postgres sync is available through package-local commands:
152
+
153
+ ```bash
154
+ export HASNA_COMPUTER_CLOUD_DATABASE_URL=postgres://...
155
+ computer cloud status
156
+ computer cloud push
157
+ computer cloud pull
158
+ computer cloud sync
159
+ ```
160
+
161
+ The MCP server also exposes `cloud_status`, `cloud_push`, `cloud_pull`, and `cloud_sync`.
162
+
162
163
  ## License
163
164
 
164
165
  Apache-2.0
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerCloudCommands(program: Command): void;
3
+ //# sourceMappingURL=cloud.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["../../src/cli/cloud.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmCzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAoF5D"}