@fungi.computer/parakeet 0.11.10 → 0.11.12

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.
@@ -63,9 +63,17 @@ export const TimelineItem = memo(function TimelineItem({ item, onDismissFailed,
63
63
  const tries = item.repeatCount ?? 1;
64
64
  return (_jsxs("div", { "data-failure": item.id, children: [_jsx(FailureLine, { message: tries > 1
65
65
  ? `${modelFailure.message} · ${String(tries)} tries`
66
- : modelFailure.message, ...(onRetry === undefined || modelFailure.setup
67
- ? {}
68
- : { onRetry, retryAriaLabel: "Retry prompt" }) }), _jsx("div", { className: "px-3 text-xs text-dim", ...(item.providerError === undefined
66
+ : modelFailure.message, ...(modelFailure.toolsUnsupported
67
+ ? facts.modelSetup === undefined
68
+ ? {}
69
+ : {
70
+ onRetry: facts.modelSetup.fix.onSelect,
71
+ retryLabel: "Choose model",
72
+ retryAriaLabel: "Choose model",
73
+ }
74
+ : onRetry === undefined || modelFailure.setup
75
+ ? {}
76
+ : { onRetry, retryAriaLabel: "Retry prompt" }) }), _jsx("div", { className: "px-3 text-xs text-dim", ...(item.providerError === undefined
69
77
  ? {}
70
78
  : { "data-provider-error": item.id }), children: _jsxs("details", { children: [_jsx("summary", { children: "Details" }), _jsx("div", { children: modelFailure.detail }), item.providerError === undefined ? null : (_jsx("pre", { className: "whitespace-pre-wrap", children: item.providerError }))] }) })] }));
71
79
  }
@@ -33,6 +33,8 @@ export type PlainModelFailure = Readonly<{
33
33
  unreachable: boolean;
34
34
  /** No model provider is connected: the fix is setup, not a retry. */
35
35
  setup: boolean;
36
+ /** The saved choice cannot run Agent tools; changing models is the fix. */
37
+ toolsUnsupported: boolean;
36
38
  message: string;
37
39
  detail: string;
38
40
  }>;
@@ -9,6 +9,7 @@ export function plainModelFailure(text) {
9
9
  return {
10
10
  unreachable: false,
11
11
  setup: false,
12
+ toolsUnsupported: false,
12
13
  message: "The run couldn’t finish",
13
14
  detail: text,
14
15
  };
@@ -19,19 +20,30 @@ export function plainModelFailure(text) {
19
20
  return {
20
21
  unreachable: false,
21
22
  setup: true,
23
+ toolsUnsupported: false,
22
24
  message: "No model is connected",
23
25
  detail: text,
24
26
  };
27
+ if (code === "tools_unsupported")
28
+ return {
29
+ unreachable: false,
30
+ setup: false,
31
+ toolsUnsupported: true,
32
+ message: "This model can’t use tools here. Pick one marked tools.",
33
+ detail: text,
34
+ };
25
35
  return code === "provider_unavailable"
26
36
  ? {
27
37
  unreachable: true,
28
38
  setup: false,
39
+ toolsUnsupported: false,
29
40
  message: "Couldn’t reach the model",
30
41
  detail: text,
31
42
  }
32
43
  : {
33
44
  unreachable: false,
34
45
  setup: false,
46
+ toolsUnsupported: false,
35
47
  message: "The model request failed",
36
48
  detail: text,
37
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/parakeet",
3
- "version": "0.11.10",
3
+ "version": "0.11.12",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "private": false,
6
6
  "description": "Standalone React composer for a typed Shiitake Session",
@@ -66,7 +66,7 @@
66
66
  "@fungi.computer/caps": "0.10.5",
67
67
  "@fungi.computer/gills": "0.3.0",
68
68
  "@fungi.computer/knapsack": "0.4.9",
69
- "@fungi.computer/shiitake": "0.12.4",
69
+ "@fungi.computer/shiitake": "0.13.0",
70
70
  "@fungi.computer/sigils": "0.3.1",
71
71
  "@fungi.computer/sprite": "0.2.2",
72
72
  "@fungi.computer/sprite-zdog": "0.3.2",