@brainervirus/workit-cli 1.0.5 → 1.0.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.
Files changed (3) hide show
  1. package/README.md +5 -0
  2. package/dist/index.js +17 -14
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -34,6 +34,11 @@ workit # help
34
34
 
35
35
  `workit init` guides you through: platform selection (OpenCode/Cursor), global config (locale, timezone, branch policy), YouTrack, VCS, workspaces (path globs → provider), and project hygiene files. The wizard is a TTY application — `workit init` requires an interactive terminal and prints guidance (exiting nonzero) when stdin is not a TTY.
36
36
 
37
+ The platforms step also always lists Codex and Pi with their detected/configured
38
+ status and separate setup instructions. Init registers only OpenCode/Cursor;
39
+ Codex uses plugin/hooks setup and Pi uses `pi install @brainervirus/workit-pi`.
40
+ Use `workit cutover` for legacy migration.
41
+
37
42
  `workit doctor` checks the offline installation health and exits nonzero when problems are found; `--json` prints the full report as JSON instead of the human-readable table.
38
43
 
39
44
  The task surface exposes the eight shared operation families (`task`, `policy`,
package/dist/index.js CHANGED
@@ -54998,9 +54998,12 @@ function platformOptions(detection) {
54998
54998
  return { label: `${label}${tag}`, value };
54999
54999
  });
55000
55000
  }
55001
- var EXTERNAL_HOST_LABELS = { codex: "Codex", pi: "Pi" };
55002
- function externalDetectedHosts(detection) {
55003
- return Object.keys(EXTERNAL_HOST_LABELS).filter((host) => detection[host].detected).map((host) => EXTERNAL_HOST_LABELS[host]);
55001
+ function externalHostGuidance(detection) {
55002
+ return ["codex", "pi"].map((host) => {
55003
+ const found = detection[host];
55004
+ const status = found.configured ? "already configured" : found.detected ? "detected" : "not detected";
55005
+ return host === "codex" ? `Codex · ${status} — plugin/hooks setup: https://github.com/BrainerVirus/workit#readme (Codex CLI / desktop)` : `Pi · ${status} — install separately: pi install @brainervirus/workit-pi`;
55006
+ });
55004
55007
  }
55005
55008
  var BRANCH_PRESETS = [
55006
55009
  { label: "GitFlow", value: "gitflow" },
@@ -55376,7 +55379,6 @@ function Screen({
55376
55379
  detection = emptyDetection(),
55377
55380
  onSearchQueryChange
55378
55381
  }) {
55379
- const externalDetected = externalDetectedHosts(detection);
55380
55382
  switch (draft.screen) {
55381
55383
  case "platforms":
55382
55384
  return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Box_default, {
@@ -55387,6 +55389,9 @@ function Screen({
55387
55389
  bold: true,
55388
55390
  children: "Step 1 — Platforms"
55389
55391
  }, undefined, false, undefined, this),
55392
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text, {
55393
+ children: "This wizard configures OpenCode and Cursor only."
55394
+ }, undefined, false, undefined, this),
55390
55395
  /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text, {
55391
55396
  dimColor: true,
55392
55397
  children: "Select the tools to configure (space to toggle):"
@@ -55400,14 +55405,13 @@ function Screen({
55400
55405
  dispatch({ type: "next" });
55401
55406
  }
55402
55407
  }, undefined, false, undefined, this),
55403
- externalDetected.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text, {
55408
+ externalHostGuidance(detection).map((guidance) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text, {
55409
+ children: guidance
55410
+ }, guidance, false, undefined, this)),
55411
+ /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text, {
55404
55412
  dimColor: true,
55405
- children: [
55406
- "Detected: ",
55407
- externalDetected.join(", "),
55408
- " — set up via `workit cutover`."
55409
- ]
55410
- }, undefined, true, undefined, this),
55413
+ children: "For legacy installations, use `workit cutover` to preview migration."
55414
+ }, undefined, false, undefined, this),
55411
55415
  draft.errors.platforms && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text, {
55412
55416
  color: "red",
55413
55417
  children: draft.errors.platforms
@@ -58816,10 +58820,9 @@ function evaluateRequirements(task, workspace, capabilities, candidate, checkout
58816
58820
  if (requirement.dimension !== "review")
58817
58821
  return true;
58818
58822
  const reviewSession = sessionFromRef(entry.data.reviewContext);
58819
- const implementationSession = sessionFromRef(task.intent.provenance.session);
58820
- const sameImplementation = sameSession(reviewSession, implementationSession);
58823
+ const sameImplementation = sameSession(reviewSession, task.intent.provenance.session);
58821
58824
  const sameEvidenceSession = task.evidence.some((other) => other.id !== entry.id && sameSession(reviewSession, other.provenance.session));
58822
- return entry.data.kind === "review" && reviewSession !== null && sameSession(reviewSession, entry.provenance.session) && !sameImplementation && !sameEvidenceSession;
58825
+ return entry.data.kind === "review" && reviewSession !== null && sameSession(reviewSession, entry.provenance.session) && (requirement.ruleId === "self-review" || !sameImplementation && !sameEvidenceSession);
58823
58826
  });
58824
58827
  if (passed.length) {
58825
58828
  const withRed = requirement.dimension === "testing" ? passed.filter(({ entry }) => related.some((other) => other.entry.data.kind === "check" && other.evaluation.status === "failed" && other.entry.data.requirementIds.includes(requirement.id) && other.entry.recordedAt <= entry.recordedAt)) : passed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-cli",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
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.5",
41
- "@brainervirus/workit-cursor": "^1.0.5",
42
- "@brainervirus/workit-opencode": "^1.0.5",
40
+ "@brainervirus/workit-core": "^1.0.6",
41
+ "@brainervirus/workit-cursor": "^1.0.6",
42
+ "@brainervirus/workit-opencode": "^1.0.6",
43
43
  "@inkjs/ui": "2.0.0",
44
44
  "ink": "7.1.1",
45
45
  "react": "19.2.8"