@agentmonitors/cli 0.3.0 → 0.3.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.cjs +19 -5
- package/dist/index.cjs.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -13851,6 +13851,9 @@ var require_dist = __commonJS({
|
|
|
13851
13851
|
|
|
13852
13852
|
// src/index.ts
|
|
13853
13853
|
init_cjs_shims();
|
|
13854
|
+
var import_node_fs6 = require("fs");
|
|
13855
|
+
var import_node_path9 = require("path");
|
|
13856
|
+
var import_node_url4 = require("url");
|
|
13854
13857
|
|
|
13855
13858
|
// ../../node_modules/.pnpm/commander@14.0.3/node_modules/commander/esm.mjs
|
|
13856
13859
|
init_cjs_shims();
|
|
@@ -26276,7 +26279,7 @@ function sql(strings, ...params) {
|
|
|
26276
26279
|
return new SQL([new StringChunk(str2)]);
|
|
26277
26280
|
}
|
|
26278
26281
|
sql2.raw = raw;
|
|
26279
|
-
function
|
|
26282
|
+
function join2(chunks, separator) {
|
|
26280
26283
|
const result = [];
|
|
26281
26284
|
for (const [i, chunk] of chunks.entries()) {
|
|
26282
26285
|
if (i > 0 && separator !== void 0) {
|
|
@@ -26286,7 +26289,7 @@ function sql(strings, ...params) {
|
|
|
26286
26289
|
}
|
|
26287
26290
|
return new SQL(result);
|
|
26288
26291
|
}
|
|
26289
|
-
sql2.join =
|
|
26292
|
+
sql2.join = join2;
|
|
26290
26293
|
function identifier(value) {
|
|
26291
26294
|
return new Name(value);
|
|
26292
26295
|
}
|
|
@@ -28734,7 +28737,7 @@ var SQLiteSelectQueryBuilderBase = class extends TypedQueryBuilder {
|
|
|
28734
28737
|
const baseTableName = this.tableName;
|
|
28735
28738
|
const tableName = getTableLikeName(table);
|
|
28736
28739
|
for (const item of extractUsedTable(table)) this.usedTables.add(item);
|
|
28737
|
-
if (typeof tableName === "string" && this.config.joins?.some((
|
|
28740
|
+
if (typeof tableName === "string" && this.config.joins?.some((join2) => join2.alias === tableName)) {
|
|
28738
28741
|
throw new Error(`Alias "${tableName}" is already used in this query`);
|
|
28739
28742
|
}
|
|
28740
28743
|
if (!this.isPartialSelect) {
|
|
@@ -29594,7 +29597,7 @@ var SQLiteUpdateBase = class extends QueryPromise {
|
|
|
29594
29597
|
createJoin(joinType) {
|
|
29595
29598
|
return (table, on) => {
|
|
29596
29599
|
const tableName = getTableLikeName(table);
|
|
29597
|
-
if (typeof tableName === "string" && this.config.joins.some((
|
|
29600
|
+
if (typeof tableName === "string" && this.config.joins.some((join2) => join2.alias === tableName)) {
|
|
29598
29601
|
throw new Error(`Alias "${tableName}" is already used in this query`);
|
|
29599
29602
|
}
|
|
29600
29603
|
if (typeof on === "function") {
|
|
@@ -42386,8 +42389,19 @@ async function runChannelServe(options2) {
|
|
|
42386
42389
|
}
|
|
42387
42390
|
|
|
42388
42391
|
// src/index.ts
|
|
42392
|
+
function getVersion() {
|
|
42393
|
+
try {
|
|
42394
|
+
const dir = (0, import_node_path9.dirname)((0, import_node_url4.fileURLToPath)(importMetaUrl));
|
|
42395
|
+
const pkg = JSON.parse(
|
|
42396
|
+
(0, import_node_fs6.readFileSync)((0, import_node_path9.join)(dir, "..", "package.json"), "utf8")
|
|
42397
|
+
);
|
|
42398
|
+
return typeof pkg.version === "string" ? pkg.version : "0.0.0";
|
|
42399
|
+
} catch {
|
|
42400
|
+
return "0.0.0";
|
|
42401
|
+
}
|
|
42402
|
+
}
|
|
42389
42403
|
var program2 = new Command();
|
|
42390
|
-
program2.name("agentmonitors").description("Durable observation and inbox delivery for AI agents").version(
|
|
42404
|
+
program2.name("agentmonitors").description("Durable observation and inbox delivery for AI agents").version(getVersion());
|
|
42391
42405
|
program2.addCommand(initCommand);
|
|
42392
42406
|
program2.addCommand(validateCommand);
|
|
42393
42407
|
program2.addCommand(scanCommand);
|