@fungi.computer/parakeet 0.17.0 → 0.17.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,3 +1,4 @@
1
+ import { failureMessage } from "@fungi.computer/agar/errors";
1
2
  import { openAppAgent } from "@fungi.computer/agar/agents";
2
3
  import { seedSessionQuery } from "./headless.js";
3
4
  import { createShiitakeClient, } from "@fungi.computer/shiitake/client";
@@ -183,9 +184,13 @@ export function createConversationOpeningOwner(options) {
183
184
  if (isCurrent(opening)) {
184
185
  pending = null;
185
186
  options.onPending(null);
186
- options.onError(fromOpenRequest
187
- ? `That Session could not be opened. ${current ? "The current conversation remains open." : "Choose another Session from the list."}`
188
- : `Could not open this Session${cause instanceof Error ? `: ${cause.message}` : ""}. ${current ? "The previous conversation remains open." : "Try opening it again."}`);
187
+ options.onError(`${failureMessage("Could not open this Session", cause)} ${current
188
+ ? fromOpenRequest
189
+ ? "The current conversation remains open."
190
+ : "The previous conversation remains open."
191
+ : fromOpenRequest
192
+ ? "Choose another Session from the list."
193
+ : "Try opening it again."}`);
189
194
  }
190
195
  }
191
196
  })();
@@ -8,7 +8,8 @@ function visibleState(held, snapshot) {
8
8
  ? {
9
9
  ...held,
10
10
  phase: "refused",
11
- refusal: snapshot.failure ?? "Something went wrong.",
11
+ refusal: snapshot.failure ??
12
+ "The host marked the answer failed and gave no reason.",
12
13
  }
13
14
  : { ...held, phase: "sending" };
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/parakeet",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "private": false,
6
6
  "description": "Standalone React composer for a typed Shiitake Session",
@@ -68,14 +68,14 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@earendil-works/pi-ai": "1.5.2",
71
- "@fungi.computer/agar": "0.27.0",
71
+ "@fungi.computer/agar": "0.27.1",
72
72
  "@fungi.computer/bird-dog": "0.3.8",
73
73
  "@fungi.computer/cairn": "0.1.0",
74
74
  "@fungi.computer/caps": "0.12.8",
75
75
  "@fungi.computer/gills": "0.4.0",
76
76
  "@fungi.computer/knapsack": "0.4.26",
77
77
  "@fungi.computer/mule": "0.3.0",
78
- "@fungi.computer/shiitake": "0.22.2",
78
+ "@fungi.computer/shiitake": "0.22.3",
79
79
  "@fungi.computer/sigils": "0.3.2",
80
80
  "@fungi.computer/sprite": "0.2.2",
81
81
  "@fungi.computer/sprite-zdog": "0.3.2",