kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: update deps
rodzic
35d0d54f0a
commit
e89c740e44
|
@ -3,5 +3,5 @@ import Stripe from 'stripe'
|
|||
import { env } from '@/lib/env'
|
||||
|
||||
export const stripe = new Stripe(env.STRIPE_SECRET_KEY, {
|
||||
apiVersion: '2025-05-28.basil'
|
||||
apiVersion: '2025-06-30.basil'
|
||||
})
|
||||
|
|
|
@ -4,6 +4,6 @@ import type { RawEnv } from '../env'
|
|||
|
||||
export function createStripe(env: RawEnv): Stripe {
|
||||
return new Stripe(env.STRIPE_SECRET_KEY, {
|
||||
apiVersion: '2025-05-28.basil'
|
||||
apiVersion: '2025-06-30.basil'
|
||||
})
|
||||
}
|
||||
|
|
|
@ -3,6 +3,11 @@ title: Vercel AI SDK
|
|||
description: How to use Agentic tools with the Vercel AI SDK.
|
||||
---
|
||||
|
||||
<Info>
|
||||
Agentic tools currently support the Vercel AI SDK v4. Support for the v5 beta
|
||||
is coming soon.
|
||||
</Info>
|
||||
|
||||
## Install
|
||||
|
||||
<CodeGroup>
|
||||
|
|
|
@ -57,7 +57,7 @@ One of `day`, `week`, `month`, or `year`.
|
|||
Optional number of days for a free trial period when a customer signs up for a
|
||||
new subscription.
|
||||
|
||||
[Stripe docs](https://docs.stripe.com/api/subscriptions/create?api-version=2025-05-28.preview#create_subscription-trial_period_days)
|
||||
[Stripe docs](https://docs.stripe.com/api/subscriptions/create?api-version=2025-06-30#create_subscription-trial_period_days)
|
||||
|
||||
</ResponseField>
|
||||
|
||||
|
@ -88,7 +88,7 @@ See [PricingPlanLineItem](#pricing-plan-line-item) for details.
|
|||
|
||||
## Pricing Plan Line Item
|
||||
|
||||
Each Pricing Plan Line Item corresponds to one [Stripe Product](https://docs.stripe.com/api/products/object?api-version=2025-05-28.preview), one [Stripe Price](https://docs.stripe.com/api/prices/object?api-version=2025-05-28.preview), and possibly one [Stripe Meter](https://docs.stripe.com/api/billing/meter/object?api-version=2025-05-28.preview) if the line-item is `metered`.
|
||||
Each Pricing Plan Line Item corresponds to one [Stripe Product](https://docs.stripe.com/api/products/object?api-version=2025-06-30), one [Stripe Price](https://docs.stripe.com/api/prices/object?api-version=2025-06-30), and possibly one [Stripe Meter](https://docs.stripe.com/api/billing/meter/object?api-version=2025-06-30) if the line-item is `metered`.
|
||||
|
||||
<ResponseField name='slug' type='string' required>
|
||||
Slugs act as the primary key for LineItems. They should be lower-cased and
|
||||
|
@ -143,7 +143,7 @@ Specified in the smallest currency unit (e.g. cents for USD).
|
|||
|
||||
So 100 = \$1.00 USD, 1000 = \$10.00 USD, etc.
|
||||
|
||||
[Stripe docs](https://docs.stripe.com/api/prices/create?api-version=2025-05-28.preview#create_price-unit_amount)
|
||||
[Stripe docs](https://docs.stripe.com/api/prices/create?api-version=2025-06-30#create_price-unit_amount)
|
||||
|
||||
</ResponseField>
|
||||
</Tab>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@agentic/platform": "workspace:*",
|
||||
"@agentic/serper": "catalog:",
|
||||
"@agentic/serper": "workspace:*",
|
||||
"@hono/mcp": "catalog:",
|
||||
"@modelcontextprotocol/sdk": "catalog:",
|
||||
"dotenv": "catalog:",
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
"test:unit": "vitest run"
|
||||
},
|
||||
"dependencies": {
|
||||
"@agentic/core": "catalog:",
|
||||
"@agentic/core": "workspace:*",
|
||||
"@agentic/platform-core": "workspace:*",
|
||||
"@agentic/platform-openapi-utils": "workspace:*",
|
||||
"@agentic/platform-types": "workspace:*",
|
||||
|
|
|
@ -364,35 +364,35 @@ exports[`loadAgenticConfig > everything-openapi 1`] = `
|
|||
}
|
||||
`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-metadata-0 1`] = `[ZodValidationError: Validation error: Expected string, received boolean at "icon"]`;
|
||||
exports[`loadAgenticConfig > invalid: invalid-metadata-0 1`] = `[ZodValidationError: Expected string at "icon"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-metadata-1 1`] = `[Error: Invalid "readme" (must be a URL or a path to a local file): "./not-found.md"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-name-0 1`] = `[ZodValidationError: Validation error: Required at "name"]`;
|
||||
exports[`loadAgenticConfig > invalid: invalid-name-0 1`] = `[ZodValidationError: Expected string at "name"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-name-1 1`] = `[ZodValidationError: Validation error: String must contain at most 1024 character(s) at "name"]`;
|
||||
exports[`loadAgenticConfig > invalid: invalid-name-1 1`] = `[ZodValidationError: Value must be less or equal to 1,024 at "name"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-name-2 1`] = `[ZodValidationError: Validation error: String must contain at least 1 character(s) at "name"]`;
|
||||
exports[`loadAgenticConfig > invalid: invalid-name-2 1`] = `[ZodValidationError: Value must be greater or equal to 1 at "name"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-origin-url-0 1`] = `[Error: Invalid originUrl: must be a valid https URL]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-origin-url-1 1`] = `[ZodValidationError: Validation error: Invalid url at "origin.url"]`;
|
||||
exports[`loadAgenticConfig > invalid: invalid-origin-url-1 1`] = `[TypeError: parseFunc is not a function]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-origin-url-2 1`] = `[ZodValidationError: Validation error: Required at "origin"]`;
|
||||
exports[`loadAgenticConfig > invalid: invalid-origin-url-2 1`] = `[ZodValidationError: Expected object at "origin"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-origin-url-3 1`] = `[ZodValidationError: Validation error: Invalid url at "origin.url"]`;
|
||||
exports[`loadAgenticConfig > invalid: invalid-origin-url-3 1`] = `[TypeError: parseFunc is not a function]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-slug-0 1`] = `[ZodValidationError: Validation error: Invalid project slug at "slug"]`;
|
||||
exports[`loadAgenticConfig > invalid: invalid-slug-0 1`] = `[ZodValidationError: Invalid project slug at "slug"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-slug-1 1`] = `[ZodValidationError: Validation error: Invalid project slug at "slug"]`;
|
||||
exports[`loadAgenticConfig > invalid: invalid-slug-1 1`] = `[ZodValidationError: Invalid project slug at "slug"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-slug-2 1`] = `[ZodValidationError: Validation error: Invalid project slug at "slug"]`;
|
||||
exports[`loadAgenticConfig > invalid: invalid-slug-2 1`] = `[ZodValidationError: Invalid project slug at "slug"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-slug-3 1`] = `[Error: Invalid project slug "" for project name " ". Must be ascii-only, lower-case, and kebab-case with no spaces between 1 and 256 characters. For example: "my-project" or "linkedin-resolver-23"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: invalid-slug-4 1`] = `[ZodValidationError: Validation error: Invalid project slug at "slug"]`;
|
||||
exports[`loadAgenticConfig > invalid: invalid-slug-4 1`] = `[ZodValidationError: Invalid project slug at "slug"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: pricing-base-inconsistent 1`] = `[ZodValidationError: Validation error: Invalid PricingPlanLineItem "base": reserved "base" LineItems must have "licensed" usage type. at "pricingPlans[1].lineItems[0]"]`;
|
||||
exports[`loadAgenticConfig > invalid: pricing-base-inconsistent 1`] = `[ZodValidationError: Invalid PricingPlanLineItem "base": reserved "base" LineItems must have "licensed" usage type. at "pricingPlans[1].lineItems[0]"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: pricing-custom-inconsistent 1`] = `[Error: Invalid pricingPlans: all PricingPlans which contain the same LineItems (by slug "custom-test") must have the same usage type ("licensed" or "metered").]`;
|
||||
|
||||
|
@ -400,11 +400,11 @@ exports[`loadAgenticConfig > invalid: pricing-duplicate-0 1`] = `[Error: Invalid
|
|||
|
||||
exports[`loadAgenticConfig > invalid: pricing-duplicate-1 1`] = `[Error: Invalid pricingPlan "basic": duplicate line-item slugs]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: pricing-empty-0 1`] = `[ZodValidationError: Validation error: Must contain at least one pricing interval at "pricingIntervals"]`;
|
||||
exports[`loadAgenticConfig > invalid: pricing-empty-0 1`] = `[ZodValidationError: Value must be greater or equal to 1 at "pricingIntervals"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: pricing-empty-1 1`] = `[ZodValidationError: Validation error: Array must contain at least 1 element(s) at "pricingPlans[0].lineItems"]`;
|
||||
exports[`loadAgenticConfig > invalid: pricing-empty-1 1`] = `[ZodValidationError: Value must be greater or equal to 1 at "pricingPlans[0].lineItems"]`;
|
||||
|
||||
exports[`loadAgenticConfig > invalid: pricing-empty-2 1`] = `[ZodValidationError: Validation error: Must contain at least one PricingPlan at "pricingPlans"]`;
|
||||
exports[`loadAgenticConfig > invalid: pricing-empty-2 1`] = `[ZodValidationError: Value must be greater or equal to 1 at "pricingPlans"]`;
|
||||
|
||||
exports[`loadAgenticConfig > metadata-0 1`] = `
|
||||
{
|
||||
|
|
2023
pnpm-lock.yaml
2023
pnpm-lock.yaml
Plik diff jest za duży
Load Diff
|
@ -9,9 +9,7 @@ packages:
|
|||
- examples/ts-sdks/*
|
||||
|
||||
catalog:
|
||||
'@agentic/core': ^7.6.9
|
||||
'@agentic/serper': ^7.6.9
|
||||
'@ai-sdk/openai': ^1.3.22
|
||||
'@ai-sdk/openai': ^1.3.23
|
||||
'@apideck/better-ajv-errors': ^0.3.6
|
||||
'@clack/prompts': ^0.11.0
|
||||
'@cloudflare/workers-types': ^4.20250620.0
|
||||
|
@ -19,7 +17,7 @@ catalog:
|
|||
'@date-fns/utc': ^2.1.0
|
||||
'@dicebear/collection': ^9.2.3
|
||||
'@dicebear/core': ^9.2.3
|
||||
'@dotenvx/dotenvx': ^1.45.1
|
||||
'@dotenvx/dotenvx': ^1.46.0
|
||||
'@edge-runtime/vm': ^5.0.0
|
||||
'@fisch0920/config': ^1.1.4
|
||||
'@fisch0920/drizzle-orm': ^0.43.7
|
||||
|
@ -27,7 +25,7 @@ catalog:
|
|||
'@fisch0920/markdown-to-html': ^1.1.0
|
||||
'@googleapis/customsearch': ^4.0.1
|
||||
'@hono/mcp': ^0.1.0
|
||||
'@hono/node-server': ^1.14.4
|
||||
'@hono/node-server': ^1.15.0
|
||||
'@hono/sentry': ^1.2.2
|
||||
'@hono/zod-openapi': ^0.19.9
|
||||
'@hono/zod-validator': ^0.7.0
|
||||
|
@ -37,7 +35,7 @@ catalog:
|
|||
'@llamaindex/workflow': ^1.1.9
|
||||
'@mastra/core': ^0.10.6
|
||||
'@mastra/schema-compat': ^0.10.3
|
||||
'@modelcontextprotocol/sdk': ^1.13.2
|
||||
'@modelcontextprotocol/sdk': ^1.15.0
|
||||
'@nangohq/node': 0.42.22
|
||||
'@number-flow/react': ^0.5.10
|
||||
'@paralleldrive/cuid2': ^2.2.2
|
||||
|
@ -50,33 +48,33 @@ catalog:
|
|||
'@radix-ui/react-tooltip': ^1.2.7
|
||||
'@react-email/components': ^0.1.1
|
||||
'@react-three/cannon': ^6.6.0
|
||||
'@react-three/drei': ^10.2.0
|
||||
'@react-three/fiber': ^9.1.2
|
||||
'@react-three/drei': ^10.4.4
|
||||
'@react-three/fiber': ^9.2.0
|
||||
'@react-three/postprocessing': ^3.0.4
|
||||
'@react-three/rapier': ^2.1.0
|
||||
'@redocly/openapi-core': ^1.34.3
|
||||
'@sentry/cli': ^2.46.0
|
||||
'@sentry/cloudflare': ^9.33.0
|
||||
'@sentry/core': ^9.33.0
|
||||
'@sentry/node': ^9.33.0
|
||||
'@sentry/cloudflare': ^9.35.0
|
||||
'@sentry/core': ^9.35.0
|
||||
'@sentry/node': ^9.35.0
|
||||
'@sindresorhus/slugify': ^2.2.1
|
||||
'@standard-schema/spec': ^1.0.0
|
||||
'@tailwindcss/postcss': ^4.1.11
|
||||
'@tailwindcss/typography': ^0.5.16
|
||||
'@tanstack/react-form': ^1.12.3
|
||||
'@tanstack/react-form': ^1.14.1
|
||||
'@tanstack/react-query': ^5.81.5
|
||||
'@tanstack/react-query-devtools': ^5.81.5
|
||||
'@types/canvas-confetti': ^1.9.0
|
||||
'@types/jsrsasign': ^10.5.15
|
||||
'@types/ms': ^2.1.0
|
||||
'@types/node': ^24.0.7
|
||||
'@types/node': ^24.0.10
|
||||
'@types/react': ^19.1.8
|
||||
'@types/react-dom': ^19.1.6
|
||||
'@types/semver': ^7.7.0
|
||||
'@types/three': ^0.177.0
|
||||
'@types/three': ^0.178.0
|
||||
'@xsai/tool': ^0.3.0-beta.4
|
||||
agents: ^0.0.99
|
||||
ai: ^4.3.15
|
||||
agents: ^0.0.101
|
||||
ai: ^4.3.17
|
||||
ajv: ^8.17.1
|
||||
ajv-formats: ^3.0.1
|
||||
autoprefixer: ^10.4.21
|
||||
|
@ -95,19 +93,19 @@ catalog:
|
|||
dedent: ^1.6.0
|
||||
del-cli: ^6.0.0
|
||||
delay: ^6.0.0
|
||||
dotenv: ^16.5.0
|
||||
dotenv: ^17.0.1
|
||||
drizzle-kit: ^0.31.4
|
||||
drizzle-orm: ^0.44.2
|
||||
duck-duck-scrape: ^2.2.7
|
||||
email-validator: ^2.0.4
|
||||
eslint: ^9.30.0
|
||||
eslint: ^9.30.1
|
||||
eslint-plugin-drizzle: ^0.2.3
|
||||
eventid: ^2.0.1
|
||||
exit-hook: ^4.0.0
|
||||
fast-content-type-parse: ^3.0.0
|
||||
fast-uri: ^3.0.6
|
||||
fast-xml-parser: ^5.2.5
|
||||
fastmcp: ^3.6.2
|
||||
fastmcp: ^3.8.2
|
||||
genkit: ^1.13.0
|
||||
genkitx-openai: ^0.22.3
|
||||
get-port: ^7.1.0
|
||||
|
@ -115,7 +113,7 @@ catalog:
|
|||
googleapis: ^150.0.1
|
||||
hash-object: ^5.0.1
|
||||
hast-util-to-jsx-runtime: ^2.3.6
|
||||
hono: ^4.8.3
|
||||
hono: ^4.8.4
|
||||
is-obj: ^3.0.0
|
||||
is-relative-url: ^4.0.0
|
||||
jsonrepair: ^3.12.0
|
||||
|
@ -127,10 +125,10 @@ catalog:
|
|||
llamaindex: ^0.11.8
|
||||
lucide-react: ^0.525.0
|
||||
mathjs: ^13.2.3
|
||||
mint: ^4.1.97
|
||||
mint: ^4.2.4
|
||||
motion: ^12.19.2
|
||||
ms: ^2.1.3
|
||||
next: ^15.3.4
|
||||
next: ^15.3.5
|
||||
next-themes: ^0.4.6
|
||||
npm-run-all2: ^8.0.4
|
||||
octokit: ^5.0.3
|
||||
|
@ -149,7 +147,7 @@ catalog:
|
|||
plur: ^5.1.0
|
||||
postcss: ^8.5.6
|
||||
postgres: ^3.4.7
|
||||
posthog-js: ^1.255.0
|
||||
posthog-js: ^1.256.2
|
||||
prettier: ^3.6.2
|
||||
react: ^19.1.0
|
||||
react-dom: ^19.1.0
|
||||
|
@ -164,14 +162,14 @@ catalog:
|
|||
server-only: ^0.0.1
|
||||
shiki: ^3.7.0
|
||||
simple-git-hooks: ^2.13.0
|
||||
sonner: ^2.0.5
|
||||
sonner: ^2.0.6
|
||||
sort-keys: ^5.1.0
|
||||
string-strip-html: ^13.4.12
|
||||
stripe: ^18.2.1
|
||||
suspend-react: ^0.1.3
|
||||
tailwind-merge: ^3.3.1
|
||||
tailwindcss: ^4.1.11
|
||||
three: ^0.177.0
|
||||
three: ^0.178.0
|
||||
tsup: ^8.5.0
|
||||
tsx: ^4.20.3
|
||||
turbo: ^2.5.4
|
||||
|
@ -183,11 +181,11 @@ catalog:
|
|||
vite-tsconfig-paths: ^5.1.4
|
||||
vitest: ^3.2.4
|
||||
wikibase-sdk: ^10.2.3
|
||||
wrangler: ^4.22.0
|
||||
wrangler: ^4.23.0
|
||||
xsai: ^0.3.0-beta.4
|
||||
zod: ^3.25.67
|
||||
zod-to-json-schema: ^3.24.5
|
||||
zod-validation-error: ^3.5.2
|
||||
zod-validation-error: 4.0.0-beta.1
|
||||
zoominfo-api-auth-client: ^1.0.1
|
||||
|
||||
ignoredBuiltDependencies:
|
||||
|
|
19
todo.md
19
todo.md
|
@ -5,14 +5,6 @@
|
|||
|
||||
## TODO: MVP
|
||||
|
||||
- **website**
|
||||
- stripe
|
||||
- double check stripe upgrade flow and add fireworks
|
||||
- improve upgrade flow UX
|
||||
- should we bypass stripe for `free` plans to increase conversions?
|
||||
- **replace json pricing plans and consumers with actual designs**
|
||||
- double-check free-tier rate-limits for `@agentic/search`
|
||||
- docs: add notes about constraints on mcp origin servers (static tools)
|
||||
- **api keys should go beyond 1:1 consumers**
|
||||
- **currently not obvious how to get api key**
|
||||
- marketplace public project detail page
|
||||
|
@ -23,14 +15,12 @@
|
|||
- mcp inspector
|
||||
- improve private project page
|
||||
- link to public page if published
|
||||
- list deployment versions
|
||||
- list deployments
|
||||
- **create agentic products for select legacy tools**
|
||||
- marketplace index page
|
||||
- add disclaimer about public beta
|
||||
- add search / sorting
|
||||
- replace render for api and/or add turbo for caching (too slow to deploy)
|
||||
- create slack + notifications
|
||||
- consider changing homepage hero CTA to include publishing
|
||||
|
||||
## TODO: Post-MVP
|
||||
|
||||
|
@ -45,6 +35,11 @@
|
|||
- projects may be public but not accepted into the marketplace?
|
||||
- => **punt on this for mvp**
|
||||
- **website**
|
||||
- **replace consumers with actual designs**
|
||||
- stripe
|
||||
- double check stripe upgrade flow and add fireworks
|
||||
- improve upgrade flow UX
|
||||
- should we bypass stripe for `free` plans to increase conversions?
|
||||
- llms.txt and llms.txt for all projects
|
||||
- handle browser back/forward with `?next=`
|
||||
- add some social proof to signup page
|
||||
|
@ -134,3 +129,5 @@
|
|||
- add mcp-remote to support stdio-only mcp clients like claude desktop
|
||||
- add docs on how to use with [chatgpt's mcp custom connectors](https://platform.openai.com/docs/mcp) ([requires pro account or team/enterprise/edu workspace](https://help.openai.com/en/articles/11487775-connectors-in-chatgpt#h_d2a53d4230))
|
||||
- add support for enterprise / custom / contact us pricing
|
||||
- consider changing homepage hero CTA to include publishing
|
||||
- docs: add notes about constraints on mcp origin servers (static tools)
|
||||
|
|
Ładowanie…
Reference in New Issue