@meistrari/tela-cli 0.1.0 → 0.1.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 +12 -0
- package/package.json +4 -2
- package/postinstall.sh +19 -0
package/README.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Tela CLI is a one-shot terminal tool for syncing Tela repositories, running local agents, preparing pushes, and applying commit feedback with Claude.
|
|
4
4
|
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun install -g @meistrari/tela-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This installs the package globally and adds a `tela` alias to your `~/.zshrc`. After installing, either open a new terminal or run:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
source ~/.zshrc
|
|
15
|
+
```
|
|
16
|
+
|
|
5
17
|
## Commands
|
|
6
18
|
|
|
7
19
|
### `setup`
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meistrari/tela-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tela": "cli.ts"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"cli.ts",
|
|
10
|
+
"postinstall.sh",
|
|
10
11
|
"src/**/*"
|
|
11
12
|
],
|
|
12
13
|
"scripts": {
|
|
13
14
|
"build": "bun build --compile ./cli.ts --outfile ./dist/tela",
|
|
15
|
+
"postinstall": "bash ./postinstall.sh",
|
|
14
16
|
"test": "bun test",
|
|
15
17
|
"typecheck": "bunx tsc --noEmit"
|
|
16
18
|
},
|
|
@@ -27,4 +29,4 @@
|
|
|
27
29
|
"patchedDependencies": {
|
|
28
30
|
"ink@6.2.3": "patches/ink@6.2.3.patch"
|
|
29
31
|
}
|
|
30
|
-
}
|
|
32
|
+
}
|
package/postinstall.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
ZSHRC="$HOME/.zshrc"
|
|
5
|
+
PKG_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
6
|
+
ALIAS_LINE="alias tela='bun run $PKG_DIR/cli.ts'"
|
|
7
|
+
MARKER="# tela-cli"
|
|
8
|
+
|
|
9
|
+
if [ ! -f "$ZSHRC" ]; then
|
|
10
|
+
touch "$ZSHRC"
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
# Remove any previous tela-cli entry
|
|
14
|
+
sed -i '' "/$MARKER/d" "$ZSHRC" 2>/dev/null || sed -i "/$MARKER/d" "$ZSHRC" 2>/dev/null || true
|
|
15
|
+
|
|
16
|
+
echo "$ALIAS_LINE $MARKER" >> "$ZSHRC"
|
|
17
|
+
|
|
18
|
+
echo "tela command added to $ZSHRC"
|
|
19
|
+
echo "Run 'source ~/.zshrc' or open a new terminal to use 'tela'"
|