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.

538 B
Raw Blame
import { it } from 'vite-plus/test'
import { definePlugin } from './plugin'

const env = definePlugin({ name: 'env', needs: [], build: () => ({ home: '/tmp' }) })
const session = definePlugin({
  name: 'session',
  needs: [env],
  build: async (ctx) => ({ dir: (await ctx.get(env)).home }),
})
definePlugin({
  name: 'token',
  needs: [session],
  build: async (ctx) => {
    const s = await ctx.get(session)
    // @ts-expect-error env is not in needs
    await ctx.get(env)
    return { where: s.dir }
  },
})

it('compiles', () => {})