@silbaram/artifact-driven-agent 0.1.6 → 0.1.7
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 +530 -516
- package/package.json +1 -1
- package/src/commands/run.js +65 -12
- package/src/commands/sessions.js +706 -445
- package/src/utils/sessionState.js +12 -2
|
@@ -21,7 +21,8 @@ function getEmptyStatus() {
|
|
|
21
21
|
pendingQuestions: [],
|
|
22
22
|
taskProgress: {},
|
|
23
23
|
notifications: [],
|
|
24
|
-
locks: {}
|
|
24
|
+
locks: {},
|
|
25
|
+
meta: {}
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -178,7 +179,7 @@ export function updateSessionStatus(sessionId, newStatus) {
|
|
|
178
179
|
/**
|
|
179
180
|
* 질문 추가
|
|
180
181
|
*/
|
|
181
|
-
export function addQuestion(from, to, question, options = [], priority = 'normal') {
|
|
182
|
+
export function addQuestion(from, to, question, options = [], priority = 'normal', metadata = {}) {
|
|
182
183
|
const status = readStatus();
|
|
183
184
|
|
|
184
185
|
const questionId = `Q${from.substring(0, 1).toUpperCase()}${String(status.pendingQuestions.length + 1).padStart(3, '0')}`;
|
|
@@ -194,6 +195,15 @@ export function addQuestion(from, to, question, options = [], priority = 'normal
|
|
|
194
195
|
createdAt: new Date().toISOString()
|
|
195
196
|
};
|
|
196
197
|
|
|
198
|
+
if (metadata && typeof metadata === 'object') {
|
|
199
|
+
if (metadata.action) {
|
|
200
|
+
newQuestion.action = metadata.action;
|
|
201
|
+
}
|
|
202
|
+
if (metadata.payload) {
|
|
203
|
+
newQuestion.payload = metadata.payload;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
197
207
|
status.pendingQuestions.push(newQuestion);
|
|
198
208
|
|
|
199
209
|
// 알림 추가
|