snow-ai 0.7.37 → 0.7.38
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/bundle/cli.mjs +29 -5
- package/bundle/package.json +1 -1
- package/package.json +1 -1
package/bundle/cli.mjs
CHANGED
|
@@ -634053,12 +634053,36 @@ var init_WelcomeScreen = __esm({
|
|
|
634053
634053
|
function sanitizeInput2(str2) {
|
|
634054
634054
|
return str2.replace(/\r\n/g, "\n").replace(/\r/g, "\n").replace(/\t/g, " ").replace(/\x1b\[[IO]/g, "").replace(/(^|\s+)\[(?:I|O)(?=(?:\s|$|["'~\\\/]|[A-Za-z]:))/g, "$1").replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g, "");
|
|
634055
634055
|
}
|
|
634056
|
-
function
|
|
634056
|
+
function isStrictBase64(base64Data) {
|
|
634057
634057
|
if (base64Data.length <= 100)
|
|
634058
|
-
return
|
|
634058
|
+
return false;
|
|
634059
634059
|
if (base64Data.length % 4 !== 0)
|
|
634060
|
-
return
|
|
634061
|
-
|
|
634060
|
+
return false;
|
|
634061
|
+
let paddingStart = base64Data.length;
|
|
634062
|
+
for (let index = 0; index < base64Data.length; index += 1) {
|
|
634063
|
+
const code = base64Data.charCodeAt(index);
|
|
634064
|
+
const isBase64Char = code >= 65 && code <= 90 || code >= 97 && code <= 122 || code >= 48 && code <= 57 || code === 43 || code === 47;
|
|
634065
|
+
if (isBase64Char) {
|
|
634066
|
+
if (paddingStart !== base64Data.length)
|
|
634067
|
+
return false;
|
|
634068
|
+
continue;
|
|
634069
|
+
}
|
|
634070
|
+
if (code === 61) {
|
|
634071
|
+
if (paddingStart === base64Data.length)
|
|
634072
|
+
paddingStart = index;
|
|
634073
|
+
continue;
|
|
634074
|
+
}
|
|
634075
|
+
return false;
|
|
634076
|
+
}
|
|
634077
|
+
const paddingLength = base64Data.length - paddingStart;
|
|
634078
|
+
if (paddingLength > 2)
|
|
634079
|
+
return false;
|
|
634080
|
+
if (paddingLength > 0 && paddingStart < base64Data.length - 2)
|
|
634081
|
+
return false;
|
|
634082
|
+
return true;
|
|
634083
|
+
}
|
|
634084
|
+
function decodeStrictBase64(base64Data) {
|
|
634085
|
+
if (!isStrictBase64(base64Data))
|
|
634062
634086
|
return null;
|
|
634063
634087
|
const decoded = Buffer.from(base64Data, "base64");
|
|
634064
634088
|
if (decoded.length === 0)
|
|
@@ -676725,7 +676749,7 @@ var require_package4 = __commonJS({
|
|
|
676725
676749
|
"package.json"(exports2, module2) {
|
|
676726
676750
|
module2.exports = {
|
|
676727
676751
|
name: "snow-ai",
|
|
676728
|
-
version: "0.7.
|
|
676752
|
+
version: "0.7.38",
|
|
676729
676753
|
description: "Agentic coding in your terminal",
|
|
676730
676754
|
license: "MIT",
|
|
676731
676755
|
bin: {
|
package/bundle/package.json
CHANGED