@typescape-ai/cli 1.9.18 → 1.9.21

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 CHANGED
@@ -4,16 +4,19 @@ Typescape CLI — agent-first review, finding, and rules workflows for Markdown.
4
4
 
5
5
  ## Requirements
6
6
 
7
- - [Bun](https://bun.sh/) 1.3.10+ (repository standard; Node package-manager flows are not supported here)
7
+ - [Bun](https://bun.sh/) 1.3.10+ or [Node.js](https://nodejs.org/) 18.17+
8
8
 
9
9
  ## Installation
10
10
 
11
11
  ```bash
12
- # Global install
12
+ # Global install with Bun
13
13
  bun add -g @typescape-ai/cli
14
14
 
15
- # Or install in a project
15
+ # Or install in a project with Bun
16
16
  bun add -D @typescape-ai/cli
17
+
18
+ # Node-based one-shot launch
19
+ npx -y @typescape-ai/cli
17
20
  ```
18
21
 
19
22
  Run without installing:
@@ -42,6 +45,10 @@ export TYPESCAPE_API_KEY=your-token-here
42
45
  typescape rules get --properties '{"doc_type":"procedure"}'
43
46
  ```
44
47
 
48
+ `rules get --format text` now prepends a metadata block with the bundle
49
+ `compiled_hash`, freshness, and applicability basis. Use `--format prompt`
50
+ when you need the raw prompt-friendly text only.
51
+
45
52
  4. Create a review:
46
53
 
47
54
  ```bash
@@ -54,6 +61,10 @@ typescape review create --file docs/README.md --reviewer alice@example.com
54
61
  typescape rules check --file docs/README.md --properties '{"doc_type":"procedure"}'
55
62
  ```
56
63
 
64
+ `rules check` exit codes are policy-aware: `0` means the check ran with no
65
+ blocking findings, `1` means the check ran and found blocking findings, `2`
66
+ is validation, `3` is network/auth, and `4` is a server error.
67
+
57
68
  6. Export feedback:
58
69
 
59
70
  ```bash
@@ -131,8 +142,8 @@ typescape review export --review rev_xxx
131
142
  | `project delete` | Start project deletion |
132
143
  | `project move` | Declare a project file-path move |
133
144
  | `project upload` | Upload files into a project batch |
134
- | `template create` | Create a reusable session template |
135
- | `template list` | List session templates |
145
+ | `template create` | Create a reusable review template |
146
+ | `template list` | List review templates |
136
147
  | `template get` | Get template detail |
137
148
  | `review-set create` | Create a multi-file review set |
138
149
  | `review-set list` | List review sets |
@@ -141,8 +152,8 @@ typescape review export --review rev_xxx
141
152
  | `review-set export` | Export a review set using compatibility-only schema=v1 |
142
153
  | `review-set status` | Evaluate aggregate review-set policy status |
143
154
  | `collection create` | Create a new collection |
144
- | `collection add` | Add sessions to a collection |
145
- | `collection get` | Get one collection with member sessions |
155
+ | `collection add` | Add reviews to a collection |
156
+ | `collection get` | Get one collection with member reviews |
146
157
  | `collection list` | List collections |
147
158
  | `collection update` | Update collection metadata or archive state |
148
159
  | `collection delete` | Archive a collection via the canonical PATCH surface |
package/bin/typescape ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env sh
2
+ set -eu
3
+
4
+ SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
5
+
6
+ if command -v node >/dev/null 2>&1; then
7
+ exec node "$SCRIPT_DIR/../dist/cli.js" "$@"
8
+ fi
9
+
10
+ if command -v bun >/dev/null 2>&1; then
11
+ exec bun "$SCRIPT_DIR/../dist/cli.js" "$@"
12
+ fi
13
+
14
+ echo "Typescape CLI requires Node.js (>=18) or Bun." >&2
15
+ echo "Install Node.js: https://nodejs.org/" >&2
16
+ echo "Install Bun: https://bun.sh/docs/installation" >&2
17
+ exit 127