estatehelm 1.0.19 → 1.0.20
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/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4998,7 +4998,8 @@ async function executeSearch(params, privateKey, privacyMode) {
|
|
|
4998
4998
|
for (const household of searchHouseholds) {
|
|
4999
4999
|
const { data, entityLookup } = await buildEntitiesData(household.id, privateKey);
|
|
5000
5000
|
const searchableEntities = indexAllEntities(data);
|
|
5001
|
-
const
|
|
5001
|
+
const trimmedQuery = (query ?? "").trim();
|
|
5002
|
+
const isWildcard = !trimmedQuery || /^[\*\.]+$/.test(trimmedQuery);
|
|
5002
5003
|
const maxResults = 100;
|
|
5003
5004
|
const searchResults = isWildcard ? searchableEntities.filter((e) => !entityType || e.entityType === entityType).slice(0, maxResults).map((e) => ({ entity: e, score: 1, matchedFields: [] })) : searchEntities(searchableEntities, query, {
|
|
5004
5005
|
maxTotal: maxResults,
|
|
@@ -5397,7 +5398,7 @@ function formatEntityType(type) {
|
|
|
5397
5398
|
|
|
5398
5399
|
// src/index.ts
|
|
5399
5400
|
var program = new import_commander.Command();
|
|
5400
|
-
program.name("estatehelm").description("EstateHelm CLI - MCP server for AI assistants").version("1.0.
|
|
5401
|
+
program.name("estatehelm").description("EstateHelm CLI - MCP server for AI assistants").version("1.0.20").option("--staging", "Use staging environment (previewapi/previewapp.estatehelm.com)").option("--api-url <url>", "API server URL (default: https://api.estatehelm.com)").option("--app-url <url>", "App server URL (default: https://app.estatehelm.com)").hook("preAction", (thisCommand) => {
|
|
5401
5402
|
const opts = thisCommand.opts();
|
|
5402
5403
|
if (opts.staging) {
|
|
5403
5404
|
setServerUrls(
|