@abide/bridge 0.3.4 → 0.3.5
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/bridge.ts +1 -0
- package/src/claudeTurn.ts +3 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/bridge.ts
CHANGED
package/src/claudeTurn.ts
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
import { mkdtemp, rm } from 'node:fs/promises' // bun has no temporary directory or recursive remove of its own
|
|
12
12
|
import { tmpdir } from 'node:os' // bun exposes no temporary directory of its own
|
|
13
|
+
|
|
13
14
|
import type { AssistantEvent, ClaudeCodeConfig } from '@abide/abide/server'
|
|
15
|
+
|
|
14
16
|
import { readLines } from './readLines.ts'
|
|
15
17
|
|
|
16
18
|
// What Claude Code names the one MCP server it is handed, and so the prefix on each tool it calls.
|
|
@@ -109,7 +111,7 @@ function siteFlags(config: Omit<ClaudeCodeConfig, 'tools'>): string[] {
|
|
|
109
111
|
*/
|
|
110
112
|
function takeFlag(args: string[], spellings: string[]): string[] | undefined {
|
|
111
113
|
let values: string[] | undefined
|
|
112
|
-
for (let index = 0; index < args.length;
|
|
114
|
+
for (let index = 0; index < args.length;) {
|
|
113
115
|
const arg = args[index] as string
|
|
114
116
|
const [flag, inline] = arg.split(/=(.*)/s) as [string, string?]
|
|
115
117
|
if (!spellings.includes(flag)) {
|