akm-cli 0.9.2-alpha.2 → 0.9.2-alpha.4
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/CHANGELOG.md +246 -1
- package/dist/commands/health/plugin-staleness.js +219 -0
- package/dist/commands/health/type-directory-check.js +167 -0
- package/dist/commands/health.js +63 -5
- package/dist/commands/improve/extract.js +22 -1
- package/dist/commands/read/remember-cli.js +6 -1
- package/dist/commands/remember.js +70 -0
- package/dist/indexer/walk/matchers.js +39 -2
- package/dist/integrations/harnesses/claude/session-log.js +85 -25
- package/dist/integrations/session-logs/pre-filter.js +152 -2
- package/dist/registry/semver.js +4 -0
- package/dist/scripts/akm-migrate-node.js +11 -2
- package/dist/scripts/akm-migrate.js +11 -2
- package/package.json +1 -1
|
@@ -14421,7 +14421,8 @@ var DIR_TYPE_MAP = [
|
|
|
14421
14421
|
test: (ext) => ext === ".md"
|
|
14422
14422
|
}
|
|
14423
14423
|
];
|
|
14424
|
-
var
|
|
14424
|
+
var ARGUMENTS_PLACEHOLDER_RE = /\$ARGUMENTS/;
|
|
14425
|
+
var NUMERIC_PLACEHOLDER_RE = /\$[123](?!\d|[.,]\d)/;
|
|
14425
14426
|
var SMART_MD_FACTS = {
|
|
14426
14427
|
workflow: { type: "workflow", specificity: 19 },
|
|
14427
14428
|
toolsAgent: { type: "agent", specificity: 20 },
|
|
@@ -14449,6 +14450,11 @@ function matchDirectoryHint(dirName, ctx, specificity) {
|
|
|
14449
14450
|
}
|
|
14450
14451
|
return null;
|
|
14451
14452
|
}
|
|
14453
|
+
function hasDeclaredDirType(ctx) {
|
|
14454
|
+
if (isNestedSkillResource(ctx))
|
|
14455
|
+
return false;
|
|
14456
|
+
return ctx.ancestorDirs.some((dir) => matchDirectoryHint(dir, ctx, 0) !== null);
|
|
14457
|
+
}
|
|
14452
14458
|
function classifyByExtension(ctx) {
|
|
14453
14459
|
if (ctx.fileName === "SKILL.md") {
|
|
14454
14460
|
return { type: "skill", specificity: 25 };
|
|
@@ -14498,7 +14504,10 @@ function classifyBySmartMd(ctx) {
|
|
|
14498
14504
|
return SMART_MD_FACTS.command;
|
|
14499
14505
|
}
|
|
14500
14506
|
}
|
|
14501
|
-
if (
|
|
14507
|
+
if (ARGUMENTS_PLACEHOLDER_RE.test(body)) {
|
|
14508
|
+
return SMART_MD_FACTS.command;
|
|
14509
|
+
}
|
|
14510
|
+
if (NUMERIC_PLACEHOLDER_RE.test(body) && !hasDeclaredDirType(ctx)) {
|
|
14502
14511
|
return SMART_MD_FACTS.command;
|
|
14503
14512
|
}
|
|
14504
14513
|
if (fm && "model" in fm) {
|
|
@@ -14352,7 +14352,8 @@ var DIR_TYPE_MAP = [
|
|
|
14352
14352
|
test: (ext) => ext === ".md"
|
|
14353
14353
|
}
|
|
14354
14354
|
];
|
|
14355
|
-
var
|
|
14355
|
+
var ARGUMENTS_PLACEHOLDER_RE = /\$ARGUMENTS/;
|
|
14356
|
+
var NUMERIC_PLACEHOLDER_RE = /\$[123](?!\d|[.,]\d)/;
|
|
14356
14357
|
var SMART_MD_FACTS = {
|
|
14357
14358
|
workflow: { type: "workflow", specificity: 19 },
|
|
14358
14359
|
toolsAgent: { type: "agent", specificity: 20 },
|
|
@@ -14380,6 +14381,11 @@ function matchDirectoryHint(dirName, ctx, specificity) {
|
|
|
14380
14381
|
}
|
|
14381
14382
|
return null;
|
|
14382
14383
|
}
|
|
14384
|
+
function hasDeclaredDirType(ctx) {
|
|
14385
|
+
if (isNestedSkillResource(ctx))
|
|
14386
|
+
return false;
|
|
14387
|
+
return ctx.ancestorDirs.some((dir) => matchDirectoryHint(dir, ctx, 0) !== null);
|
|
14388
|
+
}
|
|
14383
14389
|
function classifyByExtension(ctx) {
|
|
14384
14390
|
if (ctx.fileName === "SKILL.md") {
|
|
14385
14391
|
return { type: "skill", specificity: 25 };
|
|
@@ -14429,7 +14435,10 @@ function classifyBySmartMd(ctx) {
|
|
|
14429
14435
|
return SMART_MD_FACTS.command;
|
|
14430
14436
|
}
|
|
14431
14437
|
}
|
|
14432
|
-
if (
|
|
14438
|
+
if (ARGUMENTS_PLACEHOLDER_RE.test(body)) {
|
|
14439
|
+
return SMART_MD_FACTS.command;
|
|
14440
|
+
}
|
|
14441
|
+
if (NUMERIC_PLACEHOLDER_RE.test(body) && !hasDeclaredDirType(ctx)) {
|
|
14433
14442
|
return SMART_MD_FACTS.command;
|
|
14434
14443
|
}
|
|
14435
14444
|
if (fm && "model" in fm) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "akm-cli",
|
|
3
|
-
"version": "0.9.2-alpha.
|
|
3
|
+
"version": "0.9.2-alpha.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "akm (Agent Knowledge Manager) — a portable, local-first capability library for AI agents. Discover, load, share, and improve reusable skills, scripts, workflows, and knowledge across any shell-capable coding agent, including Claude Code, OpenCode, and Cursor.",
|
|
6
6
|
"keywords": [
|