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/payments/src/sqlite-payment-storage.ts
packages/payments/src/sqlite-payment-storage.ts
import { mkdirSync } from 'fs'; import { dirname } from 'path'; import { Database } from 'bun:sqlite'; import type { PaymentRecord, PaymentDirection, } from '@lucid-agents/types/payments'; import type { PaymentStorage } from './payment-storage'; /** * SQLite payment storage implementation using Bun's native SQLit...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/payment-storage.ts
packages/payments/src/payment-storage.ts
import type { PaymentDirection, PaymentRecord } from '@lucid-agents/types/payments'; /** * Interface for payment data storage. * Allows swapping between different storage implementations (SQLite, In-Memory, Postgres). */ export interface PaymentStorage { /** * Records a payment (outgoing or incoming). * @pa...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/payments.ts
packages/payments/src/payments.ts
import type { Network } from 'x402/types'; import type { EntrypointDef, AgentCore, AgentRuntime, } from '@lucid-agents/types/core'; import type { EntrypointPrice } from '@lucid-agents/types/payments'; import type { PaymentsConfig, PaymentRequirement, RuntimePaymentRequirement, PaymentPolicyGroup, Paymen...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/runtime.ts
packages/payments/src/runtime.ts
import type { AgentRuntime } from '@lucid-agents/types/core'; import type { WalletConnector } from '@lucid-agents/types/wallets'; import type { Signer } from 'x402/types'; import { createSigner, type Hex, wrapFetchWithPayment } from 'x402-fetch'; import { sanitizeAddress, ZERO_ADDRESS } from './crypto'; import { wrapBa...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/types.ts
packages/payments/src/types.ts
// All shared types have been moved to @lucid-agents/types // This file is kept for potential payment-specific types in the future
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/policy.ts
packages/payments/src/policy.ts
import type { PaymentPolicyGroup, OutgoingLimit, OutgoingLimitsConfig, IncomingLimit, IncomingLimitsConfig, } from '@lucid-agents/types/payments'; import type { PaymentTracker } from './payment-tracker'; import type { RateLimiter } from './rate-limiter'; /** * Result of policy evaluation. */ export type Po...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/policy-config.ts
packages/payments/src/policy-config.ts
import { readFileSync } from 'node:fs'; import { join } from 'node:path'; import type { PaymentPolicyGroup } from '@lucid-agents/types/payments'; import { PaymentPolicyGroupsSchema } from './policy-schema'; /** * Loads payment policy groups from a config file. * Looks for payment-policies.json in the current workin...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/index.ts
packages/payments/src/index.ts
export { resolvePrice } from './pricing'; export { createAgentCardWithPayments } from './manifest'; export { validatePaymentsConfig } from './validation'; export { entrypointHasExplicitPrice, evaluatePaymentRequirement, resolveActivePayments, resolvePaymentRequirement, paymentRequiredResponse, createPayment...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/pricing.ts
packages/payments/src/pricing.ts
import type { EntrypointDef } from '@lucid-agents/types/core'; import type { PaymentsConfig } from '@lucid-agents/types/payments'; /** * Resolves the price for an entrypoint. * Returns null if no price is explicitly set on the entrypoint. */ export function resolvePrice( entrypoint: EntrypointDef, payments: Pay...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/manifest.ts
packages/payments/src/manifest.ts
import type { AgentCardWithEntrypoints, Manifest, PaymentMethod } from '@lucid-agents/types/a2a'; import type { EntrypointDef } from '@lucid-agents/types/core'; import type { PaymentsConfig } from '@lucid-agents/types/payments'; import { resolvePrice } from './pricing'; /** * Creates a new Agent Card with payments m...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/x402.ts
packages/payments/src/x402.ts
import { ai } from '@ax-llm/ax'; import { privateKeyToAccount } from 'viem/accounts'; import { type Hex, wrapFetchWithPayment } from 'x402-fetch'; const DEFAULT_MODEL = 'gpt-5'; const DEFAULT_PROVIDER = 'openai'; const DEFAULT_API_URL = 'https://api-beta.daydreams.systems/v1'; const MAX_PAYMENT_BASE_UNITS = '10000000'...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/policy-wrapper.ts
packages/payments/src/policy-wrapper.ts
import type { PaymentPolicyGroup } from '@lucid-agents/types/payments'; import type { PaymentTracker } from './payment-tracker'; import type { RateLimiter } from './rate-limiter'; import { evaluatePolicyGroups, findMostSpecificOutgoingLimit } from './policy'; type FetchLike = ( input: RequestInfo | URL, init?: Req...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/__tests__/payment-tracker.test.ts
packages/payments/src/__tests__/payment-tracker.test.ts
import { describe, expect, it, beforeEach } from 'bun:test'; import { createPaymentTracker } from '../payment-tracker'; import { createInMemoryPaymentStorage } from '../in-memory-payment-storage'; import { createPostgresPaymentStorage } from '../postgres-payment-storage'; // Use test database connection string from en...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/__tests__/policy.test.ts
packages/payments/src/__tests__/policy.test.ts
import { describe, expect, it, beforeEach } from 'bun:test'; import type { PaymentPolicyGroup } from '@lucid-agents/types/payments'; import { evaluateRecipient, evaluateRateLimit, evaluateOutgoingLimits, evaluatePolicyGroups, } from '../policy'; import { createPaymentTracker } from '../payment-tracker'; import ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/__tests__/manifest.test.ts
packages/payments/src/__tests__/manifest.test.ts
import { describe, expect, it } from 'bun:test'; import type { AgentCardWithEntrypoints } from '@lucid-agents/types/a2a'; import type { EntrypointDef } from '@lucid-agents/types/core'; import { z } from 'zod'; import { createAgentCardWithPayments } from '../manifest'; import type { PaymentsConfig } from '@lucid-agents...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/__tests__/multi-agent-isolation.test.ts
packages/payments/src/__tests__/multi-agent-isolation.test.ts
import { describe, expect, it, beforeEach, afterEach } from 'bun:test'; import { createPostgresPaymentStorage } from '../postgres-payment-storage'; import { createPaymentTracker } from '../payment-tracker'; import type { PaymentStorage } from '../payment-storage'; // Use test database connection string from env // Onl...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/__tests__/policy-wrapper.test.ts
packages/payments/src/__tests__/policy-wrapper.test.ts
import { describe, expect, it, beforeEach } from 'bun:test'; import type { PaymentPolicyGroup } from '@lucid-agents/types/payments'; import { wrapBaseFetchWithPolicy } from '../policy-wrapper'; import { createPaymentTracker } from '../payment-tracker'; import { createInMemoryPaymentStorage } from '../in-memory-payment-...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/__tests__/rate-limiter.test.ts
packages/payments/src/__tests__/rate-limiter.test.ts
import { describe, expect, it, beforeEach } from 'bun:test'; import { createRateLimiter } from '../rate-limiter'; describe('RateLimiter', () => { let limiter: ReturnType<typeof createRateLimiter>; beforeEach(() => { limiter = createRateLimiter(); }); describe('checkLimit', () => { it('should allow pa...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/payments/src/__tests__/postgres-payment-storage.test.ts
packages/payments/src/__tests__/postgres-payment-storage.test.ts
import { describe, expect, it, beforeEach, afterEach } from 'bun:test'; import { createPostgresPaymentStorage } from '../postgres-payment-storage'; import type { PaymentStorage } from '../payment-storage'; // Use test database connection string from env // Only use default in local dev (when not in CI) const TEST_DB_U...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/ap2/tsup.config.ts
packages/ap2/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/ap2/src/extension.ts
packages/ap2/src/extension.ts
import type { AgentRuntime, BuildContext, Extension, } from '@lucid-agents/types/core'; import type { AgentCardWithEntrypoints } from '@lucid-agents/types/a2a'; import type { AP2Config, AP2Runtime } from '@lucid-agents/types/ap2'; import { createAgentCardWithAP2 } from './manifest'; import { createAP2Runtime } f...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/ap2/src/runtime.ts
packages/ap2/src/runtime.ts
import type { AP2Config, AP2Runtime } from '@lucid-agents/types/ap2'; /** * Creates AP2 runtime from configuration. * Returns undefined if no config provided. */ export function createAP2Runtime(config?: AP2Config): AP2Runtime | undefined { if (!config) { return undefined; } return { config, }; }
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/ap2/src/types.ts
packages/ap2/src/types.ts
// AP2 (Agent Payments Protocol) typings and constants. // These mirror the published PYDantic models so TypeScript agents can share // the same shapes when constructing mandates or AgentCard extensions. export const CONTACT_ADDRESS_DATA_KEY = 'contact_picker.ContactAddress' as const; export type ContactAddress = { ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/ap2/src/index.ts
packages/ap2/src/index.ts
export { createAP2Runtime } from './runtime'; export { createAgentCardWithAP2 } from './manifest'; export { AP2_EXTENSION_URI } from './types'; export type { AP2Config, AP2ExtensionDescriptor, AP2ExtensionParams, AP2Role } from '@lucid-agents/types/ap2'; export { ap2 } from './extension';
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/ap2/src/manifest.ts
packages/ap2/src/manifest.ts
import type { AgentCardWithEntrypoints, AgentCapabilities } from '@lucid-agents/types/a2a'; import type { AP2Config, AP2ExtensionDescriptor, AP2Role } from '@lucid-agents/types/ap2'; import { AP2_EXTENSION_URI } from './types'; /** * Creates a new Agent Card with AP2 extension added. * Immutable - returns new card,...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/ap2/src/__tests__/manifest.test.ts
packages/ap2/src/__tests__/manifest.test.ts
import { describe, expect, it } from 'bun:test'; import type { AgentCardWithEntrypoints } from '@lucid-agents/types/a2a'; import { createAgentCardWithAP2 } from '../manifest'; import { AP2_EXTENSION_URI } from '../types'; describe('createAgentCardWithAP2', () => { const baseCard: AgentCardWithEntrypoints = { na...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/ap2/src/__tests__/runtime.test.ts
packages/ap2/src/__tests__/runtime.test.ts
import { describe, expect, it } from 'bun:test'; import { createAP2Runtime } from '../runtime'; describe('createAP2Runtime', () => { it('creates runtime when config provided', () => { const runtime = createAP2Runtime({ roles: ['merchant'], required: true, }); expect(runtime).toBeDefined(); ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/hono/tsup.config.ts
packages/hono/tsup.config.ts
import { defineConfig } from "tsup"; export default defineConfig({ entry: ["src/index.ts"], format: ["esm"], dts: true, sourcemap: true, clean: true, treeshake: true, tsconfig: "./tsconfig.build.json", external: [ '@lucid-agents/core', '@lucid-agents/payments', '@lucid-agents/types', 'h...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/hono/src/paywall.ts
packages/hono/src/paywall.ts
import type { Hono, Context } from 'hono'; import { paymentMiddleware } from 'x402-hono'; import type { FacilitatorConfig } from 'x402/types'; import { z } from 'zod'; import type { EntrypointDef, AgentRuntime } from '@lucid-agents/types/core'; import type { PaymentsConfig } from '@lucid-agents/types/payments'; import ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/hono/src/utils.ts
packages/hono/src/utils.ts
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/hono/src/app.ts
packages/hono/src/app.ts
import { Hono } from 'hono'; import { z } from 'zod'; import type { EntrypointDef, CreateAgentAppReturn, AgentRuntime, } from '@lucid-agents/types/core'; import { withPayments } from './paywall'; export type CreateAgentAppOptions = { /** * Hook called before mounting agent routes. * Use this to register ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/hono/src/index.ts
packages/hono/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/hono/src/__tests__/index.ap2.test.ts
packages/hono/src/__tests__/index.ap2.test.ts
import { createAgent } from '@lucid-agents/core'; import { http } from '@lucid-agents/http'; import { ap2, AP2_EXTENSION_URI } from '@lucid-agents/ap2'; import { payments } from '@lucid-agents/payments'; import { createAgentApp } from '@lucid-agents/hono'; import { describe, expect, it } from 'bun:test'; describe('cre...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/hono/src/__tests__/index.core.test.ts
packages/hono/src/__tests__/index.core.test.ts
import { createAgent } from '@lucid-agents/core'; import { http } from '@lucid-agents/http'; import { payments } from '@lucid-agents/payments'; import { createAgentApp, withPayments } from '@lucid-agents/hono'; import { resolvePrice } from '@lucid-agents/payments'; import type { EntrypointDef } from '@lucid-agents/type...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/hono/src/__tests__/incoming-payments.test.ts
packages/hono/src/__tests__/incoming-payments.test.ts
import { describe, expect, it, beforeEach, jest } from 'bun:test'; import type { Context } from 'hono'; import type { PaymentsConfig, PaymentPolicyGroup } from '@lucid-agents/types/payments'; import { createInMemoryPaymentStorage } from '@lucid-agents/payments'; import { createPaymentTracker, extractPayerAddress, extra...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/hono/src/__tests__/solana-payments.test.ts
packages/hono/src/__tests__/solana-payments.test.ts
import { createAgent } from '@lucid-agents/core'; import { http } from '@lucid-agents/http'; import { payments } from '@lucid-agents/payments'; import { createAgentApp } from '@lucid-agents/hono'; import { describe, expect, it } from 'bun:test'; import { z } from 'zod'; import type { PaymentsConfig } from '@lucid-agent...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/tsup.config.ts
packages/wallet/tsup.config.ts
import { definePackageConfig } from "../tsup.config.base"; export default definePackageConfig({ entry: ["src/index.ts"], dts: true, external: ["viem"], });
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/env.ts
packages/wallet/src/env.ts
import type { AgentWalletConfig, DeveloperWalletConfig, LocalWalletClientConfig, LocalWalletOptions, LucidWalletOptions, ThirdwebWalletOptions, WalletsConfig, } from '@lucid-agents/types/wallets'; type EnvRecord = Record<string, string | undefined>; const DEFAULT_ENV: EnvRecord = typeof process !== 'u...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/extension.ts
packages/wallet/src/extension.ts
import type { BuildContext, Extension } from '@lucid-agents/types/core'; import type { WalletsConfig, WalletsRuntime } from '@lucid-agents/types/wallets'; import { createWalletsRuntime } from './runtime'; export function wallets( options?: { config?: WalletsConfig } ): Extension<{ wallets?: WalletsRuntime }> { re...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/runtime.ts
packages/wallet/src/runtime.ts
import { LocalEoaWalletConnector, createPrivateKeySigner, type LocalEoaWalletConnectorOptions, } from './connectors/local-eoa-connector'; import { ServerOrchestratorWalletConnector, type ServerOrchestratorWalletConnectorOptions, } from './connectors/server-orchestrator-connector'; import { ThirdwebWalletCon...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/index.ts
packages/wallet/src/index.ts
export type { NormalizedChallenge, ChallengeMessageEncoding, } from './connectors/base-connector'; export { normalizeChallenge, extractSignature, extractWalletMetadata, detectMessageEncoding, } from './connectors/base-connector'; export { LocalEoaWalletConnector, createPrivateKeySigner, type LocalEoa...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/utils/signatures.ts
packages/wallet/src/utils/signatures.ts
/** * Signature helpers using Viem's standard methods. * Supports EIP-191 (personal_sign) and EIP-712 (typed data) signing. */ import type { Account, WalletClient } from 'viem'; import { signMessage, signTypedData, verifyMessage } from 'viem/actions'; import type { Hex } from './types'; /** * Viem WalletClient t...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/utils/address.ts
packages/wallet/src/utils/address.ts
/** * Address normalization and CAIP-10 utilities */ import type { Hex } from './types'; export const ZERO_ADDRESS: Hex = '0x0000000000000000000000000000000000000000'; /** * Normalize an Ethereum address to lowercase hex format * Throws if the address is invalid */ export function normalizeAddress(value: string...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/utils/types.ts
packages/wallet/src/utils/types.ts
/** * Common type definitions */ export type Hex = `0x${string}`;
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/utils/index.ts
packages/wallet/src/utils/index.ts
export * from './address'; export * from './signatures'; export * from './types';
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/connectors/viem-wallet-connector.ts
packages/wallet/src/connectors/viem-wallet-connector.ts
import type { WalletConnector, WalletMetadata, WalletCapabilities, AgentChallenge, LocalEoaSigner, } from '@lucid-agents/types/wallets'; import { hashMessage, recoverMessageAddress, type WalletClient } from 'viem'; /** * Options for creating a ViemWalletConnector. */ export interface ViemWalletConnectorOpt...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/connectors/base-connector.ts
packages/wallet/src/connectors/base-connector.ts
import type { AgentChallengeResponse, ChallengeSigner, WalletConnector, WalletMetadata, } from '@lucid-agents/types/wallets'; export interface NormalizedChallenge { id: string; credentialId: string | null; payload: unknown; payloadHash: string | null; nonce: string; scopes: string[]; issuedAt: Da...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/connectors/signer-connector.ts
packages/wallet/src/connectors/signer-connector.ts
import type { LocalEoaSigner } from '@lucid-agents/types/wallets'; /** * Interface for a wallet that can be converted to a LocalEoaSigner. * This works with wallets that have local signing capabilities (not thirdweb server wallets). */ export interface CompatibleWallet { /** Wallet address (property or method) */...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/connectors/server-orchestrator-connector.ts
packages/wallet/src/connectors/server-orchestrator-connector.ts
import type { AgentChallengeResponse, FetchExecutor, WalletCapabilities, WalletConnector, WalletMetadata, } from '@lucid-agents/types/wallets'; import { detectMessageEncoding, extractSignature, extractWalletMetadata, normalizeChallenge, } from './base-connector'; export interface ServerOrchestratorW...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/connectors/local-eoa-connector.ts
packages/wallet/src/connectors/local-eoa-connector.ts
import type { AgentChallengeResponse, LocalEoaSigner, LocalWalletClientConfig, TypedDataPayload, WalletCapabilities, WalletConnector, WalletMetadata, } from '@lucid-agents/types/wallets'; import type { Chain, SignableMessage, Transport, WalletClient } from 'viem'; import { createWalletClient, http } from ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/connectors/thirdweb-connector.ts
packages/wallet/src/connectors/thirdweb-connector.ts
import type { AgentChallengeResponse, LocalEoaSigner, TypedDataPayload, WalletCapabilities, WalletConnector, WalletMetadata, ThirdwebWalletOptions, } from '@lucid-agents/types/wallets'; import type { WalletClient } from 'viem'; import { detectMessageEncoding, normalizeChallenge } from './base-connector';...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/__tests__/wallet/server-orchestrator-connector.test.ts
packages/wallet/src/__tests__/wallet/server-orchestrator-connector.test.ts
import { afterEach, describe, expect, it, mock } from "bun:test"; import type { AgentChallengeResponse } from '@lucid-agents/types/wallets'; import { ServerOrchestratorWalletConnector } from '../../connectors/server-orchestrator-connector'; const baseChallenge: AgentChallengeResponse["challenge"] = { id: "challeng...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/__tests__/wallet/create-agent-wallet.test.ts
packages/wallet/src/__tests__/wallet/create-agent-wallet.test.ts
import { afterEach, describe, expect, it, mock } from "bun:test"; import { LocalEoaWalletConnector } from '../../connectors/local-eoa-connector'; import { ServerOrchestratorWalletConnector } from '../../connectors/server-orchestrator-connector'; import { ThirdwebWalletConnector } from '../../connectors/thirdweb-connec...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/__tests__/wallet/env.test.ts
packages/wallet/src/__tests__/wallet/env.test.ts
import { describe, expect, it } from 'bun:test'; import { resolveAgentWalletFromEnv } from '../../env'; describe('resolveAgentWalletFromEnv', () => { it('resolves thirdweb wallet from AGENT_WALLET_ environment variables', () => { const env = { AGENT_WALLET_TYPE: 'thirdweb', AGENT_WALLET_SECRET_KEY: ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/wallet/src/__tests__/wallet/local-eoa-connector.test.ts
packages/wallet/src/__tests__/wallet/local-eoa-connector.test.ts
import { describe, expect, it } from 'bun:test'; import type { AgentChallengeResponse, LocalEoaSigner, } from '@lucid-agents/types/wallets'; import { LocalEoaWalletConnector } from '../../connectors/local-eoa-connector'; const baseChallenge: AgentChallengeResponse['challenge'] = { id: 'challenge-1', credenti...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/tanstack/tsup.config.ts
packages/tanstack/tsup.config.ts
import { defineConfig } from "tsup"; export default defineConfig({ entry: ["src/index.ts"], format: ["esm"], dts: true, sourcemap: true, clean: true, treeshake: true, tsconfig: "tsconfig.build.json", external: [ '@lucid-agents/core', '@lucid-agents/payments', '@lucid-agents/types', '@ta...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/tanstack/src/paywall.ts
packages/tanstack/src/paywall.ts
import type { AgentRuntime } from '@lucid-agents/types/core'; import { z } from 'zod'; import type { EntrypointDef } from '@lucid-agents/types/core'; import type { PaymentsConfig } from '@lucid-agents/types/payments'; import { resolvePrice, validatePaymentsConfig } from '@lucid-agents/payments'; import type { Facilit...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/tanstack/src/x402-paywall.ts
packages/tanstack/src/x402-paywall.ts
import { createMiddleware, type RequestServerOptions, type RequestServerResult, } from '@tanstack/react-start'; import type { SolanaAddress } from '@lucid-agents/types/payments'; import { Address, getAddress } from 'viem'; import { exact } from 'x402/schemes'; import { getPaywallHtml } from 'x402/paywall'; import...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/tanstack/src/runtime.ts
packages/tanstack/src/runtime.ts
import type { AgentRuntime } from '@lucid-agents/types/core'; export type TanStackRequestHandler = (ctx: { request: Request; }) => Promise<Response>; export type TanStackRouteHandler<P extends Record<string, string>> = (ctx: { request: Request; params: P; }) => Promise<Response>; export type TanStackHandlers =...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/tanstack/src/index.ts
packages/tanstack/src/index.ts
export { createTanStackRuntime, createTanStackHandlers, type TanStackHandlers, type TanStackRequestHandler, type TanStackRouteHandler, type TanStackRuntime, } from "./runtime"; export { createTanStackPaywall, type CreateTanStackPaywallOptions, type TanStackPaywall, } from "./paywall"; export { pay...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/tanstack/src/__tests__/paywall.test.ts
packages/tanstack/src/__tests__/paywall.test.ts
import { describe, expect, it } from "bun:test"; import type { PaymentsConfig } from "@lucid-agents/types/payments"; import { createTanStackPaywall } from "../paywall"; import type { RoutesConfig } from "x402/types"; import type { TanStackRequestMiddleware } from "../x402-paywall"; describe("createTanStackPaywall", ()...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/tanstack/src/__tests__/runtime.test.ts
packages/tanstack/src/__tests__/runtime.test.ts
import { describe, expect, it } from "bun:test"; import { createAgent } from "@lucid-agents/core"; import { http } from "@lucid-agents/http"; import { createTanStackRuntime } from "../runtime"; const meta = { name: "test-agent", version: "0.0.1", description: "test", }; describe("createTanStackRuntime", () => {...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/tanstack/src/__tests__/solana-payments.test.ts
packages/tanstack/src/__tests__/solana-payments.test.ts
import { describe, expect, it } from 'bun:test'; import type { PaymentsConfig } from '@lucid-agents/types/payments'; import { createTanStackPaywall } from '../paywall'; import type { RoutesConfig } from 'x402/types'; import type { TanStackRequestMiddleware } from '../x402-paywall'; describe('TanStack Solana Payments',...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/scheduler/tsup.config.ts
packages/scheduler/tsup.config.ts
import { definePackageConfig } from '../tsup.config.base'; export default definePackageConfig({ entry: ['src/index.ts'], dts: true, external: [ '@lucid-agents/types', ], });
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/scheduler/src/extension.ts
packages/scheduler/src/extension.ts
import type { AgentRuntime, BuildContext, Extension, } from '@lucid-agents/types/core'; import type { SchedulerRuntime } from '@lucid-agents/types/scheduler'; import { createMemoryStore } from './store/memory'; import { createSchedulerRuntime } from './runtime'; import type { SchedulerStore } from '@lucid-agents/...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/scheduler/src/runtime.ts
packages/scheduler/src/runtime.ts
import { randomUUID } from 'crypto'; import type { Hire, InvokeArgs, Job, OperationResult, Schedule, SchedulerRuntime, SchedulerStore, } from '@lucid-agents/types/scheduler'; import type { AgentRuntime } from '@lucid-agents/types/core'; export type CreateSchedulerRuntimeOptions = { runtime: AgentRuntim...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/scheduler/src/index.ts
packages/scheduler/src/index.ts
export { scheduler } from './extension'; export { createSchedulerRuntime } from './runtime'; export { createSchedulerWorker } from './worker'; export { createMemoryStore } from './store/memory'; export type { AgentRef, Hire, InvokeArgs, InvokeFn, Job, JobStatus, JsonValue, OperationResult, PaymentCont...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/scheduler/src/worker.ts
packages/scheduler/src/worker.ts
import type { SchedulerRuntime } from '@lucid-agents/types/scheduler'; export function createSchedulerWorker( runtime: SchedulerRuntime, intervalMs = 5_000 ) { let timer: ReturnType<typeof setInterval> | undefined; return { start() { if (timer) return; timer = setInterval(() => { runti...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/scheduler/src/store/memory.ts
packages/scheduler/src/store/memory.ts
import type { Hire, Job, SchedulerStore } from '@lucid-agents/types/scheduler'; export function createMemoryStore(): SchedulerStore { return new MemoryStore(); } class MemoryStore implements SchedulerStore { private hires = new Map<string, Hire>(); private jobs = new Map<string, Job>(); async putHire(hire: H...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/scheduler/src/__tests__/runtime.test.ts
packages/scheduler/src/__tests__/runtime.test.ts
import { describe, it, expect, mock } from 'bun:test'; import { createSchedulerRuntime } from '../runtime'; import { createMemoryStore } from '../store/memory'; import type { InvokeArgs, Job, OperationResult, PaymentContext, SchedulerStore, WalletRef, } from '@lucid-agents/types/scheduler'; import type { Ag...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
true
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/scheduler/src/__tests__/worker.test.ts
packages/scheduler/src/__tests__/worker.test.ts
import { describe, it, expect, mock, beforeEach, afterEach } from 'bun:test'; import { createSchedulerWorker } from '../worker'; import type { OperationResult, SchedulerRuntime, } from '@lucid-agents/types/scheduler'; function createMockRuntime( overrides: Partial<SchedulerRuntime> = {} ): SchedulerRuntime { r...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/scheduler/src/__tests__/store/memory.test.ts
packages/scheduler/src/__tests__/store/memory.test.ts
import { describe, it, expect, beforeEach } from 'bun:test'; import { createMemoryStore } from '../../store/memory'; import type { Hire, Job } from '@lucid-agents/types/scheduler'; const createMockHire = (overrides: Partial<Hire> = {}): Hire => ({ id: `hire-${Math.random().toString(36).slice(2)}`, agent: { age...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/tsup.config.ts
packages/types/tsup.config.ts
import { definePackageConfig } from '../tsup.config.base'; export default definePackageConfig({ entry: ['src/index.ts', 'src/core/index.ts', 'src/a2a/index.ts', 'src/analytics/index.ts', 'src/ap2/index.ts', 'src/http/index.ts', 'src/identity/index.ts', 'src/payments/index.ts', 'src/scheduler/index.ts', 'src/wallets/...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/index.ts
packages/types/src/index.ts
export * from './core'; export type { BuildContext } from './core'; export type { Extension } from './core'; export * from './a2a'; export * from './analytics'; export * from './ap2'; export * from './http'; export * from './identity'; export * from './payments'; export * from './scheduler'; export * from './wallets';
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/payments/index.ts
packages/types/src/payments/index.ts
import type { Network, Resource } from 'x402/types'; import type { AgentRuntime, EntrypointDef } from '../core'; /** * Solana address type (base58 encoded). */ export type SolanaAddress = string; /** * Outgoing payment limit configuration for a specific scope. */ export type OutgoingLimit = { /** Maximum paymen...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/ap2/index.ts
packages/types/src/ap2/index.ts
/** * AP2 (Agent Payments Protocol) role types. */ export type AP2Role = 'merchant' | 'shopper' | 'credentials-provider' | 'payment-processor'; /** * Parameters for AP2 extension configuration. */ export type AP2ExtensionParams = { roles: [AP2Role, ...AP2Role[]]; [key: string]: unknown; }; /** * Descriptor f...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/wallets/index.ts
packages/types/src/wallets/index.ts
import type { WalletClient } from 'viem'; /** * Wallet metadata describing wallet properties and capabilities. */ export interface WalletMetadata { id?: string | null; address?: string | null; chain?: string | null; chainType?: string | null; provider?: string | null; accountId?: string | null; label?:...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/scheduler/index.ts
packages/types/src/scheduler/index.ts
import type { AgentCardWithEntrypoints } from '../a2a'; import type { WalletConnector, WalletMetadata } from '../wallets'; import type { AgentRuntime } from '../core'; import type { FetchFunction } from '../http'; export type JsonValue = | string | number | boolean | null | { [key: string]: JsonValue } | J...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/a2a/index.ts
packages/types/src/a2a/index.ts
import type { Network, Resource } from 'x402/types'; import type { EntrypointPrice, SolanaAddress } from '../payments'; import type { RegistrationEntry, TrustModel } from '../identity'; import type { EntrypointDef } from '../core'; import type { AgentRuntime } from '../core'; import type { Usage } from '../core'; impor...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/core/config.ts
packages/types/src/core/config.ts
import type { AgentMeta } from '../a2a'; /** * Configuration for an agent instance. * Contains only the core agent metadata - extension configurations are managed by their respective runtimes. */ export type AgentConfig = { meta: AgentMeta; };
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/core/adapter.ts
packages/types/src/core/adapter.ts
import { z } from 'zod'; import type { EntrypointDef, EntrypointHandler } from './entrypoint'; /** * Return type for adapter-specific `createAgentApp` functions. * Generic over the app type to support different frameworks (Hono, Express, etc.). * * The runtime, agent, and config types are inferred from the actual ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/core/extension.ts
packages/types/src/core/extension.ts
import type { AgentCardWithEntrypoints } from '../a2a'; import type { AgentMeta } from '../a2a'; import type { EntrypointDef } from './entrypoint'; import type { AgentRuntime } from './runtime'; /** * Build context provided to extensions during build. */ export type BuildContext = { meta: AgentMeta; runtime: Par...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/core/entrypoint.ts
packages/types/src/core/entrypoint.ts
import type { Network } from 'x402/types'; import { z } from 'zod'; import type { EntrypointPrice } from '../payments'; import type { StreamPushEnvelope, StreamResult } from '../http'; import type { AgentContext, Usage } from './context'; /** * Handler function for non-streaming entrypoints. * Uses Omit to override...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/core/runtime.ts
packages/types/src/core/runtime.ts
import type { ManifestRuntime } from '../a2a'; import type { AgentHttpHandlers } from '../http'; import type { PaymentsRuntime } from '../payments'; import type { WalletsRuntime } from '../wallets'; import type { A2ARuntime } from '../a2a'; import type { AP2Runtime } from '../ap2'; import type { EntrypointsRuntime } fr...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/core/context.ts
packages/types/src/core/context.ts
import { z } from 'zod'; import type { AgentRuntime } from './runtime'; /** * Usage metrics for agent execution. */ export type Usage = { prompt_tokens?: number; completion_tokens?: number; total_tokens?: number; }; /** * Context provided to entrypoint handlers. */ export type AgentContext = { key: strin...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/core/index.ts
packages/types/src/core/index.ts
export * from './config'; export * from './agent'; export * from './context'; export * from './entrypoint'; export * from './runtime'; export * from './extension'; export * from './adapter'; export * from './network';
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/core/agent.ts
packages/types/src/core/agent.ts
import type { AgentConfig } from './config'; import type { EntrypointDef } from './entrypoint'; /** * Core agent interface providing entrypoint management. */ export type AgentCore = { readonly config: AgentConfig; addEntrypoint: (entrypoint: EntrypointDef) => void; getEntrypoint: (key: string) => EntrypointDe...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/core/network.ts
packages/types/src/core/network.ts
import type { Network } from 'x402/types'; export type { Network };
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/analytics/index.ts
packages/types/src/analytics/index.ts
import type { PaymentRecord, PaymentTracker } from '../payments'; /** * Analytics runtime that reads from payment tracker. */ export type AnalyticsRuntime = { /** Payment tracker instance */ readonly paymentTracker: PaymentTracker | undefined; }; /** * Analytics summary for a time window. */ export type Analy...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/identity/index.ts
packages/types/src/identity/index.ts
/** * Trust model types supported by ERC-8004. */ export type TrustModel = | 'feedback' | 'inference-validation' | 'tee-attestation' | string; /** * Entry for agent registration in ERC-8004 identity registry. */ export type RegistrationEntry = { agentId: number | string; agentAddress: string; signatu...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/types/src/http/index.ts
packages/types/src/http/index.ts
/** * Standard fetch function type. * Used across packages to type fetch implementations (including payment-enabled fetch). */ export type FetchFunction = ( input: RequestInfo | URL, init?: RequestInit ) => Promise<Response>; /** * HTTP extension options. */ export type HttpExtensionOptions = { /** * Whe...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/tsup.config.ts
packages/examples/tsup.config.ts
import { definePackageConfig } from '../tsup.config.base'; export default definePackageConfig({ entry: ['src/**/*.ts'], dts: false, // Examples don't need type definitions format: ['esm'], target: 'es2022', // Examples use top-level await });
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/payments/paid-service.ts
packages/examples/src/payments/paid-service.ts
import { createAgent } from '@lucid-agents/core'; import { createAgentApp } from '@lucid-agents/hono'; import { http } from '@lucid-agents/http'; import { payments } from '@lucid-agents/payments'; import { z } from 'zod'; /** * Simple paid service agent that accepts payments. * * This agent provides paid entrypoint...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/payments/policy-agent.ts
packages/examples/src/payments/policy-agent.ts
import { createAgent } from '@lucid-agents/core'; import { createAgentApp } from '@lucid-agents/hono'; import { http } from '@lucid-agents/http'; import { createRuntimePaymentContext, payments } from '@lucid-agents/payments'; import { wallets } from '@lucid-agents/wallet'; import { z } from 'zod'; /** * Agent that de...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/payments/policy-agent/index.ts
packages/examples/src/payments/policy-agent/index.ts
import { join } from 'node:path'; import { createAgent } from '@lucid-agents/core'; import { createAgentApp } from '@lucid-agents/hono'; import { http } from '@lucid-agents/http'; import { createRuntimePaymentContext, payments, paymentsFromEnv, } from '@lucid-agents/payments'; import { wallets, walletsFromEnv } ...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/payments/paid-service/index.ts
packages/examples/src/payments/paid-service/index.ts
import { createAgent } from '@lucid-agents/core'; import { createAgentApp } from '@lucid-agents/hono'; import { http } from '@lucid-agents/http'; import { payments, paymentsFromEnv } from '@lucid-agents/payments'; import { z } from 'zod'; /** * Simple paid service agent that accepts payments. * * This agent provide...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/payments/receivables-policies/index.ts
packages/examples/src/payments/receivables-policies/index.ts
import { createAgent } from '@lucid-agents/core'; import { createAgentApp } from '@lucid-agents/hono'; import { http } from '@lucid-agents/http'; import { payments, paymentsFromEnv } from '@lucid-agents/payments'; import { z } from 'zod'; /** * Agent that demonstrates incoming payment policies (receivables). * * Th...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/payments/blocked-wallet/index.ts
packages/examples/src/payments/blocked-wallet/index.ts
import { createAgent } from '@lucid-agents/core'; import { createAgentApp } from '@lucid-agents/hono'; import { http } from '@lucid-agents/http'; import { payments, paymentsFromEnv } from '@lucid-agents/payments'; import { z } from 'zod'; /** * Blocked wallet service - demonstrates wallet address blocking. * * This...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/payments/blocked-domain/index.ts
packages/examples/src/payments/blocked-domain/index.ts
import { createAgent } from '@lucid-agents/core'; import { createAgentApp } from '@lucid-agents/hono'; import { http } from '@lucid-agents/http'; import { payments, paymentsFromEnv } from '@lucid-agents/payments'; import { z } from 'zod'; /** * Blocked domain service - demonstrates domain-based blocking. * * This a...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false
daydreamsai/lucid-agents
https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/examples/src/payments/blocked-service/index.ts
packages/examples/src/payments/blocked-service/index.ts
import { createAgent } from '@lucid-agents/core'; import { createAgentApp } from '@lucid-agents/hono'; import { http } from '@lucid-agents/http'; import { payments, paymentsFromEnv } from '@lucid-agents/payments'; import { z } from 'zod'; /** * Blocked service agent for testing policy enforcement. * * This agent is...
typescript
MIT
7d389978b4ef6f8fae56c073af5e6f4c53b636d8
2026-01-05T05:00:44.865474Z
false