ei-tui 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/core/AGENTS.md +2 -2
- package/src/core/context-utils.ts +3 -4
- package/src/core/llm-client.ts +119 -39
- package/src/core/orchestrators/human-extraction.ts +0 -5
- package/src/core/processor.ts +30 -1
- package/src/core/prompt-context-builder.ts +5 -10
- package/src/core/queue-manager.ts +4 -0
- package/src/core/queue-processor.ts +1 -0
- package/src/core/room-manager.ts +8 -2
- package/src/core/state/queue.ts +7 -0
- package/src/core/state-manager.ts +233 -4
- package/src/core/tools/index.ts +1 -1
- package/src/core/types/entities.ts +21 -4
- package/src/integrations/claude-code/importer.ts +0 -1
- package/src/integrations/claude-code/types.ts +0 -1
- package/src/integrations/opencode/importer.ts +0 -1
- package/src/prompts/response/index.ts +8 -2
- package/src/prompts/response/types.ts +2 -0
- package/src/prompts/room/index.ts +8 -2
- package/src/prompts/room/sections.ts +16 -0
- package/src/prompts/room/types.ts +3 -2
- package/src/storage/merge.ts +47 -2
- package/tui/src/commands/dlq.ts +12 -4
- package/tui/src/commands/provider.tsx +110 -90
- package/tui/src/commands/queue.ts +11 -3
- package/tui/src/commands/settings.tsx +9 -17
- package/tui/src/components/MessageList.tsx +1 -0
- package/tui/src/components/ModelListOverlay.tsx +203 -0
- package/tui/src/components/PromptInput.tsx +0 -2
- package/tui/src/components/RoomMessageList.tsx +1 -0
- package/tui/src/context/ei.tsx +7 -0
- package/tui/src/util/persona-editor.tsx +15 -12
- package/tui/src/util/provider-editor.tsx +23 -6
- package/tui/src/util/yaml-serializers.ts +255 -73
- package/src/core/model-context-windows.ts +0 -49
- package/tui/src/commands/model.ts +0 -47
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { Command } from "./registry";
|
|
2
|
-
|
|
3
|
-
export const modelCommand: Command = {
|
|
4
|
-
name: "model",
|
|
5
|
-
aliases: [],
|
|
6
|
-
description: "Set the LLM model for the current persona",
|
|
7
|
-
usage: "/model <model> or /model <provider:model>",
|
|
8
|
-
execute: async (args, ctx) => {
|
|
9
|
-
const personaId = ctx.ei.activePersonaId();
|
|
10
|
-
if (!personaId) {
|
|
11
|
-
ctx.showNotification("No persona selected", "error");
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
if (args.length === 0) {
|
|
16
|
-
ctx.showNotification("Usage: /model <model> (e.g., sonnet-latest or openai:gpt-4o)", "info");
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const modelSpec = args[0];
|
|
21
|
-
|
|
22
|
-
if (modelSpec.includes(":")) {
|
|
23
|
-
// Explicit provider:model — use as-is
|
|
24
|
-
await ctx.ei.updatePersona(personaId, { model: modelSpec });
|
|
25
|
-
ctx.showNotification(`Model set to ${modelSpec}`, "info");
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// No provider specified — infer from persona's current model
|
|
30
|
-
const persona = await ctx.ei.getPersona(personaId);
|
|
31
|
-
const currentModel = persona?.model;
|
|
32
|
-
|
|
33
|
-
if (currentModel) {
|
|
34
|
-
const provider = currentModel.includes(":")
|
|
35
|
-
? currentModel.split(":")[0]
|
|
36
|
-
: currentModel;
|
|
37
|
-
const newModel = `${provider}:${modelSpec}`;
|
|
38
|
-
await ctx.ei.updatePersona(personaId, { model: newModel });
|
|
39
|
-
ctx.showNotification(`Model set to ${newModel}`, "info");
|
|
40
|
-
} else {
|
|
41
|
-
ctx.showNotification(
|
|
42
|
-
"No provider set. Use /provider first, or specify provider:model (e.g., openai:gpt-4o)",
|
|
43
|
-
"error"
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
};
|