@hasna/assistants 1.1.62 → 1.1.63
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 +24 -37
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
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.
|
|
89166
|
+
var VERSION2 = "1.1.63";
|
|
89167
89167
|
var init_builtin = __esm(async () => {
|
|
89168
89168
|
init_src2();
|
|
89169
89169
|
init_context3();
|
|
@@ -252953,7 +252953,7 @@ function OnboardingPanel({
|
|
|
252953
252953
|
setSelectedConnectorIndex((prev) => Math.min(connectorList.length - 1, prev + 1));
|
|
252954
252954
|
} else if (input === " ") {
|
|
252955
252955
|
const item = connectorList[selectedConnectorIndex];
|
|
252956
|
-
if (item
|
|
252956
|
+
if (item) {
|
|
252957
252957
|
setEnabledConnectors((prev) => {
|
|
252958
252958
|
const next = new Set(prev);
|
|
252959
252959
|
if (next.has(item.name)) {
|
|
@@ -253363,24 +253363,11 @@ function OnboardingPanel({
|
|
|
253363
253363
|
marginTop: 1,
|
|
253364
253364
|
marginBottom: 1,
|
|
253365
253365
|
flexDirection: "column",
|
|
253366
|
-
children:
|
|
253367
|
-
|
|
253368
|
-
|
|
253369
|
-
|
|
253370
|
-
|
|
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),
|
|
253366
|
+
children: /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253367
|
+
color: "gray",
|
|
253368
|
+
children: "Select connectors to enable. Uninstalled ones will be installed automatically."
|
|
253369
|
+
}, undefined, false, undefined, this)
|
|
253370
|
+
}, undefined, false, undefined, this),
|
|
253384
253371
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
|
|
253385
253372
|
flexDirection: "column",
|
|
253386
253373
|
children: [
|
|
@@ -253395,10 +253382,10 @@ function OnboardingPanel({
|
|
|
253395
253382
|
visibleConnectors.map((connector, visibleIdx) => {
|
|
253396
253383
|
const actualIdx = visibleRange.start + visibleIdx;
|
|
253397
253384
|
const isSelected = actualIdx === selectedConnectorIndex;
|
|
253398
|
-
const enabled =
|
|
253385
|
+
const enabled = enabledConnectors.has(connector.name);
|
|
253399
253386
|
const desc = connector.desc || "";
|
|
253400
253387
|
const descDisplay = desc.length > 32 ? desc.slice(0, 29) + "..." : desc;
|
|
253401
|
-
const checkbox =
|
|
253388
|
+
const checkbox = enabled ? "x" : " ";
|
|
253402
253389
|
return /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
|
|
253403
253390
|
children: [
|
|
253404
253391
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
@@ -253406,7 +253393,7 @@ function OnboardingPanel({
|
|
|
253406
253393
|
children: isSelected ? "> " : " "
|
|
253407
253394
|
}, undefined, false, undefined, this),
|
|
253408
253395
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253409
|
-
color:
|
|
253396
|
+
color: enabled ? "green" : "gray",
|
|
253410
253397
|
children: [
|
|
253411
253398
|
"[",
|
|
253412
253399
|
checkbox,
|
|
@@ -253419,18 +253406,12 @@ function OnboardingPanel({
|
|
|
253419
253406
|
connector.name
|
|
253420
253407
|
]
|
|
253421
253408
|
}, undefined, true, undefined, this),
|
|
253422
|
-
|
|
253409
|
+
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253423
253410
|
color: "gray",
|
|
253424
253411
|
children: [
|
|
253425
253412
|
" ",
|
|
253426
253413
|
descDisplay
|
|
253427
253414
|
]
|
|
253428
|
-
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253429
|
-
dimColor: true,
|
|
253430
|
-
children: [
|
|
253431
|
-
" (not installed) ",
|
|
253432
|
-
connector.install
|
|
253433
|
-
]
|
|
253434
253415
|
}, undefined, true, undefined, this)
|
|
253435
253416
|
]
|
|
253436
253417
|
}, connector.name, true, undefined, this);
|
|
@@ -253451,7 +253432,7 @@ function OnboardingPanel({
|
|
|
253451
253432
|
children: [
|
|
253452
253433
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253453
253434
|
color: "gray",
|
|
253454
|
-
children: "Arrow keys to move, Space to toggle
|
|
253435
|
+
children: "Arrow keys to move, Space to toggle, Enter to continue"
|
|
253455
253436
|
}, undefined, false, undefined, this),
|
|
253456
253437
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253457
253438
|
color: "gray",
|
|
@@ -253486,9 +253467,8 @@ function OnboardingPanel({
|
|
|
253486
253467
|
}, undefined, false, undefined, this),
|
|
253487
253468
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253488
253469
|
color: "gray",
|
|
253489
|
-
dimColor: true,
|
|
253490
253470
|
children: [
|
|
253491
|
-
"
|
|
253471
|
+
"Install skills with: ",
|
|
253492
253472
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253493
253473
|
color: "cyan",
|
|
253494
253474
|
children: "bun add -g @hasna/skills"
|
|
@@ -253531,8 +253511,15 @@ function OnboardingPanel({
|
|
|
253531
253511
|
marginBottom: 1,
|
|
253532
253512
|
children: /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253533
253513
|
dimColor: true,
|
|
253534
|
-
children:
|
|
253535
|
-
|
|
253514
|
+
children: [
|
|
253515
|
+
" No skills installed. Run ",
|
|
253516
|
+
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253517
|
+
color: "cyan",
|
|
253518
|
+
children: "bun add -g @hasna/skills"
|
|
253519
|
+
}, undefined, false, undefined, this),
|
|
253520
|
+
" to get started."
|
|
253521
|
+
]
|
|
253522
|
+
}, undefined, true, undefined, this)
|
|
253536
253523
|
}, undefined, false, undefined, this),
|
|
253537
253524
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
|
|
253538
253525
|
marginTop: 1,
|
|
@@ -269225,7 +269212,7 @@ process.on("unhandledRejection", (reason) => {
|
|
|
269225
269212
|
cleanup();
|
|
269226
269213
|
process.exit(1);
|
|
269227
269214
|
});
|
|
269228
|
-
var VERSION4 = "1.1.
|
|
269215
|
+
var VERSION4 = "1.1.63";
|
|
269229
269216
|
var SYNC_START = "\x1B[?2026h";
|
|
269230
269217
|
var SYNC_END = "\x1B[?2026l";
|
|
269231
269218
|
function enableSynchronizedOutput() {
|
|
@@ -269345,4 +269332,4 @@ export {
|
|
|
269345
269332
|
main
|
|
269346
269333
|
};
|
|
269347
269334
|
|
|
269348
|
-
//# debugId=
|
|
269335
|
+
//# debugId=F7D571B19114200864756E2164756E21
|