@ouro.bot/cli 0.1.0-alpha.744 → 0.1.0-alpha.745

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/changelog.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.745",
6
+ "changes": [
7
+ "Tell newly admitted Telegram contacts to resend attachments that stayed safely undownloaded during unknown-sender quarantine."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.744",
6
12
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.744",
2
+ "runtimeVersion": "0.1.0-alpha.745",
3
3
  "bundleSchemaVersion": 3,
4
4
  "lastUpdated": "2026-08-30T00:00:00.000Z"
5
5
  }
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <Container version="2">
3
3
  <Name>Mendelow Cloud Butler</Name>
4
- <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.744</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.745</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -46,6 +46,7 @@ const telegram_client_1 = require("./telegram-client");
46
46
  exports.NEWLY_ADMITTED_ORIENTATION = {
47
47
  kind: "newly_admitted",
48
48
  instruction: "welcome_and_explain_capabilities",
49
+ attachmentsNeedResend: false,
49
50
  };
50
51
  const ACTIVE_STATUSES = new Set([
51
52
  "pending", "approved", "friend_bound", "ingress_committed", "turn_queued",
@@ -562,7 +563,10 @@ function createTelegramAdmissionController(options) {
562
563
  hasAttachments: record.hasAttachments,
563
564
  synthetic: false,
564
565
  });
565
- const committed = { ...committedBase, orientation: exports.NEWLY_ADMITTED_ORIENTATION };
566
+ const committed = {
567
+ ...committedBase,
568
+ orientation: { ...exports.NEWLY_ADMITTED_ORIENTATION, attachmentsNeedResend: record.hasAttachments },
569
+ };
566
570
  if (committed.admissionId !== record.id || committed.friendId !== record.friendId || committed.reference !== `telegram-admission:${record.id}`) {
567
571
  throw new Error("Telegram admission committed ingress changed identity");
568
572
  }
@@ -574,7 +578,14 @@ function createTelegramAdmissionController(options) {
574
578
  }
575
579
  if (!record.friendId || !record.ingressSessionKey || !record.ingressEventId || !record.ingressReference)
576
580
  throw new Error("Telegram admission queued work lost its durable reference");
577
- const settlement = await options.dispatchApprovedWork({ admissionId: record.id, friendId: record.friendId, sessionKey: record.ingressSessionKey, eventId: record.ingressEventId, reference: record.ingressReference, orientation: exports.NEWLY_ADMITTED_ORIENTATION });
581
+ const settlement = await options.dispatchApprovedWork({
582
+ admissionId: record.id,
583
+ friendId: record.friendId,
584
+ sessionKey: record.ingressSessionKey,
585
+ eventId: record.ingressEventId,
586
+ reference: record.ingressReference,
587
+ orientation: { ...exports.NEWLY_ADMITTED_ORIENTATION, attachmentsNeedResend: record.hasAttachments },
588
+ });
578
589
  if (settlement === "indeterminate") {
579
590
  await compensateFriend(record);
580
591
  return options.store.compareAndSwap({ admissionId: record.id, expectedStatus: "turn_queued", nextStatus: "indeterminate" });
@@ -1094,7 +1094,9 @@ function createTelegramSenseApp(options) {
1094
1094
  source: {
1095
1095
  kind: "telegram_newly_admitted",
1096
1096
  authority: "presentation_only",
1097
- routingHint: "This is this person’s first admitted turn. Welcome them warmly and briefly explain what the household Butler can help with before answering their request.",
1097
+ routingHint: input.orientation.attachmentsNeedResend
1098
+ ? "This is this person’s first admitted turn. Welcome them warmly and briefly explain what the household Butler can help with before answering their request. Their original message included attachments that were not downloaded; ask them to resend those attachments now."
1099
+ : "This is this person’s first admitted turn. Welcome them warmly and briefly explain what the household Butler can help with before answering their request.",
1098
1100
  },
1099
1101
  }
1100
1102
  : undefined;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.744",
3
+ "version": "0.1.0-alpha.745",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@ouro.bot/cli",
9
- "version": "0.1.0-alpha.744",
9
+ "version": "0.1.0-alpha.745",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.78.0",
12
12
  "@azure/identity": "^4.13.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.744",
3
+ "version": "0.1.0-alpha.745",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },