@fungi.computer/tourtois 0.12.5 → 0.12.6

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.
@@ -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": "Internet access", icon: _jsx(Sigil, { name: "internet" }), label: "Internet access", description: "Each Computer\u2019s outside access.", trailing: summary.computerCount === null ? null : (_jsx(OverviewValue, { children: String(summary.computerCount) +
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: () => {
@@ -102,7 +102,7 @@ function navigationGroups(apps, sections, desktopOnly) {
102
102
  },
103
103
  {
104
104
  value: "computers",
105
- label: "Internet access",
105
+ label: "Computers",
106
106
  location: { category: "computers" },
107
107
  },
108
108
  {
@@ -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 === "media" ? (_jsxs("section", { className: "tourtois-settings-stack", "aria-label": "Image models", children: [_jsx(SectionHeading, { children: "Image models" }), _jsx("p", { className: "tourtois-settings-lede", children: "Prints creates images with Cloudflare Workers AI. Local Oyster trials have no Cloudflare account for image generation." }), _jsx("p", { children: "Deploy this Oyster to your Cloudflare account with Workers AI enabled, then open Prints there." }), _jsx(Button, { asChild: true, className: "w-fit", children: _jsx("a", { href: "https://github.com/fungi-computer/oyster#deploy-to-cloudflare", target: "_blank", rel: "noreferrer", children: "Set up image generation" }) })] })) : null] })) : null, location?.category === "channels" &&
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
- ...controls,
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) => {
@@ -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.5",
3
+ "version": "0.12.6",
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",
@@ -82,7 +82,7 @@
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.1",
85
+ "@fungi.computer/maosaico": "0.1.2",
86
86
  "@fungi.computer/parakeet": "0.11.3",
87
87
  "@fungi.computer/puffball": "0.5.5",
88
88
  "@fungi.computer/shiitake": "0.12.3",
@@ -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.2"
103
+ "@fungi.computer/nacre": "0.4.3"
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.5",
109
+ "@fungi.computer/oyster": "0.19.6",
110
110
  "@cloudflare/workers-types": "5.20260828.1",
111
111
  "@fungi.computer/forage": "0.3.5",
112
112
  "@fungi.computer/mycelium": "0.3.8",