copilot-operator 0.1.4 → 0.1.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.
Files changed (47) hide show
  1. package/dist/src/api/operator.controller.js +5 -2
  2. package/dist/src/api/operator.service.js +48 -12
  3. package/dist/src/orchestrator/taskRunner.js +12 -2
  4. package/dist/src/plan/brief.js +1290 -1221
  5. package/dist/src/plan/schema.js +12 -0
  6. package/dist/src/plan/script.js +13 -0
  7. package/dist/src/plan/systemGuide.js +1396 -172
  8. package/dist/src/session/compose.js +5 -1
  9. package/dist/src/session/exports.js +4 -0
  10. package/dist/src/session/store.js +4 -1
  11. package/dist/src/session/story.js +10 -1
  12. package/dist/src/vcs/taskVcs.js +122 -12
  13. package/dist/web/404.html +2 -2
  14. package/dist/web/_next/static/chunks/549-afafecd6bfbb138e.js +1 -0
  15. package/dist/web/_next/static/chunks/56-91cd1709158ebf99.js +1 -0
  16. package/dist/web/_next/static/chunks/867-fc983d08916b4e28.js +1 -0
  17. package/dist/web/_next/static/chunks/app/history/page-b3b4af994c868b5d.js +1 -0
  18. package/dist/web/_next/static/chunks/app/layout-e0174d863960f109.js +1 -0
  19. package/dist/web/_next/static/chunks/app/sessions/view/page-d4213354730a945c.js +1 -0
  20. package/dist/web/_next/static/css/{5a10c60adf9c5336.css → 63fea96806e6b2cb.css} +1 -1
  21. package/dist/web/appearance.html +2 -2
  22. package/dist/web/appearance.txt +25 -24
  23. package/dist/web/defaults.html +2 -2
  24. package/dist/web/defaults.txt +25 -24
  25. package/dist/web/history.html +2 -2
  26. package/dist/web/history.txt +25 -24
  27. package/dist/web/import.html +2 -2
  28. package/dist/web/import.txt +25 -24
  29. package/dist/web/index.html +2 -2
  30. package/dist/web/index.txt +25 -24
  31. package/dist/web/level1.html +2 -2
  32. package/dist/web/level1.txt +25 -24
  33. package/dist/web/presets.html +2 -2
  34. package/dist/web/presets.txt +25 -24
  35. package/dist/web/sessions/view.html +2 -2
  36. package/dist/web/sessions/view.txt +25 -24
  37. package/dist/web/system.html +2 -2
  38. package/dist/web/system.txt +25 -24
  39. package/package.json +4 -3
  40. package/dist/web/_next/static/chunks/549-2086c05135bc9753.js +0 -1
  41. package/dist/web/_next/static/chunks/867-f0e3e152f6f67e45.js +0 -1
  42. package/dist/web/_next/static/chunks/89-382e9b29486d2747.js +0 -1
  43. package/dist/web/_next/static/chunks/app/history/page-8d4f817e36986e3f.js +0 -1
  44. package/dist/web/_next/static/chunks/app/layout-92fa876afe619cf3.js +0 -1
  45. package/dist/web/_next/static/chunks/app/sessions/view/page-185f5fcc383e6619.js +0 -1
  46. /package/dist/web/_next/static/{p9lexLS0u8W5N6VzLavHO → WJ_8hRZsp4VWiDZx8NMUw}/_buildManifest.js +0 -0
  47. /package/dist/web/_next/static/{p9lexLS0u8W5N6VzLavHO → WJ_8hRZsp4VWiDZx8NMUw}/_ssgManifest.js +0 -0
@@ -38,6 +38,18 @@ const VcsInput = z
38
38
  branchPrefix: z.string().optional(),
39
39
  /** The name of the one branch a per-session run works on. Ignored in per-task mode. */
40
40
  branchName: z.string().optional(),
41
+ /**
42
+ * Where the session's first branch is cut from: a local branch (`baseBranch`, `main` unless
43
+ * said otherwise), or the end of the branch of the session before it in the same repository.
44
+ * Absent keeps the old behaviour, wherever the repository is. See `VersionControl.startFrom`.
45
+ */
46
+ startFrom: z
47
+ .enum(['branch', 'previous-session', 'head'], {
48
+ error: 'startFrom must be "branch" (every session starts from the local branch in baseBranch, "main" unless said otherwise) or "previous-session" (each session carries on from the branch of the session before it in the same repository).',
49
+ })
50
+ .optional(),
51
+ /** The local branch `startFrom: "branch"` starts from, and `previous-session`'s fallback. */
52
+ baseBranch: z.string().trim().optional(),
41
53
  }, {
42
54
  error: 'Every session needs a "vcs" object saying whether the runner does version control for it and, when it does, which git repository to work in. Ask the user both questions and write the answers here.',
43
55
  })
@@ -658,6 +658,19 @@ export const SCRIPT = [
658
658
  },
659
659
  ],
660
660
  },
661
+ {
662
+ choose: { en: 'Where each session starts, if 1.1 (`startFrom`):', bg: 'Откъде тръгва всяка сесия, ако е 1.1 (`startFrom`):' },
663
+ options: [
664
+ {
665
+ en: 'From the local branch main — every session starts from the same clean code (branch; name another in baseBranch)',
666
+ bg: 'От локалния клон main — всяка сесия тръгва от един и същ чист код (branch; друг клон в baseBranch)',
667
+ },
668
+ {
669
+ en: "From the previous session's branch — the sessions form a chain (previous-session)",
670
+ bg: 'От клона на предната сесия — сесиите образуват верига (previous-session)',
671
+ },
672
+ ],
673
+ },
661
674
  {
662
675
  choose: { en: 'If a task fails (`onFailure` of the session, required):', bg: 'Ако задача се провали (`onFailure` на сесията, задължително):' },
663
676
  options: [