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.
Files changed (34) hide show
  1. package/dist/src/api/operator.service.js +14 -0
  2. package/dist/src/orchestrator/taskRunner.js +1 -1
  3. package/dist/src/plan/brief.js +1248 -1221
  4. package/dist/src/plan/schema.js +12 -0
  5. package/dist/src/plan/systemGuide.js +32 -0
  6. package/dist/src/session/exports.js +3 -0
  7. package/dist/src/vcs/taskVcs.js +120 -11
  8. package/dist/web/404.html +2 -2
  9. package/dist/web/_next/static/chunks/867-0cd2c3cfd0ff0a45.js +1 -0
  10. package/dist/web/_next/static/chunks/app/history/{page-8d4f817e36986e3f.js → page-83543937cecde5de.js} +1 -1
  11. package/dist/web/_next/static/chunks/app/sessions/view/page-4631bdf5113a73b2.js +1 -0
  12. package/dist/web/appearance.html +2 -2
  13. package/dist/web/appearance.txt +10 -10
  14. package/dist/web/defaults.html +2 -2
  15. package/dist/web/defaults.txt +10 -10
  16. package/dist/web/history.html +2 -2
  17. package/dist/web/history.txt +10 -10
  18. package/dist/web/import.html +2 -2
  19. package/dist/web/import.txt +10 -10
  20. package/dist/web/index.html +2 -2
  21. package/dist/web/index.txt +10 -10
  22. package/dist/web/level1.html +2 -2
  23. package/dist/web/level1.txt +10 -10
  24. package/dist/web/presets.html +2 -2
  25. package/dist/web/presets.txt +10 -10
  26. package/dist/web/sessions/view.html +2 -2
  27. package/dist/web/sessions/view.txt +10 -10
  28. package/dist/web/system.html +2 -2
  29. package/dist/web/system.txt +10 -10
  30. package/package.json +4 -3
  31. package/dist/web/_next/static/chunks/867-f0e3e152f6f67e45.js +0 -1
  32. package/dist/web/_next/static/chunks/app/sessions/view/page-185f5fcc383e6619.js +0 -1
  33. /package/dist/web/_next/static/{p9lexLS0u8W5N6VzLavHO → 7TE2rEuHqGdGx14If8TEb}/_buildManifest.js +0 -0
  34. /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;