MCPcopy Create free account

hub / github.com/NicoKhaghani/nexus-ai-sdk / functions

Functions53 in github.com/NicoKhaghani/nexus-ai-sdk

↓ 14 callersMethoddefineCapability
(capability: CapabilityDefinition<I, O>)
packages/orchestrator-core/src/runtime.ts:41
↓ 12 callersFunctionvalidQuote
(now = 1_000_000)
packages/x402-kit/__tests__/defensive.test.ts:22
↓ 11 callersMethoddefineQuest
(quest: QuestDefinition)
packages/orchestrator-core/src/runtime.ts:49
↓ 11 callersMethodexecute
* 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 callersMethodget
(key: string)
packages/capability-runtime/src/registry.ts:14
↓ 9 callersFunctionbuildTransferAuthorization
( quote: X402Quote, from: string, opts: { tokenName: string; tokenVersion: string }, )
packages/x402-kit/src/eip712.ts:16
↓ 9 callersFunctioncreateQuestRuntime
(metadata: QuestRuntimeMetadata)
packages/orchestrator-core/src/runtime.ts:249
↓ 9 callersMethodemit
(event: RuntimeEvent)
packages/orchestrator-core/src/runtime.ts:37
↓ 9 callersMethodhas
(key: string)
packages/capability-runtime/src/registry.ts:18
↓ 9 callersMethodplan
(questKey: string, objective: string)
packages/orchestrator-core/src/runtime.ts:61
↓ 9 callersFunctionverifyProof
( quote: X402Quote, proof: X402Proof, options: VerifyOptions = {}, )
packages/x402-kit/src/verify.ts:36
↓ 8 callersFunctioncreateQuote
(input: CreateQuoteInput)
packages/x402-kit/src/quote.ts:43
↓ 6 callersFunctionplanHash
(plan: unknown)
packages/x402-kit/src/quote.ts:15
↓ 6 callersMethodregister
(adapter: CapabilityAdapter<I, O>)
packages/capability-runtime/src/registry.ts:6
↓ 6 callersMethodsettle
(quote: X402Quote, proof: X402Proof, now?: number)
packages/x402-kit/src/facilitator.ts:32
↓ 5 callersFunctionquoteFixture
(now = 1_000_000)
packages/x402-kit/__tests__/quote.test.ts:16
↓ 4 callersMethodinvoke
* 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 callersFunctionscheduleWaves
(steps: QuestStep[])
packages/orchestrator-core/src/graph.ts:30
↓ 4 callersFunctionsettleAuthorization
( wallet: SettlementWallet, quote: X402Quote, proof: X402Proof, options: { account?: unknown; chain?:
packages/x402-kit/src/settle.ts:48
↓ 4 callersFunctionshapedProof
(quote: X402Quote, from = BEEF)
packages/x402-kit/__tests__/defensive.test.ts:36
↓ 3 callersFunctionisQuoteValid
(quote: X402Quote, now = Math.floor(Date.now() / 1000))
packages/x402-kit/src/quote.ts:63
↓ 3 callersFunctionquoteFixture
(now = 1_000_000)
packages/x402-kit/__tests__/settle.test.ts:15
↓ 3 callersFunctionruntimeWithSteps
()
packages/orchestrator-core/__tests__/runtime.test.ts:123
↓ 3 callersFunctionsignProof
(quote: ReturnType<typeof quoteFixture>)
packages/x402-kit/__tests__/settle.test.ts:28
↓ 3 callersFunctionvalidProof
(q: ReturnType<typeof quoteFixture>)
packages/x402-kit/__tests__/quote.test.ts:74
↓ 2 callersMethodbyTag
Route to capabilities advertising a given tag (e.g. "text", "media").
packages/capability-runtime/src/registry.ts:27
↓ 2 callersMethodon
Subscribe to execution lifecycle events. Returns an unsubscribe fn.
packages/orchestrator-core/src/runtime.ts:32
↓ 2 callersFunctionsignedProof
(quote: X402Quote)
packages/x402-kit/__tests__/defensive.test.ts:41
↓ 1 callersFunctionPKG_JSON
(name: string)
packages/create-nexus-app/src/cli.ts:5
↓ 1 callersFunctionREADME_MD
(name: string)
packages/create-nexus-app/src/cli.ts:54
↓ 1 callersMethodassemble
(plan: QuestPlan, outputs: Record<string, unknown>)
packages/orchestrator-core/src/runtime.ts:236
↓ 1 callersFunctioncreateNonce
()
packages/x402-kit/src/quote.ts:21
↓ 1 callersMethodlist
()
packages/capability-runtime/src/registry.ts:22
↓ 1 callersFunctionmain
()
packages/create-nexus-app/src/cli.ts:64
↓ 1 callersFunctionmain
()
scripts/build-packages.ts:12
↓ 1 callersFunctionrunBuild
(cwd: string)
scripts/build-packages.ts:5
↓ 1 callersFunctionrunPaidQuest
( runtime: QuestRuntime, input: PaidQuestInput, )
packages/orchestrator-core/src/settlement.ts:41
↓ 1 callersMethodrunStep
( step: QuestStep, outputs: Record<string, unknown>, signal?: AbortSignal, )
packages/orchestrator-core/src/runtime.ts:157
↓ 1 callersFunctionsleep
(ms: number)
packages/orchestrator-core/src/runtime.ts:16
↓ 1 callersFunctionstableStringify
Stable JSON stringify (sorted keys) so identical plans hash identically.
packages/x402-kit/src/quote.ts:5
Methodconstructor
(private readonly config: FacilitatorConfig)
packages/x402-kit/src/facilitator.ts:30
Methodconstructor
(public readonly errors: GraphValidationError[])
packages/orchestrator-core/src/graph.ts:19
Methodconstructor
(metadata: QuestRuntimeMetadata)
packages/orchestrator-core/src/runtime.ts:24
Functionexecute
({ prompt })
packages/capability-runtime/examples/register-capability.ts:10
Functionexecute
(input: { prompt: string })
packages/orchestrator-core/examples/minimal-runtime.ts:11
Functionexecute
({ prompt })
packages/orchestrator-core/examples/paid-quest.ts:43
Functionexecute
({ prompt })
packages/orchestrator-core/examples/model-capability.ts:26
Functionexecute
()
packages/orchestrator-core/__tests__/runtime.test.ts:41
MethodgetMetadata
()
packages/orchestrator-core/src/runtime.ts:244
MethodhasCapability
(key: string)
packages/orchestrator-core/src/runtime.ts:57
MethodisSettled
(nonce: string)
packages/x402-kit/src/facilitator.ts:57
FunctionwithProof
(quote: X402Quote, proof: X402Proof, payload: T)
packages/x402-kit/src/verify.ts:78
FunctionwithProof
(quote: X402Quote, proof: X402Proof, payload: T)
packages/x402-kit/src/retry.ts:3