agents.dev 1.0.5 → 1.0.7

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.
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toOpenCodeCommand = toOpenCodeCommand;
4
- function toOpenCodeCommand(agent) {
5
- // OpenCode generic config/prompt
6
- const parts = [];
7
- parts.push(`<!--- OpenCode Agent Config --->`);
8
- parts.push(`# ${agent.name} ${agent.emoji || ''}`);
9
- parts.push(`**Role**: ${agent.role}\n`);
10
- parts.push(`## Instructions`);
11
- parts.push(agent.systemPrompt.trim());
12
- parts.push('\n');
13
- if (agent.rules && agent.rules.length > 0) {
14
- parts.push(`## Constraints`);
15
- agent.rules.forEach(rule => parts.push(`- ${rule}`));
16
- }
17
- return parts.join('\n');
18
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toRooRules = toRooRules;
4
- function toRooRules(agent) {
5
- // Roo Code / Cline usually expects a clear set of rules and role definition.
6
- const parts = [];
7
- parts.push(`# ${agent.name} (${agent.role})`);
8
- parts.push(`\n${agent.systemPrompt.trim()}\n`);
9
- if (agent.rules && agent.rules.length > 0) {
10
- parts.push(`## Analytical Rules & Guidelines`);
11
- agent.rules.forEach(rule => parts.push(`- ${rule}`));
12
- parts.push('\n');
13
- }
14
- // Tools might be handled differently in Roo, but listing them as preferences is safe
15
- if (agent.tools && agent.tools.length > 0) {
16
- parts.push(`## Tool Usage Preferences`);
17
- agent.tools.forEach(tool => parts.push(`- Prefer using ${tool} when applicable.`));
18
- }
19
- return parts.join('\n');
20
- }
package/dist/types.js DELETED
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.AgentSchema = zod_1.z.object({
6
- name: zod_1.z.string().min(1, "Name is required"),
7
- role: zod_1.z.string().min(1, "Role is required"),
8
- description: zod_1.z.string().optional(),
9
- emoji: zod_1.z.string().optional(),
10
- systemPrompt: zod_1.z.string().min(10, "System prompt must be at least 10 characters"),
11
- rules: zod_1.z.array(zod_1.z.string()).optional(),
12
- tools: zod_1.z.array(zod_1.z.string()).optional()
13
- });