pull/715/head
Travis Fischer 2025-06-05 01:13:15 +07:00
rodzic b1572921b6
commit 577bdca9c4
3 zmienionych plików z 6 dodań i 13 usunięć

Wyświetl plik

@ -11,7 +11,7 @@ const ky = defaultKy.extend({
// Disable automatic retries for testing. // Disable automatic retries for testing.
retry: 0, retry: 0,
// Some tests expect HTTP errors, so handle them manually. // Some tests expect HTTP errors, so handle them manually instead of throwing.
throwHttpErrors: false throwHttpErrors: false
}) })

Wyświetl plik

@ -5,12 +5,9 @@ import { z } from 'zod'
// TODO: derive AGENTIC_API_BASE_URL and AGENTIC_GATEWAY_BASE_URL based on // TODO: derive AGENTIC_API_BASE_URL and AGENTIC_GATEWAY_BASE_URL based on
// environment. // environment.
// TODO: use `@agentic/platform-hono` base env like other services
export const envSchema = z.object({ export const envSchema = z.object({
ENVIRONMENT: z
.enum(['development', 'test', 'production'])
.default('development'),
AGENTIC_API_BASE_URL: z.string().url().optional(), AGENTIC_API_BASE_URL: z.string().url().optional(),
AGENTIC_API_ACCESS_TOKEN: z.string().nonempty(), AGENTIC_API_ACCESS_TOKEN: z.string().nonempty(),
@ -25,6 +22,3 @@ export const envSchema = z.object({
export const env = parseZodSchema(envSchema, process.env, { export const env = parseZodSchema(envSchema, process.env, {
error: 'Invalid environment variables' error: 'Invalid environment variables'
}) })
export const isDev = env.ENVIRONMENT === 'development'
export const isProd = env.ENVIRONMENT === 'production'

Wyświetl plik

@ -9,9 +9,9 @@
- **webapp** - **webapp**
- end-to-end working examples - end-to-end working examples
- raw
- openapi - openapi
- mcp - mcp
- raw
- stripe - stripe
- re-add coupons - re-add coupons
- declarative json-based pricing - declarative json-based pricing
@ -37,8 +37,6 @@
- add username / team name blacklist - add username / team name blacklist
- admin, internal, mcp, sse, etc - admin, internal, mcp, sse, etc
- **API gateway** - **API gateway**
- share hono middleware and utils across apps/api and apps/gateway
- or combine these together? ehhhh
- MCP server vs REST gateway on public and internal sides - MCP server vs REST gateway on public and internal sides
- **REST**: `GET/POST gateway.agentic.so/deploymentIdentifier/toolName` - **REST**: `GET/POST gateway.agentic.so/deploymentIdentifier/toolName`
- => MCP: `MCPClient.callTool` with JSON body parameters - => MCP: `MCPClient.callTool` with JSON body parameters
@ -52,8 +50,9 @@
- 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?
- signed requests - signed requests
- revisit deployment identifiers so possibly be URL-friendly? - public identifiers and validators
- move validators package into platform-types? - revisit deployment identifiers so possibly be URL-friendly?
- move validators package into platform-types?
- force toolPath to be non-empty except for `raw`? - force toolPath to be non-empty except for `raw`?
- will remove ambiguity from `username/` - will remove ambiguity from `username/`
- make namespace optional? and require `@` prefix if so? like npm packages - make namespace optional? and require `@` prefix if so? like npm packages