@klaudworks/rmr 0.4.0 → 0.4.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 +4 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11414,10 +11414,8 @@ import { cp, readdir as readdir2 } from "node:fs/promises";
|
|
|
11414
11414
|
import { existsSync } from "node:fs";
|
|
11415
11415
|
import { dirname as dirname2, resolve as resolve6 } from "node:path";
|
|
11416
11416
|
import { fileURLToPath } from "node:url";
|
|
11417
|
-
var __filename = "/home/runner/work/ralph-meets-rex/ralph-meets-rex/src/commands/install.ts";
|
|
11418
11417
|
function getExamplesWorkflowsDir() {
|
|
11419
|
-
const
|
|
11420
|
-
const thisDir = dirname2(thisFile);
|
|
11418
|
+
const thisDir = dirname2(fileURLToPath(import.meta.url));
|
|
11421
11419
|
const fromDist = resolve6(thisDir, "..", "examples", "workflows");
|
|
11422
11420
|
const fromSrc = resolve6(thisDir, "..", "..", "examples", "workflows");
|
|
11423
11421
|
if (existsSync(fromDist))
|
|
@@ -11452,7 +11450,9 @@ class InstallCommand extends Command {
|
|
|
11452
11450
|
throw new UserInputError(`Unknown workflow "${this.workflowName}".${hint}`);
|
|
11453
11451
|
}
|
|
11454
11452
|
if (existsSync(destinationDir)) {
|
|
11455
|
-
|
|
11453
|
+
ui.info(`Workflow already installed at .rmr/workflows/${this.workflowName}/`);
|
|
11454
|
+
ui.info(`Run it with: rmr run .rmr/workflows/${this.workflowName}/workflow.yaml --task "Describe your task"`);
|
|
11455
|
+
return 0;
|
|
11456
11456
|
}
|
|
11457
11457
|
await cp(sourceDir, destinationDir, { recursive: true, force: false, errorOnExist: true });
|
|
11458
11458
|
ui.success(`installed .rmr/workflows/${this.workflowName}/`);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klaudworks/rex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@klaudworks/rex",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.4.1",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"clipanion": "^4.0.0-rc.4",
|
|
12
12
|
"yaml": "^2.8.2"
|