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
↓ 7 callers
Function
addOpaqueLine
(lineNum: number, line: string, error: string)
dashboard/src/lib/ai/weft-parser.ts:1789
↓ 7 callers
Function
applyWeftPatch
(currentWeft: string, patchBody: string)
dashboard/src/lib/ai/weft-patch.ts:118
↓ 7 callers
Function
getExecutorUrl
()
dashboard/src/lib/config.ts:63
↓ 7 callers
Function
p
(s: &str)
crates/weft-core/tests/type_system.rs:10
↓ 7 callers
Function
packResolve
(inputs: PortDefinition[])
dashboard/src/lib/ai/type-validation.test.ts:260
↓ 7 callers
Function
parse
(code: string)
dashboard/src/lib/ai/weft-editor-matrix.test.ts:34
↓ 7 callers
Function
parseLabelValue
Parse the body of a quoted-label expression. Strips surrounding quotes * if present, then unescapes the interior. Mirrors backend try_extract_label.
dashboard/src/lib/ai/weft-parser.ts:411
↓ 7 callers
Method
report_usage_cost
Report a service usage cost to the usage tracking API. This is the standard way for nodes to report costs. All HTTP plumbing (internal API key, endpo
crates/weft-nodes/src/node.rs:818
↓ 7 callers
Function
targetWireType
Compute target expected wire type (mirrors backend target_expected_wire_type)
dashboard/src/lib/ai/type-validation.test.ts:33
↓ 7 callers
Function
tokenizeLine
(line: string)
dashboard/src/lib/ai/loom-parser.ts:88
↓ 6 callers
Function
connect
()
catalog/communication/:whatsapp/bridge/sidecar/src/bridge.js:29
↓ 6 callers
Function
containsTypeVar
Check if a type contains any TypeVar references
dashboard/src/lib/ai/weft-parser.ts:3143
↓ 6 callers
Function
isVisitorVisible
(visibility: string | undefined)
dashboard/src/lib/ai/sanitize.ts:111
↓ 6 callers
Method
is_type_var
(&self)
crates/weft-core/src/weft_type.rs:166
↓ 6 callers
Function
load_infra_nodes
(ctx: &ObjectContext<'_>)
crates/weft-core/src/infrastructure.rs:645
↓ 6 callers
Function
looksLikeDottedRef
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
dashboard/src/lib/ai/weft-parser.ts:863
↓ 6 callers
Function
looksLikeInlineStart
Check if a string value looks like the start of an inline node expression. * Accepted forms (after stripping leading whitespace): * Type ( ... )
dashboard/src/lib/ai/weft-parser.ts:837
↓ 6 callers
Function
makeId
()
dashboard/src/lib/ai/loom-parser.ts:499
↓ 6 callers
Function
non_empty
Resolve the weft/loom/layout sources for the deployment. The dashboard sends an explicit payload so it can strip sensitive field values at publish tim
crates/weft-api/src/publish.rs:356
↓ 6 callers
Function
parseAttributes
(tokens: string[])
dashboard/src/lib/ai/loom-parser.ts:137
↓ 6 callers
Function
parseWeft
(rawResponse: string)
dashboard/src/lib/ai/weft-parser.ts:5444
↓ 6 callers
Method
resolve_types
Dynamically resolve port types based on current port definitions. Called at compile time when the node has TypeVar or dynamic ports. Returns overrides
crates/weft-nodes/src/node.rs:1001
↓ 6 callers
Function
runtime_type_check
Runtime type check for a port value, accounting for Expand/Gather lane modes. For **Single** ports, the value must match the declared type directly.
crates/weft-core/src/executor_core.rs:907
↓ 6 callers
Function
tryParseInlineExpression
Parse an inline expression from `lines[startLine]` starting at `startCol`. * Appends the child node + connection to `inlineScope` and returns the in
dashboard/src/lib/ai/weft-parser.ts:981
↓ 5 callers
Function
addGroup
( code: string, label: string, parentGroupId?: string, )
dashboard/src/lib/ai/weft-editor.ts:543
↓ 5 callers
Function
addNode
( code: string, nodeType: string, nodeId: string, parentGroupId?: string, )
dashboard/src/lib/ai/weft-editor.ts:514
↓ 5 callers
Function
authenticate_file_request
Authenticate a file request. Returns the user_id. In local mode: no auth needed, returns "local". Otherwise: requires internal API key (backend nodes)
crates/weft-api/src/routes.rs:1766
↓ 5 callers
Function
bind_type_var
Try to bind a TypeVar name to a concrete type. If already bound, check consistency.
crates/weft-nodes/src/enrich.rs:713
↓ 5 callers
Function
build_oauth_header
Build an OAuth 1.0a Authorization header for a request with no query params. The request body is JSON (not form-encoded), so only oauth_* params are s
catalog/social/:x/post/backend.rs:225
↓ 5 callers
Function
clear_trigger_pending_action
Clear the pending action for a trigger.
crates/weft-api/src/trigger_store.rs:556
↓ 5 callers
Function
count_structural_parens
Count structural parens in a line, ignoring parens inside `@require_one_of(...)`. This prevents directive-internal parens from polluting the port-list
crates/weft-core/src/weft_compiler.rs:601
↓ 5 callers
Function
decryptWeftCode
(weftCode: string)
dashboard/src/lib/server/crypto.ts:224
↓ 5 callers
Function
driversOf
(code: string, tgtId: string, tgtPort: string)
dashboard/src/lib/ai/weft-editor-matrix.test.ts:1190
↓ 5 callers
Function
encrypt_credentials
Encrypt sensitive data (e.g., credentials JSON). Returns base64-encoded ciphertext with prepended nonce.
crates/weft-api/src/crypto.rs:61
↓ 5 callers
Method
execute
(&self, ctx: ExecutionContext)
catalog/storage/:postgres/database/backend.rs:155
↓ 5 callers
Function
extractPrimitives
(t: WeftType)
dashboard/src/lib/types/index.ts:197
↓ 5 callers
Function
files_dir
()
crates/weft-api/src/routes.rs:1743
↓ 5 callers
Function
getTokens
()
extension/src/lib/api.ts:33
↓ 5 callers
Function
has_valid_internal_api_key
Check the request's internal API key. Constant-time, reads from state (no per-request env access).
crates/weft-api/src/routes.rs:34
↓ 5 callers
Function
isPortConfigurable
(port: PortDefinition)
dashboard/src/lib/types/index.ts:321
↓ 5 callers
Method
is_must_override
(&self)
crates/weft-core/src/weft_type.rs:170
↓ 5 callers
Function
is_valid_config_key
A config key must be a bare identifier (no dots, no spaces).
crates/weft-core/src/weft_compiler.rs:2293
↓ 5 callers
Method
metadata
(&self)
crates/weft-nodes/src/passthrough.rs:24
↓ 5 callers
Function
port
(name: &str, pt: WeftType, lane: LaneMode, required: bool)
crates/weft-nodes/src/tests/enrich_tests.rs:23
↓ 5 callers
Method
unregister_trigger
(&self, trigger_id: &str)
crates/weft-nodes/src/trigger_service.rs:146
↓ 5 callers
Function
validate_no_unresolved
Check for remaining MustOverride ports that have connections (they should have been overridden).
crates/weft-nodes/src/enrich.rs:1567
↓ 4 callers
Function
applyConfigFill
Apply a connection-line literal to a target node's config. If the target * exists, the value is inserted (overwriting any prior value for the same
dashboard/src/lib/ai/weft-parser.ts:444
↓ 4 callers
Function
apply_config_fill
Write a connection-line literal into the target node's config map. Later writes override earlier ones for the same key. If the target node isn't found
crates/weft-core/src/weft_compiler.rs:2732
↓ 4 callers
Function
apply_single_resource
( client: &Client, namespace: &str, api_version: &str, kind: &str, manifest: &Value, )
crates/weft-core/src/k8s_provisioner.rs:543
↓ 4 callers
Function
build_node_outputs_from_executions
Build node outputs from NodeExecution records. For failed executions, synthesizes an `{"_error": "..."}` output so errors are visible.
crates/weft-core/src/executor_core.rs:1684
↓ 4 callers
Function
clearTimer
()
dashboard/src/lib/utils/field-editor.svelte.ts:42
↓ 4 callers
Method
config
(&self)
crates/weft-nodes/src/runner.rs:97
↓ 4 callers
Method
connect
(url: &str)
catalog/storage/:postgres/database/sidecar/src/main.rs:47
↓ 4 callers
Function
contains_type_var
Check if a WeftType contains any TypeVar references (at any depth).
crates/weft-nodes/src/enrich.rs:594
↓ 4 callers
Function
decode_dashboard_claims
(headers: &HeaderMap)
crates/weft-api/src/routes.rs:62
↓ 4 callers
Method
emit
(event, data)
catalog/communication/:whatsapp/bridge/sidecar/src/webhooks.js:40
↓ 4 callers
Function
emit_null_downstream
Emit null on all output ports of a node. Used when a node is skipped or fails at dispatch time. Routes through postprocess_output so null correctly fl
crates/weft-core/src/executor_core.rs:1490
↓ 4 callers
Function
encryptWeftCode
(weftCode: string)
dashboard/src/lib/server/crypto.ts:104
↓ 4 callers
Function
executor_base_url
()
crates/weft-core/src/infrastructure.rs:9
↓ 4 callers
Function
findInRaw
* Find `needle` in `haystack`. Returns offset and length in haystack, or null. * Tries exact match first, then with trailing-whitespace-trimmed needl
dashboard/src/lib/ai/weft-patch.ts:37
↓ 4 callers
Method
get_str
Get an optional string from the config. Returns `None` if missing or empty.
crates/weft-nodes/src/node.rs:380
↓ 4 callers
Function
get_trigger
Get a specific trigger by ID
crates/weft-api/src/trigger_store.rs:341
↓ 4 callers
Method
get_u64
Get an optional u64 from the config (handles both number and string values).
crates/weft-nodes/src/node.rs:388
↓ 4 callers
Function
hydrateProject
(raw: { id: string; name: string; description: string | null; weftCode?: string | null; loomCode?: string
dashboard/src/lib/project-hydration.ts:10
↓ 4 callers
Method
input_string_list
Parse an input value as `Vec<String>`, accepting either a JSON array of strings or a single comma-separated string. Returns empty vec if the key is mi
crates/weft-nodes/src/node.rs:576
↓ 4 callers
Function
isApiKeyReady
(key: string, config: Record<string, unknown>)
dashboard/src/lib/validation.ts:197
↓ 4 callers
Function
isJsonBalanced
Check if a JSON-like string has balanced brackets/braces.
dashboard/src/lib/ai/weft-parser.ts:95
↓ 4 callers
Function
isLocalRef
True if a source/target id refers to something local to the current * scope. Local means: it IS a declared child, OR it's an anon inline id * `{lo
dashboard/src/lib/ai/weft-parser.ts:523
↓ 4 callers
Function
isProductionMode
()
dashboard/src/hooks.server.ts:124
↓ 4 callers
Function
is_local_ref
Check if a source/target identifier refers to something local to the current group scope. A reference is local if: - it IS one of the declared child i
crates/weft-core/src/weft_compiler.rs:1134
↓ 4 callers
Method
is_terminal
(&self)
crates/weft-core/src/executor_core.rs:160
↓ 4 callers
Function
looks_like_inline_start
Check if a string value looks like the start of an inline node expression. Returns true if it starts with an uppercase identifier followed by `(`, `{`
crates/weft-core/src/weft_compiler.rs:2264
↓ 4 callers
Function
media_category_from_mime
Infer media category ("image", "video", "audio", "document") from a MIME type.
crates/weft-core/src/media_types.rs:63
↓ 4 callers
Function
moveGroupScope
(code: string, groupLabel: string, targetGroupLabel: string | undefined)
dashboard/src/lib/ai/weft-editor.ts:969
↓ 4 callers
Function
nodeToLocation
Derive a NodeLocation from a ParsedNode and the lines array. * Parser line numbers are 1-based, editor uses 0-based.
dashboard/src/lib/ai/weft-editor.ts:40
↓ 4 callers
Function
parseQuotedString
(s: string)
dashboard/src/lib/ai/loom-parser.ts:81
↓ 4 callers
Function
parseSize
(raw: string | undefined)
dashboard/src/lib/components/runner/sizing.ts:35
↓ 4 callers
Function
publishHeaders
()
dashboard/src/lib/publish/client.ts:96
↓ 4 callers
Method
run
(self)
crates/weft-nodes/src/service.rs:85
↓ 4 callers
Function
sourceRank
(id: string)
dashboard/src/lib/ai/weft-parser.ts:4806
↓ 4 callers
Function
toNumber
(ts)
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:235
↓ 4 callers
Function
try_parse_inline_expression
Parse an inline expression starting at lines[start_line][start_col..]. Generates an anon child node, emits a connection from the child's output to par
crates/weft-core/src/weft_compiler.rs:2325
↓ 4 callers
Function
unescape
(s: &str)
crates/weft-core/src/weft_compiler.rs:1941
↓ 4 callers
Function
user_id_from_headers
Resolve the caller's user id from request headers. In cloud mode: cloud-api's auth middleware decodes the JWT and injects `x-user-id` before forwardi
crates/weft-api/src/publish.rs:174
↓ 4 callers
Function
writeString
(offset: number, str: string)
dashboard/src/lib/utils/blob-upload.ts:233
↓ 3 callers
Function
addEdgeToScope
(scope: string, edge: any)
dashboard/src/lib/ai/weft-parser.ts:4836
↓ 3 callers
Function
aggregate_daily
Aggregate usage_events into usage_daily for a specific date. Uses UPSERT so it can be called multiple times safely (idempotent).
crates/weft-api/src/usage_store.rs:490
↓ 3 callers
Function
bindTypeVar
Bind a TypeVar, checking for conflicts
dashboard/src/lib/ai/weft-parser.ts:3258
↓ 3 callers
Function
buildSpecMap
(specs: FormFieldSpec[])
dashboard/src/lib/utils/form-field-specs.ts:84
↓ 3 callers
Function
build_node_statuses_from_executions
Build node statuses from NodeExecution records. Falls back to "pending" for nodes that haven't been dispatched yet.
crates/weft-core/src/executor_core.rs:1629
↓ 3 callers
Function
collect_dispatch_work
Collect ready nodes and prepare dispatch work. Skip propagation happens synchronously (modifies pulses). Actual dispatches are collected as work items
crates/weft-orchestrator/src/executor_axum.rs:1098
↓ 3 callers
Function
collect_heredoc_value
Collect a multi-line triple-backtick heredoc value starting after the opening `` ``` ``. `initial_after_bt` is whatever text appeared on the same line
crates/weft-core/src/weft_compiler.rs:1638
↓ 3 callers
Function
collect_multiline_json
Collect a multi-line JSON value (object or array) with brace-depth tracking. `initial_value` is the first chunk (e.g. `[` or `{"key":`). Lines are rea
crates/weft-core/src/weft_compiler.rs:1676
↓ 3 callers
Function
compute_active_edges
Compute active edge IDs from pulse data. An edge is active when the target node has a Pending pulse on the target port.
crates/weft-core/src/executor_core.rs:1651
↓ 3 callers
Method
contains_null
(&self)
crates/weft-core/src/weft_type.rs:207
↓ 3 callers
Function
deriveInputsFromFields
( fields: FormFieldDef[], specMap: Record<string, FormFieldSpec>, )
dashboard/src/lib/utils/form-field-specs.ts:88
↓ 3 callers
Function
deriveOutputsFromFields
( fields: FormFieldDef[], specMap: Record<string, FormFieldSpec>, )
dashboard/src/lib/utils/form-field-specs.ts:109
↓ 3 callers
Function
encrypt
(plaintext: string)
dashboard/src/lib/server/crypto.ts:42
↓ 3 callers
Function
exec_output_or_error
Get the output value for an execution, synthesizing `{"_error": "..."}` for failures.
crates/weft-core/src/executor_core.rs:1514
↓ 3 callers
Method
execute_action
( &self, action: &str, payload: serde_json::Value, )
crates/weft-core/src/infrastructure.rs:49
← previous
next →
101–200 of 1,915, ranked by callers