lcode-cli 0.49.1__tar.gz → 0.51.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.
Files changed (218) hide show
  1. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/CHANGELOG.md +40 -1
  2. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/PKG-INFO +5 -1
  3. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/README.md +4 -0
  4. lcode_cli-0.51.0/docs/assets/long-clip-tulip.jpg +0 -0
  5. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/modes.md +60 -1
  6. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/quickstart.md +1 -1
  7. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/usage.md +53 -1
  8. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/pyproject.toml +7 -1
  9. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/__init__.py +1 -1
  10. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/acp.py +1 -1
  11. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/agent.py +4 -0
  12. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/assistant.py +6 -2
  13. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/imageopts.py +2 -1
  14. lcode_cli-0.51.0/src/lcode/manual.py +604 -0
  15. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/media.py +194 -11
  16. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/media_cloud.py +3 -0
  17. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/planning.py +1 -0
  18. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/repeats.py +1 -0
  19. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/repl.py +68 -4
  20. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/tools.py +15 -0
  21. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/update.py +43 -17
  22. lcode_cli-0.51.0/tests/test_long_clips.py +152 -0
  23. lcode_cli-0.51.0/tests/test_manual.py +250 -0
  24. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_update.py +54 -2
  25. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_video.py +2 -2
  26. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.editorconfig +0 -0
  27. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.github/CODEOWNERS +0 -0
  28. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  29. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  30. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  31. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.github/ISSUE_TEMPLATE/model_request.yml +0 -0
  32. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  33. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.github/dependabot.yml +0 -0
  34. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.github/workflows/ci.yml +0 -0
  35. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.github/workflows/docs.yml +0 -0
  36. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.github/workflows/release.yml +0 -0
  37. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.gitignore +0 -0
  38. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/.pre-commit-config.yaml +0 -0
  39. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/AGENTS.md +0 -0
  40. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/CODE_OF_CONDUCT.md +0 -0
  41. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/CONTRIBUTING.md +0 -0
  42. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/LICENSE +0 -0
  43. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/SECURITY.md +0 -0
  44. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/action.yml +0 -0
  45. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/agents.md +0 -0
  46. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/assets/demo.svg +0 -0
  47. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/assets/extra.css +0 -0
  48. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/assets/film-fox-and-kitten.jpg +0 -0
  49. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/automation.md +0 -0
  50. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/bench.md +0 -0
  51. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/changelog.md +0 -0
  52. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/commands.md +0 -0
  53. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/configuration.md +0 -0
  54. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/contributing.md +0 -0
  55. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/editors.md +0 -0
  56. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/git.md +0 -0
  57. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/hooks.md +0 -0
  58. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/how-it-works.md +0 -0
  59. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/index.md +0 -0
  60. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/installation.md +0 -0
  61. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/lsp.md +0 -0
  62. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/mcp.md +0 -0
  63. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/memory.md +0 -0
  64. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/models.md +0 -0
  65. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/sandbox.md +0 -0
  66. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/search.md +0 -0
  67. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/servers.md +0 -0
  68. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/docs/troubleshooting.md +0 -0
  69. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/examples/README.md +0 -0
  70. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/examples/api/fix_tests.py +0 -0
  71. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/examples/commands/review.md +0 -0
  72. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/examples/skills/commit-message/SKILL.md +0 -0
  73. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/examples/skills/commit-message/scripts/staged.sh +0 -0
  74. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/install.sh +0 -0
  75. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/mkdocs.yml +0 -0
  76. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/overrides/main.html +0 -0
  77. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/scripts/make_logos.py +0 -0
  78. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/scripts/record_demo.py +0 -0
  79. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/scripts/social-preview.html +0 -0
  80. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/__main__.py +0 -0
  81. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/action.py +0 -0
  82. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/api.py +0 -0
  83. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/backends.py +0 -0
  84. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/bench.py +0 -0
  85. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/bench_backend.py +0 -0
  86. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/bench_runtime.py +0 -0
  87. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/catalog.py +0 -0
  88. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/checkpoints.py +0 -0
  89. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/checks.py +0 -0
  90. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/cli.py +0 -0
  91. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/clipboard.py +0 -0
  92. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/cloud.py +0 -0
  93. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/codesearch.py +0 -0
  94. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/comfy.py +0 -0
  95. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/config.py +0 -0
  96. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/context.py +0 -0
  97. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/edits.py +0 -0
  98. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/escalate.py +0 -0
  99. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/extensions.py +0 -0
  100. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/film.py +0 -0
  101. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/frontmatter.py +0 -0
  102. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/gitflow.py +0 -0
  103. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/hardware.py +0 -0
  104. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/hooks.py +0 -0
  105. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/jobs.py +0 -0
  106. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/limits.py +0 -0
  107. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/lsp.py +0 -0
  108. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/matching.py +0 -0
  109. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/__init__.py +0 -0
  110. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/auth.py +0 -0
  111. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/catalog.py +0 -0
  112. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/catalog.toml +0 -0
  113. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/client.py +0 -0
  114. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/commands.py +0 -0
  115. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/config.py +0 -0
  116. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/http.py +0 -0
  117. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/manager.py +0 -0
  118. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/protocol.py +0 -0
  119. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/server.py +0 -0
  120. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/mcp/stdio.py +0 -0
  121. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/media.toml +0 -0
  122. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/media_catalog.py +0 -0
  123. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/memory.py +0 -0
  124. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/models.toml +0 -0
  125. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/modes.py +0 -0
  126. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/notify.py +0 -0
  127. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/ollama.py +0 -0
  128. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/permissions.py +0 -0
  129. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/preview.py +0 -0
  130. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/render.py +0 -0
  131. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/repomap.py +0 -0
  132. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/residency.py +0 -0
  133. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/review.py +0 -0
  134. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/sandbox.py +0 -0
  135. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/screenshots.py +0 -0
  136. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/secretscan.py +0 -0
  137. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/servers/__init__.py +0 -0
  138. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/servers/encord.py +0 -0
  139. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/servers/valohai.py +0 -0
  140. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/servers/xai.py +0 -0
  141. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/sessions.py +0 -0
  142. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/steer.py +0 -0
  143. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/subagents.py +0 -0
  144. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/unreachable.py +0 -0
  145. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/vision.py +0 -0
  146. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/web.py +0 -0
  147. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/__init__.py +0 -0
  148. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/flux2-klein-4b-t2i.json +0 -0
  149. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/remove-background.json +0 -0
  150. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/smooth-film.json +0 -0
  151. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/sound-stable-audio.json +0 -0
  152. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/upscale-esrgan.json +0 -0
  153. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/upscale-video-esrgan.json +0 -0
  154. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/wan21-fun-camera.json +0 -0
  155. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/wan21-vace.json +0 -0
  156. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/wan22-fun-inp-5b.json +0 -0
  157. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/wan22-ti2v-5b.json +0 -0
  158. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/src/lcode/workflows/z-image-turbo-t2i.json +0 -0
  159. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/comfy_standin.py +0 -0
  160. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/conftest.py +0 -0
  161. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/fake_lsp_server.py +0 -0
  162. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/fake_mcp_server.py +0 -0
  163. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_acp.py +0 -0
  164. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_action.py +0 -0
  165. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_agent.py +0 -0
  166. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_api.py +0 -0
  167. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_assistant.py +0 -0
  168. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_backends.py +0 -0
  169. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_bench.py +0 -0
  170. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_catalog.py +0 -0
  171. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_checkpoints.py +0 -0
  172. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_checks.py +0 -0
  173. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_cli.py +0 -0
  174. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_clipboard.py +0 -0
  175. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_cloud.py +0 -0
  176. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_codesearch.py +0 -0
  177. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_comfy.py +0 -0
  178. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_config.py +0 -0
  179. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_context.py +0 -0
  180. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_context_picker.py +0 -0
  181. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_escalate.py +0 -0
  182. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_extensions.py +0 -0
  183. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_film.py +0 -0
  184. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_gitflow.py +0 -0
  185. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_gpu_handover.py +0 -0
  186. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_hooks.py +0 -0
  187. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_image_edit.py +0 -0
  188. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_image_generate.py +0 -0
  189. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_jobs.py +0 -0
  190. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_look.py +0 -0
  191. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_lsp.py +0 -0
  192. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_matching.py +0 -0
  193. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_mcp.py +0 -0
  194. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_media_catalog.py +0 -0
  195. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_media_cloud.py +0 -0
  196. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_memory.py +0 -0
  197. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_model_picker.py +0 -0
  198. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_modes.py +0 -0
  199. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_permissions.py +0 -0
  200. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_plan_mode.py +0 -0
  201. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_repeats.py +0 -0
  202. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_repomap.py +0 -0
  203. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_residency.py +0 -0
  204. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_review.py +0 -0
  205. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_robustness.py +0 -0
  206. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_sandbox.py +0 -0
  207. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_screenshots.py +0 -0
  208. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_secretscan.py +0 -0
  209. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_servers.py +0 -0
  210. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_sessions.py +0 -0
  211. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_steer.py +0 -0
  212. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_stuck.py +0 -0
  213. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_subagents.py +0 -0
  214. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_tools.py +0 -0
  215. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_vision.py +0 -0
  216. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_web.py +0 -0
  217. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/tests/test_xai.py +0 -0
  218. {lcode_cli-0.49.1 → lcode_cli-0.51.0}/uv.lock +0 -0
@@ -6,6 +6,43 @@ All notable changes to lcode are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.51.0] - 2026-10-27
10
+
11
+ ### Added
12
+
13
+ - **Clips up to 60 seconds** (#185), also from a start to an end picture: `@start.png @end.png the
14
+ flower opens --seconds 25`. A clip longer than the 8 s a video model makes at once is made in
15
+ parts, each starting on the last frame of the one before (the last one ending on the end
16
+ picture), and joined into one clip with ffmpeg, without the frame each join would repeat.
17
+ `/extend 4 --seconds 20` works the same way; Esc keeps the parts made so far as a clip.
18
+ - **Clips through several pictures:** `@bud.png @half-open.png @open.png the tulip opens
19
+ --seconds 25` goes to each picture in turn, in an equal share of the clip.
20
+
21
+ ### Fixed
22
+
23
+ - **`lcode update` ending in `ModuleNotFoundError: No module named 'rich._unicode_data…'`.**
24
+ The update itself had worked; only its last message failed, and the Ollama update after it
25
+ didn't run. Updating lcode can replace the files the running lcode is made of, so lcode now
26
+ prepares what it will say before that and updates Ollama first. A git checkout is reinstalled
27
+ on the Python lcode already runs on. Before, uv picked one from the folder you were in, such
28
+ as a nearby `.venv`, and built a new environment when it was another version. An update runs
29
+ the old version's code, so the update to this version can still show the error once. lcode is
30
+ updated anyway: run `lcode update ollama` for the rest.
31
+
32
+ ## [0.50.0] - 2026-10-26
33
+
34
+ ### Added
35
+
36
+ - **Ask lcode how** (#184): `/help how do I make a clip from two pictures?` answers from lcode's
37
+ own manual, which now ships inside the package (the docs' pages, for the installed version,
38
+ offline). The answer says what to type, filled in with your details, and the first step is
39
+ typed into the next prompt for you. In image and video mode, a question is answered instead of
40
+ being made into a picture (`--raw` makes it anyway); in code mode, the coding model gets a
41
+ `lcode_help` tool that searches the manual. The prompt assistant's small model answers in image
42
+ and video mode (`qwen3.5:4b`); every command and option in an answer must exist in lcode,
43
+ and the lines to type go through lcode's own option parser (`--seconds 90` is caught), with one
44
+ retry before what's still wrong is marked.
45
+
9
46
  ## [0.49.1] - 2026-10-26
10
47
 
11
48
  ### Fixed
@@ -1065,7 +1102,9 @@ First public release.
1065
1102
  - `AGENTS.md` project instructions and `/init` to generate them.
1066
1103
  - One-line installer for Linux and macOS.
1067
1104
 
1068
- [Unreleased]: https://github.com/nasser1941/lcode/compare/v0.49.1...HEAD
1105
+ [Unreleased]: https://github.com/nasser1941/lcode/compare/v0.51.0...HEAD
1106
+ [0.51.0]: https://github.com/nasser1941/lcode/compare/v0.50.0...v0.51.0
1107
+ [0.50.0]: https://github.com/nasser1941/lcode/compare/v0.49.1...v0.50.0
1069
1108
  [0.49.1]: https://github.com/nasser1941/lcode/compare/v0.49.0...v0.49.1
1070
1109
  [0.49.0]: https://github.com/nasser1941/lcode/compare/v0.48.0...v0.49.0
1071
1110
  [0.48.0]: https://github.com/nasser1941/lcode/compare/v0.47.0...v0.48.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: lcode-cli
3
- Version: 0.49.1
3
+ Version: 0.51.0
4
4
  Summary: A local-first terminal coding agent powered by open-weight models on your own GPU or Mac, via Ollama.
5
5
  Project-URL: Homepage, https://nasser1941.github.io/lcode/
6
6
  Project-URL: Documentation, https://nasser1941.github.io/lcode/
@@ -125,6 +125,9 @@ through [Ollama](https://ollama.com), and when it needs current information it c
125
125
  (`/mode image`) make pictures, edits, clips and short films with local models run by ComfyUI
126
126
  (FLUX.2 klein, Wan 2.2, installed on demand), or with xAI's Grok Imagine and your own key, after
127
127
  showing what it costs.
128
+ - **Ask it how.** `/help how do I make a clip from two pictures?`, or just the question in image and
129
+ video mode: lcode answers from its own manual, which ships with it, with the command to type,
130
+ checked by lcode's own parsers and typed into the prompt for you.
128
131
  - **Web search when needed.** Looks up the latest versions, docs and error messages with Ollama web
129
132
  search, Brave, Tavily or your own SearXNG, and reads pages as clean text.
130
133
  - **Private.** The model runs on your machine, lcode never uploads your files and has no telemetry.
@@ -182,6 +185,7 @@ lcode
182
185
  | `lcode mcp catalog` / `lcode mcp add github` | ready-made MCP servers / add one |
183
186
  | `/rename`, `/resume` | name the current session, resume a saved one |
184
187
  | `/model`, `/context`, `/compact`, `/help` | switch model, resize the context window (pick from a list), summarize, list commands |
188
+ | `/help how do I …?` | ask lcode how to do something: the answer comes from its manual, with the command to type |
185
189
 
186
190
  ## Models
187
191
 
@@ -89,6 +89,9 @@ through [Ollama](https://ollama.com), and when it needs current information it c
89
89
  (`/mode image`) make pictures, edits, clips and short films with local models run by ComfyUI
90
90
  (FLUX.2 klein, Wan 2.2, installed on demand), or with xAI's Grok Imagine and your own key, after
91
91
  showing what it costs.
92
+ - **Ask it how.** `/help how do I make a clip from two pictures?`, or just the question in image and
93
+ video mode: lcode answers from its own manual, which ships with it, with the command to type,
94
+ checked by lcode's own parsers and typed into the prompt for you.
92
95
  - **Web search when needed.** Looks up the latest versions, docs and error messages with Ollama web
93
96
  search, Brave, Tavily or your own SearXNG, and reads pages as clean text.
94
97
  - **Private.** The model runs on your machine, lcode never uploads your files and has no telemetry.
@@ -146,6 +149,7 @@ lcode
146
149
  | `lcode mcp catalog` / `lcode mcp add github` | ready-made MCP servers / add one |
147
150
  | `/rename`, `/resume` | name the current session, resume a saved one |
148
151
  | `/model`, `/context`, `/compact`, `/help` | switch model, resize the context window (pick from a list), summarize, list commands |
152
+ | `/help how do I …?` | ask lcode how to do something: the answer comes from its manual, with the command to type |
149
153
 
150
154
  ## Models
151
155
 
@@ -23,6 +23,8 @@ image ❯ a red fox sitting in fresh snow at dusk
23
23
  the current one.
24
24
  - **Where it shows:** the banner, the status bar and the prompt (`image ❯`) show the mode.
25
25
  - **Sessions:** a session keeps the mode it was made in, and resuming it brings that mode back.
26
+ - **Not sure how?** Ask: in image and video mode, a question like "how do I make the picture
27
+ bigger?" is answered from this manual with the command to type ([Asking lcode how](usage.md#asking-lcode-how)).
26
28
 
27
29
  ## Code mode makes code only
28
30
 
@@ -151,7 +153,8 @@ video ❯ /play
151
153
  ```
152
154
 
153
155
  - **Options:** the image options work here too (`--n`, `--ar`, `--seed`, `--quality`, `--style`,
154
- `--no`, and `/options`), plus `--seconds` (1 to 8; 5 by default, at 24 frames per second).
156
+ `--no`, and `/options`), plus `--seconds` (1 to 60; 5 by default, at 24 frames per second;
157
+ longer than 8, it's [made in parts](#longer-clips)).
155
158
  Clips are 16:9, or 9:16 from an upright start picture (cropped to it), unless you give a shape:
156
159
  Wan 2.2 knows those two shapes best, and a square or small clip can break up into streaks.
157
160
  - **Quality:** `fast` makes 864×480 in 12 steps, `balanced` (the default) 864×480 in 20 steps, and
@@ -174,6 +177,8 @@ video ❯ /play
174
177
  `tilt-down`, `zoom-in`, `zoom-out`, `dolly-in`, `dolly-out`, `rotate-left`, `rotate-right`,
175
178
  `static`), from a description or a start picture. Wan 2.1 Fun Camera 1.3B makes these, at 832×480
176
179
  and 16 frames per second: a 3 s move takes about 2 minutes.
180
+ - **Longer clips:** up to 60 seconds, also from a start to an end picture
181
+ (`@start.png @end.png the flower opens --seconds 25`). See [Longer clips](#longer-clips).
177
182
  - **Extend a clip:** `/extend 4 --seconds 3 it flies away` continues clip #4 from its last frame
178
183
  and joins the new part after it, as one longer clip (`…-extended.mp4`; 3 s more in about a
179
184
  minute at `fast`).
@@ -196,6 +201,60 @@ video ❯ /play
196
201
  - **Long renders:** progress shows the step and the time left. With `notify` on, lcode sends a
197
202
  desktop notification when a clip that took longer than `notify_after` seconds is done.
198
203
 
204
+ ## Longer clips
205
+
206
+ A video model makes up to 8 seconds at once. For a longer clip (`--seconds` up to 60), lcode makes
207
+ it in parts and joins them into one:
208
+
209
+ ```text
210
+ video ❯ @start.png @middle.png @end.png the tulip bud slowly opens into a full flower, gentle breeze --seconds 25 --quality fast
211
+ ◆ A 25 s clip: lcode makes it in 4 parts of 6.25 s, each going on from the last frame of the one before, and joins them. Parts 2 and 4 each go to your next picture, in order.
212
+ part 1 of 4: 6.25 s, made in 137 s
213
+ part 2 of 4: 6.25 s, made in 141 s
214
+ part 3 of 4: 6.25 s, made in 138 s
215
+ part 4 of 4: 6.25 s, made in 143 s
216
+ ◆ #2 .lcode/media/20261026-201311-the-tulip-bud-slowly-opens-into-a-full-f.mp4 864×480 · Wan 2.2 TI2V 5B + Wan 2.2 Fun InP 5B · seed 1496941735 · 561.9 s
217
+ ```
218
+
219
+ ![Frames at 0, 6, 9.6, 14.6, 21.7 and 25.3 s of that clip](assets/long-clip-tulip.jpg)
220
+
221
+ *Frames at 0, 6, 9.6, 14.6, 21.7 and 25.3 s of that clip, through a bud, a half-open and an open
222
+ tulip: the change comes in steps, with some drift (the light flare at 9.6 s).*
223
+
224
+ - **The parts:**
225
+ - as few as it takes, about equally long;
226
+ - the first comes from your description, or starts from your start picture;
227
+ - each next one starts on the last frame of the one before;
228
+ - with an end picture, the last part goes from there to your end picture (Wan 2.2 Fun InP), so
229
+ the clip ends exactly on it.
230
+ - **Where the change happens:** the change toward a picture happens in the part that ends on it.
231
+ With only a start and an end picture, the clip goes on from the start for most of its length
232
+ and reaches the end picture in its last part. On a tulip opening over 25 s, it stayed closed for
233
+ about 20 s and then opened within 2. Making the whole change once as a guide clip doesn't help:
234
+ Wan 2.2 Fun InP opens the tulip within its first frames, at `fast` and at `balanced`.
235
+ - **Pictures along the way:** for a change in steps, give more pictures, in order:
236
+ `@bud.png @half-open.png @open.png the tulip opens --seconds 25`. The clip gets an equal share
237
+ for each picture after the first, and the part that ends each share goes to that picture. Three
238
+ or more pictures work in a short clip too, one part to each.
239
+ - **One clip:** ffmpeg joins the parts, leaving out the frame each join would show twice, at the
240
+ first part's pace and size. It's numbered in the gallery like any clip. Its JSON lists the parts,
241
+ which stay in a `…-parts` folder next to it.
242
+ - **Extending:** `/extend 4 --seconds 20 it flies away` adds 20 s to clip #4 the same way.
243
+ - **Follow-ups work as for any clip:** `/again`, `/vary` and `/play`, and `/upscale`, `/smooth`
244
+ and `/sound` on the result.
245
+ - **Esc** stops it. The parts made so far are joined into a `…-partial.mp4` clip in the gallery.
246
+ - **Needs** ffmpeg (`apt install ffmpeg`, `brew install ffmpeg`).
247
+ - **Before it starts,** lcode says how many parts it makes. After a clip in the same session, it
248
+ also says about how long it takes, at that clip's pace.
249
+ - **What to expect:** each part follows the same description, so a long clip has the same action
250
+ throughout, slowly drifting; for a story with scenes, make a [film](#films). Grok Imagine makes
251
+ up to 15 s at once: a longer clip is made on your GPU.
252
+
253
+ - **Measured** on the RTX 4080 Laptop GPU (12 GB), a 25 s clip from a start to an end picture
254
+ (4 parts of 6.25 s, 864×480, 609 frames at 24 fps): 9.4 minutes at `fast` (about 140 s a part)
255
+ and 14.2 minutes at `balanced` (about 210 s a part). Through three pictures at `fast`: 9.4
256
+ minutes. The joins don't show: the frames on either side of each one match.
257
+
199
258
  ## Films
200
259
 
201
260
  From one idea, lcode makes a short film with the same characters in every shot:
@@ -12,7 +12,7 @@ lcode
12
12
 
13
13
  ```text
14
14
  ╭──────────────────────────────────────────────╮
15
- │ lcode v0.49.1 — local coding agent │
15
+ │ lcode v0.51.0 — local coding agent │
16
16
  │ │
17
17
  │ model lcode-qwen3.6-35b │
18
18
  │ context 256K tokens │
@@ -60,7 +60,7 @@ reasoning is on.
60
60
 
61
61
  | Command | What it does |
62
62
  |---|---|
63
- | `/help` | List commands and keys |
63
+ | `/help [question]` | List commands and keys, or [ask how to do something](#asking-lcode-how): `/help how do I make a clip from two pictures?` |
64
64
  | `/init` | Analyze the repository and write `AGENTS.md` (read at every start) |
65
65
  | `/clear` | Start a new conversation (the current one stays saved) |
66
66
  | `/rename NAME` | Name the current session so it's easy to find later |
@@ -97,6 +97,58 @@ reasoning is on.
97
97
  | `/pr [base] [notes]` | Push the branch and open a GitHub [pull request](git.md#pr), once you approve it |
98
98
  | `/exit` | Quit |
99
99
 
100
+ ### Asking lcode how
101
+
102
+ You don't have to read this manual to find the right command: ask lcode, and it answers from the
103
+ manual with what to type.
104
+
105
+ ```text
106
+ image ❯ how do I make the picture bigger?
107
+ ╭─ lcode help ─────────────────────────────────────────────────────────────────────────────╮
108
+ │ /upscale 3 4 │
109
+ │ │
110
+ │ This command makes image #3 four times larger using Real-ESRGAN, taking about 6 seconds │
111
+ │ on an RTX 4080 Laptop GPU. If you only need a 2× increase, simply type /upscale 3. │
112
+ ╰───────────────────────────────────────────────────────────────────────────────────────────╯
113
+ Modes: code, image and video › Image mode › Editing: https://nasser1941.github.io/lcode/modes/#editing
114
+ ✎ The first step is in the prompt below: edit it, or press Enter to run it.
115
+ That looked like a question, so lcode answered it. To make it as a picture, add --raw.
116
+ image ❯ /upscale 3 4
117
+ ```
118
+
119
+ - **In any mode,** `/help` followed by a question.
120
+ - **In image and video mode, just ask.** Text that reads as a question ("how do I…", "can I…?",
121
+ "is there a way…") is answered instead of being made into a picture or a clip. To make it anyway,
122
+ add `--raw`.
123
+ - **In code mode,** ask the coding model in your own words: it has a tool, `lcode_help`, that
124
+ searches the manual, so it answers with lcode's real commands instead of guessing.
125
+ - **What you get:** what to type, filled in with your details (numbers, lengths, file names), a
126
+ line or two on limits and time, and links to the pages of the docs. The first step is typed into
127
+ the next prompt for you: edit it, press Enter, or clear it with Ctrl+U.
128
+ - **The manual comes with lcode:** these pages ship inside the package, so the answer matches the
129
+ version you have, and it works offline.
130
+ - **Who answers:** in code mode, the coding model. In image and video mode, a small model in Ollama
131
+ (the [prompt assistant](modes.md#the-prompt-assistant)'s: `qwen3.5:4b` or the model you chose), loaded only for the
132
+ answer so the GPU stays with ComfyUI. Without one, lcode shows the parts of the manual that match.
133
+ - **Checked by lcode itself:** every command and option in an answer must exist in lcode, and the
134
+ lines to type go through lcode's own option parser: `--seconds 90` is caught ("seconds is how long
135
+ a video is: 1 to 60"). An answer that fails a check is asked for again once; what still fails is
136
+ marked with ⚠, and isn't typed in for you.
137
+
138
+ **Measured** on an RTX 4080 Laptop GPU (12 GB): 15 everyday questions (a 25-second clip between two
139
+ pictures, a bigger picture, a cut-out, music for a clip, a film, camera moves, Grok, where files go,
140
+ the context window…), each answer scored by hand:
141
+
142
+ | Who answers | Right | Partly right | Wrong | Time per answer |
143
+ |---|---|---|---|---|
144
+ | `qwen3.5:4b` (image and video mode) | 11 | 2 | 2 (1 marked ⚠) | 4 to 10 s |
145
+ | `qwen3.5:9b` (as the prompt assistant) | 11 | 3 | 1 (marked ⚠) | 6 to 16 s |
146
+ | `qwen3.6-35b` (code mode) | 12 | 2 | 1 (marked ⚠) | 6 to 7 s, once loaded |
147
+
148
+ The checks caught every command that doesn't exist (`/image`, `/grok-video`, `/lcode`); before them,
149
+ the small models answered `/image …` without a warning. What's left: an extra
150
+ or out-of-order step now and then, and an odd claim in the sentences after the commands.
151
+
100
152
  ## What the model can do
101
153
 
102
154
  | Tool | Purpose |
@@ -59,7 +59,12 @@ docs = ["mkdocs-material>=9.5", "mkdocs>=1.6,<2"] # MkDocs 2 drops plugins and
59
59
  path = "src/lcode/__init__.py"
60
60
 
61
61
  [tool.hatch.build.targets.wheel]
62
- packages = ["src/lcode"]
62
+ only-include = ["src/lcode", "docs"]
63
+ exclude = ["docs/assets", "docs/changelog.md", "docs/contributing.md"]
64
+
65
+ [tool.hatch.build.targets.wheel.sources]
66
+ "src" = ""
67
+ "docs" = "lcode/docs" # the manual, for questions about lcode (lcode.manual)
63
68
 
64
69
  [tool.hatch.build.targets.sdist]
65
70
  exclude = ["docs/assets/*.png"] # images for the README and the docs site: not needed to build or install
@@ -78,6 +83,7 @@ ignore = [
78
83
 
79
84
  [tool.ruff.lint.per-file-ignores]
80
85
  "src/lcode/agent.py" = ["E501"] # the prompts are prose; wrapping them would change what the model sees
86
+ "src/lcode/manual.py" = ["E501"] # the same for the help prompt
81
87
  "src/lcode/memory.py" = ["E501"]
82
88
  "src/lcode/subagents.py" = ["E501"]
83
89
  "src/lcode/planning.py" = ["E501"]
@@ -3,7 +3,7 @@
3
3
  From a program: `from lcode import Session` (see lcode.api).
4
4
  """
5
5
 
6
- __version__ = "0.49.1"
6
+ __version__ = "0.51.0"
7
7
 
8
8
  API = ("Session", "Result", "Options", "SetupError")
9
9
 
@@ -44,7 +44,7 @@ MODES = [
44
44
  ]
45
45
  KINDS = {
46
46
  "read_file": "read", "view_image": "read", "list_dir": "search", "glob": "search", "grep": "search",
47
- "repo_map": "search", "search_code": "search", "lsp": "search", "edit_file": "edit", "write_file": "edit", "apply_patch": "edit",
47
+ "repo_map": "search", "search_code": "search", "lcode_help": "search", "lsp": "search", "edit_file": "edit", "write_file": "edit", "apply_patch": "edit",
48
48
  "bash": "execute", "web_search": "fetch", "web_fetch": "fetch", "agent": "think", "todo_write": "think",
49
49
  "present_plan": "switch_mode", "bash_output": "read", "bash_stop": "execute",
50
50
  } # fmt: skip
@@ -32,6 +32,7 @@ from lcode import (
32
32
  escalate,
33
33
  extensions,
34
34
  limits,
35
+ manual,
35
36
  notify,
36
37
  planning,
37
38
  repomap,
@@ -56,6 +57,7 @@ from lcode.repeats import Circles, Repeats
56
57
  from lcode.sandbox import Sandbox, SandboxError, project_root
57
58
  from lcode.steer import NOTE_INTRO, Steering
58
59
  from lcode.tools import (
60
+ LCODE_HELP_SCHEMA,
59
61
  LSP_SCHEMA,
60
62
  MEMORY_SCHEMA,
61
63
  PRESENT_PLAN_SCHEMA,
@@ -547,6 +549,8 @@ class Agent:
547
549
 
548
550
  def tool_schemas(self) -> list[dict]:
549
551
  schemas = list(SCHEMAS)
552
+ if manual.folder() is not None:
553
+ schemas.append(LCODE_HELP_SCHEMA)
550
554
  if self.settings.web != "off":
551
555
  schemas += [*([WEB_SEARCH_SCHEMA] if self.search_backend() else []), WEB_FETCH_SCHEMA]
552
556
  if self.vision_model():
@@ -97,12 +97,16 @@ class Assistant:
97
97
  message: dict = {"role": "user", "content": user}
98
98
  if images:
99
99
  message["images"] = [base64.b64encode(p.read_bytes()).decode() for p in images]
100
+ return self.converse([{"role": "system", "content": system}, message], json_answer=json_answer)
101
+
102
+ def converse(self, messages: list[dict], json_answer: bool = False, num_ctx: int = 4096) -> str:
103
+ """The model's answer to a conversation (lcode.manual's answers use a longer one)."""
100
104
  payload = {
101
105
  "model": self.model,
102
- "messages": [{"role": "system", "content": system}, message],
106
+ "messages": messages,
103
107
  "think": False,
104
108
  "keep_alive": 0, # unloaded right after: the image or video model needs the GPU
105
- "options": {"temperature": 0.4, "num_ctx": 4096},
109
+ "options": {"temperature": 0.4, "num_ctx": num_ctx},
106
110
  }
107
111
  if json_answer:
108
112
  payload["format"] = "json"
@@ -13,7 +13,8 @@ from dataclasses import asdict, dataclass, replace
13
13
 
14
14
  QUALITIES = ("fast", "balanced", "best")
15
15
  MAX_COUNT = 8
16
- MAX_SECONDS = 8 # video: longer clips need more memory than a laptop GPU has, and models drift
16
+ MAX_SECONDS = 60 # video: a clip longer than a part is made in parts and joined (lcode.media.long_clip)
17
+ PART_SECONDS = 8 # what a video model makes at once: longer needs more memory than a laptop GPU has, and models drift
17
18
  SIZES = { # names for aspect ratios
18
19
  "square": "1:1",
19
20
  "portrait": "3:4",