diff --git a/.github/workflows/cortex-build.yml b/.github/workflows/cortex-build.yml index 182e445d9..307a53dfe 100644 --- a/.github/workflows/cortex-build.yml +++ b/.github/workflows/cortex-build.yml @@ -2,8 +2,8 @@ name: CI Cortex Release on: push: - tags: ["v[0-9]+.[0-9]+.[0-9]+", "v[0-9]+.[0-9]+.[0-9]+-*", "!v[0-9]+.[0-9]+.[0-9]+-cortex-js", "!v[0-9]+.[0-9]+.[0-9]+-[0-9]+-cortex-js"] - paths: ["cortex-cpp/**", "cortex-js/**"] + tags: ["v[0-9]+.[0-9]+.[0-9]+", "v[0-9]+.[0-9]+.[0-9]+-*", "!v[0-9]+.[0-9]+.[0-9]+-platform", "!v[0-9]+.[0-9]+.[0-9]+-[0-9]+-platform"] + paths: ["cortex-cpp/**", "platform/**"] workflow_dispatch: jobs: @@ -223,237 +223,8 @@ jobs: ## cortex-cpp node binding - build-cortex-single-binary: - runs-on: ${{ matrix.runs-on }} - needs: [create-draft-release, build-and-test] - timeout-minutes: 40 - strategy: - fail-fast: false - matrix: - include: - - os: "linux" - name: "amd64" - runs-on: "ubuntu-20-04" - - - os: "windows" - name: "amd64" - runs-on: "windows-2019" - - - os: "mac" - name: "amd64" - runs-on: "macos-13" - - - os: "mac" - name: "arm64" - runs-on: "macos-latest" - steps: - - name: Clone - id: checkout - uses: actions/checkout@v3 - with: - submodules: recursive - - - uses: actions/setup-dotnet@v3 - if: runner.os == 'Windows' - with: - dotnet-version: "8.0.x" - - - name: Install jq - uses: dcarbone/install-jq-action@v2.0.1 - - - uses: actions/setup-node@v3 - with: - node-version: "20.x" - registry-url: "https://registry.npmjs.org" - - - name: "Update version by tag" - working-directory: cortex-js - shell: bash - run: | - echo "Version: ${{ needs.create-draft-release.outputs.version }}" - # Update the version in package.json - jq --arg version "${{ needs.create-draft-release.outputs.version }}" '.version = $version' package.json > /tmp/package.json - mv /tmp/package.json package.json - - - name: Install choco on Windows - if: runner.os == 'Windows' - run: | - choco install make -y - - - uses: actions/setup-node@v3 - with: - node-version: "20.x" - registry-url: "https://registry.npmjs.org" - - - uses: actions/setup-python@v3 - with: - python-version: "3.10" - - - run: pip3 install --upgrade setuptools - if: runner.os == 'macOS' - - - run: yarn install && yarn build:binary - working-directory: ./cortex-js - - - name: Get Cer for code signing - if: runner.os == 'macOS' - run: base64 -d <<< "$NOTARIZE_P8_BASE64" > /tmp/notary-key.p8 - shell: bash - env: - NOTARIZE_P8_BASE64: ${{ secrets.NOTARIZE_P8_BASE64 }} - - - uses: apple-actions/import-codesign-certs@v2 - continue-on-error: true - if: runner.os == 'macOS' - with: - p12-file-base64: ${{ secrets.CODE_SIGN_P12_BASE64 }} - p12-password: ${{ secrets.CODE_SIGN_P12_PASSWORD }} - - - name: update app info - run: | - cd cortex-js - make update-app-info - - - name: copy bin file macos - if: runner.os == 'macOS' - run: | - cd cortex-js - mkdir -p installer - which cp - which mv - npm install -g cpx - npx cpx ./dist/cortexso ./ - mv cortexso cortex - - - name: Code Signing macOS - if: runner.os == 'macOS' - run: | - cd cortex-js - ./dist/cortexso --help - echo "--------" - ./cortex --help - make codesign-binary CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}" - - # install quill - curl -sSfL https://raw.githubusercontent.com/anchore/quill/main/install.sh | sh -s -- -b /usr/local/bin - - # Notarize the binary - quill notarize ./cortex - env: - QUILL_NOTARY_KEY_ID: ${{ secrets.NOTARY_KEY_ID }} - QUILL_NOTARY_ISSUER: ${{ secrets.NOTARY_ISSUER }} - QUILL_NOTARY_KEY: "/tmp/notary-key.p8" - - - name: Create MacOS PKG Installer - if: runner.os == 'macOS' - run: | - cd cortex-js - echo "--------" - npx cpx ./cortex ./installer - ./installer/cortex --help - pkgbuild --identifier ai.cortex.pkg --install-location ./usr/local/bin/ --root ./installer cortex-installer.pkg - make codesign-installer CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}" - - # Notary the installer - xcrun notarytool submit cortex-installer.pkg --apple-id ${{ secrets.APPLE_ID }} --password ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} --team-id ${{ secrets.APPLE_TEAM_ID }} --wait - - - name: Create Linux DEB Installer - if: runner.os == 'Linux' - run: | - cd cortex-js - mkdir -p cortexso/DEBIAN - mkdir -p cortexso/usr/local/bin - sed "s/Version:/Version: ${{ needs.create-draft-release.outputs.version }}/g" control.template > cortexso/DEBIAN/control - cp cortex cortexso/usr/local/bin/cortex - dpkg-deb --build cortexso - - - run: | - cd cortex-js - set PATH=%PATH%;%USERPROFILE%\.dotnet\tools - make codesign-binary CODE_SIGN=true CORTEX_VERSION="0.${{ needs.create-draft-release.outputs.version }}" AZURE_KEY_VAULT_URI="${{ secrets.AZURE_KEY_VAULT_URI }}" AZURE_CLIENT_ID="${{ secrets.AZURE_CLIENT_ID }}" AZURE_TENANT_ID="${{ secrets.AZURE_TENANT_ID }}" AZURE_CLIENT_SECRET="${{ secrets.AZURE_CLIENT_SECRET }}" AZURE_CERT_NAME="${{ secrets.AZURE_CERT_NAME }}" - name: Code Signing Windows - shell: cmd - if: runner.os == 'Windows' - - - name: Update version in installer.iss using sed - if: runner.os == 'Windows' - shell: bash - run: | - cd cortex-js - sed -i "s/AppVersion=1.0/AppVersion=${{ needs.create-draft-release.outputs.version }}/g" installer.iss - cat installer.iss - - - name: Compile .ISS to .EXE Installer - uses: Minionguyjpro/Inno-Setup-Action@v1.2.2 - if: runner.os == 'Windows' - with: - path: cortex-js/installer.iss - options: /O+ - - - run: | - cd cortex-js - set PATH=%PATH%;%USERPROFILE%\.dotnet\tools - make codesign-installer CODE_SIGN=true CORTEX_VERSION="0.${{ needs.create-draft-release.outputs.version }}" AZURE_KEY_VAULT_URI="${{ secrets.AZURE_KEY_VAULT_URI }}" AZURE_CLIENT_ID="${{ secrets.AZURE_CLIENT_ID }}" AZURE_TENANT_ID="${{ secrets.AZURE_TENANT_ID }}" AZURE_CLIENT_SECRET="${{ secrets.AZURE_CLIENT_SECRET }}" AZURE_CERT_NAME="${{ secrets.AZURE_CERT_NAME }}" - name: Code Signing Windows - shell: cmd - if: runner.os == 'Windows' - - - name: Post-Bundle - run: | - cd cortex-js - make postbundle - - - name: Upload Cortex Installer - uses: actions/upload-release-asset@v1.0.1 - if: runner.os != 'Linux' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.create-draft-release.outputs.upload_url }} - asset_path: ./cortex-js/cortex-installer.tar.gz - asset_name: cortex-installer-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.tar.gz - asset_content_type: application/gzip - - - name: Upload Cortex Installer - uses: actions/upload-release-asset@v1.0.1 - if: runner.os == 'Windows' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.create-draft-release.outputs.upload_url }} - asset_path: ./cortex-js/setup.exe - asset_name: cortex-installer-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.exe - asset_content_type: application/octet-stream - - - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.create-draft-release.outputs.upload_url }} - asset_path: ./cortex-js/cortex.tar.gz - asset_name: cortex-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.tar.gz - asset_content_type: application/gzip - - - uses: actions/upload-release-asset@v1.0.1 - if: runner.os == 'Linux' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.create-draft-release.outputs.upload_url }} - asset_path: ./cortex-js/cortexso.deb - asset_name: cortex-installer-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.deb - asset_content_type: application/gzip - - # Upload artifact for package manager - - name: Upload Artifact - if: runner.os == 'Linux' - uses: actions/upload-artifact@v2 - with: - name: cortex-linux - path: ./cortex-js/cortex - update_release_draft: - needs: [build-and-test, build-cortex-single-binary] + needs: [build-and-test] permissions: # write permission is required to create a github release contents: write @@ -476,59 +247,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # Add jobs with approval - public_package_manager: - needs: [create-draft-release, update_release_draft] - runs-on: ubuntu-latest - environment: package-manager - permissions: - contents: read - steps: - - name: checkout - uses: actions/checkout@v4 - - - name: Download artifact - uses: actions/download-artifact@v2 - with: - name: cortex-linux - path: ./cortex-linux - - - name: install dependencies - run: | - ls -al ./cortex-linux - sudo apt-get install dput devscripts build-essential debhelper-compat pbuilder debootstrap devscripts -y - - - name: import gpg key with subkey - uses: crazy-max/ghaction-import-gpg@v4 - with: - gpg_private_key: ${{ secrets.HOMEBREW_GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.HOMEBREW_GPG_PASSPHRASE }} - fingerprint: ${{ secrets.HOMEBREW_GPG_FINGERPRINT }} - - - run: | - mkdir -p package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian - cp package-managers-template/launchpad/cortexso/debian/* package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/ - cp ./cortex-linux/cortex package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/ - - - name: Get release notes - id: release_notes - run: | - RELEASE_NOTES="cortex update to version ${{ needs.create-draft-release.outputs.version }}" - echo "RELEASE_NOTES=${RELEASE_NOTES}" >> $GITHUB_ENV - - - name: Update change log - run: | - sed -i "s/VERSION/${{ needs.create-draft-release.outputs.version }}/g" package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/changelog - sed -i "s/CHANGELOG_HERE/${{ env.RELEASE_NOTES }}/g" package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/changelog - timestamp=$(date -u +"%a, %d %b %Y %H:%M:%S +0000") - sed -i "s/TIME_HERE/${timestamp}/g" package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/changelog - - - name: Build package - run: | - cd package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }} - echo "y" | debuild -S -sa -k${{ secrets.HOMEBREW_GPG_FINGERPRINT }} - sudo pbuilder create --distribution jammy --debootstrapopts --variant=buildd - sudo pbuilder build ../cortexso_${{ needs.create-draft-release.outputs.version }}.dsc - dput ppa:homebrew-computer/main ../cortexso_${{ needs.create-draft-release.outputs.version }}_source.changes - + \ No newline at end of file diff --git a/.github/workflows/cortex-js-openai-coverage.yml b/.github/workflows/platform-openai-coverage.yml similarity index 96% rename from .github/workflows/cortex-js-openai-coverage.yml rename to .github/workflows/platform-openai-coverage.yml index 16f7e24fe..010113f53 100644 --- a/.github/workflows/cortex-js-openai-coverage.yml +++ b/.github/workflows/platform-openai-coverage.yml @@ -36,7 +36,7 @@ jobs: node-version: 20 - run: npm install -g yarn && yarn install && yarn build - working-directory: ./cortex-js + working-directory: ./platform - name: install python venv run: | @@ -46,7 +46,7 @@ jobs: - name: Run test run: | - node cortex-js/dist/src/command.js --address 127.0.0.1 --port 4010 > cortex.log + node platform/dist/src/command.js --address 127.0.0.1 --port 4010 > cortex.log sleep 3 wget --no-verbose -O api.json http://127.0.0.1:4010/api-json cat api.json @@ -108,7 +108,7 @@ jobs: - name: Clean up if: always() run: | - node cortex-js/dist/src/command.js stop + node platform/dist/src/command.js stop rm -rf /tmp/jan rm -rf openai-python rm -rf report.html diff --git a/.github/workflows/cortex-js-quality-gate.yml b/.github/workflows/platform-quality-gate.yml similarity index 71% rename from .github/workflows/cortex-js-quality-gate.yml rename to .github/workflows/platform-quality-gate.yml index bac43fe3f..223ad862c 100644 --- a/.github/workflows/cortex-js-quality-gate.yml +++ b/.github/workflows/platform-quality-gate.yml @@ -1,9 +1,9 @@ -name: CI test for cortex-js +name: CI test for platform on: pull_request: paths: - - "cortex-js/**" - - .github/workflows/cortex-js-quality-gate.yml + - "platform/**" + - .github/workflows/platform-quality-gate.yml workflow_dispatch: jobs: build-and-publish-plugins: @@ -19,7 +19,7 @@ jobs: node-version: "20.x" registry-url: "https://registry.npmjs.org" - run: yarn install && yarn build - working-directory: ./cortex-js + working-directory: ./platform - run: yarn test name: run tests - working-directory: ./cortex-js + working-directory: ./platform diff --git a/.github/workflows/cortex-js.yml b/.github/workflows/platform.yml similarity index 78% rename from .github/workflows/cortex-js.yml rename to .github/workflows/platform.yml index 99f07bb64..b81351a50 100644 --- a/.github/workflows/cortex-js.yml +++ b/.github/workflows/platform.yml @@ -1,10 +1,10 @@ name: Publish cortex js Package to npmjs on: push: - tags: ["v[0-9]+.[0-9]+.[0-9]+-cortex-js", "v[0-9]+.[0-9]+.[0-9]+-[0-9]+-cortex-js"] + tags: ["v[0-9]+.[0-9]+.[0-9]+-platform", "v[0-9]+.[0-9]+.[0-9]+-[0-9]+-platform"] paths: [ - "cortex-js/**", + "platform/**", ] jobs: build-and-publish-plugins: @@ -19,11 +19,11 @@ jobs: - name: "Update version by tag" run: | - cd cortex-js + cd platform # Remove the v prefix tag_version=${GITHUB_REF#refs/tags/v} - # Remove the -cortex-js suffix - new_version=${tag_version%-cortex-js} + # Remove the -platform suffix + new_version=${tag_version%-platform} # Replace the old version with the new version in package.json jq --arg version "$new_version" '.version = $version' ./package.json > /tmp/package.json && mv /tmp/package.json ./package.json @@ -37,8 +37,8 @@ jobs: node-version: "20.x" registry-url: "https://registry.npmjs.org" - run: yarn install && yarn build - working-directory: ./cortex-js + working-directory: ./platform - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - working-directory: ./cortex-js + working-directory: ./platform diff --git a/.gitignore b/.gitignore index 6b785abe9..badeaf88b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ -# cortex-js +# platform .DS_Store -cortex-js/cortex.db +platform/cortex.db dist *.lock node_modules @@ -14,9 +14,9 @@ prism.log api.json openai-python/* build -cortex-js/cortex.exe -cortex-js/package-lock.json +platform/cortex.exe +platform/package-lock.json .vscode -cortex-js/command -cortex-js/src/infrastructure/commanders/test/test_data -**/vcpkg_installed +platform/command +platform/src/infrastructure/commanders/test/test_data +**/vcpkg_installed \ No newline at end of file diff --git a/README.md b/README.md index 660664159..828d87a3f 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ and the Swagger UI at `http://localhost:1337/api`. To install Cortex from the source, follow the steps below: 1. Clone the Cortex repository [here](https://github.com/janhq/cortex/tree/dev). -2. Navigate to the `cortex-js` folder. +2. Navigate to the `platform` folder. 3. Open the terminal and run the following command to build the Cortex project: ```bash @@ -89,7 +89,7 @@ npx nest build 4. Make the `command.js` executable: ```bash -chmod +x '[path-to]/cortex/cortex-js/dist/src/command.js' +chmod +x '[path-to]/cortex/platform/dist/src/command.js' ``` 5. Link the package globally: diff --git a/cortex-js/.env.development b/platform/.env.development similarity index 100% rename from cortex-js/.env.development rename to platform/.env.development diff --git a/cortex-js/.env.example b/platform/.env.example similarity index 100% rename from cortex-js/.env.example rename to platform/.env.example diff --git a/cortex-js/.eslintrc.cjs b/platform/.eslintrc.cjs similarity index 100% rename from cortex-js/.eslintrc.cjs rename to platform/.eslintrc.cjs diff --git a/cortex-js/.gitignore b/platform/.gitignore similarity index 100% rename from cortex-js/.gitignore rename to platform/.gitignore diff --git a/cortex-js/.prettierrc b/platform/.prettierrc similarity index 100% rename from cortex-js/.prettierrc rename to platform/.prettierrc diff --git a/cortex-js/CONTRIBUTING.md b/platform/CONTRIBUTING.md similarity index 100% rename from cortex-js/CONTRIBUTING.md rename to platform/CONTRIBUTING.md diff --git a/cortex-js/Makefile b/platform/Makefile similarity index 100% rename from cortex-js/Makefile rename to platform/Makefile diff --git a/cortex-js/README.md b/platform/README.md similarity index 100% rename from cortex-js/README.md rename to platform/README.md diff --git a/cortex-js/control.template b/platform/control.template similarity index 100% rename from cortex-js/control.template rename to platform/control.template diff --git a/cortex-js/cortex.ico b/platform/cortex.ico similarity index 100% rename from cortex-js/cortex.ico rename to platform/cortex.ico diff --git a/cortex-js/entitlements.plist b/platform/entitlements.plist similarity index 100% rename from cortex-js/entitlements.plist rename to platform/entitlements.plist diff --git a/cortex-js/installer.iss b/platform/installer.iss similarity index 100% rename from cortex-js/installer.iss rename to platform/installer.iss diff --git a/cortex-js/nest-cli.json b/platform/nest-cli.json similarity index 100% rename from cortex-js/nest-cli.json rename to platform/nest-cli.json diff --git a/cortex-js/package.json b/platform/package.json similarity index 100% rename from cortex-js/package.json rename to platform/package.json diff --git a/cortex-js/patches/sqlite3+5.1.7.patch b/platform/patches/sqlite3+5.1.7.patch similarity index 100% rename from cortex-js/patches/sqlite3+5.1.7.patch rename to platform/patches/sqlite3+5.1.7.patch diff --git a/cortex-js/presets/alpaca.yml b/platform/presets/alpaca.yml similarity index 100% rename from cortex-js/presets/alpaca.yml rename to platform/presets/alpaca.yml diff --git a/cortex-js/presets/chatml.yml b/platform/presets/chatml.yml similarity index 100% rename from cortex-js/presets/chatml.yml rename to platform/presets/chatml.yml diff --git a/cortex-js/presets/llama3.yml b/platform/presets/llama3.yml similarity index 100% rename from cortex-js/presets/llama3.yml rename to platform/presets/llama3.yml diff --git a/cortex-js/presets/vicuna.yml b/platform/presets/vicuna.yml similarity index 100% rename from cortex-js/presets/vicuna.yml rename to platform/presets/vicuna.yml diff --git a/cortex-js/src/app.module.ts b/platform/src/app.module.ts similarity index 100% rename from cortex-js/src/app.module.ts rename to platform/src/app.module.ts diff --git a/cortex-js/src/app.ts b/platform/src/app.ts similarity index 100% rename from cortex-js/src/app.ts rename to platform/src/app.ts diff --git a/cortex-js/src/command.module.ts b/platform/src/command.module.ts similarity index 100% rename from cortex-js/src/command.module.ts rename to platform/src/command.module.ts diff --git a/cortex-js/src/command.ts b/platform/src/command.ts similarity index 100% rename from cortex-js/src/command.ts rename to platform/src/command.ts diff --git a/cortex-js/src/domain/abstracts/engine.abstract.ts b/platform/src/domain/abstracts/engine.abstract.ts similarity index 95% rename from cortex-js/src/domain/abstracts/engine.abstract.ts rename to platform/src/domain/abstracts/engine.abstract.ts index fbd457e0d..39a546018 100644 --- a/cortex-js/src/domain/abstracts/engine.abstract.ts +++ b/platform/src/domain/abstracts/engine.abstract.ts @@ -1,6 +1,6 @@ /* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars */ import stream from 'stream'; -import { Model, ModelSettingParams } from '../../domain/models/model.interface'; +import { Model, ModelSettingParams } from '../models/model.interface'; import { Extension } from './extension.abstract'; export enum EngineStatus { diff --git a/cortex-js/src/domain/abstracts/extension.abstract.ts b/platform/src/domain/abstracts/extension.abstract.ts similarity index 100% rename from cortex-js/src/domain/abstracts/extension.abstract.ts rename to platform/src/domain/abstracts/extension.abstract.ts diff --git a/cortex-js/src/domain/abstracts/oai.abstract.ts b/platform/src/domain/abstracts/oai.abstract.ts similarity index 100% rename from cortex-js/src/domain/abstracts/oai.abstract.ts rename to platform/src/domain/abstracts/oai.abstract.ts diff --git a/cortex-js/src/domain/config/config.interface.ts b/platform/src/domain/config/config.interface.ts similarity index 100% rename from cortex-js/src/domain/config/config.interface.ts rename to platform/src/domain/config/config.interface.ts diff --git a/cortex-js/src/domain/models/assistant.interface.ts b/platform/src/domain/models/assistant.interface.ts similarity index 100% rename from cortex-js/src/domain/models/assistant.interface.ts rename to platform/src/domain/models/assistant.interface.ts diff --git a/cortex-js/src/domain/models/download.interface.ts b/platform/src/domain/models/download.interface.ts similarity index 100% rename from cortex-js/src/domain/models/download.interface.ts rename to platform/src/domain/models/download.interface.ts diff --git a/cortex-js/src/domain/models/huggingface.interface.ts b/platform/src/domain/models/huggingface.interface.ts similarity index 100% rename from cortex-js/src/domain/models/huggingface.interface.ts rename to platform/src/domain/models/huggingface.interface.ts diff --git a/cortex-js/src/domain/models/inference-setting.interface.ts b/platform/src/domain/models/inference-setting.interface.ts similarity index 100% rename from cortex-js/src/domain/models/inference-setting.interface.ts rename to platform/src/domain/models/inference-setting.interface.ts diff --git a/cortex-js/src/domain/models/message.interface.ts b/platform/src/domain/models/message.interface.ts similarity index 100% rename from cortex-js/src/domain/models/message.interface.ts rename to platform/src/domain/models/message.interface.ts diff --git a/cortex-js/src/domain/models/model.event.ts b/platform/src/domain/models/model.event.ts similarity index 100% rename from cortex-js/src/domain/models/model.event.ts rename to platform/src/domain/models/model.event.ts diff --git a/cortex-js/src/domain/models/model.interface.ts b/platform/src/domain/models/model.interface.ts similarity index 100% rename from cortex-js/src/domain/models/model.interface.ts rename to platform/src/domain/models/model.interface.ts diff --git a/cortex-js/src/domain/models/prompt-template.interface.ts b/platform/src/domain/models/prompt-template.interface.ts similarity index 100% rename from cortex-js/src/domain/models/prompt-template.interface.ts rename to platform/src/domain/models/prompt-template.interface.ts diff --git a/cortex-js/src/domain/models/resource.interface.ts b/platform/src/domain/models/resource.interface.ts similarity index 100% rename from cortex-js/src/domain/models/resource.interface.ts rename to platform/src/domain/models/resource.interface.ts diff --git a/cortex-js/src/domain/models/thread.interface.ts b/platform/src/domain/models/thread.interface.ts similarity index 100% rename from cortex-js/src/domain/models/thread.interface.ts rename to platform/src/domain/models/thread.interface.ts diff --git a/cortex-js/src/domain/repositories/extension.interface.ts b/platform/src/domain/repositories/extension.interface.ts similarity index 100% rename from cortex-js/src/domain/repositories/extension.interface.ts rename to platform/src/domain/repositories/extension.interface.ts diff --git a/cortex-js/src/domain/repositories/model.interface.ts b/platform/src/domain/repositories/model.interface.ts similarity index 100% rename from cortex-js/src/domain/repositories/model.interface.ts rename to platform/src/domain/repositories/model.interface.ts diff --git a/cortex-js/src/domain/repositories/repository.interface.ts b/platform/src/domain/repositories/repository.interface.ts similarity index 100% rename from cortex-js/src/domain/repositories/repository.interface.ts rename to platform/src/domain/repositories/repository.interface.ts diff --git a/cortex-js/src/domain/repositories/telemetry.interface.ts b/platform/src/domain/repositories/telemetry.interface.ts similarity index 100% rename from cortex-js/src/domain/repositories/telemetry.interface.ts rename to platform/src/domain/repositories/telemetry.interface.ts diff --git a/cortex-js/src/domain/telemetry/telemetry.interface.ts b/platform/src/domain/telemetry/telemetry.interface.ts similarity index 100% rename from cortex-js/src/domain/telemetry/telemetry.interface.ts rename to platform/src/domain/telemetry/telemetry.interface.ts diff --git a/cortex-js/src/extensions/anthropic.engine.ts b/platform/src/extensions/anthropic.engine.ts similarity index 100% rename from cortex-js/src/extensions/anthropic.engine.ts rename to platform/src/extensions/anthropic.engine.ts diff --git a/cortex-js/src/extensions/cohere.engine.ts b/platform/src/extensions/cohere.engine.ts similarity index 100% rename from cortex-js/src/extensions/cohere.engine.ts rename to platform/src/extensions/cohere.engine.ts diff --git a/cortex-js/src/extensions/extensions.module.ts b/platform/src/extensions/extensions.module.ts similarity index 100% rename from cortex-js/src/extensions/extensions.module.ts rename to platform/src/extensions/extensions.module.ts diff --git a/cortex-js/src/extensions/groq.engine.ts b/platform/src/extensions/groq.engine.ts similarity index 100% rename from cortex-js/src/extensions/groq.engine.ts rename to platform/src/extensions/groq.engine.ts diff --git a/cortex-js/src/extensions/martian.engine.ts b/platform/src/extensions/martian.engine.ts similarity index 100% rename from cortex-js/src/extensions/martian.engine.ts rename to platform/src/extensions/martian.engine.ts diff --git a/cortex-js/src/extensions/mistral.engine.ts b/platform/src/extensions/mistral.engine.ts similarity index 100% rename from cortex-js/src/extensions/mistral.engine.ts rename to platform/src/extensions/mistral.engine.ts diff --git a/cortex-js/src/extensions/nvidia.engine.ts b/platform/src/extensions/nvidia.engine.ts similarity index 100% rename from cortex-js/src/extensions/nvidia.engine.ts rename to platform/src/extensions/nvidia.engine.ts diff --git a/cortex-js/src/extensions/openai.engine.ts b/platform/src/extensions/openai.engine.ts similarity index 100% rename from cortex-js/src/extensions/openai.engine.ts rename to platform/src/extensions/openai.engine.ts diff --git a/cortex-js/src/extensions/openrouter.engine.ts b/platform/src/extensions/openrouter.engine.ts similarity index 100% rename from cortex-js/src/extensions/openrouter.engine.ts rename to platform/src/extensions/openrouter.engine.ts diff --git a/cortex-js/src/index.ts b/platform/src/index.ts similarity index 100% rename from cortex-js/src/index.ts rename to platform/src/index.ts diff --git a/cortex-js/src/infrastructure/commanders/base.command.ts b/platform/src/infrastructure/commanders/base.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/base.command.ts rename to platform/src/infrastructure/commanders/base.command.ts diff --git a/cortex-js/src/infrastructure/commanders/benchmark.command.ts b/platform/src/infrastructure/commanders/benchmark.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/benchmark.command.ts rename to platform/src/infrastructure/commanders/benchmark.command.ts diff --git a/cortex-js/src/infrastructure/commanders/chat.command.ts b/platform/src/infrastructure/commanders/chat.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/chat.command.ts rename to platform/src/infrastructure/commanders/chat.command.ts diff --git a/cortex-js/src/infrastructure/commanders/cortex-command.commander.ts b/platform/src/infrastructure/commanders/cortex-command.commander.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/cortex-command.commander.ts rename to platform/src/infrastructure/commanders/cortex-command.commander.ts diff --git a/cortex-js/src/infrastructure/commanders/decorators/CommandContext.ts b/platform/src/infrastructure/commanders/decorators/CommandContext.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/decorators/CommandContext.ts rename to platform/src/infrastructure/commanders/decorators/CommandContext.ts diff --git a/cortex-js/src/infrastructure/commanders/embeddings.command.ts b/platform/src/infrastructure/commanders/embeddings.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/embeddings.command.ts rename to platform/src/infrastructure/commanders/embeddings.command.ts diff --git a/cortex-js/src/infrastructure/commanders/engines.command.ts b/platform/src/infrastructure/commanders/engines.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/engines.command.ts rename to platform/src/infrastructure/commanders/engines.command.ts diff --git a/cortex-js/src/infrastructure/commanders/engines/engines-get.command.ts b/platform/src/infrastructure/commanders/engines/engines-get.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/engines/engines-get.command.ts rename to platform/src/infrastructure/commanders/engines/engines-get.command.ts diff --git a/cortex-js/src/infrastructure/commanders/engines/engines-init.command.ts b/platform/src/infrastructure/commanders/engines/engines-init.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/engines/engines-init.command.ts rename to platform/src/infrastructure/commanders/engines/engines-init.command.ts diff --git a/cortex-js/src/infrastructure/commanders/engines/engines-list.command.ts b/platform/src/infrastructure/commanders/engines/engines-list.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/engines/engines-list.command.ts rename to platform/src/infrastructure/commanders/engines/engines-list.command.ts diff --git a/cortex-js/src/infrastructure/commanders/engines/engines-set.command.ts b/platform/src/infrastructure/commanders/engines/engines-set.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/engines/engines-set.command.ts rename to platform/src/infrastructure/commanders/engines/engines-set.command.ts diff --git a/cortex-js/src/infrastructure/commanders/models.command.ts b/platform/src/infrastructure/commanders/models.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/models.command.ts rename to platform/src/infrastructure/commanders/models.command.ts diff --git a/cortex-js/src/infrastructure/commanders/models/model-get.command.ts b/platform/src/infrastructure/commanders/models/model-get.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/models/model-get.command.ts rename to platform/src/infrastructure/commanders/models/model-get.command.ts diff --git a/cortex-js/src/infrastructure/commanders/models/model-list.command.ts b/platform/src/infrastructure/commanders/models/model-list.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/models/model-list.command.ts rename to platform/src/infrastructure/commanders/models/model-list.command.ts diff --git a/cortex-js/src/infrastructure/commanders/models/model-pull.command.ts b/platform/src/infrastructure/commanders/models/model-pull.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/models/model-pull.command.ts rename to platform/src/infrastructure/commanders/models/model-pull.command.ts diff --git a/cortex-js/src/infrastructure/commanders/models/model-remove.command.ts b/platform/src/infrastructure/commanders/models/model-remove.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/models/model-remove.command.ts rename to platform/src/infrastructure/commanders/models/model-remove.command.ts diff --git a/cortex-js/src/infrastructure/commanders/models/model-start.command.ts b/platform/src/infrastructure/commanders/models/model-start.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/models/model-start.command.ts rename to platform/src/infrastructure/commanders/models/model-start.command.ts diff --git a/cortex-js/src/infrastructure/commanders/models/model-stop.command.ts b/platform/src/infrastructure/commanders/models/model-stop.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/models/model-stop.command.ts rename to platform/src/infrastructure/commanders/models/model-stop.command.ts diff --git a/cortex-js/src/infrastructure/commanders/models/model-update.command.ts b/platform/src/infrastructure/commanders/models/model-update.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/models/model-update.command.ts rename to platform/src/infrastructure/commanders/models/model-update.command.ts diff --git a/cortex-js/src/infrastructure/commanders/presets.command.ts b/platform/src/infrastructure/commanders/presets.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/presets.command.ts rename to platform/src/infrastructure/commanders/presets.command.ts diff --git a/cortex-js/src/infrastructure/commanders/ps.command.ts b/platform/src/infrastructure/commanders/ps.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/ps.command.ts rename to platform/src/infrastructure/commanders/ps.command.ts diff --git a/cortex-js/src/infrastructure/commanders/questions/init.questions.ts b/platform/src/infrastructure/commanders/questions/init.questions.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/questions/init.questions.ts rename to platform/src/infrastructure/commanders/questions/init.questions.ts diff --git a/cortex-js/src/infrastructure/commanders/run.command.ts b/platform/src/infrastructure/commanders/run.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/run.command.ts rename to platform/src/infrastructure/commanders/run.command.ts diff --git a/cortex-js/src/infrastructure/commanders/serve-stop.command.ts b/platform/src/infrastructure/commanders/serve-stop.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/serve-stop.command.ts rename to platform/src/infrastructure/commanders/serve-stop.command.ts diff --git a/cortex-js/src/infrastructure/commanders/services/chat-client.ts b/platform/src/infrastructure/commanders/services/chat-client.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/services/chat-client.ts rename to platform/src/infrastructure/commanders/services/chat-client.ts diff --git a/cortex-js/src/infrastructure/commanders/services/cortex.client.module.ts b/platform/src/infrastructure/commanders/services/cortex.client.module.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/services/cortex.client.module.ts rename to platform/src/infrastructure/commanders/services/cortex.client.module.ts diff --git a/cortex-js/src/infrastructure/commanders/services/cortex.client.ts b/platform/src/infrastructure/commanders/services/cortex.client.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/services/cortex.client.ts rename to platform/src/infrastructure/commanders/services/cortex.client.ts diff --git a/cortex-js/src/infrastructure/commanders/telemetry.command.ts b/platform/src/infrastructure/commanders/telemetry.command.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/telemetry.command.ts rename to platform/src/infrastructure/commanders/telemetry.command.ts diff --git a/cortex-js/src/infrastructure/commanders/test/helpers.command.spec.ts b/platform/src/infrastructure/commanders/test/helpers.command.spec.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/test/helpers.command.spec.ts rename to platform/src/infrastructure/commanders/test/helpers.command.spec.ts diff --git a/cortex-js/src/infrastructure/commanders/test/log.service.ts b/platform/src/infrastructure/commanders/test/log.service.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/test/log.service.ts rename to platform/src/infrastructure/commanders/test/log.service.ts diff --git a/cortex-js/src/infrastructure/commanders/test/models.command.spec.ts b/platform/src/infrastructure/commanders/test/models.command.spec.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/test/models.command.spec.ts rename to platform/src/infrastructure/commanders/test/models.command.spec.ts diff --git a/cortex-js/src/infrastructure/commanders/types/benchmark-config.interface.ts b/platform/src/infrastructure/commanders/types/benchmark-config.interface.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/types/benchmark-config.interface.ts rename to platform/src/infrastructure/commanders/types/benchmark-config.interface.ts diff --git a/cortex-js/src/infrastructure/commanders/types/engine.interface.ts b/platform/src/infrastructure/commanders/types/engine.interface.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/types/engine.interface.ts rename to platform/src/infrastructure/commanders/types/engine.interface.ts diff --git a/cortex-js/src/infrastructure/commanders/types/init-options.interface.ts b/platform/src/infrastructure/commanders/types/init-options.interface.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/types/init-options.interface.ts rename to platform/src/infrastructure/commanders/types/init-options.interface.ts diff --git a/cortex-js/src/infrastructure/commanders/types/model-stat.interface.ts b/platform/src/infrastructure/commanders/types/model-stat.interface.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/types/model-stat.interface.ts rename to platform/src/infrastructure/commanders/types/model-stat.interface.ts diff --git a/cortex-js/src/infrastructure/commanders/types/model-tokenizer.interface.ts b/platform/src/infrastructure/commanders/types/model-tokenizer.interface.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/types/model-tokenizer.interface.ts rename to platform/src/infrastructure/commanders/types/model-tokenizer.interface.ts diff --git a/cortex-js/src/infrastructure/commanders/types/telemetry-options.interface.ts b/platform/src/infrastructure/commanders/types/telemetry-options.interface.ts similarity index 100% rename from cortex-js/src/infrastructure/commanders/types/telemetry-options.interface.ts rename to platform/src/infrastructure/commanders/types/telemetry-options.interface.ts diff --git a/cortex-js/src/infrastructure/constants/benchmark.ts b/platform/src/infrastructure/constants/benchmark.ts similarity index 100% rename from cortex-js/src/infrastructure/constants/benchmark.ts rename to platform/src/infrastructure/constants/benchmark.ts diff --git a/cortex-js/src/infrastructure/constants/cortex.ts b/platform/src/infrastructure/constants/cortex.ts similarity index 100% rename from cortex-js/src/infrastructure/constants/cortex.ts rename to platform/src/infrastructure/constants/cortex.ts diff --git a/cortex-js/src/infrastructure/constants/huggingface.ts b/platform/src/infrastructure/constants/huggingface.ts similarity index 100% rename from cortex-js/src/infrastructure/constants/huggingface.ts rename to platform/src/infrastructure/constants/huggingface.ts diff --git a/cortex-js/src/infrastructure/constants/prompt-constants.ts b/platform/src/infrastructure/constants/prompt-constants.ts similarity index 100% rename from cortex-js/src/infrastructure/constants/prompt-constants.ts rename to platform/src/infrastructure/constants/prompt-constants.ts diff --git a/cortex-js/src/infrastructure/controllers/assistants.controller.spec.ts b/platform/src/infrastructure/controllers/assistants.controller.spec.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/assistants.controller.spec.ts rename to platform/src/infrastructure/controllers/assistants.controller.spec.ts diff --git a/cortex-js/src/infrastructure/controllers/assistants.controller.ts b/platform/src/infrastructure/controllers/assistants.controller.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/assistants.controller.ts rename to platform/src/infrastructure/controllers/assistants.controller.ts diff --git a/cortex-js/src/infrastructure/controllers/chat.controller.spec.ts b/platform/src/infrastructure/controllers/chat.controller.spec.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/chat.controller.spec.ts rename to platform/src/infrastructure/controllers/chat.controller.spec.ts diff --git a/cortex-js/src/infrastructure/controllers/chat.controller.ts b/platform/src/infrastructure/controllers/chat.controller.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/chat.controller.ts rename to platform/src/infrastructure/controllers/chat.controller.ts diff --git a/cortex-js/src/infrastructure/controllers/embeddings.controller.spec.ts b/platform/src/infrastructure/controllers/embeddings.controller.spec.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/embeddings.controller.spec.ts rename to platform/src/infrastructure/controllers/embeddings.controller.spec.ts diff --git a/cortex-js/src/infrastructure/controllers/embeddings.controller.ts b/platform/src/infrastructure/controllers/embeddings.controller.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/embeddings.controller.ts rename to platform/src/infrastructure/controllers/embeddings.controller.ts diff --git a/cortex-js/src/infrastructure/controllers/engines.controller.spec.ts b/platform/src/infrastructure/controllers/engines.controller.spec.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/engines.controller.spec.ts rename to platform/src/infrastructure/controllers/engines.controller.spec.ts diff --git a/cortex-js/src/infrastructure/controllers/engines.controller.ts b/platform/src/infrastructure/controllers/engines.controller.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/engines.controller.ts rename to platform/src/infrastructure/controllers/engines.controller.ts diff --git a/cortex-js/src/infrastructure/controllers/models.controller.spec.ts b/platform/src/infrastructure/controllers/models.controller.spec.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/models.controller.spec.ts rename to platform/src/infrastructure/controllers/models.controller.spec.ts diff --git a/cortex-js/src/infrastructure/controllers/models.controller.ts b/platform/src/infrastructure/controllers/models.controller.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/models.controller.ts rename to platform/src/infrastructure/controllers/models.controller.ts diff --git a/cortex-js/src/infrastructure/controllers/system.controller.ts b/platform/src/infrastructure/controllers/system.controller.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/system.controller.ts rename to platform/src/infrastructure/controllers/system.controller.ts diff --git a/cortex-js/src/infrastructure/controllers/threads.controller.spec.ts b/platform/src/infrastructure/controllers/threads.controller.spec.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/threads.controller.spec.ts rename to platform/src/infrastructure/controllers/threads.controller.spec.ts diff --git a/cortex-js/src/infrastructure/controllers/threads.controller.ts b/platform/src/infrastructure/controllers/threads.controller.ts similarity index 100% rename from cortex-js/src/infrastructure/controllers/threads.controller.ts rename to platform/src/infrastructure/controllers/threads.controller.ts diff --git a/cortex-js/src/infrastructure/database/database.module.ts b/platform/src/infrastructure/database/database.module.ts similarity index 100% rename from cortex-js/src/infrastructure/database/database.module.ts rename to platform/src/infrastructure/database/database.module.ts diff --git a/cortex-js/src/infrastructure/database/providers/assistant.providers.ts b/platform/src/infrastructure/database/providers/assistant.providers.ts similarity index 100% rename from cortex-js/src/infrastructure/database/providers/assistant.providers.ts rename to platform/src/infrastructure/database/providers/assistant.providers.ts diff --git a/cortex-js/src/infrastructure/database/providers/message.providers.ts b/platform/src/infrastructure/database/providers/message.providers.ts similarity index 100% rename from cortex-js/src/infrastructure/database/providers/message.providers.ts rename to platform/src/infrastructure/database/providers/message.providers.ts diff --git a/cortex-js/src/infrastructure/database/providers/thread.providers.ts b/platform/src/infrastructure/database/providers/thread.providers.ts similarity index 100% rename from cortex-js/src/infrastructure/database/providers/thread.providers.ts rename to platform/src/infrastructure/database/providers/thread.providers.ts diff --git a/cortex-js/src/infrastructure/database/sqlite-database.providers.ts b/platform/src/infrastructure/database/sqlite-database.providers.ts similarity index 100% rename from cortex-js/src/infrastructure/database/sqlite-database.providers.ts rename to platform/src/infrastructure/database/sqlite-database.providers.ts diff --git a/cortex-js/src/infrastructure/dtos/assistants/create-assistant.dto.ts b/platform/src/infrastructure/dtos/assistants/create-assistant.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/assistants/create-assistant.dto.ts rename to platform/src/infrastructure/dtos/assistants/create-assistant.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/assistants/delete-assistant.dto.ts b/platform/src/infrastructure/dtos/assistants/delete-assistant.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/assistants/delete-assistant.dto.ts rename to platform/src/infrastructure/dtos/assistants/delete-assistant.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/assistants/model-setting.dto.ts b/platform/src/infrastructure/dtos/assistants/model-setting.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/assistants/model-setting.dto.ts rename to platform/src/infrastructure/dtos/assistants/model-setting.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/chat/chat-completion-message.dto.ts b/platform/src/infrastructure/dtos/chat/chat-completion-message.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/chat/chat-completion-message.dto.ts rename to platform/src/infrastructure/dtos/chat/chat-completion-message.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/chat/chat-completion-response.dto.ts b/platform/src/infrastructure/dtos/chat/chat-completion-response.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/chat/chat-completion-response.dto.ts rename to platform/src/infrastructure/dtos/chat/chat-completion-response.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/chat/choice.dto.ts b/platform/src/infrastructure/dtos/chat/choice.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/chat/choice.dto.ts rename to platform/src/infrastructure/dtos/chat/choice.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/chat/create-chat-completion.dto.ts b/platform/src/infrastructure/dtos/chat/create-chat-completion.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/chat/create-chat-completion.dto.ts rename to platform/src/infrastructure/dtos/chat/create-chat-completion.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/chat/embeddings-response.dto.ts b/platform/src/infrastructure/dtos/chat/embeddings-response.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/chat/embeddings-response.dto.ts rename to platform/src/infrastructure/dtos/chat/embeddings-response.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/chat/message.dto.ts b/platform/src/infrastructure/dtos/chat/message.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/chat/message.dto.ts rename to platform/src/infrastructure/dtos/chat/message.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/chat/usage.dto.ts b/platform/src/infrastructure/dtos/chat/usage.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/chat/usage.dto.ts rename to platform/src/infrastructure/dtos/chat/usage.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/common/common-response.dto.ts b/platform/src/infrastructure/dtos/common/common-response.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/common/common-response.dto.ts rename to platform/src/infrastructure/dtos/common/common-response.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/configs/config-update.dto.ts b/platform/src/infrastructure/dtos/configs/config-update.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/configs/config-update.dto.ts rename to platform/src/infrastructure/dtos/configs/config-update.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/cortex/cortex-operation-successfully.dto.ts b/platform/src/infrastructure/dtos/cortex/cortex-operation-successfully.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/cortex/cortex-operation-successfully.dto.ts rename to platform/src/infrastructure/dtos/cortex/cortex-operation-successfully.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/cortex/start-cortex.dto.ts b/platform/src/infrastructure/dtos/cortex/start-cortex.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/cortex/start-cortex.dto.ts rename to platform/src/infrastructure/dtos/cortex/start-cortex.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/embeddings/embeddings-request.dto.ts b/platform/src/infrastructure/dtos/embeddings/embeddings-request.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/embeddings/embeddings-request.dto.ts rename to platform/src/infrastructure/dtos/embeddings/embeddings-request.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/engines/engines.dto.ts b/platform/src/infrastructure/dtos/engines/engines.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/engines/engines.dto.ts rename to platform/src/infrastructure/dtos/engines/engines.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/messages/create-message.dto.ts b/platform/src/infrastructure/dtos/messages/create-message.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/messages/create-message.dto.ts rename to platform/src/infrastructure/dtos/messages/create-message.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/messages/delete-message.dto.ts b/platform/src/infrastructure/dtos/messages/delete-message.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/messages/delete-message.dto.ts rename to platform/src/infrastructure/dtos/messages/delete-message.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/messages/get-message.dto.ts b/platform/src/infrastructure/dtos/messages/get-message.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/messages/get-message.dto.ts rename to platform/src/infrastructure/dtos/messages/get-message.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/messages/list-message.dto.ts b/platform/src/infrastructure/dtos/messages/list-message.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/messages/list-message.dto.ts rename to platform/src/infrastructure/dtos/messages/list-message.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/messages/update-message.dto.ts b/platform/src/infrastructure/dtos/messages/update-message.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/messages/update-message.dto.ts rename to platform/src/infrastructure/dtos/messages/update-message.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/models/create-model.dto.ts b/platform/src/infrastructure/dtos/models/create-model.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/models/create-model.dto.ts rename to platform/src/infrastructure/dtos/models/create-model.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/models/delete-model.dto.ts b/platform/src/infrastructure/dtos/models/delete-model.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/models/delete-model.dto.ts rename to platform/src/infrastructure/dtos/models/delete-model.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/models/download-model.dto.ts b/platform/src/infrastructure/dtos/models/download-model.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/models/download-model.dto.ts rename to platform/src/infrastructure/dtos/models/download-model.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/models/list-model-response.dto.ts b/platform/src/infrastructure/dtos/models/list-model-response.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/models/list-model-response.dto.ts rename to platform/src/infrastructure/dtos/models/list-model-response.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/models/model-artifact.dto.ts b/platform/src/infrastructure/dtos/models/model-artifact.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/models/model-artifact.dto.ts rename to platform/src/infrastructure/dtos/models/model-artifact.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/models/model-settings.dto.ts b/platform/src/infrastructure/dtos/models/model-settings.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/models/model-settings.dto.ts rename to platform/src/infrastructure/dtos/models/model-settings.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/models/model.dto.ts b/platform/src/infrastructure/dtos/models/model.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/models/model.dto.ts rename to platform/src/infrastructure/dtos/models/model.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/models/start-model-success.dto.ts b/platform/src/infrastructure/dtos/models/start-model-success.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/models/start-model-success.dto.ts rename to platform/src/infrastructure/dtos/models/start-model-success.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/models/update-model.dto.ts b/platform/src/infrastructure/dtos/models/update-model.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/models/update-model.dto.ts rename to platform/src/infrastructure/dtos/models/update-model.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/page.dto.ts b/platform/src/infrastructure/dtos/page.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/page.dto.ts rename to platform/src/infrastructure/dtos/page.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/threads/create-message.dto.ts b/platform/src/infrastructure/dtos/threads/create-message.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/threads/create-message.dto.ts rename to platform/src/infrastructure/dtos/threads/create-message.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/threads/create-thread-assistant.dto.ts b/platform/src/infrastructure/dtos/threads/create-thread-assistant.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/threads/create-thread-assistant.dto.ts rename to platform/src/infrastructure/dtos/threads/create-thread-assistant.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/threads/create-thread.dto.ts b/platform/src/infrastructure/dtos/threads/create-thread.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/threads/create-thread.dto.ts rename to platform/src/infrastructure/dtos/threads/create-thread.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/threads/delete-message.dto.ts b/platform/src/infrastructure/dtos/threads/delete-message.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/threads/delete-message.dto.ts rename to platform/src/infrastructure/dtos/threads/delete-message.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/threads/delete-thread.dto.ts b/platform/src/infrastructure/dtos/threads/delete-thread.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/threads/delete-thread.dto.ts rename to platform/src/infrastructure/dtos/threads/delete-thread.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/threads/get-thread.dto.ts b/platform/src/infrastructure/dtos/threads/get-thread.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/threads/get-thread.dto.ts rename to platform/src/infrastructure/dtos/threads/get-thread.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/threads/update-message.dto.ts b/platform/src/infrastructure/dtos/threads/update-message.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/threads/update-message.dto.ts rename to platform/src/infrastructure/dtos/threads/update-message.dto.ts diff --git a/cortex-js/src/infrastructure/dtos/threads/update-thread.dto.ts b/platform/src/infrastructure/dtos/threads/update-thread.dto.ts similarity index 100% rename from cortex-js/src/infrastructure/dtos/threads/update-thread.dto.ts rename to platform/src/infrastructure/dtos/threads/update-thread.dto.ts diff --git a/cortex-js/src/infrastructure/entities/assistant.entity.ts b/platform/src/infrastructure/entities/assistant.entity.ts similarity index 100% rename from cortex-js/src/infrastructure/entities/assistant.entity.ts rename to platform/src/infrastructure/entities/assistant.entity.ts diff --git a/cortex-js/src/infrastructure/entities/message.entity.ts b/platform/src/infrastructure/entities/message.entity.ts similarity index 100% rename from cortex-js/src/infrastructure/entities/message.entity.ts rename to platform/src/infrastructure/entities/message.entity.ts diff --git a/cortex-js/src/infrastructure/entities/thread.entity.ts b/platform/src/infrastructure/entities/thread.entity.ts similarity index 100% rename from cortex-js/src/infrastructure/entities/thread.entity.ts rename to platform/src/infrastructure/entities/thread.entity.ts diff --git a/cortex-js/src/infrastructure/exception/duplicate-assistant.exception.ts b/platform/src/infrastructure/exception/duplicate-assistant.exception.ts similarity index 100% rename from cortex-js/src/infrastructure/exception/duplicate-assistant.exception.ts rename to platform/src/infrastructure/exception/duplicate-assistant.exception.ts diff --git a/cortex-js/src/infrastructure/exception/global.exception.ts b/platform/src/infrastructure/exception/global.exception.ts similarity index 100% rename from cortex-js/src/infrastructure/exception/global.exception.ts rename to platform/src/infrastructure/exception/global.exception.ts diff --git a/cortex-js/src/infrastructure/exception/model-not-found.exception.ts b/platform/src/infrastructure/exception/model-not-found.exception.ts similarity index 100% rename from cortex-js/src/infrastructure/exception/model-not-found.exception.ts rename to platform/src/infrastructure/exception/model-not-found.exception.ts diff --git a/cortex-js/src/infrastructure/exception/model-setting-not-found.exception.ts b/platform/src/infrastructure/exception/model-setting-not-found.exception.ts similarity index 100% rename from cortex-js/src/infrastructure/exception/model-setting-not-found.exception.ts rename to platform/src/infrastructure/exception/model-setting-not-found.exception.ts diff --git a/cortex-js/src/infrastructure/interceptors/transform.interceptor.ts b/platform/src/infrastructure/interceptors/transform.interceptor.ts similarity index 100% rename from cortex-js/src/infrastructure/interceptors/transform.interceptor.ts rename to platform/src/infrastructure/interceptors/transform.interceptor.ts diff --git a/cortex-js/src/infrastructure/middlewares/app.logger.middleware.ts b/platform/src/infrastructure/middlewares/app.logger.middleware.ts similarity index 100% rename from cortex-js/src/infrastructure/middlewares/app.logger.middleware.ts rename to platform/src/infrastructure/middlewares/app.logger.middleware.ts diff --git a/cortex-js/src/infrastructure/providers/cortex/cortex.module.ts b/platform/src/infrastructure/providers/cortex/cortex.module.ts similarity index 100% rename from cortex-js/src/infrastructure/providers/cortex/cortex.module.ts rename to platform/src/infrastructure/providers/cortex/cortex.module.ts diff --git a/cortex-js/src/infrastructure/providers/cortex/cortex.provider.ts b/platform/src/infrastructure/providers/cortex/cortex.provider.ts similarity index 100% rename from cortex-js/src/infrastructure/providers/cortex/cortex.provider.ts rename to platform/src/infrastructure/providers/cortex/cortex.provider.ts diff --git a/cortex-js/src/infrastructure/providers/cortex/llamacpp.provider.ts b/platform/src/infrastructure/providers/cortex/llamacpp.provider.ts similarity index 100% rename from cortex-js/src/infrastructure/providers/cortex/llamacpp.provider.ts rename to platform/src/infrastructure/providers/cortex/llamacpp.provider.ts diff --git a/cortex-js/src/infrastructure/providers/cortex/onnx.provider.ts b/platform/src/infrastructure/providers/cortex/onnx.provider.ts similarity index 100% rename from cortex-js/src/infrastructure/providers/cortex/onnx.provider.ts rename to platform/src/infrastructure/providers/cortex/onnx.provider.ts diff --git a/cortex-js/src/infrastructure/providers/cortex/tensorrtllm.provider.ts b/platform/src/infrastructure/providers/cortex/tensorrtllm.provider.ts similarity index 100% rename from cortex-js/src/infrastructure/providers/cortex/tensorrtllm.provider.ts rename to platform/src/infrastructure/providers/cortex/tensorrtllm.provider.ts diff --git a/cortex-js/src/infrastructure/repositories/extensions/extension.module.ts b/platform/src/infrastructure/repositories/extensions/extension.module.ts similarity index 100% rename from cortex-js/src/infrastructure/repositories/extensions/extension.module.ts rename to platform/src/infrastructure/repositories/extensions/extension.module.ts diff --git a/cortex-js/src/infrastructure/repositories/extensions/extension.repository.ts b/platform/src/infrastructure/repositories/extensions/extension.repository.ts similarity index 100% rename from cortex-js/src/infrastructure/repositories/extensions/extension.repository.ts rename to platform/src/infrastructure/repositories/extensions/extension.repository.ts diff --git a/cortex-js/src/infrastructure/repositories/models/model.module.ts b/platform/src/infrastructure/repositories/models/model.module.ts similarity index 100% rename from cortex-js/src/infrastructure/repositories/models/model.module.ts rename to platform/src/infrastructure/repositories/models/model.module.ts diff --git a/cortex-js/src/infrastructure/repositories/models/model.repository.ts b/platform/src/infrastructure/repositories/models/model.repository.ts similarity index 100% rename from cortex-js/src/infrastructure/repositories/models/model.repository.ts rename to platform/src/infrastructure/repositories/models/model.repository.ts diff --git a/cortex-js/src/infrastructure/repositories/telemetry/telemetry.repository.ts b/platform/src/infrastructure/repositories/telemetry/telemetry.repository.ts similarity index 100% rename from cortex-js/src/infrastructure/repositories/telemetry/telemetry.repository.ts rename to platform/src/infrastructure/repositories/telemetry/telemetry.repository.ts diff --git a/cortex-js/src/infrastructure/services/context/context.module.ts b/platform/src/infrastructure/services/context/context.module.ts similarity index 100% rename from cortex-js/src/infrastructure/services/context/context.module.ts rename to platform/src/infrastructure/services/context/context.module.ts diff --git a/cortex-js/src/infrastructure/services/context/context.service.ts b/platform/src/infrastructure/services/context/context.service.ts similarity index 100% rename from cortex-js/src/infrastructure/services/context/context.service.ts rename to platform/src/infrastructure/services/context/context.service.ts diff --git a/cortex-js/src/infrastructure/services/download-manager/download-manager.module.ts b/platform/src/infrastructure/services/download-manager/download-manager.module.ts similarity index 100% rename from cortex-js/src/infrastructure/services/download-manager/download-manager.module.ts rename to platform/src/infrastructure/services/download-manager/download-manager.module.ts diff --git a/cortex-js/src/infrastructure/services/download-manager/download-manager.service.spec.ts b/platform/src/infrastructure/services/download-manager/download-manager.service.spec.ts similarity index 100% rename from cortex-js/src/infrastructure/services/download-manager/download-manager.service.spec.ts rename to platform/src/infrastructure/services/download-manager/download-manager.service.spec.ts diff --git a/cortex-js/src/infrastructure/services/download-manager/download-manager.service.ts b/platform/src/infrastructure/services/download-manager/download-manager.service.ts similarity index 100% rename from cortex-js/src/infrastructure/services/download-manager/download-manager.service.ts rename to platform/src/infrastructure/services/download-manager/download-manager.service.ts diff --git a/cortex-js/src/infrastructure/services/file-manager/file-manager.module.ts b/platform/src/infrastructure/services/file-manager/file-manager.module.ts similarity index 100% rename from cortex-js/src/infrastructure/services/file-manager/file-manager.module.ts rename to platform/src/infrastructure/services/file-manager/file-manager.module.ts diff --git a/cortex-js/src/infrastructure/services/file-manager/file-manager.service.spec.ts b/platform/src/infrastructure/services/file-manager/file-manager.service.spec.ts similarity index 100% rename from cortex-js/src/infrastructure/services/file-manager/file-manager.service.spec.ts rename to platform/src/infrastructure/services/file-manager/file-manager.service.spec.ts diff --git a/cortex-js/src/infrastructure/services/file-manager/file-manager.service.ts b/platform/src/infrastructure/services/file-manager/file-manager.service.ts similarity index 100% rename from cortex-js/src/infrastructure/services/file-manager/file-manager.service.ts rename to platform/src/infrastructure/services/file-manager/file-manager.service.ts diff --git a/cortex-js/src/infrastructure/services/resources-manager/resources-manager.module.ts b/platform/src/infrastructure/services/resources-manager/resources-manager.module.ts similarity index 100% rename from cortex-js/src/infrastructure/services/resources-manager/resources-manager.module.ts rename to platform/src/infrastructure/services/resources-manager/resources-manager.module.ts diff --git a/cortex-js/src/infrastructure/services/resources-manager/resources-manager.service.ts b/platform/src/infrastructure/services/resources-manager/resources-manager.service.ts similarity index 100% rename from cortex-js/src/infrastructure/services/resources-manager/resources-manager.service.ts rename to platform/src/infrastructure/services/resources-manager/resources-manager.service.ts diff --git a/cortex-js/src/main.ts b/platform/src/main.ts similarity index 100% rename from cortex-js/src/main.ts rename to platform/src/main.ts diff --git a/cortex-js/src/usecases/assistants/assistants.module.ts b/platform/src/usecases/assistants/assistants.module.ts similarity index 100% rename from cortex-js/src/usecases/assistants/assistants.module.ts rename to platform/src/usecases/assistants/assistants.module.ts diff --git a/cortex-js/src/usecases/assistants/assistants.usecases.spec.ts b/platform/src/usecases/assistants/assistants.usecases.spec.ts similarity index 100% rename from cortex-js/src/usecases/assistants/assistants.usecases.spec.ts rename to platform/src/usecases/assistants/assistants.usecases.spec.ts diff --git a/cortex-js/src/usecases/assistants/assistants.usecases.ts b/platform/src/usecases/assistants/assistants.usecases.ts similarity index 100% rename from cortex-js/src/usecases/assistants/assistants.usecases.ts rename to platform/src/usecases/assistants/assistants.usecases.ts diff --git a/cortex-js/src/usecases/chat/chat.module.ts b/platform/src/usecases/chat/chat.module.ts similarity index 100% rename from cortex-js/src/usecases/chat/chat.module.ts rename to platform/src/usecases/chat/chat.module.ts diff --git a/cortex-js/src/usecases/chat/chat.usecases.spec.ts b/platform/src/usecases/chat/chat.usecases.spec.ts similarity index 100% rename from cortex-js/src/usecases/chat/chat.usecases.spec.ts rename to platform/src/usecases/chat/chat.usecases.spec.ts diff --git a/cortex-js/src/usecases/chat/chat.usecases.ts b/platform/src/usecases/chat/chat.usecases.ts similarity index 100% rename from cortex-js/src/usecases/chat/chat.usecases.ts rename to platform/src/usecases/chat/chat.usecases.ts diff --git a/cortex-js/src/usecases/chat/exception/invalid-api-url.exception.ts b/platform/src/usecases/chat/exception/invalid-api-url.exception.ts similarity index 100% rename from cortex-js/src/usecases/chat/exception/invalid-api-url.exception.ts rename to platform/src/usecases/chat/exception/invalid-api-url.exception.ts diff --git a/cortex-js/src/usecases/configs/configs.module.ts b/platform/src/usecases/configs/configs.module.ts similarity index 100% rename from cortex-js/src/usecases/configs/configs.module.ts rename to platform/src/usecases/configs/configs.module.ts diff --git a/cortex-js/src/usecases/configs/configs.usecase.ts b/platform/src/usecases/configs/configs.usecase.ts similarity index 100% rename from cortex-js/src/usecases/configs/configs.usecase.ts rename to platform/src/usecases/configs/configs.usecase.ts diff --git a/cortex-js/src/usecases/cortex/cortex.module.ts b/platform/src/usecases/cortex/cortex.module.ts similarity index 100% rename from cortex-js/src/usecases/cortex/cortex.module.ts rename to platform/src/usecases/cortex/cortex.module.ts diff --git a/cortex-js/src/usecases/cortex/cortex.usecases.spec.ts b/platform/src/usecases/cortex/cortex.usecases.spec.ts similarity index 100% rename from cortex-js/src/usecases/cortex/cortex.usecases.spec.ts rename to platform/src/usecases/cortex/cortex.usecases.spec.ts diff --git a/cortex-js/src/usecases/cortex/cortex.usecases.ts b/platform/src/usecases/cortex/cortex.usecases.ts similarity index 100% rename from cortex-js/src/usecases/cortex/cortex.usecases.ts rename to platform/src/usecases/cortex/cortex.usecases.ts diff --git a/cortex-js/src/usecases/engines/engines.module.ts b/platform/src/usecases/engines/engines.module.ts similarity index 100% rename from cortex-js/src/usecases/engines/engines.module.ts rename to platform/src/usecases/engines/engines.module.ts diff --git a/cortex-js/src/usecases/engines/engines.usecase.ts b/platform/src/usecases/engines/engines.usecase.ts similarity index 100% rename from cortex-js/src/usecases/engines/engines.usecase.ts rename to platform/src/usecases/engines/engines.usecase.ts diff --git a/cortex-js/src/usecases/messages/messages.module.ts b/platform/src/usecases/messages/messages.module.ts similarity index 100% rename from cortex-js/src/usecases/messages/messages.module.ts rename to platform/src/usecases/messages/messages.module.ts diff --git a/cortex-js/src/usecases/messages/messages.usecases.spec.ts b/platform/src/usecases/messages/messages.usecases.spec.ts similarity index 100% rename from cortex-js/src/usecases/messages/messages.usecases.spec.ts rename to platform/src/usecases/messages/messages.usecases.spec.ts diff --git a/cortex-js/src/usecases/messages/messages.usecases.ts b/platform/src/usecases/messages/messages.usecases.ts similarity index 100% rename from cortex-js/src/usecases/messages/messages.usecases.ts rename to platform/src/usecases/messages/messages.usecases.ts diff --git a/cortex-js/src/usecases/models/models.module.ts b/platform/src/usecases/models/models.module.ts similarity index 100% rename from cortex-js/src/usecases/models/models.module.ts rename to platform/src/usecases/models/models.module.ts diff --git a/cortex-js/src/usecases/models/models.usecases.spec.ts b/platform/src/usecases/models/models.usecases.spec.ts similarity index 100% rename from cortex-js/src/usecases/models/models.usecases.spec.ts rename to platform/src/usecases/models/models.usecases.spec.ts diff --git a/cortex-js/src/usecases/models/models.usecases.ts b/platform/src/usecases/models/models.usecases.ts similarity index 100% rename from cortex-js/src/usecases/models/models.usecases.ts rename to platform/src/usecases/models/models.usecases.ts diff --git a/cortex-js/src/usecases/telemetry/telemetry.module.ts b/platform/src/usecases/telemetry/telemetry.module.ts similarity index 100% rename from cortex-js/src/usecases/telemetry/telemetry.module.ts rename to platform/src/usecases/telemetry/telemetry.module.ts diff --git a/cortex-js/src/usecases/telemetry/telemetry.usecases.ts b/platform/src/usecases/telemetry/telemetry.usecases.ts similarity index 100% rename from cortex-js/src/usecases/telemetry/telemetry.usecases.ts rename to platform/src/usecases/telemetry/telemetry.usecases.ts diff --git a/cortex-js/src/usecases/threads/threads.module.ts b/platform/src/usecases/threads/threads.module.ts similarity index 100% rename from cortex-js/src/usecases/threads/threads.module.ts rename to platform/src/usecases/threads/threads.module.ts diff --git a/cortex-js/src/usecases/threads/threads.usecases.spec.ts b/platform/src/usecases/threads/threads.usecases.spec.ts similarity index 100% rename from cortex-js/src/usecases/threads/threads.usecases.spec.ts rename to platform/src/usecases/threads/threads.usecases.spec.ts diff --git a/cortex-js/src/usecases/threads/threads.usecases.ts b/platform/src/usecases/threads/threads.usecases.ts similarity index 100% rename from cortex-js/src/usecases/threads/threads.usecases.ts rename to platform/src/usecases/threads/threads.usecases.ts diff --git a/cortex-js/src/utils/app-path.ts b/platform/src/utils/app-path.ts similarity index 100% rename from cortex-js/src/utils/app-path.ts rename to platform/src/utils/app-path.ts diff --git a/cortex-js/src/utils/cortex-cpp.ts b/platform/src/utils/cortex-cpp.ts similarity index 100% rename from cortex-js/src/utils/cortex-cpp.ts rename to platform/src/utils/cortex-cpp.ts diff --git a/cortex-js/src/utils/cuda.ts b/platform/src/utils/cuda.ts similarity index 100% rename from cortex-js/src/utils/cuda.ts rename to platform/src/utils/cuda.ts diff --git a/cortex-js/src/utils/download-progress.ts b/platform/src/utils/download-progress.ts similarity index 100% rename from cortex-js/src/utils/download-progress.ts rename to platform/src/utils/download-progress.ts diff --git a/cortex-js/src/utils/health.ts b/platform/src/utils/health.ts similarity index 100% rename from cortex-js/src/utils/health.ts rename to platform/src/utils/health.ts diff --git a/cortex-js/src/utils/huggingface.ts b/platform/src/utils/huggingface.ts similarity index 100% rename from cortex-js/src/utils/huggingface.ts rename to platform/src/utils/huggingface.ts diff --git a/cortex-js/src/utils/init.ts b/platform/src/utils/init.ts similarity index 100% rename from cortex-js/src/utils/init.ts rename to platform/src/utils/init.ts diff --git a/cortex-js/src/utils/logs.ts b/platform/src/utils/logs.ts similarity index 100% rename from cortex-js/src/utils/logs.ts rename to platform/src/utils/logs.ts diff --git a/cortex-js/src/utils/model-check.ts b/platform/src/utils/model-check.ts similarity index 100% rename from cortex-js/src/utils/model-check.ts rename to platform/src/utils/model-check.ts diff --git a/cortex-js/src/utils/model-parameter.parser.ts b/platform/src/utils/model-parameter.parser.ts similarity index 100% rename from cortex-js/src/utils/model-parameter.parser.ts rename to platform/src/utils/model-parameter.parser.ts diff --git a/cortex-js/src/utils/normalize-model-id.ts b/platform/src/utils/normalize-model-id.ts similarity index 100% rename from cortex-js/src/utils/normalize-model-id.ts rename to platform/src/utils/normalize-model-id.ts diff --git a/cortex-js/src/utils/request.ts b/platform/src/utils/request.ts similarity index 100% rename from cortex-js/src/utils/request.ts rename to platform/src/utils/request.ts diff --git a/cortex-js/src/utils/system-resource.ts b/platform/src/utils/system-resource.ts similarity index 100% rename from cortex-js/src/utils/system-resource.ts rename to platform/src/utils/system-resource.ts diff --git a/cortex-js/src/utils/urls.ts b/platform/src/utils/urls.ts similarity index 100% rename from cortex-js/src/utils/urls.ts rename to platform/src/utils/urls.ts diff --git a/cortex-js/test/jest-e2e.json b/platform/test/jest-e2e.json similarity index 100% rename from cortex-js/test/jest-e2e.json rename to platform/test/jest-e2e.json diff --git a/cortex-js/test/models.e2e-spec.ts b/platform/test/models.e2e-spec.ts similarity index 100% rename from cortex-js/test/models.e2e-spec.ts rename to platform/test/models.e2e-spec.ts diff --git a/cortex-js/tsconfig.build.json b/platform/tsconfig.build.json similarity index 100% rename from cortex-js/tsconfig.build.json rename to platform/tsconfig.build.json diff --git a/cortex-js/tsconfig.json b/platform/tsconfig.json similarity index 100% rename from cortex-js/tsconfig.json rename to platform/tsconfig.json diff --git a/cortex-js/uninstall.js b/platform/uninstall.js similarity index 100% rename from cortex-js/uninstall.js rename to platform/uninstall.js