fix: remove workflow completion surface
This commit is contained in:
@@ -83,8 +83,8 @@ pub struct WorkerManifest {
|
||||
/// `[feature.web].enabled = true`.
|
||||
#[serde(default)]
|
||||
pub web: Option<WebConfig>,
|
||||
/// External Agent Skills (`SKILL.md`) directories to ingest as
|
||||
/// Workflows. Each entry is a path to a skills *root* (i.e. a
|
||||
/// External Agent Skills (`SKILL.md`) candidate directories. Each entry
|
||||
/// is a path to a skills *root* (i.e. a
|
||||
/// directory whose children are individual `<name>/SKILL.md` skill
|
||||
/// bundles). Paths are resolved against the manifest's base
|
||||
/// directory like other path fields. Absent ⇒ no skills loaded;
|
||||
|
||||
@@ -70,9 +70,7 @@ pub enum Method {
|
||||
///
|
||||
/// Reply is sent on the same socket as `Event::Completions` (not
|
||||
/// broadcast). The IPC server handles this directly and writes
|
||||
/// the response straight back to the requesting socket. Empty
|
||||
/// results for resolvers that are not yet wired up
|
||||
/// (Knowledge / Workflow).
|
||||
/// the response straight back to the requesting socket.
|
||||
ListCompletions {
|
||||
kind: CompletionKind,
|
||||
prefix: String,
|
||||
@@ -601,11 +599,7 @@ pub enum AlertSource {
|
||||
|
||||
/// Kind of completion requested by `Method::ListCompletions`.
|
||||
///
|
||||
/// Mirrors the TUI prefix sigils: `@` → `File`, `#` → `Knowledge`,
|
||||
/// `/` → `Workflow`. Knowledge and Workflow resolvers are currently
|
||||
/// stubs (always reply with empty `entries`); the wire shape is
|
||||
/// nailed down here so the TUI side can ship without waiting for
|
||||
/// the memory / workflow tickets.
|
||||
/// Mirrors the completion prefix sigils: `@` → `File`, `#` → `Knowledge`.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[cfg_attr(feature = "typescript", derive(ts_rs::TS))]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
@@ -616,7 +610,7 @@ pub enum CompletionKind {
|
||||
|
||||
/// One candidate returned in `Event::Completions::entries`.
|
||||
///
|
||||
/// `value` is a path (file kind) or a slug (knowledge / workflow).
|
||||
/// `value` is a path (file kind) or a Knowledge slug.
|
||||
/// `is_dir` is meaningful only for the file kind — it lets the TUI
|
||||
/// keep a trailing `/` after a directory selection so the user can
|
||||
/// drill in without re-typing the prefix.
|
||||
|
||||
@@ -607,8 +607,7 @@ impl App {
|
||||
/// suggestion" — partial typing like `@README.` followed by
|
||||
/// Enter should chip when the popup is on `README.md`.
|
||||
///
|
||||
/// Files (and Knowledge / Workflow entries, which have no dir
|
||||
/// concept) chipify here. Directory file entries return `false`
|
||||
/// Files and Knowledge entries chipify here. Directory file entries return `false`
|
||||
/// so the caller can fall through to `apply_completion_text`
|
||||
/// for drill-in — chip-ifying a directory on Enter would strand
|
||||
/// the user with no way to inspect children.
|
||||
|
||||
@@ -833,7 +833,7 @@ impl<C: LlmClient, St: Store> Worker<C, St> {
|
||||
///
|
||||
/// Default `true`: normal Workers may expose each resident section according
|
||||
/// to its own gate and manifest settings. Internal disposable workers set
|
||||
/// this to `false` so summary, Knowledge, and Workflow residency are all
|
||||
/// this to `false` so summary and Knowledge residency are both
|
||||
/// suppressed while explicit tools remain available.
|
||||
pub fn set_resident_injection(&mut self, enabled: bool) {
|
||||
self.inject_resident_summary = enabled;
|
||||
|
||||
Reference in New Issue
Block a user