Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NicoKhaghani/nexus-ai-sdk
/ functions
Functions
53 in github.com/NicoKhaghani/nexus-ai-sdk
⨍
Functions
53
◇
Types & classes
33
↓ 14 callers
Method
defineCapability
(capability: CapabilityDefinition<I, O>)
packages/orchestrator-core/src/runtime.ts:41
↓ 12 callers
Function
validQuote
(now = 1_000_000)
packages/x402-kit/__tests__/defensive.test.ts:22
↓ 11 callers
Method
defineQuest
(quest: QuestDefinition)
packages/orchestrator-core/src/runtime.ts:49
↓ 11 callers
Method
execute
* Execute a plan as a DAG: independent steps in a wave run concurrently, * waves run in order. Each step's input is merged with the outputs of its
packages/orchestrator-core/src/runtime.ts:76
↓ 10 callers
Method
get
(key: string)
packages/capability-runtime/src/registry.ts:14
↓ 9 callers
Function
buildTransferAuthorization
( quote: X402Quote, from: string, opts: { tokenName: string; tokenVersion: string }, )
packages/x402-kit/src/eip712.ts:16
↓ 9 callers
Function
createQuestRuntime
(metadata: QuestRuntimeMetadata)
packages/orchestrator-core/src/runtime.ts:249
↓ 9 callers
Method
emit
(event: RuntimeEvent)
packages/orchestrator-core/src/runtime.ts:37
↓ 9 callers
Method
has
(key: string)
packages/capability-runtime/src/registry.ts:18
↓ 9 callers
Method
plan
(questKey: string, objective: string)
packages/orchestrator-core/src/runtime.ts:61
↓ 9 callers
Function
verifyProof
( quote: X402Quote, proof: X402Proof, options: VerifyOptions = {}, )
packages/x402-kit/src/verify.ts:36
↓ 8 callers
Function
createQuote
(input: CreateQuoteInput)
packages/x402-kit/src/quote.ts:43
↓ 6 callers
Function
planHash
(plan: unknown)
packages/x402-kit/src/quote.ts:15
↓ 6 callers
Method
register
(adapter: CapabilityAdapter<I, O>)
packages/capability-runtime/src/registry.ts:6
↓ 6 callers
Method
settle
(quote: X402Quote, proof: X402Proof, now?: number)
packages/x402-kit/src/facilitator.ts:32
↓ 5 callers
Function
quoteFixture
(now = 1_000_000)
packages/x402-kit/__tests__/quote.test.ts:16
↓ 4 callers
Method
invoke
* Invoke a capability with schema enforcement on both ends. Throws if the * capability is unknown or if input/output fail their declared zod schema
packages/capability-runtime/src/registry.ts:35
↓ 4 callers
Function
scheduleWaves
(steps: QuestStep[])
packages/orchestrator-core/src/graph.ts:30
↓ 4 callers
Function
settleAuthorization
( wallet: SettlementWallet, quote: X402Quote, proof: X402Proof, options: { account?: unknown; chain?:
packages/x402-kit/src/settle.ts:48
↓ 4 callers
Function
shapedProof
(quote: X402Quote, from = BEEF)
packages/x402-kit/__tests__/defensive.test.ts:36
↓ 3 callers
Function
isQuoteValid
(quote: X402Quote, now = Math.floor(Date.now() / 1000))
packages/x402-kit/src/quote.ts:63
↓ 3 callers
Function
quoteFixture
(now = 1_000_000)
packages/x402-kit/__tests__/settle.test.ts:15
↓ 3 callers
Function
runtimeWithSteps
()
packages/orchestrator-core/__tests__/runtime.test.ts:123
↓ 3 callers
Function
signProof
(quote: ReturnType<typeof quoteFixture>)
packages/x402-kit/__tests__/settle.test.ts:28
↓ 3 callers
Function
validProof
(q: ReturnType<typeof quoteFixture>)
packages/x402-kit/__tests__/quote.test.ts:74
↓ 2 callers
Method
byTag
Route to capabilities advertising a given tag (e.g. "text", "media").
packages/capability-runtime/src/registry.ts:27
↓ 2 callers
Method
on
Subscribe to execution lifecycle events. Returns an unsubscribe fn.
packages/orchestrator-core/src/runtime.ts:32
↓ 2 callers
Function
signedProof
(quote: X402Quote)
packages/x402-kit/__tests__/defensive.test.ts:41
↓ 1 callers
Function
PKG_JSON
(name: string)
packages/create-nexus-app/src/cli.ts:5
↓ 1 callers
Function
README_MD
(name: string)
packages/create-nexus-app/src/cli.ts:54
↓ 1 callers
Method
assemble
(plan: QuestPlan, outputs: Record<string, unknown>)
packages/orchestrator-core/src/runtime.ts:236
↓ 1 callers
Function
createNonce
()
packages/x402-kit/src/quote.ts:21
↓ 1 callers
Method
list
()
packages/capability-runtime/src/registry.ts:22
↓ 1 callers
Function
main
()
packages/create-nexus-app/src/cli.ts:64
↓ 1 callers
Function
main
()
scripts/build-packages.ts:12
↓ 1 callers
Function
runBuild
(cwd: string)
scripts/build-packages.ts:5
↓ 1 callers
Function
runPaidQuest
( runtime: QuestRuntime, input: PaidQuestInput, )
packages/orchestrator-core/src/settlement.ts:41
↓ 1 callers
Method
runStep
( step: QuestStep, outputs: Record<string, unknown>, signal?: AbortSignal, )
packages/orchestrator-core/src/runtime.ts:157
↓ 1 callers
Function
sleep
(ms: number)
packages/orchestrator-core/src/runtime.ts:16
↓ 1 callers
Function
stableStringify
Stable JSON stringify (sorted keys) so identical plans hash identically.
packages/x402-kit/src/quote.ts:5
Method
constructor
(private readonly config: FacilitatorConfig)
packages/x402-kit/src/facilitator.ts:30
Method
constructor
(public readonly errors: GraphValidationError[])
packages/orchestrator-core/src/graph.ts:19
Method
constructor
(metadata: QuestRuntimeMetadata)
packages/orchestrator-core/src/runtime.ts:24
Function
execute
({ prompt })
packages/capability-runtime/examples/register-capability.ts:10
Function
execute
(input: { prompt: string })
packages/orchestrator-core/examples/minimal-runtime.ts:11
Function
execute
({ prompt })
packages/orchestrator-core/examples/paid-quest.ts:43
Function
execute
({ prompt })
packages/orchestrator-core/examples/model-capability.ts:26
Function
execute
()
packages/orchestrator-core/__tests__/runtime.test.ts:41
Method
getMetadata
()
packages/orchestrator-core/src/runtime.ts:244
Method
hasCapability
(key: string)
packages/orchestrator-core/src/runtime.ts:57
Method
isSettled
(nonce: string)
packages/x402-kit/src/facilitator.ts:57
Function
withProof
(quote: X402Quote, proof: X402Proof, payload: T)
packages/x402-kit/src/verify.ts:78
Function
withProof
(quote: X402Quote, proof: X402Proof, payload: T)
packages/x402-kit/src/retry.ts:3