Context Hub (VS Code client)

Read-only VS Code GUI for Context Hub, version 0.1.0. This repository is
the former packages/vscode workspace. It does not include
@context-hub/runtime, a sibling packages/runtime workspace, or a bundled
context-hubd.
Install the daemon before using the extension:
npm install -g @context-hub/runtime@next
context-hub daemon start
context-hub daemon status
The extension reads ~/.context-hub/service.json. Protocol and client
dependencies are exact @context-hub/protocol@0.1.0-alpha.0 and
@context-hub/client@0.1.0-alpha.0 from the npm registry.
Disconnected behaviour
Activation looks for a live service.json. If none exists, it runs
context-hub daemon start from PATH. If the CLI is missing, the output
channel and a warning show npm install -g @context-hub/runtime@next, and
the client stays disconnected.
While disconnected:
- the status bar shows
disconnected (or reconnecting after a drop)
- queries fail instead of reading a local snapshot
- Canvas / tree stay empty until the daemon publishes a descriptor
- closing VS Code never stops a running
context-hubd
After the daemon returns, the client reconnects through service.json and
replaces origin/token without a sibling-runtime fallback.
Marketplace publisher is context-hub. CI packages a prerelease VSIX and
does not publish it.
Development
npm ci
npm run check
npm test
npm run build
npm run release-check
npx @vscode/vsce ls
npx @vscode/vsce package --pre-release --out artifacts/context-hub.vsix
npm run vsix:audit
Open this directory in VS Code and press F5 to launch an Extension
Development Host. If Command Palette reports
command 'contextTree.openExecutionCanvas' not found, rebuild, stop the old
host, and press F5 again.