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/cli/adapters/next/proxy.ts | packages/cli/adapters/next/proxy.ts | import type { NextRequest } from 'next/server';
import { NextResponse } from 'next/server';
import { runtime } from '@/lib/agent';
import { createNextPaywall } from '@/lib/paywall';
const PAYWALL_BASE_PATH = '/api/agent';
const ROUTE_MATCHER = ['/api/agent/entrypoints/:path*'];
const paywall = createNextPaywall({
... | 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/app/layout.tsx | packages/cli/adapters/next/app/layout.tsx | import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import { AppKitProvider } from '@/components/AppKitProvider';
import Header from '@/components/Header';
import './globals.css';
import { headers } from 'next/headers';
const inter = Inter({
subsets: ['latin'],
display: 'swap',
});
ex... | 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/app/page.tsx | packages/cli/adapters/next/app/page.tsx | import { headers } from 'next/headers';
import Dashboard from '@/components/dashboard';
import { agent, handlers, runtime } from '@/lib/agent';
import type { DashboardData } from '@/lib/dashboard-types';
import type { AgentHealth } from '@/lib/api';
const BASE_PATH = '/api/agent';
function ensureSerializable<T>(valu... | 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/app/api/agent/health/route.ts | packages/cli/adapters/next/app/api/agent/health/route.ts | import type { NextRequest } from 'next/server';
import { handlers } from '@/lib/agent';
export const dynamic = 'force-dynamic';
export async function GET(request: NextRequest) {
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/next/app/api/agent/entrypoints/route.ts | packages/cli/adapters/next/app/api/agent/entrypoints/route.ts | import type { NextRequest } from 'next/server';
import { handlers } from '@/lib/agent';
export const dynamic = 'force-dynamic';
export async function GET(request: NextRequest) {
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/next/app/api/agent/entrypoints/[key]/stream/route.ts | packages/cli/adapters/next/app/api/agent/entrypoints/[key]/stream/route.ts | import type { NextRequest } from 'next/server';
import { handlers } from '@/lib/agent';
type RouteContext = {
params: Promise<{
key?: string;
}>;
};
async function handleStream(request: NextRequest, context: RouteContext) {
const { key } = await context.params;
if (typeof key !== 'string' || key.length =... | 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/app/api/agent/entrypoints/[key]/invoke/route.ts | packages/cli/adapters/next/app/api/agent/entrypoints/[key]/invoke/route.ts | import type { NextRequest } from 'next/server';
import { handlers } from '@/lib/agent';
type RouteContext = {
params: Promise<{
key?: string;
}>;
};
export async function POST(request: NextRequest, context: RouteContext) {
const { key } = await context.params;
if (typeof key !== 'string' || key.length ==... | 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/app/api/agent/manifest/route.ts | packages/cli/adapters/next/app/api/agent/manifest/route.ts | import type { NextRequest } from 'next/server';
import { handlers } from '@/lib/agent';
export async function GET(request: NextRequest) {
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/next/app/api/x402/session-token/route.ts | packages/cli/adapters/next/app/api/x402/session-token/route.ts | export { POST } from 'x402-next';
| 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/app/.well-known/agent-card.json/route.ts | packages/cli/adapters/next/app/.well-known/agent-card.json/route.ts | import { unstable_cache } from 'next/cache';
import type { NextRequest } from 'next/server';
import { agent } from '@/lib/agent';
const getCachedManifest = unstable_cache(
async (origin: string) => agent.resolveManifest(origin, '/api/agent'),
origin => ['agent-manifest', origin],
{ revalidate: 300, tags: 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/next/components/dashboard.tsx | packages/cli/adapters/next/components/dashboard.tsx | import { HealthCard } from '@/components/health-card';
import { ManifestViewer } from '@/components/manifest-viewer';
import { SnippetCard } from '@/components/snippet-card';
import {
EntrypointCard,
type EntrypointCardData,
} from '@/components/entrypoint-card';
import { WalletSummary } from '@/components/wallet-s... | 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/components/health-card.tsx | packages/cli/adapters/next/components/health-card.tsx | 'use client';
import { useEffect, useState } from 'react';
import { getHealth, type AgentHealth } from '@/lib/api';
import { cn } from '@/lib/utils';
type HealthState = 'loading' | 'healthy' | 'error';
const deriveHealthState = (health: AgentHealth | null): HealthState => {
if (!health) return 'loading';
if (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/next/components/use-copy-feedback.ts | packages/cli/adapters/next/components/use-copy-feedback.ts | 'use client';
import { useCallback, useState } from 'react';
export function useCopyFeedback() {
const [copied, setCopied] = useState(false);
const copyValue = useCallback(async (value?: string) => {
if (!value) return;
try {
if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) ... | 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/components/snippet-card.tsx | packages/cli/adapters/next/components/snippet-card.tsx | 'use client';
import { useCopyFeedback } from '@/components/use-copy-feedback';
export function SnippetCard({
snippet,
title,
badge,
}: {
snippet: string;
title: string;
badge?: string;
}) {
const { copied, copyValue } = useCopyFeedback();
return (
<article className="group rounded-2xl border bor... | 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/components/entrypoint-card.tsx | packages/cli/adapters/next/components/entrypoint-card.tsx | 'use client';
import { useWalletClient } from 'wagmi';
import { useCallback, useEffect, useRef, useState } from 'react';
import {
invokeEntrypointWithBody,
streamEntrypointWithBody,
type AgentPayments,
} from '@/lib/api';
import { SchemaForm } from '@/components/schema-form';
import { getNetworkInfo } from '@/l... | 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/components/AppKitProvider.tsx | packages/cli/adapters/next/components/AppKitProvider.tsx | 'use client';
import {
type AppKitNetwork,
base,
baseSepolia,
solana,
solanaDevnet,
} from '@reown/appkit/networks';
import { createAppKit } from '@reown/appkit/react';
import { SolanaAdapter } from '@reown/appkit-adapter-solana';
import { WagmiAdapter } from '@reown/appkit-adapter-wagmi';
import { QueryClie... | 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/components/wallet-summary.tsx | packages/cli/adapters/next/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 =
process.env.NEXT_PUBLIC_PROJECT_ID ??
process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_... | 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/components/manifest-viewer.tsx | packages/cli/adapters/next/components/manifest-viewer.tsx | 'use client';
import { useEffect, useState } from 'react';
import { getManifest } from '@/lib/api';
import { useCopyFeedback } from '@/components/use-copy-feedback';
type ManifestState = 'idle' | 'loading' | 'loaded' | 'error';
export function ManifestViewer({
initialManifest,
manifestPath,
}: {
initialManife... | 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/components/Header.tsx | packages/cli/adapters/next/components/Header.tsx | 'use client';
import Link from 'next/link';
import { useState } from 'react';
import {
ChevronDown,
ChevronRight,
Home,
Menu,
Network,
SquareFunction,
StickyNote,
X,
} from 'lucide-react';
export default function Header() {
const [isOpen, setIsOpen] = useState(false);
const [groupedExpanded, setGr... | 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/components/schema-form.tsx | packages/cli/adapters/next/components/schema-form.tsx | 'use client';
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?: s... | 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/lib/paywall.ts | packages/cli/adapters/next/lib/paywall.ts | import { z } from 'zod';
import { resolvePrice, validatePaymentsConfig } from '@lucid-agents/payments';
import type { AgentRuntime, EntrypointDef } from '@lucid-agents/types/core';
import type { PaymentsConfig } from '@lucid-agents/types/payments';
import type {
FacilitatorConfig,
PaywallConfig,
RouteConfig,
Ro... | 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/lib/utils.ts | packages/cli/adapters/next/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/next/lib/api.ts | packages/cli/adapters/next/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/next/lib/dashboard-types.ts | packages/cli/adapters/next/lib/dashboard-types.ts | import type { AgentPayments } from '@/lib/api';
export type DashboardEntry = {
key: string;
description?: string | null;
streaming: boolean;
price?: string | { invoke?: string | null; stream?: string | null } | null;
network?: string | null;
inputSchema?: Record<string, any> | null;
outputSchema?: Record... | 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/lib/network.ts | packages/cli/adapters/next/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/express/src/index.ts | packages/cli/adapters/express/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}...`);
const server = app.listen(port, () => {
console.log(`Server listening on port ${port}`);
});
export default server;
| typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/analytics/tsup.config.ts | packages/analytics/tsup.config.ts | import { definePackageConfig } from '../tsup.config.base';
export default definePackageConfig({
entry: ['src/index.ts'],
dts: true,
external: [
'@lucid-agents/types',
'viem',
],
});
| typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/analytics/src/api.ts | packages/analytics/src/api.ts | import { formatUnits } from 'viem';
import type {
PaymentRecord,
PaymentTracker,
} from '@lucid-agents/types/payments';
import type {
AnalyticsSummary,
Transaction,
AnalyticsData,
} from '@lucid-agents/types/analytics';
/**
* Formats a BigInt amount (in base units with 6 decimals) to a human-friendly USDC s... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/analytics/src/extension.ts | packages/analytics/src/extension.ts | import type {
AgentRuntime,
BuildContext,
Extension,
} from '@lucid-agents/types/core';
import type { AnalyticsRuntime } from '@lucid-agents/types/analytics';
import type { PaymentTracker } from '@lucid-agents/types/payments';
export function analytics(): Extension<{ analytics: AnalyticsRuntime }> {
return {
... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/analytics/src/index.ts | packages/analytics/src/index.ts | export { analytics } from './extension';
export type { AnalyticsRuntime } from '@lucid-agents/types/analytics';
export {
getOutgoingSummary,
getIncomingSummary,
getSummary,
getAllTransactions,
getAnalyticsData,
exportToCSV,
exportToJSON,
} from './api';
export type {
AnalyticsSummary,
Transaction,
A... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/analytics/src/__tests__/csv-export.test.ts | packages/analytics/src/__tests__/csv-export.test.ts | import { describe, expect, it } from 'bun:test';
import { exportToCSV } from '../api';
import { createPaymentTracker } from '@lucid-agents/payments';
import { createInMemoryPaymentStorage } from '@lucid-agents/payments';
describe('CSV Export Escaping', () => {
it('escapes commas in field values', async () => {
c... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/analytics/src/__tests__/format-usdc.test.ts | packages/analytics/src/__tests__/format-usdc.test.ts | import { describe, expect, it } from 'bun:test';
import { getAllTransactions } from '../api';
import { createPaymentTracker } from '@lucid-agents/payments';
import { createInMemoryPaymentStorage } from '@lucid-agents/payments';
describe('formatUsdcAmount (via getAllTransactions)', () => {
it('formats small amounts c... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/tsup.config.ts | packages/identity/tsup.config.ts | import { definePackageConfig } from "../tsup.config.base";
export default definePackageConfig({
entry: {
index: "src/index.ts",
},
dts: {
entry: {
index: "src/index.ts",
},
},
external: ["viem", "@lucid-agents/core", "@lucid-agents/types", "@lucid-agents/wallet"],
});
| typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/validation.ts | packages/identity/src/validation.ts | import type { CreateAgentIdentityOptions } from './init';
/**
* Parse a boolean environment variable in a case-insensitive way.
* Accepts: "true", "1", "yes", "on" (case-insensitive)
*
* @param value - The string value to parse
* @returns true if the value matches a truthy pattern, false otherwise
*/
export func... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/init.ts | packages/identity/src/init.ts | /**
* Simplified initialization helpers for agent identity.
* These functions provide a streamlined API for common use cases.
*/
import type { AgentRuntime } from '@lucid-agents/types/core';
import type { TrustConfig } from '@lucid-agents/types/identity';
import type {
AgentWalletHandle,
DeveloperWalletHandle,
... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/env.ts | packages/identity/src/env.ts | import type { TrustConfig } from '@lucid-agents/types/identity';
import { parseBoolean } from './validation';
export type IdentityConfig = {
trust?: TrustConfig;
domain?: string;
autoRegister?: boolean;
rpcUrl?: string;
chainId?: number;
};
/**
* Creates IdentityConfig from environment variables.
*
* Re... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/extension.ts | packages/identity/src/extension.ts | import type { AgentCardWithEntrypoints } from '@lucid-agents/types/a2a';
import type { AgentRuntime, Extension } from '@lucid-agents/types/core';
import type { TrustConfig } from '@lucid-agents/types/identity';
import type { CreateAgentIdentityOptions } from './init';
import { createAgentIdentity, getTrustConfig } fro... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/index.ts | packages/identity/src/index.ts | export * from './config';
export { identityFromEnv } from './env';
export { identity, type IdentityConfig } from './extension';
export * from './init';
export { createAgentCardWithIdentity } from './manifest';
export * from './registries';
export * from './utils';
export * from './validation';
| typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/manifest.ts | packages/identity/src/manifest.ts | import type { AgentCardWithEntrypoints } from '@lucid-agents/types/a2a';
import type { TrustConfig } from '@lucid-agents/types/identity';
/**
* Creates a new Agent Card with identity/trust metadata added.
* Immutable - returns new card, doesn't mutate input.
*/
export function createAgentCardWithIdentity(
card: A... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/utils/domain.ts | packages/identity/src/utils/domain.ts | /**
* Domain normalization utilities
*/
/**
* Normalize a domain to lowercase, trimmed format
*/
export function normalizeDomain(domain: string): string {
return domain?.trim?.().toLowerCase?.() ?? '';
}
| typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/utils/index.ts | packages/identity/src/utils/index.ts | /**
* Utility function exports
*/
export * from './domain';
| typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/__tests__/init.test.ts | packages/identity/src/__tests__/init.test.ts | import { afterEach, describe, expect, it, mock } from 'bun:test';
import {
type AgentIdentity,
createAgentIdentity,
getTrustConfig,
registerAgent,
} from '../init';
import type { PublicClientLike } from '../registries/identity';
// Track if we're in an identity test to scope the mock
// This prevents the mock... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/__tests__/identity-registry.test.ts | packages/identity/src/__tests__/identity-registry.test.ts | import { describe, expect, it } from 'bun:test';
import {
bootstrapIdentity,
bootstrapTrust,
buildMetadataURI,
buildTrustConfigFromIdentity,
createIdentityRegistryClient,
type IdentityRecord,
type PublicClientLike,
signAgentDomainProof,
toCaip10,
type WalletClientLike,
} from '../registries/identit... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/__tests__/validation.test.ts | packages/identity/src/__tests__/validation.test.ts | import { describe, expect, it } from 'bun:test';
import type { CreateAgentIdentityOptions } from '../init';
import { validateIdentityConfig } from '../validation';
function makeOptions(
overrides: Partial<CreateAgentIdentityOptions> = {}
): CreateAgentIdentityOptions {
return {
runtime: overrides.runtime ?? (... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/__tests__/manifest.test.ts | packages/identity/src/__tests__/manifest.test.ts | import type { AgentCardWithEntrypoints } from '@lucid-agents/types/a2a';
import type { TrustConfig } from '@lucid-agents/types/identity';
import { describe, expect, it } from 'bun:test';
import { createAgentCardWithIdentity } from '../manifest';
describe('createAgentCardWithIdentity', () => {
const baseCard: AgentC... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/abi/types.ts | packages/identity/src/abi/types.ts | import type { Abi, ContractFunctionName } from 'viem';
import identityRegistryAbiJson from './IdentityRegistry.json';
import reputationRegistryAbiJson from './ReputationRegistry.json';
import validationRegistryAbiJson from './ValidationRegistry.json';
/**
* ERC-8004 Identity Registry ABI
* Typed as viem's Abi for p... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/config/erc8004.ts | packages/identity/src/config/erc8004.ts | /**
* ERC-8004 v1.0 Configuration
* Contract addresses and constants
*/
import type { Hex } from '@lucid-agents/wallet';
/**
* Official ERC-8004 registry addresses by chain
*
* Reference: https://github.com/erc-8004/erc-8004-contracts
*/
type RegistryAddresses = {
IDENTITY_REGISTRY: Hex;
REPUTATION_REGISTR... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/config/index.ts | packages/identity/src/config/index.ts | /**
* Configuration exports for agent-kit-identity
*/
export * from './erc8004';
| typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/registries/signatures.ts | packages/identity/src/registries/signatures.ts | /**
* ERC-8004 specific signature helpers
* Uses wallet package utilities for standard signing operations
*/
import type { Hex, SignerWalletClient } from '@lucid-agents/wallet';
import { signMessageWithViem } from '@lucid-agents/wallet';
import {
encodeAbiParameters,
keccak256,
parseAbiParameters,
stringToB... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/registries/reputation.ts | packages/identity/src/registries/reputation.ts | /**
* ERC-8004 Reputation Registry Client
* Handles peer feedback system for agent reputation
*/
import type { Hex, SignerWalletClient } from '@lucid-agents/wallet';
import { normalizeAddress } from '@lucid-agents/wallet';
import { REPUTATION_REGISTRY_ABI } from '../abi/types';
import type { PublicClientLike, Wall... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/registries/utils.ts | packages/identity/src/registries/utils.ts | /**
* Shared utilities for ERC-8004 registry clients
*/
import type { Hex } from '@lucid-agents/wallet';
/**
* Type for public clients that support waiting for transaction receipts
*/
export type PublicClientWithReceipt = {
waitForTransactionReceipt?(args: {
hash: Hex;
confirmations?: number;
timeou... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/registries/validation.ts | packages/identity/src/registries/validation.ts | /**
* ERC-8004 Validation Registry Client
* Handles validation requests and responses for agent work verification
*/
import type { Hex } from '@lucid-agents/wallet';
import { VALIDATION_REGISTRY_ABI } from '../abi/types';
import type { PublicClientLike, WalletClientLike } from './identity';
import { hashValidation... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/registries/types.ts | packages/identity/src/registries/types.ts | /**
* Registry-specific type definitions
* Shared types across all three ERC-8004 registries
*/
export type { PublicClientLike, WalletClientLike } from './identity';
| typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/registries/index.ts | packages/identity/src/registries/index.ts | /**
* ERC-8004 Registry client exports
*/
export * from './identity';
export * from './reputation';
export * from './signatures';
export * from './validation';
| typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/identity/src/registries/identity.ts | packages/identity/src/registries/identity.ts | import type {
RegistrationEntry,
TrustConfig,
} from '@lucid-agents/types/identity';
import type {
AgentWalletHandle,
DeveloperWalletHandle,
LocalEoaSigner,
} from '@lucid-agents/types/wallets';
import type { Hex } from '@lucid-agents/wallet';
import { normalizeAddress, toCaip10, ZERO_ADDRESS } from '@lucid-a... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/http/tsup.config.ts | packages/http/tsup.config.ts | import { definePackageConfig } from '../tsup.config.base';
export default definePackageConfig({
entry: ['src/index.ts'],
dts: true,
external: [
'@lucid-agents/types',
'hono',
],
});
| typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/http/src/utils.ts | packages/http/src/utils.ts | /**
* Helper functions for HTTP request/response handling
*/
export const jsonResponse = (
payload: unknown,
init?: ConstructorParameters<typeof Response>[1]
): Response => {
const body = JSON.stringify(payload);
const headers = new Headers(init?.headers);
if (!headers.has('Content-Type')) {
headers.se... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/http/src/validation.ts | packages/http/src/validation.ts | import type { EntrypointDef } from '@lucid-agents/types/core';
import { ZodValidationError } from '@lucid-agents/types/core';
import { z } from 'zod';
function isZodSchema(value: unknown): value is z.ZodTypeAny {
return Boolean(value && typeof value === 'object' && 'safeParse' in value);
}
/**
* Validates input ag... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/http/src/invoke.ts | packages/http/src/invoke.ts | import { randomUUID } from 'node:crypto';
import type {
AgentRuntime,
EntrypointDef,
AgentContext,
} from '@lucid-agents/types/core';
import { ZodValidationError } from '@lucid-agents/types/core';
import { errorResponse, extractInput, jsonResponse, readJson } from './utils';
import { parseInput, parseOutput } f... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/http/src/landing-page.ts | packages/http/src/landing-page.ts | import type { AgentMeta } from '@lucid-agents/types/a2a';
import type { PaymentsConfig } from '@lucid-agents/types/payments';
import { html } from 'hono/html';
import type { HtmlEscapedString } from 'hono/utils/html';
import { z } from 'zod';
import type { EntrypointDef } from '@lucid-agents/types/core';
type Landing... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | true |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/http/src/stream.ts | packages/http/src/stream.ts | import { randomUUID } from 'node:crypto';
import type { AgentRuntime } from '@lucid-agents/types/core';
import type {
StreamEnvelope,
StreamPushEnvelope,
StreamResult,
} from '@lucid-agents/types/http';
import { ZodValidationError } from '@lucid-agents/types/core';
import { errorResponse, extractInput, jsonResp... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/http/src/extension.ts | packages/http/src/extension.ts | import { Buffer } from 'node:buffer';
import { randomUUID } from 'node:crypto';
import type {
SendMessageRequest,
Task,
TaskError,
TaskResult,
TaskStatus,
} from '@lucid-agents/types/a2a';
import type {
AgentRuntime,
BuildContext,
EntrypointDef,
Extension,
} from '@lucid-agents/types/core';
import ty... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/http/src/index.ts | packages/http/src/index.ts | export { http } from './extension';
export type { HttpExtensionOptions } from '@lucid-agents/types/http';
export type { AgentHttpHandlers } from '@lucid-agents/types/http';
export { invokeHandler } from './invoke';
export type { InvokeResult } from './invoke';
export {
createSSEStream,
writeSSE,
type SSEStreamRu... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/http/src/sse.ts | packages/http/src/sse.ts | const encoder = new TextEncoder();
export type SSEWriteOptions = {
event: string;
data: string;
id?: string;
};
export type SSEStreamRunnerContext = {
write: (options: SSEWriteOptions) => void;
close: () => void;
controller: ReadableStreamDefaultController<Uint8Array>;
};
export type SSEStreamRunner = (
... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/http/src/__tests__/tasks.test.ts | packages/http/src/__tests__/tasks.test.ts | import { randomUUID } from 'node:crypto';
import type {
SendMessageRequest,
Task,
TaskStatus,
} from '@lucid-agents/types/a2a';
import type { AgentRuntime, EntrypointDef } from '@lucid-agents/types/core';
import { afterEach, describe, expect, it, mock } from 'bun:test';
import { z } from 'zod';
import { http } ... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
daydreamsai/lucid-agents | https://github.com/daydreamsai/lucid-agents/blob/7d389978b4ef6f8fae56c073af5e6f4c53b636d8/packages/http/src/__tests__/utils.test.ts | packages/http/src/__tests__/utils.test.ts | import { describe, expect, it } from 'bun:test';
import { normalizeOrigin } from '../utils';
describe('normalizeOrigin', () => {
it('uses X-Forwarded-Proto header to set protocol', () => {
const req = new Request('http://localhost:3000/.well-known/agent.json', {
headers: {
'x-forwarded-proto': 'ht... | typescript | MIT | 7d389978b4ef6f8fae56c073af5e6f4c53b636d8 | 2026-01-05T05:00:44.865474Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/src/client.ts | src/client.ts | // Client
// ======
// Client mode is used to place new calls or take over existing calls.
// Contrarily to the server which will handle multiple socket connections over its lifetime, a client only handles one socket, so only one `FreeSwitchResponse` object is needed as well.
import { Socket } from 'node:net'
import... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/src/esl.ts | src/esl.ts | export * from './client.js'
export * from './server.js'
export * from './response.js'
export type { StringMap } from './parser.js'
export * from './event-emitter.js'
| typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/src/server.ts | src/server.ts | // Connection Listener (socket events handler)
// ===========================================
// We use the same connection-listener for both client (FreeSwitch "inbound" socket) and server (FreeSwitch "outound" socket).
// This is modelled after Node.js' http.js; the connection-listener is called either when FreeSwit... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/src/event-emitter.ts | src/event-emitter.ts | // Inspired by https://danilafe.com/blog/typescript_typesafe_events/
// but using Map, Set, adding `once` and an async version.
// `typed-emitter` no longer works properly.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export class FreeSwitchEventEmitter<E extends string, T extends Record<E, (...args:... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/src/response.ts | src/response.ts | // Response and associated API
// ===========================
import { FreeSwitchEventEmitter } from './event-emitter.js'
import {
ulid
} from 'ulidx'
import {
FreeSwitchParser,
type StringMap,
parse_header_text
} from './parser.js'
import { type Socket } from 'node:net'
type ResponseLogger = (msg: string, ... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | true |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/src/parser.ts | src/parser.ts | // Event Socket stream parser
// ==========================
import { unescape } from 'node:querystring'
import { type Socket } from 'node:net'
export type StringMap = Record<string, string | undefined>
export class FreeSwitchParserError extends Error {
public readonly error: string
public readonly buffer: Buffer
... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/10-server-image.ts | test/10-server-image.ts | import test from 'ava'
import {
once
} from 'esl'
import {
FreeSwitchClient, type FreeSwitchResponse
} from 'esl'
import {
clientLogger,
start_server,
stop
} from './utils.js'
const server_port = 8022
test.before(async (t) => {
await start_server(t)
t.pass()
})
test.after.always(stop)
test('10-serve... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/90-base-server-2cps.ts | test/90-base-server-2cps.ts | import test from 'ava'
import {
FreeSwitchClient,
FreeSwitchError,
type FreeSwitchResponse,
FreeSwitchServer,
type StringMap,
once,
FreeSwitchEventEmitter
} from 'esl'
import {
start,
stop, clientLogger as logger, clientLogger, DoCatch
} from './utils.js'
import { second, sleep } from './tools.js'
... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/70-reconnect.ts | test/70-reconnect.ts | import test from 'ava'
import {
FreeSwitchClient
} from 'esl'
import {
type Socket,
createServer
} from 'node:net'
import { sleep } from './tools.js'
import { clientLogger } from './utils.js'
const client_port = 5623
test('should reconnect', async function (t) {
t.timeout(30000)
const start = function ():... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/utils.ts | test/utils.ts | import { type FreeSwitchClientLogger, type FreeSwitchResponseLogger } from 'esl'
import { second, simple_start_client, simple_start_server, simple_stop } from './tools.js'
import { type ExecutionContext } from 'ava'
export const DoCatch = function <T>(t: ExecutionContext, f: () => Promise<T>): void {
void f().catch(... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/14-base-server.ts | test/14-base-server.ts | import test from 'ava'
import {
FreeSwitchClient,
type FreeSwitchResponse,
FreeSwitchServer,
type StringMap
} from 'esl'
import {
start,
stop, clientLogger, serverLogger, DoCatch
} from './utils.js'
import {
once,
FreeSwitchEventEmitter
} from 'esl'
import { second, sleep } from './tools.js'
const ... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/15-base-client.ts | test/15-base-client.ts | import test from 'ava'
import {
FreeSwitchClient,
FreeSwitchServer,
FreeSwitchError,
type FreeSwitchResponse,
type StringMap,
type FreeSwitchEventData
} from 'esl'
import {
start,
stop,
clientLogger as logger,
clientLogger,
DoCatch
} from './utils.js'
import {
once
} from 'esl'
import {
v4... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/tools.ts | test/tools.ts | import {
type ChildProcess,
spawn
} from 'node:child_process'
import {
mkdir,
rm
} from 'node:fs/promises'
import {
ulid
} from 'ulidx'
// Sleep the given amount of milliseconds
export const sleep = async function (timeout: number): Promise<void> {
await new Promise(function (resolve) {
setTimeout(re... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/10-uuid.ts | test/10-uuid.ts | import test from 'ava'
import {
FreeSwitchClient,
type FreeSwitchEventData,
type FreeSwitchResponse,
FreeSwitchServer,
type StringMap
} from 'esl'
import {
once
} from 'esl'
import {
start_server,
stop,
clientLogger, serverLogger
} from './utils.js'
import { second, sleep } from './tools.js'
// Us... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/10-wrapper.ts | test/10-wrapper.ts | import test from 'ava'
import {
FreeSwitchClient
, once
} from 'esl'
import {
type Socket,
createServer
} from 'node:net'
import { sleep } from './tools.js'
import { clientLogger } from './utils.js'
const client_port = 5624
test('should send commands', async function (t) {
t.timeout(30000)
let connecti... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/02.ts | test/02.ts | import test from 'ava'
import {
FreeSwitchClient
, once
} from 'esl'
import {
clientLogger,
start,
stop
} from './utils.js'
const client_port = 8024
test.before(start)
test.after.always(stop)
test('02-ok', async (t) => {
const client = new FreeSwitchClient({
port: client_port,
logger: clientLog... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/10-client-image.ts | test/10-client-image.ts | import test from 'ava'
import {
once
} from 'esl'
import {
FreeSwitchClient, FreeSwitchError, type FreeSwitchEventData
} from 'esl'
import {
clientLogger,
start,
stop
} from './utils.js'
import { sleep } from './tools.js'
// We start two FreeSwitch docker.io instances, one is used as the "client" (and is ... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/01.ts | test/01.ts | import test from 'ava'
import {
start,
stop
} from './utils.js'
test.before(start)
test.after.always(stop)
test('01-ok', (t) => t.pass())
| typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/01-buffer-at-end.ts | test/01-buffer-at-end.ts | import test from 'ava'
import {
FreeSwitchClient
,
once
} from 'esl'
import {
createServer
} from 'node:net'
import { sleep } from './tools.js'
import { clientLogger } from './utils.js'
const client_port = 5621
test('01-buffer-at-end: should be empty at end of stream', async function (t) {
try {
cons... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/01-args.ts | test/01-args.ts | import test from 'ava'
import {
FreeSwitchResponse
} from 'esl'
import { type Socket } from 'net'
import { responseLogger as logger } from './utils.js'
const socket = {
once: function () { },
on: function () { },
end: function () { },
write: function () { },
setKeepAlive: function () { },
setNoDelay: fu... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/03.ts | test/03.ts | import test from 'ava'
import {
once
,
FreeSwitchClient,
FreeSwitchServer
} from 'esl'
import {
start,
stop,
clientLogger,
serverLogger,
DoCatch
} from './utils.js'
const client_port = 8024
const domain = '127.0.0.1:5062'
test.before(start)
test.after.always(stop)
test('03-ok', async (t) => {
c... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/80-errors.ts | test/80-errors.ts | import test, { type ExecutionContext } from 'ava'
import {
FreeSwitchClient,
FreeSwitchError,
type FreeSwitchResponse,
FreeSwitchServer,
type StringMap,
once
} from 'esl'
import {
clientLogger as logger, start,
stop
} from './utils.js'
import {
v4 as uuidv4
} from 'uuid'
import { second, sleep, ti... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test/99-benchmark.ts | test/99-benchmark.ts | import test from 'ava'
import {
FreeSwitchClient,
type FreeSwitchResponse,
FreeSwitchServer
} from 'esl'
import {
clientLogger, start,
stop
} from './utils.js'
import { second, sleep } from './tools.js'
const client_port = 8024
const dialplan_port = 7000
const domain = '127.0.0.1:5062'
test.before(start... | typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
shimaore/esl | https://github.com/shimaore/esl/blob/7bc79aea09ad53a79dd37e2f711038252a51359c/test-ts/test.ts | test-ts/test.ts | import { FreeSwitchClient } from 'esl'
import test from 'ava'
test('it should load the module', t => {
t.truthy(FreeSwitchClient)
})
| typescript | Unlicense | 7bc79aea09ad53a79dd37e2f711038252a51359c | 2026-01-05T05:00:49.833126Z | false |
mvdicarlo/postybirb-plus | https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/commons/src/index.ts | commons/src/index.ts | // Enums
export * from './enums/file-submission-type.enum';
export * from './enums/submission-rating.enum';
export * from './enums/submission-type.enum';
// Events
import * as Events from './events/events';
export { Events };
// Interfaces
export * from './interfaces/account/user-account.dto.interface';
export * from... | typescript | BSD-3-Clause | ed123978cf852f5313fdeffd4e8774ca2d08f690 | 2026-01-05T05:00:46.928660Z | false |
mvdicarlo/postybirb-plus | https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/commons/src/websites/websites.ts | commons/src/websites/websites.ts | export * from './artconomy/artconomy.options';
export * from './aryion/aryion.options';
export * from './custom/custom.options';
export * from './derpibooru/derpibooru.options';
export * from './deviant-art/deviant-art.options';
export * from './discord/discord.options';
export * from './e621/e621.options';
export * fr... | typescript | BSD-3-Clause | ed123978cf852f5313fdeffd4e8774ca2d08f690 | 2026-01-05T05:00:46.928660Z | false |
mvdicarlo/postybirb-plus | https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/commons/src/websites/discord/discord.notification.options.ts | commons/src/websites/discord/discord.notification.options.ts | import { Expose } from 'class-transformer';
import { IsBoolean } from 'class-validator';
import { DefaultOptions } from '../../interfaces/submission/default-options.interface';
import { DiscordNotificationOptions } from '../../interfaces/websites/discord/discord.notification.options.interface';
import { DefaultValue } ... | typescript | BSD-3-Clause | ed123978cf852f5313fdeffd4e8774ca2d08f690 | 2026-01-05T05:00:46.928660Z | false |
mvdicarlo/postybirb-plus | https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/commons/src/websites/discord/discord.file.options.ts | commons/src/websites/discord/discord.file.options.ts | import { Expose } from 'class-transformer';
import { IsBoolean } from 'class-validator';
import { DefaultFileOptions } from '../../interfaces/submission/default-options.interface';
import { DiscordFileOptions } from '../../interfaces/websites/discord/discord.file.options.interface';
import { DefaultValue } from '../../... | typescript | BSD-3-Clause | ed123978cf852f5313fdeffd4e8774ca2d08f690 | 2026-01-05T05:00:46.928660Z | false |
mvdicarlo/postybirb-plus | https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/commons/src/websites/discord/discord.options.ts | commons/src/websites/discord/discord.options.ts | import { DiscordFileOptionsEntity } from './discord.file.options';
import { DiscordNotificationOptionsEntity } from './discord.notification.options';
export class Discord {
static readonly FileOptions = DiscordFileOptionsEntity;
static readonly NotificationOptions = DiscordNotificationOptionsEntity;
}
| typescript | BSD-3-Clause | ed123978cf852f5313fdeffd4e8774ca2d08f690 | 2026-01-05T05:00:46.928660Z | false |
mvdicarlo/postybirb-plus | https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/commons/src/websites/hentai-foundry/hentai-foundry.file.options.ts | commons/src/websites/hentai-foundry/hentai-foundry.file.options.ts | import { Expose } from 'class-transformer';
import { IsBoolean, IsOptional, IsString } from 'class-validator';
import { DefaultFileOptions } from '../../interfaces/submission/default-options.interface';
import { HentaiFoundryFileOptions } from '../../interfaces/websites/hentai-foundry/hentai-foundry.file.options.interf... | typescript | BSD-3-Clause | ed123978cf852f5313fdeffd4e8774ca2d08f690 | 2026-01-05T05:00:46.928660Z | false |
mvdicarlo/postybirb-plus | https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/commons/src/websites/hentai-foundry/hentai-foundry.options.ts | commons/src/websites/hentai-foundry/hentai-foundry.options.ts | import { DefaultOptionsEntity } from '../../models/default-options.entity';
import { HentaiFoundryFileOptionsEntity } from './hentai-foundry.file.options';
export class HentaiFoundry {
static readonly FileOptions = HentaiFoundryFileOptionsEntity;
static readonly NotificationOptions = DefaultOptionsEntity;
}
| typescript | BSD-3-Clause | ed123978cf852f5313fdeffd4e8774ca2d08f690 | 2026-01-05T05:00:46.928660Z | false |
mvdicarlo/postybirb-plus | https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/commons/src/websites/so-furry/so-furry.options.ts | commons/src/websites/so-furry/so-furry.options.ts | import { SoFurryFileOptionsEntity } from './so-furry.file.options';
import { SoFurryNotificationOptionsEntity } from './so-furry.notification.options';
export class SoFurry {
static readonly FileOptions = SoFurryFileOptionsEntity;
static readonly NotificationOptions = SoFurryNotificationOptionsEntity;
}
| typescript | BSD-3-Clause | ed123978cf852f5313fdeffd4e8774ca2d08f690 | 2026-01-05T05:00:46.928660Z | false |
mvdicarlo/postybirb-plus | https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/commons/src/websites/so-furry/so-furry.notification.options.ts | commons/src/websites/so-furry/so-furry.notification.options.ts | import { Expose } from 'class-transformer';
import { IsBoolean, IsString } from 'class-validator';
import { DefaultFileOptions } from '../../interfaces/submission/default-options.interface';
import { SoFurryNotificationOptions } from '../../interfaces/websites/so-furry/so-furry.notification.options.interface';
import {... | typescript | BSD-3-Clause | ed123978cf852f5313fdeffd4e8774ca2d08f690 | 2026-01-05T05:00:46.928660Z | false |
mvdicarlo/postybirb-plus | https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/commons/src/websites/so-furry/so-furry.file.options.ts | commons/src/websites/so-furry/so-furry.file.options.ts | import { Expose } from 'class-transformer';
import { IsBoolean, IsString } from 'class-validator';
import { DefaultFileOptions } from '../../interfaces/submission/default-options.interface';
import { SoFurryFileOptions } from '../../interfaces/websites/so-furry/so-furry.file.options.interface';
import { DefaultValue } ... | typescript | BSD-3-Clause | ed123978cf852f5313fdeffd4e8774ca2d08f690 | 2026-01-05T05:00:46.928660Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.