summaryrefslogtreecommitdiffhomepage
path: root/packages/transport-http/src
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-26 20:24:18 +0900
committerAdam Malczewski <[email protected]>2026-06-26 20:24:18 +0900
commit12955cdf1d822ff395fd62d30916fbdb02d10e12 (patch)
treec23a4b0700a08926eaf3636af7e5ca92a39fbe2f /packages/transport-http/src
parentc5c34ed70e0f04b7b936fa7a1d88ef807472fb96 (diff)
downloaddispatch-12955cdf1d822ff395fd62d30916fbdb02d10e12.tar.gz
dispatch-12955cdf1d822ff395fd62d30916fbdb02d10e12.zip
feat(heartbeat): resolve [type:name] variables in heartbeat prompts (CR-HB-1)
Diffstat (limited to 'packages/transport-http/src')
-rw-r--r--packages/transport-http/src/app.ts5
-rw-r--r--packages/transport-http/src/extension.ts2
2 files changed, 3 insertions, 4 deletions
diff --git a/packages/transport-http/src/app.ts b/packages/transport-http/src/app.ts
index 36b27a4..b9327b3 100644
--- a/packages/transport-http/src/app.ts
+++ b/packages/transport-http/src/app.ts
@@ -1,5 +1,5 @@
-import type { AgentEvent, HostAPI, Logger } from "@dispatch/kernel";
import { DEFAULT_HEARTBEAT_CONFIG } from "@dispatch/heartbeat";
+import type { AgentEvent, HostAPI, Logger } from "@dispatch/kernel";
import { DEFAULT_TEMPLATE, getVariableCatalog } from "@dispatch/system-prompt";
import type {
CloseConversationResponse,
@@ -1445,8 +1445,7 @@ export function createApp(opts: CreateServerOptions): Hono {
if (obj.reasoningEffort !== null && !isValidReasoningEffort(obj.reasoningEffort)) {
return c.json(
{
- error:
- "Field 'reasoningEffort' must be one of: low, medium, high, xhigh, max, or null",
+ error: "Field 'reasoningEffort' must be one of: low, medium, high, xhigh, max, or null",
},
400,
);
diff --git a/packages/transport-http/src/extension.ts b/packages/transport-http/src/extension.ts
index e3f9ffc..eb14c55 100644
--- a/packages/transport-http/src/extension.ts
+++ b/packages/transport-http/src/extension.ts
@@ -93,7 +93,7 @@ export function createTransportHttpExtension(): Extension & {
const lspService = host.getService(lspServiceHandle);
const mcpService = host.getService(mcpServiceHandle);
const systemPromptService = host.getService(systemPromptHandle);
- const heartbeatService = host.getService(heartbeatServiceHandle);
+ const heartbeatService = host.getService(heartbeatServiceHandle);
// Optional: the `ssh` extension provides ComputerService. It is NOT in
// dependsOn (ssh may be absent), so resolve defensively — when no
// provider registered the handle, the computer routes degrade to