@automagik/omni 2.260430.14 → 2.260430.16
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/commands/doctor.d.ts.map +1 -1
- package/dist/index.js +54 -18
- package/dist/lib/canonical-pgserve.d.ts.map +1 -1
- package/dist/server/index.js +24 -24
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAMH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,KAAK,MAAM,EACX,KAAK,YAAY,EAKlB,MAAM,cAAc,CAAC;AAgBtB,8CAA8C;AAC9C,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhD,kDAAkD;AAClD,MAAM,MAAM,OAAO,GACf,eAAe,GACf,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,oBAAoB,GACpB,eAAe,GACf,YAAY,GACZ,kBAAkB,GAClB,yBAAyB,GACzB,sCAAsC,GACtC,mBAAmB,CAAC;AAExB,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,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M,MAAM,CAAC;IAC7B,mEAAmE;IACnE,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,iFAAiF;IACjF,cAAc,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7C;;;;;OAKG;IACH,mBAAmB,EAAE,MAAM,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,CAAC;IACnE;;;;;;OAMG;IACH,gBAAgB,EAAE,MAAM,OAAO,CAAC;IAChC;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACpD;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;CAC5D;AAmsBD;;;GAGG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,aAAa,EAAE,YAAY,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,CAcxG;AA2BD,wBAAgB,mBAAmB,IAAI,OAAO,CAgD7C"}
|
package/dist/index.js
CHANGED
|
@@ -114079,7 +114079,7 @@ import { fileURLToPath } from "url";
|
|
|
114079
114079
|
// package.json
|
|
114080
114080
|
var package_default = {
|
|
114081
114081
|
name: "@automagik/omni",
|
|
114082
|
-
version: "2.260430.
|
|
114082
|
+
version: "2.260430.16",
|
|
114083
114083
|
description: "LLM-optimized CLI for Omni",
|
|
114084
114084
|
type: "module",
|
|
114085
114085
|
bin: {
|
|
@@ -118735,7 +118735,7 @@ init_output();
|
|
|
118735
118735
|
var PGSERVE_REQUIRED_VERSION = "^2.1.0";
|
|
118736
118736
|
async function isPgserveInstalled() {
|
|
118737
118737
|
try {
|
|
118738
|
-
const code = await Bun.spawn({ cmd: ["pgserve", "--
|
|
118738
|
+
const code = await Bun.spawn({ cmd: ["pgserve", "--help"], stdout: "pipe", stderr: "pipe" }).exited;
|
|
118739
118739
|
return code === 0;
|
|
118740
118740
|
} catch {
|
|
118741
118741
|
return false;
|
|
@@ -118765,20 +118765,24 @@ async function runPgserveInstall() {
|
|
|
118765
118765
|
}
|
|
118766
118766
|
return true;
|
|
118767
118767
|
}
|
|
118768
|
-
|
|
118769
|
-
|
|
118768
|
+
var OMNI_DATABASE_NAME = "omni";
|
|
118769
|
+
async function readPgservePort() {
|
|
118770
|
+
const proc = Bun.spawn({ cmd: ["pgserve", "port"], stdout: "pipe", stderr: "inherit" });
|
|
118770
118771
|
const stdout = await new Response(proc.stdout).text();
|
|
118771
118772
|
const code = await proc.exited;
|
|
118772
118773
|
if (code !== 0) {
|
|
118773
|
-
warn(`pgserve
|
|
118774
|
+
warn(`pgserve port exited with code ${code}`);
|
|
118774
118775
|
return null;
|
|
118775
118776
|
}
|
|
118776
|
-
const
|
|
118777
|
-
if (!
|
|
118778
|
-
warn(`pgserve
|
|
118777
|
+
const port = Number.parseInt(stdout.trim(), 10);
|
|
118778
|
+
if (!Number.isFinite(port) || port <= 0 || port > 65535) {
|
|
118779
|
+
warn(`pgserve port returned unexpected output ("${stdout.trim()}")`);
|
|
118779
118780
|
return null;
|
|
118780
118781
|
}
|
|
118781
|
-
return
|
|
118782
|
+
return port;
|
|
118783
|
+
}
|
|
118784
|
+
function buildOmniDatabaseUrl(port) {
|
|
118785
|
+
return `postgresql://postgres:postgres@localhost:${port}/${OMNI_DATABASE_NAME}`;
|
|
118782
118786
|
}
|
|
118783
118787
|
async function setupCanonicalPgserve() {
|
|
118784
118788
|
if (!await ensurePgserveBinary()) {
|
|
@@ -118787,7 +118791,10 @@ async function setupCanonicalPgserve() {
|
|
|
118787
118791
|
}
|
|
118788
118792
|
if (!await runPgserveInstall())
|
|
118789
118793
|
return null;
|
|
118790
|
-
|
|
118794
|
+
const port = await readPgservePort();
|
|
118795
|
+
if (port === null)
|
|
118796
|
+
return null;
|
|
118797
|
+
return buildOmniDatabaseUrl(port);
|
|
118791
118798
|
}
|
|
118792
118799
|
async function resolveCanonicalPgservePreference(isReinstall, cfg) {
|
|
118793
118800
|
if (isReinstall) {
|
|
@@ -119246,8 +119253,10 @@ async function fixCliKeyValid(deps) {
|
|
|
119246
119253
|
}
|
|
119247
119254
|
async function fixPgserveCanonical(deps) {
|
|
119248
119255
|
const { serverConfig, cliConfig } = deps.loadState();
|
|
119256
|
+
await deps.runPm2(["stop", PM2_PROCESSES.api]);
|
|
119249
119257
|
const url = await deps.setupCanonicalPgserve();
|
|
119250
119258
|
if (!url) {
|
|
119259
|
+
await deps.runPm2(["start", PM2_PROCESSES.api]);
|
|
119251
119260
|
throw new Error("canonical pgserve setup failed (pgserve binary unavailable or install failed) \u2014 install manually: bun add -g pgserve@^2.1.0");
|
|
119252
119261
|
}
|
|
119253
119262
|
deps.saveServerConfig({ databaseUrl: url, useCanonicalPgserve: true });
|
|
@@ -119365,19 +119374,46 @@ function summarizeChecks(checks) {
|
|
|
119365
119374
|
}
|
|
119366
119375
|
return summary;
|
|
119367
119376
|
}
|
|
119377
|
+
var CASCADE_PRONE_FIXES = new Set([
|
|
119378
|
+
"cli-key-valid",
|
|
119379
|
+
"omni-db-exists",
|
|
119380
|
+
"pgserve-reachable"
|
|
119381
|
+
]);
|
|
119382
|
+
async function runPhase1MigrationFix(deps, checks, fixesApplied) {
|
|
119383
|
+
const canonicalCheck = checks.find((c2) => c2.id === "pgserve-canonical");
|
|
119384
|
+
if (!canonicalCheck || canonicalCheck.level === "OK") {
|
|
119385
|
+
return { canonicalFailed: false, checks };
|
|
119386
|
+
}
|
|
119387
|
+
const result = await applyFix(deps, canonicalCheck);
|
|
119388
|
+
if (result !== null)
|
|
119389
|
+
fixesApplied.push(result);
|
|
119390
|
+
const canonicalFailed = typeof result === "string" && result.startsWith("FAILED ");
|
|
119391
|
+
const refreshed = await runAllChecks(deps);
|
|
119392
|
+
return { canonicalFailed, checks: refreshed };
|
|
119393
|
+
}
|
|
119394
|
+
async function runPhase2Fixes(deps, checks, canonicalFailed, fixesApplied) {
|
|
119395
|
+
for (const check of checks) {
|
|
119396
|
+
if (check.level === "OK")
|
|
119397
|
+
continue;
|
|
119398
|
+
if (check.id === "pgserve-canonical")
|
|
119399
|
+
continue;
|
|
119400
|
+
if (canonicalFailed && CASCADE_PRONE_FIXES.has(check.id)) {
|
|
119401
|
+
fixesApplied.push(`SKIPPED ${check.id}: blocked by failed canonical-pgserve migration \u2014 fix manually after \`pgserve install\``);
|
|
119402
|
+
continue;
|
|
119403
|
+
}
|
|
119404
|
+
const result = await applyFix(deps, check);
|
|
119405
|
+
if (result !== null)
|
|
119406
|
+
fixesApplied.push(result);
|
|
119407
|
+
}
|
|
119408
|
+
}
|
|
119368
119409
|
async function runDoctor(options, depsOverride) {
|
|
119369
119410
|
const deps = depsOverride ?? productionDeps();
|
|
119370
119411
|
let checks = await runAllChecks(deps);
|
|
119371
119412
|
const fixesApplied = [];
|
|
119372
119413
|
if (options.fix) {
|
|
119373
|
-
|
|
119374
|
-
|
|
119375
|
-
|
|
119376
|
-
const result = await applyFix(deps, check);
|
|
119377
|
-
if (result !== null) {
|
|
119378
|
-
fixesApplied.push(result);
|
|
119379
|
-
}
|
|
119380
|
-
}
|
|
119414
|
+
const phase1 = await runPhase1MigrationFix(deps, checks, fixesApplied);
|
|
119415
|
+
checks = phase1.checks;
|
|
119416
|
+
await runPhase2Fixes(deps, checks, phase1.canonicalFailed, fixesApplied);
|
|
119381
119417
|
checks = await runAllChecks(deps);
|
|
119382
119418
|
}
|
|
119383
119419
|
return { checks, summary: summarizeChecks(checks), fixesApplied };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonical-pgserve.d.ts","sourceRoot":"","sources":["../../src/lib/canonical-pgserve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;
|
|
1
|
+
{"version":3,"file":"canonical-pgserve.d.ts","sourceRoot":"","sources":["../../src/lib/canonical-pgserve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAqIH;;;;;;GAMG;AACH,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CASpE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iCAAiC,CACrD,WAAW,EAAE,OAAO,EACpB,GAAG,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAC3B,OAAO,CAAC,OAAO,CAAC,CA6BlB"}
|
package/dist/server/index.js
CHANGED
|
@@ -224556,7 +224556,7 @@ var init_sentry_scrub = __esm(() => {
|
|
|
224556
224556
|
var require_package8 = __commonJS((exports, module) => {
|
|
224557
224557
|
module.exports = {
|
|
224558
224558
|
name: "@omni/api",
|
|
224559
|
-
version: "2.260430.
|
|
224559
|
+
version: "2.260430.16",
|
|
224560
224560
|
type: "module",
|
|
224561
224561
|
exports: {
|
|
224562
224562
|
".": {
|
|
@@ -233726,7 +233726,7 @@ var init_src5 = __esm(() => {
|
|
|
233726
233726
|
init_schema2();
|
|
233727
233727
|
});
|
|
233728
233728
|
|
|
233729
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
233729
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/postgres.js
|
|
233730
233730
|
import { EventEmitter as EventEmitter4 } from "events";
|
|
233731
233731
|
import os6 from "os";
|
|
233732
233732
|
import path2 from "path";
|
|
@@ -234699,7 +234699,7 @@ Output: ${startupOutput}`));
|
|
|
234699
234699
|
};
|
|
234700
234700
|
});
|
|
234701
234701
|
|
|
234702
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
234702
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/logger.js
|
|
234703
234703
|
function formatTime2() {
|
|
234704
234704
|
const now = new Date;
|
|
234705
234705
|
return `${String(now.getHours()).padStart(2, "0")}:${String(now.getMinutes()).padStart(2, "0")}:${String(now.getSeconds()).padStart(2, "0")}`;
|
|
@@ -234763,7 +234763,7 @@ var init_logger4 = __esm(() => {
|
|
|
234763
234763
|
LEVELS = { debug: 10, info: 20, warn: 30, error: 40 };
|
|
234764
234764
|
});
|
|
234765
234765
|
|
|
234766
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
234766
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/sync.js
|
|
234767
234767
|
var {SQL: SQL2 } = globalThis.Bun;
|
|
234768
234768
|
function matchesPattern2(dbName, patterns) {
|
|
234769
234769
|
if (!patterns || patterns.length === 0)
|
|
@@ -234980,7 +234980,7 @@ var init_sync = __esm(() => {
|
|
|
234980
234980
|
init_logger4();
|
|
234981
234981
|
});
|
|
234982
234982
|
|
|
234983
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
234983
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/pg-wire.js
|
|
234984
234984
|
import { createHash as createHash7 } from "crypto";
|
|
234985
234985
|
|
|
234986
234986
|
class PgWireClient {
|
|
@@ -235552,7 +235552,7 @@ var init_pg_wire = __esm(() => {
|
|
|
235552
235552
|
};
|
|
235553
235553
|
});
|
|
235554
235554
|
|
|
235555
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
235555
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/restore.js
|
|
235556
235556
|
function matchesPattern3(dbName, patterns) {
|
|
235557
235557
|
if (!patterns || patterns.length === 0)
|
|
235558
235558
|
return true;
|
|
@@ -235905,7 +235905,7 @@ var init_restore = __esm(() => {
|
|
|
235905
235905
|
init_logger4();
|
|
235906
235906
|
});
|
|
235907
235907
|
|
|
235908
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
235908
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/dashboard.js
|
|
235909
235909
|
import { readFileSync as readFileSync3 } from "fs";
|
|
235910
235910
|
import { join as join14, dirname as dirname5 } from "path";
|
|
235911
235911
|
import { fileURLToPath } from "url";
|
|
@@ -236049,7 +236049,7 @@ var init_dashboard = __esm(() => {
|
|
|
236049
236049
|
};
|
|
236050
236050
|
});
|
|
236051
236051
|
|
|
236052
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
236052
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/protocol.js
|
|
236053
236053
|
function parseStartupMessage(data, fastPath = true) {
|
|
236054
236054
|
const length = data.readInt32BE(0);
|
|
236055
236055
|
const version4 = data.readInt32BE(4);
|
|
@@ -236202,7 +236202,7 @@ function buildErrorResponse({ severity = "FATAL", sqlstate, message: message2 })
|
|
|
236202
236202
|
var PROTOCOL_VERSION_3 = 196608;
|
|
236203
236203
|
var init_protocol = () => {};
|
|
236204
236204
|
|
|
236205
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
236205
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/router.js
|
|
236206
236206
|
import fs10 from "fs";
|
|
236207
236207
|
import { EventEmitter as EventEmitter5 } from "events";
|
|
236208
236208
|
function flushPending(target, pending) {
|
|
@@ -236538,7 +236538,7 @@ var init_router = __esm(() => {
|
|
|
236538
236538
|
};
|
|
236539
236539
|
});
|
|
236540
236540
|
|
|
236541
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
236541
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/stats-collector.js
|
|
236542
236542
|
class StatsCollector {
|
|
236543
236543
|
constructor(options = {}) {
|
|
236544
236544
|
this.pgManager = options.pgManager;
|
|
@@ -236857,7 +236857,7 @@ class StatsCollector {
|
|
|
236857
236857
|
}
|
|
236858
236858
|
var CPU_SAMPLE_MIN_INTERVAL_MS = 100, PROC_DISKSTATS_MIN_FIELDS = 14;
|
|
236859
236859
|
|
|
236860
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
236860
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/stats-dashboard.js
|
|
236861
236861
|
class StatsDashboard {
|
|
236862
236862
|
constructor(options = {}) {
|
|
236863
236863
|
this.enabled = process.stdout.isTTY && !process.env.NO_COLOR;
|
|
@@ -237121,7 +237121,7 @@ var init_stats_dashboard = __esm(() => {
|
|
|
237121
237121
|
};
|
|
237122
237122
|
});
|
|
237123
237123
|
|
|
237124
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
237124
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/audit.js
|
|
237125
237125
|
import fs11 from "fs";
|
|
237126
237126
|
import os7 from "os";
|
|
237127
237127
|
import path3 from "path";
|
|
@@ -237217,7 +237217,7 @@ var init_audit = __esm(() => {
|
|
|
237217
237217
|
});
|
|
237218
237218
|
});
|
|
237219
237219
|
|
|
237220
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
237220
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/fingerprint.js
|
|
237221
237221
|
import crypto6 from "crypto";
|
|
237222
237222
|
import { execFileSync } from "child_process";
|
|
237223
237223
|
import fs12 from "fs";
|
|
@@ -237496,7 +237496,7 @@ var init_fingerprint = __esm(() => {
|
|
|
237496
237496
|
init_audit();
|
|
237497
237497
|
});
|
|
237498
237498
|
|
|
237499
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
237499
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/tokens.js
|
|
237500
237500
|
import crypto7 from "crypto";
|
|
237501
237501
|
function mintToken() {
|
|
237502
237502
|
const id = crypto7.randomBytes(TOKEN_ID_BYTES).toString("hex");
|
|
@@ -237550,7 +237550,7 @@ var init_tokens = __esm(() => {
|
|
|
237550
237550
|
FP_RE = /^[0-9a-f]{12}$/;
|
|
237551
237551
|
});
|
|
237552
237552
|
|
|
237553
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
237553
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/control-db.js
|
|
237554
237554
|
function query(client, text3, params = [], opts = {}) {
|
|
237555
237555
|
if (client.supportsQueryOptions && opts && Object.keys(opts).length > 0) {
|
|
237556
237556
|
return client.query(text3, params, opts);
|
|
@@ -237687,7 +237687,7 @@ var init_control_db = __esm(() => {
|
|
|
237687
237687
|
init_tokens();
|
|
237688
237688
|
});
|
|
237689
237689
|
|
|
237690
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
237690
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/admin-client.js
|
|
237691
237691
|
var {SQL: SQL3 } = globalThis.Bun;
|
|
237692
237692
|
import fs13 from "fs";
|
|
237693
237693
|
import path5 from "path";
|
|
@@ -237830,7 +237830,7 @@ function removeAdminDiscovery(controlSocketDir) {
|
|
|
237830
237830
|
}
|
|
237831
237831
|
var init_admin_client = () => {};
|
|
237832
237832
|
|
|
237833
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
237833
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/tenancy.js
|
|
237834
237834
|
function sanitizeName(name) {
|
|
237835
237835
|
const raw = (typeof name === "string" ? name : "").toLowerCase();
|
|
237836
237836
|
const collapsed = raw.replace(/[^a-z0-9]+/g, "_");
|
|
@@ -237854,7 +237854,7 @@ function isFingerprintEnforcementDisabled(env2 = process.env) {
|
|
|
237854
237854
|
}
|
|
237855
237855
|
var KILL_SWITCH_ENV = "PGSERVE_DISABLE_FINGERPRINT_ENFORCEMENT", NAME_TRUNCATE = 30, MAX_DB_IDENT = 63;
|
|
237856
237856
|
|
|
237857
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
237857
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/daemon-shared.js
|
|
237858
237858
|
function flushPending2(target, pending) {
|
|
237859
237859
|
const written = target.write(pending);
|
|
237860
237860
|
if (written === pending.byteLength)
|
|
@@ -237864,7 +237864,7 @@ function flushPending2(target, pending) {
|
|
|
237864
237864
|
return pending.subarray(written);
|
|
237865
237865
|
}
|
|
237866
237866
|
|
|
237867
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
237867
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/daemon-control.js
|
|
237868
237868
|
import fs14 from "fs";
|
|
237869
237869
|
function attachControlHandlers(PgserveDaemon) {
|
|
237870
237870
|
PgserveDaemon.prototype.handleSocketOpen = handleSocketOpen;
|
|
@@ -238199,7 +238199,7 @@ var init_daemon_control = __esm(() => {
|
|
|
238199
238199
|
MAX_STARTUP_BUFFER_SIZE2 = 1024 * 1024;
|
|
238200
238200
|
});
|
|
238201
238201
|
|
|
238202
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
238202
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/daemon-tcp.js
|
|
238203
238203
|
import fs15 from "fs";
|
|
238204
238204
|
function attachTcpHandlers(PgserveDaemon) {
|
|
238205
238205
|
PgserveDaemon.prototype.bindTcpListener = bindTcpListener;
|
|
@@ -238468,7 +238468,7 @@ var init_daemon_tcp = __esm(() => {
|
|
|
238468
238468
|
MAX_STARTUP_BUFFER_SIZE3 = 1024 * 1024;
|
|
238469
238469
|
});
|
|
238470
238470
|
|
|
238471
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
238471
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/gc.js
|
|
238472
238472
|
function defaultIsProcessAlive(pid) {
|
|
238473
238473
|
if (!Number.isInteger(pid) || pid <= 0)
|
|
238474
238474
|
return false;
|
|
@@ -238684,7 +238684,7 @@ var init_gc = __esm(() => {
|
|
|
238684
238684
|
HOURLY_MS = 60 * 60 * 1000;
|
|
238685
238685
|
});
|
|
238686
238686
|
|
|
238687
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
238687
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/daemon.js
|
|
238688
238688
|
import fs16 from "fs";
|
|
238689
238689
|
import path6 from "path";
|
|
238690
238690
|
import { EventEmitter as EventEmitter6 } from "events";
|
|
@@ -239181,7 +239181,7 @@ var init_daemon = __esm(() => {
|
|
|
239181
239181
|
attachTcpHandlers(PgserveDaemon);
|
|
239182
239182
|
});
|
|
239183
239183
|
|
|
239184
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
239184
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/sdk.js
|
|
239185
239185
|
import { spawn as spawn4 } from "child_process";
|
|
239186
239186
|
import fs17 from "fs";
|
|
239187
239187
|
import path7 from "path";
|
|
@@ -239304,7 +239304,7 @@ var init_sdk4 = __esm(() => {
|
|
|
239304
239304
|
__dirname2 = path7.dirname(fileURLToPath2(import.meta.url));
|
|
239305
239305
|
});
|
|
239306
239306
|
|
|
239307
|
-
// ../../node_modules/.bun/pgserve@2.1.
|
|
239307
|
+
// ../../node_modules/.bun/pgserve@2.1.2/node_modules/pgserve/src/index.js
|
|
239308
239308
|
var exports_src2 = {};
|
|
239309
239309
|
__export(exports_src2, {
|
|
239310
239310
|
stopDaemon: () => stopDaemon,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automagik/omni",
|
|
3
|
-
"version": "2.260430.
|
|
3
|
+
"version": "2.260430.16",
|
|
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.260430.
|
|
55
|
-
"@omni/channel-discord": "2.260430.
|
|
56
|
-
"@omni/channel-gupshup": "2.260430.
|
|
57
|
-
"@omni/channel-sdk": "2.260430.
|
|
58
|
-
"@omni/channel-slack": "2.260430.
|
|
59
|
-
"@omni/channel-telegram": "2.260430.
|
|
60
|
-
"@omni/channel-whatsapp": "2.260430.
|
|
61
|
-
"@omni/core": "2.260430.
|
|
62
|
-
"@omni/sdk": "2.260430.
|
|
54
|
+
"@omni/api": "2.260430.15",
|
|
55
|
+
"@omni/channel-discord": "2.260430.15",
|
|
56
|
+
"@omni/channel-gupshup": "2.260430.15",
|
|
57
|
+
"@omni/channel-sdk": "2.260430.15",
|
|
58
|
+
"@omni/channel-slack": "2.260430.15",
|
|
59
|
+
"@omni/channel-telegram": "2.260430.15",
|
|
60
|
+
"@omni/channel-whatsapp": "2.260430.15",
|
|
61
|
+
"@omni/core": "2.260430.15",
|
|
62
|
+
"@omni/sdk": "2.260430.15",
|
|
63
63
|
"@types/node": "^22.10.3",
|
|
64
64
|
"@types/qrcode-terminal": "^0.12.2",
|
|
65
65
|
"typescript": "^5.7.3"
|