MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / sendStream

Function sendStream

agent/loop.go:1512–1519  ·  view source on GitHub ↗
(ctx context.Context, out chan<- StreamEvent, event StreamEvent)

Source from the content-addressed store, hash-verified

1510 command := stringFromAny(tc.Input["command"])
1511 prefix := bashpkg.GetSimpleCommandPrefix(command)
1512 if prefix != "" && state.PermissionState.IsCommandPrefixConfirmed(prefix) {
1513 permission := bashpkg.AnalyzeCommandPermissions(command)
1514 if !permission.NeedsUserDecision {
1515 return false
1516 }
1517 }
1518 }
1519 if state.PermissionState != nil && state.PermissionState.IsToolConfirmed(tc.Name) {
1520 return false
1521 }
1522 if tool.ConfirmsFilePaths() && state.PermissionState != nil {

Callers 5

maybePromptMCPTrustMethod · 0.85
queryLoopMethod · 0.85
executeAndCommitToolsMethod · 0.85
SubmitMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected