@mycadet/assistant 0.13.0-dev.202610311714.d661ca6 → 0.13.0-dev.202611012320.cea2f8a
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/Dockerfile +1 -0
- package/eslint.config.mjs +8 -0
- package/package.json +2 -2
- package/src/__tests__/add-message-preassigned-id.test.ts +1 -1
- package/src/__tests__/agent-loop-compacted-history-transform.test.ts +1 -1
- package/src/__tests__/agent-loop-compaction-events.test.ts +2 -2
- package/src/__tests__/agent-loop-compaction-strip.test.ts +1 -1
- package/src/__tests__/agent-loop-exit-reason.test.ts +2 -2
- package/src/__tests__/agent-loop-mutable-latest-user-message.test.ts +1 -1
- package/src/__tests__/agent-loop-output-hooks.test.ts +3 -5
- package/src/__tests__/agent-loop-override-profile.test.ts +1 -1
- package/src/__tests__/agent-loop-provider-error-recording.test.ts +1 -1
- package/src/__tests__/agent-loop-regrowth-guard.test.ts +1 -1
- package/src/__tests__/agent-loop-resume-interrupted.test.ts +1 -1
- package/src/__tests__/agent-loop.test.ts +5 -3
- package/src/__tests__/anthropic-provider.test.ts +2 -5
- package/src/__tests__/approval-message-composer.test.ts +2 -4
- package/src/__tests__/ask-question-resolver.test.ts +2 -1
- package/src/__tests__/assistant-attachments.test.ts +3 -2
- package/src/__tests__/assistant-event-targeting.test.ts +2 -1
- package/src/__tests__/attachments-store.test.ts +1 -1
- package/src/__tests__/browser-identifier-parity-guard.test.ts +1 -1
- package/src/__tests__/browser-skill-endstate.test.ts +1 -1
- package/src/__tests__/call-domain.test.ts +1 -1
- package/src/__tests__/call-setup-flow-name-capture.test.ts +2 -1
- package/src/__tests__/call-setup-flow-verification.test.ts +2 -1
- package/src/__tests__/call-setup-flow.test.ts +2 -1
- package/src/__tests__/call-site-routing-provider.test.ts +1 -1
- package/src/__tests__/call-start-guardian-guard.test.ts +2 -1
- package/src/__tests__/ces-rpc-credential-backend.test.ts +2 -1
- package/src/__tests__/ces-startup-timeout.test.ts +2 -1
- package/src/__tests__/channel-approval-routes.test.ts +2 -4
- package/src/__tests__/channel-inbound-disk-pressure.test.ts +2 -2
- package/src/__tests__/channel-invite-transport.test.ts +1 -1
- package/src/__tests__/channel-policy.test.ts +3 -1
- package/src/__tests__/channel-readiness-service.test.ts +2 -1
- package/src/__tests__/channel-setup-panel-ack.test.ts +1 -1
- package/src/__tests__/checker.test.ts +1 -1
- package/src/__tests__/computer-use-screenshot-attachments.test.ts +2 -4
- package/src/__tests__/computer-use-skill-manifest-regression.test.ts +1 -1
- package/src/__tests__/config-schema.test.ts +5 -7
- package/src/__tests__/context-window-manager-overflow-rung.test.ts +2 -1
- package/src/__tests__/conversation-agent-loop-disk-pressure.test.ts +1 -1
- package/src/__tests__/conversation-agent-loop-fatal-cleanup.test.ts +1 -1
- package/src/__tests__/conversation-agent-loop-inference-profile.test.ts +2 -1
- package/src/__tests__/conversation-agent-loop-overflow.test.ts +2 -1
- package/src/__tests__/conversation-agent-loop.test.ts +2 -2
- package/src/__tests__/conversation-attention-telegram.test.ts +2 -4
- package/src/__tests__/conversation-clean-command.test.ts +1 -1
- package/src/__tests__/conversation-disk-view-integration.test.ts +2 -4
- package/src/__tests__/conversation-disk-view.test.ts +2 -2
- package/src/__tests__/conversation-error.test.ts +1 -1
- package/src/__tests__/conversation-fork-crud.test.ts +1 -1
- package/src/__tests__/conversation-fork-retrospective.test.ts +1 -1
- package/src/__tests__/conversation-message-sync-tags.test.ts +2 -4
- package/src/__tests__/conversation-queue.test.ts +2 -1
- package/src/__tests__/conversation-routes-disk-view.test.ts +2 -4
- package/src/__tests__/conversation-runtime-assembly.test.ts +1 -1
- package/src/__tests__/conversation-runtime-workspace.test.ts +2 -1
- package/src/__tests__/conversation-skill-tools.test.ts +2 -2
- package/src/__tests__/conversation-slash-queue.test.ts +2 -4
- package/src/__tests__/conversation-surfaces-action-delivery.test.ts +2 -1
- package/src/__tests__/conversation-surfaces-app-open.test.ts +1 -1
- package/src/__tests__/conversation-surfaces-data-persist.test.ts +3 -5
- package/src/__tests__/conversation-surfaces-deselection.test.ts +5 -7
- package/src/__tests__/conversation-surfaces-history-restored-completion.test.ts +1 -1
- package/src/__tests__/conversation-surfaces-queued-emit.test.ts +1 -1
- package/src/__tests__/conversation-surfaces-settle-task-progress.test.ts +3 -5
- package/src/__tests__/conversation-surfaces-standalone.test.ts +1 -1
- package/src/__tests__/conversation-surfaces-state-update.test.ts +2 -2
- package/src/__tests__/conversation-surfaces-table-action.test.ts +1 -1
- package/src/__tests__/conversation-surfaces-task-progress.test.ts +5 -7
- package/src/__tests__/conversation-tool-setup-tools-disabled.test.ts +2 -1
- package/src/__tests__/conversation-undo.test.ts +3 -5
- package/src/__tests__/conversation-workspace-cache-state.test.ts +1 -1
- package/src/__tests__/conversations-defer-cli.test.ts +1 -1
- package/src/__tests__/credential-execution-api-key-propagation.test.ts +2 -4
- package/src/__tests__/credential-execution-client.test.ts +5 -7
- package/src/__tests__/cross-provider-web-search.test.ts +4 -9
- package/src/__tests__/db-conversation-tool-surface.test.ts +1 -1
- package/src/__tests__/db-mode-sessions-migration.test.ts +1 -1
- package/src/__tests__/delete-propagation.test.ts +2 -4
- package/src/__tests__/dictation-mode-detection.test.ts +1 -1
- package/src/__tests__/disk-pressure-policy.test.ts +1 -1
- package/src/__tests__/disk-pressure-tools.test.ts +2 -1
- package/src/__tests__/dm-backfill.test.ts +2 -4
- package/src/__tests__/dynamic-page-surface.test.ts +3 -5
- package/src/__tests__/dynamic-skill-background-guard.test.ts +1 -1
- package/src/__tests__/embedding-cloud-proxy-selection.test.ts +1 -1
- package/src/__tests__/empty-response-hook.test.ts +7 -10
- package/src/__tests__/exploration-drift-hook.test.ts +2 -1
- package/src/__tests__/gateway-client-cloud-outbound.test.ts +3 -4
- package/src/__tests__/gateway-only-enforcement.test.ts +2 -1
- package/src/__tests__/gemini-count-tokens.test.ts +2 -1
- package/src/__tests__/gemini-provider.test.ts +1 -1
- package/src/__tests__/guardian-expiry-notifier.test.ts +2 -1
- package/src/__tests__/guardian-reply-router-answer-mode.test.ts +2 -1
- package/src/__tests__/guardian-routing-state.test.ts +1 -1
- package/src/__tests__/handlers-user-message-approval-consumption.test.ts +1 -1
- package/src/__tests__/headless-browser-mode.test.ts +1 -1
- package/src/__tests__/helpers/channel-test-adapter.ts +4 -8
- package/src/__tests__/helpers/hub-clients.ts +5 -5
- package/src/__tests__/helpers/mock-provider.ts +1 -1
- package/src/__tests__/helpers/seed-contact-channel.ts +2 -1
- package/src/__tests__/hook-broadcast.test.ts +3 -2
- package/src/__tests__/host-proxy-interface.test.ts +2 -1
- package/src/__tests__/host-proxy-preactivation.test.ts +1 -1
- package/src/__tests__/identity-routes.test.ts +4 -4
- package/src/__tests__/image-recovery-hook.test.ts +3 -5
- package/src/__tests__/image-service-dispatcher.test.ts +2 -5
- package/src/__tests__/inbound-invite-redemption.test.ts +2 -4
- package/src/__tests__/inference-no-mode-boot-e2e.test.ts +1 -1
- package/src/__tests__/injector-disk-pressure.test.ts +2 -4
- package/src/__tests__/list-messages-system-card.test.ts +2 -2
- package/src/__tests__/max-tokens-continue-hook.test.ts +3 -5
- package/src/__tests__/mcp-tool-annotations-risk.test.ts +1 -1
- package/src/__tests__/memory-jobs-worker-cleanup-cadence.test.ts +1 -1
- package/src/__tests__/mode-session-recovery.test.ts +1 -1
- package/src/__tests__/native-web-search.test.ts +1 -1
- package/src/__tests__/openai-provider.test.ts +2 -2
- package/src/__tests__/openai-responses-provider.test.ts +3 -6
- package/src/__tests__/parallel-tool.benchmark.test.ts +1 -1
- package/src/__tests__/personal-memory-auth-bypass.test.ts +2 -1
- package/src/__tests__/platform-bash-auto-approve.test.ts +1 -1
- package/src/__tests__/plugin-bootstrap.test.ts +2 -1
- package/src/__tests__/plugin-disabled-state.test.ts +3 -6
- package/src/__tests__/plugin-effective-enabled-set.test.ts +2 -1
- package/src/__tests__/plugin-injector-contribution.test.ts +2 -1
- package/src/__tests__/plugin-secret-patterns.test.ts +0 -13
- package/src/__tests__/plugin-tool-contribution.test.ts +3 -2
- package/src/__tests__/plugin-types.test.ts +2 -2
- package/src/__tests__/pricing.test.ts +1 -1
- package/src/__tests__/process-message-display-content.test.ts +1 -1
- package/src/__tests__/ratelimit.test.ts +1 -1
- package/src/__tests__/reaction-persistence.test.ts +2 -4
- package/src/__tests__/registry.test.ts +1 -1
- package/src/__tests__/require-fresh-approval.test.ts +2 -1
- package/src/__tests__/resource-pressure-guard.test.ts +1 -1
- package/src/__tests__/runtime-attachment-metadata.test.ts +2 -4
- package/src/__tests__/schedule-tools.test.ts +1 -1
- package/src/__tests__/schema-transforms.test.ts +1 -1
- package/src/__tests__/secure-keys-cloud-failover.test.ts +2 -1
- package/src/__tests__/secure-keys.test.ts +4 -6
- package/src/__tests__/settings-routes.test.ts +1 -1
- package/src/__tests__/sight-frame-retention.test.ts +1 -1
- package/src/__tests__/skill-tool-factory.test.ts +1 -1
- package/src/__tests__/skillssh-registry.test.ts +3 -5
- package/src/__tests__/slack-inbound-verification.test.ts +2 -4
- package/src/__tests__/slack-notification-approval-card.test.ts +1 -1
- package/src/__tests__/starter-task-flow.test.ts +1 -1
- package/src/__tests__/subagent-tool-gate-mode.test.ts +3 -2
- package/src/__tests__/surface-completion-in-flight-snapshot.test.ts +1 -1
- package/src/__tests__/surface-completion-nudge-hook.test.ts +2 -4
- package/src/__tests__/sync-message-contract.test.ts +4 -6
- package/src/__tests__/system-prompt.test.ts +2 -1
- package/src/__tests__/task-progress-nudge-hook.test.ts +2 -1
- package/src/__tests__/telegram-invite-adapter.test.ts +1 -1
- package/src/__tests__/thread-backfill.test.ts +1 -1
- package/src/__tests__/title-generate-hook.test.ts +3 -5
- package/src/__tests__/token-estimator-accuracy.benchmark.test.ts +2 -1
- package/src/__tests__/tool-error-hook.test.ts +2 -1
- package/src/__tests__/tool-execution-pipeline.benchmark.test.ts +1 -1
- package/src/__tests__/tool-executor.test.ts +6 -11
- package/src/__tests__/tool-result-spool.test.ts +2 -5
- package/src/__tests__/tool-result-truncate-hook.test.ts +2 -1
- package/src/__tests__/tools-get-route.test.ts +1 -1
- package/src/__tests__/trusted-contact-approval-notifier.test.ts +2 -1
- package/src/__tests__/trusted-contact-lifecycle-notifications.test.ts +2 -4
- package/src/__tests__/trusted-contact-multichannel.test.ts +2 -4
- package/src/__tests__/turn-boundary-resolution.test.ts +1 -1
- package/src/__tests__/ui-choice-copy-surfaces.test.ts +5 -7
- package/src/__tests__/ui-file-upload-surface.test.ts +3 -5
- package/src/__tests__/ui-visual-surface.test.ts +2 -2
- package/src/__tests__/ui-voice-picker-surface.test.ts +2 -2
- package/src/__tests__/ui-work-result-surface.test.ts +5 -7
- package/src/__tests__/url-safety.test.ts +3 -2
- package/src/__tests__/workspace-migration-009-backfill-conversation-disk-view.test.ts +1 -1
- package/src/__tests__/workspace-migration-013-repair-conversation-disk-view.test.ts +1 -1
- package/src/__tests__/workspace-migration-133-collapse-provider-connections.test.ts +1 -1
- package/src/__tests__/workspace-tool-loader.test.ts +1 -1
- package/src/acp/__tests__/auth-required.test.ts +1 -1
- package/src/acp/agent-process.ts +2 -1
- package/src/acp/auth-required.ts +0 -2
- package/src/acp/client-handler.ts +2 -1
- package/src/acp/session-manager.ts +1 -1
- package/src/agent/loop-exclusive-tool.test.ts +1 -1
- package/src/agent/loop.ts +1 -3
- package/src/approvals/guardian-card-withdrawal.ts +2 -2
- package/src/approvals/guardian-decision-primitive.ts +2 -2
- package/src/approvals/guardian-expiry-notifier.ts +2 -1
- package/src/approvals/guardian-request-resolvers.ts +2 -4
- package/src/apps/app-store.ts +0 -2
- package/src/avatar/__tests__/avatar-manifest.test.ts +2 -1
- package/src/avatar/accent-backfill.ts +2 -1
- package/src/avatar/avatar-manifest.ts +0 -13
- package/src/avatar/avatar-store.ts +4 -3
- package/src/avatar/ensure-raster.ts +3 -1
- package/src/avatar/notification-avatar.ts +2 -1
- package/src/avatar/sync-avatar.test.ts +1 -1
- package/src/avatar/traits-png-sync.ts +0 -2
- package/src/browser/__tests__/operations.test.ts +1 -1
- package/src/browser/operations.ts +0 -2
- package/src/calls/__tests__/call-setup-router.test.ts +1 -1
- package/src/calls/__tests__/voice-triage-escalate.test.ts +2 -2
- package/src/calls/call-controller.ts +1 -1
- package/src/calls/call-domain.ts +2 -2
- package/src/calls/channel-admission-reader.ts +1 -1
- package/src/calls/inbound-trust-reader.ts +1 -1
- package/src/calls/progress-narration.ts +2 -5
- package/src/calls/telephony-synthesis-language.ts +1 -1
- package/src/calls/telephony-tts-capability.ts +1 -1
- package/src/calls/tts-call-strategy.ts +1 -1
- package/src/calls/twilio-provider.ts +4 -5
- package/src/calls/twilio-rest.ts +0 -2
- package/src/calls/voice-ingress-preflight.ts +1 -1
- package/src/calls/voice-session-bridge.ts +2 -5
- package/src/calls/voice-triage-escalate.ts +0 -2
- package/src/channels/config.ts +2 -1
- package/src/channels/gateway-guardian-requests.ts +0 -11
- package/src/channels/gateway-invites.ts +0 -2
- package/src/channels/gateway-verification-sessions.ts +0 -2
- package/src/channels/plugin-channel-declarations.ts +3 -1
- package/src/channels/types.ts +0 -11
- package/src/cli/commands/__tests__/browser.test.ts +1 -1
- package/src/cli/commands/contacts.ts +1 -1
- package/src/cli/commands/conversations-defer.ts +0 -2
- package/src/cli/commands/domain.ts +1 -1
- package/src/cli/commands/email.ts +1 -1
- package/src/cli/commands/inference-providers.ts +2 -1
- package/src/cli/commands/memory/__tests__/memory-ingest.test.ts +9 -12
- package/src/cli/commands/memory/memory-ingest.ts +1 -1
- package/src/cli/commands/notifications.ts +1 -1
- package/src/cli/commands/oauth/apps.ts +1 -1
- package/src/cli/commands/oauth/connect.ts +1 -1
- package/src/cli/commands/oauth/disconnect.ts +1 -1
- package/src/cli/commands/oauth/ping.ts +1 -1
- package/src/cli/commands/oauth/providers.ts +1 -1
- package/src/cli/commands/plugins.ts +1 -1
- package/src/cli/lib/cache-fs.ts +27 -3
- package/src/cli/lib/uninstall-plugin.ts +1 -7
- package/src/cli/logger.ts +0 -2
- package/src/config/__tests__/default-profile-catalog.test.ts +1 -1
- package/src/config/__tests__/default-provider.test.ts +1 -1
- package/src/config/bundled-skills/app-builder/tools/app-create.ts +1 -1
- package/src/config/bundled-skills/app-builder/tools/app-delete.ts +1 -1
- package/src/config/bundled-skills/app-builder/tools/app-generate-icon.ts +1 -1
- package/src/config/bundled-skills/app-builder/tools/app-open.ts +1 -1
- package/src/config/bundled-skills/app-builder/tools/app-refresh.ts +1 -1
- package/src/config/bundled-skills/app-builder/tools/app-update.ts +1 -1
- package/src/config/bundled-skills/contacts/tools/contact-merge.ts +1 -1
- package/src/config/bundled-skills/image-studio/tools/media-generate-image.ts +2 -4
- package/src/config/bundled-skills/media-processing/tools/analyze-keyframes.ts +2 -4
- package/src/config/bundled-skills/media-processing/tools/extract-keyframes.ts +2 -6
- package/src/config/bundled-skills/media-processing/tools/generate-clip.ts +2 -4
- package/src/config/bundled-skills/media-processing/tools/ingest-media.ts +1 -1
- package/src/config/bundled-skills/media-processing/tools/query-media-events.ts +2 -6
- package/src/config/bundled-skills/messaging/tools/messaging-analyze-style.ts +2 -4
- package/src/config/bundled-skills/messaging/tools/messaging-archive-by-sender.ts +2 -4
- package/src/config/bundled-skills/messaging/tools/messaging-draft.ts +1 -1
- package/src/config/bundled-skills/messaging/tools/messaging-mark-read.ts +2 -4
- package/src/config/bundled-skills/messaging/tools/messaging-send.ts +2 -4
- package/src/config/bundled-skills/phone-calls/tools/call-end.ts +61 -2
- package/src/config/bundled-skills/phone-calls/tools/call-start.ts +104 -2
- package/src/config/bundled-skills/phone-calls/tools/call-status.ts +77 -2
- package/src/config/bundled-skills/playbooks/tools/playbook-create.ts +2 -4
- package/src/config/bundled-skills/playbooks/tools/playbook-delete.ts +2 -4
- package/src/config/bundled-skills/playbooks/tools/playbook-update.ts +2 -4
- package/src/config/bundled-skills/sequences/tools/sequence-create.ts +2 -4
- package/src/config/bundled-skills/sequences/tools/sequence-delete.ts +2 -4
- package/src/config/bundled-skills/sequences/tools/sequence-enroll.ts +2 -4
- package/src/config/bundled-skills/sequences/tools/sequence-import.ts +2 -4
- package/src/config/bundled-skills/sequences/tools/sequence-update.ts +2 -4
- package/src/config/bundled-skills/settings/tools/navigate-settings-tab.ts +1 -1
- package/src/config/bundled-skills/settings/tools/open-system-settings.ts +1 -1
- package/src/config/bundled-skills/settings/tools/voice-config-update.ts +1 -1
- package/src/config/bundled-skills/transcribe/tools/transcribe-media.ts +2 -4
- package/src/config/default-profile-catalog.ts +0 -2
- package/src/config/default-provider.ts +0 -2
- package/src/config/defaults.ts +1 -1
- package/src/config/env-registry.ts +0 -1
- package/src/config/llm-context-resolution.ts +1 -1
- package/src/config/llm-resolver.ts +2 -4
- package/src/config/loader.ts +1 -1
- package/src/config/schema.ts +0 -9
- package/src/config/schemas/stt.ts +0 -2
- package/src/config/skill-state.ts +2 -1
- package/src/contacts/contact-store.ts +1 -1
- package/src/context/compactor.ts +3 -2
- package/src/context/token-estimator.ts +2 -6
- package/src/conversations/job-handlers/summarization.ts +1 -1
- package/src/credential-execution/ces-connect.ts +4 -5
- package/src/credential-execution/ces-runtime.ts +3 -1
- package/src/credential-execution/client.ts +0 -10
- package/src/credential-execution/process-manager.ts +2 -1
- package/src/credential-execution/startup-timeout.ts +1 -1
- package/src/daemon/__tests__/conversation-surfaces-launch.test.ts +1 -1
- package/src/daemon/__tests__/conversation-tool-setup-exclude.test.ts +1 -1
- package/src/daemon/__tests__/conversation-tool-setup-plugin-scope.test.ts +1 -1
- package/src/daemon/__tests__/embedding-reconcile.test.ts +1 -1
- package/src/daemon/__tests__/lifecycle-embedding-reconcile.test.ts +1 -1
- package/src/daemon/approval-generators.ts +1 -1
- package/src/daemon/assistant-attachments.ts +0 -2
- package/src/daemon/browser-mode-session.ts +0 -2
- package/src/daemon/conversation-agent-loop-handlers.ts +3 -5
- package/src/daemon/conversation-agent-loop.ts +7 -7
- package/src/daemon/conversation-attachments.ts +1 -1
- package/src/daemon/conversation-error.ts +1 -1
- package/src/daemon/conversation-lifecycle.ts +4 -2
- package/src/daemon/conversation-messaging.ts +2 -2
- package/src/daemon/conversation-process.ts +4 -4
- package/src/daemon/conversation-queue-manager.ts +1 -1
- package/src/daemon/conversation-runtime-assembly.ts +4 -4
- package/src/daemon/conversation-skill-tools.ts +2 -1
- package/src/daemon/conversation-surfaces.ts +16 -27
- package/src/daemon/conversation-tool-setup.ts +6 -14
- package/src/daemon/conversation-usage.ts +3 -3
- package/src/daemon/conversation.ts +14 -18
- package/src/daemon/disk-pressure-background-gate.ts +3 -5
- package/src/daemon/disk-pressure-guard.ts +0 -7
- package/src/daemon/disk-pressure-policy.ts +1 -1
- package/src/daemon/doordash-steps.ts +1 -1
- package/src/daemon/embedding-reconcile.ts +1 -1
- package/src/daemon/external-plugins-bootstrap.ts +2 -5
- package/src/daemon/handlers/config-channels.ts +2 -1
- package/src/daemon/handlers/conversations.ts +3 -3
- package/src/daemon/handlers/dictation.ts +1 -1
- package/src/daemon/handlers/recording.ts +2 -1
- package/src/daemon/handlers/shared.ts +1 -1
- package/src/daemon/handlers/skills.ts +2 -2
- package/src/daemon/host-proxy-base.ts +1 -1
- package/src/daemon/host-proxy-preactivation.ts +2 -1
- package/src/daemon/message-protocol.ts +0 -10
- package/src/daemon/message-types/computer-use.ts +0 -2
- package/src/daemon/message-types/conversations.ts +4 -5
- package/src/daemon/message-types/host-ui-snapshot.ts +0 -2
- package/src/daemon/message-types/messages.ts +3 -1
- package/src/daemon/message-types/skills.ts +0 -1
- package/src/daemon/message-types/surfaces.ts +1 -81
- package/src/daemon/message-types/sync.ts +0 -2
- package/src/daemon/process-message.ts +1 -1
- package/src/daemon/providers-setup.ts +1 -1
- package/src/daemon/reaction-record.ts +3 -5
- package/src/daemon/resource-pressure-guard.ts +1 -6
- package/src/daemon/trust-context-types.ts +2 -3
- package/src/daemon/trust-context.ts +2 -1
- package/src/daemon/wake-conversation-ops.ts +2 -1
- package/src/desktop/desktop-session-manager.ts +3 -1
- package/src/heartbeat/heartbeat-service.ts +1 -1
- package/src/home/__tests__/feed-types.test.ts +3 -1
- package/src/home/feed-types.ts +0 -21
- package/src/home/feed-writer.ts +4 -7
- package/src/home/post-connect-feed.ts +1 -1
- package/src/home/suggested-prompts-cache.ts +1 -1
- package/src/home/suggested-prompts.ts +1 -1
- package/src/hooks/registry.ts +2 -1
- package/src/ipc/__tests__/browser-ipc.test.ts +3 -2
- package/src/ipc/__tests__/ui-request-route.test.ts +1 -1
- package/src/live-voice/__tests__/live-voice-continuation-fork-hydration.test.ts +2 -1
- package/src/live-voice/__tests__/live-voice-sight-frame-inline.test.ts +1 -1
- package/src/live-voice/__tests__/live-voice-tts.test.ts +4 -5
- package/src/live-voice/__tests__/live-voice-vad.test.ts +1 -1
- package/src/live-voice/live-voice-credential-preflight.ts +1 -1
- package/src/live-voice/live-voice-tts.ts +0 -2
- package/src/mcp/startup.ts +0 -2
- package/src/media/__tests__/image-models.test.ts +1 -1
- package/src/media/image-service.ts +0 -2
- package/src/media/job-handlers/media-processing.ts +2 -2
- package/src/messaging/provider-message-metadata.ts +1 -2
- package/src/messaging/providers/callback-routing.ts +2 -1
- package/src/messaging/providers/channel-transport.ts +1 -1
- package/src/messaging/reaction-envelopes.ts +1 -1
- package/src/messaging/read-provider-metadata.ts +2 -1
- package/src/messaging/style-analyzer.ts +2 -1
- package/src/monitoring/log-retention-sweeper.ts +65 -0
- package/src/monitoring/worker.ts +9 -0
- package/src/notifications/__tests__/edit-notification.test.ts +1 -1
- package/src/notifications/__tests__/home-feed-side-effect.test.ts +9 -6
- package/src/notifications/adapters/slack.ts +1 -1
- package/src/notifications/approval-card-builder.ts +2 -4
- package/src/notifications/broadcaster.ts +2 -2
- package/src/notifications/conversation-pairing.ts +3 -1
- package/src/notifications/delivered-post-record.ts +2 -1
- package/src/notifications/destination-resolver.ts +1 -1
- package/src/notifications/edit-notification.ts +3 -5
- package/src/notifications/guardian-delivery-recorder.ts +1 -1
- package/src/notifications/guardian-feed-projection.ts +3 -2
- package/src/notifications/home-feed-side-effect.ts +6 -8
- package/src/permissions/approval-policy.test.ts +1 -1
- package/src/permissions/approval-policy.ts +1 -1
- package/src/permissions/checker.test.ts +1 -1
- package/src/permissions/checker.ts +3 -6
- package/src/permissions/prompter.ts +3 -1
- package/src/permissions/types.ts +0 -3
- package/src/persistence/__tests__/client-connection-events-store.test.ts +1 -1
- package/src/persistence/attachments-store.ts +3 -1
- package/src/persistence/bookmark-crud.ts +3 -1
- package/src/persistence/conversation-crud.ts +4 -16
- package/src/persistence/conversation-disk-view.ts +0 -3
- package/src/persistence/conversation-key-store.ts +1 -1
- package/src/persistence/conversation-mode-sessions.test.ts +1 -1
- package/src/persistence/conversation-plugin-facade.ts +1 -1
- package/src/persistence/conversation-title-service.ts +0 -2
- package/src/persistence/conversation-tool-surface.ts +1 -1
- package/src/persistence/conversation-types.ts +3 -1
- package/src/persistence/delivery-channels.ts +1 -1
- package/src/persistence/delivery-crud.ts +7 -9
- package/src/persistence/delivery-status.ts +2 -2
- package/src/persistence/embeddings/__tests__/embedding-identity.test.ts +1 -1
- package/src/persistence/embeddings/embed.ts +3 -2
- package/src/persistence/embeddings/embedding-backend.test.ts +1 -1
- package/src/persistence/embeddings/embedding-backend.ts +1 -5
- package/src/persistence/embeddings/embedding-cache.ts +1 -1
- package/src/persistence/embeddings/embedding-identity.ts +1 -1
- package/src/persistence/embeddings/plugin-facade.ts +0 -9
- package/src/persistence/embeddings/plugin-index.ts +1 -1
- package/src/persistence/embeddings/qdrant-client.test.ts +1 -1
- package/src/persistence/embeddings/qdrant-client.ts +1 -1
- package/src/persistence/job-handlers/__tests__/message-lexical-backfill.test.ts +1 -1
- package/src/persistence/job-handlers/__tests__/message-lexical.test.ts +1 -1
- package/src/persistence/job-handlers/cleanup.ts +1 -1
- package/src/persistence/job-handlers/message-lexical-backfill.ts +1 -1
- package/src/persistence/job-handlers/message-lexical.ts +1 -1
- package/src/persistence/job-utils.ts +1 -3
- package/src/persistence/media-store.ts +3 -1
- package/src/persistence/message-cursor.ts +0 -2
- package/src/persistence/migrations/229-delete-private-conversations.test.ts +1 -1
- package/src/persistence/migrations/275-tool-invocations-add-skill-id.test.ts +1 -1
- package/src/persistence/migrations/276-tool-invocations-created-at-id-index.test.ts +1 -1
- package/src/persistence/migrations/278-tool-invocations-telemetry-columns.test.ts +1 -1
- package/src/persistence/migrations/279-create-skill-loaded-events.test.ts +1 -1
- package/src/persistence/migrations/280-conversations-surfaced-at.test.ts +1 -1
- package/src/persistence/migrations/282-schedule-inference-profile.test.ts +1 -1
- package/src/persistence/migrations/283-memory-v3-selections-message-id-and-sections.test.ts +1 -1
- package/src/persistence/migrations/290-schedule-capabilities.test.ts +1 -1
- package/src/persistence/migrations/292-schedule-default-no-reuse-conversation.test.ts +1 -1
- package/src/persistence/migrations/296-rewrite-balanced-economy-profile-pins.test.ts +1 -1
- package/src/persistence/migrations/306-rewrite-frontier-profile-pins.test.ts +1 -1
- package/src/persistence/migrations/307-acp-session-history-usage-columns.test.ts +1 -1
- package/src/persistence/migrations/308-acp-session-history-token-columns.test.ts +1 -1
- package/src/persistence/migrations/323-delete-non-default-memory-scopes.test.ts +1 -1
- package/src/persistence/migrations/342-add-conversation-parent-id.test.ts +1 -1
- package/src/persistence/migrations/352-drop-schedule-skill-script-handoff.test.ts +1 -1
- package/src/persistence/migrations/353-add-llm-usage-conversation-type.test.ts +1 -1
- package/src/persistence/migrations/356-add-subagent-parent-tool-use-id.test.ts +1 -1
- package/src/persistence/migrations/360-add-document-workspace-path.test.ts +1 -1
- package/src/persistence/migrations/361-normalize-managed-connection-rows.test.ts +1 -1
- package/src/persistence/migrations/362-add-conversation-subagent-kind.test.ts +1 -1
- package/src/persistence/migrations/363-backfill-schedule-inference-profile.test.ts +1 -1
- package/src/persistence/migrations/364-add-schedule-source-key.test.ts +1 -1
- package/src/persistence/migrations/366-chatgpt-subscription-row-identity.test.ts +1 -1
- package/src/persistence/migrations/377-add-subagent-budget-stop-reason.test.ts +1 -1
- package/src/persistence/migrations/378-create-conversation-tool-surfaces.test.ts +1 -1
- package/src/persistence/migrations/379-oauth-providers-response-ok-field.test.ts +1 -1
- package/src/persistence/migrations/380-conversation-tool-surfaces-delegate-independent-tasks.test.ts +1 -1
- package/src/persistence/migrations/384-add-document-revision.test.ts +1 -1
- package/src/persistence/migrations/385-create-document-revisions.test.ts +1 -1
- package/src/persistence/migrations/__tests__/014-backfill-inbox-thread-state.test.ts +1 -1
- package/src/persistence/migrations/__tests__/131-drop-legacy-member-guardian-tables.test.ts +1 -1
- package/src/persistence/migrations/__tests__/136-drop-assistant-id-columns.test.ts +1 -1
- package/src/persistence/migrations/__tests__/157-invite-contact-id.test.ts +1 -1
- package/src/persistence/migrations/__tests__/234-memory-v2-activation-logs.test.ts +1 -1
- package/src/persistence/migrations/__tests__/244-provider-connection-status-label.test.ts +1 -1
- package/src/persistence/migrations/__tests__/245-memory-retrospective-state.test.ts +1 -1
- package/src/persistence/migrations/__tests__/246-backfill-provider-connection-label.test.ts +1 -1
- package/src/persistence/migrations/__tests__/267-llm-usage-events-add-assistant-version.test.ts +1 -1
- package/src/persistence/migrations/__tests__/281-memory-retrospective-remembered-log.test.ts +1 -1
- package/src/persistence/migrations/__tests__/289-contact-channels-unique-ext-user.test.ts +1 -1
- package/src/persistence/migrations/__tests__/291-contact-channels-renormalize-addresses.test.ts +1 -1
- package/src/persistence/migrations/__tests__/315-create-a2a-invites.test.ts +1 -1
- package/src/persistence/migrations/__tests__/316-drop-contact-channels-invite-id.test.ts +1 -1
- package/src/persistence/migrations/__tests__/318-drop-contact-channel-telemetry.test.ts +1 -1
- package/src/persistence/migrations/__tests__/319-remove-legacy-managed-connections.test.ts +1 -1
- package/src/persistence/migrations/__tests__/367-create-watch-timeline-entries.test.ts +1 -1
- package/src/persistence/migrations/__tests__/368-watch-timeline-screenshot-blob.test.ts +1 -1
- package/src/persistence/migrations/__tests__/370-acp-session-history-auth-error-code.test.ts +1 -1
- package/src/persistence/migrations/__tests__/371-acp-session-history-auth-error-credential.test.ts +1 -1
- package/src/persistence/migrations/__tests__/372-create-acp-refused-credentials.test.ts +1 -1
- package/src/persistence/migrations/__tests__/373-acp-auth-marker-index.test.ts +1 -1
- package/src/persistence/migrations/__tests__/375-create-channel-outbound-posts.test.ts +1 -1
- package/src/persistence/migrations/__tests__/382-create-client-connection-events.test.ts +1 -1
- package/src/persistence/migrations/__tests__/383-normalize-opencode-host-connections.test.ts +1 -1
- package/src/persistence/migrations/__tests__/387-drop-telemetry-tables.test.ts +1 -1
- package/src/persistence/migrations/__tests__/run-migrations.test.ts +1 -1
- package/src/plugin-api/conversation-turn.ts +2 -1
- package/src/plugin-api/index.ts +29 -25
- package/src/plugin-api/plugin-channel-turn-trust.ts +1 -1
- package/src/plugin-api/types.ts +0 -23
- package/src/plugins/defaults/compaction/compact.ts +1 -1
- package/src/plugins/defaults/compaction/context-overflow-reducer.ts +2 -2
- package/src/plugins/defaults/compaction/window-manager.ts +3 -4
- package/src/plugins/defaults/empty-response/hooks/post-model-call.ts +0 -1
- package/src/plugins/defaults/memory/__tests__/indexer-tier-dispatch.test.ts +1 -1
- package/src/plugins/defaults/memory/__tests__/jobs-worker-retrospective-sweep.test.ts +1 -1
- package/src/plugins/defaults/memory/__tests__/jobs-worker-v1-graph-substrate-noop.test.ts +1 -1
- package/src/plugins/defaults/memory/__tests__/memory-retrospective-sweep.test.ts +1 -1
- package/src/plugins/defaults/memory/__tests__/memory-retrospective-trigger-check.test.ts +1 -1
- package/src/plugins/defaults/memory/__tests__/memory-retrospective-wake-chain.test.ts +1 -1
- package/src/plugins/defaults/memory/embeddings.ts +1 -1
- package/src/plugins/defaults/memory/graph/__tests__/conversation-graph-memory-v2-routing.test.ts +1 -1
- package/src/plugins/defaults/memory/graph/conversation-graph-memory.ts +1 -1
- package/src/plugins/defaults/memory/graph/graph-search.ts +1 -1
- package/src/plugins/defaults/memory/graph/tool-handlers.test.ts +1 -1
- package/src/plugins/defaults/memory/graph/tool-handlers.ts +1 -1
- package/src/plugins/defaults/memory/graph-topology/build-memory-graph.ts +1 -1
- package/src/plugins/defaults/memory/hooks/shutdown.ts +1 -1
- package/src/plugins/defaults/memory/host-utils.ts +0 -3
- package/src/plugins/defaults/memory/indexer.ts +2 -2
- package/src/plugins/defaults/memory/job-handlers.ts +1 -1
- package/src/plugins/defaults/memory/jobs/embed-concept-page.ts +2 -2
- package/src/plugins/defaults/memory/jobs-worker.ts +2 -2
- package/src/plugins/defaults/memory/memory-retrospective-accounting.ts +1 -1
- package/src/plugins/defaults/memory/memory-retrospective-enqueue.ts +2 -1
- package/src/plugins/defaults/memory/memory-retrospective-job.ts +1 -1
- package/src/plugins/defaults/memory/memory-retrospective-sweep.ts +1 -1
- package/src/plugins/defaults/memory/memory-retrospective-trigger-check.ts +1 -1
- package/src/plugins/defaults/memory/src/__tests__/memory-ingest-routes.test.ts +1 -1
- package/src/plugins/defaults/memory/src/memory-eval-routes.ts +1 -1
- package/src/plugins/defaults/memory/src/memory-ingest-routes.ts +1 -6
- package/src/plugins/defaults/memory/src/memory-item-routes.ts +1 -1
- package/src/plugins/defaults/memory/src/memory-v2-routes.ts +1 -1
- package/src/plugins/defaults/memory/src/memory-v3-routes.ts +1 -1
- package/src/plugins/defaults/memory/substrate/__tests__/sim.test.ts +1 -1
- package/src/plugins/defaults/memory/substrate/consolidation-job.ts +1 -1
- package/src/plugins/defaults/memory/substrate/reembed-job.ts +1 -1
- package/src/plugins/defaults/memory/substrate/sim.ts +1 -1
- package/src/plugins/defaults/memory/substrate/sweep-job.ts +1 -1
- package/src/plugins/defaults/memory/substrate/tuning.ts +1 -1
- package/src/plugins/defaults/memory/tools.ts +1 -1
- package/src/plugins/defaults/memory/v1/graph/consolidation.ts +2 -2
- package/src/plugins/defaults/memory/v1/graph/extraction-job.ts +1 -1
- package/src/plugins/defaults/memory/v1/graph/extraction.ts +2 -2
- package/src/plugins/defaults/memory/v1/graph/narrative.ts +2 -2
- package/src/plugins/defaults/memory/v1/graph/pattern-scan.ts +2 -2
- package/src/plugins/defaults/memory/v1/graph/retriever.test.ts +1 -1
- package/src/plugins/defaults/memory/v1/graph/retriever.ts +1 -1
- package/src/plugins/defaults/memory/v1/job-handlers/backfill.ts +1 -1
- package/src/plugins/defaults/memory/v1/jobs/embed-pkb-file.test.ts +1 -1
- package/src/plugins/defaults/memory/v1/jobs/embed-pkb-file.ts +1 -1
- package/src/plugins/defaults/memory/v2/__tests__/activation.test.ts +1 -1
- package/src/plugins/defaults/memory/v2/__tests__/harness-compare.test.ts +1 -1
- package/src/plugins/defaults/memory/v2/__tests__/harness-replay-input.test.ts +1 -1
- package/src/plugins/defaults/memory/v2/__tests__/harness-runner.test.ts +1 -1
- package/src/plugins/defaults/memory/v2/__tests__/injection.test.ts +1 -1
- package/src/plugins/defaults/memory/v2/__tests__/reranker.test.ts +1 -1
- package/src/plugins/defaults/memory/v2/activation.ts +1 -1
- package/src/plugins/defaults/memory/v2/backfill-jobs.ts +1 -1
- package/src/plugins/defaults/memory/v2/harness/compare.ts +1 -1
- package/src/plugins/defaults/memory/v2/harness/replay-input.ts +1 -1
- package/src/plugins/defaults/memory/v2/harness/retriever.ts +1 -1
- package/src/plugins/defaults/memory/v2/injection.ts +1 -1
- package/src/plugins/defaults/memory/v2/migration.ts +1 -1
- package/src/plugins/defaults/memory/v2/rerank-local.ts +2 -5
- package/src/plugins/defaults/memory/v2/reranker.ts +1 -1
- package/src/plugins/defaults/memory/v2/router.ts +1 -1
- package/src/plugins/defaults/memory/v3/__tests__/dense.test.ts +1 -1
- package/src/plugins/defaults/memory/v3/__tests__/maintain-job.test.ts +1 -1
- package/src/plugins/defaults/memory/v3/__tests__/section-dense-store.test.ts +1 -1
- package/src/plugins/defaults/memory/v3/candidate-match.ts +1 -1
- package/src/plugins/defaults/memory/v3/dense.ts +1 -1
- package/src/plugins/defaults/memory/v3/maintain-job.ts +1 -1
- package/src/plugins/defaults/memory/v3/section-dense-store.ts +1 -1
- package/src/plugins/defaults/memory/v3-eval/eval-packets.ts +1 -1
- package/src/plugins/defaults/title-generate/hooks/stop.ts +1 -1
- package/src/plugins/external-plugin-loader.ts +1 -1
- package/src/plugins/types.ts +1 -7
- package/src/prompts/sections.ts +0 -1
- package/src/prompts/system-prompt.ts +0 -3
- package/src/providers/__tests__/cadet-mismatch-routing.test.ts +2 -4
- package/src/providers/__tests__/dispatch-connection-routing.test.ts +3 -5
- package/src/providers/__tests__/preflight-resolved-config.test.ts +2 -4
- package/src/providers/__tests__/satellite-connection-routing.test.ts +1 -1
- package/src/providers/anthropic/client.ts +1 -1
- package/src/providers/call-site-routing.ts +3 -3
- package/src/providers/connection-resolution.ts +0 -3
- package/src/providers/forced-tool-label.ts +2 -1
- package/src/providers/gemini/client.ts +1 -1
- package/src/providers/inference/__tests__/base-url-route-validation.test.ts +2 -2
- package/src/providers/inference/backfill.ts +1 -1
- package/src/providers/inference/chatgpt-subscription-auth.ts +1 -1
- package/src/providers/inference/chatgpt-subscription-credentials.ts +0 -3
- package/src/providers/inference/connections.ts +0 -2
- package/src/providers/inference/profile-probe.ts +1 -1
- package/src/providers/openai/__tests__/tool-choice-mapping.test.ts +2 -1
- package/src/providers/openai/client.ts +0 -22
- package/src/providers/provider-send-message.ts +2 -2
- package/src/providers/ratelimit.ts +1 -1
- package/src/providers/retry.ts +1 -1
- package/src/providers/types.ts +0 -1
- package/src/runtime/__tests__/agent-wake.test.ts +1 -1
- package/src/runtime/__tests__/interactive-ui.test.ts +3 -5
- package/src/runtime/__tests__/local-principal-trust.test.ts +1 -1
- package/src/runtime/__tests__/question-request-guardian-bridge.test.ts +1 -1
- package/src/runtime/access-request-helper.ts +2 -4
- package/src/runtime/actor-trust-resolver.ts +3 -3
- package/src/runtime/agent-wake.ts +3 -4
- package/src/runtime/anchored-guardian.ts +1 -1
- package/src/runtime/approval-message-composer.ts +0 -6
- package/src/runtime/assistant-event-hub.ts +3 -7
- package/src/runtime/assistant-event-publish-options.ts +2 -1
- package/src/runtime/assistant-event-targeting.ts +2 -1
- package/src/runtime/auth/route-policy.ts +2 -1
- package/src/runtime/auth/same-actor.ts +1 -1
- package/src/runtime/btw-sidechain.ts +1 -1
- package/src/runtime/capabilities.test.ts +2 -1
- package/src/runtime/capabilities.ts +1 -1
- package/src/runtime/channel-approval-types.ts +0 -9
- package/src/runtime/channel-approvals.ts +1 -1
- package/src/runtime/channel-invite-transport.ts +2 -5
- package/src/runtime/channel-invite-transports/discord.ts +2 -1
- package/src/runtime/channel-invite-transports/slack.ts +2 -1
- package/src/runtime/channel-invite-transports/telegram.ts +1 -1
- package/src/runtime/channel-invite-transports/voice.ts +2 -1
- package/src/runtime/channel-invite-transports/whatsapp.ts +2 -1
- package/src/runtime/channel-invite-types.ts +1 -2
- package/src/runtime/channel-readiness-service.ts +1 -1
- package/src/runtime/channel-readiness-types.ts +1 -3
- package/src/runtime/channel-reply-delivery.ts +3 -5
- package/src/runtime/channel-reply-session.ts +2 -4
- package/src/runtime/channel-retry-sweep.ts +6 -10
- package/src/runtime/channel-send.ts +3 -1
- package/src/runtime/channel-verification-service.ts +0 -1
- package/src/runtime/confirmation-request-guardian-bridge.ts +2 -1
- package/src/runtime/effective-capabilities.ts +2 -1
- package/src/runtime/gateway-client.ts +2 -7
- package/src/runtime/guardian-action-message-composer.ts +0 -5
- package/src/runtime/guardian-cadet-migration.ts +2 -1
- package/src/runtime/guardian-reply-router.ts +1 -1
- package/src/runtime/http-server.ts +3 -6
- package/src/runtime/http-types.ts +5 -10
- package/src/runtime/interactive-ui.ts +0 -6
- package/src/runtime/introduction-policy.test.ts +4 -3
- package/src/runtime/introduction-policy.ts +0 -6
- package/src/runtime/invite-service.ts +2 -1
- package/src/runtime/local-principal-trust.ts +2 -1
- package/src/runtime/member-verdict-cache.ts +1 -1
- package/src/runtime/pending-interactions.ts +0 -2
- package/src/runtime/question-request-guardian-bridge.ts +2 -1
- package/src/runtime/routes/__tests__/avatar-state-routes.test.ts +2 -1
- package/src/runtime/routes/approval-strategies/guardian-text-engine-strategy.ts +3 -2
- package/src/runtime/routes/avatar-routes.ts +2 -2
- package/src/runtime/routes/browser-routes.ts +0 -1
- package/src/runtime/routes/call-routes.ts +1 -1
- package/src/runtime/routes/channel-availability-routes.ts +1 -1
- package/src/runtime/routes/channel-delivery-routes.ts +0 -6
- package/src/runtime/routes/channel-readiness-routes.ts +2 -1
- package/src/runtime/routes/channel-route-definitions.ts +2 -4
- package/src/runtime/routes/channel-route-shared.ts +3 -2
- package/src/runtime/routes/channel-send-routes.ts +1 -1
- package/src/runtime/routes/channel-verification-routes.ts +1 -1
- package/src/runtime/routes/client-routes.ts +3 -5
- package/src/runtime/routes/contact-routes.ts +1 -1
- package/src/runtime/routes/conversation-list-routes.ts +1 -1
- package/src/runtime/routes/conversation-management-routes.ts +2 -2
- package/src/runtime/routes/conversation-query-routes.ts +1 -1
- package/src/runtime/routes/conversation-routes.ts +6 -6
- package/src/runtime/routes/events-routes.ts +2 -1
- package/src/runtime/routes/guardian-action-routes.ts +2 -4
- package/src/runtime/routes/guardian-approval-interception.ts +4 -6
- package/src/runtime/routes/guardian-approval-prompt.ts +6 -7
- package/src/runtime/routes/guardian-approval-reply-helpers.ts +3 -3
- package/src/runtime/routes/guardian-expiry-sweep.ts +2 -1
- package/src/runtime/routes/inbound-message-handler.ts +3 -6
- package/src/runtime/routes/inbound-stages/acl-enforcement.ts +2 -2
- package/src/runtime/routes/inbound-stages/admission-policy.ts +2 -2
- package/src/runtime/routes/inbound-stages/backfill-sender-provenance.ts +2 -1
- package/src/runtime/routes/inbound-stages/background-dispatch.test.ts +2 -1
- package/src/runtime/routes/inbound-stages/background-dispatch.ts +8 -8
- package/src/runtime/routes/inbound-stages/bootstrap-intercept.test.ts +2 -1
- package/src/runtime/routes/inbound-stages/bootstrap-intercept.ts +4 -5
- package/src/runtime/routes/inbound-stages/edit-intercept.ts +2 -1
- package/src/runtime/routes/inbound-stages/guardian-activation-intercept.ts +3 -2
- package/src/runtime/routes/inbound-stages/guardian-reply-intercept.ts +2 -1
- package/src/runtime/routes/inbound-stages/inbound-content-prep.ts +2 -1
- package/src/runtime/routes/inbound-stages/reaction-intercept.ts +2 -1
- package/src/runtime/routes/inbound-stages/secret-ingress-check.ts +2 -1
- package/src/runtime/routes/inference-callsites-routes.ts +2 -4
- package/src/runtime/routes/recording-routes.ts +2 -4
- package/src/runtime/routes/secret-routes.ts +1 -1
- package/src/runtime/routes/settings-routes.ts +1 -1
- package/src/runtime/routes/ui-snapshot-routes.ts +2 -4
- package/src/runtime/routes/watch-routes.ts +1 -1
- package/src/runtime/sync/sync-publisher.ts +1 -1
- package/src/runtime/tool-grant-request-helper.ts +1 -1
- package/src/runtime/trust-class.ts +0 -2
- package/src/runtime/trust-context-resolver.ts +2 -1
- package/src/runtime/trust-verdict-consumer.ts +1 -1
- package/src/runtime/verification-outbound-actions.ts +1 -1
- package/src/schedule/run-script.ts +4 -5
- package/src/schedule/scheduler.ts +2 -4
- package/src/schedule/worker-mcp.ts +0 -2
- package/src/security/ces-rpc-credential-backend.ts +1 -1
- package/src/security/ces-rpc-record-backend.ts +1 -1
- package/src/security/plugin-secret-patterns.ts +1 -2
- package/src/security/secret-ingress.ts +2 -4
- package/src/security/secret-scanner.ts +3 -4
- package/src/security/secure-keys.ts +2 -12
- package/src/skills/catalog-files.ts +0 -1
- package/src/skills/clawhub-files.ts +1 -1
- package/src/skills/inline-command-runner.ts +3 -4
- package/src/skills/skillssh-files.ts +1 -1
- package/src/skills/skillssh-registry.ts +0 -3
- package/src/subagent/consult-context.ts +2 -1
- package/src/subagent/types.ts +1 -1
- package/src/tools/__tests__/followup-call-acp-tool-input-schemas.test.ts +3 -3
- package/src/tools/acp/spawn.test.ts +3 -2
- package/src/tools/acp/spawn.ts +3 -2
- package/src/tools/acp/steer.ts +2 -1
- package/src/tools/ask-question/ask-question-tool.ts +1 -1
- package/src/tools/browser/__tests__/browser-mode.test.ts +1 -1
- package/src/tools/browser/__tests__/browser-status.test.ts +2 -2
- package/src/tools/browser/browser-execution.ts +4 -3
- package/src/tools/browser/browser-mode.ts +0 -1
- package/src/tools/browser/browser-status-constants.ts +0 -7
- package/src/tools/browser/jit-auth.ts +2 -4
- package/src/tools/channel/react-to-message.ts +2 -2
- package/src/tools/client-os.ts +1 -1
- package/src/tools/computer-use/skill-proxy-bridge.ts +1 -1
- package/src/tools/conversation-groups/group_create.ts +1 -1
- package/src/tools/conversation-groups/move_to_group.ts +1 -1
- package/src/tools/document/document-comment-tool.ts +1 -1
- package/src/tools/document/document-tool.ts +1 -1
- package/src/tools/executor.ts +0 -1
- package/src/tools/filesystem/edit.ts +2 -2
- package/src/tools/filesystem/list.ts +1 -1
- package/src/tools/filesystem/read.ts +1 -1
- package/src/tools/filesystem/search.ts +1 -1
- package/src/tools/filesystem/write.ts +2 -2
- package/src/tools/followups/followup_create.ts +2 -1
- package/src/tools/followups/followup_resolve.ts +2 -1
- package/src/tools/host-filesystem/edit.ts +1 -1
- package/src/tools/host-filesystem/read.ts +1 -1
- package/src/tools/host-filesystem/transfer.ts +1 -1
- package/src/tools/host-filesystem/write.ts +1 -1
- package/src/tools/host-terminal/host-shell.ts +4 -4
- package/src/tools/mcp/mcp-tool-factory.ts +1 -1
- package/src/tools/network/url-safety.ts +0 -1
- package/src/tools/network/web-fetch.ts +1 -1
- package/src/tools/network/web-search.ts +1 -1
- package/src/tools/permission-checker.ts +1 -1
- package/src/tools/schedule/create.ts +2 -1
- package/src/tools/schedule/delete.ts +1 -1
- package/src/tools/schedule/update.ts +2 -1
- package/src/tools/schema-transforms.ts +1 -1
- package/src/tools/shared/abort.ts +0 -1
- package/src/tools/skills/delete-cloud.ts +1 -1
- package/src/tools/skills/execute.ts +1 -1
- package/src/tools/skills/find-similar-skills.ts +1 -1
- package/src/tools/skills/load.ts +1 -1
- package/src/tools/skills/sandbox-runner.ts +3 -2
- package/src/tools/skills/scaffold-cloud.ts +1 -1
- package/src/tools/skills/skill-tool-factory.ts +1 -1
- package/src/tools/subagent/message.ts +1 -1
- package/src/tools/subagent/notify-parent.ts +2 -2
- package/src/tools/subagent/spawn.ts +2 -1
- package/src/tools/system/request-permission.ts +1 -1
- package/src/tools/terminal/__tests__/safe-env.test.ts +29 -0
- package/src/tools/terminal/safe-env.ts +27 -9
- package/src/tools/terminal/sanitized-bash.ts +3 -2
- package/src/tools/terminal/shell.ts +3 -3
- package/src/tools/tool-approval-handler.ts +2 -1
- package/src/tools/types.ts +1 -1
- package/src/tools/ui-surface/definitions.ts +2 -2
- package/src/tools/watch/watch-retro-report.ts +1 -1
- package/src/tools/workflows/manage-workflows.ts +2 -1
- package/src/tools/workflows/run-workflow.ts +2 -1
- package/src/tts/provider-catalog.ts +0 -7
- package/src/tts/tts-config-resolver.ts +1 -1
- package/src/usage/types.ts +0 -6
- package/src/util/canonicalize-identity.ts +2 -1
- package/src/util/host-process.ts +0 -7
- package/src/util/log-redact.ts +2 -1
- package/src/util/logger.ts +0 -12
- package/src/util/oom-priority.ts +0 -4
- package/src/util/pricing.ts +1 -1
- package/src/watch/watch-session-manager.ts +0 -2
- package/src/workflows/capabilities.test.ts +1 -1
- package/src/workflows/capabilities.ts +1 -1
- package/src/workflows/leaf-runner.ts +2 -1
- package/src/__tests__/gateway-only-guard.test.ts +0 -218
- package/src/__tests__/plugin-import-boundary-guard.test.ts +0 -632
- package/src/config/types.ts +0 -4
- package/src/persistence/schema.ts +0 -1
- package/src/plugins/defaults/memory/__tests__/memory-tier-boundary-guard.test.ts +0 -1161
- package/src/plugins/defaults/memory/skill-md-mtime-poll.ts +0 -9
- package/src/runtime/no-response.ts +0 -14
- package/src/runtime/routes/channel-inbound-routes.ts +0 -10
- package/src/security/secret-patterns.ts +0 -11
- package/src/tools/calls/call-end.ts +0 -59
- package/src/tools/calls/call-start.ts +0 -102
- package/src/tools/calls/call-status.ts +0 -75
package/Dockerfile
CHANGED
|
@@ -26,6 +26,7 @@ COPY --parents clients/*/package.json ./
|
|
|
26
26
|
COPY cli/package.json ./cli/
|
|
27
27
|
COPY gateway/package.json ./gateway/
|
|
28
28
|
COPY credential-executor/package.json ./credential-executor/
|
|
29
|
+
COPY qa/package.json ./qa/
|
|
29
30
|
COPY assistant/package.json ./assistant/
|
|
30
31
|
COPY assistant/src/api/package.json ./assistant/src/api/
|
|
31
32
|
COPY --parents packages/*/package.json ./
|
package/eslint.config.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { noReExports } from "@mycadet/shared/eslint/no-re-exports";
|
|
1
2
|
import { defineConfig, globalIgnores } from "eslint/config";
|
|
2
3
|
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
3
4
|
import tseslint from "typescript-eslint";
|
|
@@ -129,6 +130,13 @@ const eslintConfig = defineConfig([
|
|
|
129
130
|
},
|
|
130
131
|
rules: { "cli/no-daemon-internals": "error" },
|
|
131
132
|
},
|
|
133
|
+
{
|
|
134
|
+
// Re-export shims are outlawed: consumers import from the defining
|
|
135
|
+
// module, and only index files aggregate a public surface. Warning
|
|
136
|
+
// level with a pinned count — each PR chips away at the remainder.
|
|
137
|
+
plugins: { "@mycadet": { rules: { "no-re-exports": noReExports } } },
|
|
138
|
+
rules: { "@mycadet/no-re-exports": "error" },
|
|
139
|
+
},
|
|
132
140
|
]);
|
|
133
141
|
|
|
134
142
|
export default eslintConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mycadet/assistant",
|
|
3
|
-
"version": "0.13.0-dev.
|
|
3
|
+
"version": "0.13.0-dev.202611012320.cea2f8a",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/vargasjr-dev/mycadet-temp.git"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"probe:skill-retrieval": "bun run scripts/probe-skill-retrieval.ts",
|
|
25
25
|
"format": "prettier --write .",
|
|
26
26
|
"format:check": "prettier --check .",
|
|
27
|
-
"lint": "bun run lint:skills && bun run lint:openapi && eslint --max-warnings
|
|
27
|
+
"lint": "bun run lint:skills && bun run lint:openapi && eslint --max-warnings 2678",
|
|
28
28
|
"lint:unused": "knip --include files,dependencies,unlisted",
|
|
29
29
|
"lint:circular": "bun run scripts/check-circular-deps.ts",
|
|
30
30
|
"lint:unused:production": "knip --production --include exports",
|
|
@@ -4,7 +4,7 @@ import { beforeEach, describe, expect, test } from "bun:test";
|
|
|
4
4
|
import { addMessage, getMessages } from "../persistence/conversation-crud.js";
|
|
5
5
|
import { getDb } from "../persistence/db-connection.js";
|
|
6
6
|
import { initializeDb } from "../persistence/db-init.js";
|
|
7
|
-
import { conversations } from "../persistence/schema.js";
|
|
7
|
+
import { conversations } from "../persistence/schema/index.js";
|
|
8
8
|
|
|
9
9
|
await initializeDb();
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ import { afterEach, beforeEach, describe, expect, test } from "bun:test";
|
|
|
14
14
|
import type { PostCompactContext } from "@mycadet/plugin-api";
|
|
15
15
|
|
|
16
16
|
import { AgentLoop } from "../agent/loop.js";
|
|
17
|
-
import
|
|
17
|
+
import { ContextWindowConfig } from "../config/schemas/inference.js";
|
|
18
18
|
import { stripAgedSightFrames } from "../daemon/conversation-sight-frames.js";
|
|
19
19
|
import type { TrustContext } from "../daemon/trust-context-types.js";
|
|
20
20
|
import { HOOKS } from "../plugin-api/constants.js";
|
|
@@ -14,7 +14,7 @@ import type { PostCompactContext } from "@mycadet/plugin-api";
|
|
|
14
14
|
|
|
15
15
|
import type { AgentEvent } from "../agent/loop.js";
|
|
16
16
|
import { AgentLoop } from "../agent/loop.js";
|
|
17
|
-
import
|
|
17
|
+
import { ContextWindowConfig } from "../config/schemas/inference.js";
|
|
18
18
|
import type { TrustContext } from "../daemon/trust-context-types.js";
|
|
19
19
|
import { HOOKS } from "../plugin-api/constants.js";
|
|
20
20
|
import {
|
|
@@ -31,8 +31,8 @@ import type {
|
|
|
31
31
|
Provider,
|
|
32
32
|
ProviderResponse,
|
|
33
33
|
SendMessageOptions,
|
|
34
|
-
ToolDefinition,
|
|
35
34
|
} from "../providers/types.js";
|
|
35
|
+
import { ToolDefinition } from "../tools/tool-types.js";
|
|
36
36
|
|
|
37
37
|
// Identity post-compact hook: keeps the history the loop handed in, standing
|
|
38
38
|
// in for the daemon-level re-injector these unit tests do not run.
|
|
@@ -15,7 +15,7 @@ import type { PostCompactContext } from "@mycadet/plugin-api";
|
|
|
15
15
|
|
|
16
16
|
import type { AgentEvent } from "../agent/loop.js";
|
|
17
17
|
import { AgentLoop } from "../agent/loop.js";
|
|
18
|
-
import
|
|
18
|
+
import { ContextWindowConfig } from "../config/schemas/inference.js";
|
|
19
19
|
import type { TrustContext } from "../daemon/trust-context-types.js";
|
|
20
20
|
import { HOOKS } from "../plugin-api/constants.js";
|
|
21
21
|
import {
|
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
CheckpointInfo,
|
|
24
24
|
} from "../agent/loop.js";
|
|
25
25
|
import { AgentLoop } from "../agent/loop.js";
|
|
26
|
-
import
|
|
26
|
+
import { ContextWindowConfig } from "../config/schemas/inference.js";
|
|
27
27
|
import type { TrustContext } from "../daemon/trust-context-types.js";
|
|
28
28
|
import { HOOKS } from "../plugin-api/constants.js";
|
|
29
29
|
import {
|
|
@@ -41,8 +41,8 @@ import type {
|
|
|
41
41
|
Provider,
|
|
42
42
|
ProviderResponse,
|
|
43
43
|
SendMessageOptions,
|
|
44
|
-
ToolDefinition,
|
|
45
44
|
} from "../providers/types.js";
|
|
45
|
+
import { ToolDefinition } from "../tools/tool-types.js";
|
|
46
46
|
|
|
47
47
|
// The agent loop runs the default post-compaction re-injection through the
|
|
48
48
|
// `post-compact` hook chain when it compacts in place. Register a test hook on
|
|
@@ -15,8 +15,8 @@ import type {
|
|
|
15
15
|
Provider,
|
|
16
16
|
ProviderResponse,
|
|
17
17
|
SendMessageOptions,
|
|
18
|
-
ToolDefinition,
|
|
19
18
|
} from "../providers/types.js";
|
|
19
|
+
import { ToolDefinition } from "../tools/tool-types.js";
|
|
20
20
|
|
|
21
21
|
const pointerText = wrapMemoryPointerBlock(
|
|
22
22
|
"Already in context above, relevant again this turn:\nmemory/concepts/plans.md § Alpha",
|
|
@@ -8,18 +8,16 @@ import { beforeEach, describe, expect, test } from "bun:test";
|
|
|
8
8
|
|
|
9
9
|
import type { AgentEvent, PreparedModelCall } from "../agent/loop.js";
|
|
10
10
|
import { AgentLoop } from "../agent/loop.js";
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
PreModelCallContext,
|
|
14
|
-
} from "../plugin-api/types.js";
|
|
11
|
+
import { PostModelCallContext } from "../hooks/types.js";
|
|
12
|
+
import { PreModelCallContext } from "../hooks/types.js";
|
|
15
13
|
import { resetPluginRegistryAndRegisterDefaults } from "../plugins/defaults/index.js";
|
|
16
14
|
import { registerPlugin } from "../plugins/registry.js";
|
|
17
15
|
import type {
|
|
18
16
|
ContentBlock,
|
|
19
17
|
Message,
|
|
20
18
|
ProviderResponse,
|
|
21
|
-
ToolDefinition,
|
|
22
19
|
} from "../providers/types.js";
|
|
20
|
+
import { ToolDefinition } from "../tools/tool-types.js";
|
|
23
21
|
import {
|
|
24
22
|
createMockProvider,
|
|
25
23
|
textResponse,
|
|
@@ -27,8 +27,8 @@ import type {
|
|
|
27
27
|
Provider,
|
|
28
28
|
ProviderResponse,
|
|
29
29
|
SendMessageOptions,
|
|
30
|
-
ToolDefinition,
|
|
31
30
|
} from "../providers/types.js";
|
|
31
|
+
import { ToolDefinition } from "../tools/tool-types.js";
|
|
32
32
|
import { setConfig } from "./helpers/set-config.js";
|
|
33
33
|
|
|
34
34
|
const userMessage: Message = {
|
|
@@ -17,7 +17,7 @@ import type { PostCompactContext } from "@mycadet/plugin-api";
|
|
|
17
17
|
|
|
18
18
|
import type { AgentEvent } from "../agent/loop.js";
|
|
19
19
|
import { AgentLoop } from "../agent/loop.js";
|
|
20
|
-
import
|
|
20
|
+
import { ContextWindowConfig } from "../config/schemas/inference.js";
|
|
21
21
|
import type { TrustContext } from "../daemon/trust-context-types.js";
|
|
22
22
|
import { HOOKS } from "../plugin-api/constants.js";
|
|
23
23
|
import {
|
|
@@ -24,8 +24,8 @@ import type {
|
|
|
24
24
|
Provider,
|
|
25
25
|
ProviderResponse,
|
|
26
26
|
SendMessageOptions,
|
|
27
|
-
ToolDefinition,
|
|
28
27
|
} from "../providers/types.js";
|
|
28
|
+
import { ToolDefinition } from "../tools/tool-types.js";
|
|
29
29
|
import { ProviderError } from "../util/errors.js";
|
|
30
30
|
|
|
31
31
|
const tools: ToolDefinition[] = [
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { beforeEach, describe, expect, test } from "bun:test";
|
|
2
2
|
|
|
3
|
+
import { REFUSAL_FALLBACK_TEXT } from "@mycadet/plugin-api";
|
|
4
|
+
|
|
3
5
|
import type {
|
|
4
6
|
AgentEvent,
|
|
5
7
|
CheckpointDecision,
|
|
6
8
|
CheckpointInfo,
|
|
7
9
|
} from "../agent/loop.js";
|
|
8
10
|
import { AgentLoop } from "../agent/loop.js";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
+
import { PostToolUseContext } from "../hooks/types.js";
|
|
12
|
+
import { StopContext } from "../hooks/types.js";
|
|
11
13
|
import { resetPluginRegistryAndRegisterDefaults } from "../plugins/defaults/index.js";
|
|
12
14
|
import { registerPlugin } from "../plugins/registry.js";
|
|
13
15
|
import type {
|
|
@@ -15,13 +17,13 @@ import type {
|
|
|
15
17
|
Message,
|
|
16
18
|
Provider,
|
|
17
19
|
ProviderResponse,
|
|
18
|
-
ToolDefinition,
|
|
19
20
|
} from "../providers/types.js";
|
|
20
21
|
import { ContextOverflowError } from "../providers/types.js";
|
|
21
22
|
import {
|
|
22
23
|
CANCELLED_TOOL_RESULT,
|
|
23
24
|
CANCELLED_UNSETTLED_TOOL_RESULT,
|
|
24
25
|
} from "../tools/execution-timeout.js";
|
|
26
|
+
import { ToolDefinition } from "../tools/tool-types.js";
|
|
25
27
|
import {
|
|
26
28
|
createMockProvider,
|
|
27
29
|
textResponse,
|
|
@@ -2,11 +2,8 @@ import { beforeEach, describe, expect, mock, test } from "bun:test";
|
|
|
2
2
|
|
|
3
3
|
import type { Anthropic } from "@anthropic-ai/sdk";
|
|
4
4
|
|
|
5
|
-
import type {
|
|
6
|
-
|
|
7
|
-
Message,
|
|
8
|
-
ToolDefinition,
|
|
9
|
-
} from "../providers/types.js";
|
|
5
|
+
import type { ContentBlock, Message } from "../providers/types.js";
|
|
6
|
+
import { ToolDefinition } from "../tools/tool-types.js";
|
|
10
7
|
|
|
11
8
|
// ---------------------------------------------------------------------------
|
|
12
9
|
// Mock Anthropic SDK — must be before importing the provider
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
|
|
3
|
-
import type {
|
|
4
|
-
ApprovalMessageContext,
|
|
5
|
-
ApprovalMessageScenario,
|
|
6
|
-
} from "../runtime/approval-message-composer.js";
|
|
7
3
|
import {
|
|
8
4
|
composeApprovalMessage,
|
|
9
5
|
getFallbackMessage,
|
|
10
6
|
} from "../runtime/approval-message-composer.js";
|
|
7
|
+
import { ApprovalMessageContext } from "../runtime/message-composer-types.js";
|
|
8
|
+
import { ApprovalMessageScenario } from "../runtime/message-composer-types.js";
|
|
11
9
|
|
|
12
10
|
// ---------------------------------------------------------------------------
|
|
13
11
|
// Every scenario must produce a non-empty string
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
|
|
9
9
|
import { afterEach, beforeEach, describe, expect, test } from "bun:test";
|
|
10
10
|
|
|
11
|
+
import { GuardianRequestWire } from "@mycadet/gateway-client";
|
|
12
|
+
|
|
11
13
|
import type {
|
|
12
14
|
ActorContext,
|
|
13
15
|
ResolverContext,
|
|
14
16
|
ResolverDecision,
|
|
15
17
|
} from "../approvals/guardian-request-resolvers.js";
|
|
16
18
|
import { getResolver } from "../approvals/guardian-request-resolvers.js";
|
|
17
|
-
import type { GuardianRequestWire } from "../channels/gateway-guardian-requests.js";
|
|
18
19
|
import type { QuestionPromptResult } from "../permissions/question-prompter.js";
|
|
19
20
|
import * as pendingInteractions from "../runtime/pending-interactions.js";
|
|
20
21
|
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
|
|
3
|
+
import { inferMimeType } from "@mycadet/service-contracts/attachment-naming";
|
|
4
|
+
import { resolveAttachmentFilename } from "@mycadet/service-contracts/attachment-naming";
|
|
5
|
+
|
|
3
6
|
import {
|
|
4
7
|
type AssistantAttachmentDraft,
|
|
5
8
|
classifyKind,
|
|
@@ -10,9 +13,7 @@ import {
|
|
|
10
13
|
estimateBase64Bytes,
|
|
11
14
|
extractCadetLinks,
|
|
12
15
|
incompleteCadetLinkSuffixLength,
|
|
13
|
-
inferMimeType,
|
|
14
16
|
MAX_ASSISTANT_ATTACHMENT_BYTES,
|
|
15
|
-
resolveAttachmentFilename,
|
|
16
17
|
stripCadetLinks,
|
|
17
18
|
validateDrafts,
|
|
18
19
|
} from "../daemon/assistant-attachments.js";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { beforeEach, describe, expect, test } from "bun:test";
|
|
9
9
|
|
|
10
10
|
import type { AssistantEventEnvelope } from "../api/index.js";
|
|
11
|
-
import type {
|
|
11
|
+
import type { InterfaceId } from "../channels/types.js";
|
|
12
12
|
import { AssistantEventHub } from "../runtime/assistant-event-hub.js";
|
|
13
13
|
import type { AssistantEventPublishOptions } from "../runtime/assistant-event-publish-options.js";
|
|
14
14
|
import { matchesTargeting } from "../runtime/assistant-event-targeting.js";
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
getReplayWindow,
|
|
18
18
|
stampAndBuffer,
|
|
19
19
|
} from "../runtime/assistant-stream-state.js";
|
|
20
|
+
import { HostProxyCapability } from "../types/host-capabilities.js";
|
|
20
21
|
|
|
21
22
|
const CONV = "conv-targeting";
|
|
22
23
|
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
createConversation,
|
|
30
30
|
deleteMessageById,
|
|
31
31
|
} from "../persistence/conversation-crud.js";
|
|
32
|
-
import { getConversationDirPath } from "../persistence/conversation-
|
|
32
|
+
import { getConversationDirPath } from "../persistence/conversation-directories.js";
|
|
33
33
|
import { getDb } from "../persistence/db-connection.js";
|
|
34
34
|
import { initializeDb } from "../persistence/db-init.js";
|
|
35
35
|
import { rawGet, rawRun } from "../persistence/raw-query.js";
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
import { describe, expect, test } from "bun:test";
|
|
16
16
|
|
|
17
|
-
import { BROWSER_OPERATION_META } from "../browser/
|
|
17
|
+
import { BROWSER_OPERATION_META } from "../browser/operation-meta.js";
|
|
18
18
|
import { BROWSER_OPERATIONS } from "../browser/types.js";
|
|
19
19
|
|
|
20
20
|
// ── Helpers ──────────────────────────────────────────────────────────
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
|
|
8
8
|
|
|
9
|
-
import { BROWSER_OPERATION_META } from "../browser/
|
|
9
|
+
import { BROWSER_OPERATION_META } from "../browser/operation-meta.js";
|
|
10
10
|
import { BROWSER_OPERATIONS } from "../browser/types.js";
|
|
11
11
|
import {
|
|
12
12
|
projectSkillTools,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
resolveCallerIdentity,
|
|
96
96
|
startCall,
|
|
97
97
|
} from "../calls/call-domain.js";
|
|
98
|
-
import
|
|
98
|
+
import { AssistantConfig } from "../config/schema.js";
|
|
99
99
|
import { getMessages } from "../persistence/conversation-crud.js";
|
|
100
100
|
import { getDb } from "../persistence/db-connection.js";
|
|
101
101
|
import { initializeDb } from "../persistence/db-init.js";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
|
|
3
|
+
import { TrustClass } from "@mycadet/gateway-client";
|
|
4
|
+
|
|
3
5
|
import {
|
|
4
6
|
CallSetupFlow,
|
|
5
7
|
type CallSetupFlowDeps,
|
|
@@ -21,7 +23,6 @@ import type {
|
|
|
21
23
|
import type { CallSession } from "../calls/types.js";
|
|
22
24
|
import type { ChannelStatus } from "../contacts/types.js";
|
|
23
25
|
import type { TrustContext } from "../daemon/trust-context-types.js";
|
|
24
|
-
import type { TrustClass } from "../runtime/trust-class.js";
|
|
25
26
|
|
|
26
27
|
// ---------------------------------------------------------------------------
|
|
27
28
|
// Fixtures
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
|
|
3
|
+
import { TrustClass } from "@mycadet/gateway-client";
|
|
4
|
+
|
|
3
5
|
import {
|
|
4
6
|
CallSetupFlow,
|
|
5
7
|
type CallSetupFlowDeps,
|
|
@@ -14,7 +16,6 @@ import type {
|
|
|
14
16
|
} from "../calls/call-setup-router.js";
|
|
15
17
|
import type { CallSession } from "../calls/types.js";
|
|
16
18
|
import type { TrustContext } from "../daemon/trust-context-types.js";
|
|
17
|
-
import type { TrustClass } from "../runtime/trust-class.js";
|
|
18
19
|
|
|
19
20
|
// ---------------------------------------------------------------------------
|
|
20
21
|
// Fixtures
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
|
|
3
|
+
import { TrustClass } from "@mycadet/gateway-client";
|
|
4
|
+
|
|
3
5
|
import {
|
|
4
6
|
CallSetupFlow,
|
|
5
7
|
type CallSetupFlowDeps,
|
|
@@ -16,7 +18,6 @@ import type {
|
|
|
16
18
|
} from "../calls/call-setup-router.js";
|
|
17
19
|
import type { MediaStreamOutput } from "../calls/media-stream-output.js";
|
|
18
20
|
import type { TrustContext } from "../daemon/trust-context-types.js";
|
|
19
|
-
import type { TrustClass } from "../runtime/trust-class.js";
|
|
20
21
|
|
|
21
22
|
// ---------------------------------------------------------------------------
|
|
22
23
|
// Fixtures
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { beforeEach, describe, expect, test } from "bun:test";
|
|
19
19
|
|
|
20
20
|
import { CallSiteRoutingProvider } from "../providers/call-site-routing.js";
|
|
21
|
-
import { ConnectionResolutionError } from "../providers/
|
|
21
|
+
import { ConnectionResolutionError } from "../providers/routing-identity.js";
|
|
22
22
|
import type {
|
|
23
23
|
Message,
|
|
24
24
|
Provider,
|
|
@@ -60,7 +60,8 @@ mock.module("../channels/gateway-verification-sessions.js", () => ({
|
|
|
60
60
|
},
|
|
61
61
|
}));
|
|
62
62
|
|
|
63
|
-
const { executeCallStart } =
|
|
63
|
+
const { run: executeCallStart } =
|
|
64
|
+
await import("../config/bundled-skills/phone-calls/tools/call-start.js");
|
|
64
65
|
|
|
65
66
|
function makeContext(): ToolContext {
|
|
66
67
|
return {
|
|
@@ -17,7 +17,8 @@ const isReadyFn = mock((): boolean => true);
|
|
|
17
17
|
// ---------------------------------------------------------------------------
|
|
18
18
|
|
|
19
19
|
// Import after mocking
|
|
20
|
-
import
|
|
20
|
+
import { CesRpcClient as CesClient } from "@mycadet/ces-client/rpc-client";
|
|
21
|
+
|
|
21
22
|
import { CesRpcCredentialBackend } from "../security/ces-rpc-credential-backend.js";
|
|
22
23
|
|
|
23
24
|
// ---------------------------------------------------------------------------
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { describe, expect, mock, test } from "bun:test";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { CesRpcClient as CesClient } from "@mycadet/ces-client/rpc-client";
|
|
4
|
+
|
|
4
5
|
import {
|
|
5
6
|
awaitCesClientWithTimeout,
|
|
6
7
|
DEFAULT_CES_STARTUP_TIMEOUT_MS,
|
|
@@ -74,13 +74,11 @@ import * as gatewayClient from "../runtime/gateway-client.js";
|
|
|
74
74
|
import * as pendingInteractions from "../runtime/pending-interactions.js";
|
|
75
75
|
import { _setTestPollMaxWait } from "../runtime/routes/channel-route-shared.js";
|
|
76
76
|
import { resetDbForTesting } from "./db-test-helpers.js";
|
|
77
|
-
import {
|
|
78
|
-
handleChannelInbound,
|
|
79
|
-
seedContactChannel,
|
|
80
|
-
} from "./helpers/channel-test-adapter.js";
|
|
77
|
+
import { handleChannelInbound } from "./helpers/channel-test-adapter.js";
|
|
81
78
|
import { createGuardianBinding } from "./helpers/create-guardian-binding.js";
|
|
82
79
|
import { resetGatewayAclStore } from "./helpers/gateway-acl-store.js";
|
|
83
80
|
import { bridgeState } from "./helpers/gateway-guardian-requests-store-bridge.js";
|
|
81
|
+
import { seedContactChannel } from "./helpers/seed-contact-channel.js";
|
|
84
82
|
|
|
85
83
|
await initializeDb();
|
|
86
84
|
|
|
@@ -2,7 +2,7 @@ import { afterAll, beforeEach, describe, expect, mock, test } from "bun:test";
|
|
|
2
2
|
|
|
3
3
|
import { eq } from "drizzle-orm";
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import { DiskPressureStatus } from "../api/events/disk-pressure-status-changed.js";
|
|
6
6
|
|
|
7
7
|
const deliverChannelReplyMock = mock(
|
|
8
8
|
async (_callbackUrl: string, _payload: Record<string, unknown>) => {},
|
|
@@ -59,11 +59,11 @@ import { channelInboundEvents, messages } from "../persistence/schema/index.js";
|
|
|
59
59
|
import { sweepFailedEvents } from "../runtime/channel-retry-sweep.js";
|
|
60
60
|
import {
|
|
61
61
|
handleChannelInbound,
|
|
62
|
-
seedContactChannel,
|
|
63
62
|
setAdapterProcessMessage,
|
|
64
63
|
} from "./helpers/channel-test-adapter.js";
|
|
65
64
|
import { createGuardianBinding } from "./helpers/create-guardian-binding.js";
|
|
66
65
|
import { bridgeState } from "./helpers/gateway-guardian-requests-store-bridge.js";
|
|
66
|
+
import { seedContactChannel } from "./helpers/seed-contact-channel.js";
|
|
67
67
|
|
|
68
68
|
await initializeDb();
|
|
69
69
|
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
import { describe, expect, test } from "bun:test";
|
|
11
11
|
|
|
12
12
|
import {
|
|
13
|
-
type ChannelInviteAdapter,
|
|
14
13
|
createInviteAdapterRegistry,
|
|
15
14
|
getInviteAdapterRegistry,
|
|
16
15
|
InviteAdapterRegistry,
|
|
17
16
|
resolveAdapterHandle,
|
|
18
17
|
} from "../runtime/channel-invite-transport.js";
|
|
18
|
+
import type { ChannelInviteAdapter } from "../runtime/channel-invite-types.js";
|
|
19
19
|
|
|
20
20
|
describe("resolveAdapterHandle", () => {
|
|
21
21
|
test("returns sync handle when only resolveChannelHandle is defined", async () => {
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
import { describe, expect, test } from "bun:test";
|
|
10
10
|
|
|
11
|
+
import type { ChannelId } from "@mycadet/service-contracts/channels";
|
|
12
|
+
import { CHANNEL_IDS } from "@mycadet/service-contracts/channels";
|
|
13
|
+
|
|
11
14
|
import {
|
|
12
15
|
type ConversationStrategy,
|
|
13
16
|
getChannelPolicy,
|
|
@@ -15,7 +18,6 @@ import {
|
|
|
15
18
|
getDeliverableChannels,
|
|
16
19
|
isNotificationDeliverable,
|
|
17
20
|
} from "../channels/config.js";
|
|
18
|
-
import { CHANNEL_IDS, type ChannelId } from "../channels/types.js";
|
|
19
21
|
import { getTransportForChannel } from "../messaging/providers/index.js";
|
|
20
22
|
|
|
21
23
|
describe("channel policy registry", () => {
|
|
@@ -47,7 +47,8 @@ mock.module("../runtime/channel-invite-transports/whatsapp.js", () => ({
|
|
|
47
47
|
resolveWhatsAppDisplayNumber: () => "",
|
|
48
48
|
}));
|
|
49
49
|
|
|
50
|
-
import
|
|
50
|
+
import { ChannelId } from "@mycadet/service-contracts/channels";
|
|
51
|
+
|
|
51
52
|
import {
|
|
52
53
|
ChannelReadinessService,
|
|
53
54
|
createReadinessService,
|
|
@@ -12,6 +12,7 @@ import { describe, expect, test } from "bun:test";
|
|
|
12
12
|
|
|
13
13
|
import type { OpenPanelEvent } from "../api/events/open-panel.js";
|
|
14
14
|
import type { AssistantEvent } from "../api/index.js";
|
|
15
|
+
import { SurfaceType } from "../api/surfaces.js";
|
|
15
16
|
import type { Conversation } from "../daemon/conversation.js";
|
|
16
17
|
import {
|
|
17
18
|
createSurfaceMutex,
|
|
@@ -19,7 +20,6 @@ import {
|
|
|
19
20
|
openChannelSetupPanel,
|
|
20
21
|
surfaceProxyResolver,
|
|
21
22
|
} from "../daemon/conversation-surfaces.js";
|
|
22
|
-
import type { SurfaceType } from "../daemon/message-protocol.js";
|
|
23
23
|
import { asConversation } from "./helpers/mock-conversation.js";
|
|
24
24
|
|
|
25
25
|
function makeContext(
|
|
@@ -71,8 +71,8 @@ import {
|
|
|
71
71
|
SCOPE_AWARE_TOOLS,
|
|
72
72
|
} from "../permissions/checker.js";
|
|
73
73
|
import { _clearGlobalCacheForTesting } from "../permissions/gateway-threshold-reader.js";
|
|
74
|
-
import { RiskLevel } from "../permissions/types.js";
|
|
75
74
|
import { registerSkillTools, registerTool } from "../tools/registry.js";
|
|
75
|
+
import { RiskLevel } from "../tools/tool-types.js";
|
|
76
76
|
import type { Tool } from "../tools/types.js";
|
|
77
77
|
import * as platformModule from "../util/layout.js";
|
|
78
78
|
|
|
@@ -17,10 +17,8 @@ import {
|
|
|
17
17
|
getMessageById,
|
|
18
18
|
parseMessageMetadata,
|
|
19
19
|
} from "../persistence/conversation-crud.js";
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
syncMessageToDisk,
|
|
23
|
-
} from "../persistence/conversation-disk-view.js";
|
|
20
|
+
import { getConversationDirPath } from "../persistence/conversation-directories.js";
|
|
21
|
+
import { syncMessageToDisk } from "../persistence/conversation-disk-view.js";
|
|
24
22
|
import { computerUseScreenshotAttachmentIdsFromMetadata } from "../persistence/conversation-types.js";
|
|
25
23
|
import { getDb } from "../persistence/db-connection.js";
|
|
26
24
|
import { initializeDb } from "../persistence/db-init.js";
|
|
@@ -2,7 +2,6 @@ import { readFileSync } from "node:fs";
|
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { afterAll, describe, expect, test } from "bun:test";
|
|
4
4
|
|
|
5
|
-
import { RiskLevel } from "../permissions/types.js";
|
|
6
5
|
import {
|
|
7
6
|
__resetRegistryForTesting,
|
|
8
7
|
getTool,
|
|
@@ -10,6 +9,7 @@ import {
|
|
|
10
9
|
registerSkillTools,
|
|
11
10
|
unregisterSkillTools,
|
|
12
11
|
} from "../tools/registry.js";
|
|
12
|
+
import { RiskLevel } from "../tools/tool-types.js";
|
|
13
13
|
import type { Tool } from "../tools/types.js";
|
|
14
14
|
import {
|
|
15
15
|
COMPUTER_USE_TOOL_COUNT,
|
|
@@ -31,13 +31,11 @@ function ensureTestDir(): void {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
import { getConfig, invalidateConfigCache } from "../config/loader.js";
|
|
34
|
-
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "../config/schema.js";
|
|
34
|
+
import { AssistantConfigSchema } from "../config/schema.js";
|
|
35
|
+
import { AssistantConfig } from "../config/schema.js";
|
|
36
|
+
import { DEFAULT_ELEVENLABS_VOICE_ID } from "../config/schemas/elevenlabs.js";
|
|
38
37
|
import { SttServiceSchema } from "../config/schemas/stt.js";
|
|
39
38
|
import { TtsServiceSchema } from "../config/schemas/tts.js";
|
|
40
|
-
import type { AssistantConfig } from "../config/types.js";
|
|
41
39
|
import { listCatalogProviderIds } from "../tts/provider-catalog.js";
|
|
42
40
|
import { resolveTtsConfig } from "../tts/tts-config-resolver.js";
|
|
43
41
|
import { TTS_PROVIDER_IDS } from "../tts/types.js";
|
|
@@ -2683,8 +2681,8 @@ describe("Call entrypoint gating", () => {
|
|
|
2683
2681
|
// Force config reload
|
|
2684
2682
|
getConfig();
|
|
2685
2683
|
|
|
2686
|
-
const {
|
|
2687
|
-
await import("../
|
|
2684
|
+
const { run: _runCallStartModule } =
|
|
2685
|
+
await import("../config/bundled-skills/phone-calls/tools/call-start.js");
|
|
2688
2686
|
|
|
2689
2687
|
// The tool is registered via side effect. We need to test the gating logic directly.
|
|
2690
2688
|
// Since the module registers itself, we test by loading config and checking behavior.
|
|
@@ -85,7 +85,8 @@ mock.module(
|
|
|
85
85
|
);
|
|
86
86
|
|
|
87
87
|
import { ContextWindowManager } from "../plugins/defaults/compaction/window-manager.js";
|
|
88
|
-
import type { Message, Provider
|
|
88
|
+
import type { Message, Provider } from "../providers/types.js";
|
|
89
|
+
import { ToolDefinition } from "../tools/tool-types.js";
|
|
89
90
|
|
|
90
91
|
function makeProvider(): Provider {
|
|
91
92
|
return {
|