takt 0.2.3 → 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.
- package/README.md +161 -133
- package/dist/agents/runner.d.ts +2 -4
- package/dist/agents/runner.d.ts.map +1 -1
- package/dist/agents/runner.js +6 -35
- package/dist/agents/runner.js.map +1 -1
- package/dist/claude/client.d.ts +31 -6
- package/dist/claude/client.d.ts.map +1 -1
- package/dist/claude/client.js +78 -30
- package/dist/claude/client.js.map +1 -1
- package/dist/claude/index.d.ts +1 -1
- package/dist/claude/index.d.ts.map +1 -1
- package/dist/claude/index.js +1 -1
- package/dist/claude/index.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +22 -6
- package/dist/cli.js.map +1 -1
- package/dist/codex/client.d.ts +0 -1
- package/dist/codex/client.d.ts.map +1 -1
- package/dist/codex/client.js +3 -6
- package/dist/codex/client.js.map +1 -1
- package/dist/commands/addTask.d.ts.map +1 -1
- package/dist/commands/addTask.js +17 -2
- package/dist/commands/addTask.js.map +1 -1
- package/dist/commands/eject.d.ts +13 -0
- package/dist/commands/eject.d.ts.map +1 -0
- package/dist/commands/eject.js +105 -0
- package/dist/commands/eject.js.map +1 -0
- package/dist/commands/help.d.ts.map +1 -1
- package/dist/commands/help.js +9 -2
- package/dist/commands/help.js.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +1 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/refreshBuiltin.d.ts +4 -4
- package/dist/commands/refreshBuiltin.d.ts.map +1 -1
- package/dist/commands/refreshBuiltin.js +13 -29
- package/dist/commands/refreshBuiltin.js.map +1 -1
- package/dist/commands/workflowExecution.d.ts.map +1 -1
- package/dist/commands/workflowExecution.js +85 -18
- package/dist/commands/workflowExecution.js.map +1 -1
- package/dist/config/agentLoader.d.ts +3 -1
- package/dist/config/agentLoader.d.ts.map +1 -1
- package/dist/config/agentLoader.js +17 -24
- package/dist/config/agentLoader.js.map +1 -1
- package/dist/config/globalConfig.d.ts +2 -0
- package/dist/config/globalConfig.d.ts.map +1 -1
- package/dist/config/globalConfig.js +14 -0
- package/dist/config/globalConfig.js.map +1 -1
- package/dist/config/initialization.d.ts +7 -5
- package/dist/config/initialization.d.ts.map +1 -1
- package/dist/config/initialization.js +23 -21
- package/dist/config/initialization.js.map +1 -1
- package/dist/config/paths.d.ts +5 -0
- package/dist/config/paths.d.ts.map +1 -1
- package/dist/config/paths.js +9 -0
- package/dist/config/paths.js.map +1 -1
- package/dist/config/workflowLoader.d.ts +6 -4
- package/dist/config/workflowLoader.d.ts.map +1 -1
- package/dist/config/workflowLoader.js +190 -35
- package/dist/config/workflowLoader.js.map +1 -1
- package/dist/github/issue.d.ts +72 -0
- package/dist/github/issue.d.ts.map +1 -0
- package/dist/github/issue.js +143 -0
- package/dist/github/issue.js.map +1 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/schemas.d.ts +164 -90
- package/dist/models/schemas.d.ts.map +1 -1
- package/dist/models/schemas.js +77 -51
- package/dist/models/schemas.js.map +1 -1
- package/dist/models/types.d.ts +51 -20
- package/dist/models/types.d.ts.map +1 -1
- package/dist/providers/claude.js +2 -2
- package/dist/providers/claude.js.map +1 -1
- package/dist/providers/codex.d.ts.map +1 -1
- package/dist/providers/codex.js +0 -2
- package/dist/providers/codex.js.map +1 -1
- package/dist/providers/index.d.ts +2 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/resources/index.d.ts +3 -22
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +3 -73
- package/dist/resources/index.js.map +1 -1
- package/dist/utils/session.d.ts +74 -10
- package/dist/utils/session.d.ts.map +1 -1
- package/dist/utils/session.js +101 -51
- package/dist/utils/session.js.map +1 -1
- package/dist/workflow/engine.d.ts +34 -1
- package/dist/workflow/engine.d.ts.map +1 -1
- package/dist/workflow/engine.js +228 -36
- package/dist/workflow/engine.js.map +1 -1
- package/dist/workflow/index.d.ts +1 -1
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +1 -1
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/instruction-builder.d.ts +87 -18
- package/dist/workflow/instruction-builder.d.ts.map +1 -1
- package/dist/workflow/instruction-builder.js +404 -57
- package/dist/workflow/instruction-builder.js.map +1 -1
- package/dist/workflow/parallel-logger.d.ts +76 -0
- package/dist/workflow/parallel-logger.d.ts.map +1 -0
- package/dist/workflow/parallel-logger.js +173 -0
- package/dist/workflow/parallel-logger.js.map +1 -0
- package/dist/workflow/phase-runner.d.ts +40 -0
- package/dist/workflow/phase-runner.d.ts.map +1 -0
- package/dist/workflow/phase-runner.js +69 -0
- package/dist/workflow/phase-runner.js.map +1 -0
- package/dist/workflow/rule-evaluator.d.ts +64 -0
- package/dist/workflow/rule-evaluator.d.ts.map +1 -0
- package/dist/workflow/rule-evaluator.js +178 -0
- package/dist/workflow/rule-evaluator.js.map +1 -0
- package/dist/workflow/rule-utils.d.ts +13 -0
- package/dist/workflow/rule-utils.d.ts.map +1 -0
- package/dist/workflow/rule-utils.js +17 -0
- package/dist/workflow/rule-utils.js.map +1 -0
- package/dist/workflow/transitions.d.ts +5 -13
- package/dist/workflow/transitions.d.ts.map +1 -1
- package/dist/workflow/transitions.js +8 -78
- package/dist/workflow/transitions.js.map +1 -1
- package/dist/workflow/types.d.ts +2 -1
- package/dist/workflow/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/global/en/agents/default/ai-antipattern-reviewer.md +71 -15
- package/resources/global/en/agents/default/{architect.md → architecture-reviewer.md} +144 -44
- package/resources/global/en/agents/default/coder.md +4 -4
- package/resources/global/en/agents/default/planner.md +16 -9
- package/resources/global/en/agents/default/{security.md → security-reviewer.md} +23 -5
- package/resources/global/en/agents/default/supervisor.md +13 -2
- package/resources/global/en/agents/expert/frontend-reviewer.md +0 -17
- package/resources/global/en/agents/expert/qa-reviewer.md +0 -16
- package/resources/global/en/agents/expert/security-reviewer.md +0 -16
- package/resources/global/en/agents/expert-cqrs/cqrs-es-reviewer.md +0 -17
- package/resources/global/en/agents/templates/coder.md +128 -0
- package/resources/global/en/agents/templates/planner.md +44 -0
- package/resources/global/en/agents/templates/reviewer.md +57 -0
- package/resources/global/en/agents/templates/supervisor.md +64 -0
- package/resources/global/en/workflows/default.yaml +232 -772
- package/resources/global/en/workflows/expert-cqrs.yaml +319 -698
- package/resources/global/en/workflows/expert.yaml +348 -723
- package/resources/global/en/workflows/magi.yaml +45 -52
- package/resources/global/en/workflows/research.yaml +18 -99
- package/resources/global/en/workflows/simple.yaml +152 -421
- package/resources/global/ja/agents/default/ai-antipattern-reviewer.md +71 -15
- package/resources/global/ja/agents/default/{architect.md → architecture-reviewer.md} +148 -48
- package/resources/global/ja/agents/default/coder.md +4 -4
- package/resources/global/ja/agents/default/planner.md +16 -9
- package/resources/global/ja/agents/default/{security.md → security-reviewer.md} +23 -5
- package/resources/global/ja/agents/default/supervisor.md +13 -2
- package/resources/global/ja/agents/expert/frontend-reviewer.md +0 -18
- package/resources/global/ja/agents/expert/qa-reviewer.md +0 -16
- package/resources/global/ja/agents/expert/security-reviewer.md +0 -16
- package/resources/global/ja/agents/expert-cqrs/cqrs-es-reviewer.md +0 -18
- package/resources/global/ja/agents/templates/coder.md +128 -0
- package/resources/global/ja/agents/templates/planner.md +44 -0
- package/resources/global/ja/agents/templates/reviewer.md +57 -0
- package/resources/global/ja/agents/templates/supervisor.md +64 -0
- package/resources/global/ja/workflows/default.yaml +227 -773
- package/resources/global/ja/workflows/expert-cqrs.yaml +309 -833
- package/resources/global/ja/workflows/expert.yaml +325 -712
- package/resources/global/ja/workflows/magi.yaml +45 -52
- package/resources/global/ja/workflows/research.yaml +18 -99
- package/resources/global/ja/workflows/simple.yaml +145 -415
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub Issue utilities
|
|
3
|
+
*
|
|
4
|
+
* Fetches issue content via `gh` CLI and formats it as task text
|
|
5
|
+
* for workflow execution or task creation.
|
|
6
|
+
*/
|
|
7
|
+
export interface GitHubIssue {
|
|
8
|
+
number: number;
|
|
9
|
+
title: string;
|
|
10
|
+
body: string;
|
|
11
|
+
labels: string[];
|
|
12
|
+
comments: Array<{
|
|
13
|
+
author: string;
|
|
14
|
+
body: string;
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
17
|
+
export interface GhCliStatus {
|
|
18
|
+
available: boolean;
|
|
19
|
+
error?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if `gh` CLI is available and authenticated.
|
|
23
|
+
*/
|
|
24
|
+
export declare function checkGhCli(): GhCliStatus;
|
|
25
|
+
/**
|
|
26
|
+
* Fetch issue content via `gh issue view`.
|
|
27
|
+
* Throws on failure (issue not found, network error, etc.).
|
|
28
|
+
*/
|
|
29
|
+
export declare function fetchIssue(issueNumber: number): GitHubIssue;
|
|
30
|
+
/**
|
|
31
|
+
* Format a GitHub issue into task text for workflow execution.
|
|
32
|
+
*
|
|
33
|
+
* Output format:
|
|
34
|
+
* ```
|
|
35
|
+
* ## GitHub Issue #6: Fix authentication bug
|
|
36
|
+
*
|
|
37
|
+
* {body}
|
|
38
|
+
*
|
|
39
|
+
* ### Labels
|
|
40
|
+
* bug, priority:high
|
|
41
|
+
*
|
|
42
|
+
* ### Comments
|
|
43
|
+
* **user1**: Comment body...
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function formatIssueAsTask(issue: GitHubIssue): string;
|
|
47
|
+
/**
|
|
48
|
+
* Parse `#N` patterns from argument strings.
|
|
49
|
+
* Returns issue numbers found, or empty array if none.
|
|
50
|
+
*
|
|
51
|
+
* Each argument must be exactly `#N` (no mixed text).
|
|
52
|
+
* Examples:
|
|
53
|
+
* ['#6'] → [6]
|
|
54
|
+
* ['#6', '#7'] → [6, 7]
|
|
55
|
+
* ['Fix bug'] → []
|
|
56
|
+
* ['#6', 'and', '#7'] → [] (mixed, not all are issue refs)
|
|
57
|
+
*/
|
|
58
|
+
export declare function parseIssueNumbers(args: string[]): number[];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a single task string is an issue reference (`#N`).
|
|
61
|
+
*/
|
|
62
|
+
export declare function isIssueReference(task: string): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Resolve issue references in a task string.
|
|
65
|
+
* If task contains `#N` patterns (space-separated), fetches issues and returns formatted text.
|
|
66
|
+
* Otherwise returns the task string as-is.
|
|
67
|
+
*
|
|
68
|
+
* Checks gh CLI availability before fetching.
|
|
69
|
+
* Throws if gh CLI is not available or issue fetch fails.
|
|
70
|
+
*/
|
|
71
|
+
export declare function resolveIssueTask(task: string): string;
|
|
72
|
+
//# sourceMappingURL=issue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issue.d.ts","sourceRoot":"","sources":["../../src/github/issue.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnD;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,WAAW,CAkBxC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,CA0B3D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAyB5D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAW1D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBrD"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub Issue utilities
|
|
3
|
+
*
|
|
4
|
+
* Fetches issue content via `gh` CLI and formats it as task text
|
|
5
|
+
* for workflow execution or task creation.
|
|
6
|
+
*/
|
|
7
|
+
import { execSync } from 'node:child_process';
|
|
8
|
+
import { createLogger } from '../utils/debug.js';
|
|
9
|
+
const log = createLogger('github');
|
|
10
|
+
/** Regex to match `#N` patterns (issue numbers) */
|
|
11
|
+
const ISSUE_NUMBER_REGEX = /^#(\d+)$/;
|
|
12
|
+
/**
|
|
13
|
+
* Check if `gh` CLI is available and authenticated.
|
|
14
|
+
*/
|
|
15
|
+
export function checkGhCli() {
|
|
16
|
+
try {
|
|
17
|
+
execSync('gh auth status', { stdio: 'pipe' });
|
|
18
|
+
return { available: true };
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
try {
|
|
22
|
+
execSync('gh --version', { stdio: 'pipe' });
|
|
23
|
+
return {
|
|
24
|
+
available: false,
|
|
25
|
+
error: 'gh CLI is installed but not authenticated. Run `gh auth login` first.',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
return {
|
|
30
|
+
available: false,
|
|
31
|
+
error: 'gh CLI is not installed. Install it from https://cli.github.com/',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Fetch issue content via `gh issue view`.
|
|
38
|
+
* Throws on failure (issue not found, network error, etc.).
|
|
39
|
+
*/
|
|
40
|
+
export function fetchIssue(issueNumber) {
|
|
41
|
+
log.debug('Fetching issue', { issueNumber });
|
|
42
|
+
const raw = execSync(`gh issue view ${issueNumber} --json number,title,body,labels,comments`, { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] });
|
|
43
|
+
const data = JSON.parse(raw);
|
|
44
|
+
return {
|
|
45
|
+
number: data.number,
|
|
46
|
+
title: data.title,
|
|
47
|
+
body: data.body ?? '',
|
|
48
|
+
labels: data.labels.map((l) => l.name),
|
|
49
|
+
comments: data.comments.map((c) => ({
|
|
50
|
+
author: c.author.login,
|
|
51
|
+
body: c.body,
|
|
52
|
+
})),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Format a GitHub issue into task text for workflow execution.
|
|
57
|
+
*
|
|
58
|
+
* Output format:
|
|
59
|
+
* ```
|
|
60
|
+
* ## GitHub Issue #6: Fix authentication bug
|
|
61
|
+
*
|
|
62
|
+
* {body}
|
|
63
|
+
*
|
|
64
|
+
* ### Labels
|
|
65
|
+
* bug, priority:high
|
|
66
|
+
*
|
|
67
|
+
* ### Comments
|
|
68
|
+
* **user1**: Comment body...
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export function formatIssueAsTask(issue) {
|
|
72
|
+
const parts = [];
|
|
73
|
+
parts.push(`## GitHub Issue #${issue.number}: ${issue.title}`);
|
|
74
|
+
if (issue.body) {
|
|
75
|
+
parts.push('');
|
|
76
|
+
parts.push(issue.body);
|
|
77
|
+
}
|
|
78
|
+
if (issue.labels.length > 0) {
|
|
79
|
+
parts.push('');
|
|
80
|
+
parts.push('### Labels');
|
|
81
|
+
parts.push(issue.labels.join(', '));
|
|
82
|
+
}
|
|
83
|
+
if (issue.comments.length > 0) {
|
|
84
|
+
parts.push('');
|
|
85
|
+
parts.push('### Comments');
|
|
86
|
+
for (const comment of issue.comments) {
|
|
87
|
+
parts.push(`**${comment.author}**: ${comment.body}`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return parts.join('\n');
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Parse `#N` patterns from argument strings.
|
|
94
|
+
* Returns issue numbers found, or empty array if none.
|
|
95
|
+
*
|
|
96
|
+
* Each argument must be exactly `#N` (no mixed text).
|
|
97
|
+
* Examples:
|
|
98
|
+
* ['#6'] → [6]
|
|
99
|
+
* ['#6', '#7'] → [6, 7]
|
|
100
|
+
* ['Fix bug'] → []
|
|
101
|
+
* ['#6', 'and', '#7'] → [] (mixed, not all are issue refs)
|
|
102
|
+
*/
|
|
103
|
+
export function parseIssueNumbers(args) {
|
|
104
|
+
if (args.length === 0)
|
|
105
|
+
return [];
|
|
106
|
+
const numbers = [];
|
|
107
|
+
for (const arg of args) {
|
|
108
|
+
const match = arg.match(ISSUE_NUMBER_REGEX);
|
|
109
|
+
if (!match?.[1])
|
|
110
|
+
return []; // Not all args are issue refs
|
|
111
|
+
numbers.push(Number.parseInt(match[1], 10));
|
|
112
|
+
}
|
|
113
|
+
return numbers;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Check if a single task string is an issue reference (`#N`).
|
|
117
|
+
*/
|
|
118
|
+
export function isIssueReference(task) {
|
|
119
|
+
return ISSUE_NUMBER_REGEX.test(task.trim());
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Resolve issue references in a task string.
|
|
123
|
+
* If task contains `#N` patterns (space-separated), fetches issues and returns formatted text.
|
|
124
|
+
* Otherwise returns the task string as-is.
|
|
125
|
+
*
|
|
126
|
+
* Checks gh CLI availability before fetching.
|
|
127
|
+
* Throws if gh CLI is not available or issue fetch fails.
|
|
128
|
+
*/
|
|
129
|
+
export function resolveIssueTask(task) {
|
|
130
|
+
const tokens = task.trim().split(/\s+/);
|
|
131
|
+
const issueNumbers = parseIssueNumbers(tokens);
|
|
132
|
+
if (issueNumbers.length === 0) {
|
|
133
|
+
return task;
|
|
134
|
+
}
|
|
135
|
+
const ghStatus = checkGhCli();
|
|
136
|
+
if (!ghStatus.available) {
|
|
137
|
+
throw new Error(ghStatus.error ?? 'gh CLI is not available');
|
|
138
|
+
}
|
|
139
|
+
log.info('Resolving issue references', { issueNumbers });
|
|
140
|
+
const issues = issueNumbers.map((n) => fetchIssue(n));
|
|
141
|
+
return issues.map(formatIssueAsTask).join('\n\n---\n\n');
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=issue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issue.js","sourceRoot":"","sources":["../../src/github/issue.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,GAAG,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;AAEnC,mDAAmD;AACnD,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAetC;;GAEG;AACH,MAAM,UAAU,UAAU;IACxB,IAAI,CAAC;QACH,QAAQ,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;QAC9C,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IAC7B,CAAC;IAAC,MAAM,CAAC;QACP,IAAI,CAAC;YACH,QAAQ,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;YAC5C,OAAO;gBACL,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,uEAAuE;aAC/E,CAAC;QACJ,CAAC;QAAC,MAAM,CAAC;YACP,OAAO;gBACL,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,kEAAkE;aAC1E,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,WAAmB;IAC5C,GAAG,CAAC,KAAK,CAAC,gBAAgB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,UAAU,gBAAgB,CAAC,IAAY;IAC3C,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxC,MAAM,YAAY,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAE/C,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,QAAQ,GAAG,UAAU,EAAE,CAAC;IAC9B,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,yBAAyB,CAAC,CAAC;IAC/D,CAAC;IAED,GAAG,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,YAAY,EAAE,CAAC,CAAC;IAEzD,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,OAAO,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAC3D,CAAC"}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { AgentType, Status,
|
|
1
|
+
export type { AgentType, Status, RuleMatchMethod, ReportConfig, ReportObjectConfig, AgentResponse, SessionState, WorkflowStep, WorkflowConfig, WorkflowState, CustomAgentConfig, GlobalConfig, ProjectConfig, } from './types.js';
|
|
2
2
|
export * from './agent.js';
|
|
3
3
|
export { WorkflowStepSchema, WorkflowConfigSchema, type WorkflowDefinition, type WorkflowContext, type StepResult, } from './workflow.js';
|
|
4
4
|
export * from './config.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,SAAS,EACT,MAAM,EACN,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,SAAS,EACT,MAAM,EACN,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,aAAa,GACd,MAAM,YAAY,CAAC;AAGpB,cAAc,YAAY,CAAC;AAG3B,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,UAAU,GAChB,MAAM,eAAe,CAAC;AAGvB,cAAc,aAAa,CAAC;AAG5B,cAAc,cAAc,CAAC;AAG7B,OAAO,EACL,kBAAkB,EAClB,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,wBAAwB,GACzB,MAAM,cAAc,CAAC"}
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAiBA,0BAA0B;AAC1B,cAAc,YAAY,CAAC;AAE3B,2DAA2D;AAC3D,OAAO,EACL,kBAAkB,EAClB,oBAAoB,GAIrB,MAAM,eAAe,CAAC;AAEvB,2BAA2B;AAC3B,cAAc,aAAa,CAAC;AAE5B,4BAA4B;AAC5B,cAAc,cAAc,CAAC;AAE7B,wDAAwD;AACxD,OAAO,EACL,kBAAkB,EAElB,yBAAyB,EAEzB,wBAAwB,GACzB,MAAM,cAAc,CAAC"}
|
package/dist/models/schemas.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export declare const AgentTypeSchema: z.ZodEnum<{
|
|
|
14
14
|
/** Status schema */
|
|
15
15
|
export declare const StatusSchema: z.ZodEnum<{
|
|
16
16
|
pending: "pending";
|
|
17
|
-
in_progress: "in_progress";
|
|
18
17
|
done: "done";
|
|
19
18
|
blocked: "blocked";
|
|
20
19
|
approved: "approved";
|
|
@@ -24,55 +23,59 @@ export declare const StatusSchema: z.ZodEnum<{
|
|
|
24
23
|
interrupted: "interrupted";
|
|
25
24
|
answer: "answer";
|
|
26
25
|
}>;
|
|
27
|
-
/**
|
|
28
|
-
* Transition condition schema
|
|
29
|
-
*
|
|
30
|
-
* WARNING: Do NOT add new values carelessly.
|
|
31
|
-
* Use existing values creatively in workflow design:
|
|
32
|
-
* - done: Task completed (minor fixes, successful completion)
|
|
33
|
-
* - blocked: Cannot proceed (needs plan rework)
|
|
34
|
-
* - approved: Review passed
|
|
35
|
-
* - rejected: Review failed, needs major rework
|
|
36
|
-
* - improve: Needs improvement (security concerns, quality issues)
|
|
37
|
-
* - answer: Question answered (complete workflow as success)
|
|
38
|
-
* - always: Unconditional transition
|
|
39
|
-
*/
|
|
40
|
-
export declare const TransitionConditionSchema: z.ZodEnum<{
|
|
41
|
-
done: "done";
|
|
42
|
-
blocked: "blocked";
|
|
43
|
-
approved: "approved";
|
|
44
|
-
rejected: "rejected";
|
|
45
|
-
improve: "improve";
|
|
46
|
-
answer: "answer";
|
|
47
|
-
always: "always";
|
|
48
|
-
}>;
|
|
49
|
-
/** On no status behavior schema */
|
|
50
|
-
export declare const OnNoStatusBehaviorSchema: z.ZodEnum<{
|
|
51
|
-
complete: "complete";
|
|
52
|
-
continue: "continue";
|
|
53
|
-
stay: "stay";
|
|
54
|
-
}>;
|
|
55
|
-
/** Workflow transition schema */
|
|
56
|
-
export declare const WorkflowTransitionSchema: z.ZodObject<{
|
|
57
|
-
condition: z.ZodEnum<{
|
|
58
|
-
done: "done";
|
|
59
|
-
blocked: "blocked";
|
|
60
|
-
approved: "approved";
|
|
61
|
-
rejected: "rejected";
|
|
62
|
-
improve: "improve";
|
|
63
|
-
answer: "answer";
|
|
64
|
-
always: "always";
|
|
65
|
-
}>;
|
|
66
|
-
nextStep: z.ZodString;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
26
|
/** Permission mode schema for tool execution */
|
|
69
27
|
export declare const PermissionModeSchema: z.ZodEnum<{
|
|
70
28
|
default: "default";
|
|
71
29
|
acceptEdits: "acceptEdits";
|
|
72
30
|
bypassPermissions: "bypassPermissions";
|
|
73
31
|
}>;
|
|
74
|
-
/**
|
|
75
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Report object schema (new structured format).
|
|
34
|
+
*
|
|
35
|
+
* YAML format:
|
|
36
|
+
* report:
|
|
37
|
+
* name: 00-plan.md
|
|
38
|
+
* order: |
|
|
39
|
+
* **レポート出力:** {report:00-plan.md} に出力してください。
|
|
40
|
+
* format: |
|
|
41
|
+
* **レポートフォーマット:**
|
|
42
|
+
* ```markdown
|
|
43
|
+
* ...
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare const ReportObjectSchema: z.ZodObject<{
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
order: z.ZodOptional<z.ZodString>;
|
|
49
|
+
format: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
/**
|
|
52
|
+
* Report field schema.
|
|
53
|
+
*
|
|
54
|
+
* YAML formats:
|
|
55
|
+
* report: 00-plan.md # single file (string)
|
|
56
|
+
* report: # multiple files (label: path map entries)
|
|
57
|
+
* - Scope: 01-scope.md
|
|
58
|
+
* - Decisions: 02-decisions.md
|
|
59
|
+
* report: # object form (name + order + format)
|
|
60
|
+
* name: 00-plan.md
|
|
61
|
+
* order: ...
|
|
62
|
+
* format: ...
|
|
63
|
+
*
|
|
64
|
+
* Array items are parsed as single-key objects: [{Scope: "01-scope.md"}, ...]
|
|
65
|
+
*/
|
|
66
|
+
export declare const ReportFieldSchema: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodObject<{
|
|
67
|
+
name: z.ZodString;
|
|
68
|
+
order: z.ZodOptional<z.ZodString>;
|
|
69
|
+
format: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>]>;
|
|
71
|
+
/** Rule-based transition schema (new unified format) */
|
|
72
|
+
export declare const WorkflowRuleSchema: z.ZodObject<{
|
|
73
|
+
condition: z.ZodString;
|
|
74
|
+
next: z.ZodOptional<z.ZodString>;
|
|
75
|
+
appendix: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
/** Sub-step schema for parallel execution (agent is required) */
|
|
78
|
+
export declare const ParallelSubStepRawSchema: z.ZodObject<{
|
|
76
79
|
name: z.ZodString;
|
|
77
80
|
agent: z.ZodString;
|
|
78
81
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -88,27 +91,83 @@ export declare const WorkflowStepRawSchema: z.ZodObject<{
|
|
|
88
91
|
acceptEdits: "acceptEdits";
|
|
89
92
|
bypassPermissions: "bypassPermissions";
|
|
90
93
|
}>>;
|
|
94
|
+
edit: z.ZodOptional<z.ZodBoolean>;
|
|
91
95
|
instruction: z.ZodOptional<z.ZodString>;
|
|
92
96
|
instruction_template: z.ZodOptional<z.ZodString>;
|
|
93
|
-
|
|
97
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
98
|
+
condition: z.ZodString;
|
|
99
|
+
next: z.ZodOptional<z.ZodString>;
|
|
100
|
+
appendix: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>>>;
|
|
102
|
+
report: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodObject<{
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
order: z.ZodOptional<z.ZodString>;
|
|
105
|
+
format: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>]>>;
|
|
94
107
|
pass_previous_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
/** Workflow step schema - raw YAML format */
|
|
110
|
+
export declare const WorkflowStepRawSchema: z.ZodObject<{
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
113
|
+
agent_name: z.ZodOptional<z.ZodString>;
|
|
114
|
+
allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
115
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
116
|
+
claude: "claude";
|
|
117
|
+
codex: "codex";
|
|
118
|
+
mock: "mock";
|
|
99
119
|
}>>;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
model: z.ZodOptional<z.ZodString>;
|
|
121
|
+
permission_mode: z.ZodOptional<z.ZodEnum<{
|
|
122
|
+
default: "default";
|
|
123
|
+
acceptEdits: "acceptEdits";
|
|
124
|
+
bypassPermissions: "bypassPermissions";
|
|
125
|
+
}>>;
|
|
126
|
+
edit: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
128
|
+
instruction_template: z.ZodOptional<z.ZodString>;
|
|
129
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
130
|
+
condition: z.ZodString;
|
|
131
|
+
next: z.ZodOptional<z.ZodString>;
|
|
132
|
+
appendix: z.ZodOptional<z.ZodString>;
|
|
133
|
+
}, z.core.$strip>>>;
|
|
134
|
+
report: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodObject<{
|
|
135
|
+
name: z.ZodString;
|
|
136
|
+
order: z.ZodOptional<z.ZodString>;
|
|
137
|
+
format: z.ZodOptional<z.ZodString>;
|
|
138
|
+
}, z.core.$strip>]>>;
|
|
139
|
+
pass_previous_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
140
|
+
parallel: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
agent: z.ZodString;
|
|
143
|
+
agent_name: z.ZodOptional<z.ZodString>;
|
|
144
|
+
allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
146
|
+
claude: "claude";
|
|
147
|
+
codex: "codex";
|
|
148
|
+
mock: "mock";
|
|
149
|
+
}>>;
|
|
150
|
+
model: z.ZodOptional<z.ZodString>;
|
|
151
|
+
permission_mode: z.ZodOptional<z.ZodEnum<{
|
|
152
|
+
default: "default";
|
|
153
|
+
acceptEdits: "acceptEdits";
|
|
154
|
+
bypassPermissions: "bypassPermissions";
|
|
155
|
+
}>>;
|
|
156
|
+
edit: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
158
|
+
instruction_template: z.ZodOptional<z.ZodString>;
|
|
159
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
160
|
+
condition: z.ZodString;
|
|
161
|
+
next: z.ZodOptional<z.ZodString>;
|
|
162
|
+
appendix: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, z.core.$strip>>>;
|
|
164
|
+
report: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodObject<{
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
order: z.ZodOptional<z.ZodString>;
|
|
167
|
+
format: z.ZodOptional<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>]>>;
|
|
169
|
+
pass_previous_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
170
|
+
}, z.core.$strip>>>;
|
|
112
171
|
}, z.core.$strip>;
|
|
113
172
|
/** Workflow configuration schema - raw YAML format */
|
|
114
173
|
export declare const WorkflowConfigRawSchema: z.ZodObject<{
|
|
@@ -116,7 +175,7 @@ export declare const WorkflowConfigRawSchema: z.ZodObject<{
|
|
|
116
175
|
description: z.ZodOptional<z.ZodString>;
|
|
117
176
|
steps: z.ZodArray<z.ZodObject<{
|
|
118
177
|
name: z.ZodString;
|
|
119
|
-
agent: z.ZodString
|
|
178
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
120
179
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
121
180
|
allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
122
181
|
provider: z.ZodOptional<z.ZodEnum<{
|
|
@@ -130,27 +189,51 @@ export declare const WorkflowConfigRawSchema: z.ZodObject<{
|
|
|
130
189
|
acceptEdits: "acceptEdits";
|
|
131
190
|
bypassPermissions: "bypassPermissions";
|
|
132
191
|
}>>;
|
|
192
|
+
edit: z.ZodOptional<z.ZodBoolean>;
|
|
133
193
|
instruction: z.ZodOptional<z.ZodString>;
|
|
134
194
|
instruction_template: z.ZodOptional<z.ZodString>;
|
|
135
|
-
|
|
195
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
196
|
+
condition: z.ZodString;
|
|
197
|
+
next: z.ZodOptional<z.ZodString>;
|
|
198
|
+
appendix: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strip>>>;
|
|
200
|
+
report: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodObject<{
|
|
201
|
+
name: z.ZodString;
|
|
202
|
+
order: z.ZodOptional<z.ZodString>;
|
|
203
|
+
format: z.ZodOptional<z.ZodString>;
|
|
204
|
+
}, z.core.$strip>]>>;
|
|
136
205
|
pass_previous_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
206
|
+
parallel: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
207
|
+
name: z.ZodString;
|
|
208
|
+
agent: z.ZodString;
|
|
209
|
+
agent_name: z.ZodOptional<z.ZodString>;
|
|
210
|
+
allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
211
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
212
|
+
claude: "claude";
|
|
213
|
+
codex: "codex";
|
|
214
|
+
mock: "mock";
|
|
215
|
+
}>>;
|
|
216
|
+
model: z.ZodOptional<z.ZodString>;
|
|
217
|
+
permission_mode: z.ZodOptional<z.ZodEnum<{
|
|
218
|
+
default: "default";
|
|
219
|
+
acceptEdits: "acceptEdits";
|
|
220
|
+
bypassPermissions: "bypassPermissions";
|
|
221
|
+
}>>;
|
|
222
|
+
edit: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
224
|
+
instruction_template: z.ZodOptional<z.ZodString>;
|
|
225
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
226
|
+
condition: z.ZodString;
|
|
227
|
+
next: z.ZodOptional<z.ZodString>;
|
|
228
|
+
appendix: z.ZodOptional<z.ZodString>;
|
|
229
|
+
}, z.core.$strip>>>;
|
|
230
|
+
report: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodObject<{
|
|
231
|
+
name: z.ZodString;
|
|
232
|
+
order: z.ZodOptional<z.ZodString>;
|
|
233
|
+
format: z.ZodOptional<z.ZodString>;
|
|
234
|
+
}, z.core.$strip>]>>;
|
|
235
|
+
pass_previous_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
236
|
+
}, z.core.$strip>>>;
|
|
154
237
|
}, z.core.$strip>>;
|
|
155
238
|
initial_step: z.ZodOptional<z.ZodString>;
|
|
156
239
|
max_iterations: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -162,7 +245,6 @@ export declare const CustomAgentConfigSchema: z.ZodObject<{
|
|
|
162
245
|
prompt_file: z.ZodOptional<z.ZodString>;
|
|
163
246
|
prompt: z.ZodOptional<z.ZodString>;
|
|
164
247
|
allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
165
|
-
status_patterns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
166
248
|
claude_agent: z.ZodOptional<z.ZodString>;
|
|
167
249
|
claude_skill: z.ZodOptional<z.ZodString>;
|
|
168
250
|
provider: z.ZodOptional<z.ZodEnum<{
|
|
@@ -207,6 +289,7 @@ export declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
207
289
|
log_file: z.ZodOptional<z.ZodString>;
|
|
208
290
|
}, z.core.$strip>>;
|
|
209
291
|
worktree_dir: z.ZodOptional<z.ZodString>;
|
|
292
|
+
disabled_builtins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
210
293
|
}, z.core.$strip>;
|
|
211
294
|
/** Project config schema */
|
|
212
295
|
export declare const ProjectConfigSchema: z.ZodObject<{
|
|
@@ -216,7 +299,6 @@ export declare const ProjectConfigSchema: z.ZodObject<{
|
|
|
216
299
|
prompt_file: z.ZodOptional<z.ZodString>;
|
|
217
300
|
prompt: z.ZodOptional<z.ZodString>;
|
|
218
301
|
allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
219
|
-
status_patterns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
220
302
|
claude_agent: z.ZodOptional<z.ZodString>;
|
|
221
303
|
claude_skill: z.ZodOptional<z.ZodString>;
|
|
222
304
|
provider: z.ZodOptional<z.ZodEnum<{
|
|
@@ -232,12 +314,4 @@ export declare const ProjectConfigSchema: z.ZodObject<{
|
|
|
232
314
|
mock: "mock";
|
|
233
315
|
}>>;
|
|
234
316
|
}, z.core.$strip>;
|
|
235
|
-
/**
|
|
236
|
-
* Generic status patterns that match any role name
|
|
237
|
-
* Format: [ROLE:COMMAND] where ROLE is any word characters
|
|
238
|
-
*
|
|
239
|
-
* This allows new agents to be added without modifying this file.
|
|
240
|
-
* Custom agents can override these patterns in their configuration.
|
|
241
|
-
*/
|
|
242
|
-
export declare const GENERIC_STATUS_PATTERNS: Record<string, string>;
|
|
243
317
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/models/schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,wBAAwB;AACxB,eAAO,MAAM,eAAe;;;;;EAAyD,CAAC;AAEtF,oBAAoB;AACpB,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/models/schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,wBAAwB;AACxB,eAAO,MAAM,eAAe;;;;;EAAyD,CAAC;AAEtF,oBAAoB;AACpB,eAAO,MAAM,YAAY;;;;;;;;;;EAUvB,CAAC;AAEH,gDAAgD;AAChD,eAAO,MAAM,oBAAoB;;;;EAA0D,CAAC;AAE5F;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB;;;;iBAO7B,CAAC;AAEH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB;;;;mBAI5B,CAAC;AAEH,wDAAwD;AACxD,eAAO,MAAM,kBAAkB;;;;iBAO7B,CAAC;AAEH,iEAAiE;AACjE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcnC,CAAC;AAEH,6C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