@output.ai/cli 0.3.1-dev.pr156.0 → 0.4.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 +2 -28
- package/dist/api/generated/api.d.ts +35 -59
- package/dist/api/generated/api.js +4 -13
- package/dist/assets/docker/docker-compose-dev.yml +2 -2
- package/dist/commands/workflow/debug.d.ts +2 -8
- package/dist/commands/workflow/debug.js +24 -164
- package/dist/commands/workflow/debug.spec.js +36 -0
- package/dist/commands/workflow/generate.js +3 -10
- package/dist/commands/workflow/generate.spec.js +6 -4
- package/dist/commands/workflow/{output.d.ts → result.d.ts} +1 -1
- package/dist/commands/workflow/{output.js → result.js} +8 -8
- package/dist/commands/workflow/result.test.js +23 -0
- package/dist/commands/workflow/start.js +1 -1
- package/dist/services/coding_agents.js +30 -0
- package/dist/services/coding_agents.spec.js +36 -61
- package/dist/services/messages.d.ts +1 -0
- package/dist/services/messages.js +65 -1
- package/dist/services/trace_reader.d.ts +14 -0
- package/dist/services/trace_reader.js +67 -0
- package/dist/services/trace_reader.spec.d.ts +1 -0
- package/dist/services/trace_reader.spec.js +164 -0
- package/dist/services/workflow_generator.spec.d.ts +1 -0
- package/dist/services/workflow_generator.spec.js +77 -0
- package/dist/templates/agent_instructions/AGENTS.md.template +209 -19
- package/dist/templates/agent_instructions/agents/context_fetcher.md.template +82 -0
- package/dist/templates/agent_instructions/agents/prompt_writer.md.template +595 -0
- package/dist/templates/agent_instructions/agents/workflow_planner.md.template +13 -4
- package/dist/templates/agent_instructions/agents/workflow_quality.md.template +244 -0
- package/dist/templates/agent_instructions/commands/build_workflow.md.template +52 -9
- package/dist/templates/agent_instructions/commands/plan_workflow.md.template +4 -4
- package/dist/templates/project/package.json.template +2 -2
- package/dist/templates/project/src/simple/scenarios/question_ada_lovelace.json.template +3 -0
- package/dist/templates/workflow/scenarios/test_input.json.template +7 -0
- package/dist/types/trace.d.ts +161 -0
- package/dist/types/trace.js +18 -0
- package/dist/utils/date_formatter.d.ts +8 -0
- package/dist/utils/date_formatter.js +19 -0
- package/dist/utils/template.spec.js +6 -0
- package/dist/utils/trace_formatter.d.ts +11 -61
- package/dist/utils/trace_formatter.js +384 -239
- package/package.json +2 -2
- package/dist/commands/workflow/debug.test.js +0 -107
- package/dist/commands/workflow/output.test.js +0 -23
- package/dist/utils/s3_downloader.d.ts +0 -49
- package/dist/utils/s3_downloader.js +0 -154
- /package/dist/commands/workflow/{debug.test.d.ts → debug.spec.d.ts} +0 -0
- /package/dist/commands/workflow/{output.test.d.ts → result.test.d.ts} +0 -0
- /package/dist/templates/workflow/{prompt@v1.prompt.template → prompts/prompt@v1.prompt.template} +0 -0
|
@@ -1,61 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
private formatHeader;
|
|
14
|
-
/**
|
|
15
|
-
* Format events as a timeline table
|
|
16
|
-
*/
|
|
17
|
-
private formatEventsTable;
|
|
18
|
-
/**
|
|
19
|
-
* Format trace as a tree structure
|
|
20
|
-
*/
|
|
21
|
-
private formatTree;
|
|
22
|
-
/**
|
|
23
|
-
* Get a readable name for an event
|
|
24
|
-
*/
|
|
25
|
-
private getEventName;
|
|
26
|
-
/**
|
|
27
|
-
* Format the phase with icons
|
|
28
|
-
*/
|
|
29
|
-
private formatPhase;
|
|
30
|
-
/**
|
|
31
|
-
* Format duration in human-readable format
|
|
32
|
-
*/
|
|
33
|
-
private formatDuration;
|
|
34
|
-
/**
|
|
35
|
-
* Format error for display
|
|
36
|
-
*/
|
|
37
|
-
private formatError;
|
|
38
|
-
/**
|
|
39
|
-
* Format details for table display
|
|
40
|
-
*/
|
|
41
|
-
private formatDetails;
|
|
42
|
-
/**
|
|
43
|
-
* Format details for tree display
|
|
44
|
-
*/
|
|
45
|
-
private formatTreeDetails;
|
|
46
|
-
/**
|
|
47
|
-
* Truncate long values for display
|
|
48
|
-
*/
|
|
49
|
-
private truncateValue;
|
|
50
|
-
/**
|
|
51
|
-
* Get summary statistics from trace
|
|
52
|
-
*/
|
|
53
|
-
getSummary(traceData: string | object): {
|
|
54
|
-
totalDuration: number;
|
|
55
|
-
totalEvents: number;
|
|
56
|
-
totalSteps: number;
|
|
57
|
-
totalActivities: number;
|
|
58
|
-
hasErrors: boolean;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export declare const traceFormatter: TraceFormatter;
|
|
1
|
+
import { formatDuration } from '#utils/date_formatter.js';
|
|
2
|
+
export { formatDuration };
|
|
3
|
+
export declare function format(traceData: string | object, outputFormat?: 'json' | 'text'): string;
|
|
4
|
+
export declare function getSummary(traceData: string | object): {
|
|
5
|
+
totalDuration: number;
|
|
6
|
+
totalEvents: number;
|
|
7
|
+
totalSteps: number;
|
|
8
|
+
totalActivities: number;
|
|
9
|
+
hasErrors: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function displayDebugTree(node: unknown): string;
|