@vellumai/assistant 0.10.5-dev.202607061845.bf14d96 → 0.10.5-dev.202607061926.ed098d0
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/openapi.yaml +4 -5
- package/package.json +1 -1
- package/src/__tests__/channel-reply-delivery.test.ts +214 -5
- package/src/__tests__/config-loader-backfill.test.ts +16 -36
- package/src/__tests__/managed-profile-guard.test.ts +2 -0
- package/src/__tests__/mtime-cache.test.ts +265 -80
- package/src/__tests__/plugin-config-data-migration.test.ts +2 -4
- package/src/__tests__/plugin-effective-enabled-set.test.ts +9 -6
- package/src/__tests__/workspace-migration-125-repoint-managed-connections-to-vellum.test.ts +140 -0
- package/src/cli/lib/__tests__/confirm-prompt.test.ts +9 -9
- package/src/cli/lib/diff-plugin.ts +7 -3
- package/src/cli/lib/inspect-plugin.ts +28 -10
- package/src/cli/lib/install-from-github.ts +69 -24
- package/src/cli/lib/ipc-params.ts +3 -3
- package/src/cli/lib/list-installed-plugins.ts +11 -5
- package/src/cli/lib/merge-plugin-tree.ts +15 -9
- package/src/cli/lib/plugin-fingerprint.ts +0 -6
- package/src/cli/lib/publish-plugin.ts +1 -1
- package/src/cli/lib/unknown-command.ts +3 -1
- package/src/cli/lib/upgrade-plugin.ts +2 -5
- package/src/config/__tests__/sync-gated-profiles.test.ts +2 -2
- package/src/config/seed-inference-profiles.ts +5 -4
- package/src/heartbeat/__tests__/heartbeat-service.test.ts +6 -0
- package/src/hooks/__tests__/hook-live-reload.test.ts +110 -96
- package/src/hooks/hook-loader.ts +57 -144
- package/src/hooks/registry.ts +13 -9
- package/src/plugin-api/types.ts +4 -1
- package/src/plugins/mtime-cache.ts +347 -33
- package/src/plugins/pipeline.ts +3 -2
- package/src/providers/__tests__/inference.test.ts +42 -31
- package/src/providers/inference/__tests__/connections-label.test.ts +9 -28
- package/src/providers/inference/auth.ts +1 -2
- package/src/providers/inference/backfill.ts +7 -5
- package/src/providers/inference/connections.ts +54 -30
- package/src/runtime/channel-reply-delivery.ts +83 -24
- package/src/runtime/channel-retry-sweep.ts +4 -0
- package/src/runtime/{slack-no-response.ts → no-response.ts} +26 -6
- package/src/runtime/routes/__tests__/conversation-query-routes.test.ts +43 -3
- package/src/runtime/routes/__tests__/inference-provider-connection-routes.test.ts +61 -24
- package/src/runtime/routes/conversation-query-routes.ts +18 -1
- package/src/runtime/routes/inbound-stages/background-dispatch.ts +1 -1
- package/src/runtime/routes/inference-provider-connection-routes.ts +4 -3
- package/src/runtime/slack-reply-session.ts +1 -1
- package/src/workspace/migrations/125-repoint-managed-connections-to-vellum.ts +99 -0
- package/src/workspace/migrations/registry.ts +2 -0
package/openapi.yaml
CHANGED
|
@@ -13810,9 +13810,8 @@ paths:
|
|
|
13810
13810
|
operationId: inference_providerconnections_by_name_delete
|
|
13811
13811
|
summary: Delete a provider connection
|
|
13812
13812
|
description:
|
|
13813
|
-
Delete a provider connection. Fails with 400 for managed
|
|
13814
|
-
|
|
13815
|
-
connection.
|
|
13813
|
+
Delete a provider connection. Fails with 400 for the Vellum-managed connection (vellum) which is re-seeded
|
|
13814
|
+
on boot. Fails with 409 if any profile or call-site references the connection.
|
|
13816
13815
|
tags:
|
|
13817
13816
|
- inference
|
|
13818
13817
|
parameters:
|
|
@@ -13866,8 +13865,8 @@ paths:
|
|
|
13866
13865
|
operationId: inference_providerconnections_by_name_patch
|
|
13867
13866
|
summary: Update a provider connection
|
|
13868
13867
|
description:
|
|
13869
|
-
Update an existing connection. Cannot rename or change the provider. For managed
|
|
13870
|
-
(
|
|
13868
|
+
Update an existing connection. Cannot rename or change the provider. For the Vellum-managed connection
|
|
13869
|
+
(vellum) the auth is locked to platform; label remains editable.
|
|
13871
13870
|
tags:
|
|
13872
13871
|
- inference
|
|
13873
13872
|
parameters:
|
package/package.json
CHANGED
|
@@ -435,7 +435,10 @@ describe("channel-reply-delivery", () => {
|
|
|
435
435
|
expect(deliveryCalls).toHaveLength(0);
|
|
436
436
|
});
|
|
437
437
|
|
|
438
|
-
|
|
438
|
+
// Silence means the turn produced no real reply text anywhere — not "the
|
|
439
|
+
// last row was a sentinel". A trailing bare <no_response/> row must not
|
|
440
|
+
// swallow the real reply written earlier in the same turn.
|
|
441
|
+
it("delivers the earlier real reply when the turn ends with a bare no_response row", async () => {
|
|
439
442
|
conversationMessages.push(
|
|
440
443
|
{ id: "msg-current-user", role: "user", content: "current prompt" },
|
|
441
444
|
{
|
|
@@ -449,7 +452,7 @@ describe("channel-reply-delivery", () => {
|
|
|
449
452
|
content: '[{"type":"text","text":"<no_response/>"}]',
|
|
450
453
|
},
|
|
451
454
|
);
|
|
452
|
-
|
|
455
|
+
const silentStub = {
|
|
453
456
|
text: "<no_response/>",
|
|
454
457
|
textSegments: ["<no_response/>"],
|
|
455
458
|
toolCalls: [],
|
|
@@ -457,8 +460,42 @@ describe("channel-reply-delivery", () => {
|
|
|
457
460
|
contentOrder: ["text:0"],
|
|
458
461
|
surfaces: [],
|
|
459
462
|
thinkingSegments: [],
|
|
460
|
-
}
|
|
461
|
-
|
|
463
|
+
};
|
|
464
|
+
const answerStub = {
|
|
465
|
+
text: "current answer",
|
|
466
|
+
textSegments: ["current answer"],
|
|
467
|
+
toolCalls: [],
|
|
468
|
+
toolCallsBeforeText: false,
|
|
469
|
+
contentOrder: ["text:0"],
|
|
470
|
+
surfaces: [],
|
|
471
|
+
thinkingSegments: [],
|
|
472
|
+
};
|
|
473
|
+
// Turn scan reads the silent row then the text row; delivery re-reads
|
|
474
|
+
// the chosen text row.
|
|
475
|
+
renderedHistoryContentQueue.push(silentStub, answerStub, answerStub);
|
|
476
|
+
|
|
477
|
+
await deliverReplyViaCallback(
|
|
478
|
+
"conv-1",
|
|
479
|
+
"chat-current",
|
|
480
|
+
"http://gateway/deliver/slack",
|
|
481
|
+
"assistant-current",
|
|
482
|
+
{ sinceMessageId: "msg-current-user" },
|
|
483
|
+
);
|
|
484
|
+
|
|
485
|
+
expect(deliveryCalls).toHaveLength(1);
|
|
486
|
+
expect(deliveryCalls[0].payload.text).toBe("current answer");
|
|
487
|
+
});
|
|
488
|
+
|
|
489
|
+
it("stays silent when a no_response turn has no real reply text anywhere", async () => {
|
|
490
|
+
conversationMessages.push(
|
|
491
|
+
{ id: "msg-current-user", role: "user", content: "current prompt" },
|
|
492
|
+
{
|
|
493
|
+
id: "msg-current-silent",
|
|
494
|
+
role: "assistant",
|
|
495
|
+
content: '[{"type":"text","text":"<no_response/>"}]',
|
|
496
|
+
},
|
|
497
|
+
);
|
|
498
|
+
const silentStub = {
|
|
462
499
|
text: "<no_response/>",
|
|
463
500
|
textSegments: ["<no_response/>"],
|
|
464
501
|
toolCalls: [],
|
|
@@ -466,7 +503,10 @@ describe("channel-reply-delivery", () => {
|
|
|
466
503
|
contentOrder: ["text:0"],
|
|
467
504
|
surfaces: [],
|
|
468
505
|
thinkingSegments: [],
|
|
469
|
-
}
|
|
506
|
+
};
|
|
507
|
+
// Turn scan reads the silent row; delivery re-reads it as the terminal
|
|
508
|
+
// deliberate-silence target.
|
|
509
|
+
renderedHistoryContentQueue.push(silentStub, silentStub);
|
|
470
510
|
|
|
471
511
|
await deliverReplyViaCallback(
|
|
472
512
|
"conv-1",
|
|
@@ -479,6 +519,124 @@ describe("channel-reply-delivery", () => {
|
|
|
479
519
|
expect(deliveryCalls).toHaveLength(0);
|
|
480
520
|
});
|
|
481
521
|
|
|
522
|
+
it("falls through a messageId-targeted bare no_response row to the turn's real reply", async () => {
|
|
523
|
+
conversationMessages.push(
|
|
524
|
+
{ id: "msg-current-user", role: "user", content: "current prompt" },
|
|
525
|
+
{
|
|
526
|
+
id: "msg-current-text",
|
|
527
|
+
role: "assistant",
|
|
528
|
+
content: '[{"type":"text","text":"current answer"}]',
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
id: "msg-current-silent",
|
|
532
|
+
role: "assistant",
|
|
533
|
+
content: '[{"type":"text","text":"<no_response/>"}]',
|
|
534
|
+
},
|
|
535
|
+
);
|
|
536
|
+
const silentStub = {
|
|
537
|
+
text: "<no_response/>",
|
|
538
|
+
textSegments: ["<no_response/>"],
|
|
539
|
+
toolCalls: [],
|
|
540
|
+
toolCallsBeforeText: false,
|
|
541
|
+
contentOrder: ["text:0"],
|
|
542
|
+
surfaces: [],
|
|
543
|
+
thinkingSegments: [],
|
|
544
|
+
};
|
|
545
|
+
const answerStub = {
|
|
546
|
+
text: "current answer",
|
|
547
|
+
textSegments: ["current answer"],
|
|
548
|
+
toolCalls: [],
|
|
549
|
+
toolCallsBeforeText: false,
|
|
550
|
+
contentOrder: ["text:0"],
|
|
551
|
+
surfaces: [],
|
|
552
|
+
thinkingSegments: [],
|
|
553
|
+
};
|
|
554
|
+
// messageId branch reads the targeted silent row, the turn scan reads
|
|
555
|
+
// the silent row then the text row, and delivery re-reads the text row.
|
|
556
|
+
renderedHistoryContentQueue.push(
|
|
557
|
+
silentStub,
|
|
558
|
+
silentStub,
|
|
559
|
+
answerStub,
|
|
560
|
+
answerStub,
|
|
561
|
+
);
|
|
562
|
+
|
|
563
|
+
await deliverReplyViaCallback(
|
|
564
|
+
"conv-1",
|
|
565
|
+
"chat-current",
|
|
566
|
+
"http://gateway/deliver/slack",
|
|
567
|
+
"assistant-current",
|
|
568
|
+
{ messageId: "msg-current-silent", sinceMessageId: "msg-current-user" },
|
|
569
|
+
);
|
|
570
|
+
|
|
571
|
+
expect(deliveryCalls).toHaveLength(1);
|
|
572
|
+
expect(deliveryCalls[0].payload.text).toBe("current answer");
|
|
573
|
+
});
|
|
574
|
+
|
|
575
|
+
// A bare-sentinel row never delivers its attachments (marker rows suppress
|
|
576
|
+
// attachment delivery), so attachments alone must not make the row count
|
|
577
|
+
// as the turn's real reply and stop the fall-through.
|
|
578
|
+
it("falls through a bare no_response row with attachments to the turn's real reply", async () => {
|
|
579
|
+
conversationMessages.push(
|
|
580
|
+
{ id: "msg-current-user", role: "user", content: "current prompt" },
|
|
581
|
+
{
|
|
582
|
+
id: "msg-current-text",
|
|
583
|
+
role: "assistant",
|
|
584
|
+
content: '[{"type":"text","text":"current answer"}]',
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
id: "msg-current-silent",
|
|
588
|
+
role: "assistant",
|
|
589
|
+
content: '[{"type":"text","text":"<no_response/>"}]',
|
|
590
|
+
},
|
|
591
|
+
);
|
|
592
|
+
attachmentsByMessageId.set("msg-current-silent", [
|
|
593
|
+
{
|
|
594
|
+
id: "att-silent",
|
|
595
|
+
originalFilename: "chart.png",
|
|
596
|
+
mimeType: "image/png",
|
|
597
|
+
sizeBytes: 10,
|
|
598
|
+
kind: "generated",
|
|
599
|
+
},
|
|
600
|
+
]);
|
|
601
|
+
const silentStub = {
|
|
602
|
+
text: "<no_response/>",
|
|
603
|
+
textSegments: ["<no_response/>"],
|
|
604
|
+
toolCalls: [],
|
|
605
|
+
toolCallsBeforeText: false,
|
|
606
|
+
contentOrder: ["text:0"],
|
|
607
|
+
surfaces: [],
|
|
608
|
+
thinkingSegments: [],
|
|
609
|
+
};
|
|
610
|
+
const answerStub = {
|
|
611
|
+
text: "current answer",
|
|
612
|
+
textSegments: ["current answer"],
|
|
613
|
+
toolCalls: [],
|
|
614
|
+
toolCallsBeforeText: false,
|
|
615
|
+
contentOrder: ["text:0"],
|
|
616
|
+
surfaces: [],
|
|
617
|
+
thinkingSegments: [],
|
|
618
|
+
};
|
|
619
|
+
// messageId branch reads the targeted silent row, the turn scan reads
|
|
620
|
+
// the silent row then the text row, and delivery re-reads the text row.
|
|
621
|
+
renderedHistoryContentQueue.push(
|
|
622
|
+
silentStub,
|
|
623
|
+
silentStub,
|
|
624
|
+
answerStub,
|
|
625
|
+
answerStub,
|
|
626
|
+
);
|
|
627
|
+
|
|
628
|
+
await deliverReplyViaCallback(
|
|
629
|
+
"conv-1",
|
|
630
|
+
"chat-current",
|
|
631
|
+
"http://gateway/deliver/slack",
|
|
632
|
+
"assistant-current",
|
|
633
|
+
{ messageId: "msg-current-silent", sinceMessageId: "msg-current-user" },
|
|
634
|
+
);
|
|
635
|
+
|
|
636
|
+
expect(deliveryCalls).toHaveLength(1);
|
|
637
|
+
expect(deliveryCalls[0].payload.text).toBe("current answer");
|
|
638
|
+
});
|
|
639
|
+
|
|
482
640
|
it("skips already-delivered segments when startFromSegment is set", async () => {
|
|
483
641
|
await deliverRenderedReplyViaCallback({
|
|
484
642
|
callbackUrl: "http://gateway/deliver/telegram",
|
|
@@ -703,6 +861,57 @@ describe("channel-reply-delivery", () => {
|
|
|
703
861
|
expect(deliveryCalls[0].payload.text).toBe("Real response.");
|
|
704
862
|
});
|
|
705
863
|
|
|
864
|
+
it("strips a prefixed inline <no_response/> and delivers the rest of the segment", async () => {
|
|
865
|
+
await deliverRenderedReplyViaCallback({
|
|
866
|
+
callbackUrl: "http://gateway/deliver/telegram",
|
|
867
|
+
chatId: "chat-inline-prefix",
|
|
868
|
+
textSegments: ["<no_response/>\n\nReal reply."],
|
|
869
|
+
interSegmentDelayMs: 0,
|
|
870
|
+
});
|
|
871
|
+
|
|
872
|
+
expect(deliveryCalls).toHaveLength(1);
|
|
873
|
+
expect(deliveryCalls[0].payload.text).toBe("Real reply.");
|
|
874
|
+
});
|
|
875
|
+
|
|
876
|
+
it("strips a trailing inline <no_response/> and delivers the rest of the segment", async () => {
|
|
877
|
+
await deliverRenderedReplyViaCallback({
|
|
878
|
+
callbackUrl: "http://gateway/deliver/telegram",
|
|
879
|
+
chatId: "chat-inline-trailing",
|
|
880
|
+
textSegments: ["Real reply.\n\n<no_response/>"],
|
|
881
|
+
interSegmentDelayMs: 0,
|
|
882
|
+
});
|
|
883
|
+
|
|
884
|
+
expect(deliveryCalls).toHaveLength(1);
|
|
885
|
+
expect(deliveryCalls[0].payload.text).toBe("Real reply.");
|
|
886
|
+
});
|
|
887
|
+
|
|
888
|
+
it("never leaks the sentinel into delivered text, including the fallback path", async () => {
|
|
889
|
+
await deliverRenderedReplyViaCallback({
|
|
890
|
+
callbackUrl: "http://gateway/deliver/telegram",
|
|
891
|
+
chatId: "chat-fallback-strip",
|
|
892
|
+
textSegments: [],
|
|
893
|
+
fallbackText: "Fallback reply. <no_response/>",
|
|
894
|
+
interSegmentDelayMs: 0,
|
|
895
|
+
});
|
|
896
|
+
|
|
897
|
+
expect(deliveryCalls).toHaveLength(1);
|
|
898
|
+
expect(deliveryCalls[0].payload.text).toBe("Fallback reply.");
|
|
899
|
+
for (const call of deliveryCalls) {
|
|
900
|
+
expect(String(call.payload.text)).not.toContain("<no_response");
|
|
901
|
+
}
|
|
902
|
+
});
|
|
903
|
+
|
|
904
|
+
it("suppresses delivery for a case-insensitive bare sentinel", async () => {
|
|
905
|
+
await deliverRenderedReplyViaCallback({
|
|
906
|
+
callbackUrl: "http://gateway/deliver/slack",
|
|
907
|
+
chatId: "chat-silent-case",
|
|
908
|
+
textSegments: ["<NO_RESPONSE/>"],
|
|
909
|
+
interSegmentDelayMs: 0,
|
|
910
|
+
});
|
|
911
|
+
|
|
912
|
+
expect(deliveryCalls).toHaveLength(0);
|
|
913
|
+
});
|
|
914
|
+
|
|
706
915
|
it("passes startFromSegment through deliverReplyViaCallback options", async () => {
|
|
707
916
|
conversationMessages.push(
|
|
708
917
|
{ id: "msg-u", role: "user", content: "hi" },
|
|
@@ -596,9 +596,7 @@ describe("loadConfig startup behavior", () => {
|
|
|
596
596
|
expect(config.llm.profiles.balanced?.model).toBe(
|
|
597
597
|
"accounts/fireworks/models/glm-5p2",
|
|
598
598
|
);
|
|
599
|
-
expect(config.llm.profiles.balanced?.provider_connection).toBe(
|
|
600
|
-
"fireworks-managed",
|
|
601
|
-
);
|
|
599
|
+
expect(config.llm.profiles.balanced?.provider_connection).toBe("vellum");
|
|
602
600
|
|
|
603
601
|
const raw = JSON.parse(readFileSync(CONFIG_PATH, "utf-8"));
|
|
604
602
|
expect(raw.llm.default).toEqual({
|
|
@@ -639,9 +637,7 @@ describe("loadConfig startup behavior", () => {
|
|
|
639
637
|
expect(config.llm.profiles.balanced?.model).toBe(
|
|
640
638
|
"accounts/fireworks/models/glm-5p2",
|
|
641
639
|
);
|
|
642
|
-
expect(config.llm.profiles.balanced?.provider_connection).toBe(
|
|
643
|
-
"fireworks-managed",
|
|
644
|
-
);
|
|
640
|
+
expect(config.llm.profiles.balanced?.provider_connection).toBe("vellum");
|
|
645
641
|
// No user profiles created on platform.
|
|
646
642
|
expect(config.llm.profiles["custom-balanced"]).toBeUndefined();
|
|
647
643
|
});
|
|
@@ -684,9 +680,7 @@ describe("loadConfig startup behavior", () => {
|
|
|
684
680
|
);
|
|
685
681
|
// Managed balanced profile is seeded for fireworks-managed (GLM 5.2).
|
|
686
682
|
expect(raw.llm.profiles.balanced.provider).toBe("fireworks");
|
|
687
|
-
expect(raw.llm.profiles.balanced.provider_connection).toBe(
|
|
688
|
-
"fireworks-managed",
|
|
689
|
-
);
|
|
683
|
+
expect(raw.llm.profiles.balanced.provider_connection).toBe("vellum");
|
|
690
684
|
});
|
|
691
685
|
|
|
692
686
|
test("on-platform re-hatch resets active profile to balanced", () => {
|
|
@@ -720,9 +714,7 @@ describe("loadConfig startup behavior", () => {
|
|
|
720
714
|
// On-platform: no user profiles created, active resets to managed balanced.
|
|
721
715
|
expect(raw.llm.activeProfile).toBe("balanced");
|
|
722
716
|
expect(raw.llm.profiles.balanced.provider).toBe("fireworks");
|
|
723
|
-
expect(raw.llm.profiles.balanced.provider_connection).toBe(
|
|
724
|
-
"fireworks-managed",
|
|
725
|
-
);
|
|
717
|
+
expect(raw.llm.profiles.balanced.provider_connection).toBe("vellum");
|
|
726
718
|
// The old custom-balanced is preserved on disk but no longer active.
|
|
727
719
|
expect(raw.llm.profiles["custom-balanced"].provider).toBe("openai");
|
|
728
720
|
});
|
|
@@ -848,9 +840,7 @@ describe("loadConfig startup behavior", () => {
|
|
|
848
840
|
// Managed profiles are also seeded. Balanced now serves GLM 5.2 on
|
|
849
841
|
// Fireworks (the model Quality used to carry).
|
|
850
842
|
expect(raw.llm.profiles.balanced.provider).toBe("fireworks");
|
|
851
|
-
expect(raw.llm.profiles.balanced.provider_connection).toBe(
|
|
852
|
-
"fireworks-managed",
|
|
853
|
-
);
|
|
843
|
+
expect(raw.llm.profiles.balanced.provider_connection).toBe("vellum");
|
|
854
844
|
expect(raw.llm.profiles.balanced.model).toBe(
|
|
855
845
|
"accounts/fireworks/models/glm-5p2",
|
|
856
846
|
);
|
|
@@ -890,9 +880,7 @@ describe("loadConfig startup behavior", () => {
|
|
|
890
880
|
expect(raw.llm.profiles.balanced.model).toBe(
|
|
891
881
|
"accounts/fireworks/models/glm-5p2",
|
|
892
882
|
);
|
|
893
|
-
expect(raw.llm.profiles.balanced.provider_connection).toBe(
|
|
894
|
-
"fireworks-managed",
|
|
895
|
-
);
|
|
883
|
+
expect(raw.llm.profiles.balanced.provider_connection).toBe("vellum");
|
|
896
884
|
expect(raw.llm.activeProfile).toBe("balanced");
|
|
897
885
|
});
|
|
898
886
|
|
|
@@ -961,9 +949,7 @@ describe("loadConfig startup behavior", () => {
|
|
|
961
949
|
// The template carries no topP, and the previous entry had none, so the
|
|
962
950
|
// reconciled profile has no topP override.
|
|
963
951
|
expect("topP" in raw.llm.profiles.balanced).toBe(false);
|
|
964
|
-
expect(raw.llm.profiles.balanced.provider_connection).toBe(
|
|
965
|
-
"fireworks-managed",
|
|
966
|
-
);
|
|
952
|
+
expect(raw.llm.profiles.balanced.provider_connection).toBe("vellum");
|
|
967
953
|
expect(raw.llm.activeProfile).toBe("balanced");
|
|
968
954
|
});
|
|
969
955
|
|
|
@@ -1234,7 +1220,7 @@ describe("loadConfig startup behavior", () => {
|
|
|
1234
1220
|
expect(afterRestart.llm.activeProfile).toBe("balanced");
|
|
1235
1221
|
expect(afterRestart.llm.profiles.balanced.provider).toBe("fireworks");
|
|
1236
1222
|
expect(afterRestart.llm.profiles.balanced.provider_connection).toBe(
|
|
1237
|
-
"
|
|
1223
|
+
"vellum",
|
|
1238
1224
|
);
|
|
1239
1225
|
expect(afterRestart.llm.profiles.balanced.model).toBe(
|
|
1240
1226
|
"accounts/fireworks/models/glm-5p2",
|
|
@@ -1574,19 +1560,13 @@ describe("seedInferenceProfiles BYOK-mode managed profile labels", () => {
|
|
|
1574
1560
|
const raw = JSON.parse(readFileSync(CONFIG_PATH, "utf-8"));
|
|
1575
1561
|
|
|
1576
1562
|
expect(raw.llm.activeProfile).toBe("balanced");
|
|
1577
|
-
//
|
|
1578
|
-
// `
|
|
1579
|
-
//
|
|
1580
|
-
// profile, `
|
|
1581
|
-
expect(raw.llm.advisorProfile).toBe("
|
|
1582
|
-
expect(raw.llm.profiles.balanced.provider_connection).toBe(
|
|
1583
|
-
"fireworks-managed",
|
|
1584
|
-
);
|
|
1563
|
+
// All managed profiles now share the single `vellum` connection, so
|
|
1564
|
+
// selecting `balanced` at hatch activates that connection for every managed
|
|
1565
|
+
// profile — none are disabled. The default advisor falls to the strongest
|
|
1566
|
+
// active managed profile, `quality-optimized`.
|
|
1567
|
+
expect(raw.llm.advisorProfile).toBe("quality-optimized");
|
|
1568
|
+
expect(raw.llm.profiles.balanced.provider_connection).toBe("vellum");
|
|
1585
1569
|
expect("status" in raw.llm.profiles.balanced).toBe(false);
|
|
1586
|
-
// Connections exist (status is no longer a connection-level concept).
|
|
1587
|
-
expect(getConnection(db, "anthropic-managed")).not.toBeNull();
|
|
1588
|
-
expect(getConnection(db, "openai-managed")).not.toBeNull();
|
|
1589
|
-
expect(getConnection(db, "gemini-managed")).not.toBeNull();
|
|
1590
1570
|
});
|
|
1591
1571
|
|
|
1592
1572
|
test("off-platform managed-inference hatch respects explicit non-managed active connection", () => {
|
|
@@ -1883,11 +1863,11 @@ describe("OS Beta managed profile template", () => {
|
|
|
1883
1863
|
const entry = materializeProfile(
|
|
1884
1864
|
OS_BETA_PROFILE_TEMPLATE,
|
|
1885
1865
|
"together",
|
|
1886
|
-
"
|
|
1866
|
+
"vellum",
|
|
1887
1867
|
);
|
|
1888
1868
|
|
|
1889
1869
|
expect(entry.model).toBe("MiniMaxAI/MiniMax-M3");
|
|
1890
|
-
expect(entry.provider_connection).toBe("
|
|
1870
|
+
expect(entry.provider_connection).toBe("vellum");
|
|
1891
1871
|
expect(entry.provider).toBe("together");
|
|
1892
1872
|
expect(entry.label).toBe("OS Beta");
|
|
1893
1873
|
expect(entry.source).toBe("managed");
|
|
@@ -120,6 +120,8 @@ mock.module("../persistence/embeddings/embedding-backend.js", () => ({
|
|
|
120
120
|
mock.module("../providers/inference/connections.js", () => ({
|
|
121
121
|
listConnections: () => [],
|
|
122
122
|
createConnection: () => ({ ok: false, error: { code: "already_exists" } }),
|
|
123
|
+
getConnection: () => null,
|
|
124
|
+
VELLUM_MANAGED_CONNECTION_NAME: "vellum",
|
|
123
125
|
PROVIDERS_REQUIRING_BASE_URL_AND_MODELS: new Set(["openai-compatible"]),
|
|
124
126
|
}));
|
|
125
127
|
|