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.
- package/dist/{chunk-NFIFSGES.js → chunk-EYKKNZBW.js} +12 -10
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
"
|
|
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
|
|
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
|
|
27039
|
+
return toonDecode2(value, { strict: false });
|
|
27038
27040
|
} catch {
|
|
27039
27041
|
return value;
|
|
27040
27042
|
}
|
package/dist/cli.js
CHANGED
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
|
|
4338
|
+
readonly anyOf: readonly [{
|
|
4339
4339
|
readonly type: "string";
|
|
4340
4340
|
}, {
|
|
4341
4341
|
readonly type: "integer";
|
package/dist/index.js
CHANGED