mintree 0.5.0 → 0.5.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.
@@ -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.array(z.string()).describe(argument({
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
@@ -121,7 +124,11 @@ export default function Orchestrate({ args: ids, options }) {
121
124
  resume: false,
122
125
  prompt: resolved.prompt,
123
126
  cwd: resolved.repoRoot,
124
- remoteControlName: "orchestrator",
127
+ // Suffix the fresh session id so two orchestrators (or an
128
+ // orchestrator alongside a stale RC session) never share a name.
129
+ // A literal "orchestrator" collides and the RC handshake fails to
130
+ // register the newer session.
131
+ remoteControlName: `orchestrator-${resolved.sessionId.slice(0, 8)}`,
125
132
  });
126
133
  child.on("error", (err) => {
127
134
  setState({ phase: "error", message: `Failed to launch claude: ${err.message}` });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mintree",
3
- "version": "0.5.0",
3
+ "version": "0.5.3",
4
4
  "description": "Issue-driven git worktrees + Claude Code sessions for repos with an opinionated SDD+TDD flow.",
5
5
  "license": "MIT",
6
6
  "author": "Martin Mineo <mmineo@canarytechnologies.com>",