hinacode 0.2.0-alpha.0 → 0.2.0-alpha.10

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 CHANGED
@@ -18,6 +18,7 @@ pnpm dev
18
18
 
19
19
  ```sh
20
20
  pnpm build # bundles main, preload and renderer into out/
21
+ pnpm build:server # bundles only the headless daemon into out/server/
21
22
  pnpm typecheck
22
23
  pnpm lint
23
24
  pnpm format
@@ -30,7 +31,7 @@ Run a built app with its own data directory, for example to keep a test profile
30
31
  HINACODE_USER_DATA=/tmp/hinacode-test pnpm exec electron out/main/index.js
31
32
  ```
32
33
 
33
- Unpackaged runs (`pnpm dev`, e2e and the command above) never touch the login Keychain. They seal secrets with Chromium's public mock key, so save only dummy secrets in them. Without `HINACODE_USER_DATA` they use the `kkcode-dev` profile, not the release app's.
34
+ Unpackaged runs (`pnpm dev`, e2e and the command above) never touch the login Keychain. They seal secrets with Chromium's public mock key, so save only dummy secrets in them. Without `HINACODE_USER_DATA` they use `~/.hinacode-dev`, not the release app's `~/.hinacode`. A data directory holds the database, `chats/` and `attachments/` at the top and Chromium's profile in `chromium/`.
34
35
 
35
36
  Simulate an exhausted Claude account without using the account:
36
37
 
@@ -75,6 +76,8 @@ Adding an agent backend means one implementation of `AgentProvider` in `src/main
75
76
 
76
77
  Effect code is tested with `@effect/vitest`: `it.effect` runs under the test clock, `it.live` on the real one, and `layer(...)` shares a built layer across a block. Every e2e worker starts its own HinaCode on a throwaway `HINACODE_USER_DATA`, seeds preconditions through `window.hinacode.rpc` or straight into SQLite, and drives the behavior under test through the UI.
77
78
 
79
+ Remote Browser tabs and their integration tests need Chrome or Chromium on the host. To install Playwright's Chromium and its Linux dependencies, run `pnpm exec playwright install --with-deps chromium`. A cloud installed from npm can use `npx playwright install --with-deps chromium`. Set `HINACODE_BROWSER_EXECUTABLE_PATH` when the browser lives elsewhere. The browser runs on the thread's machine, so its `localhost` reaches that machine's services.
80
+
78
81
  Scenarios that depend on native pointer capture, scrolling or window focus carry `@desktop`. They run with one worker after the parallel scenarios finish, because separate app profiles still share the desktop's focus and input.
79
82
 
80
83
  Run selected desktop scenarios with `pnpm test:e2e --project desktop --no-deps -g 'Resizable'`. The `--no-deps` flag skips the parallel project for a focused run.
@@ -89,3 +92,4 @@ Several designs in HinaCode follow [T3 Code](https://github.com/pingdotgg/t3code
89
92
  - The MCP server design: Effect's `McpServer.layerHttp` behind bearer auth, one random credential per thread, injected into the agent's MCP config. The pull request tools (`link_pull_request`, `unlink_pull_request`, `list_thread_pull_requests`) and `request_secret` share T3 Code's names.
90
93
  - The pull request checks rollup: `null` when a PR has no checks, failing before pending before passing, and `workflow / name` as the check label.
91
94
  - Webhook automations verified with a `sha256=` HMAC in `x-hub-signature-256`, with `{{path}}` placeholders filled into the prompt.
95
+ - Remote browser tabs run headless Chromium on the thread's host and send screencasts to the client. We compared Orca's local network proxy and server streaming before choosing this design for the Node daemon. See [the remote browser design](docs/features/2026-10-26-remote-browser.md).
package/bin/hinacode.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- await import("../out/main/daemon.js")
2
+ await import("../out/server/daemon.js")