diff --git a/.gitea/workflows/npm-publish.yml b/.gitea/workflows/npm-publish.yml new file mode 100644 index 0000000..73ab687 --- /dev/null +++ b/.gitea/workflows/npm-publish.yml @@ -0,0 +1,21 @@ +name: npm-publish + +on: + push: + tags: + - 'v*' + +jobs: + publish: + runs-on: apricot + steps: + - uses: actions/checkout@v4 + + - name: Publish to forge.black.local npm registry + run: | + chmod +x bin/* + printf '//forge.black.local/api/packages/lilith/npm/:_authToken=%s\n' "$NPM_TOKEN" > .npmrc + npm publish --registry http://forge.black.local/api/packages/lilith/npm/ + rm .npmrc + env: + NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/bin/rclaude b/bin/rclaude index 4ddcc13..d79c474 100755 --- a/bin/rclaude +++ b/bin/rclaude @@ -66,7 +66,8 @@ list_tmux_on() { # \tdisk\t\t> list_disk_on() { _host=$1 - _helper_dir=$(dirname "$0") + _self=$0; while [ -L "$_self" ]; do _self=$(readlink "$_self"); done + _helper_dir=$(dirname "$_self") if is_local "$_host"; then _raw=$("$_helper_dir/_claude-projects" 2>/dev/null || true) else diff --git a/package.json b/package.json new file mode 100644 index 0000000..5165237 --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "@lilith/session-tools", + "version": "0.1.0", + "description": "Durable Claude Code session management (rclaude, tssh, remote-run)", + "bin": { + "rclaude": "bin/rclaude", + "remote-run": "bin/remote-run", + "tssh": "bin/tssh" + }, + "files": [ + "bin" + ], + "publishConfig": { + "registry": "http://forge.black.local/api/packages/lilith/npm/" + } +}