MCPcopy Create free account

hub / github.com/WeaveMindAI/weft / functions

Functions1,915 in github.com/WeaveMindAI/weft

↓ 1 callersFunctioncoerce_to_string
Try to coerce a JSON value to a string. Returns None if already a string.
crates/weft-nodes/src/node.rs:1061
↓ 1 callersFunctioncollectLocalChildIds
Collect all top-level child ids declared in a scope (group body or * root). Starts at `start` (0-based line index) and walks until the * matching
dashboard/src/lib/ai/weft-parser.ts:467
↓ 1 callersFunctioncollectVisible
(nodes: NodeInstance[])
dashboard/src/lib/ai/weft-parser.ts:4811
↓ 1 callersFunctioncollect_declaration_header
Collect the full declaration header that may span multiple lines. Starting from `after_type` (which begins with `(`), collects lines until all parens
crates/weft-core/src/weft_compiler.rs:633
↓ 1 callersFunctioncollect_declaration_header_with_body
Variant that also collects multi-line config body when the header has an unclosed `{`. Only called from the top-level declaration path; inline express
crates/weft-core/src/weft_compiler.rs:641
↓ 1 callersFunctioncollect_local_child_ids
Parse a group body: everything between `{` and `}`. Contains child nodes, connections, nested groups, and comments. The first contiguous block of `#`
crates/weft-core/src/weft_compiler.rs:1066
↓ 1 callersFunctioncolorForParsed
(t: WeftType)
dashboard/src/lib/constants/colors.ts:20
↓ 1 callersMethodcompletion_context
Build a CompletionContext for tracked AI calls. Prefer `tracked_ai_context()` for most use cases. This lower-level method is available when you need
crates/weft-nodes/src/node.rs:904
↓ 1 callersFunctioncompressAudio
(file: File)
dashboard/src/lib/utils/blob-upload.ts:186
↓ 1 callersFunctionconnect_imap
( host: &str, port: u16, username: &str, password: &str, security: &str, tls_accept_in
catalog/communication/:email/lib.rs:131
↓ 1 callersFunctioncount_resources_with_label
( client: &Client, namespace: &str, label_selector: &str, )
crates/weft-core/src/k8s_provisioner.rs:253
↓ 1 callersFunctioncount_running_infra_deployments
Count running infra deployments (replicas > 0) across all namespaces.
crates/weft-core/src/k8s_provisioner.rs:584
↓ 1 callersFunctioncount_running_infra_deployments_for_user
Count running infra deployments (replicas > 0) for a specific user.
crates/weft-core/src/k8s_provisioner.rs:606
↓ 1 callersFunctioncreateActionRouter
(bridge, webhookManager, messageStore)
catalog/communication/:whatsapp/bridge/sidecar/src/actions.js:10
↓ 1 callersFunctioncreateBridge
(authDir, webhookManager, messageStore)
catalog/communication/:whatsapp/bridge/sidecar/src/bridge.js:15
↓ 1 callersFunctioncreateProjectStore
()
dashboard/src/lib/stores/projects.ts:17
↓ 1 callersFunctioncreate_sandbox_with_retry
Call `POST /sandboxes` with exponential backoff on 429 Too Many Requests, then parse the three fields we need. If the HTTP succeeds but the body is mi
catalog/code/:exec/python/backend.rs:468
↓ 1 callersFunctiondecryptInlineBody
(body: string)
dashboard/src/lib/server/crypto.ts:293
↓ 1 callersFunctiondelete_instance_resources
Delete all K8s resources for an instance by label selector. Deletes Deployments, Services, and PVCs matching the instance label. Waits for all resourc
crates/weft-core/src/k8s_provisioner.rs:171
↓ 1 callersFunctiondelete_single_resource
( client: &Client, namespace: &str, api_version: &str, kind: &str, name: &str, )
crates/weft-core/src/k8s_provisioner.rs:566
↓ 1 callersFunctionderive_ports_from_form_fields
Derive input and output ports from a node's config.fields using form field specs. Mirrors the frontend's deriveInputsFromFields / deriveOutputsFromFie
crates/weft-nodes/src/enrich.rs:376
↓ 1 callersFunctiondispatchAction
(action, payload)
sidecars/examples/javascript/src/index.js:41
↓ 1 callersFunctiondispatch_action
( state: &AppState, action: &str, payload: serde_json::Value, )
sidecars/examples/rust/src/main.rs:64
↓ 1 callersMethoddispatch_action
( &self, action: &str, payload: serde_json::Value, )
catalog/storage/:postgres/database/sidecar/src/main.rs:190
↓ 1 callersMethoddo_stop
( &self, ctx: ObjectContext<'_>, )
crates/weft-core/src/infrastructure.rs:483
↓ 1 callersMethoddo_terminate
( &self, ctx: ObjectContext<'_>, )
crates/weft-core/src/infrastructure.rs:565
↓ 1 callersFunctione2b_semaphore
Global per-replica concurrency gate for E2B sandbox creation. Enforced across all concurrent ExecPython executions in a single node-runner process. Si
catalog/code/:exec/python/backend.rs:77
↓ 1 callersFunctionemit_expand_port
Emit an Expand output port: split the array value into N child-lane pulses. Null is treated as [null] (one child lane with null data) so downstream Ga
crates/weft-core/src/executor_core.rs:1288
↓ 1 callersFunctionencryptInlineBody
(body: string, sensitiveKeys: Set<string>)
dashboard/src/lib/server/crypto.ts:275
↓ 1 callersFunctionensure_namespace
Ensure a K8s namespace exists for a user. Creates it with ResourceQuota, LimitRange, and NetworkPolicy if it doesn't exist yet. Namespace format: `wm
crates/weft-core/src/k8s_provisioner.rs:360
↓ 1 callersFunctionexec_in_sandbox
( client: &reqwest::Client, sandbox_id: &str, envd_token: &str, traffic_token: Option<&str>,
catalog/code/:exec/python/backend.rs:657
↓ 1 callersFunctionexecute_dispatch_work
Execute collected dispatch work items. Does NOT hold the per-execution mutex. All dispatch setup (instance lookup, infra endpoints) runs concurrently
crates/weft-orchestrator/src/executor_axum.rs:1388
↓ 1 callersFunctionexpandGroupsForValidation
Expand Group nodes into Passthrough pairs for validation. * Mirrors the backend compiler's flatten logic: * - Group → {id}__in Passthrough + {id}_
dashboard/src/lib/ai/weft-parser.ts:3285
↓ 1 callersFunctionexpandNodeToMultiLine
Expand a one-liner or bare node declaration into multi-line form. This is * a pure source transformation: the parsed semantics are unchanged, but *
dashboard/src/lib/ai/weft-editor.ts:417
↓ 1 callersFunctionexpand_recursive
Input preprocessing: mutate the pulse table in-place so that all Pending pulses on a node end up at compatible lane depths before readiness checking.
crates/weft-core/src/executor_core.rs:370
↓ 1 callersFunctionextractAllLoomBlocks
* Extract all loom code blocks from an LLM response. Accepts both 4-backtick * (canonical) and 3-backtick (regression-friendly) fences, and tolerates
dashboard/src/lib/ai/loom-parser.ts:233
↓ 1 callersFunctionextractAllWeftBlocks
(text: string)
dashboard/src/lib/ai/weft-parser.ts:3010
↓ 1 callersFunctionextractInfraSubgraph
( nodes: NodeInstance[], edges: Edge[], )
dashboard/src/lib/utils/infra-subgraph.ts:12
↓ 1 callersFunctionextractMessageContent
* Extract content from a WhatsApp message. * Returns { content, audio, messageType } where content and audio are * mutually exclusive (one is always
catalog/communication/:whatsapp/bridge/sidecar/src/bridge.js:259
↓ 1 callersFunctionextractPortNamesFromArrow
Extract port names from a -> (...) text fragment.
dashboard/src/lib/ai/weft-editor.ts:1192
↓ 1 callersFunctionextractPostConfigPortNames
Extract port names from a post-config -> (...) block, if present.
dashboard/src/lib/ai/weft-editor.ts:1161
↓ 1 callersFunctionextractTextContent
(msg)
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:249
↓ 1 callersMethodextract_infra_subgraph
Extract the infrastructure sub-graph from this project. Walks backwards from every infrastructure node, collecting all upstream dependencies (Text no
crates/weft-core/src/project.rs:276
↓ 1 callersFunctionextract_star_imports
Hoist `from X import *` lines from module scope (column 0) to the top of the generated script, because Python 3 disallows them inside functions and we
catalog/code/:exec/python/backend.rs:324
↓ 1 callersFunctionfence
(code: string)
dashboard/src/lib/ai/weft-editor-matrix.test.ts:30
↓ 1 callersFunctionfetchPendingTasks
({ timeoutMs }: { timeoutMs?: number } = {})
extension/src/lib/api.ts:57
↓ 1 callersFunctionfilter_outputs_by_allowlist
Filter a `{ nodeId: { port: value } }` outputs blob through a deployment's `visitor_access.outputs` allowlist. Mirrors the function of the same name i
crates/weft-api/src/publish.rs:1565
↓ 1 callersMethodfindByMessageId
* Find a raw WAMessage by its messageId across all chats. * Used by the /media/:messageId endpoint to look up media for download.
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:116
↓ 1 callersFunctionfindConnection
Find a connection line using the parser.
dashboard/src/lib/ai/weft-editor.ts:122
↓ 1 callersFunctionfindMatchingBraceOnLine
Find the position of the `}` that matches the opening `{` at the start * of `s`. Respects string literals so `{`/`}` inside quotes don't break * m
dashboard/src/lib/ai/weft-parser.ts:879
↓ 1 callersFunctionfindNode
Find a node by ID (possibly scoped like "grp.worker") using the parser.
dashboard/src/lib/ai/weft-editor.ts:72
↓ 1 callersFunctionfind_instance_by_id_via_restate
(state: &SharedState, instance_id: &str)
crates/weft-orchestrator/src/executor_axum.rs:1793
↓ 1 callersFunctionfind_instance_via_restate
(state: &SharedState, node_type: &str)
crates/weft-orchestrator/src/executor_axum.rs:1788
↓ 1 callersFunctionfind_matching_brace_on_line
Find the position of the `}` that matches the opening `{` at the start of `s`. Respects string literals so that `{` or `}` inside quotes don't break m
crates/weft-core/src/weft_compiler.rs:2557
↓ 1 callersFunctionfind_normal_ready_groups
Find ready groups for a node. Pulses on Gather input ports that haven't been gathered yet (still at child-lane depth) are excluded. Only the parent-la
crates/weft-core/src/executor_core.rs:697
↓ 1 callersFunctionfire_node_failed
(state: &SharedState, execution_id: &str, node_id: &str, pulse_id: &str, error: &str)
crates/weft-orchestrator/src/executor_axum.rs:1673
↓ 1 callersFunctionfirstBraceHasContentAfter
True if the first `{` in `s` is followed by real config content on the * same line (not just whitespace or a trailing `#` comment). Mirrors the *
dashboard/src/lib/ai/weft-parser.ts:537
↓ 1 callersFunctionflatten
(state: ParseState, project_id: Uuid)
crates/weft-core/src/weft_compiler.rs:1996
↓ 1 callersFunctionflatten_group
( group: &ParsedGroup, nodes: &mut Vec<NodeDefinition>, edges: &mut Vec<Edge>, )
crates/weft-core/src/weft_compiler.rs:2055
↓ 1 callersMethodflushSync
Flush immediately (e.g. on shutdown).
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:165
↓ 1 callersMethodform_field_specs
Form field specs for hasFormSchema nodes. Each spec maps a field type to the input/output ports it contributes. Used by enrichment to derive ports fro
crates/weft-nodes/src/node.rs:995
↓ 1 callersMethodform_field_specs
(&self)
catalog/feedback/:human/query/backend.rs:222
↓ 1 callersFunctionformatLayoutStr
(x: number, y: number, w?: number, h?: number, expanded?: boolean | null)
dashboard/src/lib/ai/weft-editor.ts:1590
↓ 1 callersFunctiongenerate_instance_id
Generate a unique instance ID for this process
crates/weft-api/src/trigger_store.rs:612
↓ 1 callersFunctiongenerate_token_id
(username: &str, key_name: &str)
crates/weft-api/src/extension_tokens.rs:56
↓ 1 callersFunctiongetBackendUrl
()
dashboard/src/routes/api/ext/[token]/triggers/[triggerTaskId]/submit/+server.ts:5
↓ 1 callersFunctiongetBackendUrl
()
dashboard/src/routes/api/ext/[token]/tasks/+server.ts:8
↓ 1 callersFunctiongetBackendUrl
()
dashboard/src/routes/api/ext/[token]/tasks/[executionId]/complete/+server.ts:7
↓ 1 callersFunctiongetBackendUrl
()
dashboard/src/routes/api/ext/[token]/health/+server.ts:7
↓ 1 callersFunctiongetBackendUrl
()
dashboard/src/routes/api/ext/[token]/cleanup/all/+server.ts:5
↓ 1 callersFunctiongetBackendUrl
()
dashboard/src/routes/api/ext/[token]/cleanup/execution/[executionId]/+server.ts:5
↓ 1 callersMethodgetChatIds
* Get all chatIds that have stored messages.
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:108
↓ 1 callersFunctiongetConnectedInputs
* Get the set of connected input port names for a node.
dashboard/src/lib/validation.ts:23
↓ 1 callersFunctiongetExecutionOwnerInternal
(id: string)
dashboard/src/lib/server/db.ts:702
↓ 1 callersFunctiongetGroupDepth
(groupId: string)
dashboard/src/lib/ai/weft-parser.ts:5345
↓ 1 callersFunctiongetPool
()
dashboard/src/lib/server/db.ts:8
↓ 1 callersFunctiongetProjectsApiUrl
()
dashboard/src/lib/stores/projects.ts:13
↓ 1 callersMethodgetRawMessages
* Get the last `count` raw WAMessages for a chat, oldest first.
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:83
↓ 1 callersFunctiongetRestateUrl
()
dashboard/src/lib/config.ts:44
↓ 1 callersFunctiongetTestConfig
(id: string, userId: string)
dashboard/src/lib/server/db.ts:794
↓ 1 callersFunctionget_balance
Get a user's current credit balance. Returns 0.0 if user has no credits row.
crates/weft-api/src/usage_store.rs:712
↓ 1 callersFunctionget_daily_usage
( pool: &PgPool, userId: &str, fromDate: chrono::NaiveDate, toDate: chrono::NaiveDate, )
crates/weft-api/src/usage_store.rs:603
↓ 1 callersFunctionget_execution_base_cost
Get execution base cost for a user. Priority: subscription custom_execution_base_cost > tier execution_base_cost > default. Panics if an enterprise us
crates/weft-api/src/usage_store.rs:180
↓ 1 callersFunctionget_infra_endpoint_urls_via_restate
(state: &SharedState, project_id: &str)
crates/weft-orchestrator/src/executor_axum.rs:1799
↓ 1 callersFunctionget_trigger_pending_actions_by_project
Get all pending actions for triggers belonging to a project.
crates/weft-api/src/trigger_store.rs:568
↓ 1 callersMethodgmail_fetch_thrid
(&mut self, uid: u32)
catalog/communication/:email/lib.rs:44
↓ 1 callersFunctiongroupPortY
Compute port Y position for expanded groups (side ports)
dashboard/src/lib/ai/weft-parser.ts:4942
↓ 1 callersFunctiongroupToLocation
Derive a GroupLocation from a ParsedGroup and the lines array. * Parser line numbers are 1-based, editor uses 0-based.
dashboard/src/lib/ai/weft-editor.ts:50
↓ 1 callersFunctionguessMimeType
(filename: string)
dashboard/src/lib/utils/blob-upload.ts:278
↓ 1 callersFunctionguess_mimetype
(url: &str)
catalog/data/media/image/backend.rs:28
↓ 1 callersFunctionguess_mimetype
(url: &str)
catalog/data/media/audio/backend.rs:25
↓ 1 callersFunctionguess_mimetype
(url: &str)
catalog/data/media/document/backend.rs:37
↓ 1 callersFunctionguess_mimetype
(url: &str)
catalog/data/media/video/backend.rs:24
↓ 1 callersFunctionhandler
({ syncType })
catalog/communication/:whatsapp/bridge/sidecar/src/bridge.js:223
↓ 1 callersFunctionhasTypeVarInParsed
(t: import('$lib/types').WeftType)
dashboard/src/lib/ai/weft-parser.ts:3149
↓ 1 callersFunctionindent_code
(code: &str, indent: &str)
catalog/code/:exec/python/backend.rs:353
↓ 1 callersFunctioninitApp
()
extension/src/entrypoints/popup/main.ts:6
↓ 1 callersFunctioninitDb
()
dashboard/src/lib/server/db.ts:41
↓ 1 callersFunctioninitExecutionsTable
()
dashboard/src/lib/server/db.ts:588
↓ 1 callersFunctioninitTestConfigsTable
()
dashboard/src/lib/server/db.ts:754
← previousnext →401–500 of 1,915, ranked by callers