@spader/dotllm 1.2.3 → 1.2.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spader/dotllm",
3
- "version": "1.2.3",
3
+ "version": "1.2.6",
4
4
  "description": "A simple CLI to clone, manage, and link repositories for LLM reference",
5
5
  "type": "module",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "license": "UNLICENSED",
37
37
  "dependencies": {
38
- "@clack/prompts": "^0.10.0",
38
+ "@clack/prompts": "^1.0.1",
39
39
  "picocolors": "^1.1.1",
40
40
  "yargs": "^17.7.2",
41
41
  "zod": "^4.3.6"
@@ -154,7 +154,7 @@ async function run(uri, name, description) {
154
154
  const desc = description ?? seed.description;
155
155
  const result = await add(uri, resolved || undefined, desc || undefined);
156
156
  if (!result.ok) {
157
- spinner2.stop(t.error(result.error), 1);
157
+ spinner2.stop(t.error(result.error));
158
158
  process.exit(1);
159
159
  return;
160
160
  }
@@ -55,14 +55,16 @@ var command = {
55
55
  }
56
56
  const local = Config.Local.read();
57
57
  const current = new Set(Object.keys(local.refs));
58
- const selected = await prompts.multiselect({
58
+ const repos = [...global.repos].sort((a, b) => a.name.localeCompare(b.name));
59
+ const initialValues = repos.filter((r) => current.has(r.name)).map((r) => r.name).sort((a, b) => b.localeCompare(a));
60
+ const selected = await prompts.autocompleteMultiselect({
59
61
  message: "Select repos to link into .llm/reference/",
60
- options: global.repos.map((r) => ({
62
+ options: repos.map((r) => ({
61
63
  value: r.name,
62
64
  label: r.name,
63
65
  hint: r.uri
64
66
  })),
65
- initialValues: global.repos.filter((r) => current.has(r.name)).map((r) => r.name),
67
+ initialValues,
66
68
  required: false
67
69
  });
68
70
  if (prompts.isCancel(selected)) {
@@ -24,7 +24,7 @@ var command = {
24
24
  spinner2.start(`Pulling ${refs.length} linked repo${refs.length === 1 ? "" : "s"}`);
25
25
  const pulled = await pull(refs);
26
26
  if (pulled.failed.length > 0) {
27
- spinner2.stop(t.error(`pull failed for ${pulled.failed.length} repo${pulled.failed.length === 1 ? "" : "s"}`), 1);
27
+ spinner2.stop(t.error(`pull failed for ${pulled.failed.length} repo${pulled.failed.length === 1 ? "" : "s"}`));
28
28
  process.exit(1);
29
29
  return;
30
30
  }