@vellumai/credential-executor 0.12.6 → 0.12.7-staging.1

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.
@@ -24,6 +24,7 @@ describe("isChannelId", () => {
24
24
  // so these must remain canonical for that assertion to mean anything.
25
25
  expect(isChannelId("platform")).toBe(true);
26
26
  expect(isChannelId("vellum")).toBe(true);
27
+ expect(isChannelId("vellum-shared")).toBe(true);
27
28
  });
28
29
 
29
30
  test("includes discord", () => {
@@ -58,6 +59,7 @@ describe("botProviderForChannel and channelForBotProvider", () => {
58
59
  test("answer nothing for a channel without a bot, a person's grant, or an unknown key", () => {
59
60
  expect(botProviderForChannel("phone")).toBeUndefined();
60
61
  expect(botProviderForChannel("vellum")).toBeUndefined();
62
+ expect(botProviderForChannel("vellum-shared")).toBeUndefined();
61
63
  expect(botProviderForChannel("not-a-channel")).toBeUndefined();
62
64
  // `slack` is the person's integration standing beside the bot's key.
63
65
  expect(channelForBotProvider("slack")).toBeUndefined();
@@ -4,8 +4,9 @@
4
4
  *
5
5
  * A "channel" is an external messaging surface an actor can reach the
6
6
  * assistant through (Slack, Telegram, WhatsApp, phone, …) plus a couple of
7
- * internal ids (`vellum` for native app conversations, `platform` for the
8
- * internal control plane). This is the single source of truth for that set:
7
+ * internal ids (`vellum` for native app conversations, `vellum-shared` for
8
+ * conversations a guardian shares with a contact, `platform` for the internal
9
+ * control plane). This is the single source of truth for that set:
9
10
  *
10
11
  * One id, `plugin`, does not name a surface: it names *every* surface a plugin
11
12
  * brings. A plugin channel's real identity is the plugin, which is workspace
@@ -41,6 +42,9 @@ export const CHANNEL_IDS = [
41
42
  "a2a",
42
43
  "discord",
43
44
  "plugin",
45
+ // Internal id for conversations a guardian shares with a contact. It has no
46
+ // transport: the contact's own client holds the connection.
47
+ "vellum-shared",
44
48
  ] as const;
45
49
 
46
50
  export type ChannelId = (typeof CHANNEL_IDS)[number];
@@ -78,8 +82,8 @@ export function isChannelId(value: unknown): value is ChannelId {
78
82
  * here would be a second copy of a different fact.
79
83
  *
80
84
  * Channels absent from this map reach the assistant without a bot credential
81
- * of their own: `phone` through the voice provider, `vellum` and `platform`
82
- * internally.
85
+ * of their own: `phone` through the voice provider, `vellum`, `vellum-shared`
86
+ * and `platform` internally.
83
87
  */
84
88
  export const CHANNEL_BOT_PROVIDER = {
85
89
  slack: "slack_channel",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/credential-executor",
3
- "version": "0.12.6",
3
+ "version": "0.12.7-staging.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {