Skip to content

fix: dev.openab.computer as the default LaunchAgent label and names - #186

Closed
chaodu-agent wants to merge 8 commits into
mainfrom
docs/launchagent-dev-openab-computer
Closed

chaodu-agent wants to merge 8 commits into
mainfrom
docs/launchagent-dev-openab-computer

Conversation

@chaodu-agent

Copy link
Copy Markdown
Contributor

Makes dev.openab.computer the default LaunchAgent label and aligns the executable, bundle and pkg names with the v0.12.0 release (oab-computer).

Commits

  • 663d183 docs: make dev.openab.computer the default LaunchAgent label. Docs use dev.openab.computer as the default LaunchAgent label.
  • bb4c16c docs: name the macOS executable and pkg oab-computer (v0.12.0). Docs name the executable and pkg oab-computer, matching the v0.12.0 release.
  • a4d333f fix: install LaunchAgent dev.openab.computer under ~/.local/oab-computer. The installer writes the dev.openab.computer LaunchAgent and installs under ~/.local/oab-computer.
  • fd80257 refactor: bundle executable is oab-computer, not oab-instance-mcp. The app bundle's executable is renamed to oab-computer.
  • 942609e test: packaging check follows the oab-computer executable and bundle name. The packaging test expects the new executable and bundle name.
  • 8e77e30 test: create the switchboard config dir before writing fixtures. Tests create the switchboard config directory before writing fixture files.
  • 1d41300 fix: package-pkg skips the relocatable edit when pkgbuild omits the key. package-pkg.sh skips the BundleIsRelocatable edit, with a WARNING, when pkgbuild --analyze does not emit the key.

Verification

Run on a Mac from a clean git archive 1d41300 export:

  • swift build: exit 0
  • scripts/test-packaging.sh .build/debug/oab-instance-mcp: exit 0
  • swift test: exit 0 (264 tests, 0 failures)

Related issue

Display name issue: #185 (#185)

Open points

  • The release v0.12.0 ships bundle id dev.openab.computer, but this branch keeps dev.openab.instance-mcp in the scripts and tests. The bundle id moves TCC grants, so it is a pending decision.
  • On macOS 27.2.1, pkgbuild --analyze emits no BundleIsRelocatable key, so package-pkg.sh does not apply that setting there and prints a WARNING.
  • The display name issue is linked above.

Macmini installs use label dev.openab.computer and the token
~/.config/oab-computer/token. Update the macOS install, token and
LaunchAgent references in the docs to those names. Each changed doc
keeps one legacy note with the pre-rename label, program directory and
token path.

Changed files:
- README.md
- docs/releasing.md
- docs/requirements/authn.md

Verification:
- git diff --stat: only the three *.md files above, no non-doc paths.
- grep for the old names (*.md, excluding .agents/.build/.git/.worktrees):
  remaining hits are the three legacy notes plus open points (Linux
  docs, pw-mcp sub-label, state/log/switchboard paths, bundle id text,
  code paths). Code at HEAD still installs dev.openab.instance-mcp.
- No code, scripts, or the bundle id changed. Nothing compiled.
- README: title and rename note say the command and app are oab-computer
  (oab-computer.app ships in v0.12.0); the old claim that the executable
  keeps the oab-instance-mcp name is removed. The bundle id note now states
  that HEAD scripts use dev.openab.instance-mcp while v0.12.0 ships
  dev.openab.computer.
- README (macOS download step, pkg artifact) and docs/releasing.md
  (artifact table, example release command): oab-computer-VERSION-universal.pkg
  and .app.zip, matching gh release view v0.12.0 assets.

Checks: no build or test run (docs only). grep for executable names in the
two files: README line 259 'oab-computer --token-file', line 348
'/path/to/oab-computer.app/Contents/Resources/install-prebuilt.sh'. Remaining
oab-instance-mcp hits are the Linux tarball names, the logs path, the
switchboard config path, and the HEAD SwiftPM target paths, all left as-is.
- install-prebuilt.sh: LABEL=dev.openab.computer; program dir
  ~/.local/oab-computer; app oab-computer.app; token ~/.config/oab-computer/token.
  Legacy install (dev.openab.instance-mcp, ~/.local/oab-instance-mcp,
  ~/.config/oab-instance-mcp/token): bootout and remove its plist, and move
  its token to the new path when the new path is empty.
- pkg/postinstall: chown the new per-user paths and the new plist; legacy
  paths stay in the list.
- test-packaging.sh: expected install dir, plist label, token path, and the
  postinstall grep follow the new names. Its bundle id assertions still expect
  dev.openab.instance-mcp.
- deploy.sh: no change needed; it delegates to install-prebuilt.sh.
- Bundle id unchanged (dev.openab.instance-mcp) in scripts and tests. Open:
  v0.12.0 ships dev.openab.computer.

Checks: bash -n on install-prebuilt.sh, pkg/postinstall, test-packaging.sh
(syntax only). Did not run test-packaging.sh (needs macOS pkgbuild/installer;
run in the test step). No compile.
The app bundle's executable (Contents/MacOS) and CFBundleExecutable are now
oab-computer, matching the shipped v0.12.0 bundle and the live install. The
bundle id and .app file name stay oab-instance-mcp (#63). Updates the
assembler, installer ProgramArguments and executable check, pkg payload check
and release verification to the new path. Not run on this host; verified on
macmini in the follow-up test commit.
…name

Checks the installed bundle's base name is oab-computer and that
Contents/MacOS/oab-computer is executable. The localized display name check
is removed here and tracked in a separate issue. Paths for the executable are
updated to match the rename in fd80257. Verified on macmini in the next step.
The packaging test wrote switchboard.url into ~/.config/oab-instance-mcp without
creating it. Nothing else creates that directory in the test's HOME, so the
write failed. Found on macmini; the earlier display-name failure hid it.
On this macOS (macmini), pkgbuild --analyze does not emit BundleIsRelocatable,
so the unconditional PlistBuddy Set failed. The script now skips the edit only
when the key is absent, and prints a WARNING that the relocatable setting was
not applied. Open point: the relocatable setting is not enforced on such macOS
releases; the package test still checks PackageInfo for <relocate>.
@chaodu-agent

Copy link
Copy Markdown
Contributor Author

Closing in favour of #187. This branch was built on the 0.10.1 tree (3a70be9). main already contains the rename it carried: label dev.openab.computer, ~/.local/oab-computer/oab-computer.app, executable oab-computer, oab-computer-* artifacts and bundle id dev.openab.computer, all from #117 and shipped in v0.12.0. Merging this branch would have reverted part of that. The only change main lacked was the package-pkg.sh BundleIsRelocatable handling, and #187 brings it over on top of current main, stricter than here. The display-name issue stays open as #185.

chaodu-agent added a commit that referenced this pull request Nov 29, 2026
…kg (#187)

pkgbuild --analyze on some macOS releases omits BundleIsRelocatable, and
the old `Set :0:BundleIsRelocatable false` then failed. package-pkg.sh now:
- fails (exit 70) when --analyze lists no :0 bundle at all;
- Sets the key to false when present, Adds it as bool false when absent;
- expands the built pkg and fails (exit 70, pkg removed) if PackageInfo
  lists a <bundle> under <relocate>. release.yml calls this script but not
  test-packaging.sh, so the release job now gets the v0.6.0 guard too.

Replaces #186, whose rename work main already ships in v0.12.0 (#117).

Verified on a macOS build host from a clean `git archive` of this tree
(80659ef), rsynced into the verify directory:
- swift build: exit 0
- swift test: exit 0, 856 XCTest tests, 5 skipped, 0 failures
- bash scripts/smoke.sh .build/debug/oab-computer: exit 0
- bash scripts/test-packaging.sh .build/debug/oab-computer: exit 0
  ("packaging smoke: OK (0.12.0)")

Co-authored-by: chaodu-agent <274062505+chaodu-agent@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant