tla-checker 0.4.2 → 0.5.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 CHANGED
@@ -259,15 +259,33 @@ if (result.dot) {
259
259
 
260
260
  ### Install
261
261
 
262
- The fastest path — install the published crate from crates.io (no clone needed):
262
+ Several paths are supported — pick whichever fits your toolchain.
263
+
264
+ **Homebrew (macOS, Linuxbrew)** — installs both `tla` and `tla-mcp`:
265
+
266
+ ```bash
267
+ brew install fabracht/tla/tla-mcp
268
+ ```
269
+
270
+ Requires the `homebrew-tla` tap to exist. The formula source lives at [`packaging/homebrew/tla-mcp.rb`](packaging/homebrew/tla-mcp.rb); [`packaging/homebrew/README.md`](packaging/homebrew/README.md) explains the one-time tap setup.
271
+
272
+ **Install script (Linux, macOS)** — downloads a prebuilt binary and verifies its SHA256, no Rust toolchain required:
273
+
274
+ ```bash
275
+ curl -fsSL https://raw.githubusercontent.com/fabracht/tla-rs/main/scripts/install.sh | bash
276
+ ```
277
+
278
+ Pass flags to scope the install: `--bin tla-mcp` for just the MCP server, `--version v0.4.3` to pin a release (releases prior to v0.4.3 do not ship a `SHA256SUMS` asset and are rejected), `--dir /usr/local/bin` for a system-wide install (requires `sudo`).
279
+
280
+ **Cargo (any platform with a Rust toolchain)**:
263
281
 
264
282
  ```bash
265
283
  cargo install tla-checker --bin tla-mcp
266
284
  ```
267
285
 
268
- Or download a pre-built binary from the [latest GitHub release](https://github.com/fabracht/tla-rs/releases/latest) (Linux, macOS Intel/Apple Silicon, Windows).
286
+ **GitHub release downloads** — prebuilt binaries for Linux x86_64, macOS x86_64, macOS arm64, and Windows x86_64 are attached to every [release](https://github.com/fabracht/tla-rs/releases/latest) as `tla-<platform>` and `tla-mcp-<platform>`.
269
287
 
270
- From a working copy:
288
+ **From a working copy**:
271
289
 
272
290
  ```bash
273
291
  cargo install --path . --bin tla-mcp
@@ -275,7 +293,14 @@ cargo install --path . --bin tla-mcp
275
293
 
276
294
  ### Register with your client
277
295
 
278
- Add to your MCP client config (Claude Code example, `~/.claude/mcp.json` or `claude_desktop_config.json`):
296
+ **Claude Code (community plugin marketplace)** — once `tla-mcp` is on PATH:
297
+
298
+ ```
299
+ /plugin marketplace add anthropics/claude-plugins-community
300
+ /plugin install tla-rs@claude-community
301
+ ```
302
+
303
+ **Manual registration (any MCP client)** — add to `~/.claude/mcp.json`, `claude_desktop_config.json`, or your client's equivalent:
279
304
 
280
305
  ```json
281
306
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tla-checker",
3
- "version": "0.4.2",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "description": "A TLA+ model checker compiled to WebAssembly",
6
6
  "license": "MIT OR Apache-2.0",
package/tla_checker.js CHANGED
@@ -114,6 +114,7 @@ export function check_spec_with_options(spec_source, options_json) {
114
114
  wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
115
115
  }
116
116
  }
117
+
117
118
  function __wbg_get_imports() {
118
119
  const import0 = {
119
120
  __proto__: null,
@@ -133,7 +134,8 @@ function getDataViewMemory0() {
133
134
  }
134
135
 
135
136
  function getStringFromWasm0(ptr, len) {
136
- return decodeText(ptr >>> 0, len);
137
+ ptr = ptr >>> 0;
138
+ return decodeText(ptr, len);
137
139
  }
138
140
 
139
141
  let cachedUint8ArrayMemory0 = null;
@@ -210,9 +212,8 @@ if (!('encodeInto' in cachedTextEncoder)) {
210
212
 
211
213
  let WASM_VECTOR_LEN = 0;
212
214
 
213
- let wasmModule, wasmInstance, wasm;
215
+ let wasmModule, wasm;
214
216
  function __wbg_finalize_init(instance, module) {
215
- wasmInstance = instance;
216
217
  wasm = instance.exports;
217
218
  wasmModule = module;
218
219
  cachedDataViewMemory0 = null;
Binary file