summaryrefslogtreecommitdiffhomepage
path: root/packages/transport-contract/package.json
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-23 21:07:53 +0900
committerAdam Malczewski <[email protected]>2026-06-23 21:07:53 +0900
commit4158e699e3c8ff556684fe2fc7a39ffab040623e (patch)
tree1ca7b3069f6b1cfcb119c4b1fae614baf20f6e69 /packages/transport-contract/package.json
parent961f564f6de6c6c63970b0aeaa48f730cc028d92 (diff)
downloaddispatch-4158e699e3c8ff556684fe2fc7a39ffab040623e.tar.gz
dispatch-4158e699e3c8ff556684fe2fc7a39ffab040623e.zip
fix(lsp): gate LSP endpoint on persisted cwd; accept workspaceId on PUT cwd
GET /conversations/:id/lsp was calling getEffectiveCwd directly, which falls through to serverDefaultCwd (process.cwd()) when no conversation cwd is set. Now gates on getCwd first: returns {cwd:null, servers:[]} when no cwd persisted; only resolves via getEffectiveCwd + calls lspService.status when a persisted cwd exists. PUT /conversations/:id/cwd now accepts optional workspaceId — validates with isValidWorkspaceSlug, then ensureWorkspace → setWorkspaceId → setCwd (assigns the workspace before persisting cwd, so getEffectiveCwd resolves relative cwds against the workspace defaultCwd, not the server default). transport-contract 0.16.0→0.17.0 (additive SetCwdRequest.workspaceId; LspStatusResponse.cwd comment updated). 1332 vitest pass.
Diffstat (limited to 'packages/transport-contract/package.json')
-rw-r--r--packages/transport-contract/package.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/transport-contract/package.json b/packages/transport-contract/package.json
index 1923e9f..95e1aef 100644
--- a/packages/transport-contract/package.json
+++ b/packages/transport-contract/package.json
@@ -1,6 +1,6 @@
{
"name": "@dispatch/transport-contract",
- "version": "0.16.0",
+ "version": "0.17.0",
"type": "module",
"private": true,
"main": "dist/index.js",