docs: reorganize docs — archive outdated, create brainstorming folder
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
- Create docs/brainstorming/ with 5 discussion records (Mar 16 - Apr 7) - Archive ~30 outdated audit reports (V5-V11) to docs/archive/old-audits/ - Archive superseded analysis docs to docs/archive/old-analysis/ - Archive completed session plans to docs/archive/old-plans/ - Archive old test reports/validations to respective archive folders - Remove empty directories left after moves - Keep current docs: TRUTH.md, feature docs, deployment, knowledge-base, superpowers
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
//! A2A (Agent-to-Agent) commands — gated behind `multi-agent` feature
|
||||
|
||||
use serde::Serialize;
|
||||
use serde_json;
|
||||
use tauri::State;
|
||||
use zclaw_types::AgentId;
|
||||
@@ -120,16 +119,6 @@ pub async fn agent_a2a_delegate_task(
|
||||
// Butler Delegation Command — multi-agent feature
|
||||
// ============================================================
|
||||
|
||||
/// Result of butler task delegation (mirrors zclaw_kernel::director::DelegationResult).
|
||||
#[cfg(feature = "multi-agent")]
|
||||
#[derive(Debug, Serialize)]
|
||||
struct ButlerDelegationResponse {
|
||||
request: String,
|
||||
tasks: Vec<serde_json::Value>,
|
||||
success: bool,
|
||||
summary: String,
|
||||
}
|
||||
|
||||
/// Butler delegates a user request to expert agents via the Director.
|
||||
#[cfg(feature = "multi-agent")]
|
||||
// @connected
|
||||
|
||||
@@ -34,8 +34,9 @@ export function ProposalsSection({ proposals, onStatusChange }: ProposalsSection
|
||||
try {
|
||||
await updateButlerProposalStatus(proposalId, status);
|
||||
onStatusChange?.();
|
||||
} catch (err) {
|
||||
// Error handled silently - UI will not update
|
||||
} catch {
|
||||
// Status update failed — clear local optimistic state on next refresh
|
||||
onStatusChange?.();
|
||||
} finally {
|
||||
setUpdating(null);
|
||||
}
|
||||
|
||||
@@ -26,18 +26,25 @@ export function useButlerInsights(agentId: string | undefined): ButlerInsightsSt
|
||||
setLoading(true);
|
||||
setError(null);
|
||||
|
||||
const errors: string[] = [];
|
||||
|
||||
Promise.all([
|
||||
getButlerInsights(agentId).catch((err: unknown) => {
|
||||
const msg = err instanceof Error ? err.message : String(err);
|
||||
setError(msg);
|
||||
errors.push(err instanceof Error ? err.message : String(err));
|
||||
return [] as ButlerPainPoint[];
|
||||
}),
|
||||
getButlerProposals(agentId).catch((err: unknown) => {
|
||||
const msg = err instanceof Error ? err.message : String(err);
|
||||
setError(msg);
|
||||
errors.push(err instanceof Error ? err.message : String(err));
|
||||
return [] as ButlerProposal[];
|
||||
}),
|
||||
])
|
||||
.then(([pains, props]) => {
|
||||
setPainPoints(pains);
|
||||
setProposals(props);
|
||||
if (errors.length > 0) {
|
||||
setError(errors.join('; '));
|
||||
}
|
||||
})
|
||||
.then(([pains, props]) => {
|
||||
setPainPoints(pains);
|
||||
setProposals(props);
|
||||
|
||||
Reference in New Issue
Block a user