@effect-uai/telegram 0.16.0 → 0.18.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.
@@ -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.16.0",
3
+ "version": "0.18.0",
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.0.0-rc.111",
47
+ "effect": "4.0.1",
48
48
  "typescript": "^7.0.2",
49
- "@effect-uai/core": "0.16.0"
49
+ "@effect-uai/core": "0.18.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@effect-uai/core": ">=0.15.0 <1",
53
- "effect": ">=4.0.0-rc.111 <5.0.0"
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 { HttpClient } from "effect/unstable/http"
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(Encoding.decodeBase64(base64)).pipe(
288
+ Effect.fromResult(Base64.decode(base64)).pipe(
289
289
  Effect.mapError(invalidMedia),
290
290
  Effect.flatMap((bytes) => send(bytes, mimeType)),
291
291
  ),
@@ -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/unstable/http"
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