Open History to see the last commit
1import * as Dialog from "../../components/ui/Dialog";
2import type {
3 EnvironmentId,
4 ProjectId,
5 ServerProvider,
6 ThreadId,
7 ThreadPullRequestLink,
8} from "@t3tools/contracts";
9import {
10 type ComposerEnvironmentCandidate,
11 matchComposerEnvironmentItems,
12 matchComposerThreadItems,
13} from "@t3tools/client-runtime/composerThreadItems";
14import type { EnvironmentThreadShell } from "@t3tools/client-runtime/state/models";
15
16const EMPTY_THREAD_SHELLS: ReadonlyArray<EnvironmentThreadShell> = [];
17const EMPTY_ENVIRONMENTS: ReadonlyArray<ComposerEnvironmentCandidate> = [];
18const NO_LINKED_ENVIRONMENTS: ReadonlyMap<EnvironmentId, string> = new Map();
19import { COMPOSER_CONTEXT_MAX_RECORDS } from "@t3tools/contracts";
20import {
21 formatComposerContextReference,
22 threadContextRecord,
23} from "@t3tools/shared/composerContextReferences";
24import { environmentComposerContext, pullRequestComposerContext } from "../../lib/composerContext";
25import { uuidv4 } from "../../lib/uuid";
26import {
27 getComposerDraftSnapshot,
28 setComposerDraftContext,
29 useComposerDraftSelection,
30} from "../../state/use-composer-drafts";
31import { USAGE_LIMITS_COMMAND } from "@t3tools/shared/usageLimits";
32import {
33 detectComposerTrigger,
34 replaceTextRange,
35 serializeComposerFileLink,
36 type ComposerTrigger,
37} from "@t3tools/shared/composerTrigger";
38import {
39 insertRankedSearchResult,
40 normalizeSearchQuery,
41 scoreQueryMatch,
42} from "@t3tools/shared/searchRanking";
43import {
44 createProviderWorkspaceSnapshotRefreshAtomFamily,
45 dedupeProviderSkillsByName,
46 getProviderSkillsForSlashMenu,
47 getProviderSlashCommandsForSlashMenu,
48 isProviderSkillUserInvocable,
49 resolveProviderSkillsForCwd,
50 resolveProviderSlashCommandsForCwd,
51} from "@t3tools/client-runtime/providerSkills";
52import {
53 formatComposerModelMention,
54 rankComposerModelMentions,
55} from "@t3tools/client-runtime/composer-model-mentions";
56import { useAtomRefresh } from "@effect/atom-react";
57import { Atom } from "effect/reactivity";
58import { useEffect, useState } from "react";
59
60import type { ComposerEditorSelection } from "../../components/ComposerEditor";
61import { serverEnvironment } from "../../state/server";
62import {
63 useComposerPathSearch,
64 useComposerPullRequestSearch,
65 useThreadSearch,
66} from "../../state/queries";
67import type { ModelOption } from "../../lib/modelOptions";
68import type { ComposerCommandItem } from "./ComposerCommandPopover";
69import { matchesSlashSkillQuery } from "./composerSlashSkillSearch";
70
71const providerWorkspaceSnapshotRefresh = createProviderWorkspaceSnapshotRefreshAtomFamily({
72 providers: serverEnvironment.providersValueAtom,
73 refreshProviders: serverEnvironment.refreshProviders,
74});
75
76const idleWorkspaceSnapshotRefreshAtom: Atom.Atom<unknown> = Atom.make<void>(undefined).pipe(
77 Atom.withLabel("mobile:provider-workspace-snapshot-refresh:idle"),
78);
79
80function composerSelectionAtEnd(draftMessage: string): ComposerEditorSelection {
81 return { start: draftMessage.length, end: draftMessage.length };
82}
83
84/**
85 * A caret placed by an insertion (chips, pasted context) wins while the draft
86 * still has the text it was placed in. Otherwise the composer's own caret is
87 * clamped to the draft, and a caret from another owner starts at the end.
88 */
89export function resolveComposerMenuSelection(input: {
90 readonly draftMessage: string;
91 readonly ownerKey: string | null;
92 readonly inserted: ComposerEditorSelection | null;
93 readonly local: {
94 readonly ownerKey: string | null;
95 readonly start: number;
96 readonly end: number;
97 };
98}): ComposerEditorSelection {
99 if (input.inserted) return input.inserted;
100 if (input.local.ownerKey !== input.ownerKey) return composerSelectionAtEnd(input.draftMessage);
101 const length = input.draftMessage.length;
102 return { start: Math.min(input.local.start, length), end: Math.min(input.local.end, length) };
103}
104
105export function buildComposerSlashCommandItems(input: {
106 readonly query: string;
107 readonly atMessageStart: boolean;
108 readonly hasThread: boolean;
109 readonly hasCompactableConversation?: boolean;
110 readonly offersUsageLimits?: boolean;
111 /** T3's `/clear` replaces the provider's, which would clear a session T3 still treats as live. */
112 readonly offersFreshSession?: boolean;
113 readonly offersSideChat?: boolean;
114 readonly selectedProviderStatus: Pick<ServerProvider, "driver" | "slashCommands"> | null;
115}): ComposerCommandItem[] {
116 const query = input.query.toLowerCase();
117 const items: ComposerCommandItem[] = "model".includes(query)
118 ? [
119 {
120 id: "cmd:model",
121 type: "slash-command",
122 command: "model",
123 label: "/model",
124 description: "Switch model",
125 },
126 ]
127 : [];
128
129 // Providers expand commands only at the start of a message. T3 commands
130 // change local state and do not have this restriction, except `/clear`.
131 if (!input.atMessageStart) return items;
132 if (input.offersSideChat) {
133 for (const [command, description] of [
134 ["side", "Ask a side question in a new side chat"],
135 ["btw", "Same as /side"],
136 ] as const) {
137 if (!command.includes(query)) continue;
138 items.push({
139 id: `cmd:${command}`,
140 type: "slash-command",
141 command,
142 label: `/${command}`,
143 description,
144 });
145 }
146 }
147 if (input.offersFreshSession && "clear".includes(query)) {
148 items.push({
149 id: "cmd:clear",
150 type: "slash-command",
151 command: "clear",
152 label: "/clear",
153 description: "Start a fresh session",
154 });
155 }
156 for (const command of input.selectedProviderStatus?.slashCommands ?? []) {
157 if (!command.name.toLowerCase().includes(query)) continue;
158 if (command.name === "clear" && input.offersFreshSession) continue;
159 if (command.name === "compact" && !input.hasCompactableConversation) continue;
160 if (command.name === USAGE_LIMITS_COMMAND.name && input.offersUsageLimits && !input.hasThread) {
161 continue;
162 }
163 if (
164 !input.hasThread &&
165 input.selectedProviderStatus?.driver === "codex" &&
166 command.name === "feedback"
167 ) {
168 continue;
169 }
170 items.push({
171 id: `pcmd:${command.name}`,
172 type: "provider-slash-command",
173 command,
174 label: `/${command.name}`,
175 description: command.description ?? "",
176 });
177 }
178 return items;
179}
180
181export function buildComposerModelItems(
182 modelOptions: ReadonlyArray<ModelOption>,
183 query: string,
184 providers: ReadonlyArray<ServerProvider>,
185): ComposerCommandItem[] {
186 // The picker retains saved selections even when their provider is no longer usable.
187 const readyProviderIds = new Set(
188 providers
189 .filter(
190 (provider) =>
191 provider.installed &&
192 provider.status === "ready" &&
193 provider.auth.status !== "unauthenticated" &&
194 provider.availability !== "unavailable",
195 )
196 .map((provider) => provider.instanceId),
197 );
198 return rankComposerModelMentions(
199 modelOptions.filter(
200 (option) =>
201 readyProviderIds.has(option.selection.instanceId) &&
202 !option.isUnavailable &&
203 !option.isHidden &&
204 !option.isLegacy,
205 ),
206 query,
207 (option) => ({
208 name: option.label,
209 ...(option.subtitle ? { subProvider: option.subtitle } : {}),
210 driverKind: option.providerDriver,
211 providerDisplayName: option.providerLabel,
212 }),
213 ).map((option) => ({
214 id: `model:${option.key}`,
215 type: "model",
216 option,
217 label: option.label,
218 description: option.subtitle
219 ? `${option.providerLabel} · ${option.subtitle}`
220 : option.providerLabel,
221 }));
222}
223
224export function resolveComposerCommandSelection(input: {
225 readonly draftMessage: string;
226 readonly trigger: Pick<ComposerTrigger, "rangeStart" | "rangeEnd">;
227 readonly item: ComposerCommandItem;
228}): { readonly text: string; readonly cursor: number } {
229 const { draftMessage, trigger, item } = input;
230 let replacement = "";
231 if (item.type === "path") {
232 replacement = `${serializeComposerFileLink(item.path)} `;
233 } else if (item.type === "skill") {
234 replacement = `$${item.skill.name} `;
235 } else if (item.type === "slash-command") {
236 replacement = `/${item.command} `;
237 } else if (item.type === "provider-slash-command") {
238 replacement = `/${item.command.name} `;
239 } else if (item.type === "model") {
240 replacement = `${formatComposerModelMention(item.option.selection.instanceId, item.option.selection.model)} `;
241 }
242 return replaceTextRange(draftMessage, trigger.rangeStart, trigger.rangeEnd, replacement);
243}
244
245export function useComposerCommandMenu({
246 draftMessage,
247 ownerKey,
248 environmentId,
249 threadShells = EMPTY_THREAD_SHELLS,
250 environments = EMPTY_ENVIRONMENTS,
251 linkedEnvironments = NO_LINKED_ENVIRONMENTS,
252 currentThreadId = null,
253 projectCwd,
254 pullRequestProjectId = null,
255 pullRequestRepository = null,
256 threadPullRequests,
257 selectedProviderStatus,
258 hasThread,
259 hasCompactableConversation,
260 offersUsageLimits = false,
261 enabled = true,
262 onChangeDraftMessage,
263 onUsageLimits,
264 modelOptions,
265 modelProviders,
266 onFreshSession,
267 offersSideChat = false,
268}: {
269 readonly draftMessage: string;
270 readonly ownerKey: string | null;
271 readonly environmentId: EnvironmentId | null;
272 readonly threadShells?: ReadonlyArray<EnvironmentThreadShell>;
273 readonly environments?: ReadonlyArray<ComposerEnvironmentCandidate>;
274 /** The machines `environmentId` links to, by name, whose threads the picker also offers. */
275 readonly linkedEnvironments?: ReadonlyMap<EnvironmentId, string>;
276 readonly currentThreadId?: ThreadId | null;
277 readonly projectCwd: string | null;
278 readonly pullRequestProjectId?: ProjectId | null;
279 readonly pullRequestRepository?: string | null;
280 readonly threadPullRequests?: ReadonlyArray<ThreadPullRequestLink>;
281 readonly selectedProviderStatus: ServerProvider | null;
282 readonly hasThread: boolean;
283 readonly hasCompactableConversation: boolean;
284 readonly offersUsageLimits?: boolean;
285 readonly enabled?: boolean;
286 readonly onChangeDraftMessage: (value: string) => void;
287 readonly onUsageLimits?: () => void;
288 readonly modelOptions?: ReadonlyArray<ModelOption>;
289 readonly modelProviders?: ReadonlyArray<ServerProvider>;
290 /** Arms a fresh session for the next message; absent where `/clear` is unavailable. */
291 readonly onFreshSession?: () => void;
292 readonly offersSideChat?: boolean;
293}) {
294 const [localSelection, setLocalSelection] = useState(() => ({
295 ownerKey,
296 ...composerSelectionAtEnd(draftMessage),
297 }));
298 // Thread mentions rank by recency as of when the composer mounted.
299 const [now] = useState(() => Date.now());
300 const insertedSelection = useComposerDraftSelection(ownerKey, draftMessage);
301 const selection = resolveComposerMenuSelection({
302 draftMessage,
303 ownerKey,
304 inserted: insertedSelection,
305 local: localSelection,
306 });
307 const setSelection = (next: ComposerEditorSelection) =>
308 setLocalSelection({ ownerKey, start: next.start, end: next.end });
309
310 const skills = selectedProviderStatus
311 ? resolveProviderSkillsForCwd(selectedProviderStatus, projectCwd)
312 : [];
313 const selectedProviderInstanceId = selectedProviderStatus?.instanceId;
314 const refreshWorkspaceSnapshot = useAtomRefresh(
315 environmentId && projectCwd && selectedProviderInstanceId
316 ? providerWorkspaceSnapshotRefresh({
317 environmentId,
318 instanceId: selectedProviderInstanceId,
319 cwd: projectCwd,
320 })
321 : idleWorkspaceSnapshotRefreshAtom,
322 );
323 // Every draft change rechecks a stale snapshot, including drafts written by
324 // another surface (a prompt link) that never move the editor selection.
325 // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- refreshes the provider workspace snapshot atom whenever the draft text changes from any surface
326 useEffect(() => {
327 refreshWorkspaceSnapshot();
328 }, [
329 // oxlint-disable-next-line react/exhaustive-effect-dependencies -- Draft changes are the recheck signal.
330 draftMessage,
331 refreshWorkspaceSnapshot,
332 ]);
333 const onSelectionChange = (nextSelection: ComposerEditorSelection) => {
334 setSelection(nextSelection);
335 };
336
337 const trigger = (() => {
338 if (!enabled || selection.start !== selection.end) {
339 return null;
340 }
341 return detectComposerTrigger(draftMessage, selection.end);
342 })();
343 const pathSearch = useComposerPathSearch({
344 environmentId,
345 cwd: trigger?.kind === "path" ? projectCwd : null,
346 query: trigger?.kind === "path" ? trigger.query : null,
347 });
348 // Mounts older settled threads matching the mention, which shells may leave out.
349 useThreadSearch(
350 trigger?.kind === "path" && environmentId ? [environmentId] : [],
351 trigger?.kind === "path" ? trigger.query : "",
352 { titlesOnly: true },
353 );
354 const pullRequestSearch = useComposerPullRequestSearch({
355 environmentId,
356 projectId: pullRequestProjectId,
357 repository: pullRequestRepository,
358 threadPullRequests,
359 query: trigger?.kind === "pull-request" ? trigger.query : null,
360 });
361
362 const items = ((): ComposerCommandItem[] => {
363 if (!trigger) return [];
364
365 if (trigger.kind === "pull-request") {
366 return pullRequestSearch.entries.map((entry) => ({
367 id: `pr:${entry.projectId}:${entry.repository}:${entry.number}`,
368 type: "pull-request",
369 pullRequest: {
370 number: entry.number,
371 title: entry.title,
372 url: entry.url,
373 headBranch: entry.headBranch,
374 baseBranch: entry.baseBranch,
375 state: entry.state,
376 isDraft: entry.isDraft,
377 },
378 label: `#${entry.number}`,
379 description: `${entry.isDraft ? "Draft" : entry.state} · ${
380 entry.repository.toLowerCase() === pullRequestRepository?.toLowerCase()
381 ? ""
382 : `${entry.repository} · `
383 }${entry.title}`,
384 }));
385 }
386
387 if (trigger.kind === "slash-command") {
388 const q = trigger.query.toLowerCase();
389 const visibleSkills = getProviderSkillsForSlashMenu(skills, true);
390 const commandItems = buildComposerSlashCommandItems({
391 query: q,
392 atMessageStart: trigger.rangeStart === 0,
393 hasThread,
394 hasCompactableConversation,
395 offersUsageLimits,
396 offersFreshSession: onFreshSession !== undefined,
397 offersSideChat,
398 selectedProviderStatus: selectedProviderStatus
399 ? {
400 ...selectedProviderStatus,
401 slashCommands: getProviderSlashCommandsForSlashMenu(
402 resolveProviderSlashCommandsForCwd(selectedProviderStatus, projectCwd),
403 visibleSkills,
404 ),
405 }
406 : null,
407 });
408
409 const skillItems = visibleSkills
410 .filter((skill) => matchesSlashSkillQuery(skill, q))
411 .map((skill) => ({
412 id: `skill:${skill.name}`,
413 type: "skill" as const,
414 skill,
415 label: `skill:${skill.name}`,
416 description: skill.shortDescription ?? skill.description ?? "",
417 }));
418
419 return [...commandItems, ...skillItems];
420 }
421
422 if (trigger.kind === "skill") {
423 const enabledSkills = dedupeProviderSkillsByName(skills.filter(isProviderSkillUserInvocable));
424 const normalizedQuery = normalizeSearchQuery(trigger.query, {
425 trimLeadingPattern: /^\p{Sc}+/u,
426 });
427
428 if (!normalizedQuery) {
429 return enabledSkills.slice(0, 20).map((skill) => ({
430 id: `skill:${skill.name}`,
431 type: "skill" as const,
432 skill,
433 label: skill.displayName ?? skill.name,
434 description: skill.shortDescription ?? skill.description ?? "",
435 }));
436 }
437
438 const ranked: Array<{
439 item: (typeof enabledSkills)[number];
440 score: number;
441 tieBreaker: string;
442 }> = [];
443 for (const skill of enabledSkills) {
444 const displayLabel = (skill.displayName ?? skill.name).toLowerCase();
445 const scores = [
446 scoreQueryMatch({
447 value: skill.name.toLowerCase(),
448 query: normalizedQuery,
449 exactBase: 0,
450 prefixBase: 2,
451 boundaryBase: 4,
452 includesBase: 6,
453 fuzzyBase: 100,
454 boundaryMarkers: ["-", "_", "/"],
455 }),
456 scoreQueryMatch({
457 value: displayLabel,
458 query: normalizedQuery,
459 exactBase: 1,
460 prefixBase: 3,
461 boundaryBase: 5,
462 includesBase: 7,
463 fuzzyBase: 110,
464 }),
465 scoreQueryMatch({
466 value: skill.shortDescription?.toLowerCase() ?? "",
467 query: normalizedQuery,
468 exactBase: 20,
469 prefixBase: 22,
470 boundaryBase: 24,
471 includesBase: 26,
472 }),
473 scoreQueryMatch({
474 value: skill.description?.toLowerCase() ?? "",
475 query: normalizedQuery,
476 exactBase: 30,
477 prefixBase: 32,
478 boundaryBase: 34,
479 includesBase: 36,
480 }),
481 ].filter((score): score is number => score !== null);
482
483 if (scores.length > 0) {
484 insertRankedSearchResult(
485 ranked,
486 {
487 item: skill,
488 score: Math.min(...scores),
489 tieBreaker: `${displayLabel}\u0000${skill.name}`,
490 },
491 20,
492 );
493 }
494 }
495
496 return ranked.map(({ item: skill }) => ({
497 id: `skill:${skill.name}`,
498 type: "skill" as const,
499 skill,
500 label: skill.displayName ?? skill.name,
501 description: skill.shortDescription ?? skill.description ?? "",
502 }));
503 }
504
505 if (trigger.kind === "path") {
506 const threadItems = environmentId
507 ? matchComposerThreadItems({
508 shells: threadShells,
509 environmentId,
510 linkedEnvironments,
511 excludeThreadId: currentThreadId,
512 query: trigger.query,
513 now,
514 })
515 : [];
516 const environmentItems = environmentId
517 ? matchComposerEnvironmentItems({ environments, environmentId, query: trigger.query })
518 : [];
519 const modelItems =
520 modelOptions && modelProviders
521 ? buildComposerModelItems(modelOptions, trigger.query, modelProviders)
522 : [];
523 return [
524 ...threadItems,
525 ...environmentItems,
526 ...modelItems,
527 ...pathSearch.entries.map((entry) => {
528 const parts = entry.path.split("/");
529 return {
530 id: `path:${entry.path}`,
531 type: "path" as const,
532 path: entry.path,
533 kind: entry.kind,
534 label: parts[parts.length - 1] ?? entry.path,
535 description: parts.length > 1 ? parts.slice(0, -1).join("/") : "",
536 };
537 }),
538 ];
539 }
540
541 return [];
542 })();
543
544 const onSelect = (item: ComposerCommandItem) => {
545 if (!trigger) return;
546 if (item.type === "environment") {
547 if (!ownerKey || trigger.kind !== "path") return;
548 const record = environmentComposerContext(item.environmentId, item.label);
549 const existing = getComposerDraftSnapshot(ownerKey).context?.records ?? [];
550 const alreadyAttached = existing.some((entry) => entry.contextId === record.contextId);
551 if (!alreadyAttached && existing.length >= COMPOSER_CONTEXT_MAX_RECORDS) {
552 Dialog.alert("Too many context items", "Remove some context from the draft and try again.");
553 return;
554 }
555 const result = replaceTextRange(
556 draftMessage,
557 trigger.rangeStart,
558 trigger.rangeEnd,
559 `${formatComposerContextReference(record)} `,
560 );
561 onChangeDraftMessage(result.text);
562 if (!alreadyAttached) {
563 const draft = getComposerDraftSnapshot(ownerKey);
564 setComposerDraftContext(ownerKey, {
565 version: 1,
566 records: [...(draft.context?.records ?? []), record],
567 });
568 }
569 setSelection({ start: result.cursor, end: result.cursor });
570 return;
571 }
572 if (item.type === "thread") {
573 if (!ownerKey || trigger.kind !== "path") return;
574 const shell = threadShells.find(
575 (candidate) =>
576 candidate.environmentId === item.thread.environmentId &&
577 candidate.id === item.thread.threadId,
578 );
579 if (!shell) return;
580 const record = threadContextRecord(item.thread, shell.title);
581 const existing = getComposerDraftSnapshot(ownerKey).context?.records ?? [];
582 const alreadyAttached = existing.some((entry) => entry.contextId === record.contextId);
583 if (!alreadyAttached && existing.length >= COMPOSER_CONTEXT_MAX_RECORDS) {
584 Dialog.alert("Too many context items", "Remove some context from the draft and try again.");
585 return;
586 }
587 const result = replaceTextRange(
588 draftMessage,
589 trigger.rangeStart,
590 trigger.rangeEnd,
591 `${formatComposerContextReference(record)} `,
592 );
593 onChangeDraftMessage(result.text);
594 if (!alreadyAttached) {
595 const draft = getComposerDraftSnapshot(ownerKey);
596 setComposerDraftContext(ownerKey, {
597 version: 1,
598 records: [...(draft.context?.records ?? []), record],
599 });
600 }
601 setSelection({ start: result.cursor, end: result.cursor });
602 return;
603 }
604 if (item.type === "pull-request") {
605 if (
606 !ownerKey ||
607 trigger.kind !== "pull-request" ||
608 !items.some((candidate) => candidate.id === item.id)
609 )
610 return;
611 const record = pullRequestComposerContext(item.pullRequest, uuidv4());
612 if (
613 (getComposerDraftSnapshot(ownerKey).context?.records.length ?? 0) >=
614 COMPOSER_CONTEXT_MAX_RECORDS
615 ) {
616 Dialog.alert("Too many context items", "Remove some context from the draft and try again.");
617 return;
618 }
619 const result = replaceTextRange(
620 draftMessage,
621 trigger.rangeStart,
622 trigger.rangeEnd,
623 `${formatComposerContextReference(record)} `,
624 );
625 onChangeDraftMessage(result.text);
626 const draft = getComposerDraftSnapshot(ownerKey);
627 setComposerDraftContext(ownerKey, {
628 version: 1,
629 records: [...(draft.context?.records ?? []), record],
630 });
631 setSelection({ start: result.cursor, end: result.cursor });
632 return;
633 }
634
635 if (item.type === "slash-command" && item.command === "clear" && onFreshSession) {
636 const cleared = replaceTextRange(draftMessage, trigger.rangeStart, trigger.rangeEnd, "");
637 setSelection({ start: cleared.cursor, end: cleared.cursor });
638 onChangeDraftMessage(cleared.text);
639 onFreshSession();
640 return;
641 }
642 if (
643 item.type === "provider-slash-command" &&
644 item.command.name === USAGE_LIMITS_COMMAND.name &&
645 onUsageLimits
646 ) {
647 const cleared = replaceTextRange(draftMessage, trigger.rangeStart, trigger.rangeEnd, "");
648 setSelection({ start: cleared.cursor, end: cleared.cursor });
649 onChangeDraftMessage(cleared.text);
650 onUsageLimits();
651 return;
652 }
653
654 const result = resolveComposerCommandSelection({ draftMessage, trigger, item });
655 setSelection({ start: result.cursor, end: result.cursor });
656 onChangeDraftMessage(result.text);
657 };
658
659 return {
660 selection,
661 onSelectionChange,
662 trigger,
663 items,
664 skills,
665 isLoading:
666 trigger?.kind === "pull-request" ? pullRequestSearch.isPending : pathSearch.isPending,
667 error:
668 trigger?.kind === "pull-request"
669 ? pullRequestProjectId === null || pullRequestRepository === null
670 ? "Pull requests are unavailable for this project."
671 : pullRequestSearch.error
672 : null,
673 onSelect,
674 };
675}