@allocator-one/harness-cli 1.7.0 → 1.8.0

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.
@@ -1176,6 +1176,8 @@ function listParams(ctx, opts) {
1176
1176
  params = putParam(params, "label", opts.label);
1177
1177
  params = putParam(params, "scope", opts.scope);
1178
1178
  params = putParam(params, "assignee", opts.assignee);
1179
+ params = putParam(params, "created_by", opts.createdBy);
1180
+ params = putParam(params, "involved", opts.involved);
1179
1181
  if (opts.type !== void 0) params = putParam(params, "label", `type/${opts.type}`);
1180
1182
  if (opts.status !== void 0) {
1181
1183
  const stateTypes = Object.hasOwn(STATUS_STATE_TYPES, opts.status) ? STATUS_STATE_TYPES[opts.status] : void 0;
package/dist/cli.js CHANGED
@@ -80,7 +80,7 @@ import {
80
80
  version,
81
81
  workflowStates,
82
82
  writeCredentials
83
- } from "./chunk-ZHFW6PRC.js";
83
+ } from "./chunk-NQVQNKMC.js";
84
84
 
85
85
  // src/cli.ts
86
86
  import { createInterface as createInterface2 } from "readline";
@@ -1159,6 +1159,9 @@ program.command("blocked").description("issues waiting on a blocker").option("--
1159
1159
  program.command("list").description("list issues with filters").option("--status <status>", "open | in_progress | closed").option(
1160
1160
  "--assignee <who>",
1161
1161
  'me, a user id, an email, or a full name; "" for unassigned'
1162
+ ).option("--created-by <who>", "me or a creator user id").option(
1163
+ "--involved <who>",
1164
+ "me for issues created by, assigned to, or mentioning you"
1162
1165
  ).option("--priority <name>", "urgent | high | medium | low | none").option("--label <name>", "label filter").option("--type <type>", "task | bug | feature | epic").option("--search <query>", "full-text search").option("--team <key>", "team filter").option("--parent <id>", "children of an epic").option("--scope <scope>", "all | archived").option("--limit <n>", "page size", integer).option("--page <n>", "page number", integer).option("--all", "follow every page").option("--json", "emit JSON").action(async (opts) => {
1163
1166
  await withConfig(
1164
1167
  opts.json === true,
@@ -1655,7 +1658,7 @@ program.command("upload").description("upload a file; prints markdown to referen
1655
1658
  });
1656
1659
  });
1657
1660
  program.command("mcp").description("run the MCP server over stdio (for agents)").action(async () => {
1658
- const { startMcpServer } = await import("./server-J6FQFVBJ.js");
1661
+ const { startMcpServer } = await import("./server-FWNT3HMX.js");
1659
1662
  await startMcpServer();
1660
1663
  });
1661
1664
  program.command("login").description("sign in via the browser (infra.one session)").option("--url <url>", "host to sign in to").option("--no-browser", "print the URL and prompt for a pasted token instead").option(
@@ -59,7 +59,7 @@ import {
59
59
  upload,
60
60
  userList,
61
61
  workflowStates
62
- } from "./chunk-ZHFW6PRC.js";
62
+ } from "./chunk-NQVQNKMC.js";
63
63
 
64
64
  // src/mcp/server.ts
65
65
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -121,6 +121,8 @@ var TOOLS = [
121
121
  blocked: z.boolean().optional(),
122
122
  status: z.enum(["open", "in_progress", "closed"]).optional(),
123
123
  assignee: z.string().optional().describe('me, a user id, an email, or a full name; "" for unassigned'),
124
+ created_by: z.string().optional().describe("me or a creator user id"),
125
+ involved: z.literal("me").optional().describe("issues created by, assigned to, or mentioning the caller"),
124
126
  priority: z.enum(["urgent", "high", "medium", "low", "none"]).optional(),
125
127
  label: z.string().optional(),
126
128
  type: z.enum(["task", "bug", "feature", "epic"]).optional(),
@@ -133,9 +135,10 @@ var TOOLS = [
133
135
  if (args["ready"] === true && args["blocked"] === true) {
134
136
  throw new UsageError("ready and blocked are mutually exclusive \u2014 pass one, not both");
135
137
  }
136
- if (args["ready"] === true) return ready(ctx, args);
137
- if (args["blocked"] === true) return blocked(ctx, args);
138
- return list(ctx, args);
138
+ const opts = { ...args, createdBy: args["created_by"] };
139
+ if (args["ready"] === true) return ready(ctx, opts);
140
+ if (args["blocked"] === true) return blocked(ctx, opts);
141
+ return list(ctx, opts);
139
142
  }
140
143
  },
141
144
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allocator-one/harness-cli",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "CLI and MCP server for Harness, allocator.one's issue tracker",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/spec/openapi.json CHANGED
@@ -567,6 +567,15 @@
567
567
  "type": "string"
568
568
  }
569
569
  },
570
+ {
571
+ "description": "\"me\" keeps issues created by, assigned to, or mentioning the token owner",
572
+ "in": "query",
573
+ "name": "involved",
574
+ "required": false,
575
+ "schema": {
576
+ "type": "string"
577
+ }
578
+ },
570
579
  {
571
580
  "description": "Filter by priority (0-4)",
572
581
  "in": "query",