agentsmesh 0.33.0 → 0.34.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 +20 -0
- package/README.md +72 -121
- package/dist/canonical.js +491 -274
- package/dist/canonical.js.map +1 -1
- package/dist/cli.js +254 -253
- package/dist/engine.d.ts +1 -1
- package/dist/engine.js +569 -242
- package/dist/engine.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +772 -401
- package/dist/index.js.map +1 -1
- package/dist/{init-rvKjGLTB.d.ts → init-ChDbKSJ0.d.ts} +8 -8
- package/dist/lessons.d.ts +2 -2
- package/dist/lessons.js +1121 -973
- package/dist/lessons.js.map +1 -1
- package/dist/{target-descriptor-DeS4XOtV.d.ts → target-descriptor-DtgeHKPG.d.ts} +7 -0
- package/dist/targets.d.ts +2 -2
- package/dist/targets.js +331 -110
- package/dist/targets.js.map +1 -1
- package/package.json +27 -22
|
@@ -172,11 +172,6 @@ interface GuardrailWarning {
|
|
|
172
172
|
readonly message: string;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
/**
|
|
176
|
-
* Capture rejection errors thrown by {@link addLessonInto}. Kept in their own
|
|
177
|
-
* module so `add.ts` stays focused on the mutation logic; re-exported from
|
|
178
|
-
* `add.js` so every existing importer keeps its `from './add.js'` path.
|
|
179
|
-
*/
|
|
180
175
|
declare class UnknownTopicError extends Error {
|
|
181
176
|
readonly topic: string;
|
|
182
177
|
readonly code = "UNKNOWN_TOPIC";
|
|
@@ -387,15 +382,20 @@ declare function importLegacyLessons(projectRoot: string, options: ImportLegacyO
|
|
|
387
382
|
* cross-process mutex without any third-party dependency.
|
|
388
383
|
*
|
|
389
384
|
* Stale recovery: the holder writes its PID and start timestamp into the lock
|
|
390
|
-
* dir. On contention we peek at the PID
|
|
391
|
-
*
|
|
385
|
+
* dir. On contention we peek at the PID: a dead same-host holder is evicted at
|
|
386
|
+
* once. A live holder (or one on another host, whose PID we cannot probe) is
|
|
387
|
+
* evicted only past `staleMs` — an hours-long bound that catches a hung
|
|
388
|
+
* process or a recycled PID, never a slow but healthy run.
|
|
392
389
|
*/
|
|
393
390
|
interface LockOptions {
|
|
394
391
|
/** Maximum retry attempts before throwing LockAcquisitionError. */
|
|
395
392
|
retries?: number;
|
|
396
393
|
/** Delay between retries in ms. */
|
|
397
394
|
retryDelayMs?: number;
|
|
398
|
-
/**
|
|
395
|
+
/**
|
|
396
|
+
* Secondary age bound (default 6h): a lock older than this is evicted even
|
|
397
|
+
* when its holder PID is still alive or cannot be probed (other host).
|
|
398
|
+
*/
|
|
399
399
|
staleMs?: number;
|
|
400
400
|
/** Human-readable lock name surfaced in LockAcquisitionError, e.g. "lessons lock". */
|
|
401
401
|
label?: string;
|
package/dist/lessons.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as RankedLesson, j as LessonsQuery, A as AddLessonInput, a as AddLessonOptions, b as AddLessonResult } from './init-
|
|
2
|
-
export { c as AddLessonTriggers, D as DEFAULT_RECALL_LIMIT, X as DEFAULT_RECALL_MAX_TOKENS, I as ImportLegacyOptions, d as ImportLegacyReport, Y as LESSONS_LOCK_FILENAME, L as LESSONS_PROCEDURAL_RULE, e as Lesson, f as LessonStatus, g as LessonsGraph, Z as LessonsGraphExistsError, h as LessonsGraphSchema, i as LessonsPaths, M as MatchedLesson, k as MergeLessonsOptions, l as MergeLessonsResult, m as MutateOptions, R as RankOptions, n as RankReason, 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, _ as lessonsLockPath, 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-
|
|
1
|
+
import { o as RankedLesson, j as LessonsQuery, A as AddLessonInput, a as AddLessonOptions, b as AddLessonResult } from './init-ChDbKSJ0.js';
|
|
2
|
+
export { c as AddLessonTriggers, D as DEFAULT_RECALL_LIMIT, X as DEFAULT_RECALL_MAX_TOKENS, I as ImportLegacyOptions, d as ImportLegacyReport, Y as LESSONS_LOCK_FILENAME, L as LESSONS_PROCEDURAL_RULE, e as Lesson, f as LessonStatus, g as LessonsGraph, Z as LessonsGraphExistsError, h as LessonsGraphSchema, i as LessonsPaths, M as MatchedLesson, k as MergeLessonsOptions, l as MergeLessonsResult, m as MutateOptions, R as RankOptions, n as RankReason, 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, _ as lessonsLockPath, 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-ChDbKSJ0.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|