spectrum-ts 1.12.0 → 1.13.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.
@@ -737,7 +737,7 @@ function protocolToSpectrum(p) {
737
737
  }
738
738
  return { type: "custom", raw: p };
739
739
  }
740
- var terminal = definePlatform("terminal", {
740
+ var terminal = definePlatform("Terminal", {
741
741
  config: z.object({
742
742
  commands: z.array(commandSchema).optional()
743
743
  }),
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "key": "imessage",
4
+ "import": "imessage",
5
+ "path": "spectrum-ts/providers/imessage",
6
+ "label": "iMessage"
7
+ },
8
+ {
9
+ "key": "slack",
10
+ "import": "slack",
11
+ "path": "spectrum-ts/providers/slack",
12
+ "label": "Slack"
13
+ },
14
+ {
15
+ "key": "terminal",
16
+ "import": "terminal",
17
+ "path": "spectrum-ts/providers/terminal",
18
+ "label": "Terminal"
19
+ },
20
+ {
21
+ "key": "whatsapp-business",
22
+ "import": "whatsappBusiness",
23
+ "path": "spectrum-ts/providers/whatsapp-business",
24
+ "label": "WhatsApp Business"
25
+ }
26
+ ]
@@ -7,7 +7,7 @@ import {
7
7
  } from "../chunk-E7AXYNOZ.js";
8
8
  import {
9
9
  terminal
10
- } from "../chunk-7Z3QGRGI.js";
10
+ } from "../chunk-ZGWANTLX.js";
11
11
  import "../chunk-4TXLNBGE.js";
12
12
  import {
13
13
  whatsappBusiness
@@ -86,7 +86,7 @@ interface TerminalClient {
86
86
  proc: ChildProcess;
87
87
  session: RpcSession;
88
88
  }
89
- declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
89
+ declare const terminal: Platform<PlatformDef<"Terminal", z__default.ZodObject<{
90
90
  commands: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
91
91
  name: z__default.ZodString;
92
92
  description: z__default.ZodOptional<z__default.ZodString>;
@@ -107,15 +107,15 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
107
107
  } | undefined;
108
108
  id: string;
109
109
  content: {
110
+ type: "text";
111
+ text: string;
112
+ } | {
110
113
  type: "attachment";
111
114
  name: string;
112
115
  mimeType: string;
113
116
  read: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
114
117
  stream: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
115
118
  size?: number | undefined;
116
- } | {
117
- type: "text";
118
- text: string;
119
119
  } | {
120
120
  type: "custom";
121
121
  raw: unknown;
@@ -210,15 +210,15 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
210
210
  } | {
211
211
  type: "effect";
212
212
  content: {
213
+ type: "text";
214
+ text: string;
215
+ } | {
213
216
  type: "attachment";
214
217
  name: string;
215
218
  mimeType: string;
216
219
  read: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
217
220
  stream: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
218
221
  size?: number | undefined;
219
- } | {
220
- type: "text";
221
- text: string;
222
222
  };
223
223
  effect: string;
224
224
  } | {
@@ -237,17 +237,17 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
237
237
  kind: "clear";
238
238
  };
239
239
  } | {
240
- type: "reply";
240
+ type: "edit";
241
241
  content: {
242
+ type: "text";
243
+ text: string;
244
+ } | {
242
245
  type: "attachment";
243
246
  name: string;
244
247
  mimeType: string;
245
248
  read: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
246
249
  stream: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
247
250
  size?: number | undefined;
248
- } | {
249
- type: "text";
250
- text: string;
251
251
  } | {
252
252
  type: "custom";
253
253
  raw: unknown;
@@ -342,15 +342,15 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
342
342
  } | {
343
343
  type: "effect";
344
344
  content: {
345
+ type: "text";
346
+ text: string;
347
+ } | {
345
348
  type: "attachment";
346
349
  name: string;
347
350
  mimeType: string;
348
351
  read: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
349
352
  stream: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
350
353
  size?: number | undefined;
351
- } | {
352
- type: "text";
353
- text: string;
354
354
  };
355
355
  effect: string;
356
356
  } | {
@@ -371,17 +371,17 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
371
371
  };
372
372
  target: Message<string, User, Space<unknown>>;
373
373
  } | {
374
- type: "edit";
374
+ type: "reply";
375
375
  content: {
376
+ type: "text";
377
+ text: string;
378
+ } | {
376
379
  type: "attachment";
377
380
  name: string;
378
381
  mimeType: string;
379
382
  read: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
380
383
  stream: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
381
384
  size?: number | undefined;
382
- } | {
383
- type: "text";
384
- text: string;
385
385
  } | {
386
386
  type: "custom";
387
387
  raw: unknown;
@@ -476,15 +476,15 @@ declare const terminal: Platform<PlatformDef<"terminal", z__default.ZodObject<{
476
476
  } | {
477
477
  type: "effect";
478
478
  content: {
479
+ type: "text";
480
+ text: string;
481
+ } | {
479
482
  type: "attachment";
480
483
  name: string;
481
484
  mimeType: string;
482
485
  read: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>>;
483
486
  stream: z__default.core.$InferOuterFunctionType<z__default.ZodTuple<readonly [], null>, z__default.ZodPromise<z__default.ZodCustom<ReadableStream<unknown>, ReadableStream<unknown>>>>;
484
487
  size?: number | undefined;
485
- } | {
486
- type: "text";
487
- text: string;
488
488
  };
489
489
  effect: string;
490
490
  } | {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  terminal
3
- } from "../../chunk-7Z3QGRGI.js";
3
+ } from "../../chunk-ZGWANTLX.js";
4
4
  import "../../chunk-4TXLNBGE.js";
5
5
  import "../../chunk-L3VXHUVY.js";
6
6
  import "../../chunk-YDHES53X.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spectrum-ts",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Bring agents to any interface — unified messaging SDK for TypeScript.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,10 +30,11 @@
30
30
  "./providers/*": {
31
31
  "types": "./dist/providers/*/index.d.ts",
32
32
  "default": "./dist/providers/*/index.js"
33
- }
33
+ },
34
+ "./manifest.json": "./dist/manifest.json"
34
35
  },
35
36
  "dependencies": {
36
- "@photon-ai/advanced-imessage": "^0.8.0",
37
+ "@photon-ai/advanced-imessage": "^0.9.0",
37
38
  "@photon-ai/imessage-kit": "^3.0.0",
38
39
  "@photon-ai/otel": "^0.1.1",
39
40
  "@photon-ai/slack": "^0.2.0",