@tokenfactory/acc-runner 0.44.7 → 0.44.9

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.
Files changed (187) hide show
  1. package/README.md +38 -0
  2. package/dist/attachments/codex-stage.d.ts +11 -0
  3. package/dist/attachments/codex-stage.d.ts.map +1 -0
  4. package/dist/attachments/codex-stage.js +82 -0
  5. package/dist/attachments/codex-stage.js.map +1 -0
  6. package/dist/attachments/fetch-attachment.d.ts +17 -0
  7. package/dist/attachments/fetch-attachment.d.ts.map +1 -1
  8. package/dist/attachments/fetch-attachment.js +134 -6
  9. package/dist/attachments/fetch-attachment.js.map +1 -1
  10. package/dist/attachments/index.d.ts +2 -1
  11. package/dist/attachments/index.d.ts.map +1 -1
  12. package/dist/attachments/index.js +2 -1
  13. package/dist/attachments/index.js.map +1 -1
  14. package/dist/build-info.generated.d.ts +1 -1
  15. package/dist/build-info.generated.js +2 -2
  16. package/dist/commit-sha.d.ts +31 -0
  17. package/dist/commit-sha.d.ts.map +1 -0
  18. package/dist/commit-sha.js +31 -0
  19. package/dist/commit-sha.js.map +1 -0
  20. package/dist/companion-run.d.ts.map +1 -1
  21. package/dist/companion-run.js +14 -1
  22. package/dist/companion-run.js.map +1 -1
  23. package/dist/doctor.d.ts +16 -0
  24. package/dist/doctor.d.ts.map +1 -1
  25. package/dist/doctor.js +107 -0
  26. package/dist/doctor.js.map +1 -1
  27. package/dist/engines/codex-chat.d.ts +24 -4
  28. package/dist/engines/codex-chat.d.ts.map +1 -1
  29. package/dist/engines/codex-chat.js +102 -20
  30. package/dist/engines/codex-chat.js.map +1 -1
  31. package/dist/login.d.ts.map +1 -1
  32. package/dist/login.js +7 -1
  33. package/dist/login.js.map +1 -1
  34. package/dist/machine-console/index.d.ts +37 -0
  35. package/dist/machine-console/index.d.ts.map +1 -0
  36. package/dist/machine-console/index.js +263 -0
  37. package/dist/machine-console/index.js.map +1 -0
  38. package/dist/machine-console/policy.d.ts +16 -0
  39. package/dist/machine-console/policy.d.ts.map +1 -0
  40. package/dist/machine-console/policy.js +83 -0
  41. package/dist/machine-console/policy.js.map +1 -0
  42. package/dist/machine-console/redact.d.ts +12 -0
  43. package/dist/machine-console/redact.d.ts.map +1 -0
  44. package/dist/machine-console/redact.js +48 -0
  45. package/dist/machine-console/redact.js.map +1 -0
  46. package/dist/machine-console/transport.d.ts +57 -0
  47. package/dist/machine-console/transport.d.ts.map +1 -0
  48. package/dist/machine-console/transport.js +170 -0
  49. package/dist/machine-console/transport.js.map +1 -0
  50. package/dist/mcp-spawn.d.ts +2 -1
  51. package/dist/mcp-spawn.d.ts.map +1 -1
  52. package/dist/mcp-spawn.js +2 -2
  53. package/dist/mcp-spawn.js.map +1 -1
  54. package/dist/preview-environments/control-plane.d.ts +11 -0
  55. package/dist/preview-environments/control-plane.d.ts.map +1 -0
  56. package/dist/preview-environments/control-plane.js +49 -0
  57. package/dist/preview-environments/control-plane.js.map +1 -0
  58. package/dist/preview-environments/http-provider.d.ts +13 -0
  59. package/dist/preview-environments/http-provider.d.ts.map +1 -0
  60. package/dist/preview-environments/http-provider.js +64 -0
  61. package/dist/preview-environments/http-provider.js.map +1 -0
  62. package/dist/preview-environments/profiles.d.ts +6 -0
  63. package/dist/preview-environments/profiles.d.ts.map +1 -0
  64. package/dist/preview-environments/profiles.js +34 -0
  65. package/dist/preview-environments/profiles.js.map +1 -0
  66. package/dist/preview-environments/safety.d.ts +7 -0
  67. package/dist/preview-environments/safety.d.ts.map +1 -0
  68. package/dist/preview-environments/safety.js +47 -0
  69. package/dist/preview-environments/safety.js.map +1 -0
  70. package/dist/preview-environments/service.d.ts +36 -0
  71. package/dist/preview-environments/service.d.ts.map +1 -0
  72. package/dist/preview-environments/service.js +149 -0
  73. package/dist/preview-environments/service.js.map +1 -0
  74. package/dist/preview-environments/types.d.ts +60 -0
  75. package/dist/preview-environments/types.d.ts.map +1 -0
  76. package/dist/preview-environments/types.js +2 -0
  77. package/dist/preview-environments/types.js.map +1 -0
  78. package/dist/production-migrations/command.d.ts +3 -0
  79. package/dist/production-migrations/command.d.ts.map +1 -0
  80. package/dist/production-migrations/command.js +21 -0
  81. package/dist/production-migrations/command.js.map +1 -0
  82. package/dist/production-migrations/executor.d.ts +59 -0
  83. package/dist/production-migrations/executor.d.ts.map +1 -0
  84. package/dist/production-migrations/executor.js +161 -0
  85. package/dist/production-migrations/executor.js.map +1 -0
  86. package/dist/production-migrations/pg-target.d.ts +22 -0
  87. package/dist/production-migrations/pg-target.d.ts.map +1 -0
  88. package/dist/production-migrations/pg-target.js +87 -0
  89. package/dist/production-migrations/pg-target.js.map +1 -0
  90. package/dist/production-migrations/profiles.d.ts +5 -0
  91. package/dist/production-migrations/profiles.d.ts.map +1 -0
  92. package/dist/production-migrations/profiles.js +39 -0
  93. package/dist/production-migrations/profiles.js.map +1 -0
  94. package/dist/production-migrations/service.d.ts +39 -0
  95. package/dist/production-migrations/service.d.ts.map +1 -0
  96. package/dist/production-migrations/service.js +166 -0
  97. package/dist/production-migrations/service.js.map +1 -0
  98. package/dist/program.d.ts.map +1 -1
  99. package/dist/program.js +17 -0
  100. package/dist/program.js.map +1 -1
  101. package/dist/runtime/worktree.d.ts.map +1 -1
  102. package/dist/runtime/worktree.js +23 -1
  103. package/dist/runtime/worktree.js.map +1 -1
  104. package/dist/secure-execution/auto-lease.d.ts +57 -0
  105. package/dist/secure-execution/auto-lease.d.ts.map +1 -0
  106. package/dist/secure-execution/auto-lease.js +116 -0
  107. package/dist/secure-execution/auto-lease.js.map +1 -0
  108. package/dist/secure-execution/command-policy.d.ts +5 -0
  109. package/dist/secure-execution/command-policy.d.ts.map +1 -0
  110. package/dist/secure-execution/command-policy.js +95 -0
  111. package/dist/secure-execution/command-policy.js.map +1 -0
  112. package/dist/secure-execution/confinement.d.ts +3 -0
  113. package/dist/secure-execution/confinement.d.ts.map +1 -0
  114. package/dist/secure-execution/confinement.js +18 -0
  115. package/dist/secure-execution/confinement.js.map +1 -0
  116. package/dist/secure-execution/engine.d.ts +24 -0
  117. package/dist/secure-execution/engine.d.ts.map +1 -0
  118. package/dist/secure-execution/engine.js +272 -0
  119. package/dist/secure-execution/engine.js.map +1 -0
  120. package/dist/secure-execution/index.d.ts +7 -0
  121. package/dist/secure-execution/index.d.ts.map +1 -0
  122. package/dist/secure-execution/index.js +6 -0
  123. package/dist/secure-execution/index.js.map +1 -0
  124. package/dist/secure-execution/node-pty.d.ts +11 -0
  125. package/dist/secure-execution/node-pty.d.ts.map +1 -0
  126. package/dist/secure-execution/node-pty.js +27 -0
  127. package/dist/secure-execution/node-pty.js.map +1 -0
  128. package/dist/secure-execution/types.d.ts +176 -0
  129. package/dist/secure-execution/types.d.ts.map +1 -0
  130. package/dist/secure-execution/types.js +2 -0
  131. package/dist/secure-execution/types.js.map +1 -0
  132. package/dist/staging-migrations/command.d.ts +2 -0
  133. package/dist/staging-migrations/command.d.ts.map +1 -0
  134. package/dist/staging-migrations/command.js +58 -0
  135. package/dist/staging-migrations/command.js.map +1 -0
  136. package/dist/staging-migrations/executor.d.ts +49 -0
  137. package/dist/staging-migrations/executor.d.ts.map +1 -0
  138. package/dist/staging-migrations/executor.js +125 -0
  139. package/dist/staging-migrations/executor.js.map +1 -0
  140. package/dist/staging-migrations/pg-target.d.ts +20 -0
  141. package/dist/staging-migrations/pg-target.d.ts.map +1 -0
  142. package/dist/staging-migrations/pg-target.js +63 -0
  143. package/dist/staging-migrations/pg-target.js.map +1 -0
  144. package/dist/staging-migrations/profiles.d.ts +5 -0
  145. package/dist/staging-migrations/profiles.d.ts.map +1 -0
  146. package/dist/staging-migrations/profiles.js +31 -0
  147. package/dist/staging-migrations/profiles.js.map +1 -0
  148. package/dist/staging-migrations/service.d.ts +40 -0
  149. package/dist/staging-migrations/service.d.ts.map +1 -0
  150. package/dist/staging-migrations/service.js +157 -0
  151. package/dist/staging-migrations/service.js.map +1 -0
  152. package/dist/supervisor.d.ts +15 -0
  153. package/dist/supervisor.d.ts.map +1 -0
  154. package/dist/supervisor.js +54 -0
  155. package/dist/supervisor.js.map +1 -0
  156. package/dist/terminal/http-carrier.d.ts +17 -0
  157. package/dist/terminal/http-carrier.d.ts.map +1 -0
  158. package/dist/terminal/http-carrier.js +39 -0
  159. package/dist/terminal/http-carrier.js.map +1 -0
  160. package/dist/terminal/pty-adapter.d.ts +88 -0
  161. package/dist/terminal/pty-adapter.d.ts.map +1 -0
  162. package/dist/terminal/pty-adapter.js +252 -0
  163. package/dist/terminal/pty-adapter.js.map +1 -0
  164. package/dist/terminal/transport-contract.d.ts +115 -0
  165. package/dist/terminal/transport-contract.d.ts.map +1 -0
  166. package/dist/terminal/transport-contract.js +2 -0
  167. package/dist/terminal/transport-contract.js.map +1 -0
  168. package/dist/terminal/transport.d.ts +32 -0
  169. package/dist/terminal/transport.d.ts.map +1 -0
  170. package/dist/terminal/transport.js +208 -0
  171. package/dist/terminal/transport.js.map +1 -0
  172. package/dist/watch-chat/wire.d.ts.map +1 -1
  173. package/dist/watch-chat/wire.js +14 -1
  174. package/dist/watch-chat/wire.js.map +1 -1
  175. package/dist/watch.d.ts +3 -0
  176. package/dist/watch.d.ts.map +1 -1
  177. package/dist/watch.js +57 -0
  178. package/dist/watch.js.map +1 -1
  179. package/package.json +6 -1
  180. package/scripts/com.tokenfactory.acc-runner-dedicated.plist +64 -0
  181. package/scripts/com.tokenfactory.acc-runner.plist +90 -0
  182. package/scripts/gen-build-info.d.mts +3 -0
  183. package/scripts/gen-build-info.mjs +72 -0
  184. package/scripts/install-launchd.sh +235 -0
  185. package/scripts/setup-dedicated-runner-darwin.sh +75 -0
  186. package/scripts/setup-dedicated-runner-linux.sh +173 -0
  187. package/scripts/uninstall-launchd.sh +67 -0
@@ -0,0 +1,67 @@
1
+ #!/usr/bin/env bash
2
+ #
3
+ # Remove the acc-runner macOS LaunchAgent — the rollback for
4
+ # install-launchd.sh.
5
+ #
6
+ # Stops the supervised `acc-runner watch`, unloads the agent so it does
7
+ # NOT come back at the next login/reboot, and deletes the plist.
8
+ # Idempotent: an already-absent agent is reported, not an error.
9
+ #
10
+ # Usage:
11
+ # packages/acc-runner/scripts/uninstall-launchd.sh
12
+ # packages/acc-runner/scripts/uninstall-launchd.sh --keep-plist # unload only
13
+ # packages/acc-runner/scripts/uninstall-launchd.sh --help
14
+ #
15
+ # After this, run the runner in the foreground to keep working:
16
+ # acc-runner doctor && acc-runner watch
17
+ #
18
+ # Docs: docs/acc/RUNNER_LAUNCHD.md
19
+
20
+ set -euo pipefail
21
+
22
+ LABEL="com.tokenfactory.acc-runner"
23
+ KEEP_PLIST=0
24
+
25
+ for arg in "$@"; do
26
+ case "$arg" in
27
+ --keep-plist) KEEP_PLIST=1 ;;
28
+ -h|--help) awk 'NR>=2 { if ($0 !~ /^#/) exit; sub(/^# ?/, ""); print }' "${BASH_SOURCE[0]}"; exit 0 ;;
29
+ *) echo "uninstall-launchd.sh: unknown option '$arg' (see --help)" >&2; exit 2 ;;
30
+ esac
31
+ done
32
+
33
+ if [[ "$(uname)" != "Darwin" ]]; then
34
+ echo "uninstall-launchd.sh: macOS-only (uname=$(uname))" >&2
35
+ exit 1
36
+ fi
37
+
38
+ TARGET="$HOME/Library/LaunchAgents/$LABEL.plist"
39
+
40
+ if launchctl list 2>/dev/null | awk '{print $3}' | grep -qx "$LABEL"; then
41
+ if [[ -f "$TARGET" ]]; then
42
+ launchctl unload "$TARGET" 2>/dev/null || true
43
+ fi
44
+ # bootout also covers a job loaded from a since-moved plist.
45
+ launchctl bootout "gui/$(id -u)/$LABEL" 2>/dev/null || true
46
+ echo "Unloaded $LABEL"
47
+ else
48
+ echo "$LABEL was not loaded"
49
+ fi
50
+
51
+ if [[ "$KEEP_PLIST" -eq 1 ]]; then
52
+ echo "Kept $TARGET (--keep-plist); reload with: launchctl load \"$TARGET\""
53
+ elif [[ -f "$TARGET" ]]; then
54
+ rm -f "$TARGET"
55
+ echo "Removed $TARGET"
56
+ else
57
+ echo "No plist at $TARGET"
58
+ fi
59
+
60
+ if launchctl list 2>/dev/null | awk '{print $3}' | grep -qx "$LABEL"; then
61
+ echo "uninstall-launchd.sh: $LABEL is STILL loaded — inspect \`launchctl list | grep $LABEL\`" >&2
62
+ exit 1
63
+ fi
64
+
65
+ echo "Done. The runner is no longer supervised and will NOT restart at login."
66
+ echo "Foreground fallback: acc-runner doctor && acc-runner watch"
67
+ echo "Logs remain at $HOME/Library/Logs/acc-runner.{out,err}.log"