A tool call rendered as a label line plus a ```text fence. Telegram draws a fenced block as a full code widget (language header bar, copy button, panel), and the block parser inserts a spacer paragraph before every block, so one call cost four rendered elements. Three calls filled the screen to show three word counts. Every toolPreview path already summarises to a single line, so the fence was never wrapping more than one. Drop it and put the preview on the header line. Tool lines now join with a hard break rather than a bare newline: a soft break would space-join them into one run-on paragraph, and a blank line would put the spacer back. Three calls are now three consecutive blocks. Two hardcoded values go with it. The status word is printed only when the outcome is not success, since every line otherwise read "done" and distinguished nothing. The icon is no longer a literal in the renderer: each builtin declares its own on tools.Tool (not on Schema, which is the model's contract), the provider carries it into ToolEntry, and the turn snapshots the registry's icons alongside its tool set. A tool that declares none renders without one rather than borrowing a generic wrench. Carries a dependency upgrade (go.mod, go.sum, tools/go.mod, tools/go.sum).
91 lines
3.8 KiB
AMPL
91 lines
3.8 KiB
AMPL
module github.com/samcharles93/archie-core
|
|
|
|
go 1.27.0
|
|
|
|
require (
|
|
cel.dev/expr v0.25.3 // indirect
|
|
github.com/42wim/httpsig v1.2.4 // indirect
|
|
github.com/Microsoft/go-winio v0.6.2 // indirect
|
|
github.com/ProtonMail/go-crypto v1.4.1 // indirect
|
|
github.com/antithesishq/antithesis-sdk-go v0.8.0 // indirect
|
|
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/cloudflare/circl v1.6.5 // indirect
|
|
github.com/containerd/errdefs v1.0.0 // indirect
|
|
github.com/containerd/errdefs/pkg v0.3.0 // indirect
|
|
github.com/davidmz/go-pageant v1.0.2 // indirect
|
|
github.com/distribution/reference v0.6.0 // indirect
|
|
github.com/docker/go-connections v0.8.1 // indirect
|
|
github.com/docker/go-units v0.5.0 // indirect
|
|
github.com/dustin/go-humanize v1.1.0 // indirect
|
|
github.com/emirpasic/gods v1.18.1 // indirect
|
|
github.com/felixge/httpsnoop v1.1.0 // indirect
|
|
github.com/go-fed/httpsig v1.1.0 // indirect
|
|
github.com/go-git/gcfg/v2 v2.0.2 // indirect
|
|
github.com/go-logr/logr v1.4.4 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/google/go-querystring v1.2.0 // indirect
|
|
github.com/google/go-tpm v0.9.8 // indirect
|
|
github.com/hashicorp/go-version v1.9.0 // indirect
|
|
github.com/kevinburke/ssh_config v1.6.0 // indirect
|
|
github.com/klauspost/compress v1.20.0 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.4.0 // indirect
|
|
github.com/mattn/go-isatty v0.0.24 // indirect
|
|
github.com/minio/highwayhash v1.0.4 // indirect
|
|
github.com/moby/docker-image-spec v1.3.1 // indirect
|
|
github.com/nats-io/jwt/v2 v2.8.2 // indirect
|
|
github.com/nats-io/nkeys v0.4.16 // indirect
|
|
github.com/nats-io/nuid v1.0.1 // indirect
|
|
github.com/ncruces/go-strftime v1.0.0 // indirect
|
|
github.com/opencontainers/go-digest v1.0.0 // indirect
|
|
github.com/opencontainers/image-spec v1.1.1 // indirect
|
|
github.com/pjbgf/sha1cd v0.6.0 // indirect
|
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
github.com/sergi/go-diff v1.4.0 // indirect
|
|
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.71.0 // indirect
|
|
go.opentelemetry.io/otel v1.46.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.46.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.46.0 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.5 // indirect
|
|
golang.org/x/crypto v0.57.0 // indirect
|
|
golang.org/x/exp v0.0.0-20260908205506-85c1c2202aba // indirect
|
|
golang.org/x/sync v0.23.0 // indirect
|
|
golang.org/x/sys v0.48.0 // indirect
|
|
golang.org/x/text v0.42.0 // indirect
|
|
golang.org/x/time v0.16.0 // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20260921155816-b14227669459 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20260921155816-b14227669459 // indirect
|
|
modernc.org/libc v1.77.1 // indirect
|
|
modernc.org/mathutil v1.7.1 // indirect
|
|
modernc.org/memory v1.12.1 // indirect
|
|
)
|
|
|
|
require (
|
|
cel.dev/cel-go v0.32.0
|
|
code.gitea.io/sdk/gitea v0.25.1
|
|
github.com/BurntSushi/toml v1.6.0
|
|
github.com/coreos/go-oidc/v3 v3.21.0
|
|
github.com/go-git/go-billy/v6 v6.0.0-alpha.2
|
|
github.com/go-git/go-git/v6 v6.0.0-alpha.5
|
|
github.com/go-jose/go-jose/v4 v4.1.5
|
|
github.com/go-telegram/bot v1.27.0
|
|
github.com/google/codesearch v1.3.0-rc.1
|
|
github.com/google/go-github/v78 v78.0.0
|
|
github.com/google/uuid v1.6.0
|
|
github.com/moby/moby/api v1.56.0
|
|
github.com/moby/moby/client v0.6.0
|
|
github.com/nats-io/nats-server/v2 v2.15.0
|
|
github.com/nats-io/nats.go v1.54.0
|
|
github.com/samcharles93/ai-sdk v0.1.39
|
|
github.com/traefik/yaegi v0.16.1
|
|
golang.org/x/net v0.59.0
|
|
golang.org/x/oauth2 v0.37.0
|
|
golang.org/x/term v0.46.0
|
|
google.golang.org/grpc v1.85.0-dev.0.20260825072537-93e31b48545e
|
|
google.golang.org/protobuf v1.36.12
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
modernc.org/sqlite v1.59.0
|
|
)
|