文件最后提交记录最后更新时间
documentation 1 个月前
refacto(truncations): Set global CAPS for truncation Following tee and hint refacto Add global CAP constant to be inherited , to enable easier global configuration later 16 天前
Merge branch 'develop' into fix/tee-hint-trunc-quality15 天前
fix(curl): gate force_tee_hint, extend JSON heuristic, avoid full-body alloc Follow-up to the initial #1536 fix after a deeper review pass. - force_tee_hint() is no longer called on the passthrough path. Previously every non-TTY pipe invocation (curl | jq, curl | python -m json.tool — the exact scenarios this PR fixes) was still writing a tee log file as a side effect, which is wasteful: the tee file's purpose is to give the LLM a recovery path when output is truncated, and we are no longer truncating in those cases. - looks_like_json now also matches bare top-level JSON strings (e.g. /api/token endpoints returning a long quoted token). Previously a >500-byte bare JSON string on a TTY would still get truncated mid-stream and produce invalid output. - FilterResult.content is now Cow<'_, str> so the passthrough path no longer copies the whole body. For multi-MB curl responses piped through rtk this eliminates a full-size allocation. - Exit code from curl is propagated via Ok(result.exit_code) instead of the previously hardcoded Ok(0). On the success path the value is 0 anyway, but the inconsistency with the early-exit branch above made the intent unclear. Tests: 9 -> 11 (added bare-JSON-string passthrough and a Cow::Borrowed assertion verifying the passthrough paths don't allocate). cargo test --all: 1693 passed, 6 ignored. Verified end-to-end against jsonplaceholder.typicode.com/posts (~27 KB, 100 entries, parseable) and a randomly-generated 100-entry / 52 KB / 1450-line JSON served from a local http.server (rtk output byte-identical to source modulo the trailing newline added by println!). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> 1 个月前
fix(automod): add auto discovery for cmds 2 个月前
refacto(truncations): Set global CAPS for truncation Following tee and hint refacto Add global CAP constant to be inherited , to enable easier global configuration later 16 天前
feat(stream): standardize command execution with exec_capture() 1 个月前
README.md

Cloud and Infrastructure

Part of src/cmds/ — see also docs/contributing/TECHNICAL.md

Specifics

  • aws_cmd.rs — 25 specialized filters covering STS, S3, EC2, ECS, RDS, CloudFormation, CloudWatch Logs, Lambda, IAM, DynamoDB, EKS, SQS, Secrets Manager. Forces --output json for structured parsing, uses force_tee_hint() for truncation recovery, strips Lambda secrets. Shared runner run_aws_filtered() handles boilerplate for JSON-based filters; text-based filters (S3 ls, S3 sync/cp) have dedicated runners
  • container.rs handles both Docker and Kubernetes; DockerCommands and KubectlCommands sub-enums in main.rs route to container::run() -- uses passthrough for unknown subcommands
  • curl_cmd.rs truncates long responses, saves full output to file for recovery
  • wget_cmd.rs wraps wget with output filtering
  • psql_cmd.rs filters PostgreSQL query output