@ours.network/tg-connector 0.5.1-nightly.2 → 1.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 CHANGED
@@ -411,7 +411,8 @@ tokens, so do not expose the control port off-host.
411
411
  The connector used to be a **managed node**: it advertised an app manifest
412
412
  (`network.ours.telegram-connector`) and the ours messenger could bind to it over
413
413
  the a2a_control channel and edit the allowed chat id and denial message live.
414
- That is gone — messenger manageability was removed by ruling, and with it the
414
+ That was removed when the connector moved to the shared-daemon client model,
415
+ along with the
415
416
  `cp_invite` and `bind_proxy` commands, the `get_manifest` / `get_config` /
416
417
  `set_config` verbs, and the bind ceremony.
417
418
 
package/dist/connector.js CHANGED
@@ -26167,8 +26167,8 @@ var TelegramClient = class {
26167
26167
  }
26168
26168
  }
26169
26169
  // Deliver a file to a chat as a document — preserves the original filename and
26170
- // works for any media type (photos arrive uncompressed; see design D3/OQ4 for
26171
- // per-type rendering). Optionally into a forum topic. Multipart/form-data, so
26170
+ // works for any media type; photos arrive uncompressed. Optionally sends into
26171
+ // a forum topic. Multipart/form-data, so
26172
26172
  // we let fetch set the Content-Type boundary (do not set it ourselves).
26173
26173
  async sendDocument(chatId, bytes, filename, mime, threadId, opts = {}) {
26174
26174
  const thread = threadId === void 0 || threadId === "" ? void 0 : Number(threadId);
@@ -27604,7 +27604,7 @@ async function restoreConnection(name) {
27604
27604
  if (!cfg.leaseToken) {
27605
27605
  cfg.leaseToken = randomBytes(24).toString("hex");
27606
27606
  writeMeta(dir, cfg);
27607
- log(`[${name}] minted a lease token (route predates the daemon-attach conversion)`);
27607
+ log(`[${name}] minted a lease token for a legacy route`);
27608
27608
  }
27609
27609
  const client = await clientFor(cfg);
27610
27610
  const conn = makeConnection(client, dir, cfg, bot);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ours.network/tg-connector",
3
- "version": "0.5.1-nightly.2",
3
+ "version": "1.0.0",
4
4
  "description": "Bridge Telegram bots to ours.network agents — attaches to an already-running ours daemon and bridges one Telegram chat/topic to one agent per route. Run `ours-tg-connector add_new_connection`.",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-Apache-2.0",