@1agh/maude 2.1.0 → 2.1.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/apps/studio/access/request.ts +1 -0
- package/apps/studio/actions/agents.ts +27 -0
- package/apps/studio/actions/defs/app.ts +28 -1
- package/apps/studio/actions/defs/sync.ts +4 -0
- package/apps/studio/actions.manifest.json +60 -2
- package/apps/studio/actions.parity.json +13 -1
- package/apps/studio/bin/_curl-local.mjs +7 -4
- package/apps/studio/client/app.jsx +16 -4
- package/apps/studio/client/home/HomeAccountsRow.jsx +221 -0
- package/apps/studio/client/home/HomeConnection.jsx +111 -0
- package/apps/studio/client/home/home-accounts-model.js +110 -1
- package/apps/studio/client/home/home-api.js +6 -2
- package/apps/studio/client/home/home-app.jsx +74 -12
- package/apps/studio/client/home/home-model.js +40 -1
- package/apps/studio/client/home/home-where-model.js +105 -0
- package/apps/studio/client/home/home.css +233 -1
- package/apps/studio/client/hooks/use-palette-and-panels.jsx +3 -1
- package/apps/studio/client/hooks/use-tabs.jsx +11 -4
- package/apps/studio/client/panels/TeamProjects.jsx +137 -134
- package/apps/studio/client/share-link.js +12 -0
- package/apps/studio/client/styles/_index.css +4 -0
- package/apps/studio/client/v2/diagnostics/diagnostics-host.jsx +1 -0
- package/apps/studio/client/v2/diagnostics/diagnostics-model.js +32 -2
- package/apps/studio/client/v2/diagnostics/diagnostics-sheet.jsx +35 -8
- package/apps/studio/client/v2/diagnostics/diagnostics.css +34 -0
- package/apps/studio/client/v2/diagnostics/sync-details/sync-details-model.js +94 -3
- package/apps/studio/client/v2/diagnostics/sync-details/sync-details.jsx +187 -4
- package/apps/studio/client/v2/link-server/LinkServerDialog.jsx +492 -0
- package/apps/studio/client/v2/link-server/LinkServerHost.jsx +42 -0
- package/apps/studio/client/v2/link-server/link-server-api.js +142 -0
- package/apps/studio/client/v2/link-server/link-server-model.js +438 -0
- package/apps/studio/client/v2/link-server/link-server.css +109 -0
- package/apps/studio/client/v2/onboarding/AdvancedSheets.jsx +31 -86
- package/apps/studio/client/v2/onboarding/onboarding-model.js +1 -18
- package/apps/studio/client/v2/search/search-keywords.js +3 -2
- package/apps/studio/client/v2/settings/account.jsx +4 -2
- package/apps/studio/client/v2/settings/advanced-section.jsx +245 -148
- package/apps/studio/client/v2/settings/connection-row.jsx +3 -59
- package/apps/studio/client/v2/settings/connections-section.jsx +118 -425
- package/apps/studio/client/v2/settings/general-section.jsx +138 -43
- package/apps/studio/client/v2/settings/project-sync-settings.jsx +4 -3
- package/apps/studio/client/v2/settings/reset-section.jsx +14 -3
- package/apps/studio/client/v2/settings/settings-card.jsx +142 -0
- package/apps/studio/client/v2/settings/settings-cards.js +220 -0
- package/apps/studio/client/v2/settings/settings-handlers.js +7 -6
- package/apps/studio/client/v2/settings/settings-model.js +91 -31
- package/apps/studio/client/v2/settings/settings-sheet.jsx +25 -6
- package/apps/studio/client/v2/settings/settings.css +374 -64
- package/apps/studio/client/v2/settings/this-project-card.jsx +730 -0
- package/apps/studio/client/v2/settings/this-project-model.js +172 -0
- package/apps/studio/client/v2/settings/use-connections.js +3 -2
- package/apps/studio/client/v2/settings/use-open-card.js +37 -0
- package/apps/studio/client/v2/shell/connection-state.js +197 -0
- package/apps/studio/client/v2/shell/menu-runner.js +7 -2
- package/apps/studio/client/v2/shell/project-account-bus.js +36 -0
- package/apps/studio/client/v2/shell/project-account-card.jsx +357 -148
- package/apps/studio/client/v2/shell/project-account-model.js +272 -149
- package/apps/studio/client/v2/shell/project-account-toast.js +66 -0
- package/apps/studio/client/v2/shell/project-account.css +237 -0
- package/apps/studio/client/v2/shell/share-cluster-host.jsx +166 -83
- package/apps/studio/client/v2/shell/shell-parity.js +3 -2
- package/apps/studio/client/v2/shell/shell-parity.json +40 -26
- package/apps/studio/client/v2/shell/use-account.js +2 -0
- package/apps/studio/client/v2/signin/use-signin.js +1 -1
- package/apps/studio/cloud/endpoints.ts +29 -4
- package/apps/studio/dist/client.bundle.js +834 -834
- package/apps/studio/dist/styles.css +1 -1
- package/apps/studio/home/accounts.ts +30 -11
- package/apps/studio/home/cloud.ts +6 -1
- package/apps/studio/home/hub-health.ts +76 -0
- package/apps/studio/home/routes.ts +9 -3
- package/apps/studio/http.ts +8 -0
- package/apps/studio/migrate/hub.ts +8 -1
- package/apps/studio/routes/hub-link-folder.ts +334 -0
- package/apps/studio/routes/hub-signin.ts +78 -1
- package/apps/studio/routes/index.ts +4 -0
- package/apps/studio/routes/sync.ts +22 -4
- package/apps/studio/shell/api-key.ts +11 -0
- package/apps/studio/sync/accepted-cold-start.ts +144 -8
- package/apps/studio/sync/action-stage.ts +18 -1
- package/apps/studio/sync/ctl-heal.ts +58 -0
- package/apps/studio/sync/file-ledger.ts +38 -4
- package/apps/studio/sync/file-plane.ts +226 -19
- package/apps/studio/sync/held-deletes.ts +86 -5
- package/apps/studio/sync/hub-link.ts +8 -0
- package/apps/studio/sync/index.ts +68 -4
- package/apps/studio/sync/link-consent.ts +22 -75
- package/apps/studio/sync/link-survey.ts +252 -0
- package/apps/studio/sync/local-kernel.ts +16 -1
- package/apps/studio/sync/seed-progress.ts +12 -0
- package/apps/studio/sync/source-recovery.ts +18 -2
- package/apps/studio/sync/status.ts +11 -1
- package/apps/studio/sync/writer-registry.ts +5 -0
- package/apps/studio/whats-new.json +18 -0
- package/cli/lib/bash-guard.mjs +19 -0
- package/cli/lib/design-help.gen.mjs +1 -1
- package/package.json +9 -8
- package/apps/studio/client/v2/onboarding/HubSheet.jsx +0 -212
- package/apps/studio/client/v2/shell/account-card-model.js +0 -114
- package/apps/studio/client/v2/shell/account-card.jsx +0 -189
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
// client/v2/settings/advanced-section.jsx — V2-4.7a: Settings › Advanced (06 ad-settings).
|
|
2
2
|
//
|
|
3
|
-
// About this Mac
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
3
|
+
// About this Mac, in plain words with the exact value in mono beside them: the version and the staged
|
|
4
|
+
// update, the server build, where keys are kept, Claude Code's setup and copy-paste commands, the
|
|
5
|
+
// transcription / keyframe engines and their models. The model and engine cards are today's
|
|
6
|
+
// (panels/SettingsPanel.jsx) — kept mounted while their card is closed, so a model download's poll
|
|
7
|
+
// survives a fold or a section switch.
|
|
8
8
|
//
|
|
9
9
|
// S11.13 (06 ad-settings): Runtime and Plugins from GET /_api/settings/about; Use my own plugin copy and
|
|
10
10
|
// AI reviews argue it out (advanced-prefs.js, read at the next AI session); Decision memory from
|
|
11
11
|
// GET /_api/kg/summary ("N decisions · kgai" or "Not set up"); Logs in bug reports; and Reset (reset-
|
|
12
12
|
// section.jsx). C34: no row for usage data or "Faster canvas engine" — a feature Maude lacks has no switch.
|
|
13
13
|
//
|
|
14
|
+
// 2.1.1 T6 (canvas 17 · 11): one column of cards — Generation spend · This Mac · Claude Code · Decision
|
|
15
|
+
// memory · Engines · Privacy · Experimental, then Reset — each closed card saying what is set, so most
|
|
16
|
+
// visits end without opening anything. This project left Advanced: its switches are under General ›
|
|
17
|
+
// This project › Sync details.
|
|
18
|
+
//
|
|
14
19
|
// Desktop only (`cloud === null`) — see connections-section.jsx.
|
|
15
20
|
|
|
16
21
|
import { useEffect, useState } from 'react';
|
|
@@ -30,9 +35,17 @@ import {
|
|
|
30
35
|
WhisperModelCard,
|
|
31
36
|
} from '../../panels/SettingsPanel.jsx';
|
|
32
37
|
import { MDCC_VERSION } from '../../shell/constants.js';
|
|
33
|
-
import {
|
|
34
|
-
import ProjectSyncSettings from './project-sync-settings.jsx';
|
|
38
|
+
import { Row, SwitchRow } from './parts.jsx';
|
|
35
39
|
import ResetSection from './reset-section.jsx';
|
|
40
|
+
import { SettingsCard } from './settings-card.jsx';
|
|
41
|
+
import {
|
|
42
|
+
claudeCodeSummary,
|
|
43
|
+
enginesSummary,
|
|
44
|
+
experimentalSummary,
|
|
45
|
+
privacySummary,
|
|
46
|
+
spendSummary,
|
|
47
|
+
thisMacSummary,
|
|
48
|
+
} from './settings-cards.js';
|
|
36
49
|
import {
|
|
37
50
|
decisionMemoryLine,
|
|
38
51
|
EXPERIMENTAL_TEAMS_PREF,
|
|
@@ -43,6 +56,7 @@ import {
|
|
|
43
56
|
runtimeLine,
|
|
44
57
|
} from './settings-model.js';
|
|
45
58
|
import { advancedPrefs, useAdvancedPrefs } from './use-advanced-prefs.js';
|
|
59
|
+
import { useOpenCard } from './use-open-card.js';
|
|
46
60
|
|
|
47
61
|
/** The commands the sheet hands over to paste into a terminal or the AI chat. */
|
|
48
62
|
export const COMMANDS = Object.freeze({
|
|
@@ -124,7 +138,7 @@ function UpdateRow({ update, onLater }) {
|
|
|
124
138
|
}
|
|
125
139
|
|
|
126
140
|
/** DDR-166 Decision 5 — offer to install Claude Code and sign in. DEFAULT ON; native-only (a Tauri pref). */
|
|
127
|
-
function
|
|
141
|
+
function useAutoSetup() {
|
|
128
142
|
const native = isNativeApp();
|
|
129
143
|
const [on, setOn] = useState(true);
|
|
130
144
|
useEffect(() => {
|
|
@@ -137,21 +151,26 @@ function AutoSetupRow() {
|
|
|
137
151
|
alive = false;
|
|
138
152
|
};
|
|
139
153
|
}, [native]);
|
|
154
|
+
const set = (next) => {
|
|
155
|
+
setOn(next);
|
|
156
|
+
setClaudeAutoSetup(next).catch(() => setOn(!next));
|
|
157
|
+
};
|
|
158
|
+
return { native, on: native && on, set };
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function AutoSetupRow({ auto }) {
|
|
140
162
|
return (
|
|
141
163
|
<SwitchRow
|
|
142
164
|
testid="settings-claude-autosetup"
|
|
143
165
|
label="Install and sign in automatically"
|
|
144
166
|
note={
|
|
145
|
-
native
|
|
167
|
+
auto.native
|
|
146
168
|
? 'Offer to install Claude Code and sign in for you. Off shows only the copy-paste command — takes effect next launch or project switch.'
|
|
147
169
|
: 'Needs the Maude desktop app.'
|
|
148
170
|
}
|
|
149
|
-
checked={
|
|
150
|
-
disabled={!native}
|
|
151
|
-
onChange={
|
|
152
|
-
setOn(next);
|
|
153
|
-
setClaudeAutoSetup(next).catch(() => setOn(!next));
|
|
154
|
-
}}
|
|
171
|
+
checked={auto.on}
|
|
172
|
+
disabled={!auto.native}
|
|
173
|
+
onChange={auto.set}
|
|
155
174
|
/>
|
|
156
175
|
);
|
|
157
176
|
}
|
|
@@ -184,10 +203,12 @@ const SPEND_FIELDS = [
|
|
|
184
203
|
},
|
|
185
204
|
];
|
|
186
205
|
|
|
187
|
-
function
|
|
206
|
+
function useSpendLimits() {
|
|
188
207
|
const [vals, setVals] = useState(() =>
|
|
189
208
|
Object.fromEntries(SPEND_FIELDS.map((f) => [f.key, f.def]))
|
|
190
209
|
);
|
|
210
|
+
// what is saved — the closed card says this, never a half-typed value
|
|
211
|
+
const [saved, setSaved] = useState(vals);
|
|
191
212
|
const [problem, setProblem] = useState('');
|
|
192
213
|
useEffect(() => {
|
|
193
214
|
let alive = true;
|
|
@@ -196,13 +217,12 @@ function SpendLimits() {
|
|
|
196
217
|
.then((p) => {
|
|
197
218
|
const g = p && typeof p.generateSpend === 'object' ? p.generateSpend : null;
|
|
198
219
|
if (!alive || !g) return;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
});
|
|
220
|
+
const next = {};
|
|
221
|
+
for (const f of SPEND_FIELDS)
|
|
222
|
+
if (typeof g[f.key] === 'number' && g[f.key] >= f.min && g[f.key] <= f.max)
|
|
223
|
+
next[f.key] = g[f.key];
|
|
224
|
+
setVals((v) => ({ ...v, ...next }));
|
|
225
|
+
setSaved((v) => ({ ...v, ...next }));
|
|
206
226
|
})
|
|
207
227
|
.catch(() => {});
|
|
208
228
|
return () => {
|
|
@@ -224,11 +244,17 @@ function SpendLimits() {
|
|
|
224
244
|
})
|
|
225
245
|
.then((r) => {
|
|
226
246
|
if (!r.ok) throw new Error('refused');
|
|
247
|
+
setSaved((v) => ({ ...v, [f.key]: n }));
|
|
227
248
|
})
|
|
228
249
|
.catch(() => setProblem('That limit was not saved. Nothing changed.'));
|
|
229
250
|
};
|
|
251
|
+
return { vals, setVals, saved, save, problem };
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
function SpendRows({ spend }) {
|
|
255
|
+
const { vals, setVals, save, problem } = spend;
|
|
230
256
|
return (
|
|
231
|
-
<
|
|
257
|
+
<div data-testid="settings-generate-spend">
|
|
232
258
|
{SPEND_FIELDS.map((f) => (
|
|
233
259
|
<label className="v2s-row" key={f.key} data-testid={`settings-generate-spend-${f.key}`}>
|
|
234
260
|
<span className="v2s-row-t">
|
|
@@ -260,13 +286,14 @@ function SpendLimits() {
|
|
|
260
286
|
{problem}
|
|
261
287
|
</p>
|
|
262
288
|
)}
|
|
263
|
-
</
|
|
289
|
+
</div>
|
|
264
290
|
);
|
|
265
291
|
}
|
|
266
292
|
|
|
267
|
-
/** One GET of a read-only route, `null` until it answers (and when it never does). */
|
|
268
|
-
function useRead(url) {
|
|
293
|
+
/** One GET of a read-only route, `null` until it answers (and when it never does). `key` reads it again. */
|
|
294
|
+
function useRead(url, key = 0) {
|
|
269
295
|
const [data, setData] = useState(null);
|
|
296
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: `key` is the re-read ask
|
|
270
297
|
useEffect(() => {
|
|
271
298
|
let alive = true;
|
|
272
299
|
fetch(url)
|
|
@@ -276,143 +303,213 @@ function useRead(url) {
|
|
|
276
303
|
return () => {
|
|
277
304
|
alive = false;
|
|
278
305
|
};
|
|
279
|
-
}, [url]);
|
|
306
|
+
}, [url, key]);
|
|
280
307
|
return data;
|
|
281
308
|
}
|
|
282
309
|
|
|
283
|
-
export default function AdvancedSection({ update, onUpdateLater, live }) {
|
|
284
|
-
// The engine cards stay mounted once opened: a model download polls from inside them.
|
|
310
|
+
export default function AdvancedSection({ update, onUpdateLater, live, focus = null }) {
|
|
285
311
|
const port = typeof location !== 'undefined' ? location.port : '';
|
|
286
312
|
const prefs = useAdvancedPrefs();
|
|
287
313
|
const about = useRead('/_api/settings/about');
|
|
288
314
|
const kg = useRead('/_api/kg/summary');
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
<UpdateRow update={update} onLater={onUpdateLater} />
|
|
297
|
-
{/* C34: display only — a port you can edit is a port that fights the proxy. */}
|
|
298
|
-
<Row label="Local server port" mono testid="settings-server-port">
|
|
299
|
-
{port || '—'}
|
|
300
|
-
</Row>
|
|
301
|
-
<Row label="Runtime" mono testid="settings-runtime">
|
|
302
|
-
{runtimeLine(about)}
|
|
303
|
-
</Row>
|
|
304
|
-
<Row label="Server build" mono testid="settings-server-build">
|
|
305
|
-
maude-dev-srv
|
|
306
|
-
</Row>
|
|
307
|
-
<Row
|
|
308
|
-
label="Keys are kept in"
|
|
309
|
-
hint="Or ~/.config/maude/keys.json (private to you) when the Keychain is off. An update you skip installs when you next quit."
|
|
310
|
-
mono
|
|
311
|
-
testid="settings-keys-store"
|
|
312
|
-
>
|
|
313
|
-
macOS Keychain
|
|
314
|
-
</Row>
|
|
315
|
-
</Group>
|
|
315
|
+
const auto = useAutoSetup();
|
|
316
|
+
const spend = useSpendLimits();
|
|
317
|
+
const { open, toggle } = useOpenCard('advanced', focus);
|
|
318
|
+
// the engine cards save on their own: the closed card re-reads what they saved each time it closes
|
|
319
|
+
const engines = useRead('/_api/generate/prefs', open === 'engines' ? 1 : 0);
|
|
320
|
+
const plugins = pluginsLine(about);
|
|
321
|
+
const card = (id) => ({ open: open === id, onToggle: toggle, reveal: focus?.card === id });
|
|
316
322
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
<Row label="maude in the terminal">
|
|
330
|
-
<CopyCommand
|
|
331
|
-
ghost
|
|
332
|
-
command={COMMANDS.install}
|
|
333
|
-
label="Copy the install command"
|
|
334
|
-
text="Copy install command"
|
|
335
|
-
/>
|
|
336
|
-
</Row>
|
|
337
|
-
<Row label="Draw a mark with the SVG agent" testid="settings-copy-draw">
|
|
338
|
-
<CopyCommand ghost command={COMMANDS.draw} label="Copy the draw command" />
|
|
339
|
-
</Row>
|
|
340
|
-
<Row label="Import a brand from the terminal" testid="settings-copy-brand">
|
|
341
|
-
<CopyCommand ghost command={COMMANDS.brand} label="Copy the brand import command" />
|
|
342
|
-
</Row>
|
|
343
|
-
</Group>
|
|
323
|
+
return (
|
|
324
|
+
<div className="v2s-cards" data-testid="settings-advanced-cards">
|
|
325
|
+
<SettingsCard
|
|
326
|
+
id="spend"
|
|
327
|
+
icon="spark"
|
|
328
|
+
title="Generation spend"
|
|
329
|
+
desc="Limits for AI pictures, video and voice."
|
|
330
|
+
summary={spendSummary(spend.saved)}
|
|
331
|
+
{...card('spend')}
|
|
332
|
+
>
|
|
333
|
+
<SpendRows spend={spend} />
|
|
334
|
+
</SettingsCard>
|
|
344
335
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
<
|
|
336
|
+
<SettingsCard
|
|
337
|
+
id="this-mac"
|
|
338
|
+
testid="settings-this-mac"
|
|
339
|
+
icon="laptop"
|
|
340
|
+
title="This Mac"
|
|
341
|
+
desc="Version, updates, the local server."
|
|
342
|
+
summary={thisMacSummary({ version: MDCC_VERSION, port, update })}
|
|
343
|
+
{...card('this-mac')}
|
|
344
|
+
>
|
|
345
|
+
<div className="v2s-card-cols">
|
|
346
|
+
<div>
|
|
347
|
+
<Row label="Version" mono testid="settings-app-version">
|
|
348
|
+
{MDCC_VERSION}
|
|
349
|
+
</Row>
|
|
350
|
+
<UpdateRow update={update} onLater={onUpdateLater} />
|
|
351
|
+
{/* C34: display only — a port you can edit is a port that fights the proxy. */}
|
|
352
|
+
<Row label="Local server port" mono testid="settings-server-port">
|
|
353
|
+
{port || '—'}
|
|
354
|
+
</Row>
|
|
362
355
|
</div>
|
|
363
|
-
<div
|
|
364
|
-
<
|
|
365
|
-
|
|
356
|
+
<div>
|
|
357
|
+
<Row label="Runtime" mono testid="settings-runtime">
|
|
358
|
+
{runtimeLine(about)}
|
|
359
|
+
</Row>
|
|
360
|
+
<Row
|
|
361
|
+
label="Keys are kept in"
|
|
362
|
+
hint="Or ~/.config/maude/keys.json (private to you) when the Keychain is off. An update you skip installs when you next quit."
|
|
363
|
+
mono
|
|
364
|
+
testid="settings-keys-store"
|
|
365
|
+
>
|
|
366
|
+
macOS Keychain
|
|
367
|
+
</Row>
|
|
368
|
+
<Row label="Server build" mono testid="settings-server-build">
|
|
369
|
+
maude-dev-srv
|
|
370
|
+
</Row>
|
|
366
371
|
</div>
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
+
</div>
|
|
373
|
+
</SettingsCard>
|
|
374
|
+
|
|
375
|
+
<SettingsCard
|
|
376
|
+
id="claude-code"
|
|
377
|
+
icon="code"
|
|
378
|
+
title="Claude Code"
|
|
379
|
+
desc="The plugins Maude’s AI runs with."
|
|
380
|
+
summary={claudeCodeSummary({
|
|
381
|
+
plugins,
|
|
382
|
+
ownCopy: prefs[OWN_PLUGIN_COPY_PREF],
|
|
383
|
+
autoSetup: auto.native ? auto.on : true,
|
|
384
|
+
})}
|
|
385
|
+
{...card('claude-code')}
|
|
386
|
+
>
|
|
387
|
+
<Row label="Plugins" mono testid="settings-plugins">
|
|
388
|
+
{plugins ?? 'From your own install'}
|
|
389
|
+
</Row>
|
|
390
|
+
<SwitchRow
|
|
391
|
+
testid="settings-own-plugin-copy"
|
|
392
|
+
label="Use my own plugin copy"
|
|
393
|
+
note="Load the plugins you installed yourself instead of the ones Maude brings. Takes effect when the AI chat next starts."
|
|
394
|
+
checked={prefs[OWN_PLUGIN_COPY_PREF]}
|
|
395
|
+
onChange={(on) => advancedPrefs.set(OWN_PLUGIN_COPY_PREF, on)}
|
|
396
|
+
/>
|
|
397
|
+
<AutoSetupRow auto={auto} />
|
|
398
|
+
<Row label="maude in the terminal">
|
|
399
|
+
<CopyCommand
|
|
400
|
+
ghost
|
|
401
|
+
command={COMMANDS.install}
|
|
402
|
+
label="Copy the install command"
|
|
403
|
+
text="Copy install command"
|
|
404
|
+
/>
|
|
405
|
+
</Row>
|
|
406
|
+
<Row label="Draw a mark with the SVG agent" testid="settings-copy-draw">
|
|
407
|
+
<CopyCommand ghost command={COMMANDS.draw} label="Copy the draw command" />
|
|
408
|
+
</Row>
|
|
409
|
+
<Row label="Import a brand from the terminal" testid="settings-copy-brand">
|
|
410
|
+
<CopyCommand ghost command={COMMANDS.brand} label="Copy the brand import command" />
|
|
411
|
+
</Row>
|
|
412
|
+
</SettingsCard>
|
|
372
413
|
|
|
373
|
-
|
|
414
|
+
{/* C34: the count is the graph's own, or "Not set up". No switch: nothing in Maude turns it off. */}
|
|
415
|
+
<SettingsCard
|
|
416
|
+
id="decision-memory"
|
|
417
|
+
icon="history"
|
|
418
|
+
title="Decision memory"
|
|
419
|
+
desc="Remembers why things are the way they are."
|
|
420
|
+
summary={decisionMemoryLine(kg)}
|
|
421
|
+
{...card('decision-memory')}
|
|
422
|
+
>
|
|
423
|
+
<Row
|
|
424
|
+
label="In this project"
|
|
425
|
+
hint="Design decisions are kept with the project, so AI remembers why."
|
|
426
|
+
mono
|
|
427
|
+
testid="settings-decision-memory"
|
|
428
|
+
>
|
|
429
|
+
{decisionMemoryLine(kg)}
|
|
430
|
+
</Row>
|
|
431
|
+
</SettingsCard>
|
|
374
432
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
433
|
+
<SettingsCard
|
|
434
|
+
id="engines"
|
|
435
|
+
icon="sliders"
|
|
436
|
+
title="Engines"
|
|
437
|
+
desc="Subtitles and video keyframes."
|
|
438
|
+
summary={enginesSummary(engines)}
|
|
439
|
+
{...card('engines')}
|
|
440
|
+
>
|
|
441
|
+
<div data-testid="settings-transcription">
|
|
442
|
+
<TranscriptionEngineCard />
|
|
443
|
+
<WhisperModelCard />
|
|
444
|
+
</div>
|
|
445
|
+
<div data-testid="settings-keyframes">
|
|
446
|
+
<KeyframeEngineCard />
|
|
447
|
+
<GemmaModelCard />
|
|
448
|
+
</div>
|
|
449
|
+
<p className="v2s-hint">
|
|
450
|
+
Without a model, Auto uses ElevenLabs or Groq for subtitles and ffmpeg scene cuts for
|
|
451
|
+
keyframes.
|
|
452
|
+
</p>
|
|
453
|
+
</SettingsCard>
|
|
454
|
+
|
|
455
|
+
<SettingsCard
|
|
456
|
+
id="privacy"
|
|
457
|
+
icon="lock"
|
|
458
|
+
title="Privacy"
|
|
459
|
+
desc="What leaves this Mac besides your work."
|
|
460
|
+
summary={privacySummary(prefs[REPORT_LOGS_PREF])}
|
|
461
|
+
{...card('privacy')}
|
|
462
|
+
>
|
|
463
|
+
<label className="v2s-row" data-testid="settings-report-logs">
|
|
464
|
+
<span className="v2s-row-t">
|
|
465
|
+
<span className="v2s-row-k">Logs in bug reports</span>
|
|
466
|
+
<span className="v2s-hint">
|
|
467
|
+
Whether a report carries the last lines of Maude’s log. You see them before anything
|
|
468
|
+
is sent.
|
|
383
469
|
</span>
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
</
|
|
397
|
-
</
|
|
398
|
-
</
|
|
399
|
-
<div className="v2s-col">
|
|
400
|
-
<Group title="This project" testid="settings-this-project">
|
|
401
|
-
<ProjectSyncSettings cloud={null} />
|
|
402
|
-
</Group>
|
|
470
|
+
</span>
|
|
471
|
+
<select
|
|
472
|
+
className="v2s-select"
|
|
473
|
+
data-testid="settings-report-logs-select"
|
|
474
|
+
value={prefs[REPORT_LOGS_PREF]}
|
|
475
|
+
onChange={(e) => advancedPrefs.set(REPORT_LOGS_PREF, e.target.value)}
|
|
476
|
+
>
|
|
477
|
+
{REPORT_LOGS_CHOICES.map((c) => (
|
|
478
|
+
<option key={c.id} value={c.id}>
|
|
479
|
+
{c.label}
|
|
480
|
+
</option>
|
|
481
|
+
))}
|
|
482
|
+
</select>
|
|
483
|
+
</label>
|
|
484
|
+
</SettingsCard>
|
|
403
485
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
486
|
+
<SettingsCard
|
|
487
|
+
id="experimental"
|
|
488
|
+
icon="sparkle"
|
|
489
|
+
title="Experimental"
|
|
490
|
+
desc="Previews of what comes next."
|
|
491
|
+
summary={experimentalSummary(prefs[EXPERIMENTAL_TEAMS_PREF])}
|
|
492
|
+
{...card('experimental')}
|
|
493
|
+
>
|
|
494
|
+
<SwitchRow
|
|
495
|
+
testid="settings-experimental-teams"
|
|
496
|
+
label="AI reviews argue it out (teams)"
|
|
497
|
+
note="Reviews are argued out by several AI seats that answer each other. Costs more. Takes effect when the AI chat next starts."
|
|
498
|
+
checked={prefs[EXPERIMENTAL_TEAMS_PREF]}
|
|
499
|
+
onChange={(on) => advancedPrefs.set(EXPERIMENTAL_TEAMS_PREF, on)}
|
|
500
|
+
/>
|
|
501
|
+
</SettingsCard>
|
|
413
502
|
|
|
414
|
-
|
|
415
|
-
|
|
503
|
+
<SettingsCard
|
|
504
|
+
id="reset"
|
|
505
|
+
icon="reload"
|
|
506
|
+
title="Reset"
|
|
507
|
+
desc="Panels, Advanced sections, every setting."
|
|
508
|
+
summary="Keys and sign-ins are never reset"
|
|
509
|
+
{...card('reset')}
|
|
510
|
+
>
|
|
511
|
+
<ResetSection live={live} bare />
|
|
512
|
+
</SettingsCard>
|
|
416
513
|
</div>
|
|
417
514
|
);
|
|
418
515
|
}
|
|
@@ -1,62 +1,6 @@
|
|
|
1
|
-
// client/v2/settings/connection-row.jsx — S11.14:
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// Signed in as You
|
|
5
|
-
// › Advanced ← its own fold, remembered per Mac (`connections.<row>`)
|
|
6
|
-
//
|
|
7
|
-
// The row is the plain-words half (what it is, whether it works, one action); the mono words —
|
|
8
|
-
// addresses, the masked token, versions — live only under that row's Advanced. `children` is what
|
|
9
|
-
// stays visible under the row (the cloud project list, the key cards while Manage is open).
|
|
10
|
-
|
|
11
|
-
import { StIcon } from '../../shell/icons.jsx';
|
|
12
|
-
import { AdvancedFold } from '../fold/advanced-fold.jsx';
|
|
13
|
-
import { connectionFoldId } from './connections-model.js';
|
|
14
|
-
|
|
15
|
-
export function ConnectionRow({
|
|
16
|
-
row,
|
|
17
|
-
icon,
|
|
18
|
-
title,
|
|
19
|
-
desc,
|
|
20
|
-
status,
|
|
21
|
-
tone,
|
|
22
|
-
action,
|
|
23
|
-
advanced,
|
|
24
|
-
children,
|
|
25
|
-
testid,
|
|
26
|
-
rowTestid,
|
|
27
|
-
}) {
|
|
28
|
-
return (
|
|
29
|
-
<section
|
|
30
|
-
className="v2s-conn"
|
|
31
|
-
aria-label={title}
|
|
32
|
-
data-testid={testid ?? `settings-conn-${row}`}
|
|
33
|
-
data-conn={row}
|
|
34
|
-
>
|
|
35
|
-
<div className="v2s-conn-r" data-testid={rowTestid}>
|
|
36
|
-
<span className="v2s-conn-ic" aria-hidden="true">
|
|
37
|
-
<StIcon name={icon} size={16} />
|
|
38
|
-
</span>
|
|
39
|
-
<span className="v2s-conn-t">
|
|
40
|
-
<strong>{title}</strong>
|
|
41
|
-
{desc ? <span className="v2s-conn-d">{desc}</span> : null}
|
|
42
|
-
<span
|
|
43
|
-
className={tone === 'ok' ? 'v2s-conn-s v2s-conn-s--ok' : 'v2s-conn-s'}
|
|
44
|
-
data-testid={`settings-conn-${row}-status`}
|
|
45
|
-
>
|
|
46
|
-
{status}
|
|
47
|
-
</span>
|
|
48
|
-
</span>
|
|
49
|
-
{action ? <span className="v2s-conn-a">{action}</span> : null}
|
|
50
|
-
</div>
|
|
51
|
-
{children}
|
|
52
|
-
{advanced ? (
|
|
53
|
-
<div className="v2s-conn-fold">
|
|
54
|
-
<AdvancedFold panel={connectionFoldId(row)}>{advanced}</AdvancedFold>
|
|
55
|
-
</div>
|
|
56
|
-
) : null}
|
|
57
|
-
</section>
|
|
58
|
-
);
|
|
59
|
-
}
|
|
1
|
+
// client/v2/settings/connection-row.jsx — S11.14: the mono "k · value" line a connection keeps under its
|
|
2
|
+
// own Advanced (06 ad-edge-hub): addresses, the masked token, versions. 2.1.1 T6: the connection ROW itself
|
|
3
|
+
// became the Settings card (settings-card.jsx), the same in every tab.
|
|
60
4
|
|
|
61
5
|
/** One "k · value" line under a connection's Advanced; `copy` adds a Copy button for the value. */
|
|
62
6
|
export function ConnField({ k, mono, copy, children, testid }) {
|