agentsmesh 0.34.0 → 0.35.0
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 +10 -0
- package/dist/canonical.js.map +1 -1
- package/dist/cli.js +237 -237
- package/dist/engine.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/{init-ChDbKSJ0.d.ts → init-C3pMnqoU.d.ts} +2 -0
- package/dist/lessons.d.ts +2 -2
- package/dist/lessons.js +36 -8
- package/dist/lessons.js.map +1 -1
- package/dist/targets.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AgentsMeshError, AgentsMeshErrorCode, CheckLockSyncOptions, ComputeDiffResult, ConfigNotFoundError, ConfigValidationError, DiffEntry, DiffSummary, FileSystemError, GenerateContext, GenerationError, ImportError, LintOptions, LintResult, LoadProjectContextOptions, LockAcquisitionError, LockSyncReport, ProjectContext, RemoteFetchError, TargetNotFoundError, check, computeDiff, diff, formatDiffSummary, generate, importFrom, lint, loadConfig, loadConfigFromDirectory, loadProjectContext, resolveOutputCollisions } from './engine.js';
|
|
2
2
|
export { LoadCanonicalOptions, loadCanonical, loadCanonicalFiles } from './canonical.js';
|
|
3
3
|
export { getAllDescriptors, getDescriptor, getTargetCatalog, registerTargetDescriptor } from './targets.js';
|
|
4
|
-
export { A as AddLessonInput, a as AddLessonOptions, b as AddLessonResult, c as AddLessonTriggers, D as DEFAULT_RECALL_LIMIT, I as ImportLegacyOptions, d as ImportLegacyReport, L as LESSONS_PROCEDURAL_RULE, e as Lesson, f as LessonStatus, g as LessonsGraph, h as LessonsGraphSchema, i as LessonsPaths, j as LessonsQuery, M as MatchedLesson, k as MergeLessonsOptions, l as MergeLessonsResult, m as MutateOptions, R as RankOptions, n as RankReason, o as RankedLesson, S as ScaffoldLessonsResult, p as StripMarkersOptions, q as StripMarkersReport, T as Topic, r as Trigger, s as TriggerKind, U as UnknownTopicError, V as ValidationFinding, t as ValidationLevel, u as ValidationReport, v as acquireLessonsLock, w as addLesson, x as graphFilePath, y as importLegacyLessons, z as lessonsPaths, B as loadLessonsGraph, C as mergeLessons, E as mutateLessonsGraph, F as parseGraph, G as queryLessons, H as rankLessons, J as scaffoldLessons, K as serializeGraph, N as stripLegacyMarkers, O as stripMarkersInGraph, P as toRelPath, Q as tryLoadLessonsGraph, W as validateLessonsGraph } from './init-
|
|
4
|
+
export { A as AddLessonInput, a as AddLessonOptions, b as AddLessonResult, c as AddLessonTriggers, D as DEFAULT_RECALL_LIMIT, I as ImportLegacyOptions, d as ImportLegacyReport, L as LESSONS_PROCEDURAL_RULE, e as Lesson, f as LessonStatus, g as LessonsGraph, h as LessonsGraphSchema, i as LessonsPaths, j as LessonsQuery, M as MatchedLesson, k as MergeLessonsOptions, l as MergeLessonsResult, m as MutateOptions, R as RankOptions, n as RankReason, o as RankedLesson, S as ScaffoldLessonsResult, p as StripMarkersOptions, q as StripMarkersReport, T as Topic, r as Trigger, s as TriggerKind, U as UnknownTopicError, V as ValidationFinding, t as ValidationLevel, u as ValidationReport, v as acquireLessonsLock, w as addLesson, x as graphFilePath, y as importLegacyLessons, z as lessonsPaths, B as loadLessonsGraph, C as mergeLessons, E as mutateLessonsGraph, F as parseGraph, G as queryLessons, H as rankLessons, J as scaffoldLessons, K as serializeGraph, N as stripLegacyMarkers, O as stripMarkersInGraph, P as toRelPath, Q as tryLoadLessonsGraph, W as validateLessonsGraph } from './init-C3pMnqoU.js';
|
|
5
5
|
export { C as CanonicalAgent, a as CanonicalCommand, b as CanonicalFiles, c as CanonicalRule, d as CanonicalSkill, H as HookEntry, e as Hooks, I as IgnorePatterns, M as McpConfig, f as McpServer, P as Permissions, S as SkillSupportingFile, g as StdioMcpServer, U as UrlMcpServer, V as ValidatedConfig } from './schema-BbywZEB9.js';
|
|
6
6
|
export { E as ExtraRuleOutputContext, a as ExtraRuleOutputResolver, F as FeatureLinter, G as GenerateResult, b as GeneratedOutputMerger, c as GlobalTargetSupport, I as ImportPathBuilder, d as ImportResult, L as LintDiagnostic, R as RuleLinter, S as ScopeExtrasFn, T as TargetCapabilities, e as TargetDescriptor, f as TargetGenerators, g as TargetLayout, h as TargetLayoutScope, i as TargetLintHooks, j as TargetManagedOutputs, k as TargetOutputFamily, l as TargetPathResolvers } from './target-descriptor-DtgeHKPG.js';
|
|
7
7
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -524,6 +524,17 @@ var init_command_skill = __esm({
|
|
|
524
524
|
LEGACY_CODEX_COMMAND_SKILL_PREFIX = "ab-command-";
|
|
525
525
|
}
|
|
526
526
|
});
|
|
527
|
+
function removeEvent(doc, event) {
|
|
528
|
+
const existing = doc.get(event);
|
|
529
|
+
if (!(existing instanceof YAMLSeq)) return false;
|
|
530
|
+
const kept = existing.items.filter(
|
|
531
|
+
(item) => !(item instanceof YAMLMap && item.get("command") === RECALL_HOOK_COMMAND)
|
|
532
|
+
);
|
|
533
|
+
if (kept.length === existing.items.length) return false;
|
|
534
|
+
if (kept.length === 0) doc.delete(event);
|
|
535
|
+
else existing.items = kept;
|
|
536
|
+
return true;
|
|
537
|
+
}
|
|
527
538
|
function injectEvent(doc, event, matcher) {
|
|
528
539
|
const existing = doc.get(event);
|
|
529
540
|
const seq = existing instanceof YAMLSeq ? existing : new YAMLSeq();
|
|
@@ -543,17 +554,19 @@ function injectRecallHook(projectRoot) {
|
|
|
543
554
|
for (const { event, matcher } of RECALL_EVENTS) {
|
|
544
555
|
if (injectEvent(doc, event, matcher)) changed = true;
|
|
545
556
|
}
|
|
557
|
+
for (const event of RETIRED_EVENTS) {
|
|
558
|
+
if (removeEvent(doc, event)) changed = true;
|
|
559
|
+
}
|
|
546
560
|
if (changed) writeFileSync(path, String(doc), "utf8");
|
|
547
561
|
return changed;
|
|
548
562
|
}
|
|
549
|
-
var RECALL_HOOK_COMMAND, RECALL_HOOK_TOOL_MATCHER, RECALL_EVENTS;
|
|
563
|
+
var RECALL_HOOK_COMMAND, RECALL_HOOK_TOOL_MATCHER, RECALL_EVENTS, RETIRED_EVENTS;
|
|
550
564
|
var init_recall_hook_scaffold = __esm({
|
|
551
565
|
"src/lessons/recall-hook-scaffold.ts"() {
|
|
552
566
|
RECALL_HOOK_COMMAND = "agentsmesh lessons hook";
|
|
553
567
|
RECALL_HOOK_TOOL_MATCHER = "Edit|Write|Bash";
|
|
554
568
|
RECALL_EVENTS = [
|
|
555
569
|
{ event: "PreToolUse", matcher: RECALL_HOOK_TOOL_MATCHER },
|
|
556
|
-
{ event: "PostToolUse", matcher: RECALL_HOOK_TOOL_MATCHER },
|
|
557
570
|
{ event: "UserPromptSubmit", matcher: "*" },
|
|
558
571
|
// Capture-on-failure nudge (see capture-nudge.ts). BEST-EFFORT: only Claude
|
|
559
572
|
// Code's passthrough hooks emit it; whitelist targets drop it without warning
|
|
@@ -563,6 +576,7 @@ var init_recall_hook_scaffold = __esm({
|
|
|
563
576
|
// BEST-EFFORT: targets that can't represent SessionStart just keep dedup as-is.
|
|
564
577
|
{ event: "SessionStart", matcher: "*" }
|
|
565
578
|
];
|
|
579
|
+
RETIRED_EVENTS = ["PostToolUse"];
|
|
566
580
|
}
|
|
567
581
|
});
|
|
568
582
|
|
|
@@ -35756,7 +35770,8 @@ function defaultLessonsConfig() {
|
|
|
35756
35770
|
recallLimit: DEFAULT_RECALL_LIMIT,
|
|
35757
35771
|
recallMaxTokens: DEFAULT_RECALL_MAX_TOKENS,
|
|
35758
35772
|
autoPrune: false,
|
|
35759
|
-
repairTriggers: false
|
|
35773
|
+
repairTriggers: false,
|
|
35774
|
+
telemetry: false
|
|
35760
35775
|
};
|
|
35761
35776
|
}
|
|
35762
35777
|
function outcomeLogPath(projectRoot) {
|