@vellumai/vellum-gateway 0.4.57 → 0.5.0
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/package.json
CHANGED
|
@@ -118,10 +118,7 @@ function writeEncryptedStore(botToken: string, webhookSecret: string): void {
|
|
|
118
118
|
* Write Telegram credentials into a v2 encrypted store using a random
|
|
119
119
|
* store.key file (no PBKDF2 derivation).
|
|
120
120
|
*/
|
|
121
|
-
function writeEncryptedStoreV2(
|
|
122
|
-
botToken: string,
|
|
123
|
-
webhookSecret: string,
|
|
124
|
-
): void {
|
|
121
|
+
function writeEncryptedStoreV2(botToken: string, webhookSecret: string): void {
|
|
125
122
|
const protectedDir = join(testDir, ".vellum", "protected");
|
|
126
123
|
mkdirSync(protectedDir, { recursive: true });
|
|
127
124
|
|
|
@@ -77,16 +77,12 @@ export class CredentialWatcher {
|
|
|
77
77
|
|
|
78
78
|
private startWatcher(dir: string, targetFilename: string): void {
|
|
79
79
|
try {
|
|
80
|
-
const watcher = watch(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
this.scheduleCheck();
|
|
88
|
-
},
|
|
89
|
-
);
|
|
80
|
+
const watcher = watch(dir, { persistent: false }, (_event, filename) => {
|
|
81
|
+
if (filename && filename !== targetFilename) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
this.scheduleCheck();
|
|
85
|
+
});
|
|
90
86
|
this.watchers.push(watcher);
|
|
91
87
|
|
|
92
88
|
log.info(
|
|
@@ -94,10 +90,7 @@ export class CredentialWatcher {
|
|
|
94
90
|
"Watching for credential changes",
|
|
95
91
|
);
|
|
96
92
|
} catch (err) {
|
|
97
|
-
log.warn(
|
|
98
|
-
{ err, path: dir },
|
|
99
|
-
"Failed to start credential file watcher",
|
|
100
|
-
);
|
|
93
|
+
log.warn({ err, path: dir }, "Failed to start credential file watcher");
|
|
101
94
|
}
|
|
102
95
|
}
|
|
103
96
|
|