beambam 1.1.0__tar.gz

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.

Potentially problematic release.


This version of beambam might be problematic. Click here for more details.

Files changed (207) hide show
  1. beambam-1.1.0/.gitignore +115 -0
  2. beambam-1.1.0/CHANGELOG.md +271 -0
  3. beambam-1.1.0/LICENSE +43 -0
  4. beambam-1.1.0/PKG-INFO +807 -0
  5. beambam-1.1.0/README.md +709 -0
  6. beambam-1.1.0/bambu_cert.py +199 -0
  7. beambam-1.1.0/beambam/__init__.py +70 -0
  8. beambam-1.1.0/beambam/analyze.py +614 -0
  9. beambam-1.1.0/beambam/cloud_fetch.py +262 -0
  10. beambam-1.1.0/beambam/frame.py +90 -0
  11. beambam-1.1.0/beambam/printer.py +272 -0
  12. beambam-1.1.0/beambam/schemas.py +346 -0
  13. beambam-1.1.0/beambam/simulate.py +202 -0
  14. beambam-1.1.0/beambam/state_hub.py +165 -0
  15. beambam-1.1.0/cloud_client.py +724 -0
  16. beambam-1.1.0/docs/ASSISTANT.md +100 -0
  17. beambam-1.1.0/docs/BRIDGE_SPLIT_PLAN.md +111 -0
  18. beambam-1.1.0/docs/CLOUD_BRIDGE.md +173 -0
  19. beambam-1.1.0/docs/COLORSYNC.md +87 -0
  20. beambam-1.1.0/docs/EXTRACT_CERT_FROM_REAL_BS.md +235 -0
  21. beambam-1.1.0/docs/HA.md +152 -0
  22. beambam-1.1.0/docs/HA_SETUP.md +233 -0
  23. beambam-1.1.0/docs/HA_VS_BAMBULAB.md +148 -0
  24. beambam-1.1.0/docs/LOCAL_CONTROL_PATHS.md +190 -0
  25. beambam-1.1.0/docs/MCP.md +227 -0
  26. beambam-1.1.0/docs/MULTI_PRINTER.md +83 -0
  27. beambam-1.1.0/docs/QUEUE.md +88 -0
  28. beambam-1.1.0/docs/QUICKSTART.md +225 -0
  29. beambam-1.1.0/docs/REMIX_AND_MULTI_EXTRUDER.md +140 -0
  30. beambam-1.1.0/docs/SIGNED_VS_UNSIGNED.md +146 -0
  31. beambam-1.1.0/docs/SLICE_COMPARISON_2026-05-04.md +71 -0
  32. beambam-1.1.0/docs/SLICE_COMPARISON_2026-05-05.md +103 -0
  33. beambam-1.1.0/docs/SUBMODULE_MIGRATION_PLAN.md +105 -0
  34. beambam-1.1.0/docs/TIMELAPSE.md +97 -0
  35. beambam-1.1.0/docs/WEBRTC.md +142 -0
  36. beambam-1.1.0/docs/WEB_UI.md +92 -0
  37. beambam-1.1.0/docs/X2D_RUNTIME_PIPELINE.md +215 -0
  38. beambam-1.1.0/docs/bambu-craftmatic-ts-port.md +661 -0
  39. beambam-1.1.0/docs/claude_desktop_config.example.json +12 -0
  40. beambam-1.1.0/docs/demos/cli_demo.mp4 +0 -0
  41. beambam-1.1.0/docs/demos/gui_demo.mp4 +0 -0
  42. beambam-1.1.0/docs/demos/ha_demo.mp4 +0 -0
  43. beambam-1.1.0/docs/demos/mcp_demo.mp4 +0 -0
  44. beambam-1.1.0/docs/demos/webui_demo.mp4 +0 -0
  45. beambam-1.1.0/docs/device-tab-monitorpanel-proof.png +0 -0
  46. beambam-1.1.0/docs/ha-live-proof/core.device_registry.json +15 -0
  47. beambam-1.1.0/docs/ha-live-proof/core.entity_registry.json +59 -0
  48. beambam-1.1.0/docs/ha-live-proof/core.restore_state.json +245 -0
  49. beambam-1.1.0/docs/prepare-tab-x1c-preset-proof.png +0 -0
  50. beambam-1.1.0/docs/sidebar-shrink-proof.png +0 -0
  51. beambam-1.1.0/docs/ssdp-live-proof.png +0 -0
  52. beambam-1.1.0/docs/webui-landscape-s25.png +0 -0
  53. beambam-1.1.0/docs/webui-mobile-metrics.json +57 -0
  54. beambam-1.1.0/docs/webui-portrait-s25.png +0 -0
  55. beambam-1.1.0/docs/webui-portrait-tablet.png +0 -0
  56. beambam-1.1.0/inject_thumbnails.py +127 -0
  57. beambam-1.1.0/lan_print.py +517 -0
  58. beambam-1.1.0/lan_upload.py +279 -0
  59. beambam-1.1.0/mcp_x2d.py +9 -0
  60. beambam-1.1.0/preflight_3mf.py +389 -0
  61. beambam-1.1.0/pyproject.toml +197 -0
  62. beambam-1.1.0/remix_3mf.py +346 -0
  63. beambam-1.1.0/resolve_profile.py +104 -0
  64. beambam-1.1.0/runtime/assistant/__init__.py +12 -0
  65. beambam-1.1.0/runtime/assistant/router.py +305 -0
  66. beambam-1.1.0/runtime/assistant/test_assistant.py +223 -0
  67. beambam-1.1.0/runtime/bambu_extract/README.md +211 -0
  68. beambam-1.1.0/runtime/bambu_extract/cb_register.cpp +466 -0
  69. beambam-1.1.0/runtime/bambu_extract/dump_driver.cpp +164 -0
  70. beambam-1.1.0/runtime/bambu_extract/dump_driver_c.c +523 -0
  71. beambam-1.1.0/runtime/bambu_extract/trace_shim.c +299 -0
  72. beambam-1.1.0/runtime/build_egl_vendor.sh +35 -0
  73. beambam-1.1.0/runtime/build_gst_soup_termux.sh +126 -0
  74. beambam-1.1.0/runtime/colorsync/__init__.py +8 -0
  75. beambam-1.1.0/runtime/colorsync/data/filaments_color_codes.json +7019 -0
  76. beambam-1.1.0/runtime/colorsync/mapper.py +195 -0
  77. beambam-1.1.0/runtime/colorsync/test_mapper.py +188 -0
  78. beambam-1.1.0/runtime/demos/__init__.py +14 -0
  79. beambam-1.1.0/runtime/demos/render.py +372 -0
  80. beambam-1.1.0/runtime/ha/__init__.py +11 -0
  81. beambam-1.1.0/runtime/ha/publisher.py +664 -0
  82. beambam-1.1.0/runtime/ha/test_ha.py +383 -0
  83. beambam-1.1.0/runtime/ha/test_multi_printer.py +291 -0
  84. beambam-1.1.0/runtime/ha/test_snapshot.py +255 -0
  85. beambam-1.1.0/runtime/handy_extract/.gitignore +9 -0
  86. beambam-1.1.0/runtime/handy_extract/README.md +177 -0
  87. beambam-1.1.0/runtime/handy_extract/analyze_shield.py +213 -0
  88. beambam-1.1.0/runtime/handy_extract/anti_antidebug.js +149 -0
  89. beambam-1.1.0/runtime/handy_extract/check_capture.sh +14 -0
  90. beambam-1.1.0/runtime/handy_extract/dump_keys.py +339 -0
  91. beambam-1.1.0/runtime/handy_extract/dump_unpacker.sh +105 -0
  92. beambam-1.1.0/runtime/handy_extract/find_boringssl.py +288 -0
  93. beambam-1.1.0/runtime/handy_extract/find_brx0.py +47 -0
  94. beambam-1.1.0/runtime/handy_extract/handy_hook.js +956 -0
  95. beambam-1.1.0/runtime/handy_extract/init_capture_hooks.js +28 -0
  96. beambam-1.1.0/runtime/handy_extract/init_combined.js +685 -0
  97. beambam-1.1.0/runtime/handy_extract/init_filewriter.js +47 -0
  98. beambam-1.1.0/runtime/handy_extract/init_logcat.js +23 -0
  99. beambam-1.1.0/runtime/handy_extract/init_nowriter.js +662 -0
  100. beambam-1.1.0/runtime/handy_extract/init_v10.js +804 -0
  101. beambam-1.1.0/runtime/handy_extract/init_v11.js +834 -0
  102. beambam-1.1.0/runtime/handy_extract/init_v12.js +704 -0
  103. beambam-1.1.0/runtime/handy_extract/init_v13.js +706 -0
  104. beambam-1.1.0/runtime/handy_extract/init_v5.js +708 -0
  105. beambam-1.1.0/runtime/handy_extract/init_v6.js +721 -0
  106. beambam-1.1.0/runtime/handy_extract/init_v7.js +701 -0
  107. beambam-1.1.0/runtime/handy_extract/init_v8.js +704 -0
  108. beambam-1.1.0/runtime/handy_extract/init_v9.js +783 -0
  109. beambam-1.1.0/runtime/handy_extract/keystore_dumper/aes_cbc_scan.py +78 -0
  110. beambam-1.1.0/runtime/handy_extract/keystore_dumper/build.sh +27 -0
  111. beambam-1.1.0/runtime/handy_extract/keystore_dumper/decrypt_prefs.py +129 -0
  112. beambam-1.1.0/runtime/handy_extract/keystore_dumper/run.sh +30 -0
  113. beambam-1.1.0/runtime/handy_extract/keystore_dumper/src/com/x2d/dump/ExportCert.java +55 -0
  114. beambam-1.1.0/runtime/handy_extract/keystore_dumper/src/com/x2d/dump/LegacyKeyStorageDumper.java +94 -0
  115. beambam-1.1.0/runtime/handy_extract/keystore_dumper/src/com/x2d/dump/ListAliases.java +56 -0
  116. beambam-1.1.0/runtime/handy_extract/keystore_dumper/src/com/x2d/dump/SecureStorageDumper.java +421 -0
  117. beambam-1.1.0/runtime/handy_extract/memscan.js +130 -0
  118. beambam-1.1.0/runtime/handy_extract/patch_handy_debuggable.sh +171 -0
  119. beambam-1.1.0/runtime/handy_extract/patch_handy_shareduid.sh +109 -0
  120. beambam-1.1.0/runtime/handy_extract/patch_libflutter_apk.py +191 -0
  121. beambam-1.1.0/runtime/handy_extract/quick_hook.js +125 -0
  122. beambam-1.1.0/runtime/handy_extract/run_capture.sh +87 -0
  123. beambam-1.1.0/runtime/handy_extract/saga_init.js +1175 -0
  124. beambam-1.1.0/runtime/handy_extract/scan_xor_keys.py +104 -0
  125. beambam-1.1.0/runtime/handy_extract/setup_microg_module.sh +44 -0
  126. beambam-1.1.0/runtime/handy_extract/setup_rooted_device.sh +152 -0
  127. beambam-1.1.0/runtime/handy_extract/shield_patch.js +151 -0
  128. beambam-1.1.0/runtime/handy_extract/sign_helper/AndroidManifest.xml +17 -0
  129. beambam-1.1.0/runtime/handy_extract/sign_helper/build.sh +56 -0
  130. beambam-1.1.0/runtime/handy_extract/sign_helper/src/com/x2d/sign/SignActivity.java +92 -0
  131. beambam-1.1.0/runtime/handy_extract/stalker_syscalls.js +204 -0
  132. beambam-1.1.0/runtime/handy_extract/unpack_libapp.py +244 -0
  133. beambam-1.1.0/runtime/handy_extract/zygisk/README.md +117 -0
  134. beambam-1.1.0/runtime/handy_extract/zygisk/STATUS.md +116 -0
  135. beambam-1.1.0/runtime/handy_extract/zygisk/build.sh +97 -0
  136. beambam-1.1.0/runtime/handy_extract/zygisk/handy.config.json +23 -0
  137. beambam-1.1.0/runtime/handy_extract/zygisk/libgadget.config.so +9 -0
  138. beambam-1.1.0/runtime/libEGL_x2dadreno.c +681 -0
  139. beambam-1.1.0/runtime/mcp/__init__.py +11 -0
  140. beambam-1.1.0/runtime/mcp/server.py +553 -0
  141. beambam-1.1.0/runtime/mcp/test_live_client.py +404 -0
  142. beambam-1.1.0/runtime/mcp/test_mcp.py +196 -0
  143. beambam-1.1.0/runtime/network_shim/Makefile +73 -0
  144. beambam-1.1.0/runtime/network_shim/PROTOCOL.md +196 -0
  145. beambam-1.1.0/runtime/network_shim/data/community_filaments.json +143 -0
  146. beambam-1.1.0/runtime/network_shim/file_tunnel.py +351 -0
  147. beambam-1.1.0/runtime/network_shim/include/shim_internal.hpp +260 -0
  148. beambam-1.1.0/runtime/network_shim/lvl_local.py +279 -0
  149. beambam-1.1.0/runtime/network_shim/src/agent.cpp +195 -0
  150. beambam-1.1.0/runtime/network_shim/src/bambu_source_stub.c +22 -0
  151. beambam-1.1.0/runtime/network_shim/src/bridge_client.cpp +346 -0
  152. beambam-1.1.0/runtime/network_shim/src/exports.cpp +498 -0
  153. beambam-1.1.0/runtime/network_shim/src/exports_ft.cpp +82 -0
  154. beambam-1.1.0/runtime/network_shim/tests/test_shim_e2e.py +322 -0
  155. beambam-1.1.0/runtime/preload_egl_x11.c +443 -0
  156. beambam-1.1.0/runtime/preload_gtkinit.c +481 -0
  157. beambam-1.1.0/runtime/probes/probe_angle_direct.c +66 -0
  158. beambam-1.1.0/runtime/probes/probe_vendor_gl.c +88 -0
  159. beambam-1.1.0/runtime/probes/probe_vendor_window.c +142 -0
  160. beambam-1.1.0/runtime/queue/__init__.py +15 -0
  161. beambam-1.1.0/runtime/queue/manager.py +269 -0
  162. beambam-1.1.0/runtime/queue/test_queue.py +215 -0
  163. beambam-1.1.0/runtime/queue/test_queue_http.py +186 -0
  164. beambam-1.1.0/runtime/saga_apt_search.sh +14 -0
  165. beambam-1.1.0/runtime/saga_hosts_setup.sh +77 -0
  166. beambam-1.1.0/runtime/saga_iptables.sh +35 -0
  167. beambam-1.1.0/runtime/saga_mitm_help.sh +7 -0
  168. beambam-1.1.0/runtime/saga_mitm_run.sh +46 -0
  169. beambam-1.1.0/runtime/saga_mitm_test.sh +34 -0
  170. beambam-1.1.0/runtime/saga_patch_mitm.sh +64 -0
  171. beambam-1.1.0/runtime/saga_pyplat.sh +18 -0
  172. beambam-1.1.0/runtime/saga_termux_mitm.sh +33 -0
  173. beambam-1.1.0/runtime/saga_termux_setup.sh +36 -0
  174. beambam-1.1.0/runtime/test_phase2_smoke.py +586 -0
  175. beambam-1.1.0/runtime/timelapse/__init__.py +10 -0
  176. beambam-1.1.0/runtime/timelapse/recorder.py +274 -0
  177. beambam-1.1.0/runtime/timelapse/test_http.py +212 -0
  178. beambam-1.1.0/runtime/timelapse/test_recorder.py +201 -0
  179. beambam-1.1.0/runtime/webrtc/__init__.py +4 -0
  180. beambam-1.1.0/runtime/webrtc/server.py +313 -0
  181. beambam-1.1.0/runtime/webrtc/test_webrtc.py +189 -0
  182. beambam-1.1.0/runtime/webui/__init__.py +1 -0
  183. beambam-1.1.0/runtime/webui/test_auth.py +200 -0
  184. beambam-1.1.0/runtime/webui/test_mobile.py +424 -0
  185. beambam-1.1.0/runtime/webui/test_webui.py +244 -0
  186. beambam-1.1.0/tests/test_ams_mapping.py +111 -0
  187. beambam-1.1.0/tests/test_analyze.py +183 -0
  188. beambam-1.1.0/tests/test_cloud_client.py +188 -0
  189. beambam-1.1.0/tests/test_cloud_fetch.py +162 -0
  190. beambam-1.1.0/tests/test_frame.py +60 -0
  191. beambam-1.1.0/tests/test_ipcam_commands.py +178 -0
  192. beambam-1.1.0/tests/test_printer.py +151 -0
  193. beambam-1.1.0/tests/test_remix_3mf.py +167 -0
  194. beambam-1.1.0/tests/test_schemas.py +219 -0
  195. beambam-1.1.0/tests/test_serve_smoke.py +105 -0
  196. beambam-1.1.0/tests/test_signing_roundtrip.py +64 -0
  197. beambam-1.1.0/tests/test_simulate.py +139 -0
  198. beambam-1.1.0/tests/test_state_hub.py +178 -0
  199. beambam-1.1.0/web/cam.webrtc.html +103 -0
  200. beambam-1.1.0/web/cam.webrtc.js +153 -0
  201. beambam-1.1.0/web/index.css +369 -0
  202. beambam-1.1.0/web/index.html +124 -0
  203. beambam-1.1.0/web/index.js +689 -0
  204. beambam-1.1.0/web/login.html +70 -0
  205. beambam-1.1.0/web/login.js +81 -0
  206. beambam-1.1.0/x2d_bridge.py +6432 -0
  207. beambam-1.1.0/x2d_slice.py +739 -0
@@ -0,0 +1,115 @@
1
+ # Build / source trees (huge, easily reproducible from upstream + patches/)
2
+ bs-bionic/
3
+ bs-cli/
4
+ bs-gui/
5
+ bs-appdir/
6
+ BambuStudio/
7
+ squashfs-root/
8
+ glibc-packages.wiki/
9
+ research/
10
+
11
+ # Distributable + binaries
12
+ dist/
13
+ *.AppImage
14
+ *.sqfs
15
+ *.tar
16
+ *.tar.xz
17
+ *.tar.gz
18
+ *.tar.zst
19
+
20
+ # 3D output / inputs
21
+ *.stl
22
+ *.3mf
23
+ *.gcode
24
+ *.gcode.3mf
25
+
26
+ # Intermediate flattened profiles + slicer artifacts
27
+ flat-profiles/
28
+ result.json
29
+ *.png
30
+
31
+ # Logs / strace / scratch
32
+ *.log
33
+ logs/
34
+ *.strace
35
+ _egl_probe.*
36
+ _*.py
37
+ !__init__.py
38
+
39
+ # Local scripts that bake printer-specific values
40
+ *.local
41
+ .env
42
+ secrets/
43
+ .x2d.env
44
+
45
+ # Build helpers we no longer need
46
+ build-deps.sh
47
+ build-cli.sh
48
+ build-app.sh
49
+ finish-app.sh
50
+ check_gcc.sh
51
+ check_tools.sh
52
+ slice.sh
53
+ run_gui.sh
54
+ run_gui_swrender.sh
55
+ make_frame_*.py
56
+
57
+ # Editor / OS
58
+ .DS_Store
59
+ *.swp
60
+ __pycache__/
61
+ *.pyc
62
+ .vscode/
63
+ .idea/
64
+
65
+ # Pre-built shim — always rebuild from source
66
+ runtime/libpreloadgtk.so
67
+ runtime/libEGL_x2dadreno.so
68
+ # probe binaries (no extension); keep the .c sources tracked
69
+ runtime/probes/probe_vendor_gl
70
+ runtime/probes/probe_angle_direct
71
+ runtime/probes/probe_vendor_window
72
+
73
+ # Old draft notes
74
+ UNANSWERED_QUESTIONS.md
75
+
76
+ # .claude — keep most of it ignored, but the Stop-hook + settings
77
+ # need to travel with the repo so the IMPROVEMENTS.md loop is
78
+ # reproducible for anyone who clones.
79
+ .claude/*
80
+ !.claude/settings.json
81
+ !.claude/hooks/
82
+ .claude/hooks/*
83
+ !.claude/hooks/loop-improvements.sh
84
+ !.claude/hooks/loop-tasks.sh
85
+
86
+ # network_shim build artefacts
87
+ runtime/network_shim/src/*.o
88
+ runtime/network_shim/*.so
89
+ !docs/*.png
90
+ _mobile_daemon.py
91
+
92
+ # Local dev convenience symlink to dist tree
93
+ bin
94
+ runtime/handy_extract/cache/
95
+
96
+ # Zygisk Frida Gadget — large binary outputs rebuildable via build.sh
97
+ runtime/handy_extract/zygisk/gadget-zygisk.zip
98
+ runtime/handy_extract/zygisk/ZygiskFrida-v*-release.zip
99
+ runtime/handy_extract/zygisk/frida-gadget-*-android-*.so.xz
100
+ runtime/handy_extract/zygisk/_work/
101
+ runtime/handy_extract/zygisk/shamiko/
102
+
103
+ # OSOM Solana Saga MR5 firmware — 3 GB fastboot zip + extracted super.img.
104
+ # We extract OSOM-signed GmsCore + Phonesky for the microG Magisk overlay.
105
+ # Reproducible by re-downloading and re-running setup_microg_module.sh.
106
+ runtime/handy_extract/saga_firmware/
107
+
108
+ # Per-run screenshots from the Frida hook live tests (binary, ephemeral).
109
+ runtime/handy_extract/screenshots/
110
+ runtime/handy_extract/captures/
111
+
112
+ # Built classes.dex + intermediate .class files for the keystore dumper.
113
+ runtime/handy_extract/keystore_dumper/build/
114
+ runtime/handy_extract/sign_helper/build/
115
+ scratch/
@@ -0,0 +1,271 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project.
4
+
5
+ ## v1.1.0 — Package rename + PyPI debut
6
+
7
+ Rebrand from `x2d` to **`beambam`** ([beambam.boo](https://beambam.boo))
8
+ and first publish to PyPI: `pip install beambam`. The bridge supports
9
+ every Bambu Lab printer (X1/P1/A1/H2/X2D, signed-MQTT family) — the
10
+ `x2d` name was too narrow.
11
+
12
+ ### New since v1.0.0
13
+
14
+ * **PyPI distribution** — pyproject.toml (hatchling), 6 console scripts
15
+ (`beambam`, `bb`, `beambam-mcp`, `beambam-slice`, `beambam-upload`,
16
+ `beambam-print`), optional extras (`[slicing,mcp,webui,assistant,all,
17
+ dev]`), GitHub Actions CI + OIDC trusted-publishing release workflow,
18
+ per-Python-version matrix on Ubuntu + macOS.
19
+ * **`beambam` Python package** — re-exports the public API
20
+ (`Printer`, `Creds`, `CloudClient`, `sign_payload`, `upload_file`,
21
+ `download_file`, `list_files`).
22
+ * **`beambam.Printer`** — high-level stateful library facade with lazy
23
+ MQTT + cloud connections, context-manager protocol. Methods cover
24
+ state, start_print, pause/resume/stop, gcode, set_temp, chamber_light,
25
+ ams_load/unload, home, upload/download/list_files.
26
+ * **`beambam.schemas`** — TypedDicts for the MQTT wire shapes
27
+ (PrintState, AmsBus/AmsUnit/AmsTray, StartPrintCommand, …).
28
+ * **`beambam analyze <file.3mf>`** — print-plan dissector reporting
29
+ filament/nozzle assignment, per-phase toolchanges, real flush volume,
30
+ AMS-tray requirements, hints. `--json` for machine output.
31
+ * **`beambam simulate <subcmd>`** — dry-run MQTT payload preview
32
+ returning the SIGNED envelope. Use for CI regression diffs.
33
+ * **`beambam cloud-fetch`** — MakerWorld + Bambu Cloud query CLI
34
+ (`--info`, `--instances`, `--design-cover`, `--user-tasks`,
35
+ `--bound-devices`). Replaces the stale `fetch <makerworld_url>` path.
36
+ * **`beambam frame --preset NAME`** — frame-STL generator with
37
+ built-in presets (mira, rumi, zoey, huntrx).
38
+ * **`beambam.state_hub.StateHub`** — sync+async pub/sub primitive for
39
+ printer state fan-out, foundation for v1.2.0's daemon refactor.
40
+
41
+ ### Fixed
42
+
43
+ * `download_file()` `[SSL: INVALID_ALERT]` mid-print — port working
44
+ `upload_file` TLS pattern (TLSv1.2 + manual session-reuse on PASV).
45
+ * `start_print` kwarg drift between Printer/simulate and the real
46
+ signature.
47
+ * `tests/test_ams_mapping.py` 6 pre-existing failures fixed; suite
48
+ 21 → **108** offline + 3 live.
49
+
50
+ ### Repo hygiene
51
+
52
+ * `dist/bambustudio-x2d-termux-aarch64/run_gui.sh` →
53
+ `bs-runtime/aarch64-termux/run_gui.sh` (frees `dist/` for Python
54
+ build output).
55
+ * `test_signed_mqtt.py` → `tools/probe_signed_mqtt.py`.
56
+ * `LICENSE` (MIT) for the Python package; AGPL-3.0 stays on the
57
+ BambuStudio fork + network_shim.
58
+
59
+ ### Deferred to v1.2.0 (plans written)
60
+
61
+ * `docs/BRIDGE_SPLIT_PLAN.md` — full `x2d_bridge.py` decomposition.
62
+ * `docs/SUBMODULE_MIGRATION_PLAN.md` — BambuStudio submodule.
63
+ * Wire HA/MCP/WebUI/timelapse to `StateHub`.
64
+
65
+ ## v1.0.0 — Feature-complete LAN-first stack
66
+
67
+ 86 commits, 62 ledger items closed, ~28 K lines added across the
68
+ bridge daemon, the runtime/ subsystems, the web UI, the test
69
+ harnesses, and the per-feature docs.
70
+
71
+ ### Highlights
72
+
73
+ * **Six-surface daemon** built on top of the v0.1.0 signed-MQTT
74
+ bridge: REST + Server-Sent Events, Prometheus `/metrics`,
75
+ structured JSON access log, Home Assistant MQTT auto-discovery,
76
+ WebRTC chamber-camera streaming, MCP stdio server, and a
77
+ mobile-friendly web UI.
78
+ * **Multi-printer everywhere** — daemon, web UI, queue, HA
79
+ publisher, MCP server. One `[printer:NAME]` section per printer
80
+ in `~/.x2d/credentials` and every surface auto-discovers them.
81
+ * **Full BambuStudio Termux GUI port** — 12 source patches against
82
+ upstream BambuStudio v02.06.00.51 plus an `LD_PRELOAD` GTK/locale
83
+ shim, plus a 100-symbol `libbambu_networking.so` ABI shim that
84
+ lets the GUI's Connect/AMS-sync/Print buttons drive printers
85
+ through the bridge.
86
+ * **Native Home Assistant integration** with **32 entities** + 1
87
+ Device per printer, including AMS-color → Bambu-profile
88
+ auto-resolve. Live-tested against real Home Assistant Core
89
+ 2025.1.4 in a proot Ubuntu chroot — registry snapshots in
90
+ `docs/ha-live-proof/`.
91
+ * **Claude Desktop / Cursor / Continue MCP server** wrapping every
92
+ bridge op as a tool, plus a natural-language assistant in the web
93
+ UI that calls the same toolset (with a no-API-key local fallback).
94
+
95
+ ### New surfaces (Phase 1 daemon expansion: items 36-40)
96
+
97
+ * **#36 multi-printer daemon** — one X2DClient per credentials
98
+ section, all sharing one HTTP server with `?printer=NAME`
99
+ routing. Connection failures are isolated.
100
+ * **#37 per-printer `last_message_ts` persistence** at
101
+ `~/.x2d/last_message_ts_<serial>` so `/healthz` reports a
102
+ meaningful age immediately after a daemon restart.
103
+ * **#38 Prometheus `/metrics` endpoint** — per-printer gauges
104
+ (nozzle/bed/chamber temps, AMS humidity, mc_percent) +
105
+ per-printer counters (messages_total, mqtt_disconnects_total)
106
+ + global counter (ssdp_notifies_total).
107
+ * **#39 structured JSON access log** — one line per HTTP request
108
+ to `~/.x2d/access.log` with 1 MiB rotation; ts, method, path,
109
+ status, duration_ms, printer, authed, client.
110
+ * **#40 proactive auto-connect on SSDP** — when an SSDP NOTIFY
111
+ matches a credentials serial, the bridge opens MQTT before any
112
+ shim asks. Cached state replays on every subscribe.
113
+
114
+ ### Phase 2 surfaces (items 42-49)
115
+
116
+ * **#42 MCP stdio server** at `runtime/mcp/server.py` (callable
117
+ as `python -m mcp_x2d`). 18 tools: status, pause, resume, stop,
118
+ gcode, set_temp, chamber_light, ams_load/unload, jog, upload,
119
+ print, camera_snapshot, list_printers, healthz, metrics, home,
120
+ level. Two resources: `x2d://state`, `x2d://camera/snapshot`.
121
+ * **#43 Claude Desktop config docs** at `docs/MCP.md` with
122
+ per-platform install (Termux / Linux / mac / Windows) and the
123
+ SSH-tunnel pattern for running the bridge on Termux while the
124
+ client lives on a laptop.
125
+ * **#44 live-tested every MCP tool** against the real X2D —
126
+ `tools/call status` returned actual `nozzle=27 bed=25
127
+ wifi=-58dBm` end-to-end through the JSON-RPC pipeline.
128
+ * **#45 WebRTC streaming** via aiortc + aiohttp — sub-second
129
+ latency, browser viewer at `/cam.webrtc.html`. Pinned
130
+ aiortc==1.10.1 + av==13.1.0 (newer versions need PyAV 14
131
+ features that don't build on Termux). libsrtp built from
132
+ source; covered in `docs/WEBRTC.md`.
133
+ * **#46 thin web UI** at the daemon's `/` — three static files
134
+ (~17 KB), live state via SSE, control verbs over POST. No
135
+ framework, no build step.
136
+ * **#47 mobile-friendly UI** verified at S25 Ultra viewport via
137
+ real headless chromium-browser. CSS hardening: `overflow-x:
138
+ hidden`, `* { min-width: 0 }`, `@media (max-width: 480px)`
139
+ font shrinks. ≥44 px touch targets per Apple HIG / Google MD3.
140
+ * **#48 bearer-token login flow** with cookie + localStorage —
141
+ `_check_bearer` accepts either source so EventSource (which
142
+ can't set headers) works via the cookie path. New `/auth/info`
143
+ + `/auth/check` + `/login.html` + `/login.js`.
144
+ * **#49 Phase 2 end-to-end soak** — `runtime/test_phase2_smoke.py
145
+ --duration 600` runs all four daemons (bridge, camera, WebRTC,
146
+ MCP) under continuous load for 10 minutes; **0 failures**, 0%
147
+ RSS / thread / FD drift across every daemon.
148
+
149
+ ### Phase 3: Home Assistant integration (items 50-54)
150
+
151
+ * **#50 MQTT auto-discovery publisher** at `runtime/ha/publisher.py`.
152
+ 32 entities per printer (12 sensors + 12 AMS slot entities + 1
153
+ switch + 6 buttons + 3 number sliders + 1 image), all
154
+ discovery-protocol-compliant under
155
+ `<discovery_prefix>/<component>/x2d_<id>/<key>/config`.
156
+ * **#51 live-tested against real Home Assistant Core 2025.1.4** in
157
+ a proot Ubuntu chroot. Registry snapshots at
158
+ `docs/ha-live-proof/` show 32 x2d entities + 1 Bambu Lab X2D
159
+ Device with **live values** (`ams_slot2_color="#F95D73"`,
160
+ `ams_slot2_material="PLA"`, `ams_slot3_color="#A03CF7"`).
161
+ * **#52 ha-bambulab feature parity matrix** at
162
+ `docs/HA_VS_BAMBULAB.md`. 34 of 36 X2D-applicable ha-bambulab
163
+ entities at parity OR better. Added 13 missing entities to the
164
+ publisher (4 fan speeds, speed_profile, hms_count, ip_address,
165
+ firmware_version, printable/skipped objects, total_usage_hours,
166
+ online + door_open binary sensors, home/level/buzzer_silence
167
+ buttons).
168
+ * **#53 HA snapshot entity** — `/snapshot.jpg` proxy on the
169
+ bridge daemon + publisher snapshot loop pushes JPEG bytes to
170
+ `x2d/<id>/snapshot` every 10 s with `retain=True` so HA's
171
+ image card always renders something even after a restart.
172
+ * **#54 multi-printer HA support** — `cmd_ha_publish` without
173
+ `--printer` spawns one `HAPublisher` per credentials section
174
+ in the same process. Each gets its own HA Device with
175
+ namespaced topics; failures are isolated per-printer.
176
+
177
+ ### Phase 4: features upstream BambuStudio doesn't have (items 55-58)
178
+
179
+ * **#55 multi-printer print queue** at `runtime/queue/manager.py`
180
+ — file-backed FIFO at `~/.x2d/queue.json` with strict
181
+ idle-detection auto-dispatch. Crash-safe (running → pending on
182
+ reload). HTML5 native drag-and-drop reorder in the web UI.
183
+ * **#56 timelapse browser** at `runtime/timelapse/recorder.py` —
184
+ per-printer state-driven capture (RUNNING → starts JPEG poll
185
+ thread; FINISH → stops + writes meta). One-click `ffmpeg`
186
+ stitch into MP4 with H.264 + faststart. Web UI Timelapse card
187
+ with sampled thumbnail grid + inline `<video>`.
188
+ * **#57 AI assistant panel** at `runtime/assistant/router.py` —
189
+ three providers (`local` rule-based, no API key; `anthropic`
190
+ with the canonical MCP toolset; `auto` with graceful fallback).
191
+ Web UI chat panel with color-coded user/assistant/tool turns.
192
+ * **#58 real-time AMS color sync** at
193
+ `runtime/colorsync/mapper.py` — loads BambuStudio's official
194
+ `filaments_color_codes.json` (~7000 entries) and resolves any
195
+ RGB hex to the closest Bambu profile by Euclidean distance,
196
+ with material-family filter. Web UI AMS swatches show the
197
+ matched filament name + distance tooltip.
198
+
199
+ ### Phase 5: docs + release (items 59-62)
200
+
201
+ * **#59 README reorg** — top-level "What is this" + "Who is this
202
+ for" + 16-row feature matrix vs Bambu Studio + Cloud +
203
+ ha-bambulab + 5-command quick-install + per-feature doc table.
204
+ First three sections (~50 lines) tell a brand-new visitor
205
+ everything within 60 s.
206
+ * **#60 per-feature docs** in `docs/`: 11 markdown files covering
207
+ every Phase 1-4 feature with overview / install / API / examples /
208
+ test-harness link.
209
+ * **#61 demo media** — five 1280×720 H.264 MP4s in `docs/demos/`
210
+ (CLI, GUI, MCP, Web UI, HA dashboard) totalling ~3.2 min.
211
+ Reproducible via `runtime/demos/render.py` (PIL + ffmpeg only).
212
+ * **#62 v1.0.0 release** — this changelog, the release notes, the
213
+ refreshed dist tarball + SHA, and the GitHub release.
214
+
215
+ ### Phase 0 fixes shipped after v0.1.0 (items 21-34)
216
+
217
+ Source-patches against BambuStudio v02.06.00.51 + LD_PRELOAD shim
218
+ hardening that landed before the daemon expansion:
219
+
220
+ * **#21** `GUI_App::config_wizard_startup` source-returns false
221
+ * **#22** BBLTopbar narrow-display padding shrink
222
+ * **#23** SelectMachinePop modal management — Hide() before
223
+ spawning the Connect dialog so it z-orders correctly
224
+ * **#24** Swallow noisy wx sizer CheckExpectedParentIs asserts
225
+ * **#25** `EGL_PLATFORM=x11` (not surfaceless) — fixes 3D viewport
226
+ black screen on llvmpipe + wxGLCanvas
227
+ * **#26** `cd $HOME` before launching so wxFileDialog defaults
228
+ there instead of `/`
229
+ * **#27** Suppress gvfs "Could not read /" popup
230
+ * **#28** wxLocale `en_US` ICU bypass via source patch (replaces
231
+ the shim symbol)
232
+ * **#29** Cache + replay latest MQTT state on every shim
233
+ subscribe — AMS populates within milliseconds instead of
234
+ waiting for the next 30 s pushall
235
+ * **#30** Show occupied LAN-mode printers in the Network combobox's
236
+ "Other Device" list (was being filtered out by `is_avaliable()`)
237
+ * **#31** Inflate CheckBox hitbox to 42 px for touchscreens
238
+ * **#32** Register the "wx" WebView script-message handler so
239
+ Home-tab WebView click events fire properly
240
+ * **#33** Resolved by #25 (same EGL surface root cause)
241
+ * **#34** Delete `patch_bambu_skip_wizard.py` + dead shim symbols
242
+ now that #21+#28 supersede them
243
+
244
+ ### Deferred to follow-up
245
+
246
+ Two ledger items intentionally pushed past v1.0.0 because they
247
+ require physical-print-time + an attached ADB device (or a
248
+ human at the printer):
249
+
250
+ * **#35 Final Phase 0 ADB verification** — wipe `~/.config/
251
+ BambuStudioInternal/`, run `install.sh`, launch bambu-studio,
252
+ manually verify zero papercuts.
253
+ * **#41 Print the rumi frame end-to-end via the GUI** — physical
254
+ print run from a sliced plate. The bridge-side `start_print`
255
+ C-ABI is already exercised end-to-end by
256
+ `runtime/network_shim/tests/test_shim_e2e.py` against the real
257
+ X2D, so the underlying code path is proven independent of this
258
+ manual GUI run.
259
+
260
+ ## v0.1.0 — initial release (2026-04-25)
261
+
262
+ * `bin/bambu-studio` — patched BambuStudio v02.06.00.51 (~77 MB
263
+ stripped) with seven Termux/touchscreen patches.
264
+ * `runtime/libpreloadgtk.so` — LD_PRELOAD GTK/locale shim.
265
+ * `helpers/x2d_bridge.py` + `helpers/bambu_cert.py` — pure-Python
266
+ signed-MQTT LAN client.
267
+ * `helpers/{lan_upload,lan_print,resolve_profile,inject_thumbnails,make_frame,test_signed_mqtt}.py` — slicing + LAN-print pipeline.
268
+ * Bambu cloud REST endpoints (login + a few read-only verbs).
269
+
270
+ Full v0.1.0 release notes:
271
+ https://github.com/tribixbite/x2d/releases/tag/v0.1.0
beambam-1.1.0/LICENSE ADDED
@@ -0,0 +1,43 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-2026 Will Stone (tribixbite)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ This MIT license covers the `beambam` Python package and associated tooling
26
+ (bridge, daemon, MCP server, Home Assistant publisher, web UI, slicing helpers,
27
+ analyze/simulate/cloud-fetch commands).
28
+
29
+ It does NOT cover:
30
+
31
+ * `BambuStudio/`, `bs-bionic/`, `bs-cli/`, `bs-gui/` — patched fork of
32
+ Bambulab/BambuStudio (AGPL-3.0). See BambuStudio/LICENSE.
33
+
34
+ * `patches/*.patch` — diffs against BambuStudio sources; same AGPL-3.0
35
+ inherits from the upstream they modify.
36
+
37
+ * `runtime/network_shim/`, `runtime/bambu_extract/` — interop tooling
38
+ that links against BambuStudio internals; AGPL-3.0 applies to derivative
39
+ work that links those translation units.
40
+
41
+ The pure-Python tree (the PyPI distribution) does NOT link any AGPL code at
42
+ runtime — it talks to printers over the wire (signed MQTT, FTPS, HTTP) and is
43
+ safe to use under MIT for both open- and closed-source downstream projects.