@fungi.computer/tourtois 0.12.22 → 0.13.1
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/ModelKeys.js +1 -1
- package/dist/app-directory.d.ts +1 -0
- package/dist/desktop/Desktop.js +19 -1
- package/dist/desktop/welcome.css +41 -1
- package/dist/shell.css +55 -1
- package/package.json +5 -5
package/dist/ModelKeys.js
CHANGED
|
@@ -89,7 +89,7 @@ export function ModelKeys({ port, focus = false, }) {
|
|
|
89
89
|
await port.addKey(draft);
|
|
90
90
|
await refresh();
|
|
91
91
|
setFormKey((current) => current + 1);
|
|
92
|
-
} }, formKey), _jsx(SectionHeading, { children: "Agent models" }), view.data.models === "missing" ? (_jsx("p", { role: "status", children: "No model is connected yet. The instance default cannot reply until you add a model key." })) : null, _jsxs(DataList, { density: "compact", "aria-label": "Agent models", children: [_jsx(DataListHeading, { children: "Current choice" }), agents.length === 0 ? (_jsx(DataRow, { className: "tourtois-settings-empty", children: "Create an Agent first." })) : null, agents.map((agent) => {
|
|
92
|
+
} }, formKey), _jsx(SectionHeading, { children: "Agent models" }), view.data.models === "missing" ? (_jsx("p", { role: "status", className: "tourtois-settings-note", children: "No model is connected yet. The instance default cannot reply until you add a model key." })) : null, _jsxs(DataList, { density: "compact", "aria-label": "Agent models", children: [_jsx(DataListHeading, { children: "Current choice" }), agents.length === 0 ? (_jsx(DataRow, { className: "tourtois-settings-empty", children: "Create an Agent first." })) : null, agents.map((agent) => {
|
|
93
93
|
const selectedKey = keys.find((key) => key.keyId === agent.choice?.keyId);
|
|
94
94
|
const catalog = Object.entries(view.data.catalogs).find(([provider]) => provider === agent.choice?.model.providerId)?.[1];
|
|
95
95
|
const name = catalog?.find((model) => model.id === agent.choice?.model.modelId)?.name;
|
package/dist/app-directory.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ export declare function useAppDirectory(teamId: string, directoryReader: () => P
|
|
|
109
109
|
installationId: string;
|
|
110
110
|
displayName: string;
|
|
111
111
|
state: "failed" | "installing" | "needs-runtime";
|
|
112
|
+
appId?: string | undefined;
|
|
112
113
|
reason?: {
|
|
113
114
|
code: "unknown" | "build_failed" | "network" | "unsupported";
|
|
114
115
|
message: string;
|
package/dist/desktop/Desktop.js
CHANGED
|
@@ -195,6 +195,22 @@ function ArrangedDesktop({ owner, ...props }) {
|
|
|
195
195
|
});
|
|
196
196
|
const frames = [...binding.frames.values()];
|
|
197
197
|
const height = Math.max(0, ...frames.map((frame) => frame.y + frame.height));
|
|
198
|
+
// Phones and arranging fit each card to its content. Otherwise cards that
|
|
199
|
+
// share a row reach the tallest neighbour's bottom, so Inbox matches Launcher.
|
|
200
|
+
const evenRows = !props.phone && !editing;
|
|
201
|
+
const evenRowHeight = (id) => {
|
|
202
|
+
const frame = binding.frames.get(id);
|
|
203
|
+
const cell = placements.find((entry) => entry.id === id);
|
|
204
|
+
if (!frame || !cell)
|
|
205
|
+
return 0;
|
|
206
|
+
const bottom = Math.max(frame.y + frame.height, ...placements
|
|
207
|
+
.filter((other) => other.row < cell.row + cell.h && cell.row < other.row + other.h)
|
|
208
|
+
.map((other) => {
|
|
209
|
+
const otherFrame = binding.frames.get(other.id);
|
|
210
|
+
return otherFrame ? otherFrame.y + otherFrame.height : 0;
|
|
211
|
+
}));
|
|
212
|
+
return bottom - frame.y;
|
|
213
|
+
};
|
|
198
214
|
const warnings = [
|
|
199
215
|
...props.apps
|
|
200
216
|
.filter((app) => app.availability !== "available" ||
|
|
@@ -313,7 +329,9 @@ function ArrangedDesktop({ owner, ...props }) {
|
|
|
313
329
|
left: frame.x,
|
|
314
330
|
top: frame.y,
|
|
315
331
|
width: frame.width,
|
|
316
|
-
height:
|
|
332
|
+
height: evenRows
|
|
333
|
+
? evenRowHeight(item.id)
|
|
334
|
+
: Math.min(contentHeights.get(item.id) ?? frame.height, frame.height),
|
|
317
335
|
}, onPointerDown: (event) => {
|
|
318
336
|
// Touch has no menu to reach Arrange from: a long press enters it.
|
|
319
337
|
if (editing || event.pointerType !== "touch")
|
package/dist/desktop/welcome.css
CHANGED
|
@@ -48,11 +48,21 @@
|
|
|
48
48
|
@media (max-width: 640px) {
|
|
49
49
|
.tourtois-welcome {
|
|
50
50
|
flex-wrap: wrap;
|
|
51
|
-
gap: var(--spacing-md);
|
|
51
|
+
gap: var(--spacing-sm) var(--spacing-md);
|
|
52
|
+
padding-block: 0;
|
|
53
|
+
margin-block-end: var(--spacing-sm);
|
|
54
|
+
}
|
|
55
|
+
.tourtois-welcome-mascot {
|
|
56
|
+
inline-size: 2.5rem;
|
|
57
|
+
block-size: 2.5rem;
|
|
52
58
|
}
|
|
53
59
|
.tourtois-welcome-text {
|
|
54
60
|
flex-basis: calc(100% - 4rem);
|
|
55
61
|
}
|
|
62
|
+
/* The keyboard shortcut means nothing on a phone; the App grid is the way in. */
|
|
63
|
+
.tourtois-welcome-hint {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
56
66
|
.tourtois-welcome-actions {
|
|
57
67
|
flex: 1 1 100%;
|
|
58
68
|
}
|
|
@@ -67,8 +77,13 @@
|
|
|
67
77
|
justify-content: flex-end;
|
|
68
78
|
/* Keep the keyboard outline inside the Gill body's scroll boundary. */
|
|
69
79
|
padding: var(--spacing-sm);
|
|
80
|
+
padding-inline-end: 0;
|
|
70
81
|
margin-block-start: var(--spacing-sm);
|
|
71
82
|
}
|
|
83
|
+
/* The ghost button's text, not its padding, lines up with Edit launcher. */
|
|
84
|
+
.tourtois-launcher-more > .btn {
|
|
85
|
+
margin-inline-end: -0.75rem;
|
|
86
|
+
}
|
|
72
87
|
|
|
73
88
|
/* Trial starter Apps that failed or need a runtime stack under the grid. */
|
|
74
89
|
.tourtois-install-notes {
|
|
@@ -86,3 +101,28 @@
|
|
|
86
101
|
.tourtois-install-notes .caps-failure-line > .caps-status {
|
|
87
102
|
margin-block-start: 0;
|
|
88
103
|
}
|
|
104
|
+
|
|
105
|
+
/* On a wide desktop the welcome is the Launcher's hero, not a thin banner. */
|
|
106
|
+
@media (min-width: 1100px) {
|
|
107
|
+
.tourtois-welcome {
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
gap: var(--spacing-md);
|
|
110
|
+
padding-block: var(--spacing-lg);
|
|
111
|
+
margin-block-end: var(--spacing-lg);
|
|
112
|
+
text-align: center;
|
|
113
|
+
}
|
|
114
|
+
.tourtois-welcome-mascot {
|
|
115
|
+
inline-size: 5rem;
|
|
116
|
+
block-size: 5rem;
|
|
117
|
+
}
|
|
118
|
+
.tourtois-welcome-text h3 {
|
|
119
|
+
font-size: var(--text-xl);
|
|
120
|
+
}
|
|
121
|
+
.tourtois-welcome-text p {
|
|
122
|
+
font-size: var(--text-base);
|
|
123
|
+
}
|
|
124
|
+
.tourtois-welcome-text .tourtois-welcome-hint {
|
|
125
|
+
margin-block-start: var(--spacing-sm);
|
|
126
|
+
font-size: var(--text-sm);
|
|
127
|
+
}
|
|
128
|
+
}
|
package/dist/shell.css
CHANGED
|
@@ -159,7 +159,9 @@
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
.tourtois-settings-nav-label {
|
|
162
|
-
|
|
162
|
+
/* Start where an item's text starts: its button padding plus border. */
|
|
163
|
+
margin: var(--spacing-md) var(--spacing-sm) var(--spacing-xs)
|
|
164
|
+
calc(0.75rem + var(--border));
|
|
163
165
|
}
|
|
164
166
|
|
|
165
167
|
.tourtois-settings-content {
|
|
@@ -217,6 +219,13 @@
|
|
|
217
219
|
font-size: var(--text-sm);
|
|
218
220
|
color: var(--stipe-fg-muted);
|
|
219
221
|
}
|
|
222
|
+
/* An empty list row starts at the heading's edge, not the row padding. */
|
|
223
|
+
.list-row.tourtois-settings-empty {
|
|
224
|
+
padding-inline: 0;
|
|
225
|
+
}
|
|
226
|
+
.tourtois-settings-note {
|
|
227
|
+
font-size: var(--text-sm);
|
|
228
|
+
}
|
|
220
229
|
/* Each Computer: its SettingsItem over its compact switch rows. */
|
|
221
230
|
.tourtois-computer {
|
|
222
231
|
display: grid;
|
|
@@ -772,6 +781,12 @@
|
|
|
772
781
|
.tourtois-desktop-stage {
|
|
773
782
|
position: relative;
|
|
774
783
|
}
|
|
784
|
+
@media (min-width: 1100px) {
|
|
785
|
+
.tourtois-desktop-stage {
|
|
786
|
+
max-inline-size: 76rem;
|
|
787
|
+
margin-inline: auto;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
775
790
|
.tourtois-desktop-tile {
|
|
776
791
|
position: absolute;
|
|
777
792
|
min-width: 0;
|
|
@@ -793,6 +808,16 @@
|
|
|
793
808
|
flex: 1;
|
|
794
809
|
overflow: auto;
|
|
795
810
|
}
|
|
811
|
+
/* A lone empty state sits in the middle of a card that is taller than it. The
|
|
812
|
+
content box keeps its natural height, so the card still measures to fit. */
|
|
813
|
+
.tourtois-gill-body:has(> .tourtois-gill-content > .empty-state) {
|
|
814
|
+
display: flex;
|
|
815
|
+
flex-direction: column;
|
|
816
|
+
}
|
|
817
|
+
.tourtois-gill-body:has(> .tourtois-gill-content > .empty-state)
|
|
818
|
+
> .tourtois-gill-content {
|
|
819
|
+
margin-block: auto;
|
|
820
|
+
}
|
|
796
821
|
.tourtois-gill-text-row {
|
|
797
822
|
display: flex;
|
|
798
823
|
flex-direction: column;
|
|
@@ -917,6 +942,35 @@
|
|
|
917
942
|
width: 4rem;
|
|
918
943
|
height: 4rem;
|
|
919
944
|
}
|
|
945
|
+
@media (max-width: 640px) {
|
|
946
|
+
/* Two dense rows of keys on a phone keep the Inbox in the first screen. */
|
|
947
|
+
.tourtois-launcher-grid[data-size="lg"] {
|
|
948
|
+
row-gap: var(--spacing-xs);
|
|
949
|
+
}
|
|
950
|
+
.tourtois-launcher-grid[data-size="lg"] .caps-app-grid-icon {
|
|
951
|
+
width: 3.5rem;
|
|
952
|
+
height: 3.5rem;
|
|
953
|
+
}
|
|
954
|
+
.tourtois-launcher-more {
|
|
955
|
+
margin-block-start: 0;
|
|
956
|
+
}
|
|
957
|
+
.tourtois-desktop .tourtois-gill-frame > .caps-card-header {
|
|
958
|
+
padding-block-end: var(--spacing-sm);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
/* Wide desktops give the Launcher full-size keys to fill its card. */
|
|
962
|
+
@media (min-width: 1100px) {
|
|
963
|
+
.tourtois-launcher-grid[data-size="lg"] {
|
|
964
|
+
grid-template-columns: repeat(auto-fit, 6rem);
|
|
965
|
+
justify-content: center;
|
|
966
|
+
row-gap: var(--spacing-md);
|
|
967
|
+
padding-block: var(--spacing-lg);
|
|
968
|
+
}
|
|
969
|
+
.tourtois-launcher-grid[data-size="lg"] .caps-app-grid-icon {
|
|
970
|
+
width: 5rem;
|
|
971
|
+
height: 5rem;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
920
974
|
.tourtois-gill-frame > .caps-card-header {
|
|
921
975
|
padding: var(--spacing-lg);
|
|
922
976
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/tourtois",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
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",
|
|
@@ -79,11 +79,11 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@fungi.computer/agar": "0.9.1",
|
|
81
81
|
"@fungi.computer/cairn": "0.1.0",
|
|
82
|
-
"@fungi.computer/caps": "0.10.
|
|
82
|
+
"@fungi.computer/caps": "0.10.7",
|
|
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.14",
|
|
87
87
|
"@fungi.computer/puffball": "0.5.5",
|
|
88
88
|
"@fungi.computer/shiitake": "0.13.0",
|
|
89
89
|
"@fungi.computer/sigils": "0.3.1",
|
|
@@ -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.6"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"react": "^18.3.1 || ^19.2.0"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@fungi.computer/oyster": "0.20.
|
|
109
|
+
"@fungi.computer/oyster": "0.20.5",
|
|
110
110
|
"@cloudflare/workers-types": "5.20260828.1",
|
|
111
111
|
"@fungi.computer/forage": "0.3.5",
|
|
112
112
|
"@fungi.computer/mycelium": "0.3.8",
|