The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Remove twenty-apps irrelevant stuff (#14649)
martmulle8121919bde0
diff --git a/packages/twenty-apps/CONTRIBUTING.md b/packages/twenty-apps/CONTRIBUTING.mddeleted file mode 100644index e05b923efb4..00000000000--- a/packages/twenty-apps/CONTRIBUTING.md+++ /dev/null@@ -1,404 +0,0 @@-# Contributing to Twenty Apps (WIP WIP WIP - DO NOT USE)--Thank you for your interest in contributing applications to the Twenty ecosystem! This guide will help you create, test, and submit high-quality applications.--## π Quick Start--### Prerequisites-- Twenty development environment set up-- Basic understanding of Twenty's architecture--### Create Your First Application--1. **Create Application Directory**- ```bash- mkdir packages/twenty-apps/my-awesome-app- cd packages/twenty-apps/my-awesome-app- ```--2. **Create Application Manifest**- ```bash- cat > twenty-app.json << 'EOF'- {- "universalIdentifier": "com.yourcompany.my-awesome-app",- "label": "My Awesome App",- "description": "A brief description of what your app does",- "version": "1.0.0",- "icon": "β",- "roles": [],- "objects": [],- "functions": [],- "agents": [],- "views": []- }- EOF- ```--3. **Create Documentation**- ```bash- cat > README.md << 'EOF'- # My Awesome App-- Brief description of your application.-- ## Features- - Feature 1- - Feature 2-- ## Installation- ```bash- npx nx app:install twenty-server \- --source "./packages/twenty-apps/my-awesome-app" \- --workspaceId "your-workspace-id" \- --sourceType "local"- ```- EOF- ```--4. **Validate Your Application**- ```bash- npx nx validate twenty-apps- ```--5. **Test Installation**- ```bash- # Build the server first- npx nx build twenty-server-- # Install your app- npx nx app:install twenty-server \- --source "./packages/twenty-apps/my-awesome-app" \- --workspaceId "your-workspace-id" \- --sourceType "local" \- --verbose- ```--## π Application Structure--### Required Files-- `twenty-app.json` - Application manifest (required)-- `README.md` - Application documentation (required)--### Optional Files-- `DEVELOPMENT.md` - Development guide-- `functions/` - Serverless function source files-- `assets/` - Icons, screenshots, etc.-- `examples/` - Usage examples--### Manifest Schema--Your `twenty-app.json` must follow this structure:--```json-{- "universalIdentifier": "com.company.app-name",- "label": "Human Readable Name",- "description": "Brief description (max 500 chars)",- "version": "1.0.0",- "icon": "π",- "repositoryUrl": "https://github.com/user/repo",-- "roles": [- {- "universalIdentifier": "com.company.app-name.role-name",- "label": "Role Display Name",- "description": "What this role can do",- "permissions": {- "canReadAllObjectRecords": false,- "canUpdateAllObjectRecords": false,- "canAccessAllTools": false,- "canUpdateAllSettings": false- }- }- ],-- "objects": [- {- "universalIdentifier": "com.company.app-name.object-name",- "nameSingular": "objectName",- "namePlural": "objectNames",- "labelSingular": "Object Name",- "labelPlural": "Object Names",- "description": "What this object represents",- "icon": "π",- "fields": [- {- "universalIdentifier": "com.company.app-name.object-name.field-name",- "name": "fieldName",- "label": "Field Label",- "type": "TEXT|NUMBER|CURRENCY|DATE_TIME|SELECT|RELATION",- "isNullable": true,- "defaultValue": "optional"- }- ]- }- ],-- "functions": [- {- "universalIdentifier": "com.company.app-name.function-name",- "name": "functionName",- "description": "What this function does",- "sourceCode": "export const handler = async (event) => { ... };",- "runtime": "nodejs22.x",- "timeoutSeconds": 30- }- ],-- "agents": [- {- "universalIdentifier": "com.company.app-name.agent-name",- "name": "agentName",- "label": "Agent Display Name",- "description": "What this agent helps with",- "prompt": "You are a helpful assistant that...",- "modelId": "gpt-4"- }- ],-- "views": [- {- "universalIdentifier": "com.company.app-name.view-name",- "name": "View Name",- "objectName": "objectName",- "type": "TABLE|KANBAN|CALENDAR",- "icon": "π",- "fields": [],- "filters": [],- "sorts": []- }- ]-}-```--## π οΈ Development Workflow--### 1. Development Mode-Use development mode for rapid iteration:--```bash-# Using environment variable (recommended)-export TWENTY_API_KEY="20202020-f401-4d8a-a731-64d007c27bad" # Default dev API key-npx nx app:dev twenty-server \- --path "./packages/twenty-apps/my-awesome-app" \- --verbose--# Or using command line parameter-npx nx app:dev twenty-server \- --path "./packages/twenty-apps/my-awesome-app" \- --api-key "your-api-key-here" \- --verbose-```--**Getting an API Key:**-1. Start your Twenty development server-2. Go to Settings β APIs & Webhooks-3. Generate a new API key-4. Use the default seeded key `20202020-f401-4d8a-a731-64d007c27bad` for development--This will:-- Watch for file changes-- Automatically sync updates to Twenty-- Show detailed logs of what's happening--### 2. Testing Your Application--#### Validation-```bash-# Validate manifest structure-npx nx validate twenty-apps--# List all applications-npx nx run twenty-apps:list--# Show application info-npx nx run twenty-apps:info-```--#### Installation Testing-```bash-# Test fresh installation (uses TWENTY_API_KEY environment variable)-npx nx app:install twenty-server \- --source "./packages/twenty-apps/my-awesome-app" \- --verbose-```--#### Manual Testing-1. Install your application in a test workspace-2. Verify all objects, roles, and functions are created-3. Test the functionality works as expected-4. Check that views display correctly-5. Test any AI agents respond appropriately--### 3. Common Development Patterns--#### Field Types-- `TEXT` - String values-- `NUMBER` - Numeric values-- `CURRENCY` - Monetary amounts-- `DATE_TIME` - Timestamps-- `SELECT` - Dropdown options-- `RELATION` - Links to other objects--#### Serverless Functions-```javascript-export const handler = async (event) => {- // Access event data- const { recordId, workspaceId } = event;-- // Perform your logic- const result = await processData(recordId);-- // Return response- return {- statusCode: 200,- body: JSON.stringify(result)- };-};-```--#### AI Agent Prompts-```json-{- "prompt": "You are a helpful assistant for [specific domain]. You can help users with:\n\n1. Specific task 1\n2. Specific task 2\n3. Specific task 3\n\nAlways be professional and provide actionable advice."-}-```--## β Quality Guidelines--### Code Quality-- β Valid JSON in manifest-- β All required fields present-- β Unique universal identifiers-- β Proper field types and constraints-- β Meaningful descriptions--### Documentation Quality-- β Clear README with installation instructions-- β Feature list with descriptions-- β Usage examples-- β Screenshots or demos (if applicable)--### Functionality Quality-- β Application installs without errors-- β All features work as described-- β No conflicts with existing Twenty functionality-- β Proper error handling in functions--### User Experience-- β Intuitive object and field names-- β Helpful descriptions and labels-- β Logical default views and sorts-- β Appropriate icons and visual elements--## π Review Process--### Self-Review Checklist-Before submitting, ensure:--- [ ] Application validates successfully (`npx nx validate twenty-apps`)-- [ ] Installation works in a clean workspace-- [ ] All features function as documented-- [ ] README is complete and accurate-- [ ] Universal identifiers follow reverse domain notation-- [ ] No hardcoded values or test data-- [ ] Functions handle errors gracefully-- [ ] AI agents provide helpful responses--### Submission Process--1. **Fork the Repository**- ```bash- git clone https://github.com/twentyhq/twenty.git- ```--2. **Create Feature Branch**- ```bash- git checkout -b feature/my-awesome-app- ```--3. **Commit Your Application**- ```bash- git add packages/twenty-apps/my-awesome-app/- git commit -m "feat: add My Awesome App for [specific use case]"- ```--4. **Push and Create PR**- ```bash- git push origin feature/my-awesome-app- # Create pull request on GitHub- ```--### PR Requirements-Your pull request should include:--- **Clear Title**: "feat: add [App Name] for [use case]"-- **Description**: What the app does and why it's useful-- **Screenshots**: Show the app in action-- **Testing**: Confirm you've tested installation and functionality-- **Documentation**: Link to your app's README--### Review Criteria--Applications are reviewed for:--1. **Functionality** - Does it work as described?-2. **Code Quality** - Is the manifest well-structured?-3. **Documentation** - Is it well-documented?-4. **Uniqueness** - Does it provide unique value?-5. **Compatibility** - Works with current Twenty version?-6. **Security** - No security vulnerabilities?--## π― Application Categories--### Business Applications-- **CRM Extensions** - Sales, marketing, customer service-- **Project Management** - Tasks, resources, timelines-- **Financial** - Invoicing, expenses, reporting-- **HR** - Employee management, recruiting--### Industry-Specific-- **Real Estate** - Properties, leads, transactions-- **Healthcare** - Patients, appointments, records-- **Education** - Students, courses, grades-- **Legal** - Cases, clients, documents--### Utility Applications-- **Data Integration** - Import/export, connectors-- **Automation** - Workflows, triggers, notifications-- **Reporting** - Dashboards, analytics, insights-- **Communication** - Messaging, notifications, alerts--## π Getting Help--### Resources-- [Twenty Documentation](https://docs.twenty.com)-- [Application Examples](./crm-extension/)-- [Community Discord](https://discord.gg/twenty)--### Common Issues--**"Invalid universal identifier"**-- Use reverse domain notation: `com.company.app-name`-- Ensure uniqueness across your application-- Use lowercase with hyphens--**"Validation failed"**-- Check JSON syntax with `jq . twenty-app.json`-- Ensure all required fields are present-- Verify field types match schema--**"Installation failed"**-- Check workspace ID is correct-- Ensure Twenty server is running-- Verify no conflicting applications--### Support Channels-1. Check existing applications for examples-2. Review validation error messages-3. Ask in Twenty Discord #applications channel-4. Open GitHub issue for bugs-------**Ready to build amazing applications for Twenty?** Start with our [CRM Extension example](./crm-extension/) to see what's possible, then create your own application to solve real business problems!diff --git a/packages/twenty-apps/README.md b/packages/twenty-apps/README.mddeleted file mode 100644index c99e034583d..00000000000--- a/packages/twenty-apps/README.md+++ /dev/null@@ -1,299 +0,0 @@-# Twenty Apps (WIP WIP WIP - DO NOT USE)--Welcome to the Twenty Apps collection! This package will contain a curated set of applications to extend Twenty CRM's functionality.---## π Available Applications--### π CRM Extension Demo-**Location**: `./crm-extension/`-**Description**: A comprehensive demo showcasing custom objects, roles, serverless functions, and AI agents for sales territory and activity management.--**Features**:-- πΊοΈ Sales Territory Management-- π Sales Activity Tracking-- π€ AI Sales Assistant-- β‘ Automated Performance Calculations-- π₯ Role-based Access Control--## π¦ Installation--### Prerequisites--#### For Local Development (Current)-The Twenty CLI is not yet published to npm. Use it locally from the monorepo:--```bash-# From the twenty monorepo root directory-# Use nx to run CLI commands:-npx nx run twenty-cli:start -- auth login--# All CLI commands follow this pattern:-npx nx run twenty-cli:start -- [command] [options]-```--#### For Published Version (Coming Soon)-```bash-# Once published to npm-npm install -g twenty-cli-twenty auth login-```--### Installing an application-```bash-# Install any application from this package (from monorepo root)-npx nx run twenty-cli:start -- app install \- --source "./packages/twenty-apps/crm-extension" \- --type local \- --workspace-id "your-workspace-id"-```--### Developing an application-```bash-# Navigate to the application directory-cd packages/twenty-apps/crm-extension--# Start development mode with auto-sync (from monorepo root)-npx nx run twenty-cli:start -- app dev \- --verbose-```--## ποΈ Application Structure--Each application in this package follows the standard Twenty application structure:--```-app-name/-βββ twenty-app.json # Application manifest-βββ README.md # Application documentation-βββ DEVELOPMENT.md # Development guide (optional)-βββ functions/ # Serverless functions (optional)-β βββ function1.js-β βββ function2.js-βββ assets/ # Static assets (optional)- βββ icons/- βββ screenshots/-```--## π Application Manifest--Every Twenty application must include a `twenty-app.json` file:--```json-{- "universalIdentifier": "com.company.app-name",- "label": "App Display Name",- "description": "Brief description of the app",- "version": "1.0.0",- "icon": "π",-- "agents": [- {- "universalIdentifier": "com.company.app-name.agent-name",- "name": "agentName",- "label": "Agent Display Name",- "description": "What this agent helps with",- "prompt": "You are a helpful assistant that...",- "modelId": "gpt-4",- "responseFormat": {- "type": "text"- }- }- ]-}-```--> **Note**: Currently, Twenty applications primarily support AI agents. Support for custom objects, roles, functions, and views is planned for future releases.--## π οΈ Development Workflow--### 1. Create a New Application--```bash-# Create application using the CLI (from monorepo root)-npx nx run twenty-cli:start -- app init my-new-app-cd my-new-app--# Or create manually in the twenty-apps package-mkdir packages/twenty-apps/my-new-app-cd packages/twenty-apps/my-new-app--# Create manifest-cat > twenty-app.json << 'EOF'-{- "universalIdentifier": "com.mycompany.my-new-app",- "label": "My New App",- "description": "Description of my application",- "version": "1.0.0",- "icon": "β",- "agents": []-}-EOF-```--### 2. Develop with Live Reload--```bash-# Navigate to your application directory-cd packages/twenty-apps/my-new-app--# Start development mode with file watching (from monorepo root)-npx nx run twenty-cli:start -- app dev \- --workspace-id "your-workspace-id" \- --verbose-```--### 3. Test Installation--```bash-# Test installation from local source (from monorepo root)-npx nx run twenty-cli:start -- app install \- --source "./packages/twenty-apps/my-new-app" \- --type local \- --workspace-id "test-workspace-id"-```--## π Application Categories--### π’ Business Applications-- **CRM Extensions**: Sales, marketing, customer service enhancements-- **Project Management**: Task tracking, resource management-- **Financial**: Invoicing, expense tracking, reporting--### π€ AI-Powered Applications-- **Customer Support**: Intelligent chatbots and support agents-- **Sales Automation**: Lead qualification and follow-up agents-- **Data Analysis**: AI agents for reporting and insights--### π¨ Industry-Specific Agents-- **Real Estate**: Property recommendation and client management agents-- **Healthcare**: Patient communication and scheduling assistants-- **Education**: Student support and course guidance agents--## π€ Contributing Applications--We welcome contributions! To add your application to this collection:--### 1. Application Requirements-- β Complete `twenty-app.json` manifest-- β Comprehensive README.md-- β Proper universal identifier (reverse domain notation)-- β Tested functionality-- β Clear documentation--### 2. Submission Process-1. Fork the repository-2. Create your application in `packages/twenty-apps/your-app-name/`-3. Test thoroughly using the development workflow-4. Submit a pull request with:- - Application code and manifest- - Screenshots/demos- - Installation and usage instructions--### 3. Review Criteria-- **Functionality**: Does it work as described?-- **Documentation**: Is it well-documented?-- **Code Quality**: Is the manifest well-structured?-- **Uniqueness**: Does it provide unique value?-- **Compatibility**: Works with current Twenty version?--## βοΈ CLI Configuration--The Twenty CLI supports both global and project-level configuration:--```bash-# Set global configuration (applies to all projects)-twenty config set apiUrl "https://your-twenty-instance.com"-twenty config set workspaceId "your-default-workspace-id"--# Set project-level configuration (applies to current directory)-twenty config set workspaceId "project-specific-workspace-id" --project--# View current configuration-twenty config list-```--Configuration files:-- **Global**: `~/.twenty/config.json`-- **Project**: `.twenty.json` in your project directory--## π Application Discovery--### Browse Applications-```bash-# List all available applications in this package-ls packages/twenty-apps/--# View application details-cat packages/twenty-apps/crm-extension/twenty-app.json--# List installed applications in your workspace (from monorepo root)-npx nx run twenty-cli:start -- app list --workspace-id "your-workspace-id"-```--### Search by Category-Applications are organized by functionality and industry. Check individual README files for detailed feature lists.--## π¨ Troubleshooting--### Common Issues--**"Authentication failed"**-- Run `npx nx run twenty-cli:start -- auth login` to authenticate-- Check your API key is valid and not expired-- Verify you have access to the workspace--**"Application not found"**-- Verify the path to your application directory-- Ensure `twenty-app.json` exists and is valid JSON-- Check the file is in the correct location--**"Invalid workspace ID"**-- Check your workspace ID is correct-- Use `npx nx run twenty-cli:start -- config get workspaceId` to see your configured workspace-- Ensure you have access to the workspace--**"Manifest validation failed"**-- Validate your JSON syntax using a JSON validator-- Check all required fields are present (universalIdentifier, label, version)-- Ensure universal identifier follows reverse domain notation (com.company.app)--### Getting Help--1. Check the application's README.md for specific instructions-2. Review the Twenty CLI documentation: `npx nx run twenty-cli:start -- --help`-3. Check Twenty's main documentation-4. Open an issue on GitHub with detailed error messages--## π License--All applications in this package are licensed under AGPL-3.0 unless otherwise specified in individual application directories.--## π Featured Applications--### π Most Popular-1. **CRM Extension Demo** - Comprehensive sales management-2. *More applications coming soon!*--### π Recently Added-1. **CRM Extension Demo** - Initial demo application-------## π Getting Started--**Ready to extend Twenty CRM with AI agents?**--### For Local Development (Current)-1. **Clone the repo**: `git clone https://github.com/twentyhq/twenty.git && cd twenty`-2. **Authenticate**: `npx nx run twenty-cli:start -- auth login`-3. **Explore the demo**: Check out the CRM Extension demo to see what's possible-4. **Create your own**: `npx nx run twenty-cli:start -- app init my-app`--### For Published Version (Coming Soon)-1. **Install the CLI**: `npm install -g twenty-cli`-2. **Authenticate**: `twenty auth login`-3. **Explore the demo**: Check out the CRM Extension demo-4. **Create your own**: `twenty app init my-app`--Start with the CRM Extension demo to see AI agents in action, then create your own applications to solve your unique business needs!diff --git a/packages/twenty-apps/__tests__/apps.test.ts b/packages/twenty-apps/__tests__/apps.test.tsdeleted file mode 100644index 09f0f04f0c0..00000000000--- a/packages/twenty-apps/__tests__/apps.test.ts+++ /dev/null@@ -1,60 +0,0 @@-import { promises as fs } from 'fs';-import * as path from 'path';--describe('Twenty Apps Package', () => {- describe('Package Structure', () => {- it('should have a hello-world app with manifest', async () => {- const manifestPath = path.join(__dirname, '../hello-world/twenty-app.json');- const manifestExists = await fs.access(manifestPath).then(() => true).catch(() => false);-- expect(manifestExists).toBe(true);- });-- it('should have a template app with manifest', async () => {- const templatePath = path.join(__dirname, '../_template/twenty-app.json');- const templateExists = await fs.access(templatePath).then(() => true).catch(() => false);-- expect(templateExists).toBe(true);- });- });-- describe('App Manifests', () => {- it('should have valid JSON in hello-world manifest', async () => {- const manifestPath = path.join(__dirname, '../hello-world/twenty-app.json');- const manifestContent = await fs.readFile(manifestPath, 'utf8');-- expect(() => JSON.parse(manifestContent)).not.toThrow();-- const manifest = JSON.parse(manifestContent);- expect(manifest).toHaveProperty('standardId');- expect(manifest).toHaveProperty('label');- expect(manifest).toHaveProperty('version');- });-- it('should have valid JSON in template manifest', async () => {- const templatePath = path.join(__dirname, '../_template/twenty-app.json');- const templateContent = await fs.readFile(templatePath, 'utf8');-- expect(() => JSON.parse(templateContent)).not.toThrow();-- const template = JSON.parse(templateContent);- expect(template).toHaveProperty('standardId');- expect(template).toHaveProperty('label');- expect(template).toHaveProperty('version');- });- });-- describe('Package Configuration', () => {- it('should have a valid package.json', async () => {- const packagePath = path.join(__dirname, '../package.json');- const packageContent = await fs.readFile(packagePath, 'utf8');-- expect(() => JSON.parse(packageContent)).not.toThrow();-- const packageJson = JSON.parse(packageContent);- expect(packageJson.name).toBe('twenty-apps');- expect(packageJson).toHaveProperty('version');- expect(packageJson).toHaveProperty('description');- });- });-});diff --git a/packages/twenty-apps/_template/README.md b/packages/twenty-apps/_template/README.mddeleted file mode 100644index e91420d4f24..00000000000--- a/packages/twenty-apps/_template/README.md+++ /dev/null@@ -1,175 +0,0 @@-# Your App Name--A brief description of what your application does and the problems it solves.--## π Features--- **Feature 1**: Description of what this feature does-- **Feature 2**: Description of what this feature does-- **Feature 3**: Description of what this feature does--## π¦ What Gets Installed--When you install this application, Twenty will automatically create:--### ποΈ Objects-- **Example Object**: Description of what this object represents--### π₯ Roles-- **App Administrator**: Full access to all app features-- **App User**: Standard user access with limited permissions--### β‘ Functions-- **Example Function**: Description of what this function does--### π€ AI Agents-- **App Assistant**: AI helper for app-related questions and tasks--### π Views-- **All Example Objects**: Default view showing all example objects--## π οΈ Installation--### Prerequisites-- Twenty CRM instance running-- Valid workspace ID-- Server built (`npx nx build twenty-server`)--### Install Command-```bash-npx nx app:install twenty-server \- --source "./packages/twenty-apps/your-app-name" \- --workspaceId "your-workspace-id" \- --sourceType "local" \- --verbose-```--### Development Mode-For active development with auto-sync:--```bash-npx nx app:dev twenty-server \- --appPath "./packages/twenty-apps/your-app-name" \- --workspaceId "your-workspace-id" \- --verbose-```--## π Usage--### Getting Started-1. After installation, navigate to the new objects in your Twenty workspace-2. Assign users to the appropriate roles (App Administrator or App User)-3. Start creating records using the new objects-4. Use the AI assistant for help and guidance--### Common Workflows--#### Workflow 1: [Describe a common use case]-1. Step 1 description-2. Step 2 description-3. Step 3 description--#### Workflow 2: [Describe another use case]-1. Step 1 description-2. Step 2 description-3. Step 3 description--### Tips and Best Practices-- **Tip 1**: Helpful advice for users-- **Tip 2**: Another useful tip-- **Tip 3**: Best practice recommendation--## π§ Configuration--### Role Permissions-- **App Administrator**: Can read and update all records-- **App User**: Limited to their own records (customize as needed)--### Field Customization-You can customize the following fields after installation:-- Field 1: How to customize it-- Field 2: How to customize it--### Function Configuration-The serverless functions can be configured for:-- Setting 1: Description-- Setting 2: Description--## π€ Integration--### With Existing Objects-This app integrates with Twenty's core objects:-- **Companies**: How it relates to companies-- **People**: How it relates to people-- **Opportunities**: How it relates to opportunities--### API Usage-Access your app's data via Twenty's GraphQL API:--```graphql-query GetExampleObjects {- exampleObjects {- id- name- status- createdDate- }-}-```--### Webhooks-Set up webhooks to react to changes:-- When example objects are created-- When status changes-- When records are updated--## π¨ Troubleshooting--### Common Issues--**Issue 1: [Common problem]**-- **Cause**: Why this happens-- **Solution**: How to fix it--**Issue 2: [Another problem]**-- **Cause**: Why this happens-- **Solution**: How to fix it--### Getting Help-1. Check the AI assistant for quick help-2. Review the Twenty documentation-3. Ask in the Twenty Discord community-4. Open an issue on GitHub--## π Updates--### Version History-- **v1.0.0**: Initial release with core features--### Updating-To update to a newer version:-```bash-npx nx app:install twenty-server \- --source "./packages/twenty-apps/your-app-name" \- --workspaceId "your-workspace-id" \- --sourceType "local"-```--## π License--This application is licensed under [LICENSE] - see the LICENSE file for details.--## π€ Contributing--Contributions are welcome! Please read the [contributing guidelines](../CONTRIBUTING.md) before submitting changes.--### Development Setup-1. Fork the repository-2. Create a feature branch-3. Make your changes-4. Test thoroughly-5. Submit a pull request-------**Need help?** The App Assistant AI agent is available in your Twenty workspace to help with questions and provide guidance on using this application effectively!diff --git a/packages/twenty-apps/_template/twenty-app.json b/packages/twenty-apps/_template/twenty-app.jsondeleted file mode 100644index 0db4823ba17..00000000000--- a/packages/twenty-apps/_template/twenty-app.json+++ /dev/null@@ -1,22 +0,0 @@-{- "standardId": "com.yourcompany.your-app-name",- "label": "Your App Name",- "description": "A brief description of what your application does",- "version": "1.0.0",- "icon": "β",-- "agents": [- {- "standardId": "com.yourcompany.your-app-name.assistant",- "name": "assistant",- "label": "App Assistant",- "description": "AI assistant for your application",- "icon": "π€",- "prompt": "You are a helpful assistant for [Your App Name]. Help users with:\n\n1. Understanding app features\n2. Navigating the interface\n3. Completing common tasks\n4. Troubleshooting issues\n5. Providing guidance and tips\n\nBe helpful, clear, and focused on the user's needs.",- "modelId": "gpt-4",- "responseFormat": {- "type": "text"- }- }- ]-}\ No newline at end of filediff --git a/packages/twenty-apps/jest.config.mjs b/packages/twenty-apps/jest.config.mjsdeleted file mode 100644index fa29440495b..00000000000--- a/packages/twenty-apps/jest.config.mjs+++ /dev/null@@ -1,40 +0,0 @@-const jestConfig = {- // For more information please have a look to official docs https://jestjs.io/docs/configuration/#prettierpath-string- // Prettier v3 should be supported in jest v30 https://github.com/jestjs/jest/releases/tag/v30.0.0-alpha.1- prettierPath: null,- // to enable logs, comment out the following line- silent: true,- errorOnDeprecated: true,- clearMocks: true,- displayName: 'twenty-apps',- rootDir: './',- testEnvironment: 'node',- transformIgnorePatterns: ['/node_modules/'],- testMatch: ['**/__tests__/**/*.test.ts'],- transform: {- '^.+\\.(t|j)s$': [- '@swc/jest',- {- jsc: {- parser: {- syntax: 'typescript',- tsx: false,- decorators: true,- },- transform: {- decoratorMetadata: true,- },- },- },- ],- },- moduleNameMapper: {},- moduleFileExtensions: ['js', 'json', 'ts'],- modulePathIgnorePatterns: ['<rootDir>/dist'],- collectCoverageFrom: [- '__tests__/**/*.ts',- ],- coverageDirectory: './coverage',-};--export default jestConfig;diff --git a/packages/twenty-apps/package.json b/packages/twenty-apps/package.jsondeleted file mode 100644index 91cde944e46..00000000000--- a/packages/twenty-apps/package.json+++ /dev/null@@ -1,32 +0,0 @@-{- "name": "twenty-apps",- "version": "0.1.0",- "description": "Collection of Twenty CRM applications and extensions",- "private": true,- "keywords": [- "twenty",- "crm",- "applications",- "extensions",- "marketplace"- ],- "repository": {- "type": "git",- "url": "https://github.com/twentyhq/twenty.git",- "directory": "packages/twenty-apps"- },- "license": "AGPL-3.0",- "scripts": {- "lint": "echo 'No linting needed for application manifests'",- "test": "jest",- "test:watch": "jest --watch"- },- "devDependencies": {- "@swc/core": "^1.9.3",- "@swc/jest": "^0.2.36",- "@types/jest": "^30.0.0",- "@types/node": "^24.3.1",- "jest": "^30.1.3",- "typescript": "^5.9.2"- }-}diff --git a/packages/twenty-apps/project.json b/packages/twenty-apps/project.jsondeleted file mode 100644index 1b741bffad7..00000000000--- a/packages/twenty-apps/project.json+++ /dev/null@@ -1,35 +0,0 @@-{- "name": "twenty-apps",- "$schema": "../../node_modules/nx/schemas/project-schema.json",- "projectType": "library",- "tags": ["scope:apps", "type:applications"],- "targets": {- "lint": {- "executor": "nx:run-commands",- "options": {- "command": "echo 'No linting needed for application manifests'"- }- },- "list": {- "executor": "nx:run-commands",- "options": {- "cwd": "packages/twenty-apps",- "command": "find . -name 'twenty-app.json' -exec dirname {} \\; | sed 's|^\\./||' | sort"- }- },- "info": {- "executor": "nx:run-commands",- "options": {- "cwd": "packages/twenty-apps",- "command": "echo 'Available Twenty Applications:' && find . -name 'twenty-app.json' -exec sh -c 'echo \"\\nπ¦ $(dirname \"$1\" | sed \"s|^\\./||\"): $(jq -r \".label\" \"$1\")\"' _ {} \\;"- }- },- "test": {- "executor": "nx:run-commands",- "options": {- "cwd": "packages/twenty-apps",- "command": "yarn test"- }- }- }-}diff --git a/packages/twenty-apps/tsconfig.json b/packages/twenty-apps/tsconfig.jsondeleted file mode 100644index 761aad08c0c..00000000000--- a/packages/twenty-apps/tsconfig.json+++ /dev/null@@ -1,30 +0,0 @@-{- "compilerOptions": {- "target": "ES2020",- "module": "commonjs",- "lib": ["ES2020"],- "outDir": "./dist",- "rootDir": "./",- "strict": true,- "esModuleInterop": true,- "skipLibCheck": true,- "forceConsistentCasingInFileNames": true,- "resolveJsonModule": true,- "declaration": true,- "declarationMap": true,- "sourceMap": true,- "moduleResolution": "node",- "allowSyntheticDefaultImports": true,- "experimentalDecorators": true,- "emitDecoratorMetadata": true,- "types": ["jest", "node"]- },- "include": [- "scripts/**/*",- "__tests__/**/*"- ],- "exclude": [- "node_modules",- "dist"- ]-}diff --git a/packages/twenty-cli/README.md b/packages/twenty-cli/README.mdindex 31b1ea1e4cc..94a4db540be 100644--- a/packages/twenty-cli/README.md+++ b/packages/twenty-cli/README.md@@ -24,9 +24,6 @@ cd my-app# Start development mode (watches for changes and syncs automatically)twenty app dev--# Deploy to Twenty-twenty app deploy```## Commands@@ -60,16 +57,6 @@ twenty app dev [options]twenty app deploy [options]-p, --path <path> Application directory path (default: current directory)-w, --workspace-id <id> Workspace ID--# Install application from source-twenty app install [options]- -s, --source <source> Application source (git URL, local path, or marketplace ID)- -t, --type <type> Source type: git, local, marketplace (default: local)- -w, --workspace-id <id> Workspace ID--# List installed applications-twenty app list [options]- -w, --workspace-id <id> Workspace ID```### Configuration@@ -113,64 +100,24 @@ Project configuration takes precedence over global configuration.## Application Structure-A Twenty application requires a `twenty-app.json` manifest file:--```json-{- "universalIdentifier": "com.example.myapp",- "label": "My App",- "description": "A Twenty application",- "version": "1.0.0",- "agents": [- {- "universalIdentifier": "com.example.myapp.agent1",- "name": "my-agent",- "label": "My Agent",- "description": "An AI agent",- "prompt": "You are a helpful assistant...",- "modelId": "gpt-4",- "responseFormat": {- "type": "text"- }- }- ]-}+Each application in this package follows the standard Twenty application structure:++```+app-name/+βββ twenty-app.json # Application manifest+βββ README.md # Application documentation+βββ DEVELOPMENT.md # Development guide (optional)+βββ functions/ # Serverless functions (optional)+β βββ function1.ts+β βββ function2.ts+βββ assets/ # Static assets (optional)+ βββ icons/+ βββ screenshots/```## Development Workflow1. **Initialize**: Create a new application with `twenty app init`2. **Develop**: Use `twenty app dev` to watch for changes and auto-sync-3. **Deploy**: Use `twenty app deploy` to deploy to productionThe development mode watches your application directory and automatically syncs changes to your Twenty workspace, providing a smooth development experience similar to Vercel or Heroku CLI.--## Examples--```bash-# Create and develop a new app-twenty app init customer-support-agent-cd customer-support-agent-twenty app dev --workspace-id ws_123--# Deploy an existing app-cd my-existing-app-twenty app deploy --workspace-id ws_123--# Install an app from git-twenty app install --source https://github.com/user/twenty-app.git --type git--# Configure for a specific workspace-twenty config set workspaceId ws_123 --project-```--## API Integration--The CLI communicates with Twenty via HTTP APIs:--- Authentication via API keys-- File watching and debounced syncing-- RESTful API calls for all operations-- Automatic retry and error handling--This approach ensures the CLI works independently of the Twenty server codebase and can be distributed as a standalone tool.