osborn 0.9.165 → 0.9.167

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
@@ -86,7 +86,6 @@ if (args.includes('start')) {
86
86
  }
87
87
 
88
88
  // Use src/index.ts (dev) if available, otherwise dist/index.js (npm install)
89
- import { existsSync } from 'fs'
90
89
  const srcPath = join(__dirname, '..', 'src', 'index.ts')
91
90
  const distPath = join(__dirname, '..', 'dist', 'index.js')
92
91
 
package/dist/config.js CHANGED
@@ -595,7 +595,7 @@ async function extractCwd(filePath) {
595
595
  *
596
596
  * @param limit - Max sessions to return (default 100, sorted by recency)
597
597
  */
598
- export async function listAllClaudeSessions(limit = 2000) {
598
+ export async function listAllClaudeSessions(limit = 1000) {
599
599
  const projectsDir = getClaudeProjectsDir();
600
600
  if (!existsSync(projectsDir))
601
601
  return [];
package/dist/index.js CHANGED
@@ -520,7 +520,7 @@ function startApiServer(workingDir, port) {
520
520
  const syncToken = process.env.OSBORN_SYNC_TOKEN;
521
521
  if (req.method === 'GET' && url.pathname === '/sessions') {
522
522
  try {
523
- const limit = parseInt(url.searchParams.get('limit') || '2000', 10);
523
+ const limit = Math.min(parseInt(url.searchParams.get('limit') || '500', 10), 1000);
524
524
  const sessions = await listAllClaudeSessions(limit);
525
525
  const payload = {
526
526
  // The agent's working directory at launch — the BASE LAYER of all
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osborn",
3
- "version": "0.9.165",
3
+ "version": "0.9.167",
4
4
  "description": "Voice AI coding assistant - local agent that connects to Osborn frontend",
5
5
  "type": "module",
6
6
  "bin": {