@lazyingart/agintiflow 0.20.269 → 0.20.270

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazyingart/agintiflow",
3
- "version": "0.20.269",
3
+ "version": "0.20.270",
4
4
  "type": "module",
5
5
  "description": "AgInTiFlow is a project-aware agent workspace for hybrid wet-dry R&D, hardware-aware intelligence, software automation, and industrial workflows.",
6
6
  "license": "Apache-2.0",
@@ -200,6 +200,23 @@ async function main() {
200
200
  )) === JSON.stringify({ type: "function", function: { name: "apply_patch" } }),
201
201
  "DeepSeek constrained recovery relied on a prompt phrase instead of the offered tool contract"
202
202
  );
203
+ for (const [runtimeFlag, label] of [
204
+ ["generatedArtifactProducerPending", "generated artifact producer"],
205
+ ["requiredProjectCommandPending", "required project command"],
206
+ ["testVerificationPending", "retained verifier"],
207
+ ]) {
208
+ assert(
209
+ JSON.stringify(toolChoiceForProvider(
210
+ { provider: "deepseek", [runtimeFlag]: true },
211
+ [{ role: "user", content: "Continue the exact retained command phase." }],
212
+ [
213
+ { type: "function", function: { name: "run_command" } },
214
+ { type: "function", function: { name: "finish" } },
215
+ ]
216
+ )) === JSON.stringify({ type: "function", function: { name: "run_command" } }),
217
+ `DeepSeek ${label} phase allowed finish before its mandatory command`
218
+ );
219
+ }
203
220
  assert(
204
221
  JSON.stringify(toolChoiceForProvider(
205
222
  {
@@ -365,6 +365,10 @@ function deepSeekConstrainedActionRequired(config = {}, messages = []) {
365
365
  config.completionFreshMutationRequired === true ||
366
366
  config.patchContextRefreshRequired === true ||
367
367
  config.patchContextRepairRequired === true ||
368
+ config.generatedArtifactProducerPending === true ||
369
+ config.requiredProjectCommandPending === true ||
370
+ config.testVerificationPending === true ||
371
+ config.testFailureStalemateRevalidation === true ||
368
372
  (
369
373
  config.testFailureRepairActive === true &&
370
374
  config.testFailureRepairMutationRequired === true