osborn 0.8.31 → 0.8.33

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/bin/cli.js CHANGED
@@ -3,6 +3,7 @@
3
3
  import { spawn } from 'child_process'
4
4
  import { fileURLToPath } from 'url'
5
5
  import { dirname, join } from 'path'
6
+ import { readFileSync } from 'fs'
6
7
 
7
8
  const __filename = fileURLToPath(import.meta.url)
8
9
  const __dirname = dirname(__filename)
@@ -10,6 +11,22 @@ const __dirname = dirname(__filename)
10
11
  // Pass all args to the actual agent
11
12
  const args = process.argv.slice(2)
12
13
 
14
+ // Check for version flag — read from package.json relative to this binary.
15
+ // Used by the Sprite bootstrap to verify install via marker file. Must exit
16
+ // before any env-var checks since `osborn --version` should work without
17
+ // LiveKit/etc credentials configured.
18
+ if (args.includes('--version') || args.includes('-v')) {
19
+ try {
20
+ const pkgPath = join(__dirname, '..', 'package.json')
21
+ const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'))
22
+ console.log(pkg.version)
23
+ process.exit(0)
24
+ } catch (err) {
25
+ console.error('Could not read package.json:', err.message)
26
+ process.exit(1)
27
+ }
28
+ }
29
+
13
30
  // Check for help
14
31
  if (args.includes('--help') || args.includes('-h')) {
15
32
  console.log(`
@@ -22,6 +39,7 @@ Usage:
22
39
 
23
40
  Options:
24
41
  --room <code> Room code from the Osborn web interface
42
+ --version, -v Print version and exit
25
43
  --help, -h Show this help message
26
44
 
27
45
  Environment Variables:
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from 'node:events';
2
- const RECALL_BASE_URL = 'https://us-east-1.recall.ai/api/v1';
2
+ const RECALL_REGION = process.env.RECALL_REGION ?? 'us-west-2';
3
+ const RECALL_BASE_URL = `https://${RECALL_REGION}.recall.ai/api/v1`;
3
4
  export class RecallClient extends EventEmitter {
4
5
  #apiKey;
5
6
  #activeBots = new Map(); // botId → sessionId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osborn",
3
- "version": "0.8.31",
3
+ "version": "0.8.33",
4
4
  "description": "Voice AI coding assistant - local agent that connects to Osborn frontend",
5
5
  "type": "module",
6
6
  "bin": {