@fungi.computer/tourtois 0.5.3 → 0.7.0

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/queries.d.ts CHANGED
@@ -4,6 +4,7 @@ export declare const tourtoisQueryKeys: {
4
4
  oysterComputerPage: (teamId: string, offset: number) => readonly ["tourtois", "oyster-computers", string, number];
5
5
  oysterSelectedComputer: (teamId: string) => readonly ["tourtois", "oyster-selected-computer", string];
6
6
  oysterInternetAccess: (teamId: string, computerId: string) => readonly ["tourtois", "oyster-internet-access", string, string];
7
+ oysterKeepAwake: (teamId: string, computerId: string) => readonly ["tourtois", "oyster-keep-awake", string, string];
7
8
  oysterEgressPolicy: (teamId: string) => readonly ["tourtois", "oyster-egress-policy", string];
8
9
  hostSettings: (workspaceId: string) => readonly ["tourtois", "host-settings", string];
9
10
  workbench: () => readonly ["tourtois", "workbench"];
package/dist/queries.js CHANGED
@@ -4,6 +4,7 @@ export const tourtoisQueryKeys = {
4
4
  oysterComputerPage: (teamId, offset) => [...tourtoisQueryKeys.oysterComputers(teamId), offset],
5
5
  oysterSelectedComputer: (teamId) => ["tourtois", "oyster-selected-computer", teamId],
6
6
  oysterInternetAccess: (teamId, computerId) => ["tourtois", "oyster-internet-access", teamId, computerId],
7
+ oysterKeepAwake: (teamId, computerId) => ["tourtois", "oyster-keep-awake", teamId, computerId],
7
8
  oysterEgressPolicy: (teamId) => ["tourtois", "oyster-egress-policy", teamId],
8
9
  hostSettings: (workspaceId) => ["tourtois", "host-settings", workspaceId],
9
10
  workbench: () => ["tourtois", "workbench"],
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ /**
3
+ * One object on a settings page, the Prints details rhythm: a 16px Sigil and
4
+ * its name, quiet detail under it, and its compact keys opposite. Computers,
5
+ * keys and connected servers all use this line.
6
+ */
7
+ export declare function SettingsItem({ icon, title, detail, actions, }: {
8
+ /** A Sigil at 16px; decorative, the title names the item. */
9
+ icon: ReactNode;
10
+ title: ReactNode;
11
+ detail?: ReactNode;
12
+ /** Compact keycaps or a status dot. */
13
+ actions?: ReactNode;
14
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * One object on a settings page, the Prints details rhythm: a 16px Sigil and
4
+ * its name, quiet detail under it, and its compact keys opposite. Computers,
5
+ * keys and connected servers all use this line.
6
+ */
7
+ export function SettingsItem({ icon, title, detail, actions, }) {
8
+ return (_jsxs("div", { className: "tourtois-settings-item", children: [_jsxs("div", { className: "tourtois-settings-item-copy", children: [_jsxs("h3", { className: "tourtois-settings-item-title", children: [_jsx("span", { className: "tourtois-settings-item-icon", "aria-hidden": "true", children: icon }), _jsx("span", { className: "tourtois-settings-item-name", children: title })] }), detail ? (_jsx("div", { className: "tourtois-settings-item-detail", children: detail })) : null] }), actions ? (_jsx("div", { className: "tourtois-settings-item-keys", children: actions })) : null] }));
9
+ }
@@ -1,6 +1,7 @@
1
1
  import type { ComponentType } from "react";
2
2
  import type { AgentMcpServersPort } from "./AgentMcpServers.js";
3
3
  import type { KeysPort } from "./Keys.js";
4
+ import type { ModelKeysPort } from "./ModelKeys.js";
4
5
  import type { MemberAvatarReader, MemberAvatarSave } from "./member-avatar.js";
5
6
  import { type SettingsLocation } from "./settings-routes.js";
6
7
  export type SettingsCategory = SettingsLocation["category"];
@@ -40,6 +41,8 @@ export type SettingsSectionPorts = Readonly<{
40
41
  computers?: ComponentType;
41
42
  /** Keys settings: the host's owner-direct Keys custody. */
42
43
  keys?: KeysPort;
44
+ /** Model keys beside Keys: the host's sealed provider keys and per-Agent models. */
45
+ modelKeys?: ModelKeysPort;
43
46
  /** The Team's role defaults. */
44
47
  defaults?: ComponentType<{
45
48
  onAccepted: Accepted;
@@ -8,7 +8,7 @@ export function offeredSettings(ceiling, ports) {
8
8
  avatar: ports.avatar !== undefined,
9
9
  connectors: ports.agentMcpServers !== undefined || ports.connectors !== undefined,
10
10
  computers: ports.computers !== undefined,
11
- keys: ports.keys !== undefined,
11
+ keys: ports.keys !== undefined || ports.modelKeys !== undefined,
12
12
  defaults: ports.defaults !== undefined,
13
13
  channels: ports.channels !== undefined,
14
14
  selling: ports.selling !== undefined,
package/dist/shell.css CHANGED
@@ -168,45 +168,116 @@
168
168
  color: var(--stipe-fg-muted);
169
169
  }
170
170
 
171
- .tourtois-sprite-styles {
171
+ /* A settings page in the Prints details rhythm: heading, lede, then its
172
+ items and forms md apart. Caps owns every control's material; these rules
173
+ only place them. */
174
+ .tourtois-settings-stack {
172
175
  display: grid;
173
- grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
174
- gap: var(--spacing-sm);
176
+ align-content: start;
177
+ gap: var(--spacing-md);
178
+ min-width: 0;
179
+ /* Columns field sets outside a Caps Form stack at phone width with it. */
180
+ container-type: inline-size;
181
+ }
182
+ .tourtois-settings-stack > .tourtois-settings-lede {
175
183
  margin: 0;
176
- padding: 0;
177
- border: 0;
178
184
  }
179
-
180
- .tourtois-sprite-styles .caps-choice-card,
181
- .tourtois-avatar-characters .caps-choice-card {
185
+ .tourtois-settings-notice {
186
+ display: flex;
187
+ flex-wrap: wrap;
188
+ align-items: center;
189
+ gap: var(--spacing-xs) var(--spacing-sm);
190
+ }
191
+ .tourtois-settings-notice > p {
192
+ margin: 0;
193
+ }
194
+ .tourtois-settings-empty {
195
+ font-size: var(--text-sm);
196
+ color: var(--stipe-fg-muted);
197
+ }
198
+ /* Each Computer: its SettingsItem over its compact switch rows. */
199
+ .tourtois-computer {
182
200
  display: grid;
183
- grid-template-columns: auto minmax(0, 1fr);
184
- gap: var(--spacing-xs);
185
- padding: var(--spacing-sm);
201
+ gap: var(--spacing-2xs);
202
+ min-width: 0;
186
203
  }
187
- .tourtois-sprite-styles .caps-choice-card-copy,
188
- .tourtois-avatar-characters .caps-choice-card-copy {
189
- display: contents;
204
+
205
+ /* SettingsItem: one object's line on a settings page. */
206
+ .tourtois-settings-item {
207
+ display: flex;
208
+ flex-wrap: wrap;
209
+ align-items: center;
210
+ justify-content: space-between;
211
+ gap: var(--spacing-xs) var(--spacing-sm);
212
+ min-width: 0;
190
213
  }
191
- .tourtois-sprite-styles .caps-choice-card-description,
192
- .tourtois-avatar-characters .caps-choice-card-description {
214
+ .list-row > .tourtois-settings-item {
193
215
  grid-column: 1 / -1;
194
- grid-row: 1;
195
216
  }
196
- .tourtois-sprite-styles .caps-radio,
197
- .tourtois-avatar-characters .caps-radio {
198
- grid-column: 1;
199
- grid-row: 2;
217
+ /* A key's grants: one row of check keys, then each chosen grant's targets. */
218
+ .tourtois-key-grants > .caps-fieldset-fields {
219
+ flex-direction: column;
220
+ flex-wrap: nowrap;
200
221
  }
201
- .tourtois-sprite-styles .caps-choice-card-title,
202
- .tourtois-avatar-characters .caps-choice-card-title {
203
- grid-column: 2;
204
- grid-row: 2;
222
+ .tourtois-key-targets {
223
+ display: grid;
224
+ gap: var(--spacing-2xs);
225
+ min-width: 0;
205
226
  }
206
-
207
- .tourtois-sprite-style-preview {
227
+ .tourtois-key-targets-label {
228
+ margin: 0;
229
+ font-size: var(--text-xs);
230
+ color: var(--stipe-fg-muted);
231
+ }
232
+ .tourtois-settings-item-copy {
233
+ display: grid;
234
+ flex: 1 1 12rem;
235
+ gap: var(--spacing-2xs);
236
+ min-width: 0;
237
+ }
238
+ .tourtois-settings-item-title {
239
+ display: flex;
240
+ align-items: center;
241
+ gap: var(--spacing-xs);
242
+ min-width: 0;
243
+ margin: 0;
244
+ font-size: var(--text-base);
245
+ font-weight: 600;
246
+ }
247
+ .tourtois-settings-item-icon {
248
+ display: inline-flex;
249
+ flex: none;
250
+ width: 1rem;
251
+ height: 1rem;
252
+ }
253
+ .tourtois-settings-item-icon > svg {
208
254
  width: 100%;
209
- aspect-ratio: 1;
255
+ height: 100%;
256
+ }
257
+ .tourtois-settings-item-name {
258
+ min-width: 0;
259
+ overflow: hidden;
260
+ text-overflow: ellipsis;
261
+ white-space: nowrap;
262
+ }
263
+ /* Detail lines sit under the name, past the Sigil, in quiet small type. */
264
+ .tourtois-settings-item-detail {
265
+ display: grid;
266
+ gap: var(--spacing-2xs);
267
+ min-width: 0;
268
+ padding-inline-start: calc(1rem + var(--spacing-xs));
269
+ font-size: var(--text-xs);
270
+ color: var(--stipe-fg-muted);
271
+ overflow-wrap: anywhere;
272
+ }
273
+ .tourtois-settings-item-detail > p {
274
+ margin: 0;
275
+ }
276
+ .tourtois-settings-item-keys {
277
+ display: flex;
278
+ flex-wrap: wrap;
279
+ align-items: center;
280
+ gap: var(--spacing-xs) var(--spacing-sm);
210
281
  }
211
282
 
212
283
  .tourtois-settings-app-content:not([hidden]),
@@ -780,56 +851,44 @@
780
851
  }
781
852
  .tourtois-avatar-controls {
782
853
  display: grid;
783
- gap: var(--spacing-lg);
854
+ gap: var(--spacing-md);
784
855
  min-width: 0;
856
+ container-type: inline-size;
857
+ margin: 0;
785
858
  padding: 0;
786
859
  border: 0;
787
860
  }
788
- .tourtois-avatar-characters {
789
- display: grid;
790
- grid-template-columns: repeat(3, minmax(0, 1fr));
791
- gap: var(--spacing-sm);
792
- }
793
- .tourtois-avatar-character-preview {
794
- display: block;
795
- height: 4.5rem;
861
+ /* Sprite previews fill their icon key's art box. */
862
+ .tourtois-avatar-key-art {
796
863
  width: 100%;
797
- }
798
- .tourtois-avatar-swatches,
799
- .tourtois-avatar-faces {
800
- display: flex;
801
- flex-wrap: wrap;
802
- gap: var(--spacing-sm);
803
- }
804
- .tourtois-avatar-swatch {
805
- display: grid;
806
- place-items: center;
807
- width: 2.75rem;
808
- height: 2.75rem;
809
- border: 1px solid var(--color-base-300);
810
- border-radius: 50%;
811
- cursor: pointer;
864
+ height: 100%;
812
865
  }
813
866
  .tourtois-avatar-custom-colours {
814
- display: grid;
815
- grid-template-columns: repeat(2, minmax(0, 1fr));
816
- gap: var(--spacing-md);
817
- margin-top: var(--spacing-md);
867
+ display: flex;
868
+ gap: var(--spacing-xs);
818
869
  }
819
870
  .tourtois-avatar-custom-colours input {
820
- min-height: 2.75rem;
871
+ width: 4rem;
872
+ min-height: 2.25rem;
821
873
  padding: 0.25rem;
822
874
  }
875
+ .tourtois-avatar-agents-panel {
876
+ display: grid;
877
+ gap: var(--spacing-sm);
878
+ min-width: 0;
879
+ }
823
880
  .tourtois-avatar-agents {
824
881
  display: grid;
825
882
  grid-template-columns: repeat(5, minmax(0, 1fr));
883
+ max-width: 20rem;
826
884
  text-align: center;
827
885
  font-size: var(--text-xs);
886
+ color: var(--stipe-fg-muted);
828
887
  }
829
888
  .tourtois-avatar-agent-preview {
830
889
  display: block;
831
890
  width: 100%;
832
- height: 3rem;
891
+ height: 2.5rem;
833
892
  }
834
893
  @media (max-width: 700px) {
835
894
  .tourtois-avatar-picker {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/tourtois",
3
- "version": "0.5.3",
3
+ "version": "0.7.0",
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",
@@ -73,15 +73,15 @@
73
73
  "LICENSE"
74
74
  ],
75
75
  "dependencies": {
76
- "@fungi.computer/agar": "0.6.1",
76
+ "@fungi.computer/agar": "0.7.1",
77
77
  "@fungi.computer/cairn": "0.1.0",
78
- "@fungi.computer/caps": "0.6.0",
78
+ "@fungi.computer/caps": "0.7.1",
79
79
  "@fungi.computer/ear-tag": "0.1.0",
80
- "@fungi.computer/gills": "0.2.0",
80
+ "@fungi.computer/gills": "0.2.1",
81
81
  "@fungi.computer/maosaico": "0.1.0",
82
- "@fungi.computer/parakeet": "0.7.0",
83
- "@fungi.computer/puffball": "0.4.0",
84
- "@fungi.computer/shiitake": "0.9.0",
82
+ "@fungi.computer/parakeet": "0.7.2",
83
+ "@fungi.computer/puffball": "0.5.1",
84
+ "@fungi.computer/shiitake": "0.9.2",
85
85
  "@fungi.computer/sigils": "0.3.0",
86
86
  "@fungi.computer/sprite": "0.2.0",
87
87
  "@fungi.computer/sprite-zdog": "0.3.0",
@@ -96,16 +96,16 @@
96
96
  "lucide-react": "0.460.0",
97
97
  "react-dom": "18.3.1",
98
98
  "zod": "4.4.3",
99
- "@fungi.computer/nacre": "0.1.2"
99
+ "@fungi.computer/nacre": "0.1.4"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "react": "^18.3.1 || ^19.2.0"
103
103
  },
104
104
  "devDependencies": {
105
- "@fungi.computer/oyster": "0.8.2",
105
+ "@fungi.computer/oyster": "0.10.0",
106
106
  "@cloudflare/workers-types": "5.20260828.1",
107
- "@fungi.computer/forage": "0.2.2",
108
- "@fungi.computer/mycelium": "0.3.2",
107
+ "@fungi.computer/forage": "0.3.1",
108
+ "@fungi.computer/mycelium": "0.3.4",
109
109
  "@ladle/react": "5.1.1",
110
110
  "@types/react": "18.3.3",
111
111
  "@vitejs/plugin-react": "6.1.1",
@@ -210,7 +210,7 @@
210
210
  },
211
211
  "smoke": {
212
212
  "status": "not-applicable",
213
- "reason": "The Bonsai standalone test:app-set and Hub browser proofs exercise the shell"
213
+ "reason": "The Oyster standalone capture:app-set review and Hub browser proofs exercise the shell"
214
214
  },
215
215
  "stranger": {
216
216
  "status": "not-applicable",
@@ -236,13 +236,13 @@
236
236
  "workbench:build": "ladle build --outDir ../../.botanical/tourtois-ladle",
237
237
  "test:overlay-layering": "node test/overlay-layering.browser.mjs",
238
238
  "test:window-new-version": "node test/window-new-version.browser.mjs",
239
- "test:workbench": "node test/workbench.browser.mjs && node test/desktop-gills.browser.mjs && node test/app-directory-isolation.browser.mjs && node test/workflows-launcher-icon.browser.mjs && node test/landing-bugs.browser.mjs && node test/desktop-under-windows.browser.mjs && node test/show-desktop.browser.mjs && node test/window-stack.browser.mjs && node test/region-layers.browser.mjs && node test/window-chrome-back.browser.mjs && node test/app-bar-menu.browser.mjs && node test/launcher-gill.browser.mjs && node test/desktop-storage.browser.mjs && node test/desktop-method-editing.browser.mjs && node test/phone-desktop.browser.mjs && node test/phone-layout.browser.mjs && node test/phone-app-switcher.browser.mjs && node test/computer-choice.browser.mjs",
239
+ "test:workbench": "node test/workbench.browser.mjs && node test/desktop-gills.browser.mjs && node test/app-directory-isolation.browser.mjs && node test/workflows-launcher-icon.browser.mjs && node test/landing-bugs.browser.mjs && node test/show-desktop.browser.mjs && node test/window-stack.browser.mjs && node test/window-chrome-back.browser.mjs && node test/app-bar-menu.browser.mjs && node test/launcher-gill.browser.mjs && node test/desktop-storage.browser.mjs && node test/desktop-method-editing.browser.mjs && node test/phone-layout.browser.mjs && node test/phone-app-switcher.browser.mjs && node test/computer-choice.browser.mjs",
240
240
  "test": "pnpm run test:unit && pnpm run test:merge",
241
241
  "test:settings-icons": "node --import tsx ../../tooling/repository/scripts/workbench-proofs.mjs --output ../../.botanical/tourtois-ladle --origin-env TOURTOIS_WORKBENCH_URL test/settings-icons.browser.mjs",
242
242
  "format:check": "node ../../tooling/repository/scripts/format-package-check.mjs",
243
243
  "lint:anti-slop": "node ../../tooling/repository/scripts/lint-package-anti-slop.mjs",
244
244
  "build:workbench": "pnpm run workbench:build",
245
- "test:nightly": "node test/permission-matrix.browser.mjs && node --import tsx ../../tooling/repository/scripts/workbench-proofs.mjs --output ../../.botanical/tourtois-ladle --origin-env TOURTOIS_WORKBENCH_URL test/member-avatar.browser.mjs test/settings-icons.browser.mjs",
245
+ "test:nightly": "node test/permission-matrix.browser.mjs && node --import tsx ../../tooling/repository/scripts/workbench-proofs.mjs --output ../../.botanical/tourtois-ladle --origin-env TOURTOIS_WORKBENCH_URL test/member-avatar.browser.mjs test/settings-icons.browser.mjs && node test/overlay-layering.browser.mjs",
246
246
  "test:unit": "vitest run",
247
247
  "test:merge": "node test/layout-backend.native.mjs && node --import tsx test/desktop-refresh.native.mjs",
248
248
  "test:app-call-permissions": "node --import tsx ../../tooling/repository/scripts/workbench-proofs.mjs --output ../../.botanical/tourtois-ladle --origin-env TOURTOIS_WORKBENCH_URL test/app-call-permissions.browser.mjs"