@hasna/assistants 1.1.61 → 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 +29 -72
- 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();
|
|
@@ -252683,15 +252683,7 @@ var POPULAR_CONNECTORS = {
|
|
|
252683
252683
|
github: { desc: "GitHub repos & issues", install: "bun add -g connect-github" },
|
|
252684
252684
|
calendar: { desc: "Google Calendar", install: "bun add -g connect-calendar" }
|
|
252685
252685
|
};
|
|
252686
|
-
var
|
|
252687
|
-
" \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588",
|
|
252688
|
-
" \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 ",
|
|
252689
|
-
" \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588",
|
|
252690
|
-
" \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588",
|
|
252691
|
-
" \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588"
|
|
252692
|
-
];
|
|
252693
|
-
var GRADIENT_COLORS = ["#7dd3fc", "#38bdf8", "#0ea5e9", "#0284c7", "#0369a1"];
|
|
252694
|
-
var COMPACT_LOGO = "ASSISTANTS";
|
|
252686
|
+
var COMPACT_LOGO = "Hasna Assistants";
|
|
252695
252687
|
var INTRO_FEATURES = [
|
|
252696
252688
|
"Chat with AI models - Claude, GPT, and more",
|
|
252697
252689
|
"Install connectors to integrate Notion, Gmail, Google Drive & more",
|
|
@@ -252792,7 +252784,7 @@ function OnboardingPanel({
|
|
|
252792
252784
|
const [connectorKeyIndex, setConnectorKeyIndex] = import_react68.useState(0);
|
|
252793
252785
|
const [connectorKeyValue, setConnectorKeyValue] = import_react68.useState("");
|
|
252794
252786
|
const [introRevealCount, setIntroRevealCount] = import_react68.useState(0);
|
|
252795
|
-
const [isCompact
|
|
252787
|
+
const [isCompact] = import_react68.useState(false);
|
|
252796
252788
|
const [isSaving, setIsSaving] = import_react68.useState(false);
|
|
252797
252789
|
const submitGuardRef = import_react68.useRef(false);
|
|
252798
252790
|
const skillsList = discoveredSkills || [];
|
|
@@ -252814,10 +252806,6 @@ function OnboardingPanel({
|
|
|
252814
252806
|
}, [currentStep]);
|
|
252815
252807
|
const logoColor = useGradientCycle(600);
|
|
252816
252808
|
const { displayed: subtitle, done: subtitleDone } = useTypewriter("Your personal AI assistant for the terminal.", 25, currentStep === "welcome");
|
|
252817
|
-
import_react68.useEffect(() => {
|
|
252818
|
-
const cols = process.stdout.columns || 80;
|
|
252819
|
-
setIsCompact(cols < 60);
|
|
252820
|
-
}, []);
|
|
252821
252809
|
import_react68.useEffect(() => {
|
|
252822
252810
|
if (currentStep !== "intro")
|
|
252823
252811
|
return;
|
|
@@ -252965,7 +252953,7 @@ function OnboardingPanel({
|
|
|
252965
252953
|
setSelectedConnectorIndex((prev) => Math.min(connectorList.length - 1, prev + 1));
|
|
252966
252954
|
} else if (input === " ") {
|
|
252967
252955
|
const item = connectorList[selectedConnectorIndex];
|
|
252968
|
-
if (item
|
|
252956
|
+
if (item) {
|
|
252969
252957
|
setEnabledConnectors((prev) => {
|
|
252970
252958
|
const next = new Set(prev);
|
|
252971
252959
|
if (next.has(item.name)) {
|
|
@@ -253059,31 +253047,13 @@ function OnboardingPanel({
|
|
|
253059
253047
|
children: [
|
|
253060
253048
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
|
|
253061
253049
|
marginTop: 1,
|
|
253062
|
-
marginBottom:
|
|
253063
|
-
|
|
253064
|
-
children: isCompact ? /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253050
|
+
marginBottom: 1,
|
|
253051
|
+
children: /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253065
253052
|
bold: true,
|
|
253066
253053
|
color: logoColor,
|
|
253067
253054
|
children: COMPACT_LOGO
|
|
253068
|
-
}, undefined, false, undefined, this)
|
|
253069
|
-
color: GRADIENT_COLORS[i6] || GRADIENT_COLORS[GRADIENT_COLORS.length - 1],
|
|
253070
|
-
children: line
|
|
253071
|
-
}, i6, false, undefined, this))
|
|
253055
|
+
}, undefined, false, undefined, this)
|
|
253072
253056
|
}, undefined, false, undefined, this),
|
|
253073
|
-
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
|
|
253074
|
-
marginBottom: 1,
|
|
253075
|
-
children: [
|
|
253076
|
-
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253077
|
-
dimColor: true,
|
|
253078
|
-
children: " by "
|
|
253079
|
-
}, undefined, false, undefined, this),
|
|
253080
|
-
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253081
|
-
color: "#94a3b8",
|
|
253082
|
-
bold: true,
|
|
253083
|
-
children: "hasna"
|
|
253084
|
-
}, undefined, false, undefined, this)
|
|
253085
|
-
]
|
|
253086
|
-
}, undefined, true, undefined, this),
|
|
253087
253057
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
|
|
253088
253058
|
marginBottom: 1,
|
|
253089
253059
|
children: [
|
|
@@ -253393,24 +253363,11 @@ function OnboardingPanel({
|
|
|
253393
253363
|
marginTop: 1,
|
|
253394
253364
|
marginBottom: 1,
|
|
253395
253365
|
flexDirection: "column",
|
|
253396
|
-
children:
|
|
253397
|
-
|
|
253398
|
-
|
|
253399
|
-
|
|
253400
|
-
|
|
253401
|
-
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253402
|
-
color: "gray",
|
|
253403
|
-
dimColor: true,
|
|
253404
|
-
children: [
|
|
253405
|
-
"Coming soon: ",
|
|
253406
|
-
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253407
|
-
color: "cyan",
|
|
253408
|
-
children: "bun add -g @hasna/connectors"
|
|
253409
|
-
}, undefined, false, undefined, this)
|
|
253410
|
-
]
|
|
253411
|
-
}, undefined, true, undefined, this)
|
|
253412
|
-
]
|
|
253413
|
-
}, 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),
|
|
253414
253371
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
|
|
253415
253372
|
flexDirection: "column",
|
|
253416
253373
|
children: [
|
|
@@ -253425,10 +253382,10 @@ function OnboardingPanel({
|
|
|
253425
253382
|
visibleConnectors.map((connector, visibleIdx) => {
|
|
253426
253383
|
const actualIdx = visibleRange.start + visibleIdx;
|
|
253427
253384
|
const isSelected = actualIdx === selectedConnectorIndex;
|
|
253428
|
-
const enabled =
|
|
253385
|
+
const enabled = enabledConnectors.has(connector.name);
|
|
253429
253386
|
const desc = connector.desc || "";
|
|
253430
253387
|
const descDisplay = desc.length > 32 ? desc.slice(0, 29) + "..." : desc;
|
|
253431
|
-
const checkbox =
|
|
253388
|
+
const checkbox = enabled ? "x" : " ";
|
|
253432
253389
|
return /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
|
|
253433
253390
|
children: [
|
|
253434
253391
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
@@ -253436,7 +253393,7 @@ function OnboardingPanel({
|
|
|
253436
253393
|
children: isSelected ? "> " : " "
|
|
253437
253394
|
}, undefined, false, undefined, this),
|
|
253438
253395
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253439
|
-
color:
|
|
253396
|
+
color: enabled ? "green" : "gray",
|
|
253440
253397
|
children: [
|
|
253441
253398
|
"[",
|
|
253442
253399
|
checkbox,
|
|
@@ -253449,18 +253406,12 @@ function OnboardingPanel({
|
|
|
253449
253406
|
connector.name
|
|
253450
253407
|
]
|
|
253451
253408
|
}, undefined, true, undefined, this),
|
|
253452
|
-
|
|
253409
|
+
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253453
253410
|
color: "gray",
|
|
253454
253411
|
children: [
|
|
253455
253412
|
" ",
|
|
253456
253413
|
descDisplay
|
|
253457
253414
|
]
|
|
253458
|
-
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253459
|
-
dimColor: true,
|
|
253460
|
-
children: [
|
|
253461
|
-
" (not installed) ",
|
|
253462
|
-
connector.install
|
|
253463
|
-
]
|
|
253464
253415
|
}, undefined, true, undefined, this)
|
|
253465
253416
|
]
|
|
253466
253417
|
}, connector.name, true, undefined, this);
|
|
@@ -253481,7 +253432,7 @@ function OnboardingPanel({
|
|
|
253481
253432
|
children: [
|
|
253482
253433
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253483
253434
|
color: "gray",
|
|
253484
|
-
children: "Arrow keys to move, Space to toggle
|
|
253435
|
+
children: "Arrow keys to move, Space to toggle, Enter to continue"
|
|
253485
253436
|
}, undefined, false, undefined, this),
|
|
253486
253437
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253487
253438
|
color: "gray",
|
|
@@ -253516,9 +253467,8 @@ function OnboardingPanel({
|
|
|
253516
253467
|
}, undefined, false, undefined, this),
|
|
253517
253468
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253518
253469
|
color: "gray",
|
|
253519
|
-
dimColor: true,
|
|
253520
253470
|
children: [
|
|
253521
|
-
"
|
|
253471
|
+
"Install skills with: ",
|
|
253522
253472
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253523
253473
|
color: "cyan",
|
|
253524
253474
|
children: "bun add -g @hasna/skills"
|
|
@@ -253561,8 +253511,15 @@ function OnboardingPanel({
|
|
|
253561
253511
|
marginBottom: 1,
|
|
253562
253512
|
children: /* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Text, {
|
|
253563
253513
|
dimColor: true,
|
|
253564
|
-
children:
|
|
253565
|
-
|
|
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)
|
|
253566
253523
|
}, undefined, false, undefined, this),
|
|
253567
253524
|
/* @__PURE__ */ jsx_dev_runtime32.jsxDEV(Box_default, {
|
|
253568
253525
|
marginTop: 1,
|
|
@@ -269255,7 +269212,7 @@ process.on("unhandledRejection", (reason) => {
|
|
|
269255
269212
|
cleanup();
|
|
269256
269213
|
process.exit(1);
|
|
269257
269214
|
});
|
|
269258
|
-
var VERSION4 = "1.1.
|
|
269215
|
+
var VERSION4 = "1.1.63";
|
|
269259
269216
|
var SYNC_START = "\x1B[?2026h";
|
|
269260
269217
|
var SYNC_END = "\x1B[?2026l";
|
|
269261
269218
|
function enableSynchronizedOutput() {
|
|
@@ -269375,4 +269332,4 @@ export {
|
|
|
269375
269332
|
main
|
|
269376
269333
|
};
|
|
269377
269334
|
|
|
269378
|
-
//# debugId=
|
|
269335
|
+
//# debugId=F7D571B19114200864756E2164756E21
|