openmates 0.9.0-alpha.5 → 0.9.0-alpha.7
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.
|
@@ -961,6 +961,7 @@ var CHAT_MODELS = [
|
|
|
961
961
|
{ id: "deepseek-v3.2", name: "DeepSeek V3.2" },
|
|
962
962
|
{ id: "qwen3-235b-a22b-2507", name: "Qwen 3 256b" },
|
|
963
963
|
{ id: "kimi-k2.5", name: "Kimi K2.5" },
|
|
964
|
+
{ id: "kimi-k2.6", name: "Kimi K2.6" },
|
|
964
965
|
{ id: "zai-glm-4.7", name: "GLM 4.7" },
|
|
965
966
|
{ id: "mistral-medium-latest", name: "Mistral Medium" },
|
|
966
967
|
{ id: "mistral-small-2506", name: "Mistral Small 3.2" },
|
|
@@ -6436,7 +6437,7 @@ async function main() {
|
|
|
6436
6437
|
apiUrl: typeof parsed.flags["api-url"] === "string" ? parsed.flags["api-url"] : void 0
|
|
6437
6438
|
});
|
|
6438
6439
|
const redactor = new OutputRedactor();
|
|
6439
|
-
if (client.hasSession()) {
|
|
6440
|
+
if (client.hasSession() && shouldInitializeRedactor(command, subcommand)) {
|
|
6440
6441
|
try {
|
|
6441
6442
|
const memories = await client.listMemories();
|
|
6442
6443
|
redactor.initializeFromMemories(memories);
|
|
@@ -6544,6 +6545,9 @@ async function main() {
|
|
|
6544
6545
|
}
|
|
6545
6546
|
throw new Error(`Unknown command '${command}'. Run 'openmates help'.`);
|
|
6546
6547
|
}
|
|
6548
|
+
function shouldInitializeRedactor(command, subcommand) {
|
|
6549
|
+
return command === "chats" && ["new", "send", "incognito"].includes(subcommand ?? "");
|
|
6550
|
+
}
|
|
6547
6551
|
async function handleChats(client, subcommand, rest, flags, redactor) {
|
|
6548
6552
|
if (!subcommand || subcommand === "help" || flags.help === true) {
|
|
6549
6553
|
printChatsHelp();
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED