Skip to content

Commit 4453535

Browse files
authored
Merge pull request #72 from Tarquinen/refactor/consolidate-api-formats
refactor: consolidate api-formats into fetch-wrapper
2 parents 6311141 + 8fdc4d3 commit 4453535

File tree

17 files changed

+418
-551
lines changed

17 files changed

+418
-551
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ Thumbs.db
3030

3131
# Tests (local development only)
3232
tests/
33-
33+
notes/

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { createPluginState } from "./lib/state"
77
import { installFetchWrapper } from "./lib/fetch-wrapper"
88
import { createPruningTool } from "./lib/pruning-tool"
99
import { createEventHandler, createChatParamsHandler } from "./lib/hooks"
10-
import { createToolTracker } from "./lib/api-formats/synth-instruction"
10+
import { createToolTracker } from "./lib/fetch-wrapper/tool-tracker"
1111
import { loadPrompt } from "./lib/core/prompt"
1212

1313
const plugin: Plugin = (async (ctx) => {
@@ -65,7 +65,7 @@ const plugin: Plugin = (async (ctx) => {
6565

6666
// Check for updates after a delay
6767
setTimeout(() => {
68-
checkForUpdates(ctx.client, logger, config.showUpdateToasts ?? true).catch(() => {})
68+
checkForUpdates(ctx.client, logger, config.showUpdateToasts ?? true).catch(() => { })
6969
}, 5000)
7070

7171
// Show migration toast if there were config migrations

lib/api-formats/prunable-list.ts

Lines changed: 0 additions & 159 deletions
This file was deleted.

lib/api-formats/synth-instruction.ts

Lines changed: 0 additions & 184 deletions
This file was deleted.

0 commit comments

Comments
 (0)