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
package/dist/utils/session.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Session management utilities
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { StreamEvent } from '../claude/types.js';
|
|
5
5
|
/** Session log entry */
|
|
6
6
|
export interface SessionLog {
|
|
7
7
|
task: string;
|
|
@@ -14,12 +14,82 @@ export interface SessionLog {
|
|
|
14
14
|
history: Array<{
|
|
15
15
|
step: string;
|
|
16
16
|
agent: string;
|
|
17
|
+
instruction: string;
|
|
17
18
|
status: string;
|
|
18
19
|
timestamp: string;
|
|
19
20
|
content: string;
|
|
20
21
|
error?: string;
|
|
22
|
+
/** Matched rule index (0-based) when rules-based detection was used */
|
|
23
|
+
matchedRuleIndex?: number;
|
|
24
|
+
/** How the rule match was detected */
|
|
25
|
+
matchedRuleMethod?: string;
|
|
21
26
|
}>;
|
|
22
27
|
}
|
|
28
|
+
/** NDJSON record: workflow started */
|
|
29
|
+
export interface NdjsonWorkflowStart {
|
|
30
|
+
type: 'workflow_start';
|
|
31
|
+
task: string;
|
|
32
|
+
workflowName: string;
|
|
33
|
+
startTime: string;
|
|
34
|
+
}
|
|
35
|
+
/** NDJSON record: step started */
|
|
36
|
+
export interface NdjsonStepStart {
|
|
37
|
+
type: 'step_start';
|
|
38
|
+
step: string;
|
|
39
|
+
agent: string;
|
|
40
|
+
iteration: number;
|
|
41
|
+
timestamp: string;
|
|
42
|
+
}
|
|
43
|
+
/** NDJSON record: streaming chunk received */
|
|
44
|
+
export interface NdjsonStream {
|
|
45
|
+
type: 'stream';
|
|
46
|
+
step: string;
|
|
47
|
+
event: StreamEvent;
|
|
48
|
+
timestamp: string;
|
|
49
|
+
}
|
|
50
|
+
/** NDJSON record: step completed */
|
|
51
|
+
export interface NdjsonStepComplete {
|
|
52
|
+
type: 'step_complete';
|
|
53
|
+
step: string;
|
|
54
|
+
agent: string;
|
|
55
|
+
status: string;
|
|
56
|
+
content: string;
|
|
57
|
+
instruction: string;
|
|
58
|
+
matchedRuleIndex?: number;
|
|
59
|
+
matchedRuleMethod?: string;
|
|
60
|
+
error?: string;
|
|
61
|
+
timestamp: string;
|
|
62
|
+
}
|
|
63
|
+
/** NDJSON record: workflow completed successfully */
|
|
64
|
+
export interface NdjsonWorkflowComplete {
|
|
65
|
+
type: 'workflow_complete';
|
|
66
|
+
iterations: number;
|
|
67
|
+
endTime: string;
|
|
68
|
+
}
|
|
69
|
+
/** NDJSON record: workflow aborted */
|
|
70
|
+
export interface NdjsonWorkflowAbort {
|
|
71
|
+
type: 'workflow_abort';
|
|
72
|
+
iterations: number;
|
|
73
|
+
reason: string;
|
|
74
|
+
endTime: string;
|
|
75
|
+
}
|
|
76
|
+
/** Union of all NDJSON record types */
|
|
77
|
+
export type NdjsonRecord = NdjsonWorkflowStart | NdjsonStepStart | NdjsonStream | NdjsonStepComplete | NdjsonWorkflowComplete | NdjsonWorkflowAbort;
|
|
78
|
+
/**
|
|
79
|
+
* Append a single NDJSON line to a log file.
|
|
80
|
+
* Uses appendFileSync for atomic open→write→close (no file lock held).
|
|
81
|
+
*/
|
|
82
|
+
export declare function appendNdjsonLine(filepath: string, record: NdjsonRecord): void;
|
|
83
|
+
/**
|
|
84
|
+
* Initialize an NDJSON log file with the workflow_start record.
|
|
85
|
+
* Creates the logs directory if needed and returns the file path.
|
|
86
|
+
*/
|
|
87
|
+
export declare function initNdjsonLog(sessionId: string, task: string, workflowName: string, projectDir?: string): string;
|
|
88
|
+
/**
|
|
89
|
+
* Load an NDJSON log file and convert it to a SessionLog for backward compatibility.
|
|
90
|
+
* Parses each line as a JSON record and reconstructs the SessionLog structure.
|
|
91
|
+
*/
|
|
92
|
+
export declare function loadNdjsonLog(filepath: string): SessionLog | null;
|
|
23
93
|
/** Generate a session ID */
|
|
24
94
|
export declare function generateSessionId(): string;
|
|
25
95
|
/**
|
|
@@ -29,13 +99,9 @@ export declare function generateSessionId(): string;
|
|
|
29
99
|
export declare function generateReportDir(task: string): string;
|
|
30
100
|
/** Create a new session log */
|
|
31
101
|
export declare function createSessionLog(task: string, projectDir: string, workflowName: string): SessionLog;
|
|
32
|
-
/**
|
|
33
|
-
export declare function
|
|
34
|
-
/**
|
|
35
|
-
export declare function finalizeSessionLog(log: SessionLog, status: 'completed' | 'aborted'): void;
|
|
36
|
-
/** Save session log to file */
|
|
37
|
-
export declare function saveSessionLog(log: SessionLog, sessionId: string, projectDir?: string): string;
|
|
38
|
-
/** Load session log from file */
|
|
102
|
+
/** Create a finalized copy of a session log (immutable — does not modify the original) */
|
|
103
|
+
export declare function finalizeSessionLog(log: SessionLog, status: 'completed' | 'aborted'): SessionLog;
|
|
104
|
+
/** Load session log from file (supports both .json and .jsonl formats) */
|
|
39
105
|
export declare function loadSessionLog(filepath: string): SessionLog | null;
|
|
40
106
|
/** Load project context (CLAUDE.md files) */
|
|
41
107
|
export declare function loadProjectContext(projectDir: string): string;
|
|
@@ -58,6 +124,4 @@ export interface LatestLogPointer {
|
|
|
58
124
|
export declare function updateLatestPointer(log: SessionLog, sessionId: string, projectDir?: string, options?: {
|
|
59
125
|
copyToPrevious?: boolean;
|
|
60
126
|
}): void;
|
|
61
|
-
/** Convert workflow state to session log */
|
|
62
|
-
export declare function workflowStateToSessionLog(state: WorkflowState, task: string, projectDir: string): SessionLog;
|
|
63
127
|
//# sourceMappingURL=session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/utils/session.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/utils/session.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,wBAAwB;AACxB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACr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FAA0F;AAC1F,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,UAAU,EACf,MAAM,EAAE,WAAW,GAAG,SAAS,GAC9B,UAAU,CAMZ;AAED,0EAA0E;AAC1E,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAWlE;AAED,6CAA6C;AAC7C,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAgB7D;AAED,qDAAqD;AACrD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,GACrC,IAAI,CA0BN"}
|
package/dist/utils/session.js
CHANGED
|
@@ -1,9 +1,97 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Session management utilities
|
|
3
3
|
*/
|
|
4
|
-
import { existsSync, readFileSync, copyFileSync } from 'node:fs';
|
|
4
|
+
import { existsSync, readFileSync, copyFileSync, appendFileSync } from 'node:fs';
|
|
5
5
|
import { join } from 'node:path';
|
|
6
6
|
import { getProjectLogsDir, getGlobalLogsDir, ensureDir, writeFileAtomic } from '../config/paths.js';
|
|
7
|
+
/**
|
|
8
|
+
* Append a single NDJSON line to a log file.
|
|
9
|
+
* Uses appendFileSync for atomic open→write→close (no file lock held).
|
|
10
|
+
*/
|
|
11
|
+
export function appendNdjsonLine(filepath, record) {
|
|
12
|
+
appendFileSync(filepath, JSON.stringify(record) + '\n', 'utf-8');
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Initialize an NDJSON log file with the workflow_start record.
|
|
16
|
+
* Creates the logs directory if needed and returns the file path.
|
|
17
|
+
*/
|
|
18
|
+
export function initNdjsonLog(sessionId, task, workflowName, projectDir) {
|
|
19
|
+
const logsDir = projectDir
|
|
20
|
+
? getProjectLogsDir(projectDir)
|
|
21
|
+
: getGlobalLogsDir();
|
|
22
|
+
ensureDir(logsDir);
|
|
23
|
+
const filepath = join(logsDir, `${sessionId}.jsonl`);
|
|
24
|
+
const record = {
|
|
25
|
+
type: 'workflow_start',
|
|
26
|
+
task,
|
|
27
|
+
workflowName,
|
|
28
|
+
startTime: new Date().toISOString(),
|
|
29
|
+
};
|
|
30
|
+
appendNdjsonLine(filepath, record);
|
|
31
|
+
return filepath;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Load an NDJSON log file and convert it to a SessionLog for backward compatibility.
|
|
35
|
+
* Parses each line as a JSON record and reconstructs the SessionLog structure.
|
|
36
|
+
*/
|
|
37
|
+
export function loadNdjsonLog(filepath) {
|
|
38
|
+
if (!existsSync(filepath)) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
const content = readFileSync(filepath, 'utf-8');
|
|
42
|
+
const lines = content.trim().split('\n').filter((line) => line.length > 0);
|
|
43
|
+
if (lines.length === 0)
|
|
44
|
+
return null;
|
|
45
|
+
let sessionLog = null;
|
|
46
|
+
for (const line of lines) {
|
|
47
|
+
const record = JSON.parse(line);
|
|
48
|
+
switch (record.type) {
|
|
49
|
+
case 'workflow_start':
|
|
50
|
+
sessionLog = {
|
|
51
|
+
task: record.task,
|
|
52
|
+
projectDir: '',
|
|
53
|
+
workflowName: record.workflowName,
|
|
54
|
+
iterations: 0,
|
|
55
|
+
startTime: record.startTime,
|
|
56
|
+
status: 'running',
|
|
57
|
+
history: [],
|
|
58
|
+
};
|
|
59
|
+
break;
|
|
60
|
+
case 'step_complete':
|
|
61
|
+
if (sessionLog) {
|
|
62
|
+
sessionLog.history.push({
|
|
63
|
+
step: record.step,
|
|
64
|
+
agent: record.agent,
|
|
65
|
+
instruction: record.instruction,
|
|
66
|
+
status: record.status,
|
|
67
|
+
timestamp: record.timestamp,
|
|
68
|
+
content: record.content,
|
|
69
|
+
...(record.error ? { error: record.error } : {}),
|
|
70
|
+
...(record.matchedRuleIndex != null ? { matchedRuleIndex: record.matchedRuleIndex } : {}),
|
|
71
|
+
...(record.matchedRuleMethod ? { matchedRuleMethod: record.matchedRuleMethod } : {}),
|
|
72
|
+
});
|
|
73
|
+
sessionLog.iterations++;
|
|
74
|
+
}
|
|
75
|
+
break;
|
|
76
|
+
case 'workflow_complete':
|
|
77
|
+
if (sessionLog) {
|
|
78
|
+
sessionLog.status = 'completed';
|
|
79
|
+
sessionLog.endTime = record.endTime;
|
|
80
|
+
}
|
|
81
|
+
break;
|
|
82
|
+
case 'workflow_abort':
|
|
83
|
+
if (sessionLog) {
|
|
84
|
+
sessionLog.status = 'aborted';
|
|
85
|
+
sessionLog.endTime = record.endTime;
|
|
86
|
+
}
|
|
87
|
+
break;
|
|
88
|
+
// stream and step_start records are not stored in SessionLog
|
|
89
|
+
default:
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return sessionLog;
|
|
94
|
+
}
|
|
7
95
|
/** Generate a session ID */
|
|
8
96
|
export function generateSessionId() {
|
|
9
97
|
const timestamp = Date.now().toString(36);
|
|
@@ -41,36 +129,20 @@ export function createSessionLog(task, projectDir, workflowName) {
|
|
|
41
129
|
history: [],
|
|
42
130
|
};
|
|
43
131
|
}
|
|
44
|
-
/**
|
|
45
|
-
export function addToSessionLog(log, stepName, response) {
|
|
46
|
-
log.history.push({
|
|
47
|
-
step: stepName,
|
|
48
|
-
agent: response.agent,
|
|
49
|
-
status: response.status,
|
|
50
|
-
timestamp: response.timestamp.toISOString(),
|
|
51
|
-
content: response.content,
|
|
52
|
-
...(response.error ? { error: response.error } : {}),
|
|
53
|
-
});
|
|
54
|
-
log.iterations++;
|
|
55
|
-
}
|
|
56
|
-
/** Finalize session log */
|
|
132
|
+
/** Create a finalized copy of a session log (immutable — does not modify the original) */
|
|
57
133
|
export function finalizeSessionLog(log, status) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const logsDir = projectDir
|
|
64
|
-
? getProjectLogsDir(projectDir)
|
|
65
|
-
: getGlobalLogsDir();
|
|
66
|
-
ensureDir(logsDir);
|
|
67
|
-
const filename = `${sessionId}.json`;
|
|
68
|
-
const filepath = join(logsDir, filename);
|
|
69
|
-
writeFileAtomic(filepath, JSON.stringify(log, null, 2));
|
|
70
|
-
return filepath;
|
|
134
|
+
return {
|
|
135
|
+
...log,
|
|
136
|
+
status,
|
|
137
|
+
endTime: new Date().toISOString(),
|
|
138
|
+
};
|
|
71
139
|
}
|
|
72
|
-
/** Load session log from file */
|
|
140
|
+
/** Load session log from file (supports both .json and .jsonl formats) */
|
|
73
141
|
export function loadSessionLog(filepath) {
|
|
142
|
+
// Try NDJSON format for .jsonl files
|
|
143
|
+
if (filepath.endsWith('.jsonl')) {
|
|
144
|
+
return loadNdjsonLog(filepath);
|
|
145
|
+
}
|
|
74
146
|
if (!existsSync(filepath)) {
|
|
75
147
|
return null;
|
|
76
148
|
}
|
|
@@ -110,7 +182,7 @@ export function updateLatestPointer(log, sessionId, projectDir, options) {
|
|
|
110
182
|
}
|
|
111
183
|
const pointer = {
|
|
112
184
|
sessionId,
|
|
113
|
-
logFile: `${sessionId}.
|
|
185
|
+
logFile: `${sessionId}.jsonl`,
|
|
114
186
|
task: log.task,
|
|
115
187
|
workflowName: log.workflowName,
|
|
116
188
|
status: log.status,
|
|
@@ -120,26 +192,4 @@ export function updateLatestPointer(log, sessionId, projectDir, options) {
|
|
|
120
192
|
};
|
|
121
193
|
writeFileAtomic(latestPath, JSON.stringify(pointer, null, 2));
|
|
122
194
|
}
|
|
123
|
-
/** Convert workflow state to session log */
|
|
124
|
-
export function workflowStateToSessionLog(state, task, projectDir) {
|
|
125
|
-
const log = {
|
|
126
|
-
task,
|
|
127
|
-
projectDir,
|
|
128
|
-
workflowName: state.workflowName,
|
|
129
|
-
iterations: state.iteration,
|
|
130
|
-
startTime: new Date().toISOString(),
|
|
131
|
-
status: state.status === 'running' ? 'running' : state.status === 'completed' ? 'completed' : 'aborted',
|
|
132
|
-
history: [],
|
|
133
|
-
};
|
|
134
|
-
for (const [stepName, response] of state.stepOutputs) {
|
|
135
|
-
log.history.push({
|
|
136
|
-
step: stepName,
|
|
137
|
-
agent: response.agent,
|
|
138
|
-
status: response.status,
|
|
139
|
-
timestamp: response.timestamp.toISOString(),
|
|
140
|
-
content: response.content,
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
return log;
|
|
144
|
-
}
|
|
145
195
|
//# sourceMappingURL=session.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/utils/session.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/utils/session.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACjF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AA2FrG;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAAgB,EAAE,MAAoB;IACrE,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,MAA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ction;
|
|
37
37
|
/** Get step by name */
|
|
38
38
|
private getStep;
|
|
39
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Emit step:report events for each report file that exists after step completion.
|
|
41
|
+
* The UI layer (workflowExecution.ts) listens and displays the content.
|
|
42
|
+
*/
|
|
43
|
+
private emitStepReports;
|
|
44
|
+
/** Emit step:report if the report file exists */
|
|
45
|
+
private emitIfReportExists;
|
|
46
|
+
/** Run a single step (delegates to runParallelStep if step has parallel sub-steps) */
|
|
40
47
|
private runStep;
|
|
48
|
+
/** Build common RunAgentOptions shared by all phases */
|
|
49
|
+
private buildBaseOptions;
|
|
50
|
+
/** Build RunAgentOptions from a step's configuration (Phase 1) */
|
|
51
|
+
private buildAgentOptions;
|
|
52
|
+
/**
|
|
53
|
+
* Build RunAgentOptions for session-resume phases (Phase 2, Phase 3).
|
|
54
|
+
*/
|
|
55
|
+
private buildResumeOptions;
|
|
56
|
+
/** Update agent session and notify via callback if session changed */
|
|
57
|
+
private updateAgentSession;
|
|
58
|
+
/** Build phase runner context for Phase 2/3 execution */
|
|
59
|
+
private buildPhaseRunnerContext;
|
|
60
|
+
/** Run a normal (non-parallel) step */
|
|
61
|
+
private runNormalStep;
|
|
62
|
+
/**
|
|
63
|
+
* Run a parallel step: execute all sub-steps concurrently, then aggregate results.
|
|
64
|
+
* The aggregated output becomes the parent step's response for rules evaluation.
|
|
65
|
+
*
|
|
66
|
+
* When onStream is provided, uses ParallelLogger to prefix each sub-step's
|
|
67
|
+
* output with `[name]` for readable interleaved display.
|
|
68
|
+
*/
|
|
69
|
+
private runParallelStep;
|
|
70
|
+
/**
|
|
71
|
+
* Determine next step for a completed step using rules-based routing.
|
|
72
|
+
*/
|
|
73
|
+
private resolveNextStep;
|
|
41
74
|
/** Run the workflow to completion */
|
|
42
75
|
run(): Promise<WorkflowState>;
|
|
43
76
|
/** Run a single iteration (for interactive mode) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/workflow/engine.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EAEb,aAAa,EACd,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/workflow/engine.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EAEb,aAAa,EACd,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAoBxD,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE3D,wDAAwD;AACxD,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,QAAQ,CAAoC;IACpD,OAAO,CAAC,SAAS,CAAS;gBAEd,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B;IAqBlG,yEAAyE;IACzE,OAAO,CAAC,qBAAqB;IAmB7B,2DAA2D;IAC3D,OAAO,CAAC,cAAc;IAuBtB,iCAAiC;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