agentix-cli 0.99.0 → 0.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,8 +55,16 @@ cat > "$APP/Contents/Info.plist" <<'PLIST'
55
55
  PLIST
56
56
  echo "</plist>" >> "$APP/Contents/Info.plist"
57
57
 
58
- codesign --force --sign - --identifier tn.acme.agentx.helper "$APP" 2>/dev/null \
59
- || echo "warning: codesign failed; Accessibility grants will not stick across rebuilds"
58
+ # Ad hoc by default, which holds a grant for this one build only; see
59
+ # AGENTX_SIGN_IDENTITY in apps/mac-voice/build.sh.
60
+ IDENTITY="${AGENTX_SIGN_IDENTITY:--}"
61
+ if [ "$IDENTITY" = "-" ]; then
62
+ codesign --force --sign - --identifier tn.acme.agentx.helper "$APP" 2>/dev/null \
63
+ || echo "warning: codesign failed; Accessibility grants will not stick across rebuilds"
64
+ echo "note: ad-hoc signature; macOS asks again for Accessibility and Screen Recording after this install (set AGENTX_SIGN_IDENTITY to keep them)"
65
+ else
66
+ codesign --force --sign "$IDENTITY" --identifier tn.acme.agentx.helper "$APP"
67
+ fi
60
68
 
61
69
  echo "built: $APP"
62
70
  echo "binary: $BIN/agentx-mac-helper"
@@ -32,10 +32,20 @@ swiftc -O \
32
32
 
33
33
  cp Resources/Info.plist "$APP/Contents/Info.plist"
34
34
 
35
- # Ad-hoc signature. Unsigned bundles get a fresh TCC identity on every
36
- # rebuild, so macOS re-asks for the microphone every single launch.
37
- codesign --force --sign - --identifier tn.acme.agentx.voice "$APP" 2>/dev/null \
38
- || echo "warning: codesign failed; expect repeated microphone prompts"
35
+ # Signing. Unsigned bundles get a fresh TCC identity on every launch. An
36
+ # ad-hoc signature (the default) holds only for this one build: macOS keys
37
+ # a permission to the build's hash, so every new build is asked again for
38
+ # the microphone and Screen Recording. AGENTX_SIGN_IDENTITY names a
39
+ # code-signing certificate in the keychain (a self-signed one is enough)
40
+ # whose permissions carry over to the next build.
41
+ IDENTITY="${AGENTX_SIGN_IDENTITY:--}"
42
+ if [ "$IDENTITY" = "-" ]; then
43
+ codesign --force --sign - --identifier tn.acme.agentx.voice "$APP" 2>/dev/null \
44
+ || echo "warning: codesign failed; expect repeated microphone prompts"
45
+ echo "note: ad-hoc signature; macOS asks again for the microphone and Screen Recording after this install (set AGENTX_SIGN_IDENTITY to keep them)"
46
+ else
47
+ codesign --force --sign "$IDENTITY" --identifier tn.acme.agentx.voice "$APP"
48
+ fi
39
49
 
40
50
  echo "built: $APP"
41
51
  echo "run: open \"$APP\" (or ./build/AgentX\\ Voice.app/Contents/MacOS/AgentXVoice for logs)"