lemonpie-cli 0.2.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 (36) hide show
  1. lemonpie_cli-0.2.0/.github/workflows/ci.yml +32 -0
  2. lemonpie_cli-0.2.0/.github/workflows/release.yml +68 -0
  3. lemonpie_cli-0.2.0/.gitignore +33 -0
  4. lemonpie_cli-0.2.0/.release-please/config.json +14 -0
  5. lemonpie_cli-0.2.0/.release-please/manifest.json +3 -0
  6. lemonpie_cli-0.2.0/CHANGELOG.md +69 -0
  7. lemonpie_cli-0.2.0/LICENSE +674 -0
  8. lemonpie_cli-0.2.0/PKG-INFO +154 -0
  9. lemonpie_cli-0.2.0/README.md +134 -0
  10. lemonpie_cli-0.2.0/docs/ROADMAP.md +34 -0
  11. lemonpie_cli-0.2.0/docs/config.example.json +5 -0
  12. lemonpie_cli-0.2.0/docs/design/code-completion.md +108 -0
  13. lemonpie_cli-0.2.0/docs/design/model-verification.md +49 -0
  14. lemonpie_cli-0.2.0/docs/design/packaging.md +90 -0
  15. lemonpie_cli-0.2.0/docs/usage/command-index.md +44 -0
  16. lemonpie_cli-0.2.0/pyproject.toml +52 -0
  17. lemonpie_cli-0.2.0/src/lemonpie/__init__.py +0 -0
  18. lemonpie_cli-0.2.0/src/lemonpie/_version.py +24 -0
  19. lemonpie_cli-0.2.0/src/lemonpie/cli/__init__.py +0 -0
  20. lemonpie_cli-0.2.0/src/lemonpie/cli/config_cmd.py +527 -0
  21. lemonpie_cli-0.2.0/src/lemonpie/cli/parser.py +22 -0
  22. lemonpie_cli-0.2.0/src/lemonpie/cli/ui.py +74 -0
  23. lemonpie_cli-0.2.0/src/lemonpie/config.py +68 -0
  24. lemonpie_cli-0.2.0/src/lemonpie/engine/__init__.py +0 -0
  25. lemonpie_cli-0.2.0/src/lemonpie/engine/models.py +61 -0
  26. lemonpie_cli-0.2.0/src/lemonpie/engine/ollama.py +49 -0
  27. lemonpie_cli-0.2.0/src/lemonpie/main.py +180 -0
  28. lemonpie_cli-0.2.0/src/lemonpie/paths.py +27 -0
  29. lemonpie_cli-0.2.0/src/lemonpie/sessions/__init__.py +0 -0
  30. lemonpie_cli-0.2.0/src/lemonpie/sessions/storage.py +179 -0
  31. lemonpie_cli-0.2.0/src/lemonpie/time_utils.py +14 -0
  32. lemonpie_cli-0.2.0/tests/conftest.py +83 -0
  33. lemonpie_cli-0.2.0/tests/test_cli.py +120 -0
  34. lemonpie_cli-0.2.0/tests/test_config_cmd.py +439 -0
  35. lemonpie_cli-0.2.0/tests/test_sessions.py +293 -0
  36. lemonpie_cli-0.2.0/uv.lock +325 -0
@@ -0,0 +1,32 @@
1
+ name: CI & Build Verification
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ jobs:
12
+ build:
13
+ name: Build & Check Package
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
17
+ with:
18
+ fetch-depth: 0
19
+
20
+ - name: Install uv
21
+ uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
22
+ with:
23
+ version: "0.12.17"
24
+
25
+ - name: Set up Python
26
+ run: uv python install
27
+
28
+ - name: Verify build artifact
29
+ run: uv build
30
+
31
+ - name: Run tests
32
+ run: uv run pytest
@@ -0,0 +1,68 @@
1
+ name: Release & Publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ permissions:
9
+ contents: write
10
+ pull-requests: write
11
+ id-token: write
12
+
13
+ jobs:
14
+ release-please:
15
+ name: Manage Release PR & Tags
16
+ runs-on: ubuntu-latest
17
+ outputs:
18
+ release_created: ${{ steps.release.outputs.releases_created }}
19
+ tag_name: ${{ steps.release.outputs.tag_name }}
20
+ steps:
21
+ - uses: googleapis/release-please-action@v4
22
+ id: release
23
+ with:
24
+ token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
25
+ config-file: .release-please/config.json
26
+ manifest-file: .release-please/manifest.json
27
+
28
+ pypi-publish:
29
+ name: Build and publish to PyPI
30
+ needs: release-please
31
+ if: ${{ needs.release-please.outputs.release_created == 'true' }}
32
+ runs-on: ubuntu-latest
33
+ environment: pypi
34
+ permissions:
35
+ id-token: write # Required for Trusted Publisher OIDC authentication
36
+
37
+ steps:
38
+ - name: Check out repository
39
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
40
+ with:
41
+ fetch-depth: 0 # Required for hatch-vcs to inspect git history & tags
42
+
43
+ - name: Verify tag is reachable from main
44
+ run: |
45
+ git fetch origin main
46
+ if git merge-base --is-ancestor "${{ github.sha }}" origin/main; then
47
+ echo "Commit ${{ github.sha }} is on main. Proceeding."
48
+ else
49
+ echo "::error::Commit ${{ github.sha }} is not reachable from origin/main. Refusing to publish."
50
+ exit 1
51
+ fi
52
+
53
+ - name: Install uv
54
+ uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
55
+ with:
56
+ version: "0.12.17"
57
+
58
+ - name: Set up Python
59
+ run: uv python install
60
+
61
+ - name: Run tests
62
+ run: uv run pytest
63
+
64
+ - name: Build package artifacts
65
+ run: uv build
66
+
67
+ - name: Publish to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,33 @@
1
+ # Virtual environments
2
+ .venv/
3
+ venv/
4
+ env/
5
+
6
+ # Python build artifacts
7
+ __pycache__/
8
+ *.pyc
9
+ *.pyo
10
+ *.pyd
11
+
12
+ # Packaging output
13
+ dist/
14
+ build/
15
+ src/lemonpie/_version.py
16
+ *.egg-info/
17
+
18
+ # Runtime logs/temp
19
+ *.log
20
+ *.tmp
21
+
22
+ # IDE/editor files
23
+ .vscode/
24
+ .idea/
25
+ *.swp
26
+
27
+ # OS temporary files
28
+ .DS_Store
29
+ Thumbs.db
30
+
31
+ # Secrets & Environment Variables
32
+ .env
33
+ .test-env/
@@ -0,0 +1,14 @@
1
+ {
2
+ "release-type": "python",
3
+ "packages": {
4
+ ".": {
5
+ "package-name": "lemonpie-cli",
6
+ "changelog-path": "CHANGELOG.md",
7
+ "bump-minor-pre-major": true,
8
+ "bump-patch-for-minor-pre-major": true,
9
+ "prerelease": true,
10
+ "versioning": "prerelease",
11
+ "include-component-in-tag": false
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.2.0"
3
+ }
@@ -0,0 +1,69 @@
1
+ # Changelog
2
+
3
+ ## [0.2.0](https://github.com/famousStratum/LemonPie/compare/v0.2.0-rc2...v0.2.0) (2026-11-11)
4
+
5
+
6
+ ### Documentation
7
+
8
+ * Make all links absolute in README.md ([#40](https://github.com/famousStratum/LemonPie/issues/40)) ([3ec603e](https://github.com/famousStratum/LemonPie/commit/3ec603e4861008303ccdedc6736dbb178fe52c8c))
9
+
10
+ ## [0.2.0-rc2](https://github.com/famousStratum/LemonPie/compare/v0.2.0-rc1...v0.2.0-rc2) (2026-11-01)
11
+
12
+
13
+ ### Features
14
+
15
+ * lmConfig --init — interactive setup wizard ([#37](https://github.com/famousStratum/LemonPie/issues/37)) ([a9cc56d](https://github.com/famousStratum/LemonPie/commit/a9cc56db38ee17735fbdd6d607a34cd06e352372))
16
+
17
+
18
+ ### Documentation
19
+
20
+ * reflect lmConfig --init in README and /docs ([#38](https://github.com/famousStratum/LemonPie/issues/38)) ([b1d0bd9](https://github.com/famousStratum/LemonPie/commit/b1d0bd95f1e96be12a4dea24ef79a5711deebdf1))
21
+ * split roadmap into design docs and add command reference ([#34](https://github.com/famousStratum/LemonPie/issues/34)) ([a382aac](https://github.com/famousStratum/LemonPie/commit/a382aac6d480963fce7f4486926e315a51741aaf))
22
+
23
+ ## [0.2.0-rc1](https://github.com/famousStratum/LemonPie/compare/v0.2.0-beta.1...v0.2.0-rc1) (2026-09-22)
24
+
25
+
26
+ ### Miscellaneous Chores
27
+
28
+ * ignore .test-env/ ([#32](https://github.com/famousStratum/LemonPie/issues/32)) ([3045077](https://github.com/famousStratum/LemonPie/commit/30450770de3441e5e4e078c5151abd9763d5098f))
29
+
30
+ ## [0.2.0-beta.1](https://github.com/famousStratum/LemonPie/compare/v0.2.0-alpha.3...v0.2.0-beta.1) (2026-09-22)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * eliminate now_ts() double-calls and session ID collisions in session creation ([#27](https://github.com/famousStratum/LemonPie/issues/27)) ([7864136](https://github.com/famousStratum/LemonPie/commit/7864136b6dc200e1e682b61252eadc74e99ac66a))
36
+
37
+ ## [0.2.0-alpha.3](https://github.com/famousStratum/LemonPie/compare/v0.2.0-alpha.2...v0.2.0-alpha.3) (2026-09-21)
38
+
39
+
40
+ ### Bug Fixes
41
+
42
+ * resolve tuple/dict mismatch in model alias lookup and dead code in session loading ([#23](https://github.com/famousStratum/LemonPie/issues/23)) ([65152bf](https://github.com/famousStratum/LemonPie/commit/65152bf9d6df0d91addad5aa72f73145383b99d9))
43
+
44
+ ## [0.2.0-alpha.2](https://github.com/famousStratum/LemonPie/compare/lemonpie-cli-v0.2.0-alpha.1...lemonpie-cli-v0.2.0-alpha.2) (2026-09-21)
45
+
46
+
47
+ ### Features
48
+
49
+ * **cli:** enhance error handling, model defaults, timeouts, and connection status ([9147dc0](https://github.com/famousStratum/LemonPie/commit/9147dc0293065f0b2227ac8f36cdacf0502ca7c4))
50
+ * **cli:** improve connection error handling, timeouts, and documentation ([83e2659](https://github.com/famousStratum/LemonPie/commit/83e2659182717d82feb28be4b85d14e85679d751))
51
+ * **paths:** Depend on platformdirs for config/session paths; bump requires-python to >=3.11 ([6fbf8e9](https://github.com/famousStratum/LemonPie/commit/6fbf8e92d27cbec20c57f404aecf99940329b238))
52
+
53
+
54
+ ### Bug Fixes
55
+
56
+ * **build:** explicitly specify hatchling wheel package directory ([705980a](https://github.com/famousStratum/LemonPie/commit/705980a9eda1672829119db0fcd2aab4a9c04101))
57
+ * **build:** specify hatchling package target ([b759f2d](https://github.com/famousStratum/LemonPie/commit/b759f2d086bccb7b39d456844d1bb7403410e8d4))
58
+ * **cli:** import missing resolve_session in main entrypoint ([f5c4c5a](https://github.com/famousStratum/LemonPie/commit/f5c4c5ae1cc7ade21ba41eb92a9ecc640a7fe969))
59
+ * **cli:** reorder main entrypoint control flow and fix argument handling ([3a182d2](https://github.com/famousStratum/LemonPie/commit/3a182d2485af36f8a98a28cb41459f968fc9f4d4))
60
+ * **cli:** reorder main entrypoint control flow and resolve model assignment ([ad944f9](https://github.com/famousStratum/LemonPie/commit/ad944f93e2661eb3f2cc1abfe6cdeedc04f6ee86))
61
+ * **cli:** resolve NameError in main entrypoint ([532d661](https://github.com/famousStratum/LemonPie/commit/532d6617ff589de5f5def690e6390b1341517f84))
62
+
63
+
64
+ ### Documentation
65
+
66
+ * Add roadmap section to README and initial state-machine design doc ([fa9b000](https://github.com/famousStratum/LemonPie/commit/fa9b0009aaca85cbcd3e5a6f1e1c6c4d3bc40196))
67
+ * update README for src/ layout and platformdirs ([a15cde2](https://github.com/famousStratum/LemonPie/commit/a15cde25a08c49d11366bc64c31aa80da9590838))
68
+ * update README.md ([cf7a046](https://github.com/famousStratum/LemonPie/commit/cf7a0468474cc6bb47dbf33148a6b18d11b44fdf))
69
+ * update roadmap in README.md ([d0a3316](https://github.com/famousStratum/LemonPie/commit/d0a33167361efd400682f54780aaf3fff738e41d))