team

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package team implements namespaced team memory sharing. Team memories are stored in the global DB (~/.yaad/yaad.db) with a team_id namespace. Private memories stay in the project DB; shared memories are promoted to the team namespace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectTeamContext

func InjectTeamContext(eng *engine.Engine, teamStore *storage.Store, teamID, query string, limit int) ([]*storage.Node, error)

InjectTeamContext adds team memories to a recall result.

func ListTeamMemories

func ListTeamMemories(store *storage.Store, teamID string) ([]*storage.Node, error)

ListTeamMemories returns all memories for a given team_id from the global store.

func Share

func Share(src *storage.Store, dst *storage.Store, in ShareInput) (*storage.Node, error)

Share copies a project-scoped node into the team namespace (global scope + team_id tag).

Types

type ShareInput

type ShareInput struct {
	NodeID   string
	TeamID   string
	SharedBy string
}

ShareInput describes a memory to share with the team.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL