chore: remove legacy terminology and dead code
- Reword docs and comments to drop vague "legacy" qualifiers where they no longer describe deprecation status - Remove unused code: RecentEvents, MessageEvent.ToLegacy, index setState, stderr redaction tool, telegramOnlyCommands - Delete or comment out tests covering removed or superseded behavior
This commit is contained in:
1 parent
e10cbbc92c
commit
308666b410
35 files changed
+664
-1399
No files matched your search
@@ -1,10 +1,16 @@
|
||||
// Command archie-agent is a long-running NATS-connected worker. It answers
|
||||
// two request shapes: single-stage archie.agent.> requests over the
|
||||
// ARCHIE_TASKS JetStream stream (the legacy per-stage protocol), and full
|
||||
// task handoffs on archie.taskrun.> (core NATS, queue-grouped) -- where it
|
||||
// runs workflow.Route/workflow.Run itself, proxying Store/Forge/worktree
|
||||
// operations back to archied over NATS instead of holding those
|
||||
// credentials directly.
|
||||
// two independent request shapes that serve different deployment modes:
|
||||
//
|
||||
// 1. Single-stage requests on archie.agent.> over the ARCHIE_TASKS
|
||||
// JetStream stream -- used when agent.mode is "nats" without
|
||||
// container sandboxing. One stage is dispatched per message, and the
|
||||
// agent replies on the caller's inbox.
|
||||
//
|
||||
// 2. Full-task handoffs on archie.taskrun.> (core NATS, queue-grouped)
|
||||
// -- used with Docker container sandboxing. The agent runs
|
||||
// workflow.Route/workflow.Run itself, proxying Store/Forge/worktree
|
||||
// operations back to archied over NATS instead of holding those
|
||||
// credentials directly.
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
+1
-1
@@ -628,7 +628,7 @@ func run() int {
|
||||
// possibly its own forge type/host) and its own worktree manager (a
|
||||
// distinct WorkDir so concurrent identities never collide on the same
|
||||
// clone). When cfg.Identities is empty, Daemon.Identities stays nil
|
||||
// and Run() takes the legacy single-identity path unchanged.
|
||||
// and Run() takes the single-identity path unchanged.
|
||||
var identityRunners []*daemon.IdentityRunner
|
||||
for _, idCfg := range cfg.Identities {
|
||||
// Same reasoning as the primary forge: one identity whose credential is
|
||||
|
||||
@@ -94,7 +94,7 @@ func setupTelegramGateway(ctx context.Context, s telegramSetup) (start func(), o
|
||||
if sessionStore == nil {
|
||||
sessionStore = makeTelegramSessionStore(s)
|
||||
}
|
||||
router := buildTelegramRouter(ctx, tg, s, sessionStore)
|
||||
router := buildTelegramRouter(tg, s, sessionStore)
|
||||
return func() {
|
||||
go func() {
|
||||
if err := tg.Start(ctx, router); err != nil && ctx.Err() == nil {
|
||||
@@ -154,7 +154,7 @@ func makeTelegramSessionStore(s telegramSetup) gateway.SessionStore {
|
||||
return gateway.NewSessionStoreMemory(s.Cfg.BotUser)
|
||||
}
|
||||
|
||||
func buildTelegramRouter(ctx context.Context, tg *telegram.Gateway, s telegramSetup, sessionStore gateway.SessionStore) *gateway.Router {
|
||||
func buildTelegramRouter(tg *telegram.Gateway, s telegramSetup, sessionStore gateway.SessionStore) *gateway.Router {
|
||||
// The router is built before the responder so the responder can resolve
|
||||
// sessions through it. Both orderings work at runtime -- the responder is
|
||||
// a closure -- but this way the dependency is visible rather than
|
||||
|
||||
Reference in new issue
Block a user