@blocklet/pages-kit-agents 0.5.47 → 0.5.48
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/.env.local.example +7 -0
- package/cli.ts +1 -1
- package/index.ts +0 -1
- package/lib/cjs/agents/content-reviwer.d.ts +1 -1
- package/lib/cjs/agents/multi-agent-page-writer.js +3 -10
- package/lib/cjs/agents/orchestrator/index.d.ts +115 -0
- package/lib/cjs/agents/orchestrator/index.js +264 -0
- package/lib/cjs/agents/orchestrator/orchestrator-prompts.d.ts +130 -0
- package/lib/cjs/agents/orchestrator/orchestrator-prompts.js +135 -0
- package/lib/cjs/agents/page-metadata-generator.d.ts +1 -1
- package/lib/cjs/agents/page-metadata-generator.js +4 -1
- package/lib/cjs/agents/page-structure-planner.d.ts +59 -22
- package/lib/cjs/agents/page-structure-planner.js +108 -78
- package/lib/cjs/agents/router-datacache-generator.d.ts +24 -0
- package/lib/cjs/agents/router-datacache-generator.js +78 -0
- package/lib/cjs/agents/section-content-generator.js +11 -8
- package/lib/cjs/agents/template-designer.d.ts +7 -6
- package/lib/cjs/agents/template-designer.js +22 -17
- package/lib/cjs/agents/template-generator.d.ts +55 -7
- package/lib/cjs/agents/template-generator.js +99 -89
- package/lib/cjs/index.d.ts +0 -1
- package/lib/cjs/index.js +0 -1
- package/lib/cjs/prompts/fs-memory-recorder.md +59 -0
- package/lib/cjs/prompts/fs-memory-retriever.md +30 -0
- package/lib/cjs/prompts/html-generator.md +91 -0
- package/lib/cjs/prompts/page-structure-planner-prompt.md +47 -0
- package/lib/cjs/prompts/page-structure-validator-prompt.md +78 -0
- package/lib/cjs/prompts/pages-kit-template-rule.md +491 -0
- package/lib/cjs/prompts/site-map-generator.md +126 -0
- package/lib/cjs/skill-agents/parse-component-list-agent.d.ts +100 -0
- package/lib/cjs/skill-agents/parse-component-list-agent.js +198 -0
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/agent-utils.d.ts +4 -0
- package/lib/cjs/utils/agent-utils.js +106 -0
- package/lib/esm/agents/content-reviwer.d.ts +1 -1
- package/lib/esm/agents/multi-agent-page-writer.js +5 -12
- package/lib/esm/agents/orchestrator/index.d.ts +115 -0
- package/lib/esm/agents/orchestrator/index.js +243 -0
- package/lib/esm/agents/orchestrator/orchestrator-prompts.d.ts +130 -0
- package/lib/esm/agents/orchestrator/orchestrator-prompts.js +131 -0
- package/lib/esm/agents/page-metadata-generator.d.ts +1 -1
- package/lib/esm/agents/page-metadata-generator.js +4 -1
- package/lib/esm/agents/page-structure-planner.d.ts +59 -22
- package/lib/esm/agents/page-structure-planner.js +105 -78
- package/lib/esm/agents/router-datacache-generator.d.ts +24 -0
- package/lib/esm/agents/router-datacache-generator.js +72 -0
- package/lib/esm/agents/section-content-generator.js +11 -8
- package/lib/esm/agents/template-designer.d.ts +7 -6
- package/lib/esm/agents/template-designer.js +22 -14
- package/lib/esm/agents/template-generator.d.ts +55 -7
- package/lib/esm/agents/template-generator.js +98 -88
- package/lib/esm/index.d.ts +0 -1
- package/lib/esm/index.js +0 -1
- package/lib/esm/prompts/fs-memory-recorder.md +59 -0
- package/lib/esm/prompts/fs-memory-retriever.md +30 -0
- package/lib/esm/prompts/html-generator.md +91 -0
- package/lib/esm/prompts/page-structure-planner-prompt.md +47 -0
- package/lib/esm/prompts/page-structure-validator-prompt.md +78 -0
- package/lib/esm/prompts/pages-kit-template-rule.md +491 -0
- package/lib/esm/prompts/site-map-generator.md +126 -0
- package/lib/esm/skill-agents/parse-component-list-agent.d.ts +100 -0
- package/lib/esm/skill-agents/parse-component-list-agent.js +192 -0
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/agent-utils.d.ts +4 -0
- package/lib/esm/utils/agent-utils.js +105 -0
- package/lib/types/agents/content-reviwer.d.ts +1 -1
- package/lib/types/agents/orchestrator/index.d.ts +115 -0
- package/lib/types/agents/orchestrator/orchestrator-prompts.d.ts +130 -0
- package/lib/types/agents/page-metadata-generator.d.ts +1 -1
- package/lib/types/agents/page-structure-planner.d.ts +59 -22
- package/lib/types/agents/router-datacache-generator.d.ts +24 -0
- package/lib/types/agents/template-designer.d.ts +7 -6
- package/lib/types/agents/template-generator.d.ts +55 -7
- package/lib/types/index.d.ts +0 -1
- package/lib/types/skill-agents/parse-component-list-agent.d.ts +100 -0
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/utils/agent-utils.d.ts +4 -0
- package/package.json +8 -3
- package/workflow-cli.ts +61 -41
- package/lib/cjs/agents/page-structure-validator.d.ts +0 -30
- package/lib/cjs/agents/page-structure-validator.js +0 -124
- package/lib/esm/agents/page-structure-validator.d.ts +0 -30
- package/lib/esm/agents/page-structure-validator.js +0 -121
- package/lib/types/agents/page-structure-validator.d.ts +0 -30
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { FunctionAgent } from '@aigne/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const ComponentListSchema: z.ZodArray<z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
component: z.ZodString;
|
|
7
|
+
description: z.ZodString;
|
|
8
|
+
rawData: z.ZodOptional<z.ZodAny>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
id: string;
|
|
13
|
+
component: string;
|
|
14
|
+
rawData?: any;
|
|
15
|
+
}, {
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
id: string;
|
|
19
|
+
component: string;
|
|
20
|
+
rawData?: any;
|
|
21
|
+
}>, "many">;
|
|
22
|
+
export declare const ComponentListOutputSchema: z.ZodObject<{
|
|
23
|
+
data: z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
component: z.ZodString;
|
|
27
|
+
description: z.ZodString;
|
|
28
|
+
rawData: z.ZodOptional<z.ZodAny>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
name: string;
|
|
31
|
+
description: string;
|
|
32
|
+
id: string;
|
|
33
|
+
component: string;
|
|
34
|
+
rawData?: any;
|
|
35
|
+
}, {
|
|
36
|
+
name: string;
|
|
37
|
+
description: string;
|
|
38
|
+
id: string;
|
|
39
|
+
component: string;
|
|
40
|
+
rawData?: any;
|
|
41
|
+
}>, "many">;
|
|
42
|
+
summary: z.ZodObject<{
|
|
43
|
+
total: z.ZodNumber;
|
|
44
|
+
basicComponents: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
45
|
+
customComponents: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
total: number;
|
|
48
|
+
basicComponents: Record<string, string>;
|
|
49
|
+
customComponents: Record<string, string>;
|
|
50
|
+
}, {
|
|
51
|
+
total: number;
|
|
52
|
+
basicComponents: Record<string, string>;
|
|
53
|
+
customComponents: Record<string, string>;
|
|
54
|
+
}>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
data: {
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
id: string;
|
|
60
|
+
component: string;
|
|
61
|
+
rawData?: any;
|
|
62
|
+
}[];
|
|
63
|
+
summary: {
|
|
64
|
+
total: number;
|
|
65
|
+
basicComponents: Record<string, string>;
|
|
66
|
+
customComponents: Record<string, string>;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
data: {
|
|
70
|
+
name: string;
|
|
71
|
+
description: string;
|
|
72
|
+
id: string;
|
|
73
|
+
component: string;
|
|
74
|
+
rawData?: any;
|
|
75
|
+
}[];
|
|
76
|
+
summary: {
|
|
77
|
+
total: number;
|
|
78
|
+
basicComponents: Record<string, string>;
|
|
79
|
+
customComponents: Record<string, string>;
|
|
80
|
+
};
|
|
81
|
+
}>;
|
|
82
|
+
export declare const parseComponentListAgent: FunctionAgent<{
|
|
83
|
+
componentListDir?: string | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
componentListYaml: string;
|
|
86
|
+
componentList: {
|
|
87
|
+
data: {
|
|
88
|
+
name: string;
|
|
89
|
+
description: string;
|
|
90
|
+
id: string;
|
|
91
|
+
component: string;
|
|
92
|
+
rawData?: any;
|
|
93
|
+
}[];
|
|
94
|
+
summary: {
|
|
95
|
+
total: number;
|
|
96
|
+
basicComponents: Record<string, string>;
|
|
97
|
+
customComponents: Record<string, string>;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}>;
|