@hasna/assistants 1.1.79 → 1.1.81

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
@@ -25664,7 +25664,12 @@ var init_filesystem = __esm(async () => {
25664
25664
  const limitRaw = input.limit;
25665
25665
  const limit2 = typeof limitRaw === "number" && limitRaw > 0 ? Math.floor(limitRaw) : undefined;
25666
25666
  try {
25667
- const safety = await isPathSafe(path2, "read", { cwd: baseCwd });
25667
+ const readAllowedPaths = [
25668
+ "/tmp",
25669
+ join14(homedir9(), ".connect"),
25670
+ getProjectDataDir(baseCwd)
25671
+ ];
25672
+ const safety = await isPathSafe(path2, "read", { cwd: baseCwd, allowedPaths: readAllowedPaths });
25668
25673
  if (!safety.safe) {
25669
25674
  getSecurityLogger().log({
25670
25675
  eventType: "path_violation",
@@ -26203,7 +26208,12 @@ var init_filesystem = __esm(async () => {
26203
26208
  const baseCwd = input.cwd || process.cwd();
26204
26209
  const path2 = FilesystemTools.resolveInputPath(baseCwd, String(input.path || ""));
26205
26210
  try {
26206
- const safety = await isPathSafe(path2, "read", { cwd: baseCwd });
26211
+ const pdfAllowedPaths = [
26212
+ "/tmp",
26213
+ join14(homedir9(), ".connect"),
26214
+ getProjectDataDir(baseCwd)
26215
+ ];
26216
+ const safety = await isPathSafe(path2, "read", { cwd: baseCwd, allowedPaths: pdfAllowedPaths });
26207
26217
  if (!safety.safe) {
26208
26218
  getSecurityLogger().log({
26209
26219
  eventType: "path_violation",
@@ -109970,7 +109980,7 @@ Not a git repository or git not available.
109970
109980
  context.setProjectContext(projectContext);
109971
109981
  }
109972
109982
  }
109973
- var VERSION2 = "1.1.79";
109983
+ var VERSION2 = "1.1.81";
109974
109984
  var init_builtin = __esm(async () => {
109975
109985
  init_src2();
109976
109986
  init_context3();
@@ -257702,13 +257712,13 @@ var Input = import_react30.default.forwardRef(function Input2({
257702
257712
  setValueAndCursor("");
257703
257713
  return;
257704
257714
  }
257715
+ if (key.tab && isProcessing && value2.trim()) {
257716
+ onSubmit(value2, "queue");
257717
+ setValueAndCursor("");
257718
+ return;
257719
+ }
257705
257720
  if (!isAskingUser) {
257706
257721
  if (key.tab) {
257707
- if (isProcessing && value2.trim()) {
257708
- onSubmit(value2, "queue");
257709
- setValueAndCursor("");
257710
- return;
257711
- }
257712
257722
  if (autocompleteItems.length > 0) {
257713
257723
  const selected = autocompleteItems[selectedIndex] || autocompleteItems[0];
257714
257724
  if (autocompleteMode === "file") {
@@ -262170,9 +262180,10 @@ function RecoveryPanel({ sessions, onRecover, onStartFresh }) {
262170
262180
  session.lastMessage && /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Text, {
262171
262181
  dimColor: true,
262172
262182
  children: [
262173
- " '",
262183
+ " ",
262184
+ "\u2018",
262174
262185
  session.lastMessage,
262175
- "'"
262186
+ "\u2019"
262176
262187
  ]
262177
262188
  }, undefined, true, undefined, this)
262178
262189
  ]
@@ -262190,33 +262201,49 @@ function RecoveryPanel({ sessions, onRecover, onStartFresh }) {
262190
262201
  }, undefined, false, undefined, this)
262191
262202
  ]
262192
262203
  }, undefined, true, undefined, this),
262193
- selectedSessionIndex >= 0 && selectedSessionIndex < sessions.length && /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Box_default, {
262194
- flexDirection: "column",
262195
- marginBottom: 1,
262196
- children: [
262197
- /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Text, {
262198
- dimColor: true,
262199
- children: "Selected:"
262200
- }, undefined, false, undefined, this),
262201
- /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Text, {
262202
- children: [
262203
- " ",
262204
- /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Text, {
262205
- color: "cyan",
262206
- children: sessions[selectedSessionIndex].cwd
262207
- }, undefined, false, undefined, this)
262208
- ]
262209
- }, undefined, true, undefined, this),
262210
- /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Text, {
262211
- children: [
262212
- " ",
262213
- formatTimeAgo3(sessions[selectedSessionIndex].lastActivity),
262214
- " \xB7 ",
262215
- getStateLabel(sessions[selectedSessionIndex].heartbeat.state)
262216
- ]
262217
- }, undefined, true, undefined, this)
262218
- ]
262219
- }, undefined, true, undefined, this),
262204
+ selectedSessionIndex >= 0 && selectedSessionIndex < sessions.length && (() => {
262205
+ const s5 = sessions[selectedSessionIndex];
262206
+ const details = [
262207
+ formatTimeAgo3(s5.lastActivity),
262208
+ getStateLabel(s5.heartbeat.state),
262209
+ s5.messageCount > 0 ? `${s5.messageCount} messages` : null,
262210
+ s5.model || null
262211
+ ].filter(Boolean).join(" \xB7 ");
262212
+ return /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Box_default, {
262213
+ flexDirection: "column",
262214
+ marginBottom: 1,
262215
+ children: [
262216
+ /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Text, {
262217
+ dimColor: true,
262218
+ children: "Selected:"
262219
+ }, undefined, false, undefined, this),
262220
+ /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Text, {
262221
+ children: [
262222
+ " ",
262223
+ /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Text, {
262224
+ color: "cyan",
262225
+ children: s5.cwd
262226
+ }, undefined, false, undefined, this)
262227
+ ]
262228
+ }, undefined, true, undefined, this),
262229
+ /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Text, {
262230
+ children: [
262231
+ " ",
262232
+ details
262233
+ ]
262234
+ }, undefined, true, undefined, this),
262235
+ s5.lastMessage && /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Text, {
262236
+ dimColor: true,
262237
+ children: [
262238
+ " Last: ",
262239
+ "\u2018",
262240
+ s5.lastMessage,
262241
+ "\u2019"
262242
+ ]
262243
+ }, undefined, true, undefined, this)
262244
+ ]
262245
+ }, undefined, true, undefined, this);
262246
+ })(),
262220
262247
  /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Box_default, {
262221
262248
  children: /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(Text, {
262222
262249
  dimColor: true,
@@ -293130,7 +293157,6 @@ ${msg.body || msg.preview}`);
293130
293157
  /* @__PURE__ */ jsx_dev_runtime51.jsxDEV(Box_default, {
293131
293158
  flexDirection: "column",
293132
293159
  flexGrow: 1,
293133
- overflowY: "hidden",
293134
293160
  children: [
293135
293161
  /* @__PURE__ */ jsx_dev_runtime51.jsxDEV(Static, {
293136
293162
  items: staticMessages,
@@ -293745,7 +293771,7 @@ process.on("unhandledRejection", (reason) => {
293745
293771
  cleanup();
293746
293772
  process.exit(1);
293747
293773
  });
293748
- var VERSION4 = "1.1.79";
293774
+ var VERSION4 = "1.1.81";
293749
293775
  var SYNC_START = "\x1B[?2026h";
293750
293776
  var SYNC_END = "\x1B[?2026l";
293751
293777
  function enableSynchronizedOutput() {
@@ -293890,4 +293916,4 @@ export {
293890
293916
  main
293891
293917
  };
293892
293918
 
293893
- //# debugId=EE7636FC7217F7C164756E2164756E21
293919
+ //# debugId=E874936B91148DC964756E2164756E21