maistro 1.2.3 → 1.2.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.
package/dist/app.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAiOA,qBAAa,UAAU;IACrB,OAAO,CAAC,EAAE,CAAgB;IAC1B,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,aAAa,CAAS;IAG9B,OAAO,CAAC,cAAc,CAA+B;gBAEzC,WAAW,GAAE,MAAY;IAsBrC,OAAO,CAAC,eAAe;IASvB;;;OAGG;YACW,qBAAqB;IA+CnC;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAoH5B;;;OAGG;YACW,iBAAiB;IAiE/B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IA4C1B;;;OAGG;IACG,YAAY,CAAC,SAAS,UAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAqFtD;;;OAGG;YACW,iBAAiB;IAwD/B;;OAEG;YACW,sBAAsB;IAsCpC;;;OAGG;YACW,iBAAiB;IAoB/B;;;OAGG;YACW,oBAAoB;IAkClC;;OAEG;YACW,qBAAqB;IA4BnC;;OAEG;YACW,gBAAgB;IAoB9B;;;OAGG;YACW,qBAAqB;IAoEnC;;;OAGG;YACW,eAAe;IA8G7B;;;OAGG;YACW,uBAAuB;IAyErC;;OAEG;YACW,4BAA4B;IAiE1C;;OAEG;YACW,oBAAoB;IAgElC;;OAEG;IACH,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,UAAU;IAQlB;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IA2J7B,OAAO,CAAC,iBAAiB,CAAM;IAC/B,OA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M;IAC1B,OAAO,CAAC,aAAa,CAAS;IAE9B;;OAEG;YACW,gBAAgB;IAkB9B;;OAEG;YACW,gBAAgB;IAe9B;;;OAGG;YACW,WAAW;IAsEzB;;;OAGG;YACW,mBAAmB;IA8BjC;;;OAGG;YACW,cAAc;IAkB5B;;;;OAIG;YACW,6BAA6B;IAqI3C;;;OAGG;YACW,aAAa;IA+B3B;;;;OAIG;YACW,sBAAsB;IA4PpC;;;;OAIG;YACW,sBAAsB;YA0GtB,UAAU;IA4HxB,OAAO,CAAC,YAAY;IAmFpB;;;OAGG;YACW,eAAe;IAqD7B;;OAEG;YACW,cAAc;IAsO5B;;OAEG;YACW,oBAAoB;IAwBlC;;OAEG;YACW,eAAe;IAU7B;;OAEG;YACW,wBAAwB;YAsBxB,gBAAgB;IA4B9B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsD;IAEpF;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAoB3B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAO1B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAKzB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAqB5B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAQ/B;;OAEG;IACH,OAAO,CAAC,eAAe;IASvB;;OAEG;IACH,OAAO,CAAC,sBAAsB;YAoEhB,SAAS;YAiIT,sBAAsB;CAkcrC"}
package/dist/app.js CHANGED
@@ -5,7 +5,7 @@ import { homedir } from 'node:os';
5
5
  import { exec, spawn } from 'node:child_process';
6
6
  import { Orchestrator } from './orchestrator.js';
7
7
  import { InteractiveUI, ExitRequestedError, formatTaskStatus, formatTaskStatusIcon, formatStatusName, formatBlockedStatus, progressBar } from './ui.js';
8
- import { refinePlan, generateReadme, discoverRequirements, buildProjectContext, formatContextForDecomposition } from './planner.js';
8
+ import { planTasks, generateReadme, discoverRequirements, buildProjectContext, formatContextForDecomposition } from './planner.js';
9
9
  import { isTaskBlocked } from './taskQueue.js';
10
10
  import { isClaudeCodeInstalled, isClaudeCodeAuthenticated, testClaudeInteraction, launchClaudeLogin, loadConfig, saveConfig, } from './config.js';
11
11
  import { initLogger, getLogger } from './logger.js';
@@ -770,11 +770,18 @@ export class MaistroApp {
770
770
  }
771
771
  spinner.stop();
772
772
  if (!result.success) {
773
+ getLogger()?.info('Discovery failed', { error: result.error });
773
774
  console.log(`\x1b[33mCouldn't analyze goal: ${result.error}\x1b[0m`);
774
775
  console.log('\x1b[90mProceeding with direct planning...\x1b[0m\n');
775
776
  await new Promise(r => setTimeout(r, 1500));
776
777
  return null;
777
778
  }
779
+ getLogger()?.info('Discovery questions received', {
780
+ questionCount: result.questions.length,
781
+ summary: result.summary,
782
+ questions: result.questions.map(q => ({ id: q.id, question: q.question, options: q.options })),
783
+ assumptions: result.assumptions,
784
+ });
778
785
  // Ask each question one at a time (full-screen for each)
779
786
  const answers = {};
780
787
  for (let i = 0; i < result.questions.length; i++) {
@@ -787,6 +794,7 @@ export class MaistroApp {
787
794
  return null;
788
795
  }
789
796
  answers[question.id] = answer;
797
+ getLogger()?.info('Discovery answer', { questionId: question.id, question: question.question, answer });
790
798
  }
791
799
  // Show confirmation screen (full-screen)
792
800
  this.ui.clear();
@@ -813,6 +821,7 @@ export class MaistroApp {
813
821
  if (confirmChoice === null) {
814
822
  return null;
815
823
  }
824
+ getLogger()?.info('Discovery completed', { summary: result.summary, answers });
816
825
  return {
817
826
  summary: result.summary,
818
827
  questions: result.questions,
@@ -2821,7 +2830,11 @@ export class MaistroApp {
2821
2830
  }
2822
2831
  };
2823
2832
  process.stdin.on('data', handleCancelKey);
2824
- const result = await refinePlan(goal, currentTasks, userInput, [], {
2833
+ const result = await planTasks({
2834
+ goal,
2835
+ userMessage: userInput,
2836
+ currentTasks,
2837
+ conversationHistory: [],
2825
2838
  cwd: this.projectPath,
2826
2839
  abortSignal: abortController.signal,
2827
2840
  onOutput: (text) => {
@@ -2935,9 +2948,9 @@ export class MaistroApp {
2935
2948
  return this.handleInlineDiscussion(answerText, currentTasks, goal);
2936
2949
  }
2937
2950
  // Return updated tasks if any (or null if no changes)
2938
- if (result.updatedTasks && result.updatedTasks.length > 0) {
2951
+ if (result.tasks && result.tasks.length > 0) {
2939
2952
  // Process any image URLs in the updated task descriptions
2940
- const tasksWithImages = await this.processTasksImageUrls(result.updatedTasks);
2953
+ const tasksWithImages = await this.processTasksImageUrls(result.tasks);
2941
2954
  // Show brief confirmation
2942
2955
  const oldCount = currentTasks.length;
2943
2956
  const newCount = tasksWithImages.length;