MCPcopy Create free account

hub / github.com/AgentWrapper/agent-orchestrator / functions

Functions4,386 in github.com/AgentWrapper/agent-orchestrator

↓ 216 callersMethodIs
Is lets errors.Is match a *RateLimitError against ErrRateLimited.
backend/internal/adapters/scm/github/client.go:57
↓ 137 callersMethodClose
(reason string)
backend/internal/terminal/manager.go:29
↓ 120 callersMethodAdd
Add registers a new project from a git repository path.
backend/internal/service/project/service.go:29
↓ 114 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/renderer/lib/utils.ts:4
↓ 112 callersMethodError
()
backend/internal/cli/root.go:43
↓ 111 callersFunctionsetConfigEnv
(t *testing.T)
backend/internal/cli/root_test.go:299
↓ 94 callersFunctiondoRequest
(t *testing.T, srv *httptest.Server, method, path, body string)
backend/internal/httpd/controllers/projects_test.go:448
↓ 93 callersMethodClose
()
backend/internal/adapters/runtime/conpty/host.go:25
↓ 93 callersFunctionexecuteCLI
(t *testing.T, deps Deps, args ...string)
backend/internal/cli/root_test.go:314
↓ 80 callersFunctionprKey
(repo ports.SCMRepo, number int)
backend/internal/observe/scm/observer.go:1161
↓ 71 callersMethodpush
(b []byte)
backend/internal/terminal/fakes_test.go:73
↓ 66 callersMethodRun
(ctx context.Context, env []string, name string, args ...string)
backend/internal/adapters/runtime/tmux/tmux.go:55
↓ 63 callersFunctionstr
(v any)
backend/internal/adapters/scm/github/provider.go:676
↓ 61 callersFunctionwriteRunFileFor
writeRunFileFor points the CLI's run-file at srv so postJSON dials the test server. It mirrors the run-file convention the other CLI tests use.
backend/internal/cli/send_test.go:25
↓ 58 callersMethodCleanup
(ctx context.Context, project domain.ProjectID)
backend/internal/service/session/service.go:49
↓ 57 callersMethodGet
(ctx context.Context, id domain.SessionID)
backend/internal/httpd/controllers/sessions.go:38
↓ 54 callersMethodCreateSession
(ctx context.Context, rec domain.SessionRecord)
backend/internal/session_manager/manager.go:80
↓ 54 callersMethodIsZero
IsZero reports whether the config carries no settings, so storage can persist SQL NULL and resolution can skip an empty config.
backend/internal/domain/agentconfig.go:35
↓ 52 callersMethodString
String renders the envelope for the user: "<message> (<code>) [request <id>]", omitting whichever parts the daemon left empty.
backend/internal/cli/client.go:32
↓ 52 callersMethodon
on registers a handler for one METHOD + path tuple. Path is taken verbatim (no query string).
backend/internal/adapters/scm/github/provider_test.go:51
↓ 49 callersMethodRun
(ctx context.Context)
backend/internal/service/importer/importer.go:29
↓ 42 callersFunctionassertErrorCode
(t *testing.T, body []byte, status, wantStatus int, wantCode string)
backend/internal/httpd/controllers/projects_test.go:554
↓ 42 callersFunctionsampleRecord
(project string)
backend/internal/storage/sqlite/store/store_test.go:35
↓ 41 callersMethodWriteJSON
(ctx context.Context, v any)
backend/internal/terminal/manager.go:27
↓ 40 callersFunctionnewTestStore
(t *testing.T)
backend/internal/storage/sqlite/store/store_test.go:16
↓ 40 callersFunctionseedProject
(t *testing.T, s *sqlite.Store, id string)
backend/internal/storage/sqlite/store/store_test.go:26
↓ 39 callersMethodRemove
Remove unregisters a project, stopping its sessions and reclaiming managed workspaces.
backend/internal/service/project/service.go:37
↓ 38 callersFunctionworking
(id domain.SessionID)
backend/internal/lifecycle/manager_test.go:88
↓ 37 callersMethodGet
(ctx context.Context, id domain.TrackerID)
backend/internal/ports/tracker.go:22
↓ 36 callersFunctionmustJSON
(t *testing.T, body []byte, out any)
backend/internal/httpd/controllers/projects_test.go:530
↓ 35 callersMethodDo
(req *http.Request)
backend/internal/adapters/telemetry/posthog.go:109
↓ 35 callersMethodExecContext
(context.Context, string, ...interface{})
backend/internal/storage/sqlite/gen/db.go:13
↓ 35 callersFunctionExitCode
ExitCode maps a CLI error to a process exit code: 2 for usage errors, 1 for any other failure, 0 for success.
backend/internal/cli/root.go:48
↓ 35 callersMethodget
(w http.ResponseWriter, r *http.Request)
backend/internal/httpd/controllers/projects.go:68
↓ 33 callersMethodDone
dispose the ConPTY
backend/internal/adapters/runtime/conpty/host.go:26
↓ 33 callersMethodWrite
(b []byte)
backend/internal/adapters/runtime/conpty/host_test.go:68
↓ 33 callersMethodaddEventListener
(type: string, cb: (ev: unknown) => void)
frontend/src/renderer/lib/terminal-mux.test.ts:61
↓ 33 callersFunctionptr
(s string)
backend/internal/service/project/service_test.go:81
↓ 32 callersFunctionnewManager
()
backend/internal/lifecycle/manager_test.go:82
↓ 31 callersMethodCreate
(ctx context.Context, cfg RuntimeConfig)
backend/internal/ports/outbound.go:81
↓ 30 callersFunctionhoursAgo
(hours: number)
frontend/src/renderer/lib/mock-data.ts:4
↓ 30 callersFunctionsessionID
(r *http.Request)
backend/internal/httpd/controllers/sessions.go:510
↓ 29 callersMethodPoll
Poll runs one synchronous SCM observation cycle.
backend/internal/observe/scm/observer.go:229
↓ 29 callersFunctioneventually
eventually polls cond until true or the deadline, failing the test otherwise.
backend/internal/terminal/fakes_test.go:160
↓ 28 callersMethodDestroy
(ctx context.Context, handle RuntimeHandle)
backend/internal/ports/outbound.go:82
↓ 28 callersFunctionNew
New builds a Session Manager from its dependencies, defaulting the clock to time.Now when Deps.Clock is nil.
backend/internal/session_manager/manager.go:152
↓ 28 callersMethodSpawn
(ctx context.Context, cfg ports.SpawnConfig)
backend/internal/service/session/service.go:45
↓ 28 callersFunctionnewFakeStore
()
backend/internal/session_manager/manager_test.go:35
↓ 28 callersFunctionnewTestObserver
(store *fakeStore, provider *fakeProvider, lc Lifecycle, now time.Time)
backend/internal/observe/scm/observer_test.go:206
↓ 27 callersFunctionctx
()
backend/internal/adapters/scm/github/provider_test.go:107
↓ 26 callersFunctionnewFakeGH
(t *testing.T)
backend/internal/adapters/scm/github/provider_test.go:41
↓ 25 callersFunctionnewFakeSessionService
()
backend/internal/httpd/controllers/sessions_test.go:36
↓ 25 callersFunctionnewProviderForTest
newProviderForTest builds a Provider that talks only to the fake.
backend/internal/adapters/scm/github/provider_test.go:92
↓ 25 callersFunctionnewSessionTestServer
(t *testing.T, svc *fakeSessionService)
backend/internal/httpd/controllers/sessions_test.go:219
↓ 24 callersMethodWrite
(b []byte)
backend/internal/cli/start.go:442
↓ 24 callersFunctionbasePRFixture
()
backend/internal/adapters/scm/github/provider_test.go:123
↓ 24 callersFunctionnavigate
({ viewId, url }: BrowserNavigateInput)
frontend/src/main/browser-view-host.ts:177
↓ 24 callersFunctionnewFakeStore
()
backend/internal/service/session/service_test.go:34
↓ 23 callersMethodManifest
()
backend/internal/adapters/registry.go:30
↓ 23 callersFunctionfindDoctorCheck
(t *testing.T, checks []doctorCheck, name string)
backend/internal/cli/doctor_test.go:420
↓ 23 callersMethodprURL
()
backend/internal/adapters/scm/github/provider_test.go:214
↓ 23 callersMethodresolve
resolve looks up a session by id: first the in-memory map, then the B2 registry (for daemon-restart recovery). Returns nil if not found either way.
backend/internal/adapters/runtime/conpty/runtime.go:188
↓ 23 callersFunctiontestStoreWithSession
()
backend/internal/observe/scm/observer_test.go:212
↓ 22 callersFunctionEncodeMessage
EncodeMessage encodes a single frame into the binary protocol format. It allocates a fresh slice of exactly 5+len(payload) bytes. Returns an error if
backend/internal/adapters/runtime/conpty/proto.go:49
↓ 22 callersMethodrunDoctor
(ctx context.Context)
backend/internal/cli/doctor.go:125
↓ 22 callersFunctionrunGit
(t *testing.T, git, dir string, args ...string)
backend/internal/adapters/workspace/gitworktree/workspace_integration_test.go:230
↓ 22 callersFunctionwantCode
wantCode asserts err is an *apierr.Error carrying the given machine code.
backend/internal/service/project/service_test.go:84
↓ 21 callersMethodObserve
(ctx context.Context, prURL string)
backend/internal/ports/pr_observations.go:16
↓ 21 callersFunctiondoctorContext
(t *testing.T, paths map[string]string, commandOutput func(context.Context, string, ...string) ([]byte, error)
backend/internal/cli/doctor_test.go:383
↓ 21 callersFunctionnewFakePTY
()
backend/internal/terminal/fakes_test.go:69
↓ 20 callersMethodTrigger
(ctx context.Context, workerID domain.SessionID)
backend/internal/service/review/review.go:28
↓ 20 callersMethoddispose
()
frontend/src/main/supervisor-link.ts:14
↓ 20 callersMethodhandle
(msg clientMsg)
backend/internal/terminal/manager.go:169
↓ 20 callersFunctionnewManager
newManager builds a Manager over a real, throwaway sqlite store (pure-Go driver, migrations run on Open) — no in-memory store.
backend/internal/service/project/service_test.go:22
↓ 20 callersFunctionnewTestRuntime
-- helpers --
backend/internal/adapters/runtime/tmux/tmux_test.go:45
↓ 20 callersMethodnow
now tolerates a zero-value Service (tests construct the struct literally without going through New, which is where clock gets its default).
backend/internal/service/session/service.go:501
↓ 20 callersMethodrun
run is the main event loop.
backend/internal/adapters/runtime/conpty/host.go:64
↓ 20 callersFunctionsessionWith
(overrides: Partial<WorkspaceSession>)
frontend/src/renderer/types/workspace.test.ts:23
↓ 19 callersFunctionapiErrorMessage
(error: unknown, fallback = "Request failed")
frontend/src/renderer/lib/api-client.ts:92
↓ 19 callersFunctionctx
()
backend/internal/adapters/tracker/github/tracker_test.go:93
↓ 19 callersFunctiondiscardLogger
()
backend/internal/httpd/server_test.go:19
↓ 19 callersFunctionnewEngineForTest
(store Store, sessions Sessions, prs PRs, projects Projects, launcher Launcher)
backend/internal/review/review_test.go:184
↓ 19 callersFunctionnewManager
()
backend/internal/session_manager/manager_test.go:319
↓ 19 callersMethodrun
run executes `ao args...` in env e and returns combined output + exit code.
backend/internal/cli/e2e_test.go:106
↓ 18 callersMethodApplyPRObservation
(ctx context.Context, id domain.SessionID, o ports.PRObservation)
backend/internal/service/pr/manager.go:13
↓ 18 callersMethodGetAgentHooks
GetAgentHooks installs or merges AO hooks into the agent's native workspace-local hook config. It must preserve user-defined hooks.
backend/internal/ports/agent.go:34
↓ 18 callersMethodGetSession
(ctx context.Context, id domain.SessionID)
backend/internal/service/session/service.go:19
↓ 18 callersFunctionNew
New builds a gitworktree Workspace, validating that ManagedRoot and RepoResolver are set and resolving the root to an absolute, symlink-free path.
backend/internal/adapters/workspace/gitworktree/workspace.go:90
↓ 18 callersMethodadd
(p []byte)
backend/internal/terminal/fakes_test.go:178
↓ 18 callersFunctionassertJSON
(t *testing.T, headers http.Header)
backend/internal/httpd/controllers/projects_test.go:542
↓ 18 callersFunctionliveWorker
()
backend/internal/review/review_test.go:175
↓ 18 callersFunctionnewFakeGH
(t *testing.T)
backend/internal/adapters/tracker/github/tracker_test.go:39
↓ 18 callersFunctionnewTrackerForTest
newTrackerForTest constructs an adapter pointed at the fake server with a static dev token. Production code uses EnvTokenSource; tests skip that to ke
backend/internal/adapters/tracker/github/tracker_test.go:80
↓ 17 callersMethodClose
Close tears down every live attachment and stops re-attach loops. Safe to call once on daemon shutdown.
backend/internal/terminal/manager.go:87
↓ 17 callersMethodGetConfigSpec
GetConfigSpec describes the agent-specific config keys AO can expose to users in the AO config.
backend/internal/ports/agent.go:23
↓ 17 callersMethodGetProject
(ctx stdctx.Context, id string)
backend/internal/review/review.go:56
↓ 17 callersMethodQueryContext
(context.Context, string, ...interface{})
backend/internal/storage/sqlite/gen/db.go:15
↓ 17 callersMethodQueryRowContext
(context.Context, string, ...interface{})
backend/internal/storage/sqlite/gen/db.go:16
↓ 17 callersMethodRead
(b []byte)
backend/internal/terminal/fakes_test.go:75
↓ 17 callersMethodUpsertProject
(ctx context.Context, r domain.ProjectRecord)
backend/internal/legacyimport/importer.go:22
next →1–100 of 4,386, ranked by callers