agentsmesh 0.8.0 → 0.10.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.
@@ -158,6 +158,7 @@ declare const configSchema: z.ZodObject<{
158
158
  cursor: "cursor";
159
159
  "gemini-cli": "gemini-cli";
160
160
  junie: "junie";
161
+ "kilo-code": "kilo-code";
161
162
  kiro: "kiro";
162
163
  "roo-code": "roo-code";
163
164
  windsurf: "windsurf";
@@ -186,6 +187,7 @@ declare const configSchema: z.ZodObject<{
186
187
  cursor: "cursor";
187
188
  "gemini-cli": "gemini-cli";
188
189
  junie: "junie";
190
+ "kilo-code": "kilo-code";
189
191
  kiro: "kiro";
190
192
  "roo-code": "roo-code";
191
193
  windsurf: "windsurf";
@@ -1,4 +1,4 @@
1
- import { b as CanonicalFiles, c as CanonicalRule, V as ValidatedConfig } from './schema-BeGiBqbB.js';
1
+ import { b as CanonicalFiles, c as CanonicalRule, V as ValidatedConfig } from './schema-qelg8gw8.js';
2
2
 
3
3
  /** Result of generating files for a target */
4
4
  interface GenerateResult {
@@ -122,6 +122,7 @@ type ImportFeatureKind = 'rules' | 'commands' | 'agents' | 'skills' | 'mcp' | 'h
122
122
  * `mcp.json`.
123
123
  */
124
124
  type ImportFeatureMode = 'singleFile' | 'directory' | 'flatFile' | 'mcpJson';
125
+ type ContentNormalizer = (content: string, sourceFile: string, destinationFile: string) => string;
125
126
  interface ImportEntryContext {
126
127
  readonly absolutePath: string;
127
128
  readonly relativePath: string;
@@ -344,4 +345,4 @@ interface TargetDescriptor {
344
345
  readonly preservesManualActivation?: boolean;
345
346
  }
346
347
 
347
- export type { ExtraRuleOutputContext as E, FeatureLinter as F, GenerateResult as G, ImportPathBuilder as I, LintDiagnostic as L, RuleLinter as R, ScopeExtrasFn as S, TargetCapabilities as T, ExtraRuleOutputResolver as a, GeneratedOutputMerger as b, GlobalTargetSupport as c, ImportResult as d, TargetDescriptor as e, TargetGenerators as f, TargetLayout as g, TargetLayoutScope as h, TargetLintHooks as i, TargetManagedOutputs as j, TargetOutputFamily as k, TargetPathResolvers as l };
348
+ export type { ContentNormalizer as C, ExtraRuleOutputContext as E, FeatureLinter as F, GenerateResult as G, ImportPathBuilder as I, LintDiagnostic as L, RuleLinter as R, ScopeExtrasFn as S, TargetCapabilities as T, ExtraRuleOutputResolver as a, GeneratedOutputMerger as b, GlobalTargetSupport as c, ImportResult as d, TargetDescriptor as e, TargetGenerators as f, TargetLayout as g, TargetLayoutScope as h, TargetLintHooks as i, TargetManagedOutputs as j, TargetOutputFamily as k, TargetPathResolvers as l };
package/dist/targets.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { e as TargetDescriptor } from './target-descriptor-Cb9PXaxr.js';
2
- export { E as ExtraRuleOutputContext, a as ExtraRuleOutputResolver, F as FeatureLinter, b as GeneratedOutputMerger, c as GlobalTargetSupport, I as ImportPathBuilder, R as RuleLinter, S as ScopeExtrasFn, T as TargetCapabilities, f as TargetGenerators, g as TargetLayout, h as TargetLayoutScope, i as TargetLintHooks, j as TargetManagedOutputs, k as TargetOutputFamily, l as TargetPathResolvers } from './target-descriptor-Cb9PXaxr.js';
3
- import './schema-BeGiBqbB.js';
1
+ import { e as TargetDescriptor, h as TargetLayoutScope, C as ContentNormalizer, d as ImportResult } from './target-descriptor-Dhdg8s2o.js';
2
+ export { E as ExtraRuleOutputContext, a as ExtraRuleOutputResolver, F as FeatureLinter, b as GeneratedOutputMerger, c as GlobalTargetSupport, I as ImportPathBuilder, R as RuleLinter, S as ScopeExtrasFn, T as TargetCapabilities, f as TargetGenerators, g as TargetLayout, i as TargetLintHooks, j as TargetManagedOutputs, k as TargetOutputFamily, l as TargetPathResolvers } from './target-descriptor-Dhdg8s2o.js';
3
+ import './schema-qelg8gw8.js';
4
4
  import 'zod';
5
5
 
6
6
  /** Register a full target descriptor (for plugins). */
@@ -9,10 +9,28 @@ declare function registerTargetDescriptor(descriptor: TargetDescriptor): void;
9
9
  declare function getDescriptor(name: string): TargetDescriptor | undefined;
10
10
  declare function getAllDescriptors(): TargetDescriptor[];
11
11
 
12
+ /**
13
+ * Descriptor-driven importer runner.
14
+ *
15
+ * Walks `descriptor.importer` for each feature in canonical order, resolves
16
+ * scope-specific source paths, and dispatches to the existing helpers
17
+ * (`importFileDirectory`, MCP / ignore writers). Scope variance lives entirely
18
+ * in the spec — features with no source for the current scope are skipped
19
+ * silently, eliminating per-importer `if (scope === 'global')` branches.
20
+ *
21
+ * Targets with bespoke parsing (codex-cli rule splitter, windsurf workflows,
22
+ * gemini-cli policies) keep `generators.importFrom`. They may still call this
23
+ * runner for the declarable parts of their flow.
24
+ */
25
+
26
+ declare function runDescriptorImport(descriptor: TargetDescriptor, projectRoot: string, scope: TargetLayoutScope, options?: {
27
+ readonly normalize?: ContentNormalizer;
28
+ }): Promise<ImportResult[]>;
29
+
12
30
  /**
13
31
  * Public API — built-in target catalog and plugin registration (package.json "exports"."./targets").
14
32
  */
15
33
 
16
34
  declare function getTargetCatalog(): readonly TargetDescriptor[];
17
35
 
18
- export { TargetDescriptor, getAllDescriptors, getDescriptor, getTargetCatalog, registerTargetDescriptor };
36
+ export { TargetDescriptor, TargetLayoutScope, getAllDescriptors, getDescriptor, getTargetCatalog, registerTargetDescriptor, runDescriptorImport };