fix: remove unavailable host llm import

This commit is contained in:
Agent committed 2026-10-13 11:46:18 +00:00
1 parent c7de45f30e
commit 5c3f6265c2
1 file changed
+2 -2
+2 -2
View File
@@ -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({