@vfarcic/dot-ai 0.15.0 → 0.16.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"answer-question.d.ts","sourceRoot":"","sources":["../../src/tools/answer-question.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAMhD,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AACzD,eAAO,MAAM,+BAA+B,8HAA4H,CAAC;AAGzK,eAAO,MAAM,gCAAgC;;;;CAI5C,CAAC;
|
|
1
|
+
{"version":3,"file":"answer-question.d.ts","sourceRoot":"","sources":["../../src/tools/answer-question.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAMhD,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AACzD,eAAO,MAAM,+BAA+B,8HAA4H,CAAC;AAGzK,eAAO,MAAM,gCAAgC;;;;CAI5C,CAAC;AA+eF;;GAEG;AACH,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,EAC7G,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,CAAC,CAmTxD"}
|
|
@@ -157,17 +157,18 @@ function validateAnswer(answer, question) {
|
|
|
157
157
|
* Get anti-cascade agent instructions for stage responses
|
|
158
158
|
*/
|
|
159
159
|
function getAgentInstructions(stage) {
|
|
160
|
+
const antiCascadeRule = 'CRITICAL ANTI-CASCADE RULE: When user says "skip" for ANY stage, only skip THAT specific stage and present the NEXT stage questions to the user. NEVER automatically skip multiple stages in sequence.';
|
|
160
161
|
switch (stage) {
|
|
161
162
|
case 'required':
|
|
162
|
-
return
|
|
163
|
+
return `${antiCascadeRule} Present these required questions to the user. All must be answered before proceeding.`;
|
|
163
164
|
case 'basic':
|
|
164
|
-
return
|
|
165
|
+
return `${antiCascadeRule} Present these questions to the user and wait for their response. Do NOT skip this stage unless the user explicitly says to skip THIS specific stage.`;
|
|
165
166
|
case 'advanced':
|
|
166
|
-
return
|
|
167
|
+
return `${antiCascadeRule} Present these questions to the user and wait for their response. Do NOT skip this stage unless the user explicitly says to skip THIS specific stage.`;
|
|
167
168
|
case 'open':
|
|
168
|
-
return
|
|
169
|
+
return `${antiCascadeRule} This is the final configuration stage. Present these questions to the user and wait for their response. Use "N/A" only if user explicitly states no additional requirements.`;
|
|
169
170
|
default:
|
|
170
|
-
return
|
|
171
|
+
return `${antiCascadeRule} Present questions to the user and wait for their response.`;
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
174
|
/**
|
|
@@ -321,7 +322,7 @@ function getStageGuidance(stage) {
|
|
|
321
322
|
case 'advanced':
|
|
322
323
|
return 'Answer questions in this stage or skip to proceed to the open stage. Do NOT try to generate manifests yet.';
|
|
323
324
|
case 'open':
|
|
324
|
-
return 'Use "N/A" if you have no additional requirements. Complete this stage before generating manifests.
|
|
325
|
+
return 'Use "N/A" if you have no additional requirements. Complete this stage before generating manifests.';
|
|
325
326
|
default:
|
|
326
327
|
return 'Please provide answers for this stage.';
|
|
327
328
|
}
|