repoburg 1.0.44 → 1.0.45
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/backend/.env +1 -0
- package/backend/.repoburg/orchestrations/README.md +21 -48
- package/backend/dist/orchestration/dto/orchestration.dto.d.ts +2 -4
- package/backend/dist/orchestration/dto/orchestration.dto.js +2 -10
- package/backend/dist/orchestration/dto/orchestration.dto.js.map +1 -1
- package/backend/dist/orchestration/orchestration-fs.service.d.ts +6 -5
- package/backend/dist/orchestration/orchestration-fs.service.js +53 -91
- package/backend/dist/orchestration/orchestration-fs.service.js.map +1 -1
- package/backend/dist/orchestration/orchestration-parser.service.d.ts +2 -13
- package/backend/dist/orchestration/orchestration-parser.service.js +8 -52
- package/backend/dist/orchestration/orchestration-parser.service.js.map +1 -1
- package/backend/dist/orchestration/orchestration.controller.d.ts +2 -3
- package/backend/dist/orchestration/orchestration.controller.js +5 -8
- package/backend/dist/orchestration/orchestration.controller.js.map +1 -1
- package/backend/dist/orchestration/orchestration.module.js +0 -2
- package/backend/dist/orchestration/orchestration.module.js.map +1 -1
- package/backend/dist/orchestration/orchestration.service.d.ts +1 -3
- package/backend/dist/orchestration/orchestration.service.js +44 -76
- package/backend/dist/orchestration/orchestration.service.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -1
package/backend/.env
CHANGED
|
@@ -1,68 +1,41 @@
|
|
|
1
1
|
# How to Create Orchestration Scripts
|
|
2
2
|
|
|
3
|
-
Orchestrations automate multi-step tasks by executing a sequence of prompts
|
|
3
|
+
Orchestrations automate multi-step tasks by executing a sequence of prompts defined in a single markdown file.
|
|
4
4
|
|
|
5
5
|
## 1. File Naming
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- The script file must have a `.elf` extension (e.g., `my-new-feature.elf`).
|
|
9
|
-
- The task file must have a `.md` extension (e.g., `my-new-feature.md`).
|
|
7
|
+
- An orchestration script is a single markdown file with a `.rc.md` extension (e.g., `my-new-feature.rc.md`).
|
|
10
8
|
|
|
11
|
-
## 2.
|
|
9
|
+
## 2. Script Format
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
The file contains one or more "chunks" of text, separated by `$$$$`. Each chunk is treated as a distinct prompt that will be sent to the LLM.
|
|
14
12
|
|
|
15
|
-
###
|
|
13
|
+
### The Separator
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
- Use `$$$$` on its own line to separate prompts.
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
- **Purpose:** (Optional, use sparingly) Overrides the session's default initial context template for the *first* `send_and_wait` command only. This is useful for highly specialized tasks that require a unique starting context.
|
|
21
|
-
- **Usage:** Must be placed before the first `send_and_wait` command. In most cases, relying on the session's default templates is preferred for consistency.
|
|
22
|
-
- **Example:** `set_initial_context('Default Initial Condensed')`
|
|
17
|
+
### Example `.rc.md` File (`sample-feature.rc.md`)
|
|
23
18
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- **Usage:** The prompt string can be a single line using single quotes (`'`) or a multi-line string using backticks (``). Each `send_and_wait` represents one step.
|
|
27
|
-
|
|
28
|
-
### Comments
|
|
29
|
-
|
|
30
|
-
- Lines starting with `#` are treated as comments and are ignored.
|
|
31
|
-
|
|
32
|
-
### Example `.elf` File (`sample-feature.elf`)
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
# This script creates a new React component and adds it to the app.
|
|
36
|
-
# It uses a specific initial context, which is often not necessary.
|
|
37
|
-
set_initial_context('Default Initial Condensed')
|
|
19
|
+
```markdown
|
|
20
|
+
Create a new React component file named Greeting.tsx in src/components. It should be a simple functional component that displays "Hello, World!".
|
|
38
21
|
|
|
39
|
-
|
|
22
|
+
$$$$
|
|
40
23
|
|
|
41
|
-
|
|
42
|
-
component in the main App component located at src/app/page.tsx.`)
|
|
24
|
+
Now, import and render the new Greeting component in the main App component located at src/app/page.tsx.
|
|
43
25
|
```
|
|
44
26
|
|
|
45
|
-
##
|
|
27
|
+
## How It Works
|
|
46
28
|
|
|
47
|
-
|
|
29
|
+
1. **Execution**: When you run an orchestration, the system makes a temporary copy of your script.
|
|
30
|
+
2. **One Chunk at a Time**: It sends the content of the first chunk to the LLM.
|
|
31
|
+
3. **Auto-Apply**: The LLM's response is parsed, and the resulting file modifications are applied automatically.
|
|
32
|
+
4. **Consume and Continue**: After a chunk is successfully processed, it's removed from the temporary script. The engine then moves on to the next chunk.
|
|
33
|
+
5. **Completion**: The orchestration is complete when all chunks in the temporary script have been processed and removed.
|
|
48
34
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
- It is a GitHub Flavored Markdown checklist.
|
|
52
|
-
- Each `send_and_wait` command in the `.elf` file **must have a corresponding checklist item** in the `.md` file.
|
|
53
|
-
- The text of the checklist item must **exactly match** the prompt string within the corresponding `send_and_wait` command.
|
|
54
|
-
- Each task should start as unchecked: `[ ]`.
|
|
55
|
-
|
|
56
|
-
### Example `.md` File (`sample-feature.md`)
|
|
57
|
-
|
|
58
|
-
```markdown
|
|
59
|
-
[ ] Create a new React component file named Greeting.tsx in src/components. It should be a simple functional component that displays "Hello, World!".
|
|
60
|
-
[ ] Now, import and render the new Greeting component in the main App component located at src/app/page.tsx.
|
|
61
|
-
```
|
|
35
|
+
This allows the orchestration to be resumable. If it's stopped, the temporary script file maintains the state of remaining tasks.
|
|
62
36
|
|
|
63
37
|
## Guidelines for Writing Prompts
|
|
64
38
|
|
|
65
|
-
- **Be Specific and Atomic
|
|
66
|
-
- **Sequential Logic
|
|
67
|
-
- **Assume `auto_apply
|
|
68
|
-
- **Maintain Consistency:** The text in the `.md` checklist item must be identical to the prompt in the `.elf` file.
|
|
39
|
+
- **Be Specific and Atomic**: Each chunk should describe a single, clear, and verifiable step.
|
|
40
|
+
- **Sequential Logic**: Write chunks in the order they should be executed. The orchestration runs them sequentially and depends on the success of the previous step.
|
|
41
|
+
- **Assume `auto_apply`**: Remember that all actions generated by the LLM will be applied automatically. Write prompts that are safe for direct execution.
|
|
@@ -6,10 +6,8 @@ export declare class StartOrchestrationDto {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class CreateOrchestrationScriptDto {
|
|
8
8
|
name: string;
|
|
9
|
-
|
|
10
|
-
taskFileContent: string;
|
|
9
|
+
content: string;
|
|
11
10
|
}
|
|
12
11
|
export declare class UpdateOrchestrationScriptDto {
|
|
13
|
-
|
|
14
|
-
taskFileContent: string;
|
|
12
|
+
content: string;
|
|
15
13
|
}
|
|
@@ -39,20 +39,12 @@ __decorate([
|
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, class_validator_1.IsString)(),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
|
-
], CreateOrchestrationScriptDto.prototype, "
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.IsString)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], CreateOrchestrationScriptDto.prototype, "taskFileContent", void 0);
|
|
42
|
+
], CreateOrchestrationScriptDto.prototype, "content", void 0);
|
|
47
43
|
class UpdateOrchestrationScriptDto {
|
|
48
44
|
}
|
|
49
45
|
exports.UpdateOrchestrationScriptDto = UpdateOrchestrationScriptDto;
|
|
50
46
|
__decorate([
|
|
51
47
|
(0, class_validator_1.IsString)(),
|
|
52
48
|
__metadata("design:type", String)
|
|
53
|
-
], UpdateOrchestrationScriptDto.prototype, "
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, class_validator_1.IsString)(),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], UpdateOrchestrationScriptDto.prototype, "taskFileContent", void 0);
|
|
49
|
+
], UpdateOrchestrationScriptDto.prototype, "content", void 0);
|
|
58
50
|
//# sourceMappingURL=orchestration.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration.dto.js","sourceRoot":"","sources":["../../../src/orchestration/dto/orchestration.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,gEAA2D;AAE3D,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAPC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACM;AAGnB;IADC,IAAA,wBAAM,GAAE;;wDACS;AAGlB;IADC,IAAA,wBAAM,EAAC,uCAAiB,CAAC;;mDACF;AAG1B,MAAa,4BAA4B;
|
|
1
|
+
{"version":3,"file":"orchestration.dto.js","sourceRoot":"","sources":["../../../src/orchestration/dto/orchestration.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,gEAA2D;AAE3D,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAPC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACM;AAGnB;IADC,IAAA,wBAAM,GAAE;;wDACS;AAGlB;IADC,IAAA,wBAAM,EAAC,uCAAiB,CAAC;;mDACF;AAG1B,MAAa,4BAA4B;CAOxC;AAPD,oEAOC;AAJC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACA;AAGb;IADC,IAAA,0BAAQ,GAAE;;6DACK;AAGlB,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;6DACK"}
|
|
@@ -5,14 +5,15 @@ export declare class OrchestrationFsService {
|
|
|
5
5
|
constructor();
|
|
6
6
|
private ensureOrchestrationsDirExists;
|
|
7
7
|
private getScriptPath;
|
|
8
|
-
private
|
|
8
|
+
private getRunScriptPath;
|
|
9
9
|
listScripts(): Promise<{
|
|
10
10
|
name: string;
|
|
11
|
-
|
|
11
|
+
content: string;
|
|
12
12
|
}[]>;
|
|
13
13
|
readScript(name: string): Promise<string>;
|
|
14
|
-
|
|
15
|
-
writeScript(name: string,
|
|
14
|
+
readRunScript(name: string): Promise<string>;
|
|
15
|
+
writeScript(name: string, content: string): Promise<void>;
|
|
16
16
|
deleteScript(name: string): Promise<void>;
|
|
17
|
-
|
|
17
|
+
cloneScriptForRun(name: string): Promise<void>;
|
|
18
|
+
consumeNextChunk(name: string): Promise<void>;
|
|
18
19
|
}
|
|
@@ -16,72 +16,45 @@ const fs = require("fs/promises");
|
|
|
16
16
|
const path = require("path");
|
|
17
17
|
const readmeContent = `# How to Create Orchestration Scripts
|
|
18
18
|
|
|
19
|
-
Orchestrations automate multi-step tasks by executing a sequence of prompts
|
|
19
|
+
Orchestrations automate multi-step tasks by executing a sequence of prompts defined in a single markdown file.
|
|
20
20
|
|
|
21
21
|
## 1. File Naming
|
|
22
22
|
|
|
23
|
-
-
|
|
24
|
-
- The script file must have a \`.elf\` extension (e.g., \`my-new-feature.elf\`).
|
|
25
|
-
- The task file must have a \`.md\` extension (e.g., \`my-new-feature.md\`).
|
|
23
|
+
- An orchestration script is a single markdown file with a \`.rc.md\` extension (e.g., \`my-new-feature.rc.md\`).
|
|
26
24
|
|
|
27
|
-
## 2.
|
|
25
|
+
## 2. Script Format
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
The file contains one or more "chunks" of text, separated by \`$$$$\`. Each chunk is treated as a distinct prompt that will be sent to the LLM.
|
|
30
28
|
|
|
31
|
-
###
|
|
29
|
+
### The Separator
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
- Use \`$$$$\` on its own line to separate prompts.
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
- **Purpose:** (Optional, use sparingly) Overrides the session's default initial context template for the *first* \`send_and_wait\` command only. This is useful for highly specialized tasks that require a unique starting context.
|
|
37
|
-
- **Usage:** Must be placed before the first \`send_and_wait\` command. In most cases, relying on the session's default templates is preferred for consistency.
|
|
38
|
-
- **Example:** \`set_initial_context('Default Initial Condensed')\`
|
|
33
|
+
### Example \`.rc.md\` File (\`sample-feature.rc.md\`)
|
|
39
34
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- **Usage:** The prompt string can be a single line using single quotes (\`'\`) or a multi-line string using backticks (\`\`). Each \`send_and_wait\` represents one step.
|
|
43
|
-
|
|
44
|
-
### Comments
|
|
45
|
-
|
|
46
|
-
- Lines starting with \`#\` are treated as comments and are ignored.
|
|
47
|
-
|
|
48
|
-
### Example \`.elf\` File (\`sample-feature.elf\`)
|
|
49
|
-
|
|
50
|
-
\`\`\`
|
|
51
|
-
# This script creates a new React component and adds it to the app.
|
|
52
|
-
# It uses a specific initial context, which is often not necessary.
|
|
53
|
-
set_initial_context('Default Initial Condensed')
|
|
35
|
+
\`\`\`markdown
|
|
36
|
+
Create a new React component file named Greeting.tsx in src/components. It should be a simple functional component that displays "Hello, World!".
|
|
54
37
|
|
|
55
|
-
|
|
38
|
+
$$$$
|
|
56
39
|
|
|
57
|
-
|
|
58
|
-
component in the main App component located at src/app/page.tsx.\`)
|
|
40
|
+
Now, import and render the new Greeting component in the main App component located at src/app/page.tsx.
|
|
59
41
|
\`\`\`
|
|
60
42
|
|
|
61
|
-
##
|
|
62
|
-
|
|
63
|
-
This file provides a user-friendly checklist that mirrors the steps in the \`.elf\` script. The UI uses this file to track and display progress.
|
|
64
|
-
|
|
65
|
-
### Format
|
|
43
|
+
## How It Works
|
|
66
44
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
|
|
45
|
+
1. **Execution**: When you run an orchestration, the system makes a temporary copy of your script.
|
|
46
|
+
2. **One Chunk at a Time**: It sends the content of the first chunk to the LLM.
|
|
47
|
+
3. **Auto-Apply**: The LLM's response is parsed, and the resulting file modifications are applied automatically.
|
|
48
|
+
4. **Consume and Continue**: After a chunk is successfully processed, it's removed from the temporary script. The engine then moves on to the next chunk.
|
|
49
|
+
5. **Completion**: The orchestration is complete when all chunks in the temporary script have been processed and removed.
|
|
71
50
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
\`\`\`markdown
|
|
75
|
-
[ ] Create a new React component file named Greeting.tsx in src/components. It should be a simple functional component that displays "Hello, World!".
|
|
76
|
-
[ ] Now, import and render the new Greeting component in the main App component located at src/app/page.tsx.
|
|
77
|
-
\`\`\`
|
|
51
|
+
This allows the orchestration to be resumable. If it's stopped, the temporary script file maintains the state of remaining tasks.
|
|
78
52
|
|
|
79
53
|
## Guidelines for Writing Prompts
|
|
80
54
|
|
|
81
|
-
- **Be Specific and Atomic
|
|
82
|
-
- **Sequential Logic
|
|
83
|
-
- **Assume \`auto_apply
|
|
84
|
-
- **Maintain Consistency:** The text in the \`.md\` checklist item must be identical to the prompt in the \`.elf\` file.
|
|
55
|
+
- **Be Specific and Atomic**: Each chunk should describe a single, clear, and verifiable step.
|
|
56
|
+
- **Sequential Logic**: Write chunks in the order they should be executed. The orchestration runs them sequentially and depends on the success of the previous step.
|
|
57
|
+
- **Assume \`auto_apply\`**: Remember that all actions generated by the LLM will be applied automatically. Write prompts that are safe for direct execution.
|
|
85
58
|
`;
|
|
86
59
|
let OrchestrationFsService = OrchestrationFsService_1 = class OrchestrationFsService {
|
|
87
60
|
constructor() {
|
|
@@ -102,21 +75,23 @@ let OrchestrationFsService = OrchestrationFsService_1 = class OrchestrationFsSer
|
|
|
102
75
|
}
|
|
103
76
|
}
|
|
104
77
|
getScriptPath(name) {
|
|
105
|
-
return path.join(this.orchestrationsDir, `${name}.
|
|
78
|
+
return path.join(this.orchestrationsDir, `${name}.rc.md`);
|
|
106
79
|
}
|
|
107
|
-
|
|
108
|
-
return path.join(this.orchestrationsDir, `${name}.md`);
|
|
80
|
+
getRunScriptPath(name) {
|
|
81
|
+
return path.join(this.orchestrationsDir, `${name}.run.rc.md`);
|
|
109
82
|
}
|
|
110
83
|
async listScripts() {
|
|
111
84
|
const entries = await fs.readdir(this.orchestrationsDir, {
|
|
112
85
|
withFileTypes: true,
|
|
113
86
|
});
|
|
114
|
-
const
|
|
115
|
-
.filter((e) => e.isFile() &&
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
87
|
+
const scriptFiles = entries
|
|
88
|
+
.filter((e) => e.isFile() &&
|
|
89
|
+
e.name.endsWith('.rc.md') &&
|
|
90
|
+
!e.name.endsWith('.run.rc.md'))
|
|
91
|
+
.map((e) => e.name.replace(/\.rc\.md$/, ''));
|
|
92
|
+
const scripts = await Promise.all(scriptFiles.map(async (name) => {
|
|
93
|
+
const content = await this.readScript(name);
|
|
94
|
+
return { name, content };
|
|
120
95
|
}));
|
|
121
96
|
return scripts;
|
|
122
97
|
}
|
|
@@ -127,65 +102,52 @@ let OrchestrationFsService = OrchestrationFsService_1 = class OrchestrationFsSer
|
|
|
127
102
|
}
|
|
128
103
|
catch (error) {
|
|
129
104
|
if (error.code === 'ENOENT') {
|
|
130
|
-
this.logger.log(`Script "${name}.
|
|
105
|
+
this.logger.log(`Script "${name}.rc.md" not found at path: ${scriptPath}`);
|
|
131
106
|
}
|
|
132
107
|
else {
|
|
133
108
|
this.logger.error(`Failed to read script: ${scriptPath}`, error.stack);
|
|
134
109
|
}
|
|
135
|
-
throw new common_1.NotFoundException(`Script "${name}.
|
|
110
|
+
throw new common_1.NotFoundException(`Script "${name}.rc.md" not found.`);
|
|
136
111
|
}
|
|
137
112
|
}
|
|
138
|
-
async
|
|
139
|
-
const
|
|
113
|
+
async readRunScript(name) {
|
|
114
|
+
const runScriptPath = this.getRunScriptPath(name);
|
|
140
115
|
try {
|
|
141
|
-
return await fs.readFile(
|
|
116
|
+
return await fs.readFile(runScriptPath, 'utf-8');
|
|
142
117
|
}
|
|
143
118
|
catch (error) {
|
|
144
119
|
if (error.code === 'ENOENT') {
|
|
145
120
|
return '';
|
|
146
121
|
}
|
|
147
|
-
this.logger.error(`Failed to read
|
|
122
|
+
this.logger.error(`Failed to read run script: ${runScriptPath}`, error.stack);
|
|
148
123
|
throw error;
|
|
149
124
|
}
|
|
150
125
|
}
|
|
151
|
-
async writeScript(name,
|
|
152
|
-
await fs.writeFile(this.getScriptPath(name),
|
|
153
|
-
await fs.writeFile(this.getTaskFilePath(name), taskFileContent, 'utf-8');
|
|
126
|
+
async writeScript(name, content) {
|
|
127
|
+
await fs.writeFile(this.getScriptPath(name), content, 'utf-8');
|
|
154
128
|
}
|
|
155
129
|
async deleteScript(name) {
|
|
156
130
|
await fs.unlink(this.getScriptPath(name));
|
|
157
131
|
try {
|
|
158
|
-
await fs.unlink(this.
|
|
132
|
+
await fs.unlink(this.getRunScriptPath(name));
|
|
159
133
|
}
|
|
160
134
|
catch (error) {
|
|
161
135
|
if (error.code !== 'ENOENT')
|
|
162
136
|
throw error;
|
|
163
137
|
}
|
|
164
138
|
}
|
|
165
|
-
async
|
|
166
|
-
const
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
if (taskLineIndex === -1) {
|
|
178
|
-
this.logger.warn(`Could not find task line for "${taskContent.substring(0, 100)}" in ${taskFilePath}`);
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
const line = lines[taskLineIndex];
|
|
182
|
-
if (isDone) {
|
|
183
|
-
lines[taskLineIndex] = line.replace('[ ]', '[x]');
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
lines[taskLineIndex] = line.replace('[x]', '[ ]');
|
|
187
|
-
}
|
|
188
|
-
await fs.writeFile(taskFilePath, lines.join('\n'), 'utf-8');
|
|
139
|
+
async cloneScriptForRun(name) {
|
|
140
|
+
const originalPath = this.getScriptPath(name);
|
|
141
|
+
const runPath = this.getRunScriptPath(name);
|
|
142
|
+
await fs.copyFile(originalPath, runPath);
|
|
143
|
+
}
|
|
144
|
+
async consumeNextChunk(name) {
|
|
145
|
+
const runScriptPath = this.getRunScriptPath(name);
|
|
146
|
+
const content = await this.readRunScript(name);
|
|
147
|
+
const parts = content.split('$$$$');
|
|
148
|
+
parts.shift();
|
|
149
|
+
const newContent = parts.join('$$$$').trim();
|
|
150
|
+
await fs.writeFile(runScriptPath, newContent, 'utf-8');
|
|
189
151
|
}
|
|
190
152
|
};
|
|
191
153
|
exports.OrchestrationFsService = OrchestrationFsService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-fs.service.js","sourceRoot":"","sources":["../../src/orchestration/orchestration-fs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAuE;AACvE,kCAAkC;AAClC,6BAA6B;AAE7B,MAAM,aAAa,GAAG
|
|
1
|
+
{"version":3,"file":"orchestration-fs.service.js","sourceRoot":"","sources":["../../src/orchestration/orchestration-fs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAuE;AACvE,kCAAkC;AAClC,6BAA6B;AAE7B,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCrB,CAAC;AAGK,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IAUjC;QATiB,WAAM,GAAG,IAAI,eAAM,CAAC,wBAAsB,CAAC,IAAI,CAAC,CAAC;QACjD,gBAAW,GAC1B,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QACpC,sBAAiB,GAAW,IAAI,CAAC,IAAI,CACpD,IAAI,CAAC,WAAW,EAChB,WAAW,EACX,gBAAgB,CACjB,CAAC;QAGA,IAAI,CAAC,6BAA6B,EAAE,CAAC;IACvC,CAAC;IAEO,KAAK,CAAC,6BAA6B;QACzC,IAAI,CAAC;YACH,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YAC5D,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;YAClE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;YACnE,MAAM,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QACzD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,iEA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AAa,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1C,IAAI,CAAC;YAEH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ;gBAAE,MAAM,KAAK,CAAC;QAC3C,CAAC;IACH,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,IAAY;QAClC,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC9C,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,IAAY;QACjC,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAE/C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACpC,KAAK,CAAC,KAAK,EAAE,CAAC;QAEd,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QAE7C,MAAM,EAAE,CAAC,SAAS,CAAC,aAAa,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;CACF,CAAA;AAzHY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;;GACA,sBAAsB,CAyHlC"}
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import { OrchestrationFsService } from './orchestration-fs.service';
|
|
2
|
-
export interface Command {
|
|
3
|
-
type: 'set_initial_context' | 'send_and_wait';
|
|
4
|
-
value: string;
|
|
5
|
-
originalLine: string;
|
|
6
|
-
}
|
|
7
1
|
export declare class OrchestrationParserService {
|
|
8
|
-
private readonly fsService;
|
|
9
2
|
private readonly logger;
|
|
10
|
-
constructor(
|
|
11
|
-
parseScript(scriptContent: string): Promise<
|
|
12
|
-
findResumeState(scriptName: string, allCommands: Command[]): Promise<{
|
|
13
|
-
commandIndex: number;
|
|
14
|
-
taskStepCounter: number;
|
|
15
|
-
}>;
|
|
3
|
+
constructor();
|
|
4
|
+
parseScript(scriptContent: string): Promise<string[]>;
|
|
16
5
|
}
|
|
@@ -12,67 +12,23 @@ var OrchestrationParserService_1;
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.OrchestrationParserService = void 0;
|
|
14
14
|
const common_1 = require("@nestjs/common");
|
|
15
|
-
const orchestration_fs_service_1 = require("./orchestration-fs.service");
|
|
16
15
|
let OrchestrationParserService = OrchestrationParserService_1 = class OrchestrationParserService {
|
|
17
|
-
constructor(
|
|
18
|
-
this.fsService = fsService;
|
|
16
|
+
constructor() {
|
|
19
17
|
this.logger = new common_1.Logger(OrchestrationParserService_1.name);
|
|
20
18
|
}
|
|
21
19
|
async parseScript(scriptContent) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
.split('\n')
|
|
25
|
-
.map((line) => line.replace(/#.*$/, ''))
|
|
26
|
-
.join('\n');
|
|
27
|
-
const commandRegex = /(set_initial_context\((['"])(.*?)\2\)|send_and_wait\(([`'"])([\s\S]*?)\4\))/g;
|
|
28
|
-
let match;
|
|
29
|
-
while ((match = commandRegex.exec(contentWithoutComments)) !== null) {
|
|
30
|
-
const fullMatch = match[1];
|
|
31
|
-
const value = (match[3] || match[5]).trim();
|
|
32
|
-
if (fullMatch.startsWith('set_initial_context')) {
|
|
33
|
-
commands.push({
|
|
34
|
-
type: 'set_initial_context',
|
|
35
|
-
value: value,
|
|
36
|
-
originalLine: fullMatch,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
else if (fullMatch.startsWith('send_and_wait')) {
|
|
40
|
-
commands.push({
|
|
41
|
-
type: 'send_and_wait',
|
|
42
|
-
value: value,
|
|
43
|
-
originalLine: fullMatch,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
20
|
+
if (!scriptContent || scriptContent.trim() === '') {
|
|
21
|
+
return [];
|
|
46
22
|
}
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const taskLines = taskFileContent
|
|
52
|
-
.split('\n')
|
|
53
|
-
.filter((line) => line.trim().startsWith('['));
|
|
54
|
-
const firstUncheckedIndex = taskLines.findIndex((line) => line.trim().startsWith('[ ]'));
|
|
55
|
-
const resumeTaskIndex = firstUncheckedIndex === -1 ? taskLines.length : firstUncheckedIndex;
|
|
56
|
-
if (resumeTaskIndex === 0) {
|
|
57
|
-
return { commandIndex: 0, taskStepCounter: 0 };
|
|
58
|
-
}
|
|
59
|
-
let commandIndex = 0;
|
|
60
|
-
let sendAndWaitCount = 0;
|
|
61
|
-
for (let i = 0; i < allCommands.length; i++) {
|
|
62
|
-
if (allCommands[i].type === 'send_and_wait') {
|
|
63
|
-
sendAndWaitCount++;
|
|
64
|
-
}
|
|
65
|
-
if (sendAndWaitCount === resumeTaskIndex) {
|
|
66
|
-
commandIndex = i + 1;
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return { commandIndex, taskStepCounter: resumeTaskIndex };
|
|
23
|
+
return scriptContent
|
|
24
|
+
.split('$$$$')
|
|
25
|
+
.map((chunk) => chunk.trim())
|
|
26
|
+
.filter((chunk) => chunk.length > 0);
|
|
71
27
|
}
|
|
72
28
|
};
|
|
73
29
|
exports.OrchestrationParserService = OrchestrationParserService;
|
|
74
30
|
exports.OrchestrationParserService = OrchestrationParserService = OrchestrationParserService_1 = __decorate([
|
|
75
31
|
(0, common_1.Injectable)(),
|
|
76
|
-
__metadata("design:paramtypes", [
|
|
32
|
+
__metadata("design:paramtypes", [])
|
|
77
33
|
], OrchestrationParserService);
|
|
78
34
|
//# sourceMappingURL=orchestration-parser.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-parser.service.js","sourceRoot":"","sources":["../../src/orchestration/orchestration-parser.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;
|
|
1
|
+
{"version":3,"file":"orchestration-parser.service.js","sourceRoot":"","sources":["../../src/orchestration/orchestration-parser.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AAG7C,IAAM,0BAA0B,kCAAhC,MAAM,0BAA0B;IAGrC;QAFiB,WAAM,GAAG,IAAI,eAAM,CAAC,4BAA0B,CAAC,IAAI,CAAC,CAAC;IAEvD,CAAC;IAEhB,KAAK,CAAC,WAAW,CAAC,aAAqB;QACrC,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YAClD,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,aAAa;aACjB,KAAK,CAAC,MAAM,CAAC;aACb,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;aAC5B,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACzC,CAAC;CACF,CAAA;AAfY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;;GACA,0BAA0B,CAetC"}
|
|
@@ -9,12 +9,11 @@ export declare class OrchestrationController {
|
|
|
9
9
|
listScripts(): Promise<{
|
|
10
10
|
scripts: {
|
|
11
11
|
name: string;
|
|
12
|
-
|
|
12
|
+
content: string;
|
|
13
13
|
}[];
|
|
14
14
|
}>;
|
|
15
15
|
getScript(scriptName: string): Promise<{
|
|
16
|
-
|
|
17
|
-
taskFileContent: string;
|
|
16
|
+
content: string;
|
|
18
17
|
}>;
|
|
19
18
|
createScript(dto: CreateOrchestrationScriptDto): Promise<void>;
|
|
20
19
|
updateScript(scriptName: string, dto: UpdateOrchestrationScriptDto): Promise<void>;
|
|
@@ -28,17 +28,14 @@ let OrchestrationController = class OrchestrationController {
|
|
|
28
28
|
return { scripts };
|
|
29
29
|
}
|
|
30
30
|
async getScript(scriptName) {
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
this.fsService.readTaskFile(scriptName),
|
|
34
|
-
]);
|
|
35
|
-
return { scriptContent, taskFileContent };
|
|
31
|
+
const content = await this.fsService.readScript(scriptName);
|
|
32
|
+
return { content };
|
|
36
33
|
}
|
|
37
34
|
async createScript(dto) {
|
|
38
|
-
return this.fsService.writeScript(dto.name, dto.
|
|
35
|
+
return this.fsService.writeScript(dto.name, dto.content);
|
|
39
36
|
}
|
|
40
37
|
async updateScript(scriptName, dto) {
|
|
41
|
-
return this.fsService.writeScript(scriptName, dto.
|
|
38
|
+
return this.fsService.writeScript(scriptName, dto.content);
|
|
42
39
|
}
|
|
43
40
|
async deleteScript(scriptName) {
|
|
44
41
|
return this.fsService.deleteScript(scriptName);
|
|
@@ -84,7 +81,7 @@ __decorate([
|
|
|
84
81
|
], OrchestrationController.prototype, "getScript", null);
|
|
85
82
|
__decorate([
|
|
86
83
|
(0, common_1.Post)(),
|
|
87
|
-
(0, common_1.HttpCode)(common_1.HttpStatus.
|
|
84
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.NO_CONTENT),
|
|
88
85
|
__param(0, (0, common_1.Body)()),
|
|
89
86
|
__metadata("design:type", Function),
|
|
90
87
|
__metadata("design:paramtypes", [orchestration_dto_1.CreateOrchestrationScriptDto]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration.controller.js","sourceRoot":"","sources":["../../src/orchestration/orchestration.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,mEAA+D;AAC/D,yEAAoE;AACpE,+DAIiC;AAI1B,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YACmB,oBAA0C,EAC1C,SAAiC;QADjC,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,cAAS,GAAT,SAAS,CAAwB;IACjD,CAAC;IAKE,AAAN,KAAK,CAAC,WAAW;QACf,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAEnD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACrD,OAAO,EAAE,OAAO,EAAE,CAAC;IACrB,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CAAsB,UAAkB;QACrD,MAAM,
|
|
1
|
+
{"version":3,"file":"orchestration.controller.js","sourceRoot":"","sources":["../../src/orchestration/orchestration.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,mEAA+D;AAC/D,yEAAoE;AACpE,+DAIiC;AAI1B,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YACmB,oBAA0C,EAC1C,SAAiC;QADjC,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,cAAS,GAAT,SAAS,CAAwB;IACjD,CAAC;IAKE,AAAN,KAAK,CAAC,WAAW;QACf,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAEnD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACrD,OAAO,EAAE,OAAO,EAAE,CAAC;IACrB,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CAAsB,UAAkB;QACrD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,CA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C,mBAAU,CAAC,UAAU,CAAC;;;;yDAG/B;AAIK;IAFL,IAAA,aAAI,EAAC,4BAA4B,CAAC;IAClC,IAAA,iBAAQ,EAAC,mBAAU,CAAC,UAAU,CAAC;;;;4DAG/B;AAIK;IAFL,IAAA,aAAI,EAAC,mBAAmB,CAAC;IACzB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,UAAU,CAAC;;;;uDAG/B;kCAnFU,uBAAuB;IADnC,IAAA,mBAAU,EAAC,gBAAgB,CAAC;qCAGc,4CAAoB;QAC/B,iDAAsB;GAHzC,uBAAuB,CAoFnC"}
|
|
@@ -15,7 +15,6 @@ const application_state_module_1 = require("../application-state/application-sta
|
|
|
15
15
|
const session_inputs_module_1 = require("../session-inputs/session-inputs.module");
|
|
16
16
|
const llm_responses_module_1 = require("../llm-responses/llm-responses.module");
|
|
17
17
|
const events_module_1 = require("../events/events.module");
|
|
18
|
-
const context_templates_module_1 = require("../context-templates/context-templates.module");
|
|
19
18
|
const sessions_module_1 = require("../sessions/sessions.module");
|
|
20
19
|
const orchestration_parser_service_1 = require("./orchestration-parser.service");
|
|
21
20
|
let OrchestrationModule = class OrchestrationModule {
|
|
@@ -26,7 +25,6 @@ exports.OrchestrationModule = OrchestrationModule = __decorate([
|
|
|
26
25
|
imports: [
|
|
27
26
|
application_state_module_1.ApplicationStateModule,
|
|
28
27
|
events_module_1.EventsModule,
|
|
29
|
-
context_templates_module_1.ContextTemplatesModule,
|
|
30
28
|
sessions_module_1.SessionsModule,
|
|
31
29
|
(0, common_1.forwardRef)(() => session_inputs_module_1.SessionInputsModule),
|
|
32
30
|
(0, common_1.forwardRef)(() => llm_responses_module_1.LlmResponsesModule),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration.module.js","sourceRoot":"","sources":["../../src/orchestration/orchestration.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,mEAA+D;AAC/D,yEAAqE;AACrE,yEAAoE;AACpE,4FAAuF;AACvF,mFAA8E;AAC9E,gFAA2E;AAC3E,2DAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"orchestration.module.js","sourceRoot":"","sources":["../../src/orchestration/orchestration.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,mEAA+D;AAC/D,yEAAqE;AACrE,yEAAoE;AACpE,4FAAuF;AACvF,mFAA8E;AAC9E,gFAA2E;AAC3E,2DAAuD;AACvD,iEAA6D;AAC7D,iFAA4E;AAkBrE,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAhB/B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,iDAAsB;YACtB,4BAAY;YACZ,gCAAc;YACd,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;YACrC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yCAAkB,CAAC;SACrC;QACD,SAAS,EAAE;YACT,4CAAoB;YACpB,iDAAsB;YACtB,yDAA0B;SAC3B;QACD,WAAW,EAAE,CAAC,kDAAuB,CAAC;QACtC,OAAO,EAAE,CAAC,4CAAoB,CAAC;KAChC,CAAC;GACW,mBAAmB,CAAG"}
|