openmates 0.9.0 → 0.9.2

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.
@@ -958,9 +958,11 @@ var CHAT_MODELS = [
958
958
  { id: "gemini-3-flash-preview", name: "Gemini 3 Flash" },
959
959
  { id: "gemini-3-pro-image-preview", name: "Gemini 3 Pro" },
960
960
  { id: "gemini-3.1-pro-preview", name: "Gemini 3.1 Pro" },
961
- { id: "deepseek-v3.2", name: "DeepSeek V3.2" },
961
+ { id: "deepseek-v4-pro", name: "DeepSeek V4 Pro" },
962
+ { id: "deepseek-v4-flash", name: "DeepSeek V4 Flash" },
962
963
  { id: "qwen3-235b-a22b-2507", name: "Qwen 3 256b" },
963
964
  { id: "kimi-k2.5", name: "Kimi K2.5" },
965
+ { id: "kimi-k2.6", name: "Kimi K2.6" },
964
966
  { id: "zai-glm-4.7", name: "GLM 4.7" },
965
967
  { id: "mistral-medium-latest", name: "Mistral Medium" },
966
968
  { id: "mistral-small-2506", name: "Mistral Small 3.2" },
@@ -1686,6 +1688,7 @@ var MATE_NAMES = {
1686
1688
  onboarding_support: "Suki"
1687
1689
  };
1688
1690
  var DEFAULT_API_URL = process.env.OPENMATES_API_URL ?? "https://api.openmates.org";
1691
+ var SETTINGS_GET_RATE_LIMIT_RETRY_MS = 61e3;
1689
1692
  function deriveAppUrl(apiUrl) {
1690
1693
  if (process.env.OPENMATES_APP_URL) {
1691
1694
  return process.env.OPENMATES_APP_URL.replace(/\/$/, "");
@@ -2616,10 +2619,18 @@ var OpenMatesClient = class _OpenMatesClient {
2616
2619
  async settingsGet(path) {
2617
2620
  this.requireSession();
2618
2621
  const normalizedPath = this.normalizePath(path);
2619
- const response = await this.http.get(
2622
+ let response = await this.http.get(
2620
2623
  normalizedPath,
2621
2624
  this.getCliRequestHeaders()
2622
2625
  );
2626
+ if (response.status === 429) {
2627
+ process.stderr.write(
2628
+ `Rate limited by settings API; retrying in ${Math.ceil(SETTINGS_GET_RATE_LIMIT_RETRY_MS / 1e3)}s...
2629
+ `
2630
+ );
2631
+ await new Promise((resolve4) => setTimeout(resolve4, SETTINGS_GET_RATE_LIMIT_RETRY_MS));
2632
+ response = await this.http.get(normalizedPath, this.getCliRequestHeaders());
2633
+ }
2623
2634
  if (!response.ok) {
2624
2635
  throw new Error(`Settings GET failed with HTTP ${response.status}`);
2625
2636
  }
@@ -6436,7 +6447,7 @@ async function main() {
6436
6447
  apiUrl: typeof parsed.flags["api-url"] === "string" ? parsed.flags["api-url"] : void 0
6437
6448
  });
6438
6449
  const redactor = new OutputRedactor();
6439
- if (client.hasSession()) {
6450
+ if (client.hasSession() && shouldInitializeRedactor(command, subcommand)) {
6440
6451
  try {
6441
6452
  const memories = await client.listMemories();
6442
6453
  redactor.initializeFromMemories(memories);
@@ -6544,6 +6555,9 @@ async function main() {
6544
6555
  }
6545
6556
  throw new Error(`Unknown command '${command}'. Run 'openmates help'.`);
6546
6557
  }
6558
+ function shouldInitializeRedactor(command, subcommand) {
6559
+ return command === "chats" && ["new", "send", "incognito"].includes(subcommand ?? "");
6560
+ }
6547
6561
  async function handleChats(client, subcommand, rest, flags, redactor) {
6548
6562
  if (!subcommand || subcommand === "help" || flags.help === true) {
6549
6563
  printChatsHelp();
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getExtForLang,
4
4
  serializeToYaml
5
- } from "./chunk-QWU5GCDA.js";
5
+ } from "./chunk-IZYE5MAJ.js";
6
6
  export {
7
7
  getExtForLang,
8
8
  serializeToYaml
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  getExtForLang,
7
7
  parseNewChatSuggestionText,
8
8
  serializeToYaml
9
- } from "./chunk-QWU5GCDA.js";
9
+ } from "./chunk-IZYE5MAJ.js";
10
10
  export {
11
11
  MATE_NAMES,
12
12
  MEMORY_TYPE_REGISTRY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",