@hasna/assistants 1.1.80 → 1.1.82
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 +20 -11
- package/dist/index.js.map +5 -5
- package/package.json +1 -1
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
|
|
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
|
|
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.
|
|
109983
|
+
var VERSION2 = "1.1.82";
|
|
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") {
|
|
@@ -293147,7 +293157,6 @@ ${msg.body || msg.preview}`);
|
|
|
293147
293157
|
/* @__PURE__ */ jsx_dev_runtime51.jsxDEV(Box_default, {
|
|
293148
293158
|
flexDirection: "column",
|
|
293149
293159
|
flexGrow: 1,
|
|
293150
|
-
overflowY: "hidden",
|
|
293151
293160
|
children: [
|
|
293152
293161
|
/* @__PURE__ */ jsx_dev_runtime51.jsxDEV(Static, {
|
|
293153
293162
|
items: staticMessages,
|
|
@@ -293762,7 +293771,7 @@ process.on("unhandledRejection", (reason) => {
|
|
|
293762
293771
|
cleanup();
|
|
293763
293772
|
process.exit(1);
|
|
293764
293773
|
});
|
|
293765
|
-
var VERSION4 = "1.1.
|
|
293774
|
+
var VERSION4 = "1.1.82";
|
|
293766
293775
|
var SYNC_START = "\x1B[?2026h";
|
|
293767
293776
|
var SYNC_END = "\x1B[?2026l";
|
|
293768
293777
|
function enableSynchronizedOutput() {
|
|
@@ -293907,4 +293916,4 @@ export {
|
|
|
293907
293916
|
main
|
|
293908
293917
|
};
|
|
293909
293918
|
|
|
293910
|
-
//# debugId=
|
|
293919
|
+
//# debugId=066FB013DBC71B6E64756E2164756E21
|