@bluestep-systems/b6p-cli 0.1.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,44 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@bluestep-systems/b6p-cli` will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Changed
11
+
12
+ - Moved distribution from GitHub Packages to the **public npm registry**
13
+ (`registry.npmjs.org`, public access). Install with `npm i -g @bluestep-systems/b6p-cli` —
14
+ no authentication required. The `@bluestep-systems/b6p-core` dependency is now resolved
15
+ from public npm by version instead of a monorepo workspace symlink.
16
+ - Extracted into its own standalone repository
17
+ ([`b6p-cli`](https://github.com/Bluestep-Systems/b6p-cli)) with self-contained
18
+ `tsconfig`/eslint/prettier config and per-repo CI (validation) and publish (tag-triggered,
19
+ provenance) GitHub Actions workflows. No change to commands, flags, or runtime behavior.
20
+
21
+ ## [0.1.0] — 2026-05-27
22
+
23
+ Initial release of the standalone `b6p` CLI, extracted from the BlueStep VS Code
24
+ extension and sharing its core (`@bluestep-systems/b6p-core`) with the extension.
25
+
26
+ ### Added
27
+
28
+ - `b6p pull` — pull a script by WebDAV URL or via local file metadata.
29
+ - `b6p push` — push local files back to the platform, with optional
30
+ `--snapshot --message "…"` to record versioned history.
31
+ - `b6p audit` — diff local vs. server, with `--pull` to sync when differences are found.
32
+ - `b6p deploy` — multi-target deploy driven by a config file.
33
+ - `b6p setup` — emit the web-UI setup URL for a script.
34
+ - `b6p report` — report cached state.
35
+ - `--json` and `--yes` flags across commands for non-interactive use.
36
+
37
+ ### Fixed
38
+
39
+ - Guard against wrong-directory writes when pulling scripts whose names collide
40
+ across modules.
41
+
42
+ ### Changed
43
+
44
+ - Snapshot creation is now part of the unified push flow rather than a separate step.
package/README.md ADDED
@@ -0,0 +1,72 @@
1
+ # @bluestep-systems/b6p-cli
2
+
3
+ Command-line interface for managing [BlueStep](https://www.bluestep.net/) B6P
4
+ scripts: pull components from the platform, push changes back, audit local vs.
5
+ server, snapshot history, and deploy across targets.
6
+
7
+ The CLI shares its core implementation
8
+ ([`@bluestep-systems/b6p-core`](https://github.com/Bluestep-Systems/b6p-core)) with the
9
+ [VS Code extension](https://github.com/Bluestep-Systems/b6p-vscode) and can be used standalone in
10
+ terminals, CI pipelines, and scripts.
11
+
12
+ ## Installation
13
+
14
+ This package is published to the public [npm registry](https://www.npmjs.com/), so no authentication is
15
+ required to install it.
16
+
17
+ 1. Install globally:
18
+
19
+ ```bash
20
+ npm install -g @bluestep-systems/b6p-cli
21
+ ```
22
+
23
+ 2. Verify:
24
+
25
+ ```bash
26
+ b6p --help
27
+ ```
28
+
29
+ ## Commands
30
+
31
+ | Command | Purpose |
32
+ |---|---|
33
+ | `b6p pull <webdav-url>` | Pull a script by URL |
34
+ | `b6p pull --file <path>` | Pull using metadata stored with a local file |
35
+ | `b6p push --file <path>` | Push local files to the platform |
36
+ | `b6p push --file <path> --snapshot --message "…"` | Push and record a versioned snapshot |
37
+ | `b6p audit --file <path>` | Diff local vs. server |
38
+ | `b6p audit --file <path> --pull` | Audit and pull if differences found |
39
+ | `b6p deploy <config.json>` | Multi-target deploy from a config file |
40
+ | `b6p setup --file <path>` | Print the web-UI setup URL for a script |
41
+ | `b6p report` | Report cached state |
42
+
43
+ Most commands accept `--json` for machine-readable output and `--yes` to skip
44
+ interactive prompts. Run `b6p <command> --help` for full options.
45
+
46
+ ## WebDAV URL format
47
+
48
+ ```
49
+ https://<org>.bluestep.net/files/<id>/draft/
50
+ ```
51
+
52
+ When a file has been pulled previously, the WebDAV URL is stored in its
53
+ metadata — pass `--file <path>` instead of re-typing the URL.
54
+
55
+ ## Development
56
+
57
+ ```bash
58
+ npm install
59
+ npm run check-types # tsc --noEmit
60
+ npm run lint # eslint
61
+ npm run compile # esbuild → dist/cli.js (self-contained bundle)
62
+ npm run watch # esbuild --watch
63
+ npm run format # prettier --write
64
+ npm run clean # rm -rf dist
65
+ ```
66
+
67
+ `npm run compile` bundles the CLI and `@bluestep-systems/b6p-core` into a single self-contained
68
+ `dist/cli.js` (only Node builtins stay external), which is what the `b6p` binary runs.
69
+
70
+ ## License
71
+
72
+ MIT