Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,22 @@ truffile list apps
truffile delete
truffile models
truffile chat
truffile chat --no-repl "hello"
truffile chat --no-default-tools
truffile proxy --host 127.0.0.1 --port 8080
```

In `truffile chat`, runtime controls are slash commands (not launch flags):

- `/help` for all chat commands
- `/config` to show current chat config
- `/reasoning on|off`
- `/stream on|off`
- `/json on|off`
- `/tools on|off`
- `/max_tokens <int>`, `/temperature <float|off>`, `/top_p <float|off>`, `/max_rounds <int>`
- `/models` to switch model
- `/system <text|clear>`
- `/mcp connect <http(s)://...>`, `/mcp tools`, `/mcp status`, `/mcp disconnect`

## Inference Interfaces

Direct IF2:
Expand Down
21 changes: 15 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
[build-system]
requires = ["setuptools>=61.0", "wheel", "setuptools_scm>=8"]
requires = [
"setuptools>=70",
"setuptools_scm>=8",
"wheel",
"grpcio-tools==1.76.0",
"protobuf>=6.30.0",
"googleapis-common-protos>=1.63.2",
]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
Expand All @@ -13,26 +20,28 @@ name = "truffile"
dynamic = ["version"]
description = "truffile the TruffleOS SDK - Connect and deploy apps to Truffle devices"
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.12"
license = {text = "MIT"}

dependencies = [
"grpcio>=1.60.0",
"protobuf>=4.25.0",
"protobuf>=6.30.0",
"googleapis-common-protos>=1.63.2",
"grpcio==1.76.0",
"httpx>=0.27.0",
"pyyaml>=6.0",
"platformdirs>=3.10.0",
"websockets>=12.0",
"zeroconf>=0.131.0",
"mcp==1.26.0",
]

[project.scripts]
truffile = "truffile.cli:main"

[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"grpcio-tools>=1.60.0",
"pytest>=9.0.2",
"grpcio-tools==1.76.0",
]

[tool.setuptools.packages.find]
Expand Down
5 changes: 5 additions & 0 deletions truffile/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import os

# Keep gRPC from enabling fork support in this CLI process.
os.environ["GRPC_ENABLE_FORK_SUPPORT"] = "false"

try:
from ._version import __version__
except ImportError:
Expand Down
6 changes: 3 additions & 3 deletions truffile/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
commit_id: COMMIT_ID
__commit_id__: COMMIT_ID

__version__ = version = '0.1.15.dev11'
__version_tuple__ = version_tuple = (0, 1, 15, 'dev11')
__version__ = version = '0.1.15.dev13'
__version_tuple__ = version_tuple = (0, 1, 15, 'dev13')

__commit_id__ = commit_id = 'g708f695c8'
__commit_id__ = commit_id = 'g73970587d'
Loading