@brainervirus/workit-cli 1.0.2 → 1.0.3

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/dist/index.js +13 -9
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -54790,9 +54790,10 @@ function SearchSelect({
54790
54790
  onQueryChange
54791
54791
  }) {
54792
54792
  const [query, setQuery] = import_react65.useState("");
54793
- const filtered = import_react65.useMemo(() => filterOptions(options, query), [options, query]);
54793
+ const filtered = import_react65.useMemo(() => filterOptions(options, query, Infinity), [options, query]);
54794
54794
  const [rawIndex, setRawIndex] = import_react65.useState(() => Math.max(0, options.findIndex((option) => option.value === value)));
54795
54795
  const index = Math.min(rawIndex, Math.max(0, filtered.length - 1));
54796
+ const offset = Math.max(0, index - VISIBLE_ROWS + 1);
54796
54797
  use_input_default((input, key) => {
54797
54798
  const type = (next) => {
54798
54799
  onQueryChange?.(next);
@@ -54824,10 +54825,10 @@ function SearchSelect({
54824
54825
  filtered.length === 0 ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text, {
54825
54826
  dimColor: true,
54826
54827
  children: "No matches"
54827
- }, undefined, false, undefined, this) : filtered.map((option, i) => /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text, {
54828
- color: i === index ? "cyan" : "dim",
54828
+ }, undefined, false, undefined, this) : filtered.slice(offset, offset + VISIBLE_ROWS).map((option, i) => /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text, {
54829
+ color: i + offset === index ? "cyan" : "dim",
54829
54830
  children: [
54830
- i === index ? "❯ " : " ",
54831
+ i + offset === index ? "❯ " : " ",
54831
54832
  option.label
54832
54833
  ]
54833
54834
  }, option.value, true, undefined, this))
@@ -55834,23 +55835,26 @@ function Screen({
55834
55835
  /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text, {
55835
55836
  dimColor: true,
55836
55837
  children: [
55837
- "Will apply gitignore + hygiene in ",
55838
+ "Apply gitignore + hygiene in ",
55838
55839
  resolveBasePath(draft.values),
55839
- " (existing files are never overwritten):"
55840
+ "? (Existing files are never overwritten.)"
55840
55841
  ]
55841
55842
  }, undefined, true, undefined, this),
55842
55843
  /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ConfirmInput, {
55843
- defaultChoice: "confirm",
55844
+ defaultChoice: "cancel",
55844
55845
  submitOnEnter: false,
55845
55846
  onConfirm: () => {
55846
55847
  dispatch({ type: "set", field: "applyProject", value: true });
55847
55848
  dispatch({ type: "next" });
55848
55849
  },
55849
- onCancel: () => {}
55850
+ onCancel: () => {
55851
+ dispatch({ type: "set", field: "applyProject", value: false });
55852
+ dispatch({ type: "next" });
55853
+ }
55850
55854
  }, undefined, false, undefined, this),
55851
55855
  /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text, {
55852
55856
  dimColor: true,
55853
- children: "y to continue · n to stay · b Back · Esc Cancel"
55857
+ children: "y to add project files · n to skip · b Back · Esc Cancel"
55854
55858
  }, undefined, false, undefined, this)
55855
55859
  ]
55856
55860
  }, undefined, true, undefined, this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "description": "Workit CLI — setup wizard, doctor, and task control for agentic coding workflows",
6
6
  "keywords": [
@@ -37,9 +37,9 @@
37
37
  "typecheck": "tsc --noEmit"
38
38
  },
39
39
  "dependencies": {
40
- "@brainervirus/workit-core": "^1.0.2",
41
- "@brainervirus/workit-cursor": "^1.0.2",
42
- "@brainervirus/workit-opencode": "^1.0.2",
40
+ "@brainervirus/workit-core": "^1.0.3",
41
+ "@brainervirus/workit-cursor": "^1.0.3",
42
+ "@brainervirus/workit-opencode": "^1.0.3",
43
43
  "@inkjs/ui": "2.0.0",
44
44
  "ink": "7.1.1",
45
45
  "react": "19.2.8"