@mindstudio-ai/remy 0.1.214 → 0.1.216

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
@@ -393,6 +393,9 @@ async function initOrgContext(config) {
393
393
  log3.debug("org context init failed", { error: err.message });
394
394
  }
395
395
  }
396
+ function getOrgContext() {
397
+ return cached;
398
+ }
396
399
  function renderOrgContextBlock() {
397
400
  const ctx = cached;
398
401
  const auth = ctx?.auth;
@@ -3628,7 +3631,8 @@ var ALLOWED_MODELS_BY_TYPE = {
3628
3631
  "gemini-3.1-pro",
3629
3632
  "gemini-3-flash",
3630
3633
  "gemini-3.5-flash",
3631
- "grok-build-0.1"
3634
+ "grok-build-0.1",
3635
+ "grok-4.5"
3632
3636
  ]
3633
3637
  // vision: undefined — unconstrained
3634
3638
  // image_generation: undefined — unconstrained
@@ -4957,6 +4961,16 @@ var PROMPT_TEMPLATE = readAsset(SUBAGENT, "prompt.md").replace(/\{\{([^}]+)\}\}/
4957
4961
  const k = key.trim();
4958
4962
  return RUNTIME_PLACEHOLDERS.has(k) ? match : readAsset(SUBAGENT, k);
4959
4963
  }).replace(/\n{3,}/g, "\n\n");
4964
+ function renderDesignSystemBlock(designSystem) {
4965
+ if (!designSystem) {
4966
+ return "";
4967
+ }
4968
+ return [
4969
+ "<design_system>",
4970
+ `The organization that owns this app publishes a design system at ${designSystem}. Treat it as the primary reference for this app's foundational visual language \u2014 palette, type, spacing, and the core component patterns that should feel consistent with the org's other products. Consult it for foundational decisions and fetch it with scrapeWebUrl when you need specifics (it's usually a hosted doc such as an llms.txt). It's a resource to orient toward, not a rulebook: you don't need to ground every detail in it, and app-specific or expressive choices are still yours to make.`,
4971
+ "</design_system>"
4972
+ ].join("\n");
4973
+ }
4960
4974
  function getDesignExpertPrompt(onboardingState) {
4961
4975
  const specContext = loadSpecIndex();
4962
4976
  const indices = getSampleIndices(
@@ -4986,6 +5000,14 @@ function getDesignExpertPrompt(onboardingState) {
4986
5000
  prompt += `
4987
5001
 
4988
5002
  ${specContext}`;
5003
+ }
5004
+ const designSystemBlock = renderDesignSystemBlock(
5005
+ getOrgContext()?.designSystem
5006
+ );
5007
+ if (designSystemBlock) {
5008
+ prompt += `
5009
+
5010
+ ${designSystemBlock}`;
4989
5011
  }
4990
5012
  const state = onboardingState ?? "onboardingFinished";
4991
5013
  if (state !== "onboardingFinished") {
package/dist/index.js CHANGED
@@ -1956,6 +1956,9 @@ async function initOrgContext(config) {
1956
1956
  log3.debug("org context init failed", { error: err.message });
1957
1957
  }
1958
1958
  }
1959
+ function getOrgContext() {
1960
+ return cached;
1961
+ }
1959
1962
  function renderOrgContextBlock() {
1960
1963
  const ctx = cached;
1961
1964
  const auth = ctx?.auth;
@@ -2247,7 +2250,8 @@ var init_surfaces = __esm({
2247
2250
  "gemini-3.1-pro",
2248
2251
  "gemini-3-flash",
2249
2252
  "gemini-3.5-flash",
2250
- "grok-build-0.1"
2253
+ "grok-build-0.1",
2254
+ "grok-4.5"
2251
2255
  ]
2252
2256
  // vision: undefined — unconstrained
2253
2257
  // image_generation: undefined — unconstrained
@@ -5797,6 +5801,16 @@ var init_getUiInspirationSample = __esm({
5797
5801
  });
5798
5802
 
5799
5803
  // src/subagents/designExpert/prompt.ts
5804
+ function renderDesignSystemBlock(designSystem) {
5805
+ if (!designSystem) {
5806
+ return "";
5807
+ }
5808
+ return [
5809
+ "<design_system>",
5810
+ `The organization that owns this app publishes a design system at ${designSystem}. Treat it as the primary reference for this app's foundational visual language \u2014 palette, type, spacing, and the core component patterns that should feel consistent with the org's other products. Consult it for foundational decisions and fetch it with scrapeWebUrl when you need specifics (it's usually a hosted doc such as an llms.txt). It's a resource to orient toward, not a rulebook: you don't need to ground every detail in it, and app-specific or expressive choices are still yours to make.`,
5811
+ "</design_system>"
5812
+ ].join("\n");
5813
+ }
5800
5814
  function getDesignExpertPrompt(onboardingState) {
5801
5815
  const specContext = loadSpecIndex();
5802
5816
  const indices = getSampleIndices(
@@ -5826,6 +5840,14 @@ function getDesignExpertPrompt(onboardingState) {
5826
5840
  prompt += `
5827
5841
 
5828
5842
  ${specContext}`;
5843
+ }
5844
+ const designSystemBlock = renderDesignSystemBlock(
5845
+ getOrgContext()?.designSystem
5846
+ );
5847
+ if (designSystemBlock) {
5848
+ prompt += `
5849
+
5850
+ ${designSystemBlock}`;
5829
5851
  }
5830
5852
  const state = onboardingState ?? "onboardingFinished";
5831
5853
  if (state !== "onboardingFinished") {
@@ -5843,6 +5865,7 @@ var init_prompt3 = __esm({
5843
5865
  "use strict";
5844
5866
  init_assets();
5845
5867
  init_context();
5868
+ init_orgContext();
5846
5869
  init_sampleCache();
5847
5870
  init_getFontLibrarySample();
5848
5871
  init_getDesignReferencesSample();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/remy",
3
- "version": "0.1.214",
3
+ "version": "0.1.216",
4
4
  "description": "Remy coding agent",
5
5
  "repository": {
6
6
  "type": "git",