create-agentic-bp-ds 0.1.0 → 0.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/README.md +3 -1
- package/index.mjs +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Start a new prototype from the Agentic BP DS kit in one command.
|
|
|
6
6
|
npm create agentic-bp-ds@latest my-prototype
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
It downloads the
|
|
9
|
+
It downloads the kit release that matches the installer's version, installs it, and tells you how to start. Then:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
cd my-prototype
|
|
@@ -15,4 +15,6 @@ npm run dev
|
|
|
15
15
|
|
|
16
16
|
Open http://localhost:3000 to browse the catalog. Needs Node 20 or newer.
|
|
17
17
|
|
|
18
|
+
`@latest` gets the newest release. For an earlier one, name its version, like `npm create agentic-bp-ds@0.2.0 my-prototype`. Releases are listed at https://github.com/borisj74/agentic-bp-ds-kit/tags.
|
|
19
|
+
|
|
18
20
|
Kit repo: https://github.com/borisj74/agentic-bp-ds-kit
|
package/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// npm create agentic-bp-ds@latest [folder]
|
|
3
|
-
// Copies the
|
|
4
|
-
// it
|
|
3
|
+
// Copies the kit release that matches this installer's version (git tag v<version>) from GitHub into a new folder,
|
|
4
|
+
// installs it and tells you how to start. No dependencies: it downloads the tag's tarball with fetch and unpacks it
|
|
5
|
+
// with the system tar (macOS, Linux and Windows 10+). To release: tag the kit v<version>, then publish this package.
|
|
5
6
|
|
|
6
7
|
import { spawnSync } from "node:child_process";
|
|
7
8
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -10,7 +11,8 @@ import { basename, join, resolve } from "node:path";
|
|
|
10
11
|
import { createInterface } from "node:readline/promises";
|
|
11
12
|
|
|
12
13
|
const REPO = "borisj74/agentic-bp-ds-kit";
|
|
13
|
-
const
|
|
14
|
+
const { version: VERSION } = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8"));
|
|
15
|
+
const TARBALL = `https://codeload.github.com/${REPO}/tar.gz/refs/tags/v${VERSION}`;
|
|
14
16
|
// Files that belong to the kit's own repo, not to a prototype made from it.
|
|
15
17
|
const DROP = ["packages", "LICENSE"];
|
|
16
18
|
|