agentsmesh 0.30.2 → 0.32.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/dist/engine.d.ts CHANGED
@@ -132,10 +132,14 @@ declare function formatDiffSummary(summary: DiffSummary): string;
132
132
  */
133
133
 
134
134
  interface LockSyncReport {
135
- /** True when the canonical state matches the lock file and no extend drifted. */
135
+ /** True when canonical state and checked generated outputs are all in sync. */
136
136
  readonly inSync: boolean;
137
137
  /** True when a `.lock` file was found at the canonical directory. */
138
138
  readonly hasLock: boolean;
139
+ /** True when canonical files or extends differ from the lock. */
140
+ readonly canonicalDrift: boolean;
141
+ /** True when a generated output is modified, removed, or stale. */
142
+ readonly outputDrift: boolean;
139
143
  /** Canonical files whose checksum differs from the lock. */
140
144
  readonly modified: readonly string[];
141
145
  /** Canonical files present now but not in the lock. */
@@ -149,6 +153,18 @@ interface LockSyncReport {
149
153
  * `collaboration.lock_features`. Empty when no `lock_features` are configured.
150
154
  */
151
155
  readonly lockedViolations: readonly string[];
156
+ /** Generated outputs whose on-disk hash differs from the lock. */
157
+ readonly outputsModified: readonly string[];
158
+ /** Generated outputs recorded in the lock but missing from disk. */
159
+ readonly outputsRemoved: readonly string[];
160
+ /** Managed generated outputs present on disk but absent from the lock. */
161
+ readonly outputsStale: readonly string[];
162
+ /**
163
+ * True when output drift was actually verified — requires `rootBase` and a
164
+ * lock with an `outputs` map. False for old-format locks or when no
165
+ * `rootBase` was supplied.
166
+ */
167
+ readonly outputsChecked: boolean;
152
168
  }
153
169
  interface CheckLockSyncOptions {
154
170
  readonly config: ValidatedConfig;
@@ -156,6 +172,13 @@ interface CheckLockSyncOptions {
156
172
  readonly configDir: string;
157
173
  /** Directory containing `.agentsmesh/.lock` and canonical files. */
158
174
  readonly canonicalDir: string;
175
+ /**
176
+ * Project root the generated outputs are relative to. When absent, output
177
+ * verification is skipped (keeps the programmatic API backward compatible).
178
+ */
179
+ readonly rootBase?: string;
180
+ /** Output-layout scope used when scanning managed locations for stale files. */
181
+ readonly scope?: TargetLayoutScope;
159
182
  }
160
183
 
161
184
  declare function importFrom(target: string, opts: {