MCPcopy Create free account

hub / github.com/GizClaw/flowcraft / functions

Functions13,468 in github.com/GizClaw/flowcraft

↓ 4 callersFunctioncomputeFactStats
computeFactStats walks a fact slice and tallies per-fact shape signals (content / structured-only / evidence / valid_from / confidence / kind). Owned
memory/recall/internal/pipeline/write/stages/fact_stats.go:20
↓ 4 callersFunctioncontains
(tokens []string, want string)
memory/text/tokenize/tokenize_test.go:191
↓ 4 callersFunctioncontains
(xs []string, want string)
sdk/recall/partition_fanout_test.go:184
↓ 4 callersFunctioncontentDigest
(f domain.TemporalFact)
memory/recall/internal/ingest/normalizer.go:173
↓ 4 callersFunctioncontextPackCompletenessIntent
(query contextPackQueryFeatures)
memory/recall/internal/pipeline/read/stages/context_packer.go:909
↓ 4 callersFunctioncontextPackExactSourcePhraseCandidate
(cand contextPackCandidate)
memory/recall/internal/pipeline/read/stages/context_packer.go:489
↓ 4 callersFunctioncontextPackSelectSingleCore
(candidates, selected []contextPackCandidate, cap int, pred func(contextPackCandidate) bool, score func(contex
memory/recall/internal/pipeline/read/stages/context_packer.go:494
↓ 4 callersMethodconvMu
(conversationID string)
memory/history/store.go:248
↓ 4 callersMethodconvMu
(conversationID string)
sdk/history/store.go:248
↓ 4 callersFunctionconvertContentParts
(parts []llm.Part)
sdkx/llm/anthropic/anthropic.go:540
↓ 4 callersFunctionconvertOllamaResponse
(msg chatMessage)
sdkx/llm/ollama/ollama.go:357
↓ 4 callersMethodcount
(ctx context.Context, namespace string, f retrieval.Filter)
memory/retrieval/journal/wrap.go:316
↓ 4 callersMethodcount
()
sdk/graph/runner/engine_test.go:553
↓ 4 callersMethodcount
(ctx context.Context, namespace string, f retrieval.Filter)
sdk/retrieval/journal/wrap.go:307
↓ 4 callersMethodcountMsg
(msg llm.Message)
memory/history/compactor.go:1408
↓ 4 callersFunctioncountRecallField
(records []recallAnalysisRecord, pick func(recallAnalysisRecord) string)
eval/locomo/cli_analyze_recall.go:997
↓ 4 callersFunctioncounterSumByProvider
counterSumByProvider returns the running cumulative value of the named int64 counter, restricted to data points whose `provider` attribute matches pro
tests/conformance/llm/cached_tokens_stream_test.go:66
↓ 4 callersFunctioncreateNewTUIWorkspaceFromRaid
(raidName string)
cmd/claw/cli/tui_workspace.go:65
↓ 4 callersFunctiondecodeConfigFile
(raw []byte)
cmd/claw/cli/config_file.go:64
↓ 4 callersFunctiondefaultConfig
()
sdkx/extract/extract.go:59
↓ 4 callersFunctiondepthPrompt
depthPrompt returns the prompt template for the given summary depth. Depths >= 3 reuse the d3+ template.
memory/history/compactor_prompt.go:59
↓ 4 callersFunctiondepthPrompt
depthPrompt returns the prompt template for the given summary depth. Depths >= 3 reuse the d3+ template.
sdk/history/compactor_prompt.go:59
↓ 4 callersFunctiondirectionalOffset
(dir string)
memory/text/timex/relative.go:260
↓ 4 callersMethoddocLayersPath
docLayersPath is the per-document DerivedSig sidecar.
memory/knowledge/backend/fs/paths.go:116
↓ 4 callersMethoddocLayersPath
docLayersPath is the per-document DerivedSig sidecar.
sdk/knowledge/backend/fs/paths.go:119
↓ 4 callersFunctiondummyBuilder
(id, typ string)
sdk/graph/node/factory_test.go:12
↓ 4 callersFunctionemit
emit is a tiny helper so the round body stays readable. nil pub is the common "no subscriber" case (e.g. round driven from a unit test) and must be ch
sdk/graph/node/llmnode/round.go:333
↓ 4 callersMethodenabled
()
sdkx/claw/memory.go:344
↓ 4 callersMethodenqueueSync
enqueueSync routes a request/reply task and waits for the worker to pick it up. Synchronous callers (Compact/Archive/Clear) handle their own reply cha
memory/history/compactor.go:468
↓ 4 callersMethodenqueueSync
enqueueSync routes a request/reply task and waits for the worker to pick it up. Synchronous callers (Compact/Archive/Clear) handle their own reply cha
sdk/history/compactor.go:468
↓ 4 callersFunctionequalStrings
(a, b []string)
memory/recall/internal/ingest/resolver_test.go:377
↓ 4 callersMethoderr
()
cmd/claw/cli/auto.go:714
↓ 4 callersFunctioneventKinds
(evs []event.Envelope)
sdk/kanban/events_test.go:355
↓ 4 callersFunctionevidenceContainsSignal
(normalizedEvidence, signal string)
memory/recall/internal/ingest/extractor_llm.go:1079
↓ 4 callersMethodexec
(ctx context.Context, name, source string, env *script.Env, nested bool)
sdk/script/jsrt/jsrt.go:160
↓ 4 callersFunctionexecTool
(t *testing.T, a *assembly.Assembly, name string, args map[string]any)
vessel/assembly/assembly_test.go:312
↓ 4 callersFunctionexpressionFromTime
(t time.Time)
memory/recall/internal/ingest/time_resolver.go:188
↓ 4 callersMethodextractFactsWithSchema
(ctx context.Context, userMessage, system, defaultSystem, schemaName, defaultSchemaName, schema, stage string)
memory/recall/internal/ingest/extractor_llm_two_pass.go:898
↓ 4 callersFunctionextractedEvidenceRefs
extractedEvidenceRefs converts the LLM-side evidence list into canonical EvidenceRefs and enriches each ref with the typed per-turn metadata (Role, Ti
memory/recall/internal/ingest/extractor_llm.go:1432
↓ 4 callersMethodfilename
(graphName, runID string)
sdk/graph/runner/internal/executor/checkpoint.go:104
↓ 4 callersFunctionfilterIsZero
(f retrieval.Filter)
memory/retrieval/pipeline/stages_recall.go:404
↓ 4 callersFunctionfilterIsZero
(f retrieval.Filter)
sdk/retrieval/pipeline/stages_recall.go:404
↓ 4 callersMethodfindFacts
(ctx context.Context, scope domain.Scope, match func(domain.TemporalFact) bool)
memory/recall/store/workspace/temporal.go:309
↓ 4 callersMethodfinish
(err error)
sdkx/llm/openai/responses/stream.go:251
↓ 4 callersFunctionfirstImageDescriptor
firstImageDescriptor returns a short stable descriptor of the first image part, useful for log output without dumping the full payload.
tests/conformance/llm/image_test.go:54
↓ 4 callersFunctionfromRecallArtifact
(h recall.Hit)
eval/locomo/runners/flowcraftv2/convert.go:27
↓ 4 callersFunctiongenerate
(ctx context.Context, l llm.LLM, prompt string)
memory/knowledge/generator.go:125
↓ 4 callersFunctiongenerate
(ctx context.Context, l llm.LLM, prompt string)
sdk/knowledge/generator.go:125
↓ 4 callersFunctiongetAttr
getAttr gets an attribute value by name.
sdkx/extract/html/sanitize.go:143
↓ 4 callersFunctiongetenvFirst
getenvFirst returns the first non-empty env among keys.
examples/voice-pipeline/env.go:11
↓ 4 callersFunctiongotScopeKeys
(scopes []recall.Scope)
memory/recall/recalltest/helpers.go:34
↓ 4 callersFunctiongroundedHitContent
(h recall.Hit)
eval/locomo/runners/flowcraftv2/convert.go:58
↓ 4 callersFunctionhasTemporalIntentKind
(kinds []domain.QueryTemporalIntentKind, want domain.QueryTemporalIntentKind)
memory/recall/internal/planner/planner.go:402
↓ 4 callersFunctionhasTool
(opts *llm.GenerateOptions, name string)
sdkx/llm/mock/mock.go:184
↓ 4 callersFunctionhostRecoverPanicAs
hostRecoverPanicAs converts a panic inside a method probe into a t.Errorf so the test binary stays alive and the failure message names the offending m
sdk/engine/enginetest/host_suite.go:194
↓ 4 callersMethodhourExhausted
hourExhausted reports whether the rolling-hour total has reached perHour. Used by Captain.Submit as an admission gate so callers see the budget breach
vessel/budget.go:123
↓ 4 callersFunctionint64Ptr
(i int64)
sdk/llm/spec_test.go:117
↓ 4 callersFunctionisCommonNoun
(node string)
memory/recall/internal/lens/graph/edges.go:151
↓ 4 callersFunctionisInternalHistoryMessage
(role, name, text string)
cmd/claw/cli/tui_model.go:529
↓ 4 callersMethoditerate
(ctx context.Context, namespace, cursor string, batch int)
memory/retrieval/journal/wrap.go:309
↓ 4 callersMethoditerate
(ctx context.Context, namespace, cursor string, batch int)
sdk/retrieval/journal/wrap.go:300
↓ 4 callersFunctionjobFailureOutcome
(err error)
sdk/recall/jobs.go:481
↓ 4 callersFunctionlaunchedCaptain
launchedCaptain mirrors the tests/quality/vessel helper of the same name: build a Captain, Launch, register Stop on cleanup. Kept local to vessel_test
vessel/lifecycle_resume_e2e_test.go:327
↓ 4 callersFunctionlayerID
layerID encodes (docName, layer) as a stable Doc.ID. Dataset-level layers use docName=="" so the ID becomes "<layer>".
memory/knowledge/backend/retrieval/layer.go:277
↓ 4 callersFunctionlayerID
layerID encodes (docName, layer) as a stable Doc.ID. Dataset-level layers use docName=="" so the ID becomes "<layer>".
sdk/knowledge/backend/retrieval/layer.go:277
↓ 4 callersFunctionlistEntries
listEntries enumerates everything recall.Memory.Save has written for the given scope by going straight to the backing retrieval.Index. Tests use this
tests/conformance/llm/memory_test.go:48
↓ 4 callersFunctionlistRaids
()
cmd/claw/cli/examples.go:18
↓ 4 callersMethodlogViolation
(ctx context.Context, op, path, reason string)
sdk/workspace/scoped.go:193
↓ 4 callersFunctionmarshalJSON
(v any)
vessel/assembly/tools.go:299
↓ 4 callersFunctionmaybeSaveImages
maybeSaveImages writes every [model.PartImage] in msg to tests/conformance/llm/_out/ when SAVE_GENERATED_IMAGES is truthy. Unset / "0" / "false" → no-
tests/conformance/llm/image_test.go:83
↓ 4 callersMethodmerge
merge folds other into d using the Round B rules: OR over booleans, first non-empty Reason wins.
sdk/agent/decider.go:121
↓ 4 callersFunctionmergeCaps
mergeCaps OR-merges any number of ModelCaps. A capability is disabled in the result if any input has it disabled. Zero-value inputs are skipped withou
sdk/llm/spec.go:198
↓ 4 callersFunctionmergeOptions
mergeOptions returns base with non-nil / non-empty fields from overlay copied in. base's set fields are preserved when overlay leaves the field unset.
sdk/llm/spec.go:140
↓ 4 callersFunctionmergeOrAppend
(out *[]asdk.MessageParam, role asdk.MessageParamRole, blocks []asdk.ContentBlockParamUnion)
sdkx/llm/anthropic/anthropic.go:527
↓ 4 callersFunctionmetadataString
(meta map[string]any, key string)
eval/locomo/runners/flowcraftv2/answer_context.go:868
↓ 4 callersMethodmsgType
()
voice/stt/bytedance/protocol.go:42
↓ 4 callersFunctionmustRecall
(t *testing.T, mem recall.Memory, ctx context.Context, scope recall.Scope, req recall.Request)
sdk/recall/partition_fanout_test.go:166
↓ 4 callersFunctionnDCG
(ranked, ideal []int, k int)
eval/beir/beir.go:840
↓ 4 callersFunctionneighborFact
(scope domain.Scope, id, content, subject, predicate, object string)
memory/recall/internal/pipeline/read/stages/candidate_expansion_test.go:91
↓ 4 callersFunctionnewCheckpointRecordingHost
()
sdk/graph/runner/engine_test.go:578
↓ 4 callersFunctionnewContextPackQueryFeatures
(query string, features domain.QueryFeatures)
memory/recall/internal/pipeline/read/stages/context_packer.go:600
↓ 4 callersFunctionnewRoundStreamMux
(ctx context.Context, events chan<- Event, policy PublisherConfig)
sdkx/claw/roundtrip.go:325
↓ 4 callersFunctionnewService
(t *testing.T)
sdk/graph/node/knowledgenode/knowledgenode_test.go:17
↓ 4 callersFunctionnewSessionTestCaptain
--------------------------------------------------------------------------- Captain integration ------------------------------------------------------
vessel/session_test.go:312
↓ 4 callersFunctionnewStreamMessage
( ctx context.Context, span trace.Span, model string, body io.ReadCloser, )
sdkx/llm/ollama/stream.go:39
↓ 4 callersFunctionnewTokenBudget
newTokenBudget returns nil when both caps are zero — the zero budget is the unlimited budget, and we use a nil pointer to avoid lock contention in the
vessel/budget.go:51
↓ 4 callersFunctionnormalizeExtractedRelation
(predicate, object string)
memory/recall/internal/ingest/extractor_llm.go:1393
↓ 4 callersFunctionnormalizeRankText
(s string)
memory/recall/internal/ranker/ranker.go:355
↓ 4 callersFunctionnormalizeRelativeUnit
(raw string)
memory/text/timex/number.go:114
↓ 4 callersFunctionnormalizedEvidenceSupportText
(refs []domain.EvidenceRef, turnIndex map[string]port.TurnContext)
memory/recall/internal/ingest/extractor_llm.go:1099
↓ 4 callersFunctionopenSegmentReader
openSegmentReader loads meta + tombstones for the segment named by ref. Returns [ErrCorrupt] (wrapped with context) on checksum mismatch, version mism
memory/retrieval/workspace/segment_reader.go:75
↓ 4 callersFunctionpackMessage
(msgType uint32, seq int32, data []byte, compress bool)
voice/stt/bytedance/protocol.go:95
↓ 4 callersFunctionparseExpressionFromMeta
(meta map[string]any, key string, now time.Time, allowRelative bool)
memory/recall/internal/ingest/time_resolver.go:122
↓ 4 callersFunctionparseSpecConfig
parseSpecConfig parses the JSON config from the env var. Returns nil if the env var is not set or empty.
tests/conformance/llm/provider_test.go:58
↓ 4 callersFunctionpartitionCounter
(st *state, scope domain.Scope)
memory/recall/store/workspace/state.go:88
↓ 4 callersFunctionph
(n int)
memory/recall/store/postgres/backend.go:71
↓ 4 callersFunctionphs
(start, n int)
memory/recall/store/postgres/backend.go:73
↓ 4 callersFunctionpickFinalish
(st *base.State)
sdk/recall/pipeline/stages_post.go:181
↓ 4 callersFunctionplanNamespaces
(cfg config)
tools/retrieval-namespace-migrate/main.go:88
↓ 4 callersFunctionprojectionKindMatches
(name string, f domain.TemporalFact)
memory/recall/internal/lens/semantic/lens.go:226
← previousnext →1,601–1,700 of 13,468, ranked by callers