@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.
Files changed (48) hide show
  1. package/README.md +2 -28
  2. package/dist/api/generated/api.d.ts +35 -59
  3. package/dist/api/generated/api.js +4 -13
  4. package/dist/assets/docker/docker-compose-dev.yml +2 -2
  5. package/dist/commands/workflow/debug.d.ts +2 -8
  6. package/dist/commands/workflow/debug.js +24 -164
  7. package/dist/commands/workflow/debug.spec.js +36 -0
  8. package/dist/commands/workflow/generate.js +3 -10
  9. package/dist/commands/workflow/generate.spec.js +6 -4
  10. package/dist/commands/workflow/{output.d.ts → result.d.ts} +1 -1
  11. package/dist/commands/workflow/{output.js → result.js} +8 -8
  12. package/dist/commands/workflow/result.test.js +23 -0
  13. package/dist/commands/workflow/start.js +1 -1
  14. package/dist/services/coding_agents.js +30 -0
  15. package/dist/services/coding_agents.spec.js +36 -61
  16. package/dist/services/messages.d.ts +1 -0
  17. package/dist/services/messages.js +65 -1
  18. package/dist/services/trace_reader.d.ts +14 -0
  19. package/dist/services/trace_reader.js +67 -0
  20. package/dist/services/trace_reader.spec.d.ts +1 -0
  21. package/dist/services/trace_reader.spec.js +164 -0
  22. package/dist/services/workflow_generator.spec.d.ts +1 -0
  23. package/dist/services/workflow_generator.spec.js +77 -0
  24. package/dist/templates/agent_instructions/AGENTS.md.template +209 -19
  25. package/dist/templates/agent_instructions/agents/context_fetcher.md.template +82 -0
  26. package/dist/templates/agent_instructions/agents/prompt_writer.md.template +595 -0
  27. package/dist/templates/agent_instructions/agents/workflow_planner.md.template +13 -4
  28. package/dist/templates/agent_instructions/agents/workflow_quality.md.template +244 -0
  29. package/dist/templates/agent_instructions/commands/build_workflow.md.template +52 -9
  30. package/dist/templates/agent_instructions/commands/plan_workflow.md.template +4 -4
  31. package/dist/templates/project/package.json.template +2 -2
  32. package/dist/templates/project/src/simple/scenarios/question_ada_lovelace.json.template +3 -0
  33. package/dist/templates/workflow/scenarios/test_input.json.template +7 -0
  34. package/dist/types/trace.d.ts +161 -0
  35. package/dist/types/trace.js +18 -0
  36. package/dist/utils/date_formatter.d.ts +8 -0
  37. package/dist/utils/date_formatter.js +19 -0
  38. package/dist/utils/template.spec.js +6 -0
  39. package/dist/utils/trace_formatter.d.ts +11 -61
  40. package/dist/utils/trace_formatter.js +384 -239
  41. package/package.json +2 -2
  42. package/dist/commands/workflow/debug.test.js +0 -107
  43. package/dist/commands/workflow/output.test.js +0 -23
  44. package/dist/utils/s3_downloader.d.ts +0 -49
  45. package/dist/utils/s3_downloader.js +0 -154
  46. /package/dist/commands/workflow/{debug.test.d.ts → debug.spec.d.ts} +0 -0
  47. /package/dist/commands/workflow/{output.test.d.ts → result.test.d.ts} +0 -0
  48. /package/dist/templates/workflow/{prompt@v1.prompt.template → prompts/prompt@v1.prompt.template} +0 -0
@@ -1,61 +1,11 @@
1
- export declare class TraceFormatter {
2
- /**
3
- * Format trace data based on the requested format
4
- */
5
- format(traceData: string | object, format?: 'json' | 'text'): string;
6
- /**
7
- * Format trace as human-readable text with tree structure
8
- */
9
- private formatAsText;
10
- /**
11
- * Format the header with workflow information
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;