synabun 2.4.3 → 2.4.4
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 +19 -0
- package/README.md +1 -1
- package/docs/browser-extension-bridge.md +61 -32
- 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 +11 -1
- package/mcp-server/dist/services/neural-interface.d.ts.map +1 -1
- package/mcp-server/dist/services/neural-interface.js +67 -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 +3 -1
- package/mcp-server/dist/tools/agents.d.ts.map +1 -1
- package/mcp-server/dist/tools/agents.js +11 -6
- 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 +65 -18
- package/mcp-server/src/services/typesafe-config.ts +268 -7
- package/mcp-server/src/tools/agents.ts +12 -6
- 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 +139 -0
- package/neural-interface/i18n/pt-BR.json +139 -0
- package/neural-interface/lib/assistant-api.js +90 -0
- 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 +6 -0
- package/neural-interface/lib/assistant-router.js +18 -8
- package/neural-interface/lib/assistant-runtime.js +87 -1
- 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-extension-adapter.js +221 -15
- package/neural-interface/lib/browser-extension-bridge.js +40 -7
- 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 +111 -13
- package/neural-interface/lib/browser-extension-setup.js +7 -5
- 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/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/scheduler.js +3 -2
- 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 +1 -0
- 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 +88 -0
- package/neural-interface/public/shared/cp/cp-bg-tasks.js +130 -0
- package/neural-interface/public/shared/extension-setup/es-page.js +18 -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-browser-extension.js +10 -4
- package/neural-interface/public/shared/settings/settings-extension-update.js +114 -0
- package/neural-interface/public/shared/styles.css +4 -0
- 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-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 +483 -280
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -761,6 +761,54 @@
|
|
|
761
761
|
"tableSize": "{rows} rows · {columns} columns",
|
|
762
762
|
"close": "Close"
|
|
763
763
|
},
|
|
764
|
+
"bgTasks": {
|
|
765
|
+
"title": "Background tasks",
|
|
766
|
+
"toggle": "Background tasks",
|
|
767
|
+
"badgeTitle": "{count} running in the background",
|
|
768
|
+
"back": "Back to the conversation",
|
|
769
|
+
"empty": "Nothing has run in the background in this conversation.",
|
|
770
|
+
"clearFinished": "Clear finished",
|
|
771
|
+
"kindShell": "shell",
|
|
772
|
+
"kindWatch": "watch",
|
|
773
|
+
"statusRunning": "running",
|
|
774
|
+
"statusCompleted": "completed",
|
|
775
|
+
"statusFailed": "failed",
|
|
776
|
+
"statusStopped": "stopped",
|
|
777
|
+
"statusExpired": "expired",
|
|
778
|
+
"statusEnded": "ended",
|
|
779
|
+
"statusUnknown": "checking",
|
|
780
|
+
"stoppedByOwner": "Stopped by you",
|
|
781
|
+
"stoppedByAgent": "Stopped by the agent",
|
|
782
|
+
"stopping": "Stopping…",
|
|
783
|
+
"stop": "Stop",
|
|
784
|
+
"stopConfirm": "Stop this task?",
|
|
785
|
+
"stopYes": "Stop it",
|
|
786
|
+
"stopNo": "Keep running",
|
|
787
|
+
"stopFailed": "Could not stop it: {error}",
|
|
788
|
+
"exitCode": "exit {code}",
|
|
789
|
+
"events": "Events",
|
|
790
|
+
"eventCount": "{count} events",
|
|
791
|
+
"eventCountOne": "1 event",
|
|
792
|
+
"noEvents": "No events yet.",
|
|
793
|
+
"expiresIn": "expires in {time}",
|
|
794
|
+
"outputLabel": "Output of the background task",
|
|
795
|
+
"loadFull": "Open full output",
|
|
796
|
+
"loading": "Loading…",
|
|
797
|
+
"jump": "Jump to latest",
|
|
798
|
+
"copy": "Copy",
|
|
799
|
+
"copied": "Copied",
|
|
800
|
+
"noOutputYet": "Nothing printed yet.",
|
|
801
|
+
"noOutput": "It printed nothing.",
|
|
802
|
+
"outputGone": "Its output file is no longer there.",
|
|
803
|
+
"needsRestart": "Its output shows once the SynaBun server has restarted.",
|
|
804
|
+
"outputPartial": "Showing the last {shown} of {size}.",
|
|
805
|
+
"outputCapped": "Showing the last {shown} of {size}: the whole output is too long to show here.",
|
|
806
|
+
"noticeFinished": "{kind} {status}",
|
|
807
|
+
"noticeEvent": "Watch event",
|
|
808
|
+
"noticeStale": "stale: the task had already ended",
|
|
809
|
+
"noticeOpen": "Show in Background tasks",
|
|
810
|
+
"ended": "The session that ran it is gone."
|
|
811
|
+
},
|
|
764
812
|
"fileLinks": {
|
|
765
813
|
"open": "Open in editor",
|
|
766
814
|
"openAtLine": "Open in editor at line {line}",
|
|
@@ -10313,6 +10361,30 @@
|
|
|
10313
10361
|
"errStorage": "Couldn't save the key for this account."
|
|
10314
10362
|
},
|
|
10315
10363
|
"assistant": {
|
|
10364
|
+
"steer": {
|
|
10365
|
+
"steer": "Steer",
|
|
10366
|
+
"steerNow": "Steer now (Enter): stop this turn and send",
|
|
10367
|
+
"queue": "Queue",
|
|
10368
|
+
"queueTip": "Queue instead (Alt+Enter): send when this turn finishes",
|
|
10369
|
+
"notice": "Steered: {text}",
|
|
10370
|
+
"noticeRun": "Steered {run}: {text}",
|
|
10371
|
+
"steering": "Steering…",
|
|
10372
|
+
"steeringChip": "steering…",
|
|
10373
|
+
"runSteer": "Steer this run",
|
|
10374
|
+
"runSteerPlaceholder": "Tell this agent what to change…",
|
|
10375
|
+
"runSteerSend": "Send steer",
|
|
10376
|
+
"runSteerCancel": "Cancel",
|
|
10377
|
+
"useComposer": "Write it in the composer",
|
|
10378
|
+
"targetChip": "→ #{n} {title}",
|
|
10379
|
+
"targetLabel": "Steering run {title}",
|
|
10380
|
+
"targetClear": "Send to the Assistant instead",
|
|
10381
|
+
"targetPlaceholder": "Steer {title}: what should change?",
|
|
10382
|
+
"runEnded": "That run already ended.",
|
|
10383
|
+
"sendToAssistant": "Send it to the Assistant",
|
|
10384
|
+
"failed": "Could not steer: {error}",
|
|
10385
|
+
"unavailable": "Steering needs a server restart; your message was queued.",
|
|
10386
|
+
"emptyText": "Type what should change first."
|
|
10387
|
+
},
|
|
10316
10388
|
"followups": {
|
|
10317
10389
|
"title": "Next steps",
|
|
10318
10390
|
"titleMulti": "Your decisions",
|
|
@@ -11175,6 +11247,25 @@
|
|
|
11175
11247
|
"user_intervened": "user intervened",
|
|
11176
11248
|
"clarify_answered": "answers received",
|
|
11177
11249
|
"clarify_declined": "questions skipped",
|
|
11250
|
+
"stopped": "stopped",
|
|
11251
|
+
"suspended": "suspended",
|
|
11252
|
+
"resumed": "resumed",
|
|
11253
|
+
"route_decided": "route decided",
|
|
11254
|
+
"route_expired": "route expired",
|
|
11255
|
+
"route_declined": "route declined",
|
|
11256
|
+
"team_started": "team started",
|
|
11257
|
+
"slice_started": "slice started",
|
|
11258
|
+
"slice_done": "slice done",
|
|
11259
|
+
"integrated": "integrated",
|
|
11260
|
+
"conflict": "conflict",
|
|
11261
|
+
"tests_failed": "tests failed",
|
|
11262
|
+
"needs_attention": "needs attention",
|
|
11263
|
+
"team_completed": "team completed",
|
|
11264
|
+
"team_ready": "team ready",
|
|
11265
|
+
"landed": "landed",
|
|
11266
|
+
"team_cleaned": "team cleaned up",
|
|
11267
|
+
"discarded": "discarded",
|
|
11268
|
+
"team_message": "team message",
|
|
11178
11269
|
"event": "event"
|
|
11179
11270
|
},
|
|
11180
11271
|
"clarify": {
|
|
@@ -14640,6 +14731,54 @@
|
|
|
14640
14731
|
"diff_renamed": "renamed"
|
|
14641
14732
|
},
|
|
14642
14733
|
"browserExtension": {
|
|
14734
|
+
"updateFlow": {
|
|
14735
|
+
"notes": {
|
|
14736
|
+
"v1_5_0": "This version adds update alerts and lets you reload future updates from SynaBun."
|
|
14737
|
+
},
|
|
14738
|
+
"versions": "Browser extension update: {from} → {version}",
|
|
14739
|
+
"target": "Browser extension update · {version}",
|
|
14740
|
+
"portTitle": "Reload Browser Bridge {version}",
|
|
14741
|
+
"repairTitle": "Browser Bridge {version} was repaired",
|
|
14742
|
+
"verifying": "Download complete · 100%. Checking the files for version {version}…",
|
|
14743
|
+
"pending": "Version {version} is available to download.",
|
|
14744
|
+
"download": "Download now",
|
|
14745
|
+
"progress": "Downloading version {version} · {percent}%",
|
|
14746
|
+
"ready": "Version {version} is ready. Reload the extension to start using it.",
|
|
14747
|
+
"manual": "Version {version} is ready. Reload it in the browser where you installed it.",
|
|
14748
|
+
"repaired": "SynaBun restored the extension files. Reload the extension, then confirm below.",
|
|
14749
|
+
"port": "Reload the extension, then open the setup page in the paired browser to check the connection.",
|
|
14750
|
+
"reloading": "Reloading. Waiting for Browser Bridge {version} to reconnect…",
|
|
14751
|
+
"done": "Updated to {version}",
|
|
14752
|
+
"review": "Review update",
|
|
14753
|
+
"dismiss": "Dismiss for this session",
|
|
14754
|
+
"now": "Update now",
|
|
14755
|
+
"retry": "Try again",
|
|
14756
|
+
"stepOpen": "Open the extensions page in your paired browser. Copy its address below and paste it in the address bar.",
|
|
14757
|
+
"copyChrome": "Copy Chrome address",
|
|
14758
|
+
"copyEdge": "Copy Edge address",
|
|
14759
|
+
"stepReload": "Find SynaBun Browser Bridge and press Reload.",
|
|
14760
|
+
"stepDetect": "Keep the browser open. SynaBun detects the new version automatically.",
|
|
14761
|
+
"stepConfirm": "Return here and confirm that you reloaded the extension.",
|
|
14762
|
+
"stepPort": "Open the setup page in that browser to verify the reload.",
|
|
14763
|
+
"confirm": "I reloaded the extension",
|
|
14764
|
+
"checkPort": "Open setup page",
|
|
14765
|
+
"busy": "Automation is active. Reloading may interrupt a task. You can wait for it to finish.",
|
|
14766
|
+
"wait": "Wait",
|
|
14767
|
+
"goAhead": "Reload now",
|
|
14768
|
+
"showSteps": "Show reload steps",
|
|
14769
|
+
"offline": "SynaBun couldn’t reach synabun.ai. Check your internet connection and try again.",
|
|
14770
|
+
"unavailable": "This extension version is unavailable on synabun.ai. Try again later.",
|
|
14771
|
+
"unverified": "The download did not pass verification. The previous extension is still in place. Try again.",
|
|
14772
|
+
"unsafe": "SynaBun couldn’t safely access the extension folder. Check its owner and permissions, then try again.",
|
|
14773
|
+
"cancelled": "The download stopped. Try again to get the update.",
|
|
14774
|
+
"downloadFailed": "SynaBun couldn’t prepare the update. Check free space and try again.",
|
|
14775
|
+
"timeout": "The extension hasn’t reconnected. Open your paired browser and follow the reload steps.",
|
|
14776
|
+
"oldVersion": "The browser reconnected with the previous version. Follow the reload steps below.",
|
|
14777
|
+
"reloadFailed": "The extension couldn’t reload. Follow the steps below in your browser.",
|
|
14778
|
+
"copied": "Copied {url}. Paste it in your browser’s address bar.",
|
|
14779
|
+
"copyManually": "Enter {url} in your browser’s address bar.",
|
|
14780
|
+
"actionFailed": "SynaBun couldn’t complete that action. Try again."
|
|
14781
|
+
},
|
|
14643
14782
|
"install": "Open your browser’s extensions page, turn on Developer mode, choose Load unpacked and select this folder. After a SynaBun update, press Reload on the extension there.",
|
|
14644
14783
|
"folder": "Extension folder",
|
|
14645
14784
|
"copy": "Copy folder",
|
|
@@ -707,6 +707,54 @@
|
|
|
707
707
|
"tableSize": "{rows} linhas · {columns} colunas",
|
|
708
708
|
"close": "Fechar"
|
|
709
709
|
},
|
|
710
|
+
"bgTasks": {
|
|
711
|
+
"title": "Tarefas em segundo plano",
|
|
712
|
+
"toggle": "Tarefas em segundo plano",
|
|
713
|
+
"badgeTitle": "{count} em execução em segundo plano",
|
|
714
|
+
"back": "Voltar à conversa",
|
|
715
|
+
"empty": "Nada rodou em segundo plano nesta conversa.",
|
|
716
|
+
"clearFinished": "Limpar concluídas",
|
|
717
|
+
"kindShell": "shell",
|
|
718
|
+
"kindWatch": "observação",
|
|
719
|
+
"statusRunning": "em execução",
|
|
720
|
+
"statusCompleted": "concluída",
|
|
721
|
+
"statusFailed": "falhou",
|
|
722
|
+
"statusStopped": "parada",
|
|
723
|
+
"statusExpired": "expirou",
|
|
724
|
+
"statusEnded": "encerrada",
|
|
725
|
+
"statusUnknown": "verificando",
|
|
726
|
+
"stoppedByOwner": "Parada por você",
|
|
727
|
+
"stoppedByAgent": "Parada pelo agente",
|
|
728
|
+
"stopping": "Parando…",
|
|
729
|
+
"stop": "Parar",
|
|
730
|
+
"stopConfirm": "Parar esta tarefa?",
|
|
731
|
+
"stopYes": "Parar",
|
|
732
|
+
"stopNo": "Deixar rodando",
|
|
733
|
+
"stopFailed": "Não foi possível parar: {error}",
|
|
734
|
+
"exitCode": "saída {code}",
|
|
735
|
+
"events": "Eventos",
|
|
736
|
+
"eventCount": "{count} eventos",
|
|
737
|
+
"eventCountOne": "1 evento",
|
|
738
|
+
"noEvents": "Nenhum evento ainda.",
|
|
739
|
+
"expiresIn": "expira em {time}",
|
|
740
|
+
"outputLabel": "Saída da tarefa em segundo plano",
|
|
741
|
+
"loadFull": "Abrir saída completa",
|
|
742
|
+
"loading": "Carregando…",
|
|
743
|
+
"jump": "Ir para o fim",
|
|
744
|
+
"copy": "Copiar",
|
|
745
|
+
"copied": "Copiado",
|
|
746
|
+
"noOutputYet": "Nada impresso ainda.",
|
|
747
|
+
"noOutput": "Não imprimiu nada.",
|
|
748
|
+
"outputGone": "O arquivo de saída não existe mais.",
|
|
749
|
+
"needsRestart": "A saída aparece depois que o servidor do SynaBun reiniciar.",
|
|
750
|
+
"outputPartial": "Mostrando os últimos {shown} de {size}.",
|
|
751
|
+
"outputCapped": "Mostrando os últimos {shown} de {size}: a saída inteira é longa demais para mostrar aqui.",
|
|
752
|
+
"noticeFinished": "{kind} {status}",
|
|
753
|
+
"noticeEvent": "Evento da observação",
|
|
754
|
+
"noticeStale": "obsoleto: a tarefa já tinha terminado",
|
|
755
|
+
"noticeOpen": "Mostrar em Tarefas em segundo plano",
|
|
756
|
+
"ended": "A sessão que a executava não existe mais."
|
|
757
|
+
},
|
|
710
758
|
"fileLinks": {
|
|
711
759
|
"open": "Abrir no editor",
|
|
712
760
|
"openAtLine": "Abrir no editor na linha {line}",
|
|
@@ -10259,6 +10307,30 @@
|
|
|
10259
10307
|
"errStorage": "Não foi possível salvar a chave desta conta."
|
|
10260
10308
|
},
|
|
10261
10309
|
"assistant": {
|
|
10310
|
+
"steer": {
|
|
10311
|
+
"steer": "Redirecionar",
|
|
10312
|
+
"steerNow": "Redirecionar agora (Enter): parar este turno e enviar",
|
|
10313
|
+
"queue": "Na fila",
|
|
10314
|
+
"queueTip": "Pôr na fila (Alt+Enter): enviar quando este turno terminar",
|
|
10315
|
+
"notice": "Redirecionado: {text}",
|
|
10316
|
+
"noticeRun": "{run} redirecionado: {text}",
|
|
10317
|
+
"steering": "Redirecionando…",
|
|
10318
|
+
"steeringChip": "redirecionando…",
|
|
10319
|
+
"runSteer": "Redirecionar esta execução",
|
|
10320
|
+
"runSteerPlaceholder": "Diga a este agente o que mudar…",
|
|
10321
|
+
"runSteerSend": "Enviar redirecionamento",
|
|
10322
|
+
"runSteerCancel": "Cancelar",
|
|
10323
|
+
"useComposer": "Escrever no campo de mensagem",
|
|
10324
|
+
"targetChip": "→ #{n} {title}",
|
|
10325
|
+
"targetLabel": "Redirecionando a execução {title}",
|
|
10326
|
+
"targetClear": "Enviar ao Assistente",
|
|
10327
|
+
"targetPlaceholder": "Redirecionar {title}: o que deve mudar?",
|
|
10328
|
+
"runEnded": "Essa execução já terminou.",
|
|
10329
|
+
"sendToAssistant": "Enviar ao Assistente",
|
|
10330
|
+
"failed": "Não foi possível redirecionar: {error}",
|
|
10331
|
+
"unavailable": "Redirecionar precisa reiniciar o servidor; sua mensagem entrou na fila.",
|
|
10332
|
+
"emptyText": "Escreva primeiro o que deve mudar."
|
|
10333
|
+
},
|
|
10262
10334
|
"followups": {
|
|
10263
10335
|
"title": "Próximos passos",
|
|
10264
10336
|
"titleMulti": "Suas decisões",
|
|
@@ -11121,6 +11193,25 @@
|
|
|
11121
11193
|
"user_intervened": "usuário interveio",
|
|
11122
11194
|
"clarify_answered": "respostas recebidas",
|
|
11123
11195
|
"clarify_declined": "perguntas ignoradas",
|
|
11196
|
+
"stopped": "parado",
|
|
11197
|
+
"suspended": "suspenso",
|
|
11198
|
+
"resumed": "retomado",
|
|
11199
|
+
"route_decided": "rota decidida",
|
|
11200
|
+
"route_expired": "rota expirada",
|
|
11201
|
+
"route_declined": "rota recusada",
|
|
11202
|
+
"team_started": "equipe iniciada",
|
|
11203
|
+
"slice_started": "parte iniciada",
|
|
11204
|
+
"slice_done": "parte concluída",
|
|
11205
|
+
"integrated": "integrado",
|
|
11206
|
+
"conflict": "conflito",
|
|
11207
|
+
"tests_failed": "testes falharam",
|
|
11208
|
+
"needs_attention": "precisa de atenção",
|
|
11209
|
+
"team_completed": "equipe concluída",
|
|
11210
|
+
"team_ready": "equipe pronta",
|
|
11211
|
+
"landed": "aplicado",
|
|
11212
|
+
"team_cleaned": "equipe limpa",
|
|
11213
|
+
"discarded": "descartado",
|
|
11214
|
+
"team_message": "mensagem da equipe",
|
|
11124
11215
|
"event": "evento"
|
|
11125
11216
|
},
|
|
11126
11217
|
"clarify": {
|
|
@@ -14640,6 +14731,54 @@
|
|
|
14640
14731
|
"diff_renamed": "renomeado"
|
|
14641
14732
|
},
|
|
14642
14733
|
"browserExtension": {
|
|
14734
|
+
"updateFlow": {
|
|
14735
|
+
"notes": {
|
|
14736
|
+
"v1_5_0": "Esta versão avisa quando há uma atualização e permite recarregar a extensão pelo SynaBun nas próximas atualizações."
|
|
14737
|
+
},
|
|
14738
|
+
"versions": "Atualização da extensão do navegador: {from} → {version}",
|
|
14739
|
+
"target": "Atualização da extensão do navegador · {version}",
|
|
14740
|
+
"portTitle": "Recarregar o Browser Bridge {version}",
|
|
14741
|
+
"repairTitle": "O Browser Bridge {version} foi reparado",
|
|
14742
|
+
"verifying": "Download concluído · 100%. Verificando os arquivos da versão {version}…",
|
|
14743
|
+
"pending": "A versão {version} está disponível para download.",
|
|
14744
|
+
"download": "Baixar agora",
|
|
14745
|
+
"progress": "Baixando a versão {version} · {percent}%",
|
|
14746
|
+
"ready": "A versão {version} está pronta. Recarregue a extensão para começar a usá-la.",
|
|
14747
|
+
"manual": "A versão {version} está pronta. Recarregue a extensão no navegador em que você a instalou.",
|
|
14748
|
+
"repaired": "O SynaBun restaurou os arquivos da extensão. Recarregue a extensão e confirme abaixo.",
|
|
14749
|
+
"port": "Recarregue a extensão e abra a página de configuração no navegador pareado para verificar a conexão.",
|
|
14750
|
+
"reloading": "Recarregando. Aguardando o Browser Bridge {version} se reconectar…",
|
|
14751
|
+
"done": "Atualizada para {version}",
|
|
14752
|
+
"review": "Ver atualização",
|
|
14753
|
+
"dismiss": "Dispensar nesta sessão",
|
|
14754
|
+
"now": "Atualizar agora",
|
|
14755
|
+
"retry": "Tentar novamente",
|
|
14756
|
+
"stepOpen": "Abra a página de extensões no navegador pareado. Copie o endereço abaixo e cole na barra de endereços.",
|
|
14757
|
+
"copyChrome": "Copiar endereço do Chrome",
|
|
14758
|
+
"copyEdge": "Copiar endereço do Edge",
|
|
14759
|
+
"stepReload": "Encontre SynaBun Browser Bridge e clique em Recarregar.",
|
|
14760
|
+
"stepDetect": "Mantenha o navegador aberto. O SynaBun detecta a nova versão automaticamente.",
|
|
14761
|
+
"stepConfirm": "Volte aqui e confirme que recarregou a extensão.",
|
|
14762
|
+
"stepPort": "Abra a página de configuração nesse navegador para verificar se a extensão foi recarregada.",
|
|
14763
|
+
"confirm": "Já recarreguei a extensão",
|
|
14764
|
+
"checkPort": "Abrir página de configuração",
|
|
14765
|
+
"busy": "Há uma automação em andamento. Recarregar a extensão pode interromper uma tarefa. Você pode aguardar até ela terminar.",
|
|
14766
|
+
"wait": "Aguardar",
|
|
14767
|
+
"goAhead": "Recarregar agora",
|
|
14768
|
+
"showSteps": "Ver como recarregar",
|
|
14769
|
+
"offline": "O SynaBun não conseguiu acessar synabun.ai. Verifique a conexão com a internet e tente novamente.",
|
|
14770
|
+
"unavailable": "Esta versão da extensão está indisponível em synabun.ai. Tente novamente mais tarde.",
|
|
14771
|
+
"unverified": "O arquivo baixado não passou na verificação. A extensão anterior foi mantida. Tente novamente.",
|
|
14772
|
+
"unsafe": "O SynaBun não conseguiu acessar a pasta da extensão com segurança. Verifique o proprietário e as permissões da pasta e tente novamente.",
|
|
14773
|
+
"cancelled": "O download foi interrompido. Tente novamente para obter a atualização.",
|
|
14774
|
+
"downloadFailed": "O SynaBun não conseguiu preparar a atualização. Verifique o espaço livre e tente novamente.",
|
|
14775
|
+
"timeout": "A extensão ainda não se reconectou. Abra o navegador pareado e siga as etapas para recarregá-la.",
|
|
14776
|
+
"oldVersion": "O navegador se reconectou com a versão anterior. Siga as etapas abaixo para recarregar a extensão.",
|
|
14777
|
+
"reloadFailed": "Não foi possível recarregar a extensão. Siga as etapas abaixo no navegador.",
|
|
14778
|
+
"copied": "Endereço copiado: {url}. Cole na barra de endereços do navegador.",
|
|
14779
|
+
"copyManually": "Digite {url} na barra de endereços do navegador.",
|
|
14780
|
+
"actionFailed": "O SynaBun não conseguiu concluir a ação. Tente novamente."
|
|
14781
|
+
},
|
|
14643
14782
|
"install": "Abra a página de extensões do navegador, ative o Modo do desenvolvedor, escolha Carregar sem compactação e selecione esta pasta. Depois de atualizar o SynaBun, pressione Recarregar na extensão.",
|
|
14644
14783
|
"folder": "Pasta da extensão",
|
|
14645
14784
|
"copy": "Copiar pasta",
|
|
@@ -171,6 +171,9 @@ export function createAssistantApi({
|
|
|
171
171
|
// The page secret (lib/page-session.js): a request without an agent pin is the owner's page only when it carries
|
|
172
172
|
// this boot's cookie; a local process that merely sends no headers is nobody (never 'ui').
|
|
173
173
|
pageSession = null,
|
|
174
|
+
// The Background tasks view of a Claude brain: lib/claude-bg-tasks.js over the brain's own transcript
|
|
175
|
+
// ({ list(identity), output(identity, q) } built in server.js). None: those routes answer 404.
|
|
176
|
+
backgroundTasks = null,
|
|
174
177
|
// Whether a pin counts (lib/terminal-tokens.js verdict, server.js): (pin, req) → { accepted, code, error, httpStatus }.
|
|
175
178
|
// A pin SynaBun gave a proof to (a run's terminal token, a brain's launch credential) counts only with it: a request
|
|
176
179
|
// that names a worker's run, or a brain's id, without it is refused (403 TERMINAL_TOKEN_REQUIRED / _INVALID) instead
|
|
@@ -1046,6 +1049,43 @@ export function createAssistantApi({
|
|
|
1046
1049
|
res.json(await dispatcher.sendTurn(req.params.runId, body.text ?? body.message, { origin, queue: body.queue !== false }));
|
|
1047
1050
|
} catch (error) { sendError(res, error); }
|
|
1048
1051
|
});
|
|
1052
|
+
// Steer: the user changed work in flight. With runId, that run's current turn is interrupted and the steer follows
|
|
1053
|
+
// (dispatcher.steerRun; the run must be this session's); without, the session's own brain is steered (the page only:
|
|
1054
|
+
// a brain never steers itself). → { ok, target: { kind, runId? }, interruptedTurn }.
|
|
1055
|
+
router.post('/steer', orchestrationGuard, async (req, res) => {
|
|
1056
|
+
try {
|
|
1057
|
+
const body = req.body || {};
|
|
1058
|
+
const caller = req.assistantCaller;
|
|
1059
|
+
const text = typeof body.text === 'string' ? body.text.trim() : '';
|
|
1060
|
+
if (!text) return res.status(400).json({ ok: false, code: 'MESSAGE_REQUIRED', error: 'text is required' });
|
|
1061
|
+
const runId = typeof (body.runId ?? body.run_id) === 'string' ? String(body.runId ?? body.run_id).trim() : '';
|
|
1062
|
+
// A brain's session is the one its credential proves, whatever the body says.
|
|
1063
|
+
const sessionId = caller.credentialed ? (caller.assistantSessionId || null) : (body.assistantSessionId || body.assistant_session_id || null);
|
|
1064
|
+
if (runId) {
|
|
1065
|
+
const run = dispatcher.get(runId);
|
|
1066
|
+
if (!run) return res.status(404).json({ ok: false, code: 'RUN_NOT_FOUND', error: `Unknown run ${runId}` });
|
|
1067
|
+
if (!sessionId && caller.kind !== 'ui') return res.status(404).json({ ok: false, code: 'SESSION_NOT_FOUND', error: 'The caller has no assistant session.' });
|
|
1068
|
+
if (sessionId && String(run.assistantSessionId || '') !== String(sessionId)) {
|
|
1069
|
+
return res.status(404).json({ ok: false, code: 'RUN_NOT_FOUND', error: `Run ${runId} does not belong to assistant session ${sessionId}` });
|
|
1070
|
+
}
|
|
1071
|
+
if (planRefusal(req, res, sessionId, 'steer a worker')) return;
|
|
1072
|
+
if (planState(req, sessionId) === 'plan' && planSendRefusal(res, run)) return;
|
|
1073
|
+
const from = caller.kind === 'ui' ? 'user' : 'assistant';
|
|
1074
|
+
try { await dispatcher.coverFollowUp?.(runId); } catch { /* steerRun decides */ }
|
|
1075
|
+
const steered = await dispatcher.steerRun(runId, text, { from, assistantSessionId: sessionId });
|
|
1076
|
+
return res.json({ ok: true, target: steered.target, interruptedTurn: steered.interruptedTurn, followUpId: steered.followUpId, run: steered.run });
|
|
1077
|
+
}
|
|
1078
|
+
if (caller.kind !== 'ui') return res.status(403).json({ ok: false, code: 'UI_ONLY', error: 'Only the user\'s page steers the Assistant itself; a brain steers a worker with runId.' });
|
|
1079
|
+
if (!sessionId) return res.status(400).json({ ok: false, code: 'SESSION_REQUIRED', error: 'assistantSessionId is required' });
|
|
1080
|
+
if (typeof runtime?.steerBrain !== 'function') return res.status(503).json({ ok: false, code: 'STEER_UNAVAILABLE', error: 'This server cannot steer the Assistant yet; restart it.' });
|
|
1081
|
+
const out = await runtime.steerBrain(String(sessionId), { text, origin: 'ui' });
|
|
1082
|
+
if (!out?.ok) {
|
|
1083
|
+
const status = out?.code === 'SESSION_NOT_FOUND' ? 404 : out?.code === 'MESSAGE_REQUIRED' ? 400 : 409;
|
|
1084
|
+
return res.status(status).json({ ok: false, code: out?.code || 'STEER_FAILED', error: out?.message || 'The steer did not reach the Assistant.', interruptedTurn: !!out?.interruptedTurn });
|
|
1085
|
+
}
|
|
1086
|
+
res.json({ ok: true, target: { kind: 'brain' }, interruptedTurn: !!out.interruptedTurn });
|
|
1087
|
+
} catch (error) { sendError(res, error); }
|
|
1088
|
+
});
|
|
1049
1089
|
router.post('/runs/:runId/permission', orchestrationGuard, (req, res) => {
|
|
1050
1090
|
try {
|
|
1051
1091
|
const body = req.body || {};
|
|
@@ -1202,6 +1242,56 @@ export function createAssistantApi({
|
|
|
1202
1242
|
res.json({ ok: true, ...page.data });
|
|
1203
1243
|
} catch (error) { sendError(res, error); }
|
|
1204
1244
|
});
|
|
1245
|
+
// The background shells and watches of a session's Claude brain (the panel's Background tasks view), a page of
|
|
1246
|
+
// what one printed, and the owner's Stop. The same reader as a command's output (shellReader): the owner's page
|
|
1247
|
+
// alone, never a brain, a worker or the automation browser. The brain named in the path is the one asked, and its
|
|
1248
|
+
// transcript is the only one read (lib/claude-bg-tasks.js: only the file it reported for a task it ran).
|
|
1249
|
+
const bgTaskId = (value) => (/^[A-Za-z0-9_-]{1,128}$/.test(String(value || '')) ? String(value) : '');
|
|
1250
|
+
function bgSource(req, res) {
|
|
1251
|
+
if (!requireRuntime(res) || !shellReader(req, res)) return null;
|
|
1252
|
+
const source = typeof runtime.backgroundTaskSource === 'function' ? runtime.backgroundTaskSource(req.params.id) : null;
|
|
1253
|
+
if (source === null && typeof runtime.getSession === 'function' && !runtime.getSession(req.params.id, { transcript: false })) {
|
|
1254
|
+
res.status(404).json({ ok: false, code: 'SESSION_NOT_FOUND', error: `Unknown assistant session ${req.params.id}` });
|
|
1255
|
+
return null;
|
|
1256
|
+
}
|
|
1257
|
+
if (!source || !backgroundTasks) { res.json({ ok: true, tasks: [], live: null, supported: false }); return null; }
|
|
1258
|
+
return source;
|
|
1259
|
+
}
|
|
1260
|
+
router.get('/sessions/:id/background-tasks', noStore, (req, res) => {
|
|
1261
|
+
const source = bgSource(req, res);
|
|
1262
|
+
if (!source) return;
|
|
1263
|
+
try {
|
|
1264
|
+
const listed = backgroundTasks.list(source);
|
|
1265
|
+
res.json({ ok: true, supported: true, tasks: listed?.tasks || [], live: Array.isArray(source.live) ? source.live : null });
|
|
1266
|
+
} catch (error) {
|
|
1267
|
+
if (Number(error?.status) === 404) return res.json({ ok: true, supported: true, tasks: [], live: Array.isArray(source.live) ? source.live : null });
|
|
1268
|
+
sendError(res, error);
|
|
1269
|
+
}
|
|
1270
|
+
});
|
|
1271
|
+
router.get('/sessions/:id/background-tasks/:taskId/output', noStore, async (req, res) => {
|
|
1272
|
+
const taskId = bgTaskId(req.params.taskId);
|
|
1273
|
+
if (!taskId) { if (requireRuntime(res) && shellReader(req, res)) res.status(400).json({ ok: false, code: 'TASK_ID_INVALID', error: 'That is not a background task of this conversation.' }); return; }
|
|
1274
|
+
const source = bgSource(req, res);
|
|
1275
|
+
if (!source) return;
|
|
1276
|
+
const number = (value) => (typeof value === 'string' && /^\d{1,15}$/.test(value) ? Number(value) : undefined);
|
|
1277
|
+
try {
|
|
1278
|
+
const running = Array.isArray(source.live) ? source.live.some((t) => t.task_id === taskId) : null;
|
|
1279
|
+
const page = await backgroundTasks.output(source, { taskId, cursor: number(req.query.cursor), tail: number(req.query.tail), limit: number(req.query.limit), running });
|
|
1280
|
+
if (!page || page.ok === false) return res.status(Number(page?.status) >= 400 ? Number(page.status) : 502).json({ ok: false, code: page?.code || 'OUTPUT_FAILED', error: page?.error || 'The output could not be read.' });
|
|
1281
|
+
res.json({ ok: true, ...page.data });
|
|
1282
|
+
} catch (error) { sendError(res, error); }
|
|
1283
|
+
});
|
|
1284
|
+
router.post('/sessions/:id/background-tasks/:taskId/stop', noStore, async (req, res) => {
|
|
1285
|
+
if (!requireRuntime(res) || !shellReader(req, res)) return;
|
|
1286
|
+
const taskId = bgTaskId(req.params.taskId);
|
|
1287
|
+
if (!taskId) return res.status(400).json({ ok: false, code: 'TASK_ID_INVALID', error: 'That is not a background task of this conversation.' });
|
|
1288
|
+
if (typeof runtime.stopBackgroundTask !== 'function') return res.status(404).json({ ok: false, code: 'NOT_SUPPORTED', error: 'Stopping a background task needs the SynaBun server restart.' });
|
|
1289
|
+
try {
|
|
1290
|
+
const out = await runtime.stopBackgroundTask(req.params.id, taskId);
|
|
1291
|
+
if (!out || out.ok === false) return res.status(Number(out?.status) >= 400 ? Number(out.status) : 409).json({ ok: false, code: out?.code || 'STOP_FAILED', error: out?.error || 'The task could not be stopped.' });
|
|
1292
|
+
res.json({ ok: true, taskId });
|
|
1293
|
+
} catch (error) { sendError(res, error); }
|
|
1294
|
+
});
|
|
1205
1295
|
router.get('/sessions/:id', (req, res) => {
|
|
1206
1296
|
if (!requireRuntime(res)) return;
|
|
1207
1297
|
const session = runtime.getSession(req.params.id, { transcript: req.query.transcript !== '0', limit: clampInt(req.query.limit, 1, 2000, 400) });
|
|
@@ -215,6 +215,16 @@ export function createClaudeBrain({ session, sink, deps = {}, persona = '', hook
|
|
|
215
215
|
// Background agents or scheduled wakeups still running after their turn
|
|
216
216
|
// ended. Not "busy" (the mailbox may deliver), but disposing would kill them.
|
|
217
217
|
hasPendingWork() { return !!inner._hasPendingWork?.(); },
|
|
218
|
+
// The live background set the CLI reports (background_tasks_changed), for the panel's Background tasks view;
|
|
219
|
+
// null while no process runs (the set is per process).
|
|
220
|
+
backgroundTasks() { return inner.q && inner._bgTasks instanceof Map ? [...inner._bgTasks.values()].map(t => ({ ...t })) : null; },
|
|
221
|
+
// The owner's Stop of one of them, through the SDK's own stop (never a kill of a process by hand).
|
|
222
|
+
async stopTask(taskId) {
|
|
223
|
+
const q = inner.q;
|
|
224
|
+
if (!q || typeof q.stopTask !== 'function') return { ok: false, error: q ? 'Not supported by this Claude Code version' : 'Nothing of this conversation runs now: the task has already ended.' };
|
|
225
|
+
await q.stopTask(String(taskId));
|
|
226
|
+
return { ok: true };
|
|
227
|
+
},
|
|
218
228
|
identity() {
|
|
219
229
|
return {
|
|
220
230
|
providerSessionId: inner.sessionId || providerSessionId, providerThreadId: null, accountId: brain.accountId || 'default',
|