Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,064 changes: 533 additions & 531 deletions CLAUDE-index.md

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2956,6 +2956,50 @@ sub-entry with its line: grep the index for a word, then read this file from tha
Worker's read scope is per TOOL, so a look-only connection cannot list constraints, like `files` / `scene`).
`agentLogCore` line 'rigged X, Y +1 (look at, limit)'. Connector: standalone (`CONNECTOR_STANDALONE`,
`TOOL_ANNOTATIONS`). Suites: vitest `rigTools`, e2e `agent-rig`.
- **108 U1 (108-tree) — THE INTERFACE AS A READ-ONLY TREE; point_at.** `ai/uiTreeCore.js` (PURE leaf over panelsCore:
roles, names, state words, `isSecret` -> value "(hidden)", `refusedText` / `refusedEl` = show's exact names PLUS the
ways to a refused surface ("Sign in to connect", "Settings ▸ AI", app ids like `connect-claude-*` / `settings-*`;
`profiler-settings` stays), `data: true` on rows / list lines / model rows / typed values, `stableId` (an app id kept as
`<panel>#<id>`, else `<panel>.<hash of role, name, nth>`), `capNodes` (200, then `more: n`), `outlineOf` (12 per panel),
`diffNodes` + `TreeTokens` for `since`, `ringRect` / `shownIn`) + `ai/uiTree.js` (the DOM half; it rides the uiStateTool
chunk through a re-export, NO lazy file of its own). WHERE IT READS: only `ROOTS` (one selector list per registry panel);
toasts (every consent card), modals and the top bar are never under a root, and inside one a dialog, toast, hidden or
refused subtree is skipped WHOLE (a refused container's id takes its children). Flow / Shader editors answer graph nodes
and the Timeline tracks as model rows (`<panel>@<model id>`); any other canvas is "drawn, not readable"; a code editor's
text is never read (files {read}). point_at: only ids a read on THIS page issued (a made-up id is refused), re-checked
at point time; no press, focus or scroll (a scrolled-out control answers `scrolledOut`); an open panel not in front is
brought forward (focus restored); refused under a modal (`aria-modal`; the render-paused overlay excepted); the ring is a
`pointer-events: none` DOM overlay at `--z-chrome-top` (under popovers, modals and toasts), outside the 3D canvas, so no
recording or export holds it. GRANTS (claude:9 ruling 29 Nov): reads go under `READ_KIND = 'read'` through
`setReadGate`; point_at asks nothing and refuses through `setPointGate` when the app's Guide marks switch is off (both
wired by 108-grants-read, below). Listed as person tools `ui_tree` / `point_at` (`ai/uiTreeTools.js`, the connector's
`run {tree, point}`). Trap: a free-space rule hides a sidebar column while the dock is open, so a sidebar panel reads empty (nothing
drawn) — honest, but a suite must close the dock first. Suites: unit `uiTree108`, e2e `connector-ui-tree-108`.
- **108 (108-grants-read) — CONSENT FOR THE TREE AND THE GUIDE MARKS** (claude:9 ruling 29 Nov, `RULING-108-grants`).
ONE new first-use kind `read` ("see the names and values of controls in your open panels"; `showGrants.GRANT_KINDS`,
`showCore.KIND_WORDS`, Privacy row "See the controls in my open panels"): `showTool.gateReadKind` asks it on its OWN
question (Always / This time / No per app, Always only for a named app), never in show's combined question, so an older
"Allow everything" (`{app: kind[]}` bytes saved on 1.87.0) never covers it; the old `show:allow:<kind>` migration is
limited to panel / camera / code (`OLD_KINDS`), so no planted key can grant a later kind. A read moves nothing: no
pacing, no busy-hands refusal. Secret fields stay "(hidden)" whatever is granted (uiTreeCore). POINT = NO QUESTION:
point_at's ring and 108-marks' guide marks obey the per-app GUIDE MARKS switch (`show:marks` = {app: {seen, off}},
`marksEnabled` / `setMarksEnabled` / `marksApps`; ON by default; NOT a grant, so no answer, Allow everything or Revoke
all touches it; Settings > Privacy section "Guide marks", Claude always listed, then every app that drew here).
`showTool.marksGate(by, phase)` = the refusal when off, else null; with phase 'draw' (every check passed, a ring or marks
about to be drawn) the app's FIRST time on this device shows the one-time toast "<app> can draw guide marks. Turn off
in Settings ▸ Privacy." (`firstMarks`), so a refused call (a made-up id) never spends it. `uiTree.controlResolver` =
the only way a guide mark anchors on a control (an id a read on this page issued, still in its panel, not under a
dialog or the refused set); `uiTreeDebug().element(id)` for suites. personTools registers
both gates (`setReadGate(gateReadKind)`, `setPointGate(marksGate)`) on every ui_tree / point_at call, so a suite's
`uiTreeResetForTest` cannot leave a real call ungated. ui_tree is a read (`personToolReads`; a look-only connection may
read once the person allowed it); point_at needs the edit scope like show's marks. Suites: vitest `grantsRead108`; e2e
`connector-grants-read-108` (one page, drawing paused: the 1.87.0-grant proof row, Privacy rows, the toast once, the
switch).
108-marks on top: `showTool.MARKS_ENABLED(app)` (= `marksEnabled`) replaced the test-only `MARKS_KIND = 'panel'` gate,
so guide_marks asks nothing (busy hands + the 12-a-minute pacing kept, `gateShowKind` back to its 1.87.0 shape); a
`control` anchor installs `uiTree.controlResolver` (only ids a ui_tree read on this page issued, still in their panel,
not under a dialog or the refused set) before `normalizeMarks`, and `marksGate(by, 'draw')` spends the toast only once
every check passed.
- **107b-int-1 (1.87.0) — THE WAVE'S UNION RULES.** (1) `tests/e2e/helpers.cjs` `launch()` appends
`E2E_CHROMIUM_EXTRA_ARGS` (space-separated): a HOST's own Chromium switches, set in that machine's lane env (the Mac's
`--disable-features=WebRtcHideLocalIpsWithMdns`: two headless pages there meet only over host candidates); never in app
Expand Down
24 changes: 22 additions & 2 deletions src/components/menu/settings/AssistantViewSettings.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script module>
/** 104 C2: what the settings search matches beyond the row names */
export const keywords = ['claude', 'assistant', 'ai', 'show', 'move my view', 'camera', 'panels', 'select', 'open code', 'connector', 'privacy', 'permission', 'revoke', 'granted', 'undo', 'redo', 'sky', 'light', 'post effects', 'bake', 'look preset', 'this session'];
export const keywords = ['claude', 'assistant', 'ai', 'show', 'move my view', 'camera', 'panels', 'select', 'open code', 'connector', 'privacy', 'permission', 'revoke', 'granted', 'undo', 'redo', 'sky', 'light', 'post effects', 'bake', 'look preset', 'this session', 'read', 'controls', 'values', 'guide marks', 'point', 'ring', 'arrows'];
</script>

<script>
Expand Down Expand Up @@ -36,7 +36,9 @@
{ kind: 'camera', label: 'Move my view', desc: 'Frame objects, go to a spot or look through a scene camera. Never in a VR headset, never while you drag or type.' },
{ kind: 'code', label: 'Open code for me', desc: 'Open a file or a node’s code at a line and select it. It never changes the text.' },
// 107b H1
{ kind: 'undo', label: 'Press my Undo and Redo', desc: 'Undo or redo your own steps for you, in order, as Ctrl+Z and Ctrl+Y do. Never a step out of order, and never over a change someone else made since.' }
{ kind: 'undo', label: 'Press my Undo and Redo', desc: 'Undo or redo your own steps for you, in order, as Ctrl+Z and Ctrl+Y do. Never a step out of order, and never over a change someone else made since.' },
// 108 U1
{ kind: 'read', label: 'See the controls in my open panels', desc: 'Their names, states and values, to tell you what you can press and where. Secret fields stay hidden; sign-in, account, Settings, consent, publishing, connected apps and payment are never read.' }
];
// 107b G1: the scene-wide look changes that ask on every call until you allow them (This session / Always)
const LOOK_ROWS = [
Expand All @@ -54,6 +56,16 @@
return { claude: Object.fromEntries([...ROWS, ...LOOK_ROWS].map((r) => [r.kind, g.alwaysAllowed(r.kind, APP)])), list: g.showGrants() };
});
const allow = $derived(grants.claude);
/** 108: the Guide marks switches, one per app (on by default; not a grant, so Revoke all leaves them) */
const marks = $derived.by(() => {
void version;
return G ? G.marksApps() : [{ app: APP, on: true }];
});
/** @param {string} app @param {boolean} on */
async function setMarks(app, on) {
const g = G ?? (await import('$lib/ai/showGrants.js'));
g.setMarksEnabled(app, on);
}
/** every grant the switches do not show: another app's, and any "This time" */
const others = $derived(grants.list.filter((g) => g.answer !== 'no' && !(g.answer === 'always' && g.app === APP)));
const anyGranted = $derived(grants.list.some((g) => g.answer !== 'no'));
Expand Down Expand Up @@ -84,6 +96,14 @@
</SettingRow>
{/each}
</Section>
<Section variant="card" label="Guide marks" badge="This device">
{#each marks as m (m.app)}
<SettingRow id={'row-guide-marks-' + slug(m.app)} label={'Guide marks from ' + m.app} keywords="assistant claude guide marks point ring arrows numbers labels">
{#snippet desc()}Arrows, rings, numbers and short labels {m.app} draws on your screen to show you where things are. Only you see them, they take no clicks, and Clear or Esc takes them away. Off: {m.app} cannot draw them.{/snippet}
<Toggle id={'guide-marks-' + slug(m.app)} label={'Guide marks from ' + m.app} checked={m.on} onchange={(/** @type {boolean} */ next) => setMarks(m.app, next)} />
</SettingRow>
{/each}
</Section>
<Section variant="card" label="What you allowed" badge="Revoke">
{#if !others.length && !anyGranted}
<SettingRow id="row-grants-none" label="Nothing yet" keywords="assistant claude permission granted">
Expand Down
2 changes: 2 additions & 0 deletions src/lib/agent/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
// timeline family; create_objects {kind: 'camera'}; delete_objects of 'joint:<id>'; undo_last {preview, history, press,
// to}; wait_for_edit {since} with by / what / changes; status {access, openQuestions} (additive: two new tools and new
// optional arguments and answer fields, nothing renamed)
// (108 U1, the int names the version): person tools ui_tree / point_at (the connector's run {tree, point}), in the
// person's own tab only; ui_tree asks the new first-use kind `read` (additive: two new tool names, nothing renamed)
export const TP_AGENT_VERSION = '1.16.0';

/** Every method of the contract, in the order the docs list them. */
Expand Down
2 changes: 1 addition & 1 deletion src/lib/agent/toolFamilies.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const FAMILY_ACTIONS = Object.freeze({
preset: 'set_look_preset',
bake: 'bake_light'
},
run: { inspect: 'inspect_runtime', validate: 'validate_scene', logs: 'logs', photo: 'take_photo', ui: 'ui_state', stats: 'scene_stats' },
run: { inspect: 'inspect_runtime', validate: 'validate_scene', logs: 'logs', photo: 'take_photo', ui: 'ui_state', stats: 'scene_stats', tree: 'ui_tree', point: 'point_at' },
assets: { search: 'search_assets', place: 'place_asset', prefab: 'prefab', image: 'add_image', upload: 'upload_asset', fonts: 'list_fonts' },
effects: { terrain: 'terrain', scatter: 'scatter', water: 'water', particles: 'create_particles', sound: 'place_sound', music: 'set_music' },
hud: { create: 'create_hud', list: 'list_hud', update: 'edit_hud', panel: 'hud_panel' },
Expand Down
2 changes: 1 addition & 1 deletion src/lib/agent/voiceHelp.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const CAN = /** @type {[string, string][]} */ ([
['save_scene', 'save this scene to your library'],
['files', 'read and write the text files in your Explorer'],
['scene', 'open your other scenes or start a new one'],
['show', 'show you things on your screen: open a panel, frame an object or open code at a line'],
['show', 'show you things on your screen: open a panel, frame an object, open code at a line or point at something with arrows and numbers'],
['undo_last', 'undo what I just did when you say so'],
['screenshot', 'look at the scene to check my work']
]);
Expand Down
Loading