Procházet zdrojové kódy

fix(examples): own repository plugin startup order

Tianyi Cui před 1 měsícem
rodič
revize
a0aed8a19f

+ 1 - 4
examples/headless-agent/tests/fixtures/cli.cordis.yml

@@ -1,11 +1,8 @@
 - 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'
+  name: './repository-plugin/load.mjs'
 
 - id: base
   name: '@cordisjs/plugin-include'

+ 13 - 0
examples/headless-agent/tests/fixtures/repository-plugin/load.mjs

@@ -0,0 +1,13 @@
+/**
+ * Keyless fixture owner that mounts the runtime before its prepared wrapper.
+ * Cordis starts sibling Loader entries concurrently, so row order is not a dependency edge.
+ */
+import * as RepositoryPlugin from '@deepseek-ai/dsh-repository-plugin'
+import * as PreparedPlugin from './dsh-plugin.mjs'
+
+export const name = 'headless-repository-fixture-loader'
+
+export async function apply(ctx) {
+  await ctx.plugin(RepositoryPlugin)
+  await ctx.plugin(PreparedPlugin)
+}