copilot-operator 0.1.4 → 0.1.5
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/src/api/operator.service.js +14 -0
- package/dist/src/orchestrator/taskRunner.js +1 -1
- package/dist/src/plan/brief.js +1248 -1221
- package/dist/src/plan/schema.js +12 -0
- package/dist/src/plan/systemGuide.js +32 -0
- package/dist/src/session/exports.js +3 -0
- package/dist/src/vcs/taskVcs.js +120 -11
- package/dist/web/404.html +2 -2
- package/dist/web/_next/static/chunks/867-0cd2c3cfd0ff0a45.js +1 -0
- package/dist/web/_next/static/chunks/app/history/{page-8d4f817e36986e3f.js → page-83543937cecde5de.js} +1 -1
- package/dist/web/_next/static/chunks/app/sessions/view/page-4631bdf5113a73b2.js +1 -0
- package/dist/web/appearance.html +2 -2
- package/dist/web/appearance.txt +10 -10
- package/dist/web/defaults.html +2 -2
- package/dist/web/defaults.txt +10 -10
- package/dist/web/history.html +2 -2
- package/dist/web/history.txt +10 -10
- package/dist/web/import.html +2 -2
- package/dist/web/import.txt +10 -10
- package/dist/web/index.html +2 -2
- package/dist/web/index.txt +10 -10
- package/dist/web/level1.html +2 -2
- package/dist/web/level1.txt +10 -10
- package/dist/web/presets.html +2 -2
- package/dist/web/presets.txt +10 -10
- package/dist/web/sessions/view.html +2 -2
- package/dist/web/sessions/view.txt +10 -10
- package/dist/web/system.html +2 -2
- package/dist/web/system.txt +10 -10
- package/package.json +4 -3
- package/dist/web/_next/static/chunks/867-f0e3e152f6f67e45.js +0 -1
- package/dist/web/_next/static/chunks/app/sessions/view/page-185f5fcc383e6619.js +0 -1
- /package/dist/web/_next/static/{p9lexLS0u8W5N6VzLavHO → 7TE2rEuHqGdGx14If8TEb}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{p9lexLS0u8W5N6VzLavHO → 7TE2rEuHqGdGx14If8TEb}/_ssgManifest.js +0 -0
|
@@ -249,6 +249,20 @@ let OperatorService = class OperatorService {
|
|
|
249
249
|
if (reason)
|
|
250
250
|
throw new Error(reason);
|
|
251
251
|
}
|
|
252
|
+
if (merged.baseBranch !== undefined)
|
|
253
|
+
merged.baseBranch = merged.baseBranch.trim();
|
|
254
|
+
/*
|
|
255
|
+
* Where the session starts is fixed at its first run. A new choice clears that record, so
|
|
256
|
+
* the next task to run is cut from what was chosen now; the tasks that already ran keep
|
|
257
|
+
* their own base commits, which is what a re-run of them goes back to.
|
|
258
|
+
*/
|
|
259
|
+
const startChanged = (merged.startFrom ?? 'head') !== (s.vcs?.startFrom ?? 'head') ||
|
|
260
|
+
(merged.baseBranch || 'main') !== (s.vcs?.baseBranch || 'main') ||
|
|
261
|
+
merged.repoDir.toLowerCase() !== (s.vcs?.repoDir ?? '').trim().toLowerCase();
|
|
262
|
+
if (startChanged) {
|
|
263
|
+
s.vcsBaseCommit = undefined;
|
|
264
|
+
s.vcsStart = undefined;
|
|
265
|
+
}
|
|
252
266
|
s.vcs = merged;
|
|
253
267
|
}
|
|
254
268
|
});
|
|
@@ -567,7 +567,7 @@ export async function runTask(transport, session, task, deps) {
|
|
|
567
567
|
// --- version control: a branch of this task's own, before anything is touched -------
|
|
568
568
|
const prepared = await prepareForTask(session, task, bus, async (mutate) => {
|
|
569
569
|
await store.updateSession(session.id, mutate);
|
|
570
|
-
});
|
|
570
|
+
}, () => store.listSessions());
|
|
571
571
|
if (prepared.vcs.branch || prepared.vcs.problem) {
|
|
572
572
|
await setTask((t) => {
|
|
573
573
|
t.vcs = prepared.vcs;
|