import { setupManifest } from '@start9labs/start-sdk'
import { alertInstall, long, short } from './i18n'

export const manifest = setupManifest({
  id: 'recap',
  title: 'Recaps',
  license: 'Proprietary',
  packageRepo: 'https://ten31.xyz',
  upstreamRepo: 'https://ten31.xyz',
  marketingUrl: 'https://ten31.xyz',
  donationUrl: null,
  docsUrls: [],
  description: { short, long },
  volumes: ['main'],
  images: {
    main: {
      source: {
        dockerBuild: {
          workdir: '.',
          dockerfile: './Dockerfile',
        },
      },
      arch: ['x86_64', 'aarch64'],
    },
  },
  alerts: {
    install: alertInstall,
    update: null,
    uninstall: null,
    restore: null,
    start: null,
    stop: null,
  },
  dependencies: {
    // Optional: enables the local-LLM analysis path. When installed on
    // the same StartOS server, the "Set Ollama Server URL" action
    // auto-pre-populates with the package's container IP + port, so
    // users don't have to type anything. Recap works fine without it
    // (cloud providers stay available).
    ollama: {
      description:
        'Run local LLMs (Llama, Mistral, etc.) for topic analysis without a cloud API. Recaps auto-detects the install and pre-fills its connection URL.',
      optional: true,
      s9pk: null,
    },
  },
})
