letify 2.11.0__tar.gz → 2.11.1__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.
Files changed (318) hide show
  1. {letify-2.11.0 → letify-2.11.1}/PKG-INFO +1 -1
  2. {letify-2.11.0 → letify-2.11.1}/docs/ROADMAP-3.0.md +1 -1
  3. {letify-2.11.0 → letify-2.11.1}/docs/SPEC.md +2 -1
  4. {letify-2.11.0 → letify-2.11.1}/docs/guide/09-agent.md +1 -0
  5. {letify-2.11.0 → letify-2.11.1}/docs/guide/ko/09-/354/227/220/354/235/264/354/240/204/355/212/270.md +1 -0
  6. {letify-2.11.0 → letify-2.11.1}/letify/__init__.py +1 -1
  7. letify-2.11.1/letify/providers/tunnel.py +135 -0
  8. {letify-2.11.0 → letify-2.11.1}/letify/transport/linkchannel.py +59 -0
  9. {letify-2.11.0 → letify-2.11.1}/letify/transport/linksignal.py +2 -3
  10. {letify-2.11.0 → letify-2.11.1}/letify-core/Cargo.lock +3 -3
  11. {letify-2.11.0 → letify-2.11.1}/letify-core/Cargo.toml +1 -1
  12. {letify-2.11.0 → letify-2.11.1}/letify-ext/package-lock.json +2 -2
  13. {letify-2.11.0 → letify-2.11.1}/letify-ext/package.json +1 -1
  14. {letify-2.11.0 → letify-2.11.1}/pyproject.toml +1 -1
  15. {letify-2.11.0 → letify-2.11.1}/tests/test_link_agent.py +58 -0
  16. {letify-2.11.0 → letify-2.11.1}/tests/test_link_signal.py +15 -0
  17. letify-2.11.0/letify/providers/tunnel.py +0 -27
  18. {letify-2.11.0 → letify-2.11.1}/.github/workflows/ci.yml +0 -0
  19. {letify-2.11.0 → letify-2.11.1}/.github/workflows/docs.yml +0 -0
  20. {letify-2.11.0 → letify-2.11.1}/.github/workflows/letify-link.yml +0 -0
  21. {letify-2.11.0 → letify-2.11.1}/.github/workflows/publish-crates.yml +0 -0
  22. {letify-2.11.0 → letify-2.11.1}/.github/workflows/publish.yml +0 -0
  23. {letify-2.11.0 → letify-2.11.1}/.github/workflows/reserve-crates.yml +0 -0
  24. {letify-2.11.0 → letify-2.11.1}/.gitignore +0 -0
  25. {letify-2.11.0 → letify-2.11.1}/.researchtree +0 -0
  26. {letify-2.11.0 → letify-2.11.1}/CLAUDE.md +0 -0
  27. {letify-2.11.0 → letify-2.11.1}/LICENSE +0 -0
  28. {letify-2.11.0 → letify-2.11.1}/PROJECT.md +0 -0
  29. {letify-2.11.0 → letify-2.11.1}/README.md +0 -0
  30. {letify-2.11.0 → letify-2.11.1}/docs/COMPONENT.md +0 -0
  31. {letify-2.11.0 → letify-2.11.1}/docs/INTENT.md +0 -0
  32. {letify-2.11.0 → letify-2.11.1}/docs/NETWORK.md +0 -0
  33. {letify-2.11.0 → letify-2.11.1}/docs/guide/01-getting-started.md +0 -0
  34. {letify-2.11.0 → letify-2.11.1}/docs/guide/02-providers.md +0 -0
  35. {letify-2.11.0 → letify-2.11.1}/docs/guide/03-execution-modes.md +0 -0
  36. {letify-2.11.0 → letify-2.11.1}/docs/guide/04-environments-and-data.md +0 -0
  37. {letify-2.11.0 → letify-2.11.1}/docs/guide/05-concurrency.md +0 -0
  38. {letify-2.11.0 → letify-2.11.1}/docs/guide/06-cost.md +0 -0
  39. {letify-2.11.0 → letify-2.11.1}/docs/guide/07-troubleshooting.md +0 -0
  40. {letify-2.11.0 → letify-2.11.1}/docs/guide/08-releasing.md +0 -0
  41. {letify-2.11.0 → letify-2.11.1}/docs/guide/README.md +0 -0
  42. {letify-2.11.0 → letify-2.11.1}/docs/guide/ko/01-/354/213/234/354/236/221/355/225/230/352/270/260.md" +0 -0
  43. {letify-2.11.0 → letify-2.11.1}/docs/guide/ko/02-/355/224/204/353/241/234/353/260/224/354/235/264/353/215/224.md" +0 -0
  44. {letify-2.11.0 → letify-2.11.1}/docs/guide/ko/03-/354/213/244/355/226/211-/353/260/251/354/213/235.md" +0 -0
  45. {letify-2.11.0 → letify-2.11.1}/docs/guide/ko/04-/355/231/230/352/262/275/352/263/274-/353/215/260/354/235/264/355/204/260.md" +0 -0
  46. {letify-2.11.0 → letify-2.11.1}/docs/guide/ko/05-/353/217/231/354/213/234-/354/213/244/355/226/211.md" +0 -0
  47. {letify-2.11.0 → letify-2.11.1}/docs/guide/ko/06-/353/271/204/354/232/251.md" +0 -0
  48. {letify-2.11.0 → letify-2.11.1}/docs/guide/ko/07-/353/254/270/354/240/234-/355/225/264/352/262/260.md" +0 -0
  49. {letify-2.11.0 → letify-2.11.1}/docs/guide/ko/08-/353/246/264/353/246/254/354/212/244.md" +0 -0
  50. {letify-2.11.0 → letify-2.11.1}/docs/guide/ko/README.md +0 -0
  51. {letify-2.11.0 → letify-2.11.1}/docs/locales/README_ko.md +0 -0
  52. {letify-2.11.0 → letify-2.11.1}/docs/mkdocs.yml +0 -0
  53. {letify-2.11.0 → letify-2.11.1}/examples/README.md +0 -0
  54. {letify-2.11.0 → letify-2.11.1}/examples/nvfp4-lora/.letify.example +0 -0
  55. {letify-2.11.0 → letify-2.11.1}/examples/nvfp4-lora/00_smoke.py +0 -0
  56. {letify-2.11.0 → letify-2.11.1}/examples/nvfp4-lora/01_sweep.py +0 -0
  57. {letify-2.11.0 → letify-2.11.1}/examples/nvfp4-lora/02_resume.py +0 -0
  58. {letify-2.11.0 → letify-2.11.1}/examples/nvfp4-lora/03_watch.py +0 -0
  59. {letify-2.11.0 → letify-2.11.1}/examples/nvfp4-lora/README.md +0 -0
  60. {letify-2.11.0 → letify-2.11.1}/examples/nvfp4-lora/README_ko.md +0 -0
  61. {letify-2.11.0 → letify-2.11.1}/examples/nvfp4-lora/common.py +0 -0
  62. {letify-2.11.0 → letify-2.11.1}/examples/nvfp4-lora/recipe.py +0 -0
  63. {letify-2.11.0 → letify-2.11.1}/letify/cli.py +0 -0
  64. {letify-2.11.0 → letify-2.11.1}/letify/config/__init__.py +0 -0
  65. {letify-2.11.0 → letify-2.11.1}/letify/config/inventory.py +0 -0
  66. {letify-2.11.0 → letify-2.11.1}/letify/config/login.py +0 -0
  67. {letify-2.11.0 → letify-2.11.1}/letify/config/schema.py +0 -0
  68. {letify-2.11.0 → letify-2.11.1}/letify/config/secrets.py +0 -0
  69. {letify-2.11.0 → letify-2.11.1}/letify/config/writer.py +0 -0
  70. {letify-2.11.0 → letify-2.11.1}/letify/declare/__init__.py +0 -0
  71. {letify-2.11.0 → letify-2.11.1}/letify/declare/cache.py +0 -0
  72. {letify-2.11.0 → letify-2.11.1}/letify/declare/env.py +0 -0
  73. {letify-2.11.0 → letify-2.11.1}/letify/declare/exit.py +0 -0
  74. {letify-2.11.0 → letify-2.11.1}/letify/declare/function.py +0 -0
  75. {letify-2.11.0 → letify-2.11.1}/letify/declare/instance.py +0 -0
  76. {letify-2.11.0 → letify-2.11.1}/letify/declare/reduce.py +0 -0
  77. {letify-2.11.0 → letify-2.11.1}/letify/declare/replicas.py +0 -0
  78. {letify-2.11.0 → letify-2.11.1}/letify/errors.py +0 -0
  79. {letify-2.11.0 → letify-2.11.1}/letify/install.py +0 -0
  80. {letify-2.11.0 → letify-2.11.1}/letify/launcher.py +0 -0
  81. {letify-2.11.0 → letify-2.11.1}/letify/paths.py +0 -0
  82. {letify-2.11.0 → letify-2.11.1}/letify/protocol/__init__.py +0 -0
  83. {letify-2.11.0 → letify-2.11.1}/letify/protocol/codec.py +0 -0
  84. {letify-2.11.0 → letify-2.11.1}/letify/protocol/driver.py +0 -0
  85. {letify-2.11.0 → letify-2.11.1}/letify/protocol/handle.py +0 -0
  86. {letify-2.11.0 → letify-2.11.1}/letify/protocol/wire.py +0 -0
  87. {letify-2.11.0 → letify-2.11.1}/letify/protocol/worker.py +0 -0
  88. {letify-2.11.0 → letify-2.11.1}/letify/providers/__init__.py +0 -0
  89. {letify-2.11.0 → letify-2.11.1}/letify/providers/base.py +0 -0
  90. {letify-2.11.0 → letify-2.11.1}/letify/providers/colab.py +0 -0
  91. {letify-2.11.0 → letify-2.11.1}/letify/providers/colab_files.py +0 -0
  92. {letify-2.11.0 → letify-2.11.1}/letify/providers/colab_keepalive.py +0 -0
  93. {letify-2.11.0 → letify-2.11.1}/letify/providers/elice.py +0 -0
  94. {letify-2.11.0 → letify-2.11.1}/letify/providers/kaggle.py +0 -0
  95. {letify-2.11.0 → letify-2.11.1}/letify/providers/kaggle_adapter.py +0 -0
  96. {letify-2.11.0 → letify-2.11.1}/letify/providers/local.py +0 -0
  97. {letify-2.11.0 → letify-2.11.1}/letify/providers/modal.py +0 -0
  98. {letify-2.11.0 → letify-2.11.1}/letify/providers/modal_adapter.py +0 -0
  99. {letify-2.11.0 → letify-2.11.1}/letify/providers/naming.py +0 -0
  100. {letify-2.11.0 → letify-2.11.1}/letify/providers/shell.py +0 -0
  101. {letify-2.11.0 → letify-2.11.1}/letify/providers/usage.py +0 -0
  102. {letify-2.11.0 → letify-2.11.1}/letify/remoting/__init__.py +0 -0
  103. {letify-2.11.0 → letify-2.11.1}/letify/remoting/device/__init__.py +0 -0
  104. {letify-2.11.0 → letify-2.11.1}/letify/remoting/device/client.py +0 -0
  105. {letify-2.11.0 → letify-2.11.1}/letify/remoting/device/cuda.py +0 -0
  106. {letify-2.11.0 → letify-2.11.1}/letify/remoting/device/executor.py +0 -0
  107. {letify-2.11.0 → letify-2.11.1}/letify/remoting/device/frames.py +0 -0
  108. {letify-2.11.0 → letify-2.11.1}/letify/remoting/device/guard.py +0 -0
  109. {letify-2.11.0 → letify-2.11.1}/letify/remoting/device/tensor.py +0 -0
  110. {letify-2.11.0 → letify-2.11.1}/letify/remoting/device/trace.py +0 -0
  111. {letify-2.11.0 → letify-2.11.1}/letify/remoting/device/value.py +0 -0
  112. {letify-2.11.0 → letify-2.11.1}/letify/render.py +0 -0
  113. {letify-2.11.0 → letify-2.11.1}/letify/runtime/__init__.py +0 -0
  114. {letify-2.11.0 → letify-2.11.1}/letify/runtime/bootstrap.py +0 -0
  115. {letify-2.11.0 → letify-2.11.1}/letify/runtime/broker.py +0 -0
  116. {letify-2.11.0 → letify-2.11.1}/letify/runtime/channel.py +0 -0
  117. {letify-2.11.0 → letify-2.11.1}/letify/runtime/control.py +0 -0
  118. {letify-2.11.0 → letify-2.11.1}/letify/runtime/lease.py +0 -0
  119. {letify-2.11.0 → letify-2.11.1}/letify/runtime/pool.py +0 -0
  120. {letify-2.11.0 → letify-2.11.1}/letify/runtime/reattach.py +0 -0
  121. {letify-2.11.0 → letify-2.11.1}/letify/runtime/session.py +0 -0
  122. {letify-2.11.0 → letify-2.11.1}/letify/runtime/takeover.py +0 -0
  123. {letify-2.11.0 → letify-2.11.1}/letify/runtime/telemetry.py +0 -0
  124. {letify-2.11.0 → letify-2.11.1}/letify/runtime/workers.py +0 -0
  125. {letify-2.11.0 → letify-2.11.1}/letify/store/__init__.py +0 -0
  126. {letify-2.11.0 → letify-2.11.1}/letify/store/backends/__init__.py +0 -0
  127. {letify-2.11.0 → letify-2.11.1}/letify/store/backends/drive.py +0 -0
  128. {letify-2.11.0 → letify-2.11.1}/letify/store/backends/filesystem.py +0 -0
  129. {letify-2.11.0 → letify-2.11.1}/letify/store/backends/google_auth.py +0 -0
  130. {letify-2.11.0 → letify-2.11.1}/letify/store/backends/layout.py +0 -0
  131. {letify-2.11.0 → letify-2.11.1}/letify/store/backends/objects.py +0 -0
  132. {letify-2.11.0 → letify-2.11.1}/letify/store/cas.py +0 -0
  133. {letify-2.11.0 → letify-2.11.1}/letify/store/handoff.py +0 -0
  134. {letify-2.11.0 → letify-2.11.1}/letify/store/pathdata.py +0 -0
  135. {letify-2.11.0 → letify-2.11.1}/letify/store/sendorder.py +0 -0
  136. {letify-2.11.0 → letify-2.11.1}/letify/store/volume.py +0 -0
  137. {letify-2.11.0 → letify-2.11.1}/letify/stubs.py +0 -0
  138. {letify-2.11.0 → letify-2.11.1}/letify/tools.py +0 -0
  139. {letify-2.11.0 → letify-2.11.1}/letify/transport/__init__.py +0 -0
  140. {letify-2.11.0 → letify-2.11.1}/letify/transport/agent.py +0 -0
  141. {letify-2.11.0 → letify-2.11.1}/letify/transport/announce.py +0 -0
  142. {letify-2.11.0 → letify-2.11.1}/letify/transport/link.py +0 -0
  143. {letify-2.11.0 → letify-2.11.1}/letify/transport/linkagent.py +0 -0
  144. {letify-2.11.0 → letify-2.11.1}/letify/transport/linkd.py +0 -0
  145. {letify-2.11.0 → letify-2.11.1}/letify/transport/linkmailbox.py +0 -0
  146. {letify-2.11.0 → letify-2.11.1}/letify/transport/linkpump.py +0 -0
  147. {letify-2.11.0 → letify-2.11.1}/letify/transport/linkshim.py +0 -0
  148. {letify-2.11.0 → letify-2.11.1}/letify/transport/linkupload.py +0 -0
  149. {letify-2.11.0 → letify-2.11.1}/letify/transport/linkwebsocket.py +0 -0
  150. {letify-2.11.0 → letify-2.11.1}/letify/transport/nat.py +0 -0
  151. {letify-2.11.0 → letify-2.11.1}/letify/transport/pipeline.py +0 -0
  152. {letify-2.11.0 → letify-2.11.1}/letify/transport/portmap.py +0 -0
  153. {letify-2.11.0 → letify-2.11.1}/letify/transport/probe.py +0 -0
  154. {letify-2.11.0 → letify-2.11.1}/letify/transport/quic.py +0 -0
  155. {letify-2.11.0 → letify-2.11.1}/letify/transport/rendezvous.py +0 -0
  156. {letify-2.11.0 → letify-2.11.1}/letify/transport/setup.py +0 -0
  157. {letify-2.11.0 → letify-2.11.1}/letify/transport/sshopts.py +0 -0
  158. {letify-2.11.0 → letify-2.11.1}/letify/transport/strategies.py +0 -0
  159. {letify-2.11.0 → letify-2.11.1}/letify-core/.gitignore +0 -0
  160. {letify-2.11.0 → letify-2.11.1}/letify-core/build.py +0 -0
  161. {letify-2.11.0 → letify-2.11.1}/letify-core/letify/Cargo.toml +0 -0
  162. {letify-2.11.0 → letify-2.11.1}/letify-core/letify/LICENSE +0 -0
  163. {letify-2.11.0 → letify-2.11.1}/letify-core/letify/README.md +0 -0
  164. {letify-2.11.0 → letify-2.11.1}/letify-core/letify/src/lib.rs +0 -0
  165. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/Cargo.toml +0 -0
  166. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/examples/bench.rs +0 -0
  167. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/acceptor.rs +0 -0
  168. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/bin/letify-link.rs +0 -0
  169. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/config.rs +0 -0
  170. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/error.rs +0 -0
  171. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/frame.rs +0 -0
  172. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/handshake.rs +0 -0
  173. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/hysteresis.rs +0 -0
  174. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/identity.rs +0 -0
  175. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/keys.rs +0 -0
  176. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/lib.rs +0 -0
  177. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/observe.rs +0 -0
  178. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/paths.rs +0 -0
  179. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/plan.rs +0 -0
  180. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/policing.rs +0 -0
  181. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/punch.rs +0 -0
  182. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/record.rs +0 -0
  183. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/relay.rs +0 -0
  184. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/rendezvous.rs +0 -0
  185. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/replay.rs +0 -0
  186. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/session.rs +0 -0
  187. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/sidecar.rs +0 -0
  188. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/stream.rs +0 -0
  189. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/stun.rs +0 -0
  190. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/tcp.rs +0 -0
  191. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/trace.rs +0 -0
  192. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/src/udp.rs +0 -0
  193. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/acceptor.rs +0 -0
  194. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/api.rs +0 -0
  195. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/common/mod.rs +0 -0
  196. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/diag_sim.rs +0 -0
  197. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/fairness.rs +0 -0
  198. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/gauge.rs +0 -0
  199. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/handshake.rs +0 -0
  200. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/hysteresis.rs +0 -0
  201. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/keepalive.rs +0 -0
  202. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/mobile.rs +0 -0
  203. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/nat.rs +0 -0
  204. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/paths.rs +0 -0
  205. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/qad.rs +0 -0
  206. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/rekey.rs +0 -0
  207. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/relay.rs +0 -0
  208. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/relay_pairing.rs +0 -0
  209. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/rendezvous.rs +0 -0
  210. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/reorder.rs +0 -0
  211. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/replay.rs +0 -0
  212. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/resume.rs +0 -0
  213. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/revoke.rs +0 -0
  214. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/session.rs +0 -0
  215. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/sidecar.rs +0 -0
  216. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/startup.rs +0 -0
  217. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/subflows.rs +0 -0
  218. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/trace.rs +0 -0
  219. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/udp.rs +0 -0
  220. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-link/tests/udp_bench.rs +0 -0
  221. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-quic/Cargo.toml +0 -0
  222. {letify-2.11.0 → letify-2.11.1}/letify-core/letify-quic/src/main.rs +0 -0
  223. {letify-2.11.0 → letify-2.11.1}/letify-core/rust-toolchain.toml +0 -0
  224. {letify-2.11.0 → letify-2.11.1}/letify-ext/.vscodeignore +0 -0
  225. {letify-2.11.0 → letify-2.11.1}/letify-ext/LICENSE +0 -0
  226. {letify-2.11.0 → letify-2.11.1}/letify-ext/README.md +0 -0
  227. {letify-2.11.0 → letify-2.11.1}/letify-ext/media/icon.svg +0 -0
  228. {letify-2.11.0 → letify-2.11.1}/letify-ext/src/cli.ts +0 -0
  229. {letify-2.11.0 → letify-2.11.1}/letify-ext/src/extension.ts +0 -0
  230. {letify-2.11.0 → letify-2.11.1}/letify-ext/src/history.ts +0 -0
  231. {letify-2.11.0 → letify-2.11.1}/letify-ext/src/model.ts +0 -0
  232. {letify-2.11.0 → letify-2.11.1}/letify-ext/src/poll.ts +0 -0
  233. {letify-2.11.0 → letify-2.11.1}/letify-ext/src/render.ts +0 -0
  234. {letify-2.11.0 → letify-2.11.1}/letify-ext/test/cli.test.ts +0 -0
  235. {letify-2.11.0 → letify-2.11.1}/letify-ext/test/manifest.test.ts +0 -0
  236. {letify-2.11.0 → letify-2.11.1}/letify-ext/test/model.test.ts +0 -0
  237. {letify-2.11.0 → letify-2.11.1}/letify-ext/test/regressions.test.ts +0 -0
  238. {letify-2.11.0 → letify-2.11.1}/letify-ext/tsconfig.json +0 -0
  239. {letify-2.11.0 → letify-2.11.1}/letify-signal/README.md +0 -0
  240. {letify-2.11.0 → letify-2.11.1}/letify-signal/cloudflare.config.ts +0 -0
  241. {letify-2.11.0 → letify-2.11.1}/letify-signal/package-lock.json +0 -0
  242. {letify-2.11.0 → letify-2.11.1}/letify-signal/package.json +0 -0
  243. {letify-2.11.0 → letify-2.11.1}/letify-signal/src/auth.ts +0 -0
  244. {letify-2.11.0 → letify-2.11.1}/letify-signal/src/ed25519.ts +0 -0
  245. {letify-2.11.0 → letify-2.11.1}/letify-signal/src/handler.ts +0 -0
  246. {letify-2.11.0 → letify-2.11.1}/letify-signal/src/index.ts +0 -0
  247. {letify-2.11.0 → letify-2.11.1}/letify-signal/src/limiter.ts +0 -0
  248. {letify-2.11.0 → letify-2.11.1}/letify-signal/src/mailbox.ts +0 -0
  249. {letify-2.11.0 → letify-2.11.1}/letify-signal/src/objects.ts +0 -0
  250. {letify-2.11.0 → letify-2.11.1}/letify-signal/src/protocol.ts +0 -0
  251. {letify-2.11.0 → letify-2.11.1}/letify-signal/src/storage.ts +0 -0
  252. {letify-2.11.0 → letify-2.11.1}/letify-signal/test/auth.test.ts +0 -0
  253. {letify-2.11.0 → letify-2.11.1}/letify-signal/test/ed25519.test.ts +0 -0
  254. {letify-2.11.0 → letify-2.11.1}/letify-signal/test/helpers.ts +0 -0
  255. {letify-2.11.0 → letify-2.11.1}/letify-signal/test/interop.test.ts +0 -0
  256. {letify-2.11.0 → letify-2.11.1}/letify-signal/test/limiter.test.ts +0 -0
  257. {letify-2.11.0 → letify-2.11.1}/letify-signal/test/mailbox.test.ts +0 -0
  258. {letify-2.11.0 → letify-2.11.1}/letify-signal/test/objects.test.ts +0 -0
  259. {letify-2.11.0 → letify-2.11.1}/letify-signal/test/setup.ts +0 -0
  260. {letify-2.11.0 → letify-2.11.1}/letify-signal/test/worker.test.ts +0 -0
  261. {letify-2.11.0 → letify-2.11.1}/letify-signal/tsconfig.json +0 -0
  262. {letify-2.11.0 → letify-2.11.1}/letify-signal/vitest.config.ts +0 -0
  263. {letify-2.11.0 → letify-2.11.1}/letify_providers.py +0 -0
  264. {letify-2.11.0 → letify-2.11.1}/scripts/sync-main.sh +0 -0
  265. {letify-2.11.0 → letify-2.11.1}/scripts/version.py +0 -0
  266. {letify-2.11.0 → letify-2.11.1}/tests/conftest.py +0 -0
  267. {letify-2.11.0 → letify-2.11.1}/tests/fake_kaggle_adapter.py +0 -0
  268. {letify-2.11.0 → letify-2.11.1}/tests/fake_modal_adapter.py +0 -0
  269. {letify-2.11.0 → letify-2.11.1}/tests/test_cli.py +0 -0
  270. {letify-2.11.0 → letify-2.11.1}/tests/test_cli_output.py +0 -0
  271. {letify-2.11.0 → letify-2.11.1}/tests/test_colab_keepalive.py +0 -0
  272. {letify-2.11.0 → letify-2.11.1}/tests/test_config.py +0 -0
  273. {letify-2.11.0 → letify-2.11.1}/tests/test_core.py +0 -0
  274. {letify-2.11.0 → letify-2.11.1}/tests/test_data.py +0 -0
  275. {letify-2.11.0 → letify-2.11.1}/tests/test_data_in_place.py +0 -0
  276. {letify-2.11.0 → letify-2.11.1}/tests/test_data_streaming.py +0 -0
  277. {letify-2.11.0 → letify-2.11.1}/tests/test_declare.py +0 -0
  278. {letify-2.11.0 → letify-2.11.1}/tests/test_device.py +0 -0
  279. {letify-2.11.0 → letify-2.11.1}/tests/test_device_compile.py +0 -0
  280. {letify-2.11.0 → letify-2.11.1}/tests/test_distributed.py +0 -0
  281. {letify-2.11.0 → letify-2.11.1}/tests/test_drive_handoff.py +0 -0
  282. {letify-2.11.0 → letify-2.11.1}/tests/test_drive_store.py +0 -0
  283. {letify-2.11.0 → letify-2.11.1}/tests/test_editor_sessions.py +0 -0
  284. {letify-2.11.0 → letify-2.11.1}/tests/test_elice.py +0 -0
  285. {letify-2.11.0 → letify-2.11.1}/tests/test_frames.py +0 -0
  286. {letify-2.11.0 → letify-2.11.1}/tests/test_install.py +0 -0
  287. {letify-2.11.0 → letify-2.11.1}/tests/test_kaggle.py +0 -0
  288. {letify-2.11.0 → letify-2.11.1}/tests/test_kaggle_cookie.py +0 -0
  289. {letify-2.11.0 → letify-2.11.1}/tests/test_kaggle_link.py +0 -0
  290. {letify-2.11.0 → letify-2.11.1}/tests/test_link_channel.py +0 -0
  291. {letify-2.11.0 → letify-2.11.1}/tests/test_link_command_channel.py +0 -0
  292. {letify-2.11.0 → letify-2.11.1}/tests/test_link_exec.py +0 -0
  293. {letify-2.11.0 → letify-2.11.1}/tests/test_link_log.py +0 -0
  294. {letify-2.11.0 → letify-2.11.1}/tests/test_link_opt_in.py +0 -0
  295. {letify-2.11.0 → letify-2.11.1}/tests/test_link_upload.py +0 -0
  296. {letify-2.11.0 → letify-2.11.1}/tests/test_linkd.py +0 -0
  297. {letify-2.11.0 → letify-2.11.1}/tests/test_notebook.py +0 -0
  298. {letify-2.11.0 → letify-2.11.1}/tests/test_parallel_placement.py +0 -0
  299. {letify-2.11.0 → letify-2.11.1}/tests/test_paths.py +0 -0
  300. {letify-2.11.0 → letify-2.11.1}/tests/test_portmap.py +0 -0
  301. {letify-2.11.0 → letify-2.11.1}/tests/test_protocol.py +0 -0
  302. {letify-2.11.0 → letify-2.11.1}/tests/test_providers.py +0 -0
  303. {letify-2.11.0 → letify-2.11.1}/tests/test_punch_sockets.py +0 -0
  304. {letify-2.11.0 → letify-2.11.1}/tests/test_quic.py +0 -0
  305. {letify-2.11.0 → letify-2.11.1}/tests/test_remoting.py +0 -0
  306. {letify-2.11.0 → letify-2.11.1}/tests/test_render.py +0 -0
  307. {letify-2.11.0 → letify-2.11.1}/tests/test_run_control.py +0 -0
  308. {letify-2.11.0 → letify-2.11.1}/tests/test_run_reattach.py +0 -0
  309. {letify-2.11.0 → letify-2.11.1}/tests/test_run_takeover.py +0 -0
  310. {letify-2.11.0 → letify-2.11.1}/tests/test_runtime.py +0 -0
  311. {letify-2.11.0 → letify-2.11.1}/tests/test_shell_workers.py +0 -0
  312. {letify-2.11.0 → letify-2.11.1}/tests/test_ship.py +0 -0
  313. {letify-2.11.0 → letify-2.11.1}/tests/test_store.py +0 -0
  314. {letify-2.11.0 → letify-2.11.1}/tests/test_strategies.py +0 -0
  315. {letify-2.11.0 → letify-2.11.1}/tests/test_stubs.py +0 -0
  316. {letify-2.11.0 → letify-2.11.1}/tests/test_transport.py +0 -0
  317. {letify-2.11.0 → letify-2.11.1}/tests/test_tunnel_setup.py +0 -0
  318. {letify-2.11.0 → letify-2.11.1}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: letify
3
- Version: 2.11.0
3
+ Version: 2.11.1
4
4
  Summary: Declarations that become infrastructure.
5
5
  Project-URL: Homepage, https://github.com/DarkPyonix/letify
6
6
  Project-URL: Documentation, https://github.com/DarkPyonix/letify/tree/main/docs
@@ -18,7 +18,7 @@ This file is planning. The design is in [SPEC.md, letify-link](SPEC.md#letify-li
18
18
  |---|---|---|
19
19
  | M1 | Multi-socket TCP punch with spare sockets | Done in 2.10.0 |
20
20
  | M2 | Session layer and path manager, with the hysteresis of the path manager and the head-of-line blocking measurement of many streams over TCP subflows against QUIC streams | Built on `feat/letify-link-spec`: the encrypted multiplexed session, TCP and UDP subflows and the path manager are in the `letify-link` crate. The head-of-line measurement is open |
21
- | M3 | NAT type detection, port spraying, policing detection, Tailcat replacement | Built on the branch: NAT classification, the punch, the signalling client and the Cloudflare Worker in `letify-signal/`, and the agent with pairing. Measured only against fakes. The live NAT-to-NAT connect is open and is the work of 2.12. Tailcat is untouched |
21
+ | M3 | NAT type detection, port spraying, policing detection, Tailcat replacement | Built on the branch: NAT classification, the punch, the signalling client and the Cloudflare Worker in `letify-signal/`, and the agent with pairing. Measured only against fakes until `feat/link-signal-live`, which connects a tunnel account to a paired agent through the signalling service alone and measures it live on Kaggle and Colab (all paths were TCP punches, 4 of 4 in every run). Remaining: the tunnel over letify-link (B4), UDP punch to a cloud VM, signalling round trip (2 to 6 s, mostly TLS setup per request). Tailcat is untouched |
22
22
  | M4 | The `letify-link` crate and sidecar wired into letify | Built on the branch as opt-in: the sidecar, the shell, Colab and Kaggle bootstrap, transfer streams, takeover and helper commands over the session. Ships in 2.11 behind `link = "letify-link"`. Default and Tailcat removal are 3.0 |
23
23
 
24
24
  Each milestone is judged by its own experiment pull request. A spec change that the verdict rejects does not reach `develop`.
@@ -2283,7 +2283,7 @@ The service is the auxiliary rendezvous of [Rendezvous trait](#link-rendezvous).
2283
2283
 
2284
2284
  > A persistent agent reached through the signalling service serves the nodes paired with it, so an address-less machine needs no ssh server and no Tailcat.
2285
2285
 
2286
- Hypothesis: one long-running process holding a list of paired node ids replaces the Tailcat agent of `letify client shell connect` for a machine with no address. The experiment is the branch `feat/link-agent-pairing`. This section changes no tunnel account yet: an account that names an agent is written by the login of item 8, and the connect that uses it is a later branch.
2286
+ Hypothesis: one long-running process holding a list of paired node ids replaces the Tailcat agent of `letify client shell connect` for a machine with no address. The experiment is the branch `feat/link-agent-pairing`. An account that names an agent is written by the login of item 8, and the connect that uses it is item 11. The experiment of item 11 is the branch `feat/link-signal-live`.
2287
2287
 
2288
2288
  1. **Identity and state.** The agent keeps its state in `~/.letify/agent/` (under `LETIFY_HOME` when that is set), created with mode 0700. `link.key` is the agent's node key, the 64 hex character file of the sidecar, created by the sidecar with mode 0600 on first run and refused when group or others can read it, as [Relay](#link-relay) item 14 says. `paired.json` is `{"nodes":{"<node id>":{"label":"<text>","at":<unix s>}}}`, written by a temporary file and a rename with mode 0600. The label is at most 64 printable characters. The agent re-reads the file when its modification time changes, so `letify agent unpair` takes effect in a running agent within one poll, at the latest 5 s later (`POLL_S`, the wait of one poll).
2289
2289
  2. **Token v2.** `letify agent serve` prints one line to give to the user side: the prefix `letify-agent2:` followed by URL-safe base64, without padding, of this JSON: `{"v":2,"agent":"<agent node id>","secret":"<64 hex, 32 random bytes>","signal":"<URL>","version":"<letify version>","exp":<unix s>}`. A token that does not start with the prefix is refused by name: when it decodes as a Tailcat token the error says it is a Tailcat token from `letify client shell connect` and that this login needs the one `letify agent serve` prints. The secret lives in the memory of the running agent only, so a restart invalidates every token it printed. The secret expires 15 minutes after it was made (`exp`) and works once. After 5 wrong proofs it is discarded. Each run prints a new token, and the paired list outlives the run.
@@ -2295,6 +2295,7 @@ Hypothesis: one long-running process holding a list of paired node ids replaces
2295
2295
  8. **Login.** `letify login tunnel <alias> --connect <token>` dispatches on the prefix of the token: `letify-agent2:` takes this path, anything else takes the Tailcat path. This path needs no ssh and no Tailcat. It makes the account's node key `~/.letify/accounts/<alias>/link.key` (the key `connect_over` uses for the same account), pairs as item 3 says and writes `kind = "tunnel"`, `agent = "<agent node id>"` and `signal = "<URL>"`. A token past its `exp` is refused before anything is sent.
2296
2296
  9. **Commands.** `letify agent` runs on the address-less machine and builds no Launcher, like `letify client`. It is a command of its own and not a flag of `letify client shell connect`, because that command is the Tailcat agent with an ssh server and the next branch removes it.
2297
2297
  10. **Dependencies.** The agent is the standard library and the `letify-link` binary. It adds no package.
2298
+ 11. **Connect.** A `tunnel` account with an `agent` field is reached through the agent, with no ssh and no Tailcat. The account is a letify-link account without a `link` option: `link = "ssh"` on it is refused by name, because there is no ssh server to reach. It has no address, so `Tunnel.address` is `None` and no strategy is raced. `Tunnel.link()` returns the session's measurements with no ssh command, as `Colab.link()` does. `connect_link` calls `linkchannel.connect_signal`, which opens the sidecar of the account's `link.key`, builds a `SignalClient` for the account's `signal` URL and a `SignalBootstrap` for the node `agent`, and calls `connect_over` with no address, `punch=True`, the channel named `the signalling service` and no binary preparation, because the agent holds the binary of its own machine. The ping of `SignalBootstrap.start` is the bootstrap round trip, so `lead_ms` and the shim wait follow the rules of [Sidecar interface](#link-sidecar) item 8. A failure raises `ProviderUnavailable` with the reason and falls back to nothing.
2298
2299
 
2299
2300
  #### NAT traversal <!-- id: link-nat -->
2300
2301
 
@@ -26,6 +26,7 @@ The terms used below:
26
26
 
27
27
  - letify is installed on the agent machine (`uv add letify`).
28
28
  - The `letify-link` binary is present. It ships in the platform wheels. When it is missing, the command fails with `letify-link is not in this wheel`. The environment variable `LETIFY_LINK_BIN` can name another executable.
29
+ - `nvidia-smi` is on the agent's `PATH`. letify reads the cards through it. On Kaggle it is in `/opt/bin`, so start the agent with `PATH=/opt/bin:$PATH letify agent serve`.
29
30
  - The agent machine can open an outbound `https://` connection to the signalling service.
30
31
  - The signalling service URL is `https://letify.darkpyonix.dev` unless you set another. In order of priority:
31
32
  1. `letify agent serve --signal <URL>`
@@ -26,6 +26,7 @@
26
26
 
27
27
  - 에이전트 머신에 letify가 설치되어 있습니다 (`uv add letify`).
28
28
  - `letify-link` 바이너리가 있습니다. 플랫폼별 wheel에 들어 있습니다. 없으면 명령이 `letify-link is not in this wheel`로 실패합니다. 환경 변수 `LETIFY_LINK_BIN`으로 다른 실행 파일을 지정할 수 있습니다.
29
+ - 에이전트의 `PATH`에 `nvidia-smi`가 있습니다. letify는 이 명령으로 카드를 읽습니다. Kaggle에서는 `/opt/bin`에 있으므로 `PATH=/opt/bin:$PATH letify agent serve`로 에이전트를 시작합니다.
29
30
  - 에이전트 머신에서 시그널링 서비스로 나가는 `https://` 연결이 가능합니다.
30
31
  - 시그널링 서비스 URL은 따로 지정하지 않으면 `https://letify.darkpyonix.dev`입니다. 우선순위는 다음과 같습니다.
31
32
  1. `letify agent serve --signal <URL>`
@@ -70,7 +70,7 @@ distributed: Final = Host.distributed
70
70
  # The enum class stays importable from letify.declare.instance for letify's own use.
71
71
  del Host
72
72
 
73
- __version__ = "2.11.0"
73
+ __version__ = "2.11.1"
74
74
 
75
75
 
76
76
  def fetch(tensor): # type: ignore[no-untyped-def]
@@ -0,0 +1,135 @@
1
+ """Tunnel, a plain machine behind NAT with no provider API.
2
+
3
+ The machine's user runs ``letify client shell connect`` on it once. That starts the
4
+ remote agent behind ``tailcat serve`` and prints a Tailcat address and port, which go into
5
+ this account as ``tailcat`` and ``tailcat_port``. From there the connection pipeline in
6
+ ``Shell`` does the rest: it reaches the agent over Tailcat, exchanges the TCP punch
7
+ mapping through it, and races the strategies as the spec describes. This class adds no
8
+ transport of its own; it exists so the configuration kind says what the machine is.
9
+
10
+ An account that names an ``agent`` (``letify agent serve``, spec "Agent and pairing" item 11)
11
+ is reached through the signalling service and a letify-link session, with no ssh and no
12
+ Tailcat.
13
+ """
14
+
15
+ from __future__ import annotations
16
+
17
+ import subprocess
18
+ from typing import Any
19
+
20
+ from ..errors import ProviderUnavailable, RuntimeFailure
21
+ from .shell import Shell
22
+
23
+
24
+ class Tunnel(Shell):
25
+ """A machine behind NAT, reached through the remote agent."""
26
+
27
+ kind = "tunnel"
28
+ extra = "shell"
29
+ default_persistence = "ephemeral"
30
+ has_fast_path = True
31
+ #: Listing its workers would run the connection pipeline. Spec "Workers on a shell host".
32
+ discovers_sessions = False
33
+
34
+ @property
35
+ def agent(self) -> str | None:
36
+ """The node id of the agent this account is paired with, or None for a Tailcat account."""
37
+ value = self.config.option("agent")
38
+ return value if isinstance(value, str) and value else None
39
+
40
+ @property
41
+ def address(self) -> str | None:
42
+ return None if self.agent else super().address
43
+
44
+ @property
45
+ def uses_letify_link(self) -> bool:
46
+ """An agent account is always a letify-link account; ``link = "ssh"`` is refused."""
47
+ if self.agent is None:
48
+ return super().uses_letify_link
49
+ if self.config.option("link", "letify-link") not in (None, "letify-link"):
50
+ raise ProviderUnavailable(
51
+ self.kind,
52
+ f"{self.alias} names an agent and has no ssh server to reach; "
53
+ f"remove link = {self.config.option('link')!r}",
54
+ )
55
+ return True
56
+
57
+ def link(self, runtime: Any = None) -> Any:
58
+ """The session's measurements with no ssh command, on an agent account."""
59
+ if self.agent is None:
60
+ return super().link(runtime)
61
+ from ..transport.linkchannel import PlainSshLink
62
+
63
+ links: dict[str, Any] = self.__dict__.setdefault("_links", {})
64
+ key = self._link_key(runtime)
65
+ if key not in links:
66
+ remotes = self.__dict__.setdefault("_link_remotes", {})
67
+ links[key] = PlainSshLink(None, lambda: remotes.get(key))
68
+ return links[key]
69
+
70
+ def connect_link(self, runtime: Any = None) -> Any:
71
+ """A letify-link session bootstrapped through the agent and the signalling service."""
72
+ if self.agent is None:
73
+ return super().connect_link(runtime)
74
+ import letify
75
+
76
+ from ..config.secrets import account_directory
77
+ from ..protocol.worker import BOOTSTRAP
78
+ from ..transport import linkchannel
79
+ from ..transport.announce import printer
80
+
81
+ signal = self.config.option("signal")
82
+ if not (isinstance(signal, str) and signal):
83
+ raise ProviderUnavailable(
84
+ self.kind, f"{self.alias} names an agent but no signal URL; log in again"
85
+ )
86
+ directory = account_directory(self.alias)
87
+ directory.mkdir(mode=0o700, parents=True, exist_ok=True)
88
+ floor = self.link_floor
89
+ return linkchannel.connect_signal(
90
+ self.alias,
91
+ agent=self.agent,
92
+ signal=signal,
93
+ python=self.remote_python,
94
+ bootstrap=BOOTSTRAP,
95
+ key_path=directory / "link.key",
96
+ version=letify.__version__,
97
+ max_rtt_ms=floor.max_rtt_ms,
98
+ min_bps=floor.min_bps,
99
+ say=printer(self.announce),
100
+ )
101
+
102
+ def _run_helper(self, argv: list[str], timeout: float) -> subprocess.CompletedProcess[str]:
103
+ if self.agent is not None:
104
+ self.link_remote(None)
105
+ return super()._run_helper(argv, timeout)
106
+
107
+ def check(self) -> str:
108
+ """Confirm the machine answers over the session and its workspace root is writable."""
109
+ if self.agent is None:
110
+ return super().check()
111
+ from ..runtime.bootstrap import workspace_check
112
+
113
+ root = self.workspace_root
114
+ script = (
115
+ "uname -a; nvidia-smi --query-gpu=name --format=csv,noheader; "
116
+ f"if letify_out=$({workspace_check(root)} 2>&1); then echo letify-workspace-ok; "
117
+ 'else echo "letify-workspace-failed: $letify_out"; fi'
118
+ )
119
+ done = self._run_helper(["sh", "-c", script], 120)
120
+ if done.returncode != 0:
121
+ raise RuntimeFailure(
122
+ f"{self.alias} did not answer over letify-link", stderr=done.stderr.strip()
123
+ )
124
+ lines = []
125
+ for line in done.stdout.splitlines():
126
+ if line.strip() == "letify-workspace-ok":
127
+ lines.append(f"workspace {root}: writable")
128
+ elif line.startswith("letify-workspace-failed:"):
129
+ lines.append(f"workspace {root}: not writable: {line.split(':', 1)[1].strip()}")
130
+ else:
131
+ lines.append(line)
132
+ return "\n".join(lines) + "\n"
133
+
134
+
135
+ __all__ = ["Tunnel"]
@@ -593,6 +593,64 @@ def connect_commands(
593
593
  )
594
594
 
595
595
 
596
+ def connect_signal(
597
+ alias: str,
598
+ *,
599
+ agent: str,
600
+ signal: str,
601
+ python: str,
602
+ bootstrap: str,
603
+ key_path: str | os.PathLike[str],
604
+ version: str,
605
+ max_rtt_ms: float | None = None,
606
+ min_bps: float | None = None,
607
+ start_timeout_ms: int = 60_000,
608
+ say: Say = quiet,
609
+ ) -> LinkRemote:
610
+ """Bootstrap through the signalling service and a paired agent, and return the machine.
611
+
612
+ Spec "Agent and pairing" item 11. The agent holds the binary of its own machine, so nothing
613
+ is prepared. The machine has no address, so the session starts from punched candidates only.
614
+ """
615
+ from . import linksignal
616
+
617
+ try:
618
+ signer = linkd.LinkDaemon(key_path)
619
+ except linkd.LinkMissing as error:
620
+ raise _fail(alias, str(error)) from error
621
+ except linkd.LinkError as error:
622
+ raise _fail(alias, f"the local sidecar failed: {error}") from error
623
+ client = linksignal.SignalClient(signer, signal)
624
+
625
+ def start() -> Bootstrap:
626
+ stream = linksignal.SignalBootstrap(client, agent, version=version)
627
+ try:
628
+ stream.start()
629
+ except OSError as error:
630
+ raise _fail(alias, str(error)) from error
631
+ return stream
632
+
633
+ try:
634
+ return connect_over(
635
+ alias,
636
+ prepare=lambda: "",
637
+ start=start,
638
+ address=None,
639
+ python=python,
640
+ bootstrap=bootstrap,
641
+ key_path=key_path,
642
+ punch=True,
643
+ max_rtt_ms=max_rtt_ms,
644
+ min_bps=min_bps,
645
+ start_timeout_ms=start_timeout_ms,
646
+ say=say,
647
+ note={"how": "the agent"},
648
+ channel="the signalling service",
649
+ )
650
+ finally:
651
+ signer.close()
652
+
653
+
596
654
  def _started(mailbox: Any) -> Any:
597
655
  mailbox.start()
598
656
  return mailbox
@@ -1195,6 +1253,7 @@ __all__ = [
1195
1253
  "connect",
1196
1254
  "connect_commands",
1197
1255
  "connect_over",
1256
+ "connect_signal",
1198
1257
  "letify_link_enabled",
1199
1258
  "prepare_binary",
1200
1259
  "punch_lead_ms",
@@ -28,7 +28,7 @@ from collections.abc import Callable, Iterable
28
28
  from dataclasses import dataclass
29
29
  from typing import Any, Protocol
30
30
 
31
- from . import linkwebsocket
31
+ from . import linkd, linkwebsocket
32
32
 
33
33
  #: The service the owner operates.
34
34
  DEFAULT_URL = "https://letify.darkpyonix.dev"
@@ -210,7 +210,6 @@ class SignalClient:
210
210
  """Acknowledge up to ``after``, then wait up to ``wait_s`` for a message above it."""
211
211
  return self.recv_from(self.daemon.node_id, after, wait_s)
212
212
 
213
-
214
213
  def watch(self) -> SignalWatch:
215
214
  """A standing wait on this node's mailbox over ``/ws/<node>``, for an idle receiver."""
216
215
  return SignalWatch(self)
@@ -502,7 +501,7 @@ class SignalBootstrap:
502
501
  while not self._stop.is_set():
503
502
  try:
504
503
  messages, _ = self._client.recv(after, wait_s=POLL_S)
505
- except SignalError as error:
504
+ except (SignalError, linkd.LinkError) as error:
506
505
  failures += 1
507
506
  if self._stop.is_set():
508
507
  return
@@ -396,11 +396,11 @@ dependencies = [
396
396
 
397
397
  [[package]]
398
398
  name = "letify"
399
- version = "2.11.0"
399
+ version = "2.11.1"
400
400
 
401
401
  [[package]]
402
402
  name = "letify-link"
403
- version = "2.11.0"
403
+ version = "2.11.1"
404
404
  dependencies = [
405
405
  "ed25519-dalek",
406
406
  "getrandom 0.2.17",
@@ -416,7 +416,7 @@ dependencies = [
416
416
 
417
417
  [[package]]
418
418
  name = "letify-quic"
419
- version = "2.11.0"
419
+ version = "2.11.1"
420
420
  dependencies = [
421
421
  "quinn",
422
422
  "rcgen",
@@ -8,7 +8,7 @@ resolver = "3"
8
8
  members = ["letify", "letify-quic", "letify-link"]
9
9
 
10
10
  [workspace.package]
11
- version = "2.11.0"
11
+ version = "2.11.1"
12
12
  edition = "2024"
13
13
  license = "MIT"
14
14
  repository = "https://github.com/DarkPyonix/letify"
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "letify-status",
3
- "version": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "letify-status",
9
- "version": "2.11.0",
9
+ "version": "2.11.1",
10
10
  "license": "SEE LICENSE IN LICENSE",
11
11
  "devDependencies": {
12
12
  "@types/node": "^18.19.0",
@@ -2,7 +2,7 @@
2
2
  "name": "letify-status",
3
3
  "displayName": "letify Status",
4
4
  "description": "letify quota and GPU activity in the status bar, read from the letify CLI.",
5
- "version": "2.11.0",
5
+ "version": "2.11.1",
6
6
  "publisher": "darkpyonix",
7
7
  "license": "SEE LICENSE IN LICENSE",
8
8
  "repository": {
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "letify"
3
- version = "2.11.0"
3
+ version = "2.11.1"
4
4
  description = "Declarations that become infrastructure."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -557,3 +557,61 @@ def test_an_agent_whose_socket_dropped_reconnects_and_still_serves_a_pairing(
557
557
  assert user_pair(signal_service, user, token) == agent.node_id
558
558
  assert recv_requests(signal_service, agent.node_id) == []
559
559
  assert list(agent.home.paired.nodes()) == [user.node_id]
560
+
561
+
562
+ # -- the account that names an agent (item 11) --------------------------------------------
563
+
564
+
565
+ def agent_account(isolated_home, agent, signal_service, **over: Any):
566
+ from conftest import provider_of
567
+
568
+ from letify.providers.tunnel import Tunnel
569
+
570
+ return provider_of(
571
+ Tunnel, "box", agent=agent.node_id, signal=signal_service.url, announce=False, **over
572
+ )
573
+
574
+
575
+ def test_a_tunnel_account_naming_an_agent_has_no_address_and_races_nothing(
576
+ isolated_home, start_service, signal_service
577
+ ) -> None:
578
+ from letify.transport.linkchannel import PlainSshLink
579
+
580
+ provider = agent_account(isolated_home, start_service(), signal_service)
581
+ assert provider.address is None
582
+ assert provider.uses_letify_link is True
583
+ assert isinstance(provider.link(), PlainSshLink)
584
+
585
+
586
+ def test_a_tunnel_account_naming_an_agent_refuses_link_ssh_by_name(
587
+ isolated_home, start_service, signal_service
588
+ ) -> None:
589
+ provider = agent_account(isolated_home, start_service(), signal_service, link="ssh")
590
+ with pytest.raises(ProviderUnavailable, match="agent"):
591
+ provider.uses_letify_link # noqa: B018
592
+
593
+
594
+ def test_a_paired_tunnel_account_carries_a_call_through_the_signalling_service_alone(
595
+ isolated_home, start_service, signal_service, sidecar_binary, udp_stun, monkeypatch
596
+ ) -> None:
597
+ from letify.config.secrets import account_directory
598
+
599
+ monkeypatch.setenv("LETIFY_LINK_STUN", udp_stun.env)
600
+ agent = start_service()
601
+ provider = agent_account(isolated_home, agent, signal_service)
602
+ directory = account_directory("box")
603
+ directory.mkdir(mode=0o700, parents=True)
604
+ user = linkd.LinkDaemon(directory / "link.key", binary=sidecar_binary)
605
+ try:
606
+ user_pair(signal_service, user, agent.service.new_token(signal_service.url))
607
+ finally:
608
+ user.close()
609
+ remote = provider.link_remote(None)
610
+ channel = linkchannel.LinkChannel(remote, name="r1")
611
+ try:
612
+ assert channel.call(pid_of_worker(), (), {})[0] != os.getpid()
613
+ assert agent.service.started == 1
614
+ assert set(remote.phases) >= {"bootstrap", "punch", "session", "probe"}
615
+ finally:
616
+ channel.close()
617
+ remote.close()
@@ -819,3 +819,18 @@ def test_every_signalling_request_names_letify_as_its_user_agent(signal_service,
819
819
  assert ("GET", f"/ws/{b.node_id}", 101) in signal_service.requests
820
820
  assert signal_service.agents
821
821
  assert set(signal_service.agents) == {f"letify/{letify.__version__}"}
822
+
823
+
824
+ def test_a_closed_bootstrap_whose_sidecar_is_gone_ends_its_reader_quietly() -> None:
825
+ from letify.transport import linkd
826
+
827
+ class Gone:
828
+ daemon = None
829
+
830
+ def recv(self, after, wait_s=0.0):
831
+ bootstrap.close()
832
+ raise linkd.LinkClosed("the sidecar is gone")
833
+
834
+ bootstrap = linksignal.SignalBootstrap(Gone(), "ab" * 32, version="1")
835
+ bootstrap._loop()
836
+ assert bootstrap.recv_line() is None
@@ -1,27 +0,0 @@
1
- """Tunnel, a plain machine behind NAT with no provider API.
2
-
3
- The machine's user runs ``letify client shell connect`` on it once. That starts the
4
- remote agent behind ``tailcat serve`` and prints a Tailcat address and port, which go into
5
- this account as ``tailcat`` and ``tailcat_port``. From there the connection pipeline in
6
- ``Shell`` does the rest: it reaches the agent over Tailcat, exchanges the TCP punch
7
- mapping through it, and races the strategies as the spec describes. This class adds no
8
- transport of its own; it exists so the configuration kind says what the machine is.
9
- """
10
-
11
- from __future__ import annotations
12
-
13
- from .shell import Shell
14
-
15
-
16
- class Tunnel(Shell):
17
- """A machine behind NAT, reached through the remote agent."""
18
-
19
- kind = "tunnel"
20
- extra = "shell"
21
- default_persistence = "ephemeral"
22
- has_fast_path = True
23
- #: Listing its workers would run the connection pipeline. Spec "Workers on a shell host".
24
- discovers_sessions = False
25
-
26
-
27
- __all__ = ["Tunnel"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes