mintree 0.5.0 → 0.5.2
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const description = "Launch a Claude orchestrator in the repo root to resolve a batch of tickets";
|
|
3
|
-
export declare const args: z.ZodArray<z.ZodString
|
|
3
|
+
export declare const args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4
4
|
export declare const options: z.ZodObject<{
|
|
5
5
|
prompt: z.ZodOptional<z.ZodString>;
|
|
6
6
|
promptFile: z.ZodOptional<z.ZodString>;
|
|
@@ -11,9 +11,12 @@ import { readMetadata } from "../lib/metadata.js";
|
|
|
11
11
|
import { launchClaude, PERMISSION_MODES } from "../lib/claude.js";
|
|
12
12
|
import { defaultOrchestratorPrompt, renderOrchestratorTemplate } from "../lib/promptTemplate.js";
|
|
13
13
|
export const description = "Launch a Claude orchestrator in the repo root to resolve a batch of tickets";
|
|
14
|
-
export const args = z
|
|
14
|
+
export const args = z
|
|
15
|
+
.array(z.string())
|
|
16
|
+
.default([])
|
|
17
|
+
.describe(argument({
|
|
15
18
|
name: "ids",
|
|
16
|
-
description: "Ticket ids to orchestrate (e.g. VAL-81 VAL-84). Renders the orchestratorPromptTemplate (or the built-in default). Ignored when --prompt / --prompt-file is given.",
|
|
19
|
+
description: "Ticket ids to orchestrate (e.g. VAL-81 VAL-84). Renders the orchestratorPromptTemplate (or the built-in default). Ignored when --prompt / --prompt-file is given. Optional: the dashboard hands the prompt over via --prompt-file with no positional ids.",
|
|
17
20
|
}));
|
|
18
21
|
export const options = z.object({
|
|
19
22
|
prompt: z
|
|
@@ -21,7 +21,10 @@ import { readMetadata } from "../metadata.js";
|
|
|
21
21
|
const DEFAULT_API_URL = "https://api.linear.app/graphql";
|
|
22
22
|
// Linear state types we treat as "done" — work in these states is excluded
|
|
23
23
|
// from the assigned list and protected from transitions back to In Progress.
|
|
24
|
-
|
|
24
|
+
// "duplicate" is Linear's own state type for issues closed as duplicates
|
|
25
|
+
// (e.g. a "Duplicate" workflow state); it must be excluded alongside
|
|
26
|
+
// completed/canceled or those tickets keep showing up in the dashboard.
|
|
27
|
+
const DEFAULT_PROTECTED_STATE_TYPES = ["completed", "canceled", "duplicate"];
|
|
25
28
|
const STATUS_ORDER_UNSET = 999;
|
|
26
29
|
// One query covers viewer + teams + issues; a single 20s budget comfortably
|
|
27
30
|
// fits even the slowest cold-start response without making real failures
|
|
@@ -261,7 +264,7 @@ const BOOTSTRAP_QUERY = /* GraphQL */ `
|
|
|
261
264
|
first: 100
|
|
262
265
|
filter: {
|
|
263
266
|
assignee: { isMe: { eq: true } }
|
|
264
|
-
state: { type: { nin: ["completed", "canceled"] } }
|
|
267
|
+
state: { type: { nin: ["completed", "canceled", "duplicate"] } }
|
|
265
268
|
team: { key: { in: $teamKeys } }
|
|
266
269
|
}
|
|
267
270
|
) {
|
package/package.json
CHANGED