akm-opencode 0.9.11202609032036 → 0.9.11202609032044

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 +6 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -862,9 +862,7 @@ async function runCurateLogged(client, args, meta) {
862
862
  });
863
863
  }
864
864
  function buildCurateArgs(query) {
865
- const args = ["--shape", "agent", "-q", "curate"];
866
- if (query)
867
- args.push(query);
865
+ const args = ["--shape", "agent", "-q", "curate", query];
868
866
  args.push("--limit", String(AKM_CURATE_LIMIT));
869
867
  if (AKM_CURATE_TYPE)
870
868
  args.push("--type", AKM_CURATE_TYPE);
@@ -890,9 +888,12 @@ async function runCurateForPrompt(client, text, sessionID) {
890
888
  return AKM_CURATE_MIN_SCORE > 0 ? renderCuratedJsonResponse(raw, text) : raw;
891
889
  }
892
890
  async function runCurateForSession(client, sessionID, query) {
893
- const args = buildCurateArgs(query ?? "");
891
+ const trimmed = query?.trim();
892
+ if (!trimmed)
893
+ return null;
894
+ const args = buildCurateArgs(trimmed);
894
895
  const raw = await runCurateLogged(client, args, { toolName: "session.start", sessionID, operation: "session-curate" });
895
- return AKM_CURATE_MIN_SCORE > 0 ? renderCuratedJsonResponse(raw, query ?? "") : raw;
896
+ return AKM_CURATE_MIN_SCORE > 0 ? renderCuratedJsonResponse(raw, trimmed) : raw;
896
897
  }
897
898
  async function runHintsForSession(client, sessionID) {
898
899
  return runCliSyncBestEffort(client, ["--format", "text", "-q", "hints"], AKM_CURATE_TIMEOUT_MS, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akm-opencode",
3
- "version": "0.9.11202609032036",
3
+ "version": "0.9.11202609032044",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for AKM 0.9 with in-process search, show, and curate tools plus feedback and remember.",
6
6
  "keywords": [