@mindstudio-ai/remy 0.1.92 → 0.1.93

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
@@ -1688,7 +1688,7 @@ var setProjectMetadataTool = {
1688
1688
  type: "string",
1689
1689
  description: "Project display name. Keep it short (2-4 words). Use the app's actual name if the user mentioned one, otherwise pick something descriptive."
1690
1690
  },
1691
- shortDescription: {
1691
+ description: {
1692
1692
  type: "string",
1693
1693
  description: "Short description for the project - user facing only - appears for the project creator in their list of apps."
1694
1694
  },
@@ -4026,7 +4026,7 @@ var PROMPT_TEMPLATE = readAsset(SUBAGENT, "prompt.md").replace(/\{\{([^}]+)\}\}/
4026
4026
  const k = key.trim();
4027
4027
  return RUNTIME_PLACEHOLDERS.has(k) ? match : readAsset(SUBAGENT, k);
4028
4028
  }).replace(/\n{3,}/g, "\n\n");
4029
- function getDesignExpertPrompt() {
4029
+ function getDesignExpertPrompt(onboardingState) {
4030
4030
  const specContext = loadSpecContext();
4031
4031
  const indices = getSampleIndices(
4032
4032
  {
@@ -4055,6 +4055,14 @@ function getDesignExpertPrompt() {
4055
4055
  prompt += `
4056
4056
 
4057
4057
  ${specContext}`;
4058
+ }
4059
+ const state = onboardingState ?? "onboardingFinished";
4060
+ if (state !== "onboardingFinished") {
4061
+ prompt += `
4062
+
4063
+ <project_phase>
4064
+ This project is in the "${state}" phase. The codebase is a placeholder scaffold or is being generated for the first time.
4065
+ </project_phase>`;
4058
4066
  }
4059
4067
  return prompt;
4060
4068
  }
@@ -4133,7 +4141,7 @@ var designExpertTool = {
4133
4141
  }
4134
4142
  const history = context.conversationMessages ? getSubAgentHistory(context.conversationMessages, "visualDesignExpert") : [];
4135
4143
  const result = await runSubAgent({
4136
- system: getDesignExpertPrompt(),
4144
+ system: getDesignExpertPrompt(context.onboardingState),
4137
4145
  task: input.task,
4138
4146
  history: history.length > 0 ? history : void 0,
4139
4147
  tools: DESIGN_EXPERT_TOOLS,
@@ -5364,6 +5372,7 @@ async function runTurn(params) {
5364
5372
  resolveExternalTool,
5365
5373
  toolCallId: tc.id,
5366
5374
  requestId,
5375
+ onboardingState,
5367
5376
  subAgentMessages,
5368
5377
  conversationMessages: state.messages,
5369
5378
  toolRegistry,
package/dist/index.js CHANGED
@@ -1228,7 +1228,7 @@ var init_setProjectMetadata = __esm({
1228
1228
  type: "string",
1229
1229
  description: "Project display name. Keep it short (2-4 words). Use the app's actual name if the user mentioned one, otherwise pick something descriptive."
1230
1230
  },
1231
- shortDescription: {
1231
+ description: {
1232
1232
  type: "string",
1233
1233
  description: "Short description for the project - user facing only - appears for the project creator in their list of apps."
1234
1234
  },
@@ -3927,7 +3927,7 @@ var init_getUiInspirationSample = __esm({
3927
3927
  });
3928
3928
 
3929
3929
  // src/subagents/designExpert/prompt.ts
3930
- function getDesignExpertPrompt() {
3930
+ function getDesignExpertPrompt(onboardingState) {
3931
3931
  const specContext = loadSpecContext();
3932
3932
  const indices = getSampleIndices(
3933
3933
  {
@@ -3956,6 +3956,14 @@ function getDesignExpertPrompt() {
3956
3956
  prompt += `
3957
3957
 
3958
3958
  ${specContext}`;
3959
+ }
3960
+ const state = onboardingState ?? "onboardingFinished";
3961
+ if (state !== "onboardingFinished") {
3962
+ prompt += `
3963
+
3964
+ <project_phase>
3965
+ This project is in the "${state}" phase. The codebase is a placeholder scaffold or is being generated for the first time.
3966
+ </project_phase>`;
3959
3967
  }
3960
3968
  return prompt;
3961
3969
  }
@@ -4069,7 +4077,7 @@ Visual design expert. Describe the situation and what you need \u2014 the agent
4069
4077
  }
4070
4078
  const history = context.conversationMessages ? getSubAgentHistory(context.conversationMessages, "visualDesignExpert") : [];
4071
4079
  const result = await runSubAgent({
4072
- system: getDesignExpertPrompt(),
4080
+ system: getDesignExpertPrompt(context.onboardingState),
4073
4081
  task: input.task,
4074
4082
  history: history.length > 0 ? history : void 0,
4075
4083
  tools: DESIGN_EXPERT_TOOLS,
@@ -5403,6 +5411,7 @@ async function runTurn(params) {
5403
5411
  resolveExternalTool,
5404
5412
  toolCallId: tc.id,
5405
5413
  requestId,
5414
+ onboardingState,
5406
5415
  subAgentMessages,
5407
5416
  conversationMessages: state.messages,
5408
5417
  toolRegistry,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/remy",
3
- "version": "0.1.92",
3
+ "version": "0.1.93",
4
4
  "description": "MindStudio coding agent",
5
5
  "repository": {
6
6
  "type": "git",