spice-js 2.6.40 → 2.6.42
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.
|
@@ -120,6 +120,8 @@ class AI {
|
|
|
120
120
|
throw error;
|
|
121
121
|
} finally {
|
|
122
122
|
// Clean up the temporary input file
|
|
123
|
+
console.log("Cleaning up temporary file:", tempFilePath);
|
|
124
|
+
|
|
123
125
|
if (_fs.default.existsSync(tempFilePath)) {
|
|
124
126
|
_fs.default.unlinkSync(tempFilePath);
|
|
125
127
|
}
|
|
@@ -285,7 +287,8 @@ class AI {
|
|
|
285
287
|
};
|
|
286
288
|
} finally {
|
|
287
289
|
for (var context_file of context_files) {
|
|
288
|
-
|
|
290
|
+
var directory = path.dirname(context_file.path);
|
|
291
|
+
yield _this4.deleteFolderRecursive(directory);
|
|
289
292
|
}
|
|
290
293
|
}
|
|
291
294
|
})();
|
package/build/index.js
CHANGED
|
@@ -65,7 +65,7 @@ var _Storage = _interopRequireDefault(require("./storage/Storage"));
|
|
|
65
65
|
|
|
66
66
|
exports.Storage = _Storage.default;
|
|
67
67
|
|
|
68
|
-
var _Ai = _interopRequireDefault(require("./artificial_intelligence/Ai
|
|
68
|
+
var _Ai = _interopRequireDefault(require("./artificial_intelligence/Ai"));
|
|
69
69
|
|
|
70
70
|
exports.AI = _Ai.default;
|
|
71
71
|
|
package/package.json
CHANGED
|
@@ -103,6 +103,7 @@ export default class AI {
|
|
|
103
103
|
throw error;
|
|
104
104
|
} finally {
|
|
105
105
|
// Clean up the temporary input file
|
|
106
|
+
console.log("Cleaning up temporary file:", tempFilePath);
|
|
106
107
|
if (fs.existsSync(tempFilePath)) {
|
|
107
108
|
fs.unlinkSync(tempFilePath);
|
|
108
109
|
}
|
|
@@ -237,7 +238,8 @@ export default class AI {
|
|
|
237
238
|
return { error: e.message };
|
|
238
239
|
} finally {
|
|
239
240
|
for (let context_file of context_files) {
|
|
240
|
-
|
|
241
|
+
let directory = path.dirname(context_file.path);
|
|
242
|
+
await this.deleteFolderRecursive(directory);
|
|
241
243
|
}
|
|
242
244
|
}
|
|
243
245
|
}
|
package/src/index.js
CHANGED
|
@@ -33,7 +33,7 @@ export { default as MailDebug } from "./mail/providers/Debug";
|
|
|
33
33
|
export { default as DebugStorage } from "./storage/providers/Debug";
|
|
34
34
|
export { default as LocalStorage } from "./storage/providers/Local";
|
|
35
35
|
export { default as Storage } from "./storage/Storage";
|
|
36
|
-
export { default as AI } from "./artificial_intelligence/Ai
|
|
36
|
+
export { default as AI } from "./artificial_intelligence/Ai";
|
|
37
37
|
|
|
38
38
|
export { default as MailFile } from "./mail/providers/File";
|
|
39
39
|
export { default as SpiceCache } from "./cache/providers/SpiceCache";
|