agentsmesh 0.37.0 → 0.38.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/cli.js +198 -197
- package/dist/engine.js +23 -0
- package/dist/engine.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -1
- package/dist/index.js.map +1 -1
- package/dist/{init-BtgoRmIs.d.ts → init-z8Dlr5Cm.d.ts} +1 -1
- package/dist/lessons.d.ts +2 -2
- package/dist/lessons.js +24 -1
- package/dist/lessons.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-z8Dlr5Cm.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
|
@@ -34056,6 +34056,28 @@ function collectFanout(graph, findings) {
|
|
|
34056
34056
|
function normalizeRule(rule) {
|
|
34057
34057
|
return rule.trim().replace(/\s+/g, " ").toLowerCase();
|
|
34058
34058
|
}
|
|
34059
|
+
var TIED_TRIGGER_SET_THRESHOLD = 5;
|
|
34060
|
+
function collectTriggerSetCollisions(graph, findings) {
|
|
34061
|
+
const bySet = /* @__PURE__ */ new Map();
|
|
34062
|
+
for (const [id, lesson] of Object.entries(graph.lessons)) {
|
|
34063
|
+
if (lesson.status !== "active") continue;
|
|
34064
|
+
const key = [...lesson.triggers].sort().join(",");
|
|
34065
|
+
if (key === "") continue;
|
|
34066
|
+
const group = bySet.get(key);
|
|
34067
|
+
if (group === void 0) bySet.set(key, [id]);
|
|
34068
|
+
else group.push(id);
|
|
34069
|
+
}
|
|
34070
|
+
const contested = [...bySet.values()].filter((ids) => ids.length > TIED_TRIGGER_SET_THRESHOLD);
|
|
34071
|
+
if (contested.length === 0) return;
|
|
34072
|
+
const largest = contested.reduce((a, b) => b.length > a.length ? b : a);
|
|
34073
|
+
const affected = contested.reduce((n, ids) => n + ids.length, 0);
|
|
34074
|
+
findings.push({
|
|
34075
|
+
level: "warning",
|
|
34076
|
+
code: "TIED_TRIGGER_SETS",
|
|
34077
|
+
message: `${contested.length} trigger set(s) are each shared by more than ${TIED_TRIGGER_SET_THRESHOLD} active lessons (largest ${largest.length}, ${affected} lessons in total). Identical triggers score identically on specificity, so recall picks among them by weaker signals \u2014 split the triggers so the lesson that matters for a given file can win.`,
|
|
34078
|
+
lessonIds: largest.sort()
|
|
34079
|
+
});
|
|
34080
|
+
}
|
|
34059
34081
|
|
|
34060
34082
|
// src/lessons/ranking-text.ts
|
|
34061
34083
|
var K1 = 1.5;
|
|
@@ -34337,6 +34359,7 @@ function validateLessonsGraph(graph, options = {}) {
|
|
|
34337
34359
|
collectDuplicateTriggers(graph, findings);
|
|
34338
34360
|
collectOrphans(graph, findings);
|
|
34339
34361
|
collectFanout(graph, findings);
|
|
34362
|
+
collectTriggerSetCollisions(graph, findings);
|
|
34340
34363
|
collectLowSignalKeywords(graph, findings);
|
|
34341
34364
|
collectStopwordKeywords(graph, findings);
|
|
34342
34365
|
collectRunnerAnchoredPatterns(graph, findings);
|
|
@@ -35926,7 +35949,7 @@ function buildTopicCoherence(matches) {
|
|
|
35926
35949
|
|
|
35927
35950
|
// src/lessons/ranking.ts
|
|
35928
35951
|
var DEFAULT_RECALL_LIMIT = 10;
|
|
35929
|
-
var DEFAULT_RECALL_MAX_TOKENS =
|
|
35952
|
+
var DEFAULT_RECALL_MAX_TOKENS = 1200;
|
|
35930
35953
|
var RRF_K = 60;
|
|
35931
35954
|
var SPECIFICITY_WEIGHT = 5;
|
|
35932
35955
|
var TOPIC_COHERENCE_WEIGHT = 2;
|