harborloop 0.5.2 → 0.5.3

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
@@ -14,7 +14,7 @@ Zero runtime dependencies. Node ≥ 18.
14
14
 
15
15
  | | |
16
16
  |---|---|
17
- | `harbor init` | Sign in, install the hooks, bind this repo. Idempotent. Wires every agent it finds; `--cursor` / `--no-cursor` and `--codex` / `--no-codex` override detection. |
17
+ | `harbor init` | Sign in, install the hooks, bind this repo. Idempotent. Wires every agent it finds; `--cursor` / `--no-cursor` and `--codex` / `--no-codex` override detection. `--headless` is for a cloud agent's setup script, see below. |
18
18
  | `harbor doctor` | Is it actually working? `--offline`, `--json`, `--days N` |
19
19
  | `harbor status` | This repo, from local files only. No network. |
20
20
  | `harbor bind [project]` | Tie this repo to a project. |
@@ -30,6 +30,42 @@ There is deliberately no `ask`, no `learnings`, no `sources`. Your agent reaches
30
30
  those over MCP and you reach them in the webapp; a second copy of the product in
31
31
  your terminal is not a feature.
32
32
 
33
+ ## In a cloud agent
34
+
35
+ Claude Code on the web and other containers have no browser to sign in with.
36
+ Create a workspace agent key in Harbor's settings, then give the environment:
37
+
38
+ ```
39
+ Environment variable: HARBOR_AGENT_KEY = <your key>
40
+ Setup script: npx -y harborloop@0.5.3 init --headless
41
+ ```
42
+
43
+ **Network access.** Claude Code on the web's default "Trusted" policy blocks
44
+ Harbor. Choose "Custom", add `app.gethrbr.com` and `mcp.gethrbr.com`, and tick
45
+ "Also include default list of common package managers" so `npx` can still
46
+ reach npm.
47
+
48
+ If the setup script runs inside a repo that has its own package named
49
+ `harborloop`, `npx` picks that one up instead. Install it globally there:
50
+
51
+ ```
52
+ npm i -g harborloop@0.5.3 && harbor init --headless
53
+ ```
54
+
55
+ `init --headless` wires Claude Code with the key: the MCP entry, the hooks, the
56
+ repo's origin, and the workspace's guardrails. The setup script usually runs in
57
+ the parent of the clone (`/home/user`, with the repo at `/home/user/<repo>`),
58
+ so it uses the repo it is standing in, or else every repo directly under it.
59
+ `--repo <path>` names one instead.
60
+
61
+ It never opens a browser, never writes `~/.harbor/auth.json` and never
62
+ schedules the daemon. It prints one line and exits 0 whatever happens, so a
63
+ Harbor problem cannot stop the session. With no `HARBOR_AGENT_KEY` it prints
64
+ `Harbor: no HARBOR_AGENT_KEY, skipping` and changes nothing.
65
+
66
+ Only the Claude Code hooks and MCP entry are wired in this release. Codex and
67
+ Cursor in the cloud are not supported yet.
68
+
33
69
  ## Why a CLI at all
34
70
 
35
71
  Three config-lifecycle jobs used to be owned by a *running* desktop app, and
@@ -1,12 +1,12 @@
1
1
  {
2
- "version": "0.5.2",
2
+ "version": "0.5.3",
3
3
  "algorithm": "sha256",
4
4
  "binaries": {
5
- "@gethrbr/harborloop-darwin-arm64": "6b1cbd3359e28b78a9f651ebd17d598bc4acf00994298a955144216c848bb315",
6
- "@gethrbr/harborloop-darwin-x64": "31be85b02ab92fd2b50b2851cb04eddfe66577439267e4cea6d8e29973972f3b",
7
- "@gethrbr/harborloop-linux-x64": "713220868741728ef563794768c8465bdac82ba9c44f608a554b2ef313090769",
8
- "@gethrbr/harborloop-linux-arm64": "c4a34d1d41102acf467771f0fd79ad800148864132c97951b5d1137797e2e348",
9
- "@gethrbr/harborloop-linux-x64-musl": "85a5454d87ee68cbd6bc0c19760086be714f1a008c76696d642343809e028d06",
10
- "@gethrbr/harborloop-win32-x64": "3d4254b67996601fbf2bf88a42e31ea5b4afc2bd31f709b8e65786889f09d863"
5
+ "@gethrbr/harborloop-darwin-arm64": "30054d9fa6d1f18e9eb91151240c1f7c93e3f636e3edc8ae0601335b264b12ce",
6
+ "@gethrbr/harborloop-darwin-x64": "512ed4edcd10d9c40a4f92bc5c7ccd7153a0feb993f7e616537c85f8dbfab434",
7
+ "@gethrbr/harborloop-linux-x64": "39430dc23926f0fb2064d3e641362c1a0113a7233083894e0f6d578677df7c62",
8
+ "@gethrbr/harborloop-linux-arm64": "aa929187c029da3a9ffffecdd1a7dfbc3283a81e7bd14aff1f77ae55d3355e1b",
9
+ "@gethrbr/harborloop-linux-x64-musl": "2026a7fe44923df8dc6256c55119b381506422c9eae1e5cedaa3c56e92df2783",
10
+ "@gethrbr/harborloop-win32-x64": "4f999d5cd53bb993918dcbcb3fc6ce3a5dd9048a315c4c7d0c1103f9a2bf1c5a"
11
11
  }
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harborloop",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Install and health-check the harbor knowledge loop in your terminal. Recall in Claude Code, Codex and Cursor; a doctor that can say no.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,12 +26,12 @@
26
26
  "agents.md"
27
27
  ],
28
28
  "optionalDependencies": {
29
- "@gethrbr/harborloop-darwin-arm64": "0.5.2",
30
- "@gethrbr/harborloop-darwin-x64": "0.5.2",
31
- "@gethrbr/harborloop-linux-x64": "0.5.2",
32
- "@gethrbr/harborloop-linux-arm64": "0.5.2",
33
- "@gethrbr/harborloop-linux-x64-musl": "0.5.2",
34
- "@gethrbr/harborloop-win32-x64": "0.5.2"
29
+ "@gethrbr/harborloop-darwin-arm64": "0.5.3",
30
+ "@gethrbr/harborloop-darwin-x64": "0.5.3",
31
+ "@gethrbr/harborloop-linux-x64": "0.5.3",
32
+ "@gethrbr/harborloop-linux-arm64": "0.5.3",
33
+ "@gethrbr/harborloop-linux-x64-musl": "0.5.3",
34
+ "@gethrbr/harborloop-win32-x64": "0.5.3"
35
35
  },
36
36
  "publishConfig": {
37
37
  "//": "A scoped package defaults to RESTRICTED, and `npm publish` on a scope with no paid plan fails outright rather than publishing privately. This is the whole difference between a wedge anybody can `npx` and a 402.",