create-harness-btp 0.1.0 → 0.1.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -9,7 +9,12 @@ function arg(name, def) {
9
9
  const i = process.argv.indexOf(name);
10
10
  return i !== -1 && process.argv[i + 1] ? process.argv[i + 1] : def;
11
11
  }
12
- const cmd = process.argv[2];
12
+ let cmd = process.argv[2];
13
+ if (!cmd || cmd.startsWith("-")) {
14
+ // Sin comando (p. ej. `pnpm dlx create-harness-btp --dest .`): asumir init.
15
+ process.argv.splice(2, 0, "init");
16
+ cmd = "init";
17
+ }
13
18
  const dest = arg("--dest", ".");
14
19
  const force = process.argv.includes("--force");
15
20
  const ref = arg("--ref", null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-harness-btp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Instala el harness MVP SAP BTP como carpeta AI/ en cualquier proyecto",
5
5
  "keywords": ["sap-btp", "opencode", "harness", "agents", "scaffolder", "create"],
6
6
  "homepage": "https://github.com/horangelmillan/harness-btp#readme",