Skip to content

refactor(reply): 用 direct tool output 结束最终回复

fefed0d
Select commit
Loading
Failed to load commit list.
Merged

feat(reply): 支持实验性工具调用回复 #67

refactor(reply): 用 direct tool output 结束最终回复
fefed0d
Select commit
Loading
Failed to load commit list.
codefactor.io / CodeFactor failed Apr 5, 2026 in 11s

1 issue fixed. 104 issues found. Autofix available.

Annotations

Check warning on line 931 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L931

Replace `(config.isAt·??·false)` with `config.isAt·??·false` (prettier/prettier)

Check notice on line 292 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L213-L292

Complex Method

Check warning on line 529 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L529

Replace `············` with `················` (prettier/prettier)

Check warning on line 660 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L660

Replace `args.file·&&·typeof·args.file·===·'object'·&&·!Array.isArray(args.file)` with `⏎········args.file·&&⏎········typeof·args.file·===·'object'·&&⏎········!Array.isArray(args.file)⏎····` (prettier/prettier)

Check warning on line 1043 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L1043

Insert `··` (prettier/prettier)

Check warning on line 810 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L810

Insert `··` (prettier/prettier)

Check warning on line 808 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L808

Replace `····························` with `······························` (prettier/prettier)

Check warning on line 780 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L780

Replace `buildXmlMessage(item·as·Record<string,·unknown>)` with `⏎························buildXmlMessage(item·as·Record<string,·unknown>)⏎····················` (prettier/prettier)

Check warning on line 710 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L710

Replace `buildXmlMessage(item·as·Record<string,·unknown>)` with `⏎························buildXmlMessage(item·as·Record<string,·unknown>)⏎····················` (prettier/prettier)

Check warning on line 539 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L539

Replace `············` with `················` (prettier/prettier)

Check warning on line 1858 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L1858

Replace `································` with `··································` (prettier/prettier)

Check warning on line 1969 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L1969

Replace `copyOfConfig.experimentalToolCallReply·&&·chunk.toolCalls` with `⏎························copyOfConfig.experimentalToolCallReply·&&⏎························chunk.toolCalls⏎····················` (prettier/prettier)

Check warning on line 336 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L336

Insert `⏎···················` (prettier/prettier)

Check warning on line 1000 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L1000

Insert `⏎········` (prettier/prettier)

Check warning on line 279 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L279

Delete `····` (prettier/prettier)

Check notice on line 751 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L692-L751

Complex Method

Check warning on line 436 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L436

Replace `'The·character\'s·internal·thoughts·about·the·message.'` with `"The·character's·internal·thoughts·about·the·message."` (prettier/prettier)

Check warning on line 1025 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L1025

Replace `})` with `········)⏎············})⏎········` (prettier/prettier)

Check warning on line 721 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L721

Replace `call.args.is_final·===·false·||·!Array.isArray(call.args.wake_up_reply)` with `⏎············call.args.is_final·===·false·||⏎············!Array.isArray(call.args.wake_up_reply)⏎········` (prettier/prettier)

Check warning on line 536 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L536

Insert `····` (prettier/prettier)

Check warning on line 44 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L44

Delete `·` (prettier/prettier)

Check warning on line 530 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L530

Insert `····` (prettier/prettier)

Check warning on line 4 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L4

Delete `·` (prettier/prettier)

Check warning on line 1024 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L1024

Replace `return·call.name·===·'character_reply'·&&` with `····return·(⏎····················call.name·===·'character_reply'·&&⏎···················` (prettier/prettier)

Check warning on line 811 in src/plugins/chat.ts

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

src/plugins/chat.ts#L811

Insert `··` (prettier/prettier)