You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/apps/macos/Sources/Clawdbot
Peter Steinberger 7acd26a2fc
Move provider to a plugin-architecture (#661)
* refactor: introduce provider plugin registry

* refactor: move provider CLI to plugins

* docs: add provider plugin implementation notes

* refactor: shift provider runtime logic into plugins

* refactor: add plugin defaults and summaries

* docs: update provider plugin notes

* feat(commands): add /commands slash list

* Auto-reply: tidy help message

* Auto-reply: fix status command lint

* Tests: align google shared expectations

* Auto-reply: tidy help message

* Auto-reply: fix status command lint

* refactor: move provider routing into plugins

* test: align agent routing expectations

* docs: update provider plugin notes

* refactor: route replies via provider plugins

* docs: note route-reply plugin hooks

* refactor: extend provider plugin contract

* refactor: derive provider status from plugins

* refactor: unify gateway provider control

* refactor: use plugin metadata in auto-reply

* fix: parenthesize cron target selection

* refactor: derive gateway methods from plugins

* refactor: generalize provider logout

* refactor: route provider logout through plugins

* refactor: move WhatsApp web login methods into plugin

* refactor: generalize provider log prefixes

* refactor: centralize default chat provider

* refactor: derive provider lists from registry

* refactor: move provider reload noops into plugins

* refactor: resolve web login provider via alias

* refactor: derive CLI provider options from plugins

* refactor: derive prompt provider list from plugins

* style: apply biome lint fixes

* fix: resolve provider routing edge cases

* docs: update provider plugin refactor notes

* fix(gateway): harden agent provider routing

* refactor: move provider routing into plugins

* refactor: move provider CLI to plugins

* refactor: derive provider lists from registry

* fix: restore slash command parsing

* refactor: align provider ids for schema

* refactor: unify outbound target resolution

* fix: keep outbound labels stable

* feat: add msteams to cron surfaces

* fix: clean up lint build issues

* refactor: localize chat provider alias normalization

* refactor: drive gateway provider lists from plugins

* docs: update provider plugin notes

* style: format message-provider

* fix: avoid provider registry init cycles

* style: sort message-provider imports

* fix: relax provider alias map typing

* refactor: move provider routing into plugins

* refactor: add plugin pairing/config adapters

* refactor: route pairing and provider removal via plugins

* refactor: align auto-reply provider typing

* test: stabilize telegram media mocks

* docs: update provider plugin refactor notes

* refactor: pluginize outbound targets

* refactor: pluginize provider selection

* refactor: generalize text chunk limits

* docs: update provider plugin notes

* refactor: generalize group session/config

* fix: normalize provider id for room detection

* fix: avoid provider init in system prompt

* style: formatting cleanup

* refactor: normalize agent delivery targets

* test: update outbound delivery labels

* chore: fix lint regressions

* refactor: extend provider plugin adapters

* refactor: move elevated/block streaming defaults to plugins

* refactor: defer outbound send deps to plugins

* docs: note plugin-driven streaming/elevated defaults

* refactor: centralize webchat provider constant

* refactor: add provider setup adapters

* refactor: delegate provider add config to plugins

* docs: document plugin-driven provider add

* refactor: add plugin state/binding metadata

* refactor: build agent provider status from plugins

* docs: note plugin-driven agent bindings

* refactor: centralize internal provider constant usage

* fix: normalize WhatsApp targets for groups and E.164 (#631) (thanks @imfing)

* refactor: centralize default chat provider

* refactor: centralize WhatsApp target normalization

* refactor: move provider routing into plugins

* refactor: normalize agent delivery targets

* chore: fix lint regressions

* fix: normalize WhatsApp targets for groups and E.164 (#631) (thanks @imfing)

* feat: expand provider plugin adapters

* refactor: route auto-reply via provider plugins

* fix: align WhatsApp target normalization

* fix: normalize WhatsApp targets for groups and E.164 (#631) (thanks @imfing)

* refactor: centralize WhatsApp target normalization

* feat: add /config chat config updates

* docs: add /config get alias

* feat(commands): add /commands slash list

* refactor: centralize default chat provider

* style: apply biome lint fixes

* chore: fix lint regressions

* fix: clean up whatsapp allowlist typing

* style: format config command helpers

* refactor: pluginize tool threading context

* refactor: normalize session announce targets

* docs: note new plugin threading and announce hooks

* refactor: pluginize message actions

* docs: update provider plugin actions notes

* fix: align provider action adapters

* refactor: centralize webchat checks

* style: format message provider helpers

* refactor: move provider onboarding into adapters

* docs: note onboarding provider adapters

* feat: add msteams onboarding adapter

* style: organize onboarding imports

* fix: normalize msteams allowFrom types

* feat: add plugin text chunk limits

* refactor: use plugin chunk limit fallbacks

* feat: add provider mention stripping hooks

* style: organize provider plugin type imports

* refactor: generalize health snapshots

* refactor: update macOS health snapshot handling

* docs: refresh health snapshot notes

* style: format health snapshot updates

* refactor: drive security warnings via plugins

* docs: note provider security adapter

* style: format provider security adapters

* refactor: centralize provider account defaults

* refactor: type gateway client identity constants

* chore: regen gateway protocol swift

* fix: degrade health on failed provider probe

* refactor: centralize pairing approve hint

* docs: add plugin CLI command references

* refactor: route auth and tool sends through plugins

* docs: expand provider plugin hooks

* refactor: document provider docking touchpoints

* refactor: normalize internal provider defaults

* refactor: streamline outbound delivery wiring

* refactor: make provider onboarding plugin-owned

* refactor: support provider-owned agent tools

* refactor: move telegram draft chunking into telegram module

* refactor: infer provider tool sends via extractToolSend

* fix: repair plugin onboarding imports

* refactor: de-dup outbound target normalization

* style: tidy plugin and agent imports

* refactor: data-drive provider selection line

* fix: satisfy lint after provider plugin rebase

* test: deflake gateway-cli coverage

* style: format gateway-cli coverage test

* refactor(provider-plugins): simplify provider ids

* test(pairing-cli): avoid provider-specific ternary

* style(macos): swiftformat HealthStore

* refactor(sandbox): derive provider tool denylist

* fix(sandbox): avoid plugin init in defaults

* refactor(provider-plugins): centralize provider aliases

* style(test): satisfy biome

* refactor(protocol): v3 providers.status maps

* refactor(ui): adapt to protocol v3

* refactor(macos): adapt to protocol v3

* test: update providers.status v3 fixtures

* refactor(gateway): map provider runtime snapshot

* test(gateway): update reload runtime snapshot

* refactor(whatsapp): normalize heartbeat provider id

* docs(refactor): update provider plugin notes

* style: satisfy biome after rebase

* fix: describe sandboxed elevated in prompt

* feat(gateway): add agent image attachments + live probe

* refactor: derive CLI provider options from plugins

* fix(gateway): harden agent provider routing

* fix(gateway): harden agent provider routing

* refactor: align provider ids for schema

* fix(protocol): keep agent provider string

* fix(gateway): harden agent provider routing

* fix(protocol): keep agent provider string

* refactor: normalize agent delivery targets

* refactor: support provider-owned agent tools

* refactor(config): provider-keyed elevated allowFrom

* style: satisfy biome

* fix(gateway): appease provider narrowing

* style: satisfy biome

* refactor(reply): move group intro hints into plugin

* fix(reply): avoid plugin registry init cycle

* refactor(providers): add lightweight provider dock

* refactor(gateway): use typed client id in connect

* refactor(providers): document docks and avoid init cycles

* refactor(providers): make media limit helper generic

* fix(providers): break plugin registry import cycles

* style: satisfy biome

* refactor(status-all): build providers table from plugins

* refactor(gateway): delegate web login to provider plugin

* refactor(provider): drop web alias

* refactor(provider): lazy-load monitors

* style: satisfy lint/format

* style: format status-all providers table

* style: swiftformat gateway discovery model

* test: make reload plan plugin-driven

* fix: avoid token stringification in status-all

* refactor: make provider IDs explicit in status

* feat: warn on signal/imessage provider runtime errors

* test: cover gateway provider runtime warnings in status

* fix: add runtime kind to provider status issues

* test: cover health degradation on probe failure

* fix: keep routeReply lightweight

* style: organize routeReply imports

* refactor(web): extract auth-store helpers

* refactor(whatsapp): lazy login imports

* refactor(outbound): route replies via plugin outbound

* docs: update provider plugin notes

* style: format provider status issues

* fix: make sandbox scope warning wrap-safe

* refactor: load outbound adapters from provider plugins

* docs: update provider plugin outbound notes

* style(macos): fix swiftformat lint

* docs: changelog for provider plugins

* fix(macos): satisfy swiftformat

* fix(macos): open settings via menu action

* style: format after rebase

* fix(macos): open Settings via menu action

---------

Co-authored-by: LK <luke@kyohere.com>
Co-authored-by: Luke K (pr-0f3t) <2609441+lc0rp@users.noreply.github.com>
Co-authored-by: Xin <xin@imfing.com>
11 months ago
..
Bridge refactor(macos): drop duplicate AnyCodable 11 months ago
Logging chore: lint and format cleanup 11 months ago
NodeMode fix(macos): onboarding location + layout 11 months ago
Resources fix(macos): onboarding location + layout 11 months ago
AboutSettings.swift chore: lint and format cleanup 11 months ago
AgeFormatting.swift chore: rename project to clawdbot 11 months ago
AgentEventStore.swift chore: rename project to clawdbot 11 months ago
AgentEventsWindow.swift refactor(macos): drop duplicate AnyCodable 11 months ago
AgentWorkspace.swift chore: rename project to clawdbot 11 months ago
AnthropicAuthControls.swift chore: rename project to clawdbot 11 months ago
AnthropicOAuth.swift chore: rename project to clawdbot 11 months ago
AnthropicOAuthCodeState.swift chore: rename project to clawdbot 11 months ago
AnyCodable+Helpers.swift chore: rename project to clawdbot 11 months ago
AppState.swift fix(macos): prevent launch-at-login plist deletion on startup 11 months ago
AudioInputDeviceObserver.swift Voice Wake: preserve mic selection across disconnects 11 months ago
BridgeDiscoveryPreferences.swift chore: rename project to clawdbot 11 months ago
CLIInstallPrompter.swift Move provider to a plugin-architecture (#661) 11 months ago
CLIInstaller.swift Move provider to a plugin-architecture (#661) 11 months ago
CameraCaptureService.swift chore: lint and format cleanup 11 months ago
CanvasA2UIActionMessageHandler.swift fix(macos): fix swiftformat lint in A2UI handler 11 months ago
CanvasChromeContainerView.swift chore: rename project to clawdbot 11 months ago
CanvasFileWatcher.swift chore: rename project to clawdbot 11 months ago
CanvasManager.swift chore: rename project to clawdbot 11 months ago
CanvasScheme.swift chore: rename project to clawdbot 11 months ago
CanvasSchemeHandler.swift chore: rename project to clawdbot 11 months ago
CanvasWindow.swift chore: rename project to clawdbot 11 months ago
CanvasWindowController+Helpers.swift chore: rename project to clawdbot 11 months ago
CanvasWindowController+Navigation.swift chore: rename project to clawdbot 11 months ago
CanvasWindowController+Testing.swift chore: rename project to clawdbot 11 months ago
CanvasWindowController+Window.swift chore: rename project to clawdbot 11 months ago
CanvasWindowController.swift chore: rename project to clawdbot 11 months ago
ClawdbotConfigFile.swift feat: wire multi-agent config and routing 11 months ago
ClawdbotPaths.swift refactor(macos): drop duplicate AnyCodable 11 months ago
CommandResolver.swift feat(macos): install CLI via app script 11 months ago
ConfigFileWatcher.swift chore: lint and format cleanup 11 months ago
ConfigSettings.swift fix: normalize model picker refs (#683) (thanks @benithors) 11 months ago
ConfigStore.swift refactor(macos): drop duplicate AnyCodable 11 months ago
ConnectionModeCoordinator.swift chore: rename project to clawdbot 11 months ago
ConnectionsSettings+Helpers.swift refactor: split connections settings/store 11 months ago
ConnectionsSettings+ProviderSections.swift refactor: split connections settings/store 11 months ago
ConnectionsSettings+ProviderState.swift Move provider to a plugin-architecture (#661) 11 months ago
ConnectionsSettings+View.swift fix: custom connections sidebar 11 months ago
ConnectionsSettings.swift refactor: split connections settings/store 11 months ago
ConnectionsStore+Config.swift refactor: split connections settings/store 11 months ago
ConnectionsStore+Lifecycle.swift Move provider to a plugin-architecture (#661) 11 months ago
ConnectionsStore.swift Move provider to a plugin-architecture (#661) 11 months ago
Constants.swift feat(macos): prompt for CLI install 11 months ago
ContextMenuCardView.swift chore: rename project to clawdbot 11 months ago
ContextUsageBar.swift chore: lint and format cleanup 11 months ago
ControlChannel.swift fix(macos): show connecting state for remote tunnel 11 months ago
CritterIconRenderer.swift chore: rename project to clawdbot 11 months ago
CritterStatusLabel+Behavior.swift chore: rename project to clawdbot 11 months ago
CritterStatusLabel.swift chore: rename project to clawdbot 11 months ago
CronJobEditor+Helpers.swift refactor(macos): drop duplicate AnyCodable 11 months ago
CronJobEditor+Testing.swift feat: multi-agent routing + multi-account providers 11 months ago
CronJobEditor.swift refactor(macos): drop duplicate AnyCodable 11 months ago
CronJobsStore.swift chore: rename project to clawdbot 11 months ago
CronModels.swift feat: multi-agent routing + multi-account providers 11 months ago
CronSettings+Actions.swift refactor(macos): drop duplicate AnyCodable 11 months ago
CronSettings+Helpers.swift chore: rename project to clawdbot 11 months ago
CronSettings+Layout.swift chore: rename project to clawdbot 11 months ago
CronSettings+Rows.swift feat: multi-agent routing + multi-account providers 11 months ago
CronSettings+Testing.swift feat: multi-agent routing + multi-account providers 11 months ago
CronSettings.swift chore: rename project to clawdbot 11 months ago
DebugActions.swift fix(macos): improve onboarding discovery + restart onboarding 11 months ago
DebugSettings.swift feat(macos): prompt for CLI install 11 months ago
DeepLinks.swift feat: multi-agent routing + multi-account providers 11 months ago
DeviceModelCatalog.swift chore: lint and format cleanup 11 months ago
DiagnosticsFileLog.swift chore: rename project to clawdbot 11 months ago
DockIconManager.swift chore: rename project to clawdbot 11 months ago
FileHandle+SafeRead.swift chore: rename project to clawdbot 11 months ago
GatewayAgentChannel.swift style(macos): swiftformat + swiftlint cleanup 11 months ago
GatewayAutostartPolicy.swift chore: rename project to clawdbot 11 months ago
GatewayChannel.swift Move provider to a plugin-architecture (#661) 11 months ago
GatewayConnection.swift Move provider to a plugin-architecture (#661) 11 months ago
GatewayDiscoveryMenu.swift fix(mac): add tailnet discovery fallback and debug CLI 11 months ago
GatewayEndpointStore.swift Move provider to a plugin-architecture (#661) 11 months ago
GatewayEnvironment.swift Move provider to a plugin-architecture (#661) 11 months ago
GatewayErrors.swift chore: rename project to clawdbot 11 months ago
GatewayLaunchAgentManager.swift Move provider to a plugin-architecture (#661) 11 months ago
GatewayPayloadDecoding.swift chore: rename project to clawdbot 11 months ago
GatewayProcessManager.swift Move provider to a plugin-architecture (#661) 11 months ago
GatewayPush.swift chore: rename project to clawdbot 11 months ago
GeneralSettings.swift Move provider to a plugin-architecture (#661) 11 months ago
HealthStore.swift Move provider to a plugin-architecture (#661) 11 months ago
HeartbeatStore.swift chore: rename project to clawdbot 11 months ago
HoverHUD.swift chore: rename project to clawdbot 11 months ago
IconState.swift chore: rename project to clawdbot 11 months ago
InstanceIdentity.swift chore: rename project to clawdbot 11 months ago
InstancesSettings.swift chore: rename project to clawdbot 11 months ago
InstancesStore.swift Move provider to a plugin-architecture (#661) 11 months ago
LaunchAgentManager.swift chore: lint and format cleanup 11 months ago
Launchctl.swift style(macos): swiftformat + swiftlint cleanup 11 months ago
LaunchdManager.swift chore: rename project to clawdbot 11 months ago
LogLocator.swift feat(macos): prompt for CLI install 11 months ago
MenuBar.swift feat(macos): prompt for CLI install 11 months ago
MenuContentView.swift Move provider to a plugin-architecture (#661) 11 months ago
MenuContextCardInjector.swift chore: rename project to clawdbot 11 months ago
MenuHighlightedHostView.swift chore: lint and format cleanup 11 months ago
MenuHostedItem.swift chore: rename project to clawdbot 11 months ago
MenuSessionsHeaderView.swift chore: rename project to clawdbot 11 months ago
MenuSessionsInjector.swift Move provider to a plugin-architecture (#661) 11 months ago
MenuUsageHeaderView.swift fix(macos): wrap usage errors in menu 11 months ago
MicLevelMonitor.swift Voice Wake: preserve mic selection across disconnects 11 months ago
ModelCatalogLoader.swift chore: rename project to clawdbot 11 months ago
NSAttributedString+VoiceWake.swift chore: rename project to clawdbot 11 months ago
NodePairingApprovalPrompter.swift fix(mac): add tailnet discovery fallback and debug CLI 11 months ago
NodesMenu.swift chore: lint and format cleanup 11 months ago
NodesStore.swift chore: rename project to clawdbot 11 months ago
NotificationManager.swift chore: rename project to clawdbot 11 months ago
NotifyOverlay.swift chore: rename project to clawdbot 11 months ago
Onboarding.swift fix: hide onboarding chat when configured 11 months ago
OnboardingView+Actions.swift Move provider to a plugin-architecture (#661) 11 months ago
OnboardingView+Chat.swift fix: hide onboarding chat when configured 11 months ago
OnboardingView+Layout.swift fix(macos): improve onboarding discovery 11 months ago
OnboardingView+Monitoring.swift Move provider to a plugin-architecture (#661) 11 months ago
OnboardingView+Pages.swift feat(macos): install CLI via app script 11 months ago
OnboardingView+Testing.swift fix(mac): add tailnet discovery fallback and debug CLI 11 months ago
OnboardingView+Wizard.swift fix: macOS Swift cleanup 11 months ago
OnboardingView+Workspace.swift feat: wire multi-agent config and routing 11 months ago
OnboardingWidgets.swift chore: rename project to clawdbot 11 months ago
OnboardingWizard.swift fix: macOS Swift cleanup 11 months ago
PeekabooBridgeHostCoordinator.swift chore: lint and format cleanup 11 months ago
PermissionManager.swift Move provider to a plugin-architecture (#661) 11 months ago
PermissionsSettings.swift fix(macos): stabilize onboarding discovery 11 months ago
PointingHandCursor.swift chore: rename project to clawdbot 11 months ago
PortGuardian.swift chore: rename project to clawdbot 11 months ago
PresenceReporter.swift chore: rename project to clawdbot 11 months ago
ProcessInfo+Clawdbot.swift test(macos): isolate env + defaults 11 months ago
RemotePortTunnel.swift fix(macos): stabilize bridge tunnels 11 months ago
RemoteTunnelManager.swift fix(macos): stabilize bridge tunnels 11 months ago
RuntimeLocator.swift chore: rename project to clawdbot 11 months ago
ScreenRecordService.swift chore: rename project to clawdbot 11 months ago
ScreenshotSize.swift chore: rename project to clawdbot 11 months ago
SessionActions.swift chore: rename project to clawdbot 11 months ago
SessionData.swift feat: multi-agent routing + multi-account providers 11 months ago
SessionMenuLabelView.swift chore: rename project to clawdbot 11 months ago
SessionMenuPreviewView.swift chore: lint and format cleanup 11 months ago
SessionsSettings.swift chore: rename project to clawdbot 11 months ago
SettingsComponents.swift chore: rename project to clawdbot 11 months ago
SettingsRootView.swift fix(macos): stabilize onboarding discovery 11 months ago
SettingsWindowOpener.swift Move provider to a plugin-architecture (#661) 11 months ago
ShellExecutor.swift fix(macos): stabilize bridge tunnels 11 months ago
SkillsModels.swift chore: rename project to clawdbot 11 months ago
SkillsSettings.swift chore: rename project to clawdbot 11 months ago
SoundEffects.swift chore: rename project to clawdbot 11 months ago
StatusPill.swift chore: rename project to clawdbot 11 months ago
String+NonEmpty.swift chore: rename project to clawdbot 11 months ago
TailscaleIntegrationSection.swift chore: lint and format cleanup 11 months ago
TailscaleService.swift chore: rename project to clawdbot 11 months ago
TalkAudioPlayer.swift chore: rename project to clawdbot 11 months ago
TalkModeController.swift chore: rename project to clawdbot 11 months ago
TalkModeRuntime.swift fix: macOS Swift cleanup 11 months ago
TalkModeTypes.swift chore: rename project to clawdbot 11 months ago
TalkOverlay.swift chore: rename project to clawdbot 11 months ago
TalkOverlayView.swift chore: lint and format cleanup 11 months ago
TerminationSignalWatcher.swift chore: rename project to clawdbot 11 months ago
UsageData.swift fix(macos): wrap usage provider errors 11 months ago
UsageMenuLabelView.swift fix(macos): wrap usage provider errors 11 months ago
ViewMetrics.swift chore: rename project to clawdbot 11 months ago
VisualEffectView.swift chore: rename project to clawdbot 11 months ago
VoicePushToTalk.swift chore: rename project to clawdbot 11 months ago
VoiceSessionCoordinator.swift chore: rename project to clawdbot 11 months ago
VoiceWakeChime.swift chore: rename project to clawdbot 11 months ago
VoiceWakeForwarder.swift feat: multi-agent routing + multi-account providers 11 months ago
VoiceWakeGlobalSettingsSync.swift chore: rename project to clawdbot 11 months ago
VoiceWakeHelpers.swift chore: rename project to clawdbot 11 months ago
VoiceWakeOverlay.swift chore: rename project to clawdbot 11 months ago
VoiceWakeOverlayController+Session.swift chore: rename project to clawdbot 11 months ago
VoiceWakeOverlayController+Testing.swift chore: rename project to clawdbot 11 months ago
VoiceWakeOverlayController+Window.swift chore: rename project to clawdbot 11 months ago
VoiceWakeOverlayTextViews.swift chore: rename project to clawdbot 11 months ago
VoiceWakeOverlayView.swift chore: rename project to clawdbot 11 months ago
VoiceWakeRuntime.swift refactor: share voice wake text utils 11 months ago
VoiceWakeSettings.swift refactor: share voice wake text utils 11 months ago
VoiceWakeTestCard.swift Mac: stabilize voice wake test flow 11 months ago
VoiceWakeTester.swift refactor: share voice wake text utils 11 months ago
VoiceWakeTextUtils.swift style: align voice wake text utils format 11 months ago
WebChatManager.swift chore: rename project to clawdbot 11 months ago
WebChatSwiftUI.swift chore: rename project to clawdbot 11 months ago
WindowPlacement.swift chore: rename project to clawdbot 11 months ago
WorkActivityStore.swift refactor(shared): default ToolDisplay config 11 months ago