@agentled/cli
Version:
CLI for Agentled — manage workflows, apps, and knowledge from the command line. Zero context-window cost for AI agents.
25 lines (24 loc) • 1.24 kB
TypeScript
/**
* Read the canonical company context text from the workspace KG.
*
* Used by `agentled setup` to decide whether to prompt the user for company
* information or skip straight to "workspace already configured". We probe
* The product stores editable company context at `company.profile` and
* `company.products`. Older CLI setup releases briefly wrote
* `knowledge.company.*`, so those keys are read as aliases only.
*
* Uses the typed `AgentledApiClient.getKnowledgeText` surface. Failures are
* non-fatal: setup must not break on a network blip or a missing endpoint.
*/
import { AgentledApiClient } from '@agentled/core';
export interface KnowledgeProbeResult {
/** Has the user (or an agent) populated the canonical company profile yet? */
profilePresent: boolean;
productsPresent: boolean;
/** Short snippet of the profile if present (first ~120 chars) for the summary line. */
profilePreview?: string;
/** Set if the probe failed entirely (network, permissions). Treat as "unknown". */
error?: string;
}
export declare function probeCompanyKnowledge(client: AgentledApiClient): Promise<KnowledgeProbeResult>;
export declare function summarizeKnowledgeProbe(r: KnowledgeProbeResult): string;