@fungi.computer/tourtois 0.12.6 → 0.12.8
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/dist/OysterComputers.js
CHANGED
|
@@ -18,6 +18,7 @@ import { useRef, useState } from "react";
|
|
|
18
18
|
import * as z from "zod";
|
|
19
19
|
import { requestIds } from "./team-directory.js";
|
|
20
20
|
import { tourtoisQueryKeys } from "./queries.js";
|
|
21
|
+
const missingRuntime = z.strictObject({ error: z.literal("no_runtime") });
|
|
21
22
|
const computerSwitchSchema = z.strictObject({ enabled: z.boolean() });
|
|
22
23
|
async function request(url, init) {
|
|
23
24
|
const response = await fetch(url, {
|
|
@@ -27,6 +28,9 @@ async function request(url, init) {
|
|
|
27
28
|
cache: "no-store",
|
|
28
29
|
redirect: "error",
|
|
29
30
|
});
|
|
31
|
+
if (response.status === 503 &&
|
|
32
|
+
missingRuntime.safeParse(await response.json()).success)
|
|
33
|
+
throw new AppError("This Computer has no runtime. Use the workspace Computer supplied by oyster try, or attach a runtime.", { code: "HOST_FAILURE", retryable: false });
|
|
30
34
|
if (!response.ok)
|
|
31
35
|
throw new AppError(`Computer request refused (${String(response.status)}).`, {
|
|
32
36
|
code: response.status === 401 || response.status === 403
|
package/dist/oyster-setup.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const oysterSetupSchema: z.ZodObject<{
|
|
|
25
25
|
unknown: "unknown";
|
|
26
26
|
"exec-only": "exec-only";
|
|
27
27
|
}>;
|
|
28
|
+
terminalReason: z.ZodOptional<z.ZodString>;
|
|
28
29
|
}, z.core.$strict>;
|
|
29
30
|
/** Where each need is fixed in this host's Settings. */
|
|
30
31
|
export declare function settingsForNeed(need: SetupNeed): SettingsLocation;
|
package/dist/oyster-setup.js
CHANGED
|
@@ -6,6 +6,7 @@ export const oysterSetupSchema = z.strictObject({
|
|
|
6
6
|
media: state,
|
|
7
7
|
git: state,
|
|
8
8
|
terminal: z.enum(["ready", "exec-only", "missing", "unknown"]),
|
|
9
|
+
terminalReason: z.string().optional(),
|
|
9
10
|
});
|
|
10
11
|
/** Where each need is fixed in this host's Settings. */
|
|
11
12
|
export function settingsForNeed(need) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/tourtois",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.8",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"description": "Tourtois: the trusted desktop shell for Oyster and Fungi, with host-supplied Settings sections",
|
|
6
6
|
"type": "module",
|
|
@@ -77,15 +77,15 @@
|
|
|
77
77
|
"LICENSE"
|
|
78
78
|
],
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@fungi.computer/agar": "0.9.
|
|
80
|
+
"@fungi.computer/agar": "0.9.1",
|
|
81
81
|
"@fungi.computer/cairn": "0.1.0",
|
|
82
82
|
"@fungi.computer/caps": "0.10.1",
|
|
83
83
|
"@fungi.computer/ear-tag": "0.1.0",
|
|
84
84
|
"@fungi.computer/gills": "0.3.0",
|
|
85
85
|
"@fungi.computer/maosaico": "0.1.2",
|
|
86
|
-
"@fungi.computer/parakeet": "0.11.
|
|
86
|
+
"@fungi.computer/parakeet": "0.11.5",
|
|
87
87
|
"@fungi.computer/puffball": "0.5.5",
|
|
88
|
-
"@fungi.computer/shiitake": "0.12.
|
|
88
|
+
"@fungi.computer/shiitake": "0.12.4",
|
|
89
89
|
"@fungi.computer/sigils": "0.3.0",
|
|
90
90
|
"@fungi.computer/sprite": "0.2.2",
|
|
91
91
|
"@fungi.computer/sprite-zdog": "0.3.2",
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
"lucide-react": "0.460.0",
|
|
101
101
|
"react-dom": "18.3.1",
|
|
102
102
|
"zod": "4.4.3",
|
|
103
|
-
"@fungi.computer/nacre": "0.4.
|
|
103
|
+
"@fungi.computer/nacre": "0.4.4"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"react": "^18.3.1 || ^19.2.0"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@fungi.computer/oyster": "0.19.
|
|
109
|
+
"@fungi.computer/oyster": "0.19.9",
|
|
110
110
|
"@cloudflare/workers-types": "5.20260828.1",
|
|
111
111
|
"@fungi.computer/forage": "0.3.5",
|
|
112
112
|
"@fungi.computer/mycelium": "0.3.8",
|