synabun 2.4.3 → 2.4.5
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/CHANGELOG.md +36 -0
- package/README.md +1 -1
- package/docs/browser-extension-bridge.md +66 -36
- package/docs/whatsapp.md +3 -3
- package/mcp-server/dist/http.d.ts.map +1 -1
- package/mcp-server/dist/http.js +8 -1
- package/mcp-server/dist/http.js.map +1 -1
- package/mcp-server/dist/services/identity.d.ts +2 -0
- package/mcp-server/dist/services/identity.d.ts.map +1 -1
- package/mcp-server/dist/services/identity.js +4 -0
- package/mcp-server/dist/services/identity.js.map +1 -1
- package/mcp-server/dist/services/memory-client.d.ts +5 -0
- package/mcp-server/dist/services/memory-client.d.ts.map +1 -1
- package/mcp-server/dist/services/memory-client.js +21 -2
- package/mcp-server/dist/services/memory-client.js.map +1 -1
- package/mcp-server/dist/services/memory-writer.d.ts +3 -0
- package/mcp-server/dist/services/memory-writer.d.ts.map +1 -1
- package/mcp-server/dist/services/memory-writer.js +7 -1
- package/mcp-server/dist/services/memory-writer.js.map +1 -1
- package/mcp-server/dist/services/neural-interface.d.ts +12 -1
- package/mcp-server/dist/services/neural-interface.d.ts.map +1 -1
- package/mcp-server/dist/services/neural-interface.js +68 -17
- package/mcp-server/dist/services/neural-interface.js.map +1 -1
- package/mcp-server/dist/services/typesafe-config.d.ts +38 -2
- package/mcp-server/dist/services/typesafe-config.d.ts.map +1 -1
- package/mcp-server/dist/services/typesafe-config.js +260 -8
- package/mcp-server/dist/services/typesafe-config.js.map +1 -1
- package/mcp-server/dist/tools/agent-definition.d.ts +2 -2
- package/mcp-server/dist/tools/agents.d.ts +19 -4
- package/mcp-server/dist/tools/agents.d.ts.map +1 -1
- package/mcp-server/dist/tools/agents.js +85 -17
- package/mcp-server/dist/tools/agents.js.map +1 -1
- package/mcp-server/dist/tools/browser-observe.d.ts +11 -0
- package/mcp-server/dist/tools/browser-observe.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-observe.js +113 -27
- package/mcp-server/dist/tools/browser-observe.js.map +1 -1
- package/mcp-server/dist/tools/browser-readers.d.ts +6 -0
- package/mcp-server/dist/tools/browser-readers.d.ts.map +1 -0
- package/mcp-server/dist/tools/browser-readers.js +17 -0
- package/mcp-server/dist/tools/browser-readers.js.map +1 -0
- package/mcp-server/dist/tools/remember.d.ts.map +1 -1
- package/mcp-server/dist/tools/remember.js +6 -2
- package/mcp-server/dist/tools/remember.js.map +1 -1
- package/mcp-server/dist/tools/youtube/analytics.d.ts +4 -0
- package/mcp-server/dist/tools/youtube/analytics.d.ts.map +1 -1
- package/mcp-server/dist/tools/youtube/analytics.js +25 -20
- package/mcp-server/dist/tools/youtube/analytics.js.map +1 -1
- package/mcp-server/dist/tools/youtube/helpers.d.ts +5 -1
- package/mcp-server/dist/tools/youtube/helpers.d.ts.map +1 -1
- package/mcp-server/dist/tools/youtube/helpers.js +7 -3
- package/mcp-server/dist/tools/youtube/helpers.js.map +1 -1
- package/mcp-server/dist/tools/youtube/navigate.d.ts +2 -0
- package/mcp-server/dist/tools/youtube/navigate.d.ts.map +1 -1
- package/mcp-server/dist/tools/youtube/navigate.js +5 -3
- package/mcp-server/dist/tools/youtube/navigate.js.map +1 -1
- package/mcp-server/dist/tools/youtube/playlist.js +2 -2
- package/mcp-server/dist/tools/youtube/playlist.js.map +1 -1
- package/mcp-server/dist/tools/youtube/readers.d.ts +4 -0
- package/mcp-server/dist/tools/youtube/readers.d.ts.map +1 -0
- package/mcp-server/dist/tools/youtube/readers.js +15 -0
- package/mcp-server/dist/tools/youtube/readers.js.map +1 -0
- package/mcp-server/package-lock.json +2 -2
- package/mcp-server/package.json +1 -1
- package/mcp-server/src/http.ts +8 -1
- package/mcp-server/src/services/identity.ts +5 -0
- package/mcp-server/src/services/memory-client.ts +32 -12
- package/mcp-server/src/services/memory-writer.ts +5 -2
- package/mcp-server/src/services/neural-interface.ts +67 -19
- package/mcp-server/src/services/typesafe-config.ts +268 -7
- package/mcp-server/src/tools/agents.ts +79 -17
- package/mcp-server/src/tools/browser-observe.ts +117 -28
- package/mcp-server/src/tools/browser-readers.ts +19 -0
- package/mcp-server/src/tools/remember.ts +6 -1
- package/mcp-server/src/tools/youtube/analytics.ts +26 -28
- package/mcp-server/src/tools/youtube/helpers.ts +8 -2
- package/mcp-server/src/tools/youtube/navigate.ts +6 -7
- package/mcp-server/src/tools/youtube/playlist.ts +2 -2
- package/mcp-server/src/tools/youtube/readers.ts +15 -0
- package/neural-interface/i18n/en.json +487 -8
- package/neural-interface/i18n/pt-BR.json +487 -8
- package/neural-interface/lib/agents-studio-api.js +7 -2
- package/neural-interface/lib/antigravity/home.js +43 -8
- package/neural-interface/lib/antigravity/tool-call.js +14 -0
- package/neural-interface/lib/assistant-api.js +90 -0
- package/neural-interface/lib/assistant-brains/antigravity.js +4 -2
- package/neural-interface/lib/assistant-brains/claude.js +10 -0
- package/neural-interface/lib/assistant-dispatch.js +276 -42
- package/neural-interface/lib/assistant-memory.js +3 -1
- package/neural-interface/lib/assistant-persona.js +14 -3
- package/neural-interface/lib/assistant-route-gate.js +11 -2
- package/neural-interface/lib/assistant-router.js +18 -8
- package/neural-interface/lib/assistant-runtime.js +103 -6
- package/neural-interface/lib/assistant-spilled-output.js +53 -0
- package/neural-interface/lib/assistant-task-prompt.js +15 -2
- package/neural-interface/lib/browser-connection-state.js +20 -0
- package/neural-interface/lib/browser-default.js +22 -2
- package/neural-interface/lib/browser-extension-adapter.js +221 -15
- package/neural-interface/lib/browser-extension-bridge.js +89 -9
- package/neural-interface/lib/browser-extension-folder.js +50 -11
- package/neural-interface/lib/browser-extension-package.js +6 -5
- package/neural-interface/lib/browser-extension-pin.json +15 -13
- package/neural-interface/lib/browser-extension-protocol.js +141 -14
- package/neural-interface/lib/browser-extension-setup.js +210 -40
- package/neural-interface/lib/browser-extension-update.js +104 -0
- package/neural-interface/lib/browser-extraction.js +38 -14
- package/neural-interface/lib/claude-bg-tasks.js +183 -0
- package/neural-interface/lib/claude-history.js +12 -1
- package/neural-interface/lib/confined-fs.js +25 -0
- package/neural-interface/lib/coordination/operations.js +2 -0
- package/neural-interface/lib/db.js +39 -16
- package/neural-interface/lib/editor-completion-opencode.js +2 -2
- package/neural-interface/lib/git-bash/manager.js +28 -3
- package/neural-interface/lib/git-status-runner.js +31 -3
- package/neural-interface/lib/loop-inventory.js +162 -0
- package/neural-interface/lib/loop-stall.js +74 -4
- package/neural-interface/lib/memory-session-capture.js +157 -66
- package/neural-interface/lib/native-loop-providers.js +73 -13
- package/neural-interface/lib/native-loop-runtime.js +3 -0
- package/neural-interface/lib/opencode-protocol.js +4 -2
- package/neural-interface/lib/peer-identity.js +62 -16
- package/neural-interface/lib/remote-policy.js +24 -7
- package/neural-interface/lib/session-cache-builder.js +66 -18
- package/neural-interface/lib/session-capture-gate.js +42 -0
- package/neural-interface/lib/session-indexer.js +28 -20
- package/neural-interface/lib/teams/README.md +22 -1
- package/neural-interface/lib/teams/api.js +79 -6
- package/neural-interface/lib/teams/index.js +2 -0
- package/neural-interface/lib/teams/recovery.js +68 -0
- package/neural-interface/lib/teams/scheduler.js +352 -31
- package/neural-interface/lib/teams/worktrees.js +123 -30
- package/neural-interface/lib/ui-blob-api.js +14 -5
- package/neural-interface/lib/ui-blob-store.js +302 -39
- package/neural-interface/package-lock.json +2 -2
- package/neural-interface/package.json +1 -1
- package/neural-interface/public/extension-setup.html +7 -2
- package/neural-interface/public/shared/agents/studio/ax-api.js +16 -0
- package/neural-interface/public/shared/agents/studio/ax-teams-view.js +318 -13
- package/neural-interface/public/shared/agents/studio/ax-teams.js +141 -9
- package/neural-interface/public/shared/assistant/asst-agents-dock.js +4 -0
- package/neural-interface/public/shared/assistant/asst-api.js +42 -0
- package/neural-interface/public/shared/assistant/asst-composer.js +85 -12
- package/neural-interface/public/shared/assistant/asst-panel.js +285 -10
- package/neural-interface/public/shared/assistant/asst-render.js +205 -4
- package/neural-interface/public/shared/assistant/asst-scenes.js +12 -0
- package/neural-interface/public/shared/assistant/asst-sidepanel.js +18 -1
- package/neural-interface/public/shared/assistant/asst-state.js +241 -2
- package/neural-interface/public/shared/assistant/asst-steer.js +294 -0
- package/neural-interface/public/shared/assistant/asst-styles.js +20 -0
- package/neural-interface/public/shared/bg-tasks/bg-tasks-claude.js +147 -0
- package/neural-interface/public/shared/bg-tasks/bg-tasks-model.js +527 -0
- package/neural-interface/public/shared/bg-tasks/bg-tasks-panel.js +161 -0
- package/neural-interface/public/shared/bg-tasks/bg-tasks-view.js +508 -0
- package/neural-interface/public/shared/browser-extension-updates.js +90 -0
- package/neural-interface/public/shared/cp/cp-bg-tasks.js +130 -0
- package/neural-interface/public/shared/extension-setup/es-page.js +41 -15
- package/neural-interface/public/shared/extension-setup/es-view.js +51 -11
- package/neural-interface/public/shared/extension-update-view.js +34 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-shell-logic.js +8 -4
- package/neural-interface/public/shared/settings/settings-ai-browser.js +23 -3
- package/neural-interface/public/shared/settings/settings-browser-extension.js +581 -197
- package/neural-interface/public/shared/settings/settings-extension-diagrams.js +116 -0
- package/neural-interface/public/shared/settings/settings-extension-guide.js +222 -0
- package/neural-interface/public/shared/settings/settings-extension-update.js +114 -0
- package/neural-interface/public/shared/settings/settings-ia.js +2 -2
- package/neural-interface/public/shared/settings/settings-shell.js +5 -0
- package/neural-interface/public/shared/styles.css +200 -13
- package/neural-interface/public/shared/ui-claude-panel.js +110 -1
- package/neural-interface/public/shared/ui-notifications.js +23 -4
- package/neural-interface/public/shared/ui-settings-entry.js +6 -0
- package/neural-interface/public/shared/ui-settings.js +48 -11
- package/neural-interface/public/shared/ui-tray-columns.js +9 -2
- package/neural-interface/public/shared/worker-end.js +18 -0
- package/neural-interface/scripts/patch-node-pty.mjs +151 -0
- package/neural-interface/scripts/rebuild-pty.js +10 -0
- package/neural-interface/server.js +503 -281
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -4063,6 +4063,9 @@
|
|
|
4063
4063
|
opacity: 0;
|
|
4064
4064
|
transition: opacity 0.15s, color 0.15s;
|
|
4065
4065
|
}
|
|
4066
|
+
.notif-toast[data-persistent] { --notif-accent: var(--t-secondary); cursor: default; }
|
|
4067
|
+
.notif-toast[data-persistent] .cli-detect-btn { margin-top: 8px; }
|
|
4068
|
+
.notif-toast[data-persistent] .notif-toast-close { opacity: 1; }
|
|
4066
4069
|
.notif-toast:hover .notif-toast-close {
|
|
4067
4070
|
opacity: 1;
|
|
4068
4071
|
}
|
|
@@ -16128,12 +16131,13 @@
|
|
|
16128
16131
|
form.stg-restore-dialog .tag-delete-modal-actions { margin-top: 14px; }
|
|
16129
16132
|
/* <<< backup-encryption-ui */
|
|
16130
16133
|
/* >>> browser-extension-card */
|
|
16131
|
-
/* Settings → Browser → "
|
|
16132
|
-
|
|
16133
|
-
|
|
16134
|
-
|
|
16135
|
-
|
|
16134
|
+
/* Settings → Browser → "My browser · use the extension" (shared/settings/settings-browser-extension.js; the design
|
|
16135
|
+
handoff of 2026-11-27). The card is one row of the Browser group, never a label + control grid: its parts (the
|
|
16136
|
+
product, the installed browser, the staged status with its one action, agent access, tabs, Advanced) stack top to
|
|
16137
|
+
bottom, every row wraps, and nothing is positioned or given a height, so no paragraph can lie over another at any
|
|
16138
|
+
width or in any language. Colours are the panel's --stg-* tokens; controls keep Settings' 22 px geometry. */
|
|
16136
16139
|
.settings-panel .stg-field.bc-extension { display: block; min-width: 0; }
|
|
16140
|
+
.settings-panel #bc-update-progress { width: 100%; accent-color: var(--stg-accent-fill); }
|
|
16137
16141
|
.settings-panel .bc-extension .bc-ext-label {
|
|
16138
16142
|
display: block; margin: 0; min-width: 0;
|
|
16139
16143
|
font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--stg-text); overflow-wrap: anywhere;
|
|
@@ -16169,15 +16173,51 @@
|
|
|
16169
16173
|
}
|
|
16170
16174
|
.settings-panel .bc-extension :is(.bc-ext-section, .bc-ext-part) > .stg-subhead { margin: 0; padding: 0; }
|
|
16171
16175
|
.settings-panel .bc-extension :is(.bc-ext-section, .bc-ext-part) > * + * { margin-top: 8px; }
|
|
16172
|
-
.settings-panel .bc-extension .bc-ext-section[data-extension-section="setup"][data-mode="connect"] > .stg-subhead { font-size: 14px; font-weight: 600; }
|
|
16173
16176
|
.settings-panel .bc-extension .bc-ext-note[data-tone="warn"] { color: var(--stg-warn); }
|
|
16174
|
-
/*
|
|
16175
|
-
.settings-panel .bc-extension .bc-ext-
|
|
16177
|
+
/* the product: the mark, its name and what it is for */
|
|
16178
|
+
.settings-panel .bc-extension .bc-ext-product { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; padding-bottom: var(--stg-row-y); }
|
|
16179
|
+
.settings-panel .bc-extension .bc-ext-mark {
|
|
16180
|
+
display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; aspect-ratio: 1;
|
|
16181
|
+
border: 1px solid var(--stg-line); border-radius: 8px; background: var(--stg-group); color: var(--stg-text);
|
|
16182
|
+
}
|
|
16183
|
+
.settings-panel .bc-extension .bc-ext-mark svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
|
|
16184
|
+
.settings-panel .bc-extension .bc-ext-product-text { flex: 1 1 180px; min-width: 0; }
|
|
16185
|
+
.settings-panel .bc-extension .bc-ext-product-text > .stg-subhead { margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
|
|
16186
|
+
/* a row: what it is (label and help) on the left, its control or action on the right; under it when narrow */
|
|
16187
|
+
.settings-panel .bc-extension .bc-ext-row {
|
|
16176
16188
|
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-width: 0;
|
|
16189
|
+
padding: var(--stg-row-y) 0; border-top: 1px solid var(--stg-sep);
|
|
16190
|
+
}
|
|
16191
|
+
.settings-panel .bc-extension .bc-ext-row-text { flex: 1 1 220px; min-width: 0; }
|
|
16192
|
+
.settings-panel .bc-extension .bc-ext-row-label { margin: 0; font-size: 13px; line-height: 1.4; color: var(--stg-text); overflow-wrap: anywhere; }
|
|
16193
|
+
.settings-panel .bc-extension .bc-ext-row-text > .stg-help { margin-top: 2px; }
|
|
16194
|
+
.settings-panel .bc-extension .bc-ext-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
|
|
16195
|
+
.settings-panel .bc-extension .bc-ext-status-line > .bc-ext-label { flex: 0 1 auto; font-weight: 500; }
|
|
16196
|
+
.settings-panel .bc-extension .bc-ext-target { flex: 0 1 auto; min-width: 0; max-width: 100%; }
|
|
16197
|
+
.settings-panel .bc-extension .bc-ext-target .cc-dropdown-value { overflow-wrap: anywhere; }
|
|
16198
|
+
/* a default browser that cannot run the extension: named, never changed */
|
|
16199
|
+
/* (the guide's own notices, a browser that cannot run it and a folder that could not be prepared, are the same box) */
|
|
16200
|
+
.settings-panel :is(.bc-extension, .bc-guide) .bc-ext-notice {
|
|
16201
|
+
margin: 0 0 var(--stg-row-y); padding: 10px 12px; min-width: 0; border: 1px solid var(--stg-line); border-left: 2px solid var(--stg-warn);
|
|
16202
|
+
border-radius: 8px; background: var(--stg-group);
|
|
16203
|
+
}
|
|
16204
|
+
.settings-panel :is(.bc-extension, .bc-guide) .bc-ext-notice-title {
|
|
16205
|
+
display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-weight: 600; color: var(--stg-text); overflow-wrap: anywhere;
|
|
16177
16206
|
}
|
|
16178
|
-
.settings-panel .bc-extension .bc-ext-
|
|
16207
|
+
.settings-panel :is(.bc-extension, .bc-guide) .bc-ext-notice-title > span { min-width: 0; }
|
|
16208
|
+
.settings-panel :is(.bc-extension, .bc-guide) .bc-ext-notice > * + * { margin-top: 4px; }
|
|
16209
|
+
/* agent access: its label and dropdown on one line when they fit, the dropdown under it otherwise */
|
|
16210
|
+
.settings-panel .bc-extension .bc-ext-mode-row { border-top: 0; padding-bottom: 0; }
|
|
16179
16211
|
.settings-panel .bc-extension .bc-ext-mode { flex: 0 1 auto; min-width: 0; max-width: 100%; }
|
|
16180
16212
|
.settings-panel .bc-extension .bc-ext-mode .cc-dropdown-value { overflow-wrap: anywhere; }
|
|
16213
|
+
/* Advanced: manual pairing and file limits are disclosures of their own inside it */
|
|
16214
|
+
.settings-panel .bc-extension .bc-ext-sub { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--stg-sep); }
|
|
16215
|
+
.settings-panel .bc-extension .bc-ext-sub > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--stg-text); list-style: none; }
|
|
16216
|
+
.settings-panel .bc-extension .bc-ext-sub > summary::-webkit-details-marker { display: none; }
|
|
16217
|
+
.settings-panel .bc-extension .bc-ext-sub > summary .cc-section-chevron { width: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform var(--duration-fast, 150ms) ease; }
|
|
16218
|
+
.settings-panel .bc-extension .bc-ext-sub[open] > summary .cc-section-chevron { transform: rotate(90deg); }
|
|
16219
|
+
.settings-panel .bc-extension .bc-ext-sub > .bc-ext-part { margin-top: 8px; }
|
|
16220
|
+
.settings-panel .bc-extension .bc-ext-sub > summary:focus-visible { outline: 2px solid var(--stg-focus); outline-offset: 2px; }
|
|
16181
16221
|
/* the tabs agents hold, grouped by agent */
|
|
16182
16222
|
.settings-panel .bc-extension .bc-ext-title-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; min-width: 0; }
|
|
16183
16223
|
.settings-panel .bc-extension .bc-ext-title-row > .stg-subhead { margin: 0; padding: 0; }
|
|
@@ -16232,9 +16272,9 @@
|
|
|
16232
16272
|
font-family: var(--stg-mono); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: 0.06em;
|
|
16233
16273
|
color: var(--stg-text); overflow-wrap: anywhere;
|
|
16234
16274
|
}
|
|
16235
|
-
/* Disconnect
|
|
16236
|
-
.settings-panel .bc-extension .bc-ext-
|
|
16237
|
-
.settings-panel .bc-extension
|
|
16275
|
+
/* the confirmation of Disconnect, Revoke pairing, Repair and the agent access, next to what asked */
|
|
16276
|
+
.settings-panel .bc-extension .bc-ext-status:empty { display: none; }
|
|
16277
|
+
.settings-panel .bc-extension #bc-extension-files-status:empty, .settings-panel .bc-extension #bc-extension-version:empty { display: none; }
|
|
16238
16278
|
.settings-panel .bc-extension .bc-ext-confirm {
|
|
16239
16279
|
margin: 8px 0 0; padding: 10px 12px; min-width: 0; border: 1px solid var(--stg-line); border-left: 2px solid var(--stg-warn);
|
|
16240
16280
|
border-radius: 8px; background: var(--stg-group);
|
|
@@ -16245,10 +16285,134 @@
|
|
|
16245
16285
|
.settings-panel .bc-extension .bc-ext-confirm .bc-ext-actions { justify-content: flex-end; }
|
|
16246
16286
|
.settings-panel .bc-extension :is(.bc-ext-confirm, .bc-ext-head) .stg-subhead:focus-visible,
|
|
16247
16287
|
.settings-panel .bc-extension .bc-ext-advanced > summary:focus-visible { outline: 2px solid var(--stg-focus); outline-offset: 2px; }
|
|
16288
|
+
/* A part the wiring hides stays hidden whatever display its own rule gives it (rows here are flex). */
|
|
16289
|
+
.settings-panel .bc-extension [hidden], .settings-panel .stg-pane .stg-field[hidden] { display: none; }
|
|
16290
|
+
.settings-panel .bc-connection-profile > * + * { margin-top: 4px; }
|
|
16291
|
+
.settings-panel .bc-connection-profile-title { margin: 0; font-weight: 600; color: var(--stg-text); }
|
|
16292
|
+
@container stg (max-width: 390px) {
|
|
16293
|
+
.settings-panel .bc-extension .bc-ext-row { align-items: flex-start; }
|
|
16294
|
+
.settings-panel .bc-extension .bc-ext-row > :is(.bc-ext-target, .bc-ext-actions, .cc-dropdown) { flex: 1 1 100%; }
|
|
16295
|
+
}
|
|
16248
16296
|
@media (prefers-reduced-motion: reduce) {
|
|
16249
16297
|
.settings-panel .bc-extension :is(.cli-detect-btn, .cc-section-chevron) { transition: none; }
|
|
16250
16298
|
}
|
|
16251
16299
|
/* <<< browser-extension-card */
|
|
16300
|
+
/* >>> browser-extension-guide */
|
|
16301
|
+
/* The extension's six-step setup guide, drawn in the Browser page itself (settings-browser-extension.js
|
|
16302
|
+
guidePageHTML). While it is open the page shows it alone: the page title and every card step aside, and come back
|
|
16303
|
+
as they were when the owner returns. One browser action per page; Back, the progress and the next action keep their
|
|
16304
|
+
places. The drawings take their colours from classes here (settings-extension-diagrams.js), so they follow the
|
|
16305
|
+
panel's tokens and the owner's accent. Nothing is positioned; every flex row wraps. */
|
|
16306
|
+
.settings-panel .stg-page[data-bc-guide="open"] > .stg-page-head,
|
|
16307
|
+
.settings-panel .stg-pane[data-bc-guide="open"] > :not(.bc-guide) { display: none; }
|
|
16308
|
+
.settings-panel .bc-guide { display: flex; flex-direction: column; flex-wrap: wrap; min-width: 0; color: var(--stg-text); }
|
|
16309
|
+
.settings-panel .bc-guide[hidden], .settings-panel .bc-guide [hidden] { display: none; }
|
|
16310
|
+
.settings-panel .bc-guide > * { flex: 0 0 auto; min-width: 0; }
|
|
16311
|
+
.settings-panel .bc-guide-head, .settings-panel .bc-guide-foot {
|
|
16312
|
+
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-width: 0;
|
|
16313
|
+
}
|
|
16314
|
+
.settings-panel .bc-guide-head { padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--stg-line); }
|
|
16315
|
+
.settings-panel .bc-guide-foot { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--stg-line); }
|
|
16316
|
+
.settings-panel .bc-guide-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--stg-help); }
|
|
16317
|
+
.settings-panel .bc-guide-bars { display: inline-flex; flex-wrap: wrap; gap: 3px; }
|
|
16318
|
+
.settings-panel .bc-guide-bars > i { display: block; width: 12px; padding-top: 3px; border-radius: 2px; background: var(--stg-control); }
|
|
16319
|
+
.settings-panel .bc-guide-bars > i[data-on="true"] { background: var(--stg-accent-fill); }
|
|
16320
|
+
.settings-panel .bc-guide-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12px; color: var(--stg-help); }
|
|
16321
|
+
.settings-panel .bc-guide-title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; color: var(--stg-text); overflow-wrap: anywhere; }
|
|
16322
|
+
/* The title takes the focus only from the guide itself, when a page changes (tabindex="-1": never in the Tab order),
|
|
16323
|
+
so a screen reader reads the new page; it is no control, and a ring around it is a stray box. */
|
|
16324
|
+
.settings-panel #bc-guide-title:is(:focus, :focus-visible) { outline: none; }
|
|
16325
|
+
.settings-panel .bc-guide-help { margin: 6px 0 0; max-width: 72ch; }
|
|
16326
|
+
.settings-panel .bc-guide-main > :is(.bc-guide-group, .bc-guide-figure, .bc-guide-fallback, .bc-ext-notice, .bc-guide-where) { margin-top: 16px; }
|
|
16327
|
+
.settings-panel .bc-guide-main > :is(.bc-guide-actions, .bc-guide-recovery, .bc-guide-waiting) { margin-top: 10px; }
|
|
16328
|
+
.settings-panel .bc-guide-icon { width: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
16329
|
+
.settings-panel .bc-guide .cli-detect-btn { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; }
|
|
16330
|
+
.settings-panel .bc-guide .cli-detect-btn.bc-ext-primary { color: var(--stg-text); background: var(--stg-accent-fill); border-color: transparent; }
|
|
16331
|
+
.settings-panel .bc-guide .cli-detect-btn.bc-ext-primary:hover:not(:disabled) { background: var(--stg-accent-fill-hover); }
|
|
16332
|
+
.settings-panel .bc-guide .cli-detect-btn[data-plain="true"] { border-color: transparent; background: transparent; color: var(--stg-body); padding-inline: 3px; }
|
|
16333
|
+
.settings-panel .bc-guide .cli-detect-btn[data-plain="true"]:hover:not(:disabled) { color: var(--stg-text); background: var(--stg-control); }
|
|
16334
|
+
.settings-panel .bc-guide .cli-detect-btn:disabled { color: var(--stg-off); cursor: default; }
|
|
16335
|
+
.settings-panel .bc-guide-group { padding: 0 var(--stg-row-x); min-width: 0; border: 1px solid var(--stg-line); border-radius: 9px; background: var(--stg-group); }
|
|
16336
|
+
.settings-panel .bc-guide-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-width: 0; padding: var(--stg-row-y) 0; }
|
|
16337
|
+
.settings-panel .bc-guide-row + .bc-guide-row { border-top: 1px solid var(--stg-sep); }
|
|
16338
|
+
.settings-panel .bc-guide-row > .bc-ext-row-label { margin: 0; font-size: 13px; color: var(--stg-text); }
|
|
16339
|
+
.settings-panel .bc-guide-target { flex: 0 1 auto; min-width: 0; max-width: 100%; }
|
|
16340
|
+
.settings-panel .bc-guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
|
|
16341
|
+
.settings-panel .bc-guide :is(.bc-guide-address, .bc-guide-path) { direction: ltr; unicode-bidi: isolate; user-select: all; font: 12px/1.5 var(--stg-mono); overflow-wrap: anywhere; min-width: 0; color: var(--stg-body); }
|
|
16342
|
+
.settings-panel .bc-guide-address { flex: 1 1 160px; }
|
|
16343
|
+
.settings-panel .bc-guide-path { display: block; margin: 10px 0; padding: 10px 12px; background: var(--stg-field-bg); border: 1px solid var(--stg-field-line); border-radius: 5px; }
|
|
16344
|
+
.settings-panel .bc-guide :is(.bc-guide-address, .bc-guide-path):focus-visible { outline: 2px solid var(--stg-focus); outline-offset: 2px; }
|
|
16345
|
+
.settings-panel .bc-guide-fallback { padding: 4px 12px; border-left: 2px solid var(--stg-line); }
|
|
16346
|
+
.settings-panel .bc-guide-fallback > summary { width: fit-content; cursor: pointer; font-weight: 500; list-style: none; color: var(--stg-text); }
|
|
16347
|
+
.settings-panel .bc-guide-fallback > summary::-webkit-details-marker { display: none; }
|
|
16348
|
+
.settings-panel .bc-guide-fallback > summary::before { content: '›'; display: inline-block; margin-inline-end: 8px; transition: transform var(--duration-fast, 150ms) ease; }
|
|
16349
|
+
.settings-panel .bc-guide-fallback[open] > summary::before { transform: rotate(90deg); }
|
|
16350
|
+
.settings-panel .bc-guide-fallback > summary:focus-visible { outline: 2px solid var(--stg-focus); outline-offset: 2px; }
|
|
16351
|
+
.settings-panel .bc-guide-fallback > p { margin: 4px 0 8px; }
|
|
16352
|
+
.settings-panel .bc-guide-keys { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--stg-help); }
|
|
16353
|
+
.settings-panel .bc-guide kbd { padding: 1px 4px; border: 1px solid var(--stg-field-line); border-radius: 4px; background: var(--stg-control); font: 11px/1.4 var(--stg-mono); color: var(--stg-body); }
|
|
16354
|
+
.settings-panel .bc-guide-folder { padding-block: 12px; }
|
|
16355
|
+
.settings-panel .bc-guide-folder > .bc-guide-row { padding: 0; }
|
|
16356
|
+
.settings-panel .bc-guide-folder-title, .settings-panel .bc-guide-verified, .settings-panel .bc-guide-waiting {
|
|
16357
|
+
display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; min-width: 0;
|
|
16358
|
+
}
|
|
16359
|
+
.settings-panel .bc-guide-folder-title { font-weight: 600; }
|
|
16360
|
+
.settings-panel .bc-guide-verified { font-size: 12px; color: var(--stg-ok); }
|
|
16361
|
+
.settings-panel .bc-guide-waiting { font-size: 12px; color: var(--stg-body); }
|
|
16362
|
+
.settings-panel .bc-guide-recovery { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: var(--stg-help); }
|
|
16363
|
+
.settings-panel .bc-guide-link { padding: 0 3px; border: 0; background: none; font: inherit; color: var(--stg-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
|
|
16364
|
+
.settings-panel .bc-guide-link:focus-visible { outline: 2px solid var(--stg-focus); outline-offset: 2px; border-radius: 3px; }
|
|
16365
|
+
.settings-panel .bc-guide-feedback { margin: 8px 0 0; color: var(--stg-body); }
|
|
16366
|
+
.settings-panel .bc-guide-feedback:empty { display: none; }
|
|
16367
|
+
.settings-panel .bc-guide-checklist { list-style: none; margin: 0; }
|
|
16368
|
+
.settings-panel .bc-guide-checklist > li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; }
|
|
16369
|
+
.settings-panel .bc-guide-checklist > li + li { border-top: 1px solid var(--stg-sep); }
|
|
16370
|
+
.settings-panel .bc-guide-checklist > li > div { flex: 1 1 180px; min-width: 0; }
|
|
16371
|
+
.settings-panel .bc-guide-checklist > li[data-ok="true"] > .bc-guide-icon { color: var(--stg-ok); }
|
|
16372
|
+
.settings-panel .bc-guide-checklist > li[data-ok="false"] > .bc-guide-icon { color: var(--stg-help); }
|
|
16373
|
+
.settings-panel .bc-guide-check-title { margin: 0; font-weight: 600; }
|
|
16374
|
+
.settings-panel .bc-guide-checklist .stg-help { margin: 0; }
|
|
16375
|
+
/* the close-ups: a header naming the browser and the layout, the drawing, its caption */
|
|
16376
|
+
.settings-panel .bc-guide-figure { margin: 0; overflow: hidden; border: 1px solid var(--stg-line); border-radius: 8px; background: var(--stg-field-bg); }
|
|
16377
|
+
.settings-panel .bc-guide-figure-head {
|
|
16378
|
+
display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 12px; border-bottom: 1px solid var(--stg-line);
|
|
16379
|
+
background: var(--stg-group); font-size: 11.5px; color: var(--stg-body);
|
|
16380
|
+
}
|
|
16381
|
+
.settings-panel .bc-guide-figure-head > code { margin-inline-start: auto; font: 11px/1.4 var(--stg-mono); color: var(--stg-help); }
|
|
16382
|
+
.settings-panel .bc-guide-art { display: block; width: 100%; max-width: 560px; margin: 0 auto; }
|
|
16383
|
+
.settings-panel .bc-guide-art text { font-family: var(--stg-font, inherit); }
|
|
16384
|
+
.settings-panel .bc-guide-art .bg-t { fill: var(--stg-text); }
|
|
16385
|
+
.settings-panel .bc-guide-art .bg-muted { fill: var(--stg-help); }
|
|
16386
|
+
.settings-panel .bc-guide-art .bg-strong { font-weight: 600; }
|
|
16387
|
+
.settings-panel .bc-guide-art .bg-call { fill: var(--stg-focus); font-weight: 600; }
|
|
16388
|
+
.settings-panel .bc-guide-art .bg-frame { fill: var(--stg-field-bg); stroke: var(--stg-line); }
|
|
16389
|
+
.settings-panel .bc-guide-art .bg-surface { fill: var(--stg-group); stroke: var(--stg-line); }
|
|
16390
|
+
.settings-panel .bc-guide-art .bg-panel { fill: var(--stg-control); stroke: var(--stg-field-line); }
|
|
16391
|
+
.settings-panel .bc-guide-art .bg-ln { fill: none; stroke: var(--stg-line); }
|
|
16392
|
+
.settings-panel .bc-guide-art .bg-lead { fill: none; stroke: var(--stg-focus); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
16393
|
+
.settings-panel .bc-guide-art .bg-ring { fill: none; stroke: var(--stg-focus); stroke-width: 2; }
|
|
16394
|
+
.settings-panel .bc-guide-art .bg-halo { fill: none; stroke: var(--stg-focus); stroke-width: 7; opacity: 0.22; }
|
|
16395
|
+
.settings-panel .bc-guide-art .bg-track { fill: var(--stg-accent-fill); stroke: var(--stg-line); }
|
|
16396
|
+
.settings-panel .bc-guide-art .bg-on { fill: var(--stg-focus); }
|
|
16397
|
+
.settings-panel .bc-guide-art .bg-knob { fill: var(--stg-text); }
|
|
16398
|
+
.settings-panel .bc-guide-art .bg-knob-off { fill: var(--stg-field-bg); }
|
|
16399
|
+
.settings-panel .bc-guide-art .bg-mark { fill: none; stroke: var(--stg-text); stroke-width: 3; stroke-linecap: round; }
|
|
16400
|
+
.settings-panel .bc-guide-figure > figcaption { padding: 8px 12px; border-top: 1px solid var(--stg-line); font-size: 12px; line-height: 1.4; color: var(--stg-help); }
|
|
16401
|
+
.settings-panel .bc-guide-where { margin-bottom: 0; }
|
|
16402
|
+
@container stg (max-width: 560px) {
|
|
16403
|
+
.settings-panel .bc-guide-head { margin-bottom: 14px; }
|
|
16404
|
+
.settings-panel .bc-guide-main > .bc-guide-figure { margin-top: 12px; }
|
|
16405
|
+
}
|
|
16406
|
+
@container stg (max-width: 390px) {
|
|
16407
|
+
.settings-panel .bc-guide-bars { display: none; }
|
|
16408
|
+
.settings-panel .bc-guide-foot { align-items: stretch; }
|
|
16409
|
+
.settings-panel .bc-guide-foot > .cli-detect-btn { flex: 1 1 100%; justify-content: center; }
|
|
16410
|
+
.settings-panel .bc-guide-figure-head > code { margin-inline-start: 0; }
|
|
16411
|
+
}
|
|
16412
|
+
@media (prefers-reduced-motion: reduce) {
|
|
16413
|
+
.settings-panel .bc-guide-fallback > summary::before { transition: none; }
|
|
16414
|
+
}
|
|
16415
|
+
/* <<< browser-extension-guide */
|
|
16252
16416
|
/* >>> settings-about */
|
|
16253
16417
|
/* Settings → About (shared/settings/settings-about-pane.js): the header (icon, name, version, the two buttons),
|
|
16254
16418
|
the links, the facts of System and the dependency lists. Text weight and the panel's --stg-* roles; every row
|
|
@@ -21040,6 +21204,27 @@
|
|
|
21040
21204
|
.ax .ax-feed-time, .ax .ax-feed-from { color: var(--t-secondary); font-size: var(--sx-meta); white-space: nowrap; }
|
|
21041
21205
|
.ax .ax-feed-kind { font: 500 var(--sx-meta)/1.4 var(--ff-mono, 'JetBrains Mono', monospace); color: var(--t-bright); }
|
|
21042
21206
|
.ax .ax-feed-text { flex: 1 1 260px; overflow-wrap: anywhere; }
|
|
21207
|
+
/* Open and Finished: two groups of the same rows; the Finished head holds Clear finished. */
|
|
21208
|
+
.ax .ax-team-groups { padding: 12px 16px 16px; max-width: 1040px; display: grid; gap: 18px; align-content: start; }
|
|
21209
|
+
.ax .ax-team-group { display: grid; gap: 8px; min-width: 0; }
|
|
21210
|
+
.ax .ax-team-group .ax-team-list { padding: 0; max-width: none; }
|
|
21211
|
+
.ax .ax-team-group-head { display: flex; align-items: center; gap: 8px; min-height: 26px; }
|
|
21212
|
+
.ax .ax-team-group-count { min-width: 20px; padding: 2px 6px; border: 1px solid var(--b-light); border-radius: 9px; background: var(--s-subtle); color: var(--t-secondary); font: 500 var(--sx-meta)/1.2 var(--ff-mono); text-align: center; }
|
|
21213
|
+
.ax .ax-team-left { color: var(--sx-warn); }
|
|
21214
|
+
/* A finished team: what is still on disk and in git, and the one step that fits. */
|
|
21215
|
+
.ax .ax-team-disk { border-left: 2px solid var(--b-visible); }
|
|
21216
|
+
.ax .ax-left-list { padding-left: 0; list-style: none; display: grid; gap: 6px; max-height: 220px; overflow: auto; }
|
|
21217
|
+
.ax .ax-left-list > li { display: grid; gap: 2px; min-width: 0; }
|
|
21218
|
+
.ax .ax-left-list > li + li { margin-top: 0; }
|
|
21219
|
+
.ax .ax-left-path { color: var(--t-bright); overflow-wrap: anywhere; }
|
|
21220
|
+
/* A card of the list: the team (the button that opens it) and, beside it, its one quick action (a button of its own). */
|
|
21221
|
+
.ax .ax-team-item { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--b-light); border-radius: 8px; background: var(--s-subtle); transition: border-color 0.15s ease, background 0.15s ease; }
|
|
21222
|
+
.ax .ax-team-item:hover, .ax .ax-team-item:focus-within { border-color: var(--b-hover); background: var(--s-light); }
|
|
21223
|
+
.ax .ax-team-item > .ax-team-row, .ax .ax-team-item > .ax-team-row:hover { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; }
|
|
21224
|
+
.ax .ax-team-quick { flex: none; display: flex; align-items: center; padding: 8px 12px 8px 0; }
|
|
21225
|
+
/* Already on <branch>: the side card of Worktrees and branches, its edge the tone of the status chip. */
|
|
21226
|
+
.ax .ax-team-ontarget { border-left: 2px solid var(--sx-ok); }
|
|
21227
|
+
.ax .ax-team-ontarget.is-blocked { border-left-color: var(--sx-warn); }
|
|
21043
21228
|
|
|
21044
21229
|
/* ── Questions asked in the window ── */
|
|
21045
21230
|
.ax .ax-dlg .ss-dlg-body { max-height: min(60vh, 520px); overflow: auto; }
|
|
@@ -21072,12 +21257,14 @@
|
|
|
21072
21257
|
.ax .ax-lib .ax-col-scope { display: none; }
|
|
21073
21258
|
.ax .ax-lib td.ax-col-state { display: block; }
|
|
21074
21259
|
.ax .ax-create, .ax .ax-team { padding: 12px; }
|
|
21260
|
+
.ax .ax-team-item { flex-direction: column; }
|
|
21261
|
+
.ax .ax-team-quick { padding: 0 14px 10px; }
|
|
21075
21262
|
.ax .ax-actions { justify-content: flex-start; }
|
|
21076
21263
|
.ax .ax-priv-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
|
|
21077
21264
|
}
|
|
21078
21265
|
@media (prefers-reduced-motion: reduce) {
|
|
21079
21266
|
.ax .ax-spinner { animation-duration: 2.4s; }
|
|
21080
|
-
.ax .ax-card, .ax .ax-start, .ax .ax-template, .ax .ax-pick, .ax .ax-team-row { transition: none; }
|
|
21267
|
+
.ax .ax-card, .ax .ax-start, .ax .ax-template, .ax .ax-pick, .ax .ax-team-row, .ax .ax-team-item { transition: none; }
|
|
21081
21268
|
}
|
|
21082
21269
|
/* ══ end of AGENTS STUDIO ══ */
|
|
21083
21270
|
|
|
@@ -45,6 +45,8 @@ import { normalizeSession, changedStartSettings, sessionFlags, sessionRows, fast
|
|
|
45
45
|
import { renderSessionSettingsCard } from './cp/cp-session-settings.js';
|
|
46
46
|
import { describeOrigin, reconcileTasks, adoptLiveTasks, describeHistorySystemRow, workEndedByRestart, isTaskRunning, endRunningTasks, backgroundWaitLine } from './cp/cp-tasks-model.js';
|
|
47
47
|
import { renderTasksCard } from './cp/cp-tasks.js';
|
|
48
|
+
import { attachClaudeBgTasks, settleClaudeBgStop, historyNoticeCards, markClaudeStaleCards, wireNoticeCardClicks } from './cp/cp-bg-tasks.js';
|
|
49
|
+
import { paintBgBadge } from './bg-tasks/bg-tasks-view.js';
|
|
48
50
|
import { sessionListLabel, collectTags, tagSession as tagClaudeSession, sessionActionsAvailable, sessionOpsSupported, labelledSessionIds, mergeSessionSearch, writeSessionTitle, forkSession as forkClaudeSession, deleteSession as deleteClaudeSession, fetchSubagentMessages, forkTitle, entryBefore, promptText, removeFrom, sessionRowParts, fillSelectOptions } from './cp/cp-sessions.js';
|
|
49
51
|
import { contextCard, usageCard, mcpRows, rewindPreviewText, rewindResultText } from './cp/cp-usage-model.js';
|
|
50
52
|
import { permissionModesFor, isDefaultableMode, autoModeSupported, grantedRuleLine, permissionRuleSections, hasSessionRules, MODE_HINTS, TOOL_POLICIES, toolPolicyId, bypassOffer, modeControl, BYPASS_MODE, pickMode, leavePlanMode, statedMode, modeStatement, planExitTarget, sessionReport, sessionEnteredPlan, statementSent, statementDropped, connectionOpened, sessionForgotten, controlFacts, savedMode, restoredMode, runEvent, isPermissionsCommand, reportReceived, modeTooltip, settingsDefaultMode, settingsModeNote } from './cp/cp-permission-model.js';
|
|
@@ -362,6 +364,9 @@ function buildPanel() {
|
|
|
362
364
|
<button class="cp-header-btn cp-new-btn" data-tooltip="New session">
|
|
363
365
|
<svg viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>
|
|
364
366
|
</button>
|
|
367
|
+
<button class="cp-header-btn cp-bg-btn" id="cp-bg-btn" type="button" data-tooltip="Background tasks" aria-label="Background tasks" aria-pressed="false" hidden>
|
|
368
|
+
<svg viewBox="0 0 24 24"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
|
|
369
|
+
</button>
|
|
365
370
|
<button class="cp-header-btn cp-cog-btn" id="cp-cog-btn" type="button" data-tooltip="Context settings" aria-label="Context settings" aria-haspopup="dialog" aria-expanded="false" aria-controls="cp-context-popover">
|
|
366
371
|
<svg viewBox="0 0 24 24"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>
|
|
367
372
|
<span class="cp-cog-dot" hidden></span>
|
|
@@ -1915,6 +1920,11 @@ function injectStyles() {
|
|
|
1915
1920
|
.cp-header-btn:active { transform: scale(0.92); transition-duration: 0.06s; }
|
|
1916
1921
|
.cp-header-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
|
|
1917
1922
|
.cp-header-btn.cp-new-btn:hover { color: rgba(110,181,255,0.95); background: rgba(110,181,255,0.14); }
|
|
1923
|
+
/* Background tasks toggle: a square like its neighbours; the view's count sits on its corner while tasks run
|
|
1924
|
+
(bg-tasks-view.js, corner form), ringed in the header's background. */
|
|
1925
|
+
.cp-header-btn.cp-bg-btn[hidden] { display: none; }
|
|
1926
|
+
.cp-header-btn.cp-bg-btn { --sbt-badge-ring: rgb(22, 22, 26); }
|
|
1927
|
+
.cp-header-btn.cp-bg-btn.active { color: var(--accent-gold); background: var(--accent-gold-bg); }
|
|
1918
1928
|
.cp-header-btn.cp-minimize-btn:hover { color: rgba(255,200,50,0.95); background: rgba(255,200,50,0.14); }
|
|
1919
1929
|
.cp-header-btn.cp-close-btn:hover { color: rgba(255,82,82,0.95); background: rgba(255,82,82,0.14); }
|
|
1920
1930
|
.cp-header-btn.cp-close-btn svg { stroke-width: 2.5; }
|
|
@@ -2984,6 +2994,7 @@ function createTab(sessionId = null, label = 'New chat', { autoSwitch = true, id
|
|
|
2984
2994
|
// shells and wakeups its session kept on the server).
|
|
2985
2995
|
connectTab(tab);
|
|
2986
2996
|
// Create pill (rendered in shared tray, not inside panel)
|
|
2997
|
+
_attachBg(tab);
|
|
2987
2998
|
tab.pillEl = _createTrayPill(tab);
|
|
2988
2999
|
_paintTemporary(tab);
|
|
2989
3000
|
_tabs.push(tab);
|
|
@@ -3078,6 +3089,7 @@ function switchTab(idx) {
|
|
|
3078
3089
|
}
|
|
3079
3090
|
_activeTabIdx = idx;
|
|
3080
3091
|
const tab = activeTab();
|
|
3092
|
+
_syncBgView(tab);
|
|
3081
3093
|
tab.messagesEl._exitToken = (tab.messagesEl._exitToken || 0) + 1; // cancel pending exits
|
|
3082
3094
|
_attachMessagesEl(tab);
|
|
3083
3095
|
tab.messagesEl.style.display = '';
|
|
@@ -3220,6 +3232,7 @@ function closeTab(idx, { detachAutomation = false } = {}) {
|
|
|
3220
3232
|
tab.rowWatcher?.disconnect();
|
|
3221
3233
|
tab.rowWatcher = null;
|
|
3222
3234
|
tab.messagesEl.remove();
|
|
3235
|
+
try { tab.bg?.dispose({ forget: true }); } catch {}
|
|
3223
3236
|
if (tab.pillEl) tab.pillEl.remove();
|
|
3224
3237
|
_tabs.splice(idx, 1);
|
|
3225
3238
|
if (_tabs.length === 0) {
|
|
@@ -3347,6 +3360,8 @@ function paintPillState(pill, tab) {
|
|
|
3347
3360
|
pill.classList.toggle('cp-pill-attention', needsYou);
|
|
3348
3361
|
pill.classList.toggle('cp-pill-running', !needsYou && tabWorking(tab));
|
|
3349
3362
|
markAutoCloseKeep(pill, _autoCloseKeep(tab));
|
|
3363
|
+
// "⟳ N" while background tasks run: a click opens the tab on its Background tasks view.
|
|
3364
|
+
paintBgBadge(pill, tab.bg?.counts().running || 0, { t, onClick: () => _openBgFromPill(tab) });
|
|
3350
3365
|
}
|
|
3351
3366
|
|
|
3352
3367
|
/**
|
|
@@ -3360,6 +3375,7 @@ function _autoCloseKeep(tab) {
|
|
|
3360
3375
|
if (!tab) return '';
|
|
3361
3376
|
if (keepsNothing(tab)) return 'temporary';
|
|
3362
3377
|
if (tab.queue?.length || tab._queueSending) return 'queue';
|
|
3378
|
+
if (tab.bg?.counts().running) return 'background';
|
|
3363
3379
|
const $input = tab === activeTab() ? _panel?.querySelector('#cp-input') : null;
|
|
3364
3380
|
return composerHoldsDraft($input ? $input.value : tab.draft, tab.attachedImages, tab.attachedFiles) ? 'draft' : '';
|
|
3365
3381
|
}
|
|
@@ -4928,6 +4944,11 @@ function _renderHistoryRow(tab, $msgs, m) {
|
|
|
4928
4944
|
renderCompactBoundary({ messagesEl: $msgs }, m);
|
|
4929
4945
|
return;
|
|
4930
4946
|
}
|
|
4947
|
+
// A background task's report, as the server read it: a card linked to its task.
|
|
4948
|
+
if (m.role === 'system' && m.subtype === 'origin' && Array.isArray(m.notifications) && m.notifications.length) {
|
|
4949
|
+
for (const card of historyNoticeCards(tab, m, t)) $msgs.appendChild(card);
|
|
4950
|
+
return;
|
|
4951
|
+
}
|
|
4931
4952
|
// What started a turn nobody typed, a warning the CLI wrote, a command's output.
|
|
4932
4953
|
const view = describeHistorySystemRow(m);
|
|
4933
4954
|
if (!view) return;
|
|
@@ -5607,10 +5628,83 @@ function _onSessionState(tab, state) {
|
|
|
5607
5628
|
}, IDLE_STATE_GRACE_MS);
|
|
5608
5629
|
}
|
|
5609
5630
|
|
|
5631
|
+
// ── Background tasks view (public/shared/bg-tasks/, cp/cp-bg-tasks.js) ──
|
|
5632
|
+
// Per tab: a registry built from the session's own stream and rebuilt from its transcript, the view that takes
|
|
5633
|
+
// the transcript's place, the header toggle and the pill's "⟳ N".
|
|
5634
|
+
function _attachBg(tab) {
|
|
5635
|
+
attachClaudeBgTasks(tab, {
|
|
5636
|
+
storage, t,
|
|
5637
|
+
project: () => _historyProject(tab),
|
|
5638
|
+
onChange: () => {
|
|
5639
|
+
if (tab.pillEl) paintPillState(tab.pillEl, tab);
|
|
5640
|
+
if (tab === activeTab()) _paintBgButton(tab);
|
|
5641
|
+
markClaudeStaleCards(tab);
|
|
5642
|
+
},
|
|
5643
|
+
// The view's own Back: the tab shows its conversation again.
|
|
5644
|
+
onShownChange: (shown) => { if (!shown && tab === activeTab()) { tab._bgOpen = false; _paintBgButton(tab); } },
|
|
5645
|
+
});
|
|
5646
|
+
wireNoticeCardClicks(tab.messagesEl, (taskId) => _openBgView(tab, taskId));
|
|
5647
|
+
}
|
|
5648
|
+
function _bgHost() { return _panel?.querySelector('#cp-messages-container') || null; }
|
|
5649
|
+
function _openBgView(tab, taskId = null) {
|
|
5650
|
+
if (!tab?.bg) return;
|
|
5651
|
+
tab._bgOpen = true;
|
|
5652
|
+
if (tab === activeTab()) tab.bg.show(_bgHost(), taskId);
|
|
5653
|
+
_paintBgButton(tab);
|
|
5654
|
+
}
|
|
5655
|
+
function _toggleBgView(tab) {
|
|
5656
|
+
if (!tab?.bg) return;
|
|
5657
|
+
if (tab._bgOpen && tab.bg.isShown()) { tab._bgOpen = false; tab.bg.hide(); _paintBgButton(tab); return; }
|
|
5658
|
+
_openBgView(tab);
|
|
5659
|
+
}
|
|
5660
|
+
// From a pill: the panel and the tab first, then the view.
|
|
5661
|
+
function _openBgFromPill(tab) {
|
|
5662
|
+
const idx = _tabs.indexOf(tab);
|
|
5663
|
+
if (idx < 0) return;
|
|
5664
|
+
if (!_visible) toggleClaudePanel();
|
|
5665
|
+
switchTab(idx);
|
|
5666
|
+
focusSidepanel(PANEL_OWNER);
|
|
5667
|
+
_openBgView(tab);
|
|
5668
|
+
}
|
|
5669
|
+
function _syncBgView(active) {
|
|
5670
|
+
for (const t2 of _tabs) {
|
|
5671
|
+
if (!t2.bg) continue;
|
|
5672
|
+
if (t2 === active && t2._bgOpen) t2.bg.show(_bgHost());
|
|
5673
|
+
else if (t2.bg.isShown()) { const keep = t2._bgOpen; t2.bg.hide(); t2._bgOpen = keep; }
|
|
5674
|
+
}
|
|
5675
|
+
_paintBgButton(active);
|
|
5676
|
+
}
|
|
5677
|
+
function _paintBgButton(tab) {
|
|
5678
|
+
const btn = _panel?.querySelector('#cp-bg-btn');
|
|
5679
|
+
if (!btn) return;
|
|
5680
|
+
const counts = tab?.bg?.counts() || { running: 0, total: 0 };
|
|
5681
|
+
const open = !!(tab?._bgOpen && tab.bg?.isShown());
|
|
5682
|
+
btn.hidden = !counts.total && !open;
|
|
5683
|
+
btn.classList.toggle('active', open);
|
|
5684
|
+
btn.setAttribute('aria-pressed', String(open));
|
|
5685
|
+
const label = t('bgTasks.toggle') !== 'bgTasks.toggle' ? t('bgTasks.toggle') : 'Background tasks';
|
|
5686
|
+
btn.setAttribute('aria-label', label);
|
|
5687
|
+
btn.dataset.tooltip = label;
|
|
5688
|
+
paintBgBadge(btn, counts.running, { t, corner: true, onClick: () => _toggleBgView(tab) });
|
|
5689
|
+
}
|
|
5690
|
+
// The tab's session is known (a new one, a reattach): the list is that session's, rebuilt from its transcript.
|
|
5691
|
+
// Once per session from an init (every turn sends one), and again at every reattach (`force`: a reload, a restart).
|
|
5692
|
+
function _bgSessionSeen(tab, { force = false } = {}) {
|
|
5693
|
+
if (!tab?.bg || !tab.sessionId || keepsNothing(tab)) return;
|
|
5694
|
+
const same = tab._bgSession === tab.sessionId;
|
|
5695
|
+
if (tab._bgSession && !same) tab.bg.reset(`claude:${tab.sessionId}`);
|
|
5696
|
+
else tab.bg.setKey(`claude:${tab.sessionId}`);
|
|
5697
|
+
tab._bgSession = tab.sessionId;
|
|
5698
|
+
if (same && !force) return;
|
|
5699
|
+
tab.bg.rebuild().then(() => markClaudeStaleCards(tab)).catch(() => {});
|
|
5700
|
+
}
|
|
5701
|
+
|
|
5610
5702
|
// Background tasks the CLI is running for this tab after their turn ended
|
|
5611
5703
|
// (background_tasks_changed / reattach_result). Ambient ones — housekeeping,
|
|
5612
5704
|
// watchers — keep the session alive but stay out of the indicator.
|
|
5613
5705
|
function _setBackgroundWork(tab, tasks) {
|
|
5706
|
+
// The Background tasks view: the live set says what still runs.
|
|
5707
|
+
try { tab.bg?.onLive(tasks); } catch {}
|
|
5614
5708
|
// A background command whose task id left the live list has ended.
|
|
5615
5709
|
try { reconcileBgTasks(tab, tasks); } catch {}
|
|
5616
5710
|
// The list is the authority: a task this tab has no entry for (the page was
|
|
@@ -5713,6 +5807,7 @@ function _processTabMsg(tab, msg) {
|
|
|
5713
5807
|
// Prompts queued behind a Compact when the socket closed: the session is there.
|
|
5714
5808
|
if (tab._queueWaits === 'session') _compactQueue.after(tab, 'reattached');
|
|
5715
5809
|
_setBackgroundWork(tab, msg.backgroundTasks);
|
|
5810
|
+
_bgSessionSeen(tab, { force: true });
|
|
5716
5811
|
// The wakeups scheduled for the session, with their schedule and prompt.
|
|
5717
5812
|
if (Array.isArray(msg.sessionCronList)) tab.sessionCrons = msg.sessionCronList;
|
|
5718
5813
|
// What "Always" granted in this session (the bridge's record).
|
|
@@ -5724,6 +5819,7 @@ function _processTabMsg(tab, msg) {
|
|
|
5724
5819
|
// has anything to finish — and not if a new turn already started on the
|
|
5725
5820
|
// fresh socket. Idle tabs are left alone.
|
|
5726
5821
|
_setBackgroundWork(tab, []);
|
|
5822
|
+
_bgSessionSeen(tab, { force: true });
|
|
5727
5823
|
// The session is gone and so is what was known of its mode. A pick made
|
|
5728
5824
|
// while the socket was down is said to the new one first.
|
|
5729
5825
|
sessionForgotten(tab);
|
|
@@ -5762,6 +5858,8 @@ function _processTabMsg(tab, msg) {
|
|
|
5762
5858
|
break;
|
|
5763
5859
|
}
|
|
5764
5860
|
case 'task_control_result':
|
|
5861
|
+
// A Stop from the Background tasks view hears its answer there (and says it there).
|
|
5862
|
+
if (settleClaudeBgStop(tab, msg)) break;
|
|
5765
5863
|
if (!msg.ok) appendStatus(tab, `${msg.action === 'stop_task' ? 'Could not stop the task' : 'Could not send it to the background'}: ${msg.error || 'unknown error'}`);
|
|
5766
5864
|
else if (msg.action === 'background_tasks') appendStatus(tab, 'Sent to the background: it keeps running and reports back when done.');
|
|
5767
5865
|
break;
|
|
@@ -5902,6 +6000,9 @@ function handleTabEvent(tab, ev) {
|
|
|
5902
6000
|
// renderers below work unchanged.
|
|
5903
6001
|
const _parentId = ev.parent_tool_use_id || ev.message?.parent_tool_use_id || null;
|
|
5904
6002
|
const scope = _parentId ? ensureAgentScope(tab, _parentId) : tab;
|
|
6003
|
+
// The Background tasks registry (public/shared/bg-tasks/): calls, results, notices, the live set.
|
|
6004
|
+
let _bgCards = [];
|
|
6005
|
+
try { _bgCards = tab.bg ? tab.bg.onEvent(ev) : []; } catch { _bgCards = []; }
|
|
5905
6006
|
|
|
5906
6007
|
// ── New SDK-engine event types ──
|
|
5907
6008
|
if (ev.type === 'mode_behind') {
|
|
@@ -5963,7 +6064,11 @@ function handleTabEvent(tab, ev) {
|
|
|
5963
6064
|
}
|
|
5964
6065
|
// A turn nobody typed: say what started it (a background task reporting
|
|
5965
6066
|
// back, a scheduled wakeup, another session).
|
|
5966
|
-
if (!_parentId &&
|
|
6067
|
+
if (!_parentId && _bgCards.length) {
|
|
6068
|
+
tab._lastOriginUuid = ev.uuid || tab._lastOriginUuid;
|
|
6069
|
+
for (const { view } of _bgCards) { if (view) tab.messagesEl?.appendChild(tab.bg.card(view)); }
|
|
6070
|
+
if (tab === activeTab()) scrollEnd();
|
|
6071
|
+
} else if (!_parentId && ev.origin && ev.origin.kind !== 'human') {
|
|
5967
6072
|
const from = describeOrigin(ev.origin);
|
|
5968
6073
|
if (from && tab._lastOriginUuid !== (ev.uuid || from)) {
|
|
5969
6074
|
tab._lastOriginUuid = ev.uuid || from;
|
|
@@ -6085,6 +6190,7 @@ function handleTabEvent(tab, ev) {
|
|
|
6085
6190
|
if (ev.session_id) {
|
|
6086
6191
|
if (!tab.sessionId) tab._freshSessionId = ev.session_id;
|
|
6087
6192
|
tab.sessionId = ev.session_id;
|
|
6193
|
+
_bgSessionSeen(tab);
|
|
6088
6194
|
if (tab.pendingLabel && !keepsNothing(tab)) {
|
|
6089
6195
|
storage.setItem(LABEL_PREFIX + ev.session_id, tab.pendingLabel);
|
|
6090
6196
|
tab.label = tab.pendingLabel;
|
|
@@ -11044,6 +11150,7 @@ function _closeCutOffTools(tab) {
|
|
|
11044
11150
|
if (task?.status === 'running') { task.status = 'stopped'; shells = true; }
|
|
11045
11151
|
}
|
|
11046
11152
|
if (shells) { try { renderBgTray(tab); } catch {} }
|
|
11153
|
+
try { tab.bg?.ended(); } catch {}
|
|
11047
11154
|
_setBackgroundWork(tab, []);
|
|
11048
11155
|
}
|
|
11049
11156
|
|
|
@@ -11053,6 +11160,7 @@ function _closeCutOffTools(tab) {
|
|
|
11053
11160
|
function _endRunBackgroundWork(tab) {
|
|
11054
11161
|
let changed = false;
|
|
11055
11162
|
try { changed = endRunningTasks(tab.tasks) > 0; } catch {}
|
|
11163
|
+
try { tab.bg?.ended(); } catch {}
|
|
11056
11164
|
let shells = false;
|
|
11057
11165
|
for (const task of tab.bgTasks?.values?.() || []) {
|
|
11058
11166
|
if (task?.status === 'running') { task.status = 'stopped'; shells = true; }
|
|
@@ -11853,6 +11961,7 @@ function wireEvents() {
|
|
|
11853
11961
|
for (const t of _tabs) if (!msg?.accountId || serverAccountId(t.accountId) === msg.accountId) void t.terminalAuthView?.refresh();
|
|
11854
11962
|
});
|
|
11855
11963
|
const $new = _panel.querySelector('.cp-new-btn');
|
|
11964
|
+
_panel.querySelector('#cp-bg-btn')?.addEventListener('click', () => { const tab = activeTab(); if (tab) _toggleBgView(tab); });
|
|
11856
11965
|
|
|
11857
11966
|
const $brand = _panel.querySelector('.cp-brand');
|
|
11858
11967
|
if ($brand) $brand.addEventListener('click', () => window.open('https://claude.ai/settings/usage', '_blank'));
|
|
@@ -214,6 +214,27 @@ function _ensureToastContainer(position) {
|
|
|
214
214
|
return _toastContainer;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
+
function mountToast(container, toast) {
|
|
218
|
+
container.appendChild(toast);
|
|
219
|
+
requestAnimationFrame(() => requestAnimationFrame(() => toast.classList.add('visible')));
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// An owner action that stays in the existing notification stack until dismissed or resolved.
|
|
223
|
+
export function showActionNotice({ title, action, closeLabel, onAction, onClose }) {
|
|
224
|
+
const toast = document.createElement('div');
|
|
225
|
+
toast.className = 'notif-toast'; toast.dataset.persistent = 'true';
|
|
226
|
+
toast.innerHTML = `<div class="notif-toast-accent"></div><div class="notif-toast-body">
|
|
227
|
+
<div class="notif-toast-provider" role="status"></div><button type="button" class="cli-detect-btn"></button>
|
|
228
|
+
</div><button type="button" class="notif-toast-close">×</button>`;
|
|
229
|
+
toast.querySelector('[role="status"]').textContent = title;
|
|
230
|
+
const button = toast.querySelector('.cli-detect-btn'); button.textContent = action;
|
|
231
|
+
button.addEventListener('click', onAction);
|
|
232
|
+
const close = toast.querySelector('.notif-toast-close'); close.setAttribute('aria-label', closeLabel);
|
|
233
|
+
close.addEventListener('click', onClose);
|
|
234
|
+
mountToast(_ensureToastContainer(getNotifSettings().toastPosition), toast);
|
|
235
|
+
return () => _dismissToast(toast);
|
|
236
|
+
}
|
|
237
|
+
|
|
217
238
|
function _showToast(type, title, body, source, opts) {
|
|
218
239
|
const s = getNotifSettings();
|
|
219
240
|
if (!s.toast) return;
|
|
@@ -254,16 +275,14 @@ function _showToast(type, title, body, source, opts) {
|
|
|
254
275
|
toast.querySelector('.notif-toast-close').addEventListener('click', () => _dismissToast(toast));
|
|
255
276
|
|
|
256
277
|
// Add to container
|
|
257
|
-
container
|
|
258
|
-
// Trigger animation
|
|
259
|
-
requestAnimationFrame(() => requestAnimationFrame(() => toast.classList.add('visible')));
|
|
278
|
+
mountToast(container, toast);
|
|
260
279
|
|
|
261
280
|
// Auto-dismiss
|
|
262
281
|
const dur = s.toastDuration * 1000;
|
|
263
282
|
toast._timeout = setTimeout(() => _dismissToast(toast), dur);
|
|
264
283
|
|
|
265
284
|
// Enforce max toasts
|
|
266
|
-
const toasts = container.querySelectorAll('.notif-toast');
|
|
285
|
+
const toasts = container.querySelectorAll('.notif-toast:not([data-persistent])');
|
|
267
286
|
if (toasts.length > MAX_TOASTS) {
|
|
268
287
|
_dismissToast(toasts[0]);
|
|
269
288
|
}
|
|
@@ -64,6 +64,12 @@ export function initSettings() {
|
|
|
64
64
|
// Launch: what Settings is built from, and its search index (the English names too), read and made once the
|
|
65
65
|
// page has painted, so the first open and the first search wait for nothing. The index needs the window's module:
|
|
66
66
|
// this step is what loads it in idle time.
|
|
67
|
+
registerLaunchPrefetch('browser-extension-update', async () => {
|
|
68
|
+
const [{ startExtensionUpdateNotices }, { showActionNotice }] = await Promise.all([
|
|
69
|
+
import('./browser-extension-updates.js'), import('./ui-notifications.js'),
|
|
70
|
+
]);
|
|
71
|
+
return startExtensionUpdateNotices({ tx: t, showNotice: showActionNotice });
|
|
72
|
+
}, { order: 59, owner: true });
|
|
67
73
|
registerLaunchPrefetch('settings-data', () => prefetchSettingsData(), { order: 60, owner: true });
|
|
68
74
|
registerLaunchPrefetch('settings-search-index', () => settingsModule.call('prebuildSettingsSearchIndex', []), { order: 62 });
|
|
69
75
|
// Changes other windows announce: the next open shows them.
|