@vellumai/assistant 0.10.11-dev.202607241836.91be689 → 0.10.11-dev.202607242023.78fd032

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 (64) hide show
  1. package/openapi.yaml +8 -4
  2. package/package.json +1 -1
  3. package/src/__tests__/assistant-id-boundary-guard.test.ts +0 -58
  4. package/src/__tests__/channel-guardian.test.ts +85 -512
  5. package/src/__tests__/config-loader-platform-defaults.test.ts +54 -28
  6. package/src/__tests__/config-schema.test.ts +1 -1
  7. package/src/__tests__/config-set-platform-guard.test.ts +11 -12
  8. package/src/__tests__/image-credentials.test.ts +9 -23
  9. package/src/__tests__/managed-profile-guard.test.ts +27 -0
  10. package/src/__tests__/media-generate-image.test.ts +9 -10
  11. package/src/__tests__/provider-platform-proxy-integration.test.ts +0 -1
  12. package/src/__tests__/workspace-migration-134-image-generation-mode-to-provider.test.ts +284 -0
  13. package/src/cli/commands/config.ts +23 -8
  14. package/src/cli/lib/bundled-marketplace.json +12 -0
  15. package/src/config/__tests__/deployment-context-defaults.test.ts +9 -0
  16. package/src/config/bundled-skills/image-studio/tools/media-generate-image.ts +1 -1
  17. package/src/config/loader.ts +7 -1
  18. package/src/config/raw-config-utils.ts +1 -1
  19. package/src/config/schemas/services.ts +7 -1
  20. package/src/daemon/handlers/config-channels.ts +40 -134
  21. package/src/daemon/message-protocol.ts +19 -119
  22. package/src/daemon/message-types/computer-use.ts +0 -12
  23. package/src/daemon/message-types/conversations.ts +0 -34
  24. package/src/daemon/message-types/host-app-control.ts +0 -9
  25. package/src/daemon/message-types/host-browser.ts +0 -7
  26. package/src/daemon/message-types/host-ui-snapshot.ts +0 -7
  27. package/src/daemon/message-types/messages.ts +0 -48
  28. package/src/daemon/message-types/notifications.ts +0 -7
  29. package/src/daemon/message-types/skills.ts +0 -5
  30. package/src/daemon/message-types/surfaces.ts +0 -9
  31. package/src/daemon/message-types/sync.ts +0 -2
  32. package/src/media/app-icon-generator.ts +1 -1
  33. package/src/media/avatar-router.ts +1 -1
  34. package/src/media/image-credentials.ts +12 -14
  35. package/src/providers/__tests__/registry-native-web-search.test.ts +0 -1
  36. package/src/providers/inference/__tests__/connections-credential-normalize.test.ts +87 -0
  37. package/src/providers/inference/connections.ts +30 -14
  38. package/src/providers/registry.ts +0 -1
  39. package/src/runtime/assistant-event.ts +21 -10
  40. package/src/runtime/routes/conversation-query-routes.ts +35 -6
  41. package/src/runtime/routes/image-generation-routes.ts +1 -1
  42. package/src/security/credential-key.ts +17 -0
  43. package/src/workspace/migrations/134-image-generation-mode-to-provider.ts +128 -0
  44. package/src/workspace/migrations/registry.ts +2 -0
  45. package/src/daemon/message-types/acp.ts +0 -20
  46. package/src/daemon/message-types/apps.ts +0 -11
  47. package/src/daemon/message-types/background-tools.ts +0 -14
  48. package/src/daemon/message-types/bookmarks.ts +0 -13
  49. package/src/daemon/message-types/contacts.ts +0 -13
  50. package/src/daemon/message-types/document-comments.ts +0 -14
  51. package/src/daemon/message-types/documents.ts +0 -13
  52. package/src/daemon/message-types/home.ts +0 -15
  53. package/src/daemon/message-types/host-bash.ts +0 -12
  54. package/src/daemon/message-types/host-cu.ts +0 -10
  55. package/src/daemon/message-types/host-file.ts +0 -12
  56. package/src/daemon/message-types/host-transfer.ts +0 -12
  57. package/src/daemon/message-types/integrations.ts +0 -90
  58. package/src/daemon/message-types/memory.ts +0 -10
  59. package/src/daemon/message-types/schedules.ts +0 -14
  60. package/src/daemon/message-types/settings.ts +0 -17
  61. package/src/daemon/message-types/subagents.ts +0 -16
  62. package/src/daemon/message-types/upgrades.ts +0 -14
  63. package/src/daemon/message-types/workflows.ts +0 -25
  64. package/src/daemon/message-types/workspace.ts +0 -11
package/openapi.yaml CHANGED
@@ -32459,8 +32459,10 @@ components:
32459
32459
  anyOf:
32460
32460
  - type: object
32461
32461
  properties:
32462
- mode:
32463
- $ref: "#/components/schemas/ServiceMode"
32462
+ provider:
32463
+ type: string
32464
+ model:
32465
+ type: string
32464
32466
  additionalProperties: {}
32465
32467
  - type: "null"
32466
32468
  inference:
@@ -33271,8 +33273,10 @@ components:
33271
33273
  image-generation:
33272
33274
  type: object
33273
33275
  properties:
33274
- mode:
33275
- $ref: "#/components/schemas/ServiceMode"
33276
+ provider:
33277
+ type: string
33278
+ model:
33279
+ type: string
33276
33280
  additionalProperties: {}
33277
33281
  inference:
33278
33282
  type: object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/assistant",
3
- "version": "0.10.11-dev.202607241836.91be689",
3
+ "version": "0.10.11-dev.202607242023.78fd032",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -312,64 +312,6 @@ describe("assistant ID boundary", () => {
312
312
  // surfaces invites callers to pass external IDs into daemon scoping.
313
313
  // -------------------------------------------------------------------------
314
314
 
315
- test("message contract types do not contain assistantId for guardian requests", () => {
316
- const contractPath = join(
317
- import.meta.dir,
318
- "..",
319
- "daemon",
320
- "message-types",
321
- "integrations.ts",
322
- );
323
- const content = readFileSync(contractPath, "utf-8");
324
-
325
- // Extract the interface blocks for the request types and verify
326
- // none of them declare an assistantId property.
327
- const requestTypeNames = ["ChannelVerificationSessionRequest"];
328
-
329
- for (const typeName of requestTypeNames) {
330
- // Find the interface/type block — match from the type name to the next
331
- // closing brace at the same indentation level. We use a simple heuristic:
332
- // find the line declaring the type, then scan forward to the closing '}'.
333
- const typeIndex = content.indexOf(typeName);
334
- expect(
335
- typeIndex,
336
- `Expected to find ${typeName} in message contract`,
337
- ).toBeGreaterThan(-1);
338
-
339
- // Extract from the type declaration to the next '}' line
340
- const blockStart = content.indexOf("{", typeIndex);
341
- if (blockStart === -1) continue;
342
- let braceDepth = 0;
343
- let blockEnd = blockStart;
344
- for (let i = blockStart; i < content.length; i++) {
345
- if (content[i] === "{") braceDepth++;
346
- if (content[i] === "}") braceDepth--;
347
- if (braceDepth === 0) {
348
- blockEnd = i + 1;
349
- break;
350
- }
351
- }
352
- const block = content.slice(blockStart, blockEnd);
353
-
354
- // The block should not contain an assistantId property declaration
355
- // (matches "assistantId?" or "assistantId:" on a non-comment line)
356
- const lines = block.split("\n");
357
- for (const line of lines) {
358
- const trimmed = line.trim();
359
- if (
360
- trimmed.startsWith("//") ||
361
- trimmed.startsWith("*") ||
362
- trimmed.startsWith("/*")
363
- )
364
- continue;
365
- expect(
366
- /\bassistantId\s*[?:]/.test(trimmed),
367
- `${typeName} must not declare an assistantId property. Found: "${trimmed}"`,
368
- ).toBe(false);
369
- }
370
- }
371
- });
372
-
373
315
  test("guardian outbound param interfaces do not contain assistantId", () => {
374
316
  const actionsPath = join(
375
317
  import.meta.dir,