tensorsuggestlite 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. tensorsuggestlite-2.1.0/.editorconfig +29 -0
  2. tensorsuggestlite-2.1.0/.gitattributes +31 -0
  3. tensorsuggestlite-2.1.0/.github/CODEOWNERS +9 -0
  4. tensorsuggestlite-2.1.0/.github/FUNDING.yml +1 -0
  5. tensorsuggestlite-2.1.0/.github/ISSUE_TEMPLATE/bug_report.md +27 -0
  6. tensorsuggestlite-2.1.0/.github/ISSUE_TEMPLATE/feature_request.md +25 -0
  7. tensorsuggestlite-2.1.0/.github/dependabot.yml +40 -0
  8. tensorsuggestlite-2.1.0/.github/pull_request_template.md +25 -0
  9. tensorsuggestlite-2.1.0/.github/workflows/ci.yml +60 -0
  10. tensorsuggestlite-2.1.0/.github/workflows/release.yml +247 -0
  11. tensorsuggestlite-2.1.0/.gitignore +60 -0
  12. tensorsuggestlite-2.1.0/.pre-commit-config.yaml +27 -0
  13. tensorsuggestlite-2.1.0/.python-version +1 -0
  14. tensorsuggestlite-2.1.0/CHANGELOG.md +68 -0
  15. tensorsuggestlite-2.1.0/CLAUDE.md +82 -0
  16. tensorsuggestlite-2.1.0/CODE_OF_CONDUCT.md +50 -0
  17. tensorsuggestlite-2.1.0/CONTRIBUTING.md +103 -0
  18. tensorsuggestlite-2.1.0/Justfile +75 -0
  19. tensorsuggestlite-2.1.0/LICENSE +65 -0
  20. tensorsuggestlite-2.1.0/LICENSE-MIT +22 -0
  21. tensorsuggestlite-2.1.0/LICENSE-MPL-2.0 +374 -0
  22. tensorsuggestlite-2.1.0/PKG-INFO +223 -0
  23. tensorsuggestlite-2.1.0/README.md +197 -0
  24. tensorsuggestlite-2.1.0/SECURITY.md +52 -0
  25. tensorsuggestlite-2.1.0/SUPPORT.md +30 -0
  26. tensorsuggestlite-2.1.0/docs/assets/tensorsuggestlite-banner.png +0 -0
  27. tensorsuggestlite-2.1.0/examples/ecommerce_feedback.toml +105 -0
  28. tensorsuggestlite-2.1.0/examples/example.json +138 -0
  29. tensorsuggestlite-2.1.0/examples/example.toml +135 -0
  30. tensorsuggestlite-2.1.0/examples/example.yaml +175 -0
  31. tensorsuggestlite-2.1.0/examples/feedback_dataset.yaml +132 -0
  32. tensorsuggestlite-2.1.0/examples/intent_dataset.json +154 -0
  33. tensorsuggestlite-2.1.0/icons/app_icon.png +0 -0
  34. tensorsuggestlite-2.1.0/icons/moon.png +0 -0
  35. tensorsuggestlite-2.1.0/icons/sun.png +0 -0
  36. tensorsuggestlite-2.1.0/pyproject.toml +136 -0
  37. tensorsuggestlite-2.1.0/scripts/check-commit-message.sh +33 -0
  38. tensorsuggestlite-2.1.0/scripts/check-commit-range.sh +39 -0
  39. tensorsuggestlite-2.1.0/src/tensorsuggestlite/__init__.py +4 -0
  40. tensorsuggestlite-2.1.0/src/tensorsuggestlite/cli/__init__.py +155 -0
  41. tensorsuggestlite-2.1.0/src/tensorsuggestlite/cli/commands.py +540 -0
  42. tensorsuggestlite-2.1.0/src/tensorsuggestlite/cli/completions.py +88 -0
  43. tensorsuggestlite-2.1.0/src/tensorsuggestlite/cli/manpage.py +80 -0
  44. tensorsuggestlite-2.1.0/src/tensorsuggestlite/cli/parser.py +206 -0
  45. tensorsuggestlite-2.1.0/src/tensorsuggestlite/core/__init__.py +41 -0
  46. tensorsuggestlite-2.1.0/src/tensorsuggestlite/core/entities.py +223 -0
  47. tensorsuggestlite-2.1.0/src/tensorsuggestlite/core/exceptions.py +46 -0
  48. tensorsuggestlite-2.1.0/src/tensorsuggestlite/core/interfaces.py +110 -0
  49. tensorsuggestlite-2.1.0/src/tensorsuggestlite/core/logging.py +50 -0
  50. tensorsuggestlite-2.1.0/src/tensorsuggestlite/core/paths.py +75 -0
  51. tensorsuggestlite-2.1.0/src/tensorsuggestlite/core/profiler.py +90 -0
  52. tensorsuggestlite-2.1.0/src/tensorsuggestlite/main.py +66 -0
  53. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ml/__init__.py +11 -0
  54. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ml/callbacks.py +56 -0
  55. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ml/exporter.py +133 -0
  56. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ml/lite_runtime.py +155 -0
  57. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ml/predictor.py +143 -0
  58. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ml/trainer.py +361 -0
  59. tensorsuggestlite-2.1.0/src/tensorsuggestlite/parsers/__init__.py +25 -0
  60. tensorsuggestlite-2.1.0/src/tensorsuggestlite/parsers/base.py +392 -0
  61. tensorsuggestlite-2.1.0/src/tensorsuggestlite/parsers/json_parser.py +33 -0
  62. tensorsuggestlite-2.1.0/src/tensorsuggestlite/parsers/toml_parser.py +33 -0
  63. tensorsuggestlite-2.1.0/src/tensorsuggestlite/parsers/yaml_parser.py +34 -0
  64. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ui/__init__.py +18 -0
  65. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ui/app.py +77 -0
  66. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ui/dnd.py +209 -0
  67. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ui/layout.py +392 -0
  68. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ui/main_window.py +570 -0
  69. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ui/native_dialogs.py +274 -0
  70. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ui/theme.py +327 -0
  71. tensorsuggestlite-2.1.0/src/tensorsuggestlite/ui/worker.py +78 -0
  72. tensorsuggestlite-2.1.0/src/tensorsuggestlite/use_cases/__init__.py +11 -0
  73. tensorsuggestlite-2.1.0/src/tensorsuggestlite/use_cases/export_tflite.py +63 -0
  74. tensorsuggestlite-2.1.0/src/tensorsuggestlite/use_cases/predict.py +135 -0
  75. tensorsuggestlite-2.1.0/src/tensorsuggestlite/use_cases/train_model.py +89 -0
  76. tensorsuggestlite-2.1.0/tensorsuggestlite-cli.spec +65 -0
  77. tensorsuggestlite-2.1.0/tensorsuggestlite.spec +78 -0
  78. tensorsuggestlite-2.1.0/tests/__init__.py +1 -0
  79. tensorsuggestlite-2.1.0/tests/cli/__init__.py +0 -0
  80. tensorsuggestlite-2.1.0/tests/cli/test_commands.py +168 -0
  81. tensorsuggestlite-2.1.0/tests/cli/test_parser.py +74 -0
  82. tensorsuggestlite-2.1.0/tests/conftest.py +67 -0
  83. tensorsuggestlite-2.1.0/tests/core/__init__.py +0 -0
  84. tensorsuggestlite-2.1.0/tests/core/test_entities.py +114 -0
  85. tensorsuggestlite-2.1.0/tests/core/test_metadata.py +38 -0
  86. tensorsuggestlite-2.1.0/tests/core/test_profiler.py +67 -0
  87. tensorsuggestlite-2.1.0/tests/e2e/__init__.py +0 -0
  88. tensorsuggestlite-2.1.0/tests/e2e/test_e2e_training.py +41 -0
  89. tensorsuggestlite-2.1.0/tests/e2e/test_imports.py +45 -0
  90. tensorsuggestlite-2.1.0/tests/ml/__init__.py +0 -0
  91. tensorsuggestlite-2.1.0/tests/ml/test_inference.py +212 -0
  92. tensorsuggestlite-2.1.0/tests/ml/test_lite_runtime.py +41 -0
  93. tensorsuggestlite-2.1.0/tests/parsers/__init__.py +0 -0
  94. tensorsuggestlite-2.1.0/tests/parsers/test_examples.py +87 -0
  95. tensorsuggestlite-2.1.0/tests/parsers/test_parsers.py +167 -0
  96. tensorsuggestlite-2.1.0/tests/ui/__init__.py +0 -0
  97. tensorsuggestlite-2.1.0/tests/ui/test_ui.py +208 -0
  98. tensorsuggestlite-2.1.0/tests/ui/test_worker.py +43 -0
  99. tensorsuggestlite-2.1.0/tests/use_cases/__init__.py +0 -0
  100. tensorsuggestlite-2.1.0/tests/use_cases/test_cross_validation.py +31 -0
  101. tensorsuggestlite-2.1.0/tests/use_cases/test_use_cases.py +25 -0
  102. tensorsuggestlite-2.1.0/uv.lock +975 -0
@@ -0,0 +1,29 @@
1
+ # EditorConfig for TensorSuggestLite
2
+ # Conforms to Sxnnyside Developer Experience text normalization standards
3
+ root = true
4
+
5
+ [*]
6
+ charset = utf-8
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+ indent_style = space
11
+ indent_size = 2
12
+
13
+ [*.py]
14
+ indent_style = space
15
+ indent_size = 4
16
+
17
+ [Justfile]
18
+ indent_style = space
19
+ indent_size = 4
20
+
21
+ [Makefile]
22
+ indent_style = tab
23
+
24
+ [*.md]
25
+ trim_trailing_whitespace = false
26
+
27
+ [*.{bat,cmd}]
28
+ end_of_line = crlf
29
+
@@ -0,0 +1,31 @@
1
+ # GitAttributes for TensorSuggestLite
2
+ # Ensure LF line endings across repository and checkouts
3
+ * text=auto eol=lf
4
+
5
+ # Windows command files
6
+ *.bat text eol=crlf
7
+ *.cmd text eol=crlf
8
+
9
+ # Binary assets (prevent Git diffing and corruption)
10
+ *.png binary
11
+ *.jpg binary
12
+ *.jpeg binary
13
+ *.gif binary
14
+ *.webp binary
15
+ *.ico binary
16
+ *.icns binary
17
+ *.svg binary
18
+ *.dmg binary
19
+ *.exe binary
20
+ *.dll binary
21
+ *.so binary
22
+ *.dylib binary
23
+ *.keras binary
24
+ *.tflite binary
25
+ *.pkl binary
26
+ *.tar.gz binary
27
+ *.zip binary
28
+
29
+ # Generated lockfiles (minimize diff noise in reviews)
30
+ uv.lock linguist-generated -diff
31
+
@@ -0,0 +1,9 @@
1
+ # CODEOWNERS
2
+ #
3
+ # Every file in this repository is owned by the maintainer.
4
+ # Pull requests require review before merging.
5
+ #
6
+ # Format: <pattern> <owner>
7
+ # Docs: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
8
+
9
+ * @HoujouSxnnyside
@@ -0,0 +1 @@
1
+ patreon: SxnnysideProject
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: Bug Report
3
+ about: Something isn't working as expected
4
+ title: "fix: "
5
+ labels: bug
6
+ assignees: ""
7
+ ---
8
+
9
+ ## What happened?
10
+
11
+ <!-- What did you expect? What actually happened? -->
12
+
13
+ ## Steps to reproduce
14
+
15
+ 1.
16
+ 2.
17
+ 3.
18
+
19
+ ## Environment
20
+
21
+ - OS:
22
+ - TensorSuggestLite version:
23
+ - Runtime: Python 3.11
24
+
25
+ ## Additional context
26
+
27
+ <!-- Logs, screenshots, or anything else that helps. Delete if not applicable. -->
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: Feature Request
3
+ about: A proposal for new functionality or an improvement
4
+ title: "feat: "
5
+ labels: enhancement
6
+ assignees: ""
7
+ ---
8
+
9
+ ## What are you proposing?
10
+
11
+ <!-- Describe the feature. One paragraph is enough to start. -->
12
+
13
+ ## Why does this belong in TensorSuggestLite?
14
+
15
+ <!-- How does it fit the project's scope and philosophy?
16
+ If it's a rough idea that needs more thought, say so — that's fine. -->
17
+
18
+ ## Possible implementation
19
+
20
+ <!-- Optional. If you have a direction in mind, sketch it here.
21
+ Delete if you don't. -->
22
+
23
+ ## Alternatives considered
24
+
25
+ <!-- Optional. Other approaches you ruled out and why. Delete if not applicable. -->
@@ -0,0 +1,40 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ open-pull-requests-limit: 3
8
+ commit-message:
9
+ prefix: "chore(deps)"
10
+ groups:
11
+ actions:
12
+ patterns: ["*"]
13
+
14
+ - package-ecosystem: uv
15
+ directory: /
16
+ schedule:
17
+ interval: weekly
18
+ open-pull-requests-limit: 3
19
+ commit-message:
20
+ prefix: "chore(deps)"
21
+ groups:
22
+ minor-and-patch:
23
+ update-types: ["minor", "patch"]
24
+ major:
25
+ update-types: ["major"]
26
+ security:
27
+ applies-to: security-updates
28
+ patterns: ["*"]
29
+
30
+ - package-ecosystem: pre-commit
31
+ directory: /
32
+ schedule:
33
+ interval: weekly
34
+ open-pull-requests-limit: 3
35
+ commit-message:
36
+ prefix: "chore(deps)"
37
+ groups:
38
+ pre-commit-hooks:
39
+ patterns: ["*"]
40
+
@@ -0,0 +1,25 @@
1
+ ## What does this PR do?
2
+
3
+ <!-- One or two sentences. What changed and why. -->
4
+
5
+ ## Type of change
6
+
7
+ - [ ] `feat` — new functionality
8
+ - [ ] `fix` — bug fix
9
+ - [ ] `refactor` — code restructure, no behavior change
10
+ - [ ] `docs` — documentation only
11
+ - [ ] `chore` — build, tooling, dependencies
12
+ - [ ] `perf` — performance improvement
13
+ - [ ] `style` — formatting, whitespace
14
+ - [ ] `test` — adding or updating tests
15
+
16
+ ## Checklist
17
+
18
+ - [ ] Builds without errors
19
+ - [ ] `CHANGELOG.md` updated under `[Unreleased]`
20
+ - [ ] Commits follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
21
+ - [ ] Tests added or updated where applicable
22
+
23
+ ## Related issue
24
+
25
+ <!-- Closes #ISSUE_NUMBER — delete if not applicable -->
@@ -0,0 +1,60 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main, develop]
6
+ pull_request:
7
+ branches: [main, develop]
8
+
9
+ concurrency:
10
+ group: ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
12
+
13
+ jobs:
14
+ check-commits:
15
+ name: Validate Conventional Commits
16
+ runs-on: ubuntu-24.04
17
+ if: github.event_name == 'pull_request'
18
+ steps:
19
+ - name: Checkout repository
20
+ uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
21
+ with:
22
+ fetch-depth: 0
23
+
24
+ - name: Validate PR commit range
25
+ run: |
26
+ scripts/check-commit-range.sh origin/${{ github.base_ref }} HEAD
27
+
28
+ quality-gate:
29
+ name: Quality Gate (${{ matrix.os }})
30
+ runs-on: ${{ matrix.os }}
31
+ strategy:
32
+ fail-fast: false
33
+ matrix:
34
+ os: [ubuntu-24.04, macos-15, windows-2025]
35
+
36
+ steps:
37
+ - name: Checkout code
38
+ uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
39
+
40
+ - name: Setup uv
41
+ uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
42
+ with:
43
+ enable-cache: true
44
+
45
+ - name: Setup just
46
+ uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
47
+ with:
48
+ just-version: "1.40.0"
49
+
50
+ - name: Pin Python
51
+ run: uv python install 3.11
52
+
53
+ - name: Install dependencies
54
+ run: just install
55
+
56
+ - name: Run Quality Gate (format-check, lint, typecheck, test)
57
+ run: just check
58
+
59
+ - name: Build Package Artifacts
60
+ run: just build
@@ -0,0 +1,247 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v[0-9]+.[0-9]+.[0-9]+*"
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: write
11
+
12
+ jobs:
13
+ verify-version:
14
+ name: Verify Tag Matches pyproject.toml
15
+ runs-on: ubuntu-24.04
16
+ steps:
17
+ - name: Checkout code
18
+ uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
19
+
20
+ - name: Verify Version Tag
21
+ shell: bash
22
+ run: |
23
+ if [ "${GITHUB_EVENT_NAME}" = "workflow_dispatch" ]; then
24
+ echo "Triggered via workflow_dispatch; skipping strict tag equality check."
25
+ exit 0
26
+ fi
27
+ TAG_VERSION="${GITHUB_REF#refs/tags/v}"
28
+ MANIFEST_VERSION=$(sed -nE 's/^version *= *"([^"]+)".*/\1/p' pyproject.toml | head -1)
29
+ echo "Release tag version: $TAG_VERSION"
30
+ echo "Manifest version: $MANIFEST_VERSION"
31
+ if [ "$TAG_VERSION" != "$MANIFEST_VERSION" ]; then
32
+ echo "ERROR: Git tag ($TAG_VERSION) does not match pyproject.toml version ($MANIFEST_VERSION)" >&2
33
+ exit 1
34
+ fi
35
+
36
+ build-packages:
37
+ name: Build Wheel & Source Distribution
38
+ needs: [verify-version]
39
+ runs-on: ubuntu-24.04
40
+ steps:
41
+ - name: Checkout code
42
+ uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
43
+ with:
44
+ fetch-depth: 0
45
+
46
+ - name: Setup uv
47
+ uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
48
+ with:
49
+ enable-cache: true
50
+
51
+ - name: Setup just
52
+ uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
53
+ with:
54
+ just-version: "1.40.0"
55
+
56
+ - name: Pin Python
57
+ run: uv python install 3.11
58
+
59
+ - name: Install dependencies
60
+ run: just install
61
+
62
+ - name: Run Quality Verification (Gate)
63
+ run: just check
64
+
65
+ - name: Build Python packages
66
+ run: just build
67
+
68
+ - name: Upload python distribution packages
69
+ uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
70
+ with:
71
+ name: python-dist
72
+ path: dist/*
73
+ retention-days: 1
74
+
75
+ build-bundles:
76
+ name: Build Standalone Bundles (${{ matrix.target }})
77
+ needs: [verify-version]
78
+ runs-on: ${{ matrix.os }}
79
+ strategy:
80
+ fail-fast: false
81
+ matrix:
82
+ include:
83
+ - os: ubuntu-24.04
84
+ target: x86_64-unknown-linux-gnu
85
+ build_gui: true
86
+ - os: ubuntu-24.04-arm
87
+ target: aarch64-unknown-linux-gnu
88
+ build_gui: false
89
+ - os: macos-15
90
+ target: aarch64-apple-darwin
91
+ build_gui: true
92
+ - os: windows-2025
93
+ target: x86_64-pc-windows-msvc
94
+ build_gui: true
95
+
96
+ steps:
97
+ - name: Checkout code
98
+ uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
99
+
100
+ - name: Setup uv
101
+ uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
102
+ with:
103
+ enable-cache: true
104
+
105
+ - name: Setup just
106
+ uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
107
+ with:
108
+ just-version: "1.40.0"
109
+
110
+ - name: Pin Python
111
+ run: uv python install 3.11
112
+
113
+ - name: Install dependencies
114
+ run: just install
115
+
116
+ - name: Build Standalone CLI Binary
117
+ run: just bundle-cli
118
+
119
+ - name: Build Desktop GUI Bundle
120
+ if: matrix.build_gui
121
+ run: just bundle-desktop
122
+
123
+ - name: Package Release Assets (Linux & macOS)
124
+ if: runner.os != 'Windows'
125
+ shell: bash
126
+ run: |
127
+ VERSION="${GITHUB_REF#refs/tags/v}"
128
+ if [ -z "$VERSION" ] || [ "$VERSION" = "$GITHUB_REF" ]; then
129
+ VERSION=$(sed -nE 's/^version *= *"([^"]+)".*/\1/p' pyproject.toml | head -1)
130
+ fi
131
+ TARGET="${{ matrix.target }}"
132
+ mkdir -p release-dist
133
+
134
+ # Package Standalone CLI
135
+ mkdir -p staging-cli
136
+ cp dist/tensorsuggestlite-cli staging-cli/
137
+ cp README.md LICENSE* staging-cli/
138
+ tar -czf "release-dist/tensorsuggestlite-cli-${VERSION}-${TARGET}.tar.gz" -C staging-cli tensorsuggestlite-cli README.md LICENSE*
139
+ rm -rf staging-cli
140
+
141
+ # Package Desktop GUI (if enabled)
142
+ if [ "${{ matrix.build_gui }}" = "true" ]; then
143
+ if [ "${{ matrix.os }}" = "macos-15" ]; then
144
+ just dmg
145
+ cp dist/TensorSuggestLite.dmg "release-dist/tensorsuggestlite-gui-${VERSION}-${TARGET}.dmg"
146
+ else
147
+ mkdir -p staging-gui
148
+ cp -r dist/TensorSuggestLite staging-gui/
149
+ cp README.md LICENSE* staging-gui/
150
+ tar -czf "release-dist/tensorsuggestlite-gui-${VERSION}-${TARGET}.tar.gz" -C staging-gui TensorSuggestLite README.md LICENSE*
151
+ rm -rf staging-gui
152
+ fi
153
+ fi
154
+
155
+ - name: Package Release Assets (Windows)
156
+ if: runner.os == 'Windows'
157
+ shell: bash
158
+ run: |
159
+ VERSION="${GITHUB_REF#refs/tags/v}"
160
+ if [ -z "$VERSION" ] || [ "$VERSION" = "$GITHUB_REF" ]; then
161
+ VERSION=$(sed -nE 's/^version *= *"([^"]+)".*/\1/p' pyproject.toml | head -1)
162
+ fi
163
+ TARGET="${{ matrix.target }}"
164
+ mkdir -p release-dist
165
+
166
+ # Package Standalone CLI (Windows .zip)
167
+ mkdir -p staging-cli
168
+ cp dist/tensorsuggestlite-cli.exe staging-cli/
169
+ cp README.md LICENSE* staging-cli/
170
+ (cd staging-cli && python -m zipfile -c "../release-dist/tensorsuggestlite-cli-${VERSION}-${TARGET}.zip" *)
171
+ rm -rf staging-cli
172
+
173
+ # Package Desktop GUI (Windows .zip)
174
+ if [ "${{ matrix.build_gui }}" = "true" ]; then
175
+ mkdir -p staging-gui
176
+ cp -r dist/TensorSuggestLite staging-gui/
177
+ cp README.md LICENSE* staging-gui/
178
+ (cd staging-gui && python -m zipfile -c "../release-dist/tensorsuggestlite-gui-${VERSION}-${TARGET}.zip" *)
179
+ rm -rf staging-gui
180
+ fi
181
+
182
+ - name: Upload bundle assets
183
+ uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
184
+ with:
185
+ name: bundles-${{ matrix.target }}
186
+ path: release-dist/*
187
+ retention-days: 1
188
+
189
+ publish-pypi:
190
+ name: Publish to PyPI
191
+ needs: [build-packages, build-bundles]
192
+ runs-on: ubuntu-24.04
193
+ if: startsWith(github.ref, 'refs/tags/v')
194
+ environment:
195
+ name: pypi
196
+ url: https://pypi.org/p/tensorsuggestlite
197
+ permissions:
198
+ id-token: write
199
+ steps:
200
+ - name: Download python distribution packages
201
+ uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
202
+ with:
203
+ name: python-dist
204
+ path: dist
205
+
206
+ - name: Setup uv
207
+ uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
208
+
209
+ - name: Publish to PyPI via OIDC / Trusted Publishing
210
+ run: uv publish dist/*
211
+
212
+ publish-release:
213
+ name: Publish GitHub Release
214
+ needs: [build-packages, build-bundles]
215
+ runs-on: ubuntu-24.04
216
+ if: startsWith(github.ref, 'refs/tags/v')
217
+ permissions:
218
+ contents: write
219
+ steps:
220
+ - name: Checkout code
221
+ uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
222
+
223
+ - name: Download all release bundles
224
+ uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
225
+ with:
226
+ path: release-assets
227
+ pattern: bundles-*
228
+ merge-multiple: true
229
+
230
+ - name: Download python distribution packages
231
+ uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
232
+ with:
233
+ name: python-dist
234
+ path: release-assets
235
+
236
+ - name: Generate Checksums (SHA256SUMS)
237
+ run: |
238
+ cd release-assets
239
+ sha256sum * > SHA256SUMS
240
+ cat SHA256SUMS
241
+
242
+ - name: Create GitHub Release with Bundles and Checksums
243
+ uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
244
+ with:
245
+ files: |
246
+ release-assets/*
247
+ generate_release_notes: true
@@ -0,0 +1,60 @@
1
+ # IDE and Editor
2
+ /.idea/
3
+ /.vscode/
4
+ /.qodo/
5
+ *.swp
6
+ *.swo
7
+ *~
8
+
9
+ # Python
10
+ /.venv/
11
+ /.venv_*/
12
+ __pycache__/
13
+ *.py[cod]
14
+ *$py.class
15
+ *.so
16
+ .Python
17
+ pip-log.txt
18
+ pip-delete-this-directory.txt
19
+ .pytest_cache/
20
+ .mypy_cache/
21
+ .coverage
22
+ htmlcov/
23
+ *.egg-info/
24
+ dist-packages/
25
+
26
+ # Build artifacts
27
+ /generated/
28
+ **/generated/
29
+ /.tensorsuggestlite/
30
+ /build/
31
+ /dist/
32
+ *.spec
33
+ !tensorsuggestlite.spec
34
+ !tensorsuggestlite-cli.spec
35
+ *.app
36
+ *.exe
37
+ *.dmg
38
+ *.deb
39
+ *.rpm
40
+
41
+ # macOS
42
+ .DS_Store
43
+ .AppleDouble
44
+ .LSOverride
45
+ ._*
46
+
47
+ # Windows
48
+ Thumbs.db
49
+ ehthumbs.db
50
+ Desktop.ini
51
+
52
+ # Logs
53
+ *.log
54
+
55
+ # Temporary files
56
+ *.tmp
57
+ *.temp
58
+
59
+ # Animoria cache & staged cleanup
60
+ .animoria/
@@ -0,0 +1,27 @@
1
+ default_install_hook_types: [pre-commit, commit-msg]
2
+
3
+ repos:
4
+ - repo: local
5
+ hooks:
6
+ - id: just-check
7
+ name: Full Quality Gate (just check)
8
+ entry: just check
9
+ language: system
10
+ pass_filenames: false
11
+ stages: [pre-commit]
12
+
13
+ - id: conventional-commit-msg
14
+ name: Conventional Commits validator
15
+ entry: scripts/check-commit-message.sh
16
+ language: script
17
+ stages: [commit-msg]
18
+
19
+ - repo: https://github.com/pre-commit/pre-commit-hooks
20
+ rev: v4.6.0
21
+ hooks:
22
+ - id: check-added-large-files
23
+ - id: check-yaml
24
+ - id: check-toml
25
+ - id: check-json
26
+ - id: end-of-file-fixer
27
+ - id: trailing-whitespace
@@ -0,0 +1 @@
1
+ 3.11
@@ -0,0 +1,68 @@
1
+ # Changelog
2
+
3
+ All notable changes to **TensorSuggestLite** are documented here.
4
+
5
+ This project follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
6
+ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ---
9
+
10
+ ## [Unreleased]
11
+
12
+ ---
13
+
14
+ ## [2.1.0] — 2026-11-18
15
+
16
+ ### Added
17
+
18
+ - **Ultra-Flexible Skeleton Dataset Parser**: Dynamic schema parser recognizing custom keywords (`in`, `out`, `alt`, `prompt`, `label`), inverted lookup mappings (`{"text": "CATEGORY"}`), direct/nested lists, and container dictionaries without rigid schemas.
19
+ - **Configurable TFLite Quantization**: Configurable optimization targets (`dynamic`, `float16`, `none`) across `ExportTFLiteUseCase`, CLI (`--quantize`), and GUI combo dropdown.
20
+ - **High-Throughput Batch Inference**: Vectorized batch prediction in `KerasPredictor` and `TFLitePredictor`, supporting file inputs (`--file`) and stdin streaming (`-`) in CLI, plus multi-line input in GUI Playground.
21
+ - **Extended Training & Evaluation Metrics**: Per-class precision, recall, f1-score, and support metrics alongside macro/weighted averages, training duration in seconds, parameter count, and vocabulary statistics recorded in `model_metadata.json` and inspectable via `tensorsuggestlite history`.
22
+ - **Dear PyGui 2.3.1 Desktop Framework**: Migrated entire GUI from PySide6/PyQt6 to lightweight Dear PyGui with Zero Qt runtime dependencies.
23
+ - **Native OS Dialog Bridge (`NativeDialogBridge`)**: Out-of-process native system file dialogs for macOS (`osascript`) and Windows (`comdlg32.dll`) providing fast file and directory selection.
24
+ - **Dynamic Viewport Responsiveness**: Elastic layout with zero outer scrollbars where the console window smoothly absorbs vertical viewport expansions while keeping all controls, status labels, and progress bars visible.
25
+
26
+ ### Changed
27
+
28
+ - Adopted split-license model: MIT for Core Engine & CLI (`src/tensorsuggestlite/{core,cli,ml,parsers,use_cases}`), MPL-2.0 for Graphical User Interface (`src/tensorsuggestlite/ui`).
29
+ - Replaced misleading drag-and-drop copy with direct native OS dialog invocation.
30
+ - Vertically centered and pixel-aligned the App Bar theme toggle button with a dedicated translucent hover theme.
31
+ - Increased hyperparameter sliders and controls to 100% column width for balanced UX hierarchy.
32
+
33
+ ### Removed
34
+
35
+ - Permanently retired `PyQt6` and `PySide6` dependencies, reducing distribution bundle sizes and eliminating Qt DLL/framework overhead.
36
+ - Removed deprecated `.svg` assets in favor of sharp 256x256 `.png` textures.
37
+
38
+ ---
39
+
40
+ ## [2.0.0] — 2026-09-11
41
+
42
+ ### Added
43
+
44
+ - Clean Architecture refactoring under `src/tensorsuggestlite` separating domain entities, parsers, machine learning, use cases, and presentation layers.
45
+ - Headless CLI with subcommands: `inspect`, `train`, `convert`, `predict`, and `history`.
46
+ - Interactive live inference Playground in GUI and CLI with cross-runtime validation (`--compare`) measuring confidence delta and parity between `.keras` and `.tflite`.
47
+ - Dataset profiling detecting class imbalance, duplicate sentences, and contradictory labeling.
48
+ - Structured Confusion Matrix calculation and telemetry export in `model_metadata.json`.
49
+ - Zero-TensorFlow lightweight inference runner (`lite_runtime.py` and CLI `--tflite`) with sub-2ms latency.
50
+ - Dual-asset packaging with separate desktop app bundles (`.dmg` on macOS, `.exe` on Windows, Linux executable) and headless CLI binaries (`tensorsuggestlite-cli`).
51
+ - Multi-platform release automation matrix in `.github/workflows/release.yml`.
52
+ - Optional `[gui]` packaging extra separating the core headless CLI from desktop dependencies.
53
+
54
+ ### Changed
55
+
56
+ - Replaced legacy tooling and `make` with modern task runner (`Justfile`), `uv`, Ruff, Mypy strict mode, and Pytest.
57
+ - Unified configuration parsers across JSON, YAML, and TOML via `BaseConfigParser` and `ParserRegistry`.
58
+ - Optimized macOS UI font resolution using native `.AppleSystemUIFont` and `Menlo` eliminating startup font indexing lag.
59
+
60
+ ### Removed
61
+
62
+ - Deprecated legacy duplicated interpreter folders (`json_interpreter/`, `yaml_interpreter/`, `toml_interpreter/`, root legacy scripts).
63
+ - Removed raw requirements files in favor of `pyproject.toml` and deterministic `uv.lock`.
64
+
65
+ ---
66
+
67
+ [Unreleased]: https://github.com/core-red-project/tensorsuggestlite/compare/v2.0.0...HEAD
68
+ [2.0.0]: https://github.com/core-red-project/tensorsuggestlite/releases/tag/v2.0.0