@vellumai/assistant 0.10.6-dev.202607071937.200b337 → 0.10.6-dev.202607072040.fb971ce

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.
Files changed (74) hide show
  1. package/openapi.yaml +54 -12
  2. package/package.json +1 -1
  3. package/src/__tests__/approval-routes-http.test.ts +1 -1
  4. package/src/__tests__/call-controller.test.ts +636 -0
  5. package/src/__tests__/credential-execution-client.test.ts +0 -35
  6. package/src/__tests__/credential-prompt-route.test.ts +1 -1
  7. package/src/__tests__/headless-browser-navigate.test.ts +91 -6
  8. package/src/__tests__/media-stream-output.test.ts +388 -60
  9. package/src/__tests__/mtime-cache.test.ts +42 -0
  10. package/src/__tests__/require-fresh-approval.test.ts +1 -1
  11. package/src/__tests__/secret-response-routing.test.ts +1 -1
  12. package/src/__tests__/slack-users-routes.test.ts +148 -0
  13. package/src/__tests__/telephony-tts-guard.test.ts +94 -2
  14. package/src/__tests__/verification-control-plane-policy.test.ts +1 -1
  15. package/src/browser/operations.ts +17 -7
  16. package/src/calls/__tests__/fish-audio-client.test.ts +12 -0
  17. package/src/calls/__tests__/tts-text-sanitizer.test.ts +22 -0
  18. package/src/calls/call-controller.ts +223 -43
  19. package/src/calls/call-speech-output.ts +27 -18
  20. package/src/calls/call-transport.ts +11 -0
  21. package/src/calls/fish-audio-client.ts +17 -48
  22. package/src/calls/media-stream-audio-transcode.ts +1 -1
  23. package/src/calls/media-stream-output.ts +151 -25
  24. package/src/calls/resolve-call-tts-provider.ts +20 -0
  25. package/src/calls/tts-text-sanitizer.ts +5 -3
  26. package/src/cli/commands/plugins.ts +1 -1
  27. package/src/config/__tests__/default-provider.test.ts +266 -0
  28. package/src/config/default-profile-catalog.ts +2 -16
  29. package/src/config/default-profile-names.ts +20 -0
  30. package/src/config/default-provider.ts +47 -0
  31. package/src/config/schemas/llm.ts +41 -1
  32. package/src/credential-execution/executable-discovery.ts +18 -137
  33. package/src/credential-execution/process-manager.test.ts +1 -112
  34. package/src/credential-execution/process-manager.ts +13 -379
  35. package/src/credential-execution/prompted-credential.ts +1 -1
  36. package/src/daemon/conversation-tool-setup.ts +4 -2
  37. package/src/daemon/handlers/shared.ts +1 -1
  38. package/src/hooks/hook-loader.ts +7 -4
  39. package/src/live-voice/__tests__/live-voice-tts-session.test.ts +49 -3
  40. package/src/live-voice/__tests__/live-voice-tts.test.ts +186 -10
  41. package/src/live-voice/live-voice-session.ts +9 -78
  42. package/src/live-voice/live-voice-tts.ts +55 -3
  43. package/src/permissions/checker.ts +2 -0
  44. package/src/permissions/ipc-risk-types.ts +2 -0
  45. package/src/permissions/prompter.ts +1 -1
  46. package/src/permissions/secret-prompt-types.ts +23 -0
  47. package/src/permissions/secret-prompter.ts +4 -17
  48. package/src/plugin-api/types.ts +1 -1
  49. package/src/plugins/mtime-cache.ts +62 -7
  50. package/src/runtime/routes/approval-routes.ts +1 -1
  51. package/src/runtime/routes/index.ts +2 -0
  52. package/src/runtime/routes/integrations/slack/users.ts +78 -0
  53. package/src/runtime/routes/plugins-routes.ts +3 -3
  54. package/src/tools/browser/browser-execution.ts +99 -75
  55. package/src/tools/execution-target.ts +1 -1
  56. package/src/tools/permission-checker.ts +1 -1
  57. package/src/tools/skills/skill-script-runner.ts +2 -5
  58. package/src/tools/skills/skill-tool-factory.ts +2 -6
  59. package/src/tools/terminal/shell.ts +1 -1
  60. package/src/tools/tool-approval-handler.ts +1 -1
  61. package/src/tools/tool-defaults.ts +2 -6
  62. package/src/tools/types.ts +15 -38
  63. package/src/tools/workspace-tools/loader.ts +2 -6
  64. package/src/tts/__tests__/provider-adapters.test.ts +382 -10
  65. package/src/tts/__tests__/provider-catalog.test.ts +8 -6
  66. package/src/tts/__tests__/speakable-segments.test.ts +427 -0
  67. package/src/tts/__tests__/synthesis-stream.test.ts +5 -1
  68. package/src/tts/providers/elevenlabs-provider.ts +186 -101
  69. package/src/tts/providers/fish-audio-provider.ts +103 -105
  70. package/src/tts/speakable-segments.ts +188 -0
  71. package/src/tts/stream-read.ts +86 -0
  72. package/src/tts/synthesis-stream.ts +4 -0
  73. package/src/tts/types.ts +21 -0
  74. package/src/workflows/capabilities.test.ts +2 -6
package/openapi.yaml CHANGED
@@ -21574,7 +21574,8 @@ paths:
21574
21574
  Remove the directory at `<workspaceDir>/plugins/<name>/`. Mirrors the CLI's `assistant plugins uninstall
21575
21575
  <name>` (without the interactive confirmation — the API caller is responsible for any prompt). The plugin name
21576
21576
  is sanitized by the same regex the CLI uses; `../escape`-style values, hidden names, and absolute paths return
21577
- 400. Missing plugins return 404. The assistant must be restarted to drop the plugin from the running runtime.
21577
+ 400. Missing plugins return 404. The plugin is dropped from the running runtime live on the next read (no
21578
+ restart required).
21578
21579
  tags:
21579
21580
  - plugins
21580
21581
  parameters:
@@ -22172,14 +22173,14 @@ paths:
22172
22173
  `<workspaceDir>/plugins/<name>/`. Always resolves against the curated marketplace pin (no caller-supplied ref),
22173
22174
  mirroring `plugins install`''s curation boundary. A no-op (`outcome: "already-up-to-date"`) when the installed
22174
22175
  commit already equals the pin; pass `dryRun` to preview the move (`outcome: "would-upgrade"`) without touching
22175
- the install. Installs lacking provenance are re-pinned to the current SHA. The assistant must be restarted to
22176
- load the upgraded code. `strategy` controls how local edits are reconciled: `overwrite` (default) discards them
22177
- and re-installs the pin wholesale; `ours`/`theirs`/`assistant` perform a three-way merge against the
22178
- re-materialized install commit, carrying non-conflicting edits from both sides forward and resolving conflicting
22179
- hunks toward the local edit (`ours`) or the pin (`theirs`), or writing git conflict markers into the file and
22180
- reporting them in `conflicts`/`binaryConflicts` for the assistant to resolve (`assistant`). A merge strategy
22181
- whose install-time baseline cannot be reconstructed returns 409. Mirrors the CLI''s `assistant plugins upgrade
22182
- <name> [--strategy <s>]`.'
22176
+ the install. Installs lacking provenance are re-pinned to the current SHA. The upgraded code is picked up live
22177
+ on the next read (no restart required). `strategy` controls how local edits are reconciled: `overwrite`
22178
+ (default) discards them and re-installs the pin wholesale; `ours`/`theirs`/`assistant` perform a three-way merge
22179
+ against the re-materialized install commit, carrying non-conflicting edits from both sides forward and resolving
22180
+ conflicting hunks toward the local edit (`ours`) or the pin (`theirs`), or writing git conflict markers into the
22181
+ file and reporting them in `conflicts`/`binaryConflicts` for the assistant to resolve (`assistant`). A merge
22182
+ strategy whose install-time baseline cannot be reconstructed returns 409. Mirrors the CLI''s `assistant plugins
22183
+ upgrade <name> [--strategy <s>]`.'
22183
22184
  tags:
22184
22185
  - plugins
22185
22186
  parameters:
@@ -22381,9 +22382,9 @@ paths:
22381
22382
  "Install a plugin by name from the canonical source — a whitelisted `plugins/marketplace.json` entry.
22382
22383
  Always resolves against the curated default git ref (no caller-supplied ref): installing from an unreviewed
22383
22384
  revision would bypass the marketplace curation boundary and let attacker-controlled code be loaded. Materializes
22384
- the plugin under `<workspaceDir>/plugins/<name>/`; the assistant must be restarted to load it. Mirrors the CLI's
22385
- `assistant plugins install <name>`. An already-installed name without `force` returns 409; a name that resolves
22386
- to nothing returns 404. Sibling to `POST /v1/skills/install`."
22385
+ the plugin under `<workspaceDir>/plugins/<name>/`; the plugin is picked up live on the next read (no restart
22386
+ required). Mirrors the CLI's `assistant plugins install <name>`. An already-installed name without `force`
22387
+ returns 409; a name that resolves to nothing returns 404. Sibling to `POST /v1/skills/install`."
22387
22388
  tags:
22388
22389
  - plugins
22389
22390
  requestBody:
@@ -27615,6 +27616,47 @@ paths:
27615
27616
  - ts
27616
27617
  - channel
27617
27618
  additionalProperties: false
27619
+ /v1/slack/users:
27620
+ get:
27621
+ operationId: slack_users_get
27622
+ summary: List Slack workspace users
27623
+ description:
27624
+ List human members of the connected Slack workspace for the contact account-linking picker. Deleted users
27625
+ and bots are excluded.
27626
+ tags:
27627
+ - integrations
27628
+ responses:
27629
+ "200":
27630
+ description: Successful response
27631
+ content:
27632
+ application/json:
27633
+ schema:
27634
+ type: object
27635
+ properties:
27636
+ users:
27637
+ type: array
27638
+ items:
27639
+ type: object
27640
+ properties:
27641
+ id:
27642
+ type: string
27643
+ username:
27644
+ type: string
27645
+ displayName:
27646
+ type: string
27647
+ imageUrl:
27648
+ anyOf:
27649
+ - type: string
27650
+ - type: "null"
27651
+ required:
27652
+ - id
27653
+ - username
27654
+ - displayName
27655
+ - imageUrl
27656
+ additionalProperties: false
27657
+ required:
27658
+ - users
27659
+ additionalProperties: false
27618
27660
  /v1/sounds/available:
27619
27661
  get:
27620
27662
  operationId: sounds_available_get
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/assistant",
3
- "version": "0.10.6-dev.202607071937.200b337",
3
+ "version": "0.10.6-dev.202607072040.fb971ce",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -8,7 +8,7 @@ import { beforeEach, describe, expect, mock, test } from "bun:test";
8
8
 
9
9
  import type { Conversation } from "../daemon/conversation.js";
10
10
  import type { ServerMessage } from "../daemon/message-protocol.js";
11
- import type { SecretPromptResult } from "../permissions/secret-prompter.js";
11
+ import type { SecretPromptResult } from "../permissions/secret-prompt-types.js";
12
12
 
13
13
  mock.module("../util/logger.js", () => ({
14
14
  getLogger: () =>