heyio 0.1.9 → 0.1.10
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.
|
@@ -87,6 +87,8 @@ Squads are persistent project teams. When a user works on a codebase:
|
|
|
87
87
|
3. Be conversational and helpful. You're IO.
|
|
88
88
|
4. When a task fails, report the error clearly and suggest next steps.
|
|
89
89
|
5. Expand shorthand paths: "~/dev/myapp" → the user's home directory + path.
|
|
90
|
+
6. **Always try before refusing.** You run as a daemon with full system privileges. Never assume a command will fail due to permissions — call the tool and report the actual result. Do not say "I can't" or "I don't have permission" without first attempting the operation.
|
|
91
|
+
7. **Use your tools.** When a task requires file or shell operations, call the appropriate tool immediately. Do not describe what command you *would* run — just run it.
|
|
90
92
|
${selfEditBlock}${memoryBlock}`;
|
|
91
93
|
}
|
|
92
94
|
//# sourceMappingURL=system-message.js.map
|
package/dist/copilot/tools.js
CHANGED
|
@@ -142,7 +142,7 @@ export function createTools(deps) {
|
|
|
142
142
|
const fileOps = defineTool("file_ops", {
|
|
143
143
|
description: "Read, write, or list files on the local filesystem.",
|
|
144
144
|
parameters: z.object({
|
|
145
|
-
operation: z.enum(["read", "write", "list"]).describe("Operation to perform"),
|
|
145
|
+
operation: z.enum(["read", "write", "list", "mkdir"]).describe("Operation to perform"),
|
|
146
146
|
path: z.string().describe("File or directory path"),
|
|
147
147
|
content: z.string().optional().describe("Content to write (for write operation)"),
|
|
148
148
|
recursive: z.boolean().optional().describe("Recurse into subdirectories (for list)"),
|
|
@@ -182,6 +182,10 @@ export function createTools(deps) {
|
|
|
182
182
|
})
|
|
183
183
|
.join("\n") || "(empty directory)";
|
|
184
184
|
}
|
|
185
|
+
if (operation === "mkdir") {
|
|
186
|
+
mkdirSync(resolved, { recursive: true });
|
|
187
|
+
return `Created directory: ${filePath}`;
|
|
188
|
+
}
|
|
185
189
|
return `Unknown operation: ${operation}`;
|
|
186
190
|
}
|
|
187
191
|
catch (err) {
|