@refrainai/cli 0.4.2 → 0.4.3
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/dist/{chunk-CNJ5KCDN.js → chunk-5CKPPEYP.js} +15 -15
- package/dist/{chunk-CNJ5KCDN.js.map → chunk-5CKPPEYP.js.map} +1 -1
- package/dist/{chunk-F7WTOQIQ.js → chunk-6FGCPMBU.js} +23 -3
- package/dist/chunk-6FGCPMBU.js.map +1 -0
- package/dist/{chunk-65CTEK2K.js → chunk-A5X2VF5G.js} +3 -3
- package/dist/{chunk-CJM3IU5Q.js → chunk-AOCGSFRM.js} +5 -5
- package/dist/{chunk-EMAYENG4.js → chunk-GC7I5SGK.js} +2 -2
- package/dist/{chunk-BGC75OVR.js → chunk-IGJNT457.js} +2 -2
- package/dist/{chunk-YW46VP57.js → chunk-MYITSQYV.js} +2 -2
- package/dist/{chunk-XIVS7N3V.js → chunk-NRKZJVPE.js} +2 -2
- package/dist/{chunk-ELQ23L4Z.js → chunk-ZEBQWBEU.js} +3 -3
- package/dist/cli.js +5 -5
- package/dist/{compose-B2IAO7YW.js → compose-AVX5RU67.js} +3 -3
- package/dist/{fix-runbook-JJN4HVIP.js → fix-runbook-6L5ZMA5G.js} +5 -5
- package/dist/{prompts-XMJXIITW.js → prompts-AGUYYIOM.js} +4 -4
- package/dist/{runbook-executor-TVV5EG6Q.js → runbook-executor-OJXJTN6A.js} +7 -7
- package/dist/{runbook-generator-4XKNV2B7.js → runbook-generator-UIHWBEYC.js} +8 -8
- package/dist/{server-5XARL5N7.js → server-MULT5ZWG.js} +12 -12
- package/dist/{yaml-patcher-32QBPXT2.js → yaml-patcher-GOCLYKZZ.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-F7WTOQIQ.js.map +0 -1
- /package/dist/{chunk-65CTEK2K.js.map → chunk-A5X2VF5G.js.map} +0 -0
- /package/dist/{chunk-CJM3IU5Q.js.map → chunk-AOCGSFRM.js.map} +0 -0
- /package/dist/{chunk-EMAYENG4.js.map → chunk-GC7I5SGK.js.map} +0 -0
- /package/dist/{chunk-BGC75OVR.js.map → chunk-IGJNT457.js.map} +0 -0
- /package/dist/{chunk-YW46VP57.js.map → chunk-MYITSQYV.js.map} +0 -0
- /package/dist/{chunk-XIVS7N3V.js.map → chunk-NRKZJVPE.js.map} +0 -0
- /package/dist/{chunk-ELQ23L4Z.js.map → chunk-ZEBQWBEU.js.map} +0 -0
- /package/dist/{compose-B2IAO7YW.js.map → compose-AVX5RU67.js.map} +0 -0
- /package/dist/{fix-runbook-JJN4HVIP.js.map → fix-runbook-6L5ZMA5G.js.map} +0 -0
- /package/dist/{prompts-XMJXIITW.js.map → prompts-AGUYYIOM.js.map} +0 -0
- /package/dist/{runbook-executor-TVV5EG6Q.js.map → runbook-executor-OJXJTN6A.js.map} +0 -0
- /package/dist/{runbook-generator-4XKNV2B7.js.map → runbook-generator-UIHWBEYC.js.map} +0 -0
- /package/dist/{server-5XARL5N7.js.map → server-MULT5ZWG.js.map} +0 -0
- /package/dist/{yaml-patcher-32QBPXT2.js.map → yaml-patcher-GOCLYKZZ.js.map} +0 -0
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
renderOptionsMarkdown,
|
|
18
18
|
sanitizeBrowserError,
|
|
19
19
|
sleep
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZEBQWBEU.js";
|
|
21
21
|
import {
|
|
22
22
|
log,
|
|
23
23
|
promptSelect,
|
|
24
24
|
promptText
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NRKZJVPE.js";
|
|
26
26
|
import {
|
|
27
27
|
getModel,
|
|
28
28
|
trackedGenerateObject,
|
|
@@ -45,12 +45,12 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
getAgentInstructions,
|
|
47
47
|
getInitialUserMessage
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-GC7I5SGK.js";
|
|
49
49
|
import {
|
|
50
50
|
getLocale,
|
|
51
51
|
t,
|
|
52
52
|
tf
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-6FGCPMBU.js";
|
|
54
54
|
|
|
55
55
|
// src/runbook-generator/exploration-agent.ts
|
|
56
56
|
import { stepCountIs } from "ai";
|
|
@@ -1441,7 +1441,7 @@ var InterventionController = class {
|
|
|
1441
1441
|
if (data[0] === 113 || data[0] === 3) {
|
|
1442
1442
|
if (!this.cancelRequested) {
|
|
1443
1443
|
this.cancelRequested = true;
|
|
1444
|
-
log.warn("
|
|
1444
|
+
log.warn(t("generator.interventionCancelRequested"));
|
|
1445
1445
|
this.options.onCancel?.();
|
|
1446
1446
|
}
|
|
1447
1447
|
return;
|
|
@@ -1449,7 +1449,7 @@ var InterventionController = class {
|
|
|
1449
1449
|
if (data[0] === 13 || data[0] === 112) {
|
|
1450
1450
|
if (!this.pauseRequested) {
|
|
1451
1451
|
this.pauseRequested = true;
|
|
1452
|
-
log.warn("
|
|
1452
|
+
log.warn(t("generator.interventionPauseRequested"));
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
1455
|
};
|
|
@@ -1486,24 +1486,24 @@ var InterventionController = class {
|
|
|
1486
1486
|
this.options.onPause?.();
|
|
1487
1487
|
try {
|
|
1488
1488
|
log.info(
|
|
1489
|
-
|
|
1489
|
+
tf("generator.interventionPauseHeader", { stepIndex: currentStepIndex, url: currentUrl })
|
|
1490
1490
|
);
|
|
1491
1491
|
const action = await promptSelect(
|
|
1492
|
-
"
|
|
1492
|
+
t("generator.interventionSelectAction"),
|
|
1493
1493
|
[
|
|
1494
1494
|
{
|
|
1495
1495
|
value: "guidance",
|
|
1496
|
-
label: "
|
|
1497
|
-
hint: "
|
|
1496
|
+
label: t("generator.interventionSelectGuidance"),
|
|
1497
|
+
hint: t("generator.interventionSelectGuidanceHint")
|
|
1498
1498
|
},
|
|
1499
|
-
{ value: "abort", label: "
|
|
1499
|
+
{ value: "abort", label: t("generator.interventionSelectAbort") }
|
|
1500
1500
|
]
|
|
1501
1501
|
);
|
|
1502
1502
|
if (action === "abort") {
|
|
1503
1503
|
return { action: "abort" };
|
|
1504
1504
|
}
|
|
1505
|
-
const guidanceText = await promptText("
|
|
1506
|
-
validate: (v) => !v?.trim() ? "
|
|
1505
|
+
const guidanceText = await promptText(t("generator.interventionGuidancePrompt"), {
|
|
1506
|
+
validate: (v) => !v?.trim() ? t("generator.interventionGuidanceRequired") : void 0
|
|
1507
1507
|
});
|
|
1508
1508
|
const record = {
|
|
1509
1509
|
stepIndex: currentStepIndex,
|
|
@@ -1512,7 +1512,7 @@ var InterventionController = class {
|
|
|
1512
1512
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
1513
1513
|
};
|
|
1514
1514
|
this.interventions.push(record);
|
|
1515
|
-
log.success(
|
|
1515
|
+
log.success(tf("generator.interventionGuidanceRecorded", { text: guidanceText.trim() }));
|
|
1516
1516
|
return { action: "guidance", guidanceText: guidanceText.trim() };
|
|
1517
1517
|
} finally {
|
|
1518
1518
|
this.pauseRequested = false;
|
|
@@ -1928,4 +1928,4 @@ export {
|
|
|
1928
1928
|
generateExplorationReport,
|
|
1929
1929
|
generateGenerationReportFile
|
|
1930
1930
|
};
|
|
1931
|
-
//# sourceMappingURL=chunk-
|
|
1931
|
+
//# sourceMappingURL=chunk-5CKPPEYP.js.map
|