@glrs-dev/cli 1.0.0 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @glrs-dev/cli
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#33](https://github.com/iceglober/glrs/pull/33) [`b3a79cc`](https://github.com/iceglober/glrs/commit/b3a79cc0a9ad2f6247c4d889ee9a08a3cf0f8b41) Thanks [@iceglober](https://github.com/iceglober)! - Rewrite `packages/cli/README.md` as the single source of truth for CLI documentation. Document the bare-`glrs wt` interactive picker behavior (previously undocumented). Content for `glrs.dev/cli/` is now generated from this README via the docs-site custom content loader; there is no longer a separate site overview page to drift from.
8
+
3
9
  ## 1.0.0
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -6,33 +6,44 @@ Unified CLI for the [@glrs-dev](https://www.npmjs.com/org/glrs-dev) ecosystem. O
6
6
  npm i -g @glrs-dev/cli
7
7
  ```
8
8
 
9
+ Requires [Bun](https://bun.sh) ≥ 1.2.0 on PATH at runtime.
10
+
11
+ ## `glrs oc` — OpenCode agent harness
12
+
13
+ Dispatches to [`@glrs-dev/harness-plugin-opencode`](https://www.npmjs.com/package/@glrs-dev/harness-plugin-opencode) (bundled as a dependency). Resolves the bin via `require.resolve` → reads the `bin` field → spawns with argv forwarded.
14
+
9
15
  ```bash
10
- glrs oc install # OpenCode harness install
11
- glrs wt new feature # create a worktree
12
- glrs wt list # list worktrees across repos
13
- glrs wt switch # interactive picker
16
+ glrs oc install # install the OpenCode harness
17
+ glrs oc --help # full harness help
14
18
  ```
15
19
 
16
- Requires [Bun](https://bun.sh) on PATH at runtime.
17
-
18
20
  The `harness-opencode` bin remains available directly for power users who prefer the untagged entry point.
19
21
 
20
- ## How it works
22
+ ## `glrs wt` — worktree management
23
+
24
+ Five named subcommands:
25
+
26
+ ```bash
27
+ glrs wt new <name> # create a new git worktree
28
+ glrs wt list # list all worktrees for this repo
29
+ glrs wt switch # switch to a worktree by name
30
+ glrs wt delete <name> # delete a worktree
31
+ glrs wt cleanup # remove stale worktrees
32
+ ```
21
33
 
22
- The `glrs` binary has two subcommands:
34
+ **Bare invocation:** running `glrs wt` with no arguments in a TTY drops into an interactive picker — select a worktree to switch to without typing its name.
23
35
 
24
- - **`glrs oc <args>`** — dispatches to [`@glrs-dev/harness-plugin-opencode`](../harness-opencode/) (bundled as a dependency). Resolves the bin via `require.resolve(<package>/package.json)` → reads the `bin` field → spawns with argv forwarded.
25
- - **`glrs wt <args>`** — worktree management, handled natively. Commands: `new`, `list`, `switch`, `delete`, `cleanup`. Worktrees are stored in `~/.glorious/worktrees/<repo>/<name>/`.
36
+ Worktrees are stored in `~/.glorious/worktrees/<repo>/<name>/`.
26
37
 
27
38
  ## Philosophy
28
39
 
29
40
  - **Don't duplicate CLI logic.** `glrs oc` is a thin spawn wrapper around `harness-opencode`.
30
41
  - **One install, one thing to remember** for the harness + worktree workflow.
31
- - **Separate concerns stay separate.** The SSO credential tool [`@glrs-dev/assume`](../assume/) is a standalone Rust binary installed separately.
42
+ - **Separate concerns stay separate.** The SSO credential tool [`@glrs-dev/assume`](https://www.npmjs.com/package/@glrs-dev/assume) is a standalone Rust binary installed separately.
32
43
 
33
44
  ## Docs
34
45
 
35
- [glrs.dev](https://glrs.dev) — full ecosystem docs.
46
+ Full docs at [glrs.dev/cli/](https://glrs.dev/cli/) — generated from this README via the docs-site custom content loader.
36
47
 
37
48
  ## License
38
49
 
@@ -1850,7 +1850,7 @@ import { join as join8 } from "path";
1850
1850
  var APP_KEY = "A-US-3617699429";
1851
1851
  var ENDPOINT = "https://us.aptabase.com/api/v0/event";
1852
1852
  var PKG_NAME = "@glrs-dev/harness-plugin-opencode";
1853
- var PKG_VERSION = true ? "1.0.0" : "dev";
1853
+ var PKG_VERSION = true ? "1.0.1" : "dev";
1854
1854
  var DISABLED = process.env.HARNESS_OPENCODE_TELEMETRY === "0" || process.env.HARNESS_OPENCODE_TELEMETRY === "false" || process.env.DO_NOT_TRACK === "1" || process.env.CI === "true";
1855
1855
  var SESSION_ID = randomUUID();
1856
1856
  function getInstallId() {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glrs-dev/harness-plugin-opencode",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glrs-dev/cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Unified CLI for the @glrs-dev ecosystem — OpenCode agent harness dispatch + worktree management.",
5
5
  "license": "MIT",
6
6
  "repository": {