cnagent 2.2.11 → 2.2.12
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/package.json +1 -1
- package/tools/dist/cn.js +2 -2
package/package.json
CHANGED
package/tools/dist/cn.js
CHANGED
|
@@ -13618,7 +13618,7 @@ var require_cn_lib = __commonJS({
|
|
|
13618
13618
|
);
|
|
13619
13619
|
}
|
|
13620
13620
|
var help_text = "cn - Coherent Network agent CLI\n\nUsage: cn <command> [options]\n\nCommands:\n # Agent decisions (output)\n delete <thread> GTD: discard\n defer <thread> GTD: postpone\n delegate <t> <peer> GTD: forward\n do <thread> GTD: claim/start\n done <thread> GTD: complete \xE2\x86\x92 archive\n reply <thread> <msg> Append to thread\n send <peer> <msg> Message to peer (or self)\n \n # cn operations (orchestrator)\n sync Fetch inbound + send outbound\n in Queue inbox \xE2\x86\x92 input.md \xE2\x86\x92 wake agent (alias: inbound, process)\n queue [list|clear] View or clear the task queue\n mca [list|add <desc>] Surface MCAs for community pickup\n inbox List inbox threads\n outbox List outbox threads\n next Get next inbox item (with cadence)\n read <thread> Read thread with cadence\n \n # Hub management\n init [name] Create new hub\n status Show hub state\n commit [msg] Stage + commit\n push Push to origin\n save [msg] Commit + push\n peer Manage peers\n doctor Health check\n update Update cn to latest version\n\nAliases:\n i = inbox, o = outbox, s = status, d = doctor\n\nFlags:\n --help, -h Show help\n --version, -V Show version\n --json Machine-readable output\n --quiet, -q Minimal output\n --dry-run Show what would happen\n\nActor Model:\n cn runs on cron (every 5 min). It:\n 1. Syncs peers \xE2\x86\x92 queues new inbox items to state/queue/\n 2. If input.md empty \xE2\x86\x92 pops from queue \xE2\x86\x92 writes input.md \xE2\x86\x92 wakes agent\n Agent reads input.md, processes, deletes when done.\n";
|
|
13621
|
-
var version = "2.2.
|
|
13621
|
+
var version = "2.2.12";
|
|
13622
13622
|
module2.exports = {
|
|
13623
13623
|
starts_with,
|
|
13624
13624
|
strip_prefix,
|
|
@@ -27111,7 +27111,6 @@ function reject_orphan_branch(hub_path, peer_name, branch) {
|
|
|
27111
27111
|
const prim0 = Path.join(outbox_dir, filename);
|
|
27112
27112
|
Fs.writeFileSync(prim0, content);
|
|
27113
27113
|
}
|
|
27114
|
-
delete_remote_branch(hub_path, branch);
|
|
27115
27114
|
log_action(hub_path, "inbox.reject", Curry._3(Stdlib__Printf.sprintf({
|
|
27116
27115
|
TAG: (
|
|
27117
27116
|
/* Format */
|
|
@@ -27537,6 +27536,7 @@ function inbox_check(hub_path, name) {
|
|
|
27537
27536
|
function materialize_branch(clone_path, hub_path, inbox_dir, peer_name, branch) {
|
|
27538
27537
|
if (is_orphan_branch(clone_path, branch)) {
|
|
27539
27538
|
reject_orphan_branch(hub_path, peer_name, branch);
|
|
27539
|
+
delete_remote_branch(clone_path, branch);
|
|
27540
27540
|
return (
|
|
27541
27541
|
/* [] */
|
|
27542
27542
|
0
|