@vellumai/assistant 0.10.11-dev.202607221933.baa2119 → 0.10.11-dev.202607222129.31c06e5
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/node_modules/@vellumai/gateway-client/src/__tests__/binding-strength-contract.test.ts +122 -0
- package/node_modules/@vellumai/gateway-client/src/binding-strength-contract.ts +155 -0
- package/node_modules/@vellumai/gateway-client/src/index.ts +14 -0
- package/package.json +1 -1
- package/src/__tests__/approval-source-link.test.ts +208 -0
- package/src/__tests__/btw-routes.test.ts +13 -2
- package/src/__tests__/conversation-store-ephemeral.test.ts +182 -0
- package/src/__tests__/plugin-import-boundary-guard.test.ts +1 -1
- package/src/__tests__/slack-notification-approval-card.test.ts +103 -20
- package/src/__tests__/tool-approval-seed-content-blocks.test.ts +179 -96
- package/src/__tests__/ui-choice-copy-surfaces.test.ts +144 -3
- package/src/api/events/memory-recalled.ts +59 -0
- package/src/api/events/memory-status.ts +29 -0
- package/src/api/events/service-group-update-complete.ts +29 -0
- package/src/api/events/service-group-update-progress.ts +23 -0
- package/src/api/events/service-group-update-starting.ts +26 -0
- package/src/api/index.ts +36 -1
- package/src/api/surfaces.ts +77 -21
- package/src/calls/__tests__/voice-triage-escalate.test.ts +58 -3
- package/src/calls/voice-session-bridge.ts +6 -2
- package/src/calls/voice-triage-escalate.ts +30 -1
- package/src/config/feature-flag-registry.json +9 -0
- package/src/daemon/conversation-store.ts +14 -2
- package/src/daemon/conversation-surfaces.ts +78 -168
- package/src/daemon/conversation-tool-setup.ts +7 -3
- package/src/daemon/handlers/shared.ts +11 -1
- package/src/daemon/message-types/memory.ts +8 -46
- package/src/daemon/message-types/surfaces.ts +1 -1
- package/src/daemon/message-types/upgrades.ts +11 -28
- package/src/daemon/trust-context-types.ts +8 -0
- package/src/messaging/channel-binding-schema.ts +6 -2
- package/src/messaging/providers/slack/approval-source.ts +87 -0
- package/src/messaging/providers/slack/deep-link.ts +45 -8
- package/src/messaging/providers/slack/message-metadata.ts +16 -0
- package/src/notifications/AGENTS.md +2 -0
- package/src/notifications/access-request-copy.ts +10 -21
- package/src/notifications/adapters/slack.ts +67 -13
- package/src/notifications/approval-card-data.ts +58 -16
- package/src/notifications/broadcaster.ts +41 -19
- package/src/notifications/guardian-question-mode.ts +81 -0
- package/src/notifications/types.ts +5 -0
- package/src/persistence/delivery-crud.ts +48 -1
- package/src/persistence/migrations/347-delete-stray-greeting-conversation.ts +46 -0
- package/src/persistence/migrations/__tests__/347-delete-stray-greeting-conversation.test.ts +100 -0
- package/src/persistence/steps.ts +2 -0
- package/src/plugins/defaults/memory/hooks/user-prompt-submit.ts +2 -2
- package/src/plugins/mtime-cache.ts +21 -10
- package/src/runtime/approval-source-link.ts +107 -0
- package/src/runtime/confirmation-request-guardian-bridge.ts +9 -0
- package/src/runtime/introduction-policy.ts +23 -54
- package/src/runtime/routes/btw-routes.ts +9 -2
- package/src/runtime/routes/inbound-message-handler.ts +5 -13
- package/src/runtime/routes/upgrade-broadcast-routes.ts +6 -8
- package/src/runtime/tool-grant-request-helper.ts +14 -0
- package/src/tools/registry.ts +26 -17
- package/src/tools/tool-approval-handler.ts +2 -0
- package/src/tools/types.ts +8 -0
- package/src/tools/ui-surface/definitions.ts +20 -16
- package/src/tools/ui-surface/surface-shape-docs.ts +21 -6
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Regression: an ephemeral `getOrCreateConversation` call (the empty-state
|
|
3
|
+
* greeting side-chain via POST /v1/btw) must NOT persist a `conversations`
|
|
4
|
+
* row. A persisted row surfaces as an "Untitled" conversation with the literal
|
|
5
|
+
* id "greeting" in every client's sidebar. A normal (non-ephemeral) call still
|
|
6
|
+
* creates the row so real conversations remain sidebar-visible.
|
|
7
|
+
*
|
|
8
|
+
* The DB layer is mocked so the assertion targets exactly the row-creation
|
|
9
|
+
* decision inside `getOrCreateConversation` (`createConversation` /
|
|
10
|
+
* `ensureConversationExists`) rather than the surrounding provider wiring.
|
|
11
|
+
*/
|
|
12
|
+
import { describe, expect, mock, test } from "bun:test";
|
|
13
|
+
|
|
14
|
+
import type { Message } from "../providers/types.js";
|
|
15
|
+
import { setConfig } from "./helpers/set-config.js";
|
|
16
|
+
|
|
17
|
+
const mockProviderStub = { name: "mock-provider" };
|
|
18
|
+
mock.module("../providers/registry.js", () => ({
|
|
19
|
+
getProvider: () => mockProviderStub,
|
|
20
|
+
initializeProviders: async () => {},
|
|
21
|
+
listProviders: () => ["anthropic", "openai", "gemini"],
|
|
22
|
+
resolveProviderFromConnection: async () => mockProviderStub,
|
|
23
|
+
}));
|
|
24
|
+
|
|
25
|
+
mock.module("../providers/inference/connections.js", () => ({
|
|
26
|
+
getConnection: (_db: unknown, name: string) => ({
|
|
27
|
+
id: 1,
|
|
28
|
+
name,
|
|
29
|
+
provider: "anthropic",
|
|
30
|
+
auth_strategy: "user_managed_credential",
|
|
31
|
+
credential_alias: null,
|
|
32
|
+
metadata_json: null,
|
|
33
|
+
created_at: new Date().toISOString(),
|
|
34
|
+
updated_at: new Date().toISOString(),
|
|
35
|
+
}),
|
|
36
|
+
}));
|
|
37
|
+
|
|
38
|
+
setConfig("llm", {
|
|
39
|
+
callSites: {
|
|
40
|
+
mainAgent: {
|
|
41
|
+
provider: "anthropic",
|
|
42
|
+
provider_connection: "anthropic-conn",
|
|
43
|
+
model: "claude-opus-4-6",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
setConfig("memory", { enabled: false, v2: { enabled: false } });
|
|
48
|
+
|
|
49
|
+
mock.module("../prompts/system-prompt.js", () => ({
|
|
50
|
+
buildSystemPrompt: () => "system prompt",
|
|
51
|
+
}));
|
|
52
|
+
|
|
53
|
+
mock.module("../prompts/persona-resolver.js", () => ({
|
|
54
|
+
resolvePersonaContext: () => ({
|
|
55
|
+
userPersona: undefined,
|
|
56
|
+
channelPersona: undefined,
|
|
57
|
+
userSlug: undefined,
|
|
58
|
+
}),
|
|
59
|
+
}));
|
|
60
|
+
|
|
61
|
+
mock.module("../permissions/trust-store.js", () => ({
|
|
62
|
+
clearCache: () => {},
|
|
63
|
+
}));
|
|
64
|
+
|
|
65
|
+
mock.module("../security/secret-allowlist.js", () => ({
|
|
66
|
+
resetAllowlist: () => {},
|
|
67
|
+
}));
|
|
68
|
+
|
|
69
|
+
mock.module("../workspace/turn-commit.js", () => ({
|
|
70
|
+
commitTurnChanges: async () => {},
|
|
71
|
+
}));
|
|
72
|
+
|
|
73
|
+
mock.module("../workspace/git-service.js", () => ({
|
|
74
|
+
getWorkspaceGitService: () => ({
|
|
75
|
+
ensureInitialized: async () => {},
|
|
76
|
+
commitIfDirty: async () => ({ committed: false }),
|
|
77
|
+
}),
|
|
78
|
+
}));
|
|
79
|
+
|
|
80
|
+
// The row-creation spies. `getConversation` returns null so the conversation
|
|
81
|
+
// reads as brand-new — the branch that would create a row.
|
|
82
|
+
const mockCreateConversation = mock((_opts?: unknown) => ({ id: "conv-x" }));
|
|
83
|
+
const mockEnsureConversationExists = mock((_id: string) => true);
|
|
84
|
+
|
|
85
|
+
mock.module("../persistence/conversation-crud.js", () => ({
|
|
86
|
+
ADOPTABLE_CONVERSATION_ID_RE: /^[A-Za-z0-9_-]{1,128}$/,
|
|
87
|
+
createConversation: mockCreateConversation,
|
|
88
|
+
ensureConversationExists: mockEnsureConversationExists,
|
|
89
|
+
getConversation: () => null,
|
|
90
|
+
getMessages: () => [],
|
|
91
|
+
setConversationProcessingStartedAt: () => {},
|
|
92
|
+
isConversationProcessing: () => false,
|
|
93
|
+
}));
|
|
94
|
+
|
|
95
|
+
mock.module("../persistence/conversation-queries.js", () => ({
|
|
96
|
+
listConversations: () => [],
|
|
97
|
+
}));
|
|
98
|
+
|
|
99
|
+
mock.module("../memory/retriever.js", () => ({
|
|
100
|
+
buildMemoryRecall: async () => ({
|
|
101
|
+
enabled: false,
|
|
102
|
+
degraded: false,
|
|
103
|
+
injectedText: "",
|
|
104
|
+
semanticHits: 0,
|
|
105
|
+
injectedTokens: 0,
|
|
106
|
+
latencyMs: 0,
|
|
107
|
+
}),
|
|
108
|
+
injectMemoryRecallAsUserBlock: (msgs: Message[]) => msgs,
|
|
109
|
+
}));
|
|
110
|
+
|
|
111
|
+
mock.module("../agent/loop.js", () => ({
|
|
112
|
+
AgentLoop: class {
|
|
113
|
+
constructor() {}
|
|
114
|
+
getToolTokenBudget() {
|
|
115
|
+
return 0;
|
|
116
|
+
}
|
|
117
|
+
getResolvedTools() {
|
|
118
|
+
return [];
|
|
119
|
+
}
|
|
120
|
+
async run(options: { messages: Message[] }): Promise<Message[]> {
|
|
121
|
+
return [
|
|
122
|
+
...options.messages,
|
|
123
|
+
{ role: "assistant", content: [{ type: "text", text: "ok" }] },
|
|
124
|
+
];
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
}));
|
|
128
|
+
|
|
129
|
+
mock.module("../plugins/defaults/compaction/window-manager.js", () => ({
|
|
130
|
+
ContextWindowManager: class {
|
|
131
|
+
estimateInputTokens() {
|
|
132
|
+
return 0;
|
|
133
|
+
}
|
|
134
|
+
get tokenCountInputs() {
|
|
135
|
+
return { systemPrompt: "", tools: undefined };
|
|
136
|
+
}
|
|
137
|
+
constructor() {}
|
|
138
|
+
updateConfig() {}
|
|
139
|
+
shouldCompact() {
|
|
140
|
+
return { needed: false, estimatedTokens: 0 };
|
|
141
|
+
}
|
|
142
|
+
async maybeCompact() {
|
|
143
|
+
return { compacted: false };
|
|
144
|
+
}
|
|
145
|
+
resetOverflowRecovery() {}
|
|
146
|
+
},
|
|
147
|
+
createContextSummaryMessage: () => ({
|
|
148
|
+
role: "user",
|
|
149
|
+
content: [{ type: "text", text: "summary" }],
|
|
150
|
+
}),
|
|
151
|
+
getSummaryFromContextMessage: () => null,
|
|
152
|
+
}));
|
|
153
|
+
|
|
154
|
+
import {
|
|
155
|
+
clearAllActiveConversations,
|
|
156
|
+
getOrCreateConversation,
|
|
157
|
+
} from "../daemon/conversation-store.js";
|
|
158
|
+
|
|
159
|
+
describe("getOrCreateConversation ephemeral flag", () => {
|
|
160
|
+
test("ephemeral call does not persist a conversations row", async () => {
|
|
161
|
+
clearAllActiveConversations();
|
|
162
|
+
mockCreateConversation.mockClear();
|
|
163
|
+
mockEnsureConversationExists.mockClear();
|
|
164
|
+
|
|
165
|
+
await getOrCreateConversation("greeting", { ephemeral: true });
|
|
166
|
+
|
|
167
|
+
expect(mockEnsureConversationExists).not.toHaveBeenCalled();
|
|
168
|
+
expect(mockCreateConversation).not.toHaveBeenCalled();
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
test("non-ephemeral call persists a conversations row", async () => {
|
|
172
|
+
clearAllActiveConversations();
|
|
173
|
+
mockCreateConversation.mockClear();
|
|
174
|
+
mockEnsureConversationExists.mockClear();
|
|
175
|
+
|
|
176
|
+
await getOrCreateConversation("real-conversation-id");
|
|
177
|
+
|
|
178
|
+
expect(mockEnsureConversationExists).toHaveBeenCalledWith(
|
|
179
|
+
"real-conversation-id",
|
|
180
|
+
);
|
|
181
|
+
});
|
|
182
|
+
});
|
|
@@ -102,6 +102,7 @@ const BASELINE: Record<string, readonly string[]> = {
|
|
|
102
102
|
"../../../../../runtime/background-job-runner.js",
|
|
103
103
|
"../../../../../security/untrusted-content.js",
|
|
104
104
|
"../../../../agent/image-optimize.js",
|
|
105
|
+
"../../../../api/events/memory-recalled.js",
|
|
105
106
|
"../../../../api/responses/memory-v3-selection-log.js",
|
|
106
107
|
"../../../../config/assistant-feature-flags.js",
|
|
107
108
|
"../../../../config/default-profile-catalog.js",
|
|
@@ -117,7 +118,6 @@ const BASELINE: Record<string, readonly string[]> = {
|
|
|
117
118
|
"../../../../daemon/conversation-registry.js",
|
|
118
119
|
"../../../../daemon/conversation-runtime-assembly.js",
|
|
119
120
|
"../../../../daemon/message-protocol.js",
|
|
120
|
-
"../../../../daemon/message-types/memory.js",
|
|
121
121
|
"../../../../daemon/trust-context.js",
|
|
122
122
|
"../../../../daemon/turn-latency-sub-spans.js",
|
|
123
123
|
"../../../../persistence/checkpoints.js",
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
|
|
3
|
+
import type {
|
|
4
|
+
CardBlock,
|
|
5
|
+
ContextBlock,
|
|
6
|
+
KnownBlock,
|
|
7
|
+
MrkdwnElement,
|
|
8
|
+
PlainTextElement,
|
|
9
|
+
SectionBlock,
|
|
10
|
+
} from "@slack/types";
|
|
11
|
+
|
|
3
12
|
import { parseAccessRequestPayload } from "../notifications/access-request-copy.js";
|
|
4
13
|
import { buildApprovalNotificationBlocks } from "../notifications/adapters/slack.js";
|
|
5
14
|
import type { ChannelDeliveryPayload } from "../notifications/types.js";
|
|
@@ -35,27 +44,28 @@ function buildPayload(
|
|
|
35
44
|
};
|
|
36
45
|
}
|
|
37
46
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
// Narrowing helpers over the `@slack/types` block union so assertions read
|
|
48
|
+
// typed fields — a block-contract change fails compilation here instead of
|
|
49
|
+
// slipping through a cast.
|
|
50
|
+
function card(blocks: KnownBlock[]): CardBlock {
|
|
51
|
+
const c = blocks.find((b): b is CardBlock => b.type === "card");
|
|
42
52
|
if (!c) {
|
|
43
53
|
throw new Error("no card block");
|
|
44
54
|
}
|
|
45
55
|
return c;
|
|
46
56
|
}
|
|
47
57
|
|
|
48
|
-
function contextTexts(blocks:
|
|
49
|
-
return
|
|
50
|
-
.filter((b) => b.type === "context")
|
|
51
|
-
.map((b) =>
|
|
52
|
-
const elements = b.elements as Array<{ text: string }>;
|
|
53
|
-
return elements.map((e) => e.text).join("");
|
|
54
|
-
});
|
|
58
|
+
function contextTexts(blocks: KnownBlock[]): string[] {
|
|
59
|
+
return blocks
|
|
60
|
+
.filter((b): b is ContextBlock => b.type === "context")
|
|
61
|
+
.map((b) => b.elements.map((e) => ("text" in e ? e.text : "")).join(""));
|
|
55
62
|
}
|
|
56
63
|
|
|
57
|
-
function text(node:
|
|
58
|
-
|
|
64
|
+
function text(node: MrkdwnElement | PlainTextElement | undefined): string {
|
|
65
|
+
if (!node) {
|
|
66
|
+
throw new Error("expected a text element");
|
|
67
|
+
}
|
|
68
|
+
return node.text;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
71
|
const BASE: Record<string, unknown> = {
|
|
@@ -81,7 +91,7 @@ describe("Slack access-request card blocks", () => {
|
|
|
81
91
|
|
|
82
92
|
test("card actions encode the apr:<requestId>:<action> callback ids", () => {
|
|
83
93
|
const c = card(buildApprovalNotificationBlocks(buildPayload(BASE), "msg"));
|
|
84
|
-
const actions = c.actions
|
|
94
|
+
const actions = c.actions ?? [];
|
|
85
95
|
expect(actions).toHaveLength(2);
|
|
86
96
|
expect(actions[0].action_id).toBe("apr:req-123:approve_once");
|
|
87
97
|
expect(actions[0].style).toBe("primary");
|
|
@@ -136,7 +146,7 @@ describe("Slack access-request card blocks", () => {
|
|
|
136
146
|
);
|
|
137
147
|
// `subtext` is not a Slack card field; warnings must live in a real block
|
|
138
148
|
// or Slack drops them and the guardian never sees them.
|
|
139
|
-
expect(card(blocks)
|
|
149
|
+
expect("subtext" in card(blocks)).toBe(false);
|
|
140
150
|
const warning = contextTexts(blocks).find((t) => t.includes(":warning:"));
|
|
141
151
|
expect(warning).toBeDefined();
|
|
142
152
|
expect(warning).toContain(":warning: This user was previously revoked.");
|
|
@@ -148,7 +158,7 @@ describe("Slack access-request card blocks", () => {
|
|
|
148
158
|
|
|
149
159
|
test("no warning context block when there are no warnings", () => {
|
|
150
160
|
const blocks = buildApprovalNotificationBlocks(buildPayload(BASE), "msg");
|
|
151
|
-
expect(card(blocks)
|
|
161
|
+
expect("subtext" in card(blocks)).toBe(false);
|
|
152
162
|
expect(contextTexts(blocks).some((t) => t.includes(":warning:"))).toBe(
|
|
153
163
|
false,
|
|
154
164
|
);
|
|
@@ -192,18 +202,21 @@ const TOOL_APPROVAL: ApprovalUIMetadata = {
|
|
|
192
202
|
},
|
|
193
203
|
};
|
|
194
204
|
|
|
195
|
-
function buildToolApprovalPayload(
|
|
205
|
+
function buildToolApprovalPayload(
|
|
206
|
+
toolApprovalSource?: ChannelDeliveryPayload["toolApprovalSource"],
|
|
207
|
+
): ChannelDeliveryPayload {
|
|
196
208
|
return {
|
|
197
209
|
sourceEventName: "guardian.question",
|
|
198
210
|
copy: { title: "Guardian Question", body: "Approve tool: bash" },
|
|
199
211
|
urgency: "high",
|
|
200
212
|
approvalContext: TOOL_APPROVAL,
|
|
213
|
+
toolApprovalSource,
|
|
201
214
|
};
|
|
202
215
|
}
|
|
203
216
|
|
|
204
|
-
function sectionTexts(blocks:
|
|
205
|
-
return
|
|
206
|
-
.filter((b) => b.type === "section")
|
|
217
|
+
function sectionTexts(blocks: KnownBlock[]): string[] {
|
|
218
|
+
return blocks
|
|
219
|
+
.filter((b): b is SectionBlock => b.type === "section")
|
|
207
220
|
.map((b) => text(b.text));
|
|
208
221
|
}
|
|
209
222
|
|
|
@@ -260,4 +273,74 @@ describe("Slack tool-approval card blocks", () => {
|
|
|
260
273
|
expect(text(card(blocks).body)).toBe(`${"a".repeat(190)} ↓`);
|
|
261
274
|
expect(sectionTexts(blocks)[0]).toBe(`… ${"b".repeat(60)}`);
|
|
262
275
|
});
|
|
276
|
+
|
|
277
|
+
test("Slack DM source reference renders a source context block with permalink", () => {
|
|
278
|
+
const blocks = buildApprovalNotificationBlocks(
|
|
279
|
+
buildToolApprovalPayload({
|
|
280
|
+
channel: "slack",
|
|
281
|
+
chatId: "D01XYZ",
|
|
282
|
+
isSlackDm: true,
|
|
283
|
+
permalink: "https://slack.com/archives/D01XYZ/p1700000000000100",
|
|
284
|
+
}),
|
|
285
|
+
"msg",
|
|
286
|
+
);
|
|
287
|
+
expect(contextTexts(blocks)).toContain(
|
|
288
|
+
"Source: Slack — Direct message · <https://slack.com/archives/D01XYZ/p1700000000000100|View message>",
|
|
289
|
+
);
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
test("Slack channel source renders a channel mention with permalink", () => {
|
|
293
|
+
const blocks = buildApprovalNotificationBlocks(
|
|
294
|
+
buildToolApprovalPayload({
|
|
295
|
+
channel: "slack",
|
|
296
|
+
chatId: "C01ABC",
|
|
297
|
+
isSlackDm: false,
|
|
298
|
+
permalink:
|
|
299
|
+
"https://slack.com/archives/C01ABC/p1700000001000200?thread_ts=1700000000.000100&cid=C01ABC",
|
|
300
|
+
}),
|
|
301
|
+
"msg",
|
|
302
|
+
);
|
|
303
|
+
expect(contextTexts(blocks)).toContain(
|
|
304
|
+
"Source: Slack — <#C01ABC> · <https://slack.com/archives/C01ABC/p1700000001000200?thread_ts=1700000000.000100&cid=C01ABC|View message>",
|
|
305
|
+
);
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
test("a non-Slack source with a link renders a generic source line", () => {
|
|
309
|
+
const blocks = buildApprovalNotificationBlocks(
|
|
310
|
+
buildToolApprovalPayload({
|
|
311
|
+
channel: "discord",
|
|
312
|
+
chatId: "chat-123",
|
|
313
|
+
isSlackDm: false,
|
|
314
|
+
permalink: "https://example.com/messages/42",
|
|
315
|
+
}),
|
|
316
|
+
"msg",
|
|
317
|
+
);
|
|
318
|
+
expect(contextTexts(blocks)).toContain(
|
|
319
|
+
"Source: discord · <https://example.com/messages/42|View message>",
|
|
320
|
+
);
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
test("no source context block without a source reference", () => {
|
|
324
|
+
const blocks = buildApprovalNotificationBlocks(
|
|
325
|
+
buildToolApprovalPayload(),
|
|
326
|
+
"msg",
|
|
327
|
+
);
|
|
328
|
+
expect(contextTexts(blocks).some((t) => t.startsWith("Source:"))).toBe(
|
|
329
|
+
false,
|
|
330
|
+
);
|
|
331
|
+
});
|
|
332
|
+
|
|
333
|
+
test("no source context block for a non-Slack source without a link", () => {
|
|
334
|
+
const blocks = buildApprovalNotificationBlocks(
|
|
335
|
+
buildToolApprovalPayload({
|
|
336
|
+
channel: "telegram",
|
|
337
|
+
chatId: "12345",
|
|
338
|
+
isSlackDm: false,
|
|
339
|
+
}),
|
|
340
|
+
"msg",
|
|
341
|
+
);
|
|
342
|
+
expect(contextTexts(blocks).some((t) => t.startsWith("Source:"))).toBe(
|
|
343
|
+
false,
|
|
344
|
+
);
|
|
345
|
+
});
|
|
263
346
|
});
|