@trygocode/notify 0.6.9 → 0.6.10

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/README.md CHANGED
@@ -530,6 +530,15 @@ npm publish, real-device E2E), see
530
530
 
531
531
  ## Changelog
532
532
 
533
+ ### 0.6.10
534
+
535
+ - **Accurate `on-stop` status line.** The CLI now prints the notification kind it
536
+ ACTUALLY sent (e.g. `awaiting_input delivered` for a question turn) instead of
537
+ always re-deriving `finished` from the Cursor stop status — the phone push was
538
+ already correct in 0.6.9; this only fixes the local console/debug line so it no
539
+ longer looks like a question was sent as "finished". Same question-notify
540
+ behaviour as 0.6.9, no hook changes.
541
+
533
542
  ### 0.6.9
534
543
 
535
544
  - **Fixed: native Cursor questions now notify you again.** When the Cursor agent
package/dist/src/cli.js CHANGED
@@ -742,7 +742,10 @@ export async function cmdOnStop(args, deps = {}) {
742
742
  ? "autopilot-suppressed: an Autopilot loop owns this turn's ping"
743
743
  : result.mode === "embedded-claude-suppressed"
744
744
  ? "embedded-claude-suppressed: native Cursor hook owns this turn"
745
- : `${fallbackKind} ${delivered ? "delivered" : "not delivered"}`;
745
+ : // Prefer the kind ACTUALLY sent (e.g. awaiting_input for a
746
+ // question turn) over re-deriving from the stop status, which
747
+ // always reads "finished" and can't see a question.
748
+ `${result.sentKind ?? fallbackKind} ${delivered ? "delivered" : "not delivered"}`;
746
749
  if (agent) {
747
750
  sink({ step: "on-stop", ok: true, detail });
748
751
  }
@@ -1070,7 +1070,7 @@ export async function onStop(opts = {}) {
1070
1070
  fireDesktop(settings, desktopBanner, source, ideChatId),
1071
1071
  ]);
1072
1072
  await logLine(`send path → ${sendKind} ${sent.ok ? "delivered" : "failed"} (source: ${source}, settings: ${resolved.source})`);
1073
- return { mode: "send", settingsSource: resolved.source, send: sent, desktop, repo };
1073
+ return { mode: "send", settingsSource: resolved.source, send: sent, desktop, repo, sentKind: sendKind };
1074
1074
  }
1075
1075
  catch (err) {
1076
1076
  // Defence in depth: the dispatcher must never throw. Degrade to a logged
@@ -1,2 +1,2 @@
1
1
  // Single source of truth for the CLI version. Keep in sync with package.json.
2
- export const VERSION = "0.6.9";
2
+ export const VERSION = "0.6.10";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trygocode/notify",
3
- "version": "0.6.9",
3
+ "version": "0.6.10",
4
4
  "description": "Free phone + branded desktop notifications for any coding agent (Cursor, Claude Code, OpenCode, Ralph/Homer) via the GoCode app.",
5
5
  "license": "MIT",
6
6
  "type": "module",