Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/dotnet-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Exercise CLI and local host with simulated hardware
shell: pwsh
run: |
$binary = if ($IsWindows) { 'sidepulse-net.exe' } else { 'sidepulse-net' }
$binary = if ($IsWindows) { 'spn.exe' } else { 'spn' }
python scripts/cli_smoke.py "src/SidePulse.Cli/bin/Release/net10.0/$binary"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
python scripts/terminal_smoke.py "src/SidePulse.Cli/bin/Release/net10.0/$binary"
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
python scripts/package_manifest.py $destination $rid $version
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
if ($rid -eq $native) {
$binary = if ($IsWindows) { 'sidepulse-net.exe' } else { 'sidepulse-net' }
$binary = if ($IsWindows) { 'spn.exe' } else { 'spn' }
python scripts/cli_smoke.py "$destination/$binary"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
python scripts/animation_smoke.py "$destination/$binary"
Expand All @@ -133,16 +133,16 @@ jobs:
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
if ($IsWindows) {
Compress-Archive -Path "$destination/*" -DestinationPath "artifacts/sidepulse-net-$rid.zip"
Compress-Archive -Path "$destination/*" -DestinationPath "artifacts/spn-$rid.zip"
} else {
tar -czf "artifacts/sidepulse-net-$rid.tar.gz" -C $destination .
tar -czf "artifacts/spn-$rid.tar.gz" -C $destination .
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
}
- name: Upload platform previews
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: sidepulse-net-${{ runner.os }}-preview
name: spn-${{ runner.os }}-preview
path: |
artifacts/*.zip
artifacts/*.tar.gz
Expand Down
38 changes: 26 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Prepare release
on:
push:
tags: ['v*']
Expand All @@ -11,25 +11,36 @@ concurrency:
jobs:
validate:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Require a version tag matching the application
- name: Validate release version and notes
id: version
env:
RELEASE_REF: ${{ github.ref }}
RELEASE_EVENT: ${{ github.event_name }}
run: |
python3 - <<'PY'
import os, re, xml.etree.ElementTree as ET
import os, re, pathlib, xml.etree.ElementTree as ET
version = ET.parse('src/SidePulse.Cli/SidePulse.Cli.csproj').findtext('./PropertyGroup/Version')
if os.environ['RELEASE_REF'] != 'refs/tags/v' + version or not re.fullmatch(r'\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?', version):
raise SystemExit('Select/push a vVERSION tag matching the project version; build metadata is not used for release tags.')
if not re.fullmatch(r'\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?', version):
raise SystemExit('Invalid project release version.')
expected = 'refs/heads/main' if os.environ['RELEASE_EVENT'] == 'workflow_dispatch' else 'refs/tags/v' + version
if os.environ['RELEASE_REF'] != expected:
raise SystemExit('Dispatch on main, or push a matching vVERSION tag.')
if not pathlib.Path('docs/releases/' + version + '.md').is_file():
raise SystemExit('Versioned release notes are required.')
with open(os.environ['GITHUB_OUTPUT'], 'a') as output:
output.write('version=' + version + '\n')
PY
build:
needs: validate
uses: ./.github/workflows/dotnet-ci.yml
publish:
needs: build
draft:
needs: [validate, build]
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -44,17 +55,20 @@ jobs:
GH_REPO: ${{ github.repository }}
RELEASE_RUN: ${{ github.run_id }}
run: |
gh run download "$RELEASE_RUN" --pattern 'sidepulse-net-*-preview' --dir release-input
gh run download "$RELEASE_RUN" --pattern 'spn-*-preview' --dir release-input
mkdir release-files
find release-input -type f \( -name '*.zip' -o -name '*.tar.gz' \) -exec cp -n {} release-files/ \;
python3 scripts/release_checksums.py release-files
- name: Upload all assets before making the release visible
python3 scripts/verify_release.py release-files '${{ needs.validate.outputs.version }}'
- name: Create an unpublished release draft
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RELEASE_TAG: ${{ github.ref_name }}
RELEASE_VERSION: ${{ needs.validate.outputs.version }}
RELEASE_COMMIT: ${{ github.sha }}
run: |
flags=()
RELEASE_TAG="v$RELEASE_VERSION"
if [[ "$RELEASE_TAG" == *-* ]]; then flags+=(--prerelease); fi
gh release create "$RELEASE_TAG" --verify-tag --draft --title "SidePulse.NET ${RELEASE_TAG#v}" --generate-notes "${flags[@]}" release-files/*
gh release edit "$RELEASE_TAG" --draft=false "${flags[@]}"
gh release create "$RELEASE_TAG" --target "$RELEASE_COMMIT" --draft --title "SidePulse.NET $RELEASE_VERSION" --notes-file "docs/releases/$RELEASE_VERSION.md" "${flags[@]}" release-files/*
echo "Release draft prepared. Review downloads, notes and acceptance before publishing." >> "$GITHUB_STEP_SUMMARY"
58 changes: 31 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

An unofficial .NET companion for SidePulse, with a Spectre.Console terminal interface.

**Status: first C# implementation preview. Feature parity and hardware validation are still in progress.**
**Status: 0.1.0-beta.1 candidate. Feature parity and hardware validation are still in progress.**

The command is **`spn`**. See [beta notes and alpha migration](docs/releases/0.1.0-beta.1.md).

Start with [Getting started](docs/wiki/Getting-Started.md) for build, USB, phone delivery and Copilot CLI instructions.

Expand All @@ -12,7 +14,7 @@ an agent is working, waiting for input or finished.

## Preview functionality

- Cursor menus, script-command review/copy/export, plain/quiet/JSON output.
- Persistent interactive session, repeatable Send state, action palette, script-command copy/export and plain/quiet/JSON output.
- Copilot CLI, Codex, Claude Code, Kiro CLI V3 hooks and an OpenCode plugin with shared status aggregation.
- Writable USB/SD LED output, iPhone linking and native protected credentials.
- Dot/Pro animation simulation, custom editor, upstream patterns and state profiles.
Expand Down Expand Up @@ -69,7 +71,7 @@ The solution contains a portable core, a Spectre.Console CLI and behavioral test
Command groups include `devices`, `state`, `write`, `dashboard`, `host`, `agents`,
`link`, `animations`, `profiles`, `about`, `docs` and `update`. Use `--help` for
subcommands and `--dry-run` where supported before changing files or sending a program.
The command name `sidepulse-net` coexists with the existing Python port.
The command name `spn` coexists with the existing Python port.

QR pairing and protected token storage use DPAPI on Windows, Keychain on macOS
and Secret Service on Linux. Login-startup registration, firmware-verified simulator parity,
Expand All @@ -94,15 +96,15 @@ Contributions: [CONTRIBUTING.md](CONTRIBUTING.md). License: [MIT](LICENSE).
## Agent setup and background use

```shell
sidepulse-net agents install codex --dry-run
sidepulse-net agents install codex
sidepulse-net agents install claude
sidepulse-net agents install kiro
sidepulse-net agents install copilot
sidepulse-net agents install opencode
sidepulse-net host start --phone default
sidepulse-net host status
sidepulse-net host stop
spn agents install codex --dry-run
spn agents install codex
spn agents install claude
spn agents install kiro
spn agents install copilot
spn agents install opencode
spn host start --phone default
spn host status
spn host stop
```

See [agent integrations](docs/wiki/Agent-Integrations.md) for provider capabilities,
Expand All @@ -112,15 +114,15 @@ for logs and foreground use. Additional providers remain planned.
## Animation studio and scripting

```shell
sidepulse-net animations preview cyan-roll --both
sidepulse-net animations edit --file custom.LED --model dot
sidepulse-net animations validate custom.LED --quiet
sidepulse-net animations import personal --file custom.LED --model dot
sidepulse-net animations apply personal --model dot --phone default --brightness 40
sidepulse-net profiles set personal --state Working --pattern cyan-roll --brightness 40
sidepulse-net host start --phone default --profile personal --model dot
sidepulse-net about credits
sidepulse-net about licenses --full
spn animations preview cyan-roll --both
spn animations edit --file custom.LED --model dot
spn animations validate custom.LED --quiet
spn animations import personal --file custom.LED --model dot
spn animations apply personal --model dot --phone default --brightness 40
spn profiles set personal --state Working --pattern cyan-roll --brightness 40
spn host start --phone default --profile personal --model dot
spn about credits
spn about licenses --full
```

Run with no arguments in a terminal for arrow-key menus and guided setup. Review
Expand All @@ -137,11 +139,11 @@ licensed dependency credits. Browser opening requires `--open`.
## Verified updates

```shell
sidepulse-net update check
sidepulse-net update install --prerelease --dry-run
sidepulse-net host stop
sidepulse-net update install --prerelease
sidepulse-net update status
spn update check
spn update install --prerelease --dry-run
spn host stop
spn update install --prerelease
spn update status
```

The updater selects a published GitHub release for the current OS/architecture,
Expand All @@ -150,4 +152,6 @@ exits. A backup and startup probe support rollback. Use self-contained packages
with an installation manifest; older previews need one manual upgrade. Stop the
host first and confirm `installed` before restarting it. See
[updating and recovery](docs/wiki/Updating.md). Adding the release workflow does not
publish a release; a matching version tag explicitly triggers publishing.
publish a release. A matching version tag or manual Prepare release run on `main`
builds and verifies six archives, then creates an unpublished release draft.
Publishing the reviewed draft is a separate explicit release action.
72 changes: 72 additions & 0 deletions docs/releases/0.1.0-beta.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# SidePulse.NET 0.1.0-beta.1

First beta candidate. The command is now **`spn`** (`spn.exe` on Windows).
The product and repository remain SidePulse.NET. No old-name alias is included.

## Changes

- Interactive launches stay open after commands. Home, section navigation and a
searchable `/` action palette support repeated work; Esc at Home stays in the app.
- Send state keeps its output and Preview mode during the session. Choose a state
and press Enter to send again. Output selection lists connected devices and saved phones.
- Script commands leave simple arguments unquoted and escape shell-sensitive values.
Portable executable paths use an absolute invocation when `spn` is not on PATH.
- State, write, animation and host delivery select one mounted USB device, otherwise
the saved default or sole phone. Explicit targets never fall back on failure.
- Native OpenCode event plugin joins Copilot, Codex, Claude Code and Kiro integrations.

## Downloads and installation

Choose exactly one archive for your OS and architecture:

| OS | x64 | ARM64 |
|---|---|---|
| Windows | `spn-win-x64.zip` | `spn-win-arm64.zip` |
| macOS | `spn-osx-x64.tar.gz` | `spn-osx-arm64.tar.gz` |
| Linux | `spn-linux-x64.tar.gz` | `spn-linux-arm64.tar.gz` |

Verify the archive against `SHA256SUMS`, then extract the **complete archive** into
its own permanent directory. Windows suggestion: `%LOCALAPPDATA%\Programs\SidePulse.NET`;
macOS/Linux: a user-owned directory under `~/.local/share/SidePulse.NET`.
Run `.\spn.exe` in PowerShell or `./spn` on Unix. An optional manual user PATH entry
lets other terminals use `spn`; reopen terminals after changing PATH.

This beta uses self-contained directory packages, not single-file executables.
Do not copy the apphost alone: runtime files and `sidepulse-install.json` are required.
There is no automatic installer, PATH/profile modification or signing in this beta.
`spn docs --offline` and `spn about licenses --full` work without a network connection.

## Upgrade from the alpha preview

1. With the **old executable**, stop the host and uninstall each managed integration
using its existing `--config` override where applicable. Existing ownership checks
refuse modified files; preserve those files and merge them manually.
2. Extract the new complete package into its permanent directory. Keep the old copy
until the new setup is verified. Do not use the alpha updater to cross this rename.
3. Run `spn link list` and confirm saved phone aliases are present. Storage paths,
native credential identity, profiles and IPC identity are unchanged.
4. Reinstall integrations with `spn agents install <provider>` from the permanent
executable. Restart the agents and review their normal trust prompts.
5. Start the host, send one test state and verify the actual device display.
Remove obsolete downloaded files manually after verification.

Existing provider filenames such as `sidepulse-net.json` and `sidepulse-net.js`
remain ownership identifiers. They are not compatibility executables.

## Validation and remaining limits

Native CI builds/tests on Windows x64, Linux x64 and macOS ARM64, exercises generated
hooks/plugins, and tests update replacement and rollback with simulated hardware.
Other architecture packages are cross-built; they still need native acceptance.

Real device/firmware parity and each installed agent version need separate recorded
acceptance. Bridge HTTP success does not acknowledge the physical LED display.
Linux saved links require Secret Service; macOS uses Keychain; Windows uses DPAPI.

The persistent UI is an initial delivery slice: comprehensive saved settings,
first-run installation, automatic managed-hook repair and the full responsive frame
remain open in issues #17/#18. Existing advanced setup forms are still guided menus.
Updates require stopping the host and running outside the installation directory;
retain backups until `spn update status` confirms success.

This release remains a **draft** until its packages and acceptance have been reviewed.
30 changes: 15 additions & 15 deletions docs/wiki/Agent-Integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ and limitations. Unknown providers/events are not guessed from terminal text.
## Setup, inspection and removal

```shell
sidepulse-net agents list
sidepulse-net agents install copilot --dry-run
sidepulse-net agents install copilot
sidepulse-net agents install codex
sidepulse-net agents install claude
sidepulse-net agents install kiro
sidepulse-net agents install opencode --dry-run
sidepulse-net agents install opencode
sidepulse-net agents status claude --json
sidepulse-net agents uninstall claude --dry-run
sidepulse-net agents uninstall claude
spn agents list
spn agents install copilot --dry-run
spn agents install copilot
spn agents install codex
spn agents install claude
spn agents install kiro
spn agents install opencode --dry-run
spn agents install opencode
spn agents status claude --json
spn agents uninstall claude --dry-run
spn agents uninstall claude
```

Run the published executable, or supply its absolute path with `--exe`.
Expand Down Expand Up @@ -88,10 +88,10 @@ These are passive status hooks: their output never contains policy decisions.
## OpenCode

```shell
sidepulse-net agents install opencode
sidepulse-net host start --phone default
sidepulse-net agents status opencode --json
sidepulse-net agents uninstall opencode --dry-run
spn agents install opencode
spn host start --phone default
spn agents status opencode --json
spn agents uninstall opencode --dry-run
```

Restart OpenCode after installation. The plugin subscribes to native events:
Expand Down
26 changes: 13 additions & 13 deletions docs/wiki/Animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ output requires an explicit model. File transport still requires writable storag
this feature does not add direct USB or SD read transports.

```sh
sidepulse-net animations list
sidepulse-net animations preview cyan-roll --model dot
sidepulse-net animations preview --file custom.LED --model pro
sidepulse-net animations preview --file custom.LED --both
sidepulse-net animations validate custom.LED --quiet
sidepulse-net animations edit --file custom.LED --model dot
sidepulse-net animations import personal --file custom.LED --model dot
sidepulse-net animations export personal --model dot --output exported.LED
sidepulse-net animations apply personal --model dot --phone default --brightness 40
spn animations list
spn animations preview cyan-roll --model dot
spn animations preview --file custom.LED --model pro
spn animations preview --file custom.LED --both
spn animations validate custom.LED --quiet
spn animations edit --file custom.LED --model dot
spn animations import personal --file custom.LED --model dot
spn animations export personal --model dot --output exported.LED
spn animations apply personal --model dot --phone default --brightness 40
```

The editor supports guided color, per-LED color/hold, off, roll, brightness,
Expand Down Expand Up @@ -48,10 +48,10 @@ preview runs for 10 seconds by default; `--seconds` permits up to 600 seconds.
## Agent state profiles

```sh
sidepulse-net profiles set personal --state Working --pattern cyan-roll --brightness 40
sidepulse-net profiles set personal --state Waiting --pattern amber-pulse
sidepulse-net profiles show personal --json
sidepulse-net host start --phone default --profile personal --model dot
spn profiles set personal --state Working --pattern cyan-roll --brightness 40
spn profiles set personal --state Waiting --pattern amber-pulse
spn profiles show personal --json
spn host start --phone default --profile personal --model dot
```

Unassigned states retain the original status patterns. Profile brightness applies
Expand Down
4 changes: 2 additions & 2 deletions docs/wiki/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Provide a migration report and a way to undo new configuration.

## Commands and conflicts

Initially expose `sidepulse-net`. An optional `sidepulse` alias is a deliberate
choice because the user already has a working Python command by that name.
The executable is `spn` (`spn.exe` on Windows). No compatibility command or alias
is distributed. The Python `sidepulse` installation remains independent.
Detect competing hooks and writers in diagnostics, and offer targeted repair
rather than automatically deleting another application's configuration.

Expand Down
Loading
Loading