oficina / meet Public

Declare oficina-calls in mac-updates.json; say why Calls keeps its bundler

Human

Prompt

3. Decide whether Calls' own bundle-mac.py should be replaced by the shared bundler now; if the switch is small and safe, do it; if not, apply the same naming rules in Calls' script and explain why the switch waits. [Coordinator, later:] If you moved Calls onto the shared bundler, declare "url_schemes": ["oficina-calls"] (plus any others Calls registers) in native/mac-updates.json.

From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.

Summary

mac-updates.json now declares url_schemes ["oficina-calls"] and Calls' bundle-mac.py reads both the bundle ID and the schemes from it, registering the URL type under the bundle ID as the shared bundler does (the iPhone's URL type is renamed to match). The script's docstring records why Calls does not use rastrillo/native's bundler yet: it embeds no frameworks but Sparkle, copies no notices or model, writes no usage descriptions and builds no Assets.car icon.
Agent notes
Switching needs the shared bundler to grow: extra frameworks (+rpath), extra resources, extra Info.plist keys, and Calls' actool icon pipeline (audit A24 says lift that anyway). Then Calls' script can go. The scheme oficina-calls is unchanged; only CFBundleURLName moved from works.oficina.calls.join to works.oficina.calls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev a5c6af76bcf4dc30a803ca6c20d333598d43ed31 parent 70152fe
3 files changed, +25 −7
  • native/ios/project.yml +1 −1
  • native/mac-updates.json +1 −0
  • native/scripts/bundle-mac.py +23 −6

CI passed — run details

CI log
=== vet ===
go vet ./...
=== fmt ===
=== test ===
go test ./...
ok  	amadan.net/oficina/calls/callscore	(cached)
ok  	amadan.net/oficina/calls/cmd/calls	(cached)
?   	amadan.net/oficina/calls/cmd/calls-contract	[no test files]
ok  	amadan.net/oficina/calls/cmd/quality-summary	(cached)
ok  	amadan.net/oficina/calls/internal/calls	12.416s
ok  	amadan.net/oficina/calls/internal/calls/apns	(cached)
ok  	amadan.net/oficina/calls/internal/calls/hub	(cached)
?   	amadan.net/oficina/calls/internal/calls/icons	[no test files]
?   	amadan.net/oficina/calls/internal/calls/keymailtest	[no test files]
ok  	amadan.net/oficina/calls/internal/calls/relay	(cached)
ok  	amadan.net/oficina/calls/internal/calls/seal	(cached)
?   	amadan.net/oficina/calls/internal/calls/teamstate	[no test files]
ok  	amadan.net/oficina/calls/internal/callstest	12.098s
ok  	amadan.net/oficina/calls/protocol	(cached)
?   	amadan.net/oficina/calls/scripts/writeestilo	[no test files]
=== migration-check ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo migration check
rastrillo migration check: models and migrations agree
=== race ===
CGO_ENABLED=1 go test -race ./internal/...
ok  	amadan.net/oficina/calls/internal/calls	86.932s
ok  	amadan.net/oficina/calls/internal/calls/apns	(cached)
ok  	amadan.net/oficina/calls/internal/calls/hub	(cached)
?   	amadan.net/oficina/calls/internal/calls/icons	[no test files]
?   	amadan.net/oficina/calls/internal/calls/keymailtest	[no test files]
ok  	amadan.net/oficina/calls/internal/calls/relay	(cached)
ok  	amadan.net/oficina/calls/internal/calls/seal	(cached)
?   	amadan.net/oficina/calls/internal/calls/teamstate	[no test files]
ok  	amadan.net/oficina/calls/internal/callstest	46.928s
diff --git a/native/ios/project.yml b/native/ios/project.yml
index 4eaea5f..43bcb96 100644
--- a/native/ios/project.yml
+++ b/native/ios/project.yml
@@ -36,7 +36,7 @@ targets:
path: ../build/ios-info.plist
properties:
CFBundleURLTypes:
- - CFBundleURLName: works.oficina.calls.join
+ - CFBundleURLName: works.oficina.calls
CFBundleURLSchemes: [oficina-calls]
CallsAppGroup: $(CALLS_APP_GROUP)
# Audio, so a call sharing the whole screen survives the person
diff --git a/native/mac-updates.json b/native/mac-updates.json
index 21953ce..9677b90 100644
--- a/native/mac-updates.json
+++ b/native/mac-updates.json
@@ -1,5 +1,6 @@
{
"bundle_id": "works.oficina.calls",
+ "url_schemes": ["oficina-calls"],
"feed_url": "https://raw.amadan.net/oficina/native-releases/main/calls/appcast.xml",
"public_ed_key": "/FxO7cZnM7P5c9ZrUPUJvpCnR65sNmrzte+I5vHarE8=",
"keychain_account": "oficina",
diff --git a/native/scripts/bundle-mac.py b/native/scripts/bundle-mac.py
index 176fd13..4fe135d 100644
--- a/native/scripts/bundle-mac.py
+++ b/native/scripts/bundle-mac.py
@@ -1,4 +1,16 @@
-"""Bundle the local development app. Distribution signing is a separate step."""
+"""Bundle the local development app. Distribution signing is a separate step.
+
+Calls keeps its own bundler rather than rastrillo/native's tools/bundle-mac.py,
+which the other four apps use, because that one cannot yet build Calls: it
+embeds no frameworks but Sparkle (Calls needs CallsBridge and LiveKitWebRTC,
+with an rpath), copies no resources but Lucide's notice (Calls ships the
+RNNoise, DeepFilterNet and WebRTC notices and the DeepFilterNet model), writes
+no usage descriptions (camera, microphone, Continuity Camera), and draws the
+icon as an ICNS only, where Calls compiles an Icon Composer Assets.car for
+macOS 26. Its naming rules are followed here: works.oficina.<app>, the plain
+name as CFBundleName, "Oficina <App>" as the file and display name, and URL
+schemes from mac-updates.json registered under the bundle ID.
+"""
import json
from pathlib import Path
import plistlib
@@ -79,14 +91,19 @@ for size in (16, 32, 128, 256, 512):
check=True, stdout=subprocess.DEVNULL)
subprocess.run(['iconutil', '-c', 'icns', str(iconset), '-o',
str(bundle / 'Resources/CallsMac.icns')], check=True)
+# The app's URL schemes are declared once, in mac-updates.json, as the shared
+# bundler reads them (rastrillo/native tools/bundle-mac.py), and registered
+# under the bundle ID as their name, as it registers them.
+updates = json.loads((root / 'mac-updates.json').read_text())
info = {
- 'CFBundleURLTypes': [{'CFBundleURLName': 'works.oficina.calls.join',
- 'CFBundleURLSchemes': ['oficina-calls']}],
+ 'CFBundleURLTypes': [{'CFBundleURLName': updates['bundle_id'],
+ 'CFBundleURLSchemes': updates['url_schemes']}],
'CFBundleName': 'Calls', 'CFBundleDisplayName': display_name,
# Paul, 2026-11-14: every Oficina build, Sparkle and App Store, Mac and
- # iPhone, is works.oficina.<app>. mac-updates.json names the same ID, and
- # mac_updates.py refuses a release whose Info.plist disagrees with it.
- 'CFBundleIdentifier': 'works.oficina.calls',
+ # iPhone, is works.oficina.<app>: here works.oficina.calls, read from
+ # mac-updates.json so the two cannot disagree (mac_updates.py refuses a
+ # release whose Info.plist names another app).
+ 'CFBundleIdentifier': updates['bundle_id'],
'CFBundleExecutable': 'CallsMac', 'CFBundlePackageType': 'APPL',
'CFBundleIconFile': 'CallsMac.icns', 'CFBundleIconName': 'AppIcon',
'CFBundleShortVersionString': '0.1.0', 'CFBundleVersion': '1',