spectrum-ts 9.3.1 → 10.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/README.md +9 -6
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Bring agents to any interface — a unified messaging SDK for TypeScript.
|
|
4
4
|
|
|
5
5
|
`spectrum-ts` is the **batteries-included** package: it bundles the runtime
|
|
6
|
-
([`@spectrum-ts/core`](https://npmjs.com/package/@spectrum-ts/core)) plus
|
|
7
|
-
|
|
6
|
+
([`@spectrum-ts/core`](https://npmjs.com/package/@spectrum-ts/core)) plus the
|
|
7
|
+
standard provider set.
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
10
|
bun add spectrum-ts
|
|
@@ -12,9 +12,11 @@ bun add spectrum-ts
|
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
14
|
import { Spectrum } from "spectrum-ts";
|
|
15
|
-
import {
|
|
15
|
+
import { imessage } from "spectrum-ts/providers/imessage";
|
|
16
16
|
|
|
17
|
-
const app = await Spectrum({
|
|
17
|
+
const app = await Spectrum({
|
|
18
|
+
platforms: [imessage.config()],
|
|
19
|
+
});
|
|
18
20
|
```
|
|
19
21
|
|
|
20
22
|
## Lean installs
|
|
@@ -23,17 +25,18 @@ If you only use a couple of platforms and want a smaller install, depend on the
|
|
|
23
25
|
runtime and just the providers you need instead of this metapackage:
|
|
24
26
|
|
|
25
27
|
```sh
|
|
26
|
-
bun add @spectrum-ts/core @spectrum-ts/
|
|
28
|
+
bun add @spectrum-ts/core @spectrum-ts/imessage
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
```ts
|
|
30
32
|
import { Spectrum } from "@spectrum-ts/core";
|
|
31
|
-
import {
|
|
33
|
+
import { imessage } from "@spectrum-ts/imessage";
|
|
32
34
|
```
|
|
33
35
|
|
|
34
36
|
| Platform | Package |
|
|
35
37
|
|----------|---------|
|
|
36
38
|
| iMessage | [`@spectrum-ts/imessage`](https://npmjs.com/package/@spectrum-ts/imessage) |
|
|
39
|
+
| Local iMessage | [`@spectrum-ts/imessage-local`](https://npmjs.com/package/@spectrum-ts/imessage-local) (explicit install only) |
|
|
37
40
|
| Telegram | [`@spectrum-ts/telegram`](https://npmjs.com/package/@spectrum-ts/telegram) |
|
|
38
41
|
| Slack | [`@spectrum-ts/slack`](https://npmjs.com/package/@spectrum-ts/slack) |
|
|
39
42
|
| WhatsApp Business | [`@spectrum-ts/whatsapp-business`](https://npmjs.com/package/@spectrum-ts/whatsapp-business) |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spectrum-ts",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Bring agents to any interface — unified messaging SDK for TypeScript.
|
|
3
|
+
"version": "10.0.0",
|
|
4
|
+
"description": "Bring agents to any interface — unified messaging SDK for TypeScript.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/photon-hq/spectrum-ts.git",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@spectrum-ts/core": "
|
|
45
|
-
"@spectrum-ts/imessage": "
|
|
46
|
-
"@spectrum-ts/slack": "
|
|
47
|
-
"@spectrum-ts/telegram": "
|
|
48
|
-
"@spectrum-ts/terminal": "
|
|
49
|
-
"@spectrum-ts/whatsapp-business": "
|
|
44
|
+
"@spectrum-ts/core": "10.0.0",
|
|
45
|
+
"@spectrum-ts/imessage": "10.0.0",
|
|
46
|
+
"@spectrum-ts/slack": "10.0.0",
|
|
47
|
+
"@spectrum-ts/telegram": "10.0.0",
|
|
48
|
+
"@spectrum-ts/terminal": "10.0.0",
|
|
49
|
+
"@spectrum-ts/whatsapp-business": "10.0.0"
|
|
50
50
|
},
|
|
51
51
|
"license": "MIT"
|
|
52
52
|
}
|