feat: add static repository plugin format

This commit is contained in:
Tianyi Cui
2026-07-30 04:15:07 +08:00
parent fd4d369907
commit fa7051a9d1
35 changed files with 1310 additions and 27 deletions

View File

@@ -1,6 +1,12 @@
- id: cli-mock-llm
name: './cli-mock-llm.ts'
- id: repository-plugin-runtime
name: '@deepseek-ai/dsh-repository-plugin'
- id: repository-plugin-fixture
name: './repository-plugin/dsh-plugin.mjs'
- id: base
name: '@cordisjs/plugin-include'
config:
@@ -16,4 +22,8 @@
model: cli-mock
persistenceRoot: './.sessions'
workspaceContext: false
dshHome: './.dsh-home'
skills:
local:
agentsHome: './.agents-home'
persona: 'Keyless headless-agent smoke.'

View File

@@ -0,0 +1,6 @@
---
name: repository-fixture
description: Repository fixture skill.
---
Static instructions from a prepared repository plugin.

View File

@@ -0,0 +1,9 @@
// Generated by dsh-plugin-prepare. Do not edit.
const manifest = { "name": "headless-repository-fixture", "skills": ["dsh-plugin-assets/skills/0"] }
export const name = 'headless-repository-fixture'
export const inject = ['loader']
export async function apply(ctx) {
const runtime = ctx.loader.builtins['dsh-repository-plugin']
if (runtime === undefined) throw new Error('missing Cordis builtin dsh-repository-plugin')
await ctx.plugin(runtime, { baseUrl: import.meta.url, manifest })
}