@drfed/drfed 0.2.0-dev.717 → 0.2.0-dev.718

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.
@@ -1,4 +1,4 @@
1
- import { t as version } from "../package-CkHM-SS9.mjs";
1
+ import { t as version } from "../package-Bv6wWZON.mjs";
2
2
  import { OperationRegistry } from "../operations.mjs";
3
3
  import { ResourceOwner } from "../resources.mjs";
4
4
  import { openDatabaseRuntime } from "../database-runtime.mjs";
@@ -17,6 +17,8 @@ declare function createMigrationProgram(options?: Parameters<typeof createConfig
17
17
  readonly postgresUrl: Sourced<string | undefined> | undefined;
18
18
  readonly migrationLockTimeout: Sourced<number | undefined> | undefined;
19
19
  readonly check: boolean;
20
+ readonly expandRevisions: boolean;
21
+ readonly retryFailed: boolean;
20
22
  readonly printConfig: boolean;
21
23
  }, {
22
24
  readonly configPath: [import("@optique/core/valueparser").ValueParserResult<string> | undefined] | undefined;
@@ -24,6 +26,8 @@ declare function createMigrationProgram(options?: Parameters<typeof createConfig
24
26
  readonly postgresUrl: import("@optique/core/valueparser").ValueParserResult<URL> | undefined;
25
27
  readonly migrationLockTimeout: import("@optique/core/valueparser").ValueParserResult<number> | undefined;
26
28
  readonly check: [import("@optique/core/valueparser").ValueParserResult<true> | undefined] | undefined;
29
+ readonly expandRevisions: [import("@optique/core/valueparser").ValueParserResult<true> | undefined] | undefined;
30
+ readonly retryFailed: [import("@optique/core/valueparser").ValueParserResult<true> | undefined] | undefined;
27
31
  readonly printConfig: [import("@optique/core/valueparser").ValueParserResult<true> | undefined] | undefined;
28
32
  }>;
29
33
  };
@@ -177,6 +181,8 @@ declare function resolveMigrationOptions(raw: RawMigrationOptions, cwd?: string)
177
181
  lockTimeoutMs: number;
178
182
  };
179
183
  check: boolean;
184
+ expandRevisions: boolean;
185
+ retryFailed: boolean;
180
186
  printConfig: boolean;
181
187
  ignored: {
182
188
  field: string;
@@ -1 +1 @@
1
- {"version":3,"file":"migrate-program.d.mts","names":["_$___configuration_ts0.Sourced","_$___configuration_ts0.ConfigurationFile","_$___configuration_ts0.ConfigurationSource"],"sources":["../../src/commands/migrate-program.ts"],"mappings":";;;;;;;iBAqCgB,uBACd,UAAS,kBAAkB;;;MAqErB;MACA,6CAAW;;;2BAtERA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+EN,sBAAsB,WACzB,kBAAkB;;;;;iBAOJ,wBACd,KAAK,qBACL;EAcE;;;;;;;;;;;EACA;EACA;EACA;;;;EACA;;;;;;;;;;;iBAYY,+BACd,SAAS,kBAAkB;EAkBhB;;;;cAlBFE"}
1
+ {"version":3,"file":"migrate-program.d.mts","names":["_$___configuration_ts0.Sourced","_$___configuration_ts0.ConfigurationFile","_$___configuration_ts0.ConfigurationSource"],"sources":["../../src/commands/migrate-program.ts"],"mappings":";;;;;;;iBAqCgB,uBACd,UAAS,kBAAkB;;;MAiFrB;MACA,6CAAW;;;2BAlFRA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2FN,sBAAsB,WACzB,kBAAkB;;;;;iBAOJ,wBACd,KAAK,qBACL;EAoBE;;;;;;;;;;;EACA;EACA;EACA;EACA;EACA;;;;EACA;;;;;;;;;;;iBAYY,+BACd,SAAS,kBAAkB;EAkBhB;;;;cAlBFE"}
@@ -32,6 +32,8 @@ function createMigrationProgram(options = {}) {
32
32
  postgresUrl: bind(map(option(...valueOptionNames.postgresUrl, url({ allowedProtocols: ["postgres:", "postgresql:"] }), { description: message`PostgreSQL connection URL.` }), (value) => value.href), configurationSettings.postgresUrl, string(), String),
33
33
  migrationLockTimeout: bind(option(...valueOptionNames.migrationLockTimeout, lockTimeout, { description: message`Maximum connection and migration lock wait in milliseconds.` }), configurationSettings.migrationLockTimeout, lockTimeout, String, 3e4),
34
34
  check: withDefault(flag("--check", { description: message`Inspect history without applying SQL or upgrading metadata. Exit 0 when ready, or 1 when preparation is needed or an error occurs.` }), false),
35
+ expandRevisions: withDefault(flag("--expand-revisions", { description: message`After applying migrations, record the JSON-LD expansion of every revision stored without one, loading remote contexts. Safe to run again.` }), false),
36
+ retryFailed: withDefault(flag("--retry-failed", { description: message`With --expand-revisions, also expand again the revisions whose expansion failed, such as when a remote context could not be loaded.` }), false),
35
37
  printConfig: withDefault(flag("--print-config", { description: message`Print effective settings and provenance with credentials redacted, then exit without opening runtime resources.` }), false)
36
38
  });
37
39
  return {
@@ -57,12 +59,16 @@ function resolveMigrationOptions(raw, cwd = process.cwd()) {
57
59
  }, cwd);
58
60
  const lockTimeoutMs = raw.migrationLockTimeout?.value;
59
61
  if (lockTimeoutMs === void 0) throw new Error("Missing migration lock timeout.");
62
+ if (raw.check && raw.expandRevisions) throw new Error("--check and --expand-revisions cannot be used together.");
63
+ if (raw.retryFailed && !raw.expandRevisions) throw new Error("--retry-failed requires --expand-revisions.");
60
64
  return {
61
65
  database: {
62
66
  ...selected.database,
63
67
  lockTimeoutMs
64
68
  },
65
69
  check: raw.check,
70
+ expandRevisions: raw.expandRevisions,
71
+ retryFailed: raw.retryFailed,
66
72
  printConfig: raw.printConfig,
67
73
  ignored: selected.ignored,
68
74
  provenance: configurationProvenance({
@@ -92,7 +98,7 @@ function describeMigrationConfiguration(options) {
92
98
  const selected = ["dataPath", "postgresUrl"].map((key) => options.provenance[key]).filter((value) => value !== void 0).sort((left, right) => rank[right.source] - rank[left.source])[0];
93
99
  return {
94
100
  command: "migrate",
95
- mode: options.check ? "check" : "apply",
101
+ mode: options.check ? "check" : options.expandRevisions ? options.retryFailed ? "apply-and-retry" : "apply-and-expand" : "apply",
96
102
  settings: Object.fromEntries(Object.entries(values).filter(([, value]) => value !== void 0).map(([key, value]) => [key === "databaseDriver" ? "database.driver" : configurationSettings[key].toml, {
97
103
  value,
98
104
  ...(key === "databaseDriver" ? selected : options.provenance[key]) ?? { source: "default" }
@@ -1 +1 @@
1
- {"version":3,"file":"migrate-program.mjs","names":["settings"],"sources":["../../src/commands/migrate-program.ts"],"sourcesContent":["// DrFed: A web-based platform for developing and debugging ActivityPub apps\n// Copyright (C) 2026 DrFed team\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <https://www.gnu.org/licenses/>.\n\nimport { object } from \"@optique/core/constructs\";\nimport { message } from \"@optique/core/message\";\nimport { map, optional, withDefault } from \"@optique/core/modifiers\";\nimport type { InferValue } from \"@optique/core/parser\";\nimport { flag, option } from \"@optique/core/primitives\";\nimport { integer, string, url } from \"@optique/core/valueparser\";\nimport { path } from \"@optique/run/valueparser\";\n\nimport {\n configurationProjection,\n configurationProvenance,\n createConfigurationBindings,\n configurationSettings as settings,\n} from \"../configuration.ts\";\nimport { resolveDatabaseSettings } from \"../database-settings.ts\";\nimport { valueOptionNames } from \"../parser.ts\";\n\n/**\n * Construct an independent database-only command using shared source bindings.\n * @returns Pure program metadata, contexts and the explicit TOML loader.\n */\nexport function createMigrationProgram(\n options: Parameters<typeof createConfigurationBindings>[0] = {},\n) {\n const bindings = createConfigurationBindings(options);\n const { bind } = bindings;\n const lockTimeout = integer({\n min: 1,\n max: 2_147_483_647,\n metavar: \"MILLISECONDS\",\n });\n const parser = object({\n configPath: optional(\n bindings.bindConfigPath(\n option(\"--config\", path({ metavar: \"FILE\", type: \"file\" }), {\n description: message`Read the shared DrFed TOML configuration file.`,\n }),\n ),\n ),\n dataPath: bind(\n option(\n ...valueOptionNames.dataPath,\n path({ metavar: \"DIRECTORY\", type: \"directory\" }),\n {\n description: message`Persistent PGlite directory; defaults to the OS data location.`,\n },\n ),\n settings.dataPath,\n string(),\n String,\n ),\n postgresUrl: bind(\n map(\n option(\n ...valueOptionNames.postgresUrl,\n url({ allowedProtocols: [\"postgres:\", \"postgresql:\"] }),\n {\n description: message`PostgreSQL connection URL.`,\n },\n ),\n (value) => value.href,\n ),\n settings.postgresUrl,\n string(),\n String,\n ),\n migrationLockTimeout: bind(\n option(...valueOptionNames.migrationLockTimeout, lockTimeout, {\n description: message`Maximum connection and migration lock wait in milliseconds.`,\n }),\n settings.migrationLockTimeout,\n lockTimeout,\n String,\n 30_000,\n ),\n check: withDefault(\n flag(\"--check\", {\n description: message`Inspect history without applying SQL or upgrading metadata. Exit 0 when ready, or 1 when preparation is needed or an error occurs.`,\n }),\n false,\n ),\n printConfig: withDefault(\n flag(\"--print-config\", {\n description: message`Print effective settings and provenance with credentials redacted, then exit without opening runtime resources.`,\n }),\n false,\n ),\n });\n return {\n program: {\n metadata: {\n name: \"drfed-migrate\",\n description: message`Prepare the DrFed database or inspect migration history.`,\n },\n parser,\n },\n contexts: bindings.contexts,\n load: bindings.load,\n };\n}\n\ntype RawMigrationOptions = InferValue<\n ReturnType<typeof createMigrationProgram>[\"program\"][\"parser\"]\n>;\n\n/**\n * Select the winning database and retain source-only diagnostic metadata.\n * @returns Validated command settings without acquiring runtime resources.\n */\nexport function resolveMigrationOptions(\n raw: RawMigrationOptions,\n cwd = process.cwd(),\n) {\n const selected = resolveDatabaseSettings(\n {\n dataPath: raw.dataPath,\n postgresUrl: raw.postgresUrl,\n },\n cwd,\n );\n const lockTimeoutMs = raw.migrationLockTimeout?.value;\n if (lockTimeoutMs === undefined) {\n throw new Error(\"Missing migration lock timeout.\");\n }\n return {\n database: { ...selected.database, lockTimeoutMs },\n check: raw.check,\n printConfig: raw.printConfig,\n ignored: selected.ignored,\n provenance: configurationProvenance({\n dataPath: raw.dataPath,\n postgresUrl: raw.postgresUrl,\n migrationLockTimeout: raw.migrationLockTimeout,\n }),\n };\n}\n\n/**\n * Describe database-only settings and their sources without opening resources.\n * @returns Redacted settings and ignored configuration areas for diagnostics.\n */\nexport function describeMigrationConfiguration(\n options: ReturnType<typeof resolveMigrationOptions>,\n) {\n const values = {\n databaseDriver: options.database.driver,\n dataPath:\n options.database.driver === \"pglite\"\n ? options.database.dataPath\n : undefined,\n postgresUrl:\n options.database.driver === \"postgres\" ? \"<redacted>\" : undefined,\n migrationLockTimeout: options.database.lockTimeoutMs,\n };\n const rank = { default: 0, config: 1, env: 2, cli: 3 };\n const selected = [\"dataPath\", \"postgresUrl\"]\n .map((key) => options.provenance[key])\n .filter((value) => value !== undefined)\n .sort((left, right) => rank[right.source] - rank[left.source])[0];\n return {\n command: \"migrate\" as const,\n mode: options.check ? \"check\" : \"apply\",\n settings: Object.fromEntries(\n Object.entries(values)\n .filter(([, value]) => value !== undefined)\n .map(([key, value]) => [\n key === \"databaseDriver\"\n ? \"database.driver\"\n : settings[key as keyof typeof settings].toml,\n {\n value,\n ...((key === \"databaseDriver\"\n ? selected\n : options.provenance[key]) ?? { source: \"default\" as const }),\n },\n ]),\n ),\n ignored: [\n ...options.ignored,\n { field: \"database.migrate\", reason: \"explicit apply/check mode\" },\n ...configurationProjection(\"migrate\").unusedAreas.map((area) => ({\n area,\n reason: \"unused by this command\",\n })),\n ],\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AAqCA,SAAgB,uBACd,UAA6D,CAAC,GAC9D;CACA,MAAM,WAAW,4BAA4B,OAAO;CACpD,MAAM,EAAE,SAAS;CACjB,MAAM,cAAc,QAAQ;EAC1B,KAAK;EACL,KAAK;EACL,SAAS;CACX,CAAC;CACD,MAAM,SAAS,OAAO;EACpB,YAAY,SACV,SAAS,eACP,O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I;EAC5B,CAAC;CACH;AACF;;;;;AAMA,SAAgB,+BACd,SACA;CACA,MAAM,SAAS;EACb,gBAAgB,QAAQ,SAAS;EACjC,UACE,QAAQ,SAAS,WAAW,WACxB,QAAQ,SAAS,WACjB,KAAA;EACN,aACE,QAAQ,SAAS,WAAW,aAAa,eAAe,KAAA;EAC1D,sBAAsB,QAAQ,SAAS;CACzC;CACA,MAAM,OAAO;EAAE,SAAS;EAAG,QAAQ;EAAG,KAAK;EAAG,KAAK;CAAE;CACrD,MAAM,WAAW,CAAC,YAAY,aAAa,CAAC,CACzC,KAAK,QAAQ,QAAQ,WAAW,IAAI,CAAC,CACrC,QAAQ,UAAU,UAAU,KAAA,CAAS,CAAC,CACtC,MAAM,MAAM,UAAU,KAAK,MAAM,UAAU,KAAK,KAAK,OAAO,CAAC,CAAC;CACjE,OAAO;EACL,SAAS;EACT,MAAM,QAAQ,QAAQ,UAAU;EAChC,UAAU,OAAO,YACf,OAAO,QAAQ,MAAM,CAAC,CACnB,QAAQ,GAAG,WAAW,UAAU,KAAA,CAAS,CAAC,CAC1C,KAAK,CAAC,KAAK,WAAW,CACrB,QAAQ,mBACJ,oBACAA,sBAAS,IAA6B,CAAC,MAC3C;GACE;GACA,IAAK,QAAQ,mBACT,WACA,QAAQ,WAAW,SAAS,EAAE,QAAQ,UAAmB;EAC/D,CACF,CAAC,CACL;EACA,SAAS;GACP,GAAG,QAAQ;GACX;IAAE,OAAO;IAAoB,QAAQ;GAA4B;GACjE,GAAG,wBAAwB,SAAS,CAAC,CAAC,YAAY,KAAK,UAAU;IAC/D;IACA,QAAQ;GACV,EAAE;EACJ;CACF;AACF"}
1
+ {"version":3,"file":"migrate-program.mjs","names":["settings"],"sources":["../../src/commands/migrate-program.ts"],"sourcesContent":["// DrFed: A web-based platform for developing and debugging ActivityPub apps\n// Copyright (C) 2026 DrFed team\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <https://www.gnu.org/licenses/>.\n\nimport { object } from \"@optique/core/constructs\";\nimport { message } from \"@optique/core/message\";\nimport { map, optional, withDefault } from \"@optique/core/modifiers\";\nimport type { InferValue } from \"@optique/core/parser\";\nimport { flag, option } from \"@optique/core/primitives\";\nimport { integer, string, url } from \"@optique/core/valueparser\";\nimport { path } from \"@optique/run/valueparser\";\n\nimport {\n configurationProjection,\n configurationProvenance,\n createConfigurationBindings,\n configurationSettings as settings,\n} from \"../configuration.ts\";\nimport { resolveDatabaseSettings } from \"../database-settings.ts\";\nimport { valueOptionNames } from \"../parser.ts\";\n\n/**\n * Construct an independent database-only command using shared source bindings.\n * @returns Pure program metadata, contexts and the explicit TOML loader.\n */\nexport function createMigrationProgram(\n options: Parameters<typeof createConfigurationBindings>[0] = {},\n) {\n const bindings = createConfigurationBindings(options);\n const { bind } = bindings;\n const lockTimeout = integer({\n min: 1,\n max: 2_147_483_647,\n metavar: \"MILLISECONDS\",\n });\n const parser = object({\n configPath: optional(\n bindings.bindConfigPath(\n option(\"--config\", path({ metavar: \"FILE\", type: \"file\" }), {\n description: message`Read the shared DrFed TOML configuration file.`,\n }),\n ),\n ),\n dataPath: bind(\n option(\n ...valueOptionNames.dataPath,\n path({ metavar: \"DIRECTORY\", type: \"directory\" }),\n {\n description: message`Persistent PGlite directory; defaults to the OS data location.`,\n },\n ),\n settings.dataPath,\n string(),\n String,\n ),\n postgresUrl: bind(\n map(\n option(\n ...valueOptionNames.postgresUrl,\n url({ allowedProtocols: [\"postgres:\", \"postgresql:\"] }),\n {\n description: message`PostgreSQL connection URL.`,\n },\n ),\n (value) => value.href,\n ),\n settings.postgresUrl,\n string(),\n String,\n ),\n migrationLockTimeout: bind(\n option(...valueOptionNames.migrationLockTimeout, lockTimeout, {\n description: message`Maximum connection and migration lock wait in milliseconds.`,\n }),\n settings.migrationLockTimeout,\n lockTimeout,\n String,\n 30_000,\n ),\n check: withDefault(\n flag(\"--check\", {\n description: message`Inspect history without applying SQL or upgrading metadata. Exit 0 when ready, or 1 when preparation is needed or an error occurs.`,\n }),\n false,\n ),\n expandRevisions: withDefault(\n flag(\"--expand-revisions\", {\n description: message`After applying migrations, record the JSON-LD expansion of every revision stored without one, loading remote contexts. Safe to run again.`,\n }),\n false,\n ),\n retryFailed: withDefault(\n flag(\"--retry-failed\", {\n description: message`With --expand-revisions, also expand again the revisions whose expansion failed, such as when a remote context could not be loaded.`,\n }),\n false,\n ),\n printConfig: withDefault(\n flag(\"--print-config\", {\n description: message`Print effective settings and provenance with credentials redacted, then exit without opening runtime resources.`,\n }),\n false,\n ),\n });\n return {\n program: {\n metadata: {\n name: \"drfed-migrate\",\n description: message`Prepare the DrFed database or inspect migration history.`,\n },\n parser,\n },\n contexts: bindings.contexts,\n load: bindings.load,\n };\n}\n\ntype RawMigrationOptions = InferValue<\n ReturnType<typeof createMigrationProgram>[\"program\"][\"parser\"]\n>;\n\n/**\n * Select the winning database and retain source-only diagnostic metadata.\n * @returns Validated command settings without acquiring runtime resources.\n */\nexport function resolveMigrationOptions(\n raw: RawMigrationOptions,\n cwd = process.cwd(),\n) {\n const selected = resolveDatabaseSettings(\n {\n dataPath: raw.dataPath,\n postgresUrl: raw.postgresUrl,\n },\n cwd,\n );\n const lockTimeoutMs = raw.migrationLockTimeout?.value;\n if (lockTimeoutMs === undefined) {\n throw new Error(\"Missing migration lock timeout.\");\n }\n if (raw.check && raw.expandRevisions) {\n throw new Error(\"--check and --expand-revisions cannot be used together.\");\n }\n if (raw.retryFailed && !raw.expandRevisions) {\n throw new Error(\"--retry-failed requires --expand-revisions.\");\n }\n return {\n database: { ...selected.database, lockTimeoutMs },\n check: raw.check,\n expandRevisions: raw.expandRevisions,\n retryFailed: raw.retryFailed,\n printConfig: raw.printConfig,\n ignored: selected.ignored,\n provenance: configurationProvenance({\n dataPath: raw.dataPath,\n postgresUrl: raw.postgresUrl,\n migrationLockTimeout: raw.migrationLockTimeout,\n }),\n };\n}\n\n/**\n * Describe database-only settings and their sources without opening resources.\n * @returns Redacted settings and ignored configuration areas for diagnostics.\n */\nexport function describeMigrationConfiguration(\n options: ReturnType<typeof resolveMigrationOptions>,\n) {\n const values = {\n databaseDriver: options.database.driver,\n dataPath:\n options.database.driver === \"pglite\"\n ? options.database.dataPath\n : undefined,\n postgresUrl:\n options.database.driver === \"postgres\" ? \"<redacted>\" : undefined,\n migrationLockTimeout: options.database.lockTimeoutMs,\n };\n const rank = { default: 0, config: 1, env: 2, cli: 3 };\n const selected = [\"dataPath\", \"postgresUrl\"]\n .map((key) => options.provenance[key])\n .filter((value) => value !== undefined)\n .sort((left, right) => rank[right.source] - rank[left.source])[0];\n return {\n command: \"migrate\" as const,\n mode: options.check\n ? \"check\"\n : options.expandRevisions\n ? options.retryFailed\n ? \"apply-and-retry\"\n : \"apply-and-expand\"\n : \"apply\",\n settings: Object.fromEntries(\n Object.entries(values)\n .filter(([, value]) => value !== undefined)\n .map(([key, value]) => [\n key === \"databaseDriver\"\n ? \"database.driver\"\n : settings[key as keyof typeof settings].toml,\n {\n value,\n ...((key === \"databaseDriver\"\n ? selected\n : options.provenance[key]) ?? { source: \"default\" as const }),\n },\n ]),\n ),\n ignored: [\n ...options.ignored,\n { field: \"database.migrate\", reason: \"explicit apply/check mode\" },\n ...configurationProjection(\"migrate\").unusedAreas.map((area) => ({\n area,\n reason: \"unused by this command\",\n })),\n ],\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AAqCA,SAAgB,uBACd,UAA6D,CAAC,GAC9D;CACA,MAAM,WAAW,4BAA4B,OAAO;CACpD,MAAM,EAAE,SAAS;CACjB,MAAM,cAAc,QAAQ;EAC1B,KAAK;EACL,KAAK;EACL,SAAS;CACX,CAAC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EAC/D,CACF,CAAC,CACL;EACA,SAAS;GACP,GAAG,QAAQ;GACX;IAAE,OAAO;IAAoB,QAAQ;GAA4B;GACjE,GAAG,wBAAwB,SAAS,CAAC,CAAC,YAAY,KAAK,UAAU;IAC/D;IACA,QAAQ;GACV,EAAE;EACJ;CACF;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"migrate.d.mts","names":[],"sources":["../../src/commands/migrate.ts"],"mappings":";;iBAiCsB,QAAQ"}
1
+ {"version":3,"file":"migrate.d.mts","names":[],"sources":["../../src/commands/migrate.ts"],"mappings":";;iBAkCsB,QAAQ"}
@@ -1,4 +1,4 @@
1
- import { t as version } from "../package-CkHM-SS9.mjs";
1
+ import { t as version } from "../package-Bv6wWZON.mjs";
2
2
  import { OperationRegistry } from "../operations.mjs";
3
3
  import { ResourceOwner } from "../resources.mjs";
4
4
  import { openDatabaseRuntime } from "../database-runtime.mjs";
@@ -7,6 +7,7 @@ import process from "node:process";
7
7
  import { text } from "@optique/core/message";
8
8
  import { printError, run } from "@optique/run";
9
9
  import { MigrationPreparationError, PgliteStoreError } from "@drfed/models";
10
+ import { backfillExpansions } from "@drfed/federation/expansion-backfill";
10
11
  //#region src/commands/migrate.ts
11
12
  /** Run the installed database preparation command without server resources. */
12
13
  async function main() {
@@ -55,9 +56,15 @@ async function main() {
55
56
  ...options.database,
56
57
  migrate: !options.check
57
58
  }, owner, options.check ? "inspect" : "apply", signal));
59
+ let expansions;
60
+ if (options.expandRevisions && database.state.status === "ready") expansions = await operations.run((signal) => backfillExpansions(database.db, {
61
+ retryFailed: options.retryFailed,
62
+ signal
63
+ }));
58
64
  console.log(JSON.stringify({
59
65
  command: "migrate",
60
- ...database.state
66
+ ...database.state,
67
+ ...expansions === void 0 ? {} : { expansions }
61
68
  }, null, 2));
62
69
  if (database.state.status !== "ready") failed = true;
63
70
  } catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"migrate.mjs","names":["metadata.version"],"sources":["../../src/commands/migrate.ts"],"sourcesContent":["// DrFed: A web-based platform for developing and debugging ActivityPub apps\n// Copyright (C) 2026 DrFed team\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <https://www.gnu.org/licenses/>.\n\nimport process from \"node:process\";\n\nimport { MigrationPreparationError, PgliteStoreError } from \"@drfed/models\";\nimport { text } from \"@optique/core/message\";\nimport { printError, run } from \"@optique/run\";\n\nimport metadata from \"../../package.json\" with { type: \"json\" };\nimport { openDatabaseRuntime } from \"../database-runtime.ts\";\nimport { OperationRegistry } from \"../operations.ts\";\nimport { ResourceOwner } from \"../resources.ts\";\nimport {\n createMigrationProgram,\n describeMigrationConfiguration,\n resolveMigrationOptions,\n} from \"./migrate-program.ts\";\n\n/** Run the installed database preparation command without server resources. */\nexport async function main(): Promise<void> {\n const invocation = createMigrationProgram();\n let options: ReturnType<typeof resolveMigrationOptions>;\n try {\n const raw = await run(invocation.program, {\n contexts: invocation.contexts,\n contextOptions: { load: (parsed) => invocation.load(parsed) },\n help: \"option\",\n completion: \"both\",\n showChoices: true,\n showDefault: true,\n version: { option: true, value: metadata.version },\n });\n options = resolveMigrationOptions(raw);\n } catch (error) {\n printError([\n text(\n error instanceof Error\n ? error.message\n : \"Could not resolve configuration.\",\n ),\n ]);\n process.exitCode = 1;\n return;\n }\n if (options.printConfig) {\n console.log(\n JSON.stringify(describeMigrationConfiguration(options), null, 2),\n );\n return;\n }\n const owner = new ResourceOwner();\n const operations = new OperationRegistry();\n let interrupted = false;\n let failed = false;\n let deadline: ReturnType<typeof setTimeout> | undefined;\n const abort = () => {\n if (interrupted) process.exit(1);\n interrupted = true;\n failed = true;\n operations.abort();\n deadline = setTimeout(() => process.exit(1), 10_000);\n deadline.unref();\n };\n process.on(\"SIGINT\", abort);\n process.on(\"SIGTERM\", abort);\n try {\n const database = await operations.run((signal) =>\n openDatabaseRuntime(\n { ...options.database, migrate: !options.check },\n owner,\n options.check ? \"inspect\" : \"apply\",\n signal,\n ),\n );\n console.log(\n JSON.stringify({ command: \"migrate\", ...database.state }, null, 2),\n );\n if (database.state.status !== \"ready\") failed = true;\n } catch (error) {\n const cleanAbort =\n interrupted &&\n (error === operations.signal.reason ||\n (error instanceof MigrationPreparationError &&\n error.code === \"aborted\" &&\n !error.cleanupFailed));\n if (!cleanAbort) {\n const message =\n error instanceof MigrationPreparationError ||\n error instanceof PgliteStoreError\n ? `${error.code}: ${error.message}`\n : \"Could not prepare or inspect the database.\";\n printError([text(message)]);\n failed = true;\n }\n } finally {\n operations.abort();\n await operations.drain();\n try {\n await owner.close();\n } catch {\n printError([text(\"Could not cleanly close the database.\")]);\n failed = true;\n }\n if (deadline !== undefined) clearTimeout(deadline);\n process.off(\"SIGINT\", abort);\n process.off(\"SIGTERM\", abort);\n }\n process.exitCode = failed ? 1 : 0;\n}\n"],"mappings":";;;;;;;;;;;AAiCA,eAAsB,OAAsB;CAC1C,MAAM,aAAa,uBAAuB;CAC1C,IAAI;CACJ,IAAI;EACF,MAAM,MAAM,MAAM,IAAI,WAAW,SAAS;GACxC,UAAU,WAAW;GACrB,gBAAgB,EAAE,OAAO,WAAW,WAAW,KAAK,MAAM,EAAE;GAC5D,MAAM;GACN,YAAY;GACZ,aAAa;GACb,aAAa;GACb,SAAS;IAAE,QAAQ;IAAM,OAAOA;GAAiB;EACnD,CAAC;EACD,UAAU,wBAAwB,GAAG;CACvC,SAAS,OAAO;EACd,WAAW,CACT,KACE,iBAAiB,QACb,MAAM,UACN,kCACN,CACF,CAAC;EACD,QAAQ,WAAW;EACnB;CACF;CACA,IAAI,QAAQ,aAAa;EACvB,QAAQ,IACN,KAAK,UAAU,+BAA+B,O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AI;AAClC"}
1
+ {"version":3,"file":"migrate.mjs","names":["metadata.version"],"sources":["../../src/commands/migrate.ts"],"sourcesContent":["// DrFed: A web-based platform for developing and debugging ActivityPub apps\n// Copyright (C) 2026 DrFed team\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see <https://www.gnu.org/licenses/>.\n\nimport process from \"node:process\";\n\nimport { backfillExpansions } from \"@drfed/federation/expansion-backfill\";\nimport { MigrationPreparationError, PgliteStoreError } from \"@drfed/models\";\nimport { text } from \"@optique/core/message\";\nimport { printError, run } from \"@optique/run\";\n\nimport metadata from \"../../package.json\" with { type: \"json\" };\nimport { openDatabaseRuntime } from \"../database-runtime.ts\";\nimport { OperationRegistry } from \"../operations.ts\";\nimport { ResourceOwner } from \"../resources.ts\";\nimport {\n createMigrationProgram,\n describeMigrationConfiguration,\n resolveMigrationOptions,\n} from \"./migrate-program.ts\";\n\n/** Run the installed database preparation command without server resources. */\nexport async function main(): Promise<void> {\n const invocation = createMigrationProgram();\n let options: ReturnType<typeof resolveMigrationOptions>;\n try {\n const raw = await run(invocation.program, {\n contexts: invocation.contexts,\n contextOptions: { load: (parsed) => invocation.load(parsed) },\n help: \"option\",\n completion: \"both\",\n showChoices: true,\n showDefault: true,\n version: { option: true, value: metadata.version },\n });\n options = resolveMigrationOptions(raw);\n } catch (error) {\n printError([\n text(\n error instanceof Error\n ? error.message\n : \"Could not resolve configuration.\",\n ),\n ]);\n process.exitCode = 1;\n return;\n }\n if (options.printConfig) {\n console.log(\n JSON.stringify(describeMigrationConfiguration(options), null, 2),\n );\n return;\n }\n const owner = new ResourceOwner();\n const operations = new OperationRegistry();\n let interrupted = false;\n let failed = false;\n let deadline: ReturnType<typeof setTimeout> | undefined;\n const abort = () => {\n if (interrupted) process.exit(1);\n interrupted = true;\n failed = true;\n operations.abort();\n deadline = setTimeout(() => process.exit(1), 10_000);\n deadline.unref();\n };\n process.on(\"SIGINT\", abort);\n process.on(\"SIGTERM\", abort);\n try {\n const database = await operations.run((signal) =>\n openDatabaseRuntime(\n { ...options.database, migrate: !options.check },\n owner,\n options.check ? \"inspect\" : \"apply\",\n signal,\n ),\n );\n let expansions: Awaited<ReturnType<typeof backfillExpansions>> | undefined;\n if (options.expandRevisions && database.state.status === \"ready\") {\n expansions = await operations.run((signal) =>\n backfillExpansions(database.db, {\n retryFailed: options.retryFailed,\n signal,\n }),\n );\n }\n console.log(\n JSON.stringify(\n {\n command: \"migrate\",\n ...database.state,\n ...(expansions === undefined ? {} : { expansions }),\n },\n null,\n 2,\n ),\n );\n if (database.state.status !== \"ready\") failed = true;\n } catch (error) {\n const cleanAbort =\n interrupted &&\n (error === operations.signal.reason ||\n (error instanceof MigrationPreparationError &&\n error.code === \"aborted\" &&\n !error.cleanupFailed));\n if (!cleanAbort) {\n const message =\n error instanceof MigrationPreparationError ||\n error instanceof PgliteStoreError\n ? `${error.code}: ${error.message}`\n : \"Could not prepare or inspect the database.\";\n printError([text(message)]);\n failed = true;\n }\n } finally {\n operations.abort();\n await operations.drain();\n try {\n await owner.close();\n } catch {\n printError([text(\"Could not cleanly close the database.\")]);\n failed = true;\n }\n if (deadline !== undefined) clearTimeout(deadline);\n process.off(\"SIGINT\", abort);\n process.off(\"SIGTERM\", abort);\n }\n process.exitCode = failed ? 1 : 0;\n}\n"],"mappings":";;;;;;;;;;;;AAkCA,eAAsB,OAAsB;CAC1C,MAAM,aAAa,uBAAuB;CAC1C,IAAI;CACJ,IAAI;EACF,MAAM,MAAM,MAAM,IAAI,WAAW,SAAS;GACxC,UAAU,WAAW;GACrB,gBAAgB,EAAE,OAAO,WAAW,WAAW,KAAK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AU,WAAW,OAAO,UAC1B,iBAAiB,6BAChB,MAAM,SAAS,aACf,CAAC,MAAM,iBACI;GACf,MAAM,UACJ,iBAAiB,6BACjB,iBAAiB,mBACb,GAAG,MAAM,KAAK,IAAI,MAAM,YACxB;GACN,WAAW,CAAC,KAAK,OAAO,CAAC,CAAC;GAC1B,SAAS;EACX;CACF,UAAU;EACR,WAAW,MAAM;EACjB,MAAM,WAAW,MAAM;EACvB,IAAI;GACF,MAAM,MAAM,MAAM;EACpB,QAAQ;GACN,WAAW,CAAC,KAAK,uCAAuC,CAAC,CAAC;GAC1D,SAAS;EACX;EACA,IAAI,aAAa,KAAA,GAAW,aAAa,QAAQ;EACjD,QAAQ,IAAI,UAAU,KAAK;EAC3B,QAAQ,IAAI,WAAW,KAAK;CAC9B;CACA,QAAQ,WAAW,SAAS,IAAI;AAClC"}
@@ -1,4 +1,4 @@
1
- import { t as version } from "../package-CkHM-SS9.mjs";
1
+ import { t as version } from "../package-Bv6wWZON.mjs";
2
2
  import { OperationRegistry } from "../operations.mjs";
3
3
  import { ResourceOwner } from "../resources.mjs";
4
4
  import { createWebProgram, describeWebConfiguration, resolveWebOptions } from "./web-program.mjs";
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-CkHM-SS9.mjs";
1
+ import { t as version } from "./package-Bv6wWZON.mjs";
2
2
  import { createConfigurationBindings } from "./configuration.mjs";
3
3
  import { describeServerConfiguration } from "./diagnostics.mjs";
4
4
  import { OperationRegistry } from "./operations.mjs";
@@ -0,0 +1,6 @@
1
+ //#region package.json
2
+ var version = "0.2.0-dev.718";
3
+ //#endregion
4
+ export { version as t };
5
+
6
+ //# sourceMappingURL=package-Bv6wWZON.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-Bv6wWZON.mjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drfed/drfed",
3
- "version": "0.2.0-dev.717",
3
+ "version": "0.2.0-dev.718",
4
4
  "description": "The main entrypoint program for DrFed.",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -232,10 +232,10 @@
232
232
  "typescript": "^7.0.2"
233
233
  },
234
234
  "dependencies": {
235
- "@drfed/federation": "0.2.0-dev.717",
236
- "@drfed/graphql": "0.2.0-dev.717",
237
- "@drfed/models": "0.2.0-dev.717",
238
- "@drfed/web": "0.2.0-dev.717",
235
+ "@drfed/federation": "0.2.0-dev.718",
236
+ "@drfed/graphql": "0.2.0-dev.718",
237
+ "@drfed/models": "0.2.0-dev.718",
238
+ "@drfed/web": "0.2.0-dev.718",
239
239
  "@electric-sql/pglite": "^0.5.3",
240
240
  "@fedify/fedify": "2.4.3",
241
241
  "@fedify/pglite": "2.4.3",
@@ -278,13 +278,13 @@
278
278
  },
279
279
  "drfedBuild": {
280
280
  "enabled": true,
281
- "version": "0.2.0-dev.717",
282
- "fullVersion": "0.2.0-dev.717+8cdaaac8",
281
+ "version": "0.2.0-dev.718",
282
+ "fullVersion": "0.2.0-dev.718+0d7d282d",
283
283
  "baseVersion": "0.2.0",
284
284
  "channel": "dev",
285
- "sha": "8cdaaac8aa197260cb2d68ced23f17109cbb258e",
286
- "runNumber": "717",
287
- "runId": "45350451649",
285
+ "sha": "0d7d282d028c5a181d2cb56bd0de88186b761a1c",
286
+ "runNumber": "718",
287
+ "runId": "45647844163",
288
288
  "ref": "refs/heads/main",
289
289
  "workflow": ".github/workflows/main.yaml"
290
290
  },
@@ -1,6 +0,0 @@
1
- //#region package.json
2
- var version = "0.2.0-dev.717";
3
- //#endregion
4
- export { version as t };
5
-
6
- //# sourceMappingURL=package-CkHM-SS9.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-CkHM-SS9.mjs","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}