@mindstudio-ai/remy 0.1.270 → 0.1.271
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 +8 -7
- package/dist/index.js +8 -7
- package/package.json +1 -1
package/dist/headless.js
CHANGED
|
@@ -7144,13 +7144,10 @@ function isDedicatedBrandFile(filePath) {
|
|
|
7144
7144
|
const { type } = parseFrontmatter3(filePath);
|
|
7145
7145
|
return type.startsWith("design/color") || type.startsWith("design/typography");
|
|
7146
7146
|
}
|
|
7147
|
-
function isBrandRelevant(filePath) {
|
|
7148
|
-
return filePath === path12.join("src", "app.md") || isDedicatedBrandFile(filePath);
|
|
7149
|
-
}
|
|
7150
7147
|
function computeInputHash() {
|
|
7151
7148
|
const entries = [];
|
|
7152
7149
|
for (const filePath of walkMdFiles2("src")) {
|
|
7153
|
-
if (
|
|
7150
|
+
if (isDedicatedBrandFile(filePath)) {
|
|
7154
7151
|
entries.push({ path: filePath, content: readSafe(filePath) });
|
|
7155
7152
|
}
|
|
7156
7153
|
}
|
|
@@ -7279,8 +7276,8 @@ var BRAND_CORPUS_CHAR_LIMIT = 24e5;
|
|
|
7279
7276
|
function buildCorpus() {
|
|
7280
7277
|
const all = walkMdFiles2("src");
|
|
7281
7278
|
const ordered = [
|
|
7282
|
-
...all.filter(
|
|
7283
|
-
...all.filter((f) => !
|
|
7279
|
+
...all.filter(isDedicatedBrandFile),
|
|
7280
|
+
...all.filter((f) => !isDedicatedBrandFile(f))
|
|
7284
7281
|
];
|
|
7285
7282
|
const files = [];
|
|
7286
7283
|
const manifest = readBrandManifest();
|
|
@@ -7713,7 +7710,11 @@ function friendlyError(raw) {
|
|
|
7713
7710
|
|
|
7714
7711
|
// src/agent.ts
|
|
7715
7712
|
var log14 = createLogger("agent");
|
|
7716
|
-
var BRAND_TRIGGERING_TOOLS = /* @__PURE__ */ new Set([
|
|
7713
|
+
var BRAND_TRIGGERING_TOOLS = /* @__PURE__ */ new Set([
|
|
7714
|
+
"writeSpec",
|
|
7715
|
+
"editSpec",
|
|
7716
|
+
"setProjectMetadata"
|
|
7717
|
+
]);
|
|
7717
7718
|
function getTextContent(blocks) {
|
|
7718
7719
|
return blocks.filter((b) => b.type === "text").map((b) => b.text).join("");
|
|
7719
7720
|
}
|
package/dist/index.js
CHANGED
|
@@ -7990,13 +7990,10 @@ function isDedicatedBrandFile(filePath) {
|
|
|
7990
7990
|
const { type } = parseFrontmatter3(filePath);
|
|
7991
7991
|
return type.startsWith("design/color") || type.startsWith("design/typography");
|
|
7992
7992
|
}
|
|
7993
|
-
function isBrandRelevant(filePath) {
|
|
7994
|
-
return filePath === path11.join("src", "app.md") || isDedicatedBrandFile(filePath);
|
|
7995
|
-
}
|
|
7996
7993
|
function computeInputHash() {
|
|
7997
7994
|
const entries = [];
|
|
7998
7995
|
for (const filePath of walkMdFiles2("src")) {
|
|
7999
|
-
if (
|
|
7996
|
+
if (isDedicatedBrandFile(filePath)) {
|
|
8000
7997
|
entries.push({ path: filePath, content: readSafe(filePath) });
|
|
8001
7998
|
}
|
|
8002
7999
|
}
|
|
@@ -8123,8 +8120,8 @@ async function extractBrand(apiConfig, model) {
|
|
|
8123
8120
|
function buildCorpus() {
|
|
8124
8121
|
const all = walkMdFiles2("src");
|
|
8125
8122
|
const ordered = [
|
|
8126
|
-
...all.filter(
|
|
8127
|
-
...all.filter((f) => !
|
|
8123
|
+
...all.filter(isDedicatedBrandFile),
|
|
8124
|
+
...all.filter((f) => !isDedicatedBrandFile(f))
|
|
8128
8125
|
];
|
|
8129
8126
|
const files = [];
|
|
8130
8127
|
const manifest = readBrandManifest();
|
|
@@ -9007,7 +9004,11 @@ var init_agent = __esm({
|
|
|
9007
9004
|
init_toolRegistry();
|
|
9008
9005
|
init_toolResultCap();
|
|
9009
9006
|
log13 = createLogger("agent");
|
|
9010
|
-
BRAND_TRIGGERING_TOOLS = /* @__PURE__ */ new Set([
|
|
9007
|
+
BRAND_TRIGGERING_TOOLS = /* @__PURE__ */ new Set([
|
|
9008
|
+
"writeSpec",
|
|
9009
|
+
"editSpec",
|
|
9010
|
+
"setProjectMetadata"
|
|
9011
|
+
]);
|
|
9011
9012
|
EXTERNAL_TOOLS = /* @__PURE__ */ new Set([
|
|
9012
9013
|
"promptUser",
|
|
9013
9014
|
"setProjectOnboardingState",
|