akm-opencode 0.9.16202609261629 → 0.9.16202609280225

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/dist/index.js +9 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1041,6 +1041,13 @@ function validateRefCandidates(candidates, bundleRoots) {
1041
1041
  }
1042
1042
 
1043
1043
  // ../claude/shared/recall-policy.ts
1044
+ var STASH_BOILERPLATE = "This is an **AKM stash** \u2014 a structured knowledge repository that stores reusable";
1045
+ function isNonTaskPrompt(text) {
1046
+ const stripped = text.trimStart();
1047
+ if (stripped === STASH_BOILERPLATE)
1048
+ return true;
1049
+ return stripped.startsWith("<") && stripped.includes("</");
1050
+ }
1044
1051
  function shouldRecall(prompt, options) {
1045
1052
  const text = prompt.trim();
1046
1053
  const lower = text.toLowerCase();
@@ -1051,6 +1058,8 @@ function shouldRecall(prompt, options) {
1051
1058
  return { shouldRecall: true, reason: "active-workflow", query: text, scopeHints: ["workflow"] };
1052
1059
  if (options?.recentAssetFailure)
1053
1060
  return { shouldRecall: true, reason: "recent-asset-failure", query: text, scopeHints };
1061
+ if (isNonTaskPrompt(text))
1062
+ return { shouldRecall: false, reason: "skip-nontask", query: text, scopeHints };
1054
1063
  if (text.length < 4 || /^(ok|thanks|thank you|yes|no|continue|go ahead|sure|cool)$/i.test(lower)) {
1055
1064
  return { shouldRecall: false, reason: "skip-short", query: text, scopeHints };
1056
1065
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akm-opencode",
3
- "version": "0.9.16202609261629",
3
+ "version": "0.9.16202609280225",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for AKM with discovery tools, feedback, memory, and automatic learning proposals from corrections and recurring workflows.",
6
6
  "keywords": [