@poncho-ai/sdk 1.4.0 → 1.4.1

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,5 @@
1
1
 
2
- > @poncho-ai/sdk@1.4.0 build /home/runner/work/poncho-ai/poncho-ai/packages/sdk
2
+ > @poncho-ai/sdk@1.4.1 build /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
3
3
  > tsup src/index.ts --format esm --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -7,8 +7,8 @@
7
7
  CLI tsup v8.5.1
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
- ESM dist/index.js 10.57 KB
11
- ESM ⚡️ Build success in 17ms
10
+ ESM dist/index.js 11.44 KB
11
+ ESM ⚡️ Build success in 42ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 1324ms
14
- DTS dist/index.d.ts 20.32 KB
13
+ DTS ⚡️ Build success in 922ms
14
+ DTS dist/index.d.ts 21.50 KB
@@ -0,0 +1,6 @@
1
+
2
+ > @poncho-ai/sdk@0.6.0 lint /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
3
+ > eslint src/
4
+
5
+ sh: eslint: command not found
6
+  ELIFECYCLE  Command failed.
@@ -0,0 +1,14 @@
1
+
2
+ > @poncho-ai/sdk@1.1.1 test /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
3
+ > vitest
4
+
5
+
6
+  RUN  v1.6.1 /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
7
+
8
+ ✓ test/sdk.test.ts  (1 test) 3ms
9
+
10
+  Test Files  1 passed (1)
11
+  Tests  1 passed (1)
12
+  Start at  17:47:36
13
+  Duration  992ms (transform 343ms, setup 0ms, collect 429ms, tests 3ms, environment 0ms, prepare 129ms)
14
+
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @poncho-ai/sdk
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`de28ef5`](https://github.com/cesr/poncho-ai/commit/de28ef5acceed921269d15816acd392f5208f03d) Thanks [@cesr](https://github.com/cesr)! - Add Telegram messaging adapter with private/group chat support, file attachments, /new command, and typing indicators.
8
+
3
9
  ## 1.4.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -321,6 +321,9 @@ declare const ONBOARDING_FIELDS: readonly [{
321
321
  }, {
322
322
  readonly value: "slack";
323
323
  readonly label: "Slack";
324
+ }, {
325
+ readonly value: "telegram";
326
+ readonly label: "Telegram";
324
327
  }, {
325
328
  readonly value: "resend";
326
329
  readonly label: "Email (Resend)";
@@ -356,6 +359,38 @@ declare const ONBOARDING_FIELDS: readonly [{
356
359
  readonly fieldId: "messaging.platform";
357
360
  readonly equals: "slack";
358
361
  };
362
+ }, {
363
+ readonly id: "env.TELEGRAM_BOT_TOKEN";
364
+ readonly domain: "messaging";
365
+ readonly target: "env";
366
+ readonly path: "TELEGRAM_BOT_TOKEN";
367
+ readonly kind: "string";
368
+ readonly scopes: ["full"];
369
+ readonly label: "Telegram Bot Token";
370
+ readonly prompt: "Telegram Bot Token (from @BotFather)";
371
+ readonly defaultValue: "";
372
+ readonly placeholder: "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11";
373
+ readonly secret: true;
374
+ readonly dependsOn: {
375
+ readonly fieldId: "messaging.platform";
376
+ readonly equals: "telegram";
377
+ };
378
+ }, {
379
+ readonly id: "env.TELEGRAM_WEBHOOK_SECRET";
380
+ readonly domain: "messaging";
381
+ readonly target: "env";
382
+ readonly path: "TELEGRAM_WEBHOOK_SECRET";
383
+ readonly kind: "string";
384
+ readonly scopes: ["full"];
385
+ readonly label: "Telegram Webhook Secret";
386
+ readonly prompt: "Webhook secret token (optional, recommended for security)";
387
+ readonly defaultValue: "";
388
+ readonly placeholder: "my-secret-token";
389
+ readonly secret: true;
390
+ readonly dependsOn: {
391
+ readonly fieldId: "messaging.platform";
392
+ readonly equals: "telegram";
393
+ };
359
394
  }, {
360
395
  readonly id: "env.RESEND_API_KEY";
361
396
  readonly domain: "messaging";
package/dist/index.js CHANGED
@@ -250,6 +250,7 @@ var ONBOARDING_FIELDS = [
250
250
  options: [
251
251
  { value: "none", label: "None" },
252
252
  { value: "slack", label: "Slack" },
253
+ { value: "telegram", label: "Telegram" },
253
254
  { value: "resend", label: "Email (Resend)" }
254
255
  ]
255
256
  },
@@ -280,6 +281,34 @@ var ONBOARDING_FIELDS = [
280
281
  secret: true,
281
282
  dependsOn: { fieldId: "messaging.platform", equals: "slack" }
282
283
  },
284
+ {
285
+ id: "env.TELEGRAM_BOT_TOKEN",
286
+ domain: "messaging",
287
+ target: "env",
288
+ path: "TELEGRAM_BOT_TOKEN",
289
+ kind: "string",
290
+ scopes: ["full"],
291
+ label: "Telegram Bot Token",
292
+ prompt: "Telegram Bot Token (from @BotFather)",
293
+ defaultValue: "",
294
+ placeholder: "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11",
295
+ secret: true,
296
+ dependsOn: { fieldId: "messaging.platform", equals: "telegram" }
297
+ },
298
+ {
299
+ id: "env.TELEGRAM_WEBHOOK_SECRET",
300
+ domain: "messaging",
301
+ target: "env",
302
+ path: "TELEGRAM_WEBHOOK_SECRET",
303
+ kind: "string",
304
+ scopes: ["full"],
305
+ label: "Telegram Webhook Secret",
306
+ prompt: "Webhook secret token (optional, recommended for security)",
307
+ defaultValue: "",
308
+ placeholder: "my-secret-token",
309
+ secret: true,
310
+ dependsOn: { fieldId: "messaging.platform", equals: "telegram" }
311
+ },
283
312
  {
284
313
  id: "env.RESEND_API_KEY",
285
314
  domain: "messaging",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/sdk",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Core types and utilities for building Poncho skills",
5
5
  "repository": {
6
6
  "type": "git",
@@ -295,6 +295,7 @@ export const ONBOARDING_FIELDS = [
295
295
  options: [
296
296
  { value: "none", label: "None" },
297
297
  { value: "slack", label: "Slack" },
298
+ { value: "telegram", label: "Telegram" },
298
299
  { value: "resend", label: "Email (Resend)" },
299
300
  ],
300
301
  },
@@ -325,6 +326,34 @@ export const ONBOARDING_FIELDS = [
325
326
  secret: true,
326
327
  dependsOn: { fieldId: "messaging.platform", equals: "slack" },
327
328
  },
329
+ {
330
+ id: "env.TELEGRAM_BOT_TOKEN",
331
+ domain: "messaging",
332
+ target: "env",
333
+ path: "TELEGRAM_BOT_TOKEN",
334
+ kind: "string",
335
+ scopes: ["full"],
336
+ label: "Telegram Bot Token",
337
+ prompt: "Telegram Bot Token (from @BotFather)",
338
+ defaultValue: "",
339
+ placeholder: "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11",
340
+ secret: true,
341
+ dependsOn: { fieldId: "messaging.platform", equals: "telegram" },
342
+ },
343
+ {
344
+ id: "env.TELEGRAM_WEBHOOK_SECRET",
345
+ domain: "messaging",
346
+ target: "env",
347
+ path: "TELEGRAM_WEBHOOK_SECRET",
348
+ kind: "string",
349
+ scopes: ["full"],
350
+ label: "Telegram Webhook Secret",
351
+ prompt: "Webhook secret token (optional, recommended for security)",
352
+ defaultValue: "",
353
+ placeholder: "my-secret-token",
354
+ secret: true,
355
+ dependsOn: { fieldId: "messaging.platform", equals: "telegram" },
356
+ },
328
357
  {
329
358
  id: "env.RESEND_API_KEY",
330
359
  domain: "messaging",