dsh-prompt-rewriter 1.6.0 → 1.6.1

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 (2) hide show
  1. package/client.js +5 -6
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -1925,9 +1925,9 @@ window.__ModuleLoader__.load({
1925
1925
  modals: [],
1926
1926
  });
1927
1927
  return dispose;
1928
- } catch (error) {
1929
- // Record the failure instead of letting `ctx.effect` swallow it; the
1930
- // console then explains why the key does nothing.
1928
+ } catch {
1929
+ // A throw here is swallowed by the effect wrapper; the keydown fallback
1930
+ // below still serves the shortcut, so it must not fail activation.
1931
1931
  return undefined;
1932
1932
  }
1933
1933
  }, 'dsh-prompt-rewriter: shortcut');
@@ -1994,10 +1994,9 @@ window.__ModuleLoader__.load({
1994
1994
  };
1995
1995
 
1996
1996
  /**
1997
- * Walk the whole guard chain and report which link decided.
1997
+ * Does this keyboard event match a binding this plugin owns?
1998
1998
  *
1999
- * Kept separate from `onKey` so the periodic probe can evaluate the same
2000
- * chain without ever triggering an enhancement.
1999
+ * Kept separate from `onKey` so the pure judgement is testable on its own.
2001
2000
  */
2002
2001
  const evaluate = (event) => {
2003
2002
  const base = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-prompt-rewriter",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "One-click prompt enhancement beside the DeepSeek Harness composer: rewrites a draft in place without sending it.",
5
5
  "type": "module",
6
6
  "icon": "icon.svg",