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

Function nativeMemoryTypeForScope

internal/daemon/native_tools.go:5554–5565  ·  view source on GitHub ↗
(raw string, scope memcontract.Scope)

Source from the content-addressed store, hash-verified

5552}
5553
5554func nativeMemoryTypeForScope(raw string, scope memcontract.Scope) memcontract.Type {
5555 memoryType := memcontract.Type(strings.TrimSpace(raw)).Normalize()
5556 if memoryType != "" {
5557 return memoryType
5558 }
5559 switch scope.Normalize() {
5560 case memcontract.ScopeWorkspace:
5561 return memcontract.TypeProject
5562 default:
5563 return memcontract.TypeUser
5564 }
5565}
5566
5567func nativeMemoryDecisionResult(result memorypkg.DecisionApplyResult) (toolspkg.ToolResult, error) {
5568 decision := redactNativeMemoryDecision(result.Decision)

Callers 2

memoryNoteMethod · 0.85

Calls 1

NormalizeMethod · 0.45

Tested by

no test coverage detected