lcode-cli 0.43.0__tar.gz → 0.45.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 (202) hide show
  1. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/CHANGELOG.md +31 -1
  2. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/PKG-INFO +4 -3
  3. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/README.md +3 -2
  4. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/configuration.md +1 -0
  5. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/modes.md +48 -6
  6. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/quickstart.md +1 -1
  7. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/usage.md +1 -0
  8. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/__init__.py +1 -1
  9. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/agent.py +4 -0
  10. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/api.py +1 -0
  11. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/cli.py +3 -11
  12. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/config.py +4 -3
  13. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/imageopts.py +49 -2
  14. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/media.py +153 -19
  15. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/media.toml +83 -0
  16. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/media_catalog.py +5 -0
  17. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/modes.py +9 -9
  18. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/repl.py +47 -21
  19. lcode_cli-0.45.0/src/lcode/workflows/wan21-fun-camera.json +186 -0
  20. lcode_cli-0.45.0/src/lcode/workflows/wan22-fun-inp-5b.json +159 -0
  21. lcode_cli-0.45.0/src/lcode/workflows/wan22-ti2v-5b.json +152 -0
  22. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/comfy_standin.py +6 -0
  23. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_media_catalog.py +3 -1
  24. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_modes.py +12 -16
  25. lcode_cli-0.45.0/tests/test_video.py +198 -0
  26. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.editorconfig +0 -0
  27. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.github/CODEOWNERS +0 -0
  28. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  29. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  30. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  31. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.github/ISSUE_TEMPLATE/model_request.yml +0 -0
  32. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  33. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.github/dependabot.yml +0 -0
  34. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.github/workflows/ci.yml +0 -0
  35. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.github/workflows/docs.yml +0 -0
  36. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.github/workflows/release.yml +0 -0
  37. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.gitignore +0 -0
  38. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/.pre-commit-config.yaml +0 -0
  39. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/AGENTS.md +0 -0
  40. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/CODE_OF_CONDUCT.md +0 -0
  41. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/CONTRIBUTING.md +0 -0
  42. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/LICENSE +0 -0
  43. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/SECURITY.md +0 -0
  44. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/action.yml +0 -0
  45. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/agents.md +0 -0
  46. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/assets/demo.svg +0 -0
  47. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/assets/extra.css +0 -0
  48. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/automation.md +0 -0
  49. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/bench.md +0 -0
  50. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/changelog.md +0 -0
  51. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/commands.md +0 -0
  52. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/contributing.md +0 -0
  53. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/editors.md +0 -0
  54. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/git.md +0 -0
  55. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/hooks.md +0 -0
  56. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/how-it-works.md +0 -0
  57. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/index.md +0 -0
  58. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/installation.md +0 -0
  59. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/lsp.md +0 -0
  60. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/mcp.md +0 -0
  61. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/memory.md +0 -0
  62. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/models.md +0 -0
  63. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/sandbox.md +0 -0
  64. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/search.md +0 -0
  65. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/servers.md +0 -0
  66. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/docs/troubleshooting.md +0 -0
  67. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/examples/README.md +0 -0
  68. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/examples/api/fix_tests.py +0 -0
  69. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/examples/commands/review.md +0 -0
  70. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/examples/skills/commit-message/SKILL.md +0 -0
  71. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/examples/skills/commit-message/scripts/staged.sh +0 -0
  72. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/install.sh +0 -0
  73. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/mkdocs.yml +0 -0
  74. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/overrides/main.html +0 -0
  75. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/pyproject.toml +0 -0
  76. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/scripts/make_logos.py +0 -0
  77. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/scripts/record_demo.py +0 -0
  78. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/scripts/social-preview.html +0 -0
  79. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/__main__.py +0 -0
  80. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/acp.py +0 -0
  81. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/action.py +0 -0
  82. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/backends.py +0 -0
  83. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/bench.py +0 -0
  84. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/bench_backend.py +0 -0
  85. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/bench_runtime.py +0 -0
  86. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/catalog.py +0 -0
  87. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/checkpoints.py +0 -0
  88. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/checks.py +0 -0
  89. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/clipboard.py +0 -0
  90. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/cloud.py +0 -0
  91. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/codesearch.py +0 -0
  92. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/comfy.py +0 -0
  93. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/context.py +0 -0
  94. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/edits.py +0 -0
  95. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/escalate.py +0 -0
  96. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/extensions.py +0 -0
  97. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/frontmatter.py +0 -0
  98. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/gitflow.py +0 -0
  99. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/hardware.py +0 -0
  100. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/hooks.py +0 -0
  101. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/jobs.py +0 -0
  102. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/limits.py +0 -0
  103. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/lsp.py +0 -0
  104. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/matching.py +0 -0
  105. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/__init__.py +0 -0
  106. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/auth.py +0 -0
  107. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/catalog.py +0 -0
  108. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/catalog.toml +0 -0
  109. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/client.py +0 -0
  110. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/commands.py +0 -0
  111. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/config.py +0 -0
  112. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/http.py +0 -0
  113. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/manager.py +0 -0
  114. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/protocol.py +0 -0
  115. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/server.py +0 -0
  116. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/mcp/stdio.py +0 -0
  117. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/memory.py +0 -0
  118. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/models.toml +0 -0
  119. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/notify.py +0 -0
  120. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/ollama.py +0 -0
  121. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/permissions.py +0 -0
  122. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/planning.py +0 -0
  123. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/preview.py +0 -0
  124. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/render.py +0 -0
  125. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/repeats.py +0 -0
  126. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/repomap.py +0 -0
  127. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/residency.py +0 -0
  128. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/review.py +0 -0
  129. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/sandbox.py +0 -0
  130. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/screenshots.py +0 -0
  131. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/secretscan.py +0 -0
  132. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/servers/__init__.py +0 -0
  133. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/servers/encord.py +0 -0
  134. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/servers/valohai.py +0 -0
  135. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/servers/xai.py +0 -0
  136. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/sessions.py +0 -0
  137. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/steer.py +0 -0
  138. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/subagents.py +0 -0
  139. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/tools.py +0 -0
  140. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/unreachable.py +0 -0
  141. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/update.py +0 -0
  142. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/vision.py +0 -0
  143. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/web.py +0 -0
  144. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/workflows/__init__.py +0 -0
  145. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/workflows/flux2-klein-4b-t2i.json +0 -0
  146. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/workflows/remove-background.json +0 -0
  147. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/workflows/upscale-esrgan.json +0 -0
  148. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/src/lcode/workflows/z-image-turbo-t2i.json +0 -0
  149. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/conftest.py +0 -0
  150. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/fake_lsp_server.py +0 -0
  151. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/fake_mcp_server.py +0 -0
  152. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_acp.py +0 -0
  153. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_action.py +0 -0
  154. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_agent.py +0 -0
  155. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_api.py +0 -0
  156. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_backends.py +0 -0
  157. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_bench.py +0 -0
  158. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_catalog.py +0 -0
  159. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_checkpoints.py +0 -0
  160. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_checks.py +0 -0
  161. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_cli.py +0 -0
  162. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_clipboard.py +0 -0
  163. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_cloud.py +0 -0
  164. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_codesearch.py +0 -0
  165. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_comfy.py +0 -0
  166. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_config.py +0 -0
  167. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_context.py +0 -0
  168. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_context_picker.py +0 -0
  169. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_escalate.py +0 -0
  170. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_extensions.py +0 -0
  171. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_gitflow.py +0 -0
  172. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_hooks.py +0 -0
  173. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_image_edit.py +0 -0
  174. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_image_generate.py +0 -0
  175. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_jobs.py +0 -0
  176. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_look.py +0 -0
  177. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_lsp.py +0 -0
  178. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_matching.py +0 -0
  179. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_mcp.py +0 -0
  180. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_memory.py +0 -0
  181. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_model_picker.py +0 -0
  182. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_permissions.py +0 -0
  183. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_plan_mode.py +0 -0
  184. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_repeats.py +0 -0
  185. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_repomap.py +0 -0
  186. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_residency.py +0 -0
  187. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_review.py +0 -0
  188. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_robustness.py +0 -0
  189. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_sandbox.py +0 -0
  190. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_screenshots.py +0 -0
  191. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_secretscan.py +0 -0
  192. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_servers.py +0 -0
  193. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_sessions.py +0 -0
  194. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_steer.py +0 -0
  195. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_stuck.py +0 -0
  196. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_subagents.py +0 -0
  197. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_tools.py +0 -0
  198. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_update.py +0 -0
  199. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_vision.py +0 -0
  200. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_web.py +0 -0
  201. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/tests/test_xai.py +0 -0
  202. {lcode_cli-0.43.0 → lcode_cli-0.45.0}/uv.lock +0 -0
@@ -6,6 +6,34 @@ All notable changes to lcode are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.45.0] - 2026-10-24
10
+
11
+ ### Added
12
+
13
+ - **Video mode: first and last frames, camera moves, longer clips** (#154, part 1). See
14
+ [Video mode](https://nasser1941.github.io/lcode/modes/#video-mode).
15
+ - **`@start.png @end.png …`** makes a clip from one picture to the other (Wan 2.2 Fun InP 5B).
16
+ - **`--camera pan-left`** and twelve other moves (pan, tilt, zoom, dolly, rotate), from a
17
+ description or a start picture (Wan 2.1 Fun Camera 1.3B, 16 fps).
18
+ - **`/extend 4 --seconds 3 …`** in video mode continues a clip from its last frame into one
19
+ longer clip.
20
+ - lcode picks the model a job needs, installs it when you agree, and says so.
21
+
22
+ ## [0.44.0] - 2026-10-24
23
+
24
+ ### Added
25
+
26
+ - **Video mode makes videos** (#153). Describe a clip, or start it from a picture (`@photo.png`),
27
+ and Wan 2.2 TI2V 5B makes it on your GPU. See [Video mode](https://nasser1941.github.io/lcode/modes/#video-mode).
28
+ - **Options:** `--seconds` (1 to 8, 5 by default, 24 fps) plus the image options. Quality
29
+ presets: 864×480 in 12 or 20 steps, or 1280×704 in 30. A 5-second clip takes 100 to 150 s on a
30
+ 12 GB laptop GPU. Clips are 16:9 (9:16 from an upright start image) unless you give a shape.
31
+ - **Results:** an MP4 with its settings in a JSON file next to it, in the session's gallery; the
32
+ first frame shows in the terminal, `/play` opens it, and `/vary`/`/again` make new clips.
33
+ - **`/animate 3`** in image mode makes a clip from image #3. `lcode media` lists video models, and
34
+ `/models` in video mode picks one (the `video_model` setting).
35
+ - With `notify` on, a long render ends with a desktop notification.
36
+
9
37
  ## [0.43.0] - 2026-10-24
10
38
 
11
39
  ### Added
@@ -954,7 +982,9 @@ First public release.
954
982
  - `AGENTS.md` project instructions and `/init` to generate them.
955
983
  - One-line installer for Linux and macOS.
956
984
 
957
- [Unreleased]: https://github.com/nasser1941/lcode/compare/v0.43.0...HEAD
985
+ [Unreleased]: https://github.com/nasser1941/lcode/compare/v0.45.0...HEAD
986
+ [0.45.0]: https://github.com/nasser1941/lcode/compare/v0.44.0...v0.45.0
987
+ [0.44.0]: https://github.com/nasser1941/lcode/compare/v0.43.0...v0.44.0
958
988
  [0.43.0]: https://github.com/nasser1941/lcode/compare/v0.42.0...v0.43.0
959
989
  [0.42.0]: https://github.com/nasser1941/lcode/compare/v0.41.0...v0.42.0
960
990
  [0.41.0]: https://github.com/nasser1941/lcode/compare/v0.40.0...v0.41.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: lcode-cli
3
- Version: 0.43.0
3
+ Version: 0.45.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/
@@ -107,8 +107,9 @@ through [Ollama](https://ollama.com), and when it needs current information it c
107
107
  `lcode --worktree` runs parallel sessions on one repository.
108
108
  - **In your editor.** Zed, JetBrains IDEs, Neovim and other editors that speak the Agent Client
109
109
  Protocol run lcode with `lcode acp`, with diffs and approvals in the editor.
110
- - **Image mode.** `/mode image`, describe a picture, and FLUX.2 klein 4B makes it on your GPU in
111
- seconds through ComfyUI, which lcode starts, follows and stops itself. Video mode is next
110
+ - **Image and video modes.** `/mode image`, describe a picture, and FLUX.2 klein 4B makes it on your
111
+ GPU in seconds; edit it, extend it, upscale it or cut it out. `/mode video` makes clips with
112
+ Wan 2.2, from a description or a start image. lcode drives ComfyUI itself
112
113
  ([modes](https://nasser1941.github.io/lcode/modes/)).
113
114
  - **Automation.** `lcode -p --output json` for scripts and CI, a Python API (`from lcode import
114
115
  Session`), and a GitHub Action that answers `@lcode` in issues and pull requests on your own
@@ -71,8 +71,9 @@ through [Ollama](https://ollama.com), and when it needs current information it c
71
71
  `lcode --worktree` runs parallel sessions on one repository.
72
72
  - **In your editor.** Zed, JetBrains IDEs, Neovim and other editors that speak the Agent Client
73
73
  Protocol run lcode with `lcode acp`, with diffs and approvals in the editor.
74
- - **Image mode.** `/mode image`, describe a picture, and FLUX.2 klein 4B makes it on your GPU in
75
- seconds through ComfyUI, which lcode starts, follows and stops itself. Video mode is next
74
+ - **Image and video modes.** `/mode image`, describe a picture, and FLUX.2 klein 4B makes it on your
75
+ GPU in seconds; edit it, extend it, upscale it or cut it out. `/mode video` makes clips with
76
+ Wan 2.2, from a description or a start image. lcode drives ComfyUI itself
76
77
  ([modes](https://nasser1941.github.io/lcode/modes/)).
77
78
  - **Automation.** `lcode -p --output json` for scripts and CI, a Python API (`from lcode import
78
79
  Session`), and a GitHub Action that answers `@lcode` in issues and pull requests on your own
@@ -28,6 +28,7 @@ lcode config path # print the file location
28
28
  | `comfyui_path` | (found) | Your ComfyUI folder, if lcode doesn't find it; lcode starts it when needed ([ComfyUI](modes.md#comfyui)) |
29
29
  | `media_dir` | `.lcode/media` | Where images and videos go: a folder in the project, or an absolute path |
30
30
  | `preview` | `auto` | Images in the terminal: `auto`, `kitty`, `iterm`, `blocks` (colour text) or `off` ([results](modes.md#results)) |
31
+ | `video_model` | `wan22-ti2v-5b` | The model video mode uses: a key from `lcode media` ([video mode](modes.md#video-mode)) |
31
32
  | `image_model` | `flux2-klein-4b` | The model image mode uses: a key from `lcode media` ([image models](modes.md#image-models)) |
32
33
  | `think` | `true` | Let the model reason before answering |
33
34
  | `web` | `on` | Web search and page fetching: `on`, `ask` (before each search/website) or `off` |
@@ -6,7 +6,7 @@ lcode makes three kinds of things, each in its own mode with its own models:
6
6
  |---|---|---|
7
7
  | **code** (default) | Code: it reads, writes, runs and checks your project | A coding language model in Ollama (or another server) |
8
8
  | **image** | Images from a description, edits of your images (references, inpainting, outpainting), upscales and cut-outs | An image model, run by ComfyUI on your GPU |
9
- | **video** | Videos from a description, a start image or references | A video model, run by ComfyUI on your GPU |
9
+ | **video** | Video clips from a description or a start image | A video model, run by ComfyUI on your GPU |
10
10
 
11
11
  ```text
12
12
  ❯ /mode image
@@ -137,7 +137,51 @@ image ❯ /nobg 2
137
137
  inpainting and outpainting 6 to 12 s, a 2× upscale 6 s, and a background cut-out under a second
138
138
  once the tools are loaded.
139
139
 
140
- ## ComfyUI
140
+ ## Video mode
141
+
142
+ Video mode works like image mode: what you type describes a clip, and **Wan 2.2 TI2V 5B** makes it on
143
+ your GPU. Start it from a picture with `@photo.png` (or `@#3`, an image from this session), and the
144
+ clip begins with that frame. From image mode, `/animate 3 the waves roll in` switches to video mode
145
+ and animates image #3.
146
+
147
+ ```text
148
+ video ❯ waves rolling onto a beach at sunset --seconds 5
149
+ ◆ #1 .lcode/media/20261024-….mp4 864×480 · Wan 2.2 TI2V 5B · seed 1234 · …
150
+ video ❯ /play
151
+ ```
152
+
153
+ - **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).
155
+ Clips are 16:9, or 9:16 from an upright start picture (cropped to it), unless you give a shape:
156
+ Wan 2.2 knows those two shapes best, and a square or small clip can break up into streaks.
157
+ - **Quality:** `fast` makes 864×480 in 12 steps, `balanced` (the default) 864×480 in 20 steps, and
158
+ `best` the model's own 1280×704 in 30 steps. Smaller than 864×480 breaks this model up into
159
+ streaks, so lcode doesn't go lower.
160
+ - **Camera moves:** describe them as shots ("slow zoom in", "dolly shot along the shore", "pan
161
+ left"). "The camera moves in" can put a camera in the picture.
162
+ - **Negative prompt:** Wan uses one. lcode passes Wan's own default (it avoids static, blurry,
163
+ over-exposed clips) unless you give `--no "…"`.
164
+ - **Results:** an MP4 with a JSON file next to it (prompt, seed, size, frames, fps, start image),
165
+ numbered in the session's gallery with the images. The first frame shows in the terminal.
166
+ `/play 4` opens a clip in your player, and `/vary` and `/again` make new clips from the same
167
+ description and start image.
168
+ - **Measured** on the RTX 4080 Laptop GPU (12 GB), a 5-second clip (121 frames): `fast` 100 s,
169
+ `balanced` 150 s (the same from a start image), `best` 10.5 minutes.
170
+ - **First and last frame:** two pictures, `@start.png @end.png the flower opens`, make a clip that
171
+ goes from the first to the last. Wan 2.2 Fun InP 5B makes these (a 3 s clip in 62 s at `fast`;
172
+ `fast` can change abruptly halfway, `balanced` moves more smoothly).
173
+ - **Camera moves:** `--camera pan-left` (also `pan-right`, `pan-up`, `pan-down`, `tilt-up`,
174
+ `tilt-down`, `zoom-in`, `zoom-out`, `dolly-in`, `dolly-out`, `rotate-left`, `rotate-right`,
175
+ `static`), from a description or a start picture. Wan 2.1 Fun Camera 1.3B makes these, at 832×480
176
+ and 16 frames per second: a 3 s move takes about 2 minutes.
177
+ - **Extend a clip:** `/extend 4 --seconds 3 it flies away` continues clip #4 from its last frame
178
+ and joins the new part after it, as one longer clip (`…-extended.mp4`; 3 s more in about a
179
+ minute at `fast`).
180
+ - **Which model:** the one you chose (`/models`) makes ordinary clips. For first and last frames or a
181
+ camera move, lcode uses the model that can, installs it when you agree, and says so.
182
+ - **Long renders:** progress shows the step and the time left. With `notify` on, lcode sends a
183
+ desktop notification when a clip that took longer than `notify_after` seconds is done.
184
+
141
185
 
142
186
  ComfyUI runs the image and video models; lcode drives it through its API.
143
187
 
@@ -234,10 +278,8 @@ themselves:
234
278
 
235
279
  ## Coming next
236
280
 
237
- Video mode doesn't generate yet: a request there says what's coming instead of going anywhere.
238
-
239
- - **#153, #154 Video mode:** with video models in the catalog, from text or a start image, first and last frames, several
240
- references, camera moves, longer clips, sound.
281
+ - **#154 More video:** several reference images, smoother and bigger clips (frame interpolation,
282
+ upscaling), restyling a video, and sound.
241
283
  - **#155 Movies:** storyboards with a consistent cast, shots stitched into one film.
242
284
  - **#156 Prompt assistant:** a small local model for prompts and follow-ups.
243
285
  - **#157 Cloud generation**, with costs shown (Grok Imagine first).
@@ -12,7 +12,7 @@ lcode
12
12
 
13
13
  ```text
14
14
  ╭──────────────────────────────────────────────╮
15
- │ lcode v0.43.0 — local coding agent │
15
+ │ lcode v0.45.0 — local coding agent │
16
16
  │ │
17
17
  │ model lcode-qwen3.6-35b │
18
18
  │ context 256K tokens │
@@ -83,6 +83,7 @@ reasoning is on.
83
83
  | `/mode [code\|image\|video]` | Switch what lcode makes: [code, images or videos](modes.md) |
84
84
  | `/options`, `/again`, `/vary N`, `/gallery`, `/open N` | Image mode: [options for the session, follow-ups on results](modes.md#results) |
85
85
  | `/edit N`, `/use N`, `/extend N`, `/upscale N`, `/nobg N` | Image mode: [edit, follow, outpaint, upscale, cut out](modes.md#editing) |
86
+ | `/animate N`, `/play N` | [Video mode](modes.md#video-mode): animate image N; play a clip |
86
87
  | `/permissions [ask\|plan\|auto-edit\|yolo]` | Set the permission mode |
87
88
  | `/cd DIR` | Change the working directory |
88
89
  | `/todos` | Show the model's task list |
@@ -3,7 +3,7 @@
3
3
  From a program: `from lcode import Session` (see lcode.api).
4
4
  """
5
5
 
6
- __version__ = "0.43.0"
6
+ __version__ = "0.45.0"
7
7
 
8
8
  API = ("Session", "Result", "Options", "SetupError")
9
9
 
@@ -309,6 +309,7 @@ class Settings:
309
309
  comfyui_path: str | None = None # a ComfyUI install lcode doesn't find by itself (lcode.comfy)
310
310
  media_dir: str = ".lcode/media" # where image and video mode save their files (lcode.media)
311
311
  image_model: str = "flux2-klein-4b" # the media catalog's model image mode uses (lcode.media_catalog)
312
+ video_model: str = "wan22-ti2v-5b" # and video mode's
312
313
  preview: str = "auto" # images in the terminal: auto, kitty, iterm, blocks or off (lcode.preview)
313
314
  num_batch: int | None = None
314
315
  keep_alive: str = "30m"
@@ -698,6 +699,7 @@ class Agent:
698
699
  "model": self.settings.model,
699
700
  "mode": self.settings.mode,
700
701
  "image_model": self.settings.image_model,
702
+ "video_model": self.settings.video_model,
701
703
  "media": {"results": self.media_results, "options": self.image_options.to_json(), "refs": self.image_refs},
702
704
  "name": self.session_name,
703
705
  "title": self.session_title,
@@ -749,6 +751,8 @@ class Agent:
749
751
  self.settings.mode = data["mode"] # a session belongs to the mode it was made in
750
752
  if isinstance(data.get("image_model"), str):
751
753
  self.settings.image_model = data["image_model"]
754
+ if isinstance(data.get("video_model"), str):
755
+ self.settings.video_model = data["video_model"]
752
756
  media = data.get("media") or {}
753
757
  self.media_results = [r for r in media.get("results") or [] if isinstance(r, dict) and "path" in r]
754
758
  self.image_options = type(self.image_options).from_json(media.get("options") or {})
@@ -201,6 +201,7 @@ def open_agent(cwd: Path, options: Options, console: Console, hw: Hardware | Non
201
201
  comfyui_path=cfg["comfyui_path"],
202
202
  media_dir=cfg["media_dir"],
203
203
  image_model=cfg["image_model"],
204
+ video_model=cfg["video_model"],
204
205
  preview=cfg["preview"],
205
206
  web=switch(options.web, cfg["web"], "on"),
206
207
  search_backend=cfg["search_backend"],
@@ -801,16 +801,8 @@ def media_request(agent, prompt: str, out: Console, quiet: bool) -> None:
801
801
  """`lcode --mode image -p "…"`: make the image, say where it went (or, with --output json, a result object)."""
802
802
  import json
803
803
 
804
- from lcode import api, media, modes
804
+ from lcode import api, media
805
805
 
806
- if agent.settings.mode == "video":
807
- message = modes.COMING["video"]
808
- if quiet:
809
- print(json.dumps({"type": "result", "status": "error", "error": message}), flush=True)
810
- else:
811
- out.print(f"[yellow]{escape(message)}[/]")
812
- api.close_agent(agent)
813
- sys.exit(2)
814
806
  try:
815
807
  made = media.request(agent, prompt)
816
808
  except (media.MediaError, KeyboardInterrupt) as e:
@@ -825,7 +817,7 @@ def media_request(agent, prompt: str, out: Console, quiet: bool) -> None:
825
817
  result = {
826
818
  "type": "result",
827
819
  "status": "success",
828
- "mode": "image",
820
+ "mode": agent.settings.mode,
829
821
  "files": [str(path) for one in made for path in one.files],
830
822
  "model": made[0].model,
831
823
  "seed": made[0].seed,
@@ -1106,7 +1098,7 @@ def cmd_media(args) -> None:
1106
1098
  where = (
1107
1099
  f"ComfyUI at {server.url}" if running else (f"{install.path} (not running)" if install else "no ComfyUI found")
1108
1100
  )
1109
- console.print(f"[dim]{hw.describe()} · {where} · image model: {cfg['image_model']}[/]\n")
1101
+ console.print(f"[dim]{hw.describe()} · {where} · image: {cfg['image_model']} · video: {cfg['video_model']}[/]\n")
1110
1102
  for mode in ("image", "video", "tool"):
1111
1103
  models = cat.for_mode(mode)
1112
1104
  console.print(
@@ -46,6 +46,7 @@ SETTINGS: dict[str, tuple[object, type, str]] = {
46
46
  "comfyui_path": (None, str, "your ComfyUI folder, if lcode doesn't find it (lcode starts it when needed)"),
47
47
  "media_dir": (".lcode/media", str, "where images and videos go: a folder in the project, or an absolute path"),
48
48
  "image_model": ("flux2-klein-4b", str, "the model image mode uses: a key from `lcode media`"),
49
+ "video_model": ("wan22-ti2v-5b", str, "the model video mode uses: a key from `lcode media`"),
49
50
  "preview": ("auto", str, "images in the terminal: auto | kitty | iterm | blocks (colour text) | off"),
50
51
  "think": (True, bool, "let the model reason before answering (slower, better)"),
51
52
  "web": ("on", str, "web search and page fetching for the model: on | ask | off"),
@@ -217,12 +218,12 @@ def coerce(key: str, value: object) -> object:
217
218
 
218
219
  if value not in PROTOCOLS:
219
220
  raise ConfigError(f"preview must be one of {', '.join(PROTOCOLS)}")
220
- if key == "image_model":
221
+ if key in ("image_model", "video_model"):
221
222
  from lcode import media_catalog
222
223
 
223
- keys = [m.key for m in media_catalog.load().for_mode("image")]
224
+ keys = [m.key for m in media_catalog.load().for_mode(key.removesuffix("_model"))]
224
225
  if value not in keys:
225
- raise ConfigError(f"image_model must be one of {', '.join(keys)} (see lcode media)")
226
+ raise ConfigError(f"{key} must be one of {', '.join(keys)} (see lcode media)")
226
227
  if typ is bool and isinstance(value, str):
227
228
  if value.lower() not in ("true", "false", "1", "0", "yes", "no", "on", "off"):
228
229
  raise ConfigError(f"{key} must be true or false")
@@ -13,6 +13,7 @@ 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
17
  SIZES = { # names for aspect ratios
17
18
  "square": "1:1",
18
19
  "portrait": "3:4",
@@ -34,6 +35,21 @@ STYLES = {
34
35
  "comic": "comic book art, bold ink outlines, halftone shading",
35
36
  "flat": "flat vector illustration, minimal, bold shapes",
36
37
  }
38
+ CAMERA = { # video: --camera name -> the camera model's pose
39
+ "static": "Static",
40
+ "pan-left": "Pan Left",
41
+ "pan-right": "Pan Right",
42
+ "pan-up": "Pan Up",
43
+ "pan-down": "Pan Down",
44
+ "tilt-up": "Pan Up",
45
+ "tilt-down": "Pan Down",
46
+ "zoom-in": "Zoom In",
47
+ "zoom-out": "Zoom Out",
48
+ "dolly-in": "Zoom In",
49
+ "dolly-out": "Zoom Out",
50
+ "rotate-left": "Anti Clockwise (ACW)",
51
+ "rotate-right": "ClockWise (CW)",
52
+ }
37
53
  ALIASES = {
38
54
  "n": "n",
39
55
  "count": "n",
@@ -46,6 +62,9 @@ ALIASES = {
46
62
  "no": "negative",
47
63
  "negative": "negative",
48
64
  "style": "style",
65
+ "seconds": "seconds",
66
+ "duration": "seconds",
67
+ "camera": "camera",
49
68
  }
50
69
  FLAG = re.compile(r"(?:^|\s)--?(" + "|".join(sorted(ALIASES, key=len, reverse=True)) + r")\b(?=[\s=]|$)")
51
70
  DIMENSIONS = re.compile(r"^(\d{2,4})\s*[x×]\s*(\d{2,4})$")
@@ -64,10 +83,16 @@ class Options:
64
83
  quality: str = "balanced"
65
84
  negative: str = ""
66
85
  style: str = ""
86
+ seconds: float = 5.0 # video only
87
+ camera: str = "" # video only: a move from CAMERA, made by a camera-control model
67
88
 
68
- def describe(self) -> str:
89
+ def describe(self, video: bool = False) -> str:
69
90
  seed = "random" if self.seed is None else str(self.seed)
70
91
  parts = [f"n={self.n}", f"size={self.size}", f"seed={seed}", f"quality={self.quality}"]
92
+ if video:
93
+ parts.append(f"seconds={self.seconds:g}")
94
+ if self.camera:
95
+ parts.append(f"camera={self.camera}")
71
96
  if self.style:
72
97
  parts.append(f"style={self.style}")
73
98
  if self.negative:
@@ -92,7 +117,9 @@ def set_values(options: Options, values: dict[str, object]) -> Options:
92
117
  for raw_key, raw in values.items():
93
118
  key = ALIASES.get(str(raw_key).lower().lstrip("-"))
94
119
  if key is None:
95
- raise OptionError(f"unknown option {raw_key!r}: use n, ar (or size), seed, quality, style or no")
120
+ raise OptionError(
121
+ f"unknown option {raw_key!r}: use n, ar (or size), seed, quality, style, no, seconds or camera"
122
+ )
96
123
  value = str(raw).strip() if raw is not None else ""
97
124
  if key == "n":
98
125
  if not value.isdigit() or not 1 <= int(value) <= MAX_COUNT:
@@ -120,6 +147,21 @@ def set_values(options: Options, values: dict[str, object]) -> Options:
120
147
  raise OptionError(f"style is one of {', '.join(STYLES)} (or none)")
121
148
  elif key == "negative":
122
149
  out.negative = "" if value.lower() in ("none", "off") else value
150
+ elif key == "camera":
151
+ if value.lower() in ("none", "off", ""):
152
+ out.camera = ""
153
+ elif value.lower() in CAMERA:
154
+ out.camera = value.lower()
155
+ else:
156
+ raise OptionError(f"camera is one of {', '.join(CAMERA)} (or none)")
157
+ elif key == "seconds":
158
+ try:
159
+ seconds = float(value.rstrip("s"))
160
+ except ValueError:
161
+ seconds = 0
162
+ if not 1 <= seconds <= MAX_SECONDS:
163
+ raise OptionError(f"seconds is how long a video is: 1 to {MAX_SECONDS}")
164
+ out.seconds = seconds
123
165
  return out
124
166
 
125
167
 
@@ -203,5 +245,10 @@ def replace_seed(options: Options, n: int | None = None) -> Options:
203
245
  return replace(options, seed=None, n=n or options.n)
204
246
 
205
247
 
248
+ def frames(seconds: float, fps: int) -> int:
249
+ """Frames for a clip: a multiple of 4 plus 1, as video models that compress time 4 to 1 need."""
250
+ return max(1, round(seconds * fps / 4)) * 4 + 1
251
+
252
+
206
253
  def styled(prompt: str, style: str) -> str:
207
254
  return f"{prompt}, {STYLES[style]}" if style else prompt