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 +0 -1
- package/dist/config.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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 =
|
|
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') || '
|
|
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
|