MCPcopy Create free account

hub / github.com/AIScientists-Dev/Flowtrace / functions

Functions672 in github.com/AIScientists-Dev/Flowtrace

↓ 77 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/shared/lib/utils.ts:4
↓ 28 callersFunctionesc
(x)
scripts/examples/talk-to-deck/template/scripts/render_deck.py:118
↓ 22 callersMethodas_str
(&self)
crates/flowtrace-cli/src/serve/routes/runs.rs:256
↓ 19 callersFunctioncommit_files
Stage exactly the listed trace-relative paths and commit. Replaces the `add -A` sweep with an explicit declaration of what this commit contains. Calle
crates/flowtrace-cli/src/git.rs:112
↓ 19 callersFunctionfind_trace
(state: &AppState, trace_id: &str)
crates/flowtrace-cli/src/serve/scope.rs:81
↓ 17 callersFunctionbroadcast
(state: &crate::serve::state::AppState, body: SseEventBody)
crates/flowtrace-cli/src/serve/events.rs:56
↓ 14 callersFunctionstep
(name: &str, deps: &[&str])
crates/flowtrace-core/src/validate.rs:188
↓ 13 callersFunctionget
( State(state): State<AppState>, AxumPath(id): AxumPath<String>, Query(q): Query<GetRunQuery>, )
crates/flowtrace-cli/src/serve/routes/runs.rs:124
↓ 13 callersFunctionwrite_trace
(state: &AppState, root: &Path, trace: &Trace)
crates/flowtrace-cli/src/serve/scope.rs:91
↓ 12 callersFunctionrun_dir
(trace_root: &Path, run_id: &str)
crates/flowtrace-core/src/state.rs:265
↓ 11 callersFunctionformatKey
(key: string)
frontend/src/features/trace/components/detail/file-preview/renderers/JsonPreview.tsx:206
↓ 11 callersFunctioninit
`git init` in `root`. Idempotent — re-init on an existing repo is a no-op.
crates/flowtrace-cli/src/git.rs:104
↓ 11 callersFunctionnormName
(filename: string)
frontend/src/features/trace/lib/file-utils.ts:2
↓ 11 callersFunctionnormalizeAssetPath
(path: string)
frontend/src/features/trace/lib/file-resolver.ts:14
↓ 11 callersFunctionwrite
(p: &Path, b: &[u8])
crates/flowtrace-cli/src/git.rs:497
↓ 10 callersMethoderror
* Log error - for failures that impact functionality * Use when: API calls fail, validation fails, unexpected states
frontend/src/shared/lib/logger.ts:86
↓ 10 callersFunctionresolve
Follow `$ref` references through the root's definitions to land on a concrete SchemaObject. Returns the input unchanged if no ref. Also handles schem
crates/flowtrace-cli/src/explain.rs:99
↓ 9 callersFunctionhead_sha
SHA of HEAD. Errors if the repo has no commits yet.
crates/flowtrace-cli/src/git.rs:173
↓ 8 callersFunctionmake_trace
()
crates/flowtrace-core/src/validate.rs:200
↓ 8 callersFunctionopen
Open the repo that owns `root`. Walks up from `root` so a trace folder nested inside a parent repo resolves to that parent (single-repo layout). When
crates/flowtrace-cli/src/git.rs:63
↓ 8 callersFunctionread_state
(trace_root: &Path, run_id: &str)
crates/flowtrace-core/src/state.rs:309
↓ 7 callersFunctionclassify
Classify a filesystem event path into an SSE event body. `scope_root` MUST be canonicalized (see AppState::new). `path` MUST be the absolute path prod
crates/flowtrace-cli/src/serve/classify.rs:8
↓ 7 callersFunctionexplain
Entry point: render the schema rooted at `path` in the requested format.
crates/flowtrace-cli/src/explain.rs:37
↓ 7 callersMethodfrom
(e: std::io::Error)
crates/flowtrace-core/src/error.rs:22
↓ 7 callersFunctiongetAssetDisplayName
(asset: string)
frontend/src/features/trace/components/detail/node-map/StepCardHelpers.tsx:19
↓ 7 callersFunctionlocate_run
Locate the trace that owns the given run id. Returns `(trace_id, trace_root)`. Backed by `AppState.run_index`: hot path is one HashMap lookup. Cold m
crates/flowtrace-cli/src/serve/scope.rs:104
↓ 7 callersFunctionrun_event_commit_msg
(run_id: &str, event: &str)
crates/flowtrace-cli/src/git.rs:479
↓ 7 callersMethodset_step_status
(&mut self, step_id: &str, status: Status)
crates/flowtrace-core/src/state.rs:168
↓ 7 callersFunctiontrace_root_or_bail
()
crates/flowtrace-cli/src/main.rs:641
↓ 7 callersFunctionvalidate
(r: &Trace)
crates/flowtrace-core/src/validate.rs:119
↓ 6 callersMethodall_scopes
(&self)
crates/flowtrace-cli/src/serve/state.rs:99
↓ 6 callersFunctionfetch
(ticker: str, lookback: str)
scripts/examples/nvda-decision/template/scripts/price_pack.py:18
↓ 6 callersFunctionhasExt
(filename: string, exts: ReadonlySet<string>)
frontend/src/features/trace/lib/file-utils.ts:11
↓ 6 callersFunctionmutate
Read state.json, apply the mutation, write it back, then commit — all on a blocking task so the async runtime worker isn't parked on disk I/O. The cal
crates/flowtrace-cli/src/serve/routes/runs.rs:420
↓ 6 callersMethodnext_event_id
(&self)
crates/flowtrace-cli/src/serve/state.rs:119
↓ 6 callersFunctionreplaceAttr
(selector: string, attr: string)
frontend/src/features/trace/components/detail/file-preview/renderers/HtmlPreview.tsx:79
↓ 6 callersFunctionresolveApiPath
(path: string)
frontend/src/shared/lib/api-url.ts:10
↓ 6 callersFunctionuseSidebar
()
frontend/src/shared/components/ui/sidebar.tsx:33
↓ 5 callersFunctionemitFileClick
(data: FileClickEventData)
frontend/src/features/trace/lib/file-preview-bus.ts:36
↓ 5 callersFunctionfont_face
(family, fname, weight)
scripts/examples/nvda-decision/template/scripts/typeset.py:91
↓ 5 callersFunctionhandleAsset
(_fileName: string, assetPath: string)
frontend/src/features/trace/components/detail/node-map/StepCardOutputs.tsx:104
↓ 5 callersMethodkind
(&self)
crates/flowtrace-core/src/state.rs:98
↓ 5 callersFunctionrequest
(method: string, path: string, init?: RequestInit2)
frontend/src/shared/lib/api-client.ts:12
↓ 5 callersFunctionresolve_run
(trace_root: &Path, run_id: Option<&str>)
crates/flowtrace-core/src/state.rs:321
↓ 5 callersFunctionwrite_state
(trace_root: &Path, run_id: &str, state: &RunState)
crates/flowtrace-core/src/state.rs:316
↓ 4 callersFunctionbasename
(p: string | undefined)
frontend/src/features/trace/lib/file-utils.ts:173
↓ 4 callersFunctioncommit_run_event
( root: &Path, run_id: Option<&str>, event: &str, apply: impl FnMut(&mut flowtrace_core::state
crates/flowtrace-cli/src/main.rs:500
↓ 4 callersMethodformatMessage
* Format log message with context
frontend/src/shared/lib/logger.ts:26
↓ 4 callersFunctionisFolder
(asset: string)
frontend/src/features/trace/components/detail/node-map/StepCardHelpers.tsx:12
↓ 4 callersFunctionisSimpleObject
(value: any)
frontend/src/features/trace/components/detail/file-preview/renderers/JsonPreview.tsx:80
↓ 4 callersFunctionlint
(r: &Trace)
crates/flowtrace-core/src/validate.rs:24
↓ 4 callersFunctionload_trace
(root: &Path)
crates/flowtrace-cli/src/main.rs:647
↓ 4 callersFunctionreplies_dir
`<trace_root>/runs/<run_id>/replies/`
crates/flowtrace-cli/src/reply.rs:34
↓ 4 callersFunctionstaggerStyle
(ms: number)
frontend/src/features/trace/components/detail/run-history/RunHistoryModal.tsx:372
↓ 4 callersMethodstart_step
(&mut self, step_id: &str, message: Option<&str>)
crates/flowtrace-core/src/state.rs:176
↓ 4 callersFunctiontraceFileUrl
({ traceId, runId, path, commit }: TraceFileUrlInput)
frontend/src/features/trace/lib/file-resolver.ts:34
↓ 4 callersFunctiontranslate
Prefix a trace-relative path with the subpath portion, if any. Used when looking up paths via libgit2 (commits_under, show_at) — git always wants repo
crates/flowtrace-cli/src/git.rs:92
↓ 4 callersMethodwarn
* Log warning - for recoverable issues or unexpected but handled situations * Use when: Fallbacks are used, deprecated features, validation warning
frontend/src/shared/lib/logger.ts:95
↓ 3 callersFunctionarray_item
If `s` is an array, return its element schema; else `None`. Tuple-typed arrays (`items: [schema, schema, …]`) and boolean-schema items are not support
crates/flowtrace-cli/src/explain.rs:212
↓ 3 callersFunctionatomic_write_json
(path: &Path, tmp_prefix: &str, value: &T)
crates/flowtrace-core/src/io.rs:30
↓ 3 callersMethodblock_step
(&mut self, step_id: &str, reason: &str)
crates/flowtrace-core/src/state.rs:184
↓ 3 callersFunctionbuildEdges
(reducedEdges: Array<{ source: string; target: string }>)
frontend/src/features/trace/components/detail/node-map/NodeMapHelpers.ts:321
↓ 3 callersFunctioncalculateRetryDelay
(attemptIndex: number)
frontend/src/shared/lib/errors.ts:311
↓ 3 callersMethodcancel
()
frontend/src/shared/lib/sse-client.ts:123
↓ 3 callersFunctioncheck_and_normalize_all
Apply `check_and_normalize` to a slice, surfacing the offending value together with its reason so the caller can build an appropriate error type.
crates/flowtrace-core/src/paths.rs:76
↓ 3 callersFunctiondescribe_type
Human-readable type label for one schema node: `string`, `integer`, `[]Evidence`, `map<string, StepState>`, `oneOf`, named-ref types, etc.
crates/flowtrace-cli/src/explain.rs:471
↓ 3 callersFunctionencodeFilePath
(path: string)
frontend/src/features/trace/api/trace-core.ts:55
↓ 3 callersMethodentry
(&mut self, step_id: &str)
crates/flowtrace-core/src/state.rs:164
↓ 3 callersFunctionflushChecks
()
frontend/src/features/trace/components/detail/output-card/OutputCardEvidence.tsx:557
↓ 3 callersFunctionflushCitationGroup
()
frontend/src/features/trace/components/detail/output-card/shared/FileChip.tsx:169
↓ 3 callersFunctionflushFigures
()
frontend/src/features/trace/components/detail/output-card/OutputCardEvidence.tsx:564
↓ 3 callersFunctionformatSize
(bytes: number)
frontend/src/features/trace/components/detail/file-viewer/parts.tsx:95
↓ 3 callersFunctiongetExt
(filename: string)
frontend/src/features/trace/lib/file-utils.ts:161
↓ 3 callersMethodinvalidate_trace_cache
Invalidate the trace cache. Call after any trace.json mutation or scope change so the next read picks up the new state immediately. Also drops the run
crates/flowtrace-cli/src/serve/state.rs:77
↓ 3 callersFunctionisCodeFile
(filename: string)
frontend/src/features/trace/lib/file-utils.ts:118
↓ 3 callersFunctionisRelativePath
(url: string)
frontend/src/features/trace/components/detail/file-preview/renderers/HtmlPreview.tsx:17
↓ 3 callersFunctionisVideoFile
(filename: string)
frontend/src/features/trace/lib/file-utils.ts:82
↓ 3 callersFunctionlock_extras
Acquire `extra_scopes` lock, recovering from a poisoned mutex. Poisoning is harmless here: the protected `Vec<PathBuf>` is plain data with no broken i
crates/flowtrace-cli/src/serve/state.rs:48
↓ 3 callersFunctionmap_value
If `s` is a "map type" (object with `additionalProperties` and no declared properties — what schemars emits for `BTreeMap<String, T>`), return the val
crates/flowtrace-cli/src/explain.rs:227
↓ 3 callersMethodpause
(&mut self)
crates/flowtrace-core/src/state.rs:204
↓ 3 callersMethodscope_for
Find the scope root that contains the given path (if any).
crates/flowtrace-cli/src/serve/state.rs:110
↓ 3 callersMethodstep_id
The step id this reply is pinned to, if any.
crates/flowtrace-core/src/output.rs:208
↓ 3 callersFunctiontagged_variant_value
For a `#[serde(tag = "...", rename_all = "snake_case")]` enum variant, schemars emits an object whose tag field is a `const` string. Return that const
crates/flowtrace-cli/src/explain.rs:197
↓ 3 callersFunctiontrackUrl
(u: string)
frontend/src/features/trace/components/detail/file-preview/FilePreview.tsx:122
↓ 3 callersFunctionuseTraceRuns
(traceId: string | undefined)
frontend/src/features/trace/api/trace-core.ts:149
↓ 2 callersMethodabort
(&mut self)
crates/flowtrace-core/src/state.rs:212
↓ 2 callersFunctionappend_reply
Append a new reply file. Returns the assigned seq and timestamp. `step_id` on the persisted record is always derived from `payload.checkpoint.step_id
crates/flowtrace-cli/src/reply.rs:85
↓ 2 callersMethodblocked
(&self)
crates/flowtrace-core/src/state.rs:233
↓ 2 callersFunctioncheck_and_normalize
Combine validation + normalization into the single call used at write sites.
crates/flowtrace-core/src/paths.rs:69
↓ 2 callersFunctionclassify_file
Build a [`StepFile`] from a directory entry, or `None` to skip it: not a regular file, hidden (dotfile), or — defensively — resolving outside `scope_r
crates/flowtrace-cli/src/serve/routes/traces.rs:157
↓ 2 callersFunctioncluster
(levels, tol=0.02)
scripts/examples/nvda-decision/template/scripts/price_pack.py:50
↓ 2 callersFunctioncommits_under
Commits whose tree changed `rel_path` (file or directory), newest first. `rel_path` is trace-relative; resolves to repo-relative internally so single-
crates/flowtrace-cli/src/git.rs:183
↓ 2 callersFunctioncreate_run
(trace_root: &Path, name: impl Into<String>)
crates/flowtrace-core/src/state.rs:301
↓ 2 callersMethodcurrent
(&self)
crates/flowtrace-core/src/state.rs:218
↓ 2 callersFunctiondeliverable_commit_msg
(status: &Status)
crates/flowtrace-cli/src/git.rs:468
↓ 2 callersFunctiondownloadFile
(fileName: string, downloadUrl?: string)
frontend/src/features/trace/components/detail/file-preview/file-utils.ts:22
↓ 2 callersMethodenqueue
(key: QueryKey)
frontend/src/shared/lib/sse-client.ts:115
↓ 2 callersFunctionenrichSide
(item: ComparisonItem)
frontend/src/features/trace/components/detail/output-card/OutputCard.tsx:297
↓ 2 callersMethodevidence_paths
Collect every run-relative path cited by `evidence[]`, deduped, in order. Walks `figure.path`, `document.path`, `table.source_file`, `comparison.left.
crates/flowtrace-core/src/output.rs:185
↓ 2 callersMethodfinish_step
(&mut self, step_id: &str, message: Option<&str>)
crates/flowtrace-core/src/state.rs:180
next →1–100 of 672, ranked by callers