ultraplan 0.1.1 → 0.1.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.
package/dist/cli.cjs CHANGED
@@ -14087,7 +14087,9 @@ Then ask: "What do you want to build or change?"
14087
14087
 
14088
14088
  ## Phase 3: Deep Interview
14089
14089
 
14090
- Interview the user relentlessly. You now know the codebase \u2014 use that knowledge to ask sharp questions:
14090
+ Interview the user relentlessly. You now know the codebase \u2014 use that knowledge to ask sharp questions.
14091
+
14092
+ IMPORTANT: When asking the user questions, ALWAYS use the askQuestion tool to present structured multiple-choice options. Do NOT ask open-ended questions as plain text. Format every question with clear, concrete options the user can pick from. You may include an "Other" option for cases where none of the choices fit. Batch related questions together into a single askQuestion call when possible.
14091
14093
 
14092
14094
  1. Ask what they want to build. Listen carefully.
14093
14095
  2. Probe the design: "Given your current [architecture pattern], would you want to [approach A] or [approach B]?"
@@ -14259,10 +14261,9 @@ var handleError = (error48) => {
14259
14261
  };
14260
14262
 
14261
14263
  // src/commands/create.ts
14262
- var spawnAgent = (agent, args, cwd) => new Promise((resolve) => {
14263
- const child = child_process.spawn(agent, args, { cwd, stdio: "inherit" });
14264
- child.on("close", () => resolve());
14265
- });
14264
+ var spawnAgent = (agent, args, cwd) => {
14265
+ child_process.spawnSync(agent, args, { cwd, stdio: "inherit" });
14266
+ };
14266
14267
  var copyToClipboard = (text) => {
14267
14268
  for (const command of ["pbcopy", "xclip -selection clipboard"]) {
14268
14269
  try {
@@ -14285,7 +14286,7 @@ var create = new commander.Command().name("create").description("create a plan b
14285
14286
  createInitialPrompt(draftDir),
14286
14287
  createSkillPrompt(draftDir)
14287
14288
  );
14288
- await spawnAgent(agent, agentArgs, projectCwd);
14289
+ spawnAgent(agent, agentArgs, projectCwd);
14289
14290
  let mdPath;
14290
14291
  try {
14291
14292
  mdPath = await findMarkdownPath(projectCwd);
@@ -14493,11 +14494,11 @@ var prompt = new commander.Command().name("prompt").description("generate an age
14493
14494
  });
14494
14495
 
14495
14496
  // src/cli.ts
14496
- var VERSION = "0.1.1";
14497
+ var VERSION = "0.1.2";
14497
14498
  process.on("SIGINT", () => process.exit(0));
14498
14499
  process.on("SIGTERM", () => process.exit(0));
14499
14500
  var program = new commander.Command().name("ultraplan").description("agent-driven planning").version(VERSION, "-v, --version", "display the version number");
14500
- program.addCommand(create);
14501
+ program.addCommand(create, { isDefault: true });
14501
14502
  program.addCommand(list);
14502
14503
  program.addCommand(show);
14503
14504
  program.addCommand(prompt);
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
- import { spawn, spawnSync, execSync } from 'child_process';
3
+ import { spawnSync, execSync } from 'child_process';
4
4
  import { mkdir, readFile, readdir, access, rename, utimes, rm, stat, writeFile } from 'fs/promises';
5
5
  import { join, dirname } from 'path';
6
6
  import pc4 from 'picocolors';
@@ -14080,7 +14080,9 @@ Then ask: "What do you want to build or change?"
14080
14080
 
14081
14081
  ## Phase 3: Deep Interview
14082
14082
 
14083
- Interview the user relentlessly. You now know the codebase \u2014 use that knowledge to ask sharp questions:
14083
+ Interview the user relentlessly. You now know the codebase \u2014 use that knowledge to ask sharp questions.
14084
+
14085
+ IMPORTANT: When asking the user questions, ALWAYS use the askQuestion tool to present structured multiple-choice options. Do NOT ask open-ended questions as plain text. Format every question with clear, concrete options the user can pick from. You may include an "Other" option for cases where none of the choices fit. Batch related questions together into a single askQuestion call when possible.
14084
14086
 
14085
14087
  1. Ask what they want to build. Listen carefully.
14086
14088
  2. Probe the design: "Given your current [architecture pattern], would you want to [approach A] or [approach B]?"
@@ -14252,10 +14254,9 @@ var handleError = (error48) => {
14252
14254
  };
14253
14255
 
14254
14256
  // src/commands/create.ts
14255
- var spawnAgent = (agent, args, cwd) => new Promise((resolve) => {
14256
- const child = spawn(agent, args, { cwd, stdio: "inherit" });
14257
- child.on("close", () => resolve());
14258
- });
14257
+ var spawnAgent = (agent, args, cwd) => {
14258
+ spawnSync(agent, args, { cwd, stdio: "inherit" });
14259
+ };
14259
14260
  var copyToClipboard = (text) => {
14260
14261
  for (const command of ["pbcopy", "xclip -selection clipboard"]) {
14261
14262
  try {
@@ -14278,7 +14279,7 @@ var create = new Command().name("create").description("create a plan by analyzin
14278
14279
  createInitialPrompt(draftDir),
14279
14280
  createSkillPrompt(draftDir)
14280
14281
  );
14281
- await spawnAgent(agent, agentArgs, projectCwd);
14282
+ spawnAgent(agent, agentArgs, projectCwd);
14282
14283
  let mdPath;
14283
14284
  try {
14284
14285
  mdPath = await findMarkdownPath(projectCwd);
@@ -14486,11 +14487,11 @@ var prompt = new Command().name("prompt").description("generate an agent-ready p
14486
14487
  });
14487
14488
 
14488
14489
  // src/cli.ts
14489
- var VERSION = "0.1.1";
14490
+ var VERSION = "0.1.2";
14490
14491
  process.on("SIGINT", () => process.exit(0));
14491
14492
  process.on("SIGTERM", () => process.exit(0));
14492
14493
  var program = new Command().name("ultraplan").description("agent-driven planning").version(VERSION, "-v, --version", "display the version number");
14493
- program.addCommand(create);
14494
+ program.addCommand(create, { isDefault: true });
14494
14495
  program.addCommand(list);
14495
14496
  program.addCommand(show);
14496
14497
  program.addCommand(prompt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultraplan",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "bin": {
5
5
  "ultraplan": "./dist/cli.js"
6
6
  },