@autobe/agent 0.7.3 → 0.9.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/lib/AutoBeAgent.d.ts +183 -12
- package/lib/AutoBeAgent.js +249 -65
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +5 -4
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/context/AutoBeContext.d.ts +2 -2
- package/lib/factory/index.d.ts +0 -1
- package/lib/factory/index.js +0 -1
- package/lib/factory/index.js.map +1 -1
- package/lib/index.mjs +1024 -663
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js +7 -8
- package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +2 -5
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +6 -8
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComponents.js +9 -6
- package/lib/orchestrate/interface/orchestrateInterfaceComponents.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +3 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +5 -8
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +5 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +3 -6
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js +11 -7
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
- package/lib/orchestrate/prisma/transformPrismaCorrectHistories.js +1 -1
- package/lib/orchestrate/prisma/transformPrismaCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTest.js +4 -8
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +2 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.js +90 -60
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestProgress.d.ts +3 -2
- package/lib/orchestrate/test/orchestrateTestProgress.js +75 -50
- package/lib/orchestrate/test/orchestrateTestProgress.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.d.ts +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +617 -208
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +123 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
- package/lib/orchestrate/test/transformTestCorrectHistories.d.ts +2 -1
- package/lib/orchestrate/test/transformTestCorrectHistories.js +14 -10
- package/lib/orchestrate/test/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/transformTestProgressHistories.d.ts +7 -1
- package/lib/orchestrate/test/transformTestProgressHistories.js +20 -20
- package/lib/orchestrate/test/transformTestProgressHistories.js.map +1 -1
- package/lib/orchestrate/test/transformTestScenarioHistories.d.ts +1 -2
- package/lib/orchestrate/test/transformTestScenarioHistories.js +1 -77
- package/lib/orchestrate/test/transformTestScenarioHistories.js.map +1 -1
- package/lib/structures/IAutoBeConfig.d.ts +48 -10
- package/lib/structures/IAutoBeProps.d.ts +87 -0
- package/lib/structures/IAutoBeVendor.d.ts +64 -22
- package/lib/utils/backoffRetry.d.ts +7 -0
- package/lib/utils/backoffRetry.js +73 -0
- package/lib/utils/backoffRetry.js.map +1 -0
- package/lib/utils/enforceToolCall.d.ts +3 -0
- package/lib/utils/enforceToolCall.js +13 -0
- package/lib/utils/enforceToolCall.js.map +1 -0
- package/lib/utils/types/BackoffOptions.d.ts +12 -0
- package/lib/utils/types/BackoffOptions.js +3 -0
- package/lib/utils/types/BackoffOptions.js.map +1 -0
- package/package.json +5 -5
- package/src/AutoBeAgent.ts +252 -52
- package/src/constants/AutoBeSystemPromptConstant.ts +5 -4
- package/src/context/AutoBeContext.ts +7 -2
- package/src/factory/index.ts +0 -1
- package/src/orchestrate/analyze/AutoBeAnalyzeAgent.ts +5 -10
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +2 -6
- package/src/orchestrate/interface/orchestrateInterface.ts +1 -1
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +12 -11
- package/src/orchestrate/interface/orchestrateInterfaceComponents.ts +7 -6
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +2 -1
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +4 -9
- package/src/orchestrate/prisma/orchestratePrisma.ts +1 -0
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +4 -1
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +6 -7
- package/src/orchestrate/prisma/orchestratePrismaSchema.ts +10 -7
- package/src/orchestrate/test/orchestrateTest.ts +6 -13
- package/src/orchestrate/test/orchestrateTestCorrect.ts +127 -78
- package/src/orchestrate/test/orchestrateTestProgress.ts +88 -47
- package/src/orchestrate/test/orchestrateTestScenario.ts +194 -105
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +132 -0
- package/src/orchestrate/test/transformTestCorrectHistories.ts +14 -10
- package/src/orchestrate/test/transformTestProgressHistories.ts +25 -22
- package/src/orchestrate/test/transformTestScenarioHistories.ts +0 -79
- package/src/structures/IAutoBeConfig.ts +48 -10
- package/src/structures/IAutoBeProps.ts +91 -0
- package/src/structures/IAutoBeVendor.ts +64 -22
- package/src/utils/backoffRetry.ts +84 -0
- package/src/utils/enforceToolCall.ts +13 -0
- package/src/utils/types/BackoffOptions.ts +15 -0
package/lib/AutoBeAgent.d.ts
CHANGED
|
@@ -1,24 +1,195 @@
|
|
|
1
|
-
import { AutoBeEvent, AutoBeHistory, AutoBeUserMessageContent } from "@autobe/interface";
|
|
1
|
+
import { AutoBeEvent, AutoBeHistory, AutoBeUserMessageContent, IAutoBeGetFilesOptions } from "@autobe/interface";
|
|
2
2
|
import { ILlmSchema } from "@samchon/openapi";
|
|
3
3
|
import { AutoBeTokenUsage } from "./context/AutoBeTokenUsage";
|
|
4
4
|
import { IAutoBeProps } from "./structures/IAutoBeProps";
|
|
5
|
+
/**
|
|
6
|
+
* Main agent class that orchestrates the entire vibe coding pipeline through
|
|
7
|
+
* conversation-driven development.
|
|
8
|
+
*
|
|
9
|
+
* The AutoBeAgent serves as the central coordinator for the waterfall-based
|
|
10
|
+
* development process with spiral model iterative improvements. It manages the
|
|
11
|
+
* five specialized agents (Analyze, Prisma, Interface, Test, Realize) that
|
|
12
|
+
* transform user conversations into complete working applications through a
|
|
13
|
+
* sophisticated AST-based compilation infrastructure.
|
|
14
|
+
*
|
|
15
|
+
* The agent operates through natural language conversation, supporting
|
|
16
|
+
* multimodal input including text, images, files, and audio. It maintains
|
|
17
|
+
* conversation history, tracks development progress through real-time events,
|
|
18
|
+
* and provides access to all generated artifacts including requirements
|
|
19
|
+
* documentation, database schemas, API specifications, test suites, and
|
|
20
|
+
* implementation code.
|
|
21
|
+
*
|
|
22
|
+
* The vibe coding approach eliminates traditional development barriers by
|
|
23
|
+
* enabling users to express requirements naturally while the agent handles all
|
|
24
|
+
* technical implementation details through validated AST transformations and
|
|
25
|
+
* continuous quality assurance feedback loops.
|
|
26
|
+
*
|
|
27
|
+
* @author Samchon
|
|
28
|
+
*/
|
|
5
29
|
export declare class AutoBeAgent<Model extends ILlmSchema.Model> {
|
|
6
|
-
private readonly props;
|
|
7
|
-
private readonly agentica_;
|
|
8
|
-
private readonly histories_;
|
|
9
|
-
private readonly context_;
|
|
10
|
-
private readonly state_;
|
|
11
|
-
private readonly listeners_;
|
|
12
30
|
/**
|
|
13
|
-
*
|
|
31
|
+
* Initializes a new AutoBeAgent instance with the specified configuration.
|
|
14
32
|
*
|
|
15
|
-
*
|
|
33
|
+
* Creates and configures the agent with AI vendor settings, behavioral
|
|
34
|
+
* context (locale/timezone), and compilation infrastructure. The agent can
|
|
35
|
+
* optionally resume from previous conversation histories to continue
|
|
36
|
+
* development sessions or build upon existing work.
|
|
37
|
+
*
|
|
38
|
+
* The constructor sets up the internal MicroAgentica engine, initializes the
|
|
39
|
+
* development state from provided histories, and establishes the event
|
|
40
|
+
* dispatch system for real-time progress notifications. The agent becomes
|
|
41
|
+
* ready for conversation-driven development immediately after construction.
|
|
42
|
+
*
|
|
43
|
+
* @param props Configuration properties including AI vendor settings,
|
|
44
|
+
* behavioral context, compilation tools, and optional conversation
|
|
45
|
+
* histories for session continuation
|
|
16
46
|
*/
|
|
17
47
|
constructor(props: IAutoBeProps<Model>);
|
|
18
|
-
|
|
19
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Engages in conversation with the agent to drive the vibe coding process.
|
|
50
|
+
*
|
|
51
|
+
* Accepts user input in multiple formats including simple text strings,
|
|
52
|
+
* single multimodal content items, or arrays of content supporting text,
|
|
53
|
+
* images, file uploads, and audio input. The conversation serves as the
|
|
54
|
+
* primary interface for expressing requirements, providing feedback, and
|
|
55
|
+
* guiding the development process through natural language interaction.
|
|
56
|
+
*
|
|
57
|
+
* The agent analyzes the conversation context to determine appropriate
|
|
58
|
+
* actions, potentially activating specialized agents (Analyze, Prisma,
|
|
59
|
+
* Interface, Test, Realize) through function calling based on user needs.
|
|
60
|
+
* Real-time progress events are fired through registered listeners while the
|
|
61
|
+
* conversation processes.
|
|
62
|
+
*
|
|
63
|
+
* Returns all history records generated during this conversation turn,
|
|
64
|
+
* including user messages, assistant responses, and any development
|
|
65
|
+
* activities triggered by the interaction. This enables clients to track both
|
|
66
|
+
* conversational flow and development progress.
|
|
67
|
+
*
|
|
68
|
+
* @param content User input as text, single content item, or multimodal array
|
|
69
|
+
* @returns Promise resolving to array of history records from this
|
|
70
|
+
* conversation
|
|
71
|
+
*/
|
|
20
72
|
conversate(content: string | AutoBeUserMessageContent | AutoBeUserMessageContent[]): Promise<AutoBeHistory[]>;
|
|
21
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves all generated files from the current development session.
|
|
75
|
+
*
|
|
76
|
+
* Transforms the complete conversation-driven development process into a
|
|
77
|
+
* comprehensive collection of deployable artifacts, including requirements
|
|
78
|
+
* documentation, database schemas, API specifications, NestJS implementation
|
|
79
|
+
* code, and test suites. The generated files represent a fully functional
|
|
80
|
+
* backend application ready for immediate deployment or further
|
|
81
|
+
* customization.
|
|
82
|
+
*
|
|
83
|
+
* The method produces a meticulously organized project structure that
|
|
84
|
+
* reflects professional software development standards. Requirements analysis
|
|
85
|
+
* documents capture and formalize your conversational input into structured
|
|
86
|
+
* technical specifications, providing clear traceability from user intent to
|
|
87
|
+
* final implementation. Database artifacts include Prisma schemas with
|
|
88
|
+
* precise type definitions, relationships, and constraints, along with
|
|
89
|
+
* migration files for proper database initialization and evolution.
|
|
90
|
+
*
|
|
91
|
+
* The API layer emerges through comprehensive OpenAPI specifications
|
|
92
|
+
* documenting every endpoint, request format, response structure, and error
|
|
93
|
+
* condition. Generated NestJS controllers, DTOs, and service classes
|
|
94
|
+
* implement these specifications with TypeScript's strong typing system
|
|
95
|
+
* providing compile-time safety. Quality assurance is embedded throughout
|
|
96
|
+
* with complete test suites covering both unit and end-to-end scenarios.
|
|
97
|
+
*
|
|
98
|
+
* The database configuration specified through the `dbms` option
|
|
99
|
+
* fundamentally shapes the entire generated codebase. PostgreSQL
|
|
100
|
+
* configuration produces production-ready code with robust connection pooling
|
|
101
|
+
* and enterprise-grade optimizations, while SQLite generates lightweight code
|
|
102
|
+
* perfect for local development and rapid prototyping without external
|
|
103
|
+
* dependencies.
|
|
104
|
+
*
|
|
105
|
+
* All artifacts maintain perfect consistency across the chosen database
|
|
106
|
+
* system, from Prisma configurations and connection strings to Docker compose
|
|
107
|
+
* files and environment templates. This deep integration ensures immediate
|
|
108
|
+
* deployment compatibility without manual configuration adjustments.
|
|
109
|
+
*
|
|
110
|
+
* @param options Configuration specifying the target database management
|
|
111
|
+
* system and other code generation preferences that influence the structure
|
|
112
|
+
* and characteristics of the generated project files
|
|
113
|
+
* @returns Promise resolving to key-value pairs mapping logical file paths to
|
|
114
|
+
* complete file contents for all generated development artifacts, ready for
|
|
115
|
+
* immediate file system operations, build integration, or deployment
|
|
116
|
+
* workflows
|
|
117
|
+
*/
|
|
118
|
+
getFiles(options?: Partial<IAutoBeGetFilesOptions>): Promise<Record<string, string>>;
|
|
119
|
+
/**
|
|
120
|
+
* Retrieves the complete conversation and development history.
|
|
121
|
+
*
|
|
122
|
+
* Returns the chronologically ordered record of all events from the current
|
|
123
|
+
* session including user messages, assistant responses, development phase
|
|
124
|
+
* activities, progress events, and completion notifications. This
|
|
125
|
+
* comprehensive history enables conversation replay, development process
|
|
126
|
+
* analysis, and understanding of how requirements evolved into working
|
|
127
|
+
* software.
|
|
128
|
+
*
|
|
129
|
+
* The history provides complete transparency into the vibe coding process,
|
|
130
|
+
* showing both conversational interactions and behind-the-scenes development
|
|
131
|
+
* activities. This information is valuable for debugging, process
|
|
132
|
+
* improvement, and educational purposes to understand the agent's
|
|
133
|
+
* decision-making process.
|
|
134
|
+
*
|
|
135
|
+
* @returns Chronologically ordered array of all history records including
|
|
136
|
+
* messages, events, and development activities
|
|
137
|
+
*/
|
|
22
138
|
getHistories(): AutoBeHistory[];
|
|
139
|
+
/**
|
|
140
|
+
* Retrieves comprehensive AI token usage statistics for the current session.
|
|
141
|
+
*
|
|
142
|
+
* Returns detailed breakdown of token consumption across all specialized
|
|
143
|
+
* agents and processing phases, enabling cost monitoring, performance
|
|
144
|
+
* analysis, and optimization of AI resource utilization. Statistics include
|
|
145
|
+
* aggregate totals and component-specific breakdowns with input/output
|
|
146
|
+
* categorization, caching analysis, and reasoning token tracking.
|
|
147
|
+
*
|
|
148
|
+
* Token usage data is essential for understanding the computational costs of
|
|
149
|
+
* different development phases and optimizing AI efficiency. The breakdown
|
|
150
|
+
* helps identify which agents or operations consume the most resources,
|
|
151
|
+
* enabling targeted optimization efforts while maintaining development
|
|
152
|
+
* quality.
|
|
153
|
+
*
|
|
154
|
+
* @returns Comprehensive token usage statistics with detailed breakdowns by
|
|
155
|
+
* agent, operation type, and consumption category
|
|
156
|
+
*/
|
|
23
157
|
getTokenUsage(): AutoBeTokenUsage;
|
|
158
|
+
/**
|
|
159
|
+
* Registers an event listener for specific development phase events.
|
|
160
|
+
*
|
|
161
|
+
* Enables client applications to receive real-time notifications about
|
|
162
|
+
* conversation flow, development progress, and completion events throughout
|
|
163
|
+
* the vibe coding pipeline. Event listeners provide visibility into agent
|
|
164
|
+
* activities and enable responsive user interfaces that can display progress,
|
|
165
|
+
* handle artifacts, and provide feedback.
|
|
166
|
+
*
|
|
167
|
+
* The type-safe event system ensures that listeners receive properly typed
|
|
168
|
+
* events corresponding to their registration type, enabling robust event
|
|
169
|
+
* handling without runtime type issues. Multiple listeners can be registered
|
|
170
|
+
* for the same event type to support complex notification requirements.
|
|
171
|
+
*
|
|
172
|
+
* @param type Event type to listen for (e.g., "analyzeComplete",
|
|
173
|
+
* "prismaStart")
|
|
174
|
+
* @param listener Callback function that receives the typed event when fired
|
|
175
|
+
* @returns The agent instance for method chaining
|
|
176
|
+
*/
|
|
177
|
+
on<Type extends AutoBeEvent.Type>(type: Type, listener: (event: AutoBeEvent.Mapper[Type]) => Promise<void> | void): this;
|
|
178
|
+
/**
|
|
179
|
+
* Unregisters a previously registered event listener.
|
|
180
|
+
*
|
|
181
|
+
* Removes the specified event listener from the agent's notification system,
|
|
182
|
+
* stopping further event notifications for that particular listener function.
|
|
183
|
+
* This is useful for cleanup, dynamic listener management, or when components
|
|
184
|
+
* no longer need to receive specific event notifications.
|
|
185
|
+
*
|
|
186
|
+
* The listener function reference must exactly match the function that was
|
|
187
|
+
* originally registered with {@link on} for successful removal. If no matching
|
|
188
|
+
* listener is found, the operation has no effect.
|
|
189
|
+
*
|
|
190
|
+
* @param type Event type the listener was registered for
|
|
191
|
+
* @param listener The exact listener function reference to remove
|
|
192
|
+
* @returns The agent instance for method chaining
|
|
193
|
+
*/
|
|
194
|
+
off<Type extends AutoBeEvent.Type>(type: Type, listener: (event: AutoBeEvent.Mapper[Type]) => Promise<void> | void): this;
|
|
24
195
|
}
|
package/lib/AutoBeAgent.js
CHANGED
|
@@ -18,37 +18,76 @@ const createAutoBeApplication_1 = require("./factory/createAutoBeApplication");
|
|
|
18
18
|
const createAutoBeState_1 = require("./factory/createAutoBeState");
|
|
19
19
|
const transformFacadeStateMessage_1 = require("./orchestrate/facade/transformFacadeStateMessage");
|
|
20
20
|
const emplaceMap_1 = require("./utils/emplaceMap");
|
|
21
|
+
/**
|
|
22
|
+
* Main agent class that orchestrates the entire vibe coding pipeline through
|
|
23
|
+
* conversation-driven development.
|
|
24
|
+
*
|
|
25
|
+
* The AutoBeAgent serves as the central coordinator for the waterfall-based
|
|
26
|
+
* development process with spiral model iterative improvements. It manages the
|
|
27
|
+
* five specialized agents (Analyze, Prisma, Interface, Test, Realize) that
|
|
28
|
+
* transform user conversations into complete working applications through a
|
|
29
|
+
* sophisticated AST-based compilation infrastructure.
|
|
30
|
+
*
|
|
31
|
+
* The agent operates through natural language conversation, supporting
|
|
32
|
+
* multimodal input including text, images, files, and audio. It maintains
|
|
33
|
+
* conversation history, tracks development progress through real-time events,
|
|
34
|
+
* and provides access to all generated artifacts including requirements
|
|
35
|
+
* documentation, database schemas, API specifications, test suites, and
|
|
36
|
+
* implementation code.
|
|
37
|
+
*
|
|
38
|
+
* The vibe coding approach eliminates traditional development barriers by
|
|
39
|
+
* enabling users to express requirements naturally while the agent handles all
|
|
40
|
+
* technical implementation details through validated AST transformations and
|
|
41
|
+
* continuous quality assurance feedback loops.
|
|
42
|
+
*
|
|
43
|
+
* @author Samchon
|
|
44
|
+
*/
|
|
21
45
|
class AutoBeAgent {
|
|
22
46
|
/* -----------------------------------------------------------
|
|
23
47
|
CONSTRUCTOR
|
|
24
48
|
----------------------------------------------------------- */
|
|
25
49
|
/**
|
|
26
|
-
*
|
|
50
|
+
* Initializes a new AutoBeAgent instance with the specified configuration.
|
|
27
51
|
*
|
|
28
|
-
*
|
|
52
|
+
* Creates and configures the agent with AI vendor settings, behavioral
|
|
53
|
+
* context (locale/timezone), and compilation infrastructure. The agent can
|
|
54
|
+
* optionally resume from previous conversation histories to continue
|
|
55
|
+
* development sessions or build upon existing work.
|
|
56
|
+
*
|
|
57
|
+
* The constructor sets up the internal MicroAgentica engine, initializes the
|
|
58
|
+
* development state from provided histories, and establishes the event
|
|
59
|
+
* dispatch system for real-time progress notifications. The agent becomes
|
|
60
|
+
* ready for conversation-driven development immediately after construction.
|
|
61
|
+
*
|
|
62
|
+
* @param props Configuration properties including AI vendor settings,
|
|
63
|
+
* behavioral context, compilation tools, and optional conversation
|
|
64
|
+
* histories for session continuation
|
|
29
65
|
*/
|
|
30
66
|
constructor(props) {
|
|
31
67
|
var _a, _b, _c, _d;
|
|
32
|
-
|
|
68
|
+
// INITIALIZE MEMBERS
|
|
69
|
+
this.props_ = props;
|
|
33
70
|
this.histories_ = (_b = (_a = props.histories) === null || _a === void 0 ? void 0 : _a.slice()) !== null && _b !== void 0 ? _b : [];
|
|
34
71
|
this.state_ = (0, createAutoBeState_1.createAutoBeState)(this.histories_);
|
|
72
|
+
this.listeners_ = new Map();
|
|
73
|
+
// CONSTRUCT AGENTICA
|
|
74
|
+
const vendor = Object.assign(Object.assign({}, props.vendor), { semaphore: new tstl_1.Semaphore((_c = props.vendor.semaphore) !== null && _c !== void 0 ? _c : 16) });
|
|
35
75
|
this.context_ = {
|
|
76
|
+
vendor,
|
|
36
77
|
model: props.model,
|
|
37
|
-
vendor: props.vendor,
|
|
38
78
|
config: props.config,
|
|
39
79
|
compiler: props.compiler,
|
|
40
80
|
histories: () => this.histories_,
|
|
41
81
|
state: () => this.state_,
|
|
42
82
|
usage: () => this.agentica_.getTokenUsage(),
|
|
43
|
-
files: () => this.getFiles(),
|
|
83
|
+
files: (options) => this.getFiles(options),
|
|
44
84
|
dispatch: (event) => {
|
|
45
85
|
this.dispatch(event).catch(() => { });
|
|
46
86
|
},
|
|
47
87
|
};
|
|
48
|
-
this.listeners_ = new Map();
|
|
49
88
|
this.agentica_ = new core_1.MicroAgentica({
|
|
89
|
+
vendor,
|
|
50
90
|
model: props.model,
|
|
51
|
-
vendor: Object.assign(Object.assign({}, props.vendor), { semaphore: new tstl_1.Semaphore((_c = props.vendor.semaphore) !== null && _c !== void 0 ? _c : 16) }),
|
|
52
91
|
config: Object.assign(Object.assign({}, ((_d = props.config) !== null && _d !== void 0 ? _d : {})), { executor: {
|
|
53
92
|
describe: null,
|
|
54
93
|
}, systemPrompt: {
|
|
@@ -83,27 +122,42 @@ class AutoBeAgent {
|
|
|
83
122
|
created_at: history.created_at,
|
|
84
123
|
}).catch(() => { });
|
|
85
124
|
}));
|
|
125
|
+
this.agentica_.on("request", (e) => {
|
|
126
|
+
if (e.body.parallel_tool_calls !== undefined)
|
|
127
|
+
delete e.body.parallel_tool_calls;
|
|
128
|
+
});
|
|
86
129
|
}
|
|
87
130
|
/** @internal */
|
|
88
131
|
clone() {
|
|
89
|
-
return new AutoBeAgent(Object.assign(Object.assign({}, this.
|
|
90
|
-
}
|
|
91
|
-
on(type, listener) {
|
|
92
|
-
(0, emplaceMap_1.emplaceMap)(this.listeners_, type, () => new Set()).add(listener);
|
|
93
|
-
return this;
|
|
94
|
-
}
|
|
95
|
-
off(type, listener) {
|
|
96
|
-
const set = this.listeners_.get(type);
|
|
97
|
-
if (set === undefined)
|
|
98
|
-
return this;
|
|
99
|
-
set.delete(listener);
|
|
100
|
-
if (set.size === 0)
|
|
101
|
-
this.listeners_.delete(type);
|
|
102
|
-
return this;
|
|
132
|
+
return new AutoBeAgent(Object.assign(Object.assign({}, this.props_), { histories: this.histories_.slice() }));
|
|
103
133
|
}
|
|
104
134
|
/* -----------------------------------------------------------
|
|
105
135
|
ACCESSORS
|
|
106
136
|
----------------------------------------------------------- */
|
|
137
|
+
/**
|
|
138
|
+
* Engages in conversation with the agent to drive the vibe coding process.
|
|
139
|
+
*
|
|
140
|
+
* Accepts user input in multiple formats including simple text strings,
|
|
141
|
+
* single multimodal content items, or arrays of content supporting text,
|
|
142
|
+
* images, file uploads, and audio input. The conversation serves as the
|
|
143
|
+
* primary interface for expressing requirements, providing feedback, and
|
|
144
|
+
* guiding the development process through natural language interaction.
|
|
145
|
+
*
|
|
146
|
+
* The agent analyzes the conversation context to determine appropriate
|
|
147
|
+
* actions, potentially activating specialized agents (Analyze, Prisma,
|
|
148
|
+
* Interface, Test, Realize) through function calling based on user needs.
|
|
149
|
+
* Real-time progress events are fired through registered listeners while the
|
|
150
|
+
* conversation processes.
|
|
151
|
+
*
|
|
152
|
+
* Returns all history records generated during this conversation turn,
|
|
153
|
+
* including user messages, assistant responses, and any development
|
|
154
|
+
* activities triggered by the interaction. This enables clients to track both
|
|
155
|
+
* conversational flow and development progress.
|
|
156
|
+
*
|
|
157
|
+
* @param content User input as text, single content item, or multimodal array
|
|
158
|
+
* @returns Promise resolving to array of history records from this
|
|
159
|
+
* conversation
|
|
160
|
+
*/
|
|
107
161
|
conversate(content) {
|
|
108
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
163
|
const index = this.histories_.length;
|
|
@@ -128,62 +182,192 @@ class AutoBeAgent {
|
|
|
128
182
|
return this.histories_.slice(index);
|
|
129
183
|
});
|
|
130
184
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Retrieves all generated files from the current development session.
|
|
187
|
+
*
|
|
188
|
+
* Transforms the complete conversation-driven development process into a
|
|
189
|
+
* comprehensive collection of deployable artifacts, including requirements
|
|
190
|
+
* documentation, database schemas, API specifications, NestJS implementation
|
|
191
|
+
* code, and test suites. The generated files represent a fully functional
|
|
192
|
+
* backend application ready for immediate deployment or further
|
|
193
|
+
* customization.
|
|
194
|
+
*
|
|
195
|
+
* The method produces a meticulously organized project structure that
|
|
196
|
+
* reflects professional software development standards. Requirements analysis
|
|
197
|
+
* documents capture and formalize your conversational input into structured
|
|
198
|
+
* technical specifications, providing clear traceability from user intent to
|
|
199
|
+
* final implementation. Database artifacts include Prisma schemas with
|
|
200
|
+
* precise type definitions, relationships, and constraints, along with
|
|
201
|
+
* migration files for proper database initialization and evolution.
|
|
202
|
+
*
|
|
203
|
+
* The API layer emerges through comprehensive OpenAPI specifications
|
|
204
|
+
* documenting every endpoint, request format, response structure, and error
|
|
205
|
+
* condition. Generated NestJS controllers, DTOs, and service classes
|
|
206
|
+
* implement these specifications with TypeScript's strong typing system
|
|
207
|
+
* providing compile-time safety. Quality assurance is embedded throughout
|
|
208
|
+
* with complete test suites covering both unit and end-to-end scenarios.
|
|
209
|
+
*
|
|
210
|
+
* The database configuration specified through the `dbms` option
|
|
211
|
+
* fundamentally shapes the entire generated codebase. PostgreSQL
|
|
212
|
+
* configuration produces production-ready code with robust connection pooling
|
|
213
|
+
* and enterprise-grade optimizations, while SQLite generates lightweight code
|
|
214
|
+
* perfect for local development and rapid prototyping without external
|
|
215
|
+
* dependencies.
|
|
216
|
+
*
|
|
217
|
+
* All artifacts maintain perfect consistency across the chosen database
|
|
218
|
+
* system, from Prisma configurations and connection strings to Docker compose
|
|
219
|
+
* files and environment templates. This deep integration ensures immediate
|
|
220
|
+
* deployment compatibility without manual configuration adjustments.
|
|
221
|
+
*
|
|
222
|
+
* @param options Configuration specifying the target database management
|
|
223
|
+
* system and other code generation preferences that influence the structure
|
|
224
|
+
* and characteristics of the generated project files
|
|
225
|
+
* @returns Promise resolving to key-value pairs mapping logical file paths to
|
|
226
|
+
* complete file contents for all generated development artifacts, ready for
|
|
227
|
+
* immediate file system operations, build integration, or deployment
|
|
228
|
+
* workflows
|
|
229
|
+
*/
|
|
230
|
+
getFiles(options) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
var _a, _b;
|
|
233
|
+
const files = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Object.fromEntries(this.state_.analyze
|
|
234
|
+
? Object.entries(this.state_.analyze.files).map(([key, value]) => [
|
|
235
|
+
`docs/analysis/${key.split("/").at(-1)}`,
|
|
142
236
|
value,
|
|
143
|
-
])
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
237
|
+
])
|
|
238
|
+
: [])), Object.fromEntries(!!((_a = this.state_.prisma) === null || _a === void 0 ? void 0 : _a.result)
|
|
239
|
+
? [
|
|
240
|
+
...Object.entries(((_b = options === null || options === void 0 ? void 0 : options.dbms) !== null && _b !== void 0 ? _b : "postgres") === "postgres"
|
|
241
|
+
? this.state_.prisma.schemas
|
|
242
|
+
: yield this.context_.compiler.prisma.write(this.state_.prisma.result.data, options.dbms)).map(([key, value]) => [
|
|
243
|
+
`prisma/schema/${key.split("/").at(-1)}`,
|
|
244
|
+
value,
|
|
245
|
+
]),
|
|
246
|
+
...(this.state_.prisma.compiled.type === "success"
|
|
247
|
+
? [["docs/ERD.md", this.state_.prisma.compiled.document]]
|
|
248
|
+
: []),
|
|
249
|
+
...(this.state_.prisma.compiled.type === "failure"
|
|
250
|
+
? [
|
|
251
|
+
[
|
|
252
|
+
"prisma/compile-error-reason.log",
|
|
253
|
+
this.state_.prisma.compiled.reason,
|
|
254
|
+
],
|
|
255
|
+
]
|
|
256
|
+
: []),
|
|
257
|
+
[
|
|
258
|
+
"autobe/prisma.json",
|
|
259
|
+
JSON.stringify(this.state_.prisma.result.data, null, 2),
|
|
260
|
+
],
|
|
261
|
+
]
|
|
262
|
+
: [])), (this.state_.interface ? this.state_.interface.files : {})), (this.state_.test ? this.state_.test.files : {})), (this.state_.realize ? this.state_.realize.files : {})), { "autobe/histories.json": JSON.stringify(this.histories_, null, 2), "autobe/tokenUsage.json": JSON.stringify(this.getTokenUsage(), null, 2) }), (this.state_.interface
|
|
263
|
+
? {
|
|
264
|
+
"autobe/document.json": JSON.stringify(this.state_.interface.document, null, 2),
|
|
265
|
+
}
|
|
266
|
+
: {}));
|
|
267
|
+
return Object.fromEntries(Object.entries(files).map(([k, v]) => [
|
|
268
|
+
k.startsWith("/") ? k.substring(1) : k,
|
|
269
|
+
v,
|
|
270
|
+
]));
|
|
271
|
+
});
|
|
173
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* Retrieves the complete conversation and development history.
|
|
275
|
+
*
|
|
276
|
+
* Returns the chronologically ordered record of all events from the current
|
|
277
|
+
* session including user messages, assistant responses, development phase
|
|
278
|
+
* activities, progress events, and completion notifications. This
|
|
279
|
+
* comprehensive history enables conversation replay, development process
|
|
280
|
+
* analysis, and understanding of how requirements evolved into working
|
|
281
|
+
* software.
|
|
282
|
+
*
|
|
283
|
+
* The history provides complete transparency into the vibe coding process,
|
|
284
|
+
* showing both conversational interactions and behind-the-scenes development
|
|
285
|
+
* activities. This information is valuable for debugging, process
|
|
286
|
+
* improvement, and educational purposes to understand the agent's
|
|
287
|
+
* decision-making process.
|
|
288
|
+
*
|
|
289
|
+
* @returns Chronologically ordered array of all history records including
|
|
290
|
+
* messages, events, and development activities
|
|
291
|
+
*/
|
|
174
292
|
getHistories() {
|
|
175
293
|
return this.histories_;
|
|
176
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* Retrieves comprehensive AI token usage statistics for the current session.
|
|
297
|
+
*
|
|
298
|
+
* Returns detailed breakdown of token consumption across all specialized
|
|
299
|
+
* agents and processing phases, enabling cost monitoring, performance
|
|
300
|
+
* analysis, and optimization of AI resource utilization. Statistics include
|
|
301
|
+
* aggregate totals and component-specific breakdowns with input/output
|
|
302
|
+
* categorization, caching analysis, and reasoning token tracking.
|
|
303
|
+
*
|
|
304
|
+
* Token usage data is essential for understanding the computational costs of
|
|
305
|
+
* different development phases and optimizing AI efficiency. The breakdown
|
|
306
|
+
* helps identify which agents or operations consume the most resources,
|
|
307
|
+
* enabling targeted optimization efforts while maintaining development
|
|
308
|
+
* quality.
|
|
309
|
+
*
|
|
310
|
+
* @returns Comprehensive token usage statistics with detailed breakdowns by
|
|
311
|
+
* agent, operation type, and consumption category
|
|
312
|
+
*/
|
|
177
313
|
getTokenUsage() {
|
|
178
314
|
return this.agentica_.getTokenUsage();
|
|
179
315
|
}
|
|
180
|
-
/* -----------------------------------------------------------
|
|
181
|
-
CONTEXTS
|
|
182
|
-
----------------------------------------------------------- */
|
|
183
316
|
/** @internal */
|
|
184
317
|
getContext() {
|
|
185
318
|
return this.context_;
|
|
186
319
|
}
|
|
320
|
+
/* -----------------------------------------------------------
|
|
321
|
+
EVENT HANDLERS
|
|
322
|
+
----------------------------------------------------------- */
|
|
323
|
+
/**
|
|
324
|
+
* Registers an event listener for specific development phase events.
|
|
325
|
+
*
|
|
326
|
+
* Enables client applications to receive real-time notifications about
|
|
327
|
+
* conversation flow, development progress, and completion events throughout
|
|
328
|
+
* the vibe coding pipeline. Event listeners provide visibility into agent
|
|
329
|
+
* activities and enable responsive user interfaces that can display progress,
|
|
330
|
+
* handle artifacts, and provide feedback.
|
|
331
|
+
*
|
|
332
|
+
* The type-safe event system ensures that listeners receive properly typed
|
|
333
|
+
* events corresponding to their registration type, enabling robust event
|
|
334
|
+
* handling without runtime type issues. Multiple listeners can be registered
|
|
335
|
+
* for the same event type to support complex notification requirements.
|
|
336
|
+
*
|
|
337
|
+
* @param type Event type to listen for (e.g., "analyzeComplete",
|
|
338
|
+
* "prismaStart")
|
|
339
|
+
* @param listener Callback function that receives the typed event when fired
|
|
340
|
+
* @returns The agent instance for method chaining
|
|
341
|
+
*/
|
|
342
|
+
on(type, listener) {
|
|
343
|
+
(0, emplaceMap_1.emplaceMap)(this.listeners_, type, () => new Set()).add(listener);
|
|
344
|
+
return this;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Unregisters a previously registered event listener.
|
|
348
|
+
*
|
|
349
|
+
* Removes the specified event listener from the agent's notification system,
|
|
350
|
+
* stopping further event notifications for that particular listener function.
|
|
351
|
+
* This is useful for cleanup, dynamic listener management, or when components
|
|
352
|
+
* no longer need to receive specific event notifications.
|
|
353
|
+
*
|
|
354
|
+
* The listener function reference must exactly match the function that was
|
|
355
|
+
* originally registered with {@link on} for successful removal. If no matching
|
|
356
|
+
* listener is found, the operation has no effect.
|
|
357
|
+
*
|
|
358
|
+
* @param type Event type the listener was registered for
|
|
359
|
+
* @param listener The exact listener function reference to remove
|
|
360
|
+
* @returns The agent instance for method chaining
|
|
361
|
+
*/
|
|
362
|
+
off(type, listener) {
|
|
363
|
+
const set = this.listeners_.get(type);
|
|
364
|
+
if (set === undefined)
|
|
365
|
+
return this;
|
|
366
|
+
set.delete(listener);
|
|
367
|
+
if (set.size === 0)
|
|
368
|
+
this.listeners_.delete(type);
|
|
369
|
+
return this;
|
|
370
|
+
}
|
|
187
371
|
/** @internal */
|
|
188
372
|
dispatch(event) {
|
|
189
373
|
return __awaiter(this, void 0, void 0, function* () {
|
package/lib/AutoBeAgent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoBeAgent.js","sourceRoot":"","sources":["../src/AutoBeAgent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"AutoBeAgent.js","sourceRoot":"","sources":["../src/AutoBeAgent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAgE;AAUhE,+BAAiC;AACjC,+BAA0B;AAK1B,2EAAwE;AACxE,+EAA2E;AAC3E,mEAAgE;AAChE,kGAA+F;AAE/F,mDAAgD;AAEhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,WAAW;IAsBtB;;kEAE8D;IAC9D;;;;;;;;;;;;;;;;OAgBG;IACH,YAAmB,KAA0B;;QAC3C,qBAAqB;QACrB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,MAAA,MAAA,KAAK,CAAC,SAAS,0CAAE,KAAK,EAAE,mCAAI,EAAE,CAAC;QACjD,IAAI,CAAC,MAAM,GAAG,IAAA,qCAAiB,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,EAAE,CAAC;QAE5B,qBAAqB;QACrB,MAAM,MAAM,mCACP,KAAK,CAAC,MAAM,KACf,SAAS,EAAE,IAAI,gBAAS,CAAC,MAAA,KAAK,CAAC,MAAM,CAAC,SAAS,mCAAI,EAAE,CAAC,GACvD,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG;YACd,MAAM;YACN,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU;YAChC,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM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