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
↓ 2 callers
Function
invalidateOrphanedConnections
Remove connections referencing ports that no longer exist.
dashboard/src/lib/ai/weft-editor.ts:1452
↓ 2 callers
Function
isReachable
(id: string)
dashboard/src/lib/ai/weft-parser.ts:4479
↓ 2 callers
Function
is_bare_ident
(s: &str)
crates/weft-core/src/weft_compiler.rs:1869
↓ 2 callers
Method
is_cancelled
Check if this execution has been cancelled by polling the executor. Derives the executor status URL from the callbackUrl (format: `{base}/ProjectExec
crates/weft-nodes/src/node.rs:602
↓ 2 callers
Function
layoutScope
(scopeId: string, children: NodeInstance[], padding: string)
dashboard/src/lib/ai/weft-parser.ts:5222
↓ 2 callers
Method
list
(&mut self, reference: Option<&str>, pattern: Option<&str>)
catalog/communication/:email/lib.rs:37
↓ 2 callers
Function
list_triggers_by_project
List triggers for a specific project
crates/weft-api/src/trigger_store.rs:370
↓ 2 callers
Function
local_port_for_instance
Derive a deterministic unique local port from an instance_id. Range: 10000-59999 (50000 slots, collision-resistant for typical projects).
crates/weft-nodes/src/infra_helpers.rs:53
↓ 2 callers
Method
logout
(&mut self)
catalog/communication/:email/lib.rs:51
↓ 2 callers
Function
looks_like_dotted_ref
A dotted ref is 2+ identifier segments joined by `.`, no quotes, no whitespace, no digits-only segments (so `3.14` is NOT a dotted ref). Used in inlin
crates/weft-core/src/weft_compiler.rs:2304
↓ 2 callers
Function
lookup_instance_with_retry
Retries an idempotent registry lookup with exponential backoff. Returns None only after all attempts fail (transient or "not found"). Distinguishing "
crates/weft-orchestrator/src/executor_axum.rs:1761
↓ 2 callers
Function
map_response_to_ports
Map form responses to output port values.
catalog/feedback/:human/query/backend.rs:91
↓ 2 callers
Function
materialize
(m: Record<string, Set<string>>)
dashboard/src/lib/ai/sanitize.ts:164
↓ 2 callers
Function
materialize_auto_type_vars
Replace every occurrence of the `T_Auto` marker in `port_type` with a key-scoped TypeVar like `T__{key}`. Other TypeVars (explicit `T`, `T1`, etc.) ar
crates/weft-nodes/src/enrich.rs:354
↓ 2 callers
Function
node_execution_summary
Summary status for a node derived from its executions. Returns a string like "completed" or "completed (15 completed, 15 failed)" for multi-execution
crates/weft-core/src/executor_core.rs:218
↓ 2 callers
Function
parseOutputSection
(arrowText: string)
dashboard/src/lib/ai/weft-parser.ts:2229
↓ 2 callers
Function
parseRawWeft
(weft: string)
dashboard/src/lib/ai/weft-parser.ts:3030
↓ 2 callers
Function
parseSingleType
(s: string)
dashboard/src/lib/types/index.ts:103
↓ 2 callers
Function
parseThemeBody
(state: ParseState)
dashboard/src/lib/ai/loom-parser.ts:619
↓ 2 callers
Function
parse_config_block_inner
( lines: &[&str], start: usize, base_line: usize, errors: &mut Vec<CompileError>, parent_i
crates/weft-core/src/weft_compiler.rs:1453
↓ 2 callers
Function
parse_gvk
(api_version: &str, kind: &str)
crates/weft-core/src/k8s_provisioner.rs:630
↓ 2 callers
Function
parse_port_signature
Parse `(inputs) -> (outputs)` or just `(inputs)` from a string starting with `(`. Returns (in_ports, out_ports, one_of_required, remaining_string).
crates/weft-core/src/weft_compiler.rs:848
↓ 2 callers
Function
parse_single_type
(s: &str)
crates/weft-core/src/weft_type.rs:404
↓ 2 callers
Function
parse_thread_message
(raw: &[u8])
catalog/communication/:email/thread/backend.rs:234
↓ 2 callers
Function
parsed_to_edge
(pc: &ParsedConnection)
crates/weft-core/src/weft_compiler.rs:2213
↓ 2 callers
Function
parsed_to_node_def
(pn: &ParsedNode)
crates/weft-core/src/weft_compiler.rs:2170
↓ 2 callers
Function
pollForTasks
()
extension/src/entrypoints/background.ts:59
↓ 2 callers
Function
post_status_callback
POST a status update (cancelled/completed/failed) to the dashboard's `/api/executions/{id}` endpoint. The dashboard enforces JWT auth on every `/api/*
crates/weft-orchestrator/src/executor_axum.rs:1728
↓ 2 callers
Function
rebuildDeclarationWithPorts
Rebuild the declaration line(s) with new port signature. * Preserves the node id, type, and any trailing { or body.
dashboard/src/lib/ai/weft-editor.ts:1226
↓ 2 callers
Function
recover_stale_triggers
Recover triggers from crashed instances (stale heartbeats)
crates/weft-api/src/trigger_store.rs:402
↓ 2 callers
Function
redact_sensitive_json
Redact sensitive fields from a JSON value for safe logging. This recursively walks the JSON structure and replaces values of keys that match sensitiv
crates/weft-api/src/log_utils.rs:45
↓ 2 callers
Function
referencesThisGroup
(id: string)
dashboard/src/lib/ai/weft-editor.ts:1005
↓ 2 callers
Function
rescope_id
(id: &mut String, old_prefix: &str, new_prefix: &str)
crates/weft-core/src/weft_compiler.rs:1402
↓ 2 callers
Method
resolve
Resolve a pending channel with the form response. Returns false if not found.
crates/weft-nodes/src/form_input.rs:68
↓ 2 callers
Function
resolveAndValidateTypes
( origNodes: NodeInstance[], origEdges: Edge[], errors: WeftParseError[], warnings?: WeftWarning[], )
dashboard/src/lib/ai/weft-parser.ts:3525
↓ 2 callers
Function
resolveAutoTypeVars
Replace T_Auto markers in a port type string with key-scoped TypeVar names. * Returns the original string if parsing fails or no markers are present
dashboard/src/lib/utils/form-field-specs.ts:77
↓ 2 callers
Function
resolvePortName
(template: string, key: string)
dashboard/src/lib/utils/form-field-specs.ts:39
↓ 2 callers
Function
resolveToScope
(id: string)
dashboard/src/lib/ai/weft-parser.ts:4984
↓ 2 callers
Method
resolve_name
Resolve the port name by replacing `{key}` with the actual field key.
crates/weft-nodes/src/node.rs:246
↓ 2 callers
Function
restart_triggers
Helper to restart a list of triggers with retry and exponential backoff. Retries each trigger up to ~10 minutes to give dependent infra time to come u
crates/weft-api/src/main.rs:501
↓ 2 callers
Function
rewriteInlinePrefix
Rewrite the type-signature fragment of an inline anon's first line. * Given a prefix like ` data: Template(old: String) ` or * `host.data = Templ
dashboard/src/lib/ai/weft-editor.ts:1269
↓ 2 callers
Method
select
(&mut self, mailbox: &str)
catalog/communication/:email/lib.rs:16
↓ 2 callers
Function
setTokens
(tokens: ExtensionToken[])
extension/src/lib/api.ts:38
↓ 2 callers
Function
set_setup_execution_id
Set the setup_execution_id for a trigger (without incrementing the counter).
crates/weft-api/src/trigger_store.rs:586
↓ 2 callers
Function
set_trigger_pending_action
Set a transitional pending action for a trigger (activating/deactivating). Upserts so repeated calls are idempotent.
crates/weft-api/src/trigger_store.rs:535
↓ 2 callers
Function
spliceAt
Splice replacement into source at a match, preserving newline boundaries. * The key insight: if the source has a newline right after the match, incl
dashboard/src/lib/ai/weft-patch.ts:55
↓ 2 callers
Function
splitTopLevel
Split string on delimiter, but only at top level (not inside [])
dashboard/src/lib/types/index.ts:87
↓ 2 callers
Function
split_respecting_quotes
Split `s` on `delimiter`, but only at top level: ignore delimiters inside strings, parentheses, square brackets, and curly braces. Used by the one-lin
crates/weft-core/src/weft_compiler.rs:1966
↓ 2 callers
Function
split_top_level
(s: &str, delimiter: char)
crates/weft-core/src/weft_type.rs:498
↓ 2 callers
Method
stop_trigger
(&self, trigger_id: &str)
crates/weft-nodes/src/trigger_service.rs:155
↓ 2 callers
Function
stripTrailingPort
(s: string)
dashboard/src/lib/ai/weft-editor.ts:829
↓ 2 callers
Function
substituteTypeVars
Substitute TypeVars in a type string using bindings map
dashboard/src/lib/ai/weft-parser.ts:3162
↓ 2 callers
Function
substitute_type_vars
(port_type: &WeftType, bindings: &HashMap<String, WeftType>)
crates/weft-nodes/src/enrich.rs:1171
↓ 2 callers
Function
suggestPortName
Suggest the closest match from a list of candidate names. Returns a * "did you mean" phrase or empty string if no close match exists.
dashboard/src/lib/ai/weft-parser.ts:12
↓ 2 callers
Function
trimTrailing
Trim trailing whitespace from each line (but not leading).
dashboard/src/lib/ai/weft-patch.ts:29
↓ 2 callers
Function
tryCollectMultilineLiteralRhs
Collect a multi-line literal RHS for a connection line. Handles two * forms: * - triple-backtick: `target.port = ```\n...\n``` ` (multi-line str
dashboard/src/lib/ai/weft-parser.ts:715
↓ 2 callers
Function
tryParseLiteral
Parse a literal RHS value (quoted string, number, bool, JSON array/object) * into a JavaScript value. Returns undefined if the input doesn't match a
dashboard/src/lib/ai/weft-parser.ts:422
↓ 2 callers
Function
try_gather_and_emit
Check if all sibling lanes have completed for this node. If yes, build gathered lists for each gather port, absorb siblings, and emit at parent lane.
crates/weft-core/src/executor_core.rs:1358
↓ 2 callers
Function
try_parse_declaration
Try to parse a declaration: `id = Type(...)` or `id = Type { ... }` or `id = Type` If Type is "Group", parse as a group (body contains children). Port
crates/weft-core/src/weft_compiler.rs:236
↓ 2 callers
Function
try_parse_literal
Parse a literal RHS value (quoted string, number, bool, JSON array/object) into a serde JSON value. Returns None if the input doesn't match any litera
crates/weft-core/src/weft_compiler.rs:2741
↓ 2 callers
Method
uid_fetch_bodies
(&mut self, uid_set: &str)
catalog/communication/:email/lib.rs:30
↓ 2 callers
Function
unifyTypes
Unify a list of types. If all identical, return that type. Otherwise, return a union.
dashboard/src/lib/types/index.ts:329
↓ 2 callers
Function
unquote
(s: &str)
crates/weft-core/src/weft_compiler.rs:1933
↓ 2 callers
Function
verifyDashboardToken
(token: string)
dashboard/src/lib/server/verify-token.ts:21
↓ 1 callers
Method
_loadFromDisk
()
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:199
↓ 1 callers
Method
_markDirty
()
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:172
↓ 1 callers
Method
addBatch
* Bulk-ingest messages (e.g. from messaging-history.set).
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:74
↓ 1 callers
Method
addSseClient
(res, events = ['message.received'])
catalog/communication/:whatsapp/bridge/sidecar/src/webhooks.js:15
↓ 1 callers
Function
add_credits_to_user
( pool: &sqlx::PgPool, user_id: &str, amount: f64, reason: &str, )
crates/weft-api/src/routes.rs:1136
↓ 1 callers
Method
addr
(&self)
crates/weft-nodes/src/service.rs:73
↓ 1 callers
Method
all_types
Get all registered node types.
crates/weft-nodes/src/registry.rs:49
↓ 1 callers
Function
api_base_url
()
crates/weft-api/src/routes.rs:1748
↓ 1 callers
Function
applyBlock
(source: string, block: SearchReplaceBlock)
dashboard/src/lib/ai/weft-patch.ts:75
↓ 1 callers
Function
apply_manifests
Apply all manifests from an InfrastructureSpec into the given namespace. Injects ownership labels into every resource. Returns the list of (apiVersion
crates/weft-core/src/k8s_provisioner.rs:50
↓ 1 callers
Function
apply_namespace_isolation
Apply ResourceQuota, LimitRange, and NetworkPolicy to a namespace.
crates/weft-core/src/k8s_provisioner.rs:398
↓ 1 callers
Function
assignLayer
(id: string, visited: Set<string>)
dashboard/src/lib/ai/weft-parser.ts:4664
↓ 1 callers
Function
audioBufferToWav
* Convert an AudioBuffer to a WAV Blob.
dashboard/src/lib/utils/blob-upload.ts:217
↓ 1 callers
Function
authorize_and_charge_start
Call weft-api's atomic gate+ledger endpoint. Local-mode policy lives in weft-api (no-op there). Retries 4x with ~15s total cap on transport errors and
crates/weft-orchestrator/src/executor_axum.rs:197
↓ 1 callers
Function
backfill_daily
Backfill daily aggregation for all missing days between last_aggregated and today. Called on server startup to recover from downtime.
crates/weft-api/src/usage_store.rs:554
↓ 1 callers
Function
backfill_usage_on_startup
Backfill daily usage aggregation for any days missed during server downtime.
crates/weft-api/src/main.rs:748
↓ 1 callers
Function
buildElkLeafNode
(node: NodeInstance)
dashboard/src/lib/ai/weft-parser.ts:5104
↓ 1 callers
Function
buildPlanFromEntries
(entries: ReconciliationEntry[])
dashboard/src/lib/utils/infra-reconciliation.ts:148
↓ 1 callers
Function
build_cancel_callback_payload
Build cancel callback payload from NodeExecution records.
crates/weft-core/src/executor_core.rs:1600
↓ 1 callers
Function
build_completion_callback_payload
Build the status callback payload from NodeExecution records.
crates/weft-core/src/executor_core.rs:1582
↓ 1 callers
Function
build_cors_layer
Build CORS layer based on environment configuration. Environment variables: - `DEPLOYMENT_MODE`: "local" (default) or "cloud" - `ALLOWED_ORIGINS`: Co
crates/weft-api/src/main.rs:788
↓ 1 callers
Function
build_e2b_python
Build the full Python script that gets sent to E2B's /execute endpoint. The function's return dict is rendered as the cell's last expression wrapped i
catalog/code/:exec/python/backend.rs:233
↓ 1 callers
Function
build_local_python
Build the Python script for local execution (no Jupyter, no IPython). Returns a script that prints exactly one line `WEFT_RESULT_JSON=<json>` to stdou
catalog/code/:exec/python/backend.rs:270
↓ 1 callers
Function
build_nested_exec_output
Reconstruct nested output structure from NodeExecution records using their lane stacks.
crates/weft-core/src/executor_core.rs:1524
↓ 1 callers
Function
build_node_ordering_from_executions
Build ordering map from NodeExecution records.
crates/weft-core/src/executor_core.rs:1672
↓ 1 callers
Method
build_router
(self)
crates/weft-nodes/src/service.rs:112
↓ 1 callers
Function
build_sidecar_image
Build sidecar image name from sidecarName. Uses SIDECAR_IMAGE_REGISTRY env var if set (cloud), otherwise defaults to ghcr.io/weavemindai (local).
crates/weft-core/src/k8s_provisioner.rs:32
↓ 1 callers
Function
checkConnection
()
extension/src/lib/api.ts:228
↓ 1 callers
Function
check_infra_start_allowed
Check if a user has sufficient balance to start infrastructure. Requires $5 reserve per running infra instance (including the one about to start). Ret
crates/weft-api/src/usage_store.rs:726
↓ 1 callers
Function
check_ready
Check once whether the infrastructure pod is ready. Returns Ok(true) if ready, Ok(false) if not yet, Err on API failure.
crates/weft-core/src/k8s_provisioner.rs:314
↓ 1 callers
Function
claim_orphaned_triggers
Claim orphaned triggers that were running on other instances This is called on startup to reclaim triggers from instances that shut down
crates/weft-api/src/trigger_store.rs:444
↓ 1 callers
Function
clear_setup_execution_id
Clear the setup_execution_id for a trigger (set to NULL).
crates/weft-api/src/trigger_store.rs:600
↓ 1 callers
Function
clone_triggers_into_deployment
Copy triggers from the builder project into the deployment project. Called from within the publish transaction. Writes to `triggers` in the same tran
crates/weft-api/src/publish.rs:701
↓ 1 callers
Method
coerce_config
Coerce config values to match declared field types. Called automatically by the runner before execute().
crates/weft-nodes/src/node.rs:515
↓ 1 callers
Function
coerce_to_bool
Try to coerce a JSON value to a bool. Returns None if already a bool.
crates/weft-nodes/src/node.rs:1049
↓ 1 callers
Function
coerce_to_number
Try to coerce a JSON value to a number. Returns None if already a number.
crates/weft-nodes/src/node.rs:1031
← previous
next →
301–400 of 1,915, ranked by callers