From 5c3f6265c2ab66bc3e425ce9122c2ac4fd2151b4 Mon Sep 17 00:00:00 2001 From: Agent Date: Tue, 13 Oct 2026 11:46:18 +0000 Subject: [PATCH] fix: remove unavailable host llm import --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 99c4a82..d44a453 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ import fs from 'node:fs' import path from 'node:path' import os from 'node:os' import crypto from 'node:crypto' -import { createUserMessage } from '@deepseek-ai/dsh-llm' +const createMessage = (input) => ({ ...input, id: crypto.randomUUID(), source: { kind: 'user', ...(input.source || {}) } }) export const name = 'dsh-queue-steer' export const inject = { commands: { required: true }, webServer: { required: true }, connection: { required: true } } const file = path.join(process.env.DSH_PROFILE_DIR || path.join(process.env.DSH_HOME || path.join(os.homedir(), '.dsh'), 'profiles', 'web'), 'dsh-queue-steer', 'settings.json') @@ -10,7 +10,7 @@ const defaults = { defaultMode: 'queue', defaultQueueList: 'batch', batchHeaderT let settings = { ...defaults } try { settings = { ...defaults, ...JSON.parse(fs.readFileSync(file, 'utf8')) } } catch {} const save = (next) => { settings = { ...settings, ...next }; fs.mkdirSync(path.dirname(file), { recursive: true }); fs.writeFileSync(file, JSON.stringify(settings, null, 2)) } -const message = (value, via) => createUserMessage({ content: [{ type: 'text', text: value }], source: { kind: 'queue-steer', via } }) +const message = (value, via) => createMessage({ role: 'user', content: [{ type: 'text', text: value }], source: { kind: 'queue-steer', via } }) export function apply(ctx) { const add = (name, mode) => ctx.commands.register({