@hasna/assistants 1.1.69 → 1.1.70

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 CHANGED
@@ -11296,7 +11296,10 @@ var init_connector = __esm(async () => {
11296
11296
  if (cached === null) {
11297
11297
  continue;
11298
11298
  }
11299
- const connector = this.createMinimalConnector(name, `connect-${name}`);
11299
+ const cwdForResolve = this.cwd || process.cwd();
11300
+ const localBin = join7(cwdForResolve, ".connectors", `connect-${name}`, "bin", "index.js");
11301
+ const cli = existsSync6(localBin) ? localBin : `connect-${name}`;
11302
+ const connector = this.createMinimalConnector(name, cli);
11300
11303
  ConnectorBridge.cache.set(name, connector);
11301
11304
  this.connectors.set(connector.name, connector);
11302
11305
  connectors.push(connector);
@@ -24318,6 +24321,7 @@ var init_bash = __esm(async () => {
24318
24321
  "git tag",
24319
24322
  "connect-",
24320
24323
  "connect_",
24324
+ "connectors",
24321
24325
  "node --version",
24322
24326
  "bun --version",
24323
24327
  "npm --version",
@@ -24538,7 +24542,7 @@ var init_bash = __esm(async () => {
24538
24542
  }
24539
24543
  const baseCommand = command.replace(/\s*2>&1\s*/g, " ").trim();
24540
24544
  const baseTrimmed = baseCommand.toLowerCase();
24541
- const allowConnectorNewlines = baseTrimmed.startsWith("connect-") || baseTrimmed.startsWith("connect_");
24545
+ const allowConnectorNewlines = baseTrimmed.startsWith("connect-") || baseTrimmed.startsWith("connect_") || baseTrimmed.startsWith("connectors");
24542
24546
  const commandForExec = allowConnectorNewlines ? normalizeNewlinesOutsideQuotes(baseCommand).trim() : baseCommand;
24543
24547
  const commandForChecks = commandForExec;
24544
24548
  const commandSansQuotes = stripQuotedSegments(commandForChecks);
@@ -88820,9 +88824,9 @@ Connector "${connectorName}" not found.
88820
88824
  message += `No connectors found.
88821
88825
 
88822
88826
  `;
88823
- message += "Connectors are auto-discovered from installed `connect-*` CLIs on your PATH.\n";
88824
- message += `Install a connector with:
88825
- `;
88827
+ message += "Install connectors using the `connectors` CLI:\n";
88828
+ message += " `connectors install <name>` (e.g. `connectors install gmail`)\n\n";
88829
+ message += "Or install standalone `connect-*` CLIs:\n";
88826
88830
  message += " `bun add -g connect-<name>`\n\n";
88827
88831
  message += "Then run `/connectors` again to verify it is detected.\n";
88828
88832
  } else {
@@ -89241,7 +89245,7 @@ Not a git repository or git not available.
89241
89245
  context.setProjectContext(projectContext);
89242
89246
  }
89243
89247
  }
89244
- var VERSION2 = "1.1.69";
89248
+ var VERSION2 = "1.1.70";
89245
89249
  var init_builtin = __esm(async () => {
89246
89250
  init_src2();
89247
89251
  init_context3();
@@ -93742,7 +93746,7 @@ ${systemPrompt}` : this.getDefaultSystemPrompt();
93742
93746
  return `You are a helpful personal AI assistant running in the terminal.
93743
93747
 
93744
93748
  You have access to various tools and connectors:
93745
- - Connectors discovered from installed connect-* CLIs
93749
+ - Connectors installed via \`connectors install <name>\` or standalone connect-* CLIs. To install a new connector, use the bash tool to run \`connectors install <name>\`.
93746
93750
  - Filesystem operations (read, write, search files)
93747
93751
  - Shell command execution
93748
93752
  - Scheduling tools for recurring or delayed commands
@@ -94079,7 +94083,7 @@ ${systemPrompt}` : this.getDefaultSystemPrompt();
94079
94083
  return `You are a helpful personal AI assistant running in the terminal.
94080
94084
 
94081
94085
  You have access to various tools and connectors:
94082
- - Connectors discovered from installed connect-* CLIs
94086
+ - Connectors installed via \`connectors install <name>\` or standalone connect-* CLIs. To install a new connector, use the bash tool to run \`connectors install <name>\`.
94083
94087
  - Filesystem operations (read, write, search files)
94084
94088
  - Shell command execution
94085
94089
  - Scheduling tools for recurring or delayed commands
@@ -265412,6 +265416,8 @@ function App2({ cwd: cwd3, version: version4 }) {
265412
265416
  return false;
265413
265417
  const trimmed = command.trim();
265414
265418
  const lower = trimmed.toLowerCase();
265419
+ if (/^\s*connectors\s+(install|add)\b/.test(lower))
265420
+ return true;
265415
265421
  if (!lower.startsWith("bun "))
265416
265422
  return false;
265417
265423
  if (!/\bbun\s+(add|install|i)\b/.test(lower))
@@ -269447,7 +269453,7 @@ process.on("unhandledRejection", (reason) => {
269447
269453
  cleanup();
269448
269454
  process.exit(1);
269449
269455
  });
269450
- var VERSION4 = "1.1.69";
269456
+ var VERSION4 = "1.1.70";
269451
269457
  var SYNC_START = "\x1B[?2026h";
269452
269458
  var SYNC_END = "\x1B[?2026l";
269453
269459
  function enableSynchronizedOutput() {
@@ -269588,4 +269594,4 @@ export {
269588
269594
  main
269589
269595
  };
269590
269596
 
269591
- //# debugId=1C9BBD6FD909EAE064756E2164756E21
269597
+ //# debugId=AE764416B0B6B38664756E2164756E21