@effect-uai/telegram 0.17.0 → 0.19.0-dev-20261109183959
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 +2 -2
- package/dist/Telegram.d.mts +2 -2
- package/dist/Telegram.mjs +5 -4
- package/dist/Telegram.mjs.map +1 -1
- package/dist/{api-CnvvfWKq.d.mts → api-o1OT-Mk0.d.mts} +2 -2
- package/dist/{api-CnvvfWKq.d.mts.map → api-o1OT-Mk0.d.mts.map} +1 -1
- package/dist/dist-DHer1cql.mjs +1533 -0
- package/dist/dist-DHer1cql.mjs.map +1 -0
- package/dist/internal/api.d.mts +1 -1
- package/dist/internal/api.mjs +1 -1
- package/dist/internal/api.mjs.map +1 -1
- package/dist/internal/events.test.mjs +8275 -7091
- package/dist/internal/events.test.mjs.map +1 -1
- package/dist/{rolldown-runtime-D7D4PA-g.mjs → rolldown-runtime-EAsCxrDo.mjs} +2 -1
- package/package.json +5 -5
- package/src/Telegram.ts +3 -3
- package/src/internal/api.ts +1 -1
- package/dist/magic-string.es-CUAnjKYC.mjs +0 -1014
- package/dist/magic-string.es-CUAnjKYC.mjs.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
3
4
|
var __exportAll = (all, no_symbols) => {
|
|
4
5
|
let target = {};
|
|
5
6
|
for (var name in all) __defProp(target, name, {
|
|
@@ -10,4 +11,4 @@ var __exportAll = (all, no_symbols) => {
|
|
|
10
11
|
return target;
|
|
11
12
|
};
|
|
12
13
|
//#endregion
|
|
13
|
-
export { __exportAll as t };
|
|
14
|
+
export { __exportAll as n, __commonJSMin as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-uai/telegram",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0-dev-20261109183959",
|
|
4
4
|
"description": "Telegram provider for @effect-uai/core (Messenger capability over the Bot API).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"effect": "4.
|
|
47
|
+
"effect": "4.1.2",
|
|
48
48
|
"typescript": "^7.0.2",
|
|
49
|
-
"@effect-uai/core": "0.
|
|
49
|
+
"@effect-uai/core": "0.19.0-dev-20261109183959"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@effect-uai/core": "
|
|
53
|
-
"effect": ">=4.0.
|
|
52
|
+
"@effect-uai/core": "0.19.0-dev-20261109183959",
|
|
53
|
+
"effect": ">=4.0.1 <5.0.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsdown",
|
package/src/Telegram.ts
CHANGED
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
Context,
|
|
5
5
|
Duration,
|
|
6
6
|
Effect,
|
|
7
|
-
Encoding,
|
|
8
7
|
Layer,
|
|
9
8
|
Match,
|
|
10
9
|
Option,
|
|
@@ -15,7 +14,8 @@ import {
|
|
|
15
14
|
type Scope,
|
|
16
15
|
Stream,
|
|
17
16
|
} from "effect"
|
|
18
|
-
import {
|
|
17
|
+
import { Base64 } from "effect/encoding"
|
|
18
|
+
import { HttpClient } from "effect/http"
|
|
19
19
|
import type { MediaSource } from "@effect-uai/core/Media"
|
|
20
20
|
import {
|
|
21
21
|
CurrentConversation,
|
|
@@ -285,7 +285,7 @@ export const make = (
|
|
|
285
285
|
Match.tag("url", ({ url }) => call(method, { ...params, [field]: url })),
|
|
286
286
|
Match.tag("bytes", ({ bytes, mimeType }) => send(bytes, mimeType)),
|
|
287
287
|
Match.tag("base64", ({ base64, mimeType }) =>
|
|
288
|
-
Effect.fromResult(
|
|
288
|
+
Effect.fromResult(Base64.decode(base64)).pipe(
|
|
289
289
|
Effect.mapError(invalidMedia),
|
|
290
290
|
Effect.flatMap((bytes) => send(bytes, mimeType)),
|
|
291
291
|
),
|
package/src/internal/api.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Array as Arr, Data, Duration, Effect, Redacted, Result, Schema, pipe } from "effect"
|
|
2
|
-
import { HttpClient, HttpClientRequest } from "effect/
|
|
2
|
+
import { HttpClient, HttpClientRequest } from "effect/http"
|
|
3
3
|
import * as MessengerError from "@effect-uai/core/MessengerError"
|
|
4
4
|
import * as Multipart from "@effect-uai/core/Multipart"
|
|
5
5
|
|