Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

2.1 KB
Raw Blame
{
  "name": "@dify/contracts",
  "version": "0.0.0-private",
  "private": true,
  "type": "module",
  "exports": {
    "./marketplace": {
      "types": "./marketplace.ts",
      "import": "./marketplace.ts"
    },
    "./console": {
      "types": "./console.ts",
      "import": "./console.ts"
    },
    "./api/*": {
      "types": "./generated/api/*.ts",
      "import": "./generated/api/*.ts"
    },
    "./enterprise/*": {
      "types": "./generated/enterprise/*.ts",
      "import": "./generated/enterprise/*.ts"
    },
    "./enterprise-app-deploy/*": {
      "types": "./generated/enterprise-app-deploy/*.ts",
      "import": "./generated/enterprise-app-deploy/*.ts"
    }
  },
  "scripts": {
    "gen-api-contract": "uv run --frozen --project ../../api ../../api/dev/generate_swagger_specs.py --output-dir openapi && uv run --frozen --project ../../api ../../api/dev/generate_fastopenapi_specs.py --output-dir openapi && node -e \"if (process.env.CI) fs.rmSync('generated/api', { recursive: true, force: true })\" && openapi-ts -f openapi-ts.api.config.ts && node scripts/add-orpc-error-maps.ts && vp fmt generated/api && node scripts/generate-compatibility-sources.ts",
    "gen-enterprise-contract": "openapi-ts -f openapi-ts.enterprise.config.ts && node scripts/snapshot-enterprise-openapi.ts enterprise && node scripts/generate-compatibility-sources.ts",
    "gen-enterprise-app-deploy-contract": "openapi-ts -f openapi-ts.enterprise-app-deploy.config.ts && node scripts/snapshot-enterprise-openapi.ts enterprise-app-deploy && node scripts/generate-compatibility-sources.ts",
    "test": "vp test",
    "type-check": "tsrs --noEmit",
    "compose:console": "node scripts/compose-console-openapi.mjs",
    "gen-compatibility-sources": "node scripts/generate-compatibility-sources.ts"
  },
  "dependencies": {
    "@orpc/contract": "catalog:",
    "zod": "catalog:"
  },
  "devDependencies": {
    "@dify/tsconfig": "workspace:*",
    "@hey-api/openapi-ts": "catalog:",
    "@types/node": "catalog:",
    "@typescript/native": "catalog:",
    "js-yaml": "catalog:",
    "tsrs": "catalog:",
    "typescript": "catalog:",
    "vite": "catalog:",
    "vite-plus": "catalog:"
  }
}