@mindstudio-ai/remy 0.1.229 → 0.1.230

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/headless.js CHANGED
@@ -682,11 +682,17 @@ function parseFrontmatter(filePath) {
682
682
  return { name: "", description: "", type: "" };
683
683
  }
684
684
  }
685
- function loadPlanStatus() {
685
+ function loadPlanStatus(onboardingState) {
686
686
  try {
687
687
  const content = fs4.readFileSync(".remy-plan.md", "utf-8");
688
688
  const match = content.match(/^---\n([\s\S]*?)\n---/);
689
689
  const status = match?.[1]?.match(/^status:\s*(.+)$/m)?.[1]?.trim();
690
+ if (status === "pending" && onboardingState === "intake") {
691
+ return `
692
+ <pending_initial_plan>
693
+ This is your initial plan, proposed via writePlan and awaiting the user's decision. The user approves it by pressing "Start Building" \u2014 you'll get an approveInitialPlan message when they do, and it will tell you to begin. Until then, stay in intake: keep discussing, and revise with writePlan if the user asks. Don't start building on your own, even if the user says "looks good" in chat.
694
+ </pending_initial_plan>`;
695
+ }
690
696
  if (status === "pending") {
691
697
  return `
692
698
  <pending_plan>
@@ -868,7 +874,7 @@ The user is currently in ${viewContext?.mode ?? "code"} mode.
868
874
  ${viewContext?.activeFile ? `Active file: ${viewContext.activeFile}` : ""}
869
875
  </view_context>
870
876
 
871
- ${loadPlanStatus()}
877
+ ${loadPlanStatus(onboardingState)}
872
878
  `;
873
879
  return resolveIncludes(template);
874
880
  }
@@ -1379,8 +1385,11 @@ var updatePlanStatusTool = {
1379
1385
  required: ["status"]
1380
1386
  }
1381
1387
  },
1382
- async execute(input) {
1388
+ async execute(input, context) {
1383
1389
  const status = input.status;
1390
+ if (context?.onboardingState === "intake") {
1391
+ return `The initial plan isn't approved or rejected through this tool \u2014 the user decides via "Start Building". Keep discussing, and revise the plan with writePlan if they want changes.`;
1392
+ }
1384
1393
  let content;
1385
1394
  try {
1386
1395
  content = await fs10.readFile(PLAN_FILE2, "utf-8");
package/dist/index.js CHANGED
@@ -938,8 +938,11 @@ var init_updatePlanStatus = __esm({
938
938
  required: ["status"]
939
939
  }
940
940
  },
941
- async execute(input) {
941
+ async execute(input, context) {
942
942
  const status = input.status;
943
+ if (context?.onboardingState === "intake") {
944
+ return `The initial plan isn't approved or rejected through this tool \u2014 the user decides via "Start Building". Keep discussing, and revise the plan with writePlan if they want changes.`;
945
+ }
943
946
  let content;
944
947
  try {
945
948
  content = await fs7.readFile(PLAN_FILE2, "utf-8");
@@ -1893,11 +1896,17 @@ function parseFrontmatter(filePath) {
1893
1896
  return { name: "", description: "", type: "" };
1894
1897
  }
1895
1898
  }
1896
- function loadPlanStatus() {
1899
+ function loadPlanStatus(onboardingState) {
1897
1900
  try {
1898
1901
  const content = fs10.readFileSync(".remy-plan.md", "utf-8");
1899
1902
  const match = content.match(/^---\n([\s\S]*?)\n---/);
1900
1903
  const status = match?.[1]?.match(/^status:\s*(.+)$/m)?.[1]?.trim();
1904
+ if (status === "pending" && onboardingState === "intake") {
1905
+ return `
1906
+ <pending_initial_plan>
1907
+ This is your initial plan, proposed via writePlan and awaiting the user's decision. The user approves it by pressing "Start Building" \u2014 you'll get an approveInitialPlan message when they do, and it will tell you to begin. Until then, stay in intake: keep discussing, and revise with writePlan if the user asks. Don't start building on your own, even if the user says "looks good" in chat.
1908
+ </pending_initial_plan>`;
1909
+ }
1901
1910
  if (status === "pending") {
1902
1911
  return `
1903
1912
  <pending_plan>
@@ -2292,7 +2301,7 @@ The user is currently in ${viewContext?.mode ?? "code"} mode.
2292
2301
  ${viewContext?.activeFile ? `Active file: ${viewContext.activeFile}` : ""}
2293
2302
  </view_context>
2294
2303
 
2295
- ${loadPlanStatus()}
2304
+ ${loadPlanStatus(onboardingState)}
2296
2305
  `;
2297
2306
  return resolveIncludes(template);
2298
2307
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/remy",
3
- "version": "0.1.229",
3
+ "version": "0.1.230",
4
4
  "description": "Remy coding agent",
5
5
  "repository": {
6
6
  "type": "git",