@floless/app 0.150.0 → 0.151.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/web/chat.css CHANGED
@@ -916,6 +916,9 @@
916
916
  /* The chat model's object links (#1653): a quiet receipt under its answer. */
917
917
  .ai-chat-event.links { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
918
918
  .ai-chat-event.evidence:not(.error) { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
919
+ /* #2037: Codex's auto-review receipts — information, never error red; a held-back step gets the warning edge only. */
920
+ .ai-chat-event.auto-review { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
921
+ .ai-chat-event.auto-review.held { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
919
922
  .ai-chat-live-status {
920
923
  align-self: flex-start;
921
924
  display: inline-flex;
@@ -1423,3 +1426,12 @@
1423
1426
  @media (prefers-reduced-motion: reduce) {
1424
1427
  .ai-chat-live-dots i { animation: none; background: var(--text-muted); opacity: .7; }
1425
1428
  }
1429
+
1430
+ /* #2046 — a next move the Guide suggested: the connection card's look, with a quiet "Suggested" eyebrow. */
1431
+ .guide-move-card .ai-chat-filter-card-head { justify-content: flex-start; flex-wrap: wrap; }
1432
+ .guide-move-eyebrow { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 10px; }
1433
+ .guide-move-status:empty { display: none; }
1434
+ /* #2046 — a Guide conversation's Access: a statement, not a picker. */
1435
+ .ai-chat-guide-access { display: flex; flex-direction: column; gap: 2px; font-size: 11px; line-height: 15px; color: var(--text-muted); }
1436
+ .ai-chat-guide-access strong { color: var(--text); font-weight: 600; }
1437
+ .ai-chat-guide-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
package/dist/web/chat.js CHANGED
@@ -19,7 +19,7 @@
19
19
  historyToggle: el('chat-history-toggle'), newChat: el('chat-new'), refresh: el('chat-refresh'), history: el('chat-history'),
20
20
  title: el('chat-title'), rename: el('chat-rename'), scope: el('chat-scope'), settingsToggle: el('chat-settings-toggle'),
21
21
  settings: el('chat-settings'), provider: el('chat-provider'), switchAccount: el('chat-switch-account'), model: el('chat-model'),
22
- effort: el('chat-effort'), permission: el('chat-permission'), integrations: el('chat-integrations'), ownConnectors: el('chat-own-connectors'),
22
+ effort: el('chat-effort'), permission: el('chat-permission'), guideAccess: el('chat-guide-access'), integrations: el('chat-integrations'), ownConnectors: el('chat-own-connectors'),
23
23
  desktopValue: el('chat-desktop-value'), desktopReason: el('chat-desktop-reason'), picker: el('chat-picker'),
24
24
  feed: el('chat-feed'), offscreenActivity: el('chat-offscreen-activity'), recovery: el('chat-recovery'),
25
25
  approvalTray: el('chat-approval-tray'), recoveryCopy: el('chat-recovery-copy'),
@@ -87,8 +87,9 @@
87
87
  }).observe(tray);
88
88
  }
89
89
  keepApprovalTrayDecisionVisible(ui.approvalTray);
90
+ // #2037: safest to widest; Auto is the default for a project or workflow conversation.
90
91
  const permissionLabels = {
91
- 'read-only': 'Read only', 'workspace-write': 'Working folder write', 'full-access': 'Full access',
92
+ 'read-only': 'Read only', auto: 'Auto', 'workspace-write': 'Working folder write', 'full-access': 'Full access',
92
93
  };
93
94
  const providerLabels = { claude: 'Claude', codex: 'Codex' };
94
95
  // The one sign-in refusal FloLess re-words. 'chat-turn-active' is the same code every other chat
@@ -375,6 +376,8 @@
375
376
  function capabilityMessage(provider, reason) {
376
377
  const label = providerLabels[provider] || 'AI service';
377
378
  const raw = String(reason || '');
379
+ // A check that timed out (this computer or FloLess was busy) says nothing about the AI: say that, not "not ready".
380
+ if (/timed out|took too long|computer was busy|\bis busy\b/i.test(raw)) return `FloLess couldn’t finish checking ${label} because this computer was busy. Try again in a moment.`;
378
381
  if (signInNeeded(raw)) return `Sign in to ${label} first.`;
379
382
  if (/EPERM|EACCES|ENOENT|ENOTDIR|operation not permitted|permission denied|watch ['"]/i.test(raw)) {
380
383
  return 'FloLess cannot open this conversation’s project or workflow folder. Restore or reconnect that folder, then try again.';
@@ -2216,11 +2219,15 @@
2216
2219
  /** A refusal FloLess wrote for the person (`plain`), shown as is: what happened, why, and what to do next. */
2217
2220
  function renderPlainNotice(event) {
2218
2221
  const item = document.createElement('div');
2219
- item.className = 'ai-chat-event error';
2222
+ // #2037: a Codex auto-review decision is a receipt, not a failure: approved is information, held back is a notice.
2223
+ const review = event.payload?.tool === 'auto-review' ? event.payload.decision : null;
2224
+ // #2035: a step declined because nobody was watching a scheduled run is a notice the person reads later, not an error.
2225
+ const unattended = event.payload?.tool === 'unattended-decline';
2226
+ item.className = review === 'approved' ? 'ai-chat-event auto-review' : review || unattended ? 'ai-chat-event auto-review held' : 'ai-chat-event error';
2220
2227
  item.dataset.eventSequence = String(event.sequence);
2221
2228
  item.dataset.eventId = event.eventId;
2222
2229
  const label = document.createElement('strong');
2223
- label.textContent = 'Not done';
2230
+ label.textContent = review === 'approved' ? 'Auto-approved' : review ? 'Held back' : unattended ? 'Declined' : 'Not done';
2224
2231
  item.append(label, document.createTextNode(` · ${event.payload.message}`));
2225
2232
  return item;
2226
2233
  }
@@ -2232,7 +2239,7 @@
2232
2239
  item.dataset.eventSequence = String(event.sequence);
2233
2240
  item.dataset.eventId = event.eventId;
2234
2241
  const label = document.createElement('strong');
2235
- label.textContent = 'Agent run';
2242
+ label.textContent = event.payload.tool === 'guide' ? 'FloLess' : 'Agent run';
2236
2243
  item.append(label, document.createTextNode(` · ${String(event.payload.message || '')}`));
2237
2244
  return item;
2238
2245
  }
@@ -2621,6 +2628,8 @@
2621
2628
  if (event.type === 'connection-proposal') return renderConnectionProposal(event);
2622
2629
  if (event.type === 'connection-proposal-update') return null;
2623
2630
  if (event.type === 'connection-check') return renderConnectionCheck(event);
2631
+ // #2046: a next move the Guide suggested; web/guide.js paints it and owns its button.
2632
+ if (event.type === 'next-move') return window.flolessGuide?.renderNextMove?.(event) || null;
2624
2633
  if (event.type === 'approval-decided' && event.payload?.automatic === true && event.payload?.connectionCheck) return renderConnectionCheckAllowed(event);
2625
2634
  if (event.type === 'assistant-message') return renderMessage(event, 'assistant', payloadText(event), Boolean(event.payload?.delta));
2626
2635
  // #1907: a connector call that ran under "Allow for this chat" leaves a visible receipt; every other decision is audit only.
@@ -2630,7 +2639,7 @@
2630
2639
  // #1890 PR 3a: a decided workflow create stays visible as one line, so a reload never shows it as pending.
2631
2640
  if (event.type === 'approval-decided' && event.payload?.create) return renderCreateReceipt(event);
2632
2641
  if (event.type === 'approval-requested' || event.type === 'approval-decided' || event.type === 'state' || event.type === 'followup-status') return null;
2633
- if (event.type === 'tool' && event.payload?.tool === 'agent' && typeof event.payload?.message === 'string') return renderAgentRunLine(event);
2642
+ if (event.type === 'tool' && (event.payload?.tool === 'agent' || event.payload?.tool === 'guide') && typeof event.payload?.message === 'string') return renderAgentRunLine(event);
2634
2643
  if (event.type === 'tekla-read') return renderTeklaReadEvent(event);
2635
2644
  if (event.type === 'height-question') return renderHeightQuestion(event);
2636
2645
  if (event.type === 'setup-question') return renderSetupQuestion(event);
@@ -4516,7 +4525,7 @@
4516
4525
  }
4517
4526
  // Something FloLess itself refused during the answer (a file change it declined, a connector it turned away,
4518
4527
  // #1890 PR 2b / #1907), written for the person: held and shown under the answer, like the receipts below.
4519
- if (event.type === 'tool' && event.payload?.plain === true && event.payload?.tool !== 'agent'
4528
+ if (event.type === 'tool' && event.payload?.plain === true && event.payload?.tool !== 'agent' && event.payload?.tool !== 'guide'
4520
4529
  && typeof event.payload?.message === 'string' && event.payload.message) {
4521
4530
  links.push({ turnId: event.turnId, node: renderPlainNotice(event) });
4522
4531
  continue;
@@ -4527,13 +4536,15 @@
4527
4536
  // the suggestion and a check's result are receipts like the ones below, held under the answer they were written during.
4528
4537
  // #2007: an agent run's first line (who started it, its scope) is a tool event too, but it is the conversation's
4529
4538
  // opening line, not a tool: shown where it was written, before the instructions.
4530
- if (event.type === 'tool' && event.payload?.tool === 'agent' && typeof event.payload?.message === 'string') {
4539
+ if (event.type === 'tool' && (event.payload?.tool === 'agent' || event.payload?.tool === 'guide') && typeof event.payload?.message === 'string') {
4531
4540
  flushAssistant();
4532
4541
  ui.feed.append(renderAgentRunLine(event));
4533
4542
  continue;
4534
4543
  }
4535
4544
  if (event.type === 'connection-proposal-update') continue;
4536
4545
  if (event.type === 'connection-proposal' || event.type === 'connection-check') { links.push({ turnId: event.turnId, node: renderEvent(event) }); continue; }
4546
+ // #2046: the Guide's next-move cards are held under the answer they were suggested in, like the cards above.
4547
+ if (event.type === 'next-move') { const node = renderEvent(event); if (node) links.push({ turnId: event.turnId, node }); continue; }
4537
4548
  if (['tool', 'usage', 'knowledge-citation', 'attachment', 'compaction', 'state'].includes(event.type)) continue;
4538
4549
  // FloLess's own receipts (object links #1653; evidence looks and suggestion cards #1859) are written mid-answer while a tool runs:
4539
4550
  // held and shown under the answer, so they never cut one answer into fragments.
@@ -5541,8 +5552,11 @@
5541
5552
  const medium = (model?.efforts || []).find((effort) => effort.toLowerCase() === 'medium');
5542
5553
  ui.effort.querySelector('strong').textContent = effortLabel(chat?.settings.effort || medium || model?.efforts?.[0]) || 'Choose effort';
5543
5554
  ui.permission.querySelector('strong').textContent = permissionLabel(chat?.settings.permissionProfile);
5544
- if (state.scope?.owner?.kind === 'workspace') ui.permission.dataset.tip = 'From the workspace, AI Chat asks before it changes a file in a project or workflow. Full access isn’t offered here.';
5545
- else delete ui.permission.dataset.tip;
5555
+ ui.permission.dataset.tip = permissionTip(chat?.settings.permissionProfile);
5556
+ // #2046: the Guide always reads only; its Access is said, not chosen, beside its Turn off and Delete.
5557
+ const guideChat = chat?.initiator?.kind === 'guide';
5558
+ ui.permission.hidden = guideChat;
5559
+ if (ui.guideAccess) ui.guideAccess.hidden = !guideChat;
5546
5560
  paintWorkspaceUnits();
5547
5561
  const bindings = chat?.integrationBindings || [];
5548
5562
  ui.integrations.querySelector('strong').textContent = bindings.length
@@ -5756,6 +5770,12 @@
5756
5770
  // waiting for a follow-up fetch, which can leave a finished answer showing dots.
5757
5771
  state.chat = { ...state.chat, state: 'completed', activeTurn: null };
5758
5772
  paintConversation();
5773
+ // An answer just arrived, so the AI is reachable: a readiness check that failed earlier (it timed out while
5774
+ // this computer was busy) must not keep saying "not ready" under it. Read it again.
5775
+ if (!providerReady()) {
5776
+ const snapshot = captureChat();
5777
+ void loadCapability().then(() => { if (sameChat(snapshot)) { paintSettings(); updateSendState(); } });
5778
+ }
5759
5779
  }
5760
5780
  if (event.type === 'followup-status') {
5761
5781
  const notices = {
@@ -6249,7 +6269,8 @@
6249
6269
  const chat = await request('/api/chat/conversations', {
6250
6270
  method: 'POST', body: JSON.stringify({
6251
6271
  owner, provider, title: 'New chat',
6252
- settings: { model: null, effort: null, permissionProfile: 'read-only' },
6272
+ // #2037: no access level — the server starts a project or workflow conversation in Auto, the workspace in Read only.
6273
+ settings: { model: null, effort: null },
6253
6274
  initiator: { kind: 'user' },
6254
6275
  ...(displayUnitsSuggestion ? { displayUnitsSuggestion } : {}),
6255
6276
  }),
@@ -6376,14 +6397,22 @@
6376
6397
  }
6377
6398
 
6378
6399
  function closePicker() {
6379
- state.picker = null; ui.picker.hidden = true; ui.picker.replaceChildren();
6400
+ state.picker = null; state.pickerOpener = null; ui.picker.hidden = true; ui.picker.replaceChildren();
6380
6401
  for (const control of [ui.model, ui.effort, ui.permission, ui.integrations]) control.setAttribute('aria-expanded', 'false');
6381
6402
  }
6382
6403
 
6404
+ function closePickerOnEscape(event) {
6405
+ if (event.key !== 'Escape' || ui.picker.hidden || !state.picker) return;
6406
+ if (!ui.picker.contains(event.target) && event.target !== state.pickerOpener) return;
6407
+ const opener = state.pickerOpener;
6408
+ event.preventDefault(); event.stopPropagation(); closePicker();
6409
+ if (opener?.isConnected && !opener.disabled) opener.focus();
6410
+ }
6411
+
6383
6412
  function openPicker(kind, anchor, choices) {
6384
6413
  if (anchor.disabled) return;
6385
6414
  if (state.picker === kind) { closePicker(); return; }
6386
- toggleHistory(false); closePicker(); state.picker = kind;
6415
+ toggleHistory(false); closePicker(); state.picker = kind; state.pickerOpener = anchor;
6387
6416
  ui.picker.replaceChildren();
6388
6417
  for (const choice of choices) {
6389
6418
  const row = button('', `shell.chat-choice#${commandInstance(choice.id)}`, 'ai-chat-choice');
@@ -6435,20 +6464,61 @@
6435
6464
  return permissionLabels[value] || 'Read only';
6436
6465
  }
6437
6466
 
6467
+ /**
6468
+ * #2037: when Auto cannot do what it promises, the picker says so. Claude Haiku has no auto mode; Codex with the
6469
+ * person's own connectors on keeps asking, so each connector call still reaches its card (#1907).
6470
+ */
6471
+ function autoUnavailable() {
6472
+ if (state.chat?.integrationBindings?.length) return 'accounts';
6473
+ if (state.chat?.provider === 'codex') return state.chat?.settings?.useOwnConnectors === true ? 'connectors' : null;
6474
+ return state.chat?.provider === 'claude' && selectedModel()?.autoMode === false ? 'model' : null;
6475
+ }
6476
+
6477
+ function permissionMeta(value, workspace) {
6478
+ if (value === 'read-only') return 'Looks and answers. Changes nothing.';
6479
+ if (value === 'auto') {
6480
+ const why = autoUnavailable();
6481
+ if (why === 'connectors') return 'With your Codex connectors on, Codex asks you before steps that need approval.';
6482
+ if (why === 'accounts') return 'With a FloLess account selected, the AI asks you before steps that need approval.';
6483
+ return why ? 'Not available with this model. It asks before changes.' : 'Does safe work by itself. Checks risky steps first.';
6484
+ }
6485
+ if (value === 'workspace-write') return workspace ? 'Asks before changing project files.' : 'Asks you whenever the AI needs approval.';
6486
+ return 'Can change any file on this computer.';
6487
+ }
6488
+
6489
+ function permissionTip(value) {
6490
+ if (state.scope?.owner?.kind === 'workspace') return `Access: ${permissionLabel(value)}. Full access and Auto are offered only inside a project or workflow.`;
6491
+ const why = value === 'auto' ? autoUnavailable() : null;
6492
+ const label = why === 'connectors' ? 'Auto (asking first while your connectors are on)'
6493
+ : why === 'accounts' ? 'Auto (asking first while a FloLess account is selected)'
6494
+ : why ? 'Auto (asking first with this model)' : permissionLabel(value);
6495
+ return `Access: ${label}. ${permissionMeta(value || 'read-only', false)}`;
6496
+ }
6497
+
6438
6498
  function permissionChoices() {
6439
6499
  // #1890 PR 2b: from the workspace, Full access is not offered — it would remove the approvals each change needs.
6500
+ // #2037: nor Auto — Codex's auto review would approve a change around the claim its card makes.
6440
6501
  const workspace = state.scope?.owner?.kind === 'workspace';
6441
6502
  const offered = workspace
6442
- ? Object.keys(permissionLabels).filter((value) => value !== 'full-access')
6503
+ ? Object.keys(permissionLabels).filter((value) => value !== 'full-access' && value !== 'auto')
6443
6504
  : Object.keys(permissionLabels);
6444
6505
  return offered.map((value) => ({
6445
- id: `permission:${value}`, label: permissionLabel(value),
6446
- meta: value === 'full-access' ? 'all local files'
6447
- : value === 'workspace-write' ? (workspace ? 'asks before changing project files' : 'project or workflow folder') : 'no file changes',
6506
+ id: `permission:${value}`, label: permissionLabel(value), meta: permissionMeta(value, workspace),
6448
6507
  selected: state.chat.settings.permissionProfile === value, patch: { permissionProfile: value },
6449
6508
  }));
6450
6509
  }
6451
6510
 
6511
+ /** #2037: what Auto means in this conversation's Scope view; Codex's review may approve a change outside the folder. */
6512
+ function autoScopeNote() {
6513
+ const why = autoUnavailable();
6514
+ if (why === 'connectors') return 'Auto: while your Codex connectors are on, Codex asks you — instead of its own review — before any step that needs approval, so each connector call reaches its card. Turn the connectors off to let its review decide. Scope does not limit file reads.';
6515
+ if (why === 'accounts') return 'Auto: while a FloLess account is selected for this chat, the AI asks you — instead of its own review — before any step that needs approval, so that account stays its only way to reach the service. Scope does not limit file reads.';
6516
+ if (why) return 'Auto isn’t available with this model, so the AI asks before changes. File edits outside your home folder ask for approval. Scope does not limit file reads.';
6517
+ return state.chat?.provider === 'codex'
6518
+ ? 'Auto: Codex’s built-in review checks each step. Safe changes go ahead; risky ones, like deleting, are held back. Its review may also approve a change outside your home folder on its own — each decision is noted in the conversation. Scope does not limit file reads.'
6519
+ : 'Auto: Claude checks each step itself. Safe changes in your home folder go ahead; it asks you before touching anything outside it, and holds back risky steps like deleting. Scope does not limit file reads.';
6520
+ }
6521
+
6452
6522
  async function loadIntegrations() {
6453
6523
  const snapshot = captureChat();
6454
6524
  if (!snapshot) return null;
@@ -6519,7 +6589,7 @@
6519
6589
  if (!snapshot) return;
6520
6590
  if (ui.integrations.disabled) return;
6521
6591
  if (state.picker === 'integrations') { closePicker(); return; }
6522
- toggleHistory(false); closePicker(); state.picker = 'integrations';
6592
+ toggleHistory(false); closePicker(); state.picker = 'integrations'; state.pickerOpener = ui.integrations;
6523
6593
  ui.integrations.setAttribute('aria-expanded', 'true'); ui.picker.hidden = false;
6524
6594
  const loading = document.createElement('div'); loading.className = 'ai-chat-integration-empty'; loading.textContent = 'Checking FloLess accounts…';
6525
6595
  ui.picker.replaceChildren(loading);
@@ -8257,6 +8327,7 @@
8257
8327
  const disclosure = chat.settings?.permissionProfile === 'read-only'
8258
8328
  ? 'Read only: the AI’s file tools cannot change files. Commands keep their own approvals and may authorize file changes.'
8259
8329
  : chat.settings?.permissionProfile === 'full-access' ? 'Full access is on. The AI can change files without asking.'
8330
+ : chat.settings?.permissionProfile === 'auto' ? autoScopeNote()
8260
8331
  : chat.changeAllowance?.allowedForChat ? 'File changes in scope, including folders you add later, are allowed for this chat.' : '';
8261
8332
  if (ui.scopeDisclosure.textContent !== disclosure) ui.scopeDisclosure.textContent = disclosure;
8262
8333
  // Poll/SSE can change permissions or pause a reply while Scope stays open. Refresh only when
@@ -8319,6 +8390,7 @@
8319
8390
  note.textContent = readOnly ? 'The AI’s file tools cannot change files while Read only is on. Commands keep their own approvals and may authorize file changes. Scope adds folders and project data; it does not limit file reads.'
8320
8391
  + (globalAllowance ? ' Your saved file-change allowance does not override Read only.' : '')
8321
8392
  : profile === 'full-access' ? 'Full access is on. The AI can change files without asking.'
8393
+ : profile === 'auto' ? autoScopeNote()
8322
8394
  : globalAllowance ? 'File changes in this scope, including folders you add later, are allowed without asking. Commands and tools keep their own approvals. Scope does not limit file reads.'
8323
8395
  : 'File edits outside your home folder ask for approval unless you allow file changes for this chat. Scope adds folders and project data to this conversation; it does not limit file reads. Your home folder keeps its native provider permissions.';
8324
8396
  host.append(note);
@@ -8846,6 +8918,8 @@
8846
8918
  if (event.key === 'Escape') { event.preventDefault(); toggleHistory(false, { focusToggle: true }); }
8847
8919
  }
8848
8920
  ui.history.addEventListener('keydown', closeHistoryOnEscape);
8921
+ ui.picker.addEventListener('keydown', closePickerOnEscape);
8922
+ ui.integrations.addEventListener('keydown', closePickerOnEscape);
8849
8923
  ui.newChat.addEventListener('click', () => {
8850
8924
  beginProviderChoice();
8851
8925
  toggleHistory(false); setBusy(false); providerChooser(); clearReport();
@@ -8869,6 +8943,9 @@
8869
8943
  ui.switchAccount.addEventListener('click', () => { void switchAccount(); });
8870
8944
  ui.effort.addEventListener('click', () => openPicker('effort', ui.effort, effortChoices()));
8871
8945
  ui.permission.addEventListener('click', () => openPicker('permission', ui.permission, permissionChoices()));
8946
+ // #2046: the Guide's own controls (web/guide.js does the work and says what happened).
8947
+ el('chat-guide-off')?.addEventListener('click', () => { void window.flolessGuide?.turnOff?.(); });
8948
+ el('chat-guide-delete')?.addEventListener('click', () => { void window.flolessGuide?.deleteHistory?.(); });
8872
8949
  ui.ownConnectors?.addEventListener('click', () => {
8873
8950
  if (ui.ownConnectors.disabled || !state.chat) return;
8874
8951
  closePicker();
@@ -165,6 +165,15 @@
165
165
  interaction: 'dialog',
166
166
  risk: [],
167
167
  guidance: 'on-demand',
168
+ why: 'Restore it from Archived on the Workflows page. Its source, chat, history and publications stay on this computer.',
169
+ });
170
+
171
+ def('workflow.unarchive', {
172
+ label: 'Restore workflow',
173
+ actsOn: 'Returns {instance} to the Workflows page with its source, chat, history and publications',
174
+ group: 'In Archived on the Workflows page',
175
+ persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand',
176
+ why: 'Restoring does not compile or run the workflow. Queued messages in its AI Chat can continue. Open it to continue where you left off.',
168
177
  });
169
178
 
170
179
  /* ── the ≡ menu ──────────────────────────────────────────────────────────
@@ -508,6 +517,16 @@
508
517
  guidance: 'on-demand',
509
518
  });
510
519
 
520
+ def('menu.guide', {
521
+ label: 'Guide',
522
+ actsOn: 'Opens the Guide in AI Chat, or first asks whether it may look at this computer',
523
+ group: 'In the ≡ menu',
524
+ persistence: 'none',
525
+ interaction: 'dialog',
526
+ risk: [],
527
+ guidance: 'on-demand',
528
+ });
529
+
511
530
  def('menu.report-issue', {
512
531
  label: 'Report an issue',
513
532
  actsOn: 'Sends a report to the FloLess team',
@@ -676,8 +695,8 @@
676
695
  });
677
696
 
678
697
  def('guide.open', {
679
- label: 'Guide',
680
- actsOn: 'Explains this workflow, step by step',
698
+ label: 'About this workflow or project',
699
+ actsOn: 'Explains the open workflow or project, step by step',
681
700
  group: 'In the header',
682
701
  persistence: 'none',
683
702
  interaction: 'dialog',
@@ -970,7 +989,7 @@
970
989
 
971
990
  def('shell.project-create-steel-from-drawings', {
972
991
  label: 'Steel model from drawings',
973
- actsOn: 'Opens the drawing picker to start a steel model project',
992
+ actsOn: 'Opens the drawing picker to start a steel model project; drawings dropped on the card start one the same way',
974
993
  group: 'In the project list',
975
994
  persistence: 'none',
976
995
  interaction: 'dialog',
@@ -981,7 +1000,7 @@
981
1000
 
982
1001
  def('shell.project-create-trace-from-drawing', {
983
1002
  label: 'Trace a drawing',
984
- actsOn: 'Opens the drawing picker to start a Trace project',
1003
+ actsOn: 'Opens the drawing picker to start a Trace project; a drawing dropped on the card starts one the same way',
985
1004
  group: 'In the project list',
986
1005
  persistence: 'none',
987
1006
  interaction: 'dialog',
@@ -992,7 +1011,7 @@
992
1011
 
993
1012
  def('shell.project-create-tekla-read', {
994
1013
  label: 'Read Tekla model',
995
- actsOn: 'Opens the read-only Tekla source picker to start a Parser project',
1014
+ actsOn: 'Opens the read-only Tekla source picker to start a Parser project; a model folder or ZIP dropped on the card starts one the same way',
996
1015
  group: 'In the project list',
997
1016
  persistence: 'none',
998
1017
  interaction: 'dialog',
@@ -1001,6 +1020,17 @@
1001
1020
  why: 'The source model is not changed; FloLess starts a read only after you choose a model folder or ZIP.',
1002
1021
  });
1003
1022
 
1023
+ def('shell.project-create-revit-read', {
1024
+ label: 'Read Revit model',
1025
+ actsOn: 'Opens the RVT picker to start a read-only Revit Parser project; an .rvt dropped on the card starts one the same way',
1026
+ group: 'In the project list',
1027
+ persistence: 'none',
1028
+ interaction: 'dialog',
1029
+ risk: [],
1030
+ guidance: 'on-demand',
1031
+ why: 'The source RVT is not changed; FloLess reads it only after you choose the file and confirm the project setup.',
1032
+ });
1033
+
1004
1034
  def('shell.project-create-drawing-check-profile', {
1005
1035
  label: 'New Drawing Checker client profile',
1006
1036
  actsOn: 'Opens project setup for a new Drawing Checker client profile',
@@ -1829,6 +1859,7 @@
1829
1859
  });
1830
1860
  def('shell.chat-model', {
1831
1861
  label: 'AI model', actsOn: 'Chooses the model for later turns in this conversation',
1862
+ key: 'Esc closes the list and returns to AI model',
1832
1863
  group: 'In AI Chat settings', persistence: 'working', interaction: 'dialog', risk: [], guidance: 'on-demand',
1833
1864
  });
1834
1865
  def('shell.chat-switch-account', {
@@ -1843,14 +1874,17 @@
1843
1874
  });
1844
1875
  def('shell.chat-effort', {
1845
1876
  label: 'Reasoning effort', actsOn: 'Chooses the reasoning effort for later turns in this conversation',
1877
+ key: 'Esc closes the list and returns to Reasoning effort',
1846
1878
  group: 'In AI Chat settings', persistence: 'working', interaction: 'dialog', risk: ['costs-time'], guidance: 'on-demand',
1847
1879
  });
1848
1880
  def('shell.chat-permission', {
1849
- label: 'File access', actsOn: 'Chooses whether later turns can read files, write inside the project or workflow folder, or use full local access',
1881
+ label: 'File access', actsOn: 'Chooses whether later turns can only read files, let the AI approve safe steps itself (Auto), write inside the project or workflow folder under the AI’s usual approvals, or use full local access',
1882
+ key: 'Esc closes the list and returns to File access',
1850
1883
  group: 'In AI Chat settings', persistence: 'working', interaction: 'dialog', risk: ['destructive'], guidance: 'on-demand',
1851
1884
  });
1852
1885
  def('shell.chat-integrations', {
1853
1886
  label: 'Connected accounts', actsOn: 'Shows which FloLess accounts this conversation will use',
1887
+ key: 'Esc closes the list and returns to Connected accounts',
1854
1888
  group: 'In AI Chat settings', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
1855
1889
  why: 'A FloLess account selected here is how this chat reaches that service; your own Claude or Codex connectors stay off while one is selected.',
1856
1890
  });
@@ -1869,6 +1903,7 @@
1869
1903
  });
1870
1904
  def('shell.chat-choice', {
1871
1905
  label: 'Choose chat setting', actsOn: 'Sets {instance} for later turns in this conversation',
1906
+ key: 'Esc closes the list and returns to the setting that opened it',
1872
1907
  group: 'In AI Chat settings', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand',
1873
1908
  });
1874
1909
  def('shell.chat-input', {
@@ -2047,6 +2082,16 @@
2047
2082
  group: 'On an agent', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
2048
2083
  why: 'Each run is an ordinary AI Chat conversation you can watch and answer. Nothing starts until you confirm.',
2049
2084
  });
2085
+ // #2035: a routine can run this agent on a schedule, with nobody watching.
2086
+ def('shell.agents-schedule', {
2087
+ label: 'Schedule agent', actsOn: 'Opens a new routine that runs this agent on a schedule (saves your changes first)',
2088
+ group: 'On an agent', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
2089
+ why: 'Nobody watches a scheduled run, so anything that would ask you is declined and listed for you afterwards under Questions for you.',
2090
+ });
2091
+ def('shell.agents-run-questions', {
2092
+ label: 'Questions for you', actsOn: 'Shows the steps the scheduled run on {instance} declined because nobody was watching',
2093
+ anyInstance: 'a project', group: 'On an agent', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
2094
+ });
2050
2095
  def('shell.agents-run-confirm', {
2051
2096
  label: 'Run', actsOn: 'Starts the conversations listed here — up to four at a time, the rest wait their turn', group: 'On an agent',
2052
2097
  persistence: 'approved', interaction: 'instant', risk: ['costs-time'], guidance: 'on-demand',
@@ -2698,7 +2743,7 @@
2698
2743
 
2699
2744
  def('shell.tool-updates-check', {
2700
2745
  label: 'Check for tool updates',
2701
- actsOn: 'Downloads newer tool versions when no run is using them, and prepares the workflows they affect',
2746
+ actsOn: 'Downloads newer tool versions when no run is using them, prepares the workflows they affect, and cleans up tool versions no workflow uses',
2702
2747
  group: 'In the FloLess dialogs',
2703
2748
  persistence: 'external',
2704
2749
  interaction: 'instant',
@@ -2706,6 +2751,17 @@
2706
2751
  guidance: 'on-demand',
2707
2752
  });
2708
2753
 
2754
+ def('shell.tool-updates-forget-folder', {
2755
+ label: 'Remove from list',
2756
+ actsOn: 'Stops keeping old tool versions for the workflows in a workspace folder that is gone',
2757
+ group: 'In the FloLess dialogs',
2758
+ persistence: 'external',
2759
+ interaction: 'instant',
2760
+ risk: ['destructive'],
2761
+ guidance: 'on-demand',
2762
+ why: 'While a folder AWARE was told about is missing, no unused tool version is cleaned up. Tool versions only its workflows used can be cleaned up afterwards; a folder that comes back is counted again.',
2763
+ });
2764
+
2709
2765
  def('shell.tool-updates-open-workflow', {
2710
2766
  label: 'Open workflow',
2711
2767
  actsOn: 'Opens the workflow a tool update needs you for, so you can do the step the dialog names',
@@ -2786,6 +2842,83 @@
2786
2842
  One template each, keyed by the dialog. See the section header above for
2787
2843
  why Cancel and Close are shared and the confirms are not. */
2788
2844
 
2845
+ // #2046: the Guide — its question, its conversation's controls, and the next-move cards it suggests (web/guide.js).
2846
+ def('shell.ask-guide', {
2847
+ label: 'Ask the Guide', actsOn: 'Opens the Guide in AI Chat from {instance}, or first asks whether it may look at this computer',
2848
+ anyInstance: 'an empty page',
2849
+ group: 'Getting started', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
2850
+ });
2851
+ def('shell.guide-turn-on', {
2852
+ label: 'Turn on the Guide', actsOn: 'Lets the Guide look at this computer; once your AI is signed in, sends the preview shown and starts its conversation in AI Chat',
2853
+ group: 'In the Guide question', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
2854
+ why: 'The Guide only reads. Turn it off or delete its history at any time from its conversation’s settings.',
2855
+ });
2856
+ def('shell.guide-start', {
2857
+ label: 'Start the Guide', actsOn: 'Sends the fresh look shown to the Guide’s conversation in AI Chat',
2858
+ group: 'In the Guide question', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
2859
+ });
2860
+ def('shell.guide-not-now', {
2861
+ label: 'Not now', actsOn: 'Closes the question without turning the Guide on; FloLess won’t ask again by itself',
2862
+ group: 'In the Guide question', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
2863
+ });
2864
+ def('shell.guide-choose-folder', {
2865
+ label: 'Choose folder', actsOn: 'Opens the Workspace directory chooser, so the Guide has a folder to keep its conversation in',
2866
+ group: 'In the Guide question', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
2867
+ });
2868
+ def('shell.guide-share-window-titles', {
2869
+ label: 'Window titles', actsOn: 'Chooses whether the Guide sees what is open inside each running program, or only program names',
2870
+ group: 'In the Guide question', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
2871
+ });
2872
+ def('shell.guide-share-recent-files', {
2873
+ label: 'Recent file names', actsOn: 'Chooses whether the Guide sees the names and folders of recent files, or only how many of each type',
2874
+ group: 'In the Guide question', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
2875
+ });
2876
+ def('shell.guide-provider', {
2877
+ label: 'Which AI reads this', actsOn: 'Sends the Guide’s look to {instance}',
2878
+ anyInstance: 'the AI you choose',
2879
+ group: 'In the Guide question', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
2880
+ });
2881
+ def('shell.guide-preview-open', {
2882
+ label: 'Preview what will be sent', actsOn: 'Shows, section by section, exactly what the Guide would send to the AI',
2883
+ group: 'In the Guide question', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
2884
+ });
2885
+ def('shell.guide-preview-section', {
2886
+ label: 'Show a part of the preview', actsOn: 'Opens {instance} in the preview of what the Guide would send',
2887
+ anyInstance: 'one part',
2888
+ group: 'In the Guide question', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
2889
+ });
2890
+ def('shell.guide-preview-retry', {
2891
+ label: 'Try again', actsOn: 'Looks at this computer again for the preview',
2892
+ group: 'In the Guide question', persistence: 'none', interaction: 'instant', risk: ['costs-time'], guidance: 'on-demand',
2893
+ });
2894
+ def('shell.guide-turn-off', {
2895
+ label: 'Turn off the Guide', actsOn: 'Stops the Guide looking at this computer and stops the answer it is writing in this projects folder; one in another folder finishes and gets nothing more. Its conversation stays',
2896
+ group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
2897
+ });
2898
+ def('shell.guide-delete', {
2899
+ label: 'Delete Guide history', actsOn: 'Asks, then deletes your Guide conversations in this projects folder',
2900
+ group: 'In AI Chat', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
2901
+ });
2902
+ def('shell.guide-delete-confirm', {
2903
+ label: 'Delete Guide history', actsOn: 'Deletes your Guide conversations in this projects folder, for both AIs; what the AI already received stays under its own rules',
2904
+ group: 'In the FloLess dialogs', persistence: 'working', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand',
2905
+ });
2906
+ def('shell.guide-move-open', {
2907
+ label: 'Open a suggested next step', actsOn: 'Checks the Guide’s suggestion still applies, then opens the place to {instance}; nothing happens until you confirm there',
2908
+ anyInstance: 'do it',
2909
+ group: 'In AI Chat', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
2910
+ });
2911
+ def('shell.guide-move-not-now', {
2912
+ label: 'Set a suggestion aside', actsOn: 'Folds the Guide’s suggestion {instance} away on this computer; Undo brings it back',
2913
+ anyInstance: 'on the card',
2914
+ group: 'In AI Chat', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
2915
+ });
2916
+ def('shell.guide-move-undo', {
2917
+ label: 'Show a suggestion again', actsOn: 'Brings back the Guide’s suggestion {instance}',
2918
+ anyInstance: 'on the card',
2919
+ group: 'In AI Chat', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
2920
+ });
2921
+
2789
2922
  def('shell.dialog-cancel', {
2790
2923
  label: 'Cancel',
2791
2924
  actsOn: 'Leaves {instance} without applying anything',
@@ -3426,6 +3559,61 @@
3426
3559
  guidance: 'on-demand',
3427
3560
  });
3428
3561
 
3562
+ // #2035: a routine runs a workflow or starts an agent.
3563
+ def('shell.routine-target', {
3564
+ label: 'What the routine runs',
3565
+ actsOn: 'Makes the routine run {instance}. An agent runs with nobody watching: anything that would ask you is declined and listed for you afterwards',
3566
+ anyInstance: 'a workflow or an agent',
3567
+ group: 'In the Routines dialog',
3568
+ persistence: 'working',
3569
+ interaction: 'instant',
3570
+ risk: [],
3571
+ guidance: 'on-demand',
3572
+ why: 'An agent runs on a schedule with nobody watching: anything that would ask you is declined and listed afterwards.',
3573
+ });
3574
+
3575
+ def('shell.routine-agent', {
3576
+ label: 'Routine agent',
3577
+ actsOn: 'Chooses which agent the routine starts',
3578
+ group: 'In the Routines dialog',
3579
+ persistence: 'working',
3580
+ interaction: 'instant',
3581
+ risk: [],
3582
+ guidance: 'on-demand',
3583
+ });
3584
+
3585
+ def('shell.routine-agent-ai', {
3586
+ label: 'Routine AI',
3587
+ actsOn: 'Makes {instance} run the agent each time the routine fires',
3588
+ anyInstance: 'Claude or Codex',
3589
+ group: 'In the Routines dialog',
3590
+ persistence: 'working',
3591
+ interaction: 'instant',
3592
+ risk: [],
3593
+ guidance: 'on-demand',
3594
+ });
3595
+
3596
+ def('shell.routine-agent-create', {
3597
+ label: 'Create an agent',
3598
+ actsOn: 'Closes Routines and opens the Agents page, where you can create one',
3599
+ group: 'In the Routines dialog',
3600
+ persistence: 'none',
3601
+ interaction: 'instant',
3602
+ risk: [],
3603
+ guidance: 'on-demand',
3604
+ });
3605
+
3606
+ def('shell.routine-open-agent', {
3607
+ label: 'Open agent',
3608
+ actsOn: 'Opens the agent that {instance} runs, with its runs and their Questions for you',
3609
+ anyInstance: 'a routine',
3610
+ group: 'In the Routines dialog',
3611
+ persistence: 'none',
3612
+ interaction: 'instant',
3613
+ risk: [],
3614
+ guidance: 'on-demand',
3615
+ });
3616
+
3429
3617
  def('shell.routine-mode', {
3430
3618
  label: 'Routine mode',
3431
3619
  actsOn: 'Runs the routine on {instance}',
@@ -3701,13 +3889,13 @@
3701
3889
 
3702
3890
  def('workflow.reinstall-approved-tool', {
3703
3891
  label: 'Reinstall the approved version',
3704
- actsOn: 'Installs {instance} again, so this workflow runs with the exact version it was approved with',
3892
+ actsOn: 'Puts {instance} back, so this workflow runs with the exact version it was approved with',
3705
3893
  group: 'In the Needs you notice',
3706
- persistence: 'external', // changes which tool version AWARE has installed
3894
+ persistence: 'external', // changes what AWARE keeps in its tool store (on an older AWARE, which version is installed)
3707
3895
  interaction: 'instant',
3708
3896
  risk: ['costs-time'],
3709
3897
  guidance: 'on-demand',
3710
- why: 'FloLess never moves a workflow to another tool version on its own. Reinstalling makes this version the installed one again; workflows approved with a newer version keep running as they do now.',
3898
+ why: 'FloLess never moves a workflow to another tool version on its own. Reinstalling puts this version back without changing the installed one (on an older AWARE it makes this version the installed one again); workflows approved with a newer version keep running as they do now.',
3711
3899
  });
3712
3900
 
3713
3901
  def('workflow.approval-compile-again', {