@polka-codes/cli 0.9.74 → 0.9.76
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/index.js +8 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37660,7 +37660,7 @@ var {
|
|
|
37660
37660
|
Help
|
|
37661
37661
|
} = import__.default;
|
|
37662
37662
|
// package.json
|
|
37663
|
-
var version = "0.9.
|
|
37663
|
+
var version = "0.9.76";
|
|
37664
37664
|
|
|
37665
37665
|
// src/commands/code.ts
|
|
37666
37666
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
@@ -69557,6 +69557,12 @@ ${content}`;
|
|
|
69557
69557
|
});
|
|
69558
69558
|
},
|
|
69559
69559
|
askFollowupQuestion: async (question, answerOptions) => {
|
|
69560
|
+
if (options.yes) {
|
|
69561
|
+
if (answerOptions.length > 0) {
|
|
69562
|
+
return answerOptions[0];
|
|
69563
|
+
}
|
|
69564
|
+
return "";
|
|
69565
|
+
}
|
|
69560
69566
|
if (answerOptions.length === 0) {
|
|
69561
69567
|
return await dist_default5({ message: question });
|
|
69562
69568
|
}
|
|
@@ -84965,6 +84971,7 @@ async function runWorkflow(workflow2, workflowInput, options) {
|
|
|
84965
84971
|
const excludeFiles = [".epic.yml", ...config4.excludeFiles ?? []];
|
|
84966
84972
|
const toolProvider = (options.getProvider ?? getProvider)({
|
|
84967
84973
|
excludeFiles,
|
|
84974
|
+
yes,
|
|
84968
84975
|
getModel: (tool3) => {
|
|
84969
84976
|
const toolConfig = config4.tools?.[tool3];
|
|
84970
84977
|
if (toolConfig === false) {
|