@playcademy/sandbox 0.6.1-beta.9 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +5 -16
- package/dist/server.js +5 -16
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1084,7 +1084,7 @@ var package_default;
|
|
|
1084
1084
|
var init_package = __esm(() => {
|
|
1085
1085
|
package_default = {
|
|
1086
1086
|
name: "@playcademy/sandbox",
|
|
1087
|
-
version: "0.
|
|
1087
|
+
version: "0.7.0",
|
|
1088
1088
|
description: "Local development server for Playcademy game development",
|
|
1089
1089
|
type: "module",
|
|
1090
1090
|
exports: {
|
|
@@ -11245,7 +11245,7 @@ var init_pg_core = __esm(() => {
|
|
|
11245
11245
|
});
|
|
11246
11246
|
|
|
11247
11247
|
// ../data/src/domains/user/table.ts
|
|
11248
|
-
var userRoleEnum, developerStatusEnum, users, accounts, sessions, verification
|
|
11248
|
+
var userRoleEnum, developerStatusEnum, users, accounts, sessions, verification;
|
|
11249
11249
|
var init_table3 = __esm(() => {
|
|
11250
11250
|
init_pg_core();
|
|
11251
11251
|
userRoleEnum = pgEnum("user_role", ["admin", "player", "developer", "teacher"]);
|
|
@@ -11338,16 +11338,6 @@ var init_table3 = __esm(() => {
|
|
|
11338
11338
|
withTimezone: true
|
|
11339
11339
|
}).notNull()
|
|
11340
11340
|
});
|
|
11341
|
-
ssoProvider = pgTable("sso_provider", {
|
|
11342
|
-
id: text("id").primaryKey().$defaultFn(() => crypto.randomUUID()),
|
|
11343
|
-
issuer: text("issuer").notNull(),
|
|
11344
|
-
oidcConfig: text("oidc_config"),
|
|
11345
|
-
samlConfig: text("saml_config"),
|
|
11346
|
-
userId: text("user_id").references(() => users.id, { onDelete: "cascade" }),
|
|
11347
|
-
providerId: text("provider_id").notNull().unique(),
|
|
11348
|
-
organizationId: text("organization_id"),
|
|
11349
|
-
domain: text("domain").notNull()
|
|
11350
|
-
});
|
|
11351
11341
|
});
|
|
11352
11342
|
|
|
11353
11343
|
// ../data/src/domains/developer/table.ts
|
|
@@ -11673,7 +11663,6 @@ __export(exports_tables_index, {
|
|
|
11673
11663
|
verification: () => verification,
|
|
11674
11664
|
users: () => users,
|
|
11675
11665
|
userRoleEnum: () => userRoleEnum,
|
|
11676
|
-
ssoProvider: () => ssoProvider,
|
|
11677
11666
|
sessions: () => sessions,
|
|
11678
11667
|
games: () => games,
|
|
11679
11668
|
gameVisibilityEnum: () => gameVisibilityEnum,
|
|
@@ -28513,7 +28502,7 @@ function evaluateBaselineGuardrails(input) {
|
|
|
28513
28502
|
}
|
|
28514
28503
|
|
|
28515
28504
|
// ../api-core/src/utils/migration.util.ts
|
|
28516
|
-
function
|
|
28505
|
+
function planMigrations2(journal, ledger) {
|
|
28517
28506
|
const ledgerByTag = new Map(ledger.map((row) => [row.tag, row]));
|
|
28518
28507
|
const journalTags = new Set(journal.map((entry) => entry.tag));
|
|
28519
28508
|
const pendingTags = [];
|
|
@@ -29098,7 +29087,7 @@ class DeployService {
|
|
|
29098
29087
|
await this.assertNoSchemaDrift(databaseId, state);
|
|
29099
29088
|
await cf.d1.ensureMigrationLedger(databaseId);
|
|
29100
29089
|
const ledger = await cf.d1.readMigrationLedger(databaseId);
|
|
29101
|
-
const plan =
|
|
29090
|
+
const plan = planMigrations2(migrations.map((migration) => ({ tag: migration.tag, checksum: migration.checksum })), ledger.map((row) => ({
|
|
29102
29091
|
tag: row.tag,
|
|
29103
29092
|
checksum: row.checksum,
|
|
29104
29093
|
checksumAlgo: row.checksum_algo
|
|
@@ -29451,7 +29440,7 @@ class DeployService {
|
|
|
29451
29440
|
}
|
|
29452
29441
|
await cf.d1.ensureMigrationLedger(databaseId);
|
|
29453
29442
|
const ledger = await cf.d1.readMigrationLedger(databaseId);
|
|
29454
|
-
const plan =
|
|
29443
|
+
const plan = planMigrations2(slice, ledger.map((row) => ({
|
|
29455
29444
|
tag: row.tag,
|
|
29456
29445
|
checksum: row.checksum,
|
|
29457
29446
|
checksumAlgo: row.checksum_algo
|
package/dist/server.js
CHANGED
|
@@ -1083,7 +1083,7 @@ var package_default;
|
|
|
1083
1083
|
var init_package = __esm(() => {
|
|
1084
1084
|
package_default = {
|
|
1085
1085
|
name: "@playcademy/sandbox",
|
|
1086
|
-
version: "0.
|
|
1086
|
+
version: "0.7.0",
|
|
1087
1087
|
description: "Local development server for Playcademy game development",
|
|
1088
1088
|
type: "module",
|
|
1089
1089
|
exports: {
|
|
@@ -11244,7 +11244,7 @@ var init_pg_core = __esm(() => {
|
|
|
11244
11244
|
});
|
|
11245
11245
|
|
|
11246
11246
|
// ../data/src/domains/user/table.ts
|
|
11247
|
-
var userRoleEnum, developerStatusEnum, users, accounts, sessions, verification
|
|
11247
|
+
var userRoleEnum, developerStatusEnum, users, accounts, sessions, verification;
|
|
11248
11248
|
var init_table3 = __esm(() => {
|
|
11249
11249
|
init_pg_core();
|
|
11250
11250
|
userRoleEnum = pgEnum("user_role", ["admin", "player", "developer", "teacher"]);
|
|
@@ -11337,16 +11337,6 @@ var init_table3 = __esm(() => {
|
|
|
11337
11337
|
withTimezone: true
|
|
11338
11338
|
}).notNull()
|
|
11339
11339
|
});
|
|
11340
|
-
ssoProvider = pgTable("sso_provider", {
|
|
11341
|
-
id: text("id").primaryKey().$defaultFn(() => crypto.randomUUID()),
|
|
11342
|
-
issuer: text("issuer").notNull(),
|
|
11343
|
-
oidcConfig: text("oidc_config"),
|
|
11344
|
-
samlConfig: text("saml_config"),
|
|
11345
|
-
userId: text("user_id").references(() => users.id, { onDelete: "cascade" }),
|
|
11346
|
-
providerId: text("provider_id").notNull().unique(),
|
|
11347
|
-
organizationId: text("organization_id"),
|
|
11348
|
-
domain: text("domain").notNull()
|
|
11349
|
-
});
|
|
11350
11340
|
});
|
|
11351
11341
|
|
|
11352
11342
|
// ../data/src/domains/developer/table.ts
|
|
@@ -11672,7 +11662,6 @@ __export(exports_tables_index, {
|
|
|
11672
11662
|
verification: () => verification,
|
|
11673
11663
|
users: () => users,
|
|
11674
11664
|
userRoleEnum: () => userRoleEnum,
|
|
11675
|
-
ssoProvider: () => ssoProvider,
|
|
11676
11665
|
sessions: () => sessions,
|
|
11677
11666
|
games: () => games,
|
|
11678
11667
|
gameVisibilityEnum: () => gameVisibilityEnum,
|
|
@@ -28512,7 +28501,7 @@ function evaluateBaselineGuardrails(input) {
|
|
|
28512
28501
|
}
|
|
28513
28502
|
|
|
28514
28503
|
// ../api-core/src/utils/migration.util.ts
|
|
28515
|
-
function
|
|
28504
|
+
function planMigrations2(journal, ledger) {
|
|
28516
28505
|
const ledgerByTag = new Map(ledger.map((row) => [row.tag, row]));
|
|
28517
28506
|
const journalTags = new Set(journal.map((entry) => entry.tag));
|
|
28518
28507
|
const pendingTags = [];
|
|
@@ -29097,7 +29086,7 @@ class DeployService {
|
|
|
29097
29086
|
await this.assertNoSchemaDrift(databaseId, state);
|
|
29098
29087
|
await cf.d1.ensureMigrationLedger(databaseId);
|
|
29099
29088
|
const ledger = await cf.d1.readMigrationLedger(databaseId);
|
|
29100
|
-
const plan =
|
|
29089
|
+
const plan = planMigrations2(migrations.map((migration) => ({ tag: migration.tag, checksum: migration.checksum })), ledger.map((row) => ({
|
|
29101
29090
|
tag: row.tag,
|
|
29102
29091
|
checksum: row.checksum,
|
|
29103
29092
|
checksumAlgo: row.checksum_algo
|
|
@@ -29450,7 +29439,7 @@ class DeployService {
|
|
|
29450
29439
|
}
|
|
29451
29440
|
await cf.d1.ensureMigrationLedger(databaseId);
|
|
29452
29441
|
const ledger = await cf.d1.readMigrationLedger(databaseId);
|
|
29453
|
-
const plan =
|
|
29442
|
+
const plan = planMigrations2(slice, ledger.map((row) => ({
|
|
29454
29443
|
tag: row.tag,
|
|
29455
29444
|
checksum: row.checksum,
|
|
29456
29445
|
checksumAlgo: row.checksum_algo
|