* fix(registry): add missing agents to installation profiles - v0.5.1 (#64) - Add development agents (frontend-specialist, backend-specialist, devops-specialist, codebase-agent) to developer profile - Add content agents (copywriter, technical-writer) and data-analyst to business profile - Add all new agents to full and advanced profiles - Add eval-runner and repo-manager to appropriate profiles - Add context-retriever subagent to advanced profile Version bump: - Update VERSION: 0.5.0 → 0.5.1 - Update package.json: 0.5.0 → 0.5.1 Create validation and documentation: - Add profile coverage validation script (scripts/registry/validate-profile-coverage.sh) - Add profile validation guide (.opencode/context/openagents-repo/guides/profile-validation.md) - Add subagent invocation guide (.opencode/context/openagents-repo/guides/subagent-invocation.md) - Document issue resolution (ISSUE_64_RESOLUTION.md) Fixes #64 - Users installing with profiles now receive all agents added in v0.5.0 * chore: remove ISSUE_64_RESOLUTION.md documentation * chore: remove root-level test files (moved to evals/framework/scripts/) * feat(evals): add comprehensive integration and reliability tests - Add eval-pipeline-integration.test.ts with 14 end-to-end tests - Add framework-confidence.test.ts for meta-testing framework reliability - Add evaluator-reliability.test.ts to prevent false positives/negatives - Add task-type-detector.ts utility for task classification - Add INTEGRATION_TESTS.md documentation - Move test scripts to proper locations in evals/framework/scripts/
33 lines
886 B
JavaScript
33 lines
886 B
JavaScript
import { createOpencodeClient } from '@opencode-ai/sdk';
|
|
|
|
const client = createOpencodeClient({
|
|
baseUrl: 'http://localhost:3721'
|
|
});
|
|
|
|
// Create session
|
|
const session = await client.session.create({
|
|
body: { title: 'Manual Agent Test' }
|
|
});
|
|
|
|
console.log('Session created:', session.data.id);
|
|
|
|
// Send prompt with openagent
|
|
const response = await client.session.prompt({
|
|
path: { id: session.data.id },
|
|
body: {
|
|
agent: 'openagent',
|
|
parts: [{
|
|
type: 'text',
|
|
text: 'Create a simple TypeScript function called add that takes two numbers and returns their sum. Save it to src/utils/math.ts'
|
|
}]
|
|
}
|
|
});
|
|
|
|
console.log('\nResponse:', response.data.info);
|
|
console.log('\nParts:', response.data.parts.length);
|
|
response.data.parts.forEach((p, i) => {
|
|
console.log(` Part ${i + 1}: ${p.type}`);
|
|
if (p.type === 'tool') {
|
|
console.log(` Tool: ${p.tool}`);
|
|
}
|
|
});
|