@lousy-agents/cli 2.1.0 → 2.2.1
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 +19 -4
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.js +29 -1
- package/dist/mcp-server.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -14636,6 +14636,15 @@ var dist = __webpack_require__(1198);
|
|
|
14636
14636
|
* })
|
|
14637
14637
|
* workflow.addJob(testJob)
|
|
14638
14638
|
* ```
|
|
14639
|
+
*
|
|
14640
|
+
* @example
|
|
14641
|
+
* ```typescript
|
|
14642
|
+
* // With custom output path
|
|
14643
|
+
* const workflow = new Workflow('deploy', {
|
|
14644
|
+
* name: 'Deploy',
|
|
14645
|
+
* on: { push: { branches: ['main'] } },
|
|
14646
|
+
* }, { outputPath: 'packages/app-a/.github/workflows' })
|
|
14647
|
+
* ```
|
|
14639
14648
|
*/
|
|
14640
14649
|
class Workflow {
|
|
14641
14650
|
workflow;
|
|
@@ -14643,6 +14652,11 @@ class Workflow {
|
|
|
14643
14652
|
* The filename of the workflow e.g. `main.yml`
|
|
14644
14653
|
*/
|
|
14645
14654
|
filename;
|
|
14655
|
+
/**
|
|
14656
|
+
* Custom output path for this workflow.
|
|
14657
|
+
* If set, overrides any config file settings.
|
|
14658
|
+
*/
|
|
14659
|
+
outputPath;
|
|
14646
14660
|
addEnvs(envs) {
|
|
14647
14661
|
if (this.workflow.env && typeof this.workflow.env === 'object')
|
|
14648
14662
|
this.workflow.env = {
|
|
@@ -14667,11 +14681,12 @@ class Workflow {
|
|
|
14667
14681
|
};
|
|
14668
14682
|
return this;
|
|
14669
14683
|
}
|
|
14670
|
-
constructor(filename, workflowProps) {
|
|
14684
|
+
constructor(filename, workflowProps, options) {
|
|
14671
14685
|
this.filename = filename;
|
|
14672
14686
|
this.workflow = {
|
|
14673
14687
|
...workflowProps,
|
|
14674
14688
|
};
|
|
14689
|
+
this.outputPath = options?.outputPath;
|
|
14675
14690
|
}
|
|
14676
14691
|
}
|
|
14677
14692
|
//# sourceMappingURL=index.js.map
|
|
@@ -29678,18 +29693,18 @@ function compileBody(buff) {
|
|
|
29678
29693
|
let returnStr = "";
|
|
29679
29694
|
for (; i < buffLength; i++) {
|
|
29680
29695
|
const currentBlock = buff[i];
|
|
29681
|
-
if (typeof currentBlock === "string") returnStr += "__eta.res+='" + currentBlock + "'
|
|
29696
|
+
if (typeof currentBlock === "string") returnStr += "__eta.res+='" + currentBlock + "';\n";
|
|
29682
29697
|
else {
|
|
29683
29698
|
const type = currentBlock.t;
|
|
29684
29699
|
let content = currentBlock.val || "";
|
|
29685
29700
|
if (config.debug) returnStr += "__eta.line=" + currentBlock.lineNo + "\n";
|
|
29686
29701
|
if (type === "r") {
|
|
29687
29702
|
if (config.autoFilter) content = "__eta.f(" + content + ")";
|
|
29688
|
-
returnStr += "__eta.res+=" + content + "
|
|
29703
|
+
returnStr += "__eta.res+=" + content + ";\n";
|
|
29689
29704
|
} else if (type === "i") {
|
|
29690
29705
|
if (config.autoFilter) content = "__eta.f(" + content + ")";
|
|
29691
29706
|
if (config.autoEscape) content = "__eta.e(" + content + ")";
|
|
29692
|
-
returnStr += "__eta.res+=" + content + "
|
|
29707
|
+
returnStr += "__eta.res+=" + content + ";\n";
|
|
29693
29708
|
} else if (type === "e") returnStr += content + "\n";
|
|
29694
29709
|
}
|
|
29695
29710
|
}
|