openmates 0.23.0-alpha.7 → 0.23.0-alpha.8

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.
@@ -2454,6 +2454,7 @@ import { createInterface as createInterface2 } from "readline/promises";
2454
2454
  import { stdin as stdin2, stdout } from "process";
2455
2455
  import { Writable } from "stream";
2456
2456
  import qrcode from "qrcode-terminal";
2457
+ import { decode as toonDecode } from "@toon-format/toon";
2457
2458
 
2458
2459
  // ../ui/src/utils/appMemoryRequests.ts
2459
2460
  var REQUEST_TYPE = "app_settings_memories_request";
@@ -10762,6 +10763,13 @@ function parseEmbedContentObject(rawContent) {
10762
10763
  try {
10763
10764
  return JSON.parse(rawContent);
10764
10765
  } catch {
10766
+ try {
10767
+ const decoded = toonDecode(rawContent, { strict: true });
10768
+ if (decoded && typeof decoded === "object" && !Array.isArray(decoded)) {
10769
+ return decoded;
10770
+ }
10771
+ } catch {
10772
+ }
10765
10773
  return parseYamlLikeContent(rawContent);
10766
10774
  }
10767
10775
  }
@@ -13526,13 +13534,7 @@ var OpenMatesClient = class _OpenMatesClient {
13526
13534
  const textPreview = await decryptField("encrypted_text_preview");
13527
13535
  let content = null;
13528
13536
  const rawContent = await decryptField("encrypted_content");
13529
- if (rawContent) {
13530
- try {
13531
- content = JSON.parse(rawContent);
13532
- } catch {
13533
- content = parseYamlLikeContent(rawContent);
13534
- }
13535
- }
13537
+ if (rawContent) content = parseEmbedContentObject(rawContent);
13536
13538
  content = await this.refreshRemotionVideoCreateContent(embedId, content);
13537
13539
  const strVal = (v) => typeof v === "string" && v.trim() ? v.trim() : null;
13538
13540
  const resolvedType = type ?? strVal(content?.type) ?? null;
@@ -24678,7 +24680,7 @@ Each object must contain 'id' (unique identifier) and 'url' (webpage URL), and c
24678
24680
  "properties": {
24679
24681
  "id": {
24680
24682
  "description": "Optional caller ID echoed in this group's result.",
24681
- "oneOf": [
24683
+ "anyOf": [
24682
24684
  {
24683
24685
  "type": "string"
24684
24686
  },
@@ -25516,7 +25518,7 @@ var GeneratedAppSkills = class {
25516
25518
  };
25517
25519
 
25518
25520
  // src/sdk.ts
25519
- import { decode as toonDecode } from "@toon-format/toon";
25521
+ import { decode as toonDecode2 } from "@toon-format/toon";
25520
25522
  import { createHash as createHash15, createHmac as createHmac4, randomBytes as randomBytes7, randomUUID as randomUUID11 } from "crypto";
25521
25523
  import { chmodSync as chmodSync4, existsSync as existsSync8, mkdirSync as mkdirSync7, readFileSync as readFileSync10, writeFileSync as writeFileSync5 } from "fs";
25522
25524
  import { homedir as homedir5 } from "os";
@@ -27034,7 +27036,7 @@ function parseMaybeJson(value) {
27034
27036
  return JSON.parse(value);
27035
27037
  } catch {
27036
27038
  try {
27037
- return toonDecode(value, { strict: false });
27039
+ return toonDecode2(value, { strict: false });
27038
27040
  } catch {
27039
27041
  return value;
27040
27042
  }
package/dist/cli.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  serializeToYaml,
20
20
  shouldRequireTrustedAccountGuard,
21
21
  waitForWorkflowRun
22
- } from "./chunk-NFIFSGES.js";
22
+ } from "./chunk-EYKKNZBW.js";
23
23
  import "./chunk-IWKP55ZB.js";
24
24
  import "./chunk-BBKJZ23O.js";
25
25
  export {
package/dist/index.d.ts CHANGED
@@ -4335,7 +4335,7 @@ declare const APP_SKILL_METADATA: readonly [{
4335
4335
  readonly properties: {
4336
4336
  readonly id: {
4337
4337
  readonly description: "Optional caller ID echoed in this group's result.";
4338
- readonly oneOf: readonly [{
4338
+ readonly anyOf: readonly [{
4339
4339
  readonly type: "string";
4340
4340
  }, {
4341
4341
  readonly type: "integer";
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ import {
43
43
  selectAssistantMessagesForSpeech,
44
44
  serializeToYaml,
45
45
  summarizeAssistantSpeech
46
- } from "./chunk-NFIFSGES.js";
46
+ } from "./chunk-EYKKNZBW.js";
47
47
  import "./chunk-IWKP55ZB.js";
48
48
  import "./chunk-BBKJZ23O.js";
49
49
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.23.0-alpha.7",
3
+ "version": "0.23.0-alpha.8",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",