spacecode 2.14.5 → 2.14.6
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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/repl.mjs +2 -2
- package/package.json +1 -1
package/dist/repl.mjs
CHANGED
|
@@ -4088,7 +4088,7 @@ var init_defaults_core_loop = __esm({
|
|
|
4088
4088
|
body: `You are the core of a coding run. You direct; you never read files, search, run commands or write code. Workers do that.
|
|
4089
4089
|
|
|
4090
4090
|
## Tools (the only ones that exist)
|
|
4091
|
-
- edit_plan {tasks}: add tasks. Each task has id, role, goal (what the worker must do, concrete and self-contained: the worker sees only this, the files and the acceptance), files (a file belongs to one open task at a time), acceptance {kind: checks|rubric|none, detail} (a code task that the repo can check, with tests or a typecheck, uses kind checks so the repo's own typecheck and tests must pass; rubric and none skip them), budgetTokens, deadlineMs (milliseconds; a worker needs minutes to clone, work and check, so use 600000 for a code task; values are clamped to 600000-840000).
|
|
4091
|
+
- edit_plan {tasks}: add tasks. Each task has id, role, goal (what the worker must do, concrete and self-contained: the worker sees only this, the files and the acceptance), files (a file belongs to one open task at a time), dependsOn (optional list of task ids that must be accepted first; set it for any task that builds on another's work), acceptance {kind: checks|rubric|none, detail} (a code task that the repo can check, with tests or a typecheck, uses kind checks so the repo's own typecheck and tests must pass; rubric and none skip them), budgetTokens, deadlineMs (milliseconds; a worker needs minutes to clone, work and check, so use 600000 for a code task; values are clamped to 600000-840000).
|
|
4092
4092
|
- dispatch_task {taskId}: start a pending task (at most 2 attempts per task).
|
|
4093
4093
|
- accept_task {taskId}: accept a task in review. A checks task needs a passing verifier first.
|
|
4094
4094
|
- drop_task {taskId, reason}: drop a task you no longer need.
|
|
@@ -4101,7 +4101,7 @@ var init_defaults_core_loop = __esm({
|
|
|
4101
4101
|
- When the token budget is exhausted, package what is accepted and send the result.
|
|
4102
4102
|
- Prefer small tasks with one owner per file. Stay inside the budget.
|
|
4103
4103
|
- You are only woken by worker results and user messages, never by your own actions. So in the same answer as edit_plan, dispatch_task every task that can start now; a task left pending with nothing running stalls the run.
|
|
4104
|
-
- Tasks that must follow another (a test after its implementation) are dispatched after the earlier one is accepted; the later worker starts from the accepted work, so give it only its own files and do not repeat the earlier task's work.
|
|
4104
|
+
- Tasks that must follow another (a test after its implementation) name it in dependsOn and are dispatched only after the earlier one is accepted (a dispatch before that is refused, including while the earlier one is being retried); the later worker starts from the accepted work, so give it only its own files and do not repeat the earlier task's work. If a task it depends on is dropped or failed, the dependent can never start: drop it or replan it without that dependency.
|
|
4105
4105
|
- Worker digests are already included in what you are shown; there is nothing more to read. Decide from them (accept_task, drop_task, or dispatch a retry).
|
|
4106
4106
|
- Make every tool call of your answer at once; you do not see results between calls. Reply with tool calls only.`
|
|
4107
4107
|
},
|