halfcycle 0.4.16 → 0.4.17

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.
@@ -274,13 +274,27 @@ export declare function openPhaseReview(credential: RepoCredential, phase: strin
274
274
  export declare function reviewOpenedLine(phase: string): string;
275
275
  /** CL2 — Halfcycle could not count what the phase changed. */
276
276
  export declare const COULD_NOT_COUNT_LINE = "[halfcycle] Halfcycle could not count what this phase changed, so the owner judges each part on what the agents reported alone.";
277
- /** H1 (`typed-close-review`) — how the owner reviews, or that typing is switched off. */
278
- export declare function typedReviewHintLine(offered: boolean): string;
277
+ /**
278
+ * The exact line the owner types in chat to accept every built part of `phase`, or
279
+ * `null` when this command cannot spell it: a name holding a `:` is typed by the
280
+ * phase's plan-order number (`typedPhaseReference`), which the open answer does not
281
+ * carry, so the listing's own lines are the ones to type then.
282
+ */
283
+ export declare function typedAcceptLine(phase: string): string | null;
284
+ /**
285
+ * H1 (`typed-close-review`) — how the owner reviews, or that typing is switched off.
286
+ * While typing is offered it names the exact line that accepts every built part, and
287
+ * the per-part form (F-78, owner 2026-10-30: an owner told to review in the console
288
+ * did not know the line works in chat).
289
+ */
290
+ export declare function typedReviewHintLine(offered: boolean, phase: string): string;
279
291
  /**
280
292
  * After H1 (`system-view-page` AC7): the console's way to review, ending with the
281
293
  * phase's System view address on `engagementId`. The second way while typing is
282
- * offered, the way while it is switched off. `undefined` when there is no address (an
283
- * id that is not an engagement id), and then no line is printed.
294
+ * offered, and then it names the line to type instead (F-78): this is the line the
295
+ * method has the session relay, so it alone must tell the owner that chat works. The
296
+ * way while it is switched off. `undefined` when there is no address (an id that is
297
+ * not an engagement id), and then no line is printed.
284
298
  */
285
299
  export declare function systemViewReviewLine(offered: boolean, engagementId: string, phase: string): string | undefined;
286
300
  /** CL3 — tasks of the phase are not finished, named by title, at most ten. */
@@ -1 +1 @@
1
- {"version":3,"file":"close-phase.d.ts","sourceRoot":"","sources":["../src/close-phase.ts"],"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AAC,WAAW,GAAG,IAAI,CAAC,CAoBjH;AAuBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,MAAM,EAAE,CAqBrE;AAID;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAK/F;AAED;;;;;GAKG;AACH,wBAAsB,8BAA8B,CAClD,UAAU,EAAE,cAAc,EAC1B,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,SAAS,oBAAoB,EAAE,GAAG,IAAI,CAAC,CAqBjD;AASD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,SAAS,oBAAoB,EAAE,GAAG,IAAI,GAAG,MAAM,EAAE,CAGlG;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,GAAG,MAAM,EAAE,CAExE;AAID;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjD"}
package/dist/index.js CHANGED
@@ -756,12 +756,25 @@ var seatCoverageSchema = z6.object({
756
756
  message: "conformant cannot exceed enrolled",
757
757
  path: ["conformant"]
758
758
  });
759
+ var LEFT_FOR_OWNER_TEXT_MAX = 300;
760
+ var LEFT_FOR_OWNER_ENTRIES_MAX = 500;
761
+ var leftForOwnerDecisionSchema = z6.object({
762
+ item: plainText(LEFT_FOR_OWNER_TEXT_MAX),
763
+ question: plainText(LEFT_FOR_OWNER_TEXT_MAX)
764
+ }).strict();
765
+ var leftForOwnerSchema = z6.object({
766
+ tasks: z6.array(plainText(LEFT_FOR_OWNER_TEXT_MAX)).max(LEFT_FOR_OWNER_ENTRIES_MAX),
767
+ waiting: z6.array(leftForOwnerDecisionSchema).max(LEFT_FOR_OWNER_ENTRIES_MAX)
768
+ }).strict().refine((v) => v.tasks.length + v.waiting.length > 0, {
769
+ message: "is sent only when some work was left for the owner"
770
+ });
759
771
  var observedCloseSchema = z6.object({
760
772
  sequence: z6.number().int().min(1),
761
773
  closedAt: utcIso8601,
762
774
  closedBy: closedBySchema,
763
775
  crossed: crossedSchema,
764
- seatCoverage: seatCoverageSchema.nullable()
776
+ seatCoverage: seatCoverageSchema.nullable(),
777
+ leftForOwner: leftForOwnerSchema.optional()
765
778
  }).strict();
766
779
  var couldNotRunCheckSchema = z6.object({
767
780
  check: plainText(),
@@ -3023,7 +3036,7 @@ var ownerWaitDeclarationSchema = z23.object({
3023
3036
  path: ["fixedItem"]
3024
3037
  });
3025
3038
  var ownerWaitDeclarationsSchema = z23.object({ declarations: z23.array(ownerWaitDeclarationSchema) }).strict();
3026
- var OWNER_WAIT_TOO_MANY = `This project already has ${String(OWNER_WAIT_ADDITIONS_MAX)} things added to what waits for the owner. Ask the owner to take one off in the console first.`;
3039
+ var OWNER_WAIT_TOO_MANY = `This project already has ${String(OWNER_WAIT_ADDITIONS_MAX)} things added to what waits for the owner. Ask the owner to take one off on their settings page in the console first; it cannot be done by typing in chat.`;
3027
3040
 
3028
3041
  // ../events/dist/autonomy.js
3029
3042
  import { z as z24 } from "zod";
@@ -6761,6 +6774,27 @@ function renderCouldNotRun(entries, p) {
6761
6774
  function headlineText(observed, attested, checks) {
6762
6775
  const met = attested.decision === "done-when-met";
6763
6776
  const problemsReported = attested.walk !== null && attested.walk.verdict === "defects";
6777
+ const left = observed.leftForOwner;
6778
+ if (left !== void 0 && observed.crossed.kind === "none") {
6779
+ const saw = `Halfcycle saw work that waits for you: ${leftForYouSummary(left)}, each listed in this record.`;
6780
+ if (!met) {
6781
+ return [LEFT_FOR_YOU_TITLE, `${saw} The person closing the phase chose to override rather than state its finish conditions were met.`];
6782
+ }
6783
+ return problemsReported ? [LEFT_FOR_YOU_TITLE, `${saw} The person closing the phase reported problems found in its acceptance walk.`] : [LEFT_FOR_YOU_TITLE, `${saw} The person closing the phase stated its finish conditions were met, but this work is still yours to do.`];
6784
+ }
6785
+ const [title, sentence] = headlineOverCrossed(observed, met, problemsReported, checks);
6786
+ return left === void 0 ? [title, sentence] : [title, `${sentence} Halfcycle also saw work that waits for you: ${leftForYouSummary(left)}, each listed in this record.`];
6787
+ }
6788
+ var LEFT_FOR_YOU_TITLE = "Closed with work left for you.";
6789
+ function leftForYouSummary(left) {
6790
+ const parts = [];
6791
+ if (left.tasks.length > 0)
6792
+ parts.push(`${counted(left.tasks.length, "task", "tasks")} held for you`);
6793
+ if (left.waiting.length > 0)
6794
+ parts.push(`${counted(left.waiting.length, "decision", "decisions")} waiting for your answer`);
6795
+ return parts.join(" and ");
6796
+ }
6797
+ function headlineOverCrossed(observed, met, problemsReported, checks) {
6764
6798
  switch (observed.crossed.kind) {
6765
6799
  case "none":
6766
6800
  if (!met) {
@@ -6828,6 +6862,18 @@ function outstanding(crossed, p) {
6828
6862
  ];
6829
6863
  }
6830
6864
  }
6865
+ function leftForYouLines(left, p) {
6866
+ if (left === void 0)
6867
+ return [];
6868
+ const lines = [`- Work left for you when the phase closed, which only you can do: ${leftForYouSummary(left)}.`];
6869
+ for (const title of left.tasks)
6870
+ lines.push(` - Task held for you: ${p.text(title)}`);
6871
+ for (const decision of left.waiting) {
6872
+ lines.push(` - Decision waiting for your answer, as the agent asked it: ${p.text(decision.question)}`);
6873
+ lines.push(` - On the list of what always waits for you as: ${p.text(decision.item)}`);
6874
+ }
6875
+ return lines;
6876
+ }
6831
6877
  function shownBy(steps) {
6832
6878
  const named = steps.filter((s) => s.name !== void 0).length;
6833
6879
  if (named === 0)
@@ -6900,6 +6946,7 @@ function renderClose(heading, observed, attested, checks, p, closingRound = fals
6900
6946
  `- Closed at: ${closedAtText(observed.closedAt, p)}`,
6901
6947
  `- Signed in as: ${signedInAs(observed.closedBy, p)}`,
6902
6948
  ...outstanding(observed.crossed, p),
6949
+ ...leftForYouLines(observed.leftForOwner, p),
6903
6950
  machines(observed.seatCoverage, checks)
6904
6951
  ].join("\n"),
6905
6952
  STATED_LABEL,