Файли
openidea/wit/agents.wit
T
RuyimgByCN b83c1a60c2 feat(plugins): run lifecycle events, run.stop, configuration upsert, Java debug attach, log tail tabs and console toolbar (API 1.21) (#7776)
Plugin API 1.21:
- run-started events, and run-exited for user-launched plugin configurations (plugins on API 1.21 only).
- run.stop(id) for runs of the plugin's own configurations; run.upsert-configuration and run.open-edit-configurations for the plugin's own run configuration types.
- prepareCommand receives the run/debug mode; plugin configurations can declare a loopback JDWP attach target.
- runConfigTypes.ownsBeforeLaunch, log file tabs in the run console (plugin_run_log_tail, authorised by the plugin's project.read / fs.read grants), and the runConsole.toolbar menu in the Run and Debug consoles.

Review fixes: RunView log tab state keyed by the string session id, tail chunks cut on a UTF-8 boundary, user-run exits gated to API 1.21.

Co-authored-by: RuyimgByCN <[email protected]>
2026-12-03 20:29:31 +08:00

14 рядки
772 B
Plaintext

package openidea:[email protected];
/// Forking recorded native agent sessions into new tasks (API 1.18). Requires
/// the `agents` capability. The session must belong to the invoking window's
/// project and have been recorded in `cwd`; the host builds the fork invocation
/// and names the fork's id for claude (codex assigns its own).
interface agents {
use types.{error};
/// Fork the recorded session `session-id` of `agent` (a native provider,
/// `claude` or `codex`) into a new task in the open project, returning the
/// new task id. `cwd` must be where the session was recorded. The first
/// turn continues the recording as the agent's own fork.
fork-session: func(agent: string, session-id: string, cwd: string) -> result<string, error>;
}