MCPcopy Create free account
hub / github.com/compozy/agh / requireAgentCommandIdentity

Function requireAgentCommandIdentity

internal/cli/agent_kernel.go:385–395  ·  view source on GitHub ↗
(
	ctx context.Context,
	deps commandDeps,
	client DaemonClient,
	originRef string,
)

Source from the content-addressed store, hash-verified

383}
384
385func requireAgentCommandIdentity(
386 ctx context.Context,
387 deps commandDeps,
388 client DaemonClient,
389 originRef string,
390) (agentidentity.Credentials, error) {
391 if _, err := resolveAgentCallerFromEnv(ctx, deps, client, "", originRef); err != nil {
392 return agentidentity.Credentials{}, err
393 }
394 return agentCredentialsFromEnv(deps), nil
395}
396
397func agentActionCLI(action string) string {
398 return "agent." + strings.TrimSpace(action)

Callers 15

newMeCommandFunction · 0.85
newMeContextCommandFunction · 0.85
newChannelListCommandFunction · 0.85
newChannelRecvCommandFunction · 0.85
newChannelSendCommandFunction · 0.85
newChannelReplyCommandFunction · 0.85
runSpawnCommandFunction · 0.85
createTaskRecordFunction · 0.85
newTaskBlockCommandFunction · 0.85
newTaskUnblockCommandFunction · 0.85

Calls 2

agentCredentialsFromEnvFunction · 0.85

Tested by

no test coverage detected