Skip to content

Commit

Permalink
Major update: Replaced 'ai-form-toolkit' with 'gptbundle' throughout …
Browse files Browse the repository at this point in the history
…the entire codebase.
  • Loading branch information
felipefarias committed Mar 4, 2024
1 parent bb91ac0 commit e299684
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 29 deletions.
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@ai-form-toolkit/docs",
"name": "@gptbundle/docs",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "next dev",
"prebuild": "pnpm -F @ai-form-toolkit/server build && pnpm -F @ai-form-toolkit/client build",
"prebuild": "pnpm -F @gptbundle/server build && pnpm -F @gptbundle/client build",
"build": "pnpm run prebuild && next build",
"analyze": "ANALYZE=true next build",
"start": "next start"
},
"dependencies": {
"@ai-form-toolkit/client": "workspace:../packages/client",
"@ai-form-toolkit/server": "workspace:../packages/server",
"@gptbundle/client": "workspace:../packages/client",
"@gptbundle/server": "workspace:../packages/server",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@mdx-js/react": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ListAltOutlinedIcon from '@mui/icons-material/ListAltOutlined';
import PsychologyOutlinedIcon from '@mui/icons-material/PsychologyOutlined';

import { useRequestDialog } from '../../../requestDialog';
import { useGeneratedFormSchema, useFormAssistant } from '@ai-form-toolkit/client';
import { useGeneratedFormSchema, useFormAssistant } from '@gptbundle/client';
import LoadingBackdrop from '@/components/Examples/LoadingBackdrop';
import SchemaFormDemo from '@/components/Forms/SchemaFormDemo';
import { h2Styles, boxForms } from '../../../../app/examples/formStyles';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import AutoFixHighOutlinedIcon from '@mui/icons-material/AutoFixHighOutlined';
import PsychologyOutlinedIcon from '@mui/icons-material/PsychologyOutlined';

import { useRequestDialog } from '../../../requestDialog';
import { useFormAssistant } from '@ai-form-toolkit/client';
import { useFormAssistant } from '@gptbundle/client';
import { h2Styles, boxForms } from '../../../../app/examples/formStyles';

const CATEGORY_CHOICES = ['Bug', 'Feature', 'Improvement'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Button, TextField, Typography, Stack } from '@mui/material';
import { LoadingButton } from '@mui/lab';
import TipsAndUpdatesOutlinedIcon from '@mui/icons-material/TipsAndUpdatesOutlined';
import { useRequestDialog } from '../../../requestDialog';
import { useFormAssistant } from '@ai-form-toolkit/client';
import { useFormAssistant } from '@gptbundle/client';
import { h2Styles, boxForms } from '../../../../app/examples/formStyles';

export default function SingleFieldFormAssistant() {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/examples/generation/checklist/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { RJSFSchema } from '@rjsf/utils';
import ListAltOutlinedIcon from '@mui/icons-material/ListAltOutlined';

import { useRequestDialog } from '../../../requestDialog';
import { useGeneratedFormSchema } from '@ai-form-toolkit/client';
import { useGeneratedFormSchema } from '@gptbundle/client';
import LoadingBackdrop from '@/components/Examples/LoadingBackdrop';
import SchemaFormDemo from '@/components/Forms/SchemaFormDemo';

Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/examples/generation/dynamic-form/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { RJSFSchema } from '@rjsf/utils';
import { IChangeEvent } from '@rjsf/core';

import { useRequestDialog } from '../../../requestDialog';
import { useGeneratedFormSchema } from '@ai-form-toolkit/client';
import { useGeneratedFormSchema } from '@gptbundle/client';
import LoadingBackdrop from '@/components/Examples/LoadingBackdrop';
import SchemaFormDemo from '@/components/Forms/SchemaFormDemo';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { IChangeEvent } from '@rjsf/core';
import dedent from 'dedent';

import { useRequestDialog } from '../../../requestDialog';
import { useGeneratedFormSchema } from '@ai-form-toolkit/client';
import { useGeneratedFormSchema } from '@gptbundle/client';
import LoadingBackdrop from '@/components/Examples/LoadingBackdrop';
import SchemaFormDemo from '@/components/Forms/SchemaFormDemo';

Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/examples/generation/exam-form/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { IChangeEvent } from '@rjsf/core';
import dedent from 'dedent';

import { useRequestDialog } from '../../../requestDialog';
import { useGeneratedFormSchema } from '@ai-form-toolkit/client';
import { useGeneratedFormSchema } from '@gptbundle/client';
import LoadingBackdrop from '@/components/Examples/LoadingBackdrop';
import SchemaFormDemo from '@/components/Forms/SchemaFormDemo';

Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/examples/generation/legal-form/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { RJSFSchema } from '@rjsf/utils';
import ListAltOutlinedIcon from '@mui/icons-material/ListAltOutlined';

import { useRequestDialog } from '../../../requestDialog';
import { useGeneratedFormSchema } from '@ai-form-toolkit/client';
import { useGeneratedFormSchema } from '@gptbundle/client';
import LoadingBackdrop from '@/components/Examples/LoadingBackdrop';
import SchemaFormDemo from '@/components/Forms/SchemaFormDemo';

Expand Down
6 changes: 3 additions & 3 deletions docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import HolyLoader from 'holy-loader';
import React, { ReactNode } from 'react';
import { AIFormToolkitConfig } from '@ai-form-toolkit/client';
import { GptBundleConfig } from '@gptbundle/client';
import {
customGenerateGPTFormAutofill,
customGenerateGPTFormSchema,
AssistantArgsType,
GeneratorArgsType,
} from '@ai-form-toolkit/server';
} from '@gptbundle/server';
import MuiThemeWrapper from '@/MuiThemeWrapper';
import MDXProviderWrapper from '@/MDXProviderWrapper';

Expand Down Expand Up @@ -40,7 +40,7 @@ export default function RootLayout({ children }: { children: ReactNode }) {
</head>
<body>
<HolyLoader />
<AIFormToolkitConfig
<GptBundleConfig
generateFormAutofillFn={myGenerateGPTFormAutofill}
generateFormSchemaFn={myGenerateGPTFormSchema}
/>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/tutorial/form-assistant/content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const { fillFields } = useFormAssistant({

### Field Assistant Examples

Get creative! Check [the examples](/examples/assistant/field-assistant/) for some ideas:
Get creative! Check [the examples](/examples) for some ideas:

- You can add a button next to certain fields to trigger the AI assistant to fill only that field.
- You can add a button to autofill the whole form based on what's already filled and the form field names.
Expand Down
4 changes: 2 additions & 2 deletions docs/src/app/tutorial/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ You can find [a list of all examples here.](/examples) Feel free to explore all

## Community
- Contributing - GPTBundle is open source because we believe that streamlining AI is based on transparency. If you are interested contributing to GPTBundle, [check out our GitHub page.](https://github.com/vintasoftware/GPTBundle)
- Reddit - Join the conversation by [checking us out on Reddit]().
- Reddit (TBA) - Join the conversation by [checking us out on Reddit]().
- Support - This project is primarily maintained by Vinta Software. If you require assistance, our team is ready and willing to help. Please feel free to reach out to us via email at [gptbundle@vintasoftware.com.](mailto:gptbundle@vintasoftware.com)

## Getting Started
Expand All @@ -62,7 +62,7 @@ OPENAI_API_KEY=...
```

Use the `GptBundleConfig` to provide the action functions from server package to the client-side.
In Next.js, do that in your [root layout](https:/nextjs.org/docs/app/api-reference/file-conventions/layout):
In Next.js, do that in your [root layout](https://nextjs.org/docs/app/api-reference/file-conventions/layout):

```jsx {8-11}
import { GptBundleConfig } from '@gptbundle/client';
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ai-form-toolkit",
"name": "gptbundle",
"private": true,
"engines": {
"node": ">=20"
Expand All @@ -22,8 +22,8 @@
"test:cov": "jest --coverage",
"test:watch": "jest --watch",
"prepare": "husky install",
"build": "pnpm -F @ai-form-toolkit/server build && pnpm -F @ai-form-toolkit/client build",
"build:watch": "pnpm -F @ai-form-toolkit/server build:watch & pnpm -F @ai-form-toolkit/client build:watch"
"build": "pnpm -F @gptbundle/server build && pnpm -F @gptbundle/client build",
"build:watch": "pnpm -F @gptbundle/server build:watch & pnpm -F @gptbundle/client build:watch"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ai-form-toolkit/client",
"name": "@gptbundle/client",
"version": "0.0.1",
"type": "module",
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { SettingsType, settings } from '../settings';

export function AIFormToolkitConfig(apiSettings: SettingsType) {
export function GptBundleConfig(apiSettings: SettingsType) {
settings.generateFormAutofillFn = apiSettings.generateFormAutofillFn;
settings.generateFormSchemaFn = apiSettings.generateFormSchemaFn;
return null;
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './settings';
export * from './hooks/form-assistant';
export * from './hooks/form-gen';
export * from './components/AIFormToolkitConfig';
export * from './components/GptBundleConfig';
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ai-form-toolkit/server",
"name": "@gptbundle/server",
"version": "0.0.1",
"type": "module",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"skipLibCheck": true,
"strict": true,
"paths": {
"@ai-form-toolkit/*": ["./packages/*/src"],
"@gptbundle/*": ["./packages/*/src"],
"@docs/*": ["./docs/src"]
}
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"noEmit": true,
"strict": true,
"paths": {
"@ai-form-toolkit/*": ["./packages/*/src"],
"@gptbundle/*": ["./packages/*/src"],
"@docs/*": ["./docs/src"]
}
}
Expand Down

0 comments on commit e299684

Please sign in to comment.