facult 1.0.3 → 1.1.0

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/src/index.ts CHANGED
@@ -3,7 +3,9 @@
3
3
  import { join } from "node:path";
4
4
  import { getAllAdapters } from "./adapters";
5
5
  import { auditCommand } from "./audit";
6
+ import { autosyncCommand } from "./autosync";
6
7
  import { consolidateCommand } from "./consolidate";
8
+ import { doctorCommand } from "./doctor";
7
9
  import { disableCommand, enableCommand } from "./enable-disable";
8
10
  import type {
9
11
  AgentEntry,
@@ -61,6 +63,7 @@ Usage:
61
63
  facult audit --non-interactive [name|mcp:<name>] [--severity <level>] [--rules <path>] [--from <path>] [--json]
62
64
  facult audit --non-interactive [name|mcp:<name>] --with <claude|codex> [--from <path>] [--max-items <n|all>] [--json]
63
65
  facult migrate [--from <path>] [--dry-run] [--move] [--write-config]
66
+ facult doctor [--repair]
64
67
  facult consolidate [--force] [--auto <mode>] [scan options]
65
68
  facult index [--force]
66
69
  facult list [skills|mcp|agents|snippets] [--enabled-for TOOL] [--untrusted] [--flagged] [--pending] [--json]
@@ -75,6 +78,7 @@ Usage:
75
78
  facult enable <name> [moreNames...] [--for <tools>]
76
79
  facult disable <name> [moreNames...] [--for <tools>]
77
80
  facult sync [tool] [--dry-run]
81
+ facult autosync <cmd> [args...]
78
82
  facult search <query> [--index <name>] [--limit <n>]
79
83
  facult install <index:item> [--as <name>] [--dry-run] [--force] [--strict-source-trust]
80
84
  facult update [--apply] [--strict-source-trust]
@@ -89,7 +93,8 @@ Usage:
89
93
  Commands:
90
94
  scan Scan common config locations (Cursor, Claude, Claude Desktop, etc.)
91
95
  audit Security audits (interactive by default; use --non-interactive for scripts)
92
- migrate Copy/move a legacy canonical store to ~/agents/.facult
96
+ migrate Copy/move a legacy canonical store to the current canonical root
97
+ doctor Inspect and repair local facult state
93
98
  consolidate Deduplicate and copy skills + MCP configs (interactive or --auto)
94
99
  index Build a queryable index from the canonical store (see FACULT_ROOT_DIR)
95
100
  list List indexed skills, MCP servers, agents, or snippets
@@ -103,6 +108,7 @@ Commands:
103
108
  enable Enable skills or MCP servers for tools
104
109
  disable Disable skills or MCP servers for tools
105
110
  sync Sync managed tools with canonical configs
111
+ autosync Install/manage a background autosync service
106
112
  search Search remote indices (builtin + provider aliases + configured)
107
113
  install Install an item from a remote index
108
114
  update Check/apply updates for remotely installed items
@@ -509,6 +515,9 @@ async function main(argv: string[]) {
509
515
  case "migrate":
510
516
  await migrateCommand(rest);
511
517
  return;
518
+ case "doctor":
519
+ await doctorCommand(rest);
520
+ return;
512
521
  case "consolidate":
513
522
  await consolidateCommand(rest);
514
523
  return;
@@ -548,6 +557,9 @@ async function main(argv: string[]) {
548
557
  case "sync":
549
558
  await syncCommand(rest);
550
559
  return;
560
+ case "autosync":
561
+ await autosyncCommand(rest);
562
+ return;
551
563
  case "search":
552
564
  await searchCommand(rest);
553
565
  return;