cnagent 2.2.22 → 2.2.23

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tools/dist/cn.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnagent",
3
- "version": "2.2.22",
3
+ "version": "2.2.23",
4
4
  "description": "Coherent Network agent CLI — everything runs through cn",
5
5
  "keywords": [
6
6
  "cn-agent",
package/tools/dist/cn.js CHANGED
@@ -13667,7 +13667,7 @@ var require_cn_lib = __commonJS({
13667
13667
  );
13668
13668
  }
13669
13669
  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 # Thread creation\n adhoc <title> Create adhoc thread\n daily Create/show daily reflection\n weekly Create/show weekly reflection\n \n # Hub management\n init [name] Create new hub\n setup System setup (logrotate + cron) \xE2\x80\x94 run with sudo\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";
13670
- var version = "2.2.22";
13670
+ var version = "2.2.23";
13671
13671
  module2.exports = {
13672
13672
  starts_with,
13673
13673
  strip_prefix,
@@ -27365,7 +27365,7 @@ function inbox_check(hub_path, name) {
27365
27365
  }
27366
27366
  if (match$1 !== void 0) {
27367
27367
  if (Fs.existsSync(match$1)) {
27368
- exec_in(match$1, "git fetch origin");
27368
+ exec_in(match$1, "git fetch origin --prune");
27369
27369
  const branches = get_inbound_branches(match$1, name);
27370
27370
  if (branches) {
27371
27371
  console.log(warn(Curry._2(Stdlib__Printf.sprintf({
@@ -28068,7 +28068,7 @@ function inbox_process(hub_path) {
28068
28068
  if (!Fs.existsSync(match$1)) {
28069
28069
  return acc;
28070
28070
  }
28071
- exec_in(match$1, "git fetch origin");
28071
+ exec_in(match$1, "git fetch origin --prune");
28072
28072
  const branches = get_inbound_branches(match$1, my_name);
28073
28073
  const files = Stdlib__List.concat_map((function(branch) {
28074
28074
  return materialize_branch(match$1, hub_path, inbox_dir, peer.name, branch);
@@ -37236,7 +37236,7 @@ function run_peer_sync(hub_path) {
37236
37236
  const clone_path = peer.clone;
37237
37237
  if (clone_path !== void 0) {
37238
37238
  if (Fs.existsSync(clone_path)) {
37239
- const match2 = exec_in(clone_path, "git fetch origin && git pull --ff-only");
37239
+ const match2 = exec_in(clone_path, "git fetch origin --prune && git pull --ff-only");
37240
37240
  if (match2 !== void 0) {
37241
37241
  console.log(ok(Curry._1(Stdlib__Printf.sprintf({
37242
37242
  TAG: (