thebird 1.2.111 → 1.2.112

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.
@@ -36,12 +36,14 @@ const TOOLS = {
36
36
  },
37
37
  },
38
38
  list_files: {
39
- description: 'List files available in the filesystem',
39
+ description: 'List project files in /home (the working directory). Pass prefix="sys/" to inspect system internals (rarely needed).',
40
40
  parameters: { type: 'object', properties: { prefix: { type: 'string' } }, required: [] },
41
41
  execute: async ({ prefix }) => {
42
42
  const snap = window.__debug.idbSnapshot || {};
43
43
  const keys = Object.keys(snap).sort();
44
- return (prefix ? keys.filter(k => k.startsWith(prefix)) : keys).join('\n') || '(empty)';
44
+ const scope = prefix || 'home/';
45
+ const filtered = keys.filter(k => k.startsWith(scope) && !k.endsWith('/.keep'));
46
+ return filtered.join('\n') || '(empty)';
45
47
  },
46
48
  },
47
49
  run_command: {