kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/715/head
rodzic
99258f24ea
commit
ce86808d35
|
@ -14,7 +14,7 @@ import { createSchemaFactory } from '@fisch0920/drizzle-zod'
|
||||||
import { z } from '@hono/zod-openapi'
|
import { z } from '@hono/zod-openapi'
|
||||||
import { createId as createCuid2 } from '@paralleldrive/cuid2'
|
import { createId as createCuid2 } from '@paralleldrive/cuid2'
|
||||||
|
|
||||||
export const namespaceMaxLength = 64 as const
|
export const namespaceMaxLength = 256 as const
|
||||||
|
|
||||||
// prefix is max 5 characters
|
// prefix is max 5 characters
|
||||||
// separator is 1 character
|
// separator is 1 character
|
||||||
|
@ -94,8 +94,8 @@ export function projectIdentifier<
|
||||||
T extends Readonly<[U, ...U[]]>
|
T extends Readonly<[U, ...U[]]>
|
||||||
>(
|
>(
|
||||||
config?: PgVarcharConfig<T | Writable<T>, never>
|
config?: PgVarcharConfig<T | Writable<T>, never>
|
||||||
): PgVarcharBuilderInitial<'', Writable<T>, 130> {
|
): PgVarcharBuilderInitial<'', Writable<T>, 514> {
|
||||||
return varchar({ length: 130, ...config })
|
return varchar({ length: 514, ...config })
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -106,8 +106,8 @@ export function deploymentIdentifier<
|
||||||
T extends Readonly<[U, ...U[]]>
|
T extends Readonly<[U, ...U[]]>
|
||||||
>(
|
>(
|
||||||
config?: PgVarcharConfig<T | Writable<T>, never>
|
config?: PgVarcharConfig<T | Writable<T>, never>
|
||||||
): PgVarcharBuilderInitial<'', Writable<T>, 160> {
|
): PgVarcharBuilderInitial<'', Writable<T>, 530> {
|
||||||
return varchar({ length: 160, ...config })
|
return varchar({ length: 530, ...config })
|
||||||
}
|
}
|
||||||
|
|
||||||
export function username<U extends string, T extends Readonly<[U, ...U[]]>>(
|
export function username<U extends string, T extends Readonly<[U, ...U[]]>>(
|
||||||
|
|
23
readme.md
23
readme.md
|
@ -5,6 +5,17 @@
|
||||||
|
|
||||||
# Agentic <!-- omit from toc -->
|
# Agentic <!-- omit from toc -->
|
||||||
|
|
||||||
|
## API Gateway
|
||||||
|
|
||||||
|
- **REST**: `GET/POST gateway.agentic.so/deploymentIdentifier/toolName`
|
||||||
|
- => MCP: `MCPClient.callTool` with JSON body parameters
|
||||||
|
- => OpenAPI: `GET/POST/ETC originUrl/toolName` operation with transformed JSON body params
|
||||||
|
- **MCP**: `mcp.agentic.so/deploymentIdentifier` MCP server?
|
||||||
|
- => MCP: `MCPClient.callTool` just proxying tool call
|
||||||
|
- => OpenAPI: `GET/POST/ETC originUrl/toolName` operation with transformed tool params
|
||||||
|
- RAW: `METHOD gateway.agentic.so/deploymentIdentifier/<pathname>`
|
||||||
|
- => Raw HTTP: `METHOD originUrl/<pathname>` simple HTTP proxy request
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- **webapp**
|
- **webapp**
|
||||||
|
@ -20,21 +31,13 @@
|
||||||
- consider `projectName` and `projectSlug` or `projectIdentifier`?
|
- consider `projectName` and `projectSlug` or `projectIdentifier`?
|
||||||
- add username / team name blacklist
|
- add username / team name blacklist
|
||||||
- admin, internal, mcp, sse, etc
|
- admin, internal, mcp, sse, etc
|
||||||
- **API gateway**
|
- API gateway
|
||||||
- MCP server vs REST gateway on public and internal sides
|
|
||||||
- **REST**: `GET/POST gateway.agentic.so/deploymentIdentifier/toolName`
|
|
||||||
- => MCP: `MCPClient.callTool` with JSON body parameters
|
|
||||||
- => OpenAPI: `GET/POST/ETC originUrl/toolName` operation with transformed JSON body params
|
|
||||||
- **MCP**: `mcp.agentic.so/deploymentIdentifier/sse` MCP server?
|
|
||||||
- => MCP: `MCPClient.callTool` just proxying tool call
|
|
||||||
- => OpenAPI: `GET/POST/ETC originUrl/toolName` operation with transformed tool params
|
|
||||||
- RAW: `METHOD gateway.agentic.so/deploymentIdentifier/<pathname>`
|
|
||||||
- => Raw HTTP: `METHOD originUrl/<pathname>` simple HTTP proxy request
|
|
||||||
- add support for custom headers on responses
|
- add support for custom headers on responses
|
||||||
- how to handle binary bodies and responses?
|
- how to handle binary bodies and responses?
|
||||||
|
|
||||||
## TODO Post-MVP
|
## TODO Post-MVP
|
||||||
|
|
||||||
|
- first-party deployment hosting
|
||||||
- stripe
|
- stripe
|
||||||
- re-add coupons
|
- re-add coupons
|
||||||
- declarative json-based pricing
|
- declarative json-based pricing
|
||||||
|
|
Ładowanie…
Reference in New Issue