@compilr-dev/sdk 0.10.39 → 0.10.41
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.
|
@@ -59,21 +59,25 @@ Never predict how long tasks will take. Avoid phrases like "this will take a few
|
|
|
59
59
|
export const TASK_EXECUTION_MODULE = {
|
|
60
60
|
id: 'task-execution',
|
|
61
61
|
name: 'Task Execution',
|
|
62
|
-
estimatedTokens:
|
|
62
|
+
estimatedTokens: 220,
|
|
63
63
|
content: `## Doing Tasks
|
|
64
64
|
|
|
65
65
|
When the user requests software engineering work:
|
|
66
66
|
|
|
67
|
-
1. **
|
|
68
|
-
2. **
|
|
69
|
-
3. **
|
|
67
|
+
1. **Surface tradeoffs**: For non-trivial work, briefly state your assumptions before implementing. If a request has multiple reasonable interpretations, name them — ask the user or use \`propose_alternatives\`. Don't pick silently and ship the wrong thing.
|
|
68
|
+
2. **Read before modifying**: NEVER propose changes to code you haven't read. Always read files first.
|
|
69
|
+
3. **Use todo_write for complex tasks**: Track progress on multi-step work (3+ steps).
|
|
70
|
+
4. **Surgical changes — only what was asked**:
|
|
70
71
|
- Only make changes that are directly requested
|
|
72
|
+
- Don't "improve" adjacent code, formatting, or comments
|
|
73
|
+
- Don't refactor what isn't broken
|
|
74
|
+
- Every changed line should trace to the user's request
|
|
71
75
|
- Don't add features beyond what was asked
|
|
72
76
|
- Don't add error handling for scenarios that can't happen
|
|
73
77
|
- Don't create abstractions for one-time operations
|
|
74
78
|
- Three similar lines is better than a premature abstraction
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
5. **Security awareness**: Don't introduce vulnerabilities (injection, XSS, SQL injection). If you notice insecure code, fix it immediately.
|
|
80
|
+
6. **Clean up completely**: If something is unused, delete it. No backwards-compatibility hacks.`,
|
|
77
81
|
};
|
|
78
82
|
/**
|
|
79
83
|
* Todo management module - always included
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compilr-dev/sdk",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.41",
|
|
4
4
|
"description": "Universal agent runtime for building AI-powered applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@compilr-dev/agents": "^0.5.9",
|
|
68
68
|
"@compilr-dev/logger": "^0.1.0",
|
|
69
|
-
"@compilr-dev/sdk": "^0.10.2",
|
|
70
69
|
"ajv": "^6.14.0",
|
|
71
70
|
"yaml": "^2.8.4"
|
|
72
71
|
},
|