@playcademy/sandbox 0.3.12 → 0.3.14
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/cli.js +567 -139
- package/dist/constants.js +9 -4
- package/dist/server.d.ts +1 -1
- package/dist/server.js +567 -139
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -283,7 +283,7 @@ var init_auth = __esm(() => {
|
|
|
283
283
|
});
|
|
284
284
|
|
|
285
285
|
// ../constants/src/typescript.ts
|
|
286
|
-
var TSC_PACKAGE = "
|
|
286
|
+
var TSC_PACKAGE = "typescript", USE_NATIVE_TSC;
|
|
287
287
|
var init_typescript = __esm(() => {
|
|
288
288
|
USE_NATIVE_TSC = TSC_PACKAGE.includes("native-preview");
|
|
289
289
|
});
|
|
@@ -351,11 +351,16 @@ var init_overworld = __esm(() => {
|
|
|
351
351
|
var PLATFORM_TIMEZONE = "America/New_York";
|
|
352
352
|
|
|
353
353
|
// ../constants/src/timeback.ts
|
|
354
|
-
var TIMEBACK_ORG_SOURCED_ID = "PLAYCADEMY";
|
|
355
|
-
var init_timeback2 = () => {
|
|
354
|
+
var TIMEBACK_ROUTES, TIMEBACK_ORG_SOURCED_ID = "PLAYCADEMY";
|
|
355
|
+
var init_timeback2 = __esm(() => {
|
|
356
|
+
TIMEBACK_ROUTES = {
|
|
357
|
+
END_ACTIVITY: "/integrations/timeback/end-activity",
|
|
358
|
+
GET_XP: "/integrations/timeback/xp"
|
|
359
|
+
};
|
|
360
|
+
});
|
|
356
361
|
|
|
357
362
|
// ../constants/src/workers.ts
|
|
358
|
-
var WORKER_NAMING;
|
|
363
|
+
var WORKER_NAMING, SECRETS_PREFIX = "secrets_";
|
|
359
364
|
var init_workers = __esm(() => {
|
|
360
365
|
WORKER_NAMING = {
|
|
361
366
|
STAGING_PREFIX: "staging-",
|
|
@@ -1225,7 +1230,7 @@ var package_default;
|
|
|
1225
1230
|
var init_package = __esm(() => {
|
|
1226
1231
|
package_default = {
|
|
1227
1232
|
name: "@playcademy/sandbox",
|
|
1228
|
-
version: "0.3.
|
|
1233
|
+
version: "0.3.14",
|
|
1229
1234
|
description: "Local development server for Playcademy game development",
|
|
1230
1235
|
type: "module",
|
|
1231
1236
|
exports: {
|
|
@@ -15816,8 +15821,9 @@ class SecretsService {
|
|
|
15816
15821
|
}
|
|
15817
15822
|
}
|
|
15818
15823
|
}
|
|
15819
|
-
var logger21,
|
|
15824
|
+
var logger21, INTERNAL_SECRET_KEYS;
|
|
15820
15825
|
var init_secrets_service = __esm(() => {
|
|
15826
|
+
init_src();
|
|
15821
15827
|
init_src2();
|
|
15822
15828
|
init_config2();
|
|
15823
15829
|
init_errors();
|
|
@@ -15826,6 +15832,33 @@ var init_secrets_service = __esm(() => {
|
|
|
15826
15832
|
INTERNAL_SECRET_KEYS = ["PLAYCADEMY_API_KEY", "GAME_ID", "PLAYCADEMY_BASE_URL"];
|
|
15827
15833
|
});
|
|
15828
15834
|
|
|
15835
|
+
// ../edge-play/src/constants.ts
|
|
15836
|
+
var ROUTES;
|
|
15837
|
+
var init_constants2 = __esm(() => {
|
|
15838
|
+
init_src();
|
|
15839
|
+
ROUTES = {
|
|
15840
|
+
INDEX: "/api",
|
|
15841
|
+
HEALTH: "/api/health",
|
|
15842
|
+
TIMEBACK: {
|
|
15843
|
+
END_ACTIVITY: `/api${TIMEBACK_ROUTES.END_ACTIVITY}`,
|
|
15844
|
+
GET_XP: `/api${TIMEBACK_ROUTES.GET_XP}`
|
|
15845
|
+
}
|
|
15846
|
+
};
|
|
15847
|
+
});
|
|
15848
|
+
|
|
15849
|
+
// ../edge-play/src/entry/setup.ts
|
|
15850
|
+
function prefixSecrets(secrets) {
|
|
15851
|
+
const prefixed = {};
|
|
15852
|
+
for (const [key, value] of Object.entries(secrets)) {
|
|
15853
|
+
prefixed[SECRETS_PREFIX + key] = value;
|
|
15854
|
+
}
|
|
15855
|
+
return prefixed;
|
|
15856
|
+
}
|
|
15857
|
+
var init_setup = __esm(() => {
|
|
15858
|
+
init_src();
|
|
15859
|
+
init_constants2();
|
|
15860
|
+
});
|
|
15861
|
+
|
|
15829
15862
|
// ../api-core/src/services/seed.service.ts
|
|
15830
15863
|
class SeedService {
|
|
15831
15864
|
ctx;
|
|
@@ -15840,7 +15873,7 @@ class SeedService {
|
|
|
15840
15873
|
}
|
|
15841
15874
|
return cf;
|
|
15842
15875
|
}
|
|
15843
|
-
async seed(slug2, code, user) {
|
|
15876
|
+
async seed(slug2, code, user, secrets) {
|
|
15844
15877
|
const cf = this.getCloudflare();
|
|
15845
15878
|
const game = await this.ctx.services.game.validateDeveloperAccessBySlug(user, slug2);
|
|
15846
15879
|
const isProd = isProduction2(this.ctx.config);
|
|
@@ -15852,10 +15885,11 @@ class SeedService {
|
|
|
15852
15885
|
gameId: game.id,
|
|
15853
15886
|
slug: slug2,
|
|
15854
15887
|
deploymentId,
|
|
15855
|
-
codeLength: code.length
|
|
15888
|
+
codeLength: code.length,
|
|
15889
|
+
secretCount: secrets ? Object.keys(secrets).length : 0
|
|
15856
15890
|
});
|
|
15857
15891
|
try {
|
|
15858
|
-
const workerResponse = await this.deployAndExecuteSeedWorker(cf, seedDeploymentId, game.id, deploymentId, code);
|
|
15892
|
+
const workerResponse = await this.deployAndExecuteSeedWorker(cf, seedDeploymentId, game.id, deploymentId, code, secrets);
|
|
15859
15893
|
logger22.info("Seed completed", {
|
|
15860
15894
|
gameId: game.id,
|
|
15861
15895
|
slug: slug2,
|
|
@@ -15927,7 +15961,7 @@ class SeedService {
|
|
|
15927
15961
|
});
|
|
15928
15962
|
}
|
|
15929
15963
|
}
|
|
15930
|
-
async deployAndExecuteSeedWorker(cf, seedDeploymentId, gameId, deploymentId, workerCode) {
|
|
15964
|
+
async deployAndExecuteSeedWorker(cf, seedDeploymentId, gameId, deploymentId, workerCode, secrets) {
|
|
15931
15965
|
try {
|
|
15932
15966
|
const result = await cf.deploy(seedDeploymentId, workerCode, {
|
|
15933
15967
|
GAME_ID: gameId,
|
|
@@ -15937,6 +15971,13 @@ class SeedService {
|
|
|
15937
15971
|
keepAssets: false
|
|
15938
15972
|
});
|
|
15939
15973
|
logger22.info("Worker deployed", { seedDeploymentId, url: result.url });
|
|
15974
|
+
if (secrets && Object.keys(secrets).length > 0) {
|
|
15975
|
+
await cf.setSecrets(seedDeploymentId, prefixSecrets(secrets));
|
|
15976
|
+
logger22.info("Secrets bound to worker", {
|
|
15977
|
+
seedDeploymentId,
|
|
15978
|
+
count: Object.keys(secrets).length
|
|
15979
|
+
});
|
|
15980
|
+
}
|
|
15940
15981
|
return await this.executeSeedWorker(result.url, seedDeploymentId);
|
|
15941
15982
|
} finally {
|
|
15942
15983
|
await this.cleanupSeedWorker(cf, seedDeploymentId);
|
|
@@ -16052,6 +16093,7 @@ class SeedService {
|
|
|
16052
16093
|
}
|
|
16053
16094
|
var logger22;
|
|
16054
16095
|
var init_seed_service = __esm(() => {
|
|
16096
|
+
init_setup();
|
|
16055
16097
|
init_src2();
|
|
16056
16098
|
init_config2();
|
|
16057
16099
|
init_errors();
|
|
@@ -16519,7 +16561,7 @@ function isTimebackSubject(value) {
|
|
|
16519
16561
|
function isTimebackGrade(value) {
|
|
16520
16562
|
return typeof value === "number" && Number.isInteger(value) && GRADE_VALUES.includes(value);
|
|
16521
16563
|
}
|
|
16522
|
-
var __esm2 = (fn, res) => () => (fn && (res = fn(fn = 0)), res), ACHIEVEMENT_IDS2, ACHIEVEMENT_DEFINITIONS2, init_achievements2, init_auth2 = () => {}, TSC_PACKAGE2 = "
|
|
16564
|
+
var __esm2 = (fn, res) => () => (fn && (res = fn(fn = 0)), res), ACHIEVEMENT_IDS2, ACHIEVEMENT_DEFINITIONS2, init_achievements2, init_auth2 = () => {}, TSC_PACKAGE2 = "typescript", USE_NATIVE_TSC2, init_typescript2, init_character2 = () => {}, PLAYCADEMY_BASE_URLS, init_domains2, init_env_vars2 = () => {}, ITEM_SLUGS2, CURRENCIES2, BADGES2, init_overworld2, TIMEBACK_CALIPER_SENSORS, TIMEBACK_ORG_SOURCED_ID2 = "PLAYCADEMY", TIMEBACK_ORG_NAME = "Playcademy Studios", TIMEBACK_ORG_TYPE = "department", TIMEBACK_COURSE_DEFAULTS, TIMEBACK_RESOURCE_DEFAULTS, TIMEBACK_COMPONENT_DEFAULTS, TIMEBACK_COMPONENT_RESOURCE_DEFAULTS, init_timeback3, init_workers2 = () => {}, init_src5, TIMEBACK_API_URLS, TIMEBACK_AUTH_URLS, CALIPER_API_URLS, ONEROSTER_ENDPOINTS, CALIPER_ENDPOINTS, CALIPER_CONSTANTS, TIMEBACK_EVENT_TYPES, TIMEBACK_ACTIONS, TIMEBACK_TYPES, ACTIVITY_METRIC_TYPES, TIME_METRIC_TYPES, TIMEBACK_SUBJECTS, TIMEBACK_GRADE_LEVELS, TIMEBACK_GRADE_LEVEL_LABELS, CALIPER_SUBJECTS, ONEROSTER_STATUS, SCORE_STATUS, ENV_VARS, HTTP_DEFAULTS, AUTH_DEFAULTS, CACHE_DEFAULTS, CONFIG_DEFAULTS, PLAYCADEMY_DEFAULTS, RESOURCE_DEFAULTS, HTTP_STATUS, ERROR_NAMES, init_constants3, isObject = (value) => typeof value === "object" && value !== null, SUBJECT_VALUES, GRADE_VALUES;
|
|
16523
16565
|
var init_types7 = __esm(() => {
|
|
16524
16566
|
init_achievements2 = __esm2(() => {
|
|
16525
16567
|
ACHIEVEMENT_IDS2 = {
|
|
@@ -16696,7 +16738,7 @@ var init_types7 = __esm(() => {
|
|
|
16696
16738
|
init_timeback3();
|
|
16697
16739
|
init_workers2();
|
|
16698
16740
|
});
|
|
16699
|
-
|
|
16741
|
+
init_constants3 = __esm2(() => {
|
|
16700
16742
|
init_src5();
|
|
16701
16743
|
TIMEBACK_API_URLS = {
|
|
16702
16744
|
production: "https://api.alpha-1edtech.ai",
|
|
@@ -16871,7 +16913,7 @@ var init_types7 = __esm(() => {
|
|
|
16871
16913
|
timebackSdk: "TimebackSDKError"
|
|
16872
16914
|
};
|
|
16873
16915
|
});
|
|
16874
|
-
|
|
16916
|
+
init_constants3();
|
|
16875
16917
|
SUBJECT_VALUES = TIMEBACK_SUBJECTS;
|
|
16876
16918
|
GRADE_VALUES = TIMEBACK_GRADE_LEVELS;
|
|
16877
16919
|
});
|
|
@@ -17436,6 +17478,48 @@ class TimebackService {
|
|
|
17436
17478
|
inProgress: result.inProgress
|
|
17437
17479
|
};
|
|
17438
17480
|
}
|
|
17481
|
+
async getStudentXp(timebackId, options) {
|
|
17482
|
+
const client = this.requireClient();
|
|
17483
|
+
const db2 = this.ctx.db;
|
|
17484
|
+
let courseIds = [];
|
|
17485
|
+
if (options?.gameId) {
|
|
17486
|
+
const conditions2 = [eq(gameTimebackIntegrations.gameId, options.gameId)];
|
|
17487
|
+
if (options.grade !== undefined && options.subject) {
|
|
17488
|
+
conditions2.push(eq(gameTimebackIntegrations.grade, options.grade));
|
|
17489
|
+
conditions2.push(eq(gameTimebackIntegrations.subject, options.subject));
|
|
17490
|
+
}
|
|
17491
|
+
const integrations = await db2.query.gameTimebackIntegrations.findMany({
|
|
17492
|
+
where: and(...conditions2)
|
|
17493
|
+
});
|
|
17494
|
+
courseIds = integrations.map((i2) => i2.courseId);
|
|
17495
|
+
if (courseIds.length === 0) {
|
|
17496
|
+
logger27.debug("No integrations found for game, returning 0 XP", {
|
|
17497
|
+
timebackId,
|
|
17498
|
+
gameId: options.gameId,
|
|
17499
|
+
grade: options.grade,
|
|
17500
|
+
subject: options.subject
|
|
17501
|
+
});
|
|
17502
|
+
return {
|
|
17503
|
+
totalXp: 0,
|
|
17504
|
+
...options?.include?.today && { todayXp: 0 },
|
|
17505
|
+
...options?.include?.perCourse && { courses: [] }
|
|
17506
|
+
};
|
|
17507
|
+
}
|
|
17508
|
+
}
|
|
17509
|
+
const result = await client.getStudentXp(timebackId, {
|
|
17510
|
+
courseIds: courseIds.length > 0 ? courseIds : undefined,
|
|
17511
|
+
include: options?.include
|
|
17512
|
+
});
|
|
17513
|
+
logger27.debug("Retrieved student XP", {
|
|
17514
|
+
timebackId,
|
|
17515
|
+
gameId: options?.gameId,
|
|
17516
|
+
grade: options?.grade,
|
|
17517
|
+
subject: options?.subject,
|
|
17518
|
+
totalXp: result.totalXp,
|
|
17519
|
+
courseCount: result.courses?.length
|
|
17520
|
+
});
|
|
17521
|
+
return result;
|
|
17522
|
+
}
|
|
17439
17523
|
}
|
|
17440
17524
|
var logger27;
|
|
17441
17525
|
var init_timeback_service = __esm(() => {
|
|
@@ -17759,6 +17843,7 @@ var init_services = __esm(() => {
|
|
|
17759
17843
|
});
|
|
17760
17844
|
|
|
17761
17845
|
// ../timeback/dist/index.js
|
|
17846
|
+
import { stdout as stdout2 } from "process";
|
|
17762
17847
|
function deriveSourcedIds(courseId) {
|
|
17763
17848
|
return {
|
|
17764
17849
|
course: courseId,
|
|
@@ -17855,6 +17940,117 @@ function isTimebackSubject2(value) {
|
|
|
17855
17940
|
function isTimebackGrade2(value) {
|
|
17856
17941
|
return typeof value === "number" && Number.isInteger(value) && GRADE_VALUES2.includes(value);
|
|
17857
17942
|
}
|
|
17943
|
+
function stripAnsi2(text3) {
|
|
17944
|
+
return text3.replace(/\x1B\[[0-9;]*[a-zA-Z]/g, "");
|
|
17945
|
+
}
|
|
17946
|
+
|
|
17947
|
+
class Spinner2 {
|
|
17948
|
+
tasks = new Map;
|
|
17949
|
+
frameIndex = 0;
|
|
17950
|
+
intervalId = null;
|
|
17951
|
+
renderCount = 0;
|
|
17952
|
+
previousLineCount = 0;
|
|
17953
|
+
printedTasks = new Set;
|
|
17954
|
+
indent;
|
|
17955
|
+
constructor(taskIds, texts, options) {
|
|
17956
|
+
this.indent = options?.indent ?? 0;
|
|
17957
|
+
taskIds.forEach((id, index2) => {
|
|
17958
|
+
this.tasks.set(id, {
|
|
17959
|
+
text: texts[index2] || "",
|
|
17960
|
+
status: "pending"
|
|
17961
|
+
});
|
|
17962
|
+
});
|
|
17963
|
+
}
|
|
17964
|
+
start() {
|
|
17965
|
+
if (isInteractive2) {
|
|
17966
|
+
stdout2.write(cursor2.hide);
|
|
17967
|
+
this.render();
|
|
17968
|
+
this.intervalId = setInterval(() => {
|
|
17969
|
+
this.frameIndex = (this.frameIndex + 1) % SPINNER_FRAMES2.length;
|
|
17970
|
+
this.render();
|
|
17971
|
+
}, SPINNER_INTERVAL2);
|
|
17972
|
+
}
|
|
17973
|
+
}
|
|
17974
|
+
updateTask(taskId, status, finalText) {
|
|
17975
|
+
const task = this.tasks.get(taskId);
|
|
17976
|
+
if (task) {
|
|
17977
|
+
task.status = status;
|
|
17978
|
+
if (finalText)
|
|
17979
|
+
task.finalText = finalText;
|
|
17980
|
+
if (!isInteractive2) {
|
|
17981
|
+
this.renderNonInteractive(taskId, task);
|
|
17982
|
+
}
|
|
17983
|
+
}
|
|
17984
|
+
}
|
|
17985
|
+
renderNonInteractive(taskId, task) {
|
|
17986
|
+
const key = `${taskId}-${task.status}`;
|
|
17987
|
+
if (this.printedTasks.has(key))
|
|
17988
|
+
return;
|
|
17989
|
+
this.printedTasks.add(key);
|
|
17990
|
+
const indentStr = " ".repeat(this.indent);
|
|
17991
|
+
let line3 = "";
|
|
17992
|
+
switch (task.status) {
|
|
17993
|
+
case "running":
|
|
17994
|
+
line3 = `${indentStr}[RUNNING] ${stripAnsi2(task.text)}`;
|
|
17995
|
+
break;
|
|
17996
|
+
case "success":
|
|
17997
|
+
line3 = `${indentStr}[SUCCESS] ${stripAnsi2(task.finalText || task.text)}`;
|
|
17998
|
+
break;
|
|
17999
|
+
case "error":
|
|
18000
|
+
line3 = `${indentStr}[ERROR] Failed: ${stripAnsi2(task.text)}`;
|
|
18001
|
+
break;
|
|
18002
|
+
}
|
|
18003
|
+
console.log(line3);
|
|
18004
|
+
}
|
|
18005
|
+
render() {
|
|
18006
|
+
if (this.previousLineCount > 0) {
|
|
18007
|
+
stdout2.write(cursor2.up(this.previousLineCount));
|
|
18008
|
+
}
|
|
18009
|
+
const spinner2 = SPINNER_FRAMES2[this.frameIndex];
|
|
18010
|
+
const indentStr = " ".repeat(this.indent);
|
|
18011
|
+
const visibleTasks = Array.from(this.tasks.values()).filter((task) => task.status !== "pending");
|
|
18012
|
+
for (const task of visibleTasks) {
|
|
18013
|
+
stdout2.write(`\r${cursor2.clearLine}`);
|
|
18014
|
+
let line3 = "";
|
|
18015
|
+
switch (task.status) {
|
|
18016
|
+
case "running":
|
|
18017
|
+
line3 = `${indentStr}${colors22.blue}${spinner2}${styles2.reset} ${task.text}`;
|
|
18018
|
+
break;
|
|
18019
|
+
case "success":
|
|
18020
|
+
line3 = `${indentStr}${colors22.green}${CHECK_MARK2}${styles2.reset} ${task.finalText || task.text}`;
|
|
18021
|
+
break;
|
|
18022
|
+
case "error":
|
|
18023
|
+
line3 = `${indentStr}${colors22.red}${CROSS_MARK2}${styles2.reset} Failed: ${task.text}`;
|
|
18024
|
+
break;
|
|
18025
|
+
}
|
|
18026
|
+
console.log(line3);
|
|
18027
|
+
}
|
|
18028
|
+
this.previousLineCount = visibleTasks.length;
|
|
18029
|
+
this.renderCount++;
|
|
18030
|
+
}
|
|
18031
|
+
stop() {
|
|
18032
|
+
if (this.intervalId) {
|
|
18033
|
+
clearInterval(this.intervalId);
|
|
18034
|
+
this.intervalId = null;
|
|
18035
|
+
}
|
|
18036
|
+
if (isInteractive2) {
|
|
18037
|
+
this.render();
|
|
18038
|
+
stdout2.write(cursor2.show);
|
|
18039
|
+
} else {
|
|
18040
|
+
this.tasks.forEach((task, taskId) => {
|
|
18041
|
+
if (task.status !== "pending") {
|
|
18042
|
+
this.renderNonInteractive(taskId, task);
|
|
18043
|
+
}
|
|
18044
|
+
});
|
|
18045
|
+
}
|
|
18046
|
+
}
|
|
18047
|
+
}
|
|
18048
|
+
function kebabToTitleCase(kebabStr) {
|
|
18049
|
+
return kebabStr.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
18050
|
+
}
|
|
18051
|
+
function formatDateYMD(date3 = new Date) {
|
|
18052
|
+
return date3.toISOString().split("T")[0];
|
|
18053
|
+
}
|
|
17858
18054
|
async function deleteTimebackResources(client, courseId) {
|
|
17859
18055
|
const sourcedIds = deriveSourcedIds(courseId);
|
|
17860
18056
|
const { fetchTimebackConfig: fetchTimebackConfig2 } = await Promise.resolve().then(() => (init_verify(), exports_verify));
|
|
@@ -19014,9 +19210,6 @@ class MasteryTracker {
|
|
|
19014
19210
|
return total;
|
|
19015
19211
|
}
|
|
19016
19212
|
}
|
|
19017
|
-
function kebabToTitleCase(kebabStr) {
|
|
19018
|
-
return kebabStr.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
19019
|
-
}
|
|
19020
19213
|
function validateProgressData(progressData) {
|
|
19021
19214
|
if (!progressData.subject) {
|
|
19022
19215
|
throw new ConfigurationError("subject", "Subject is required for Caliper events. Provide it in progressData.subject");
|
|
@@ -19039,30 +19232,39 @@ function validateSessionData(sessionData) {
|
|
|
19039
19232
|
throw new ConfigurationError("sensorUrl", 'Sensor URL is required for Caliper events. Provide it in sessionData.sensorUrl (e.g., "https://hub.playcademy.net/p/your-game")');
|
|
19040
19233
|
}
|
|
19041
19234
|
}
|
|
19042
|
-
function
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19235
|
+
function getAttemptMultiplier(attemptNumber) {
|
|
19236
|
+
switch (attemptNumber) {
|
|
19237
|
+
case 1:
|
|
19238
|
+
return 1;
|
|
19239
|
+
case 2:
|
|
19240
|
+
return 0.5;
|
|
19241
|
+
case 3:
|
|
19242
|
+
return 0.25;
|
|
19243
|
+
default:
|
|
19244
|
+
return 0;
|
|
19245
|
+
}
|
|
19246
|
+
}
|
|
19247
|
+
function getAccuracyMultiplier(accuracy) {
|
|
19248
|
+
if (!Number.isFinite(accuracy) || accuracy < 0) {
|
|
19249
|
+
return 0;
|
|
19250
|
+
}
|
|
19251
|
+
if (accuracy >= PERFECT_ACCURACY_THRESHOLD) {
|
|
19252
|
+
return 1.25;
|
|
19253
|
+
} else if (accuracy >= 0.8) {
|
|
19254
|
+
return 1;
|
|
19056
19255
|
} else {
|
|
19057
|
-
|
|
19058
|
-
multiplier = 1;
|
|
19059
|
-
} else if (accuracy >= 0.8) {
|
|
19060
|
-
multiplier = 0.5;
|
|
19061
|
-
} else {
|
|
19062
|
-
multiplier = 0;
|
|
19063
|
-
}
|
|
19256
|
+
return 0;
|
|
19064
19257
|
}
|
|
19065
|
-
|
|
19258
|
+
}
|
|
19259
|
+
function calculateXp(durationSeconds, accuracy, attemptNumber) {
|
|
19260
|
+
if (!Number.isFinite(durationSeconds) || durationSeconds <= 0) {
|
|
19261
|
+
return 0;
|
|
19262
|
+
}
|
|
19263
|
+
const durationMinutes = durationSeconds / 60;
|
|
19264
|
+
const baseXp = durationMinutes * 1;
|
|
19265
|
+
const accuracyMultiplier = getAccuracyMultiplier(accuracy);
|
|
19266
|
+
const attemptMultiplier = getAttemptMultiplier(attemptNumber);
|
|
19267
|
+
return Math.round(baseXp * accuracyMultiplier * attemptMultiplier * 10) / 10;
|
|
19066
19268
|
}
|
|
19067
19269
|
|
|
19068
19270
|
class ProgressRecorder {
|
|
@@ -19085,8 +19287,7 @@ class ProgressRecorder {
|
|
|
19085
19287
|
const { score, totalQuestions, correctQuestions, xpEarned, masteredUnits, attemptNumber } = progressData;
|
|
19086
19288
|
const actualLineItemId = await this.resolveAssessmentLineItem(activityId, activityName, progressData.classId, ids);
|
|
19087
19289
|
const currentAttemptNumber = await this.resolveAttemptNumber(attemptNumber, score, studentId, actualLineItemId);
|
|
19088
|
-
const
|
|
19089
|
-
const calculatedXp = this.calculateXpForProgress(progressData, totalQuestions, correctQuestions, xpEarned, isFirstActiveAttempt);
|
|
19290
|
+
const calculatedXp = this.calculateXpForProgress(progressData, totalQuestions, correctQuestions, xpEarned, currentAttemptNumber);
|
|
19090
19291
|
let extensions = progressData.extensions;
|
|
19091
19292
|
const masteryProgress = await this.masteryTracker.checkProgress({
|
|
19092
19293
|
studentId,
|
|
@@ -19157,18 +19358,18 @@ class ProgressRecorder {
|
|
|
19157
19358
|
}
|
|
19158
19359
|
return 1;
|
|
19159
19360
|
}
|
|
19160
|
-
calculateXpForProgress(progressData, totalQuestions, correctQuestions, xpEarned,
|
|
19361
|
+
calculateXpForProgress(progressData, totalQuestions, correctQuestions, xpEarned, attemptNumber) {
|
|
19161
19362
|
if (xpEarned !== undefined) {
|
|
19162
19363
|
log3.debug("[ProgressRecorder] Using provided XP", { xpEarned });
|
|
19163
19364
|
return xpEarned;
|
|
19164
19365
|
}
|
|
19165
19366
|
if (progressData.sessionDurationSeconds && totalQuestions && correctQuestions) {
|
|
19166
19367
|
const accuracy = correctQuestions / totalQuestions;
|
|
19167
|
-
const calculatedXp = calculateXp(progressData.sessionDurationSeconds, accuracy,
|
|
19368
|
+
const calculatedXp = calculateXp(progressData.sessionDurationSeconds, accuracy, attemptNumber);
|
|
19168
19369
|
log3.debug("[ProgressRecorder] Calculated XP", {
|
|
19169
19370
|
durationSeconds: progressData.sessionDurationSeconds,
|
|
19170
19371
|
accuracy,
|
|
19171
|
-
|
|
19372
|
+
attemptNumber,
|
|
19172
19373
|
calculatedXp
|
|
19173
19374
|
});
|
|
19174
19375
|
return calculatedXp;
|
|
@@ -20125,6 +20326,70 @@ class TimebackClient {
|
|
|
20125
20326
|
this.cacheManager.setEnrollments(studentId, enrollments);
|
|
20126
20327
|
return enrollments;
|
|
20127
20328
|
}
|
|
20329
|
+
async getStudentXp(studentId, options) {
|
|
20330
|
+
await this._ensureAuthenticated();
|
|
20331
|
+
const enrollments = await this.edubridge.enrollments.listByUser(studentId);
|
|
20332
|
+
const filteredEnrollments = options?.courseIds?.length ? enrollments.filter((e) => options.courseIds.includes(e.course.id)) : enrollments;
|
|
20333
|
+
if (filteredEnrollments.length === 0) {
|
|
20334
|
+
return {
|
|
20335
|
+
totalXp: 0,
|
|
20336
|
+
...options?.include?.today && { todayXp: 0 },
|
|
20337
|
+
...options?.include?.perCourse && { courses: [] }
|
|
20338
|
+
};
|
|
20339
|
+
}
|
|
20340
|
+
const analyticsResults = await Promise.all(filteredEnrollments.map(async (enrollment) => {
|
|
20341
|
+
try {
|
|
20342
|
+
const analytics = await this.edubridge.analytics.getEnrollmentFacts(enrollment.id);
|
|
20343
|
+
return { enrollment, analytics };
|
|
20344
|
+
} catch (error) {
|
|
20345
|
+
log3.warn("[TimebackClient] Failed to fetch analytics for enrollment", {
|
|
20346
|
+
enrollmentId: enrollment.id,
|
|
20347
|
+
error
|
|
20348
|
+
});
|
|
20349
|
+
return { enrollment, analytics: null };
|
|
20350
|
+
}
|
|
20351
|
+
}));
|
|
20352
|
+
const today = formatDateYMD();
|
|
20353
|
+
let totalXp = 0;
|
|
20354
|
+
let todayXp = 0;
|
|
20355
|
+
const courses = [];
|
|
20356
|
+
for (const { enrollment, analytics } of analyticsResults) {
|
|
20357
|
+
let courseXp = 0;
|
|
20358
|
+
let courseTodayXp = 0;
|
|
20359
|
+
if (analytics?.facts) {
|
|
20360
|
+
for (const [date3, subjects] of Object.entries(analytics.facts)) {
|
|
20361
|
+
for (const subjectData of Object.values(subjects)) {
|
|
20362
|
+
const xp = subjectData.activityMetrics?.xpEarned ?? 0;
|
|
20363
|
+
courseXp += xp;
|
|
20364
|
+
if (date3 === today) {
|
|
20365
|
+
courseTodayXp += xp;
|
|
20366
|
+
}
|
|
20367
|
+
}
|
|
20368
|
+
}
|
|
20369
|
+
}
|
|
20370
|
+
totalXp += courseXp;
|
|
20371
|
+
todayXp += courseTodayXp;
|
|
20372
|
+
if (options?.include?.perCourse) {
|
|
20373
|
+
const gradeStr = enrollment.course.grades?.[0];
|
|
20374
|
+
const parsedGrade = gradeStr ? parseInt(gradeStr, 10) : 0;
|
|
20375
|
+
const grade = isTimebackGrade2(parsedGrade) ? parsedGrade : 0;
|
|
20376
|
+
const subjectStr = enrollment.course.subjects?.[0];
|
|
20377
|
+
const subject = subjectStr && isTimebackSubject2(subjectStr) ? subjectStr : "None";
|
|
20378
|
+
courses.push({
|
|
20379
|
+
grade,
|
|
20380
|
+
subject,
|
|
20381
|
+
title: enrollment.course.title,
|
|
20382
|
+
totalXp: courseXp,
|
|
20383
|
+
...options?.include?.today && { todayXp: courseTodayXp }
|
|
20384
|
+
});
|
|
20385
|
+
}
|
|
20386
|
+
}
|
|
20387
|
+
return {
|
|
20388
|
+
totalXp,
|
|
20389
|
+
...options?.include?.today && { todayXp },
|
|
20390
|
+
...options?.include?.perCourse && { courses }
|
|
20391
|
+
};
|
|
20392
|
+
}
|
|
20128
20393
|
clearCaches() {
|
|
20129
20394
|
this.cacheManager.clearAll();
|
|
20130
20395
|
}
|
|
@@ -20161,7 +20426,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
20161
20426
|
configurable: true,
|
|
20162
20427
|
set: (newValue) => all[name3] = () => newValue
|
|
20163
20428
|
});
|
|
20164
|
-
}, __esm3 = (fn, res) => () => (fn && (res = fn(fn = 0)), res), ACHIEVEMENT_IDS3, ACHIEVEMENT_DEFINITIONS3, init_achievements3, init_auth3 = () => {}, TSC_PACKAGE3 = "
|
|
20429
|
+
}, __esm3 = (fn, res) => () => (fn && (res = fn(fn = 0)), res), ACHIEVEMENT_IDS3, ACHIEVEMENT_DEFINITIONS3, init_achievements3, init_auth3 = () => {}, TSC_PACKAGE3 = "typescript", USE_NATIVE_TSC3, init_typescript3, init_character3 = () => {}, PLAYCADEMY_BASE_URLS2, init_domains3, init_env_vars3 = () => {}, ITEM_SLUGS3, CURRENCIES3, BADGES3, init_overworld3, TIMEBACK_CALIPER_SENSORS2, TIMEBACK_ORG_SOURCED_ID3 = "PLAYCADEMY", TIMEBACK_ORG_NAME2 = "Playcademy Studios", TIMEBACK_ORG_TYPE2 = "department", TIMEBACK_COURSE_DEFAULTS2, TIMEBACK_RESOURCE_DEFAULTS2, TIMEBACK_COMPONENT_DEFAULTS2, TIMEBACK_COMPONENT_RESOURCE_DEFAULTS2, init_timeback4, init_workers3 = () => {}, init_src6, TIMEBACK_API_URLS2, TIMEBACK_AUTH_URLS2, CALIPER_API_URLS2, ONEROSTER_ENDPOINTS2, CALIPER_ENDPOINTS2, createOneRosterUrls = (baseUrl) => {
|
|
20165
20430
|
const effective = baseUrl || TIMEBACK_API_URLS2.production;
|
|
20166
20431
|
const base = effective.replace(/\/$/, "");
|
|
20167
20432
|
return {
|
|
@@ -20169,7 +20434,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
20169
20434
|
course: (courseId) => `${base}${ONEROSTER_ENDPOINTS2.courses}/${courseId}`,
|
|
20170
20435
|
componentResource: (resourceId) => `${base}${ONEROSTER_ENDPOINTS2.componentResources}/${resourceId}`
|
|
20171
20436
|
};
|
|
20172
|
-
}, CALIPER_CONSTANTS2, TIMEBACK_EVENT_TYPES2, TIMEBACK_ACTIONS2, TIMEBACK_TYPES2, ACTIVITY_METRIC_TYPES2, TIME_METRIC_TYPES2, TIMEBACK_SUBJECTS2, TIMEBACK_GRADE_LEVELS2, TIMEBACK_GRADE_LEVEL_LABELS2, CALIPER_SUBJECTS2, ONEROSTER_STATUS2, SCORE_STATUS2, ENV_VARS2, HTTP_DEFAULTS2, AUTH_DEFAULTS2, CACHE_DEFAULTS2, CONFIG_DEFAULTS2, PLAYCADEMY_DEFAULTS2, RESOURCE_DEFAULTS2, HTTP_STATUS2, ERROR_NAMES2,
|
|
20437
|
+
}, CALIPER_CONSTANTS2, TIMEBACK_EVENT_TYPES2, TIMEBACK_ACTIONS2, TIMEBACK_TYPES2, ACTIVITY_METRIC_TYPES2, TIME_METRIC_TYPES2, TIMEBACK_SUBJECTS2, TIMEBACK_GRADE_LEVELS2, TIMEBACK_GRADE_LEVEL_LABELS2, CALIPER_SUBJECTS2, ONEROSTER_STATUS2, SCORE_STATUS2, ENV_VARS2, HTTP_DEFAULTS2, AUTH_DEFAULTS2, CACHE_DEFAULTS2, CONFIG_DEFAULTS2, PLAYCADEMY_DEFAULTS2, RESOURCE_DEFAULTS2, HTTP_STATUS2, ERROR_NAMES2, init_constants4, exports_verify, init_verify, TimebackError, TimebackApiError, TimebackAuthenticationError, StudentNotFoundError, ConfigurationError, ResourceNotFoundError, isObject2 = (value) => typeof value === "object" && value !== null, SUBJECT_VALUES2, GRADE_VALUES2, isBrowser2 = () => {
|
|
20173
20438
|
const g = globalThis;
|
|
20174
20439
|
return typeof g.window !== "undefined" && typeof g.document !== "undefined";
|
|
20175
20440
|
}, isProduction3 = () => {
|
|
@@ -20316,7 +20581,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
20316
20581
|
log: (level, message, context) => performLog2(level, message, context, scopeName),
|
|
20317
20582
|
scope: (name3) => createLogger2(scopeName ? `${scopeName}.${name3}` : name3)
|
|
20318
20583
|
};
|
|
20319
|
-
}, log3, TimebackAuthError, exports_external2, util3, objectUtil2, ZodParsedType2, getParsedType2 = (data) => {
|
|
20584
|
+
}, log3, colors22, styles2, cursor2, isInteractive2, SPINNER_FRAMES2, CHECK_MARK2, CROSS_MARK2, SPINNER_INTERVAL2 = 80, TimebackAuthError, PERFECT_ACCURACY_THRESHOLD = 0.999999, exports_external2, util3, objectUtil2, ZodParsedType2, getParsedType2 = (data) => {
|
|
20320
20585
|
const t = typeof data;
|
|
20321
20586
|
switch (t) {
|
|
20322
20587
|
case "undefined":
|
|
@@ -20708,7 +20973,7 @@ var init_dist3 = __esm(() => {
|
|
|
20708
20973
|
init_timeback4();
|
|
20709
20974
|
init_workers3();
|
|
20710
20975
|
});
|
|
20711
|
-
|
|
20976
|
+
init_constants4 = __esm3(() => {
|
|
20712
20977
|
init_src6();
|
|
20713
20978
|
TIMEBACK_API_URLS2 = {
|
|
20714
20979
|
production: "https://api.alpha-1edtech.ai",
|
|
@@ -20889,9 +21154,9 @@ var init_dist3 = __esm(() => {
|
|
|
20889
21154
|
fetchTimebackConfig: () => fetchTimebackConfig
|
|
20890
21155
|
});
|
|
20891
21156
|
init_verify = __esm3(() => {
|
|
20892
|
-
|
|
21157
|
+
init_constants4();
|
|
20893
21158
|
});
|
|
20894
|
-
|
|
21159
|
+
init_constants4();
|
|
20895
21160
|
TimebackError = class TimebackError extends Error {
|
|
20896
21161
|
constructor(message) {
|
|
20897
21162
|
super(message);
|
|
@@ -20948,7 +21213,7 @@ var init_dist3 = __esm(() => {
|
|
|
20948
21213
|
Object.setPrototypeOf(this, ResourceNotFoundError.prototype);
|
|
20949
21214
|
}
|
|
20950
21215
|
};
|
|
20951
|
-
|
|
21216
|
+
init_constants4();
|
|
20952
21217
|
SUBJECT_VALUES2 = TIMEBACK_SUBJECTS2;
|
|
20953
21218
|
GRADE_VALUES2 = TIMEBACK_GRADE_LEVELS2;
|
|
20954
21219
|
colors3 = {
|
|
@@ -20968,9 +21233,53 @@ var init_dist3 = __esm(() => {
|
|
|
20968
21233
|
error: 3
|
|
20969
21234
|
};
|
|
20970
21235
|
log3 = createLogger2();
|
|
21236
|
+
colors22 = {
|
|
21237
|
+
black: "\x1B[30m",
|
|
21238
|
+
red: "\x1B[31m",
|
|
21239
|
+
green: "\x1B[32m",
|
|
21240
|
+
yellow: "\x1B[33m",
|
|
21241
|
+
blue: "\x1B[34m",
|
|
21242
|
+
magenta: "\x1B[35m",
|
|
21243
|
+
cyan: "\x1B[36m",
|
|
21244
|
+
white: "\x1B[37m",
|
|
21245
|
+
gray: "\x1B[90m"
|
|
21246
|
+
};
|
|
21247
|
+
styles2 = {
|
|
21248
|
+
reset: "\x1B[0m",
|
|
21249
|
+
bold: "\x1B[1m",
|
|
21250
|
+
dim: "\x1B[2m",
|
|
21251
|
+
italic: "\x1B[3m",
|
|
21252
|
+
underline: "\x1B[4m"
|
|
21253
|
+
};
|
|
21254
|
+
cursor2 = {
|
|
21255
|
+
hide: "\x1B[?25l",
|
|
21256
|
+
show: "\x1B[?25h",
|
|
21257
|
+
up: (n) => `\x1B[${n}A`,
|
|
21258
|
+
down: (n) => `\x1B[${n}B`,
|
|
21259
|
+
forward: (n) => `\x1B[${n}C`,
|
|
21260
|
+
back: (n) => `\x1B[${n}D`,
|
|
21261
|
+
clearLine: "\x1B[K",
|
|
21262
|
+
clearScreen: "\x1B[2J",
|
|
21263
|
+
home: "\x1B[H"
|
|
21264
|
+
};
|
|
21265
|
+
isInteractive2 = typeof process !== "undefined" && process.stdout?.isTTY && !process.env.CI && process.env.TERM !== "dumb";
|
|
21266
|
+
SPINNER_FRAMES2 = [
|
|
21267
|
+
10251,
|
|
21268
|
+
10265,
|
|
21269
|
+
10297,
|
|
21270
|
+
10296,
|
|
21271
|
+
10300,
|
|
21272
|
+
10292,
|
|
21273
|
+
10278,
|
|
21274
|
+
10279,
|
|
21275
|
+
10247,
|
|
21276
|
+
10255
|
|
21277
|
+
].map((code) => String.fromCodePoint(code));
|
|
21278
|
+
CHECK_MARK2 = String.fromCodePoint(10004);
|
|
21279
|
+
CROSS_MARK2 = String.fromCodePoint(10006);
|
|
20971
21280
|
init_verify();
|
|
20972
|
-
|
|
20973
|
-
|
|
21281
|
+
init_constants4();
|
|
21282
|
+
init_constants4();
|
|
20974
21283
|
if (process.env.DEBUG === "true") {
|
|
20975
21284
|
process.env.TERM = "dumb";
|
|
20976
21285
|
}
|
|
@@ -20982,13 +21291,13 @@ var init_dist3 = __esm(() => {
|
|
|
20982
21291
|
this.name = ERROR_NAMES2.timebackAuth;
|
|
20983
21292
|
}
|
|
20984
21293
|
};
|
|
20985
|
-
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
|
|
20989
|
-
|
|
20990
|
-
|
|
20991
|
-
|
|
21294
|
+
init_constants4();
|
|
21295
|
+
init_constants4();
|
|
21296
|
+
init_constants4();
|
|
21297
|
+
init_constants4();
|
|
21298
|
+
init_constants4();
|
|
21299
|
+
init_constants4();
|
|
21300
|
+
init_constants4();
|
|
20992
21301
|
exports_external2 = {};
|
|
20993
21302
|
__export2(exports_external2, {
|
|
20994
21303
|
void: () => voidType2,
|
|
@@ -24546,7 +24855,7 @@ var init_http_exception = () => {};
|
|
|
24546
24855
|
|
|
24547
24856
|
// ../../node_modules/hono/dist/request/constants.js
|
|
24548
24857
|
var GET_MATCH_RESULT;
|
|
24549
|
-
var
|
|
24858
|
+
var init_constants5 = __esm(() => {
|
|
24550
24859
|
GET_MATCH_RESULT = Symbol();
|
|
24551
24860
|
});
|
|
24552
24861
|
|
|
@@ -24810,7 +25119,7 @@ var init_url = __esm(() => {
|
|
|
24810
25119
|
var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_), HonoRequest;
|
|
24811
25120
|
var init_request = __esm(() => {
|
|
24812
25121
|
init_http_exception();
|
|
24813
|
-
|
|
25122
|
+
init_constants5();
|
|
24814
25123
|
init_body();
|
|
24815
25124
|
init_url();
|
|
24816
25125
|
HonoRequest = class {
|
|
@@ -25140,7 +25449,7 @@ var init_router = __esm(() => {
|
|
|
25140
25449
|
|
|
25141
25450
|
// ../../node_modules/hono/dist/utils/constants.js
|
|
25142
25451
|
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
|
|
25143
|
-
var
|
|
25452
|
+
var init_constants6 = () => {};
|
|
25144
25453
|
|
|
25145
25454
|
// ../../node_modules/hono/dist/hono-base.js
|
|
25146
25455
|
var notFoundHandler = (c) => {
|
|
@@ -25362,7 +25671,7 @@ var init_hono_base = __esm(() => {
|
|
|
25362
25671
|
init_compose();
|
|
25363
25672
|
init_context2();
|
|
25364
25673
|
init_router();
|
|
25365
|
-
|
|
25674
|
+
init_constants6();
|
|
25366
25675
|
init_url();
|
|
25367
25676
|
});
|
|
25368
25677
|
|
|
@@ -33729,29 +34038,29 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
33729
34038
|
let responseCallbacks = {};
|
|
33730
34039
|
let nextRequestID = 0;
|
|
33731
34040
|
let nextBuildKey = 0;
|
|
33732
|
-
let
|
|
34041
|
+
let stdout3 = new Uint8Array(16 * 1024);
|
|
33733
34042
|
let stdoutUsed = 0;
|
|
33734
34043
|
let readFromStdout = (chunk) => {
|
|
33735
34044
|
let limit = stdoutUsed + chunk.length;
|
|
33736
|
-
if (limit >
|
|
34045
|
+
if (limit > stdout3.length) {
|
|
33737
34046
|
let swap = new Uint8Array(limit * 2);
|
|
33738
|
-
swap.set(
|
|
33739
|
-
|
|
34047
|
+
swap.set(stdout3);
|
|
34048
|
+
stdout3 = swap;
|
|
33740
34049
|
}
|
|
33741
|
-
|
|
34050
|
+
stdout3.set(chunk, stdoutUsed);
|
|
33742
34051
|
stdoutUsed += chunk.length;
|
|
33743
34052
|
let offset = 0;
|
|
33744
34053
|
while (offset + 4 <= stdoutUsed) {
|
|
33745
|
-
let length = readUInt32LE(
|
|
34054
|
+
let length = readUInt32LE(stdout3, offset);
|
|
33746
34055
|
if (offset + 4 + length > stdoutUsed) {
|
|
33747
34056
|
break;
|
|
33748
34057
|
}
|
|
33749
34058
|
offset += 4;
|
|
33750
|
-
handleIncomingPacket(
|
|
34059
|
+
handleIncomingPacket(stdout3.subarray(offset, offset + length));
|
|
33751
34060
|
offset += length;
|
|
33752
34061
|
}
|
|
33753
34062
|
if (offset > 0) {
|
|
33754
|
-
|
|
34063
|
+
stdout3.copyWithin(0, offset, stdoutUsed);
|
|
33755
34064
|
stdoutUsed -= offset;
|
|
33756
34065
|
}
|
|
33757
34066
|
};
|
|
@@ -35237,12 +35546,12 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
35237
35546
|
child.stdin.on("error", afterClose);
|
|
35238
35547
|
child.on("error", afterClose);
|
|
35239
35548
|
const stdin = child.stdin;
|
|
35240
|
-
const
|
|
35241
|
-
|
|
35242
|
-
|
|
35549
|
+
const stdout3 = child.stdout;
|
|
35550
|
+
stdout3.on("data", readFromStdout);
|
|
35551
|
+
stdout3.on("end", afterClose);
|
|
35243
35552
|
stopService = () => {
|
|
35244
35553
|
stdin.destroy();
|
|
35245
|
-
|
|
35554
|
+
stdout3.destroy();
|
|
35246
35555
|
child.kill();
|
|
35247
35556
|
initializeWasCalled = false;
|
|
35248
35557
|
longLivedService = undefined;
|
|
@@ -35253,8 +35562,8 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
35253
35562
|
if (stdin.unref) {
|
|
35254
35563
|
stdin.unref();
|
|
35255
35564
|
}
|
|
35256
|
-
if (
|
|
35257
|
-
|
|
35565
|
+
if (stdout3.unref) {
|
|
35566
|
+
stdout3.unref();
|
|
35258
35567
|
}
|
|
35259
35568
|
const refs = {
|
|
35260
35569
|
ref() {
|
|
@@ -35325,13 +35634,13 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
35325
35634
|
esbuild: node_exports
|
|
35326
35635
|
});
|
|
35327
35636
|
callback(service);
|
|
35328
|
-
let
|
|
35637
|
+
let stdout3 = child_process.execFileSync(command, args2.concat(`--service=${"0.25.10"}`), {
|
|
35329
35638
|
cwd: defaultWD,
|
|
35330
35639
|
windowsHide: true,
|
|
35331
35640
|
input: stdin,
|
|
35332
35641
|
maxBuffer: +process.env.ESBUILD_MAX_BUFFER || 16 * 1024 * 1024
|
|
35333
35642
|
});
|
|
35334
|
-
readFromStdout(
|
|
35643
|
+
readFromStdout(stdout3);
|
|
35335
35644
|
afterClose(null);
|
|
35336
35645
|
};
|
|
35337
35646
|
var randomFileName = () => {
|
|
@@ -41067,33 +41376,33 @@ import tty from "tty";
|
|
|
41067
41376
|
import { randomUUID } from "crypto";
|
|
41068
41377
|
function assembleStyles() {
|
|
41069
41378
|
const codes = /* @__PURE__ */ new Map;
|
|
41070
|
-
for (const [groupName, group] of Object.entries(
|
|
41379
|
+
for (const [groupName, group] of Object.entries(styles3)) {
|
|
41071
41380
|
for (const [styleName, style] of Object.entries(group)) {
|
|
41072
|
-
|
|
41381
|
+
styles3[styleName] = {
|
|
41073
41382
|
open: `\x1B[${style[0]}m`,
|
|
41074
41383
|
close: `\x1B[${style[1]}m`
|
|
41075
41384
|
};
|
|
41076
|
-
group[styleName] =
|
|
41385
|
+
group[styleName] = styles3[styleName];
|
|
41077
41386
|
codes.set(style[0], style[1]);
|
|
41078
41387
|
}
|
|
41079
|
-
Object.defineProperty(
|
|
41388
|
+
Object.defineProperty(styles3, groupName, {
|
|
41080
41389
|
value: group,
|
|
41081
41390
|
enumerable: false
|
|
41082
41391
|
});
|
|
41083
41392
|
}
|
|
41084
|
-
Object.defineProperty(
|
|
41393
|
+
Object.defineProperty(styles3, "codes", {
|
|
41085
41394
|
value: codes,
|
|
41086
41395
|
enumerable: false
|
|
41087
41396
|
});
|
|
41088
|
-
|
|
41089
|
-
|
|
41090
|
-
|
|
41091
|
-
|
|
41092
|
-
|
|
41093
|
-
|
|
41094
|
-
|
|
41095
|
-
|
|
41096
|
-
Object.defineProperties(
|
|
41397
|
+
styles3.color.close = "\x1B[39m";
|
|
41398
|
+
styles3.bgColor.close = "\x1B[49m";
|
|
41399
|
+
styles3.color.ansi = wrapAnsi16();
|
|
41400
|
+
styles3.color.ansi256 = wrapAnsi256();
|
|
41401
|
+
styles3.color.ansi16m = wrapAnsi16m();
|
|
41402
|
+
styles3.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
41403
|
+
styles3.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
41404
|
+
styles3.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
41405
|
+
Object.defineProperties(styles3, {
|
|
41097
41406
|
rgbToAnsi256: {
|
|
41098
41407
|
value(red, green, blue) {
|
|
41099
41408
|
if (red === green && green === blue) {
|
|
@@ -41129,7 +41438,7 @@ function assembleStyles() {
|
|
|
41129
41438
|
enumerable: false
|
|
41130
41439
|
},
|
|
41131
41440
|
hexToAnsi256: {
|
|
41132
|
-
value: (hex) =>
|
|
41441
|
+
value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
|
|
41133
41442
|
enumerable: false
|
|
41134
41443
|
},
|
|
41135
41444
|
ansi256ToAnsi: {
|
|
@@ -41167,15 +41476,15 @@ function assembleStyles() {
|
|
|
41167
41476
|
enumerable: false
|
|
41168
41477
|
},
|
|
41169
41478
|
rgbToAnsi: {
|
|
41170
|
-
value: (red, green, blue) =>
|
|
41479
|
+
value: (red, green, blue) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue)),
|
|
41171
41480
|
enumerable: false
|
|
41172
41481
|
},
|
|
41173
41482
|
hexToAnsi: {
|
|
41174
|
-
value: (hex) =>
|
|
41483
|
+
value: (hex) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex)),
|
|
41175
41484
|
enumerable: false
|
|
41176
41485
|
}
|
|
41177
41486
|
});
|
|
41178
|
-
return
|
|
41487
|
+
return styles3;
|
|
41179
41488
|
}
|
|
41180
41489
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
|
|
41181
41490
|
const prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
@@ -43739,7 +44048,7 @@ var __create2, __defProp3, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf2,
|
|
|
43739
44048
|
__defProp3(to, key, { get: () => from[key], enumerable: !(desc2 = __getOwnPropDesc(from, key)) || desc2.enumerable });
|
|
43740
44049
|
}
|
|
43741
44050
|
return to;
|
|
43742
|
-
}, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target, mod)), __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value), ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles2, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default, init_ansi_styles, env, flagForceColor, supportsColor, supports_color_default, init_supports_color, init_utilities, stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles22, applyOptions, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default, init_source, require_old, require_fs, require_path, require_balanced_match, require_brace_expansion, require_minimatch, require_inherits_browser, require_inherits, require_common2, require_sync, require_wrappy, require_once, require_inflight, require_glob, require_readline, require_src2, require_utils, require_lodash, require_hanji, originUUID, snapshotVersion, mapValues, mapKeys, mapEntries, customMapEntries, init_global2, util4, objectUtil3, ZodParsedType3, getParsedType3, init_util2, ZodIssueCode3, ZodError4, init_ZodError2, errorMap3, en_default3, init_en2, overrideErrorMap3, init_errors4, makeIssue3, ParseStatus3, INVALID3, DIRTY3, OK3, isAborted3, isDirty3, isValid3, isAsync3, init_parseUtil2, init_typeAliases2, errorUtil3, init_errorUtil2, ParseInputLazyPath3, handleResult3, ZodType3, cuidRegex3, cuid2Regex3, ulidRegex3, uuidRegex3, nanoidRegex3, jwtRegex3, durationRegex3, emailRegex3, _emojiRegex3, emojiRegex3, ipv4Regex3, ipv4CidrRegex3, ipv6Regex3, ipv6CidrRegex3, base64Regex3, base64urlRegex3, dateRegexSource3, dateRegex3, ZodString3, ZodNumber3, ZodBigInt3, ZodBoolean3, ZodDate3, ZodSymbol3, ZodUndefined3, ZodNull3, ZodAny3, ZodUnknown3, ZodNever3, ZodVoid3, ZodArray3, ZodObject3, ZodUnion3, getDiscriminator3, ZodDiscriminatedUnion3, ZodIntersection3, ZodTuple3, ZodRecord3, ZodMap3, ZodSet3, ZodFunction3, ZodLazy3, ZodLiteral3, ZodEnum3, ZodNativeEnum3, ZodPromise3, ZodEffects3, ZodOptional3, ZodNullable3, ZodDefault3, ZodCatch3, ZodNaN3, BRAND3, ZodBranded3, ZodPipeline3, ZodReadonly3, late3, ZodFirstPartyTypeKind3, stringType3, numberType3, nanType3, bigIntType3, booleanType3, dateType3, symbolType3, undefinedType3, nullType3, anyType3, unknownType3, neverType3, voidType3, arrayType3, objectType3, strictObjectType3, unionType3, discriminatedUnionType3, intersectionType3, tupleType3, recordType3, mapType3, setType3, functionType3, lazyType3, literalType3, enumType3, nativeEnumType3, promiseType3, effectsType3, optionalType3, nullableType3, preprocessType3, pipelineType3, coerce3, init_types8, init_external2, init_v32, init_esm2, enumSchema, enumSchemaV1, indexColumn, index2, fk, sequenceSchema, roleSchema, sequenceSquashed, column2, checkConstraint, columnSquashed, compositePK, uniqueConstraint, policy, policySquashed, viewWithOption, matViewWithOption, mergedViewWithOption, view2, table15, schemaHash, kitInternals, gelSchemaExternal, gelSchemaInternal, tableSquashed, gelSchemaSquashed, gelSchema, dryGel, init_gelSchema, index22, fk2, column22, tableV3, compositePK2, uniqueConstraint2, checkConstraint2, tableV4, table22, viewMeta, view22, kitInternals2, dialect2, schemaHash2, schemaInternalV3, schemaInternalV4, schemaInternalV5, schemaInternal, schemaV3, schemaV4, schemaV5, schema2, tableSquashedV4, tableSquashed2, viewSquashed, schemaSquashed, schemaSquashedV4, MySqlSquasher, squashMysqlScheme, mysqlSchema, mysqlSchemaV5, mysqlSchemaSquashed, backwardCompatibleMysqlSchema, dryMySql, init_mysqlSchema, indexV2, columnV2, tableV2, enumSchemaV12, enumSchema2, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn2, index3, indexV4, indexV5, indexV6, fk3, sequenceSchema2, roleSchema2, sequenceSquashed2, columnV7, column3, checkConstraint3, columnSquashed2, tableV32, compositePK3, uniqueConstraint3, policy2, policySquashed2, viewWithOption2, matViewWithOption2, mergedViewWithOption2, view3, tableV42, tableV5, tableV6, tableV7, table32, schemaHash3, kitInternals3, pgSchemaInternalV3, pgSchemaInternalV4, pgSchemaInternalV5, pgSchemaInternalV6, pgSchemaExternal, pgSchemaInternalV7, pgSchemaInternal, tableSquashed3, tableSquashedV42, pgSchemaSquashedV4, pgSchemaSquashedV6, pgSchemaSquashed, pgSchemaV3, pgSchemaV4, pgSchemaV5, pgSchemaV6, pgSchemaV7, pgSchema, backwardCompatiblePgSchema, PgSquasher, squashPgScheme, dryPg, init_pgSchema, index4, column4, compositePK4, uniqueConstraint4, table42, viewMeta2, kitInternals4, dialect22, schemaHash4, schemaInternal2, schema22, tableSquashed4, schemaSquashed2, SingleStoreSquasher, squashSingleStoreScheme, singlestoreSchema, singlestoreSchemaSquashed, backwardCompatibleSingleStoreSchema, drySingleStore, init_singlestoreSchema, index5, fk4, compositePK5, column5, tableV33, uniqueConstraint5, checkConstraint4, table52, view4, dialect3, schemaHash5, schemaInternalV32, schemaInternalV42, schemaInternalV52, kitInternals5, latestVersion, schemaInternal3, schemaV32, schemaV42, schemaV52, schema3, tableSquashed5, schemaSquashed3, SQLiteSquasher, squashSqliteScheme, drySQLite, sqliteSchemaV5, sqliteSchema, SQLiteSchemaSquashed, backwardCompatibleSqliteSchema, init_sqliteSchema, copy, prepareMigrationMeta, schemaRenameKey, tableRenameKey, columnRenameKey, init_utils5, import_hanji, warning, error, isRenamePromptItem, ResolveColumnSelect, tableKey, ResolveSelectNamed, ResolveSelect, ResolveSchemasSelect, Spinner2, ProgressView, init_views, glob, init_serializer, fillPgSnapshot, init_migrationPreparator, require_heap, require_heap2, require_difflib, require_difflib2, require_util, require_styles, require_has_flag2, require_supports_colors, require_trap, require_zalgo, require_america, require_zebra, require_rainbow, require_random, require_colors, require_safe, require_colorize, require_lib, import_json_diff, mapArraysDiff, findAlternationsInTable, alternationsInColumn, init_jsonDiffer, parseType, Convertor, PgCreateRoleConvertor, PgDropRoleConvertor, PgRenameRoleConvertor, PgAlterRoleConvertor, PgCreatePolicyConvertor, PgDropPolicyConvertor, PgRenamePolicyConvertor, PgAlterPolicyConvertor, PgCreateIndPolicyConvertor, PgDropIndPolicyConvertor, PgRenameIndPolicyConvertor, PgAlterIndPolicyConvertor, PgEnableRlsConvertor, PgDisableRlsConvertor, PgCreateTableConvertor, MySqlCreateTableConvertor, SingleStoreCreateTableConvertor, SQLiteCreateTableConvertor, PgCreateViewConvertor, MySqlCreateViewConvertor, SqliteCreateViewConvertor, PgDropViewConvertor, MySqlDropViewConvertor, SqliteDropViewConvertor, MySqlAlterViewConvertor, PgRenameViewConvertor, MySqlRenameViewConvertor, PgAlterViewSchemaConvertor, PgAlterViewAddWithOptionConvertor, PgAlterViewDropWithOptionConvertor, PgAlterViewAlterTablespaceConvertor, PgAlterViewAlterUsingConvertor, PgAlterTableAlterColumnSetGenerated, PgAlterTableAlterColumnDropGenerated, PgAlterTableAlterColumnAlterGenerated, PgAlterTableAddUniqueConstraintConvertor, PgAlterTableDropUniqueConstraintConvertor, PgAlterTableAddCheckConstraintConvertor, PgAlterTableDeleteCheckConstraintConvertor, MySQLAlterTableAddUniqueConstraintConvertor, MySQLAlterTableDropUniqueConstraintConvertor, MySqlAlterTableAddCheckConstraintConvertor, SingleStoreAlterTableAddUniqueConstraintConvertor, SingleStoreAlterTableDropUniqueConstraintConvertor, MySqlAlterTableDeleteCheckConstraintConvertor, CreatePgSequenceConvertor, DropPgSequenceConvertor, RenamePgSequenceConvertor, MovePgSequenceConvertor, AlterPgSequenceConvertor, CreateTypeEnumConvertor, DropTypeEnumConvertor, AlterTypeAddValueConvertor, AlterTypeSetSchemaConvertor, AlterRenameTypeConvertor, AlterTypeDropValueConvertor, PgDropTableConvertor, MySQLDropTableConvertor, SingleStoreDropTableConvertor, SQLiteDropTableConvertor, PgRenameTableConvertor, SqliteRenameTableConvertor, MySqlRenameTableConvertor, SingleStoreRenameTableConvertor, PgAlterTableRenameColumnConvertor, MySqlAlterTableRenameColumnConvertor, SingleStoreAlterTableRenameColumnConvertor, SQLiteAlterTableRenameColumnConvertor, PgAlterTableDropColumnConvertor, MySqlAlterTableDropColumnConvertor, SingleStoreAlterTableDropColumnConvertor, SQLiteAlterTableDropColumnConvertor, PgAlterTableAddColumnConvertor, MySqlAlterTableAddColumnConvertor, SingleStoreAlterTableAddColumnConvertor, SQLiteAlterTableAddColumnConvertor, PgAlterTableAlterColumnSetTypeConvertor, PgAlterTableAlterColumnSetDefaultConvertor, PgAlterTableAlterColumnDropDefaultConvertor, PgAlterTableAlterColumnDropGeneratedConvertor, PgAlterTableAlterColumnSetExpressionConvertor, PgAlterTableAlterColumnAlterrGeneratedConvertor, SqliteAlterTableAlterColumnDropGeneratedConvertor, SqliteAlterTableAlterColumnSetExpressionConvertor, SqliteAlterTableAlterColumnAlterGeneratedConvertor, MySqlAlterTableAlterColumnAlterrGeneratedConvertor, MySqlAlterTableAddPk, MySqlAlterTableDropPk, LibSQLModifyColumn, MySqlModifyColumn, SingleStoreAlterTableAlterColumnAlterrGeneratedConvertor, SingleStoreAlterTableAddPk, SingleStoreAlterTableDropPk, SingleStoreModifyColumn, PgAlterTableCreateCompositePrimaryKeyConvertor, PgAlterTableDeleteCompositePrimaryKeyConvertor, PgAlterTableAlterCompositePrimaryKeyConvertor, MySqlAlterTableCreateCompositePrimaryKeyConvertor, MySqlAlterTableDeleteCompositePrimaryKeyConvertor, MySqlAlterTableAlterCompositePrimaryKeyConvertor, PgAlterTableAlterColumnSetPrimaryKeyConvertor, PgAlterTableAlterColumnDropPrimaryKeyConvertor, PgAlterTableAlterColumnSetNotNullConvertor, PgAlterTableAlterColumnDropNotNullConvertor, PgCreateForeignKeyConvertor, LibSQLCreateForeignKeyConvertor, MySqlCreateForeignKeyConvertor, PgAlterForeignKeyConvertor, PgDeleteForeignKeyConvertor, MySqlDeleteForeignKeyConvertor, CreatePgIndexConvertor, CreateMySqlIndexConvertor, CreateSingleStoreIndexConvertor, CreateSqliteIndexConvertor, PgDropIndexConvertor, PgCreateSchemaConvertor, PgRenameSchemaConvertor, PgDropSchemaConvertor, PgAlterTableSetSchemaConvertor, PgAlterTableSetNewSchemaConvertor, PgAlterTableRemoveFromSchemaConvertor, SqliteDropIndexConvertor, MySqlDropIndexConvertor, SingleStoreDropIndexConvertor, SQLiteRecreateTableConvertor, LibSQLRecreateTableConvertor, SingleStoreRecreateTableConvertor, convertors, init_sqlgenerator, _moveDataStatements, getOldTableName, getNewTableName, logSuggestionsAndReturn, init_sqlitePushUtils, preparePgCreateTableJson, prepareMySqlCreateTableJson, prepareSingleStoreCreateTableJson, prepareSQLiteCreateTable, prepareDropTableJson, prepareRenameTableJson, prepareCreateEnumJson, prepareAddValuesToEnumJson, prepareDropEnumValues, prepareDropEnumJson, prepareMoveEnumJson, prepareRenameEnumJson, prepareCreateSequenceJson, prepareAlterSequenceJson, prepareDropSequenceJson, prepareMoveSequenceJson, prepareRenameSequenceJson, prepareCreateRoleJson, prepareAlterRoleJson, prepareDropRoleJson, prepareRenameRoleJson, prepareCreateSchemasJson, prepareRenameSchemasJson, prepareDeleteSchemasJson, prepareRenameColumns, _prepareDropColumns, _prepareAddColumns, _prepareSqliteAddColumns, prepareAlterColumnsMysql, preparePgAlterColumns, prepareSqliteAlterColumns, prepareRenamePolicyJsons, prepareRenameIndPolicyJsons, prepareCreatePolicyJsons, prepareCreateIndPolicyJsons, prepareDropPolicyJsons, prepareDropIndPolicyJsons, prepareAlterPolicyJson, prepareAlterIndPolicyJson, preparePgCreateIndexesJson, prepareCreateIndexesJson, prepareCreateReferencesJson, prepareLibSQLCreateReferencesJson, prepareDropReferencesJson, prepareLibSQLDropReferencesJson, prepareAlterReferencesJson, prepareDropIndexesJson, prepareAddCompositePrimaryKeySqlite, prepareDeleteCompositePrimaryKeySqlite, prepareAlterCompositePrimaryKeySqlite, prepareAddCompositePrimaryKeyPg, prepareDeleteCompositePrimaryKeyPg, prepareAlterCompositePrimaryKeyPg, prepareAddUniqueConstraintPg, prepareDeleteUniqueConstraintPg, prepareAddCheckConstraint, prepareDeleteCheckConstraint, prepareAddCompositePrimaryKeyMySql, prepareDeleteCompositePrimaryKeyMySql, prepareAlterCompositePrimaryKeyMySql, preparePgCreateViewJson, prepareMySqlCreateViewJson, prepareSqliteCreateViewJson, prepareDropViewJson, prepareRenameViewJson, preparePgAlterViewAlterSchemaJson, preparePgAlterViewAddWithOptionJson, preparePgAlterViewDropWithOptionJson, preparePgAlterViewAlterTablespaceJson, preparePgAlterViewAlterUsingJson, prepareMySqlAlterView, init_jsonStatements, prepareLibSQLRecreateTable, prepareSQLiteRecreateTable, libSQLCombineStatements, sqliteCombineStatements, prepareSingleStoreRecreateTable, singleStoreCombineStatements, init_statementCombiner, snapshotsDiffer_exports, makeChanged, makeSelfOrChanged, makePatched, makeSelfOrPatched, columnSchema, alteredColumnSchema, enumSchema3, changedEnumSchema, tableScheme, alteredTableScheme, alteredViewCommon, alteredPgViewSchema, alteredMySqlViewSchema, diffResultScheme, diffResultSchemeMysql, diffResultSchemeSingleStore, diffResultSchemeSQLite, schemaChangeFor, nameChangeFor, nameSchemaChangeFor, columnChangeFor, applyPgSnapshotsDiff, applyMysqlSnapshotsDiff, applySingleStoreSnapshotsDiff, applySqliteSnapshotsDiff, applyLibSQLSnapshotsDiff, init_snapshotsDiffer, init_words, dialects, dialect4, commonSquashedSchema, commonSchema, init_schemaValidator, sqliteDriversLiterals, postgresqlDriversLiterals, prefixes, prefix, casingTypes, casingType, sqliteDriver, postgresDriver, driver2, configMigrations, configCommonSchema, casing, introspectParams, configIntrospectCliSchema, configGenerateSchema, configPushSchema, init_common2, withStyle, init_outputs, import_hanji2, schemasResolver, tablesResolver, viewsResolver, mySqlViewsResolver, sqliteViewsResolver, sequencesResolver, roleResolver, policyResolver, indPolicyResolver, enumsResolver, columnsResolver, promptColumnsConflicts, promptNamedConflict, promptNamedWithSchemasConflict, promptSchemasConflict, BREAKPOINT, init_migrate, posixClasses, braceEscape, regexpEscape, rangesToString, parseClass, init_brace_expressions, escape, init_escape, unescape, init_unescape, import_brace_expansion, minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path, sep, GLOBSTAR, plTypes, qmark, star, twoStarDot, twoStarNoDot, charSet, reSpecials, addPatternStartSet, filter, ext, defaults, braceExpand, MAX_PATTERN_LENGTH, assertValidPattern, makeRe, match2, globUnescape, globMagic, regExpEscape, Minimatch, init_mjs, entityKind2, hasOwnEntityKind2, init_entity2, _a, Column2, init_column2, _a2, ColumnBuilder2, init_column_builder2, TableName2, init_table_utils2, _a3, ForeignKeyBuilder2, _a4, ForeignKey2, init_foreign_keys2, init_tracing_utils2, _a5, UniqueConstraintBuilder, _a6, UniqueOnConstraintBuilder, _a7, UniqueConstraint, init_unique_constraint2, init_array2, _a8, _b, PgColumnBuilder2, _a9, _b2, PgColumn2, _a10, _b3, ExtraConfigColumn2, _a11, IndexedColumn2, _a12, _b4, PgArrayBuilder2, _a13, _b5, _PgArray, PgArray2, init_common22, _a14, _b6, PgEnumObjectColumnBuilder2, _a15, _b7, PgEnumObjectColumn2, isPgEnumSym2, _a16, _b8, PgEnumColumnBuilder2, _a17, _b9, PgEnumColumn2, init_enum2, _a18, Subquery2, _a19, _b10, WithSubquery2, init_subquery2, version2, init_version2, otel2, rawTracer2, tracer2, init_tracing2, ViewBaseConfig2, init_view_common3, Schema2, Columns2, ExtraConfigColumns2, OriginalName2, BaseName2, IsAlias2, ExtraConfigBuilder2, IsDrizzleTable2, _a20, _b11, _c, _d, _e2, _f, _g, _h, _i, _j, Table2, init_table15, _a21, FakePrimitiveParam, _a22, StringChunk2, _a23, _SQL, SQL2, _a24, Name2, noopDecoder2, noopEncoder2, noopMapper2, _a25, Param2, _a26, Placeholder2, IsDrizzleView2, _a27, _b12, _c2, View3, init_sql3, _a28, ColumnAliasProxyHandler2, _a29, TableAliasProxyHandler2, _a30, RelationTableAliasProxyHandler, init_alias3, _a31, _b13, DrizzleError2, DrizzleQueryError, _a32, _b14, TransactionRollbackError2, init_errors22, _a33, ConsoleLogWriter2, _a34, DefaultLogger2, _a35, NoopLogger2, init_logger3, init_operations, _a36, _b15, QueryPromise2, init_query_promise2, textDecoder, init_utils22, _a37, _b16, PgIntColumnBaseBuilder2, init_int_common2, _a38, _b17, PgBigInt53Builder2, _a39, _b18, PgBigInt532, _a40, _b19, PgBigInt64Builder2, _a41, _b20, PgBigInt642, init_bigint2, _a42, _b21, PgBigSerial53Builder2, _a43, _b22, PgBigSerial532, _a44, _b23, PgBigSerial64Builder2, _a45, _b24, PgBigSerial642, init_bigserial2, _a46, _b25, PgBooleanBuilder2, _a47, _b26, PgBoolean2, init_boolean2, _a48, _b27, PgCharBuilder2, _a49, _b28, PgChar2, init_char2, _a50, _b29, PgCidrBuilder2, _a51, _b30, PgCidr2, init_cidr2, _a52, _b31, PgCustomColumnBuilder2, _a53, _b32, PgCustomColumn2, init_custom2, _a54, _b33, PgDateColumnBaseBuilder2, init_date_common2, _a55, _b34, PgDateBuilder2, _a56, _b35, PgDate2, _a57, _b36, PgDateStringBuilder2, _a58, _b37, PgDateString2, init_date2, _a59, _b38, PgDoublePrecisionBuilder2, _a60, _b39, PgDoublePrecision2, init_double_precision2, _a61, _b40, PgInetBuilder2, _a62, _b41, PgInet2, init_inet2, _a63, _b42, PgIntegerBuilder2, _a64, _b43, PgInteger2, init_integer2, _a65, _b44, PgIntervalBuilder2, _a66, _b45, PgInterval2, init_interval2, _a67, _b46, PgJsonBuilder2, _a68, _b47, PgJson2, init_json2, _a69, _b48, PgJsonbBuilder2, _a70, _b49, PgJsonb2, init_jsonb2, _a71, _b50, PgLineBuilder2, _a72, _b51, PgLineTuple2, _a73, _b52, PgLineABCBuilder2, _a74, _b53, PgLineABC2, init_line2, _a75, _b54, PgMacaddrBuilder2, _a76, _b55, PgMacaddr2, init_macaddr2, _a77, _b56, PgMacaddr8Builder2, _a78, _b57, PgMacaddr82, init_macaddr82, _a79, _b58, PgNumericBuilder2, _a80, _b59, PgNumeric2, _a81, _b60, PgNumericNumberBuilder2, _a82, _b61, PgNumericNumber2, _a83, _b62, PgNumericBigIntBuilder2, _a84, _b63, PgNumericBigInt2, init_numeric2, _a85, _b64, PgPointTupleBuilder2, _a86, _b65, PgPointTuple2, _a87, _b66, PgPointObjectBuilder2, _a88, _b67, PgPointObject2, init_point2, init_utils32, _a89, _b68, PgGeometryBuilder2, _a90, _b69, PgGeometry2, _a91, _b70, PgGeometryObjectBuilder2, _a92, _b71, PgGeometryObject2, init_geometry2, _a93, _b72, PgRealBuilder2, _a94, _b73, PgReal2, init_real2, _a95, _b74, PgSerialBuilder2, _a96, _b75, PgSerial2, init_serial2, _a97, _b76, PgSmallIntBuilder2, _a98, _b77, PgSmallInt2, init_smallint2, _a99, _b78, PgSmallSerialBuilder2, _a100, _b79, PgSmallSerial2, init_smallserial2, _a101, _b80, PgTextBuilder2, _a102, _b81, PgText2, init_text2, _a103, _b82, PgTimeBuilder2, _a104, _b83, PgTime2, init_time2, _a105, _b84, PgTimestampBuilder2, _a106, _b85, PgTimestamp2, _a107, _b86, PgTimestampStringBuilder2, _a108, _b87, PgTimestampString2, init_timestamp2, _a109, _b88, PgUUIDBuilder2, _a110, _b89, PgUUID2, init_uuid3, _a111, _b90, PgVarcharBuilder2, _a112, _b91, PgVarchar2, init_varchar2, _a113, _b92, PgBinaryVectorBuilder2, _a114, _b93, PgBinaryVector2, init_bit2, _a115, _b94, PgHalfVectorBuilder2, _a116, _b95, PgHalfVector2, init_halfvec2, _a117, _b96, PgSparseVectorBuilder2, _a118, _b97, PgSparseVector2, init_sparsevec2, _a119, _b98, PgVectorBuilder2, _a120, _b99, PgVector2, init_vector3, init_all2, InlineForeignKeys2, EnableRLS2, _a121, _b100, _c3, _d2, _e22, _f2, PgTable2, pgTable2, init_table22, _a122, PrimaryKeyBuilder2, _a123, PrimaryKey2, init_primary_keys2, eq2, ne3, gt3, gte2, lt3, lte2, init_conditions2, init_select3, init_expressions2, _a124, Relation2, _a125, Relations2, _a126, _b101, _One, One2, _a127, _b102, _Many, Many2, init_relations2, init_aggregate2, init_vector22, init_functions2, init_sql22, dist_exports, init_dist6, init_alias22, _a128, CheckBuilder, _a129, Check, init_checks2, init_columns2, _a130, _SelectionProxyHandler, SelectionProxyHandler2, init_selection_proxy2, _a131, IndexBuilderOn2, _a132, IndexBuilder2, _a133, Index2, init_indexes2, _a134, PgPolicy, init_policies2, PgViewConfig2, init_view_common22, _a135, CasingCache2, init_casing2, _a136, _b103, PgViewBase2, init_view_base2, _a137, PgDialect2, init_dialect2, _a138, TypedQueryBuilder2, init_query_builder3, _a139, PgSelectBuilder2, _a140, _b104, PgSelectQueryBuilderBase2, _a141, _b105, PgSelectBase2, getPgSetOperators2, union2, unionAll2, intersect2, intersectAll2, except2, exceptAll2, init_select22, _a142, QueryBuilder2, init_query_builder22, _a143, DefaultViewBuilderCore, _a144, _b106, ViewBuilder, _a145, _b107, ManualViewBuilder, _a146, MaterializedViewBuilderCore, _a147, _b108, MaterializedViewBuilder, _a148, _b109, ManualMaterializedViewBuilder, _a149, _b110, _c4, PgView2, PgMaterializedViewConfig2, _a150, _b111, _c5, PgMaterializedView, init_view2, init_utils42, _a151, _b112, PgDeleteBase2, init_delete2, _a152, PgInsertBuilder2, _a153, _b113, PgInsertBase2, init_insert2, _a154, _b114, PgRefreshMaterializedView2, init_refresh_materialized_view2, init_select_types, _a155, PgUpdateBuilder2, _a156, _b115, PgUpdateBase2, init_update2, init_query_builders2, _a157, _b116, _c6, _PgCountBuilder, PgCountBuilder2, init_count2, _a158, RelationalQueryBuilder2, _a159, _b117, PgRelationalQuery2, init_query2, _a160, _b118, PgRaw2, init_raw2, _a161, PgDatabase2, init_db2, _a162, PgRole, init_roles2, _a163, PgSequence, init_sequence2, _a164, PgSchema5, init_schema3, _a165, Cache, _a166, _b119, NoopCache, init_cache, _a167, PgPreparedQuery2, _a168, PgSession2, _a169, _b120, PgTransaction2, init_session3, init_subquery22, init_utils52, init_pg_core2, vectorOps, init_vector32, sqlToStr, init_utils6, indexName, generatePgSnapshot, trimChar, fromDatabase, defaultForColumn, getColumnsInfoQuery, init_pgSerializer, import_hanji4, Select, init_selector_ui, init_alias32, _a170, CheckBuilder2, _a171, Check2, init_checks22, _a172, ForeignKeyBuilder22, _a173, ForeignKey22, init_foreign_keys22, _a174, UniqueConstraintBuilder2, _a175, UniqueOnConstraintBuilder2, _a176, UniqueConstraint2, init_unique_constraint22, _a177, _b121, SQLiteColumnBuilder, _a178, _b122, SQLiteColumn, init_common3, _a179, _b123, SQLiteBigIntBuilder, _a180, _b124, SQLiteBigInt, _a181, _b125, SQLiteBlobJsonBuilder, _a182, _b126, SQLiteBlobJson, _a183, _b127, SQLiteBlobBufferBuilder, _a184, _b128, SQLiteBlobBuffer, init_blob, _a185, _b129, SQLiteCustomColumnBuilder, _a186, _b130, SQLiteCustomColumn, init_custom22, _a187, _b131, SQLiteBaseIntegerBuilder, _a188, _b132, SQLiteBaseInteger, _a189, _b133, SQLiteIntegerBuilder, _a190, _b134, SQLiteInteger, _a191, _b135, SQLiteTimestampBuilder, _a192, _b136, SQLiteTimestamp, _a193, _b137, SQLiteBooleanBuilder, _a194, _b138, SQLiteBoolean, init_integer22, _a195, _b139, SQLiteNumericBuilder, _a196, _b140, SQLiteNumeric, _a197, _b141, SQLiteNumericNumberBuilder, _a198, _b142, SQLiteNumericNumber, _a199, _b143, SQLiteNumericBigIntBuilder, _a200, _b144, SQLiteNumericBigInt, init_numeric22, _a201, _b145, SQLiteRealBuilder, _a202, _b146, SQLiteReal, init_real22, _a203, _b147, SQLiteTextBuilder, _a204, _b148, SQLiteText, _a205, _b149, SQLiteTextJsonBuilder, _a206, _b150, SQLiteTextJson, init_text22, init_columns22, init_all22, InlineForeignKeys22, _a207, _b151, _c7, _d3, _e3, SQLiteTable, sqliteTable, init_table32, _a208, IndexBuilderOn22, _a209, IndexBuilder22, _a210, Index4, init_indexes22, _a211, PrimaryKeyBuilder22, _a212, PrimaryKey22, init_primary_keys22, init_utils7, _a213, _b152, SQLiteDeleteBase, init_delete22, _a214, _b153, SQLiteViewBase, init_view_base22, _a215, SQLiteDialect, _a216, _b154, SQLiteSyncDialect, _a217, _b155, SQLiteAsyncDialect, init_dialect22, _a218, SQLiteSelectBuilder, _a219, _b156, SQLiteSelectQueryBuilderBase, _a220, _b157, SQLiteSelectBase, getSQLiteSetOperators, union3, unionAll22, intersect22, except22, init_select32, _a221, QueryBuilder22, init_query_builder32, _a222, SQLiteInsertBuilder, _a223, _b158, SQLiteInsertBase, init_insert22, init_select_types2, _a224, SQLiteUpdateBuilder, _a225, _b159, SQLiteUpdateBase, init_update22, init_query_builders22, _a226, _b160, _c8, _SQLiteCountBuilder, SQLiteCountBuilder, init_count22, _a227, RelationalQueryBuilder22, _a228, _b161, SQLiteRelationalQuery, _a229, _b162, SQLiteSyncRelationalQuery, init_query22, _a230, _b163, SQLiteRaw, init_raw22, _a231, BaseSQLiteDatabase, init_db22, _a232, _b164, ExecuteResultSync, _a233, SQLitePreparedQuery, _a234, SQLiteSession, _a235, _b165, SQLiteTransaction, init_session22, init_subquery3, _a236, ViewBuilderCore, _a237, _b166, ViewBuilder2, _a238, _b167, ManualViewBuilder2, _a239, _b168, SQLiteView2, init_view22, init_sqlite_core, generateSqliteSnapshot, fromDatabase2, init_sqliteSerializer, getTablesFilterByExtensions, init_getTablesFilterByExtensions, init_alias4, _a240, CheckBuilder3, _a241, Check3, init_checks3, _a242, ForeignKeyBuilder3, _a243, ForeignKey3, init_foreign_keys3, _a244, UniqueConstraintBuilder3, _a245, UniqueOnConstraintBuilder3, _a246, UniqueConstraint3, init_unique_constraint3, _a247, _b169, MySqlColumnBuilder, _a248, _b170, MySqlColumn, _a249, _b171, MySqlColumnBuilderWithAutoIncrement, _a250, _b172, MySqlColumnWithAutoIncrement, init_common4, _a251, _b173, MySqlBigInt53Builder, _a252, _b174, MySqlBigInt53, _a253, _b175, MySqlBigInt64Builder, _a254, _b176, MySqlBigInt64, init_bigint22, _a255, _b177, MySqlBinaryBuilder, _a256, _b178, MySqlBinary, init_binary, _a257, _b179, MySqlBooleanBuilder, _a258, _b180, MySqlBoolean, init_boolean22, _a259, _b181, MySqlCharBuilder, _a260, _b182, MySqlChar, init_char22, _a261, _b183, MySqlCustomColumnBuilder, _a262, _b184, MySqlCustomColumn, init_custom3, _a263, _b185, MySqlDateBuilder, _a264, _b186, MySqlDate, _a265, _b187, MySqlDateStringBuilder, _a266, _b188, MySqlDateString, init_date22, _a267, _b189, MySqlDateTimeBuilder, _a268, _b190, MySqlDateTime, _a269, _b191, MySqlDateTimeStringBuilder, _a270, _b192, MySqlDateTimeString, init_datetime, _a271, _b193, MySqlDecimalBuilder, _a272, _b194, MySqlDecimal, _a273, _b195, MySqlDecimalNumberBuilder, _a274, _b196, MySqlDecimalNumber, _a275, _b197, MySqlDecimalBigIntBuilder, _a276, _b198, MySqlDecimalBigInt, init_decimal, _a277, _b199, MySqlDoubleBuilder, _a278, _b200, MySqlDouble, init_double, _a279, _b201, MySqlEnumColumnBuilder, _a280, _b202, MySqlEnumColumn, _a281, _b203, MySqlEnumObjectColumnBuilder, _a282, _b204, MySqlEnumObjectColumn, init_enum22, _a283, _b205, MySqlFloatBuilder, _a284, _b206, MySqlFloat, init_float, _a285, _b207, MySqlIntBuilder, _a286, _b208, MySqlInt, init_int, _a287, _b209, MySqlJsonBuilder, _a288, _b210, MySqlJson, init_json22, _a289, _b211, MySqlMediumIntBuilder, _a290, _b212, MySqlMediumInt, init_mediumint, _a291, _b213, MySqlRealBuilder, _a292, _b214, MySqlReal, init_real3, _a293, _b215, MySqlSerialBuilder, _a294, _b216, MySqlSerial, init_serial22, _a295, _b217, MySqlSmallIntBuilder, _a296, _b218, MySqlSmallInt, init_smallint22, _a297, _b219, MySqlTextBuilder, _a298, _b220, MySqlText, init_text3, _a299, _b221, MySqlTimeBuilder, _a300, _b222, MySqlTime, init_time22, _a301, _b223, MySqlDateColumnBaseBuilder, _a302, _b224, MySqlDateBaseColumn, init_date_common22, _a303, _b225, MySqlTimestampBuilder, _a304, _b226, MySqlTimestamp, _a305, _b227, MySqlTimestampStringBuilder, _a306, _b228, MySqlTimestampString, init_timestamp22, _a307, _b229, MySqlTinyIntBuilder, _a308, _b230, MySqlTinyInt, init_tinyint, _a309, _b231, MySqlVarBinaryBuilder, _a310, _b232, MySqlVarBinary, init_varbinary, _a311, _b233, MySqlVarCharBuilder, _a312, _b234, MySqlVarChar, init_varchar22, _a313, _b235, MySqlYearBuilder, _a314, _b236, MySqlYear, init_year, init_columns3, _a315, _b237, _c9, _MySqlCountBuilder, MySqlCountBuilder, init_count3, _a316, IndexBuilderOn3, _a317, IndexBuilder3, _a318, Index5, init_indexes3, init_all3, InlineForeignKeys3, _a319, _b238, _c10, _d4, _e4, MySqlTable, mysqlTable, init_table42, _a320, PrimaryKeyBuilder3, _a321, PrimaryKey3, init_primary_keys3, MySqlViewConfig, init_view_common32, init_utils8, _a322, _b239, MySqlDeleteBase, init_delete3, _a323, _b240, MySqlViewBase, init_view_base3, _a324, MySqlDialect, init_dialect3, _a325, MySqlSelectBuilder, _a326, _b241, MySqlSelectQueryBuilderBase, _a327, _b242, MySqlSelectBase, getMySqlSetOperators, union4, unionAll3, intersect3, intersectAll22, except3, exceptAll22, init_select4, _a328, QueryBuilder3, init_query_builder4, _a329, MySqlInsertBuilder, _a330, _b243, MySqlInsertBase, init_insert3, init_select_types3, _a331, MySqlUpdateBuilder, _a332, _b244, MySqlUpdateBase, init_update3, init_query_builders3, _a333, RelationalQueryBuilder3, _a334, _b245, MySqlRelationalQuery, init_query3, _a335, MySqlDatabase, init_db3, _a336, ViewBuilderCore2, _a337, _b246, ViewBuilder3, _a338, _b247, ManualViewBuilder3, _a339, _b248, _c11, MySqlView2, init_view3, _a340, MySqlSchema5, init_schema22, _a341, MySqlPreparedQuery, _a342, MySqlSession, _a343, _b249, MySqlTransaction, init_session32, init_subquery4, init_mysql_core, handleEnumType, generateMySqlSnapshot, fromDatabase3, init_mysqlSerializer, cliConfigGenerate, pushParams, pullParams, configCheck, cliConfigCheck, init_cli, gelCredentials, init_gel, libSQLCredentials, init_libsql, mysqlCredentials, init_mysql, postgresCredentials, init_postgres, singlestoreCredentials, init_singlestore, sqliteCredentials, init_sqlite, credentials, studioCliParams, studioConfig, init_studio, es5_exports, _3, es5_default, init_es5, import_hanji7, assertES5, safeRegister, migrateConfig, init_utils9, prepareFromExports, init_pgImports, init_alias5, _a344, UniqueConstraintBuilder4, _a345, UniqueOnConstraintBuilder4, _a346, UniqueConstraint4, init_unique_constraint4, _a347, _b250, SingleStoreColumnBuilder, _a348, _b251, SingleStoreColumn, _a349, _b252, SingleStoreColumnBuilderWithAutoIncrement, _a350, _b253, SingleStoreColumnWithAutoIncrement, init_common5, _a351, _b254, SingleStoreBigInt53Builder, _a352, _b255, SingleStoreBigInt53, _a353, _b256, SingleStoreBigInt64Builder, _a354, _b257, SingleStoreBigInt64, init_bigint3, _a355, _b258, SingleStoreBinaryBuilder, _a356, _b259, SingleStoreBinary, init_binary2, _a357, _b260, SingleStoreBooleanBuilder, _a358, _b261, SingleStoreBoolean, init_boolean3, _a359, _b262, SingleStoreCharBuilder, _a360, _b263, SingleStoreChar, init_char3, _a361, _b264, SingleStoreCustomColumnBuilder, _a362, _b265, SingleStoreCustomColumn, init_custom4, _a363, _b266, SingleStoreDateBuilder, _a364, _b267, SingleStoreDate, _a365, _b268, SingleStoreDateStringBuilder, _a366, _b269, SingleStoreDateString, init_date3, _a367, _b270, SingleStoreDateTimeBuilder, _a368, _b271, SingleStoreDateTime, _a369, _b272, SingleStoreDateTimeStringBuilder, _a370, _b273, SingleStoreDateTimeString, init_datetime2, _a371, _b274, SingleStoreDecimalBuilder, _a372, _b275, SingleStoreDecimal, _a373, _b276, SingleStoreDecimalNumberBuilder, _a374, _b277, SingleStoreDecimalNumber, _a375, _b278, SingleStoreDecimalBigIntBuilder, _a376, _b279, SingleStoreDecimalBigInt, init_decimal2, _a377, _b280, SingleStoreDoubleBuilder, _a378, _b281, SingleStoreDouble, init_double2, _a379, _b282, SingleStoreEnumColumnBuilder, _a380, _b283, SingleStoreEnumColumn, init_enum3, _a381, _b284, SingleStoreFloatBuilder, _a382, _b285, SingleStoreFloat, init_float2, _a383, _b286, SingleStoreIntBuilder, _a384, _b287, SingleStoreInt, init_int2, _a385, _b288, SingleStoreJsonBuilder, _a386, _b289, SingleStoreJson, init_json3, _a387, _b290, SingleStoreMediumIntBuilder, _a388, _b291, SingleStoreMediumInt, init_mediumint2, _a389, _b292, SingleStoreRealBuilder, _a390, _b293, SingleStoreReal, init_real4, _a391, _b294, SingleStoreSerialBuilder, _a392, _b295, SingleStoreSerial, init_serial3, _a393, _b296, SingleStoreSmallIntBuilder, _a394, _b297, SingleStoreSmallInt, init_smallint3, _a395, _b298, SingleStoreTextBuilder, _a396, _b299, SingleStoreText, init_text4, _a397, _b300, SingleStoreTimeBuilder, _a398, _b301, SingleStoreTime, init_time3, _a399, _b302, SingleStoreDateColumnBaseBuilder, _a400, _b303, SingleStoreDateBaseColumn, init_date_common3, _a401, _b304, SingleStoreTimestampBuilder, _a402, _b305, SingleStoreTimestamp, _a403, _b306, SingleStoreTimestampStringBuilder, _a404, _b307, SingleStoreTimestampString, init_timestamp3, _a405, _b308, SingleStoreTinyIntBuilder, _a406, _b309, SingleStoreTinyInt, init_tinyint2, _a407, _b310, SingleStoreVarBinaryBuilder, _a408, _b311, SingleStoreVarBinary, init_varbinary2, _a409, _b312, SingleStoreVarCharBuilder, _a410, _b313, SingleStoreVarChar, init_varchar3, _a411, _b314, SingleStoreVectorBuilder, _a412, _b315, SingleStoreVector, init_vector4, _a413, _b316, SingleStoreYearBuilder, _a414, _b317, SingleStoreYear, init_year2, init_columns4, _a415, _b318, _c12, _SingleStoreCountBuilder, SingleStoreCountBuilder, init_count4, _a416, IndexBuilderOn4, _a417, IndexBuilder4, _a418, Index6, init_indexes4, init_all4, _a419, _b319, _c13, _d5, SingleStoreTable, init_table52, _a420, PrimaryKeyBuilder4, _a421, PrimaryKey4, init_primary_keys4, init_utils10, _a422, _b320, SingleStoreDeleteBase, init_delete4, _a423, SingleStoreInsertBuilder, _a424, _b321, SingleStoreInsertBase, init_insert4, _a425, SingleStoreDialect, init_dialect4, _a426, SingleStoreSelectBuilder, _a427, _b322, SingleStoreSelectQueryBuilderBase, _a428, _b323, SingleStoreSelectBase, getSingleStoreSetOperators, union5, unionAll4, intersect4, except4, minus, init_select5, _a429, QueryBuilder4, init_query_builder5, init_select_types4, _a430, SingleStoreUpdateBuilder, _a431, _b324, SingleStoreUpdateBase, init_update4, init_query_builders4, _a432, SingleStoreDatabase, init_db4, _a433, SingleStoreSchema5, init_schema32, _a434, SingleStorePreparedQuery, _a435, SingleStoreSession, _a436, _b325, SingleStoreTransaction, init_session4, init_subquery5, init_singlestore_core, dialect5, generateSingleStoreSnapshot, fromDatabase4, init_singlestoreSerializer, sqliteImports_exports, prepareFromExports2, prepareFromSqliteImports, init_sqliteImports, mysqlImports_exports, prepareFromExports3, prepareFromMySqlImports, init_mysqlImports, mysqlPushUtils_exports, import_hanji8, filterStatements, logSuggestionsAndReturn2, init_mysqlPushUtils, mysqlIntrospect_exports, import_hanji9, mysqlPushIntrospect, init_mysqlIntrospect, singlestoreImports_exports, prepareFromExports4, prepareFromSingleStoreImports, init_singlestoreImports, singlestorePushUtils_exports, import_hanji10, filterStatements2, logSuggestionsAndReturn3, init_singlestorePushUtils, singlestoreIntrospect_exports, import_hanji11, singlestorePushIntrospect, init_singlestoreIntrospect, import_hanji3, pgPushIntrospect = async (db2, filters, schemaFilters, entities, tsSchema) => {
|
|
44051
|
+
}, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target, mod)), __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value), ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles3, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default, init_ansi_styles, env, flagForceColor, supportsColor, supports_color_default, init_supports_color, init_utilities, stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles22, applyOptions, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default, init_source, require_old, require_fs, require_path, require_balanced_match, require_brace_expansion, require_minimatch, require_inherits_browser, require_inherits, require_common2, require_sync, require_wrappy, require_once, require_inflight, require_glob, require_readline, require_src2, require_utils, require_lodash, require_hanji, originUUID, snapshotVersion, mapValues, mapKeys, mapEntries, customMapEntries, init_global2, util4, objectUtil3, ZodParsedType3, getParsedType3, init_util2, ZodIssueCode3, ZodError4, init_ZodError2, errorMap3, en_default3, init_en2, overrideErrorMap3, init_errors4, makeIssue3, ParseStatus3, INVALID3, DIRTY3, OK3, isAborted3, isDirty3, isValid3, isAsync3, init_parseUtil2, init_typeAliases2, errorUtil3, init_errorUtil2, ParseInputLazyPath3, handleResult3, ZodType3, cuidRegex3, cuid2Regex3, ulidRegex3, uuidRegex3, nanoidRegex3, jwtRegex3, durationRegex3, emailRegex3, _emojiRegex3, emojiRegex3, ipv4Regex3, ipv4CidrRegex3, ipv6Regex3, ipv6CidrRegex3, base64Regex3, base64urlRegex3, dateRegexSource3, dateRegex3, ZodString3, ZodNumber3, ZodBigInt3, ZodBoolean3, ZodDate3, ZodSymbol3, ZodUndefined3, ZodNull3, ZodAny3, ZodUnknown3, ZodNever3, ZodVoid3, ZodArray3, ZodObject3, ZodUnion3, getDiscriminator3, ZodDiscriminatedUnion3, ZodIntersection3, ZodTuple3, ZodRecord3, ZodMap3, ZodSet3, ZodFunction3, ZodLazy3, ZodLiteral3, ZodEnum3, ZodNativeEnum3, ZodPromise3, ZodEffects3, ZodOptional3, ZodNullable3, ZodDefault3, ZodCatch3, ZodNaN3, BRAND3, ZodBranded3, ZodPipeline3, ZodReadonly3, late3, ZodFirstPartyTypeKind3, stringType3, numberType3, nanType3, bigIntType3, booleanType3, dateType3, symbolType3, undefinedType3, nullType3, anyType3, unknownType3, neverType3, voidType3, arrayType3, objectType3, strictObjectType3, unionType3, discriminatedUnionType3, intersectionType3, tupleType3, recordType3, mapType3, setType3, functionType3, lazyType3, literalType3, enumType3, nativeEnumType3, promiseType3, effectsType3, optionalType3, nullableType3, preprocessType3, pipelineType3, coerce3, init_types8, init_external2, init_v32, init_esm2, enumSchema, enumSchemaV1, indexColumn, index2, fk, sequenceSchema, roleSchema, sequenceSquashed, column2, checkConstraint, columnSquashed, compositePK, uniqueConstraint, policy, policySquashed, viewWithOption, matViewWithOption, mergedViewWithOption, view2, table15, schemaHash, kitInternals, gelSchemaExternal, gelSchemaInternal, tableSquashed, gelSchemaSquashed, gelSchema, dryGel, init_gelSchema, index22, fk2, column22, tableV3, compositePK2, uniqueConstraint2, checkConstraint2, tableV4, table22, viewMeta, view22, kitInternals2, dialect2, schemaHash2, schemaInternalV3, schemaInternalV4, schemaInternalV5, schemaInternal, schemaV3, schemaV4, schemaV5, schema2, tableSquashedV4, tableSquashed2, viewSquashed, schemaSquashed, schemaSquashedV4, MySqlSquasher, squashMysqlScheme, mysqlSchema, mysqlSchemaV5, mysqlSchemaSquashed, backwardCompatibleMysqlSchema, dryMySql, init_mysqlSchema, indexV2, columnV2, tableV2, enumSchemaV12, enumSchema2, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn2, index3, indexV4, indexV5, indexV6, fk3, sequenceSchema2, roleSchema2, sequenceSquashed2, columnV7, column3, checkConstraint3, columnSquashed2, tableV32, compositePK3, uniqueConstraint3, policy2, policySquashed2, viewWithOption2, matViewWithOption2, mergedViewWithOption2, view3, tableV42, tableV5, tableV6, tableV7, table32, schemaHash3, kitInternals3, pgSchemaInternalV3, pgSchemaInternalV4, pgSchemaInternalV5, pgSchemaInternalV6, pgSchemaExternal, pgSchemaInternalV7, pgSchemaInternal, tableSquashed3, tableSquashedV42, pgSchemaSquashedV4, pgSchemaSquashedV6, pgSchemaSquashed, pgSchemaV3, pgSchemaV4, pgSchemaV5, pgSchemaV6, pgSchemaV7, pgSchema, backwardCompatiblePgSchema, PgSquasher, squashPgScheme, dryPg, init_pgSchema, index4, column4, compositePK4, uniqueConstraint4, table42, viewMeta2, kitInternals4, dialect22, schemaHash4, schemaInternal2, schema22, tableSquashed4, schemaSquashed2, SingleStoreSquasher, squashSingleStoreScheme, singlestoreSchema, singlestoreSchemaSquashed, backwardCompatibleSingleStoreSchema, drySingleStore, init_singlestoreSchema, index5, fk4, compositePK5, column5, tableV33, uniqueConstraint5, checkConstraint4, table52, view4, dialect3, schemaHash5, schemaInternalV32, schemaInternalV42, schemaInternalV52, kitInternals5, latestVersion, schemaInternal3, schemaV32, schemaV42, schemaV52, schema3, tableSquashed5, schemaSquashed3, SQLiteSquasher, squashSqliteScheme, drySQLite, sqliteSchemaV5, sqliteSchema, SQLiteSchemaSquashed, backwardCompatibleSqliteSchema, init_sqliteSchema, copy, prepareMigrationMeta, schemaRenameKey, tableRenameKey, columnRenameKey, init_utils5, import_hanji, warning, error, isRenamePromptItem, ResolveColumnSelect, tableKey, ResolveSelectNamed, ResolveSelect, ResolveSchemasSelect, Spinner3, ProgressView, init_views, glob, init_serializer, fillPgSnapshot, init_migrationPreparator, require_heap, require_heap2, require_difflib, require_difflib2, require_util, require_styles, require_has_flag2, require_supports_colors, require_trap, require_zalgo, require_america, require_zebra, require_rainbow, require_random, require_colors, require_safe, require_colorize, require_lib, import_json_diff, mapArraysDiff, findAlternationsInTable, alternationsInColumn, init_jsonDiffer, parseType, Convertor, PgCreateRoleConvertor, PgDropRoleConvertor, PgRenameRoleConvertor, PgAlterRoleConvertor, PgCreatePolicyConvertor, PgDropPolicyConvertor, PgRenamePolicyConvertor, PgAlterPolicyConvertor, PgCreateIndPolicyConvertor, PgDropIndPolicyConvertor, PgRenameIndPolicyConvertor, PgAlterIndPolicyConvertor, PgEnableRlsConvertor, PgDisableRlsConvertor, PgCreateTableConvertor, MySqlCreateTableConvertor, SingleStoreCreateTableConvertor, SQLiteCreateTableConvertor, PgCreateViewConvertor, MySqlCreateViewConvertor, SqliteCreateViewConvertor, PgDropViewConvertor, MySqlDropViewConvertor, SqliteDropViewConvertor, MySqlAlterViewConvertor, PgRenameViewConvertor, MySqlRenameViewConvertor, PgAlterViewSchemaConvertor, PgAlterViewAddWithOptionConvertor, PgAlterViewDropWithOptionConvertor, PgAlterViewAlterTablespaceConvertor, PgAlterViewAlterUsingConvertor, PgAlterTableAlterColumnSetGenerated, PgAlterTableAlterColumnDropGenerated, PgAlterTableAlterColumnAlterGenerated, PgAlterTableAddUniqueConstraintConvertor, PgAlterTableDropUniqueConstraintConvertor, PgAlterTableAddCheckConstraintConvertor, PgAlterTableDeleteCheckConstraintConvertor, MySQLAlterTableAddUniqueConstraintConvertor, MySQLAlterTableDropUniqueConstraintConvertor, MySqlAlterTableAddCheckConstraintConvertor, SingleStoreAlterTableAddUniqueConstraintConvertor, SingleStoreAlterTableDropUniqueConstraintConvertor, MySqlAlterTableDeleteCheckConstraintConvertor, CreatePgSequenceConvertor, DropPgSequenceConvertor, RenamePgSequenceConvertor, MovePgSequenceConvertor, AlterPgSequenceConvertor, CreateTypeEnumConvertor, DropTypeEnumConvertor, AlterTypeAddValueConvertor, AlterTypeSetSchemaConvertor, AlterRenameTypeConvertor, AlterTypeDropValueConvertor, PgDropTableConvertor, MySQLDropTableConvertor, SingleStoreDropTableConvertor, SQLiteDropTableConvertor, PgRenameTableConvertor, SqliteRenameTableConvertor, MySqlRenameTableConvertor, SingleStoreRenameTableConvertor, PgAlterTableRenameColumnConvertor, MySqlAlterTableRenameColumnConvertor, SingleStoreAlterTableRenameColumnConvertor, SQLiteAlterTableRenameColumnConvertor, PgAlterTableDropColumnConvertor, MySqlAlterTableDropColumnConvertor, SingleStoreAlterTableDropColumnConvertor, SQLiteAlterTableDropColumnConvertor, PgAlterTableAddColumnConvertor, MySqlAlterTableAddColumnConvertor, SingleStoreAlterTableAddColumnConvertor, SQLiteAlterTableAddColumnConvertor, PgAlterTableAlterColumnSetTypeConvertor, PgAlterTableAlterColumnSetDefaultConvertor, PgAlterTableAlterColumnDropDefaultConvertor, PgAlterTableAlterColumnDropGeneratedConvertor, PgAlterTableAlterColumnSetExpressionConvertor, PgAlterTableAlterColumnAlterrGeneratedConvertor, SqliteAlterTableAlterColumnDropGeneratedConvertor, SqliteAlterTableAlterColumnSetExpressionConvertor, SqliteAlterTableAlterColumnAlterGeneratedConvertor, MySqlAlterTableAlterColumnAlterrGeneratedConvertor, MySqlAlterTableAddPk, MySqlAlterTableDropPk, LibSQLModifyColumn, MySqlModifyColumn, SingleStoreAlterTableAlterColumnAlterrGeneratedConvertor, SingleStoreAlterTableAddPk, SingleStoreAlterTableDropPk, SingleStoreModifyColumn, PgAlterTableCreateCompositePrimaryKeyConvertor, PgAlterTableDeleteCompositePrimaryKeyConvertor, PgAlterTableAlterCompositePrimaryKeyConvertor, MySqlAlterTableCreateCompositePrimaryKeyConvertor, MySqlAlterTableDeleteCompositePrimaryKeyConvertor, MySqlAlterTableAlterCompositePrimaryKeyConvertor, PgAlterTableAlterColumnSetPrimaryKeyConvertor, PgAlterTableAlterColumnDropPrimaryKeyConvertor, PgAlterTableAlterColumnSetNotNullConvertor, PgAlterTableAlterColumnDropNotNullConvertor, PgCreateForeignKeyConvertor, LibSQLCreateForeignKeyConvertor, MySqlCreateForeignKeyConvertor, PgAlterForeignKeyConvertor, PgDeleteForeignKeyConvertor, MySqlDeleteForeignKeyConvertor, CreatePgIndexConvertor, CreateMySqlIndexConvertor, CreateSingleStoreIndexConvertor, CreateSqliteIndexConvertor, PgDropIndexConvertor, PgCreateSchemaConvertor, PgRenameSchemaConvertor, PgDropSchemaConvertor, PgAlterTableSetSchemaConvertor, PgAlterTableSetNewSchemaConvertor, PgAlterTableRemoveFromSchemaConvertor, SqliteDropIndexConvertor, MySqlDropIndexConvertor, SingleStoreDropIndexConvertor, SQLiteRecreateTableConvertor, LibSQLRecreateTableConvertor, SingleStoreRecreateTableConvertor, convertors, init_sqlgenerator, _moveDataStatements, getOldTableName, getNewTableName, logSuggestionsAndReturn, init_sqlitePushUtils, preparePgCreateTableJson, prepareMySqlCreateTableJson, prepareSingleStoreCreateTableJson, prepareSQLiteCreateTable, prepareDropTableJson, prepareRenameTableJson, prepareCreateEnumJson, prepareAddValuesToEnumJson, prepareDropEnumValues, prepareDropEnumJson, prepareMoveEnumJson, prepareRenameEnumJson, prepareCreateSequenceJson, prepareAlterSequenceJson, prepareDropSequenceJson, prepareMoveSequenceJson, prepareRenameSequenceJson, prepareCreateRoleJson, prepareAlterRoleJson, prepareDropRoleJson, prepareRenameRoleJson, prepareCreateSchemasJson, prepareRenameSchemasJson, prepareDeleteSchemasJson, prepareRenameColumns, _prepareDropColumns, _prepareAddColumns, _prepareSqliteAddColumns, prepareAlterColumnsMysql, preparePgAlterColumns, prepareSqliteAlterColumns, prepareRenamePolicyJsons, prepareRenameIndPolicyJsons, prepareCreatePolicyJsons, prepareCreateIndPolicyJsons, prepareDropPolicyJsons, prepareDropIndPolicyJsons, prepareAlterPolicyJson, prepareAlterIndPolicyJson, preparePgCreateIndexesJson, prepareCreateIndexesJson, prepareCreateReferencesJson, prepareLibSQLCreateReferencesJson, prepareDropReferencesJson, prepareLibSQLDropReferencesJson, prepareAlterReferencesJson, prepareDropIndexesJson, prepareAddCompositePrimaryKeySqlite, prepareDeleteCompositePrimaryKeySqlite, prepareAlterCompositePrimaryKeySqlite, prepareAddCompositePrimaryKeyPg, prepareDeleteCompositePrimaryKeyPg, prepareAlterCompositePrimaryKeyPg, prepareAddUniqueConstraintPg, prepareDeleteUniqueConstraintPg, prepareAddCheckConstraint, prepareDeleteCheckConstraint, prepareAddCompositePrimaryKeyMySql, prepareDeleteCompositePrimaryKeyMySql, prepareAlterCompositePrimaryKeyMySql, preparePgCreateViewJson, prepareMySqlCreateViewJson, prepareSqliteCreateViewJson, prepareDropViewJson, prepareRenameViewJson, preparePgAlterViewAlterSchemaJson, preparePgAlterViewAddWithOptionJson, preparePgAlterViewDropWithOptionJson, preparePgAlterViewAlterTablespaceJson, preparePgAlterViewAlterUsingJson, prepareMySqlAlterView, init_jsonStatements, prepareLibSQLRecreateTable, prepareSQLiteRecreateTable, libSQLCombineStatements, sqliteCombineStatements, prepareSingleStoreRecreateTable, singleStoreCombineStatements, init_statementCombiner, snapshotsDiffer_exports, makeChanged, makeSelfOrChanged, makePatched, makeSelfOrPatched, columnSchema, alteredColumnSchema, enumSchema3, changedEnumSchema, tableScheme, alteredTableScheme, alteredViewCommon, alteredPgViewSchema, alteredMySqlViewSchema, diffResultScheme, diffResultSchemeMysql, diffResultSchemeSingleStore, diffResultSchemeSQLite, schemaChangeFor, nameChangeFor, nameSchemaChangeFor, columnChangeFor, applyPgSnapshotsDiff, applyMysqlSnapshotsDiff, applySingleStoreSnapshotsDiff, applySqliteSnapshotsDiff, applyLibSQLSnapshotsDiff, init_snapshotsDiffer, init_words, dialects, dialect4, commonSquashedSchema, commonSchema, init_schemaValidator, sqliteDriversLiterals, postgresqlDriversLiterals, prefixes, prefix, casingTypes, casingType, sqliteDriver, postgresDriver, driver2, configMigrations, configCommonSchema, casing, introspectParams, configIntrospectCliSchema, configGenerateSchema, configPushSchema, init_common2, withStyle, init_outputs, import_hanji2, schemasResolver, tablesResolver, viewsResolver, mySqlViewsResolver, sqliteViewsResolver, sequencesResolver, roleResolver, policyResolver, indPolicyResolver, enumsResolver, columnsResolver, promptColumnsConflicts, promptNamedConflict, promptNamedWithSchemasConflict, promptSchemasConflict, BREAKPOINT, init_migrate, posixClasses, braceEscape, regexpEscape, rangesToString, parseClass, init_brace_expressions, escape, init_escape, unescape, init_unescape, import_brace_expansion, minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path, sep, GLOBSTAR, plTypes, qmark, star, twoStarDot, twoStarNoDot, charSet, reSpecials, addPatternStartSet, filter, ext, defaults, braceExpand, MAX_PATTERN_LENGTH, assertValidPattern, makeRe, match2, globUnescape, globMagic, regExpEscape, Minimatch, init_mjs, entityKind2, hasOwnEntityKind2, init_entity2, _a, Column2, init_column2, _a2, ColumnBuilder2, init_column_builder2, TableName2, init_table_utils2, _a3, ForeignKeyBuilder2, _a4, ForeignKey2, init_foreign_keys2, init_tracing_utils2, _a5, UniqueConstraintBuilder, _a6, UniqueOnConstraintBuilder, _a7, UniqueConstraint, init_unique_constraint2, init_array2, _a8, _b, PgColumnBuilder2, _a9, _b2, PgColumn2, _a10, _b3, ExtraConfigColumn2, _a11, IndexedColumn2, _a12, _b4, PgArrayBuilder2, _a13, _b5, _PgArray, PgArray2, init_common22, _a14, _b6, PgEnumObjectColumnBuilder2, _a15, _b7, PgEnumObjectColumn2, isPgEnumSym2, _a16, _b8, PgEnumColumnBuilder2, _a17, _b9, PgEnumColumn2, init_enum2, _a18, Subquery2, _a19, _b10, WithSubquery2, init_subquery2, version2, init_version2, otel2, rawTracer2, tracer2, init_tracing2, ViewBaseConfig2, init_view_common3, Schema2, Columns2, ExtraConfigColumns2, OriginalName2, BaseName2, IsAlias2, ExtraConfigBuilder2, IsDrizzleTable2, _a20, _b11, _c, _d, _e2, _f, _g, _h, _i, _j, Table2, init_table15, _a21, FakePrimitiveParam, _a22, StringChunk2, _a23, _SQL, SQL2, _a24, Name2, noopDecoder2, noopEncoder2, noopMapper2, _a25, Param2, _a26, Placeholder2, IsDrizzleView2, _a27, _b12, _c2, View3, init_sql3, _a28, ColumnAliasProxyHandler2, _a29, TableAliasProxyHandler2, _a30, RelationTableAliasProxyHandler, init_alias3, _a31, _b13, DrizzleError2, DrizzleQueryError, _a32, _b14, TransactionRollbackError2, init_errors22, _a33, ConsoleLogWriter2, _a34, DefaultLogger2, _a35, NoopLogger2, init_logger3, init_operations, _a36, _b15, QueryPromise2, init_query_promise2, textDecoder, init_utils22, _a37, _b16, PgIntColumnBaseBuilder2, init_int_common2, _a38, _b17, PgBigInt53Builder2, _a39, _b18, PgBigInt532, _a40, _b19, PgBigInt64Builder2, _a41, _b20, PgBigInt642, init_bigint2, _a42, _b21, PgBigSerial53Builder2, _a43, _b22, PgBigSerial532, _a44, _b23, PgBigSerial64Builder2, _a45, _b24, PgBigSerial642, init_bigserial2, _a46, _b25, PgBooleanBuilder2, _a47, _b26, PgBoolean2, init_boolean2, _a48, _b27, PgCharBuilder2, _a49, _b28, PgChar2, init_char2, _a50, _b29, PgCidrBuilder2, _a51, _b30, PgCidr2, init_cidr2, _a52, _b31, PgCustomColumnBuilder2, _a53, _b32, PgCustomColumn2, init_custom2, _a54, _b33, PgDateColumnBaseBuilder2, init_date_common2, _a55, _b34, PgDateBuilder2, _a56, _b35, PgDate2, _a57, _b36, PgDateStringBuilder2, _a58, _b37, PgDateString2, init_date2, _a59, _b38, PgDoublePrecisionBuilder2, _a60, _b39, PgDoublePrecision2, init_double_precision2, _a61, _b40, PgInetBuilder2, _a62, _b41, PgInet2, init_inet2, _a63, _b42, PgIntegerBuilder2, _a64, _b43, PgInteger2, init_integer2, _a65, _b44, PgIntervalBuilder2, _a66, _b45, PgInterval2, init_interval2, _a67, _b46, PgJsonBuilder2, _a68, _b47, PgJson2, init_json2, _a69, _b48, PgJsonbBuilder2, _a70, _b49, PgJsonb2, init_jsonb2, _a71, _b50, PgLineBuilder2, _a72, _b51, PgLineTuple2, _a73, _b52, PgLineABCBuilder2, _a74, _b53, PgLineABC2, init_line2, _a75, _b54, PgMacaddrBuilder2, _a76, _b55, PgMacaddr2, init_macaddr2, _a77, _b56, PgMacaddr8Builder2, _a78, _b57, PgMacaddr82, init_macaddr82, _a79, _b58, PgNumericBuilder2, _a80, _b59, PgNumeric2, _a81, _b60, PgNumericNumberBuilder2, _a82, _b61, PgNumericNumber2, _a83, _b62, PgNumericBigIntBuilder2, _a84, _b63, PgNumericBigInt2, init_numeric2, _a85, _b64, PgPointTupleBuilder2, _a86, _b65, PgPointTuple2, _a87, _b66, PgPointObjectBuilder2, _a88, _b67, PgPointObject2, init_point2, init_utils32, _a89, _b68, PgGeometryBuilder2, _a90, _b69, PgGeometry2, _a91, _b70, PgGeometryObjectBuilder2, _a92, _b71, PgGeometryObject2, init_geometry2, _a93, _b72, PgRealBuilder2, _a94, _b73, PgReal2, init_real2, _a95, _b74, PgSerialBuilder2, _a96, _b75, PgSerial2, init_serial2, _a97, _b76, PgSmallIntBuilder2, _a98, _b77, PgSmallInt2, init_smallint2, _a99, _b78, PgSmallSerialBuilder2, _a100, _b79, PgSmallSerial2, init_smallserial2, _a101, _b80, PgTextBuilder2, _a102, _b81, PgText2, init_text2, _a103, _b82, PgTimeBuilder2, _a104, _b83, PgTime2, init_time2, _a105, _b84, PgTimestampBuilder2, _a106, _b85, PgTimestamp2, _a107, _b86, PgTimestampStringBuilder2, _a108, _b87, PgTimestampString2, init_timestamp2, _a109, _b88, PgUUIDBuilder2, _a110, _b89, PgUUID2, init_uuid3, _a111, _b90, PgVarcharBuilder2, _a112, _b91, PgVarchar2, init_varchar2, _a113, _b92, PgBinaryVectorBuilder2, _a114, _b93, PgBinaryVector2, init_bit2, _a115, _b94, PgHalfVectorBuilder2, _a116, _b95, PgHalfVector2, init_halfvec2, _a117, _b96, PgSparseVectorBuilder2, _a118, _b97, PgSparseVector2, init_sparsevec2, _a119, _b98, PgVectorBuilder2, _a120, _b99, PgVector2, init_vector3, init_all2, InlineForeignKeys2, EnableRLS2, _a121, _b100, _c3, _d2, _e22, _f2, PgTable2, pgTable2, init_table22, _a122, PrimaryKeyBuilder2, _a123, PrimaryKey2, init_primary_keys2, eq2, ne3, gt3, gte2, lt3, lte2, init_conditions2, init_select3, init_expressions2, _a124, Relation2, _a125, Relations2, _a126, _b101, _One, One2, _a127, _b102, _Many, Many2, init_relations2, init_aggregate2, init_vector22, init_functions2, init_sql22, dist_exports, init_dist6, init_alias22, _a128, CheckBuilder, _a129, Check, init_checks2, init_columns2, _a130, _SelectionProxyHandler, SelectionProxyHandler2, init_selection_proxy2, _a131, IndexBuilderOn2, _a132, IndexBuilder2, _a133, Index2, init_indexes2, _a134, PgPolicy, init_policies2, PgViewConfig2, init_view_common22, _a135, CasingCache2, init_casing2, _a136, _b103, PgViewBase2, init_view_base2, _a137, PgDialect2, init_dialect2, _a138, TypedQueryBuilder2, init_query_builder3, _a139, PgSelectBuilder2, _a140, _b104, PgSelectQueryBuilderBase2, _a141, _b105, PgSelectBase2, getPgSetOperators2, union2, unionAll2, intersect2, intersectAll2, except2, exceptAll2, init_select22, _a142, QueryBuilder2, init_query_builder22, _a143, DefaultViewBuilderCore, _a144, _b106, ViewBuilder, _a145, _b107, ManualViewBuilder, _a146, MaterializedViewBuilderCore, _a147, _b108, MaterializedViewBuilder, _a148, _b109, ManualMaterializedViewBuilder, _a149, _b110, _c4, PgView2, PgMaterializedViewConfig2, _a150, _b111, _c5, PgMaterializedView, init_view2, init_utils42, _a151, _b112, PgDeleteBase2, init_delete2, _a152, PgInsertBuilder2, _a153, _b113, PgInsertBase2, init_insert2, _a154, _b114, PgRefreshMaterializedView2, init_refresh_materialized_view2, init_select_types, _a155, PgUpdateBuilder2, _a156, _b115, PgUpdateBase2, init_update2, init_query_builders2, _a157, _b116, _c6, _PgCountBuilder, PgCountBuilder2, init_count2, _a158, RelationalQueryBuilder2, _a159, _b117, PgRelationalQuery2, init_query2, _a160, _b118, PgRaw2, init_raw2, _a161, PgDatabase2, init_db2, _a162, PgRole, init_roles2, _a163, PgSequence, init_sequence2, _a164, PgSchema5, init_schema3, _a165, Cache, _a166, _b119, NoopCache, init_cache, _a167, PgPreparedQuery2, _a168, PgSession2, _a169, _b120, PgTransaction2, init_session3, init_subquery22, init_utils52, init_pg_core2, vectorOps, init_vector32, sqlToStr, init_utils6, indexName, generatePgSnapshot, trimChar, fromDatabase, defaultForColumn, getColumnsInfoQuery, init_pgSerializer, import_hanji4, Select, init_selector_ui, init_alias32, _a170, CheckBuilder2, _a171, Check2, init_checks22, _a172, ForeignKeyBuilder22, _a173, ForeignKey22, init_foreign_keys22, _a174, UniqueConstraintBuilder2, _a175, UniqueOnConstraintBuilder2, _a176, UniqueConstraint2, init_unique_constraint22, _a177, _b121, SQLiteColumnBuilder, _a178, _b122, SQLiteColumn, init_common3, _a179, _b123, SQLiteBigIntBuilder, _a180, _b124, SQLiteBigInt, _a181, _b125, SQLiteBlobJsonBuilder, _a182, _b126, SQLiteBlobJson, _a183, _b127, SQLiteBlobBufferBuilder, _a184, _b128, SQLiteBlobBuffer, init_blob, _a185, _b129, SQLiteCustomColumnBuilder, _a186, _b130, SQLiteCustomColumn, init_custom22, _a187, _b131, SQLiteBaseIntegerBuilder, _a188, _b132, SQLiteBaseInteger, _a189, _b133, SQLiteIntegerBuilder, _a190, _b134, SQLiteInteger, _a191, _b135, SQLiteTimestampBuilder, _a192, _b136, SQLiteTimestamp, _a193, _b137, SQLiteBooleanBuilder, _a194, _b138, SQLiteBoolean, init_integer22, _a195, _b139, SQLiteNumericBuilder, _a196, _b140, SQLiteNumeric, _a197, _b141, SQLiteNumericNumberBuilder, _a198, _b142, SQLiteNumericNumber, _a199, _b143, SQLiteNumericBigIntBuilder, _a200, _b144, SQLiteNumericBigInt, init_numeric22, _a201, _b145, SQLiteRealBuilder, _a202, _b146, SQLiteReal, init_real22, _a203, _b147, SQLiteTextBuilder, _a204, _b148, SQLiteText, _a205, _b149, SQLiteTextJsonBuilder, _a206, _b150, SQLiteTextJson, init_text22, init_columns22, init_all22, InlineForeignKeys22, _a207, _b151, _c7, _d3, _e3, SQLiteTable, sqliteTable, init_table32, _a208, IndexBuilderOn22, _a209, IndexBuilder22, _a210, Index4, init_indexes22, _a211, PrimaryKeyBuilder22, _a212, PrimaryKey22, init_primary_keys22, init_utils7, _a213, _b152, SQLiteDeleteBase, init_delete22, _a214, _b153, SQLiteViewBase, init_view_base22, _a215, SQLiteDialect, _a216, _b154, SQLiteSyncDialect, _a217, _b155, SQLiteAsyncDialect, init_dialect22, _a218, SQLiteSelectBuilder, _a219, _b156, SQLiteSelectQueryBuilderBase, _a220, _b157, SQLiteSelectBase, getSQLiteSetOperators, union3, unionAll22, intersect22, except22, init_select32, _a221, QueryBuilder22, init_query_builder32, _a222, SQLiteInsertBuilder, _a223, _b158, SQLiteInsertBase, init_insert22, init_select_types2, _a224, SQLiteUpdateBuilder, _a225, _b159, SQLiteUpdateBase, init_update22, init_query_builders22, _a226, _b160, _c8, _SQLiteCountBuilder, SQLiteCountBuilder, init_count22, _a227, RelationalQueryBuilder22, _a228, _b161, SQLiteRelationalQuery, _a229, _b162, SQLiteSyncRelationalQuery, init_query22, _a230, _b163, SQLiteRaw, init_raw22, _a231, BaseSQLiteDatabase, init_db22, _a232, _b164, ExecuteResultSync, _a233, SQLitePreparedQuery, _a234, SQLiteSession, _a235, _b165, SQLiteTransaction, init_session22, init_subquery3, _a236, ViewBuilderCore, _a237, _b166, ViewBuilder2, _a238, _b167, ManualViewBuilder2, _a239, _b168, SQLiteView2, init_view22, init_sqlite_core, generateSqliteSnapshot, fromDatabase2, init_sqliteSerializer, getTablesFilterByExtensions, init_getTablesFilterByExtensions, init_alias4, _a240, CheckBuilder3, _a241, Check3, init_checks3, _a242, ForeignKeyBuilder3, _a243, ForeignKey3, init_foreign_keys3, _a244, UniqueConstraintBuilder3, _a245, UniqueOnConstraintBuilder3, _a246, UniqueConstraint3, init_unique_constraint3, _a247, _b169, MySqlColumnBuilder, _a248, _b170, MySqlColumn, _a249, _b171, MySqlColumnBuilderWithAutoIncrement, _a250, _b172, MySqlColumnWithAutoIncrement, init_common4, _a251, _b173, MySqlBigInt53Builder, _a252, _b174, MySqlBigInt53, _a253, _b175, MySqlBigInt64Builder, _a254, _b176, MySqlBigInt64, init_bigint22, _a255, _b177, MySqlBinaryBuilder, _a256, _b178, MySqlBinary, init_binary, _a257, _b179, MySqlBooleanBuilder, _a258, _b180, MySqlBoolean, init_boolean22, _a259, _b181, MySqlCharBuilder, _a260, _b182, MySqlChar, init_char22, _a261, _b183, MySqlCustomColumnBuilder, _a262, _b184, MySqlCustomColumn, init_custom3, _a263, _b185, MySqlDateBuilder, _a264, _b186, MySqlDate, _a265, _b187, MySqlDateStringBuilder, _a266, _b188, MySqlDateString, init_date22, _a267, _b189, MySqlDateTimeBuilder, _a268, _b190, MySqlDateTime, _a269, _b191, MySqlDateTimeStringBuilder, _a270, _b192, MySqlDateTimeString, init_datetime, _a271, _b193, MySqlDecimalBuilder, _a272, _b194, MySqlDecimal, _a273, _b195, MySqlDecimalNumberBuilder, _a274, _b196, MySqlDecimalNumber, _a275, _b197, MySqlDecimalBigIntBuilder, _a276, _b198, MySqlDecimalBigInt, init_decimal, _a277, _b199, MySqlDoubleBuilder, _a278, _b200, MySqlDouble, init_double, _a279, _b201, MySqlEnumColumnBuilder, _a280, _b202, MySqlEnumColumn, _a281, _b203, MySqlEnumObjectColumnBuilder, _a282, _b204, MySqlEnumObjectColumn, init_enum22, _a283, _b205, MySqlFloatBuilder, _a284, _b206, MySqlFloat, init_float, _a285, _b207, MySqlIntBuilder, _a286, _b208, MySqlInt, init_int, _a287, _b209, MySqlJsonBuilder, _a288, _b210, MySqlJson, init_json22, _a289, _b211, MySqlMediumIntBuilder, _a290, _b212, MySqlMediumInt, init_mediumint, _a291, _b213, MySqlRealBuilder, _a292, _b214, MySqlReal, init_real3, _a293, _b215, MySqlSerialBuilder, _a294, _b216, MySqlSerial, init_serial22, _a295, _b217, MySqlSmallIntBuilder, _a296, _b218, MySqlSmallInt, init_smallint22, _a297, _b219, MySqlTextBuilder, _a298, _b220, MySqlText, init_text3, _a299, _b221, MySqlTimeBuilder, _a300, _b222, MySqlTime, init_time22, _a301, _b223, MySqlDateColumnBaseBuilder, _a302, _b224, MySqlDateBaseColumn, init_date_common22, _a303, _b225, MySqlTimestampBuilder, _a304, _b226, MySqlTimestamp, _a305, _b227, MySqlTimestampStringBuilder, _a306, _b228, MySqlTimestampString, init_timestamp22, _a307, _b229, MySqlTinyIntBuilder, _a308, _b230, MySqlTinyInt, init_tinyint, _a309, _b231, MySqlVarBinaryBuilder, _a310, _b232, MySqlVarBinary, init_varbinary, _a311, _b233, MySqlVarCharBuilder, _a312, _b234, MySqlVarChar, init_varchar22, _a313, _b235, MySqlYearBuilder, _a314, _b236, MySqlYear, init_year, init_columns3, _a315, _b237, _c9, _MySqlCountBuilder, MySqlCountBuilder, init_count3, _a316, IndexBuilderOn3, _a317, IndexBuilder3, _a318, Index5, init_indexes3, init_all3, InlineForeignKeys3, _a319, _b238, _c10, _d4, _e4, MySqlTable, mysqlTable, init_table42, _a320, PrimaryKeyBuilder3, _a321, PrimaryKey3, init_primary_keys3, MySqlViewConfig, init_view_common32, init_utils8, _a322, _b239, MySqlDeleteBase, init_delete3, _a323, _b240, MySqlViewBase, init_view_base3, _a324, MySqlDialect, init_dialect3, _a325, MySqlSelectBuilder, _a326, _b241, MySqlSelectQueryBuilderBase, _a327, _b242, MySqlSelectBase, getMySqlSetOperators, union4, unionAll3, intersect3, intersectAll22, except3, exceptAll22, init_select4, _a328, QueryBuilder3, init_query_builder4, _a329, MySqlInsertBuilder, _a330, _b243, MySqlInsertBase, init_insert3, init_select_types3, _a331, MySqlUpdateBuilder, _a332, _b244, MySqlUpdateBase, init_update3, init_query_builders3, _a333, RelationalQueryBuilder3, _a334, _b245, MySqlRelationalQuery, init_query3, _a335, MySqlDatabase, init_db3, _a336, ViewBuilderCore2, _a337, _b246, ViewBuilder3, _a338, _b247, ManualViewBuilder3, _a339, _b248, _c11, MySqlView2, init_view3, _a340, MySqlSchema5, init_schema22, _a341, MySqlPreparedQuery, _a342, MySqlSession, _a343, _b249, MySqlTransaction, init_session32, init_subquery4, init_mysql_core, handleEnumType, generateMySqlSnapshot, fromDatabase3, init_mysqlSerializer, cliConfigGenerate, pushParams, pullParams, configCheck, cliConfigCheck, init_cli, gelCredentials, init_gel, libSQLCredentials, init_libsql, mysqlCredentials, init_mysql, postgresCredentials, init_postgres, singlestoreCredentials, init_singlestore, sqliteCredentials, init_sqlite, credentials, studioCliParams, studioConfig, init_studio, es5_exports, _3, es5_default, init_es5, import_hanji7, assertES5, safeRegister, migrateConfig, init_utils9, prepareFromExports, init_pgImports, init_alias5, _a344, UniqueConstraintBuilder4, _a345, UniqueOnConstraintBuilder4, _a346, UniqueConstraint4, init_unique_constraint4, _a347, _b250, SingleStoreColumnBuilder, _a348, _b251, SingleStoreColumn, _a349, _b252, SingleStoreColumnBuilderWithAutoIncrement, _a350, _b253, SingleStoreColumnWithAutoIncrement, init_common5, _a351, _b254, SingleStoreBigInt53Builder, _a352, _b255, SingleStoreBigInt53, _a353, _b256, SingleStoreBigInt64Builder, _a354, _b257, SingleStoreBigInt64, init_bigint3, _a355, _b258, SingleStoreBinaryBuilder, _a356, _b259, SingleStoreBinary, init_binary2, _a357, _b260, SingleStoreBooleanBuilder, _a358, _b261, SingleStoreBoolean, init_boolean3, _a359, _b262, SingleStoreCharBuilder, _a360, _b263, SingleStoreChar, init_char3, _a361, _b264, SingleStoreCustomColumnBuilder, _a362, _b265, SingleStoreCustomColumn, init_custom4, _a363, _b266, SingleStoreDateBuilder, _a364, _b267, SingleStoreDate, _a365, _b268, SingleStoreDateStringBuilder, _a366, _b269, SingleStoreDateString, init_date3, _a367, _b270, SingleStoreDateTimeBuilder, _a368, _b271, SingleStoreDateTime, _a369, _b272, SingleStoreDateTimeStringBuilder, _a370, _b273, SingleStoreDateTimeString, init_datetime2, _a371, _b274, SingleStoreDecimalBuilder, _a372, _b275, SingleStoreDecimal, _a373, _b276, SingleStoreDecimalNumberBuilder, _a374, _b277, SingleStoreDecimalNumber, _a375, _b278, SingleStoreDecimalBigIntBuilder, _a376, _b279, SingleStoreDecimalBigInt, init_decimal2, _a377, _b280, SingleStoreDoubleBuilder, _a378, _b281, SingleStoreDouble, init_double2, _a379, _b282, SingleStoreEnumColumnBuilder, _a380, _b283, SingleStoreEnumColumn, init_enum3, _a381, _b284, SingleStoreFloatBuilder, _a382, _b285, SingleStoreFloat, init_float2, _a383, _b286, SingleStoreIntBuilder, _a384, _b287, SingleStoreInt, init_int2, _a385, _b288, SingleStoreJsonBuilder, _a386, _b289, SingleStoreJson, init_json3, _a387, _b290, SingleStoreMediumIntBuilder, _a388, _b291, SingleStoreMediumInt, init_mediumint2, _a389, _b292, SingleStoreRealBuilder, _a390, _b293, SingleStoreReal, init_real4, _a391, _b294, SingleStoreSerialBuilder, _a392, _b295, SingleStoreSerial, init_serial3, _a393, _b296, SingleStoreSmallIntBuilder, _a394, _b297, SingleStoreSmallInt, init_smallint3, _a395, _b298, SingleStoreTextBuilder, _a396, _b299, SingleStoreText, init_text4, _a397, _b300, SingleStoreTimeBuilder, _a398, _b301, SingleStoreTime, init_time3, _a399, _b302, SingleStoreDateColumnBaseBuilder, _a400, _b303, SingleStoreDateBaseColumn, init_date_common3, _a401, _b304, SingleStoreTimestampBuilder, _a402, _b305, SingleStoreTimestamp, _a403, _b306, SingleStoreTimestampStringBuilder, _a404, _b307, SingleStoreTimestampString, init_timestamp3, _a405, _b308, SingleStoreTinyIntBuilder, _a406, _b309, SingleStoreTinyInt, init_tinyint2, _a407, _b310, SingleStoreVarBinaryBuilder, _a408, _b311, SingleStoreVarBinary, init_varbinary2, _a409, _b312, SingleStoreVarCharBuilder, _a410, _b313, SingleStoreVarChar, init_varchar3, _a411, _b314, SingleStoreVectorBuilder, _a412, _b315, SingleStoreVector, init_vector4, _a413, _b316, SingleStoreYearBuilder, _a414, _b317, SingleStoreYear, init_year2, init_columns4, _a415, _b318, _c12, _SingleStoreCountBuilder, SingleStoreCountBuilder, init_count4, _a416, IndexBuilderOn4, _a417, IndexBuilder4, _a418, Index6, init_indexes4, init_all4, _a419, _b319, _c13, _d5, SingleStoreTable, init_table52, _a420, PrimaryKeyBuilder4, _a421, PrimaryKey4, init_primary_keys4, init_utils10, _a422, _b320, SingleStoreDeleteBase, init_delete4, _a423, SingleStoreInsertBuilder, _a424, _b321, SingleStoreInsertBase, init_insert4, _a425, SingleStoreDialect, init_dialect4, _a426, SingleStoreSelectBuilder, _a427, _b322, SingleStoreSelectQueryBuilderBase, _a428, _b323, SingleStoreSelectBase, getSingleStoreSetOperators, union5, unionAll4, intersect4, except4, minus, init_select5, _a429, QueryBuilder4, init_query_builder5, init_select_types4, _a430, SingleStoreUpdateBuilder, _a431, _b324, SingleStoreUpdateBase, init_update4, init_query_builders4, _a432, SingleStoreDatabase, init_db4, _a433, SingleStoreSchema5, init_schema32, _a434, SingleStorePreparedQuery, _a435, SingleStoreSession, _a436, _b325, SingleStoreTransaction, init_session4, init_subquery5, init_singlestore_core, dialect5, generateSingleStoreSnapshot, fromDatabase4, init_singlestoreSerializer, sqliteImports_exports, prepareFromExports2, prepareFromSqliteImports, init_sqliteImports, mysqlImports_exports, prepareFromExports3, prepareFromMySqlImports, init_mysqlImports, mysqlPushUtils_exports, import_hanji8, filterStatements, logSuggestionsAndReturn2, init_mysqlPushUtils, mysqlIntrospect_exports, import_hanji9, mysqlPushIntrospect, init_mysqlIntrospect, singlestoreImports_exports, prepareFromExports4, prepareFromSingleStoreImports, init_singlestoreImports, singlestorePushUtils_exports, import_hanji10, filterStatements2, logSuggestionsAndReturn3, init_singlestorePushUtils, singlestoreIntrospect_exports, import_hanji11, singlestorePushIntrospect, init_singlestoreIntrospect, import_hanji3, pgPushIntrospect = async (db2, filters, schemaFilters, entities, tsSchema) => {
|
|
43743
44052
|
const matchers = filters.map((it2) => {
|
|
43744
44053
|
return new Minimatch(it2);
|
|
43745
44054
|
});
|
|
@@ -44208,7 +44517,7 @@ var init_api2 = __esm(() => {
|
|
|
44208
44517
|
wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
44209
44518
|
wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
44210
44519
|
wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
44211
|
-
|
|
44520
|
+
styles3 = {
|
|
44212
44521
|
modifier: {
|
|
44213
44522
|
reset: [0, 0],
|
|
44214
44523
|
bold: [1, 22],
|
|
@@ -44261,9 +44570,9 @@ var init_api2 = __esm(() => {
|
|
|
44261
44570
|
bgWhiteBright: [107, 49]
|
|
44262
44571
|
}
|
|
44263
44572
|
};
|
|
44264
|
-
modifierNames = Object.keys(
|
|
44265
|
-
foregroundColorNames = Object.keys(
|
|
44266
|
-
backgroundColorNames = Object.keys(
|
|
44573
|
+
modifierNames = Object.keys(styles3.modifier);
|
|
44574
|
+
foregroundColorNames = Object.keys(styles3.color);
|
|
44575
|
+
backgroundColorNames = Object.keys(styles3.bgColor);
|
|
44267
44576
|
colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
44268
44577
|
ansiStyles = assembleStyles();
|
|
44269
44578
|
ansi_styles_default = ansiStyles;
|
|
@@ -46742,7 +47051,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
46742
47051
|
exports.prepareReadLine = undefined;
|
|
46743
47052
|
var prepareReadLine = () => {
|
|
46744
47053
|
const stdin = process.stdin;
|
|
46745
|
-
const
|
|
47054
|
+
const stdout3 = process.stdout;
|
|
46746
47055
|
const readline = __require2("readline");
|
|
46747
47056
|
const rl = readline.createInterface({
|
|
46748
47057
|
input: stdin,
|
|
@@ -46751,7 +47060,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
46751
47060
|
readline.emitKeypressEvents(stdin, rl);
|
|
46752
47061
|
return {
|
|
46753
47062
|
stdin,
|
|
46754
|
-
stdout:
|
|
47063
|
+
stdout: stdout3,
|
|
46755
47064
|
closable: rl
|
|
46756
47065
|
};
|
|
46757
47066
|
};
|
|
@@ -46763,7 +47072,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
46763
47072
|
var ESC = "\x1B";
|
|
46764
47073
|
var CSI = `${ESC}[`;
|
|
46765
47074
|
var beep = "\x07";
|
|
46766
|
-
var
|
|
47075
|
+
var cursor3 = {
|
|
46767
47076
|
to(x5, y3) {
|
|
46768
47077
|
if (!y3)
|
|
46769
47078
|
return `${CSI}${x5 + 1}G`;
|
|
@@ -46807,13 +47116,13 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
46807
47116
|
lines(count2) {
|
|
46808
47117
|
let clear = "";
|
|
46809
47118
|
for (let i3 = 0;i3 < count2; i3++)
|
|
46810
|
-
clear += this.line + (i3 < count2 - 1 ?
|
|
47119
|
+
clear += this.line + (i3 < count2 - 1 ? cursor3.up() : "");
|
|
46811
47120
|
if (count2)
|
|
46812
|
-
clear +=
|
|
47121
|
+
clear += cursor3.left;
|
|
46813
47122
|
return clear;
|
|
46814
47123
|
}
|
|
46815
47124
|
};
|
|
46816
|
-
module2.exports = { cursor:
|
|
47125
|
+
module2.exports = { cursor: cursor3, scroll, erase, beep };
|
|
46817
47126
|
}
|
|
46818
47127
|
});
|
|
46819
47128
|
require_utils = __commonJS2({
|
|
@@ -47101,10 +47410,10 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
47101
47410
|
};
|
|
47102
47411
|
exports.deferred = deferred;
|
|
47103
47412
|
var Terminal = class {
|
|
47104
|
-
constructor(view5, stdin,
|
|
47413
|
+
constructor(view5, stdin, stdout3, closable) {
|
|
47105
47414
|
this.view = view5;
|
|
47106
47415
|
this.stdin = stdin;
|
|
47107
|
-
this.stdout =
|
|
47416
|
+
this.stdout = stdout3;
|
|
47108
47417
|
this.closable = closable;
|
|
47109
47418
|
this.text = "";
|
|
47110
47419
|
this.status = "idle";
|
|
@@ -47202,9 +47511,9 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
47202
47511
|
};
|
|
47203
47512
|
exports.TaskView = TaskView2;
|
|
47204
47513
|
var TaskTerminal = class {
|
|
47205
|
-
constructor(view5,
|
|
47514
|
+
constructor(view5, stdout3) {
|
|
47206
47515
|
this.view = view5;
|
|
47207
|
-
this.stdout =
|
|
47516
|
+
this.stdout = stdout3;
|
|
47208
47517
|
this.text = "";
|
|
47209
47518
|
this.view.attach(this);
|
|
47210
47519
|
}
|
|
@@ -47223,13 +47532,13 @@ See: https://github.com/isaacs/node-glob/issues/167`);
|
|
|
47223
47532
|
};
|
|
47224
47533
|
exports.TaskTerminal = TaskTerminal;
|
|
47225
47534
|
function render7(view5) {
|
|
47226
|
-
const { stdin, stdout:
|
|
47535
|
+
const { stdin, stdout: stdout3, closable } = (0, readline_1.prepareReadLine)();
|
|
47227
47536
|
if (view5 instanceof Prompt3) {
|
|
47228
|
-
const terminal = new Terminal(view5, stdin,
|
|
47537
|
+
const terminal = new Terminal(view5, stdin, stdout3, closable);
|
|
47229
47538
|
terminal.requestLayout();
|
|
47230
47539
|
return terminal.result();
|
|
47231
47540
|
}
|
|
47232
|
-
|
|
47541
|
+
stdout3.write(`${view5}
|
|
47233
47542
|
`);
|
|
47234
47543
|
closable.close();
|
|
47235
47544
|
return;
|
|
@@ -52887,7 +53196,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
52887
53196
|
return this.state.items[this.state.selectedIdx];
|
|
52888
53197
|
}
|
|
52889
53198
|
};
|
|
52890
|
-
|
|
53199
|
+
Spinner3 = class {
|
|
52891
53200
|
constructor(frames) {
|
|
52892
53201
|
this.frames = frames;
|
|
52893
53202
|
this.offset = 0;
|
|
@@ -52908,7 +53217,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
52908
53217
|
super();
|
|
52909
53218
|
this.progressText = progressText;
|
|
52910
53219
|
this.successText = successText;
|
|
52911
|
-
this.spinner = new
|
|
53220
|
+
this.spinner = new Spinner3("⣷⣯⣟⡿⢿⣻⣽⣾".split(""));
|
|
52912
53221
|
this.timeout = setInterval(() => {
|
|
52913
53222
|
this.spinner.tick();
|
|
52914
53223
|
this.requestLayout();
|
|
@@ -53998,8 +54307,8 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
53998
54307
|
});
|
|
53999
54308
|
require_styles = __commonJS2({
|
|
54000
54309
|
"../node_modules/.pnpm/colors@1.4.0/node_modules/colors/lib/styles.js"(exports, module2) {
|
|
54001
|
-
var
|
|
54002
|
-
module2["exports"] =
|
|
54310
|
+
var styles32 = {};
|
|
54311
|
+
module2["exports"] = styles32;
|
|
54003
54312
|
var codes = {
|
|
54004
54313
|
reset: [0, 0],
|
|
54005
54314
|
bold: [1, 22],
|
|
@@ -54054,7 +54363,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
54054
54363
|
};
|
|
54055
54364
|
Object.keys(codes).forEach(function(key) {
|
|
54056
54365
|
var val = codes[key];
|
|
54057
|
-
var style =
|
|
54366
|
+
var style = styles32[key] = [];
|
|
54058
54367
|
style.open = "\x1B[" + val[0] + "m";
|
|
54059
54368
|
style.close = "\x1B[" + val[1] + "m";
|
|
54060
54369
|
});
|
|
@@ -54532,7 +54841,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
54532
54841
|
builder.__proto__ = proto2;
|
|
54533
54842
|
return builder;
|
|
54534
54843
|
}
|
|
54535
|
-
var
|
|
54844
|
+
var styles32 = function() {
|
|
54536
54845
|
var ret = {};
|
|
54537
54846
|
ansiStyles2.grey = ansiStyles2.gray;
|
|
54538
54847
|
Object.keys(ansiStyles2).forEach(function(key) {
|
|
@@ -54545,7 +54854,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
54545
54854
|
});
|
|
54546
54855
|
return ret;
|
|
54547
54856
|
}();
|
|
54548
|
-
var proto2 = defineProps(function colors2() {},
|
|
54857
|
+
var proto2 = defineProps(function colors2() {}, styles32);
|
|
54549
54858
|
function applyStyle2() {
|
|
54550
54859
|
var args2 = Array.prototype.slice.call(arguments);
|
|
54551
54860
|
var str = args2.map(function(arg) {
|
|
@@ -54595,7 +54904,7 @@ Is ${source_default.bold.blue(this.base.name)} schema created or renamed from an
|
|
|
54595
54904
|
};
|
|
54596
54905
|
function init2() {
|
|
54597
54906
|
var ret = {};
|
|
54598
|
-
Object.keys(
|
|
54907
|
+
Object.keys(styles32).forEach(function(name22) {
|
|
54599
54908
|
ret[name22] = {
|
|
54600
54909
|
get: function() {
|
|
54601
54910
|
return build([name22]);
|
|
@@ -81888,23 +82197,23 @@ var require_lexer = __commonJS((exports) => {
|
|
|
81888
82197
|
];
|
|
81889
82198
|
function tokenize(input) {
|
|
81890
82199
|
const tokens = [];
|
|
81891
|
-
let
|
|
81892
|
-
while (
|
|
82200
|
+
let cursor3 = 0;
|
|
82201
|
+
while (cursor3 < input.length) {
|
|
81893
82202
|
let matched = false;
|
|
81894
82203
|
for (const tokenType of tokenTypes) {
|
|
81895
|
-
const match3 = input.slice(
|
|
82204
|
+
const match3 = input.slice(cursor3).match(tokenType.regex);
|
|
81896
82205
|
if (match3) {
|
|
81897
82206
|
tokens.push({
|
|
81898
82207
|
type: tokenType.tokenType,
|
|
81899
82208
|
value: match3[0]
|
|
81900
82209
|
});
|
|
81901
|
-
|
|
82210
|
+
cursor3 += match3[0].length;
|
|
81902
82211
|
matched = true;
|
|
81903
82212
|
break;
|
|
81904
82213
|
}
|
|
81905
82214
|
}
|
|
81906
82215
|
if (!matched) {
|
|
81907
|
-
throw new Error(`Unexpected character at position ${
|
|
82216
|
+
throw new Error(`Unexpected character at position ${cursor3}`);
|
|
81908
82217
|
}
|
|
81909
82218
|
}
|
|
81910
82219
|
return tokens;
|
|
@@ -82167,13 +82476,13 @@ var require_picocolors = __commonJS((exports, module2) => {
|
|
|
82167
82476
|
return ~index6 ? open + replaceClose(string2, close, replace, index6) + close : open + string2 + close;
|
|
82168
82477
|
};
|
|
82169
82478
|
var replaceClose = (string2, close, replace, index6) => {
|
|
82170
|
-
let result = "",
|
|
82479
|
+
let result = "", cursor3 = 0;
|
|
82171
82480
|
do {
|
|
82172
|
-
result += string2.substring(
|
|
82173
|
-
|
|
82174
|
-
index6 = string2.indexOf(close,
|
|
82481
|
+
result += string2.substring(cursor3, index6) + replace;
|
|
82482
|
+
cursor3 = index6 + close.length;
|
|
82483
|
+
index6 = string2.indexOf(close, cursor3);
|
|
82175
82484
|
} while (~index6);
|
|
82176
|
-
return result + string2.substring(
|
|
82485
|
+
return result + string2.substring(cursor3);
|
|
82177
82486
|
};
|
|
82178
82487
|
var createColors = (enabled = isColorSupported) => {
|
|
82179
82488
|
let f3 = enabled ? formatter : () => String;
|
|
@@ -82719,7 +83028,8 @@ var init_schemas3 = __esm(() => {
|
|
|
82719
83028
|
});
|
|
82720
83029
|
SetSecretsRequestSchema = exports_external.record(exports_external.string().min(1), exports_external.string());
|
|
82721
83030
|
SeedRequestSchema = exports_external.object({
|
|
82722
|
-
code: exports_external.string().min(1, "Seed code is required")
|
|
83031
|
+
code: exports_external.string().min(1, "Seed code is required"),
|
|
83032
|
+
secrets: exports_external.record(exports_external.string(), exports_external.string()).optional()
|
|
82723
83033
|
});
|
|
82724
83034
|
SchemaInfoSchema = exports_external.object({
|
|
82725
83035
|
sql: exports_external.string(),
|
|
@@ -82975,9 +83285,31 @@ var init_schemas11 = __esm(() => {
|
|
|
82975
83285
|
});
|
|
82976
83286
|
|
|
82977
83287
|
// ../data/src/domains/timeback/schemas.ts
|
|
82978
|
-
|
|
83288
|
+
function isTimebackGrade3(value) {
|
|
83289
|
+
return Number.isInteger(value) && TIMEBACK_GRADES.includes(value);
|
|
83290
|
+
}
|
|
83291
|
+
function isTimebackSubject3(value) {
|
|
83292
|
+
return TIMEBACK_SUBJECTS3.includes(value);
|
|
83293
|
+
}
|
|
83294
|
+
var TIMEBACK_GRADES, TIMEBACK_SUBJECTS3, TimebackGradeSchema, TimebackSubjectSchema, UpdateTimebackXpRequestSchema, EndActivityRequestSchema, PopulateStudentRequestSchema, DerivedPlatformCourseConfigSchema, TimebackBaseConfigSchema, PlatformTimebackSetupRequestSchema;
|
|
82979
83295
|
var init_schemas12 = __esm(() => {
|
|
82980
83296
|
init_esm();
|
|
83297
|
+
TIMEBACK_GRADES = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];
|
|
83298
|
+
TIMEBACK_SUBJECTS3 = [
|
|
83299
|
+
"Reading",
|
|
83300
|
+
"Language",
|
|
83301
|
+
"Vocabulary",
|
|
83302
|
+
"Social Studies",
|
|
83303
|
+
"Writing",
|
|
83304
|
+
"Science",
|
|
83305
|
+
"FastMath",
|
|
83306
|
+
"Math",
|
|
83307
|
+
"None"
|
|
83308
|
+
];
|
|
83309
|
+
TimebackGradeSchema = exports_external.number().int().refine((val) => TIMEBACK_GRADES.includes(val), {
|
|
83310
|
+
message: `Grade must be one of: ${TIMEBACK_GRADES.join(", ")}`
|
|
83311
|
+
});
|
|
83312
|
+
TimebackSubjectSchema = exports_external.enum(TIMEBACK_SUBJECTS3);
|
|
82981
83313
|
UpdateTimebackXpRequestSchema = exports_external.object({
|
|
82982
83314
|
xp: exports_external.number().min(0, "XP must be a non-negative number"),
|
|
82983
83315
|
userTimestamp: exports_external.string().datetime().optional()
|
|
@@ -93884,8 +94216,13 @@ var init_seed_controller = __esm(() => {
|
|
|
93884
94216
|
}
|
|
93885
94217
|
throw ApiError.badRequest("Invalid JSON body");
|
|
93886
94218
|
}
|
|
93887
|
-
logger55.debug("Seeding database", {
|
|
93888
|
-
|
|
94219
|
+
logger55.debug("Seeding database", {
|
|
94220
|
+
userId: ctx.user.id,
|
|
94221
|
+
slug: slug2,
|
|
94222
|
+
codeLength: body2.code.length,
|
|
94223
|
+
secretCount: body2.secrets ? Object.keys(body2.secrets).length : 0
|
|
94224
|
+
});
|
|
94225
|
+
return ctx.services.seed.seed(slug2, body2.code, ctx.user, body2.secrets);
|
|
93889
94226
|
});
|
|
93890
94227
|
});
|
|
93891
94228
|
|
|
@@ -94178,7 +94515,7 @@ var init_sprite_controller = __esm(() => {
|
|
|
94178
94515
|
});
|
|
94179
94516
|
|
|
94180
94517
|
// ../api-core/src/controllers/timeback.controller.ts
|
|
94181
|
-
var logger60, getTodayXp, getTotalXp, updateTodayXp, getXpHistory, populateStudent, getUser, getUserById, setupIntegration, getIntegrations, verifyIntegration, getConfig2, deleteIntegrations, endActivity, timeback2;
|
|
94518
|
+
var logger60, getTodayXp, getTotalXp, updateTodayXp, getXpHistory, populateStudent, getUser, getUserById, setupIntegration, getIntegrations, verifyIntegration, getConfig2, deleteIntegrations, endActivity, getStudentXp, timeback2;
|
|
94182
94519
|
var init_timeback_controller = __esm(() => {
|
|
94183
94520
|
init_esm();
|
|
94184
94521
|
init_schemas_index();
|
|
@@ -94321,6 +94658,46 @@ var init_timeback_controller = __esm(() => {
|
|
|
94321
94658
|
logger60.debug("Ending activity", { userId: ctx.user.id, gameId });
|
|
94322
94659
|
return ctx.services.timeback.endActivity(gameId, studentId, activityData, scoreData, timingData, xpEarned, masteredUnits, ctx.user);
|
|
94323
94660
|
});
|
|
94661
|
+
getStudentXp = requireDeveloper(async (ctx) => {
|
|
94662
|
+
const timebackId = ctx.params.timebackId;
|
|
94663
|
+
if (!timebackId) {
|
|
94664
|
+
throw ApiError.badRequest("Missing timebackId parameter");
|
|
94665
|
+
}
|
|
94666
|
+
const gameId = ctx.url.searchParams.get("gameId") || undefined;
|
|
94667
|
+
const gradeParam = ctx.url.searchParams.get("grade");
|
|
94668
|
+
const subjectParam = ctx.url.searchParams.get("subject");
|
|
94669
|
+
if (gradeParam !== null !== (subjectParam !== null)) {
|
|
94670
|
+
throw ApiError.badRequest("Both grade and subject must be provided together");
|
|
94671
|
+
}
|
|
94672
|
+
let grade;
|
|
94673
|
+
let subject;
|
|
94674
|
+
if (gradeParam !== null && subjectParam !== null) {
|
|
94675
|
+
const parsedGrade = parseInt(gradeParam, 10);
|
|
94676
|
+
if (!isTimebackGrade3(parsedGrade)) {
|
|
94677
|
+
throw ApiError.badRequest(`Invalid grade: ${gradeParam}. Valid grades: ${TIMEBACK_GRADES.join(", ")}`);
|
|
94678
|
+
}
|
|
94679
|
+
if (!isTimebackSubject3(subjectParam)) {
|
|
94680
|
+
throw ApiError.badRequest(`Invalid subject: ${subjectParam}. Valid subjects: ${TIMEBACK_SUBJECTS3.join(", ")}`);
|
|
94681
|
+
}
|
|
94682
|
+
grade = parsedGrade;
|
|
94683
|
+
subject = subjectParam;
|
|
94684
|
+
}
|
|
94685
|
+
const includeParam = ctx.url.searchParams.get("include");
|
|
94686
|
+
const includeOptions = includeParam ? includeParam.split(",").map((opt) => opt.trim().toLowerCase()) : [];
|
|
94687
|
+
const include = {
|
|
94688
|
+
perCourse: includeOptions.includes("percourse"),
|
|
94689
|
+
today: includeOptions.includes("today")
|
|
94690
|
+
};
|
|
94691
|
+
logger60.debug("Getting student XP", {
|
|
94692
|
+
requesterId: ctx.user.id,
|
|
94693
|
+
timebackId,
|
|
94694
|
+
gameId,
|
|
94695
|
+
grade,
|
|
94696
|
+
subject,
|
|
94697
|
+
include
|
|
94698
|
+
});
|
|
94699
|
+
return ctx.services.timeback.getStudentXp(timebackId, { gameId, grade, subject, include });
|
|
94700
|
+
});
|
|
94324
94701
|
timeback2 = {
|
|
94325
94702
|
getTodayXp,
|
|
94326
94703
|
getTotalXp,
|
|
@@ -94334,7 +94711,8 @@ var init_timeback_controller = __esm(() => {
|
|
|
94334
94711
|
verifyIntegration,
|
|
94335
94712
|
getConfig: getConfig2,
|
|
94336
94713
|
deleteIntegrations,
|
|
94337
|
-
endActivity
|
|
94714
|
+
endActivity,
|
|
94715
|
+
getStudentXp
|
|
94338
94716
|
};
|
|
94339
94717
|
});
|
|
94340
94718
|
|
|
@@ -95486,6 +95864,56 @@ var init_timeback8 = __esm(() => {
|
|
|
95486
95864
|
}
|
|
95487
95865
|
return handle2(timeback2.getUserById)(c2);
|
|
95488
95866
|
});
|
|
95867
|
+
timebackRouter.get("/student-xp/:timebackId", async (c2) => {
|
|
95868
|
+
const user = c2.get("user");
|
|
95869
|
+
if (!user) {
|
|
95870
|
+
const error2 = ApiError.unauthorized("Must be logged in to get student XP");
|
|
95871
|
+
return c2.json(createErrorResponse(error2), error2.status);
|
|
95872
|
+
}
|
|
95873
|
+
if (shouldMockTimeback()) {
|
|
95874
|
+
const url = new URL(c2.req.url);
|
|
95875
|
+
const gradeParam = url.searchParams.get("grade");
|
|
95876
|
+
const subjectParam = url.searchParams.get("subject");
|
|
95877
|
+
const includeParam = url.searchParams.get("include") || "";
|
|
95878
|
+
const includeOptions = includeParam.split(",").map((opt) => opt.trim().toLowerCase());
|
|
95879
|
+
const includePerCourse = includeOptions.includes("percourse");
|
|
95880
|
+
const includeToday = includeOptions.includes("today");
|
|
95881
|
+
const db2 = c2.get("db");
|
|
95882
|
+
let enrollments = await getMockEnrollments(db2);
|
|
95883
|
+
if (gradeParam !== null && subjectParam !== null) {
|
|
95884
|
+
const grade = parseInt(gradeParam, 10);
|
|
95885
|
+
enrollments = enrollments.filter((e) => e.grade === grade && e.subject === subjectParam);
|
|
95886
|
+
}
|
|
95887
|
+
const hashCode = (str) => {
|
|
95888
|
+
let hash = 0;
|
|
95889
|
+
for (let i3 = 0;i3 < str.length; i3++) {
|
|
95890
|
+
hash = (hash << 5) - hash + str.charCodeAt(i3);
|
|
95891
|
+
hash |= 0;
|
|
95892
|
+
}
|
|
95893
|
+
return Math.abs(hash);
|
|
95894
|
+
};
|
|
95895
|
+
const mockCourses = enrollments.map((e) => {
|
|
95896
|
+
const seed3 = hashCode(`${e.grade}-${e.subject}`);
|
|
95897
|
+
const totalXp2 = 100 + seed3 % 900;
|
|
95898
|
+
const todayXp2 = seed3 % 50;
|
|
95899
|
+
return {
|
|
95900
|
+
grade: e.grade,
|
|
95901
|
+
subject: e.subject,
|
|
95902
|
+
title: `${e.subject} Grade ${e.grade}`,
|
|
95903
|
+
totalXp: totalXp2,
|
|
95904
|
+
...includeToday && { todayXp: todayXp2 }
|
|
95905
|
+
};
|
|
95906
|
+
});
|
|
95907
|
+
const totalXp = mockCourses.reduce((sum3, c3) => sum3 + c3.totalXp, 0);
|
|
95908
|
+
const todayXp = includeToday ? mockCourses.reduce((sum3, c3) => sum3 + (c3.todayXp ?? 0), 0) : undefined;
|
|
95909
|
+
return c2.json({
|
|
95910
|
+
totalXp,
|
|
95911
|
+
...includeToday && { todayXp },
|
|
95912
|
+
...includePerCourse && { courses: mockCourses }
|
|
95913
|
+
});
|
|
95914
|
+
}
|
|
95915
|
+
return handle2(timeback2.getStudentXp)(c2);
|
|
95916
|
+
});
|
|
95489
95917
|
});
|
|
95490
95918
|
|
|
95491
95919
|
// src/routes/integrations/lti.ts
|