Skip to content

Commit 51eb87a

Browse files
committed
Adopt plugin window policy API
1 parent a233e04 commit 51eb87a

8 files changed

Lines changed: 32 additions & 25 deletions

File tree

.github/workflows/plugin-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
run: npm run build --prefix frontend
3737

3838
- name: Check plugin manifest
39-
run: npx --yes @haloforge/plugin-pack@0.2.5 check .
39+
run: npx --yes @haloforge/plugin-pack@0.2.11 check .
4040

4141
- name: Package Windows target
42-
run: npx --yes @haloforge/plugin-pack@0.2.5 pack . --release --target x86_64-pc-windows-msvc --out dist/plugin-windows-x64
42+
run: npx --yes @haloforge/plugin-pack@0.2.11 pack . --release --target x86_64-pc-windows-msvc --out dist/plugin-windows-x64
4343

4444
- name: Upload package artifact
4545
uses: actions/upload-artifact@v4

.github/workflows/plugin-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- name: Package .hfpkg
6868
shell: pwsh
6969
run: |
70-
npx --yes @haloforge/plugin-pack@0.2.9 pack . --release --target x86_64-pc-windows-msvc --out dist/plugin-release
70+
npx --yes @haloforge/plugin-pack@0.2.11 pack . --release --target x86_64-pc-windows-msvc --out dist/plugin-release
7171
$pkg = Get-ChildItem dist/plugin-release -Filter *.hfpkg | Select-Object -First 1
7272
if (-not $pkg) { throw "No .hfpkg artifact was created." }
7373
$sha = Get-ChildItem dist/plugin-release -Filter *.hfpkg.sha256 | Select-Object -First 1
@@ -125,7 +125,7 @@ jobs:
125125
run: |
126126
$artifactUrl = "https://github.com/${{ github.repository }}/releases/download/$env:RELEASE_TAG/$env:PKG_NAME"
127127
$args = @(
128-
"--yes", "@haloforge/plugin-pack@0.2.9",
128+
"--yes", "@haloforge/plugin-pack@0.2.11",
129129
"metadata", "$env:PKG_PATH",
130130
"--artifact-url", $artifactUrl,
131131
"--source", "${{ inputs.source }}",
@@ -173,7 +173,7 @@ jobs:
173173
- name: Submit catalog draft
174174
if: env.HF_ADMIN_TOKEN != ''
175175
shell: pwsh
176-
run: npx --yes @haloforge/plugin-pack@0.2.9 submit dist/plugin-release/catalog-draft.json --api-base-url https://admin.haloforge.link --token-env HF_ADMIN_TOKEN
176+
run: npx --yes @haloforge/plugin-pack@0.2.11 submit dist/plugin-release/catalog-draft.json --api-base-url https://admin.haloforge.link --token-env HF_ADMIN_TOKEN
177177

178178
- name: Upload workflow artifacts
179179
uses: actions/upload-artifact@v4

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ The first release focuses on safe local writes: every apply/install operation cr
1313
## Implemented
1414

1515
- HaloForge Level 0 module plugin
16-
- Rust backend built with `haloforge-plugin-api` `0.2.9`
17-
- React frontend built with `@haloforge/plugin-sdk` `0.2.9`
16+
- Rust backend built with `haloforge-plugin-api` `0.2.10`
17+
- React frontend built with `@haloforge/plugin-sdk` `0.2.11`
1818
- Claude Code provider writes with `ANTHROPIC_BASE_URL`, token, and model env vars
1919
- Optional Claude `primaryApiKey` and onboarding flags used by switch workflows
2020
- Codex provider writes that preserve existing `config.toml` sections such as `[mcp_servers]` and `[profiles]`
@@ -26,6 +26,7 @@ The first release focuses on safe local writes: every apply/install operation cr
2626
- Cleanup for the old Codex provider entry when applying the current default provider id
2727
- Backups and restore for every changed config file
2828
- Windows MCP stdio wrapper for `npx`, `npm`, `yarn`, `pnpm`, `node`, `bun`, and `deno`
29+
- Manifest `window` policy for reusing the existing Provider Router module when import deep links arrive
2930

3031
## Compatibility
3132

@@ -70,20 +71,20 @@ npm run build
7071
Validate with the public packer:
7172

7273
```bash
73-
npx --yes @haloforge/plugin-pack@0.2.9 check .
74+
npx --yes @haloforge/plugin-pack@0.2.11 check .
7475
```
7576

7677
Package:
7778

7879
```bash
79-
npx --yes @haloforge/plugin-pack@0.2.9 pack . --release
80+
npx --yes @haloforge/plugin-pack@0.2.11 pack . --release
8081
```
8182

8283
Install the packaged plugin into a local HaloForge workspace with the `hf` CLI:
8384

8485
```bash
8586
cd /path/to/HaloForge
86-
npm run hf -- plugin install local /path/to/hf-plugin-switchboard/dist/package/dev.haloforge.switchboard-0.1.7.hfpkg --json
87+
npm run hf -- plugin install local /path/to/hf-plugin-switchboard/dist/package/dev.haloforge.switchboard-0.1.8.hfpkg --json
8788
npm run hf -- plugin list --json
8889
```
8990

backend/Cargo.lock

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

backend/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hf-plugin-switchboard"
3-
version = "0.1.7"
3+
version = "0.1.8"
44
edition = "2021"
55
description = "HaloForge Switchboard plugin backend"
66
license = "MIT"
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
1111

1212
[dependencies]
1313
dirs = "6"
14-
hf-plugin-api = { package = "haloforge-plugin-api", version = "0.2.9" }
14+
hf-plugin-api = { package = "haloforge-plugin-api", version = "0.2.10" }
1515
serde = { version = "1", features = ["derive"] }
1616
serde_json = "1"
1717
toml_edit = "0.22"

frontend/package-lock.json

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

frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@hf-plugin-switchboard/frontend",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"private": true,
55
"type": "module",
66
"scripts": {
77
"build": "vite build",
88
"dev": "vite build --watch"
99
},
1010
"dependencies": {
11-
"@haloforge/plugin-sdk": "^0.2.9",
11+
"@haloforge/plugin-sdk": "^0.2.11",
1212
"@tauri-apps/api": "^2.0.0",
1313
"lucide-react": "^0.500.0"
1414
},

manifest.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://haloforge.dev/schemas/plugin/v1.json",
33
"id": "dev.haloforge.switchboard",
44
"name": "Provider Router",
5-
"version": "0.1.7",
5+
"version": "0.1.8",
66
"description": "Fast local provider configuration for Claude Code, Codex, and MCP.",
77
"long_description": "Adds a HaloForge module for applying provider endpoints to Claude Code and Codex, writing MCP server specs, and restoring local config backups.",
88
"author": "HaloForge Team",
@@ -12,7 +12,7 @@
1212
"icon": "assets/icon.svg",
1313
"compatibility": {
1414
"min_app_version": "0.6.0",
15-
"min_host_api_version": "0.1.0",
15+
"min_host_api_version": "0.2.10",
1616
"platforms": ["windows", "macos", "linux"]
1717
},
1818
"host_capabilities": ["navigation", "theme_read", "event_subscribe", "deep_links"],
@@ -27,6 +27,12 @@
2727
"panel_entry": "frontend/index.js"
2828
}
2929
},
30+
"window": {
31+
"preferred_role": "main",
32+
"default_open_mode": "reuse_or_new",
33+
"reuse_key": "plugin",
34+
"allow_multiple": false
35+
},
3036
"entry": {
3137
"native": {
3238
"macos_arm64": "native/aarch64-apple-darwin.dylib",

0 commit comments

Comments
 (0)