@vellumai/assistant 0.12.4 → 0.12.5-dev.202609251017.e467a6c
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/docs/architecture/memory.md +9 -1
- package/docs/architecture/scheduling.md +13 -5
- package/docs/desktop-browser-cli.md +3 -2
- package/docs/guardian-request-flow.md +1 -1
- package/node_modules/@vellumai/avatar-manifest/src/__tests__/notification-avatar.test.ts +48 -4
- package/node_modules/@vellumai/avatar-manifest/src/notification-avatar.ts +12 -8
- package/node_modules/@vellumai/ces-client/node_modules/@vellumai/service-contracts/src/__tests__/guardian-requests.test.ts +26 -0
- package/node_modules/@vellumai/ces-client/node_modules/@vellumai/service-contracts/src/guardian-requests.ts +77 -3
- package/node_modules/@vellumai/gateway-client/node_modules/@vellumai/service-contracts/src/__tests__/guardian-requests.test.ts +26 -0
- package/node_modules/@vellumai/gateway-client/node_modules/@vellumai/service-contracts/src/guardian-requests.ts +77 -3
- package/node_modules/@vellumai/gateway-client/src/outbound-contract.ts +2 -4
- package/node_modules/@vellumai/service-contracts/src/__tests__/guardian-requests.test.ts +26 -0
- package/node_modules/@vellumai/service-contracts/src/guardian-requests.ts +77 -3
- package/openapi.yaml +152 -3
- package/package.json +1 -1
- package/src/__tests__/agent-loop.test.ts +76 -0
- package/src/__tests__/anthropic-error-formatting.test.ts +9 -0
- package/src/__tests__/background-shell-bash.test.ts +34 -0
- package/src/__tests__/background-shell-host-bash.test.ts +98 -1
- package/src/__tests__/background-tool-registry.test.ts +39 -0
- package/src/__tests__/channel-readiness-discord.test.ts +8 -0
- package/src/__tests__/channel-readiness-slack-remote.test.ts +8 -0
- package/src/__tests__/client-os-metadata-persistence.test.ts +4 -20
- package/src/__tests__/conversation-agent-loop.test.ts +529 -1
- package/src/__tests__/conversation-error.test.ts +18 -0
- package/src/__tests__/conversation-pairing.test.ts +69 -0
- package/src/__tests__/conversation-queue.test.ts +257 -4
- package/src/__tests__/conversation-runtime-assembly.test.ts +27 -0
- package/src/__tests__/emit-signal-routing-intent.test.ts +62 -0
- package/src/__tests__/evict-conversations-for-reload.test.ts +21 -0
- package/src/__tests__/gemini-provider.test.ts +9 -0
- package/src/__tests__/host-cu-proxy.test.ts +79 -0
- package/src/__tests__/host-cu-routes-targeted.test.ts +14 -5
- package/src/__tests__/introduction-card-resolver.test.ts +53 -8
- package/src/__tests__/job-handler-registration-guard.test.ts +1 -0
- package/src/__tests__/non-member-access-request.test.ts +48 -0
- package/src/__tests__/notification-events-source-context-probe.test.ts +48 -1
- package/src/__tests__/notification-platform-adapter.test.ts +97 -0
- package/src/__tests__/notification-vellum-adapter.test.ts +103 -3
- package/src/__tests__/platform-callback-registration.test.ts +46 -1
- package/src/__tests__/plugin-import-boundary-guard.test.ts +3 -0
- package/src/__tests__/scaffold-managed-skill-tool.test.ts +116 -66
- package/src/__tests__/scheduler-disk-pressure.test.ts +1 -0
- package/src/__tests__/scheduler-result-notification.test.ts +521 -7
- package/src/__tests__/scheduler-wake.test.ts +1 -0
- package/src/__tests__/skill-load-inline-command.test.ts +35 -0
- package/src/__tests__/subagent-cron-run-attribution.test.ts +41 -2
- package/src/__tests__/subagent-manager-notify.test.ts +48 -0
- package/src/__tests__/trusted-contact-inline-approval-integration.test.ts +6 -6
- package/src/__tests__/usage-attribution.test.ts +31 -0
- package/src/__tests__/wake-schedule-escalation.test.ts +1 -0
- package/src/agent/loop.ts +23 -0
- package/src/api/ask-question-tool.ts +50 -0
- package/src/api/events/generation-handoff.ts +4 -0
- package/src/api/events/message-complete.ts +4 -0
- package/src/api/events/tool-result.ts +11 -0
- package/src/api/index.ts +11 -0
- package/src/api/requests/guardian-actions.test.ts +45 -0
- package/src/api/requests/guardian-actions.ts +20 -0
- package/src/api/responses/conversation-message.ts +4 -0
- package/src/api/responses/home.ts +27 -0
- package/src/approvals/guardian-decision-primitive.ts +6 -4
- package/src/approvals/guardian-request-resolvers.ts +35 -30
- package/src/avatar/notification-avatar.test.ts +42 -34
- package/src/avatar/notification-avatar.ts +1 -0
- package/src/calls/__tests__/call-controller.test.ts +18 -0
- package/src/calls/__tests__/voice-control-protocol.test.ts +6 -1
- package/src/calls/__tests__/voice-leg-coordinator.test.ts +70 -0
- package/src/calls/__tests__/voice-session-bridge.test.ts +116 -4
- package/src/calls/__tests__/voice-triage-escalate.test.ts +77 -11
- package/src/calls/call-controller.ts +3 -1
- package/src/calls/voice-control-protocol.ts +12 -4
- package/src/calls/voice-escalation-judge.ts +2 -2
- package/src/calls/voice-leg-coordinator.ts +23 -5
- package/src/calls/voice-screen-annotation.ts +44 -0
- package/src/calls/voice-session-bridge.ts +63 -20
- package/src/calls/voice-triage-escalate.ts +82 -27
- package/src/cli/commands/__tests__/conversations-clear.test.ts +156 -0
- package/src/cli/commands/conversations.help.ts +7 -2
- package/src/cli/commands/conversations.ts +36 -30
- package/src/cli/commands/oauth/index.help.ts +8 -2
- package/src/cli/commands/oauth/request.test.ts +32 -0
- package/src/cli/commands/platform/index.help.ts +2 -1
- package/src/cli/commands/platform/index.ts +8 -2
- package/src/cli/lib/__tests__/plugin-catalog-cache.test.ts +60 -0
- package/src/cli/lib/__tests__/plugin-catalog-platform.test.ts +66 -2
- package/src/cli/lib/bundled-marketplace.json +35 -0
- package/src/cli/lib/bundled-plugin-packages.json +21 -0
- package/src/cli/lib/plugin-catalog-cache.ts +17 -2
- package/src/cli/lib/plugin-catalog-platform.ts +48 -9
- package/src/config/__tests__/default-profile-catalog.test.ts +28 -0
- package/src/config/__tests__/platform-identity.test.ts +59 -0
- package/src/config/__tests__/profile-order.test.ts +19 -0
- package/src/config/__tests__/sync-gated-profiles.test.ts +71 -0
- package/src/config/bundled-skills/computer-use/SKILL.md +20 -0
- package/src/config/bundled-skills/computer-use/TOOLS.json +11 -11
- package/src/config/bundled-skills/screen-annotation/SKILL.md +41 -29
- package/src/config/bundled-skills/screen-annotation/TOOLS.json +5 -5
- package/src/config/call-site-defaults.ts +6 -0
- package/src/config/default-profile-catalog.ts +30 -1
- package/src/config/default-profile-names.ts +36 -2
- package/src/config/feature-flag-registry.json +9 -1
- package/src/config/platform-identity.ts +22 -5
- package/src/config/profile-order.ts +7 -1
- package/src/config/schemas/call-site-catalog.ts +7 -0
- package/src/config/schemas/llm.ts +21 -5
- package/src/config/sync-gated-profiles.ts +96 -44
- package/src/daemon/__tests__/abort-null-controller.test.ts +135 -1
- package/src/daemon/__tests__/auto-profile-router.test.ts +380 -0
- package/src/daemon/__tests__/turn-tail-assistant-reply-notify.test.ts +16 -0
- package/src/daemon/activity-trail.test.ts +206 -0
- package/src/daemon/activity-trail.ts +190 -0
- package/src/daemon/auto-profile-router.ts +431 -0
- package/src/daemon/computer-use-observation.test.ts +81 -0
- package/src/daemon/computer-use-observation.ts +23 -0
- package/src/daemon/conversation-agent-loop-handlers.ts +11 -0
- package/src/daemon/conversation-agent-loop.ts +157 -32
- package/src/daemon/conversation-error.ts +19 -0
- package/src/daemon/conversation-lifecycle.ts +70 -7
- package/src/daemon/conversation-media-retry.ts +1 -2
- package/src/daemon/conversation-messaging.ts +31 -2
- package/src/daemon/conversation-process.ts +107 -16
- package/src/daemon/conversation-queue-manager.ts +7 -0
- package/src/daemon/conversation-runtime-assembly.ts +1 -0
- package/src/daemon/conversation-turn-finalize.ts +14 -0
- package/src/daemon/conversation.ts +25 -6
- package/src/daemon/event-loop-watchdog.test.ts +201 -2
- package/src/daemon/event-loop-watchdog.ts +182 -6
- package/src/daemon/host-cu-proxy.ts +34 -3
- package/src/daemon/pkb-reminder-builder.test.ts +10 -3
- package/src/daemon/pkb-reminder-builder.ts +1 -1
- package/src/daemon/wake-conversation-ops.ts +4 -2
- package/src/desktop/desktop-computer-use.test.ts +14 -4
- package/src/home/feed-types.ts +2 -0
- package/src/inbound/platform-callback-registration.ts +19 -6
- package/src/live-voice/__tests__/live-voice-agent-turn.test.ts +27 -0
- package/src/live-voice/__tests__/live-voice-flux-turn-end.test.ts +83 -0
- package/src/live-voice/__tests__/live-voice-triage-escalate.test.ts +48 -1
- package/src/live-voice/__tests__/live-voice-vad.test.ts +34 -2
- package/src/live-voice/__tests__/protocol.test.ts +22 -0
- package/src/live-voice/continuation-judge.ts +1 -1
- package/src/live-voice/live-voice-session.ts +25 -19
- package/src/live-voice/protocol.ts +16 -5
- package/src/messaging/providers/discord/withdraw.ts +4 -5
- package/src/messaging/providers/gmail/client.ts +4 -0
- package/src/messaging/providers/slack/withdraw.ts +5 -5
- package/src/messaging/providers/telegram-bot/withdraw.ts +4 -5
- package/src/monitoring/__tests__/proc-fixtures.ts +28 -0
- package/src/monitoring/__tests__/proc-wait-state.test.ts +232 -0
- package/src/monitoring/__tests__/process-usage.test.ts +243 -0
- package/src/monitoring/proc-wait-state.ts +366 -0
- package/src/monitoring/process-memory.ts +4 -3
- package/src/monitoring/process-usage.ts +215 -0
- package/src/monitoring/resource-sample-types.ts +8 -0
- package/src/monitoring/resource-sampler.ts +17 -2
- package/src/monitoring/stall-capture.ts +12 -0
- package/src/notifications/README.md +88 -9
- package/src/notifications/__tests__/assistant-reply-producer.test.ts +390 -119
- package/src/notifications/__tests__/background-result-producer.test.ts +1272 -0
- package/src/notifications/__tests__/broadcaster.test.ts +292 -1
- package/src/notifications/__tests__/completion-policy.test.ts +243 -0
- package/src/notifications/__tests__/decision-engine.test.ts +51 -4
- package/src/notifications/__tests__/has-pending-background-work.test.ts +281 -0
- package/src/notifications/__tests__/home-feed-side-effect.test.ts +161 -3
- package/src/notifications/__tests__/resolve-visible-in-source.test.ts +110 -1
- package/src/notifications/__tests__/schedule-result-producer.test.ts +11 -4
- package/src/notifications/adapters/macos.ts +24 -12
- package/src/notifications/adapters/platform.ts +16 -5
- package/src/notifications/assistant-reply-producer.ts +96 -71
- package/src/notifications/background-result-producer.ts +369 -0
- package/src/notifications/broadcaster.ts +28 -8
- package/src/notifications/completion-policy.ts +115 -0
- package/src/notifications/completion-work.ts +46 -0
- package/src/notifications/conversation-pairing.ts +32 -13
- package/src/notifications/decision-engine.ts +18 -24
- package/src/notifications/emit-signal.ts +16 -1
- package/src/notifications/events-store.ts +4 -0
- package/src/notifications/has-pending-background-work.ts +91 -0
- package/src/notifications/home-feed-mirror.ts +44 -0
- package/src/notifications/home-feed-side-effect.ts +54 -28
- package/src/notifications/resolve-visible-in-source.ts +56 -2
- package/src/notifications/result-output.ts +154 -0
- package/src/notifications/schedule-result-producer.ts +6 -187
- package/src/notifications/types.ts +2 -0
- package/src/oauth/AGENTS.md +9 -1
- package/src/oauth/byo-connection.test.ts +28 -0
- package/src/persistence/__tests__/recent-conversation-messages.test.ts +41 -0
- package/src/persistence/conversation-crud.ts +26 -0
- package/src/persistence/conversation-types.ts +15 -37
- package/src/persistence/embeddings/__tests__/embedding-local-lifecycle.test.ts +85 -14
- package/src/persistence/jobs-store.ts +229 -0
- package/src/persistence/migrations/383-normalize-opencode-host-connections.ts +44 -0
- package/src/persistence/migrations/__tests__/383-normalize-opencode-host-connections.test.ts +102 -0
- package/src/persistence/steps.ts +12 -0
- package/src/platform/sync-avatar.test.ts +29 -0
- package/src/plugins/defaults/memory/AGENTS.md +5 -3
- package/src/plugins/defaults/memory/__tests__/skill-update-receipt-boundary-guard.test.ts +45 -0
- package/src/plugins/defaults/memory/__tests__/skill-update-receipt-job.test.ts +580 -0
- package/src/plugins/defaults/memory/__tests__/turn-retrieval.test.ts +21 -0
- package/src/plugins/defaults/memory/graph/tools.ts +9 -5
- package/src/plugins/defaults/memory/hooks/conversation-deleted.ts +4 -0
- package/src/plugins/defaults/memory/hooks/user-prompt-submit.ts +7 -3
- package/src/plugins/defaults/memory/job-handlers.ts +8 -2
- package/src/plugins/defaults/memory/skill-update-receipt-job.ts +334 -0
- package/src/plugins/defaults/memory/tools.test.ts +17 -0
- package/src/plugins/defaults/memory/turn-retrieval.ts +8 -0
- package/src/plugins/defaults/memory/v3/__tests__/injection.test.ts +24 -0
- package/src/plugins/defaults/memory/v3/injector.ts +4 -4
- package/src/plugins/types.ts +2 -0
- package/src/providers/__tests__/search-provider-catalog.test.ts +8 -0
- package/src/providers/anthropic/client.ts +4 -0
- package/src/providers/gemini/client.ts +7 -1
- package/src/providers/inference/auth.ts +25 -0
- package/src/providers/inference/profile-probe.ts +1 -0
- package/src/{calls/__tests__/typesafe-noul.test.ts → providers/jev/ask.test.ts} +4 -4
- package/src/{calls/typesafe-noul.ts → providers/jev/ask.ts} +67 -34
- package/src/providers/openai/__tests__/api-error-normalization.test.ts +12 -0
- package/src/providers/openai/api-error-normalization.ts +4 -0
- package/src/providers/retry.ts +2 -0
- package/src/providers/search-provider-catalog.ts +10 -0
- package/src/providers/types.ts +7 -0
- package/src/providers/usage-tracking.ts +5 -3
- package/src/runtime/__tests__/agent-wake.test.ts +308 -0
- package/src/runtime/access-request-helper.ts +16 -9
- package/src/runtime/agent-wake-queue.ts +52 -0
- package/src/runtime/agent-wake.ts +111 -18
- package/src/runtime/channel-approval-types.ts +6 -38
- package/src/runtime/channel-approvals.ts +4 -5
- package/src/runtime/http-server.ts +4 -1
- package/src/runtime/introduction-policy.test.ts +17 -1
- package/src/runtime/introduction-policy.ts +25 -7
- package/src/runtime/migrations/vbundle-builder.ts +9 -0
- package/src/runtime/routes/__tests__/inference-profiles-routes.test.ts +21 -1
- package/src/runtime/routes/__tests__/inference-provider-connection-routes.test.ts +60 -0
- package/src/runtime/routes/__tests__/oauth-proxy-routes.test.ts +61 -3
- package/src/runtime/routes/auto-profile-routes.ts +83 -0
- package/src/runtime/routes/conversation-management-routes.ts +1 -3
- package/src/runtime/routes/conversation-routes.ts +9 -0
- package/src/runtime/routes/guardian-action-routes.ts +8 -23
- package/src/runtime/routes/host-cu-routes.ts +3 -1
- package/src/runtime/routes/index.ts +2 -0
- package/src/runtime/routes/inference-profiles-routes.ts +5 -2
- package/src/runtime/routes/inference-provider-connection-routes.ts +25 -8
- package/src/runtime/routes/migration-routes.ts +8 -2
- package/src/runtime/routes/oauth-proxy-passthrough.test.ts +32 -0
- package/src/runtime/routes/platform-routes.ts +6 -1
- package/src/runtime/routes/user-route-dispatcher.ts +1 -2
- package/src/runtime/web-presence.ts +3 -4
- package/src/schedule/schedule-store.ts +10 -0
- package/src/schedule/scheduler.ts +92 -24
- package/src/subagent/manager.ts +32 -12
- package/src/telegram/__tests__/webhook-health.test.ts +8 -0
- package/src/telemetry/telemetry-wire-source.json +1 -1
- package/src/telemetry/telemetry-wire.generated.ts +1 -0
- package/src/tools/background-tool-registry.ts +30 -3
- package/src/tools/browser/cdp-client/local-cdp-client.ts +1 -2
- package/src/tools/host-terminal/host-shell.ts +7 -0
- package/src/tools/network/__tests__/web-fetch-firecrawl.test.ts +28 -1
- package/src/tools/network/__tests__/web-fetch-metadata.test.ts +34 -0
- package/src/tools/network/__tests__/web-fetch-tinyfish.test.ts +35 -1
- package/src/tools/network/__tests__/web-search.test.ts +96 -0
- package/src/tools/network/web-fetch.ts +30 -9
- package/src/tools/network/web-search.ts +235 -4
- package/src/tools/skills/load.ts +13 -17
- package/src/tools/skills/scaffold-managed.ts +86 -71
- package/src/tools/terminal/shell-launch.test.ts +27 -1
- package/src/tools/terminal/shell.ts +4 -0
- package/src/tools/workspace-tools/loader.ts +1 -2
- package/src/usage/attribution.ts +18 -1
- package/src/util/abort-reasons.ts +2 -0
- package/src/util/errors.ts +1 -0
- package/src/util/oauth-request-body.test.ts +5 -1
- package/src/util/provider-error-patterns.ts +11 -0
- package/src/util/single-flight.test.ts +6 -0
- package/src/util/single-flight.ts +2 -0
- package/src/util/worker-pipe.test.ts +56 -10
- package/src/util/worker-pipe.ts +9 -4
- package/src/workspace/git-service.ts +6 -1
- package/src/workspace/migrations/158-repoint-opencode-host-provider-fragments.ts +163 -0
- package/src/workspace/migrations/__tests__/158-repoint-opencode-host-provider-fragments.test.ts +188 -0
- package/src/workspace/migrations/registry.ts +2 -0
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"full_tree": {
|
|
23
23
|
"type": "boolean",
|
|
24
|
-
"description": "On connected personal computers, walk the accessibility tree to full depth. The virtual desktop uses a bounded tree; use screenshot
|
|
24
|
+
"description": "On connected personal computers, walk the accessibility tree to full depth. The virtual desktop uses a bounded tree; use coordinates converted from the screenshot metadata when an element is not listed."
|
|
25
25
|
},
|
|
26
26
|
"target_client_id": {
|
|
27
27
|
"type": "string",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
},
|
|
58
58
|
"x": {
|
|
59
59
|
"type": "integer",
|
|
60
|
-
"description": "X coordinate
|
|
60
|
+
"description": "X in screen points, not screenshot pixels. Apply the latest observation's coordinate mapping (fallback when no element_id)."
|
|
61
61
|
},
|
|
62
62
|
"y": {
|
|
63
63
|
"type": "integer",
|
|
64
|
-
"description": "Y coordinate
|
|
64
|
+
"description": "Y in screen points, not screenshot pixels. Apply the latest observation's coordinate mapping (fallback when no element_id)."
|
|
65
65
|
},
|
|
66
66
|
"reasoning": {
|
|
67
67
|
"type": "string",
|
|
@@ -170,11 +170,11 @@
|
|
|
170
170
|
},
|
|
171
171
|
"x": {
|
|
172
172
|
"type": "integer",
|
|
173
|
-
"description": "X coordinate
|
|
173
|
+
"description": "X in screen points, not screenshot pixels. Apply the latest observation's coordinate mapping (fallback when no element_id)."
|
|
174
174
|
},
|
|
175
175
|
"y": {
|
|
176
176
|
"type": "integer",
|
|
177
|
-
"description": "Y coordinate
|
|
177
|
+
"description": "Y in screen points, not screenshot pixels. Apply the latest observation's coordinate mapping (fallback when no element_id)."
|
|
178
178
|
},
|
|
179
179
|
"direction": {
|
|
180
180
|
"type": "string",
|
|
@@ -222,11 +222,11 @@
|
|
|
222
222
|
},
|
|
223
223
|
"x": {
|
|
224
224
|
"type": "integer",
|
|
225
|
-
"description": "Source X coordinate (fallback when no element_id)"
|
|
225
|
+
"description": "Source X in screen points, not screenshot pixels. Apply the latest observation's coordinate mapping (fallback when no element_id)."
|
|
226
226
|
},
|
|
227
227
|
"y": {
|
|
228
228
|
"type": "integer",
|
|
229
|
-
"description": "Source Y coordinate (fallback when no element_id)"
|
|
229
|
+
"description": "Source Y in screen points, not screenshot pixels. Apply the latest observation's coordinate mapping (fallback when no element_id)."
|
|
230
230
|
},
|
|
231
231
|
"to_element_id": {
|
|
232
232
|
"type": "integer",
|
|
@@ -234,11 +234,11 @@
|
|
|
234
234
|
},
|
|
235
235
|
"to_x": {
|
|
236
236
|
"type": "integer",
|
|
237
|
-
"description": "Destination X coordinate (fallback when no to_element_id)"
|
|
237
|
+
"description": "Destination X in screen points, not screenshot pixels. Apply the latest observation's coordinate mapping (fallback when no to_element_id)."
|
|
238
238
|
},
|
|
239
239
|
"to_y": {
|
|
240
240
|
"type": "integer",
|
|
241
|
-
"description": "Destination Y coordinate (fallback when no to_element_id)"
|
|
241
|
+
"description": "Destination Y in screen points, not screenshot pixels. Apply the latest observation's coordinate mapping (fallback when no to_element_id)."
|
|
242
242
|
},
|
|
243
243
|
"reasoning": {
|
|
244
244
|
"type": "string",
|
|
@@ -408,11 +408,11 @@
|
|
|
408
408
|
},
|
|
409
409
|
"x": {
|
|
410
410
|
"type": "integer",
|
|
411
|
-
"description": "click, double_click, right_click, scroll: X coordinate
|
|
411
|
+
"description": "click, double_click, right_click, scroll: X in screen points, not screenshot pixels. Apply the latest observation's coordinate mapping (fallback when no element_id)."
|
|
412
412
|
},
|
|
413
413
|
"y": {
|
|
414
414
|
"type": "integer",
|
|
415
|
-
"description": "click, double_click, right_click, scroll: Y coordinate
|
|
415
|
+
"description": "click, double_click, right_click, scroll: Y in screen points, not screenshot pixels. Apply the latest observation's coordinate mapping (fallback when no element_id)."
|
|
416
416
|
},
|
|
417
417
|
"direction": {
|
|
418
418
|
"type": "string",
|
|
@@ -33,7 +33,8 @@ fails saying so. Ask them to share their screen from the call, then point.
|
|
|
33
33
|
|
|
34
34
|
## Say what to point at
|
|
35
35
|
|
|
36
|
-
**
|
|
36
|
+
**Prefer naming the thing for an arrow.**
|
|
37
|
+
`{"target": "color balance", "caption": "Click this"}`.
|
|
37
38
|
The name is looked up on the surface itself, which knows where its controls
|
|
38
39
|
actually are, and an arrow is drawn at it.
|
|
39
40
|
|
|
@@ -46,25 +47,37 @@ nothing, because no control is called that. Give the label on its own:
|
|
|
46
47
|
The arrow points at the middle of the control and stops just short, so what
|
|
47
48
|
you are sending someone to stays visible the whole time.
|
|
48
49
|
|
|
49
|
-
You are answered with what was drawn and the name it resolved
|
|
50
|
-
|
|
51
|
-
the
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
50
|
+
You are answered with what was drawn and the accessibility name it resolved
|
|
51
|
+
to. Some apps expose internal names such as `ToolbarExportControl` instead of
|
|
52
|
+
the visible label. When a returned name identifies the intended control in
|
|
53
|
+
the shared image, use that exact name as `target`; use the visible label in
|
|
54
|
+
the caption and speech. Do not invent an internal name or choose an unclear
|
|
55
|
+
candidate.
|
|
56
|
+
|
|
57
|
+
A failed name lookup draws nothing. It means the accessibility name could
|
|
58
|
+
not be resolved, not that the control is absent from the picture. Read the
|
|
59
|
+
returned names and retry with an exact name when it identifies the intended
|
|
60
|
+
control. Do not cycle through invented internal names.
|
|
61
|
+
|
|
62
|
+
**Use the picture when names cannot identify the control.** If the intended
|
|
63
|
+
control is clearly visible in a fresh image of the shared surface, retry in
|
|
64
|
+
the same turn with tight `x`/`y`/`width`/`height` bounds measured from that
|
|
65
|
+
image. This also applies when accessibility information is missing or a name
|
|
66
|
+
matches multiple controls. A failed name lookup does not require the user to
|
|
67
|
+
ask again before you can draw a ring.
|
|
68
|
+
|
|
69
|
+
If you cannot confidently locate the intended control, get a fresh view or
|
|
70
|
+
ask the user to clarify. Describe its location verbally only when you can
|
|
71
|
+
identify it. Do not invent a location or claim a mark was drawn after a
|
|
72
|
+
failed tool call.
|
|
73
|
+
|
|
74
|
+
## Coordinates, for a ring
|
|
75
|
+
|
|
76
|
+
Use bounds for a region, a visual fallback after a failed name lookup, or an
|
|
77
|
+
explicit request to circle a clearly visible control. When the user asks for
|
|
78
|
+
a circle or ring, use bounds directly; a named lookup draws an arrow. The
|
|
79
|
+
same requirement to identify the target in a fresh image applies in every
|
|
80
|
+
case.
|
|
68
81
|
|
|
69
82
|
Fractions of the shared surface, `0` to `1`, measured against **the picture of
|
|
70
83
|
that surface you were last shown**. `x` and `y` are the top-left corner,
|
|
@@ -73,10 +86,11 @@ drawn around them, so a box tight on a button reads as a ring around that
|
|
|
73
86
|
button, and a box drawn where you think the ring should go puts the ring
|
|
74
87
|
outside that instead.
|
|
75
88
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
drawing it, so
|
|
89
|
+
Bounds are measured off a picture that has been scaled on its way to you.
|
|
90
|
+
If the user has scrolled, moved a window, or changed the layout since that
|
|
91
|
+
frame, get a fresh view before measuring. Say what you are pointing at as
|
|
92
|
+
well as drawing it, so the user can check the mark against the intended
|
|
93
|
+
control.
|
|
80
94
|
|
|
81
95
|
Moving the share is the one kind of drift that is caught for you. A mark
|
|
82
96
|
measured against the surface before the move is refused rather than drawn,
|
|
@@ -147,8 +161,6 @@ step five of four.
|
|
|
147
161
|
|
|
148
162
|
## Shapes
|
|
149
163
|
|
|
150
|
-
A
|
|
151
|
-
control
|
|
152
|
-
|
|
153
|
-
around one button says something about where that button ends, which is
|
|
154
|
-
rarely what you mean and is the part most likely to be wrong.
|
|
164
|
+
A named control gives you an arrow. Bounds give you a ring for an extent,
|
|
165
|
+
a control located visually after a failed name lookup, or the circle the
|
|
166
|
+
user explicitly requested.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"tools": [
|
|
4
4
|
{
|
|
5
5
|
"name": "screen_point_at",
|
|
6
|
-
"description": "Point at something on the screen the user is sharing with the call
|
|
6
|
+
"description": "Point at something on the screen the user is sharing with the call. Draws an arrow at a named control or a ring around measured bounds, with a short caption. Replaces whatever is currently drawn.\n\nPrefer target for an arrow, using the control label: \"color balance\", \"Send\", \"Search\". A failed lookup returns accessibility names that may differ from visible labels. Retry with a returned name only when it identifies the intended control; do not invent internal names.\n\nUse x/y/width/height for a region, an explicit request for a circle or ring, or a visual fallback when a named lookup fails. Measure tight bounds from a fresh image of the shared surface only when you can confidently identify the target. A failed accessibility lookup does not prevent drawing a clearly visible control. If the view is stale or the target is unclear, get a fresh view or ask the user to clarify; do not invent coordinates.\n\nRequires the user to be sharing their screen. If nothing is shared, ask them to share before pointing again. Confirm a mark only after the tool reports success.",
|
|
7
7
|
"category": "screen-annotation",
|
|
8
8
|
"risk": "low",
|
|
9
9
|
"input_schema": {
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"maxItems": 4,
|
|
16
16
|
"items": {
|
|
17
17
|
"type": "object",
|
|
18
|
-
"description": "One thing to point at:
|
|
18
|
+
"description": "One thing to point at: target naming a control for an arrow, or all four bounds measured from a fresh shared image for a ring. Use bounds for regions, explicit circle requests, or a clearly identified visual fallback after a name lookup fails. Supply either target or bounds, never both.",
|
|
19
19
|
"oneOf": [
|
|
20
20
|
{
|
|
21
21
|
"description": "A control, named and found on the surface. An arrow lands on it.",
|
|
22
22
|
"required": ["target"]
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"description": "A region
|
|
25
|
+
"description": "A region or clearly identified control, measured from a fresh shared image. Draws a ring; all four bounds are required.",
|
|
26
26
|
"required": ["x", "y", "width", "height"]
|
|
27
27
|
}
|
|
28
28
|
],
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"x": {
|
|
37
37
|
"type": "number",
|
|
38
|
-
"description": "Left edge as a fraction of the shared surface's width (0 to 1)
|
|
38
|
+
"description": "Left edge as a fraction of the shared surface's width (0 to 1), measured from a fresh image."
|
|
39
39
|
},
|
|
40
40
|
"y": {
|
|
41
41
|
"type": "number",
|
|
42
|
-
"description": "Top edge as a fraction of the shared surface's height (0 to 1)
|
|
42
|
+
"description": "Top edge as a fraction of the shared surface's height (0 to 1), measured from a fresh image."
|
|
43
43
|
},
|
|
44
44
|
"width": {
|
|
45
45
|
"type": "number",
|
|
@@ -159,6 +159,12 @@ export const CALL_SITE_DEFAULTS: Record<LLMCallSite, CallSiteDefaultConfig> = {
|
|
|
159
159
|
voiceEscalationJudge: {
|
|
160
160
|
profile: JEV_MANAGED_PROFILE_KEY,
|
|
161
161
|
},
|
|
162
|
+
// Picks the default profile for a turn pinned to the Auto profile. On a
|
|
163
|
+
// BYOK install the managed-only Jev profile has no body, so the router is
|
|
164
|
+
// unavailable and the turn runs on Balanced.
|
|
165
|
+
autoProfileRouter: {
|
|
166
|
+
profile: JEV_MANAGED_PROFILE_KEY,
|
|
167
|
+
},
|
|
162
168
|
// The barge-in continuation judge remains off until a TypeSafe profile is
|
|
163
169
|
// pinned here (see live-voice/continuation-judge.ts).
|
|
164
170
|
voiceContinuationJudge: { profile: "cost-optimized" },
|
|
@@ -8,6 +8,7 @@ import { isCodexSubscriptionModel } from "../providers/openai/codex-models.js";
|
|
|
8
8
|
import type { ModelIntent } from "../providers/types.js";
|
|
9
9
|
import { getManagedUpstream } from "../providers/vellum-model-routing.js";
|
|
10
10
|
import {
|
|
11
|
+
AUTO_PROFILE_KEY,
|
|
11
12
|
BACKUP_PROFILE_KEYS,
|
|
12
13
|
type BackupProfileKey,
|
|
13
14
|
DEFAULT_PROFILE_KEYS,
|
|
@@ -17,6 +18,7 @@ import {
|
|
|
17
18
|
FALLBACK_PROFILE_BY_KEY,
|
|
18
19
|
isDefaultProfileKey,
|
|
19
20
|
isDefaultProfileProvider,
|
|
21
|
+
isFlagGatedProfileKey,
|
|
20
22
|
isManagedOnlyProfileKey,
|
|
21
23
|
JEV_MANAGED_PROFILE_KEY,
|
|
22
24
|
OS_BETA_PROFILE_KEY,
|
|
@@ -407,6 +409,27 @@ export const JEV_MANAGED_PROFILE_TEMPLATE: DefaultProfileTemplate = {
|
|
|
407
409
|
contextWindow: { maxInputTokens: 32_000 },
|
|
408
410
|
};
|
|
409
411
|
|
|
412
|
+
/**
|
|
413
|
+
* The Auto profile: the managed Balanced body under its own label, so that
|
|
414
|
+
* anything dispatching the name directly runs Balanced. The per-message
|
|
415
|
+
* choice among the defaults happens in the agent loop, not here (see
|
|
416
|
+
* `AUTO_PROFILE_KEY`). No `fallbackProfile`: the code-owned fallback mapping
|
|
417
|
+
* is keyed by default profile, and a direct dispatch of this name is already
|
|
418
|
+
* the fallback path. Flag-gated like `os-beta`: NOT in
|
|
419
|
+
* `MANAGED_PROFILE_TEMPLATES`, so the unconditional boot seed never creates
|
|
420
|
+
* it; the flag-gated profile reconcile materializes it while the
|
|
421
|
+
* `auto-profile` feature flag is on.
|
|
422
|
+
*/
|
|
423
|
+
export const AUTO_PROFILE_TEMPLATE: DefaultProfileTemplate = (() => {
|
|
424
|
+
const { fallbackProfile: _fallbackProfile, ...balanced } =
|
|
425
|
+
VELLUM_PROFILE_IMPLS.balanced;
|
|
426
|
+
return {
|
|
427
|
+
...balanced,
|
|
428
|
+
label: "Auto",
|
|
429
|
+
description: "Picks the profile that fits each message, in beta",
|
|
430
|
+
};
|
|
431
|
+
})();
|
|
432
|
+
|
|
410
433
|
/**
|
|
411
434
|
* Managed profiles, i.e. the `vellum` column keyed by profile name, plus the
|
|
412
435
|
* managed backup profiles and the managed Jev profile. Backups come after the
|
|
@@ -521,6 +544,7 @@ export const INVARIANT_PROFILE_NAMES = new Set<string>([
|
|
|
521
544
|
...DEFAULT_PROFILE_KEYS,
|
|
522
545
|
...BACKUP_PROFILE_KEYS,
|
|
523
546
|
JEV_MANAGED_PROFILE_KEY,
|
|
547
|
+
AUTO_PROFILE_KEY,
|
|
524
548
|
OS_BETA_PROFILE_KEY,
|
|
525
549
|
]);
|
|
526
550
|
|
|
@@ -535,6 +559,7 @@ export const MANAGED_PROFILE_NAMES = new Set<string>([
|
|
|
535
559
|
...DEFAULT_PROFILE_KEYS,
|
|
536
560
|
...BACKUP_PROFILE_KEYS,
|
|
537
561
|
JEV_MANAGED_PROFILE_KEY,
|
|
562
|
+
AUTO_PROFILE_KEY,
|
|
538
563
|
OS_BETA_PROFILE_KEY,
|
|
539
564
|
]);
|
|
540
565
|
|
|
@@ -666,6 +691,10 @@ function buildDefaultProfileEntries(): Record<string, ProfileEntry> {
|
|
|
666
691
|
JEV_MANAGED_PROFILE_TEMPLATE,
|
|
667
692
|
JEV_MANAGED_PROFILE_TEMPLATE.provider,
|
|
668
693
|
);
|
|
694
|
+
entries[AUTO_PROFILE_KEY] = materializeProfile(
|
|
695
|
+
AUTO_PROFILE_TEMPLATE,
|
|
696
|
+
AUTO_PROFILE_TEMPLATE.provider,
|
|
697
|
+
);
|
|
669
698
|
entries[OS_BETA_PROFILE_KEY] = materializeProfile(
|
|
670
699
|
OS_BETA_PROFILE_TEMPLATE,
|
|
671
700
|
OS_BETA_PROFILE_TEMPLATE.provider,
|
|
@@ -757,7 +786,7 @@ function resolveAgainstBody(
|
|
|
757
786
|
return { ...body };
|
|
758
787
|
}
|
|
759
788
|
if (workspace == null) {
|
|
760
|
-
return name
|
|
789
|
+
return isFlagGatedProfileKey(name) ? undefined : { ...body };
|
|
761
790
|
}
|
|
762
791
|
if (workspace.source !== "managed") {
|
|
763
792
|
return workspace;
|
|
@@ -77,6 +77,24 @@ export function isBackupProfileKey(value: string): value is BackupProfileKey {
|
|
|
77
77
|
*/
|
|
78
78
|
export const JEV_MANAGED_PROFILE_KEY = "jev-managed";
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Managed profile that picks one of the default profiles per message: the
|
|
82
|
+
* agent loop asks Jev which default fits the user's latest message and runs
|
|
83
|
+
* the turn on that profile (`daemon/auto-profile-router.ts`). Its own body
|
|
84
|
+
* is the managed Balanced body, so any path that dispatches the name
|
|
85
|
+
* directly, or a turn on which the router is unavailable, runs Balanced.
|
|
86
|
+
* Managed column only, because the router depends on the managed Jev route,
|
|
87
|
+
* and flag-gated: it exists only while the `auto-profile` feature flag has
|
|
88
|
+
* reconciled it into the workspace (see `sync-gated-profiles.ts`).
|
|
89
|
+
* Deliberately NOT part of `DEFAULT_PROFILE_KEYS`: it is a selection over
|
|
90
|
+
* those keys, not a fifth intent.
|
|
91
|
+
*/
|
|
92
|
+
export const AUTO_PROFILE_KEY = "auto";
|
|
93
|
+
export const AUTO_PROFILE_FEATURE_FLAG_KEY = "auto-profile";
|
|
94
|
+
|
|
95
|
+
/** The call site the automatic profile router asks Jev through. */
|
|
96
|
+
export const AUTO_PROFILE_ROUTER_CALL_SITE = "autoProfileRouter";
|
|
97
|
+
|
|
80
98
|
/**
|
|
81
99
|
* The call sites that consume a structured verdict and so may be pinned to
|
|
82
100
|
* the Jev profile. Every other site expects chat text or a tool call, which
|
|
@@ -86,16 +104,18 @@ export const JEV_MANAGED_PROFILE_CALL_SITES = [
|
|
|
86
104
|
"voiceEscalationJudge",
|
|
87
105
|
"voiceContinuationJudge",
|
|
88
106
|
"memoryV3SelectL2",
|
|
107
|
+
AUTO_PROFILE_ROUTER_CALL_SITE,
|
|
89
108
|
] as const;
|
|
90
109
|
|
|
91
110
|
/**
|
|
92
111
|
* Keys whose profile exists on the managed (`vellum`) column only: the
|
|
93
|
-
* backups and the
|
|
94
|
-
* these names have no body to resolve to.
|
|
112
|
+
* backups, the Jev profile, and the Auto profile. Under a BYOK or ChatGPT
|
|
113
|
+
* default provider these names have no body to resolve to.
|
|
95
114
|
*/
|
|
96
115
|
export const MANAGED_ONLY_PROFILE_KEYS = [
|
|
97
116
|
...BACKUP_PROFILE_KEYS,
|
|
98
117
|
JEV_MANAGED_PROFILE_KEY,
|
|
118
|
+
AUTO_PROFILE_KEY,
|
|
99
119
|
] as const;
|
|
100
120
|
|
|
101
121
|
export function isManagedOnlyProfileKey(value: string): boolean {
|
|
@@ -111,6 +131,20 @@ export function isManagedOnlyProfileKey(value: string): boolean {
|
|
|
111
131
|
*/
|
|
112
132
|
export const OS_BETA_PROFILE_KEY = "os-beta";
|
|
113
133
|
|
|
134
|
+
/**
|
|
135
|
+
* Managed profiles that resolve only while a workspace entry exists, because
|
|
136
|
+
* a feature flag reconciles that entry in and out. Never always-valid
|
|
137
|
+
* reference targets: a reference to one is valid only with the entry present.
|
|
138
|
+
*/
|
|
139
|
+
export const FLAG_GATED_PROFILE_KEYS = [
|
|
140
|
+
OS_BETA_PROFILE_KEY,
|
|
141
|
+
AUTO_PROFILE_KEY,
|
|
142
|
+
] as const;
|
|
143
|
+
|
|
144
|
+
export function isFlagGatedProfileKey(value: string): boolean {
|
|
145
|
+
return (FLAG_GATED_PROFILE_KEYS as readonly string[]).includes(value);
|
|
146
|
+
}
|
|
147
|
+
|
|
114
148
|
/**
|
|
115
149
|
* The named columns of the intent × provider matrix. `vellum` is the
|
|
116
150
|
* platform-managed column (routed through the single `vellum` connection to
|
|
@@ -354,6 +354,14 @@
|
|
|
354
354
|
"description": "Enable the OS Beta model profile (MiniMax M3 / Together) in the assistant's model profile selection.",
|
|
355
355
|
"defaultEnabled": false
|
|
356
356
|
},
|
|
357
|
+
{
|
|
358
|
+
"id": "auto-profile",
|
|
359
|
+
"scope": "assistant",
|
|
360
|
+
"key": "auto-profile",
|
|
361
|
+
"label": "Auto Profile",
|
|
362
|
+
"description": "Enable the Auto model profile, which asks Jev which default profile should answer each message.",
|
|
363
|
+
"defaultEnabled": false
|
|
364
|
+
},
|
|
357
365
|
{
|
|
358
366
|
"id": "new-thread-suggestions",
|
|
359
367
|
"scope": "client",
|
|
@@ -557,7 +565,7 @@
|
|
|
557
565
|
"scope": "client",
|
|
558
566
|
"key": "assistant-inbox",
|
|
559
567
|
"label": "Assistant Inbox",
|
|
560
|
-
"description": "Shows an Assistant Inbox entry above Preferences in the web sidebar and the /assistant/inbox page it opens: a mailbox for the assistant's managed vellum.me address (received and sent, with a reading pane), the inline email setup card for entitled orgs with no address yet, and an upgrade card for orgs without the managed_email entitlement. Off hides the entry
|
|
568
|
+
"description": "Shows an Assistant Inbox entry above Preferences in the web sidebar and the /assistant/inbox page it opens: a mailbox for the assistant's managed vellum.me address (received and sent, with a reading pane), the inline email setup card for entitled orgs with no address yet, and an upgrade card for orgs without the managed_email entitlement. With it on, email setup happens only there: the billing wizard hands off to the inbox instead of its own domain step, the billing page's finish-setup nudge gives way to the inbox's rail entry, and the Channels page's Email section points there instead of registering an address itself. Off hides the entry, redirects the route to chat, and keeps the older setup surfaces.",
|
|
561
569
|
"defaultEnabled": false
|
|
562
570
|
},
|
|
563
571
|
{
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* that endpoint into the in-memory overrides. Resolution reads those
|
|
7
7
|
* overrides (and `PLATFORM_ORGANIZATION_ID` / `PLATFORM_USER_ID` when set).
|
|
8
8
|
* When the in-memory assistant id is empty, the next resolve retries
|
|
9
|
-
* validate (single-flight, with a cooldown after a failed attempt
|
|
9
|
+
* validate (single-flight, with a cooldown after a failed attempt that holds
|
|
10
|
+
* only while the same API key and base URL are stored).
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
import { credentialKey } from "../security/credential-key.js";
|
|
@@ -121,10 +122,19 @@ async function readAssistantApiKey(): Promise<string> {
|
|
|
121
122
|
}
|
|
122
123
|
|
|
123
124
|
let ensureInFlight: Promise<void> | null = null;
|
|
125
|
+
// The cooldown is bound to the credentials that failed: the same key against
|
|
126
|
+
// the same base URL is not re-sent for ENSURE_COOLDOWN_MS, while a change to
|
|
127
|
+
// either is validated on the next resolve.
|
|
128
|
+
let failedFingerprint: string | null = null;
|
|
124
129
|
let nextEnsureAttemptAt = 0;
|
|
125
130
|
|
|
131
|
+
function identityFingerprint(apiKey: string, baseUrl: string): string {
|
|
132
|
+
return `${baseUrl}\0${apiKey}`;
|
|
133
|
+
}
|
|
134
|
+
|
|
126
135
|
export function _resetPlatformIdentityEnsureForTests(): void {
|
|
127
136
|
ensureInFlight = null;
|
|
137
|
+
failedFingerprint = null;
|
|
128
138
|
nextEnsureAttemptAt = 0;
|
|
129
139
|
}
|
|
130
140
|
|
|
@@ -132,16 +142,14 @@ export function _resetPlatformIdentityEnsureForTests(): void {
|
|
|
132
142
|
* Load in-memory platform ids from validate when they are missing.
|
|
133
143
|
*
|
|
134
144
|
* No-ops when the assistant id is already set, when auth prerequisites are
|
|
135
|
-
* missing, or when
|
|
145
|
+
* missing, or when the stored API key and base URL are the ones a failed
|
|
146
|
+
* attempt used and that attempt is still inside the cooldown window.
|
|
136
147
|
* Concurrent callers share one in-flight request.
|
|
137
148
|
*/
|
|
138
149
|
export async function ensurePlatformIdentityIds(): Promise<void> {
|
|
139
150
|
if (getPlatformAssistantId()?.trim()) {
|
|
140
151
|
return;
|
|
141
152
|
}
|
|
142
|
-
if (Date.now() < nextEnsureAttemptAt) {
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
153
|
if (!ensureInFlight) {
|
|
146
154
|
ensureInFlight = (async () => {
|
|
147
155
|
try {
|
|
@@ -150,12 +158,21 @@ export async function ensurePlatformIdentityIds(): Promise<void> {
|
|
|
150
158
|
if (!apiKey || !baseUrl) {
|
|
151
159
|
return;
|
|
152
160
|
}
|
|
161
|
+
const fingerprint = identityFingerprint(apiKey, baseUrl);
|
|
162
|
+
if (
|
|
163
|
+
fingerprint === failedFingerprint &&
|
|
164
|
+
Date.now() < nextEnsureAttemptAt
|
|
165
|
+
) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
153
168
|
const ids = await fetchPlatformIdentityIds(baseUrl, apiKey);
|
|
154
169
|
if (!ids) {
|
|
170
|
+
failedFingerprint = fingerprint;
|
|
155
171
|
nextEnsureAttemptAt = Date.now() + ENSURE_COOLDOWN_MS;
|
|
156
172
|
return;
|
|
157
173
|
}
|
|
158
174
|
applyPlatformIdentityIds(ids);
|
|
175
|
+
failedFingerprint = null;
|
|
159
176
|
nextEnsureAttemptAt = 0;
|
|
160
177
|
log.info("Loaded platform identity from platform validate");
|
|
161
178
|
} finally {
|
|
@@ -16,7 +16,13 @@ export function orderProfileKeys(
|
|
|
16
16
|
const seen = new Set<string>();
|
|
17
17
|
const ordered: string[] = [];
|
|
18
18
|
for (const name of profileOrder ?? []) {
|
|
19
|
-
|
|
19
|
+
// Own properties only: a persisted name such as `constructor` would
|
|
20
|
+
// otherwise resolve through `Object.prototype` and surface a phantom.
|
|
21
|
+
if (
|
|
22
|
+
Object.prototype.hasOwnProperty.call(profiles, name) &&
|
|
23
|
+
profiles[name] != null &&
|
|
24
|
+
!seen.has(name)
|
|
25
|
+
) {
|
|
20
26
|
ordered.push(name);
|
|
21
27
|
seen.add(name);
|
|
22
28
|
}
|
|
@@ -317,6 +317,13 @@ const CATALOG_RECORD: CatalogRecord = {
|
|
|
317
317
|
"Decides from the caller's interruption whether a barged-in request should keep running in the background. Runs only when pinned to a TypeSafe profile.",
|
|
318
318
|
domain: "agentLoop",
|
|
319
319
|
},
|
|
320
|
+
autoProfileRouter: {
|
|
321
|
+
id: "autoProfileRouter",
|
|
322
|
+
displayName: "Auto Profile Router",
|
|
323
|
+
description:
|
|
324
|
+
"Picks which default profile answers a message when the conversation runs on the Auto profile. Asks managed Jev one choice question over the latest message; when unavailable the turn runs on Balanced.",
|
|
325
|
+
domain: "agentLoop",
|
|
326
|
+
},
|
|
320
327
|
voiceContinuationLabel: {
|
|
321
328
|
id: "voiceContinuationLabel",
|
|
322
329
|
displayName: "Voice Continuation Label",
|
|
@@ -14,10 +14,12 @@ import {
|
|
|
14
14
|
parseVellumModel,
|
|
15
15
|
} from "../../providers/vellum-model-routing.js";
|
|
16
16
|
import {
|
|
17
|
+
AUTO_PROFILE_KEY,
|
|
17
18
|
DEFAULT_PROFILE_KEYS,
|
|
18
19
|
DEFAULT_PROFILE_PROVIDERS,
|
|
19
20
|
FALLBACK_PROFILE_BY_KEY,
|
|
20
21
|
isDefaultProfileKey,
|
|
22
|
+
isFlagGatedProfileKey,
|
|
21
23
|
isManagedOnlyProfileKey,
|
|
22
24
|
JEV_MANAGED_PROFILE_CALL_SITES,
|
|
23
25
|
JEV_MANAGED_PROFILE_KEY,
|
|
@@ -25,6 +27,15 @@ import {
|
|
|
25
27
|
} from "../default-profile-names.js";
|
|
26
28
|
import { InputModalitiesSchema } from "../input-modalities.js";
|
|
27
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Managed-only keys that are valid reference targets on the managed column
|
|
32
|
+
* whether or not a workspace stub exists. The flag-gated ones (`os-beta`,
|
|
33
|
+
* `auto`) are excluded: they resolve only while their reconciled stub is
|
|
34
|
+
* present, so they enter the reference set through `llm.profiles` alone.
|
|
35
|
+
*/
|
|
36
|
+
const ALWAYS_RESOLVING_MANAGED_ONLY_PROFILE_KEYS =
|
|
37
|
+
MANAGED_ONLY_PROFILE_KEYS.filter((key) => !isFlagGatedProfileKey(key));
|
|
38
|
+
|
|
28
39
|
/**
|
|
29
40
|
* Unified LLM configuration schema.
|
|
30
41
|
*
|
|
@@ -234,6 +245,7 @@ export const LLMCallSiteEnum = z.enum([
|
|
|
234
245
|
"voiceEscalationJudge",
|
|
235
246
|
"voiceContinuationJudge",
|
|
236
247
|
"voiceContinuationLabel",
|
|
248
|
+
"autoProfileRouter",
|
|
237
249
|
"trustRuleSuggestion",
|
|
238
250
|
"homeGreeting",
|
|
239
251
|
"homeSuggestedPrompts",
|
|
@@ -771,9 +783,13 @@ function unresolvableProfileReason(
|
|
|
771
783
|
if (backupsResolve || !isManagedOnlyProfileKey(name)) {
|
|
772
784
|
return "is not defined in llm.profiles";
|
|
773
785
|
}
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
786
|
+
if (name === JEV_MANAGED_PROFILE_KEY) {
|
|
787
|
+
return "is the managed Jev profile, which resolves only while llm.defaultProvider is the managed provider";
|
|
788
|
+
}
|
|
789
|
+
if (name === AUTO_PROFILE_KEY) {
|
|
790
|
+
return "is the managed Auto profile, which resolves only while llm.defaultProvider is the managed provider";
|
|
791
|
+
}
|
|
792
|
+
return "is a managed backup profile, which resolves only while llm.defaultProvider is the managed provider";
|
|
777
793
|
}
|
|
778
794
|
|
|
779
795
|
/**
|
|
@@ -858,7 +874,7 @@ export function collectFallbackProfileIssues(
|
|
|
858
874
|
const profileNames = new Set([
|
|
859
875
|
...referenceableProfileKeys(profiles, backupsResolve),
|
|
860
876
|
...DEFAULT_PROFILE_KEYS,
|
|
861
|
-
...(backupsResolve ?
|
|
877
|
+
...(backupsResolve ? ALWAYS_RESOLVING_MANAGED_ONLY_PROFILE_KEYS : []),
|
|
862
878
|
]);
|
|
863
879
|
const mixProfileNames = new Set(
|
|
864
880
|
entries
|
|
@@ -1024,7 +1040,7 @@ export const LLMSchema = z
|
|
|
1024
1040
|
backupsResolve,
|
|
1025
1041
|
),
|
|
1026
1042
|
...DEFAULT_PROFILE_KEYS,
|
|
1027
|
-
...(backupsResolve ?
|
|
1043
|
+
...(backupsResolve ? ALWAYS_RESOLVING_MANAGED_ONLY_PROFILE_KEYS : []),
|
|
1028
1044
|
]);
|
|
1029
1045
|
for (const [siteId, siteConfig] of Object.entries(config.callSites ?? {})) {
|
|
1030
1046
|
// The Jev profile answers with structured verdicts, so only the sites
|