@hasna/assistants 1.1.62 → 1.1.64

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
@@ -89163,7 +89163,7 @@ Not a git repository or git not available.
89163
89163
  context.setProjectContext(projectContext);
89164
89164
  }
89165
89165
  }
89166
- var VERSION2 = "1.1.62";
89166
+ var VERSION2 = "1.1.64";
89167
89167
  var init_builtin = __esm(async () => {
89168
89168
  init_src2();
89169
89169
  init_context3();
@@ -94510,8 +94510,7 @@ async function writeSkillIfNeeded(dir, skillName, content) {
94510
94510
  }
94511
94511
  }
94512
94512
  async function installHeartbeatSkills() {
94513
- const baseDir = process.env.ASSISTANTS_DIR || join26(homedir16(), ".assistants");
94514
- const sharedSkillsDir = join26(baseDir, "shared", "skills");
94513
+ const sharedSkillsDir = join26(homedir16(), ".skill");
94515
94514
  const installed = [];
94516
94515
  const results = await Promise.all([
94517
94516
  writeSkillIfNeeded(sharedSkillsDir, "main-loop", MAIN_LOOP_SKILL),
@@ -252953,7 +252952,7 @@ function OnboardingPanel({
252953
252952
  setSelectedConnectorIndex((prev) => Math.min(connectorList.length - 1, prev + 1));
252954
252953
  } else if (input === " ") {
252955
252954
  const item = connectorList[selectedConnectorIndex];
252956
- if (item && item.installed) {
252955
+ if (item) {
252957
252956
  setEnabledConnectors((prev) => {
252958
252957
  const next = new Set(prev);
252959
252958
  if (next.has(item.name)) {
@@ -253363,24 +253362,11 @@ function OnboardingPanel({
253363
253362
  marginTop: 1,
253364
253363
  marginBottom: 1,
253365
253364
  flexDirection: "column",
253366
- children: [
253367
- /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253368
- color: "gray",
253369
- children: "Connectors integrate external services. Install packages to add more."
253370
- }, undefined, false, undefined, this),
253371
- /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253372
- color: "gray",
253373
- dimColor: true,
253374
- children: [
253375
- "Coming soon: ",
253376
- /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253377
- color: "cyan",
253378
- children: "bun add -g @hasna/connectors"
253379
- }, undefined, false, undefined, this)
253380
- ]
253381
- }, undefined, true, undefined, this)
253382
- ]
253383
- }, undefined, true, undefined, this),
253365
+ children: /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253366
+ color: "gray",
253367
+ children: "Select connectors to enable. Uninstalled ones will be installed automatically."
253368
+ }, undefined, false, undefined, this)
253369
+ }, undefined, false, undefined, this),
253384
253370
  /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
253385
253371
  flexDirection: "column",
253386
253372
  children: [
@@ -253395,10 +253381,10 @@ function OnboardingPanel({
253395
253381
  visibleConnectors.map((connector, visibleIdx) => {
253396
253382
  const actualIdx = visibleRange.start + visibleIdx;
253397
253383
  const isSelected = actualIdx === selectedConnectorIndex;
253398
- const enabled = connector.installed && enabledConnectors.has(connector.name);
253384
+ const enabled = enabledConnectors.has(connector.name);
253399
253385
  const desc = connector.desc || "";
253400
253386
  const descDisplay = desc.length > 32 ? desc.slice(0, 29) + "..." : desc;
253401
- const checkbox = connector.installed ? enabled ? "x" : " " : " ";
253387
+ const checkbox = enabled ? "x" : " ";
253402
253388
  return /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
253403
253389
  children: [
253404
253390
  /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
@@ -253406,7 +253392,7 @@ function OnboardingPanel({
253406
253392
  children: isSelected ? "> " : " "
253407
253393
  }, undefined, false, undefined, this),
253408
253394
  /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253409
- color: connector.installed ? enabled ? "green" : "gray" : "gray",
253395
+ color: enabled ? "green" : "gray",
253410
253396
  children: [
253411
253397
  "[",
253412
253398
  checkbox,
@@ -253419,18 +253405,12 @@ function OnboardingPanel({
253419
253405
  connector.name
253420
253406
  ]
253421
253407
  }, undefined, true, undefined, this),
253422
- connector.installed ? /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253408
+ /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253423
253409
  color: "gray",
253424
253410
  children: [
253425
253411
  " ",
253426
253412
  descDisplay
253427
253413
  ]
253428
- }, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253429
- dimColor: true,
253430
- children: [
253431
- " (not installed) ",
253432
- connector.install
253433
- ]
253434
253414
  }, undefined, true, undefined, this)
253435
253415
  ]
253436
253416
  }, connector.name, true, undefined, this);
@@ -253451,7 +253431,7 @@ function OnboardingPanel({
253451
253431
  children: [
253452
253432
  /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253453
253433
  color: "gray",
253454
- children: "Arrow keys to move, Space to toggle installed, Enter to continue"
253434
+ children: "Arrow keys to move, Space to toggle, Enter to continue"
253455
253435
  }, undefined, false, undefined, this),
253456
253436
  /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253457
253437
  color: "gray",
@@ -253486,9 +253466,8 @@ function OnboardingPanel({
253486
253466
  }, undefined, false, undefined, this),
253487
253467
  /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253488
253468
  color: "gray",
253489
- dimColor: true,
253490
253469
  children: [
253491
- "Coming soon: ",
253470
+ "Install skills with: ",
253492
253471
  /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253493
253472
  color: "cyan",
253494
253473
  children: "bun add -g @hasna/skills"
@@ -253531,8 +253510,15 @@ function OnboardingPanel({
253531
253510
  marginBottom: 1,
253532
253511
  children: /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253533
253512
  dimColor: true,
253534
- children: " No skills discovered. Add SKILL.md files to ~/.assistants/skills/"
253535
- }, undefined, false, undefined, this)
253513
+ children: [
253514
+ " No skills installed. Run ",
253515
+ /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
253516
+ color: "cyan",
253517
+ children: "bun add -g @hasna/skills"
253518
+ }, undefined, false, undefined, this),
253519
+ " to get started."
253520
+ ]
253521
+ }, undefined, true, undefined, this)
253536
253522
  }, undefined, false, undefined, this),
253537
253523
  /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
253538
253524
  marginTop: 1,
@@ -269225,7 +269211,7 @@ process.on("unhandledRejection", (reason) => {
269225
269211
  cleanup();
269226
269212
  process.exit(1);
269227
269213
  });
269228
- var VERSION4 = "1.1.62";
269214
+ var VERSION4 = "1.1.64";
269229
269215
  var SYNC_START = "\x1B[?2026h";
269230
269216
  var SYNC_END = "\x1B[?2026l";
269231
269217
  function enableSynchronizedOutput() {
@@ -269345,4 +269331,4 @@ export {
269345
269331
  main
269346
269332
  };
269347
269333
 
269348
- //# debugId=1E6F4A20988B0CB064756E2164756E21
269334
+ //# debugId=BD05D79673B58EAA64756E2164756E21