• feat(self-modification): add dynamic Cordis plugin runtime and UI

This commit is contained in:
imccyu
2026-08-12 23:51:31 +08:00
parent 0367506471
commit 4064198560
147 changed files with 20904 additions and 2412 deletions

View File

@@ -10,8 +10,16 @@ import type { InputTriggerController } from './controller.ts'
/** The `ctx.inputTriggers` service face. */
export interface InputTriggerServiceContract {
/** Register one trigger source; effect disposer. Duplicate (trigger, name) throws. */
/**
* Register one trigger source; duplicate trigger/name pairs throw.
* @param src - source that discovers and resolves slash or reference candidates.
* @returns effect disposer removing this source.
*/
registerSource(src: InputTriggerSource): () => void
/** Resolve the per-session controller for one session scope (lazy; dies with the scope). */
/**
* Resolve the lazy controller owned by one session scope.
* @param actx - session-scoped Client context.
* @returns controller that dies with that scope.
*/
sessionOf(actx: ClientContext): InputTriggerController
}