@danypops/papyrus 0.27.6 → 0.27.7

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.
@@ -931,7 +931,7 @@ class AskComponent extends Container {
931
931
  if (this.singleSelectList) return this.singleSelectList;
932
932
  const list = new WrappedSingleSelectList(this.options, this.allowFreeform, this.allowComment, this.theme, this.keybindings, this.shortcuts.commentToggle);
933
933
  list.onSubmit = (result) => this.handleSelectionSubmit([result], list.isCommentEnabled());
934
- list.onCancel = () => this.onDone(null);
934
+ list.onCancel = () => { diag("single-select onCancel fired (tui.select.cancel keybinding matched)"); this.onDone(null); };
935
935
  list.onEnterFreeform = () => this.showFreeformMode();
936
936
  this.singleSelectList = list;
937
937
  return list;
@@ -1200,9 +1200,10 @@ async function askQuestionBlocking(
1200
1200
  let hasAnnouncedHide = false;
1201
1201
  let response: AskResponse | null;
1202
1202
  try {
1203
+ diag("factory about to construct AskComponent", { hasSignal: ctx.signal !== undefined, signalAlreadyAborted: ctx.signal?.aborted ?? null, hasExplicitTimeout: params.timeout !== undefined });
1203
1204
  const factory = (tui: TUI, theme: Theme, keybindings: KeybindingsManager, done: (result: AskResponse | null) => void) => {
1204
- if (ctx.signal) ctx.signal.addEventListener("abort", () => done(null), { once: true });
1205
- if (params.timeout && params.timeout > 0) setTimeout(() => done(null), params.timeout);
1205
+ if (ctx.signal) ctx.signal.addEventListener("abort", () => { diag("ctx.signal fired abort -- resolving null"); done(null); }, { once: true });
1206
+ if (params.timeout && params.timeout > 0) setTimeout(() => { diag("explicit params.timeout expired -- resolving null", { timeout: params.timeout }); done(null); }, params.timeout);
1206
1207
  return new AskComponent(params.question, normalizedContext, options, allowMultiple, allowFreeform, allowComment, displayMode, tui, theme, keybindings, shortcuts, done);
1207
1208
  };
1208
1209
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danypops/papyrus",
3
- "version": "0.27.6",
3
+ "version": "0.27.7",
4
4
  "description": "Daemon-backed graph artifacts, evidence-bearing tasks, rules, skills, and native TUI workflows for Pi",
5
5
  "type": "module",
6
6
  "keywords": ["pi-package"],