agentsmesh 0.3.0 → 0.5.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.
@@ -0,0 +1,56 @@
1
+ import { C as CanonicalFiles } from './canonical-types-gdrUi3bD.js';
2
+ import { G as GenerateResult, V as ValidatedConfig, T as TargetLayoutScope, I as ImportResult } from './target-descriptor-D64xD0C2.js';
3
+ import 'zod';
4
+
5
+ /**
6
+ * Resolve duplicate generated outputs that target the same path.
7
+ * Identical content is deduplicated; conflicting content throws.
8
+ *
9
+ * @param results - Raw generated outputs collected per target/feature
10
+ * @returns Deduplicated results preserving first-seen order
11
+ */
12
+ declare function resolveOutputCollisions(results: GenerateResult[]): GenerateResult[];
13
+
14
+ /**
15
+ * Generate orchestrator: produces target-specific files from canonical sources.
16
+ */
17
+
18
+ interface GenerateContext {
19
+ config: ValidatedConfig;
20
+ canonical: CanonicalFiles;
21
+ projectRoot: string;
22
+ scope?: TargetLayoutScope;
23
+ targetFilter?: string[];
24
+ }
25
+
26
+ /**
27
+ * Generate target files from canonical sources.
28
+ * @param ctx - Config, canonical files, project root, optional target filter
29
+ * @returns GenerateResult[] with status per file
30
+ */
31
+ declare function generate(ctx: GenerateContext): Promise<GenerateResult[]>;
32
+
33
+ /**
34
+ * Standalone target ID constants.
35
+ *
36
+ * Extracted from builtin-targets.ts to break a circular type dependency:
37
+ * schema.ts → builtin-targets.ts → descriptors → ValidatedConfig → schema.ts
38
+ *
39
+ * When adding a new target, add its ID here AND its descriptor to
40
+ * BUILTIN_TARGETS in builtin-targets.ts. A compile-time assertion
41
+ * in builtin-targets.ts ensures they stay in sync.
42
+ */
43
+ declare const TARGET_IDS: readonly ["claude-code", "cursor", "copilot", "continue", "junie", "kiro", "gemini-cli", "cline", "codex-cli", "windsurf", "antigravity", "roo-code"];
44
+ type BuiltinTargetId = (typeof TARGET_IDS)[number];
45
+
46
+ /**
47
+ * Public API — generation and import (see package.json "exports"."./engine").
48
+ * Stability: follow semver for these symbols; internal modules are not supported.
49
+ */
50
+
51
+ declare function importFrom(target: BuiltinTargetId, opts: {
52
+ root: string;
53
+ scope?: 'project' | 'global';
54
+ }): Promise<ImportResult[]>;
55
+
56
+ export { type GenerateContext, GenerateResult, ImportResult, generate, importFrom, resolveOutputCollisions };