Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

store.test.ts

743 lines21.5 KB

1import {
2 CheckpointRef,
3 DEFAULT_MODEL_BY_PROVIDER,
4 EventId,
5 MessageId,
6 ProjectId,
7 ThreadId,
8 TurnId,
9 type OrchestrationEvent,
10 type OrchestrationReadModel,
11} from "@t3tools/contracts";
12import { describe, expect, it } from "vitest";
13​
14import {
15 applyOrchestrationEvent,
16 applyOrchestrationEvents,
17 syncServerReadModel,
18 type AppState,
19} from "./store";
20import { DEFAULT_INTERACTION_MODE, DEFAULT_RUNTIME_MODE, type Thread } from "./types";
21​
22function makeThread(overrides: Partial<Thread> = {}): Thread {
23 return {
24 id: ThreadId.makeUnsafe("thread-1"),
25 codexThreadId: null,
26 projectId: ProjectId.makeUnsafe("project-1"),
27 title: "Thread",
28 modelSelection: {
29 provider: "codex",
30 model: "gpt-5-codex",
31 },
32 runtimeMode: DEFAULT_RUNTIME_MODE,
33 interactionMode: DEFAULT_INTERACTION_MODE,
34 session: null,
35 messages: [],
36 turnDiffSummaries: [],
37 activities: [],
38 proposedPlans: [],
39 error: null,
40 createdAt: "2026-02-13T00:00:00.000Z",
41 archivedAt: null,
42 latestTurn: null,
43 branch: null,
44 worktreePath: null,
45 ...overrides,
46 };
48​
49function makeState(thread: Thread): AppState {
50 return {
51 projects: [
52 {
53 id: ProjectId.makeUnsafe("project-1"),
54 name: "Project",
55 cwd: "/tmp/project",
56 defaultModelSelection: {
57 provider: "codex",
58 model: "gpt-5-codex",
59 },
60 scripts: [],
61 },
62 ],
63 threads: [thread],
64 bootstrapComplete: true,
65 };
67​
68function makeEvent<T extends OrchestrationEvent["type"]>(
69 type: T,
70 payload: Extract<OrchestrationEvent, { type: T }>["payload"],
71 overrides: Partial<Extract<OrchestrationEvent, { type: T }>> = {},
72): Extract<OrchestrationEvent, { type: T }> {
73 const sequence = overrides.sequence ?? 1;
74 return {
75 sequence,
76 eventId: EventId.makeUnsafe(`event-${sequence}`),
77 aggregateKind: "thread",
78 aggregateId:
79 "threadId" in payload
80 ? payload.threadId
81 : "projectId" in payload
82 ? payload.projectId
83 : ProjectId.makeUnsafe("project-1"),
84 occurredAt: "2026-02-27T00:00:00.000Z",
85 commandId: null,
86 causationEventId: null,
87 correlationId: null,
88 metadata: {},
89 type,
90 payload,
91 ...overrides,
92 } as Extract<OrchestrationEvent, { type: T }>;
94​
95function makeReadModelThread(overrides: Partial<OrchestrationReadModel["threads"][number]>) {
96 return {
97 id: ThreadId.makeUnsafe("thread-1"),
98 projectId: ProjectId.makeUnsafe("project-1"),
99 title: "Thread",
100 modelSelection: {
101 provider: "codex",
102 model: "gpt-5.3-codex",
103 },
104 runtimeMode: DEFAULT_RUNTIME_MODE,
105 interactionMode: DEFAULT_INTERACTION_MODE,
106 branch: null,
107 worktreePath: null,
108 latestTurn: null,
109 createdAt: "2026-02-27T00:00:00.000Z",
110 updatedAt: "2026-02-27T00:00:00.000Z",
111 archivedAt: null,
112 deletedAt: null,
113 messages: [],
114 activities: [],
115 proposedPlans: [],
116 checkpoints: [],
117 session: null,
118 ...overrides,
119 } satisfies OrchestrationReadModel["threads"][number];
121​
122function makeReadModel(thread: OrchestrationReadModel["threads"][number]): OrchestrationReadModel {
123 return {
124 snapshotSequence: 1,
125 updatedAt: "2026-02-27T00:00:00.000Z",
126 projects: [
127 {
128 id: ProjectId.makeUnsafe("project-1"),
129 title: "Project",
130 workspaceRoot: "/tmp/project",
131 defaultModelSelection: {
132 provider: "codex",
133 model: "gpt-5.3-codex",
134 },
135 createdAt: "2026-02-27T00:00:00.000Z",
136 updatedAt: "2026-02-27T00:00:00.000Z",
137 deletedAt: null,
138 scripts: [],
139 },
140 ],
141 threads: [thread],
142 };
144​
145function makeReadModelProject(
146 overrides: Partial<OrchestrationReadModel["projects"][number]>,
147): OrchestrationReadModel["projects"][number] {
148 return {
149 id: ProjectId.makeUnsafe("project-1"),
150 title: "Project",
151 workspaceRoot: "/tmp/project",
152 defaultModelSelection: {
153 provider: "codex",
154 model: "gpt-5.3-codex",
155 },
156 createdAt: "2026-02-27T00:00:00.000Z",
157 updatedAt: "2026-02-27T00:00:00.000Z",
158 deletedAt: null,
159 scripts: [],
160 ...overrides,
161 };
163​
164describe("store read model sync", () => {
165 it("marks bootstrap complete after snapshot sync", () => {
166 const initialState: AppState = {
167 ...makeState(makeThread()),
168 bootstrapComplete: false,
169 };
170​
171 const next = syncServerReadModel(initialState, makeReadModel(makeReadModelThread({})));
172​
173 expect(next.bootstrapComplete).toBe(true);
174 });
175​
176 it("preserves claude model slugs without an active session", () => {
177 const initialState = makeState(makeThread());
178 const readModel = makeReadModel(
179 makeReadModelThread({
180 modelSelection: {
181 provider: "claudeAgent",
182 model: "claude-opus-4-6",
183 },
184 }),
185 );
186​
187 const next = syncServerReadModel(initialState, readModel);
188​
189 expect(next.threads[0]?.modelSelection.model).toBe("claude-opus-4-6");
190 });
191​
192 it("resolves claude aliases when session provider is claudeAgent", () => {
193 const initialState = makeState(makeThread());
194 const readModel = makeReadModel(
195 makeReadModelThread({
196 modelSelection: {
197 provider: "claudeAgent",
198 model: "sonnet",
199 },
200 session: {
201 threadId: ThreadId.makeUnsafe("thread-1"),
202 status: "ready",
203 providerName: "claudeAgent",
204 runtimeMode: "approval-required",
205 activeTurnId: null,
206 lastError: null,
207 updatedAt: "2026-02-27T00:00:00.000Z",
208 },
209 }),
210 );
211​
212 const next = syncServerReadModel(initialState, readModel);
213​
214 expect(next.threads[0]?.modelSelection.model).toBe("claude-sonnet-4-6");
215 });
216​
217 it("preserves project and thread updatedAt timestamps from the read model", () => {
218 const initialState = makeState(makeThread());
219 const readModel = makeReadModel(
220 makeReadModelThread({
221 updatedAt: "2026-02-27T00:05:00.000Z",
222 }),
223 );
224​
225 const next = syncServerReadModel(initialState, readModel);
226​
227 expect(next.projects[0]?.updatedAt).toBe("2026-02-27T00:00:00.000Z");
228 expect(next.threads[0]?.updatedAt).toBe("2026-02-27T00:05:00.000Z");
229 });
230​
231 it("maps archivedAt from the read model", () => {
232 const initialState = makeState(makeThread());
233 const archivedAt = "2026-02-28T00:00:00.000Z";
234 const next = syncServerReadModel(
235 initialState,
236 makeReadModel(
237 makeReadModelThread({
238 archivedAt,
239 }),
240 ),
241 );
242​
243 expect(next.threads[0]?.archivedAt).toBe(archivedAt);
244 });
245​
246 it("replaces projects using snapshot order during recovery", () => {
247 const project1 = ProjectId.makeUnsafe("project-1");
248 const project2 = ProjectId.makeUnsafe("project-2");
249 const project3 = ProjectId.makeUnsafe("project-3");
250 const initialState: AppState = {
251 projects: [
252 {
253 id: project2,
254 name: "Project 2",
255 cwd: "/tmp/project-2",
256 defaultModelSelection: {
257 provider: "codex",
258 model: DEFAULT_MODEL_BY_PROVIDER.codex,
259 },
260 scripts: [],
261 },
262 {
263 id: project1,
264 name: "Project 1",
265 cwd: "/tmp/project-1",
266 defaultModelSelection: {
267 provider: "codex",
268 model: DEFAULT_MODEL_BY_PROVIDER.codex,
269 },
270 scripts: [],
271 },
272 ],
273 threads: [],
274 bootstrapComplete: true,
275 };
276 const readModel: OrchestrationReadModel = {
277 snapshotSequence: 2,
278 updatedAt: "2026-02-27T00:00:00.000Z",
279 projects: [
280 makeReadModelProject({
281 id: project1,
282 title: "Project 1",
283 workspaceRoot: "/tmp/project-1",
284 }),
285 makeReadModelProject({
286 id: project2,
287 title: "Project 2",
288 workspaceRoot: "/tmp/project-2",
289 }),
290 makeReadModelProject({
291 id: project3,
292 title: "Project 3",
293 workspaceRoot: "/tmp/project-3",
294 }),
295 ],
296 threads: [],
297 };
298​
299 const next = syncServerReadModel(initialState, readModel);
300​
301 expect(next.projects.map((project) => project.id)).toEqual([project1, project2, project3]);
302 });
303});
304​
305describe("incremental orchestration updates", () => {
306 it("does not mark bootstrap complete for incremental events", () => {
307 const state: AppState = {
308 ...makeState(makeThread()),
309 bootstrapComplete: false,
310 };
311​
312 const next = applyOrchestrationEvent(
313 state,
314 makeEvent("thread.meta-updated", {
315 threadId: ThreadId.makeUnsafe("thread-1"),
316 title: "Updated title",
317 updatedAt: "2026-02-27T00:00:01.000Z",
318 }),
319 );
320​
321 expect(next.bootstrapComplete).toBe(false);
322 });
323​
324 it("preserves state identity for no-op project and thread deletes", () => {
325 const thread = makeThread();
326 const state = makeState(thread);
327​
328 const nextAfterProjectDelete = applyOrchestrationEvent(
329 state,
330 makeEvent("project.deleted", {
331 projectId: ProjectId.makeUnsafe("project-missing"),
332 deletedAt: "2026-02-27T00:00:01.000Z",
333 }),
334 );
335 const nextAfterThreadDelete = applyOrchestrationEvent(
336 state,
337 makeEvent("thread.deleted", {
338 threadId: ThreadId.makeUnsafe("thread-missing"),
339 deletedAt: "2026-02-27T00:00:01.000Z",
340 }),
341 );
342​
343 expect(nextAfterProjectDelete).toBe(state);
344 expect(nextAfterThreadDelete).toBe(state);
345 });
346​
347 it("reuses an existing project row when project.created arrives with a new id for the same cwd", () => {
348 const originalProjectId = ProjectId.makeUnsafe("project-1");
349 const recreatedProjectId = ProjectId.makeUnsafe("project-2");
350 const state: AppState = {
351 projects: [
352 {
353 id: originalProjectId,
354 name: "Project",
355 cwd: "/tmp/project",
356 defaultModelSelection: {
357 provider: "codex",
358 model: DEFAULT_MODEL_BY_PROVIDER.codex,
359 },
360 scripts: [],
361 },
362 ],
363 threads: [],
364 bootstrapComplete: true,
365 };
366​
367 const next = applyOrchestrationEvent(
368 state,
369 makeEvent("project.created", {
370 projectId: recreatedProjectId,
371 title: "Project Recreated",
372 workspaceRoot: "/tmp/project",
373 defaultModelSelection: {
374 provider: "codex",
375 model: DEFAULT_MODEL_BY_PROVIDER.codex,
376 },
377 scripts: [],
378 createdAt: "2026-02-27T00:00:01.000Z",
379 updatedAt: "2026-02-27T00:00:01.000Z",
380 }),
381 );
382​
383 expect(next.projects).toHaveLength(1);
384 expect(next.projects[0]?.id).toBe(recreatedProjectId);
385 expect(next.projects[0]?.cwd).toBe("/tmp/project");
386 expect(next.projects[0]?.name).toBe("Project Recreated");
387 });
388​
389 it("updates only the affected thread for message events", () => {
390 const thread1 = makeThread({
391 id: ThreadId.makeUnsafe("thread-1"),
392 messages: [
393 {
394 id: MessageId.makeUnsafe("message-1"),
395 role: "assistant",
396 text: "hello",
397 turnId: TurnId.makeUnsafe("turn-1"),
398 createdAt: "2026-02-27T00:00:00.000Z",
399 completedAt: "2026-02-27T00:00:00.000Z",
400 streaming: false,
401 },
402 ],
403 });
404 const thread2 = makeThread({ id: ThreadId.makeUnsafe("thread-2") });
405 const state: AppState = {
406 ...makeState(thread1),
407 threads: [thread1, thread2],
408 };
409​
410 const next = applyOrchestrationEvent(
411 state,
412 makeEvent("thread.message-sent", {
413 threadId: thread1.id,
414 messageId: MessageId.makeUnsafe("message-1"),
415 role: "assistant",
416 text: " world",
417 turnId: TurnId.makeUnsafe("turn-1"),
418 streaming: true,
419 createdAt: "2026-02-27T00:00:01.000Z",
420 updatedAt: "2026-02-27T00:00:01.000Z",
421 }),
422 );
423​
424 expect(next.threads[0]?.messages[0]?.text).toBe("hello world");
425 expect(next.threads[0]?.latestTurn?.state).toBe("running");
426 expect(next.threads[1]).toBe(thread2);
427 });
428​
429 it("applies replay batches in sequence and updates session state", () => {
430 const thread = makeThread({
431 latestTurn: {
432 turnId: TurnId.makeUnsafe("turn-1"),
433 state: "running",
434 requestedAt: "2026-02-27T00:00:00.000Z",
435 startedAt: "2026-02-27T00:00:00.000Z",
436 completedAt: null,
437 assistantMessageId: null,
438 },
439 });
440 const state = makeState(thread);
441​
442 const next = applyOrchestrationEvents(state, [
443 makeEvent(
444 "thread.session-set",
445 {
446 threadId: thread.id,
447 session: {
448 threadId: thread.id,
449 status: "running",
450 providerName: "codex",
451 runtimeMode: "full-access",
452 activeTurnId: TurnId.makeUnsafe("turn-1"),
453 lastError: null,
454 updatedAt: "2026-02-27T00:00:02.000Z",
455 },
456 },
457 { sequence: 2 },
458 ),
459 makeEvent(
460 "thread.message-sent",
461 {
462 threadId: thread.id,
463 messageId: MessageId.makeUnsafe("assistant-1"),
464 role: "assistant",
465 text: "done",
466 turnId: TurnId.makeUnsafe("turn-1"),
467 streaming: false,
468 createdAt: "2026-02-27T00:00:03.000Z",
469 updatedAt: "2026-02-27T00:00:03.000Z",
470 },
471 { sequence: 3 },
472 ),
473 ]);
474​
475 expect(next.threads[0]?.session?.status).toBe("running");
476 expect(next.threads[0]?.latestTurn?.state).toBe("completed");
477 expect(next.threads[0]?.messages).toHaveLength(1);
478 });
479​
480 it("does not regress latestTurn when an older turn diff completes late", () => {
481 const state = makeState(
482 makeThread({
483 latestTurn: {
484 turnId: TurnId.makeUnsafe("turn-2"),
485 state: "running",
486 requestedAt: "2026-02-27T00:00:02.000Z",
487 startedAt: "2026-02-27T00:00:03.000Z",
488 completedAt: null,
489 assistantMessageId: null,
490 },
491 }),
492 );
493​
494 const next = applyOrchestrationEvent(
495 state,
496 makeEvent("thread.turn-diff-completed", {
497 threadId: ThreadId.makeUnsafe("thread-1"),
498 turnId: TurnId.makeUnsafe("turn-1"),
499 checkpointTurnCount: 1,
500 checkpointRef: CheckpointRef.makeUnsafe("checkpoint-1"),
501 status: "ready",
502 files: [],
503 assistantMessageId: MessageId.makeUnsafe("assistant-1"),
504 completedAt: "2026-02-27T00:00:04.000Z",
505 }),
506 );
507​
508 expect(next.threads[0]?.turnDiffSummaries).toHaveLength(1);
509 expect(next.threads[0]?.latestTurn).toEqual(state.threads[0]?.latestTurn);
510 });
511​
512 it("rebinds live turn diffs to the authoritative assistant message when it arrives later", () => {
513 const turnId = TurnId.makeUnsafe("turn-1");
514 const state = makeState(
515 makeThread({
516 latestTurn: {
517 turnId,
518 state: "completed",
519 requestedAt: "2026-02-27T00:00:00.000Z",
520 startedAt: "2026-02-27T00:00:00.000Z",
521 completedAt: "2026-02-27T00:00:02.000Z",
522 assistantMessageId: MessageId.makeUnsafe("assistant:turn-1"),
523 },
524 turnDiffSummaries: [
525 {
526 turnId,
527 completedAt: "2026-02-27T00:00:02.000Z",
528 status: "ready",
529 checkpointTurnCount: 1,
530 checkpointRef: CheckpointRef.makeUnsafe("checkpoint-1"),
531 assistantMessageId: MessageId.makeUnsafe("assistant:turn-1"),
532 files: [{ path: "src/app.ts", additions: 1, deletions: 0 }],
533 },
534 ],
535 }),
536 );
537​
538 const next = applyOrchestrationEvent(
539 state,
540 makeEvent("thread.message-sent", {
541 threadId: ThreadId.makeUnsafe("thread-1"),
542 messageId: MessageId.makeUnsafe("assistant-real"),
543 role: "assistant",
544 text: "final answer",
545 turnId,
546 streaming: false,
547 createdAt: "2026-02-27T00:00:03.000Z",
548 updatedAt: "2026-02-27T00:00:03.000Z",
549 }),
550 );
551​
552 expect(next.threads[0]?.turnDiffSummaries[0]?.assistantMessageId).toBe(
553 MessageId.makeUnsafe("assistant-real"),
554 );
555 expect(next.threads[0]?.latestTurn?.assistantMessageId).toBe(
556 MessageId.makeUnsafe("assistant-real"),
557 );
558 });
559​
560 it("reverts messages, plans, activities, and checkpoints by retained turns", () => {
561 const state = makeState(
562 makeThread({
563 messages: [
564 {
565 id: MessageId.makeUnsafe("user-1"),
566 role: "user",
567 text: "first",
568 turnId: TurnId.makeUnsafe("turn-1"),
569 createdAt: "2026-02-27T00:00:00.000Z",
570 completedAt: "2026-02-27T00:00:00.000Z",
571 streaming: false,
572 },
573 {
574 id: MessageId.makeUnsafe("assistant-1"),
575 role: "assistant",
576 text: "first reply",
577 turnId: TurnId.makeUnsafe("turn-1"),
578 createdAt: "2026-02-27T00:00:01.000Z",
579 completedAt: "2026-02-27T00:00:01.000Z",
580 streaming: false,
581 },
582 {
583 id: MessageId.makeUnsafe("user-2"),
584 role: "user",
585 text: "second",
586 turnId: TurnId.makeUnsafe("turn-2"),
587 createdAt: "2026-02-27T00:00:02.000Z",
588 completedAt: "2026-02-27T00:00:02.000Z",
589 streaming: false,
590 },
591 ],
592 proposedPlans: [
593 {
594 id: "plan-1",
595 turnId: TurnId.makeUnsafe("turn-1"),
596 planMarkdown: "plan 1",
597 implementedAt: null,
598 implementationThreadId: null,
599 createdAt: "2026-02-27T00:00:00.000Z",
600 updatedAt: "2026-02-27T00:00:00.000Z",
601 },
602 {
603 id: "plan-2",
604 turnId: TurnId.makeUnsafe("turn-2"),
605 planMarkdown: "plan 2",
606 implementedAt: null,
607 implementationThreadId: null,
608 createdAt: "2026-02-27T00:00:02.000Z",
609 updatedAt: "2026-02-27T00:00:02.000Z",
610 },
611 ],
612 activities: [
613 {
614 id: EventId.makeUnsafe("activity-1"),
615 tone: "info",
616 kind: "step",
617 summary: "one",
618 payload: {},
619 turnId: TurnId.makeUnsafe("turn-1"),
620 createdAt: "2026-02-27T00:00:00.000Z",
621 },
622 {
623 id: EventId.makeUnsafe("activity-2"),
624 tone: "info",
625 kind: "step",
626 summary: "two",
627 payload: {},
628 turnId: TurnId.makeUnsafe("turn-2"),
629 createdAt: "2026-02-27T00:00:02.000Z",
630 },
631 ],
632 turnDiffSummaries: [
633 {
634 turnId: TurnId.makeUnsafe("turn-1"),
635 completedAt: "2026-02-27T00:00:01.000Z",
636 status: "ready",
637 checkpointTurnCount: 1,
638 checkpointRef: CheckpointRef.makeUnsafe("ref-1"),
639 files: [],
640 },
641 {
642 turnId: TurnId.makeUnsafe("turn-2"),
643 completedAt: "2026-02-27T00:00:03.000Z",
644 status: "ready",
645 checkpointTurnCount: 2,
646 checkpointRef: CheckpointRef.makeUnsafe("ref-2"),
647 files: [],
648 },
649 ],
650 }),
651 );
652​
653 const next = applyOrchestrationEvent(
654 state,
655 makeEvent("thread.reverted", {
656 threadId: ThreadId.makeUnsafe("thread-1"),
657 turnCount: 1,
658 }),
659 );
660​
661 expect(next.threads[0]?.messages.map((message) => message.id)).toEqual([
662 "user-1",
663 "assistant-1",
664 ]);
665 expect(next.threads[0]?.proposedPlans.map((plan) => plan.id)).toEqual(["plan-1"]);
666 expect(next.threads[0]?.activities.map((activity) => activity.id)).toEqual([
667 EventId.makeUnsafe("activity-1"),
668 ]);
669 expect(next.threads[0]?.turnDiffSummaries.map((summary) => summary.turnId)).toEqual([
670 TurnId.makeUnsafe("turn-1"),
671 ]);
672 });
673​
674 it("clears pending source proposed plans after revert before a new session-set event", () => {
675 const thread = makeThread({
676 latestTurn: {
677 turnId: TurnId.makeUnsafe("turn-2"),
678 state: "completed",
679 requestedAt: "2026-02-27T00:00:02.000Z",
680 startedAt: "2026-02-27T00:00:02.000Z",
681 completedAt: "2026-02-27T00:00:03.000Z",
682 assistantMessageId: MessageId.makeUnsafe("assistant-2"),
683 sourceProposedPlan: {
684 threadId: ThreadId.makeUnsafe("thread-source"),
685 planId: "plan-2" as never,
686 },
687 },
688 pendingSourceProposedPlan: {
689 threadId: ThreadId.makeUnsafe("thread-source"),
690 planId: "plan-2" as never,
691 },
692 turnDiffSummaries: [
693 {
694 turnId: TurnId.makeUnsafe("turn-1"),
695 completedAt: "2026-02-27T00:00:01.000Z",
696 status: "ready",
697 checkpointTurnCount: 1,
698 checkpointRef: CheckpointRef.makeUnsafe("ref-1"),
699 files: [],
700 },
701 {
702 turnId: TurnId.makeUnsafe("turn-2"),
703 completedAt: "2026-02-27T00:00:03.000Z",
704 status: "ready",
705 checkpointTurnCount: 2,
706 checkpointRef: CheckpointRef.makeUnsafe("ref-2"),
707 files: [],
708 },
709 ],
710 });
711 const reverted = applyOrchestrationEvent(
712 makeState(thread),
713 makeEvent("thread.reverted", {
714 threadId: thread.id,
715 turnCount: 1,
716 }),
717 );
718​
719 expect(reverted.threads[0]?.pendingSourceProposedPlan).toBeUndefined();
720​
721 const next = applyOrchestrationEvent(
722 reverted,
723 makeEvent("thread.session-set", {
724 threadId: thread.id,
725 session: {
726 threadId: thread.id,
727 status: "running",
728 providerName: "codex",
729 runtimeMode: "full-access",
730 activeTurnId: TurnId.makeUnsafe("turn-3"),
731 lastError: null,
732 updatedAt: "2026-02-27T00:00:04.000Z",
733 },
734 }),
735 );
736​
737 expect(next.threads[0]?.latestTurn).toMatchObject({
738 turnId: TurnId.makeUnsafe("turn-3"),
739 state: "running",
740 });
741 expect(next.threads[0]?.latestTurn?.sourceProposedPlan).toBeUndefined();
742 });
743});