weifuwu 0.25.2 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +291 -2489
- package/ai/provider.ts +129 -0
- package/ai/stream.ts +63 -0
- package/cli.ts +55 -257
- package/core/cookie.ts +114 -0
- package/core/env.ts +142 -0
- package/core/logger.ts +72 -0
- package/core/router.ts +795 -0
- package/core/serve.ts +294 -0
- package/core/sse.ts +85 -0
- package/core/trace.ts +146 -0
- package/graphql.ts +267 -0
- package/hub.ts +133 -0
- package/index.ts +71 -0
- package/mailer.ts +81 -0
- package/middleware/compress.ts +103 -0
- package/middleware/cors.ts +81 -0
- package/middleware/csrf.ts +112 -0
- package/middleware/flash.ts +144 -0
- package/middleware/health.ts +44 -0
- package/middleware/helmet.ts +98 -0
- package/middleware/i18n.ts +175 -0
- package/middleware/rate-limit.ts +167 -0
- package/middleware/request-id.ts +60 -0
- package/middleware/static.ts +149 -0
- package/middleware/theme.ts +84 -0
- package/middleware/upload.ts +168 -0
- package/middleware/validate.ts +186 -0
- package/package.json +14 -36
- package/postgres/client.ts +132 -0
- package/postgres/index.ts +4 -0
- package/postgres/module.ts +37 -0
- package/postgres/schema/columns.ts +186 -0
- package/postgres/schema/index.ts +36 -0
- package/postgres/schema/sql.ts +39 -0
- package/postgres/schema/table.ts +548 -0
- package/postgres/schema/where.ts +99 -0
- package/postgres/types.ts +48 -0
- package/queue/cron.ts +90 -0
- package/queue/index.ts +654 -0
- package/queue/types.ts +60 -0
- package/redis/client.ts +24 -0
- package/{dist/redis/index.d.ts → redis/index.ts} +2 -2
- package/redis/types.ts +28 -0
- package/types.ts +78 -0
- package/cli/template/app.ts +0 -22
- package/cli/template/index.ts +0 -10
- package/cli/template/locales/en.json +0 -13
- package/cli/template/locales/zh-CN.json +0 -13
- package/cli/template/locales/zh-TW.json +0 -13
- package/cli/template/locales/zh.json +0 -13
- package/cli/template/ui/app/globals.css +0 -2
- package/cli/template/ui/app/layout.tsx +0 -15
- package/cli/template/ui/app/page.tsx +0 -124
- package/cli/template/ui/components/Greeting.tsx +0 -3
- package/dist/agent/client.d.ts +0 -2
- package/dist/agent/index.d.ts +0 -2
- package/dist/agent/rest.d.ts +0 -14
- package/dist/agent/run.d.ts +0 -19
- package/dist/agent/types.d.ts +0 -55
- package/dist/ai/provider.d.ts +0 -45
- package/dist/ai/utils.d.ts +0 -5
- package/dist/ai/workflow.d.ts +0 -17
- package/dist/ai-sdk.d.ts +0 -2
- package/dist/ai.d.ts +0 -13
- package/dist/analytics.d.ts +0 -45
- package/dist/auth.d.ts +0 -22
- package/dist/cache.d.ts +0 -74
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +0 -302
- package/dist/client-locale.d.ts +0 -25
- package/dist/client-pref.d.ts +0 -3
- package/dist/client-router.d.ts +0 -300
- package/dist/client-state.d.ts +0 -22
- package/dist/client-theme.d.ts +0 -36
- package/dist/compile.d.ts +0 -15
- package/dist/compress.d.ts +0 -20
- package/dist/cookie.d.ts +0 -36
- package/dist/cors.d.ts +0 -25
- package/dist/cron-utils.d.ts +0 -73
- package/dist/csrf.d.ts +0 -47
- package/dist/deploy/config.d.ts +0 -2
- package/dist/deploy/gateway.d.ts +0 -2
- package/dist/deploy/index.d.ts +0 -4
- package/dist/deploy/manager.d.ts +0 -16
- package/dist/deploy/process.d.ts +0 -14
- package/dist/deploy/types.d.ts +0 -53
- package/dist/env.d.ts +0 -69
- package/dist/error-boundary.d.ts +0 -2
- package/dist/flash.d.ts +0 -90
- package/dist/fts.d.ts +0 -36
- package/dist/graphql.d.ts +0 -16
- package/dist/head.d.ts +0 -6
- package/dist/health.d.ts +0 -24
- package/dist/helmet.d.ts +0 -33
- package/dist/html-shell.d.ts +0 -1
- package/dist/hub.d.ts +0 -37
- package/dist/i18n.d.ts +0 -39
- package/dist/iii/client.d.ts +0 -2
- package/dist/iii/index.d.ts +0 -4
- package/dist/iii/register-worker.d.ts +0 -9
- package/dist/iii/rest.d.ts +0 -3
- package/dist/iii/stream.d.ts +0 -82
- package/dist/iii/types.d.ts +0 -121
- package/dist/iii/worker.d.ts +0 -2
- package/dist/iii/ws.d.ts +0 -22
- package/dist/index.d.ts +0 -101
- package/dist/index.js +0 -12752
- package/dist/kb/index.d.ts +0 -3
- package/dist/kb/types.d.ts +0 -72
- package/dist/layout.d.ts +0 -2
- package/dist/live.d.ts +0 -7
- package/dist/logdb/client.d.ts +0 -2
- package/dist/logdb/index.d.ts +0 -2
- package/dist/logdb/rest.d.ts +0 -5
- package/dist/logdb/types.d.ts +0 -27
- package/dist/logger.d.ts +0 -16
- package/dist/mailer.d.ts +0 -51
- package/dist/mcp.d.ts +0 -34
- package/dist/messager/agent.d.ts +0 -11
- package/dist/messager/client.d.ts +0 -2
- package/dist/messager/index.d.ts +0 -2
- package/dist/messager/rest.d.ts +0 -15
- package/dist/messager/types.d.ts +0 -57
- package/dist/messager/ws.d.ts +0 -14
- package/dist/module-server.d.ts +0 -9
- package/dist/not-found.d.ts +0 -2
- package/dist/notifier/client.d.ts +0 -2
- package/dist/notifier/index.d.ts +0 -2
- package/dist/notifier/types.d.ts +0 -105
- package/dist/opencode/client.d.ts +0 -2
- package/dist/opencode/index.d.ts +0 -2
- package/dist/opencode/permissions.d.ts +0 -5
- package/dist/opencode/prompt.d.ts +0 -8
- package/dist/opencode/rest.d.ts +0 -16
- package/dist/opencode/run.d.ts +0 -13
- package/dist/opencode/session.d.ts +0 -26
- package/dist/opencode/skills.d.ts +0 -4
- package/dist/opencode/tools/bash.d.ts +0 -6
- package/dist/opencode/tools/edit.d.ts +0 -19
- package/dist/opencode/tools/glob.d.ts +0 -9
- package/dist/opencode/tools/grep.d.ts +0 -17
- package/dist/opencode/tools/index.d.ts +0 -12
- package/dist/opencode/tools/question.d.ts +0 -5
- package/dist/opencode/tools/read.d.ts +0 -16
- package/dist/opencode/tools/skill.d.ts +0 -18
- package/dist/opencode/tools/web.d.ts +0 -18
- package/dist/opencode/tools/write.d.ts +0 -13
- package/dist/opencode/types.d.ts +0 -90
- package/dist/opencode/ws.d.ts +0 -21
- package/dist/permissions.d.ts +0 -51
- package/dist/postgres/client.d.ts +0 -4
- package/dist/postgres/index.d.ts +0 -4
- package/dist/postgres/module.d.ts +0 -17
- package/dist/postgres/schema/columns.d.ts +0 -99
- package/dist/postgres/schema/index.d.ts +0 -6
- package/dist/postgres/schema/sql.d.ts +0 -22
- package/dist/postgres/schema/table.d.ts +0 -141
- package/dist/postgres/schema/where.d.ts +0 -29
- package/dist/postgres/types.d.ts +0 -50
- package/dist/queue/index.d.ts +0 -2
- package/dist/queue/types.d.ts +0 -62
- package/dist/rate-limit.d.ts +0 -45
- package/dist/react.d.ts +0 -14
- package/dist/react.js +0 -751
- package/dist/redis/client.d.ts +0 -2
- package/dist/redis/types.d.ts +0 -18
- package/dist/request-id.d.ts +0 -40
- package/dist/router.d.ts +0 -73
- package/dist/s3.d.ts +0 -68
- package/dist/seo.d.ts +0 -104
- package/dist/serve.d.ts +0 -38
- package/dist/server-registry.d.ts +0 -10
- package/dist/session.d.ts +0 -117
- package/dist/sse.d.ts +0 -47
- package/dist/ssr-entries.d.ts +0 -4
- package/dist/ssr.d.ts +0 -11
- package/dist/static.d.ts +0 -23
- package/dist/stream.d.ts +0 -24
- package/dist/tailwind.d.ts +0 -15
- package/dist/tenant/client.d.ts +0 -2
- package/dist/tenant/graphql.d.ts +0 -3
- package/dist/tenant/index.d.ts +0 -2
- package/dist/tenant/rest.d.ts +0 -3
- package/dist/tenant/schema.d.ts +0 -5
- package/dist/tenant/types.d.ts +0 -48
- package/dist/tenant/utils.d.ts +0 -9
- package/dist/test-utils.d.ts +0 -194
- package/dist/theme.d.ts +0 -31
- package/dist/trace.d.ts +0 -95
- package/dist/tsx-context.d.ts +0 -32
- package/dist/types.d.ts +0 -47
- package/dist/upload.d.ts +0 -55
- package/dist/use-action.d.ts +0 -42
- package/dist/use-agent-stream.d.ts +0 -49
- package/dist/use-flash-message.d.ts +0 -17
- package/dist/use-websocket.d.ts +0 -42
- package/dist/user/client.d.ts +0 -30
- package/dist/user/index.d.ts +0 -2
- package/dist/user/oauth-login.d.ts +0 -21
- package/dist/user/oauth2.d.ts +0 -31
- package/dist/user/types.d.ts +0 -178
- package/dist/validate.d.ts +0 -32
- package/dist/vendor.d.ts +0 -7
- package/dist/webhook.d.ts +0 -79
- package/opencode/ui/app/globals.css +0 -1
- package/opencode/ui/app/layout.tsx +0 -13
- package/opencode/ui/app/page.tsx +0 -523
package/dist/index.d.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
export type { Context, Handler, Middleware, ErrorHandler } from './types.ts';
|
|
2
|
-
export { HttpError } from './types.ts';
|
|
3
|
-
export { currentTraceId, currentTrace, runWithTrace, traceElapsed, trace } from './trace.ts';
|
|
4
|
-
export type { TraceContext, TraceInjected, TraceOptions } from './trace.ts';
|
|
5
|
-
export { loadEnv, isDev, isProd, isBundled, getPublicEnv, env } from './env.ts';
|
|
6
|
-
export { serve, createTestServer, DEFAULT_MAX_BODY } from './serve.ts';
|
|
7
|
-
export type { ServeOptions, Server } from './serve.ts';
|
|
8
|
-
export { Router } from './router.ts';
|
|
9
|
-
export type { WebSocketHandler } from './router.ts';
|
|
10
|
-
export { TsxContext } from './tsx-context.ts';
|
|
11
|
-
export { logger } from './logger.ts';
|
|
12
|
-
export type { LoggerOptions } from './logger.ts';
|
|
13
|
-
export { cors } from './cors.ts';
|
|
14
|
-
export type { CORSOptions } from './cors.ts';
|
|
15
|
-
export { serveStatic } from './static.ts';
|
|
16
|
-
export type { ServeStaticOptions } from './static.ts';
|
|
17
|
-
export { validate } from './validate.ts';
|
|
18
|
-
export type { ValidationSchemas, ValidateModule } from './validate.ts';
|
|
19
|
-
export { getCookies, setCookie, deleteCookie } from './cookie.ts';
|
|
20
|
-
export type { CookieOptions } from './cookie.ts';
|
|
21
|
-
export { upload } from './upload.ts';
|
|
22
|
-
export type { UploadOptions, UploadedFile, UploadModule } from './upload.ts';
|
|
23
|
-
export { rateLimit } from './rate-limit.ts';
|
|
24
|
-
export type { RateLimitOptions } from './rate-limit.ts';
|
|
25
|
-
export { compress } from './compress.ts';
|
|
26
|
-
export type { CompressOptions } from './compress.ts';
|
|
27
|
-
export { helmet } from './helmet.ts';
|
|
28
|
-
export type { HelmetOptions } from './helmet.ts';
|
|
29
|
-
export { requestId } from './request-id.ts';
|
|
30
|
-
export type { RequestIdOptions, RequestIdModule } from './request-id.ts';
|
|
31
|
-
export { createSSEStream, formatSSE, formatSSEData } from './sse.ts';
|
|
32
|
-
export type { SSEEvent } from './sse.ts';
|
|
33
|
-
export { testApp, TestApp, TestRequest, createTestDb, withTestDb } from './test-utils.ts';
|
|
34
|
-
export type { TestResponse, TestDb } from './test-utils.ts';
|
|
35
|
-
export { graphql } from './graphql.ts';
|
|
36
|
-
export type { GraphQLOptions, GraphQLHandler } from './graphql.ts';
|
|
37
|
-
export { aiStream } from './ai.ts';
|
|
38
|
-
export type { AIHandler } from './ai.ts';
|
|
39
|
-
export { runWorkflow } from './ai/workflow.ts';
|
|
40
|
-
export { aiProvider } from './ai/provider.ts';
|
|
41
|
-
export type { AIProvider, AIProviderOptions, AIProviderInjected } from './ai/provider.ts';
|
|
42
|
-
export { streamText, generateText, generateObject, streamObject, tool, embed, embedMany, smoothStream, openai, createOpenAI, } from './ai-sdk.ts';
|
|
43
|
-
export { postgres, MIGRATIONS_TABLE } from './postgres/index.ts';
|
|
44
|
-
export type { PostgresOptions, PostgresClient, PostgresInjected } from './postgres/types.ts';
|
|
45
|
-
export { user } from './user/index.ts';
|
|
46
|
-
export type { UserOptions, UserData, UserModule, OAuth2Client, OAuthProviderConfig, ApiKeyInfo, } from './user/types.ts';
|
|
47
|
-
export type { UserInjected } from './user/types.ts';
|
|
48
|
-
export { redis } from './redis/index.ts';
|
|
49
|
-
export type { RedisOptions, RedisClient, RedisInjected } from './redis/types.ts';
|
|
50
|
-
export { createHub } from './hub.ts';
|
|
51
|
-
export type { Hub, HubOptions } from './hub.ts';
|
|
52
|
-
export { queue } from './queue/index.ts';
|
|
53
|
-
export type { QueueOptions, QueueJob, Queue, QueueInjected } from './queue/types.ts';
|
|
54
|
-
export { tenant } from './tenant/index.ts';
|
|
55
|
-
export type { TenantOptions, TenantModule, TenantContext, FieldDef, FieldType, RelationDef, UserTableRow, } from './tenant/types.ts';
|
|
56
|
-
export { agent } from './agent/index.ts';
|
|
57
|
-
export type { AgentOptions, AgentModule, AgentConfig, RunParams, RunResult, KnowledgeDoc, } from './agent/types.ts';
|
|
58
|
-
export { messager } from './messager/index.ts';
|
|
59
|
-
export type { MessagerOptions, MessagerModule, Channel, ChannelMember, Message, } from './messager/types.ts';
|
|
60
|
-
export { deploy, defineConfig } from './deploy/index.ts';
|
|
61
|
-
export type { DeployConfig, AppConfig, DeployServer, AppStatus } from './deploy/types.ts';
|
|
62
|
-
export { opencode } from './opencode/index.ts';
|
|
63
|
-
export type { OpencodeOptions, OpencodeModule, SkillDef, OpencodePermissions, Session as OpencodeSession, } from './opencode/types.ts';
|
|
64
|
-
export { health } from './health.ts';
|
|
65
|
-
export type { HealthOptions } from './health.ts';
|
|
66
|
-
export { analytics } from './analytics.ts';
|
|
67
|
-
export type { AnalyticsOptions, AnalyticsModule } from './analytics.ts';
|
|
68
|
-
export { theme } from './theme.ts';
|
|
69
|
-
export type { ThemeOptions, ThemeInjected } from './theme.ts';
|
|
70
|
-
export { i18n } from './i18n.ts';
|
|
71
|
-
export type { I18nOptions, I18nInjected } from './i18n.ts';
|
|
72
|
-
export { flash } from './flash.ts';
|
|
73
|
-
export type { FlashOptions, FlashInjected, FlashModule } from './flash.ts';
|
|
74
|
-
export { seo, seoMiddleware, seoTags } from './seo.ts';
|
|
75
|
-
export type { SeoOptions, RobotsRule, SitemapUrl, SitemapConfig, SeoHeadersConfig, SeoTagsConfig, } from './seo.ts';
|
|
76
|
-
export { mailer } from './mailer.ts';
|
|
77
|
-
export type { MailerOptions, MailOptions, Mailer } from './mailer.ts';
|
|
78
|
-
export { csrf } from './csrf.ts';
|
|
79
|
-
export type { CsrfOptions, CsrfInjected, CsrfModule } from './csrf.ts';
|
|
80
|
-
export { logdb } from './logdb/index.ts';
|
|
81
|
-
export type { LogdbOptions, LogdbModule, LogEntry, LogEntryInput } from './logdb/types.ts';
|
|
82
|
-
export { iii, createWorker, registerWorker } from './iii/index.ts';
|
|
83
|
-
export type { IIIModule, IIIOptions, WorkerInfo, FunctionInfo, TriggerInfo, FunctionHandler, FunctionContext, TriggerInput, RemoteWorker, TriggerRequest, } from './iii/types.ts';
|
|
84
|
-
export { ssr } from './ssr.ts';
|
|
85
|
-
export { session, MemoryStore, RedisStore } from './session.ts';
|
|
86
|
-
export type { Session, SessionOptions, SessionStore, SessionData, SessionInjected, } from './session.ts';
|
|
87
|
-
export { cache, MemoryCache, RedisCache } from './cache.ts';
|
|
88
|
-
export type { CacheOptions, CacheStore, CacheMiddleware, CachedResponse } from './cache.ts';
|
|
89
|
-
export { webhook } from './webhook.ts';
|
|
90
|
-
export type { WebhookOptions, WebhookModule, WebhookEvent, WebhookHandler, PlatformConfig, CustomVerifierConfig, } from './webhook.ts';
|
|
91
|
-
export * as fts from './fts.ts';
|
|
92
|
-
export { s3 } from './s3.ts';
|
|
93
|
-
export type { S3Options, S3PutOptions, S3UrlOptions, S3Module, S3Body } from './s3.ts';
|
|
94
|
-
export { knowledgeBase } from './kb/index.ts';
|
|
95
|
-
export type { KBOptions, KBIngestOptions, KBSearchResult, KBSearchOptions, KBListEntry, KBModule, } from './kb/types.ts';
|
|
96
|
-
export { permissions } from './permissions.ts';
|
|
97
|
-
export type { PermissionsOptions, PermissionsModule } from './permissions.ts';
|
|
98
|
-
export { mcpClient } from './mcp.ts';
|
|
99
|
-
export type { MCPClient, MCPClientOptions, MCPToolDef } from './mcp.ts';
|
|
100
|
-
export { notifier } from './notifier/index.ts';
|
|
101
|
-
export type { NotifierOptions, Notifier, NotifierInjected, NotifyMessage, Notification, NotifyChannel, NotifyPreferences, } from './notifier/types.ts';
|