Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/google-docs/contentful-app-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
{
"id": "prompt",
"name": "Prompt fromt he user",
"type": "String",
"name": "Prompt from the user",
"type": "Symbol",
"required": true
}
]
Expand Down
4 changes: 2 additions & 2 deletions apps/google-docs/functions/agents/documentParser.agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { generateText } from 'ai';
/**
* Configuration for the content type parser
*/
interface ContentTypeParserConfig {
interface DocumentParserConfig {
openaiApiKey: string;
modelVersion: string;
jsonData: any;
Expand All @@ -25,7 +25,7 @@ interface ContentTypeParserConfig {
* @param config - Parser configuration
* @returns Promise resolving to LLM response
*/
export async function createDocument(config: ContentTypeParserConfig) {
export async function createDocument(config: DocumentParserConfig) {
const { openaiApiKey, modelVersion, jsonData, document } = config;
const prompt = buildPrompt(jsonData);
return await callOpenAI(prompt, modelVersion, openaiApiKey);
Expand Down
14 changes: 0 additions & 14 deletions apps/google-docs/package-lock.json

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

12 changes: 5 additions & 7 deletions apps/google-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,16 @@
"scripts": {
"start": "vite",
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"test": "vitest",
"build": "rimraf build && npm run build:frontend && npm run build:functions",
"build:frontend": "rm -rf build && tsc && vite build",
"build:functions": "contentful-app-scripts build-functions --ci",
"create-app-definition": "contentful-app-scripts create-app-definition",
"deploy": "contentful-app-scripts upload --ci --bundle-dir ./build --organization-id ${DEFINITIONS_ORG_ID} --definition-id {3EaGZUMKRKVZUyrcoNJ4o4} --token ${CONTENTFUL_CMA_TOKEN}",
"upload": "contentful-app-scripts upload --bundle-dir ./build",
"upload-ci": "contentful-app-scripts upload --ci --bundle-dir ./build --organization-id $CONTENTFUL_ORG_ID --definition-id $CONTENTFUL_APP_DEF_ID --token $CONTENTFUL_ACCESS_TOKEN",
"upsert-actions": "contentful-app-scripts upsert-actions --ci --organization-id $CONTENTFUL_ORG_ID --definition-id $CONTENTFUL_APP_DEF_ID --token $CONTENTFUL_ACCESS_TOKEN",
"build:functions": "contentful-app-scripts build-functions --ci",
"deploy:dev": "source .env && contentful-app-scripts upload --ci --bundle-dir ./build --organization-id \"$DEFINITIONS_ORG_ID\" --definition-id {653vTnuQw3j5onU1tUoH6t} --token \"$CONTENTFUL_CMA_TOKEN\"",
"upload-ci:dev": "source .env && contentful-app-scripts upload --ci --bundle-dir ./build --organization-id \"$CONTENTFUL_ORG_ID\" --definition-id \"$CONTENTFUL_APP_DEF_ID\" --token \"$CONTENTFUL_ACCESS_TOKEN\"",
"upsert-actions:dev": "source .env && contentful-app-scripts upsert-actions --ci --organization-id \"$CONTENTFUL_ORG_ID\" --definition-id \"$CONTENTFUL_APP_DEF_ID\" --token \"$CONTENTFUL_ACCESS_TOKEN\""
"deploy": "contentful-app-scripts upload --ci --bundle-dir ./build --organization-id ${DEFINITIONS_ORG_ID} --definition-id 3EaGZUMKRKVZUyrcoNJ4o4 --token ${CONTENTFUL_CMA_TOKEN}",
"deploy:dev": "source .env && contentful-app-scripts upload --ci --bundle-dir ./build --organization-id \"$DEFINITIONS_ORG_ID\" --definition-id 653vTnuQw3j5onU1tUoH6t --token \"$CONTENTFUL_CMA_TOKEN\""
},
"eslintConfig": {
"extends": "react-app"
Expand Down
1 change: 1 addition & 0 deletions apps/google-docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"target": "ESNext",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"types": ["vitest/globals"],
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
Expand Down
39 changes: 8 additions & 31 deletions apps/rich-text-versioning/package-lock.json

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