Skip to content

Commit dbedc18

Browse files
committed
shed tools: install the published packages through mise instead of local paths.
agent-browser gets the op credential provider from @pattobrien/agent-browser-plugin-op and the Agents profile. shed-cli, agent-browser-plugin-op and herdr-open-file are mise npm tools with no release-age wait, replacing the pnpm add -g postinstall hooks. kitty's open-actions launch the bare herdr-open-file bin. tests/e2e depends on the published @pattobrien/herdr-ts-sdk via the catalog instead of a link into the shed checkout. Claude-Session: https://claude.ai/code/session_01DCpoqpMGCHhbjiq7SJDuSE
1 parent 32b3abb commit dbedc18

9 files changed

Lines changed: 44 additions & 16 deletions

File tree

‎.config/agent-browser/config.json‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
22
"$schema": "https://agent-browser.dev/schema.json",
33
"executablePath": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
4-
"profile": "Default",
5-
"args": "--hide-crash-restore-bubble,--no-first-run,--no-default-browser-check"
4+
"profile": "Agents",
5+
"args": "--hide-crash-restore-bubble,--no-first-run,--no-default-browser-check",
6+
"plugins": [
7+
{
8+
"name": "op",
9+
"command": "agent-browser-plugin-op",
10+
"capabilities": ["credential.read"]
11+
}
12+
]
613
}

‎.config/kitty/open-actions.conf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# herdr-open-file plugin's link handler; this is the same script, for the clicks
33
# kitty handles itself (and for when no multiplexer is running).
44
protocol file
5-
action launch --type=background /Users/patt/dev/pattobrien/shed/tools/herdr-open-file/bin/open-file.sh ${URL}
5+
action launch --type=background herdr-open-file ${URL}
66

77
# `README.md:120:5` has no slash before its colon, so kitty reads `README.md` as
88
# a URL scheme and the rule above never sees it.
99
url ^[^:/]+:\d+(:\d+)?$
10-
action launch --type=background /Users/patt/dev/pattobrien/shed/tools/herdr-open-file/bin/open-file.sh ${URL}
10+
action launch --type=background herdr-open-file ${URL}

‎.config/mise/config.toml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# repo the hook's go.mod-derived values override these.
77
GO_VERSION_MISE = "1.25.11"
88
PULUMI_VERSION_MISE = "3.253.0"
9-
# AI_GATEWAY_API_KEY = { value = "{{ exec(command='doppler secrets get AI_GATEWAY_API_KEY --plain -p platform -c prd', cache_duration='1d') }}", tools = true }
9+
AI_GATEWAY_API_KEY = { value = "{{ exec(command='doppler secrets get AI_GATEWAY_API_KEY --plain -p platform -c prd', cache_duration='1d') }}", tools = true }
1010
# BROWSERLESS_TOKEN = { value = "{{ exec(command='doppler secrets get BROWSERLESS_TOKEN --plain -p platform -c prd', cache_duration='1d') }}", tools = true }
1111
# BROWSERLESS_API_KEY = { value = "{{ exec(command='doppler secrets get BROWSERLESS_API_KEY --plain -p platform -c prd', cache_duration='1d') }}", tools = true }
1212
# BROWSERBASE_API_KEY = { value = "{{ exec(command='doppler secrets get BROWSERBASE_API_KEY --plain -p platform -c prd', cache_duration='1d') }}", tools = true }
@@ -18,7 +18,10 @@ LINEAR_IGNORE_ENV_FILE = "1"
1818
GH_PKG_TOKEN = { value = "{{ exec(command='/opt/homebrew/bin/gh auth token', cache_duration='1d') }}", tools = true }
1919

2020
[settings]
21-
trusted_config_paths = ["/Users/patt/.dotfiles__worktrees", "/Users/patt/dev/pattobrien"]
21+
trusted_config_paths = [
22+
"/Users/patt/.dotfiles__worktrees",
23+
"/Users/patt/dev/pattobrien",
24+
]
2225
github.credential_command = "gh auth token"
2326
npm.package_manager = "pnpm"
2427
pipx.uvx = true
@@ -58,6 +61,9 @@ node = "latest"
5861
"npm:@opencode/cli" = { version = "latest", allow_builds = ["@opencode/cli"] }
5962
"github:railwayapp/cli" = "latest"
6063
"npm:@tigrisdata/cli" = "latest"
64+
"npm:@pattobrien/shed-cli" = { version = "latest", minimum_release_age = "0s" }
65+
"npm:@pattobrien/agent-browser-plugin-op" = { version = "latest", minimum_release_age = "0s" }
66+
"npm:@pattobrien/herdr-open-file" = { version = "latest", minimum_release_age = "0s" }
6167
"npm:@typescript/native-preview" = "latest"
6268
"npm:codemod" = "latest"
6369
"npm:eas-cli" = "latest"
@@ -229,7 +235,6 @@ postinstall = [
229235
"atuin hook install codex",
230236
"atuin hook install opencode",
231237
"atuin hook install pi",
232-
"pnpm add -g @pattobrien/shed-cli@latest",
233238
"zsh -lic exit",
234239
]
235240

‎pnpm-lock.yaml‎

Lines changed: 18 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ catalog:
1717
"@opentelemetry/resources": ^2.10.0
1818
"@opentelemetry/sdk-node": ^0.221.0
1919
"@opentelemetry/sdk-trace": ^2.10.0
20+
"@pattobrien/herdr-ts-sdk": ^0.1.0
2021
"@termless/core": 0.8.4
2122
"@termless/ghostty": 0.8.4
2223
"@termless/kitty": 0.8.4
@@ -46,6 +47,7 @@ minimumReleaseAgeExclude:
4647
- "@voidzero-dev/vite-plus-win32-arm64-msvc@1.4.0"
4748
- "@voidzero-dev/vite-plus-win32-x64-msvc@1.4.0"
4849
- vite-plus@1.4.0
50+
- "@pattobrien/herdr-ts-sdk@0.1.0"
4951

5052
overrides:
5153
vite@*: "catalog:"

‎tests/e2e/README.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ it.
8383

8484
## Host requirements
8585

86-
- a shed checkout at `~/dev/pattobrien/shed` — `herdr-ts-sdk` is consumed via a
87-
pnpm `link:` to it (shed is private, so there's no registry/git install path);
88-
run `vp run build` there after pulling SDK changes
86+
- a `~/.npmrc` with `GH_PKG_TOKEN` — `@pattobrien/herdr-ts-sdk` installs from
87+
GitHub Packages
8988
- kitty installed (`brew install --cask kitty`) — for the `e2e-kitty` tests and
9089
the optional kitty emulator backend
9190
- herdr on `PATH` for the herdr behavior tests

‎tests/e2e/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"@opentelemetry/api": "catalog:",
1515
"@opentelemetry/exporter-trace-otlp-proto": "catalog:",
1616
"@opentelemetry/sdk-node": "catalog:",
17+
"@pattobrien/herdr-ts-sdk": "catalog:",
1718
"@termless/core": "catalog:",
1819
"@termless/ghostty": "catalog:",
1920
"@termless/kitty": "catalog:",
@@ -24,7 +25,6 @@
2425
"@xterm/headless": "catalog:",
2526
"@xterm/xterm": "catalog:",
2627
"execa": "^9.6.1",
27-
"herdr-ts-sdk": "link:/Users/patt/dev/pattobrien/shed/packages/herdr-ts-sdk",
2828
"neovim": "^5.4.0",
2929
"node-pty": "catalog:",
3030
"typescript": "catalog:",

‎tests/e2e/src/herdr.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import fs from "node:fs/promises";
33
import { homedir } from "node:os";
44
import path from "node:path";
55

6+
import Herdr, { HerdrError } from "@pattobrien/herdr-ts-sdk";
67
import { execa } from "execa";
7-
import Herdr, { HerdrError } from "herdr-ts-sdk";
88

99
import type { TermBackend } from "./term/backend.ts";
1010
import type { TermlessSession } from "./term/termless.ts";

‎tests/e2e/tests/integration/herdr-option-delete.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from "node:fs/promises";
22
import os from "node:os";
33
import path from "node:path";
44

5-
import type { PaneId } from "herdr-ts-sdk";
5+
import type { PaneId } from "@pattobrien/herdr-ts-sdk";
66
import { attach, type NeovimClient } from "neovim";
77
import { expect } from "vite-plus/test";
88
import { z } from "zod";

0 commit comments

Comments
 (0)