Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WeaveMindAI/weft
/ functions
Functions
1,915 in github.com/WeaveMindAI/weft
⨍
Functions
1,915
◇
Types & classes
353
↓ 3 callers
Function
expandOneLinerGroup
Expand a one-liner group to multi-line format.
dashboard/src/lib/ai/weft-editor.ts:165
↓ 3 callers
Function
extractSizingAttrs
* Pick the sizing attributes (height, minHeight, maxHeight, width, chrome) * out of an attrs map. These apply to fields and outputs.
dashboard/src/lib/ai/loom-parser.ts:207
↓ 3 callers
Function
findNodeScoped
Find a node by its potentially scoped ID (e.g. Group.Group_2.debug_1).
dashboard/src/lib/ai/weft-editor.ts:160
↓ 3 callers
Function
getSessionUrl
()
dashboard/src/lib/config.ts:17
↓ 3 callers
Method
get_outgoing
(&self, project: &'a ProjectDefinition, node_id: &str)
crates/weft-core/src/project.rs:199
↓ 3 callers
Function
human_form_field_specs
Human form field specs shared by HumanQuery and HumanTrigger. Must stay in sync with HUMAN_FORM_FIELD_SPECS in frontend.ts.
catalog/feedback/:human/query/backend.rs:127
↓ 3 callers
Method
infra_client
Get a ready-to-use InfraClient for an infrastructure sidecar. `endpoint_url` is the sidecar's action endpoint URL, received through edges from the in
crates/weft-nodes/src/node.rs:896
↓ 3 callers
Function
infra_instance_id
Compute the infrastructure instance ID for a given project and node. K8s label values are capped at 63 bytes, so we truncate the UUIDs. Format: wf-{12
crates/weft-core/src/infrastructure.rs:22
↓ 3 callers
Function
isBrickKind
(s: string)
dashboard/src/lib/ai/loom-parser.ts:480
↓ 3 callers
Function
isEncrypted
(value: string)
dashboard/src/lib/server/crypto.ts:77
↓ 3 callers
Function
isMustOverride
(portType: PortType)
dashboard/src/lib/ai/weft-parser.ts:3134
↓ 3 callers
Function
is_brace_balanced_respecting_quotes_and_backticks
True if `s` has matched `{`/`}` at depth 0, respecting quoted strings and triple-backtick code blocks. Used to know when a multi-line `{ ... }` one-li
crates/weft-core/src/weft_compiler.rs:794
↓ 3 callers
Function
looksLikeJson
Check if a line looks like it could be JSON content (not Weft syntax).
dashboard/src/lib/ai/weft-parser.ts:80
↓ 3 callers
Function
parseBlockList
* Parse a sequence of blocks until we hit a line that's just `}` (end of our * enclosing block) or EOF. Returns the parsed blocks and advances state.
dashboard/src/lib/ai/loom-parser.ts:508
↓ 3 callers
Function
parseInlineDotPort
Parse a `.portName` suffix. Returns the port name on success.
dashboard/src/lib/ai/weft-parser.ts:903
↓ 3 callers
Function
parseItemVariant
(raw: string | undefined)
dashboard/src/lib/ai/loom-parser.ts:164
↓ 3 callers
Function
parse_form_fields
(config: &serde_json::Value)
catalog/feedback/:human/query/backend.rs:40
↓ 3 callers
Function
parse_inline_dot_port
Parse a `.portName` suffix. Accepts strings like `.text`, ` .text`, ` .text `. Rejects anything with extra characters after the port name.
crates/weft-core/src/weft_compiler.rs:2589
↓ 3 callers
Function
parse_kv
( s: &str, config: &mut serde_json::Map<String, serde_json::Value>, line: usize, errors: &mut
crates/weft-core/src/weft_compiler.rs:1885
↓ 3 callers
Method
register_trigger
Register and start a trigger using the NodeTypeRegistry. The config must contain a `nodeType` field specifying which node to use. The service looks u
crates/weft-nodes/src/trigger_service.rs:84
↓ 3 callers
Function
removeConnectionsReferencing
Remove all connection lines that reference a given identifier (as source or target).
dashboard/src/lib/ai/weft-editor.ts:186
↓ 3 callers
Function
require_user_or_admin
( headers: &HeaderMap, user_id: &str, )
crates/weft-api/src/routes.rs:84
↓ 3 callers
Method
stop
(&mut self)
crates/weft-nodes/src/node.rs:425
↓ 3 callers
Function
store_config_value
( key: &str, value: &str, config: &mut serde_json::Map<String, serde_json::Value>, line_num: u
crates/weft-core/src/weft_compiler.rs:1740
↓ 3 callers
Function
tryParsePortLine
( trimmedRaw: string, section: 'in' | 'out' | null, inPorts: ParsedInterfacePort[], outPorts: ParsedInterf
dashboard/src/lib/ai/weft-parser.ts:228
↓ 3 callers
Function
try_extract_label
(s: &str)
crates/weft-core/src/weft_compiler.rs:1783
↓ 3 callers
Method
uid_search
(&mut self, query: &str)
catalog/communication/:email/lib.rs:23
↓ 3 callers
Function
unescapeWeftString
Unescape backslash sequences inside a quoted string, mirroring the * backend's weft_compiler::unescape helper: \n \t \r \" \\ are decoded, * unkno
dashboard/src/lib/ai/weft-parser.ts:390
↓ 3 callers
Function
unpackResolve
(outputs: PortDefinition[])
dashboard/src/lib/ai/type-validation.test.ts:267
↓ 3 callers
Function
updateProjectMeta
(code: string, name?: string, description?: string)
dashboard/src/lib/ai/weft-editor.ts:1500
↓ 3 callers
Function
validateNode
( node: NodeInstance, allNodes: NodeInstance[], allEdges: Edge[] )
dashboard/src/lib/validation.ts:36
↓ 2 callers
Method
_flushToDisk
()
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:183
↓ 2 callers
Function
addInput
(nodeId: string, fieldKey: string)
dashboard/src/lib/ai/sanitize.ts:104
↓ 2 callers
Function
addOutput
(nodeId: string, portName: string)
dashboard/src/lib/ai/sanitize.ts:107
↓ 2 callers
Function
admin_email
()
crates/weft-api/src/routes.rs:58
↓ 2 callers
Function
arrangeDisconnectedComponents
( comps: string[][], padding: { top: number; left: number; bottom: number; right: number }, )
dashboard/src/lib/ai/weft-parser.ts:5048
↓ 2 callers
Function
buildFieldLines
Build the source-line array for `<indent><prefix><formattedValue>`. The * formatted value may be multi-line (heredoc or pretty-printed JSON/list).
dashboard/src/lib/ai/weft-editor.ts:472
↓ 2 callers
Function
buildNodeInstance
(node: ParsedNode, parentIdOverride?: string)
dashboard/src/lib/ai/weft-parser.ts:4167
↓ 2 callers
Function
buildScopeChain
(parentId: string | undefined)
dashboard/src/lib/ai/weft-parser.ts:352
↓ 2 callers
Function
buildSignature
Build the port signature string: `(port1: T, port2: T?) -> (out1: T)`
dashboard/src/lib/ai/weft-editor.ts:1060
↓ 2 callers
Function
build_form_schema
( raw_fields: &[serde_json::Value], input: &serde_json::Value, specs: &[FormFieldSpec], )
catalog/feedback/:human/query/backend.rs:50
↓ 2 callers
Function
build_scope_chain
Build the scope chain for a group ID. "outer.inner" → ["outer", "outer.inner"] "mygroup" → ["mygroup"]
crates/weft-core/src/weft_compiler.rs:2046
↓ 2 callers
Function
build_tls_connector
(accept_invalid: bool)
catalog/communication/:email/lib.rs:121
↓ 2 callers
Function
build_user_block
Shared prelude: turns inputs into Python variables and wraps the user code in a function so `return` works. `from X import *` lines are hoisted to mod
catalog/code/:exec/python/backend.rs:206
↓ 2 callers
Method
cancel
Remove a pending channel without resolving (e.g., on cancellation).
crates/weft-nodes/src/form_input.rs:79
↓ 2 callers
Function
check_and_notify_inmem
( state: &SharedState, execution_id: &str, imm: &ExecImmutable, mt: &ExecMutable, )
crates/weft-orchestrator/src/executor_axum.rs:1632
↓ 2 callers
Function
check_completion
Check if the project has settled. Complete when: no Pending pulses AND no Running/WaitingForInput NodeExecutions. Returns Some(any_failed) if complete
crates/weft-core/src/executor_core.rs:1562
↓ 2 callers
Function
claim_pending_triggers
Claim pending triggers for this instance (atomic operation) Returns triggers that were successfully claimed
crates/weft-api/src/trigger_store.rs:183
↓ 2 callers
Function
cleanup_tasks_inner
( state: Arc<AppState>, token: String, execution_id_filter: Option<String>, )
crates/weft-api/src/extension_api.rs:480
↓ 2 callers
Method
client
(&self)
crates/weft-nodes/src/runner.rs:101
↓ 2 callers
Function
coerceConfigValues
Coerce config values to match the types expected by the node template. * Uses field definitions (type: 'number', 'textarea', etc.) and output port
dashboard/src/lib/ai/weft-parser.ts:3058
↓ 2 callers
Function
collect_bodies
( session: &mut async_imap::Session<T>, uid_set: &str, )
catalog/communication/:email/lib.rs:59
↓ 2 callers
Function
collect_declaration_header_impl
( lines: &[&str], start: usize, after_type: &str, collect_unclosed_body: bool, )
crates/weft-core/src/weft_compiler.rs:645
↓ 2 callers
Function
collect_list
( session: &mut async_imap::Session<T>, reference: Option<&str>, pattern: Option<&str>, )
catalog/communication/:email/lib.rs:76
↓ 2 callers
Function
compat
(src: &WeftType, dst: &WeftType)
crates/weft-core/tests/type_system.rs:12
↓ 2 callers
Function
complete_task_via_restate
(state: &SharedState, callback_id: &str)
crates/weft-orchestrator/src/executor_axum.rs:1746
↓ 2 callers
Method
config_u64
Read a config value as u64 with coercion and fallback default.
crates/weft-nodes/src/node.rs:539
↓ 2 callers
Function
decrypt
(encryptedStr: string)
dashboard/src/lib/server/crypto.ts:55
↓ 2 callers
Function
decrypt_credentials
Decrypt credentials from base64-encoded ciphertext. Returns the decrypted JSON value.
crates/weft-api/src/crypto.rs:88
↓ 2 callers
Function
dedent
(s: &str)
crates/weft-core/src/weft_compiler.rs:1766
↓ 2 callers
Function
delete_sandbox
(client: &reqwest::Client, api_key: &str, sandbox_id: &str)
catalog/code/:exec/python/backend.rs:442
↓ 2 callers
Function
dispatch_node_inmem
Dispatch a single node execution. Does NOT hold the per-execution mutex. Instance lookup uses the shared cache on ExecutorState (DashMap, lock-free).
crates/weft-orchestrator/src/executor_axum.rs:1423
↓ 2 callers
Function
distance
(a: string, b: string)
dashboard/src/lib/ai/weft-parser.ts:15
↓ 2 callers
Function
doEmit
(eventName: string, properties: Record<string, unknown>, timestamp: string)
dashboard/src/lib/telemetry.ts:41
↓ 2 callers
Function
edgeList
(code: string)
dashboard/src/lib/ai/weft-editor-matrix.test.ts:62
↓ 2 callers
Function
emit_pulses_on_edges
Low-level edge emitter: emit pulses on outgoing edges. No laneMode awareness: routes values from the output object to downstream targets as single pul
crates/weft-core/src/executor_core.rs:1443
↓ 2 callers
Function
emit_single_port
Emit a Single output port value on all downstream edges from this port. One pulse per edge at the current lane.
crates/weft-core/src/executor_core.rs:1270
↓ 2 callers
Function
extractInlineBodySpan
Locate the inline body `{ ... }` span inside a single line of source. * Handles three line shapes (all are one-liner anons): * * normal
dashboard/src/lib/ai/weft-editor.ts:213
↓ 2 callers
Function
extractPortNamesFromText
Extract port names from text containing -> (name: Type, ...).
dashboard/src/lib/ai/weft-editor.ts:1208
↓ 2 callers
Function
extractPorts
(text: string)
dashboard/src/lib/ai/weft-editor.ts:1126
↓ 2 callers
Function
extractSignaturePortNames
Extract old port names from the declaration line(s) signature. * Parses `(name1: T, name2: T?) -> (out1: T)` from the header.
dashboard/src/lib/ai/weft-editor.ts:1073
↓ 2 callers
Function
extractSubgraph
( nodes: NodeInstance[], edges: Edge[], options: SubgraphOptions, )
dashboard/src/lib/utils/subgraph.ts:26
↓ 2 callers
Function
extractTypeVarBindings
Extract TypeVar bindings by structurally matching a pattern against a concrete type. * E.g. pattern List[T] + concrete List[Dict[String, Number]] →
dashboard/src/lib/ai/weft-parser.ts:3188
↓ 2 callers
Function
extract_bracket_content
Extract content of [...] after keyword, handling nested brackets.
scripts/audit_nodes.py:38
↓ 2 callers
Method
extract_subgraph
Backward-BFS subgraph extraction. Starting from `seed_ids`, walks backwards along incoming edges to collect all upstream dependencies. Optionally val
crates/weft-core/src/project.rs:219
↓ 2 callers
Method
extract_trigger_setup_subgraph
Extract the trigger setup sub-graph for a specific trigger node. Walks backwards from the trigger node, collecting all upstream dependencies (Config
crates/weft-core/src/project.rs:315
↓ 2 callers
Function
extract_type_var_bindings
Extract TypeVar bindings by structurally matching a pattern (with TypeVars) against a concrete type. E.g. pattern List[T] + concrete List[Dict[String,
crates/weft-nodes/src/enrich.rs:606
↓ 2 callers
Function
fetch_gmail_thrid
( session: &mut async_imap::Session<T>, uid: u32, )
catalog/communication/:email/lib.rs:92
↓ 2 callers
Function
findConnectedComponents
(nodeIds: Set<string>, scopeId: string)
dashboard/src/lib/ai/weft-parser.ts:4980
↓ 2 callers
Function
findMatchingParen
(text: string, startIdx: number)
dashboard/src/lib/ai/weft-parser.ts:2219
↓ 2 callers
Function
findParsedNode
Find a ParsedNode by id, tolerating both scoped (`grp.host__data`) and * local (`host__data`) forms. Searches top-level nodes first, then inside *
dashboard/src/lib/ai/weft-editor.ts:319
↓ 2 callers
Function
first_brace_has_content_after
True if the first `{` in `s` is followed by real config content on the same line (not just whitespace or a trailing `#` comment). Used to distinguish
crates/weft-core/src/weft_compiler.rs:780
↓ 2 callers
Function
formatBytes
(bytes: number)
dashboard/src/lib/utils/blob-upload.ts:322
↓ 2 callers
Function
formatConfigValue
Format a config value for Weft syntax.
dashboard/src/lib/ai/weft-editor.ts:291
↓ 2 callers
Function
formatNodeEntry
Format a CatalogNode into the same text format the backend uses for the builder prompt
dashboard/src/lib/ai/node-catalog.ts:124
↓ 2 callers
Function
getAllowedOrigins
()
dashboard/src/hooks.server.ts:106
↓ 2 callers
Function
getAuthHeaders
()
dashboard/src/lib/config.ts:83
↓ 2 callers
Function
getEncryptionKey
()
dashboard/src/lib/server/crypto.ts:19
↓ 2 callers
Method
getOldestMessage
* Get the oldest raw WAMessage for a chat (needed as cursor for fetchMessageHistory).
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:92
↓ 2 callers
Function
getScope
(nodeId: string)
dashboard/src/lib/ai/weft-parser.ts:4829
↓ 2 callers
Function
getSensitiveKeys
* Get the set of config keys that are sensitive for a given node type. * A field is sensitive if its type is 'password' in the node template.
dashboard/src/lib/server/crypto.ts:85
↓ 2 callers
Function
getSettings
()
extension/src/entrypoints/background.ts:16
↓ 2 callers
Function
get_encryption_key
Get the encryption key from environment. Environment variable: CREDENTIAL_ENCRYPTION_KEY (base64-encoded 32-byte key) In cloud mode: PANICS if key i
crates/weft-api/src/crypto.rs:24
↓ 2 callers
Method
get_incoming
(&self, project: &'a ProjectDefinition, node_id: &str)
crates/weft-core/src/project.rs:205
↓ 2 callers
Function
get_node_binary_info
Returns the binary name and port env var for a node type. All node types use the same unified runner.
crates/weft-nodes/src/constants.rs:16
↓ 2 callers
Function
get_user_margin
Look up the margin multiplier for a user. Priority: subscription custom_margin > tier margin > 1.6 (free tier default). Panics on DB errors or misconf
crates/weft-api/src/usage_store.rs:23
↓ 2 callers
Function
human_metadata
Metadata tag for human-facing forms. Used by both HumanQuery and HumanTrigger.
catalog/feedback/:human/query/backend.rs:36
↓ 2 callers
Function
increment_setup_run_counter
Atomically increment the setup_run_counter. Returns the new counter value. Use set_setup_execution_id() afterwards to register the execution ID built
crates/weft-api/src/trigger_store.rs:513
↓ 2 callers
Function
infra_provision
Provision K8s resources for an infrastructure node during setup. Handles: resolve projectId/namespace, create K8s client, ensure namespace, apply man
crates/weft-nodes/src/infra_helpers.rs:74
↓ 2 callers
Function
infra_query_outputs
Query the sidecar's /outputs endpoint during normal project execution. Reads `_endpointUrl` from the node's input (injected by the executor), calls G
crates/weft-nodes/src/infra_helpers.rs:261
← previous
next →
201–300 of 1,915, ranked by callers