[package]
edition = "2024"
name = "tokf"
version = "0.2.18"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Config-driven CLI tool that compresses command output before it reaches an LLM context"
homepage = "https://tokf.net"
readme = false
keywords = [
"llm",
"cli",
"tokens",
"ai",
"context-window",
]
categories = [
"command-line-utilities",
"development-tools",
]
license = "MIT"
repository = "https://github.com/mpecan/tokf"
resolver = "2"
[features]
stdlib-publish = []
test-keyring = []
[lib]
name = "tokf"
path = "src/lib.rs"
[[bin]]
name = "tokf"
path = "src/main.rs"
[[test]]
name = "auth_client"
path = "tests/auth_client.rs"
[[test]]
name = "auth_credentials"
path = "tests/auth_credentials.rs"
[[test]]
name = "cli_auth"
path = "tests/cli_auth.rs"
[[test]]
name = "cli_baseline"
path = "tests/cli_baseline.rs"
[[test]]
name = "cli_cache"
path = "tests/cli_cache.rs"
[[test]]
name = "cli_history"
path = "tests/cli_history.rs"
[[test]]
name = "cli_hook"
path = "tests/cli_hook.rs"
[[test]]
name = "cli_info"
path = "tests/cli_info.rs"
[[test]]
name = "cli_integration"
path = "tests/cli_integration.rs"
[[test]]
name = "cli_publish"
path = "tests/cli_publish.rs"
[[test]]
name = "cli_remote"
path = "tests/cli_remote.rs"
[[test]]
name = "cli_rewrite"
path = "tests/cli_rewrite.rs"
[[test]]
name = "cli_shell"
path = "tests/cli_shell.rs"
[[test]]
name = "cli_tracking"
path = "tests/cli_tracking.rs"
[[test]]
name = "cli_verify_scope"
path = "tests/cli_verify_scope.rs"
[[test]]
name = "config_resolution"
path = "tests/config_resolution.rs"
[[test]]
name = "engine_gaps"
path = "tests/engine_gaps.rs"
[[test]]
name = "filter_lua"
path = "tests/filter_lua.rs"
[[test]]
name = "remote_client"
path = "tests/remote_client.rs"
[[test]]
name = "remote_machine"
path = "tests/remote_machine.rs"
[[test]]
name = "verify_cmd"
path = "tests/verify_cmd.rs"
[dependencies.anyhow]
version = "1"
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[dependencies.dirs]
version = "6"
[dependencies.gethostname]
version = "1"
[dependencies.include_dir]
version = "0.7"
features = ["glob"]
[dependencies.keyring]
version = "3"
features = [
"apple-native",
"windows-native",
"linux-native",
]
[dependencies.open]
version = "5"
[dependencies.regex]
version = "1"
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
"blocking",
"multipart",
]
default-features = false
[dependencies.rkyv]
version = "0.8"
features = [
"bytecheck",
"unaligned",
]
[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tokf-common]
version = "0.2.18"
features = ["validation"]
[dependencies.tokf-filter]
version = "0.2.18"
[dependencies.toml]
version = "1.0"
[dependencies.uuid]
version = "1"
features = ["v4"]
[dev-dependencies.filetime]
version = "0.2"
[dev-dependencies.mockito]
version = "1.7.2"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tempfile]
version = "3"
[lints.clippy]
expect_used = "deny"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
todo = "deny"
unwrap_used = "deny"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1