repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/wallet/thirdweb-engine-wallets.ts
packages/examples/src/wallet/thirdweb-engine-wallets.ts
/** * Example: Using thirdweb Engine server wallets with Lucid Agents SDK * * This demonstrates: * 1. Configure thirdweb wallet using the wallets extension * 2. The connector automatically initializes the thirdweb client and account * 3. Verify the wallet works with challenge signing * 4. Send USDC transaction u...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/scheduler/double-hire.ts
packages/examples/src/scheduler/double-hire.ts
/* * Scheduler Example - Hiring Two Agents on Schedules * * Same setup as hello-interval, but we spin up two agents and create two hires. * * Run with: bun run src/scheduler/double-hire.ts * * Environment variables (same as hello-interval): * AGENT_WALLET_PRIVATE_KEY - Private key for the payer's wallet (...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/scheduler/hello-interval.ts
packages/examples/src/scheduler/hello-interval.ts
/* * Scheduler Example - Hiring an Agent on a Schedule * * This example demonstrates the scheduler's simplified API: * * ARCHITECTURE: * - AGENT: Provides a paid service (the "hello" entrypoint) * - Has its own wallet to RECEIVE payments (configured via payments extension) * - Exposes entrypoints with price...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/a2a/full-integration.ts
packages/examples/src/a2a/full-integration.ts
/** * Full Integration Example - A2A Composition (Three Agents) * * This example demonstrates the core A2A use case: agent composition where an * agent acts as both server and client (facilitator/middleware pattern). * * Architecture: * - Agent 1 (Worker): Does the actual work (echo, process, stream) * - Agent ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/core/full-agent.ts
packages/examples/src/core/full-agent.ts
/* * Full agent example demonstrating all major capabilities: * 1. HTTP extension for REST API * 2. Payments (x402) for monetization * 3. Identity (ERC-8004) for on-chain identity * 4. Streaming entrypoints * 5. Standard entrypoints * * Run with: bun run examples/full-agent.ts * * Environment variab...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/core/runtime-auth.ts
packages/examples/src/core/runtime-auth.ts
import { randomUUID } from 'node:crypto'; import { setTimeout as delay } from 'node:timers/promises'; import { createAgent } from '@lucid-agents/core'; import { createAgentApp } from '@lucid-agents/hono'; import { http } from '@lucid-agents/http'; import { AgentRuntime, type AgentRuntimeWallet, MemoryStorageAdap...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/analytics/index.ts
packages/examples/src/analytics/index.ts
import { analytics, exportToCSV, exportToJSON, getAllTransactions, getIncomingSummary, getOutgoingSummary, getSummary, } from '@lucid-agents/analytics'; import { createAgent } from '@lucid-agents/core'; import { createAgentApp } from '@lucid-agents/hono'; import { http } from '@lucid-agents/http'; import ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/identity/full-integration.ts
packages/examples/src/identity/full-integration.ts
/** * Full Integration Example - Comprehensive ERC-8004 Testing * * This example exercises ALL functionality of the ERC-8004 identity SDK: * - Identity Registry (registration, lookups, metadata) * - Validation Registry (requests, responses, queries) * - Reputation Registry (feedback, responses, queries) * * Pre...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/identity/quick-start.ts
packages/examples/src/identity/quick-start.ts
/** * Quick Start Example - ERC-8004 Agent Identity * * This example shows the simplest way to register your agent on the * ERC-8004 registry using environment variables. * * Prerequisites: * 1. Create a .env file with required variables (see .env.example) * 2. Run: bun run examples/quick-start.ts */ import {...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/identity/test-clients.ts
packages/examples/src/identity/test-clients.ts
/** * Test script to verify all three registry clients are created and accessible */ import { createAgent } from '@lucid-agents/core'; import { createAgentIdentity } from '@lucid-agents/identity'; import { wallets, walletsFromEnv } from '@lucid-agents/wallet'; async function main() { console.log('Testing ERC-8004...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/a2a/tsup.config.ts
packages/a2a/tsup.config.ts
import { definePackageConfig } from '../tsup.config.base'; export default definePackageConfig({ entry: ['src/index.ts'], dts: true, external: ['@lucid-agents/types', 'zod'], });
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/a2a/src/client.ts
packages/a2a/src/client.ts
import type { FetchFunction } from '@lucid-agents/types/http'; import type { AgentCard } from '@lucid-agents/types/a2a'; import type { InvokeAgentResult, StreamEmit, SendMessageRequest, SendMessageResponse, Task, TaskUpdateEvent, A2AClient, ListTasksRequest, ListTasksResponse, CancelTaskRequest, C...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/a2a/src/extension.ts
packages/a2a/src/extension.ts
import type { AgentRuntime, BuildContext, Extension, } from '@lucid-agents/types/core'; import type { A2ARuntime } from '@lucid-agents/types/a2a'; import { createA2ARuntime } from './runtime'; export function a2a(): Extension<{ a2a: A2ARuntime }> { return { name: 'a2a', build(_ctx: BuildContext): { a2...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/a2a/src/card.ts
packages/a2a/src/card.ts
import type { AgentCard, AgentCardWithEntrypoints, AgentCapabilities, AgentMeta, Manifest, } from '@lucid-agents/types/a2a'; import type { EntrypointDef } from '@lucid-agents/types/core'; import type { FetchFunction } from '@lucid-agents/types/http'; import type { BuildAgentCardOptions } from '@lucid-agents/t...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/a2a/src/runtime.ts
packages/a2a/src/runtime.ts
import type { AgentRuntime } from '@lucid-agents/types/core'; import type { FetchFunction } from '@lucid-agents/types/http'; import type { A2ARuntime, CreateA2ARuntimeOptions, } from '@lucid-agents/types/a2a'; import { buildAgentCard, fetchAgentCard, fetchAgentCardWithEntrypoints, } from './card'; import { ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/a2a/src/index.ts
packages/a2a/src/index.ts
export { buildAgentCard, fetchAgentCard, fetchAgentCardWithEntrypoints, parseAgentCard, findSkill, hasCapability, hasSkillTag, supportsPayments, hasTrustInfo, } from './card'; export { invokeAgent, streamAgent, fetchAndInvoke, sendMessage, getTask, subscribeTask, fetchAndSendMessage, l...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/a2a/src/__tests__/tasks.test.ts
packages/a2a/src/__tests__/tasks.test.ts
import type { AgentCardWithEntrypoints } from '@lucid-agents/types/a2a'; import type { SendMessageResponse, Task, TaskStatus, } from '@lucid-agents/types/a2a'; import { describe, expect, it, mock } from 'bun:test'; import { sendMessage, getTask, subscribeTask, fetchAndSendMessage, listTasks, cancelTa...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/a2a/src/__tests__/client.test.ts
packages/a2a/src/__tests__/client.test.ts
import { describe, expect, it, mock } from 'bun:test'; import type { AgentCardWithEntrypoints } from '@lucid-agents/types/a2a'; import { fetchAndInvoke, invokeAgent, streamAgent } from '../client'; import { buildAgentCard } from '../card'; import { z } from 'zod'; describe('invokeAgent', () => { const card: AgentCa...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/a2a/src/__tests__/runtime.test.ts
packages/a2a/src/__tests__/runtime.test.ts
import { describe, expect, it, mock } from 'bun:test'; import type { AgentRuntime } from '@lucid-agents/types/core'; import { z } from 'zod'; import { createA2ARuntime } from '../runtime'; import { buildAgentCard } from '../card'; describe('createA2ARuntime', () => { const mockRuntime: Partial<AgentRuntime> = { ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/a2a/src/__tests__/card.test.ts
packages/a2a/src/__tests__/card.test.ts
import { describe, expect, it, mock } from 'bun:test'; import type { AgentCardWithEntrypoints, AgentMeta } from '@lucid-agents/types/a2a'; import type { EntrypointDef } from '@lucid-agents/types/core'; import { z } from 'zod'; import { buildAgentCard, fetchAgentCard, fetchAgentCardWithEntrypoints, findSkill, ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/express/tsup.config.ts
packages/express/tsup.config.ts
import { defineConfig } from "tsup"; export default defineConfig({ entry: ["src/index.ts"], format: ["esm"], dts: true, tsconfig: "./tsconfig.build.json", sourcemap: true, clean: true, treeshake: true, external: [ '@lucid-agents/core', '@lucid-agents/payments', '@lucid-agents/types', 'e...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/express/src/paywall.ts
packages/express/src/paywall.ts
import type { Express, RequestHandler, Request, Response } from 'express'; import { paymentMiddleware } from 'x402-express'; import type { FacilitatorConfig } from 'x402/types'; import { z } from 'zod'; import type { EntrypointDef, AgentRuntime } from '@lucid-agents/types/core'; import type { PaymentsConfig } from '@lu...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/express/src/app.ts
packages/express/src/app.ts
import express, { type Express, type NextFunction, type Request as ExpressRequest, type RequestHandler, type Response as ExpressResponse, } from 'express'; import { Readable } from 'node:stream'; import type { ReadableStream as WebReadableStream } from 'node:stream/web'; import type { TLSSocket } from 'node:t...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/express/src/index.ts
packages/express/src/index.ts
export { createAgentApp, type CreateAgentAppOptions } from './app'; export { withPayments, type WithPaymentsParams } from './paywall';
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/express/src/__tests__/paywall.test.ts
packages/express/src/__tests__/paywall.test.ts
import { createAgent } from '@lucid-agents/core'; import { http } from '@lucid-agents/http'; import { payments, extractSenderDomain } from '@lucid-agents/payments'; import { createAgentApp } from '../app'; import { describe, expect, it, beforeEach, afterEach } from 'bun:test'; import { z } from 'zod'; import type { Exp...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/express/src/__tests__/basic.test.ts
packages/express/src/__tests__/basic.test.ts
import { createAgent } from '@lucid-agents/core'; import { http } from '@lucid-agents/http'; import { createAgentApp } from '../app'; import { describe, expect, it } from 'bun:test'; import { z } from 'zod'; describe('@lucid-agents/express', () => { it('creates an Express app and registers entrypoints', async () => ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/tsup.config.ts
packages/core/tsup.config.ts
import { definePackageConfig } from '../tsup.config.base'; const entryPoints = { index: 'src/index.ts', utils: 'src/utils/index.ts', 'axllm/index': 'src/axllm/index.ts', }; export default definePackageConfig({ entry: entryPoints, dts: { entry: entryPoints, }, external: [ '@ax-llm/ax', '@luci...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/validation.ts
packages/core/src/validation.ts
import type { AgentMeta } from '@lucid-agents/types/a2a'; /** * Validates required agent metadata and throws descriptive errors if invalid. * @param meta - Agent metadata to validate * @throws Error if required fields are missing */ export function validateAgentMetadata(meta: AgentMeta): void { const missingFiel...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/runtime.ts
packages/core/src/runtime.ts
import type { AgentMeta } from '@lucid-agents/types/a2a'; import { AgentBuilder } from './extensions/builder'; /** * Creates a new agent builder for constructing an agent runtime with extensions. * * @example * ```typescript * const identity = identity({ trust }); * const payments = payments({ config }); * con...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/index.ts
packages/core/src/index.ts
export { type AxLLMClient, type AxLLMClientOptions, createAxLLMClient, } from './axllm'; export { AgentCore, createAgentCore } from './core/agent'; export { AgentBuilder } from './extensions/builder'; export { createAgent } from './runtime'; export * from './utils'; export { validateAgentMetadata } from './valida...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/extensions/builder.ts
packages/core/src/extensions/builder.ts
import { buildAgentCard } from '@lucid-agents/a2a'; import type { AgentCardWithEntrypoints, AgentMeta, } from '@lucid-agents/types/a2a'; import type { AgentRuntime, BuildContext, EntrypointDef, Extension, Network, } from '@lucid-agents/types/core'; import { createAgentCore } from '../core/agent'; export...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/utils/utils.ts
packages/core/src/utils/utils.ts
/** * Checks if a value has any defined (non-null, non-undefined, non-empty) properties. * Generic utility for runtime validation. */ export function hasDefinedValue<T extends Record<string, unknown>>( value?: T ): value is T { if (!value) return false; return Object.values(value).some(entry => { if (entry...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/utils/index.ts
packages/core/src/utils/index.ts
export * from './utils';
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/__tests__/entrypoint-typing.test.ts
packages/core/src/__tests__/entrypoint-typing.test.ts
/** * Type inference test for addEntrypoint * This file tests that TypeScript properly infers input/output types from Zod schemas */ import { describe, expect, test } from 'bun:test'; import { z } from 'zod'; import { createAgentCore } from '../core/agent'; describe('EntrypointDef type inference', () => { test(...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/__tests__/runtime.test.ts
packages/core/src/__tests__/runtime.test.ts
import { a2a } from '@lucid-agents/a2a'; import { analytics } from '@lucid-agents/analytics'; import { ap2 } from '@lucid-agents/ap2'; import { http } from '@lucid-agents/http'; import { identity } from '@lucid-agents/identity'; import { createRuntimePaymentContext, type RuntimePaymentOptions, } from '@lucid-agents...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
true
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/axllm/index.ts
packages/core/src/axllm/index.ts
import { createX402LLM, type CreateX402LLMOptions, } from '@lucid-agents/payments'; import type { Hex } from 'viem'; export type AxLLMClientOptions = { provider?: string; model?: string; apiKey?: string; apiUrl?: string; temperature?: number; debug?: boolean; env?: Record<string, string | undefined>;...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/core/index.ts
packages/core/src/core/index.ts
export { AgentCore, createAgentCore } from './agent';
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/core/agent.ts
packages/core/src/core/agent.ts
import type { AgentConfig, EntrypointDef } from '@lucid-agents/types/core'; import { z } from 'zod'; export class AgentCore { private entrypoints = new Map<string, EntrypointDef>(); constructor(public readonly config: AgentConfig) {} addEntrypoint< TInput extends z.ZodTypeAny | undefined = z.ZodTypeAny | u...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/src/ui/landing-page.ts
packages/core/src/ui/landing-page.ts
import { resolvePrice } from '@lucid-agents/payments'; import type { AgentMeta } from '@lucid-agents/types/a2a'; import type { EntrypointDef } from '@lucid-agents/types/core'; import type { PaymentsConfig } from '@lucid-agents/types/payments'; import { html } from 'hono/html'; import type { HtmlEscapedString } from 'ho...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
true
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/examples/full-agent.ts
packages/core/examples/full-agent.ts
/* * Minimal end-to-end example that exercises every major capability exposed by * @lucid/agent-kit: * 1. ERC-8004 identity bootstrap + trust manifest wiring * 2. Payments + AP2 manifest extension * 3. Streaming + standard entrypoints registered via createAgentApp * * The script is safe to run even if you ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/examples/firecrawl.ts
packages/core/examples/firecrawl.ts
import { z } from 'zod'; import { createAgentApp } from '@lucid-agents/hono'; import { AgentKitConfig, createAxLLMClient } from '@lucid-agents/core'; import { flow } from '@ax-llm/ax'; import { createSigner, decodeXPaymentResponse, wrapFetchWithPayment, type Hex, } from 'x402-fetch'; /** * This example shows ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/examples/agent-zero.ts
packages/core/examples/agent-zero.ts
import { z } from 'zod'; import { createAgentApp } from '@lucid-agents/hono'; import { AgentKitConfig, createAxLLMClient } from '@lucid-agents/core'; import { paymentsFromEnv } from '@lucid-agents/payments'; import { flow } from '@ax-llm/ax'; /** * Agent Zero now runs a lightweight quiz arcade. Players register for a...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/core/examples/ax-flow.ts
packages/core/examples/ax-flow.ts
import { z } from 'zod'; import { createAgentApp } from '@lucid-agents/hono'; import { AgentKitConfig, createAxLLMClient } from '@lucid-agents/core'; import { flow } from '@ax-llm/ax'; /** * This example shows how to combine `createAxLLMClient` with a small AxFlow * pipeline. The flow creates a short summary for a t...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/tsup.config.ts
packages/cli/tsup.config.ts
import { definePackageConfig } from "../tsup.config.base"; export default definePackageConfig({ entry: ["src/index.ts"], target: "node18", banner: { js: "#!/usr/bin/env node", }, });
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/src/adapters.ts
packages/cli/src/adapters.ts
import { join } from 'node:path'; import { fileURLToPath } from 'node:url'; const PACKAGE_ROOT = fileURLToPath(new URL('..', import.meta.url)); const ADAPTER_FILES_ROOT = join(PACKAGE_ROOT, 'adapters'); export type AdapterSnippets = { imports: string; preSetup: string; appCreation: string; entrypointRegistrat...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/src/index.ts
packages/cli/src/index.ts
import { spawn } from 'node:child_process'; import { existsSync, realpathSync } from 'node:fs'; import fs from 'node:fs/promises'; import { basename, dirname, join, relative, resolve } from 'node:path'; import process, { stdin as defaultInput, stdout as defaultOutput, } from 'node:process'; import { createInterface...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
true
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/src/__tests__/adapters.test.ts
packages/cli/src/__tests__/adapters.test.ts
import { describe, expect, it } from 'bun:test'; import { getAdapterDefinition } from '../adapters'; describe('Adapter Snippets', () => { it('all adapters only provide adapter-specific code', () => { const adapters = [ 'hono', 'express', 'tanstack-ui', 'tanstack-headless', 'next', ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/src/__tests__/merge.test.ts
packages/cli/src/__tests__/merge.test.ts
import { describe, test } from 'bun:test'; // Note: These functions would need to be exported from index.ts for testing // For now, this file documents the expected test structure describe('Template Merge System', () => { describe('parseTemplateSections', () => { test('parses valid template with all markers', (...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/tests/cli.test.ts
packages/cli/tests/cli.test.ts
import { afterEach, describe, expect, it } from 'bun:test'; import { cp, mkdtemp, readFile, readdir, rm, writeFile, mkdir, } from 'node:fs/promises'; import { tmpdir } from 'node:os'; import { join, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import { runCli, type PromptApi } fro...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/hono/src/index.ts
packages/cli/adapters/hono/src/index.ts
import { app } from './lib/agent'; const port = process.env.PORT ? parseInt(process.env.PORT) : 3000; console.log(`Starting agent server on port ${port}...`); export default { port, fetch: app.fetch, };
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/tailwind.config.ts
packages/cli/adapters/tanstack/headless/tailwind.config.ts
import type { Config } from 'tailwindcss'; import tailwindcssAnimate from 'tailwindcss-animate'; export default { content: ['./src/**/*.{ts,tsx,js,jsx}'], theme: { extend: {}, }, plugins: [tailwindcssAnimate], } satisfies Config;
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/vite.config.ts
packages/cli/adapters/tanstack/headless/vite.config.ts
import { defineConfig } from 'vite'; import { tanstackStart } from '@tanstack/react-start/plugin/vite'; import viteReact from '@vitejs/plugin-react'; import viteTsConfigPaths from 'vite-tsconfig-paths'; import tailwindcss from '@tailwindcss/vite'; import { nitroV2Plugin } from '@tanstack/nitro-v2-vite-plugin'; const c...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/global.d.ts
packages/cli/adapters/tanstack/headless/src/global.d.ts
import 'react'; declare global { namespace JSX { interface IntrinsicElements { 'appkit-button': React.DetailedHTMLProps< React.HTMLAttributes<HTMLElement>, HTMLElement >; } } } export {};
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routeTree.gen.ts
packages/cli/adapters/tanstack/headless/src/routeTree.gen.ts
/* eslint-disable */ // @ts-nocheck import { Route as rootRouteImport } from './routes/__root'; import { Route as IndexRouteImport } from './routes/index'; import { Route as DotwellKnownAgentCardDotjsonRouteImport } from './routes/[.]well-known/agent-card[.]json'; import { Route as ApiAgentManifestRouteImport } from ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/router.tsx
packages/cli/adapters/tanstack/headless/src/router.tsx
import { createRouter } from '@tanstack/react-router'; import { routeTree } from './routeTree.gen'; import { QueryClient } from '@tanstack/react-query'; /*import { DefaultCatchBoundary } from "./components/DefaultCatchBoundary"; import { NotFound } from "./components/NotFound";*/ import { setupRouterSsrQueryIntegratio...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/__root.tsx
packages/cli/adapters/tanstack/headless/src/routes/__root.tsx
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'; import type { ReactNode } from 'react'; export const Route = createRootRoute({ head: () => ({ meta: [ { charSet: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1', }, ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/index.tsx
packages/cli/adapters/tanstack/headless/src/routes/index.tsx
import { createFileRoute } from '@tanstack/react-router'; import { getNetworkInfo } from '@/lib/network'; export const Route = createFileRoute('/')({ loader: async () => { 'use server'; const { agent, runtime } = await import('@/lib/agent'); const manifest = runtime.manifest.build('http://localhost'); ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/api/agent/health.ts
packages/cli/adapters/tanstack/headless/src/routes/api/agent/health.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/health')({ server: { handlers: { GET: async ({ request }) => { const { handlers } = await import('@/lib/agent'); return handlers.health({ request }); }, }, }, });
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/api/agent/tasks.ts
packages/cli/adapters/tanstack/headless/src/routes/api/agent/tasks.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/tasks')({ server: { handlers: { POST: async ({ request }) => { const { handlers } = await import('@/lib/agent'); return handlers.tasks({ request }); }, GET: async ({ reques...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/api/agent/entrypoints.ts
packages/cli/adapters/tanstack/headless/src/routes/api/agent/entrypoints.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/entrypoints')({ server: { handlers: { GET: async ({ request }) => { const { handlers } = await import('@/lib/agent'); return handlers.entrypoints({ request }); }, }, }, });...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/api/agent/manifest.ts
packages/cli/adapters/tanstack/headless/src/routes/api/agent/manifest.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/manifest')({ server: { handlers: { GET: async ({ request }) => { const { handlers } = await import('@/lib/agent'); return handlers.manifest({ request }); }, }, }, });
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/api/agent/tasks/$taskId.ts
packages/cli/adapters/tanstack/headless/src/routes/api/agent/tasks/$taskId.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/tasks/$taskId')({ server: { handlers: { GET: async ({ request, params }) => { const { handlers } = await import('@/lib/agent'); const taskId = (params as { taskId: string }).taskId; ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/api/agent/tasks/$taskId/subscribe.ts
packages/cli/adapters/tanstack/headless/src/routes/api/agent/tasks/$taskId/subscribe.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/tasks/$taskId/subscribe')({ server: { handlers: { GET: async ({ request, params }) => { const { handlers } = await import('@/lib/agent'); const taskId = (params as { taskId: string })....
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/api/agent/tasks/$taskId/cancel.ts
packages/cli/adapters/tanstack/headless/src/routes/api/agent/tasks/$taskId/cancel.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/tasks/$taskId/cancel')({ server: { handlers: { POST: async ({ request, params }) => { const { handlers } = await import('@/lib/agent'); const taskId = (params as { taskId: string }).ta...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/api/agent/entrypoints/$key/invoke.ts
packages/cli/adapters/tanstack/headless/src/routes/api/agent/entrypoints/$key/invoke.ts
import { createFileRoute } from '@tanstack/react-router'; import { createTanStackPaywall } from '@lucid-agents/tanstack'; import { handlers, runtime } from '@/lib/agent'; const paywall = createTanStackPaywall({ runtime, basePath: '/api/agent', }); export const Route = createFileRoute('/api/agent/entrypoints/$key/...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/api/agent/entrypoints/$key/stream.ts
packages/cli/adapters/tanstack/headless/src/routes/api/agent/entrypoints/$key/stream.ts
import { createFileRoute } from '@tanstack/react-router'; import { createTanStackPaywall } from '@lucid-agents/tanstack'; import { handlers, runtime } from '@/lib/agent'; const paywall = createTanStackPaywall({ runtime, basePath: '/api/agent', }); export const Route = createFileRoute('/api/agent/entrypoints/$key/...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/routes/[.]well-known/agent-card[.]json.ts
packages/cli/adapters/tanstack/headless/src/routes/[.]well-known/agent-card[.]json.ts
import { createFileRoute } from '@tanstack/react-router'; import { json } from '@tanstack/react-start'; export const Route = createFileRoute('/.well-known/agent-card.json')({ server: { handlers: { GET: async ({ request }) => { const { runtime } = await import('@/lib/agent'); const origin = ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/lib/dashboard-loader.ts
packages/cli/adapters/tanstack/headless/src/lib/dashboard-loader.ts
import { createServerFn } from '@tanstack/react-start'; export type DashboardEntry = { key: string; description?: string | null; streaming: boolean; price?: string | { invoke?: string | null; stream?: string | null } | null; network?: string | null; }; export type AgentPayments = { network?: string | null...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/lib/utils.ts
packages/cli/adapters/tanstack/headless/src/lib/utils.ts
import { type ClassValue, clsx } from 'clsx'; import { twMerge } from 'tailwind-merge'; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); }
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/lib/api.ts
packages/cli/adapters/tanstack/headless/src/lib/api.ts
export type AgentEntrypoint = { key: string; description?: string | null; streaming: boolean; price?: string | { invoke?: string | null; stream?: string | null } | null; network?: string | null; }; export type AgentPayments = { network?: string | null; defaultPrice?: string | null; payTo?: string | nul...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/lib/network.ts
packages/cli/adapters/tanstack/headless/src/lib/network.ts
export type NetworkInfo = { id: string; label: string; chainId: number; faucetUrl?: string; explorerUrl?: string; }; const NETWORKS: Record<string, NetworkInfo> = { base: { id: 'base', label: 'Base Mainnet', chainId: 8453, explorerUrl: 'https://basescan.org', }, 'base-sepolia': { id...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/headless/src/config/viem.ts
packages/cli/adapters/tanstack/headless/src/config/viem.ts
// Placeholder - Wagmi config removed due to SSR serialization issues // TODO: Implement SSR-compatible wallet configuration export const viemConfig = null;
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/tailwind.config.ts
packages/cli/adapters/tanstack/ui/tailwind.config.ts
import type { Config } from 'tailwindcss'; import tailwindcssAnimate from 'tailwindcss-animate'; export default { content: ['./src/**/*.{ts,tsx,js,jsx}'], theme: { extend: {}, }, plugins: [tailwindcssAnimate], } satisfies Config;
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/vite.config.ts
packages/cli/adapters/tanstack/ui/vite.config.ts
import { defineConfig } from 'vite'; import { tanstackStart } from '@tanstack/react-start/plugin/vite'; import viteReact from '@vitejs/plugin-react'; import viteTsConfigPaths from 'vite-tsconfig-paths'; import tailwindcss from '@tailwindcss/vite'; import { nitroV2Plugin } from '@tanstack/nitro-v2-vite-plugin'; const c...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/global.d.ts
packages/cli/adapters/tanstack/ui/src/global.d.ts
import 'react'; declare global { namespace JSX { interface IntrinsicElements { 'appkit-button': React.DetailedHTMLProps< React.HTMLAttributes<HTMLElement>, HTMLElement >; } } } export {};
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routeTree.gen.ts
packages/cli/adapters/tanstack/ui/src/routeTree.gen.ts
/* eslint-disable */ // @ts-nocheck // noinspection JSUnusedGlobalSymbols // This file was automatically generated by TanStack Router. // You should NOT make any changes in this file as it will be overwritten. // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from bei...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/router.tsx
packages/cli/adapters/tanstack/ui/src/router.tsx
import { createRouter } from '@tanstack/react-router'; import { routeTree } from './routeTree.gen'; import { QueryClient } from '@tanstack/react-query'; /*import { DefaultCatchBoundary } from "./components/DefaultCatchBoundary"; import { NotFound } from "./components/NotFound";*/ import { setupRouterSsrQueryIntegratio...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/__root.tsx
packages/cli/adapters/tanstack/ui/src/routes/__root.tsx
import { TanStackDevtools } from '@tanstack/react-devtools'; import { createRootRoute, HeadContent, Scripts } from '@tanstack/react-router'; import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools'; import { AppKitProvider } from '../components/AppkitProvider'; import Header from '../components/He...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/about.tsx
packages/cli/adapters/tanstack/ui/src/routes/about.tsx
import { createFileRoute } from '@tanstack/react-router'; const sections = [ { icon: 'πŸ€–', title: 'What is an agent?', content: 'Agents are AI-powered services that expose entrypointsβ€”callable operations that perform specific tasks. Each agent publishes a manifest describing capabilities, pricing, ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/index.tsx
packages/cli/adapters/tanstack/ui/src/routes/index.tsx
import { createFileRoute } from '@tanstack/react-router'; import { useWalletClient } from 'wagmi'; import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { getHealth, getManifest, invokeEntrypointWithBody, streamEntrypointWithBody, type AgentHealth, type AgentPayments, } from '@/l...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
true
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/api/agent/health.ts
packages/cli/adapters/tanstack/ui/src/routes/api/agent/health.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/health')({ server: { handlers: { GET: async ({ request }) => { const { handlers } = await import('@/lib/agent'); return handlers.health({ request }); }, }, }, });
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/api/agent/tasks.ts
packages/cli/adapters/tanstack/ui/src/routes/api/agent/tasks.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/tasks')({ server: { handlers: { POST: async ({ request }) => { const { handlers } = await import('@/lib/agent'); return handlers.tasks({ request }); }, GET: async ({ reques...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/api/agent/entrypoints.ts
packages/cli/adapters/tanstack/ui/src/routes/api/agent/entrypoints.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/entrypoints')({ server: { handlers: { GET: async ({ request }) => { const { handlers } = await import('@/lib/agent'); return handlers.entrypoints({ request }); }, }, }, });...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/api/agent/manifest.ts
packages/cli/adapters/tanstack/ui/src/routes/api/agent/manifest.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/manifest')({ server: { handlers: { GET: async ({ request }) => { const { handlers } = await import('@/lib/agent'); return handlers.manifest({ request }); }, }, }, });
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/api/agent/tasks/$taskId.ts
packages/cli/adapters/tanstack/ui/src/routes/api/agent/tasks/$taskId.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/tasks/$taskId')({ server: { handlers: { GET: async ({ request, params }) => { const { handlers } = await import('@/lib/agent'); const taskId = (params as { taskId: string }).taskId; ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/api/agent/tasks/$taskId/subscribe.ts
packages/cli/adapters/tanstack/ui/src/routes/api/agent/tasks/$taskId/subscribe.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/tasks/$taskId/subscribe')({ server: { handlers: { GET: async ({ request, params }) => { const { handlers } = await import('@/lib/agent'); const taskId = (params as { taskId: string })....
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/api/agent/tasks/$taskId/cancel.ts
packages/cli/adapters/tanstack/ui/src/routes/api/agent/tasks/$taskId/cancel.ts
import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/api/agent/tasks/$taskId/cancel')({ server: { handlers: { POST: async ({ request, params }) => { const { handlers } = await import('@/lib/agent'); const taskId = (params as { taskId: string }).ta...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/api/agent/entrypoints/$key/invoke.ts
packages/cli/adapters/tanstack/ui/src/routes/api/agent/entrypoints/$key/invoke.ts
import { createTanStackPaywall } from '@lucid-agents/tanstack'; import { createFileRoute } from '@tanstack/react-router'; import { handlers, runtime } from '@/lib/agent'; const paywall = createTanStackPaywall({ runtime, basePath: '/api/agent', }); export const Route = createFileRoute('/api/agent/entrypoints/$key...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/api/agent/entrypoints/$key/stream.ts
packages/cli/adapters/tanstack/ui/src/routes/api/agent/entrypoints/$key/stream.ts
import { createFileRoute } from '@tanstack/react-router'; import { createTanStackPaywall } from '@lucid-agents/tanstack'; import { handlers, runtime } from '@/lib/agent'; const paywall = createTanStackPaywall({ runtime, basePath: '/api/agent', }); export const Route = createFileRoute('/api/agent/entrypoints/$key/...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/routes/[.]well-known/agent-card[.]json.ts
packages/cli/adapters/tanstack/ui/src/routes/[.]well-known/agent-card[.]json.ts
import { createFileRoute } from '@tanstack/react-router'; import { json } from '@tanstack/react-start'; export const Route = createFileRoute('/.well-known/agent-card.json')({ server: { handlers: { GET: async ({ request }) => { const { runtime } = await import('@/lib/agent'); const origin = ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/components/AppkitProvider.tsx
packages/cli/adapters/tanstack/ui/src/components/AppkitProvider.tsx
import { createAppKit } from '@reown/appkit/react'; import { WagmiProvider, cookieStorage, createStorage } from 'wagmi'; import { base, baseSepolia, solana, solanaDevnet, type AppKitNetwork, } from '@reown/appkit/networks'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { Wa...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/components/wallet-summary.tsx
packages/cli/adapters/tanstack/ui/src/components/wallet-summary.tsx
'use client'; import { useAccount } from 'wagmi'; import { cn } from '@/lib/utils'; export function WalletSummary({ className }: { className?: string }) { const { address, isConnected } = useAccount(); const projectId = (import.meta as any).env?.VITE_PROJECT_ID ?? (import.meta as any).env?.VITE_WALLET_CO...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/components/Header.tsx
packages/cli/adapters/tanstack/ui/src/components/Header.tsx
import { Link } from '@tanstack/react-router'; import { Home, Menu, X } from 'lucide-react'; import { useState } from 'react'; export default function Header() { const [isOpen, setIsOpen] = useState(false); return ( <> <header className="p-4 flex items-center bg-gray-800 text-white shadow-lg"> <...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/components/schema-form.tsx
packages/cli/adapters/tanstack/ui/src/components/schema-form.tsx
import { useEffect, useState } from 'react'; import { cn } from '@/lib/utils'; type JSONSchema = { type?: string; properties?: Record<string, JSONSchema>; required?: string[]; description?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; pattern?: string; items?...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/lib/dashboard-loader.ts
packages/cli/adapters/tanstack/ui/src/lib/dashboard-loader.ts
import { createServerFn } from '@tanstack/react-start'; export type DashboardEntry = { key: string; description?: string | null; streaming: boolean; price?: string | { invoke?: string | null; stream?: string | null } | null; network?: string | null; }; export type AgentPayments = { network?: string | null...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/lib/utils.ts
packages/cli/adapters/tanstack/ui/src/lib/utils.ts
import { type ClassValue, clsx } from 'clsx'; import { twMerge } from 'tailwind-merge'; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); }
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/lib/api.ts
packages/cli/adapters/tanstack/ui/src/lib/api.ts
export type AgentEntrypoint = { key: string; description?: string | null; streaming: boolean; price?: string | { invoke?: string | null; stream?: string | null } | null; network?: string | null; }; export type AgentPayments = { network?: string | null; defaultPrice?: string | null; payTo?: string | nul...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/lib/network.ts
packages/cli/adapters/tanstack/ui/src/lib/network.ts
export type NetworkInfo = { id: string; label: string; chainId: number; faucetUrl?: string; explorerUrl?: string; }; const NETWORKS: Record<string, NetworkInfo> = { base: { id: 'base', label: 'Base Mainnet', chainId: 8453, explorerUrl: 'https://basescan.org', }, 'base-sepolia': { id...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/tanstack/ui/src/config/viem.ts
packages/cli/adapters/tanstack/ui/src/config/viem.ts
// Placeholder - Wagmi config removed due to SSR serialization issues // TODO: Implement SSR-compatible wallet configuration export const viemConfig = null;
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/cli/adapters/next/next-env.d.ts
packages/cli/adapters/next/next-env.d.ts
/// <reference types="next" /> /// <reference types="next/image-types/global" /> // NOTE: This file is automatically generated by Next.js and should not be edited.
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false