@cryptiklemur/lattice 1.27.1 → 1.28.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/install.sh ADDED
@@ -0,0 +1,71 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ REPO="cryptiklemur/lattice"
5
+ INSTALL_DIR="${LATTICE_INSTALL_DIR:-/usr/local/bin}"
6
+
7
+ main() {
8
+ local platform arch asset_name version download_url
9
+
10
+ platform="$(uname -s | tr '[:upper:]' '[:lower:]')"
11
+ arch="$(uname -m)"
12
+
13
+ case "$platform" in
14
+ linux) platform="linux" ;;
15
+ darwin) platform="darwin" ;;
16
+ *)
17
+ echo "Error: Unsupported platform: $platform"
18
+ exit 1
19
+ ;;
20
+ esac
21
+
22
+ case "$arch" in
23
+ x86_64|amd64) arch="x64" ;;
24
+ aarch64|arm64) arch="arm64" ;;
25
+ *)
26
+ echo "Error: Unsupported architecture: $arch"
27
+ exit 1
28
+ ;;
29
+ esac
30
+
31
+ asset_name="lattice-${platform}-${arch}"
32
+ echo "Detected: ${platform}-${arch}"
33
+
34
+ echo "Fetching latest release..."
35
+ local release_json
36
+ release_json="$(curl -fsSL "https://api.github.com/repos/${REPO}/releases/latest")"
37
+
38
+ version="$(echo "$release_json" | grep '"tag_name"' | head -1 | sed 's/.*"tag_name": *"//;s/".*//')"
39
+ if [ -z "$version" ]; then
40
+ echo "Error: Could not determine latest version"
41
+ exit 1
42
+ fi
43
+ echo "Latest version: ${version}"
44
+
45
+ download_url="$(echo "$release_json" | grep "browser_download_url.*${asset_name}" | head -1 | sed 's/.*"browser_download_url": *"//;s/".*//')"
46
+ if [ -z "$download_url" ]; then
47
+ echo "Error: No binary found for ${asset_name} in ${version}"
48
+ echo "Available at: https://github.com/${REPO}/releases/tag/${version}"
49
+ exit 1
50
+ fi
51
+
52
+ local tmp_file
53
+ tmp_file="$(mktemp)"
54
+ echo "Downloading ${asset_name}..."
55
+ curl -fsSL "$download_url" -o "$tmp_file"
56
+ chmod +x "$tmp_file"
57
+
58
+ if [ -w "$INSTALL_DIR" ]; then
59
+ mv "$tmp_file" "${INSTALL_DIR}/lattice"
60
+ else
61
+ echo "Installing to ${INSTALL_DIR} (requires sudo)..."
62
+ sudo mv "$tmp_file" "${INSTALL_DIR}/lattice"
63
+ fi
64
+
65
+ echo ""
66
+ echo "Lattice ${version} installed to ${INSTALL_DIR}/lattice"
67
+ echo ""
68
+ echo "Run: lattice"
69
+ }
70
+
71
+ main
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptiklemur/lattice",
3
- "version": "1.27.1",
3
+ "version": "1.28.0",
4
4
  "description": "Multi-machine agentic dashboard for Claude Code. Monitor sessions, manage MCP servers and skills, orchestrate across mesh-networked nodes.",
5
5
  "license": "MIT",
6
6
  "author": "Aaron Scherer <me@aaronscherer.me>",
@@ -0,0 +1,2 @@
1
+ var assets = new Map<string, { b64: string; type: string }>();
2
+ export { assets };