@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.
Files changed (35) hide show
  1. package/dist/{chunk-CNJ5KCDN.js → chunk-5CKPPEYP.js} +15 -15
  2. package/dist/{chunk-CNJ5KCDN.js.map → chunk-5CKPPEYP.js.map} +1 -1
  3. package/dist/{chunk-F7WTOQIQ.js → chunk-6FGCPMBU.js} +23 -3
  4. package/dist/chunk-6FGCPMBU.js.map +1 -0
  5. package/dist/{chunk-65CTEK2K.js → chunk-A5X2VF5G.js} +3 -3
  6. package/dist/{chunk-CJM3IU5Q.js → chunk-AOCGSFRM.js} +5 -5
  7. package/dist/{chunk-EMAYENG4.js → chunk-GC7I5SGK.js} +2 -2
  8. package/dist/{chunk-BGC75OVR.js → chunk-IGJNT457.js} +2 -2
  9. package/dist/{chunk-YW46VP57.js → chunk-MYITSQYV.js} +2 -2
  10. package/dist/{chunk-XIVS7N3V.js → chunk-NRKZJVPE.js} +2 -2
  11. package/dist/{chunk-ELQ23L4Z.js → chunk-ZEBQWBEU.js} +3 -3
  12. package/dist/cli.js +5 -5
  13. package/dist/{compose-B2IAO7YW.js → compose-AVX5RU67.js} +3 -3
  14. package/dist/{fix-runbook-JJN4HVIP.js → fix-runbook-6L5ZMA5G.js} +5 -5
  15. package/dist/{prompts-XMJXIITW.js → prompts-AGUYYIOM.js} +4 -4
  16. package/dist/{runbook-executor-TVV5EG6Q.js → runbook-executor-OJXJTN6A.js} +7 -7
  17. package/dist/{runbook-generator-4XKNV2B7.js → runbook-generator-UIHWBEYC.js} +8 -8
  18. package/dist/{server-5XARL5N7.js → server-MULT5ZWG.js} +12 -12
  19. package/dist/{yaml-patcher-32QBPXT2.js → yaml-patcher-GOCLYKZZ.js} +4 -4
  20. package/package.json +1 -1
  21. package/dist/chunk-F7WTOQIQ.js.map +0 -1
  22. /package/dist/{chunk-65CTEK2K.js.map → chunk-A5X2VF5G.js.map} +0 -0
  23. /package/dist/{chunk-CJM3IU5Q.js.map → chunk-AOCGSFRM.js.map} +0 -0
  24. /package/dist/{chunk-EMAYENG4.js.map → chunk-GC7I5SGK.js.map} +0 -0
  25. /package/dist/{chunk-BGC75OVR.js.map → chunk-IGJNT457.js.map} +0 -0
  26. /package/dist/{chunk-YW46VP57.js.map → chunk-MYITSQYV.js.map} +0 -0
  27. /package/dist/{chunk-XIVS7N3V.js.map → chunk-NRKZJVPE.js.map} +0 -0
  28. /package/dist/{chunk-ELQ23L4Z.js.map → chunk-ZEBQWBEU.js.map} +0 -0
  29. /package/dist/{compose-B2IAO7YW.js.map → compose-AVX5RU67.js.map} +0 -0
  30. /package/dist/{fix-runbook-JJN4HVIP.js.map → fix-runbook-6L5ZMA5G.js.map} +0 -0
  31. /package/dist/{prompts-XMJXIITW.js.map → prompts-AGUYYIOM.js.map} +0 -0
  32. /package/dist/{runbook-executor-TVV5EG6Q.js.map → runbook-executor-OJXJTN6A.js.map} +0 -0
  33. /package/dist/{runbook-generator-4XKNV2B7.js.map → runbook-generator-UIHWBEYC.js.map} +0 -0
  34. /package/dist/{server-5XARL5N7.js.map → server-MULT5ZWG.js.map} +0 -0
  35. /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-ELQ23L4Z.js";
20
+ } from "./chunk-ZEBQWBEU.js";
21
21
  import {
22
22
  log,
23
23
  promptSelect,
24
24
  promptText
25
- } from "./chunk-XIVS7N3V.js";
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-EMAYENG4.js";
48
+ } from "./chunk-GC7I5SGK.js";
49
49
  import {
50
50
  getLocale,
51
51
  t,
52
52
  tf
53
- } from "./chunk-F7WTOQIQ.js";
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("\u23F9 \u30AD\u30E3\u30F3\u30BB\u30EB\u3092\u8981\u6C42\u3057\u307E\u3057\u305F...");
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("\u23F8 \u4E00\u6642\u505C\u6B62\u3092\u8981\u6C42\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057\u3067\u505C\u6B62\u3057\u307E\u3059...");
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
- `--- \u4E00\u6642\u505C\u6B62 (\u30B9\u30C6\u30C3\u30D7 #${currentStepIndex}, URL: ${currentUrl}) ---`
1489
+ tf("generator.interventionPauseHeader", { stepIndex: currentStepIndex, url: currentUrl })
1490
1490
  );
1491
1491
  const action = await promptSelect(
1492
- "\u64CD\u4F5C\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",
1492
+ t("generator.interventionSelectAction"),
1493
1493
  [
1494
1494
  {
1495
1495
  value: "guidance",
1496
- label: "\u30AC\u30A4\u30C0\u30F3\u30B9\u3092\u5165\u529B\u3057\u3066\u7D9A\u884C",
1497
- hint: "AI\u306E\u63A2\u7D22\u65B9\u91DD\u3092\u4FEE\u6B63"
1496
+ label: t("generator.interventionSelectGuidance"),
1497
+ hint: t("generator.interventionSelectGuidanceHint")
1498
1498
  },
1499
- { value: "abort", label: "\u63A2\u7D22\u3092\u4E2D\u6B62" }
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("\u30AC\u30A4\u30C0\u30F3\u30B9 (AI\u3078\u306E\u6307\u793A)", {
1506
- validate: (v) => !v?.trim() ? "\u30AC\u30A4\u30C0\u30F3\u30B9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044" : void 0
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(`\u30AC\u30A4\u30C0\u30F3\u30B9\u3092\u8A18\u9332\u3057\u307E\u3057\u305F: "${guidanceText.trim()}"`);
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-CNJ5KCDN.js.map
1931
+ //# sourceMappingURL=chunk-5CKPPEYP.js.map