akm-opencode-v2 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.
- package/dist/index.js +8 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -149,7 +149,10 @@ function isAsset(directPath, ref) {
|
|
|
149
149
|
return true;
|
|
150
150
|
return folders.includes("secrets") && !/\.(lock|sensitive)$/.test(directPath) && isFile(directPath);
|
|
151
151
|
}
|
|
152
|
+
var LEGACY_PREFIXES = new Set(["scripts", "agents", "commands", "facts", "instructions", "knowledge", "lessons", "memories", "sessions"]);
|
|
152
153
|
function conceptExistsInAnyBundle(conceptId, bundleRoots) {
|
|
154
|
+
const head = conceptId.split("/", 1)[0];
|
|
155
|
+
const rest = conceptId.slice(head.length + 1);
|
|
153
156
|
for (const root of bundleRoots) {
|
|
154
157
|
if (!root)
|
|
155
158
|
continue;
|
|
@@ -158,6 +161,11 @@ function conceptExistsInAnyBundle(conceptId, bundleRoots) {
|
|
|
158
161
|
const directPath = path2.resolve(resolvedRoot, conceptId);
|
|
159
162
|
if (inside(directPath) && isAsset(directPath, conceptId))
|
|
160
163
|
return true;
|
|
164
|
+
if (LEGACY_PREFIXES.has(head) && rest.includes("/")) {
|
|
165
|
+
const legacyPath = path2.resolve(resolvedRoot, rest);
|
|
166
|
+
if (inside(legacyPath) && isAsset(legacyPath, rest))
|
|
167
|
+
return true;
|
|
168
|
+
}
|
|
161
169
|
}
|
|
162
170
|
return false;
|
|
163
171
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "akm-opencode-v2",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.261109-beta",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenCode 2 plugin for AKM: the five AKM tools, automatic recall, and automatic session extraction. For OpenCode 1, use akm-opencode.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typecheck": "tsc -p tsconfig.json"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"akm-cli": "0.10.
|
|
42
|
+
"akm-cli": "0.10.261110-beta"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@opencode/plugin": "2.1.4",
|