dot-agents 0.2.0 → 0.3.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.
Files changed (39) hide show
  1. package/README.md +151 -7
  2. package/dist/cli/commands/check.d.ts +3 -0
  3. package/dist/cli/commands/check.d.ts.map +1 -0
  4. package/dist/cli/commands/check.js +152 -0
  5. package/dist/cli/commands/check.js.map +1 -0
  6. package/dist/cli/commands/index.d.ts +1 -0
  7. package/dist/cli/commands/index.d.ts.map +1 -1
  8. package/dist/cli/commands/index.js +1 -0
  9. package/dist/cli/commands/index.js.map +1 -1
  10. package/dist/cli/commands/init.d.ts.map +1 -1
  11. package/dist/cli/commands/init.js +58 -52
  12. package/dist/cli/commands/init.js.map +1 -1
  13. package/dist/cli/index.js +3 -2
  14. package/dist/cli/index.js.map +1 -1
  15. package/dist/lib/index.d.ts +1 -0
  16. package/dist/lib/index.d.ts.map +1 -1
  17. package/dist/lib/index.js +2 -0
  18. package/dist/lib/index.js.map +1 -1
  19. package/dist/lib/validation/cron.d.ts +29 -0
  20. package/dist/lib/validation/cron.d.ts.map +1 -0
  21. package/dist/lib/validation/cron.js +159 -0
  22. package/dist/lib/validation/cron.js.map +1 -0
  23. package/dist/lib/validation/index.d.ts +18 -0
  24. package/dist/lib/validation/index.d.ts.map +1 -0
  25. package/dist/lib/validation/index.js +135 -0
  26. package/dist/lib/validation/index.js.map +1 -0
  27. package/dist/lib/validation/persona.d.ts +9 -0
  28. package/dist/lib/validation/persona.d.ts.map +1 -0
  29. package/dist/lib/validation/persona.js +143 -0
  30. package/dist/lib/validation/persona.js.map +1 -0
  31. package/dist/lib/validation/types.d.ts +64 -0
  32. package/dist/lib/validation/types.d.ts.map +1 -0
  33. package/dist/lib/validation/types.js +25 -0
  34. package/dist/lib/validation/types.js.map +1 -0
  35. package/dist/lib/validation/workflow.d.ts +10 -0
  36. package/dist/lib/validation/workflow.d.ts.map +1 -0
  37. package/dist/lib/validation/workflow.js +242 -0
  38. package/dist/lib/validation/workflow.js.map +1 -0
  39. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ import { ValidationResult } from "./types.js";
2
+ /**
3
+ * Validate a workflow file
4
+ */
5
+ export declare function validateWorkflow(workflowPath: string): Promise<ValidationResult>;
6
+ /**
7
+ * Get the persona referenced by a workflow (for cross-validation)
8
+ */
9
+ export declare function getWorkflowPersonaRef(workflowPath: string): Promise<string | null>;
10
+ //# sourceMappingURL=workflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../src/lib/validation/workflow.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,gBAAgB,EAIjB,MAAM,YAAY,CAAC;AAgMpB;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,gBAAgB,CAAC,CAyM3B;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAexB"}
@@ -0,0 +1,242 @@
1
+ import { readFile } from "node:fs/promises";
2
+ import { join, dirname } from "node:path";
3
+ import { parse as parseYaml } from "yaml";
4
+ import { createError, createWarning, } from "./types.js";
5
+ import { validateCron, suggestCronFromHint } from "./cron.js";
6
+ const WORKFLOW_FILENAME = "WORKFLOW.md";
7
+ /**
8
+ * Known workflow frontmatter fields
9
+ */
10
+ const KNOWN_FIELDS = new Set([
11
+ "name",
12
+ "description",
13
+ "persona",
14
+ "on",
15
+ "inputs",
16
+ "outputs",
17
+ "env",
18
+ "timeout",
19
+ "retry",
20
+ "working_dir",
21
+ ]);
22
+ /**
23
+ * Common legacy/misnamed fields and their correct names
24
+ */
25
+ const FIELD_SUGGESTIONS = {
26
+ goal: "description",
27
+ skills_used: "persona (skills belong in the persona definition)",
28
+ skills: "persona (skills belong in the persona definition)",
29
+ schedule: "on.schedule",
30
+ trigger: "on",
31
+ triggers: "on",
32
+ command: "persona (command belongs in the persona definition)",
33
+ cmd: "persona (command belongs in the persona definition)",
34
+ };
35
+ /**
36
+ * Parse frontmatter from markdown content without full validation
37
+ */
38
+ function parseFrontmatter(content) {
39
+ const frontmatterRegex = /^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/;
40
+ const match = content.match(frontmatterRegex);
41
+ if (!match) {
42
+ return null;
43
+ }
44
+ const [, yamlContent, body] = match;
45
+ try {
46
+ const frontmatter = parseYaml(yamlContent);
47
+ return { frontmatter, body: body.trim() };
48
+ }
49
+ catch {
50
+ return null;
51
+ }
52
+ }
53
+ /**
54
+ * Validate the 'on' trigger configuration
55
+ */
56
+ function validateTriggers(on, issues) {
57
+ if (on === undefined || on === null) {
58
+ return; // 'on' is optional
59
+ }
60
+ if (typeof on !== "object" || Array.isArray(on)) {
61
+ issues.push(createError("invalid_type", "on", "'on' must be an object with trigger configurations", "Example: on: { manual: true, schedule: [{cron: '0 9 * * *'}] }"));
62
+ return;
63
+ }
64
+ const triggers = on;
65
+ // Validate schedule
66
+ if (triggers.schedule !== undefined) {
67
+ if (typeof triggers.schedule === "string") {
68
+ // Common mistake: using a string instead of array
69
+ const hint = suggestCronFromHint(triggers.schedule);
70
+ issues.push(createError("invalid_type", "on.schedule", "'schedule' must be an array of {cron: string} objects, got string", hint
71
+ ? `Use: schedule: [{ cron: "${hint}" }]`
72
+ : "Use: schedule: [{ cron: \"0 9 * * *\" }]"));
73
+ }
74
+ else if (!Array.isArray(triggers.schedule)) {
75
+ issues.push(createError("invalid_type", "on.schedule", "'schedule' must be an array", "Use: schedule: [{ cron: \"0 9 * * *\" }]"));
76
+ }
77
+ else {
78
+ // Validate each schedule entry
79
+ triggers.schedule.forEach((entry, index) => {
80
+ if (typeof entry !== "object" || entry === null) {
81
+ issues.push(createError("invalid_type", `on.schedule[${index}]`, "Schedule entry must be an object with 'cron' field", "Use: { cron: \"0 9 * * *\" }"));
82
+ return;
83
+ }
84
+ const scheduleEntry = entry;
85
+ if (typeof scheduleEntry.cron !== "string") {
86
+ issues.push(createError("missing_field", `on.schedule[${index}].cron`, "Schedule entry missing required 'cron' field", "Add: cron: \"0 9 * * *\""));
87
+ return;
88
+ }
89
+ // Validate cron expression
90
+ const cronResult = validateCron(scheduleEntry.cron);
91
+ if (!cronResult.valid) {
92
+ issues.push(createError("invalid_value", `on.schedule[${index}].cron`, `Invalid cron expression: ${cronResult.error}`, "Format: minute hour day-of-month month day-of-week (e.g., \"30 9 * * 1-5\")"));
93
+ }
94
+ });
95
+ }
96
+ }
97
+ // Validate manual trigger
98
+ if (triggers.manual !== undefined) {
99
+ if (typeof triggers.manual !== "boolean" &&
100
+ typeof triggers.manual !== "object") {
101
+ issues.push(createError("invalid_type", "on.manual", "'manual' must be true/false or an object with input overrides", "Use: manual: true"));
102
+ }
103
+ }
104
+ // Check for unknown trigger types
105
+ const knownTriggers = new Set([
106
+ "schedule",
107
+ "manual",
108
+ "file_change",
109
+ "webhook",
110
+ "workflow_complete",
111
+ "git",
112
+ "github",
113
+ ]);
114
+ for (const key of Object.keys(triggers)) {
115
+ if (!knownTriggers.has(key)) {
116
+ issues.push(createWarning("unknown_field", `on.${key}`, `Unknown trigger type '${key}'`, `Known triggers: ${Array.from(knownTriggers).join(", ")}`));
117
+ }
118
+ }
119
+ }
120
+ /**
121
+ * Validate a workflow file
122
+ */
123
+ export async function validateWorkflow(workflowPath) {
124
+ const filePath = workflowPath.endsWith(WORKFLOW_FILENAME)
125
+ ? workflowPath
126
+ : join(workflowPath, WORKFLOW_FILENAME);
127
+ const issues = [];
128
+ let name;
129
+ try {
130
+ const content = await readFile(filePath, "utf-8");
131
+ const parsed = parseFrontmatter(content);
132
+ if (!parsed) {
133
+ issues.push(createError("invalid_value", "frontmatter", "No valid YAML frontmatter found", "File must start with --- followed by YAML and another ---"));
134
+ return {
135
+ path: filePath,
136
+ valid: false,
137
+ issues,
138
+ };
139
+ }
140
+ const { frontmatter, body } = parsed;
141
+ name = frontmatter.name;
142
+ // Check required fields
143
+ if (!frontmatter.name) {
144
+ issues.push(createError("missing_field", "name", "Missing required 'name' field", "Add: name: my-workflow"));
145
+ }
146
+ else if (typeof frontmatter.name !== "string") {
147
+ issues.push(createError("invalid_type", "name", "'name' must be a string"));
148
+ }
149
+ if (!frontmatter.description) {
150
+ // Check if they used 'goal' instead
151
+ if (frontmatter.goal) {
152
+ issues.push(createError("missing_field", "description", "Missing required 'description' field", "Rename 'goal' to 'description'"));
153
+ }
154
+ else {
155
+ issues.push(createError("missing_field", "description", "Missing required 'description' field", "Add: description: What this workflow does"));
156
+ }
157
+ }
158
+ else if (typeof frontmatter.description !== "string") {
159
+ issues.push(createError("invalid_type", "description", "'description' must be a string"));
160
+ }
161
+ if (!frontmatter.persona) {
162
+ issues.push(createError("missing_field", "persona", "Missing required 'persona' field", "Add: persona: claude"));
163
+ }
164
+ else if (typeof frontmatter.persona !== "string") {
165
+ issues.push(createError("invalid_type", "persona", "'persona' must be a string"));
166
+ }
167
+ // Check for task body
168
+ if (!body) {
169
+ issues.push(createError("missing_field", "body", "Missing task body after frontmatter", "Add the task/prompt content after the --- delimiter"));
170
+ }
171
+ // Validate triggers
172
+ validateTriggers(frontmatter.on, issues);
173
+ // Check for unknown/legacy fields
174
+ for (const key of Object.keys(frontmatter)) {
175
+ if (!KNOWN_FIELDS.has(key)) {
176
+ const suggestion = FIELD_SUGGESTIONS[key];
177
+ if (suggestion) {
178
+ issues.push(createWarning("unknown_field", key, `Unknown field '${key}'`, `Did you mean '${suggestion}'?`));
179
+ }
180
+ else {
181
+ issues.push(createWarning("unknown_field", key, `Unknown field '${key}'`));
182
+ }
183
+ }
184
+ }
185
+ // Validate inputs if present
186
+ if (frontmatter.inputs !== undefined) {
187
+ if (!Array.isArray(frontmatter.inputs)) {
188
+ issues.push(createError("invalid_type", "inputs", "'inputs' must be an array", "Use: inputs: [{ name: 'myInput', type: 'string' }]"));
189
+ }
190
+ else {
191
+ frontmatter.inputs.forEach((input, index) => {
192
+ if (typeof input !== "object" || input === null) {
193
+ issues.push(createError("invalid_type", `inputs[${index}]`, "Input definition must be an object"));
194
+ return;
195
+ }
196
+ const inputDef = input;
197
+ if (!inputDef.name || typeof inputDef.name !== "string") {
198
+ issues.push(createError("missing_field", `inputs[${index}].name`, "Input definition missing required 'name' field"));
199
+ }
200
+ });
201
+ }
202
+ }
203
+ // Validate env if present
204
+ if (frontmatter.env !== undefined) {
205
+ if (typeof frontmatter.env !== "object" ||
206
+ Array.isArray(frontmatter.env) ||
207
+ frontmatter.env === null) {
208
+ issues.push(createError("invalid_type", "env", "'env' must be an object", "Use: env: { KEY: 'value' }"));
209
+ }
210
+ }
211
+ }
212
+ catch (error) {
213
+ issues.push(createError("invalid_value", "file", `Failed to read workflow: ${error.message}`));
214
+ }
215
+ const hasErrors = issues.some((i) => i.severity === "error");
216
+ return {
217
+ path: dirname(filePath),
218
+ name,
219
+ valid: !hasErrors,
220
+ issues,
221
+ };
222
+ }
223
+ /**
224
+ * Get the persona referenced by a workflow (for cross-validation)
225
+ */
226
+ export async function getWorkflowPersonaRef(workflowPath) {
227
+ const filePath = workflowPath.endsWith(WORKFLOW_FILENAME)
228
+ ? workflowPath
229
+ : join(workflowPath, WORKFLOW_FILENAME);
230
+ try {
231
+ const content = await readFile(filePath, "utf-8");
232
+ const parsed = parseFrontmatter(content);
233
+ if (parsed && typeof parsed.frontmatter.persona === "string") {
234
+ return parsed.frontmatter.persona;
235
+ }
236
+ }
237
+ catch {
238
+ // Ignore errors
239
+ }
240
+ return null;
241
+ }
242
+ //# sourceMappingURL=workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../src/lib/validation/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM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AC,WAAW,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;YAC7D,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC;QACpC,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,gBAAgB;IAClB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dot-agents",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "A framework for building agentic workflows with personas and scheduled execution",
5
5
  "type": "module",
6
6
  "main": "./dist/lib/index.js",