@jentrix/cli 0.5.4 → 0.5.5

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/main.js +14 -4
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -20959,7 +20959,7 @@ function refreshAccessToken(input) {
20959
20959
 
20960
20960
  // src/client.ts
20961
20961
  var CLI_NAME = "stacks-cli";
20962
- var CLI_VERSION = "0.5.4";
20962
+ var CLI_VERSION = "0.5.5";
20963
20963
  var DEAD_TOKEN_MESSAGE = "authentication failed (HTTP 401): the token is dead or expired \u2014 mint a new PAT at /account/tokens on your Jentrix server and update STACKS_TOKEN (or --token / the config file).";
20964
20964
  var RELOGIN_MESSAGE = "OAuth session expired and could not be refreshed \u2014 run `jentrix login` to sign in again.";
20965
20965
  function originOf2(url2) {
@@ -23541,10 +23541,20 @@ var MAX_WORK_ITEMS = 15;
23541
23541
  async function projectBoards(caller, projectId) {
23542
23542
  const project = await callStructured(caller, "get_project", { projectId });
23543
23543
  const links = project.links ?? [];
23544
+ const workspaceId = String(project.workspaceId);
23545
+ const linkedBoardIds = links.filter((link) => link.targetType === "BOARD").map((link) => link.targetId);
23546
+ let liveBoardIds = new Set(linkedBoardIds);
23547
+ if (linkedBoardIds.length > 0) {
23548
+ const boards = (await callStructured(caller, "list_boards", { workspaceId })).boards ?? [];
23549
+ liveBoardIds = new Set(
23550
+ boards.filter((b) => !b.archivedAt).map((b) => String(b.id))
23551
+ );
23552
+ }
23544
23553
  return {
23545
- workspaceId: String(project.workspaceId),
23554
+ workspaceId,
23546
23555
  name: String(project.name),
23547
- boardIds: links.filter((link) => link.targetType === "BOARD").map((link) => link.targetId),
23556
+ boardIds: linkedBoardIds.filter((id) => liveBoardIds.has(id)),
23557
+ staleBoardIds: linkedBoardIds.filter((id) => !liveBoardIds.has(id)),
23548
23558
  repoOwners: links.filter((link) => link.targetType === "REPO").map((link) => link.targetId.trim().toLowerCase())
23549
23559
  };
23550
23560
  }
@@ -24025,7 +24035,7 @@ ${JSON.stringify(session.alignment, null, 2)}`
24025
24035
  targetId: boardId
24026
24036
  });
24027
24037
  deps2.writeOut(
24028
- `Project "${project.name}" linked no board \u2014 created board "${project.name}" and linked it.`
24038
+ project.staleBoardIds.length > 0 ? `Project "${project.name}" linked ${project.staleBoardIds.length === 1 ? "a board that no longer exists" : "only boards that no longer exist"} (${project.staleBoardIds.join(", ")}) \u2014 created board "${project.name}" and linked it.` : `Project "${project.name}" linked no board \u2014 created board "${project.name}" and linked it.`
24029
24039
  );
24030
24040
  }
24031
24041
  const columns = await callStructured(caller, "list_columns", { boardId });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jentrix/cli",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Command-line client for the Jentrix MCP surface (jentrix tool <name>, generated noun-verb commands).",
5
5
  "keywords": [
6
6
  "jentrix",