akm-opencode 0.10.261107-beta → 0.10.261109-beta

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 +8 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1068,7 +1068,10 @@ function isAsset(directPath, ref) {
1068
1068
  return true;
1069
1069
  return folders.includes("secrets") && !/\.(lock|sensitive)$/.test(directPath) && isFile(directPath);
1070
1070
  }
1071
+ var LEGACY_PREFIXES = new Set(["scripts", "agents", "commands", "facts", "instructions", "knowledge", "lessons", "memories", "sessions"]);
1071
1072
  function conceptExistsInAnyBundle(conceptId, bundleRoots) {
1073
+ const head = conceptId.split("/", 1)[0];
1074
+ const rest = conceptId.slice(head.length + 1);
1072
1075
  for (const root of bundleRoots) {
1073
1076
  if (!root)
1074
1077
  continue;
@@ -1077,6 +1080,11 @@ function conceptExistsInAnyBundle(conceptId, bundleRoots) {
1077
1080
  const directPath = path4.resolve(resolvedRoot, conceptId);
1078
1081
  if (inside(directPath) && isAsset(directPath, conceptId))
1079
1082
  return true;
1083
+ if (LEGACY_PREFIXES.has(head) && rest.includes("/")) {
1084
+ const legacyPath = path4.resolve(resolvedRoot, rest);
1085
+ if (inside(legacyPath) && isAsset(legacyPath, rest))
1086
+ return true;
1087
+ }
1080
1088
  }
1081
1089
  return false;
1082
1090
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akm-opencode",
3
- "version": "0.10.261107-beta",
3
+ "version": "0.10.261109-beta",
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": [
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@opencode-ai/plugin": "^1.18.14",
41
- "akm-cli": "0.10.261107-beta"
41
+ "akm-cli": "0.10.261110-beta"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^26.1.1",