Skip to content

Commit 0c46861

Browse files
justrachblackfloofi
andcommitted
Remove the connect feature and the private nanostore dependency
What changed: - Drops the nanostore path dependency from build.zig.zon and build.zig, along with the kuri-connect-broker target. - Deletes src/connect_broker.zig, src/connect_cdp.zig, and src/storage/connect_store.zig; removes the /connect/save|load|list|delete routes (enum, table, switch, handlers), kuri-agent connect, relay-fetch mode (KURI_RELAY), and the vault_passphrase config (KURI_VAULT_PASSPHRASE). - Removes the NANOSTORE_PAT checkout/verify/symlink steps from ci.yml and release.yml. Why: - nanostore is a private sibling repo, so every kuri build, local and CI, needed a second checkout plus a PAT secret. That is what made main unbuildable for anyone without access, and it forced the 0.5.1 release branch to diverge in the first place. - The pinned nanostore commit does not compile on the Zig 0.17.0-dev toolchain (the ** repeat operator no longer lexes), so keeping the pin meant carrying local patches on a repo we no longer want as a dependency. - Trade-off: v0.5.1 shipped these routes, so this is a feature removal after release; noted in the changelog under Unreleased. Verified: zig build and zig build test pass with no ../nanostore present. Co-Authored-By: Codegraff <blackfloofie@codegraff.com>
1 parent 2704d48 commit 0c46861

12 files changed

Lines changed: 4 additions & 1197 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,6 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v4
1616

17-
- name: Verify private nanostore access
18-
env:
19-
NANOSTORE_PAT: ${{ secrets.NANOSTORE_PAT }}
20-
run: |
21-
test -n "$NANOSTORE_PAT" || {
22-
echo "::error::Set the NANOSTORE_PAT repository secret to build kuri. nanostore is a private dependency."
23-
exit 1
24-
}
25-
26-
- name: Checkout private nanostore dependency
27-
uses: actions/checkout@v4
28-
with:
29-
repository: justrach/nanostore
30-
ref: e242f7f8cf75ca6c636c15482a83f7833291b53b
31-
token: ${{ secrets.NANOSTORE_PAT }}
32-
path: nanostore
33-
34-
- name: Link nanostore at the path expected by build.zig.zon
35-
run: ln -s "$GITHUB_WORKSPACE/nanostore" "$GITHUB_WORKSPACE/../nanostore"
36-
3717
- name: Install Zig 0.16.0
3818
uses: mlugg/setup-zig@v2
3919
with:
@@ -192,26 +172,6 @@ jobs:
192172
- name: Checkout
193173
uses: actions/checkout@v4
194174

195-
- name: Verify private nanostore access
196-
env:
197-
NANOSTORE_PAT: ${{ secrets.NANOSTORE_PAT }}
198-
run: |
199-
test -n "$NANOSTORE_PAT" || {
200-
echo "::error::Set the NANOSTORE_PAT repository secret to build kuri. nanostore is a private dependency."
201-
exit 1
202-
}
203-
204-
- name: Checkout private nanostore dependency
205-
uses: actions/checkout@v4
206-
with:
207-
repository: justrach/nanostore
208-
ref: e242f7f8cf75ca6c636c15482a83f7833291b53b
209-
token: ${{ secrets.NANOSTORE_PAT }}
210-
path: nanostore
211-
212-
- name: Link nanostore at the path expected by build.zig.zon
213-
run: ln -s "$GITHUB_WORKSPACE/nanostore" "$GITHUB_WORKSPACE/../nanostore"
214-
215175
- name: Install Zig 0.16.0
216176
uses: mlugg/setup-zig@v2
217177
with:
@@ -277,26 +237,6 @@ jobs:
277237
- name: Checkout
278238
uses: actions/checkout@v4
279239

280-
- name: Verify private nanostore access
281-
env:
282-
NANOSTORE_PAT: ${{ secrets.NANOSTORE_PAT }}
283-
run: |
284-
test -n "$NANOSTORE_PAT" || {
285-
echo "::error::Set the NANOSTORE_PAT repository secret to build kuri. nanostore is a private dependency."
286-
exit 1
287-
}
288-
289-
- name: Checkout private nanostore dependency
290-
uses: actions/checkout@v4
291-
with:
292-
repository: justrach/nanostore
293-
ref: e242f7f8cf75ca6c636c15482a83f7833291b53b
294-
token: ${{ secrets.NANOSTORE_PAT }}
295-
path: nanostore
296-
297-
- name: Link nanostore at the path expected by build.zig.zon
298-
run: ln -s "$GITHUB_WORKSPACE/nanostore" "$GITHUB_WORKSPACE/../nanostore"
299-
300240
- name: Install Zig 0.16.0
301241
uses: mlugg/setup-zig@v2
302242
with:

.github/workflows/release.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,6 @@ jobs:
1919
target: [x86_64-linux, aarch64-linux]
2020
steps:
2121
- uses: actions/checkout@v4
22-
- name: Verify private nanostore access
23-
env:
24-
NANOSTORE_PAT: ${{ secrets.NANOSTORE_PAT }}
25-
run: |
26-
test -n "$NANOSTORE_PAT" || {
27-
echo "::error::Set the NANOSTORE_PAT repository secret to build kuri. nanostore is a private dependency."
28-
exit 1
29-
}
30-
- name: Checkout private nanostore dependency
31-
uses: actions/checkout@v4
32-
with:
33-
repository: justrach/nanostore
34-
ref: e242f7f8cf75ca6c636c15482a83f7833291b53b
35-
token: ${{ secrets.NANOSTORE_PAT }}
36-
path: nanostore
37-
- name: Link nanostore at the path expected by build.zig.zon
38-
run: ln -s "$GITHUB_WORKSPACE/nanostore" "$GITHUB_WORKSPACE/../nanostore"
3922
- uses: mlugg/setup-zig@v2
4023
with:
4124
version: 0.17.0-dev.813+2153f8143
@@ -76,23 +59,6 @@ jobs:
7659
APPLE_APP_PASSWORD: ${{ secrets.APPLE_APP_PASSWORD }}
7760
steps:
7861
- uses: actions/checkout@v4
79-
- name: Verify private nanostore access
80-
env:
81-
NANOSTORE_PAT: ${{ secrets.NANOSTORE_PAT }}
82-
run: |
83-
test -n "$NANOSTORE_PAT" || {
84-
echo "::error::Set the NANOSTORE_PAT repository secret to build kuri. nanostore is a private dependency."
85-
exit 1
86-
}
87-
- name: Checkout private nanostore dependency
88-
uses: actions/checkout@v4
89-
with:
90-
repository: justrach/nanostore
91-
ref: e242f7f8cf75ca6c636c15482a83f7833291b53b
92-
token: ${{ secrets.NANOSTORE_PAT }}
93-
path: nanostore
94-
- name: Link nanostore at the path expected by build.zig.zon
95-
run: ln -s "$GITHUB_WORKSPACE/nanostore" "$GITHUB_WORKSPACE/../nanostore"
9662
- uses: mlugg/setup-zig@v2
9763
with:
9864
version: 0.17.0-dev.813+2153f8143

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to kuri are documented here.
44

55
## [Unreleased]
66

7+
### Removed
8+
- **`connect` feature and nanostore dependency** — the `/connect/*` routes, `kuri-agent connect`, `kuri-connect-broker`, and relay-fetch mode shipped in v0.5.1 are removed from main. They depended on the private `justrach/nanostore` sibling library, which made every build of kuri require a private checkout plus a `NANOSTORE_PAT` secret in CI, and its pinned commit did not compile on the project's Zig 0.17.0-dev toolchain. Building kuri now needs only this repo. `KURI_VAULT_PASSPHRASE`, `KURI_RELAY`, and `KURI_BROKER*` no longer have any effect.
9+
710
## [0.5.1] — 2026-07-31
811

912
### Features

build.zig

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ pub fn build(b: *std.Build) void {
1111
const build_options = b.addOptions();
1212
build_options.addOption([]const u8, "version", version);
1313

14-
// nanostore: encrypted secret/connection vault (sibling library), used by
15-
// the `kuri connect` feature for persisted, encrypted browser logins.
16-
const nanostore_dep = b.dependency("nanostore", .{
17-
.target = target,
18-
.optimize = optimize,
19-
});
20-
const nanostore_mod = nanostore_dep.module("nanostore");
21-
2214
// Main executable
2315
const exe = b.addExecutable(.{
2416
.name = "kuri",
@@ -30,7 +22,6 @@ pub fn build(b: *std.Build) void {
3022
}),
3123
});
3224
exe.root_module.addOptions("build_options", build_options);
33-
exe.root_module.addImport("nanostore", nanostore_mod);
3425

3526
b.installArtifact(exe);
3627

@@ -51,7 +42,6 @@ pub fn build(b: *std.Build) void {
5142
}),
5243
});
5344
unit_tests.root_module.addOptions("build_options", build_options);
54-
unit_tests.root_module.addImport("nanostore", nanostore_mod);
5545
const test_step = b.step("test", "Run unit tests");
5646
test_step.dependOn(&b.addRunArtifact(unit_tests).step);
5747

@@ -179,7 +169,6 @@ pub fn build(b: *std.Build) void {
179169
}),
180170
});
181171
agent_exe.root_module.addOptions("build_options", build_options);
182-
agent_exe.root_module.addImport("nanostore", nanostore_mod);
183172
b.installArtifact(agent_exe);
184173
const run_agent = b.addRunArtifact(agent_exe);
185174
run_agent.step.dependOn(b.getInstallStep());
@@ -217,27 +206,6 @@ pub fn build(b: *std.Build) void {
217206
const mcp_step = b.step("mcp", "Run kuri-mcp MCP server");
218207
mcp_step.dependOn(&run_mcp.step);
219208

220-
// kuri-connect-broker: key-holding broker daemon for the `connect` feature.
221-
// Holds KURI_VAULT_PASSPHRASE so the agent never does, and exposes only
222-
// inject/list/save/delete over a token-gated loopback API.
223-
const broker_exe = b.addExecutable(.{
224-
.name = "kuri-connect-broker",
225-
.root_module = b.createModule(.{
226-
.root_source_file = b.path("src/connect_broker.zig"),
227-
.target = target,
228-
.optimize = optimize,
229-
.link_libc = true,
230-
}),
231-
});
232-
broker_exe.root_module.addOptions("build_options", build_options);
233-
broker_exe.root_module.addImport("nanostore", nanostore_mod);
234-
b.installArtifact(broker_exe);
235-
const run_broker = b.addRunArtifact(broker_exe);
236-
run_broker.step.dependOn(b.getInstallStep());
237-
run_broker.addPassthruArgs();
238-
const broker_step = b.step("broker", "Run kuri-connect-broker daemon");
239-
broker_step.dependOn(&run_broker.step);
240-
241209
// kuri-gateway: managed-service control plane (Track 1). Spawns/leases one
242210
// `kuri` worker (its own Chrome) per session, exposes an async task API, and
243211
// reverse-proxies the data plane scoped by session_id. Pulls in build_options

build.zig.zon

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
.hash = "quickjs_ng-0.0.0-0cZnA8XHAwCc95T1GAebWrw-SGEwp1Y0fUAmilP8xGuS",
88
},
99
.kuri_mobile = .{ .path = "kuri-mobile" },
10-
// Local sibling library: encrypted secret/connection vault used by the
11-
// `kuri connect` feature for persisted, encrypted browser logins.
12-
.nanostore = .{ .path = "../nanostore" },
1310
},
1411
.fingerprint = 0xb63ec72d77641494,
1512
.minimum_zig_version = "0.17.0-dev.813+2153f8143",

0 commit comments

Comments
 (0)