MCPcopy Create free account

hub / github.com/WeaveMindAI/weft / functions

Functions1,915 in github.com/WeaveMindAI/weft

↓ 3 callersFunctionexpandOneLinerGroup
Expand a one-liner group to multi-line format.
dashboard/src/lib/ai/weft-editor.ts:165
↓ 3 callersFunctionextractSizingAttrs
* 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 callersFunctionfindNodeScoped
Find a node by its potentially scoped ID (e.g. Group.Group_2.debug_1).
dashboard/src/lib/ai/weft-editor.ts:160
↓ 3 callersFunctiongetSessionUrl
()
dashboard/src/lib/config.ts:17
↓ 3 callersMethodget_outgoing
(&self, project: &'a ProjectDefinition, node_id: &str)
crates/weft-core/src/project.rs:199
↓ 3 callersFunctionhuman_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 callersMethodinfra_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 callersFunctioninfra_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 callersFunctionisBrickKind
(s: string)
dashboard/src/lib/ai/loom-parser.ts:480
↓ 3 callersFunctionisEncrypted
(value: string)
dashboard/src/lib/server/crypto.ts:77
↓ 3 callersFunctionisMustOverride
(portType: PortType)
dashboard/src/lib/ai/weft-parser.ts:3134
↓ 3 callersFunctionis_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 callersFunctionlooksLikeJson
Check if a line looks like it could be JSON content (not Weft syntax).
dashboard/src/lib/ai/weft-parser.ts:80
↓ 3 callersFunctionparseBlockList
* 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 callersFunctionparseInlineDotPort
Parse a `.portName` suffix. Returns the port name on success.
dashboard/src/lib/ai/weft-parser.ts:903
↓ 3 callersFunctionparseItemVariant
(raw: string | undefined)
dashboard/src/lib/ai/loom-parser.ts:164
↓ 3 callersFunctionparse_form_fields
(config: &serde_json::Value)
catalog/feedback/:human/query/backend.rs:40
↓ 3 callersFunctionparse_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 callersFunctionparse_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 callersMethodregister_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 callersFunctionremoveConnectionsReferencing
Remove all connection lines that reference a given identifier (as source or target).
dashboard/src/lib/ai/weft-editor.ts:186
↓ 3 callersFunctionrequire_user_or_admin
( headers: &HeaderMap, user_id: &str, )
crates/weft-api/src/routes.rs:84
↓ 3 callersMethodstop
(&mut self)
crates/weft-nodes/src/node.rs:425
↓ 3 callersFunctionstore_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 callersFunctiontryParsePortLine
( trimmedRaw: string, section: 'in' | 'out' | null, inPorts: ParsedInterfacePort[], outPorts: ParsedInterf
dashboard/src/lib/ai/weft-parser.ts:228
↓ 3 callersFunctiontry_extract_label
(s: &str)
crates/weft-core/src/weft_compiler.rs:1783
↓ 3 callersMethoduid_search
(&mut self, query: &str)
catalog/communication/:email/lib.rs:23
↓ 3 callersFunctionunescapeWeftString
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 callersFunctionunpackResolve
(outputs: PortDefinition[])
dashboard/src/lib/ai/type-validation.test.ts:267
↓ 3 callersFunctionupdateProjectMeta
(code: string, name?: string, description?: string)
dashboard/src/lib/ai/weft-editor.ts:1500
↓ 3 callersFunctionvalidateNode
( node: NodeInstance, allNodes: NodeInstance[], allEdges: Edge[] )
dashboard/src/lib/validation.ts:36
↓ 2 callersMethod_flushToDisk
()
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:183
↓ 2 callersFunctionaddInput
(nodeId: string, fieldKey: string)
dashboard/src/lib/ai/sanitize.ts:104
↓ 2 callersFunctionaddOutput
(nodeId: string, portName: string)
dashboard/src/lib/ai/sanitize.ts:107
↓ 2 callersFunctionadmin_email
()
crates/weft-api/src/routes.rs:58
↓ 2 callersFunctionarrangeDisconnectedComponents
( comps: string[][], padding: { top: number; left: number; bottom: number; right: number }, )
dashboard/src/lib/ai/weft-parser.ts:5048
↓ 2 callersFunctionbuildFieldLines
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 callersFunctionbuildNodeInstance
(node: ParsedNode, parentIdOverride?: string)
dashboard/src/lib/ai/weft-parser.ts:4167
↓ 2 callersFunctionbuildScopeChain
(parentId: string | undefined)
dashboard/src/lib/ai/weft-parser.ts:352
↓ 2 callersFunctionbuildSignature
Build the port signature string: `(port1: T, port2: T?) -> (out1: T)`
dashboard/src/lib/ai/weft-editor.ts:1060
↓ 2 callersFunctionbuild_form_schema
( raw_fields: &[serde_json::Value], input: &serde_json::Value, specs: &[FormFieldSpec], )
catalog/feedback/:human/query/backend.rs:50
↓ 2 callersFunctionbuild_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 callersFunctionbuild_tls_connector
(accept_invalid: bool)
catalog/communication/:email/lib.rs:121
↓ 2 callersFunctionbuild_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 callersMethodcancel
Remove a pending channel without resolving (e.g., on cancellation).
crates/weft-nodes/src/form_input.rs:79
↓ 2 callersFunctioncheck_and_notify_inmem
( state: &SharedState, execution_id: &str, imm: &ExecImmutable, mt: &ExecMutable, )
crates/weft-orchestrator/src/executor_axum.rs:1632
↓ 2 callersFunctioncheck_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 callersFunctionclaim_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 callersFunctioncleanup_tasks_inner
( state: Arc<AppState>, token: String, execution_id_filter: Option<String>, )
crates/weft-api/src/extension_api.rs:480
↓ 2 callersMethodclient
(&self)
crates/weft-nodes/src/runner.rs:101
↓ 2 callersFunctioncoerceConfigValues
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 callersFunctioncollect_bodies
( session: &mut async_imap::Session<T>, uid_set: &str, )
catalog/communication/:email/lib.rs:59
↓ 2 callersFunctioncollect_declaration_header_impl
( lines: &[&str], start: usize, after_type: &str, collect_unclosed_body: bool, )
crates/weft-core/src/weft_compiler.rs:645
↓ 2 callersFunctioncollect_list
( session: &mut async_imap::Session<T>, reference: Option<&str>, pattern: Option<&str>, )
catalog/communication/:email/lib.rs:76
↓ 2 callersFunctioncompat
(src: &WeftType, dst: &WeftType)
crates/weft-core/tests/type_system.rs:12
↓ 2 callersFunctioncomplete_task_via_restate
(state: &SharedState, callback_id: &str)
crates/weft-orchestrator/src/executor_axum.rs:1746
↓ 2 callersMethodconfig_u64
Read a config value as u64 with coercion and fallback default.
crates/weft-nodes/src/node.rs:539
↓ 2 callersFunctiondecrypt
(encryptedStr: string)
dashboard/src/lib/server/crypto.ts:55
↓ 2 callersFunctiondecrypt_credentials
Decrypt credentials from base64-encoded ciphertext. Returns the decrypted JSON value.
crates/weft-api/src/crypto.rs:88
↓ 2 callersFunctiondedent
(s: &str)
crates/weft-core/src/weft_compiler.rs:1766
↓ 2 callersFunctiondelete_sandbox
(client: &reqwest::Client, api_key: &str, sandbox_id: &str)
catalog/code/:exec/python/backend.rs:442
↓ 2 callersFunctiondispatch_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 callersFunctiondistance
(a: string, b: string)
dashboard/src/lib/ai/weft-parser.ts:15
↓ 2 callersFunctiondoEmit
(eventName: string, properties: Record<string, unknown>, timestamp: string)
dashboard/src/lib/telemetry.ts:41
↓ 2 callersFunctionedgeList
(code: string)
dashboard/src/lib/ai/weft-editor-matrix.test.ts:62
↓ 2 callersFunctionemit_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 callersFunctionemit_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 callersFunctionextractInlineBodySpan
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 callersFunctionextractPortNamesFromText
Extract port names from text containing -> (name: Type, ...).
dashboard/src/lib/ai/weft-editor.ts:1208
↓ 2 callersFunctionextractPorts
(text: string)
dashboard/src/lib/ai/weft-editor.ts:1126
↓ 2 callersFunctionextractSignaturePortNames
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 callersFunctionextractSubgraph
( nodes: NodeInstance[], edges: Edge[], options: SubgraphOptions, )
dashboard/src/lib/utils/subgraph.ts:26
↓ 2 callersFunctionextractTypeVarBindings
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 callersFunctionextract_bracket_content
Extract content of [...] after keyword, handling nested brackets.
scripts/audit_nodes.py:38
↓ 2 callersMethodextract_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 callersMethodextract_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 callersFunctionextract_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 callersFunctionfetch_gmail_thrid
( session: &mut async_imap::Session<T>, uid: u32, )
catalog/communication/:email/lib.rs:92
↓ 2 callersFunctionfindConnectedComponents
(nodeIds: Set<string>, scopeId: string)
dashboard/src/lib/ai/weft-parser.ts:4980
↓ 2 callersFunctionfindMatchingParen
(text: string, startIdx: number)
dashboard/src/lib/ai/weft-parser.ts:2219
↓ 2 callersFunctionfindParsedNode
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 callersFunctionfirst_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 callersFunctionformatBytes
(bytes: number)
dashboard/src/lib/utils/blob-upload.ts:322
↓ 2 callersFunctionformatConfigValue
Format a config value for Weft syntax.
dashboard/src/lib/ai/weft-editor.ts:291
↓ 2 callersFunctionformatNodeEntry
Format a CatalogNode into the same text format the backend uses for the builder prompt
dashboard/src/lib/ai/node-catalog.ts:124
↓ 2 callersFunctiongetAllowedOrigins
()
dashboard/src/hooks.server.ts:106
↓ 2 callersFunctiongetAuthHeaders
()
dashboard/src/lib/config.ts:83
↓ 2 callersFunctiongetEncryptionKey
()
dashboard/src/lib/server/crypto.ts:19
↓ 2 callersMethodgetOldestMessage
* Get the oldest raw WAMessage for a chat (needed as cursor for fetchMessageHistory).
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:92
↓ 2 callersFunctiongetScope
(nodeId: string)
dashboard/src/lib/ai/weft-parser.ts:4829
↓ 2 callersFunctiongetSensitiveKeys
* 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 callersFunctiongetSettings
()
extension/src/entrypoints/background.ts:16
↓ 2 callersFunctionget_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 callersMethodget_incoming
(&self, project: &'a ProjectDefinition, node_id: &str)
crates/weft-core/src/project.rs:205
↓ 2 callersFunctionget_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 callersFunctionget_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 callersFunctionhuman_metadata
Metadata tag for human-facing forms. Used by both HumanQuery and HumanTrigger.
catalog/feedback/:human/query/backend.rs:36
↓ 2 callersFunctionincrement_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 callersFunctioninfra_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 callersFunctioninfra_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
← previousnext →201–300 of 1,915, ranked by callers