vine-context 0.0.1 → 0.1.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.
- package/LICENSE +202 -0
- package/README.md +279 -3
- package/dist/apps/shell.html +149 -0
- package/dist/apps/views.html +144 -0
- package/dist/cli.js +7825 -0
- package/dist/cli.js.map +1 -0
- package/examples/data/graphs/party/.cypherlite/schema/schema.cypher +5 -0
- package/examples/data/graphs/party/.cypherlite.lock +1 -0
- package/examples/data/graphs/party/.cypherlite.writer +0 -0
- package/examples/data/graphs/party/manifest.json +215 -0
- package/examples/data/graphs/party/nodes/0-262144-7987dd27c85668d4810609133f705907.parquet +0 -0
- package/examples/data/graphs/party/wal/.cypherlite.lock +1 -0
- package/examples/data/graphs/party/wal/.cypherlite.writer +0 -0
- package/examples/data/graphs/party/wal/00000002.log +0 -0
- package/examples/data/hosts/party/changes.jsonl +19 -0
- package/examples/data/hosts/party/group.json +5 -0
- package/examples/data/hosts/party/sharing.json +1 -0
- package/examples/data/identity.json +4 -0
- package/models/temporal-claims/instructions.md +78 -0
- package/models/temporal-claims/model.yaml +99 -0
- package/models/temporal-claims/tools.yaml +344 -0
- package/package.json +71 -3
- package/plugin/.claude-plugin/plugin.json +8 -0
- package/plugin/.codex-plugin/plugin.json +17 -0
- package/plugin/.mcp.json +8 -0
- package/plugin/codex/hooks.json +11 -0
- package/plugin/commands/join.md +22 -0
- package/plugin/hooks/hooks.json +11 -0
- package/plugin/hooks/register.tsx +2310 -0
- package/plugin/hooks/vine-hook.mjs +25 -0
- package/plugin/skills/join-context-graph/SKILL.md +36 -0
- package/plugin/skills/vine-context/SKILL.md +235 -0
- package/plugin/tests/context-graph.test.tsx +830 -0
- package/plugin/types/index.d.ts +165 -0
|
@@ -0,0 +1,830 @@
|
|
|
1
|
+
import { expect, test } from 'claude-code/testing'
|
|
2
|
+
|
|
3
|
+
const now = Date.now()
|
|
4
|
+
const iso = (msAgo: number) => new Date(now - msAgo).toISOString()
|
|
5
|
+
|
|
6
|
+
const ACTIVITY = {
|
|
7
|
+
using: "your graph 'team'",
|
|
8
|
+
graph: 'team',
|
|
9
|
+
created_by: 'alice',
|
|
10
|
+
you: { name: 'alice', role: 'admin', fingerprint: 'aaaa-bbbb-cccc' },
|
|
11
|
+
sharing: true,
|
|
12
|
+
online: ['bob'],
|
|
13
|
+
members: 3,
|
|
14
|
+
people: [
|
|
15
|
+
{ name: 'alice', fingerprint: 'aaaa-bbbb-cccc', role: 'admin', you: true, creator: true, online: true, agent: null, platform: null },
|
|
16
|
+
{ name: 'bob', fingerprint: 'bbbb-cccc-dddd', role: 'contributor', you: false, creator: false, online: true, agent: 'claude-code', platform: 'macOS arm64' },
|
|
17
|
+
{ name: 'carol', fingerprint: 'cccc-dddd-eeee', role: 'reader', you: false, creator: false, online: false, agent: null, platform: null },
|
|
18
|
+
],
|
|
19
|
+
relays_up: 3,
|
|
20
|
+
changes: 7,
|
|
21
|
+
recent: [
|
|
22
|
+
{ id: 'x1', kind: 'claim', at: iso(5_000), by: 'alice', mine: true, summary: 'claimed: Mine, still held', node: 'c_held', held: true, shared_at: iso(-5_000) },
|
|
23
|
+
{ id: 'x2', kind: 'claim', at: iso(120_000), by: 'bob', mine: false, summary: 'claimed: The deploy caused it', node: 'c_bob', held: false, shared_at: null },
|
|
24
|
+
],
|
|
25
|
+
context: 'team',
|
|
26
|
+
description: 'What the team knows about the checkout slowdown',
|
|
27
|
+
contexts: [{ name: 'team', description: 'What the team knows about the checkout slowdown', role: 'admin', writes_here: true }],
|
|
28
|
+
folder: { folder: '/Users/alice/work/shop/services/checkout', linked: false, pinned: ['own'] },
|
|
29
|
+
your_contexts: ['infra', 'own', 'team'],
|
|
30
|
+
invites: [
|
|
31
|
+
{ id: 'inv_1', label: 'for Sam', role: 'contributor', code: 'vine1_room.secret', created_at: iso(60_000), expires_at: iso(-23 * 3600_000) },
|
|
32
|
+
{ id: 'inv_2', label: null, role: 'reader', code: 'vine1_room2.secret2', created_at: iso(120_000), expires_at: iso(-20 * 60_000) },
|
|
33
|
+
],
|
|
34
|
+
digest: [{ at: iso(1_000), lines: ['bob replaced your claim c_old "The outage lasts 4 minutes" with c_new "The outage lasts 6 minutes".'] }],
|
|
35
|
+
snapshot: {
|
|
36
|
+
nodes: [
|
|
37
|
+
{ id: 'Claim:c_held', key: 'c_held', label: 'Claim', title: 'Mine, still held', ended: false, props: { recorded_by: 'alice', recorded_at: iso(5_000) } },
|
|
38
|
+
{ id: 'Claim:c_bob', key: 'c_bob', label: 'Claim', title: 'The deploy caused it', ended: false, props: { recorded_by: 'bob', recorded_at: iso(120_000) } },
|
|
39
|
+
{ id: 'Question:q_1', key: 'q_1', label: 'Question', title: 'Why did it start at 13:58?', ended: false, props: { recorded_by: 'carol', recorded_at: iso(60_000) } },
|
|
40
|
+
{ id: 'Question:q_2', key: 'q_2', label: 'Question', title: 'Which day is the team lunch?', ended: false, props: { recorded_by: 'alice', recorded_at: iso(50_000) } },
|
|
41
|
+
{ id: 'Reply:r_1', key: 'r_1', label: 'Reply', title: 'Thursday suits most people', ended: false, props: { recorded_by: 'bob', recorded_at: iso(40_000) } },
|
|
42
|
+
{ id: 'Claim:c_cache', key: 'c_cache', label: 'Claim', title: 'The cache caused it', ended: false, props: { recorded_by: 'carol', recorded_at: iso(90_000), source: 'the cache dashboard' } },
|
|
43
|
+
{ id: 'Claim:c_new', key: 'c_new', label: 'Claim', title: 'The outage lasted 6 minutes', ended: false, props: { recorded_by: 'bob', recorded_at: iso(30_000) } },
|
|
44
|
+
{ id: 'Claim:c_old', key: 'c_old', label: 'Claim', title: 'The outage lasted 4 minutes', ended: false, props: { recorded_by: 'alice', recorded_at: iso(300_000) } },
|
|
45
|
+
{ id: 'Claim:c_gone', key: 'c_gone', label: 'Claim', title: 'It was a DNS problem', ended: true, props: { recorded_by: 'carol', recorded_at: iso(400_000), withdrawn_by: 'carol', withdrawn_at: iso(350_000), withdraw_reason: 'ruled out' } },
|
|
46
|
+
{ id: 'Reply:r_0', key: 'r_0', label: 'Reply', title: 'A withdrawn reply', ended: true, props: { recorded_by: 'bob', recorded_at: iso(45_000) } },
|
|
47
|
+
],
|
|
48
|
+
edges: [
|
|
49
|
+
{ type: 'ANSWERS', source: 'Claim:c_bob', target: 'Question:q_1' },
|
|
50
|
+
{ type: 'REPLIES_TO', source: 'Reply:r_1', target: 'Question:q_2' },
|
|
51
|
+
{ type: 'REPLIES_TO', source: 'Reply:r_0', target: 'Question:q_2' },
|
|
52
|
+
{ type: 'CONTRADICTS', source: 'Claim:c_cache', target: 'Claim:c_bob' },
|
|
53
|
+
{ type: 'REPLACES', source: 'Claim:c_new', target: 'Claim:c_old' },
|
|
54
|
+
{ type: 'SUPPORTS', source: 'Claim:c_held', target: 'Claim:c_bob' },
|
|
55
|
+
],
|
|
56
|
+
truncated: false,
|
|
57
|
+
},
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const DETAILS = {
|
|
61
|
+
name: 'team',
|
|
62
|
+
id: '0193-aaaa',
|
|
63
|
+
description: 'What the team knows about the checkout slowdown',
|
|
64
|
+
role: 'admin',
|
|
65
|
+
yours: true,
|
|
66
|
+
created_by: 'alice',
|
|
67
|
+
in_chat: true,
|
|
68
|
+
writes_here: true,
|
|
69
|
+
sharing: true,
|
|
70
|
+
members: 3,
|
|
71
|
+
online: 1,
|
|
72
|
+
items: { Claim: 6, Question: 2, Reply: 2 },
|
|
73
|
+
changes: 7,
|
|
74
|
+
held: 1,
|
|
75
|
+
open_invites: 2,
|
|
76
|
+
stored_at: '/data/graphs/team',
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const BAND = {
|
|
80
|
+
plugin: 'vine-context',
|
|
81
|
+
component: 'AbovePrompt',
|
|
82
|
+
props: { hasSurvey: false, isCollapsed: false, isWorking: false, maxRows: 4, bodyColumns: 100, scroll: { offset: 0, bodyRows: 4 }, view: {} },
|
|
83
|
+
} as const
|
|
84
|
+
const PANE = {
|
|
85
|
+
plugin: 'vine-context',
|
|
86
|
+
component: 'Pane',
|
|
87
|
+
requestId: 'context-graph',
|
|
88
|
+
props: { title: 'Context', isFocused: true, bodyColumns: 90, placement: 'dock', scroll: { offset: 0, bodyRows: 40 }, view: {} },
|
|
89
|
+
} as const
|
|
90
|
+
const RUN = { command: 'contexts', args: '', origin: { kind: 'composer' }, presentation: { isFullscreen: false, columns: 100 } } as const
|
|
91
|
+
const START = { cwd: '/', surface: 'desktop', isInteractive: true } as const
|
|
92
|
+
|
|
93
|
+
type Calls = { tool: string; args: any }[]
|
|
94
|
+
|
|
95
|
+
/** Mocks the engine and the vine-context server; a tool named in `failing` answers with that error. */
|
|
96
|
+
/** What the stubbed search finds close in meaning, best first, by query. */
|
|
97
|
+
const HITS: Record<string, string[]> = { outage: ['c_cache', 'c_new', 'c_gone'] }
|
|
98
|
+
|
|
99
|
+
function engine(on: any, calls: Calls, prompts: string[] = [], state: unknown = ACTIVITY, failing: Record<string, string> = {}) {
|
|
100
|
+
on('command.register', () => ({ value: { command: 'contexts' } }))
|
|
101
|
+
on('clock.every', () => ({ value: undefined }))
|
|
102
|
+
on('clock.after', () => ({ value: undefined }))
|
|
103
|
+
on('clock.now', () => ({ value: now }))
|
|
104
|
+
on('ui.status', () => ({ value: undefined }))
|
|
105
|
+
on('ui.toast', () => ({ value: undefined }))
|
|
106
|
+
on('ui.open', () => ({ value: { isPlaced: true } }))
|
|
107
|
+
on('ui.copy', (_: unknown, e: any) => {
|
|
108
|
+
prompts.push(`copied: ${e.text}`)
|
|
109
|
+
return { value: { isCopied: true } }
|
|
110
|
+
})
|
|
111
|
+
// The prompt box: what was typed so far, and what a fill puts there (recorded as a draft).
|
|
112
|
+
let box = ''
|
|
113
|
+
on('prompt.read', () => ({ value: { text: box, cursor: box.length } }))
|
|
114
|
+
on('prompt.fill', (_: unknown, e: any) => {
|
|
115
|
+
box = e.text
|
|
116
|
+
prompts.push(`draft: ${e.text}`)
|
|
117
|
+
return { isFilled: true, text: box, cursor: box.length }
|
|
118
|
+
})
|
|
119
|
+
on('prompt.submit', (_: unknown, e: any) => {
|
|
120
|
+
prompts.push(e.text)
|
|
121
|
+
return { text: e.text }
|
|
122
|
+
})
|
|
123
|
+
on('session.start', (_: unknown, e: any) => ({ cwd: e.cwd }))
|
|
124
|
+
on('mcp.call', (_: unknown, e: any) => {
|
|
125
|
+
calls.push({ tool: e.tool, args: e.args })
|
|
126
|
+
if (failing[e.tool]) return { value: { content: [{ type: 'text', text: failing[e.tool] }], isError: true } }
|
|
127
|
+
if (e.tool === 'recent') return { value: { content: [{ type: 'text', text: JSON.stringify(state) }], isError: false, structuredContent: state } }
|
|
128
|
+
if (e.tool === 'context_info') {
|
|
129
|
+
const d = { ...DETAILS, name: e.args.context, in_chat: e.args.context === 'team', writes_here: e.args.context === 'team' }
|
|
130
|
+
return { value: { content: [{ type: 'text', text: JSON.stringify(d) }], isError: false, structuredContent: d } }
|
|
131
|
+
}
|
|
132
|
+
if (e.tool === 'search') {
|
|
133
|
+
const rows = (HITS[e.args.query] ?? []).map(id => ({ id }))
|
|
134
|
+
return { value: { content: [{ type: 'text', text: JSON.stringify(rows) }], isError: false } }
|
|
135
|
+
}
|
|
136
|
+
if (e.tool === 'share_context') return { value: { content: [{ type: 'text', text: '{}' }], isError: false, structuredContent: { context: e.args.context ?? 'team', code: 'vine1_x.y', send: 'Join my context graph: /vine-context:join vine1_x.y', invite: { id: 'inv_1', label: e.args.label ?? null, role: e.args.role ?? 'contributor' } } } }
|
|
137
|
+
return { value: { content: [{ type: 'text', text: '{}' }], isError: false } }
|
|
138
|
+
})
|
|
139
|
+
}
|
|
140
|
+
const acts = (calls: Calls) => calls.filter(c => c.tool !== 'recent' && c.tool !== 'search')
|
|
141
|
+
|
|
142
|
+
test('the band shows loading until the server answers', async ($, on) => {
|
|
143
|
+
engine(on, [])
|
|
144
|
+
const ui = await $.ui.mount({ ...BAND, surface: 'desktop' })
|
|
145
|
+
expect((await ui.find({ type: 'Text', text: /loading/ }))?.text).toMatch(/○ loading\.+$/)
|
|
146
|
+
await ui.unmount()
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
test('the band shows the chat\'s context, who is online and the latest; its name opens the Contexts view', async ($, on) => {
|
|
150
|
+
const calls: Calls = []
|
|
151
|
+
engine(on, calls)
|
|
152
|
+
await $.session.start(START)
|
|
153
|
+
for (const surface of ['terminal', 'desktop'] as const) {
|
|
154
|
+
const ui = await $.ui.mount({ ...BAND, surface })
|
|
155
|
+
expect((await ui.find({ key: 'band-contexts' }))?.text).toBe('team')
|
|
156
|
+
expect((await ui.find({ type: 'Text', text: /online/ }))?.text).toBe('1/2 online')
|
|
157
|
+
expect((await ui.find({ type: 'Text', text: /bob replaced your claim c_old/ }))?.text).toMatch(/^· /)
|
|
158
|
+
// The open button is an arrow at the right end, after who is online.
|
|
159
|
+
expect((await ui.find({ key: 'open-context' }))?.text).toBe('❯')
|
|
160
|
+
await ui.unmount()
|
|
161
|
+
}
|
|
162
|
+
const band = await $.ui.mount({ ...BAND, surface: 'desktop' })
|
|
163
|
+
await band.press({ key: 'band-contexts' })
|
|
164
|
+
await band.unmount()
|
|
165
|
+
const pane = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
166
|
+
expect(await pane.find({ type: 'Text', text: /Contexts in this chat/ })).toBeDefined()
|
|
167
|
+
expect(await pane.find({ key: 'tab-questions' })).toBeUndefined()
|
|
168
|
+
await pane.unmount()
|
|
169
|
+
})
|
|
170
|
+
|
|
171
|
+
test('the overview says what needs you, hands steering to the agent, and opens items from the activity', async ($, on) => {
|
|
172
|
+
const calls: Calls = []
|
|
173
|
+
const prompts: string[] = []
|
|
174
|
+
engine(on, calls, prompts)
|
|
175
|
+
await $.session.start(START)
|
|
176
|
+
await $.command.run(RUN)
|
|
177
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
178
|
+
// Overview is the first tab, marked; no graph, no refresh, no way to add a claim or question by hand.
|
|
179
|
+
expect((await desk.find({ key: 'tab-overview' }))?.text).toMatch(/^🏠 Overview/)
|
|
180
|
+
expect((await desk.find({ key: 'tab-overview' }))?.props.variant).toBe('primary')
|
|
181
|
+
expect((await desk.find({ key: 'tab-questions' }))?.text).toMatch(/❓ Questions 1/)
|
|
182
|
+
expect((await desk.find({ key: 'tab-claims' }))?.text).toMatch(/📌 Claims 4/)
|
|
183
|
+
expect((await desk.find({ key: 'tab-people' }))?.text).toMatch(/👥 People 3/)
|
|
184
|
+
expect((await desk.find({ key: 'tab-settings' }))?.text).toMatch(/⚙ Settings$/)
|
|
185
|
+
// Whether it's syncing is in the header, with the way to change it.
|
|
186
|
+
expect(await desk.find({ type: 'Text', text: /⇅ Syncing/ })).toBeDefined()
|
|
187
|
+
expect((await desk.find({ key: 'sync-toggle' }))?.text).toMatch(/Go offline/)
|
|
188
|
+
for (const gone of ['refresh', 'add-claim', 'ask-question']) expect(await desk.find({ key: gone })).toBeUndefined()
|
|
189
|
+
expect(await desk.find({ type: 'Svg' })).toBeUndefined()
|
|
190
|
+
// An activity line's who-did-what lead is dim, so the claim itself reads first.
|
|
191
|
+
const lead = await desk.find({ type: 'Text', text: /^📌 bob claimed: $/ })
|
|
192
|
+
expect(lead?.props?.dimColor).toBe(true)
|
|
193
|
+
|
|
194
|
+
// What needs you: the conflict, your question's replies, the open question, the waiting codes; your held write, to undo.
|
|
195
|
+
expect(await desk.find({ type: 'Text', text: /1 pair of claims can’t both be true/ })).toBeDefined()
|
|
196
|
+
expect(await desk.find({ type: 'Text', text: /1 of your questions has replies/ })).toBeDefined()
|
|
197
|
+
expect(await desk.find({ type: 'Text', text: /1 open question, 1 with replies/ })).toBeDefined()
|
|
198
|
+
// Only the first three things that need you show: the rest are behind a link.
|
|
199
|
+
expect(await desk.find({ type: 'Text', text: /2 join codes are waiting/ })).toBeUndefined()
|
|
200
|
+
expect((await desk.find({ key: 'fold-needs' }))?.text).toMatch(/^1 more thing ▾/)
|
|
201
|
+
await desk.press({ key: 'fold-needs' })
|
|
202
|
+
expect(await desk.find({ type: 'Text', text: /2 join codes are waiting/ })).toBeDefined()
|
|
203
|
+
expect((await desk.find({ key: 'fold-needs' }))?.text).toMatch(/^Show fewer things ▴/)
|
|
204
|
+
expect(await desk.find({ type: 'Text', text: /bob replaced your claim c_old/ })).toBeDefined()
|
|
205
|
+
await desk.press({ key: 'undo-change-x1' })
|
|
206
|
+
expect(calls).toContainEqual({ tool: 'withdraw', args: { id: 'x1', undo_only: true } })
|
|
207
|
+
|
|
208
|
+
await desk.press({ key: 'catch-up' })
|
|
209
|
+
expect(prompts.at(-1)).toMatch(/^Catch me up on the context 'team'/)
|
|
210
|
+
await desk.press({ key: 'save-chat' })
|
|
211
|
+
expect(prompts.at(-1)).toMatch(/^Record what we've learned in this chat in the context 'team'/)
|
|
212
|
+
|
|
213
|
+
// The activity opens an item on its own; Settle goes to the conflicts.
|
|
214
|
+
await desk.press({ key: 'open-change-x2' })
|
|
215
|
+
expect(await desk.find({ key: 'tab-overview' })).toBeUndefined()
|
|
216
|
+
expect(await desk.find({ type: 'Text', text: /Claim in conflict/ })).toBeDefined()
|
|
217
|
+
await desk.press({ key: 'close-claim-view' })
|
|
218
|
+
await desk.press({ key: 'see-conflicts' })
|
|
219
|
+
expect((await desk.find({ key: 'scope-conflicts' }))?.text).toMatch(/^⚡ Conflicts 1/)
|
|
220
|
+
expect((await desk.find({ key: 'scope-conflicts' }))?.props.variant).toBe('primary')
|
|
221
|
+
await desk.unmount()
|
|
222
|
+
})
|
|
223
|
+
|
|
224
|
+
test('the questions tab shows threads; a question opens on its own, where answers go to the agent', async ($, on) => {
|
|
225
|
+
const calls: Calls = []
|
|
226
|
+
const prompts: string[] = []
|
|
227
|
+
engine(on, calls, prompts)
|
|
228
|
+
await $.session.start(START)
|
|
229
|
+
await $.command.run(RUN)
|
|
230
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
231
|
+
await desk.press({ key: 'tab-questions' })
|
|
232
|
+
expect((await desk.find({ key: 'scope-open' }))?.text).toBe('Open 1')
|
|
233
|
+
expect((await desk.find({ key: 'scope-open' }))?.props.variant).toBe('primary')
|
|
234
|
+
|
|
235
|
+
// The open question's thread: its live reply, not the withdrawn one. The answered one is under Answered.
|
|
236
|
+
expect(await desk.find({ type: 'Text', text: /Thursday suits most people/ })).toBeDefined()
|
|
237
|
+
expect(await desk.find({ type: 'Text', text: /A withdrawn reply/ })).toBeUndefined()
|
|
238
|
+
expect(await desk.find({ type: 'Text', text: /Why did it start/ })).toBeUndefined()
|
|
239
|
+
await desk.press({ key: 'scope-answered' })
|
|
240
|
+
expect(await desk.find({ type: 'Text', text: /The deploy caused it/ })).toBeDefined()
|
|
241
|
+
expect(await desk.find({ key: 'answer-q_1' })).toBeUndefined()
|
|
242
|
+
await desk.press({ key: 'scope-open' })
|
|
243
|
+
|
|
244
|
+
// Filtering by words: in the question, its thread or who wrote it.
|
|
245
|
+
await desk.input({ key: 'filter', text: 'nothing like this', kind: 'submit' })
|
|
246
|
+
expect(await desk.find({ type: 'Text', text: /No questions match/ })).toBeDefined()
|
|
247
|
+
await desk.press({ key: 'clear-filter' })
|
|
248
|
+
await desk.input({ key: 'filter', text: 'thursday', kind: 'submit' })
|
|
249
|
+
expect(await desk.find({ key: 'answer-q_2' })).toBeDefined()
|
|
250
|
+
await desk.press({ key: 'clear-filter' })
|
|
251
|
+
|
|
252
|
+
await desk.press({ key: 'answer-q_2' })
|
|
253
|
+
expect(await desk.find({ key: 'tab-questions' })).toBeUndefined() // nothing else on the panel
|
|
254
|
+
expect(await desk.find({ type: 'Text', text: /Open question/ })).toBeDefined()
|
|
255
|
+
// Answering starts it in the prompt box, for the person to finish and send; the panel stays on the question.
|
|
256
|
+
expect(await desk.find({ key: 'answer-input-q_2' })).toBeUndefined()
|
|
257
|
+
await desk.press({ key: 'answer-in-chat-q_2' })
|
|
258
|
+
expect(prompts.at(-1)).toBe("draft: Record my answer to the open question q_2: paraphrase it as a claim that stands alone, with answers: [q_2].\nQ: Which day is the team lunch?\nA: ")
|
|
259
|
+
expect(await desk.find({ type: 'Text', text: /Open question/ })).toBeDefined()
|
|
260
|
+
// What was already typed stays, above it.
|
|
261
|
+
await desk.press({ key: 'answer-in-chat-q_2' })
|
|
262
|
+
expect(prompts.at(-1)).toMatch(/A:\n\nRecord my answer to the open question q_2[\s\S]*A: $/)
|
|
263
|
+
await desk.press({ key: 'close-question-view' })
|
|
264
|
+
expect(await desk.find({ key: 'tab-questions' })).toBeDefined() // back to the context
|
|
265
|
+
await desk.press({ key: 'answer-q_2' })
|
|
266
|
+
await desk.press({ key: 'answer-with-r_1' })
|
|
267
|
+
expect(prompts.at(-1)).toMatch(/with bob's reply r_1: "Thursday suits most people"[\s\S]*answers: \[q_2\]/)
|
|
268
|
+
await desk.press({ key: 'answer-q_2' })
|
|
269
|
+
await desk.press({ key: 'investigate-q_2' })
|
|
270
|
+
expect(prompts.at(-1)).toMatch(/^Look into the open question q_2/)
|
|
271
|
+
expect(acts(calls)).toEqual([]) // the panel itself wrote nothing: the agent does
|
|
272
|
+
await desk.unmount()
|
|
273
|
+
})
|
|
274
|
+
|
|
275
|
+
test('editing the description takes the whole panel; claims show conflicts and history, and open with their links', async ($, on) => {
|
|
276
|
+
const calls: Calls = []
|
|
277
|
+
const prompts: string[] = []
|
|
278
|
+
engine(on, calls, prompts)
|
|
279
|
+
await $.session.start(START)
|
|
280
|
+
await $.command.run(RUN)
|
|
281
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
282
|
+
for (const p of ACTIVITY.people.filter(p => p.role)) expect(await desk.find({ type: 'Text', text: new RegExp(`● ${p.name}`) })).toBeDefined()
|
|
283
|
+
|
|
284
|
+
await desk.press({ key: 'edit-description' })
|
|
285
|
+
expect(await desk.find({ key: 'tab-claims' })).toBeUndefined()
|
|
286
|
+
await desk.input({ key: 'describe', text: 'What the team knows about checkout', kind: 'submit' })
|
|
287
|
+
expect(calls).toContainEqual({ tool: 'update_context', args: { purpose: 'What the team knows about checkout', context: 'team' } })
|
|
288
|
+
|
|
289
|
+
await desk.press({ key: 'tab-claims' })
|
|
290
|
+
expect((await desk.find({ key: 'tab-claims' }))?.props.variant).toBe('primary')
|
|
291
|
+
// The current claims: not the replaced or the withdrawn one. The conflict sits on top, each side with "Keep this one".
|
|
292
|
+
expect(await desk.find({ type: 'Text', text: /The outage lasted 6 minutes/ })).toBeDefined()
|
|
293
|
+
expect(await desk.find({ type: 'Text', text: /The outage lasted 4 minutes/ })).toBeUndefined()
|
|
294
|
+
expect(await desk.find({ type: 'Text', text: /These can’t both be true/ })).toBeDefined()
|
|
295
|
+
await desk.press({ key: 'keep-c_bob-over-c_cache' })
|
|
296
|
+
expect(prompts.at(-1)).toMatch(/The claims c_bob \("The deploy caused it"\) and c_cache \("The cache caused it"\) contradict each other\. c_bob is the one that's right[\s\S]*withdraw c_cache/)
|
|
297
|
+
await desk.press({ key: 'undo-c_held' })
|
|
298
|
+
expect(calls).toContainEqual({ tool: 'withdraw', args: { id: 'x1', undo_only: true } })
|
|
299
|
+
|
|
300
|
+
// History: what was believed before, and why it no longer stands.
|
|
301
|
+
await desk.press({ key: 'scope-history' })
|
|
302
|
+
expect(await desk.find({ type: 'Text', text: /replaced by c_new: The outage lasted 6 minutes/ })).toBeDefined()
|
|
303
|
+
expect(await desk.find({ type: 'Text', text: /withdrawn by carol: ruled out/ })).toBeDefined()
|
|
304
|
+
await desk.press({ key: 'scope-current' })
|
|
305
|
+
|
|
306
|
+
// A claim on its own: what it's linked to, each of which opens; Back returns to the one before.
|
|
307
|
+
await desk.press({ key: 'open-c_bob' })
|
|
308
|
+
expect(await desk.find({ key: 'tab-claims' })).toBeUndefined()
|
|
309
|
+
expect(await desk.find({ type: 'Text', text: /Can’t be true alongside/ })).toBeDefined()
|
|
310
|
+
expect(await desk.find({ type: 'Text', text: /Evidence for it/ })).toBeDefined()
|
|
311
|
+
expect(await desk.find({ type: 'Text', text: /Why did it start at 13:58/ })).toBeDefined()
|
|
312
|
+
await desk.press({ key: 'open-c_cache' })
|
|
313
|
+
expect(await desk.find({ type: 'Text', text: /Source: the cache dashboard/ })).toBeDefined()
|
|
314
|
+
await desk.press({ key: 'close-claim-view' })
|
|
315
|
+
expect(await desk.find({ type: 'Text', text: /Evidence for it/ })).toBeDefined()
|
|
316
|
+
|
|
317
|
+
// Correct it: started in the prompt box, for the agent to record as a replacement. Withdraw: an admin may, for anyone's.
|
|
318
|
+
await desk.press({ key: 'correct-c_bob' })
|
|
319
|
+
expect(prompts.at(-1)).toMatch(/^draft: The claim c_bob is wrong or out of date\. Record what's right[\s\S]*replaces: \[c_bob\]\.\nWas: The deploy caused it\nNow: $/)
|
|
320
|
+
expect(await desk.find({ key: 'withdraw-c_bob' })).toBeDefined() // still on the claim
|
|
321
|
+
await desk.press({ key: 'withdraw-c_bob' })
|
|
322
|
+
expect(calls).toContainEqual({ tool: 'withdraw', args: { id: 'c_bob' } })
|
|
323
|
+
await desk.unmount()
|
|
324
|
+
})
|
|
325
|
+
|
|
326
|
+
test('the people tab confirms a removal on its own, and invites to this context', async ($, on) => {
|
|
327
|
+
const calls: Calls = []
|
|
328
|
+
const prompts: string[] = []
|
|
329
|
+
engine(on, calls, prompts)
|
|
330
|
+
await $.session.start(START)
|
|
331
|
+
await $.command.run(RUN)
|
|
332
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
333
|
+
await desk.press({ key: 'tab-people' })
|
|
334
|
+
await desk.press({ key: 'remove-cccc-dddd-eeee' })
|
|
335
|
+
expect(await desk.find({ type: 'Text', text: /Remove carol\?/ })).toBeDefined()
|
|
336
|
+
expect(await desk.find({ key: 'invite' })).toBeUndefined()
|
|
337
|
+
await desk.press({ key: 'confirm-cccc-dddd-eeee' })
|
|
338
|
+
expect(calls).toContainEqual({ tool: 'manage_member', args: { action: 'remove', name: 'carol' } })
|
|
339
|
+
// The open join codes, each to copy or cancel; making one is its own step.
|
|
340
|
+
expect(await desk.find({ type: 'Text', text: /2 waiting/ })).toBeDefined()
|
|
341
|
+
expect(await desk.find({ type: 'Text', text: /For Sam · contributor · expires in 23h/ })).toBeDefined()
|
|
342
|
+
expect(await desk.find({ type: 'Text', text: /No note · reader · expires soon/ })).toBeDefined()
|
|
343
|
+
expect(await desk.find({ key: 'make-code' })).toBeUndefined()
|
|
344
|
+
await desk.press({ key: 'copy-inv_1' })
|
|
345
|
+
expect(prompts).toContain('copied: Join my context graph: /vine-context:join vine1_room.secret')
|
|
346
|
+
await desk.press({ key: 'cancel-inv_2' })
|
|
347
|
+
expect(calls).toContainEqual({ tool: 'manage_member', args: { action: 'revoke_invite', invite: 'inv_2' } })
|
|
348
|
+
await desk.press({ key: 'invite' })
|
|
349
|
+
expect(await desk.find({ type: 'Text', text: /Invite someone to team/ })).toBeDefined()
|
|
350
|
+
expect(await desk.find({ key: 'rename' })).toBeUndefined()
|
|
351
|
+
await desk.select({ key: 'invite-role', value: 'reader' })
|
|
352
|
+
await desk.input({ key: 'invite-note', text: 'Dan', kind: 'change' })
|
|
353
|
+
await desk.press({ key: 'make-code' })
|
|
354
|
+
expect(calls).toContainEqual({ tool: 'share_context', args: { label: 'Dan', role: 'reader', context: 'team' } })
|
|
355
|
+
expect(await desk.find({ type: 'Text', text: /new: send it now/ })).toBeDefined()
|
|
356
|
+
await desk.press({ key: 'invite' })
|
|
357
|
+
await desk.input({ key: 'invite-note', text: '', kind: 'submit' })
|
|
358
|
+
expect(calls).toContainEqual({ tool: 'share_context', args: { context: 'team' } })
|
|
359
|
+
// Each member's key and agent are behind a link; syncing is the header's, not a card here.
|
|
360
|
+
expect(await desk.find({ type: 'Text', text: /^bbbb-cccc-dddd · claude-code/ })).toBeUndefined()
|
|
361
|
+
await desk.press({ key: 'fold-key-bbbb-cccc-dddd' })
|
|
362
|
+
expect(await desk.find({ type: 'Text', text: /bbbb-cccc-dddd · claude-code · macOS arm64/ })).toBeDefined()
|
|
363
|
+
expect(await desk.find({ type: 'Text', text: /signalling relay/ })).toBeUndefined()
|
|
364
|
+
// Your name is changed in its own step; going offline and back is the header's link.
|
|
365
|
+
expect(await desk.find({ type: 'Text', text: /2 claims, 1 question · active just now/ })).toBeDefined()
|
|
366
|
+
await desk.press({ key: 'rename' })
|
|
367
|
+
expect(await desk.find({ key: 'invite' })).toBeUndefined()
|
|
368
|
+
await desk.input({ key: 'my-name', text: 'Ally', kind: 'submit' })
|
|
369
|
+
expect(calls).toContainEqual({ tool: 'update_context', args: { my_name: 'Ally' } })
|
|
370
|
+
await desk.press({ key: 'sync-toggle' })
|
|
371
|
+
expect(calls).toContainEqual({ tool: 'sharing', args: { action: 'off' } })
|
|
372
|
+
await desk.unmount()
|
|
373
|
+
})
|
|
374
|
+
|
|
375
|
+
test('the Contexts view turns contexts on and off, creates one in its own step, and pins each to the folder', async ($, on) => {
|
|
376
|
+
const calls: Calls = []
|
|
377
|
+
engine(on, calls)
|
|
378
|
+
await $.session.start(START)
|
|
379
|
+
await $.command.run(RUN)
|
|
380
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
381
|
+
await desk.press({ key: 'switch' })
|
|
382
|
+
expect(await desk.find({ key: 'tab-questions' })).toBeUndefined()
|
|
383
|
+
expect((await desk.find({ key: 'toggle-team' }))?.text).toBe('◉ On')
|
|
384
|
+
expect((await desk.find({ key: 'toggle-own' }))?.text).toBe('○ Off')
|
|
385
|
+
// A long name can push the toggle to its own line, never past the card's edge.
|
|
386
|
+
expect((await desk.find({ key: 'ctx-head-team' }))?.props.flexWrap).toBe('wrap')
|
|
387
|
+
await desk.press({ key: 'toggle-own' })
|
|
388
|
+
expect(calls).toContainEqual({ tool: 'use_context', args: { name: 'own', mode: 'add' } })
|
|
389
|
+
await desk.press({ key: 'toggle-team' })
|
|
390
|
+
expect(calls).toContainEqual({ tool: 'use_context', args: { name: 'team', mode: 'remove' } })
|
|
391
|
+
// Each context has its own pin for the chat's folder, whose path keeps its end.
|
|
392
|
+
// The folder shows as much of its path as the pane has room for.
|
|
393
|
+
expect((await desk.find({ key: 'pin-team' }))?.text).toBe('📌 Turn on for new chats in /Users/alice/work/shop/services/checkout')
|
|
394
|
+
expect((await desk.find({ key: 'pin-own' }))?.text).toBe('📌 On for new chats in /Users/alice/work/shop/services/checkout')
|
|
395
|
+
expect(await desk.find({ key: 'link-folder' })).toBeUndefined()
|
|
396
|
+
await desk.press({ key: 'pin-team' })
|
|
397
|
+
expect(calls).toContainEqual({ tool: 'link_folder', args: { name: 'team' } })
|
|
398
|
+
await desk.press({ key: 'pin-own' })
|
|
399
|
+
expect(calls).toContainEqual({ tool: 'link_folder', args: { name: 'own', off: true } })
|
|
400
|
+
|
|
401
|
+
// Creating is a step of its own, opened from above the list: name and description together.
|
|
402
|
+
expect(await desk.find({ key: 'new-name' })).toBeUndefined()
|
|
403
|
+
expect(await desk.find({ type: 'Text', text: /Got a join code/ })).toBeDefined()
|
|
404
|
+
await desk.press({ key: 'create-new-context' })
|
|
405
|
+
expect(await desk.find({ key: 'toggle-team' })).toBeUndefined()
|
|
406
|
+
await desk.press({ key: 'create-context' })
|
|
407
|
+
expect(await desk.find({ type: 'Text', text: /Give it a name/ })).toBeDefined()
|
|
408
|
+
await desk.input({ key: 'new-name', text: 'Bad Name!', kind: 'change' })
|
|
409
|
+
await desk.press({ key: 'create-context' })
|
|
410
|
+
expect(await desk.find({ type: 'Text', text: /lower-case letters, digits and dashes, such as/ })).toBeDefined()
|
|
411
|
+
await desk.input({ key: 'new-name', text: 'team', kind: 'change' })
|
|
412
|
+
await desk.input({ key: 'new-description', text: 'x', kind: 'change' })
|
|
413
|
+
await desk.press({ key: 'create-context' })
|
|
414
|
+
expect(await desk.find({ type: 'Text', text: /already a context 'team'/ })).toBeDefined()
|
|
415
|
+
await desk.input({ key: 'new-name', text: 'ops-notes', kind: 'change' })
|
|
416
|
+
await desk.input({ key: 'new-description', text: ' ', kind: 'change' })
|
|
417
|
+
await desk.press({ key: 'create-context' })
|
|
418
|
+
expect(await desk.find({ type: 'Text', text: /Say what it’s for/ })).toBeDefined()
|
|
419
|
+
expect(calls.some(c => c.args.name === 'ops-notes')).toBe(false)
|
|
420
|
+
await desk.input({ key: 'new-description', text: 'Runbooks and on-call notes', kind: 'change' })
|
|
421
|
+
await desk.press({ key: 'create-context' })
|
|
422
|
+
expect(calls).toContainEqual({ tool: 'use_context', args: { name: 'ops-notes', description: 'Runbooks and on-call notes', mode: 'add' } })
|
|
423
|
+
expect(await desk.find({ key: 'new-name' })).toBeUndefined()
|
|
424
|
+
|
|
425
|
+
// Cancel leaves the list as it was.
|
|
426
|
+
await desk.press({ key: 'switch' })
|
|
427
|
+
await desk.press({ key: 'create-new-context' })
|
|
428
|
+
await desk.press({ key: 'cancel-create' })
|
|
429
|
+
expect(await desk.find({ key: 'toggle-team' })).toBeDefined()
|
|
430
|
+
await desk.unmount()
|
|
431
|
+
})
|
|
432
|
+
|
|
433
|
+
test('a context opens from the list on its tabs or its Settings tab, an off one has a page of its own, and either is deleted only once its name is typed', async ($, on) => {
|
|
434
|
+
const calls: Calls = []
|
|
435
|
+
const prompts: string[] = []
|
|
436
|
+
engine(on, calls, prompts)
|
|
437
|
+
await $.session.start(START)
|
|
438
|
+
await $.command.run(RUN)
|
|
439
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
440
|
+
await desk.press({ key: 'switch' })
|
|
441
|
+
|
|
442
|
+
// Share, on a context you're an admin of: the join-code step.
|
|
443
|
+
expect(await desk.find({ key: 'share-own' })).toBeUndefined() // off for this chat
|
|
444
|
+
await desk.press({ key: 'share-team' })
|
|
445
|
+
expect(await desk.find({ type: 'Text', text: /Invite someone to team/ })).toBeDefined()
|
|
446
|
+
await desk.press({ key: 'make-code' })
|
|
447
|
+
expect(calls).toContainEqual({ tool: 'share_context', args: { context: 'team' } })
|
|
448
|
+
|
|
449
|
+
// A context that's on opens by its name or Open; its Settings button opens it on its Settings tab.
|
|
450
|
+
await desk.press({ key: 'switch' })
|
|
451
|
+
await desk.press({ key: 'name-team' })
|
|
452
|
+
expect(await desk.find({ key: 'tab-overview' })).toBeDefined() // open, on the tab it was left on
|
|
453
|
+
expect(calls.some(c => c.tool === 'context_info')).toBe(false)
|
|
454
|
+
await desk.press({ key: 'switch' })
|
|
455
|
+
expect(await desk.find({ key: 'details-team' })).toBeUndefined()
|
|
456
|
+
await desk.press({ key: 'open-team' })
|
|
457
|
+
expect(await desk.find({ key: 'toggle-team' })).toBeUndefined()
|
|
458
|
+
expect(await desk.find({ key: 'tab-overview' })).toBeDefined()
|
|
459
|
+
await desk.press({ key: 'switch' })
|
|
460
|
+
await desk.press({ key: 'settings-team' })
|
|
461
|
+
expect((await desk.find({ key: 'tab-settings' }))?.props.variant).toBe('primary')
|
|
462
|
+
expect(calls).toContainEqual({ tool: 'context_info', args: { context: 'team', details: true } })
|
|
463
|
+
expect(await desk.find({ type: 'Text', text: /6 claims · 2 questions · 2 replies/ })).toBeDefined()
|
|
464
|
+
expect(await desk.find({ type: 'Text', text: /Syncing · 3 members · 1 of the others online now · 2 join codes not used yet/ })).toBeDefined()
|
|
465
|
+
// The id every member shares sits under this machine's name for it.
|
|
466
|
+
expect(await desk.find({ type: 'Text', text: '0193-aaaa' })).toBeDefined()
|
|
467
|
+
// Each has a copy button at its end, drawn hidden and shown on hover of its line.
|
|
468
|
+
await desk.press({ key: 'context-name-team-copy' })
|
|
469
|
+
await desk.press({ key: 'context-id-team-copy' })
|
|
470
|
+
expect(prompts).toContain('copied: team')
|
|
471
|
+
expect(prompts).toContain('copied: 0193-aaaa')
|
|
472
|
+
// Storage and history are behind a link.
|
|
473
|
+
expect(await desk.find({ type: 'Text', text: '/data/graphs/team' })).toBeUndefined()
|
|
474
|
+
await desk.press({ key: 'fold-about-team' })
|
|
475
|
+
expect(await desk.find({ type: 'Text', text: '/data/graphs/team' })).toBeDefined()
|
|
476
|
+
expect(await desk.find({ type: 'Text', text: /7 in all, withdrawn items included/ })).toBeDefined()
|
|
477
|
+
// What the header already says isn't said again: the description is under its own heading only, the name is the
|
|
478
|
+
// title, and going offline is the header's switch.
|
|
479
|
+
expect((await desk.findAll({ type: 'Text', text: ACTIVITY.description })).length).toBe(1)
|
|
480
|
+
expect(await desk.find({ key: 'edit-description' })).toBeUndefined()
|
|
481
|
+
expect(await desk.find({ key: 'detail-offline-team' })).toBeUndefined()
|
|
482
|
+
await desk.press({ key: 'sync-toggle' })
|
|
483
|
+
expect(calls.some(c => c.tool === 'sharing')).toBe(true)
|
|
484
|
+
await desk.press({ key: 'detail-invite-team' })
|
|
485
|
+
expect(await desk.find({ type: 'Text', text: /Invite someone to team/ })).toBeDefined()
|
|
486
|
+
// A way out of a step leads with the ‹ caret, like Back.
|
|
487
|
+
expect((await desk.find({ key: 'close-invite-step' }))?.text).toBe('‹ Cancel')
|
|
488
|
+
await desk.press({ key: 'close-invite-step' })
|
|
489
|
+
expect((await desk.find({ key: 'tab-settings' }))?.props.variant).toBe('primary')
|
|
490
|
+
|
|
491
|
+
// A context that's off can't be opened: Settings shows its own page.
|
|
492
|
+
await desk.press({ key: 'switch' })
|
|
493
|
+
expect(await desk.find({ key: 'open-own' })).toBeUndefined()
|
|
494
|
+
await desk.press({ key: 'settings-own' })
|
|
495
|
+
expect(calls).toContainEqual({ tool: 'context_info', args: { context: 'own', details: true } })
|
|
496
|
+
expect(await desk.find({ key: 'tab-settings' })).toBeUndefined()
|
|
497
|
+
// Its page is the same Settings as an open context's: its name and description change here, and it can be shared.
|
|
498
|
+
expect(await desk.find({ key: 'name-row-own' })).toBeDefined()
|
|
499
|
+
await desk.press({ key: 'describe-own' })
|
|
500
|
+
expect(await desk.find({ type: 'Text', text: /Describe own/ })).toBeDefined()
|
|
501
|
+
await desk.input({ key: 'describe', text: 'My own notes', kind: 'submit' })
|
|
502
|
+
expect(calls).toContainEqual({ tool: 'update_context', args: { purpose: 'My own notes', context: 'own' } })
|
|
503
|
+
expect(await desk.find({ key: 'ask-delete-own' })).toBeDefined() // back on its page
|
|
504
|
+
await desk.press({ key: 'detail-offline-own' })
|
|
505
|
+
expect(calls).toContainEqual({ tool: 'sharing', args: { action: 'off', context: 'own' } })
|
|
506
|
+
await desk.press({ key: 'detail-invite-own' })
|
|
507
|
+
expect(await desk.find({ type: 'Text', text: /Invite someone to own/ })).toBeDefined()
|
|
508
|
+
await desk.input({ key: 'invite-note', text: 'Sam', kind: 'submit' })
|
|
509
|
+
expect(calls).toContainEqual({ tool: 'share_context', args: { label: 'Sam', context: 'own' } })
|
|
510
|
+
// With no People tab to wait in, the new code shows on its page, to copy.
|
|
511
|
+
expect(await desk.find({ key: 'copy-made-own' })).toBeDefined()
|
|
512
|
+
expect(await desk.find({ type: 'Text', text: /For Sam/ })).toBeDefined()
|
|
513
|
+
expect(await desk.find({ key: 'tab-settings' })).toBeUndefined()
|
|
514
|
+
// Renaming checks the name first.
|
|
515
|
+
await desk.press({ key: 'rename-context-own' })
|
|
516
|
+
expect(await desk.find({ type: 'Text', text: /Rename own/ })).toBeDefined()
|
|
517
|
+
await desk.input({ key: 'rename-context-own', text: 'team', kind: 'submit' })
|
|
518
|
+
expect(await desk.find({ type: 'Text', text: /already a context 'team'/ })).toBeDefined()
|
|
519
|
+
expect(calls.some(c => c.tool === 'update_context')).toBe(false)
|
|
520
|
+
await desk.input({ key: 'rename-context-own', text: 'My Notes', kind: 'submit' })
|
|
521
|
+
expect(calls).toContainEqual({ tool: 'update_context', args: { context: 'own', rename_to: 'my-notes' } })
|
|
522
|
+
// (This fake server keeps calling it 'own', so the page closes back to the list.)
|
|
523
|
+
await desk.press({ key: 'settings-own' })
|
|
524
|
+
|
|
525
|
+
// Deleting: says what goes, and does nothing until the name is typed exactly.
|
|
526
|
+
await desk.press({ key: 'ask-delete-own' })
|
|
527
|
+
expect(await desk.find({ type: 'Text', text: /can’t be undone/ })).toBeDefined()
|
|
528
|
+
expect(await desk.find({ key: 'ask-delete-own' })).toBeUndefined()
|
|
529
|
+
await desk.press({ key: 'delete-own' })
|
|
530
|
+
expect(await desk.find({ type: 'Text', text: /Type own exactly/ })).toBeDefined()
|
|
531
|
+
await desk.input({ key: 'delete-confirm-own', text: 'owm', kind: 'change' })
|
|
532
|
+
await desk.press({ key: 'delete-own' })
|
|
533
|
+
expect(calls.some(c => c.tool === 'delete_context')).toBe(false)
|
|
534
|
+
await desk.press({ key: 'keep-context' })
|
|
535
|
+
expect(await desk.find({ key: 'ask-delete-own' })).toBeDefined() // back on its details
|
|
536
|
+
await desk.press({ key: 'ask-delete-own' })
|
|
537
|
+
await desk.press({ key: 'delete-own' }) // what was typed before is forgotten
|
|
538
|
+
expect(calls.some(c => c.tool === 'delete_context')).toBe(false)
|
|
539
|
+
await desk.input({ key: 'delete-confirm-own', text: 'own', kind: 'change' })
|
|
540
|
+
await desk.press({ key: 'delete-own' })
|
|
541
|
+
expect(calls).toContainEqual({ tool: 'delete_context', args: { name: 'own', confirm: 'own' } })
|
|
542
|
+
expect(await desk.find({ key: 'toggle-team' })).toBeDefined() // back on the list
|
|
543
|
+
|
|
544
|
+
// Deleting from the Settings tab goes back to the Overview.
|
|
545
|
+
await desk.press({ key: 'settings-team' })
|
|
546
|
+
await desk.press({ key: 'ask-delete-team' })
|
|
547
|
+
await desk.input({ key: 'delete-confirm-team', text: 'team', kind: 'change' })
|
|
548
|
+
await desk.press({ key: 'delete-team' })
|
|
549
|
+
expect(calls).toContainEqual({ tool: 'delete_context', args: { name: 'team', confirm: 'team' } })
|
|
550
|
+
expect((await desk.find({ key: 'tab-overview' }))?.props.variant).toBe('primary')
|
|
551
|
+
await desk.unmount()
|
|
552
|
+
})
|
|
553
|
+
|
|
554
|
+
test('an action that fails says why, and the next poll doesn\'t clear it', async ($, on) => {
|
|
555
|
+
const calls: Calls = []
|
|
556
|
+
engine(on, calls, [], ACTIVITY, { sharing: 'The graph host failed to start', context_info: 'The embedder is not installed' })
|
|
557
|
+
await $.session.start(START)
|
|
558
|
+
await $.command.run(RUN)
|
|
559
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
560
|
+
await desk.press({ key: 'sync-toggle' }) // fails, then polls again
|
|
561
|
+
expect(await desk.find({ type: 'Text', text: /The graph host failed to start/ })).toBeDefined()
|
|
562
|
+
await desk.press({ key: 'dismiss-message' })
|
|
563
|
+
expect(await desk.find({ type: 'Text', text: /The graph host failed to start/ })).toBeUndefined()
|
|
564
|
+
// The Settings tab says its details couldn't be read, and why, instead of loading forever.
|
|
565
|
+
await desk.press({ key: 'tab-settings' })
|
|
566
|
+
expect(await desk.find({ type: 'Text', text: /The embedder is not installed/ })).toBeDefined()
|
|
567
|
+
expect(await desk.find({ type: 'Text', text: /Couldn’t read its details/ })).toBeDefined()
|
|
568
|
+
await desk.unmount()
|
|
569
|
+
})
|
|
570
|
+
|
|
571
|
+
test('long lists fold behind a link: recent activity, what changed, and a thread\'s earlier replies', async ($, on) => {
|
|
572
|
+
const calls: Calls = []
|
|
573
|
+
const reply = (n: number) => ({ id: `Reply:r_${n}`, key: `r_${n}`, label: 'Reply', title: `Reply number ${n}`, ended: false, props: { recorded_by: 'bob', recorded_at: iso(40_000 - n * 1000) } })
|
|
574
|
+
const change = (n: number) => ({ id: `y${n}`, kind: 'reply', at: iso(n * 60_000), by: 'bob', mine: false, summary: `replied: change ${n}`, node: null, held: false, shared_at: null })
|
|
575
|
+
const long = {
|
|
576
|
+
...ACTIVITY,
|
|
577
|
+
recent: [1, 2, 3, 4, 5, 6, 7].map(change),
|
|
578
|
+
digest: [{ at: iso(1_000), lines: ['line one', 'line two', 'line three', 'line four'] }],
|
|
579
|
+
snapshot: {
|
|
580
|
+
...ACTIVITY.snapshot,
|
|
581
|
+
nodes: [...ACTIVITY.snapshot.nodes, reply(2), reply(3)],
|
|
582
|
+
edges: [...ACTIVITY.snapshot.edges, { type: 'REPLIES_TO', source: 'Reply:r_2', target: 'Question:q_2' }, { type: 'REPLIES_TO', source: 'Reply:r_3', target: 'Question:q_2' }],
|
|
583
|
+
},
|
|
584
|
+
}
|
|
585
|
+
engine(on, calls, [], long)
|
|
586
|
+
await $.session.start(START)
|
|
587
|
+
await $.command.run(RUN)
|
|
588
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
589
|
+
expect(await desk.find({ type: 'Text', text: /change 5/ })).toBeDefined()
|
|
590
|
+
expect(await desk.find({ type: 'Text', text: /change 6/ })).toBeUndefined()
|
|
591
|
+
expect((await desk.find({ key: 'fold-recent' }))?.text).toMatch(/^2 more changes ▾/)
|
|
592
|
+
await desk.press({ key: 'fold-recent' })
|
|
593
|
+
expect(await desk.find({ type: 'Text', text: /change 7/ })).toBeDefined()
|
|
594
|
+
expect(await desk.find({ type: 'Text', text: 'line four' })).toBeUndefined()
|
|
595
|
+
expect((await desk.find({ key: 'fold-digest' }))?.text).toMatch(/^1 more change ▾/)
|
|
596
|
+
await desk.press({ key: 'fold-digest' })
|
|
597
|
+
expect(await desk.find({ type: 'Text', text: 'line four' })).toBeDefined()
|
|
598
|
+
|
|
599
|
+
// A thread shows its latest two replies; the earlier ones come first, behind a link.
|
|
600
|
+
await desk.press({ key: 'tab-questions' })
|
|
601
|
+
await desk.press({ key: 'scope-mine' })
|
|
602
|
+
expect(await desk.find({ type: 'Text', text: /Thursday suits most people/ })).toBeUndefined()
|
|
603
|
+
expect(await desk.find({ type: 'Text', text: /Reply number 3/ })).toBeDefined()
|
|
604
|
+
expect((await desk.find({ key: 'fold-replies-q_2' }))?.text).toMatch(/^1 earlier reply ▾/)
|
|
605
|
+
await desk.press({ key: 'fold-replies-q_2' })
|
|
606
|
+
expect(await desk.find({ type: 'Text', text: /Thursday suits most people/ })).toBeDefined()
|
|
607
|
+
expect((await desk.find({ key: 'fold-replies-q_2' }))?.text).toMatch(/^Show fewer replies ▴/)
|
|
608
|
+
await desk.unmount()
|
|
609
|
+
})
|
|
610
|
+
|
|
611
|
+
test('with several contexts, the band lists them and the panel shows one at a time, naming it in its actions', async ($, on) => {
|
|
612
|
+
const calls: Calls = []
|
|
613
|
+
const two = { ...ACTIVITY, contexts: [...ACTIVITY.contexts, { name: 'infra', description: 'How our infrastructure is set up', role: 'admin', writes_here: false }] }
|
|
614
|
+
engine(on, calls, [], two)
|
|
615
|
+
await $.session.start(START)
|
|
616
|
+
const band = await $.ui.mount({ ...BAND, surface: 'desktop' })
|
|
617
|
+
expect((await band.find({ key: 'band-contexts' }))?.text).toBe('team +infra')
|
|
618
|
+
await band.unmount()
|
|
619
|
+
await $.command.run(RUN)
|
|
620
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
621
|
+
expect(await desk.find({ key: 'view-infra' })).toBeDefined()
|
|
622
|
+
await desk.press({ key: 'tab-claims' })
|
|
623
|
+
await desk.press({ key: 'undo-c_held' })
|
|
624
|
+
expect(calls).toContainEqual({ tool: 'withdraw', args: { id: 'x1', undo_only: true, context: 'team' } })
|
|
625
|
+
await desk.press({ key: 'view-infra' })
|
|
626
|
+
expect(calls.some(c => c.tool === 'recent' && c.args.context === 'infra')).toBe(true)
|
|
627
|
+
await desk.unmount()
|
|
628
|
+
})
|
|
629
|
+
|
|
630
|
+
test('with no context in the chat, the band says so and Choose opens the Contexts view', async ($, on) => {
|
|
631
|
+
const calls: Calls = []
|
|
632
|
+
engine(on, calls, [], { using: 'no context', context: null, contexts: [], your_contexts: ['infra', 'team'], next: 'Ask the person' })
|
|
633
|
+
await $.session.start(START)
|
|
634
|
+
const band = await $.ui.mount({ ...BAND, surface: 'desktop' })
|
|
635
|
+
expect(await band.find({ type: 'Text', text: /No context/ })).toBeDefined()
|
|
636
|
+
await band.press({ key: 'choose-context' })
|
|
637
|
+
await band.unmount()
|
|
638
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
639
|
+
await desk.press({ key: 'toggle-team' })
|
|
640
|
+
expect(calls).toContainEqual({ tool: 'use_context', args: { name: 'team' } })
|
|
641
|
+
await desk.unmount()
|
|
642
|
+
})
|
|
643
|
+
|
|
644
|
+
test('every view draws in the terminal too, and a reader gets no way to write', async ($, on) => {
|
|
645
|
+
const calls: Calls = []
|
|
646
|
+
const reader = { ...ACTIVITY, you: { ...ACTIVITY.you, role: 'reader' }, invites: undefined, sharing: false, online: [] }
|
|
647
|
+
engine(on, calls, [], reader)
|
|
648
|
+
await $.session.start(START)
|
|
649
|
+
await $.command.run(RUN)
|
|
650
|
+
const term = await $.ui.mount({ ...PANE, surface: 'terminal' })
|
|
651
|
+
// Offline shows on the Overview, with the way back.
|
|
652
|
+
expect(await term.find({ type: 'Text', text: /You’re offline/ })).toBeDefined()
|
|
653
|
+
await term.press({ key: 'go-online' })
|
|
654
|
+
expect(calls).toContainEqual({ tool: 'sharing', args: { action: 'on' } })
|
|
655
|
+
expect(await term.find({ key: 'save-chat' })).toBeUndefined()
|
|
656
|
+
for (const tab of ['questions', 'claims', 'people', 'overview']) {
|
|
657
|
+
await term.press({ key: `tab-${tab}` })
|
|
658
|
+
expect((await term.find({ key: `tab-${tab}` }))?.text).toMatch(/^▸ /)
|
|
659
|
+
}
|
|
660
|
+
expect(await term.find({ key: 'invite' })).toBeUndefined()
|
|
661
|
+
await term.press({ key: 'tab-questions' })
|
|
662
|
+
expect(await term.find({ key: 'answer-q_2' })).toBeUndefined()
|
|
663
|
+
await term.press({ key: 'open-q_2' })
|
|
664
|
+
expect(await term.find({ key: 'answer-input-q_2' })).toBeUndefined()
|
|
665
|
+
expect(await term.find({ key: 'investigate-q_2' })).toBeUndefined()
|
|
666
|
+
await term.press({ key: 'close-question-view' })
|
|
667
|
+
await term.press({ key: 'tab-claims' })
|
|
668
|
+
expect(await term.find({ key: 'keep-c_bob-over-c_cache' })).toBeUndefined()
|
|
669
|
+
await term.press({ key: 'open-c_cache' })
|
|
670
|
+
expect(await term.find({ key: 'correct-c_cache' })).toBeUndefined()
|
|
671
|
+
expect(await term.find({ key: 'withdraw-c_cache' })).toBeUndefined()
|
|
672
|
+
await term.unmount()
|
|
673
|
+
})
|
|
674
|
+
|
|
675
|
+
test('the band says what is wrong, instead of loading forever, when the server keeps failing', async ($, on) => {
|
|
676
|
+
on('command.register', () => ({ value: { command: 'contexts' } }))
|
|
677
|
+
on('clock.every', () => ({ value: undefined }))
|
|
678
|
+
on('clock.now', () => ({ value: now }))
|
|
679
|
+
on('ui.status', () => ({ value: undefined }))
|
|
680
|
+
on('session.start', (_: unknown, e: any) => ({ cwd: e.cwd }))
|
|
681
|
+
on('mcp.call', () => ({ value: { content: [{ type: 'text', text: 'Tool recent not found' }], isError: true } }))
|
|
682
|
+
on('ui.open', () => ({ value: { isPlaced: true } }))
|
|
683
|
+
await $.session.start(START)
|
|
684
|
+
await $.command.run(RUN)
|
|
685
|
+
await $.command.run(RUN)
|
|
686
|
+
const band = await $.ui.mount({ ...BAND, surface: 'desktop' })
|
|
687
|
+
expect(await band.find({ type: 'Text', text: /loading/ })).toBeUndefined()
|
|
688
|
+
expect(await band.find({ type: 'Text', text: /older vine-context server\. Start a new chat/ })).toBeDefined()
|
|
689
|
+
expect(await band.find({ key: 'retry' })).toBeDefined()
|
|
690
|
+
await band.unmount()
|
|
691
|
+
})
|
|
692
|
+
|
|
693
|
+
test('the create, details and delete steps draw in the terminal too', async ($, on) => {
|
|
694
|
+
const calls: Calls = []
|
|
695
|
+
engine(on, calls)
|
|
696
|
+
await $.session.start(START)
|
|
697
|
+
await $.command.run(RUN)
|
|
698
|
+
const term = await $.ui.mount({ ...PANE, surface: 'terminal' })
|
|
699
|
+
await term.press({ key: 'switch' })
|
|
700
|
+
await term.press({ key: 'create-new-context' })
|
|
701
|
+
expect(await term.find({ key: 'new-description' })).toBeDefined()
|
|
702
|
+
await term.press({ key: 'cancel-create' })
|
|
703
|
+
await term.press({ key: 'settings-team' })
|
|
704
|
+
expect(await term.find({ type: 'Text', text: /6 claims/ })).toBeDefined()
|
|
705
|
+
await term.press({ key: 'ask-delete-team' })
|
|
706
|
+
expect(await term.find({ type: 'Text', text: /2 other members keep their own copy/ })).toBeDefined()
|
|
707
|
+
expect(await term.find({ type: 'Text', text: /You made this context/ })).toBeDefined()
|
|
708
|
+
await term.press({ key: 'keep-context' })
|
|
709
|
+
expect(await term.find({ key: 'ask-delete-team' })).toBeDefined()
|
|
710
|
+
expect(acts(calls).some(c => c.tool === 'delete_context')).toBe(false)
|
|
711
|
+
await term.unmount()
|
|
712
|
+
})
|
|
713
|
+
|
|
714
|
+
/** The pane at a width, or minimized to the desktop app's widget. */
|
|
715
|
+
const sized = (bodyColumns: number, placement: 'dock' | 'inline' | 'widget' = 'dock') => ({ ...PANE, props: { ...PANE.props, bodyColumns, placement } })
|
|
716
|
+
|
|
717
|
+
test('a narrow pane stacks each row’s buttons under its text, and the details’ labels over their values', async ($, on) => {
|
|
718
|
+
engine(on, [])
|
|
719
|
+
await $.session.start(START)
|
|
720
|
+
await $.command.run(RUN)
|
|
721
|
+
const narrow = await $.ui.mount({ ...sized(30), surface: 'desktop' })
|
|
722
|
+
expect((await narrow.find({ key: 'act-x2' }))?.props.flexDirection).toBe('column')
|
|
723
|
+
expect((await narrow.find({ key: 'held-x1' }))?.props.flexDirection).toBe('column')
|
|
724
|
+
// Stacked, the buttons are all still there and still work.
|
|
725
|
+
expect(await narrow.find({ key: 'open-change-x2' })).toBeDefined()
|
|
726
|
+
await narrow.press({ key: 'tab-settings' })
|
|
727
|
+
expect((await narrow.find({ key: 'detail-Your role' }))?.props.flexDirection).toBe('column')
|
|
728
|
+
// The folder keeps only the end of its path that fits.
|
|
729
|
+
expect((await narrow.find({ key: 'pin-detail-team' }))?.text).toBe('📌 Turn on for new chats in …es/checkout')
|
|
730
|
+
await narrow.unmount()
|
|
731
|
+
|
|
732
|
+
// On the desktop, which cuts text only at its end, a path too long for the room loses its start instead.
|
|
733
|
+
const mid = await $.ui.mount({ ...sized(50), surface: 'desktop' })
|
|
734
|
+
await mid.press({ key: 'tab-settings' })
|
|
735
|
+
const path = (await mid.find({ key: 'pin-detail-team' }))?.text.replace('📌 Turn on for new chats in ', '')
|
|
736
|
+
expect(path).toMatch(/^….*\/services\/checkout$/)
|
|
737
|
+
expect(path?.length).toBe(28)
|
|
738
|
+
await mid.unmount()
|
|
739
|
+
|
|
740
|
+
const roomy = await $.ui.mount({ ...sized(90), surface: 'desktop' })
|
|
741
|
+
expect((await roomy.find({ key: 'detail-Your role' }))?.props.flexDirection).toBe('row')
|
|
742
|
+
await roomy.press({ key: 'tab-overview' })
|
|
743
|
+
expect((await roomy.find({ key: 'act-x2' }))?.props.flexDirection).toBe('row')
|
|
744
|
+
await roomy.unmount()
|
|
745
|
+
})
|
|
746
|
+
|
|
747
|
+
test('a wide pane sets what needs you beside the recent activity', async ($, on) => {
|
|
748
|
+
engine(on, [])
|
|
749
|
+
await $.session.start(START)
|
|
750
|
+
await $.command.run(RUN)
|
|
751
|
+
for (const [cols, direction] of [
|
|
752
|
+
[90, 'column'],
|
|
753
|
+
[120, 'row'],
|
|
754
|
+
] as const) {
|
|
755
|
+
const ui = await $.ui.mount({ ...sized(cols), surface: 'desktop' })
|
|
756
|
+
expect((await ui.find({ key: 'overview' }))?.props.flexDirection).toBe(direction)
|
|
757
|
+
expect(await ui.find({ key: 'overview-now' })).toBeDefined()
|
|
758
|
+
expect(await ui.find({ key: 'overview-recent' })).toBeDefined()
|
|
759
|
+
await ui.unmount()
|
|
760
|
+
}
|
|
761
|
+
})
|
|
762
|
+
|
|
763
|
+
test('minimized to a widget, the pane is a glance with nothing to press, and expanding it brings the view back', async ($, on) => {
|
|
764
|
+
engine(on, [])
|
|
765
|
+
await $.session.start(START)
|
|
766
|
+
await $.command.run(RUN)
|
|
767
|
+
const widget = await $.ui.mount({ ...sized(30, 'widget'), surface: 'desktop' })
|
|
768
|
+
expect(await widget.find({ key: 'glance' })).toBeDefined()
|
|
769
|
+
expect(await widget.find({ type: 'Button' })).toBeUndefined()
|
|
770
|
+
expect(await widget.find({ type: 'Text', text: /^● team$/ })).toBeDefined()
|
|
771
|
+
expect((await widget.find({ type: 'Text', text: /online/ }))?.text).toBe('1 other online · ❓ 1 open · ⚡ 1 conflict · 1 not sent yet')
|
|
772
|
+
expect((await widget.find({ key: 'glance-latest' }))?.text).toBe('you claimed: Mine, still held')
|
|
773
|
+
await widget.unmount()
|
|
774
|
+
|
|
775
|
+
const docked = await $.ui.mount({ ...sized(60), surface: 'desktop' })
|
|
776
|
+
expect(await docked.find({ key: 'glance' })).toBeUndefined()
|
|
777
|
+
expect((await docked.find({ key: 'tab-overview' }))?.props.variant).toBe('primary')
|
|
778
|
+
await docked.unmount()
|
|
779
|
+
})
|
|
780
|
+
|
|
781
|
+
test('the filter adds what the search finds close in meaning, after what shares its words, in History too', async ($, on) => {
|
|
782
|
+
const calls: Calls = []
|
|
783
|
+
engine(on, calls)
|
|
784
|
+
await $.session.start(START)
|
|
785
|
+
await $.command.run(RUN)
|
|
786
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
787
|
+
await desk.press({ key: 'tab-claims' })
|
|
788
|
+
await desk.input({ key: 'filter', text: 'outage', kind: 'submit' })
|
|
789
|
+
expect(calls).toContainEqual({ tool: 'search', args: { query: 'outage', kind: 'any', limit: 50, include_ended: true } })
|
|
790
|
+
// Both outage claims share the word; the search adds the cache claim, marked, and not the deploy claim it didn't find.
|
|
791
|
+
expect(await desk.find({ type: 'Text', text: /Showing claims matching “outage”, then 1 close in meaning/ })).toBeDefined()
|
|
792
|
+
expect(await desk.find({ type: 'Text', text: /The cache caused it/ })).toBeDefined()
|
|
793
|
+
expect(await desk.find({ type: 'Text', text: /· close in meaning/ })).toBeDefined()
|
|
794
|
+
expect(await desk.find({ type: 'Text', text: /The deploy caused it/ })).toBeUndefined()
|
|
795
|
+
// History keeps the filter and finds the withdrawn claim by meaning alone.
|
|
796
|
+
await desk.press({ key: 'scope-history' })
|
|
797
|
+
expect(await desk.find({ type: 'Text', text: /It was a DNS problem/ })).toBeDefined()
|
|
798
|
+
expect(await desk.find({ type: 'Text', text: /then 1 close in meaning/ })).toBeDefined()
|
|
799
|
+
})
|
|
800
|
+
|
|
801
|
+
test('the filter falls back to words when the search fails', async ($, on) => {
|
|
802
|
+
const calls: Calls = []
|
|
803
|
+
engine(on, calls, [], ACTIVITY, { search: 'no such tool' })
|
|
804
|
+
await $.session.start(START)
|
|
805
|
+
await $.command.run(RUN)
|
|
806
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
807
|
+
await desk.press({ key: 'tab-claims' })
|
|
808
|
+
await desk.input({ key: 'filter', text: 'outage', kind: 'submit' })
|
|
809
|
+
// Asked once with include_ended, then again without it, as an older server would need.
|
|
810
|
+
expect(calls.filter(c => c.tool === 'search').map(c => 'include_ended' in c.args)).toEqual([true, false])
|
|
811
|
+
expect(await desk.find({ type: 'Text', text: /search by meaning isn’t available, so only words match/ })).toBeDefined()
|
|
812
|
+
expect(await desk.find({ type: 'Text', text: /The outage lasted 6 minutes/ })).toBeDefined()
|
|
813
|
+
expect(await desk.find({ type: 'Text', text: /The cache caused it/ })).toBeUndefined()
|
|
814
|
+
})
|
|
815
|
+
|
|
816
|
+
test('with many members, the header names you and who is online first, and the rest are a link to People', async ($, on) => {
|
|
817
|
+
const calls: Calls = []
|
|
818
|
+
const extra = Array.from({ length: 17 }, (_, i) => ({ name: `member${i + 1}`, fingerprint: `ffff-0000-${String(i).padStart(4, '0')}`, role: 'contributor', you: false, creator: false, online: i === 16, agent: null, platform: null }))
|
|
819
|
+
const crowd = { ...ACTIVITY, people: [...extra, ...ACTIVITY.people], members: 20 }
|
|
820
|
+
engine(on, calls, [], crowd)
|
|
821
|
+
await $.session.start(START)
|
|
822
|
+
await $.command.run(RUN)
|
|
823
|
+
const desk = await $.ui.mount({ ...PANE, surface: 'desktop' })
|
|
824
|
+
// You and the two online come first, whatever order they arrive in; the 14 left over fold behind the link.
|
|
825
|
+
for (const name of ['alice', 'bob', 'member17']) expect(await desk.find({ type: 'Text', text: new RegExp(`● ${name}\\b`) })).toBeDefined()
|
|
826
|
+
expect(await desk.find({ type: 'Text', text: /● member10\b/ })).toBeUndefined()
|
|
827
|
+
expect((await desk.find({ key: 'who-more' }))?.text).toBe('+14 more')
|
|
828
|
+
await desk.press({ key: 'who-more' })
|
|
829
|
+
expect((await desk.find({ key: 'tab-people' }))?.props.variant).toBe('primary')
|
|
830
|
+
})
|