@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @abide/bridge
2
2
 
3
+ ## 0.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - a9f8ad1: format the repo with abide format and bun fmt ([`d7cd46d`](https://github.com/briancray/abide/commit/d7cd46da1e0cd523631d38d923f8bb08d1f0716f))
8
+
3
9
  ## 0.3.4
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abide/bridge",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "description": "Connects the Claude Code on your machine to the assistant on an abide site",
6
6
  "license": "MIT",
package/src/bridge.ts CHANGED
@@ -8,6 +8,7 @@
8
8
  // machine, and none of this machine's reaches the site.
9
9
 
10
10
  import type { AssistantEvent } from '@abide/abide/server'
11
+
11
12
  import { claudeTurn, type TurnRequest } from './claudeTurn.ts'
12
13
  import { readLines } from './readLines.ts'
13
14
 
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)) {