hotsheet 0.18.0-beta.3 → 0.18.0-beta.4

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/cli.js CHANGED
@@ -37057,8 +37057,7 @@ import { Hono as Hono17 } from "hono";
37057
37057
  import { resolve as resolve9 } from "path";
37058
37058
 
37059
37059
  // src/feedback-state.ts
37060
- var FEEDBACK_PREFIX = "FEEDBACK NEEDED:";
37061
- var IMMEDIATE_PREFIX = "IMMEDIATE FEEDBACK NEEDED:";
37060
+ var FEEDBACK_PHRASE = "FEEDBACK NEEDED";
37062
37061
  function notesEndWithFeedback(notes) {
37063
37062
  if (notes === null || notes === void 0) return false;
37064
37063
  const trimmed = notes.trim();
@@ -37074,8 +37073,7 @@ function notesEndWithFeedback(notes) {
37074
37073
  if (last === null || typeof last !== "object") return false;
37075
37074
  const text = last.text;
37076
37075
  if (typeof text !== "string") return false;
37077
- const head = text.trim();
37078
- return head.startsWith(FEEDBACK_PREFIX) || head.startsWith(IMMEDIATE_PREFIX);
37076
+ return text.includes(FEEDBACK_PHRASE);
37079
37077
  }
37080
37078
  async function projectHasPendingFeedback(db) {
37081
37079
  try {
@@ -37084,7 +37082,7 @@ async function projectHasPendingFeedback(db) {
37084
37082
  WHERE status NOT IN ('deleted', 'backlog', 'archive')
37085
37083
  AND notes != ''
37086
37084
  AND notes != '[]'
37087
- AND (notes LIKE '%FEEDBACK NEEDED:%' OR notes LIKE '%IMMEDIATE FEEDBACK NEEDED:%')`
37085
+ AND notes LIKE '%FEEDBACK NEEDED%'`
37088
37086
  );
37089
37087
  for (const row of res.rows) {
37090
37088
  if (notesEndWithFeedback(row.notes)) return true;