wip: remove opencode, searxng, resources; fix user settings read

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 07:27:19 +00:00
co-authored by Claude Opus 4.6
parent 5925ac49a1
commit 7bbcccabf1
46 changed files with 325 additions and 2037 deletions
@@ -7,7 +7,6 @@ import {
getUserSkillsDir,
getGlobalTasksDir,
getUserTasksDir,
getGlobalResourcesDir,
getHomeDir,
DATA_PATH,
} from '@@/data-path';
@@ -61,7 +60,6 @@ export function generateContainerContext(email: string): string {
const tools = dedup([...scanDir(getGlobalToolsDir(), 'TOOL.md'), ...scanDir(getUserToolsDir(email), 'TOOL.md')]);
const skills = dedup([...scanDir(getGlobalSkillsDir(), 'SKILL.md'), ...scanDir(getUserSkillsDir(email), 'SKILL.md')]);
const tasks = dedup([...scanDir(getGlobalTasksDir(), 'TASK.md'), ...scanDir(getUserTasksDir(email), 'TASK.md')]);
const resources = scanDir(getGlobalResourcesDir(), 'RESOURCE.md');
const globalToolsDir = getGlobalToolsDir();
const userToolsDir = getUserToolsDir(email);
@@ -100,11 +98,6 @@ ${formatList(skills)}
Tasks are predefined instruction sets the AI agent can execute.
${formatList(tasks)}
## Configured Resources
Resources are external service integrations (TTS, STT, OCR, etc.) configured in Settings.
${formatList(resources)}
## Creating New Tools
Create a directory in \`${userToolsDir}/<tool-name>/\` with two files:
@@ -139,7 +132,6 @@ export async function execute(_toolCallId: string, params: Record<string, unknow
| Variable | Description |
|----------|-------------|
| \`OFFICER_EMAIL_DB\` | Path to email SQLite database |
| \`OFFICER_RESOURCES\` | JSON with configured resource integrations |
| \`PI_TOOLS_DIRS\` | Tool discovery paths (colon-separated) |
| \`PI_SEARXNG_URL\` | Search engine URL |
`;