481202e
chore(deps): bump the all group with 4 updates (#2795)
dependabot[bot] created
481202e
chore(deps): bump the all group with 4 updates (#2795)
dependabot[bot] created
81e4d5a
chore(deps): bump github/codeql-action in the all group (#2794)
dependabot[bot] created
b5c8a6d
chore(legal): @ilgax has signed the CLA
Charm created
f913477
config: remove unused environment variable resolver
The hand-rolled $VARNAME-only resolver (NewEnvironmentVariableResolver) had no production callers. Tests have been switched to the shell resolver, which is what production already uses, and the dead type plus its tests are gone. Co-Authored-By: Charm Crush <crush@charm.land>
Christian Rocha and Charm Crush created
06f4350
docs(skill): document shell expansion in crush-config skill
Adds a Shell Expansion section to the skill that covers the supported syntax, the quiet-unset default, which fields expand (LSP args and env and MCP url included), that extra_body does not expand, the empty-header drop rule, and a short security note. The provider, LSP, and MCP subsections now link to that section instead of suggesting $ENV_VAR is the only option. Co-Authored-By: Charm Crush <crush@charm.land>
Christian Rocha and Charm Crush created
45f7484
docs: update resolver godoc to match lenient default
The godoc on the shell variable resolver still said unset variables
were a hard error. Updated to match the new lenient default and to
point at ${VAR:?message} as the way to require a value.
Co-Authored-By: Charm Crush <crush@charm.land>
Christian Rocha and Charm Crush created
a28aded
test: realign MCP init tests with lenient shell expansion
Several MCP startup tests were written against the old "unset variable is an error" behavior and no longer tripped now that missing variables quietly expand to empty. The fixtures switch to $(false) or an empty URL so the failing and empty paths are still covered, and a couple of new subtests pin the new quiet behavior so it cannot silently regress. Co-Authored-By: Charm Crush <crush@charm.land>
Christian Rocha and Charm Crush created
bcce662
docs: document lenient shell expansion and security model
Updates the README and a handful of struct docs to describe the new
behavior: missing variables expand to empty, ${VAR:?message} is the
way to require a value, empty header values are dropped, extra_body
is a plain JSON passthrough, and crush.json should be treated as
trusted code because any $(...) in it runs at load time with the
user's shell privileges.
Co-Authored-By: Charm Crush <crush@charm.land>
Christian Rocha and Charm Crush created
71aa8d1
test: pin provider skip behavior for api_key and endpoint expansion
Pins down that a provider with a missing or broken api_key is still skipped with a warning, now that unset variables quietly expand to empty instead of erroring. Azure-style api_endpoint is covered the same way. Tests only, no behavior change. Co-Authored-By: Charm Crush <crush@charm.land>
Christian Rocha and Charm Crush created
1f83559
lsp: expand shell variables in args and env
LSP args and env values used to be passed to the language server as raw strings, so "$HOME/go" was sent literally. They now go through the same shell expansion already used elsewhere in the config. If expansion fails, that LSP fails to load with a message that points at the specific arg or env key. Co-Authored-By: Charm Crush <crush@charm.land>
Christian Rocha and Charm Crush created
f23e998
config: fail provider header expansion loudly and drop empty values
Provider extra_headers used to log and keep the raw template when a command inside the header failed. A failing command now stops the provider from loading, with a clear error that names the provider and the header. Headers whose value ends up as an empty string are dropped from the outgoing request, so "OpenAI-Organization": "$OPENAI_ORG_ID" keeps working when the variable is not set. MCP headers follow the same rule. Co-Authored-By: Charm Crush <crush@charm.land>
Christian Rocha and Charm Crush created
c3cf962
test: update config tests to match lenient expansion
Updates tests that assumed missing variables in config values were
an error. They now expect an empty string, matching the new default.
New tests cover ${VAR:?message}, which is the way to still fail
loudly when a variable is required.
Co-Authored-By: Charm Crush <crush@charm.land>
Christian Rocha and Charm Crush created
abacef9
shell: switch config value expansion to lenient by default
Missing env vars in crush.json used to fail loudly. They now quietly
expand to an empty string, the same as bash. If you want the old
strict behavior for a specific value, write it as ${VAR:?message}
and Crush will still complain when the variable is not set.
Co-Authored-By: Charm Crush <crush@charm.land>
Christian Rocha and Charm Crush created
4be35b8
chore(legal): @somjik-api has signed the CLA
Charm created
4068422
test: use forward slashes in shell commands for Windows compat
Windows t.TempDir() returns C:\... paths whose backslashes get
consumed as escapes when injected into $(cat ...). Convert to
forward slashes so the embedded shell resolves the path on every OS.
Also accept the Windows coreutils error shape ("cannot find") in
addition to POSIX "exit status" when asserting that inner diagnostic
detail is surfaced — mvdan/sh runs coreutils in-process on Windows
so there is no subprocess exit status to report.
Christian Rocha created
d745ff5
docs(README): add note about shell expansion in MCP config
Christian Rocha created
240e5c2
test: cover shell expansion in MCP config resolution
Christian Rocha created
f716457
feat(config): resolve MCP url through shell expansion
m.URL now runs through the same resolver as command, args, env, and
headers so $VAR / $(cmd) work in http and sse endpoints. The empty-url
guard runs after resolution so ${X:-} still fails cleanly, and failing
expansions surface via the existing StateError path.
Christian Rocha created
dbd40d8
feat(config): resolve MCP args and thread resolver through env/headers/args
Adds MCPConfig.ResolvedArgs and changes ResolvedEnv/ResolvedHeaders to take a VariableResolver, so createTransport threads one resolver through command, args, env, and headers. Client mode (IdentityResolver) now keeps all four fields literal for server-side expansion; server mode expands uniformly via the shell resolver.
Christian Rocha created
c135266
refactor(config): make Resolved{Env,Headers} pure and error-returning
Christian Rocha created
5dc30cf
refactor(config): resolve shell vars via shell.ExpandValue
Rewires shellVariableResolver onto the embedded shell interpreter used by the bash tool and hooks, replacing the hand-rolled parser. Adds a bounded, scrubbed sanitizeResolveError so resolution failures surface safely without leaking oversized or non-printable inner stderr.
Christian Rocha created
711d3a3
feat(shell): add ExpandValue for config value shell expansion
Groundwork for replacing the hand-rolled parser in internal/config/resolve.go. Introduces shell.ExpandValue, a single-value expansion entry point built on mvdan.cc/sh/v3's syntax + expand packages. Runs with nounset on and globbing off, preserves internal whitespace, strips only trailing newlines from command substitution output, and bounds/scrubs inner stderr surfaced in errors. Shares the builtin/block/coreutils handler chain with NewShell but uses the caller-provided env verbatim.
Christian Rocha created
56b192e
v0.65.2
Andrey Nering created
63e03ff
v0.65.1
Andrey Nering created
0f3a6cd
ci: remove snapcraft token
See: https://github.com/charmbracelet/meta/commit/86917ec06aa42153f5e48cb2570dfc5efd1e389d
Andrey Nering created
77d86b8
v0.65.0
Andrey Nering created
ce314b8
feat(ui): add hypercredit readout to small top header
Christian Rocha created
d5b5a9e
chore(ui): hypercrush small type treatment
Christian Rocha created
a93277f
chore(legal): @pragneshbagary has signed the CLA
Charm created
0a9d0b0
chore(legal): @mkaaad has signed the CLA
Charm created
bae9299
chore(legal): @SAY-5 has signed the CLA
Charm created
98f9a17
chore: auto-update files
Charm created
a14feb3
feat: launch hyper beta (#2768)
No need to set `HYPERCRUSH=1` anymore.
Andrey Nering created
6ce4fbc
feat(hyper): show remaining hypercredits in the sidebar (#2766)
Andrey Nering created
5d8f924
test: re-record test fixtures
Andrey Nering created
f36f65b
chore: update `view` tool limit to 200KB
The model was enable to edit `internal/ui/model/ui.go` for me, because it has ~ 108KB and the limit was 100KB. (Without being able to read, the model also can't update it). We're keeping the `fetch` tool limit to 100KB.
Andrey Nering created
c7368b7
fix: fix thinking on/off toggle for certain openai-compat providers
Andrey Nering created
59e9233
refactor(hyper): simplify by removing old code
Andrey Nering created
54a57fd
chore(legal): @carlosgrillet has signed the CLA
Charm created
eaf1cd7
chore(ui): change wording: rewrote input to rewrote output (#2742)
Christian Rocha created
35ce257
chore(legal): @lloydzhou has signed the CLA
Charm created
c9afdb1
chore(legal): @vorticalbox has signed the CLA
Charm created
efbf6bf
v0.64.0
Andrey Nering created
bc48334
chore(deps): update fantasy and catwalk
Andrey Nering created
aeb529c
chore(legal): @georgeglarson has signed the CLA
Charm created
86bb805
fix(tools/job_kill): use longer job_kill desc to improve reliability (#2747)
Christian Rocha created
4d16e96
fix(app): replace single events channel with pubsub.Broker for fan-out (#2663)
Fixes the SSE multi-consumer bug where multiple clients sharing the same workspace received only a fraction of events (competing-consumer semantics on a plain channel). Each caller to Events()/SubscribeEvents() now gets its own dedicated channel via Broker.Subscribe(ctx). 💘 Generated with Crush Assisted-by: AWS Claude Sonnet 4.6 via Crush <crush@charm.land>
Tai Groot created
c84ca2d
refactor(hooks): move matcher compilation into the runner
The runner now compiles its own matchers, so a config round-trip can't silently strip them. Hooks with an invalid matcher are dropped with a warning instead of quietly matching everything.
Christian Rocha created
38a846d
fix(hooks): recompile matchers after config reload
A hook with a matcher like "^bash$" was firing on every tool call after any config write, because the compiled regex was dropped when the config reloaded. Recompile on reload so filtering keeps working.
Christian Rocha created
b07664e
chore: auto-update files
Charm created