@fungi.computer/tourtois 0.12.5 → 0.12.7
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 +4 -0
- package/dist/SettingsHome.js +1 -1
- package/dist/SettingsNavigation.js +1 -1
- package/dist/SystemSettings.js +3 -1
- package/dist/oyster-platform-controls.js +5 -1
- package/dist/oyster-setup.d.ts +1 -0
- package/dist/oyster-setup.js +1 -0
- package/dist/shell-host.js +1 -0
- package/package.json +7 -7
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/SettingsHome.js
CHANGED
|
@@ -30,7 +30,7 @@ export function SettingsHome({ team, summary, sections, desktopOnly = false, onN
|
|
|
30
30
|
category: "connectors",
|
|
31
31
|
target: { kind: "list" },
|
|
32
32
|
});
|
|
33
|
-
} }) })) : null, offers("computers") ? (_jsx(DataRow, { className: "p-0", children: _jsx(ActionRow, { "aria-label": "
|
|
33
|
+
} }) })) : null, offers("computers") ? (_jsx(DataRow, { className: "p-0", children: _jsx(ActionRow, { "aria-label": "Computers", icon: _jsx(Sigil, { name: "internet" }), label: "Computers", description: "Each Computer\u2019s outside access.", trailing: summary.computerCount === null ? null : (_jsx(OverviewValue, { children: String(summary.computerCount) +
|
|
34
34
|
(summary.computerCount === 1
|
|
35
35
|
? " Computer"
|
|
36
36
|
: " Computers") })), onClick: () => {
|
package/dist/SystemSettings.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AppCallPermissions } from "./AppCallPermissions.js";
|
|
3
3
|
import { SectionHeading } from "@fungi.computer/caps/blocks/section-heading";
|
|
4
|
+
import { FormFooter } from "@fungi.computer/caps/components/field";
|
|
5
|
+
import { Prose } from "@fungi.computer/caps/components/prose";
|
|
4
6
|
import { AppDesktopSettings, } from "./AppDesktopSettings.js";
|
|
5
7
|
import { addressKey, } from "@fungi.computer/nacre/app-directory";
|
|
6
8
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -148,7 +150,7 @@ export function SystemSettings({ location: requestedLocation, sections: ceiling,
|
|
|
148
150
|
? "Model setup"
|
|
149
151
|
: keysTarget === "media"
|
|
150
152
|
? "Image setup"
|
|
151
|
-
: "Keys settings", className: "tourtois-settings-content tourtois-settings-stack", children: [keysTarget === "all" && keys !== undefined ? (_jsx(Keys, { port: keys, apps: keyableApps })) : null, keysTarget !== "media" && ports.modelKeys !== undefined ? (_jsx(ModelKeys, { port: ports.modelKeys, focus: keysTarget === "model" })) : null, keysTarget
|
|
153
|
+
: "Keys settings", className: "tourtois-settings-content tourtois-settings-stack", children: [keysTarget === "all" && keys !== undefined ? (_jsx(Keys, { port: keys, apps: keyableApps })) : null, keysTarget !== "media" && ports.modelKeys !== undefined ? (_jsx(ModelKeys, { port: ports.modelKeys, focus: keysTarget === "model" })) : null, keysTarget !== "model" && ports.modelKeys !== undefined ? (_jsxs("section", { className: "tourtois-settings-stack", "aria-label": "Image models", children: [_jsx(SectionHeading, { children: "Image models" }), _jsx("p", { className: "tourtois-settings-lede", children: "Flux images use Cloudflare Workers AI." }), _jsxs(Prose, { children: [_jsx("p", { children: "Local trials can upload images. To generate:" }), _jsxs("ol", { children: [_jsx("li", { children: "Enable Workers AI in your Cloudflare account." }), _jsx("li", { children: "Deploy this Oyster using the setup guide." }), _jsx("li", { children: "Open Prints at the deployed Oyster address." })] })] }), _jsx(FormFooter, { divider: false, children: _jsx(Button, { asChild: true, children: _jsx("a", { href: "https://docs.fungi.computer/guides/run-your-own-oyster/#image-models", target: "_blank", rel: "noreferrer", children: "Set up Cloudflare Workers AI" }) }) })] })) : null] })) : null, location?.category === "channels" &&
|
|
152
154
|
ports.channels !== undefined ? (_jsx(ports.channels, {})) : null, defaults && ports.defaults !== undefined ? (_jsx("div", { className: "tourtois-settings-content", children: _jsx(ports.defaults, { onAccepted: onAccepted }) })) : null, appSection && appKey === null ? (_jsxs("section", { className: "tourtois-settings-content", "aria-label": "Choose an App", children: [_jsx(SectionHeading, { className: "tourtois-settings-app-heading", children: desktopOnly ? "App desktop" : "App permissions" }), _jsx(DataList, { density: "compact", "aria-label": "Apps to review", children: apps.map((app) => (_jsx(DataRow, { className: "p-0", children: _jsx(ActionRow, { label: app.displayName ?? app.appId, icon: _jsx(AppIcon, { roles: app.roles, icon: app.icon }), onClick: () => {
|
|
153
155
|
onNavigate({
|
|
154
156
|
category: "apps",
|
|
@@ -315,7 +315,11 @@ export const mountPlatformControls = (root, input) => {
|
|
|
315
315
|
} }) }));
|
|
316
316
|
return Promise.resolve({
|
|
317
317
|
controls: {
|
|
318
|
-
|
|
318
|
+
sections: controls.sections,
|
|
319
|
+
subscribeSettingsClosed: controls.subscribeSettingsClosed,
|
|
320
|
+
subscribeChanges: controls.subscribeChanges,
|
|
321
|
+
attachDesktopSettings: controls.attachDesktopSettings,
|
|
322
|
+
requestAppAccess: controls.requestAppAccess,
|
|
319
323
|
setup,
|
|
320
324
|
parseSettings: (value) => S.decodeUnknownSync(S.Json)(settingsLocationSchema.parse(value)),
|
|
321
325
|
retryInstall: async (installationId) => {
|
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/dist/shell-host.js
CHANGED
|
@@ -259,6 +259,7 @@ export function createTourtoisShell(workbench) {
|
|
|
259
259
|
const changeListeners = new Set();
|
|
260
260
|
let watching;
|
|
261
261
|
const platform = {
|
|
262
|
+
retryInstall: workbench.retryInstall?.bind(workbench),
|
|
262
263
|
registerDesktopSettings: (handler) => workbench.registerDesktopSettings(handler),
|
|
263
264
|
openSettings: (location) => {
|
|
264
265
|
// The host renders Settings itself. Restore our own invoker only after
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/tourtois",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.7",
|
|
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
|
-
"@fungi.computer/maosaico": "0.1.
|
|
86
|
-
"@fungi.computer/parakeet": "0.11.
|
|
85
|
+
"@fungi.computer/maosaico": "0.1.2",
|
|
86
|
+
"@fungi.computer/parakeet": "0.11.4",
|
|
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.7",
|
|
110
110
|
"@cloudflare/workers-types": "5.20260828.1",
|
|
111
111
|
"@fungi.computer/forage": "0.3.5",
|
|
112
112
|
"@fungi.computer/mycelium": "0.3.8",
|