Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
fd498f5
feat: implement first Spectre CLI, USB and phone output, and Copilot …
Anheledir Oct 23, 2026
6005515
build: lock dependencies, include runtime notices and clarify preview…
Anheledir Oct 23, 2026
4761b75
fix: retain unhandled errors at turn end and exercise Unicode paths
Anheledir Oct 23, 2026
d271735
ci: fix notice packaging and avoid duplicate pull request builds
Anheledir Oct 23, 2026
0b04550
feat: add iPhone QR pairing, protected phone links and local diagnostics
Anheledir Oct 23, 2026
f68ac24
feat: add native macOS and Linux credentials, Bash hooks and cross-pl…
Anheledir Oct 23, 2026
bb80da7
fix: make Unix hosts restartable and document platform support
Anheledir Oct 23, 2026
4ea740b
feat: add Codex, Claude and Kiro hooks with managed setup and host li…
Anheledir Oct 23, 2026
8d48d26
docs: document agent setup and host management; verify live log access
Anheledir Oct 23, 2026
1be4ed8
fix: detach Windows host handles and bound Linux CI package setup
Anheledir Oct 23, 2026
d5d7f72
fix: acknowledge host control replies before disconnecting Windows pipes
Anheledir Oct 23, 2026
f2f514d
fix: require an exact host control acknowledgement
Anheledir Oct 23, 2026
b91fb67
Add Dot/Pro animation studio, interactive command builder and offline…
Anheledir Oct 23, 2026
8210307
Accept leading JSON mode consistently for script commands
Anheledir Oct 23, 2026
c966088
Honor plain help output and synchronize terminal save checks
Anheledir Oct 23, 2026
95d4591
Keep redirected output plain under CI and drain PTYs during shutdown
Anheledir Oct 23, 2026
7d97293
Add verified GitHub release updates with staged replacement and rollback
Anheledir Oct 23, 2026
444767f
Preserve installation permissions and canonicalize native updater tes…
Anheledir Oct 23, 2026
1839c3d
Review architecture and delivery gates, fix updater and hook defects,…
Anheledir Oct 23, 2026
c90c973
Record current preview scope and expose CodeQL findings for review
Anheledir Oct 23, 2026
f1ada51
Harden archive extraction with canonical containment and expand cross…
Anheledir Oct 23, 2026
f23c1fe
Record successful native QA and clean security results for reviewed code
Anheledir Oct 23, 2026
36af1bc
Record applied GitHub security policy, active main rules and delivery…
Anheledir Oct 24, 2026
e132022
Keep published wiki security links valid after branch cleanup
Anheledir Oct 24, 2026
a48d6ad
Add session reset, explicit IPC version and consistent update status …
Anheledir Oct 24, 2026
125bfbd
Validate the public lower-camel update status schema in native smoke
Anheledir Oct 24, 2026
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
6 changes: 5 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ updates:
schedule:
interval: weekly
open-pull-requests-limit: 5
# Add NuGet updates when the first project and package manifests exist.
- package-ecosystem: nuget
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5
99 changes: 98 additions & 1 deletion .github/workflows/dotnet-ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: .NET CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
workflow_call:
permissions:
contents: read
concurrency:
Expand Down Expand Up @@ -42,18 +44,41 @@ jobs:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
env:
SIDEPULSE_NATIVE_VAULT_TESTS: '1'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6
with:
dotnet-version: 10.0.x
- name: Prepare isolated native credential vault
if: runner.os != 'Windows'
shell: bash
run: |
if [ "$RUNNER_OS" = 'Linux' ]; then
sudo apt-get update -qq -o Acquire::Retries=1 -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30
sudo apt-get install -y --no-install-recommends libsecret-tools gnome-keyring dbus-x11
bus_address=$(dbus-daemon --session --fork --print-address=1)
export DBUS_SESSION_BUS_ADDRESS="$bus_address"
echo "DBUS_SESSION_BUS_ADDRESS=$bus_address" >> "$GITHUB_ENV"
printf '%s' 'sidepulse-ci-only' | gnome-keyring-daemon --unlock --components=secrets
else
security default-keychain -d user > "$RUNNER_TEMP/sidepulse-previous-keychain"
security list-keychains -d user > "$RUNNER_TEMP/sidepulse-previous-search-list"
security create-keychain -p 'sidepulse-ci-only' "$RUNNER_TEMP/sidepulse-ci.keychain-db"
security default-keychain -d user -s "$RUNNER_TEMP/sidepulse-ci.keychain-db"
security list-keychains -d user -s "$RUNNER_TEMP/sidepulse-ci.keychain-db"
security unlock-keychain -p 'sidepulse-ci-only' "$RUNNER_TEMP/sidepulse-ci.keychain-db"
security set-keychain-settings -lut 21600 "$RUNNER_TEMP/sidepulse-ci.keychain-db"
fi
- name: Restore
env:
SOLUTION: ${{ needs.detect.outputs.solution }}
shell: pwsh
run: dotnet restore $env:SOLUTION
run: dotnet restore $env:SOLUTION --locked-mode
- name: Build
env:
SOLUTION: ${{ needs.detect.outputs.solution }}
Expand All @@ -64,3 +89,75 @@ jobs:
SOLUTION: ${{ needs.detect.outputs.solution }}
shell: pwsh
run: dotnet test $env:SOLUTION --configuration Release --no-build
- name: Exercise CLI and local host with simulated hardware
shell: pwsh
run: |
$binary = if ($IsWindows) { 'sidepulse-net.exe' } else { 'sidepulse-net' }
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"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
python scripts/animation_smoke.py "src/SidePulse.Cli/bin/Release/net10.0/$binary"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
python scripts/agent_smoke.py "src/SidePulse.Cli/bin/Release/net10.0/$binary"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Publish and exercise self-contained previews
shell: pwsh
run: |
$prefix = if ($IsWindows) { 'win' } elseif ($IsMacOS) { 'osx' } else { 'linux' }
$native = "$prefix-$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())"
foreach ($architecture in @('x64', 'arm64')) {
$rid = "$prefix-$architecture"
$destination = "artifacts/$rid"
dotnet publish src/SidePulse.Cli -c Release -r $rid --self-contained true -o $destination
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
Copy-Item LICENSE,NOTICE.md $destination
Copy-Item -Recurse third-party $destination
New-Item -ItemType Directory -Force "$destination/third-party/dotnet" | Out-Null
Copy-Item "$env:DOTNET_ROOT/LICENSE.txt","$env:DOTNET_ROOT/ThirdPartyNotices.txt" "$destination/third-party/dotnet"
Copy-Item docs/wiki/Getting-Started.md $destination
$version = ([xml](Get-Content src/SidePulse.Cli/SidePulse.Cli.csproj -Raw)).Project.PropertyGroup.Version
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' }
python scripts/cli_smoke.py "$destination/$binary"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
python scripts/animation_smoke.py "$destination/$binary"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
python scripts/update_smoke.py "$destination/$binary"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
python scripts/agent_smoke.py "$destination/$binary"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
if ($IsWindows) {
Compress-Archive -Path "$destination/*" -DestinationPath "artifacts/sidepulse-net-$rid.zip"
} else {
tar -czf "artifacts/sidepulse-net-$rid.tar.gz" -C $destination .
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
}
- name: Upload platform previews
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: sidepulse-net-${{ runner.os }}-preview
path: |
artifacts/*.zip
artifacts/*.tar.gz
retention-days: 14
- name: Remove temporary macOS keychain
if: always() && runner.os == 'macOS'
shell: bash
run: |
if [ -f "$RUNNER_TEMP/sidepulse-previous-keychain" ]; then
previous=$(cat "$RUNNER_TEMP/sidepulse-previous-keychain" | tr -d '"' | xargs)
security default-keychain -d user -s "$previous"
fi
if [ -f "$RUNNER_TEMP/sidepulse-previous-search-list" ]; then
keychains=()
while IFS= read -r keychain; do keychains+=("$keychain"); done < <(python3 -c 'import shlex,sys; print("\n".join(shlex.split(sys.stdin.read())))' < "$RUNNER_TEMP/sidepulse-previous-search-list")
security list-keychains -d user -s "${keychains[@]}"
fi
if [ -f "$RUNNER_TEMP/sidepulse-ci.keychain-db" ]; then
security delete-keychain "$RUNNER_TEMP/sidepulse-ci.keychain-db"
fi
60 changes: 60 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release
on:
push:
tags: ['v*']
workflow_dispatch:
permissions:
contents: read
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Require a version tag matching the application
env:
RELEASE_REF: ${{ github.ref }}
run: |
python3 - <<'PY'
import os, re, 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.')
PY
build:
needs: validate
uses: ./.github/workflows/dotnet-ci.yml
publish:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
actions: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Collect tested packages and write checksums
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RELEASE_RUN: ${{ github.run_id }}
run: |
gh run download "$RELEASE_RUN" --pattern 'sidepulse-net-*-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
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RELEASE_TAG: ${{ github.ref_name }}
run: |
flags=()
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[@]}"
77 changes: 77 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Security
on:
push:
branches: [main]
pull_request:
schedule:
- cron: '43 6 * * 2'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: security-${{ github.ref }}
cancel-in-progress: true
jobs:
codeql:
name: CodeQL (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: csharp
build-mode: manual
- language: python
build-mode: none
- language: actions
build-mode: none
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6
if: matrix.language == 'csharp'
with:
dotnet-version: 10.0.x
- uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Build C# for analysis
if: matrix.language == 'csharp'
run: |
dotnet restore --locked-mode
dotnet build --configuration Release --no-restore --no-incremental
- uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
with:
category: '/language:${{ matrix.language }}'
output: codeql-results
- name: Summarize scan findings
if: always()
run: |
python3 - <<'PYCODE'
import json
from pathlib import Path
for report in sorted(Path('codeql-results').glob('*.sarif')):
for run in json.loads(report.read_text()).get('runs', []):
for result in run.get('results', []):
locations = [item.get('physicalLocation', {}) for item in result.get('locations', [])]
print(json.dumps({'rule': result.get('ruleId'), 'message': result.get('message'), 'locations': locations}))
PYCODE
dependencies:
name: Dependency review
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
fail-on-severity: high
comment-summary-in-pr: never
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Contributing

SidePulse.NET is currently in concept review. Discuss significant design choices
before implementation. Keep the application free of C# scaffolding until the
concept and first milestone are approved.
SidePulse.NET has an initial implementation preview. Discuss significant design
changes before expanding the architecture. Keep implemented and verified behavior
clearly distinguished from the complete planned product.

## Changes and reviews

Expand All @@ -12,11 +12,11 @@ Update wiki sources in `docs/wiki` in the same pull request as behavior changes.
The main repository is the documentation source of truth; direct wiki edits need
to be brought back into it before the next automated publication.

## When implementation starts
## Implementation

Use .NET 10 LTS and Spectre.Console for presentation. Keep state reduction,
protocol logic and device transports independent of the terminal UI. Introduce
central package management and lock files with the first solution. Add meaningful
protocol logic and device transports independent of the terminal UI. Keep
package versions in `Directory.Packages.props` and commit updated lock files. Add meaningful
unit, transport-contract, hook-failure and hardware smoke tests as those areas arrive.

Rendered, interactive output is for people. Hook and JSON output must have no
Expand Down
10 changes: 10 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Deterministic>true</Deterministic>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
</Project>
12 changes: 12 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project>
<PropertyGroup><ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally></PropertyGroup>
<ItemGroup>
<PackageVersion Include="QRCoder" Version="1.8.1" />
<PackageVersion Include="System.Security.Cryptography.ProtectedData" Version="10.0.13" />
<PackageVersion Include="Spectre.Console" Version="0.57.2" />
<PackageVersion Include="Spectre.Console.Cli" Version="0.57.2" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageVersion Include="xunit" Version="2.9.3" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
</ItemGroup>
</Project>
56 changes: 56 additions & 0 deletions NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,59 @@ Peter Kuhar or InteliWEAR. No original branding artwork is included.
Spectre.Console and Spectre.Console.Cli are planned dependencies. Their licenses
must be recorded with other distributed third-party components when dependencies
are introduced. No Spectre package is included in this planning commit.

## First implementation preview

`src/SidePulse.Core/LedProgram.cs` adapts status animation profiles from the Python
Windows companion and the upstream LEDS.LED protocol. `DeviceTransport.cs` follows
the upstream virtual-file write contract and `PhoneBridge.cs` follows the APNS
bridge payload/channel contract. Reference: upstream revision above, files
`LEDS_FORMAT.md`, `src/sidepulse/device_writer.py` and `src/sidepulse/links.py`.
The retained upstream MIT notice applies to these adapted portions.

Spectre.Console, Spectre.Console.Cli and Spectre.Console.Ansi 0.57.2 are MIT
licensed dependencies, copyright Patrik Svensson, Phil Scott, Nils Andresen, Cédric Luthi and contributors.
Their repository license is retained in `third-party/spectre.console/LICENSE.md` and included in CI distribution artifacts.
Test packages are development dependencies and are not part of the application.

## Phone linking and credential storage

`Pairing.cs` and `PhoneLink.cs` adapt the QR URI, SSE registration and APNS token
normalization contracts from upstream `src/sidepulse/links.py` at the reference
revision above. `LinkStore.cs` and CLI link management are new .NET implementations.
The upstream MIT notice is retained with these adapted protocol portions.

QRCoder 1.8.1 is MIT licensed, copyright Raffael Herrmann and Shane Krueger.
Its original license is retained in `third-party/qrcoder/LICENSE.txt`.
System.Security.Cryptography.ProtectedData 10.0.13 and the Microsoft libraries
resolved with QRCoder are MIT licensed .NET components. Windows preview artifacts
include the .NET license and third-party notices in `third-party/dotnet`.

## Platform adapters

`PlatformSecrets.cs` and `MacKeychainVault.cs` are new implementations using native
OS credential APIs/helpers and .NET AES-GCM. No third-party source was copied for
these adapters. The credential APIs do not require a cloud account or token.

## Agent adapters and host lifecycle

`AgentEvents.cs`, `HookConfiguration.cs`, `HookInstallation.cs` and the associated
CLI host/agent commands are new .NET implementations based on the public provider
protocols linked in `docs/wiki/Agent-Integrations.md`. No provider application
source or transcript data is copied. The adapter tests use synthetic payloads.

## Animation studio and credits

`src/SidePulse.Core/Animations/*.LED` contains unchanged upstream animation assets
from `src/sidepulse/resources/animations/` at the reference revision above.
Copyright (c) 2026 Peter Kuhar, MIT. The retained upstream license accompanies
these assets. `Animation.cs` is a new managed interpreter based on that revision's
`LEDS_FORMAT.md`; it is an approximation and does not embed the firmware/WASM.

The offline dependency registry in `src/SidePulse.Cli/Dependencies.json` is derived
from committed NuGet locks and package metadata. License texts and notices for
Microsoft package dependencies are retained under `third-party/dotnet-packages`.
All seven resolved runtime packages, including transitive packages, appear in
`about credits` / `about licenses`. Self-contained runtime notices are additionally
included by CI under `third-party/dotnet`. No affiliate relationship is implied;
manufacturer links are ordinary URLs.
Loading
Loading