@cleocode/cleo 2026.4.6 → 2026.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +19 -2
- package/dist/cli/index.js.map +3 -3
- package/package.json +7 -7
package/dist/cli/index.js
CHANGED
|
@@ -100475,6 +100475,16 @@ function registerAdrCommand(program) {
|
|
|
100475
100475
|
// packages/cleo/src/cli/commands/agent.ts
|
|
100476
100476
|
init_internal();
|
|
100477
100477
|
init_renderers();
|
|
100478
|
+
|
|
100479
|
+
// packages/cleo/src/cli/commands/agent-profile-status.ts
|
|
100480
|
+
function computeProfileStatus(profile, validation) {
|
|
100481
|
+
if (profile === null) return "none";
|
|
100482
|
+
if (validation === null) return "loaded (unvalidated)";
|
|
100483
|
+
if (validation.valid) return "validated";
|
|
100484
|
+
return `invalid (${validation.errors.length} errors)`;
|
|
100485
|
+
}
|
|
100486
|
+
|
|
100487
|
+
// packages/cleo/src/cli/commands/agent.ts
|
|
100478
100488
|
function registerAgentCommand(program) {
|
|
100479
100489
|
const agent = program.command("agent").description("Agent lifecycle, credentials, and messaging");
|
|
100480
100490
|
agent.command("register").description("Register a new agent credential in the local registry").requiredOption("--id <agentId>", "Unique agent identifier").requiredOption("--name <displayName>", "Human-readable display name").requiredOption("--api-key <apiKey>", "API key (sk_live_...)").option("--api-url <url>", "API base URL", "https://api.signaldock.io").option("--classification <class>", "Agent classification (e.g. code_dev, orchestrator)").option("--privacy <tier>", "Privacy tier: public, discoverable, private", "public").action(async (opts) => {
|
|
@@ -100634,7 +100644,12 @@ agent ${agentId}:
|
|
|
100634
100644
|
process.exitCode = 1;
|
|
100635
100645
|
}
|
|
100636
100646
|
});
|
|
100637
|
-
agent.command("start <agentId>").description(
|
|
100647
|
+
agent.command("start <agentId>").description(
|
|
100648
|
+
"Start an agent daemon \u2014 polls SignalDock for messages. Profile is validated for fail-fast feedback only; CANT execution lives in Pi via cant-bridge.ts."
|
|
100649
|
+
).option(
|
|
100650
|
+
"--cant <file>",
|
|
100651
|
+
"Path to .cant persona file (validated only, NOT executed by the daemon)"
|
|
100652
|
+
).option("--poll-interval <ms>", "Poll interval in milliseconds", "5000").option("--no-heartbeat", "Disable heartbeat service").action(async (agentId, opts) => {
|
|
100638
100653
|
try {
|
|
100639
100654
|
const { AgentRegistryAccessor: AgentRegistryAccessor2, getDb: getDb4 } = await Promise.resolve().then(() => (init_internal(), internal_exports));
|
|
100640
100655
|
const { createRuntime } = await import("@cleocode/runtime");
|
|
@@ -100707,7 +100722,9 @@ agent ${agentId}:
|
|
|
100707
100722
|
displayName: credential.displayName,
|
|
100708
100723
|
status: "online",
|
|
100709
100724
|
transport: runtime.transport.name,
|
|
100710
|
-
|
|
100725
|
+
// Surfaced for operator visibility only — see
|
|
100726
|
+
// computeProfileStatus tsdoc for the four possible values.
|
|
100727
|
+
profile: computeProfileStatus(profile, cantValidation),
|
|
100711
100728
|
services: {
|
|
100712
100729
|
poller: "running",
|
|
100713
100730
|
heartbeat: runtime.heartbeat ? "running" : "disabled",
|