Restore Cordis mount and unmount names

Keep temporary lifecycle descriptions and UI labels explicit.
This commit is contained in:
NI0317
2026-07-27 21:20:06 +08:00
parent 826c6fd243
commit 1ef285d038
80 changed files with 578 additions and 567 deletions

View File

@@ -248,21 +248,21 @@ describe('Code Mode typed values: keyless real-worker contracts', () => {
expect(ctx.tasks.list()).toEqual([])
}, 15_000)
it('uses cordis_try DTO ids directly for running and pending temporary Plugins, then confirms removal', async () => {
it('uses cordis_mount DTO ids directly for running and pending temporary Plugins, then confirms removal', async () => {
ctx = await typedCodeModeHarness()
await ctx.plugin(ToolCordis)
const value = completion(await runCode(ctx, `
const active = await tools.cordis_try({
const active = await tools.cordis_mount({
code: "return { name: 'active-code-mode-plugin', apply(ctx) {} }",
});
const pending = await tools.cordis_try({
const pending = await tools.cordis_mount({
code: "return { name: 'pending-code-mode-plugin', inject: ['missing-code-mode-service'], apply(ctx) {} }",
});
const before = await tools.cordis_inspect({ what: 'temporary' });
const stopped = await tools.cordis_stop({ id: active.id });
const stopped = await tools.cordis_unmount({ id: active.id });
const after = await tools.cordis_inspect({ what: 'temporary' });
await tools.cordis_stop({ id: pending.id });
await tools.cordis_unmount({ id: pending.id });
return {
active,
pending,