Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
a284774
test(hosts): drive daemon channel tests with pi --mode rpc frames
andrebrait Nov 18, 2026
d5d31d3
test: port remaining runner-protocol tests to pi --mode rpc
andrebrait Nov 18, 2026
2a5f91e
refactor(hosts): drop the TUI host socket and its adopted channels
andrebrait Nov 18, 2026
711d48b
fix(updates): install and verify the @ompweb-dev/tau package
andrebrait Nov 18, 2026
9e8da48
fix(rpc): report pi's settlement and queue the way the wrapper reads …
andrebrait Nov 18, 2026
b3c7c46
feat(queue): take pi's queue back whole
andrebrait Nov 18, 2026
2e419e1
feat(hosts): register server host tools in pi and route their calls
andrebrait Nov 18, 2026
268e5d4
fix(plugins): list configured pi packages that are not installed
andrebrait Nov 18, 2026
760fc33
ci: build, test and release without the omp runner
andrebrait Nov 18, 2026
e166bc9
fix(rpc): split pi's stdout at LF only
andrebrait Nov 18, 2026
a0879d8
fix(hosts): a prompt pi handled without a run releases its guard
andrebrait Nov 18, 2026
144a1e6
ci: test and release against pi 1.5.2
andrebrait Nov 18, 2026
d085a72
feat(btw): answer side questions in pi's companion extension
andrebrait Nov 18, 2026
dbdcabe
feat(edit): run history Edit through pi's navigateTree
andrebrait Nov 18, 2026
f0a66c7
feat(subagents): follow pi-subagents' children in the roster
andrebrait Nov 18, 2026
1768d36
fix(rpc): start the utility pi without omp's --no-lsp
andrebrait Nov 18, 2026
2c4896b
feat(messages): give pi's messages tau's client ids and origins
andrebrait Nov 18, 2026
c8206a5
test: give every test process its own temp directory
andrebrait Nov 18, 2026
6d3eb88
refactor(self-update): name the temporary update root tau-self-update
andrebrait Nov 18, 2026
dcb9129
refactor: rename ompweb names to tau
andrebrait Nov 18, 2026
938b139
refactor: drop the omp runner leftovers and ship the pi extension in …
andrebrait Nov 19, 2026
7c47662
refactor: use the pi binary names in the plugin and version routes
andrebrait Nov 19, 2026
26a99e8
feat(subagents): read pi-subagents child transcripts from their own s…
andrebrait Nov 19, 2026
dc4beb0
refactor(plugins): manage pi packages only, drop the enable toggle pi…
andrebrait Nov 19, 2026
69039c0
refactor(cluster): mirror pi's configuration; packages ride settings.…
andrebrait Nov 19, 2026
76edc29
refactor(hosts): drop the shared-credentials auth broker; every host …
andrebrait Nov 19, 2026
98d02e9
feat(auth): provider logins through pi's model runtime in the compani…
andrebrait Nov 19, 2026
ed24f0e
feat(auth): run every auth route on the selected host's daemon
andrebrait Nov 19, 2026
ffdad0b
feat(models): choose the host whose provider logins Settings manages
andrebrait Nov 19, 2026
5aae7ad
feat(pools): place a start only on a host logged in to its provider
andrebrait Nov 19, 2026
694878b
wip: drop the agents feature (in progress)
andrebrait Nov 19, 2026
32d40d2
refactor(settings): drop the Agents tab and its omp agents route
andrebrait Nov 19, 2026
2d36671
wip: drop provider usage (in progress)
andrebrait Nov 19, 2026
bd7acf7
refactor(usage): drop provider usage limits
andrebrait Nov 19, 2026
893008d
feat(skills): list skills from the directories pi reads
andrebrait Nov 19, 2026
33d1c83
wip: drop advisor mode (in progress)
andrebrait Nov 19, 2026
d5e74ef
wip: advisor removal tests (in progress)
andrebrait Nov 19, 2026
70d23c3
refactor(advisor): remove advisor mode
andrebrait Nov 19, 2026
8cece33
refactor(models): remove omp model roles and provider re-enabling
andrebrait Nov 19, 2026
afa8d0e
refactor(composer): remove the leftovers of omp word prediction
andrebrait Nov 19, 2026
51b334e
docs(agents): describe Stop as pi's clear_queue then abort
andrebrait Nov 19, 2026
ea57e3c
refactor(sessions): auto-name always derives the title
andrebrait Nov 19, 2026
6e11c41
refactor(stream): drop omp's delta switching; shape pi's deltas for t…
andrebrait Nov 19, 2026
4d5936b
fix(stream): leave a message frame that already carries an id as it came
andrebrait Nov 19, 2026
87d0c1d
refactor(settings): edit pi's settings.json keys only
andrebrait Nov 19, 2026
0b12637
test(daemon): drop the hello's auto-approve from omp's approval setting
andrebrait Nov 19, 2026
536a845
refactor(events): drop the browser WebSocket link, keep SSE only
andrebrait Nov 19, 2026
b5e431a
feat(trust): pass pi --approve only inside a registered workspace
andrebrait Nov 19, 2026
7001b1d
fix(mcp): stop sending /mcp as a prompt; drop live MCP status and act…
andrebrait Nov 19, 2026
d92d415
fix(fork): send pi's fork command, which answers like omp's branch
andrebrait Nov 19, 2026
9e9d976
refactor(rpc): drop omp commands pi does not have
andrebrait Nov 19, 2026
0ae5e51
docs: describe the SSE-only browser connection, project trust and rem…
andrebrait Nov 19, 2026
7ae4be7
test: follow the configuration-only MCP panel and the worker's SSE-on…
andrebrait Nov 19, 2026
b42d231
refactor(hosts): start the host link at protocol v1 and drop ompweb-e…
andrebrait Nov 19, 2026
1139b0b
test(hosts): follow protocol v1, piVersion and the removed legacy upg…
andrebrait Nov 19, 2026
b634937
docs(hosts): describe tau's link protocol v1 and the separately versi…
andrebrait Nov 19, 2026
423c93b
fix(hosts): fail a host update whose release has no preflight command
andrebrait Nov 19, 2026
dc6e4b7
docs(hosts): describe host.json's top-level pair as the daemon's prim…
andrebrait Nov 19, 2026
3047af5
refactor(hosts): update host software only over the maintenance API a…
andrebrait Nov 19, 2026
fccf106
wip: hub maintenance-only updates (in progress)
andrebrait Nov 19, 2026
da3cab7
refactor(pi): move lib/omp to lib/pi and rename omp-cli to pi-cli
andrebrait Nov 19, 2026
71a7212
refactor(api): rename the pi settings and version routes and drop the…
andrebrait Nov 19, 2026
ce7f178
fix(models): write the candidate config of a provider test to models.…
andrebrait Nov 19, 2026
99e504c
refactor: name pi in user-visible text, the pi-missing host status an…
andrebrait Nov 19, 2026
9ea4295
fix: default to pi's ~/.pi/agent directory in the service, tray and h…
andrebrait Nov 19, 2026
4d0994a
refactor(hosts): drop the update worker's paths for pre-tau updaters …
andrebrait Nov 19, 2026
db57734
refactor: rename omp-named identifiers, globals, events and temporary…
andrebrait Nov 19, 2026
3baefc4
refactor: name pi in server messages, labels and timing headers, and …
andrebrait Nov 19, 2026
86c11f8
docs(changelog): summarize the port to pi
andrebrait Nov 19, 2026
902b562
fix(files): keep pi's auth.json and mcp-auth.json out of the file vie…
andrebrait Nov 19, 2026
b9391f8
docs(agents): describe tau on pi in AGENTS.md
andrebrait Nov 19, 2026
df50acc
docs: update DESIGN.md and the docs for pi, and mark ompweb-era desig…
andrebrait Nov 19, 2026
a4d1405
docs(readme): rewrite the READMEs for tau on pi
andrebrait Nov 19, 2026
393ec49
fix(sessions): name sessions with pi's session_info entries instead o…
andrebrait Nov 19, 2026
2347900
fix(mcp): edit the project MCP file pi reads, <cwd>/.pi/mcp.json
andrebrait Nov 19, 2026
bdda5df
fix(paths): keep the crash journal and media copies in <agent dir>/tau
andrebrait Nov 19, 2026
a94d32a
fix(uploads): name attached files by absolute path and drop the local…
andrebrait Nov 19, 2026
9fb163b
refactor(projects): remove the workspace profile field
andrebrait Nov 19, 2026
b272566
refactor(media): drop omp's blob store
andrebrait Nov 19, 2026
00aeb01
refactor(notifications): drop omp's retry_fallback_applied handling
andrebrait Nov 19, 2026
2a95027
refactor(sessions): drop omp's session-persistence move handling
andrebrait Nov 19, 2026
76bfe14
docs(rpc-manager): describe pi, not omp, in the session wrapper's com…
andrebrait Nov 19, 2026
f888268
docs: correct comments that state omp versions and behaviour as pi's
andrebrait Nov 19, 2026
64b1ae8
refactor(sessions): drop the client and server session-move machinery
andrebrait Nov 19, 2026
8b55768
fix(outbox): send prompts to pi beside a running shell command
andrebrait Nov 19, 2026
51dd78d
refactor: drop omp-only launch, env, notification and compaction left…
andrebrait Nov 19, 2026
a2b6bb5
wip: omp comment and key cleanup (in progress)
andrebrait Nov 19, 2026
bc4a085
refactor: correct or drop the remaining omp mentions and rename omp keys
andrebrait Nov 19, 2026
20ea529
fix(chat): read pi's thinking_level_changed level and drop model even…
andrebrait Nov 19, 2026
fc13219
refactor(chat): drop the live speed gauge and usage-limit badge pi ca…
andrebrait Nov 19, 2026
038e76a
refactor(outbox): stop holding steers while an ask is open
andrebrait Nov 19, 2026
0831259
refactor(dialogs): drop the formDialog and approve dialogs pi never o…
andrebrait Nov 19, 2026
5e6a727
refactor(hosts): remove the host URI bridge pi never uses
andrebrait Nov 19, 2026
bafb008
fix(paths): drop PI_CONFIG_DIR, which pi never reads
andrebrait Nov 19, 2026
149874a
fix(models): read and write pi's thinkingLevelMap
andrebrait Nov 19, 2026
e61acdd
refactor(models): drop the cold set_model --model spawn workaround
andrebrait Nov 19, 2026
dc5b390
fix(projects): reserve every pi flag that changes session, mode, exte…
andrebrait Nov 19, 2026
f59dadc
refactor(btw): drop the Unknown command and cancelled-before-start br…
andrebrait Nov 19, 2026
3aef3d2
test(projects): use a reserved pi flag in the launch-configuration fi…
andrebrait Nov 19, 2026
fc79317
fix(files): protect pi's credential files and tau's state directory
andrebrait Nov 19, 2026
203fdc0
fix(agent-env): allow XDG_DATA_HOME and XDG_CONFIG_HOME
andrebrait Nov 19, 2026
e955c85
wip: UI frame cleanup (in progress)
andrebrait Nov 19, 2026
eca2523
fix(models): let the thinking editor map pi's off level
andrebrait Nov 19, 2026
dcb8b33
fix(workspace): refuse Files-panel and workspace writes into pi's age…
andrebrait Nov 19, 2026
d855ff5
docs(contributing): rewrite for tau on pi
andrebrait Nov 19, 2026
4d537da
test(files): expect the agent directory to be read-only to uploads
andrebrait Nov 19, 2026
1c70297
fix(outbox): send an entry delivered with no run as a prompt
andrebrait Nov 20, 2026
c9b9c9e
fix(pi): never give a refused prompt's id to the next user message
andrebrait Nov 20, 2026
64a8e65
fix(pools): keep a worker whose logins are unknown eligible
andrebrait Nov 20, 2026
c26feca
fix(pi): refuse to start pi without tau's extension
andrebrait Nov 20, 2026
5ec51e4
fix(security): refuse messages that run tau's /tau_* commands
andrebrait Nov 20, 2026
936487e
fix(security): trust only workspaces the user added
andrebrait Nov 20, 2026
16d3bdc
fix(subagents): keep a detached child live when its call ends
andrebrait Nov 20, 2026
d40c958
fix(files): protect a missing agent dir and refuse removing one that …
andrebrait Nov 20, 2026
2026ed2
fix(pi): keep only the newest 32 pending message names
andrebrait Nov 20, 2026
236bec2
refactor: drop code orphaned by the pi port
andrebrait Nov 20, 2026
4af3e40
fix(files): check a clone's target, and fold case for the agent dir
andrebrait Nov 20, 2026
a533076
fix(pi): keep a rewritten prompt's id; refuse every extension call wi…
andrebrait Nov 20, 2026
be54a3d
fix(subagents): mark a detached child detached and leave it out of ru…
andrebrait Nov 20, 2026
9094214
docs(outbox): say why an idle entry goes as a bare prompt
andrebrait Nov 20, 2026
db634f5
fix(pi): bind names only to prompts pi admits, in order; keep a mid-c…
andrebrait Nov 20, 2026
d76c89e
fix(pi): never swap ids between prompts in pi's preflight at once
andrebrait Nov 20, 2026
23f61ed
test(upgrade): ship tau's pi extension in the fake release and find p…
andrebrait Nov 20, 2026
97c9972
test(uploads): hold native publication after its receipt instead of o…
andrebrait Nov 20, 2026
48a44ed
test(daemon): drop the 15 s cap on the refused-upgrade test, which ta…
andrebrait Nov 20, 2026
1c6f8d6
test(pi): spawn Windows' pi.cmd through cmd.exe in the session rename…
andrebrait Nov 20, 2026
0106169
fix(worktree): canonicalize a registered workspace path before matchi…
andrebrait Nov 20, 2026
9a33716
fix(skills): read pi's trust.json as pi does: JS realpath, case-folde…
andrebrait Nov 20, 2026
b1c0c20
test(pi): let pi exit before removing its session directory
andrebrait Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
97 changes: 0 additions & 97 deletions .github/workflows/omp-runner.yml

This file was deleted.

29 changes: 7 additions & 22 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
runs-on: ubuntu-latest
env:
SHA: ${{ github.event.workflow_run.head_sha || github.sha }}
PI_VERSION: 1.5.2
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
Expand All @@ -40,34 +41,18 @@ jobs:

- run: npm ci
- run: npm run build
# The omp the runners compile against: the fork's newest integration build, not runner/omp-build.json's pin
# (not committed back). No such release or a runner that fails tsc against it fails the release.
- name: Find the newest omp integration build
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
sha=$(gh api repos/ompweb-dev/oh-my-pi/commits/integration-release --jq .sha)
tag=$(gh api --paginate 'repos/ompweb-dev/oh-my-pi/releases?per_page=100' --jq '.[].tag_name' \
| grep -E "^v[0-9]+\.[0-9]+\.[0-9]+-int\.[0-9]{12}\.g${sha:0:7}\$" | head -n 1 || true)
if [ -z "$tag" ]; then
echo "::error::ompweb-dev/oh-my-pi has no integration release for integration-release ($sha)"
exit 1
fi
echo "OMP_TAG=$tag" >> "$GITHUB_ENV"
# Without GH_TOKEN: bun install runs the omp packages' scripts.
- name: Pin the runner to it
run: npx bun runner/scripts/use-omp-build.ts "$OMP_TAG" && (cd runner && npx bun x tsc -p .)
- name: Install pi
run: npm install --global "@earendil-works/pi-coding-agent@$PI_VERSION"
- name: Pin the binary release identity
run: |
now=$(date -u +%s)
echo "RELEASE_TITLE=$(date -u -d "@$now" +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_ENV"
echo "RELEASE_TAG=$(date -u -d "@$now" +%Y%m%dT%H%M%SZ)-$(git rev-parse --short=10 "$SHA")" >> "$GITHUB_ENV"
- name: Build the release binaries
env:
OMP_WEB_RELEASE_TAG: ${{ env.RELEASE_TAG }}
TAU_RELEASE_TAG: ${{ env.RELEASE_TAG }}
run: sh scripts/build-release-binaries.sh
- run: npm run smoke -- --binary release/ompweb-linux-x64/ompweb
- run: npm run smoke -- --binary release/tau-linux-x64/tau

- name: Publish the prerelease
env:
Expand All @@ -77,7 +62,7 @@ jobs:
tag="$RELEASE_TAG"
subject=$(git log -1 --format=%s "$SHA")
# A draft first, so a failed upload never leaves a published prerelease missing archives.
gh release create "$tag" release/ompweb-*.tar.gz release/ompweb-*.zip \
gh release create "$tag" release/tau-*.tar.gz release/tau-*.zip \
--repo "$GITHUB_REPOSITORY" --target "$SHA" --draft --prerelease --title "$title" \
--notes "Binaries built from $GITHUB_REPOSITORY@$SHA ($subject), omp: ompweb-dev/oh-my-pi $OMP_TAG. Not a release: no npm package, no update notice."
--notes "Binaries built from $GITHUB_REPOSITORY@$SHA ($subject), tested with pi $PI_VERSION. Not a release: no npm package, no update notice."
gh release edit "$tag" --repo "$GITHUB_REPOSITORY" --draft=false
49 changes: 12 additions & 37 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

env:
TAG: ${{ github.ref_name }}
PI_VERSION: 1.5.2

permissions:
contents: write
Expand Down Expand Up @@ -34,63 +35,37 @@ jobs:

- run: npm install --global npm@^11.5.1
- run: npm ci
# The omp the runners compile against: the fork's newest integration build, not runner/omp-build.json's pin
# (not committed back). No such release or a runner that fails tsc against it fails the release. Pinned before
# the tests: they import the runner (lib/hosts/omp-socket.test.mjs), and must run against the omp that ships.
- name: Find the newest omp integration build
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
sha=$(gh api repos/ompweb-dev/oh-my-pi/commits/integration-release --jq .sha)
tag=$(gh api --paginate 'repos/ompweb-dev/oh-my-pi/releases?per_page=100' --jq '.[].tag_name' \
| grep -E "^v[0-9]+\.[0-9]+\.[0-9]+-int\.[0-9]{12}\.g${sha:0:7}\$" | head -n 1 || true)
if [ -z "$tag" ]; then
echo "::error::ompweb-dev/oh-my-pi has no integration release for integration-release ($sha)"
exit 1
fi
echo "OMP_TAG=$tag" >> "$GITHUB_ENV"
# Without GH_TOKEN: bun install runs the omp packages' scripts.
- name: Pin the runner to it
run: npx bun runner/scripts/use-omp-build.ts "$OMP_TAG" && (cd runner && npx bun x tsc -p .)
# The pi tau drives (`pi --mode rpc`), on PATH for the tests' live sessions, the smoke tests and preflight.
- name: Install pi
run: npm install --global "@earendil-works/pi-coding-agent@$PI_VERSION"
# Match Verify PR: allow isolated fixtures, never control of the runner's service.
- name: Allow isolated native fixture scopes
run: |
rule="polkit.addRule(function(action, subject) { if (action.id === 'org.freedesktop.systemd1.manage-units' && subject.user === '$(id -un)' && /\\.scope$/.test(action.lookup('unit') || '')) { return polkit.Result.YES; } });"
printf '%s\n' "$rule" | sudo tee /etc/polkit-1/rules.d/49-ompweb-fixture-scopes.rules >/dev/null
printf '%s\n' "$rule" | sudo tee /etc/polkit-1/rules.d/49-tau-fixture-scopes.rules >/dev/null
systemd-run --scope --quiet --collect --no-ask-password true
- run: npm test
- run: npm run build
# Builds the omp runners too, which the source smoke spawns from runner/release/. The archives leave them out:
# every install fetches its runner from this release (lib/omp/runner-fetch.ts), attached below.
- name: Build the release binaries
run: sh scripts/build-release-binaries.sh --no-runner
run: sh scripts/build-release-binaries.sh
- run: npm run smoke
# --omp: the draft release cannot serve the runner to the binary yet.
- run: npm run smoke -- --binary release/ompweb-linux-x64/ompweb --omp runner/release/ompweb-omp-linux-x64
- run: npm run smoke -- --binary release/tau-linux-x64/tau

- name: Create draft GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
if ! gh release view "$TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
node bin/generate-release-notes.js --tag "$TAG" --output release-notes.md
printf '\nomp: ompweb-dev/oh-my-pi %s\n' "$OMP_TAG" >> release-notes.md
printf '\nTested with pi %s (@earendil-works/pi-coding-agent).\n' "$PI_VERSION" >> release-notes.md
gh release create "$TAG" --repo "$GITHUB_REPOSITORY" --verify-tag --title "$TAG" --notes-file release-notes.md --draft
fi

# The runners, by the names and checksum listing lib/omp/runner-fetch.ts fetches (OMP_RUNNER_ASSET,
# OMP_RUNNER_CHECKSUMS), for binary and npm installs alike.
- name: Attach the binaries and the omp runners to the draft release
- name: Attach the binaries to the draft release
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
runners=(ompweb-omp-linux-x64 ompweb-omp-linux-arm64 ompweb-omp-darwin-x64 ompweb-omp-darwin-arm64 ompweb-omp-windows-x64.exe)
(cd runner/release && sha256sum "${runners[@]}" > ompweb-omp.sha256)
gh release upload "$TAG" release/ompweb-*.tar.gz release/ompweb-*.zip "${runners[@]/#/runner/release/}" runner/release/ompweb-omp.sha256 --repo "$GITHUB_REPOSITORY" --clobber
run: gh release upload "$TAG" release/tau-*.tar.gz release/tau-*.zip --repo "$GITHUB_REPOSITORY" --clobber

# Before npm: an npm install fetches its runner from this release, which a draft does not serve.
- name: Publish GitHub Release
env:
GH_TOKEN: ${{ github.token }}
Expand Down Expand Up @@ -125,10 +100,10 @@ jobs:

jq -n \
--arg body "$(jq -r '.body' <<<"$RELEASE_JSON")" \
--arg title "OMPWEB $TAG" \
--arg title "tau $TAG" \
--arg url "$(jq -r '.url' <<<"$RELEASE_JSON")" \
'{
username: "OMPWEB Releases",
username: "tau Releases",
embeds: [{
title: $title,
url: $url,
Expand Down
60 changes: 29 additions & 31 deletions .github/workflows/verify-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
PI_VERSION: 1.5.2

permissions:
contents: read
pull-requests: read
Expand Down Expand Up @@ -46,12 +49,12 @@ jobs:
node-version-file: .nvmrc
cache: npm

# The runner's own deps too: lib/hosts/omp-socket.test.mjs checks the host against runner/src/channel.ts.
- name: Install dependencies
run: |
npm ci
npx bun runner/scripts/use-omp-build.ts
npx bun install --cwd runner --frozen-lockfile
run: npm ci

# The pi tau drives (`pi --mode rpc`), on PATH for the tests' live sessions, the smoke tests and preflight.
- name: Install pi
run: npm install --global "@earendil-works/pi-coding-agent@$PI_VERSION"

- name: TypeScript typecheck
run: npm run typecheck
Expand All @@ -64,7 +67,7 @@ jobs:
if: runner.os == 'Linux'
run: |
rule="polkit.addRule(function(action, subject) { if (action.id === 'org.freedesktop.systemd1.manage-units' && subject.user === '$(id -un)' && /\\.scope$/.test(action.lookup('unit') || '')) { return polkit.Result.YES; } });"
printf '%s\n' "$rule" | sudo tee /etc/polkit-1/rules.d/49-ompweb-fixture-scopes.rules >/dev/null
printf '%s\n' "$rule" | sudo tee /etc/polkit-1/rules.d/49-tau-fixture-scopes.rules >/dev/null
systemd-run --scope --quiet --collect --no-ask-password true

# Do not pass pwsh's Core module search path to Windows PowerShell children used by the native tests.
Expand All @@ -86,69 +89,64 @@ jobs:
- name: Verify production build
run: npm run build

- name: Build the omp runner
run: npx bun runner/scripts/build-binary.ts

- name: Smoke test
run: npm run smoke

# The release binary for this runner (the -baseline x64 build releases ship), from the client built above, with its
# own `ompweb host` daemon (scripts/build-binary.ts).
# own `tau host` daemon (scripts/build-binary.ts).
- name: Binary smoke test
shell: bash
run: |
if [ "$RUNNER_OS" = Windows ]; then
npx bun scripts/build-binary.ts --target bun-windows-x64-baseline
bin=release/ompweb-windows-x64/ompweb.exe
archive=release/ompweb-windows-x64.zip
bin=release/tau-windows-x64/tau.exe
archive=release/tau-windows-x64.zip
elif [ "$RUNNER_OS" = macOS ]; then
arch=$(node -p process.arch)
target="bun-darwin-$arch"
if [ "$arch" = x64 ]; then target="$target-baseline"; fi
npx bun scripts/build-binary.ts --target "$target"
bin="release/ompweb-darwin-$arch/ompweb"
archive="release/ompweb-darwin-$arch.tar.gz"
bin="release/tau-darwin-$arch/tau"
archive="release/tau-darwin-$arch.tar.gz"
else
npx bun scripts/build-binary.ts --target bun-linux-x64-baseline
bin=release/ompweb-linux-x64/ompweb
archive=release/ompweb-linux-x64.tar.gz
bin=release/tau-linux-x64/tau
archive=release/tau-linux-x64.tar.gz
fi
# The archive a host downloads must pass the updater's own size limits and checks.
npx bun scripts/check-host-release-archive.ts "$archive"
npm run smoke -- --binary "$bin"
# What the host updater checks on a new release before it switches (lib/hosts/update-worker.ts): the marker
# it finds the command by, then the command itself against the bundled ompweb-omp.
grep -qa ompweb-preflight-scratch- "$bin"
# it finds the command by, then the command itself against the pi on PATH.
grep -qa tau-preflight-scratch- "$bin"
node -e 'require("node:child_process").execFileSync(process.argv[1], ["preflight"], {stdio:"inherit",timeout:120000})' "$bin"

# Required on every supported runner, including macOS foreground. A skip fails the job.
- name: Native compiled coordinated upgrade and rollback
shell: bash
env:
OMPWEB_COMPILED_UPGRADE_E2E: "1"
run: |
export OMPWEB_UPGRADE_E2E_RUNNER="$(node -p "require('node:path').resolve('runner', 'release', 'ompweb-omp-' + (process.platform === 'win32' ? 'windows' : process.platform) + '-' + process.arch + (process.platform === 'win32' ? '.exe' : ''))")"
npx bun test --parallel --timeout 900000 lib/compiled-upgrade.integration.test.mjs
TAU_COMPILED_UPGRADE_E2E: "1"
run: npx bun test --parallel --timeout 900000 lib/compiled-upgrade.integration.test.mjs

- name: Packed install smoke test
shell: bash
run: |
npm pack --ignore-scripts
npm install -g --prefix "$RUNNER_TEMP/ompweb-prefix" ./kahme247-ompweb-*.tgz
npm run smoke -- --omp "$(ls runner/release/ompweb-omp-*)" --package "$(npm root -g --prefix "$RUNNER_TEMP/ompweb-prefix")/@kahme247/ompweb"
npm install -g --prefix "$RUNNER_TEMP/tau-prefix" ./ompweb-dev-tau-*.tgz
npm run smoke -- --package "$(npm root -g --prefix "$RUNNER_TEMP/tau-prefix")/@ompweb-dev/tau"

# Bun's postinstall does not run here: the launcher must fall back to @oven/bun-<os>-<arch> (spec R1).
- name: Packed install smoke test (install scripts disabled)
shell: bash
run: |
npm install -g --ignore-scripts --prefix "$RUNNER_TEMP/ompweb-prefix-no-scripts" ./kahme247-ompweb-*.tgz
npm run smoke -- --omp "$(ls runner/release/ompweb-omp-*)" --package "$(npm root -g --prefix "$RUNNER_TEMP/ompweb-prefix-no-scripts")/@kahme247/ompweb"
npm install -g --ignore-scripts --prefix "$RUNNER_TEMP/tau-prefix-no-scripts" ./ompweb-dev-tau-*.tgz
npm run smoke -- --package "$(npm root -g --prefix "$RUNNER_TEMP/tau-prefix-no-scripts")/@ompweb-dev/tau"

- name: Parse Windows PowerShell scripts (Windows only)
if: runner.os == 'Windows'
shell: pwsh
run: |
foreach ($f in 'scripts/windows/omp-web-service.ps1', 'scripts/windows/omp-web-tray.ps1') {
foreach ($f in 'scripts/windows/tau-service.ps1', 'scripts/windows/tau-tray.ps1') {
$e = $null
[System.Management.Automation.Language.Parser]::ParseFile((Resolve-Path $f).Path, [ref]$null, [ref]$e) | Out-Null
if ($e) { $e; exit 1 }
Expand All @@ -157,10 +155,10 @@ jobs:
- name: Verify Windows System Tray & Shortcuts (Windows only)
if: runner.os == 'Windows'
run: |
node bin/omp-web-tray.js --status
node bin/omp-web-tray.js --install
node bin/omp-web-tray.js --status
node bin/omp-web-tray.js --uninstall
node bin/tau-tray.js --status
node bin/tau-tray.js --install
node bin/tau-tray.js --status
node bin/tau-tray.js --uninstall

pr-rules:
name: PR Rules & Quality Gates
Expand Down
2 changes: 1 addition & 1 deletion .serena/project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# the name by which the project can be referenced within Serena/when chatting with the LLM.
project_name: "ompweb"
project_name: "tau"

# list of language servers to start when using the LSP backend; choose from:
# ada al angular ansible astro
Expand Down
Loading
Loading