Skip to content

feat(extension): BYOE 0.8.0 - endpoints commands + bridge --endpoint plumbing (REQ-142)#46

Closed
tbitcs wants to merge 3 commits intodevelopfrom
feat/byoe-endpoints-extension
Closed

feat(extension): BYOE 0.8.0 - endpoints commands + bridge --endpoint plumbing (REQ-142)#46
tbitcs wants to merge 3 commits intodevelopfrom
feat/byoe-endpoints-extension

Conversation

@tbitcs
Copy link
Copy Markdown
Contributor

@tbitcs tbitcs commented May 1, 2026

What\n\nExtension-side companion to BitConcepts/specsmith#? (BYOE in the CLI). Adds the EndpointsClient module, two new commands, and the bridge --endpoint plumbing so VS Code sessions can be routed to a self-hosted OpenAI-v1-compatible backend registered with specsmith endpoints add.\n\n## Files\n\n- src/EndpointsClient.ts - pure-TS wrapper around specsmith endpoints list / test --json. JSON parsers (parseEndpointsList, parseEndpointHealth) and applyEndpointArg exported for direct mocha coverage. Tokens never appear in TypeScript memory; the CLI redacts inline tokens.\n- src/types.ts - SessionConfig.endpointId optional field.\n- src/bridge.ts - appends --endpoint <id> to specsmith run when SessionConfig.endpointId is set.\n- src/extension.ts - new specsmith.endpoints (Quick Pick over registered endpoints with copy-id / set-default / test actions; \\u2605 marks default) and specsmith.testEndpoint (probes /v1/models, surfaces a notification with latency + model count).\n- package.json - declares the two new commands; version 0.7.0 -> 0.8.0; description mentions BYOE OpenAI-v1 endpoints.\n- src/test/endpoints-client.test.ts - 11 new mocha tests.\n- CHANGELOG.md - cut the 0.8.0 section from [Unreleased].\n\n## Validation\n\n- npm run lint (tsc --noEmit): clean.\n- npm run build (esbuild): 279.8kb bundle.\n- npm test: 117 passing (was 104; +13 from the new suite).\n\n## How to test\n\n1. With the BYOE 0.8.0 CLI installed, register an endpoint via specsmith endpoints add.\n2. Open the command palette and run specsmith: BYOE Endpoints\\u2026 - the new endpoint appears with a \\u2605 if it is default.\n3. Pick the endpoint -> Test endpoint -> see latency / model-count notification.\n4. To route an active session: set SessionConfig.endpointId (currently via API; a Session header dropdown lands in a follow-up PR). The bridge appends --endpoint <id> to every specsmith run invocation.\n\n## Out of scope\n\n- A rich Endpoints tab in the SettingsPanel webview is deferred. The command-palette surface here is enough to drive sessions through BYOE today; a webview tab is a follow-up UI iteration.\n- Per-session UI dropdown to pick the endpoint at session-create time. The plumbing is in place via SessionConfig.endpointId; the dropdown is a small follow-up.\n\nCo-Authored-By: Oz oz-agent@warp.dev

tbitcs and others added 2 commits May 1, 2026 07:54
… (REQ-142)

Phase 3 of the BYOE 0.8.0 sprint. Surfaces the CLI-side endpoints registry to the VS Code extension and threads endpointId through the bridge so the agent can be routed to a self-hosted OpenAI-v1-compatible backend.

- src/EndpointsClient.ts: pure TS wrapper around 'specsmith endpoints list / test --json' + JSON parsers (parseEndpointsList, parseEndpointHealth) and the applyEndpointArg bridge helper. Tokens are never read from TypeScript memory; the CLI redacts inline tokens before serialising.

- src/types.ts: SessionConfig.endpointId optional field.

- src/bridge.ts: appends '--endpoint <id>' to specsmith run when SessionConfig.endpointId is set, routing through the openai-compat driver added in PR-2.

- src/extension.ts: new specsmith.endpoints command (Quick Pick over registered endpoints with copy / set-default / test actions) and specsmith.testEndpoint command (probes /v1/models, surfaces a notification with latency + model count).

- package.json: declares the two new commands.

- src/test/endpoints-client.test.ts: 11 new mocha tests covering the JSON parsers and the bridge arg helper (happy path, malformed body, redacted inline tokens, unknown auth kinds, non-object items).

- CHANGELOG.md: [Unreleased] entry.

Validation: tsc --noEmit clean; esbuild bundle 279.8kb; npm test 117 passing (was 104; +13 from the new suite).

Co-Authored-By: Oz <oz-agent@warp.dev>
Bump package.json to 0.8.0 + cut the BYOE 0.8.0 changelog section.

Co-Authored-By: Oz <oz-agent@warp.dev>
@tbitcs
Copy link
Copy Markdown
Contributor Author

tbitcs commented May 4, 2026

Superseded by #47 which contains the BYOE 0.8.0 + 0.10.0 multi-agent commits and resolves the conflict against #45.

@tbitcs tbitcs closed this May 4, 2026
@tbitcs tbitcs deleted the feat/byoe-endpoints-extension branch May 4, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant