openmates 0.9.0-alpha.6 → 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.
@@ -6437,7 +6437,7 @@ async function main() {
6437
6437
  apiUrl: typeof parsed.flags["api-url"] === "string" ? parsed.flags["api-url"] : void 0
6438
6438
  });
6439
6439
  const redactor = new OutputRedactor();
6440
- if (client.hasSession()) {
6440
+ if (client.hasSession() && shouldInitializeRedactor(command, subcommand)) {
6441
6441
  try {
6442
6442
  const memories = await client.listMemories();
6443
6443
  redactor.initializeFromMemories(memories);
@@ -6545,6 +6545,9 @@ async function main() {
6545
6545
  }
6546
6546
  throw new Error(`Unknown command '${command}'. Run 'openmates help'.`);
6547
6547
  }
6548
+ function shouldInitializeRedactor(command, subcommand) {
6549
+ return command === "chats" && ["new", "send", "incognito"].includes(subcommand ?? "");
6550
+ }
6548
6551
  async function handleChats(client, subcommand, rest, flags, redactor) {
6549
6552
  if (!subcommand || subcommand === "help" || flags.help === true) {
6550
6553
  printChatsHelp();
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getExtForLang,
4
4
  serializeToYaml
5
- } from "./chunk-S6QOFKWN.js";
5
+ } from "./chunk-IU5NXWSL.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-S6QOFKWN.js";
9
+ } from "./chunk-IU5NXWSL.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-alpha.6",
3
+ "version": "0.9.0-alpha.7",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",