@tasksai/install 0.1.42 → 0.1.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tasksai/install",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "description": "Shared TasksAI MCP installer CLI",
5
5
  "type": "module",
6
6
  "bin": {
package/runtime/server.py CHANGED
@@ -101,6 +101,15 @@ PRODUCT_ID = os.getenv("TASKSAI_PRODUCT_ID", "") # set by installer; used to r
101
101
  INSTALL_ID = os.getenv("TASKSAI_INSTALL_ID", "")
102
102
 
103
103
  _VERTICAL_FALLBACKS = {
104
+ "household": {
105
+ "product_id": "household",
106
+ "product_name": "HouseholdTasksAI",
107
+ "display_name": "HouseholdTasksAI",
108
+ "tool_prefix": "householdtasksai",
109
+ "occupation": "household organizer",
110
+ "support_email": "hello@householdtasksai.com",
111
+ "domain": "householdtasksai.com",
112
+ },
104
113
  "farmer": {
105
114
  "product_id": "farmer",
106
115
  "product_name": "FarmerTasksAI",
package/src/index.js CHANGED
@@ -19,6 +19,7 @@ const INSTALLER_VERSION = INSTALLER_PACKAGE.version;
19
19
  const BUNDLED_RUNTIME_DIR = path.resolve(INSTALLER_DIR, "..", "runtime");
20
20
  const OFFICIAL_WRAPPER_REPO = "https://github.com/TasksAI-Official/tasksai-mcp-wrappers";
21
21
  const TRUSTED_PRODUCTION_SOURCES = new Map([
22
+ ["household", { repo: OFFICIAL_WRAPPER_REPO, ref: "main", path: "verticals/household" }],
22
23
  ["lawtasksai", { repo: OFFICIAL_WRAPPER_REPO, ref: "main", path: "verticals/lawtasksai" }],
23
24
  ["farmer", { repo: OFFICIAL_WRAPPER_REPO, ref: "main", path: "verticals/farmer" }],
24
25
  ["realtor", { repo: OFFICIAL_WRAPPER_REPO, ref: "main", path: "verticals/realtor" }],
@@ -40,6 +41,7 @@ const TRUSTED_PRODUCTION_SOURCES = new Map([
40
41
  }]
41
42
  ]);
42
43
  const DEFAULT_SOURCES = {
44
+ household: "https://github.com/TasksAI-Official/tasksai-mcp-wrappers/tree/main/verticals/household",
43
45
  lawtasksai: "https://github.com/TasksAI-Official/tasksai-mcp-wrappers/tree/main/verticals/lawtasksai",
44
46
  farmer: "https://github.com/TasksAI-Official/tasksai-mcp-wrappers/tree/main/verticals/farmer",
45
47
  realtor: "https://github.com/TasksAI-Official/tasksai-mcp-wrappers/tree/main/verticals/realtor",
@@ -1026,7 +1028,7 @@ function verifySource({ options, source, manifest, vertical }) {
1026
1028
  const command = installer?.command;
1027
1029
  const args = installer?.args || [];
1028
1030
  const isLegacyNpx = command === "npx" && Array.isArray(args) && args[0] === "@tasksai/install";
1029
- const isNpmExec = command === "npm" && Array.isArray(args) && args.includes("--package=@tasksai/install") && (args.includes("tasksai-install") || args.includes("--call"));
1031
+ const isNpmExec = command === "npm" && Array.isArray(args) && args.some((arg) => /^--package=@tasksai\/install(?:@\d+\.\d+\.\d+)?$/.test(arg)) && (args.includes("tasksai-install") || args.includes("--call"));
1030
1032
  if (!isLegacyNpx && !isNpmExec) {
1031
1033
  throw new Error("Manifest installer command is not an approved @tasksai/install command.");
1032
1034
  }
@@ -1456,7 +1458,7 @@ function formatError(error) {
1456
1458
 
1457
1459
  function redact(text) {
1458
1460
  return String(text)
1459
- .replace(/\b(?:lt|ft|pa|rt|tt|th|mt|ct|at|ch|cu|dt|ds|el|ep|fu|hr|in|ll|ms|mo|mu|nt|pt|pp|pl|pr|re|sl|ta|vt)_[A-Za-z0-9_-]{8,}\b/g, (match) => `${match.split("_")[0]}_[REDACTED]`)
1461
+ .replace(/\b(?:lt|ft|pa|rt|tt|th|mt|ct|at|ch|cu|dt|ds|el|ep|fu|hht|hr|in|ll|ms|mo|mu|nt|pt|pp|pl|pr|re|sl|ta|vt)_[A-Za-z0-9_-]{8,}\b/g, (match) => `${match.split("_")[0]}_[REDACTED]`)
1460
1462
  .replace(/Bearer\s+[A-Za-z0-9._-]+/gi, "Bearer [REDACTED]")
1461
1463
  .replace(/gh[opsu]_[A-Za-z0-9_]+/g, "gh_[REDACTED]");
1462
1464
  }