spectrum-ts 3.1.0 → 4.0.0

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/authoring.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import { createRequire as __spectrumCreateRequire } from "node:module"; const require = __spectrumCreateRequire(import.meta.url);
2
2
  import {
3
3
  asRichlink
4
- } from "./chunk-CHY5YLLV.js";
4
+ } from "./chunk-ZR3TKZMT.js";
5
5
  import {
6
6
  asGroup
7
- } from "./chunk-MHGCPC2V.js";
7
+ } from "./chunk-LZXPLXZF.js";
8
8
  import {
9
9
  asVoice
10
- } from "./chunk-77U6SH5A.js";
10
+ } from "./chunk-FAIFTUV2.js";
11
11
  import {
12
12
  asPoll,
13
13
  asPollOption
14
14
  } from "./chunk-2D27WW5B.js";
15
15
  import {
16
16
  asContact
17
- } from "./chunk-NZ5WCMTY.js";
17
+ } from "./chunk-A37PM5N2.js";
18
18
  import "./chunk-6UZFVXQF.js";
19
19
  import {
20
20
  asAttachment,
21
21
  asCustom,
22
22
  asReaction,
23
23
  asText
24
- } from "./chunk-LQMDV75O.js";
24
+ } from "./chunk-UXAKIXVM.js";
25
25
  export {
26
26
  asAttachment,
27
27
  asContact,
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-34FQGGD7.js";
5
5
  import {
6
6
  asGroup
7
- } from "./chunk-MHGCPC2V.js";
7
+ } from "./chunk-LZXPLXZF.js";
8
8
  import {
9
9
  asVoice
10
- } from "./chunk-77U6SH5A.js";
10
+ } from "./chunk-FAIFTUV2.js";
11
11
  import {
12
12
  toVCard
13
13
  } from "./chunk-6UZFVXQF.js";
@@ -16,13 +16,13 @@ import {
16
16
  asMarkdown,
17
17
  definePlatform,
18
18
  renderInlineTokens
19
- } from "./chunk-L3NUESOW.js";
19
+ } from "./chunk-OGTHPDG7.js";
20
20
  import {
21
21
  asAttachment,
22
22
  asCustom,
23
23
  asReaction,
24
24
  asText
25
- } from "./chunk-LQMDV75O.js";
25
+ } from "./chunk-UXAKIXVM.js";
26
26
 
27
27
  // src/providers/telegram/config.ts
28
28
  import z from "zod";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-3GEJYGZK.js";
8
8
  import {
9
9
  asContact
10
- } from "./chunk-NZ5WCMTY.js";
10
+ } from "./chunk-A37PM5N2.js";
11
11
  import {
12
12
  mergeStreams,
13
13
  stream
@@ -15,13 +15,13 @@ import {
15
15
  import {
16
16
  UnsupportedError,
17
17
  definePlatform
18
- } from "./chunk-L3NUESOW.js";
18
+ } from "./chunk-OGTHPDG7.js";
19
19
  import {
20
20
  asAttachment,
21
21
  asCustom,
22
22
  asReaction,
23
23
  asText
24
- } from "./chunk-LQMDV75O.js";
24
+ } from "./chunk-UXAKIXVM.js";
25
25
 
26
26
  // src/providers/whatsapp-business/index.ts
27
27
  import { createClient as createClient2 } from "@photon-ai/whatsapp-business";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-6UZFVXQF.js";
5
5
  import {
6
6
  readSchema
7
- } from "./chunk-LQMDV75O.js";
7
+ } from "./chunk-UXAKIXVM.js";
8
8
 
9
9
  // src/content/contact.ts
10
10
  import vCard from "vcf";
@@ -4,7 +4,7 @@ import {
4
4
  fetchUrlBytes,
5
5
  readSchema,
6
6
  streamSchema
7
- } from "./chunk-LQMDV75O.js";
7
+ } from "./chunk-UXAKIXVM.js";
8
8
 
9
9
  // src/content/voice.ts
10
10
  import { createReadStream } from "fs";
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __spectrumCreateRequire } from "node:module"; const require = __spectrumCreateRequire(import.meta.url);
2
2
  import {
3
3
  resolveContents
4
- } from "./chunk-LQMDV75O.js";
4
+ } from "./chunk-UXAKIXVM.js";
5
5
 
6
6
  // src/content/group.ts
7
7
  import z from "zod";
@@ -8,7 +8,7 @@ import {
8
8
  readSchema,
9
9
  resolveContents,
10
10
  streamTextBuilder
11
- } from "./chunk-LQMDV75O.js";
11
+ } from "./chunk-UXAKIXVM.js";
12
12
 
13
13
  // src/content/avatar.ts
14
14
  import z2 from "zod";
@@ -1,10 +1,10 @@
1
1
  import { createRequire as __spectrumCreateRequire } from "node:module"; const require = __spectrumCreateRequire(import.meta.url);
2
2
  import {
3
3
  asVoice
4
- } from "./chunk-77U6SH5A.js";
4
+ } from "./chunk-FAIFTUV2.js";
5
5
  import {
6
6
  asContact
7
- } from "./chunk-NZ5WCMTY.js";
7
+ } from "./chunk-A37PM5N2.js";
8
8
  import {
9
9
  stream
10
10
  } from "./chunk-5XEFJBN2.js";
@@ -15,12 +15,12 @@ import {
15
15
  import {
16
16
  UnsupportedError,
17
17
  definePlatform
18
- } from "./chunk-L3NUESOW.js";
18
+ } from "./chunk-OGTHPDG7.js";
19
19
  import {
20
20
  asAttachment,
21
21
  asCustom,
22
22
  reactionSchema
23
- } from "./chunk-LQMDV75O.js";
23
+ } from "./chunk-UXAKIXVM.js";
24
24
 
25
25
  // src/providers/terminal/index.ts
26
26
  import { spawn } from "child_process";
@@ -1,43 +1,4 @@
1
1
  import { createRequire as __spectrumCreateRequire } from "node:module"; const require = __spectrumCreateRequire(import.meta.url);
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
- }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
- var __esm = (fn, res) => function __init() {
15
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
- };
17
- var __commonJS = (cb, mod) => function __require2() {
18
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
- };
20
- var __export = (target, all) => {
21
- for (var name in all)
22
- __defProp(target, name, { get: all[name], enumerable: true });
23
- };
24
- var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (let key of __getOwnPropNames(from))
27
- if (!__hasOwnProp.call(to, key) && key !== except)
28
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
- }
30
- return to;
31
- };
32
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
33
- // If the importer is in node compatibility mode or this is not an ESM
34
- // file that has been converted to a CommonJS file using a Babel-
35
- // compatible transform (i.e. "__esModule" has not been set), then set
36
- // "default" to the CommonJS "module.exports" for node compatibility.
37
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
38
- mod
39
- ));
40
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
2
 
42
3
  // src/content/attachment.ts
43
4
  import { randomUUID } from "crypto";
@@ -426,12 +387,6 @@ function reaction(emoji, target) {
426
387
  }
427
388
 
428
389
  export {
429
- __require,
430
- __esm,
431
- __commonJS,
432
- __export,
433
- __toESM,
434
- __toCommonJS,
435
390
  readSchema,
436
391
  streamSchema,
437
392
  bufferToStream,
@@ -9,13 +9,13 @@ import {
9
9
  import {
10
10
  UnsupportedError,
11
11
  definePlatform
12
- } from "./chunk-L3NUESOW.js";
12
+ } from "./chunk-OGTHPDG7.js";
13
13
  import {
14
14
  asAttachment,
15
15
  asCustom,
16
16
  asReaction,
17
17
  asText
18
- } from "./chunk-LQMDV75O.js";
18
+ } from "./chunk-UXAKIXVM.js";
19
19
 
20
20
  // src/providers/slack/index.ts
21
21
  import { createClient as createClient2, staticTokens } from "@photon-ai/slack";
@@ -1,11 +1,11 @@
1
1
  import { createRequire as __spectrumCreateRequire } from "node:module"; const require = __spectrumCreateRequire(import.meta.url);
2
2
  import {
3
3
  asRichlink
4
- } from "./chunk-CHY5YLLV.js";
4
+ } from "./chunk-ZR3TKZMT.js";
5
5
  import {
6
6
  asGroup,
7
7
  groupSchema
8
- } from "./chunk-MHGCPC2V.js";
8
+ } from "./chunk-LZXPLXZF.js";
9
9
  import {
10
10
  asPoll,
11
11
  asPollOption
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-3GEJYGZK.js";
16
16
  import {
17
17
  asContact
18
- } from "./chunk-NZ5WCMTY.js";
18
+ } from "./chunk-A37PM5N2.js";
19
19
  import {
20
20
  mergeStreams,
21
21
  stream
@@ -30,7 +30,7 @@ import {
30
30
  definePlatform,
31
31
  markdownSchema,
32
32
  photoActionSchema
33
- } from "./chunk-L3NUESOW.js";
33
+ } from "./chunk-OGTHPDG7.js";
34
34
  import {
35
35
  asAttachment,
36
36
  asCustom,
@@ -39,7 +39,7 @@ import {
39
39
  reactionSchema,
40
40
  text,
41
41
  textSchema
42
- } from "./chunk-LQMDV75O.js";
42
+ } from "./chunk-UXAKIXVM.js";
43
43
 
44
44
  // src/providers/imessage/index.ts
45
45
  import {
@@ -4,7 +4,7 @@ import {
4
4
  fetchUrlBytes,
5
5
  readSchema,
6
6
  streamSchema
7
- } from "./chunk-LQMDV75O.js";
7
+ } from "./chunk-UXAKIXVM.js";
8
8
 
9
9
  // src/content/richlink.ts
10
10
  import z from "zod";