@mhmdreza-rafiei/agentry 0.2.0 → 0.2.2

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.
@@ -1,16 +1,26 @@
1
1
  import c from "picocolors";
2
+ function fgSky(s) {
3
+ return `\x1b[38;2;56;189;248m${s}\x1b[0m`;
4
+ }
5
+ function bgSky(s) {
6
+ return `\x1b[48;2;14;165;233m${s}\x1b[0m`;
7
+ }
8
+ const sky = Object.assign((s) => fgSky(s), {
9
+ bold: (s) => c.bold(fgSky(s)),
10
+ bg: (s) => bgSky(s)
11
+ });
2
12
  const PALETTE = {
3
- primary: c.blue,
13
+ primary: sky,
4
14
  success: c.green,
5
15
  error: c.red,
6
16
  warn: c.yellow,
7
- info: c.blue,
17
+ info: sky,
8
18
  dim: c.dim,
9
19
  bold: c.bold,
10
20
  text: c.white
11
21
  };
12
22
  const theme = PALETTE;
13
- c.blue(process.stdout.isTTY ? "✓" : "v"), c.red(process.stdout.isTTY ? "✗" : "x"), c.yellow(process.stdout.isTTY ? "⚠" : "!"), c.blue(process.stdout.isTTY ? "ℹ" : "i"), process.stdout.isTTY, process.stdout.isTTY, process.stdout.isTTY;
23
+ sky(process.stdout.isTTY ? "✓" : "v"), c.red(process.stdout.isTTY ? "✗" : "x"), c.yellow(process.stdout.isTTY ? "⚠" : "!"), sky(process.stdout.isTTY ? "ℹ" : "i"), process.stdout.isTTY, process.stdout.isTTY, process.stdout.isTTY;
14
24
  const RESET = "\x1B[0m";
15
25
  const GRAYS = [
16
26
  "\x1B[38;5;255m",
@@ -44,7 +54,7 @@ function tagline() {
44
54
  return c.dim(" Install agents, skills, rules & profiles");
45
55
  }
46
56
  function badge() {
47
- return c.bgBlue(c.white(c.bold(" Agentry ")));
57
+ return bgSky(c.white(c.bold(" Agentry ")));
48
58
  }
49
59
  function delay(ms) {
50
60
  return new Promise((r) => setTimeout(r, ms));
@@ -55,19 +65,19 @@ async function animateLogo() {
55
65
  if (process.stdout.isTTY) await delay(280);
56
66
  }
57
67
  function h(title) {
58
- return c.bold(c.blue(title));
68
+ return c.bold(sky(title));
59
69
  }
60
70
  function cmd(s) {
61
71
  return c.cyan(s);
62
72
  }
63
73
  function flag(s) {
64
- return c.blue(s);
74
+ return sky(s);
65
75
  }
66
76
  function dim(s) {
67
77
  return c.dim(s);
68
78
  }
69
79
  function bullet(s) {
70
- return ` ${c.blue("•")} ${s}`;
80
+ return ` ${sky("•")} ${s}`;
71
81
  }
72
82
  function printHelp() {
73
83
  const lines = [
@@ -77,9 +87,10 @@ function printHelp() {
77
87
  h("Usage"),
78
88
  ` ${cmd("agentry")} ${flag("add")} ${dim("<kind> <source> [selector] [options]")}`,
79
89
  ` ${cmd("agentry")} ${flag("add")} ${dim("profile <name> [source] [options]")}`,
80
- ` ${cmd("agentry")} ${flag("remove")} ${dim("<kind> [selector] [options]")}`,
81
- ` ${cmd("agentry")} ${flag("list")} ${dim("[source] [kind]")}`,
90
+ ` ${cmd("agentry")} ${flag("remove")} ${dim("<kind> [source] [selector] [options]")}`,
91
+ ` ${cmd("agentry")} ${flag("list")} ${dim("[source] [kind] [selector]")}`,
82
92
  ` ${cmd("agentry")} ${flag("update")} ${dim("[kind] [source] [selector]")}`,
93
+ ` ${cmd("agentry")} ${flag("init")} ${dim("<kind> [name] [category] [options]")}`,
83
94
  ` ${cmd("agentry")} ${flag("uninstall")}`,
84
95
  "",
85
96
  h("Kinds"),
@@ -94,30 +105,45 @@ function printHelp() {
94
105
  bullet(`${cmd("./path")} ${dim("|")} ${cmd("/path")} ${dim("|")} ${cmd("~/path")} ${dim("local directory")}`),
95
106
  "",
96
107
  h("Examples"),
97
- bullet(`${cmd("agentry add skills")} Prat011/awesome-llm-skills`),
98
- bullet(`${cmd("agentry add skills")} ./my-skills ${flag("--list")}`),
99
- bullet(`${cmd("agentry add skills")} ./my-skills enhance-prompt ${flag("-a")} cursor ${flag("-a")} claude-code`),
100
- bullet(`${cmd("agentry add agents")} author/repo frontend-developer`),
101
- bullet(`${cmd("agentry add profile")} frontend author/repo`),
108
+ bullet(`${cmd("agentry add skills")} mhmdreza-rafiei/agent-tools`),
109
+ bullet(`${cmd("agentry add skills")} mhmdreza-rafiei/agent-tools enhance-prompt ${flag("-a")} cursor`),
110
+ bullet(`${cmd("agentry list")}`),
111
+ bullet(`${cmd("agentry list skills")}`),
112
+ bullet(`${cmd("agentry list")} mhmdreza-rafiei/agent-tools`),
113
+ bullet(`${cmd("agentry list")} mhmdreza-rafiei/agent-tools skills`),
114
+ bullet(`${cmd("agentry list")} mhmdreza-rafiei/agent-tools skills enhance-prompt`),
102
115
  bullet(`${cmd("agentry remove skills")} enhance-prompt`),
116
+ bullet(`${cmd("agentry remove skills")} mhmdreza-rafiei/agent-tools`),
117
+ bullet(`${cmd("agentry update skills")} mhmdreza-rafiei/agent-tools`),
118
+ bullet(`${cmd("agentry init skill")} enhance-prompt prompt ${flag("--reference")}`),
119
+ bullet(`${cmd("agentry init profile")} frontend ${flag("--skills")} mhmdreza-rafiei/agent-tools`),
120
+ bullet(`${cmd("agentry init rule")} ask-dont-guess ${flag("--alwaysApply")}`),
103
121
  bullet(`${cmd("agentry update")}`),
104
- bullet(`${cmd("agentry update skills")} author/repo enhance-prompt`),
105
122
  "",
106
123
  h("Options"),
107
124
  ` ${flag("-g, --global")} ${dim("Install into ~ (all projects)")}`,
108
- ` ${flag("--project")} ${dim("Install into the current folder (default)")}`,
109
- ` ${flag("--dir")} ${dim("<p>")} ${dim("Install into a specific folder")}`,
125
+ ` ${flag("-p, --project")} ${dim("Install into the current folder")}`,
126
+ ` ${flag("-d, --dir")} ${dim("<p>")} ${dim("Install into a specific folder")}`,
110
127
  ` ${flag("-a, --agent")} ${dim("<n>")} ${dim("Target provider(s); repeatable; '*' = all")}`,
111
128
  ` ${flag("-l, --list")} ${dim("Preview only — write nothing")}`,
112
129
  ` ${flag("--copy")} ${dim("Copy files instead of symlinking")}`,
113
130
  ` ${flag("--all")} ${dim("Install everything to all agents, no prompts")}`,
114
- ` ${flag("-y, --yes")} ${dim("Don't prompt")}`,
131
+ ` ${flag("-y, --yes")} ${dim("Don't prompt (scope defaults to project)")}`,
132
+ ` ${flag("--description")} ${dim("<t>")} ${dim("init: frontmatter description")}`,
133
+ ` ${flag("--alwaysApply")} ${dim("init rule: alwaysApply: true")}`,
134
+ ` ${flag("--reference")} ${dim("init skill: add references/TEMPLATE.md")}`,
135
+ ` ${flag("--no-reference")} ${dim("init skill: skip references/")}`,
136
+ ` ${flag("--skills")} ${dim("[src]")} ${dim("init profile: include skills (optional source)")}`,
137
+ ` ${flag("--agents")} ${dim("[src]")} ${dim("init profile: include agents")}`,
138
+ ` ${flag("--rules")} ${dim("[src]")} ${dim("init profile: include rules")}`,
139
+ ` ${flag("--scripts")} ${dim("[src]")} ${dim("init profile: include scripts")}`,
115
140
  ` ${flag("-v, --version")} ${dim("Print version")}`,
116
141
  ` ${flag("-h, --help")} ${dim("Show this help")}`,
117
142
  "",
118
143
  dim("Tip: omit --agent to pick providers interactively (universal locked + searchable list)."),
144
+ dim("Tip: remove/update accept a GitHub repo or local path to filter by install source."),
119
145
  ""
120
146
  ];
121
147
  process.stdout.write(lines.join("\n"));
122
148
  }
123
- export { PALETTE, animateLogo, badge, delay, logo, printHelp, tagline, theme };
149
+ export { PALETTE, animateLogo, badge, delay, logo, printHelp, sky, tagline, theme };