replicas-cli 0.3.82 → 0.3.84
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.cjs +15 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -28646,7 +28646,7 @@ var headlessAgentRequestSchema = external_exports.object({
|
|
|
28646
28646
|
});
|
|
28647
28647
|
|
|
28648
28648
|
// ../shared/src/cli-version.ts
|
|
28649
|
-
var CLI_VERSION = "0.3.
|
|
28649
|
+
var CLI_VERSION = "0.3.84";
|
|
28650
28650
|
|
|
28651
28651
|
// ../shared/src/version.ts
|
|
28652
28652
|
function compareVersions(v1, v2) {
|
|
@@ -29326,6 +29326,10 @@ var MAX_REPO_FILE_CONTENT_BYTES = 256 * 1024;
|
|
|
29326
29326
|
var WEBHOOK_PROVIDERS = ["linear", "github", "gitlab", "slack", "e2b", "stripe", "sentry"];
|
|
29327
29327
|
var WEBHOOK_PROVIDER_SET = new Set(WEBHOOK_PROVIDERS);
|
|
29328
29328
|
|
|
29329
|
+
// ../shared/src/routes/environment-hook-runs.ts
|
|
29330
|
+
var ENVIRONMENT_HOOK_RUN_LOG_LIMIT = 5 * 1024 * 1024;
|
|
29331
|
+
var ENVIRONMENT_HOOK_RUN_TAIL_LIMIT = 8 * 1024;
|
|
29332
|
+
|
|
29329
29333
|
// ../shared/src/onboarding-emails.ts
|
|
29330
29334
|
var EMAIL_KEYS = [
|
|
29331
29335
|
"welcome",
|
|
@@ -29373,24 +29377,29 @@ function parseSseChunk(chunk) {
|
|
|
29373
29377
|
return null;
|
|
29374
29378
|
}
|
|
29375
29379
|
}
|
|
29376
|
-
async function
|
|
29380
|
+
async function* iterateSseStream(body) {
|
|
29377
29381
|
const reader = body.getReader();
|
|
29378
29382
|
const decoder2 = new TextDecoder();
|
|
29379
29383
|
let buffer = "";
|
|
29380
|
-
while (
|
|
29384
|
+
while (true) {
|
|
29381
29385
|
const { done, value } = await reader.read();
|
|
29382
29386
|
if (done) break;
|
|
29383
29387
|
buffer += decoder2.decode(value, { stream: true });
|
|
29384
29388
|
const chunks = buffer.split("\n\n");
|
|
29385
29389
|
buffer = chunks.pop() ?? "";
|
|
29386
29390
|
for (const chunk of chunks) {
|
|
29387
|
-
if (!shouldContinue()) break;
|
|
29388
29391
|
const event = parseSseChunk(chunk);
|
|
29389
|
-
if (
|
|
29390
|
-
await onEvent(event);
|
|
29392
|
+
if (event) yield event;
|
|
29391
29393
|
}
|
|
29392
29394
|
}
|
|
29393
29395
|
}
|
|
29396
|
+
async function readSseStream(body, onEvent, shouldContinue = () => true) {
|
|
29397
|
+
if (!shouldContinue()) return;
|
|
29398
|
+
for await (const event of iterateSseStream(body)) {
|
|
29399
|
+
if (!shouldContinue()) break;
|
|
29400
|
+
await onEvent(event);
|
|
29401
|
+
}
|
|
29402
|
+
}
|
|
29394
29403
|
|
|
29395
29404
|
// src/lib/auth.ts
|
|
29396
29405
|
var import_supabase_js2 = require("@supabase/supabase-js");
|