Skip to content

Latest commit

 

History

History
273 lines (225 loc) · 6.88 KB

File metadata and controls

273 lines (225 loc) · 6.88 KB

🚀 Guía de Distribución - Asis-coder

📦 Flujo Completo de Distribución

Paso 1: Publicar en GitHub

  1. Crear repositorio en GitHub:

    git init
    git add .
    git commit -m "Initial commit: Asis-coder v1.0.1"
    git remote add origin https://github.com/johnolven/asis-coder.git
    git push -u origin main
  2. Crear release con paquete:

    • Ve a: https://github.com/johnolven/asis-coder/releases

    • Click "Create a new release"

    • Tag: v1.0.1

    • Title: Asis-coder v1.0.1 - AI Code Assistant

    • Description:

      ## 🚀 Asis-coder - Asistente de IA más avanzado que Claude Code
      
      ### ✨ Características:
      - 🧠 30+ modelos LLM (GPT, Claude, Gemini)
      - 🤖 7 agentes especializados para modificación de código
      - 📋 Context Units avanzadas (mejor que Claude Code)
      - 🔧 Fix automático de bugs
      - ⚡ Implementación de features
      - 🔬 Análisis semántico propietario
      
      ### 📥 Instalación:
      ```bash
      curl -sSL https://raw.githubusercontent.com/johnolven/asis-coder/main/install-remote.sh | bash

      📦 Descarga Manual:

      • Descarga asis-coder-macos-arm64.tar.gz
      • Extrae: tar -xzf asis-coder-macos-arm64.tar.gz
      • Instala: cd asis-coder && sudo ./install.sh
    • Attachments: Subir asis-coder-macos-arm64.tar.gz

Paso 2: Actualizar URLs en Scripts

En install-remote.sh, cambiar:

GITHUB_REPO="johnolven/asis-coder"  # ← Cambiar aquí

Paso 3: Instalación de Una Línea

Los usuarios podrán instalar con:

curl -sSL https://raw.githubusercontent.com/johnolven/asis-coder/main/install-remote.sh | bash

🌍 Opciones de Distribución

🐙 GitHub Releases (Recomendado)

# Los usuarios instalan así:
curl -sSL https://raw.githubusercontent.com/johnolven/asis-coder/main/install-remote.sh | bash

Pros: ✅ Gratis, fácil, control total
Contras: ⚠️ Requiere GitHub account

📦 NPM Package

# Publicar en NPM
npm login
npm publish

# Los usuarios instalan así:
npm install -g asis-coder

Pros: ✅ Familiar para desarrolladores JS
Contras: ⚠️ Problemas con binarios nativos

🍺 Homebrew (Solo macOS)

Crear formula:

# asis-coder.rb
class AsisCoder < Formula
  desc "AI-powered code assistant"
  homepage "https://github.com/johnolven/asis-coder"
  url "https://github.com/johnolven/asis-coder/releases/download/v1.0.1/asis-coder-macos-arm64.tar.gz"
  sha256 "CALCULAR_SHA256"
  version "1.0.1"

  def install
    bin.install "coder.sh" => "coder"
    lib.install Dir["lib/*"]
    lib.install Dir["binaries/*"]
  end
end

Los usuarios instalan así:

brew tap johnolven/asis-coder
brew install asis-coder

🐳 Docker Image

# Dockerfile
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y curl jq
COPY . /opt/asis-coder
RUN /opt/asis-coder/install.sh
ENTRYPOINT ["coder"]

Los usuarios usan así:

docker run -v "$(pwd):/workspace" -w /workspace johnolven/asis-coder code analyze

🚀 Automatización con GitHub Actions

CI/CD para Multi-Platform

# .github/workflows/release.yml
name: Build and Release
on:
  push:
    tags: ['v*']

jobs:
  build:
    strategy:
      matrix:
        include:
          - os: ubuntu-latest
            target: x86_64-unknown-linux-gnu
            name: asis-coder-linux
          - os: macos-latest
            target: aarch64-apple-darwin
            name: asis-coder-macos-arm64
          - os: macos-latest
            target: x86_64-apple-darwin
            name: asis-coder-macos-x64
    
    runs-on: ${{ matrix.os }}
    
    steps:
    - uses: actions/checkout@v3
    
    - name: Setup Build Environment
      run: |
        echo "Setting up build tools"
        make --version
    
    - name: Build
      run: |
        echo "Building with existing binaries"
        make build
    
    - name: Create Package
      run: |
        mkdir -p dist
        cp -r coder.sh lib/ binaries/ package.json install.sh README.MD LICENSE dist/
        # Binaries already in place from build process
        ls -la binaries/
        tar -czf ${{ matrix.name }}.tar.gz -C dist .
    
    - name: Upload Release Asset
      uses: softprops/action-gh-release@v1
      with:
        files: ${{ matrix.name }}.tar.gz
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

📊 Métricas y Analytics

Tracking de Instalaciones

# En install-remote.sh, agregar:
curl -s "https://api.tu-dominio.com/install" \
  -d "os=$OS_TYPE&arch=$ARCH_TYPE&version=$ASIS_CODER_VERSION" \
  >/dev/null 2>&1 || true

Telemetría (Opcional)

# En coder.sh, agregar (con opt-out):
if [ "${ASIS_CODER_TELEMETRY}" != "false" ]; then
  curl -s "https://api.tu-dominio.com/usage" \
    -d "command=$1&version=$VERSION" \
    >/dev/null 2>&1 || true &
fi

🔄 Proceso de Updates

Auto-Update Feature

# Comando: coder update
coder_update() {
  echo "🔄 Verificando actualizaciones..."
  LATEST=$(curl -s https://api.github.com/repos/johnolven/asis-coder/releases/latest | jq -r .tag_name)
  
  if [ "$LATEST" != "v$VERSION" ]; then
    echo "🆕 Nueva versión disponible: $LATEST"
    echo "¿Actualizar ahora? (y/n)"
    read -r CONFIRM
    if [ "$CONFIRM" = "y" ]; then
      curl -sSL https://raw.githubusercontent.com/johnolven/asis-coder/main/install-remote.sh | bash
    fi
  else
    echo "✅ Ya tienes la última versión"
  fi
}

💰 Monetización

Freemium Model

  • Free: Comandos básicos, 3 LLMs
  • 💎 Pro ($9/mes): Todos los agentes, análisis avanzado
  • 🏢 Enterprise ($49/mes): API privada, soporte

Implementation

# License check en coder.sh
check_license() {
  if [ "$1" = "code" ] && [ ! -f "$HOME/.asis-coder/license" ]; then
    echo "🔒 Comando Pro requerido"
    echo "💎 Upgrade: https://asis-coder.com/pro"
    exit 1
  fi
}

🎯 Marketing y Launch

Launch Checklist

  • GitHub repo público
  • README completo con demos
  • Releases con binarios
  • install-remote.sh funcionando
  • Website/landing page
  • Demo videos
  • Documentation completa
  • Social media posts
  • Product Hunt launch
  • Hacker News post
  • Reddit r/programming

Content Marketing

  • 📝 Blog post: "I Built a Better Claude Code in 2 Days"
  • 🎥 YouTube: Demo comparando con Claude Code/Cursor
  • 🐦 Twitter: Thread with side-by-side comparisons
  • 📺 LinkedIn: Technical deep-dive article
  • 🎪 Dev.to: Step-by-step building guide

🚀 Next Steps

  1. Crear GitHub repo y subir código
  2. Crear primer release con el .tar.gz
  3. Actualizar URLs en install-remote.sh
  4. Probar instalación desde cero
  5. Launch marketing campaign

¡Tu Asis-coder está listo para conquistar el mundo! 🌍