@mindstudio-ai/remy 0.1.68 → 0.1.69
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 +42 -69
- package/dist/index.js +43 -70
- package/package.json +1 -1
package/dist/headless.js
CHANGED
|
@@ -4504,77 +4504,50 @@ var scrapeWebUrlTool = {
|
|
|
4504
4504
|
};
|
|
4505
4505
|
|
|
4506
4506
|
// src/tools/index.ts
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
presentPublishPlanTool,
|
|
4549
|
-
presentPlanTool
|
|
4550
|
-
];
|
|
4551
|
-
}
|
|
4552
|
-
function getTools(onboardingState) {
|
|
4553
|
-
switch (onboardingState) {
|
|
4554
|
-
case "onboardingFinished":
|
|
4555
|
-
return [
|
|
4556
|
-
...getCommonTools(),
|
|
4557
|
-
...getPostOnboardingTools(),
|
|
4558
|
-
...getSpecTools(),
|
|
4559
|
-
...getCodeTools()
|
|
4560
|
-
];
|
|
4561
|
-
case "initialCodegen":
|
|
4562
|
-
return [...getCommonTools(), ...getSpecTools(), ...getCodeTools()];
|
|
4563
|
-
default:
|
|
4564
|
-
return [...getCommonTools(), ...getSpecTools()];
|
|
4565
|
-
}
|
|
4566
|
-
}
|
|
4567
|
-
function getToolDefinitions(onboardingState) {
|
|
4568
|
-
return getTools(onboardingState).map((t) => t.definition);
|
|
4507
|
+
var ALL_TOOLS = [
|
|
4508
|
+
// Common
|
|
4509
|
+
setProjectOnboardingStateTool,
|
|
4510
|
+
promptUserTool,
|
|
4511
|
+
confirmDestructiveActionTool,
|
|
4512
|
+
askMindStudioSdkTool,
|
|
4513
|
+
scrapeWebUrlTool,
|
|
4514
|
+
searchGoogleTool,
|
|
4515
|
+
setProjectMetadataTool,
|
|
4516
|
+
designExpertTool,
|
|
4517
|
+
productVisionTool,
|
|
4518
|
+
codeSanityCheckTool,
|
|
4519
|
+
// Post-onboarding
|
|
4520
|
+
clearSyncStatusTool,
|
|
4521
|
+
presentSyncPlanTool,
|
|
4522
|
+
presentPublishPlanTool,
|
|
4523
|
+
presentPlanTool,
|
|
4524
|
+
// Spec
|
|
4525
|
+
readSpecTool,
|
|
4526
|
+
writeSpecTool,
|
|
4527
|
+
editSpecTool,
|
|
4528
|
+
listSpecFilesTool,
|
|
4529
|
+
// Code
|
|
4530
|
+
readFileTool,
|
|
4531
|
+
writeFileTool,
|
|
4532
|
+
editFileTool,
|
|
4533
|
+
bashTool,
|
|
4534
|
+
grepTool,
|
|
4535
|
+
globTool,
|
|
4536
|
+
listDirTool,
|
|
4537
|
+
editsFinishedTool,
|
|
4538
|
+
runScenarioTool,
|
|
4539
|
+
runMethodTool,
|
|
4540
|
+
screenshotTool,
|
|
4541
|
+
browserAutomationTool,
|
|
4542
|
+
// LSP
|
|
4543
|
+
lspDiagnosticsTool,
|
|
4544
|
+
restartProcessTool
|
|
4545
|
+
];
|
|
4546
|
+
function getToolDefinitions(_onboardingState) {
|
|
4547
|
+
return ALL_TOOLS.map((t) => t.definition);
|
|
4569
4548
|
}
|
|
4570
4549
|
function getToolByName(name) {
|
|
4571
|
-
|
|
4572
|
-
...getCommonTools(),
|
|
4573
|
-
...getPostOnboardingTools(),
|
|
4574
|
-
...getSpecTools(),
|
|
4575
|
-
...getCodeTools()
|
|
4576
|
-
];
|
|
4577
|
-
return allTools.find((t) => t.definition.name === name);
|
|
4550
|
+
return ALL_TOOLS.find((t) => t.definition.name === name);
|
|
4578
4551
|
}
|
|
4579
4552
|
function executeTool(name, input, context) {
|
|
4580
4553
|
const tool = getToolByName(name);
|
package/dist/index.js
CHANGED
|
@@ -4499,77 +4499,11 @@ var init_scrapeWebUrl2 = __esm({
|
|
|
4499
4499
|
});
|
|
4500
4500
|
|
|
4501
4501
|
// src/tools/index.ts
|
|
4502
|
-
function
|
|
4503
|
-
return
|
|
4504
|
-
}
|
|
4505
|
-
function getCodeTools() {
|
|
4506
|
-
const tools2 = [
|
|
4507
|
-
readFileTool,
|
|
4508
|
-
writeFileTool,
|
|
4509
|
-
editFileTool,
|
|
4510
|
-
bashTool,
|
|
4511
|
-
grepTool,
|
|
4512
|
-
globTool,
|
|
4513
|
-
listDirTool,
|
|
4514
|
-
editsFinishedTool,
|
|
4515
|
-
runScenarioTool,
|
|
4516
|
-
runMethodTool,
|
|
4517
|
-
screenshotTool,
|
|
4518
|
-
browserAutomationTool
|
|
4519
|
-
];
|
|
4520
|
-
if (isLspConfigured()) {
|
|
4521
|
-
tools2.push(lspDiagnosticsTool, restartProcessTool);
|
|
4522
|
-
}
|
|
4523
|
-
return tools2;
|
|
4524
|
-
}
|
|
4525
|
-
function getCommonTools() {
|
|
4526
|
-
return [
|
|
4527
|
-
setProjectOnboardingStateTool,
|
|
4528
|
-
promptUserTool,
|
|
4529
|
-
confirmDestructiveActionTool,
|
|
4530
|
-
askMindStudioSdkTool,
|
|
4531
|
-
scrapeWebUrlTool,
|
|
4532
|
-
searchGoogleTool,
|
|
4533
|
-
setProjectMetadataTool,
|
|
4534
|
-
designExpertTool,
|
|
4535
|
-
productVisionTool,
|
|
4536
|
-
codeSanityCheckTool
|
|
4537
|
-
];
|
|
4538
|
-
}
|
|
4539
|
-
function getPostOnboardingTools() {
|
|
4540
|
-
return [
|
|
4541
|
-
clearSyncStatusTool,
|
|
4542
|
-
presentSyncPlanTool,
|
|
4543
|
-
presentPublishPlanTool,
|
|
4544
|
-
presentPlanTool
|
|
4545
|
-
];
|
|
4546
|
-
}
|
|
4547
|
-
function getTools(onboardingState) {
|
|
4548
|
-
switch (onboardingState) {
|
|
4549
|
-
case "onboardingFinished":
|
|
4550
|
-
return [
|
|
4551
|
-
...getCommonTools(),
|
|
4552
|
-
...getPostOnboardingTools(),
|
|
4553
|
-
...getSpecTools(),
|
|
4554
|
-
...getCodeTools()
|
|
4555
|
-
];
|
|
4556
|
-
case "initialCodegen":
|
|
4557
|
-
return [...getCommonTools(), ...getSpecTools(), ...getCodeTools()];
|
|
4558
|
-
default:
|
|
4559
|
-
return [...getCommonTools(), ...getSpecTools()];
|
|
4560
|
-
}
|
|
4561
|
-
}
|
|
4562
|
-
function getToolDefinitions(onboardingState) {
|
|
4563
|
-
return getTools(onboardingState).map((t) => t.definition);
|
|
4502
|
+
function getToolDefinitions(_onboardingState) {
|
|
4503
|
+
return ALL_TOOLS.map((t) => t.definition);
|
|
4564
4504
|
}
|
|
4565
4505
|
function getToolByName(name) {
|
|
4566
|
-
|
|
4567
|
-
...getCommonTools(),
|
|
4568
|
-
...getPostOnboardingTools(),
|
|
4569
|
-
...getSpecTools(),
|
|
4570
|
-
...getCodeTools()
|
|
4571
|
-
];
|
|
4572
|
-
return allTools.find((t) => t.definition.name === name);
|
|
4506
|
+
return ALL_TOOLS.find((t) => t.definition.name === name);
|
|
4573
4507
|
}
|
|
4574
4508
|
function executeTool(name, input, context) {
|
|
4575
4509
|
const tool = getToolByName(name);
|
|
@@ -4578,6 +4512,7 @@ function executeTool(name, input, context) {
|
|
|
4578
4512
|
}
|
|
4579
4513
|
return tool.execute(input, context);
|
|
4580
4514
|
}
|
|
4515
|
+
var ALL_TOOLS;
|
|
4581
4516
|
var init_tools5 = __esm({
|
|
4582
4517
|
"src/tools/index.ts"() {
|
|
4583
4518
|
"use strict";
|
|
@@ -4603,7 +4538,6 @@ var init_tools5 = __esm({
|
|
|
4603
4538
|
init_glob();
|
|
4604
4539
|
init_listDir();
|
|
4605
4540
|
init_editsFinished();
|
|
4606
|
-
init_lsp();
|
|
4607
4541
|
init_lspDiagnostics();
|
|
4608
4542
|
init_restartProcess();
|
|
4609
4543
|
init_runScenario();
|
|
@@ -4614,6 +4548,45 @@ var init_tools5 = __esm({
|
|
|
4614
4548
|
init_productVision();
|
|
4615
4549
|
init_codeSanityCheck();
|
|
4616
4550
|
init_scrapeWebUrl2();
|
|
4551
|
+
ALL_TOOLS = [
|
|
4552
|
+
// Common
|
|
4553
|
+
setProjectOnboardingStateTool,
|
|
4554
|
+
promptUserTool,
|
|
4555
|
+
confirmDestructiveActionTool,
|
|
4556
|
+
askMindStudioSdkTool,
|
|
4557
|
+
scrapeWebUrlTool,
|
|
4558
|
+
searchGoogleTool,
|
|
4559
|
+
setProjectMetadataTool,
|
|
4560
|
+
designExpertTool,
|
|
4561
|
+
productVisionTool,
|
|
4562
|
+
codeSanityCheckTool,
|
|
4563
|
+
// Post-onboarding
|
|
4564
|
+
clearSyncStatusTool,
|
|
4565
|
+
presentSyncPlanTool,
|
|
4566
|
+
presentPublishPlanTool,
|
|
4567
|
+
presentPlanTool,
|
|
4568
|
+
// Spec
|
|
4569
|
+
readSpecTool,
|
|
4570
|
+
writeSpecTool,
|
|
4571
|
+
editSpecTool,
|
|
4572
|
+
listSpecFilesTool,
|
|
4573
|
+
// Code
|
|
4574
|
+
readFileTool,
|
|
4575
|
+
writeFileTool,
|
|
4576
|
+
editFileTool,
|
|
4577
|
+
bashTool,
|
|
4578
|
+
grepTool,
|
|
4579
|
+
globTool,
|
|
4580
|
+
listDirTool,
|
|
4581
|
+
editsFinishedTool,
|
|
4582
|
+
runScenarioTool,
|
|
4583
|
+
runMethodTool,
|
|
4584
|
+
screenshotTool,
|
|
4585
|
+
browserAutomationTool,
|
|
4586
|
+
// LSP
|
|
4587
|
+
lspDiagnosticsTool,
|
|
4588
|
+
restartProcessTool
|
|
4589
|
+
];
|
|
4617
4590
|
}
|
|
4618
4591
|
});
|
|
4619
4592
|
|