@automagik/omni 2.260501.7 → 2.260502.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -114209,7 +114209,7 @@ import { fileURLToPath } from "url";
114209
114209
  // package.json
114210
114210
  var package_default = {
114211
114211
  name: "@automagik/omni",
114212
- version: "2.260501.7",
114212
+ version: "2.260502.1",
114213
114213
  description: "LLM-optimized CLI for Omni",
114214
114214
  type: "module",
114215
114215
  bin: {
@@ -115427,14 +115427,14 @@ function resolveDatabaseUrl(serverConfig) {
115427
115427
  }
115428
115428
  function buildRuntimeEnv(serverConfig, cliConfig) {
115429
115429
  const pgservePort = resolvePgservePort(serverConfig);
115430
- const useCanonical = serverConfig.useCanonicalPgserve === true;
115430
+ const optOutOfCanonical = serverConfig.useCanonicalPgserve === false;
115431
115431
  return {
115432
115432
  API_PORT: String(serverConfig.port),
115433
115433
  DATABASE_URL: resolveDatabaseUrl(serverConfig),
115434
115434
  OMNI_API_KEY: cliConfig.apiKey ?? "",
115435
115435
  MEDIA_STORAGE_PATH: join5(serverConfig.dataDir, "media"),
115436
115436
  OMNI_PACKAGES_DIR: join5(serverConfig.dataDir, "packages"),
115437
- PGSERVE_EMBEDDED: useCanonical ? "false" : "true",
115437
+ PGSERVE_EMBEDDED: optOutOfCanonical ? "true" : "false",
115438
115438
  PGSERVE_DATA: join5(serverConfig.dataDir, "pgserve"),
115439
115439
  PGSERVE_PORT: String(pgservePort),
115440
115440
  NATS_URL: "nats://localhost:4222",
@@ -73,11 +73,21 @@ export declare function resolveDatabaseUrl(serverConfig: ServerConfig): string;
73
73
  *
74
74
  * All values come from `serverConfig` / `cliConfig`. No shell env reads.
75
75
  *
76
- * `PGSERVE_EMBEDDED` is flipped off when `serverConfig.useCanonicalPgserve`
77
- * is true — the omni-api code path in `packages/api/src/pgserve.ts` reads
78
- * this and skips its embedded pgserve startup, connecting instead to
79
- * whatever `DATABASE_URL` points at (typically the canonical pgserve
80
- * registered by `pgserve install` from pgserve@^2.1.0).
76
+ * `PGSERVE_EMBEDDED` semantics (Phase 2 of canonical-pgserve removal):
77
+ * - serverConfig.useCanonicalPgserve === false → 'true' (embeddedexplicit opt-in)
78
+ * - serverConfig.useCanonicalPgserve === true → 'false' (canonical explicit opt-in)
79
+ * - undefined / missing → 'false' (canonical NEW DEFAULT)
80
+ *
81
+ * Phase 1 (omni#595, 2026-05-01) added the deprecation warning to
82
+ * `startEmbeddedPgserve`. Phase 2 (this file) flips the default for
83
+ * undefined values: legacy installs that never set the flag now get
84
+ * canonical instead of embedded. Operators on legacy embedded who
85
+ * haven't migrated must explicitly set `useCanonicalPgserve: false` in
86
+ * `~/.omni/config.json` (or run `omni doctor --fix` to migrate to
87
+ * canonical, the supported path).
88
+ *
89
+ * Phase 3 (future) deletes the embedded code entirely + drops the
90
+ * pgserve runtime dep from `packages/api`.
81
91
  */
82
92
  export declare function buildRuntimeEnv(serverConfig: ServerConfig, cliConfig: Config): RuntimeEnv;
83
93
  //# sourceMappingURL=runtime-env.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-env.d.ts","sourceRoot":"","sources":["../src/runtime-env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS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AAM,CAMrE;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAMrE;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU,CAoBzF"}
@@ -224686,7 +224686,7 @@ var init_sentry_scrub = __esm(() => {
224686
224686
  var require_package8 = __commonJS((exports, module) => {
224687
224687
  module.exports = {
224688
224688
  name: "@omni/api",
224689
- version: "2.260501.7",
224689
+ version: "2.260502.1",
224690
224690
  type: "module",
224691
224691
  exports: {
224692
224692
  ".": {
@@ -239491,7 +239491,7 @@ import { createRequire as createRequire2 } from "module";
239491
239491
  import { homedir as homedir2 } from "os";
239492
239492
  import { dirname as dirname6, isAbsolute as isAbsolute2, join as join15, resolve as resolve2 } from "path";
239493
239493
  function resolvePgserveConfig() {
239494
- const enabled = (process.env.PGSERVE_EMBEDDED ?? "true") === "true";
239494
+ const enabled = process.env.PGSERVE_EMBEDDED === "true";
239495
239495
  const port = Number.parseInt(process.env.PGSERVE_PORT ?? "8432", 10);
239496
239496
  const raw = process.env.PGSERVE_DATA;
239497
239497
  const defaultDataDir = join15(homedir2(), ".omni", "data", "pgserve");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/omni",
3
- "version": "2.260501.7",
3
+ "version": "2.260502.1",
4
4
  "description": "LLM-optimized CLI for Omni",
5
5
  "type": "module",
6
6
  "bin": {
@@ -51,15 +51,15 @@
51
51
  "qrcode-terminal": "^0.12.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@omni/api": "2.260501.6",
55
- "@omni/channel-discord": "2.260501.6",
56
- "@omni/channel-gupshup": "2.260501.6",
57
- "@omni/channel-sdk": "2.260501.6",
58
- "@omni/channel-slack": "2.260501.6",
59
- "@omni/channel-telegram": "2.260501.6",
60
- "@omni/channel-whatsapp": "2.260501.6",
61
- "@omni/core": "2.260501.6",
62
- "@omni/sdk": "2.260501.6",
54
+ "@omni/api": "2.260501.7",
55
+ "@omni/channel-discord": "2.260501.7",
56
+ "@omni/channel-gupshup": "2.260501.7",
57
+ "@omni/channel-sdk": "2.260501.7",
58
+ "@omni/channel-slack": "2.260501.7",
59
+ "@omni/channel-telegram": "2.260501.7",
60
+ "@omni/channel-whatsapp": "2.260501.7",
61
+ "@omni/core": "2.260501.7",
62
+ "@omni/sdk": "2.260501.7",
63
63
  "@types/node": "^22.10.3",
64
64
  "@types/qrcode-terminal": "^0.12.2",
65
65
  "typescript": "^5.7.3"