MCPcopy Create free account

hub / github.com/WeaveMindAI/weft / functions

Functions1,915 in github.com/WeaveMindAI/weft

↓ 7 callersFunctionaddOpaqueLine
(lineNum: number, line: string, error: string)
dashboard/src/lib/ai/weft-parser.ts:1789
↓ 7 callersFunctionapplyWeftPatch
(currentWeft: string, patchBody: string)
dashboard/src/lib/ai/weft-patch.ts:118
↓ 7 callersFunctiongetExecutorUrl
()
dashboard/src/lib/config.ts:63
↓ 7 callersFunctionp
(s: &str)
crates/weft-core/tests/type_system.rs:10
↓ 7 callersFunctionpackResolve
(inputs: PortDefinition[])
dashboard/src/lib/ai/type-validation.test.ts:260
↓ 7 callersFunctionparse
(code: string)
dashboard/src/lib/ai/weft-editor-matrix.test.ts:34
↓ 7 callersFunctionparseLabelValue
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 callersMethodreport_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 callersFunctiontargetWireType
Compute target expected wire type (mirrors backend target_expected_wire_type)
dashboard/src/lib/ai/type-validation.test.ts:33
↓ 7 callersFunctiontokenizeLine
(line: string)
dashboard/src/lib/ai/loom-parser.ts:88
↓ 6 callersFunctionconnect
()
catalog/communication/:whatsapp/bridge/sidecar/src/bridge.js:29
↓ 6 callersFunctioncontainsTypeVar
Check if a type contains any TypeVar references
dashboard/src/lib/ai/weft-parser.ts:3143
↓ 6 callersFunctionisVisitorVisible
(visibility: string | undefined)
dashboard/src/lib/ai/sanitize.ts:111
↓ 6 callersMethodis_type_var
(&self)
crates/weft-core/src/weft_type.rs:166
↓ 6 callersFunctionload_infra_nodes
(ctx: &ObjectContext<'_>)
crates/weft-core/src/infrastructure.rs:645
↓ 6 callersFunctionlooksLikeDottedRef
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 callersFunctionlooksLikeInlineStart
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 callersFunctionmakeId
()
dashboard/src/lib/ai/loom-parser.ts:499
↓ 6 callersFunctionnon_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 callersFunctionparseAttributes
(tokens: string[])
dashboard/src/lib/ai/loom-parser.ts:137
↓ 6 callersFunctionparseWeft
(rawResponse: string)
dashboard/src/lib/ai/weft-parser.ts:5444
↓ 6 callersMethodresolve_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 callersFunctionruntime_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 callersFunctiontryParseInlineExpression
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 callersFunctionaddGroup
( code: string, label: string, parentGroupId?: string, )
dashboard/src/lib/ai/weft-editor.ts:543
↓ 5 callersFunctionaddNode
( code: string, nodeType: string, nodeId: string, parentGroupId?: string, )
dashboard/src/lib/ai/weft-editor.ts:514
↓ 5 callersFunctionauthenticate_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 callersFunctionbind_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 callersFunctionbuild_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 callersFunctionclear_trigger_pending_action
Clear the pending action for a trigger.
crates/weft-api/src/trigger_store.rs:556
↓ 5 callersFunctioncount_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 callersFunctiondecryptWeftCode
(weftCode: string)
dashboard/src/lib/server/crypto.ts:224
↓ 5 callersFunctiondriversOf
(code: string, tgtId: string, tgtPort: string)
dashboard/src/lib/ai/weft-editor-matrix.test.ts:1190
↓ 5 callersFunctionencrypt_credentials
Encrypt sensitive data (e.g., credentials JSON). Returns base64-encoded ciphertext with prepended nonce.
crates/weft-api/src/crypto.rs:61
↓ 5 callersMethodexecute
(&self, ctx: ExecutionContext)
catalog/storage/:postgres/database/backend.rs:155
↓ 5 callersFunctionextractPrimitives
(t: WeftType)
dashboard/src/lib/types/index.ts:197
↓ 5 callersFunctionfiles_dir
()
crates/weft-api/src/routes.rs:1743
↓ 5 callersFunctiongetTokens
()
extension/src/lib/api.ts:33
↓ 5 callersFunctionhas_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 callersFunctionisPortConfigurable
(port: PortDefinition)
dashboard/src/lib/types/index.ts:321
↓ 5 callersMethodis_must_override
(&self)
crates/weft-core/src/weft_type.rs:170
↓ 5 callersFunctionis_valid_config_key
A config key must be a bare identifier (no dots, no spaces).
crates/weft-core/src/weft_compiler.rs:2293
↓ 5 callersMethodmetadata
(&self)
crates/weft-nodes/src/passthrough.rs:24
↓ 5 callersFunctionport
(name: &str, pt: WeftType, lane: LaneMode, required: bool)
crates/weft-nodes/src/tests/enrich_tests.rs:23
↓ 5 callersMethodunregister_trigger
(&self, trigger_id: &str)
crates/weft-nodes/src/trigger_service.rs:146
↓ 5 callersFunctionvalidate_no_unresolved
Check for remaining MustOverride ports that have connections (they should have been overridden).
crates/weft-nodes/src/enrich.rs:1567
↓ 4 callersFunctionapplyConfigFill
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 callersFunctionapply_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 callersFunctionapply_single_resource
( client: &Client, namespace: &str, api_version: &str, kind: &str, manifest: &Value, )
crates/weft-core/src/k8s_provisioner.rs:543
↓ 4 callersFunctionbuild_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 callersFunctionclearTimer
()
dashboard/src/lib/utils/field-editor.svelte.ts:42
↓ 4 callersMethodconfig
(&self)
crates/weft-nodes/src/runner.rs:97
↓ 4 callersMethodconnect
(url: &str)
catalog/storage/:postgres/database/sidecar/src/main.rs:47
↓ 4 callersFunctioncontains_type_var
Check if a WeftType contains any TypeVar references (at any depth).
crates/weft-nodes/src/enrich.rs:594
↓ 4 callersFunctiondecode_dashboard_claims
(headers: &HeaderMap)
crates/weft-api/src/routes.rs:62
↓ 4 callersMethodemit
(event, data)
catalog/communication/:whatsapp/bridge/sidecar/src/webhooks.js:40
↓ 4 callersFunctionemit_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 callersFunctionencryptWeftCode
(weftCode: string)
dashboard/src/lib/server/crypto.ts:104
↓ 4 callersFunctionexecutor_base_url
()
crates/weft-core/src/infrastructure.rs:9
↓ 4 callersFunctionfindInRaw
* 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 callersMethodget_str
Get an optional string from the config. Returns `None` if missing or empty.
crates/weft-nodes/src/node.rs:380
↓ 4 callersFunctionget_trigger
Get a specific trigger by ID
crates/weft-api/src/trigger_store.rs:341
↓ 4 callersMethodget_u64
Get an optional u64 from the config (handles both number and string values).
crates/weft-nodes/src/node.rs:388
↓ 4 callersFunctionhydrateProject
(raw: { id: string; name: string; description: string | null; weftCode?: string | null; loomCode?: string
dashboard/src/lib/project-hydration.ts:10
↓ 4 callersMethodinput_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 callersFunctionisApiKeyReady
(key: string, config: Record<string, unknown>)
dashboard/src/lib/validation.ts:197
↓ 4 callersFunctionisJsonBalanced
Check if a JSON-like string has balanced brackets/braces.
dashboard/src/lib/ai/weft-parser.ts:95
↓ 4 callersFunctionisLocalRef
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 callersFunctionisProductionMode
()
dashboard/src/hooks.server.ts:124
↓ 4 callersFunctionis_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 callersMethodis_terminal
(&self)
crates/weft-core/src/executor_core.rs:160
↓ 4 callersFunctionlooks_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 callersFunctionmedia_category_from_mime
Infer media category ("image", "video", "audio", "document") from a MIME type.
crates/weft-core/src/media_types.rs:63
↓ 4 callersFunctionmoveGroupScope
(code: string, groupLabel: string, targetGroupLabel: string | undefined)
dashboard/src/lib/ai/weft-editor.ts:969
↓ 4 callersFunctionnodeToLocation
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 callersFunctionparseQuotedString
(s: string)
dashboard/src/lib/ai/loom-parser.ts:81
↓ 4 callersFunctionparseSize
(raw: string | undefined)
dashboard/src/lib/components/runner/sizing.ts:35
↓ 4 callersFunctionpublishHeaders
()
dashboard/src/lib/publish/client.ts:96
↓ 4 callersMethodrun
(self)
crates/weft-nodes/src/service.rs:85
↓ 4 callersFunctionsourceRank
(id: string)
dashboard/src/lib/ai/weft-parser.ts:4806
↓ 4 callersFunctiontoNumber
(ts)
catalog/communication/:whatsapp/bridge/sidecar/src/message-store.js:235
↓ 4 callersFunctiontry_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 callersFunctionunescape
(s: &str)
crates/weft-core/src/weft_compiler.rs:1941
↓ 4 callersFunctionuser_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 callersFunctionwriteString
(offset: number, str: string)
dashboard/src/lib/utils/blob-upload.ts:233
↓ 3 callersFunctionaddEdgeToScope
(scope: string, edge: any)
dashboard/src/lib/ai/weft-parser.ts:4836
↓ 3 callersFunctionaggregate_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 callersFunctionbindTypeVar
Bind a TypeVar, checking for conflicts
dashboard/src/lib/ai/weft-parser.ts:3258
↓ 3 callersFunctionbuildSpecMap
(specs: FormFieldSpec[])
dashboard/src/lib/utils/form-field-specs.ts:84
↓ 3 callersFunctionbuild_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 callersFunctioncollect_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 callersFunctioncollect_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 callersFunctioncollect_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 callersFunctioncompute_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 callersMethodcontains_null
(&self)
crates/weft-core/src/weft_type.rs:207
↓ 3 callersFunctionderiveInputsFromFields
( fields: FormFieldDef[], specMap: Record<string, FormFieldSpec>, )
dashboard/src/lib/utils/form-field-specs.ts:88
↓ 3 callersFunctionderiveOutputsFromFields
( fields: FormFieldDef[], specMap: Record<string, FormFieldSpec>, )
dashboard/src/lib/utils/form-field-specs.ts:109
↓ 3 callersFunctionencrypt
(plaintext: string)
dashboard/src/lib/server/crypto.ts:42
↓ 3 callersFunctionexec_output_or_error
Get the output value for an execution, synthesizing `{"_error": "..."}` for failures.
crates/weft-core/src/executor_core.rs:1514
↓ 3 callersMethodexecute_action
( &self, action: &str, payload: serde_json::Value, )
crates/weft-core/src/infrastructure.rs:49
← previousnext →101–200 of 1,915, ranked by callers