@dura-run/cli 0.1.4 → 0.1.5
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/dura.js +162 -130
- package/package.json +1 -1
package/dist/dura.js
CHANGED
|
@@ -2539,6 +2539,9 @@ class ApiClient {
|
|
|
2539
2539
|
const contentType = response.headers.get("content-type");
|
|
2540
2540
|
if (!contentType?.includes("application/json")) {
|
|
2541
2541
|
const preview = await response.text().then((t) => t.slice(0, 200));
|
|
2542
|
+
if (response.status === 404) {
|
|
2543
|
+
throw new ApiClientError("ROUTE_NOT_FOUND", "Route not found on the server. The endpoint may not be available in this control plane deployment.", 404, "Upgrade the CLI (npm i -g @dura-run/cli@latest) or verify the control plane version supports this command.");
|
|
2544
|
+
}
|
|
2542
2545
|
throw new ApiClientError("UNEXPECTED_RESPONSE", `Expected JSON from server but got ${contentType ?? "unknown content-type"} (HTTP ${response.status}): ${preview}`, response.status, "Check that DURA_API_URL points to a valid dura.run API server");
|
|
2543
2546
|
}
|
|
2544
2547
|
const body = await response.json();
|
|
@@ -7133,7 +7136,7 @@ var init_marketplace = __esm(() => {
|
|
|
7133
7136
|
});
|
|
7134
7137
|
});
|
|
7135
7138
|
|
|
7136
|
-
// ../../node_modules/.bun/postgres@3.4.
|
|
7139
|
+
// ../../node_modules/.bun/postgres@3.4.8/node_modules/postgres/src/query.js
|
|
7137
7140
|
function cachedError(xs) {
|
|
7138
7141
|
if (originCache.has(xs))
|
|
7139
7142
|
return originCache.get(xs);
|
|
@@ -7273,7 +7276,7 @@ var init_query = __esm(() => {
|
|
|
7273
7276
|
};
|
|
7274
7277
|
});
|
|
7275
7278
|
|
|
7276
|
-
// ../../node_modules/.bun/postgres@3.4.
|
|
7279
|
+
// ../../node_modules/.bun/postgres@3.4.8/node_modules/postgres/src/errors.js
|
|
7277
7280
|
function connection(x, options, socket) {
|
|
7278
7281
|
const { host, port } = socket || options;
|
|
7279
7282
|
const error = Object.assign(new Error("write " + x + " " + (options.path || host + ":" + port)), {
|
|
@@ -7319,7 +7322,7 @@ var init_errors2 = __esm(() => {
|
|
|
7319
7322
|
};
|
|
7320
7323
|
});
|
|
7321
7324
|
|
|
7322
|
-
// ../../node_modules/.bun/postgres@3.4.
|
|
7325
|
+
// ../../node_modules/.bun/postgres@3.4.8/node_modules/postgres/src/types.js
|
|
7323
7326
|
class NotTagged {
|
|
7324
7327
|
then() {
|
|
7325
7328
|
notTagged();
|
|
@@ -7590,7 +7593,7 @@ var init_types2 = __esm(() => {
|
|
|
7590
7593
|
kebab.column.to = fromKebab;
|
|
7591
7594
|
});
|
|
7592
7595
|
|
|
7593
|
-
// ../../node_modules/.bun/postgres@3.4.
|
|
7596
|
+
// ../../node_modules/.bun/postgres@3.4.8/node_modules/postgres/src/result.js
|
|
7594
7597
|
var Result;
|
|
7595
7598
|
var init_result = __esm(() => {
|
|
7596
7599
|
Result = class Result extends Array {
|
|
@@ -7610,7 +7613,7 @@ var init_result = __esm(() => {
|
|
|
7610
7613
|
};
|
|
7611
7614
|
});
|
|
7612
7615
|
|
|
7613
|
-
// ../../node_modules/.bun/postgres@3.4.
|
|
7616
|
+
// ../../node_modules/.bun/postgres@3.4.8/node_modules/postgres/src/queue.js
|
|
7614
7617
|
function Queue(initial = []) {
|
|
7615
7618
|
let xs = initial.slice();
|
|
7616
7619
|
let index = 0;
|
|
@@ -7640,7 +7643,7 @@ var init_queue = __esm(() => {
|
|
|
7640
7643
|
queue_default = Queue;
|
|
7641
7644
|
});
|
|
7642
7645
|
|
|
7643
|
-
// ../../node_modules/.bun/postgres@3.4.
|
|
7646
|
+
// ../../node_modules/.bun/postgres@3.4.8/node_modules/postgres/src/bytes.js
|
|
7644
7647
|
function fit(x) {
|
|
7645
7648
|
if (buffer.length - b.i < x) {
|
|
7646
7649
|
const prev = buffer, length = prev.length;
|
|
@@ -7715,7 +7718,7 @@ var init_bytes = __esm(() => {
|
|
|
7715
7718
|
bytes_default = b;
|
|
7716
7719
|
});
|
|
7717
7720
|
|
|
7718
|
-
// ../../node_modules/.bun/postgres@3.4.
|
|
7721
|
+
// ../../node_modules/.bun/postgres@3.4.8/node_modules/postgres/src/connection.js
|
|
7719
7722
|
import net from "net";
|
|
7720
7723
|
import tls from "tls";
|
|
7721
7724
|
import crypto from "crypto";
|
|
@@ -8450,7 +8453,7 @@ var init_connection = __esm(() => {
|
|
|
8450
8453
|
};
|
|
8451
8454
|
});
|
|
8452
8455
|
|
|
8453
|
-
// ../../node_modules/.bun/postgres@3.4.
|
|
8456
|
+
// ../../node_modules/.bun/postgres@3.4.8/node_modules/postgres/src/subscribe.js
|
|
8454
8457
|
function Subscribe(postgres2, options) {
|
|
8455
8458
|
const subscribers = new Map, slot = "postgresjs_" + Math.random().toString(36).slice(2), state = {};
|
|
8456
8459
|
let connection2, stream, ended = false;
|
|
@@ -8646,7 +8649,7 @@ function parseEvent(x) {
|
|
|
8646
8649
|
}
|
|
8647
8650
|
var noop2 = () => {};
|
|
8648
8651
|
|
|
8649
|
-
// ../../node_modules/.bun/postgres@3.4.
|
|
8652
|
+
// ../../node_modules/.bun/postgres@3.4.8/node_modules/postgres/src/large.js
|
|
8650
8653
|
import Stream2 from "stream";
|
|
8651
8654
|
function largeObject(sql, oid, mode = 131072 | 262144) {
|
|
8652
8655
|
return new Promise(async (resolve2, reject) => {
|
|
@@ -8713,7 +8716,7 @@ function largeObject(sql, oid, mode = 131072 | 262144) {
|
|
|
8713
8716
|
}
|
|
8714
8717
|
var init_large = () => {};
|
|
8715
8718
|
|
|
8716
|
-
// ../../node_modules/.bun/postgres@3.4.
|
|
8719
|
+
// ../../node_modules/.bun/postgres@3.4.8/node_modules/postgres/src/index.js
|
|
8717
8720
|
import os from "os";
|
|
8718
8721
|
import fs from "fs";
|
|
8719
8722
|
function Postgres(a, b2) {
|
|
@@ -9117,7 +9120,7 @@ var init_src = __esm(() => {
|
|
|
9117
9120
|
});
|
|
9118
9121
|
});
|
|
9119
9122
|
|
|
9120
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9123
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/entity.js
|
|
9121
9124
|
function is(value, type) {
|
|
9122
9125
|
if (!value || typeof value !== "object") {
|
|
9123
9126
|
return false;
|
|
@@ -9145,10 +9148,10 @@ var init_entity = __esm(() => {
|
|
|
9145
9148
|
hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
9146
9149
|
});
|
|
9147
9150
|
|
|
9148
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9151
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/logger.js
|
|
9149
9152
|
var init_logger = () => {};
|
|
9150
9153
|
|
|
9151
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9154
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/query-promise.js
|
|
9152
9155
|
var QueryPromise;
|
|
9153
9156
|
var init_query_promise = __esm(() => {
|
|
9154
9157
|
init_entity();
|
|
@@ -9173,7 +9176,7 @@ var init_query_promise = __esm(() => {
|
|
|
9173
9176
|
};
|
|
9174
9177
|
});
|
|
9175
9178
|
|
|
9176
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9179
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/column.js
|
|
9177
9180
|
var Column;
|
|
9178
9181
|
var init_column = __esm(() => {
|
|
9179
9182
|
init_entity();
|
|
@@ -9227,7 +9230,7 @@ var init_column = __esm(() => {
|
|
|
9227
9230
|
};
|
|
9228
9231
|
});
|
|
9229
9232
|
|
|
9230
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9233
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/column-builder.js
|
|
9231
9234
|
var ColumnBuilder;
|
|
9232
9235
|
var init_column_builder = __esm(() => {
|
|
9233
9236
|
init_entity();
|
|
@@ -9287,13 +9290,13 @@ var init_column_builder = __esm(() => {
|
|
|
9287
9290
|
};
|
|
9288
9291
|
});
|
|
9289
9292
|
|
|
9290
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9293
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/table.utils.js
|
|
9291
9294
|
var TableName;
|
|
9292
9295
|
var init_table_utils = __esm(() => {
|
|
9293
9296
|
TableName = Symbol.for("drizzle:Name");
|
|
9294
9297
|
});
|
|
9295
9298
|
|
|
9296
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9299
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/foreign-keys.js
|
|
9297
9300
|
var ForeignKeyBuilder, ForeignKey;
|
|
9298
9301
|
var init_foreign_keys = __esm(() => {
|
|
9299
9302
|
init_entity();
|
|
@@ -9351,13 +9354,13 @@ var init_foreign_keys = __esm(() => {
|
|
|
9351
9354
|
};
|
|
9352
9355
|
});
|
|
9353
9356
|
|
|
9354
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9357
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/tracing-utils.js
|
|
9355
9358
|
function iife(fn, ...args) {
|
|
9356
9359
|
return fn(...args);
|
|
9357
9360
|
}
|
|
9358
9361
|
var init_tracing_utils = () => {};
|
|
9359
9362
|
|
|
9360
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9363
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
9361
9364
|
function uniqueKeyName(table, columns) {
|
|
9362
9365
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
9363
9366
|
}
|
|
@@ -9365,7 +9368,7 @@ var init_unique_constraint = __esm(() => {
|
|
|
9365
9368
|
init_table_utils();
|
|
9366
9369
|
});
|
|
9367
9370
|
|
|
9368
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9371
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/utils/array.js
|
|
9369
9372
|
function parsePgArrayValue(arrayString, startFrom, inQuotes) {
|
|
9370
9373
|
for (let i = startFrom;i < arrayString.length; i++) {
|
|
9371
9374
|
const char = arrayString[i];
|
|
@@ -9442,7 +9445,7 @@ function makePgArray(array) {
|
|
|
9442
9445
|
}
|
|
9443
9446
|
var init_array = () => {};
|
|
9444
9447
|
|
|
9445
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9448
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
9446
9449
|
var PgColumnBuilder, PgColumn, ExtraConfigColumn, IndexedColumn, PgArrayBuilder, PgArray;
|
|
9447
9450
|
var init_common = __esm(() => {
|
|
9448
9451
|
init_column_builder();
|
|
@@ -9595,7 +9598,7 @@ var init_common = __esm(() => {
|
|
|
9595
9598
|
};
|
|
9596
9599
|
});
|
|
9597
9600
|
|
|
9598
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9601
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
9599
9602
|
function isPgEnum(obj) {
|
|
9600
9603
|
return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
|
|
9601
9604
|
}
|
|
@@ -9640,7 +9643,7 @@ var init_enum = __esm(() => {
|
|
|
9640
9643
|
};
|
|
9641
9644
|
});
|
|
9642
9645
|
|
|
9643
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9646
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/subquery.js
|
|
9644
9647
|
var Subquery;
|
|
9645
9648
|
var init_subquery = __esm(() => {
|
|
9646
9649
|
init_entity();
|
|
@@ -9658,11 +9661,11 @@ var init_subquery = __esm(() => {
|
|
|
9658
9661
|
};
|
|
9659
9662
|
});
|
|
9660
9663
|
|
|
9661
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9664
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/version.js
|
|
9662
9665
|
var version = "0.39.3";
|
|
9663
9666
|
var init_version = () => {};
|
|
9664
9667
|
|
|
9665
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9668
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/tracing.js
|
|
9666
9669
|
var otel, rawTracer, tracer;
|
|
9667
9670
|
var init_tracing = __esm(() => {
|
|
9668
9671
|
init_tracing_utils();
|
|
@@ -9692,13 +9695,13 @@ var init_tracing = __esm(() => {
|
|
|
9692
9695
|
};
|
|
9693
9696
|
});
|
|
9694
9697
|
|
|
9695
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9698
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/view-common.js
|
|
9696
9699
|
var ViewBaseConfig;
|
|
9697
9700
|
var init_view_common = __esm(() => {
|
|
9698
9701
|
ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
9699
9702
|
});
|
|
9700
9703
|
|
|
9701
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9704
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/table.js
|
|
9702
9705
|
function getTableName(table) {
|
|
9703
9706
|
return table[TableName];
|
|
9704
9707
|
}
|
|
@@ -9743,7 +9746,7 @@ var init_table = __esm(() => {
|
|
|
9743
9746
|
};
|
|
9744
9747
|
});
|
|
9745
9748
|
|
|
9746
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
9749
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/sql/sql.js
|
|
9747
9750
|
function isSQLWrapper(value) {
|
|
9748
9751
|
return value !== null && value !== undefined && typeof value.getSQL === "function";
|
|
9749
9752
|
}
|
|
@@ -10100,7 +10103,7 @@ var init_sql = __esm(() => {
|
|
|
10100
10103
|
};
|
|
10101
10104
|
});
|
|
10102
10105
|
|
|
10103
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10106
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/alias.js
|
|
10104
10107
|
var ColumnAliasProxyHandler, TableAliasProxyHandler;
|
|
10105
10108
|
var init_alias = __esm(() => {
|
|
10106
10109
|
init_column();
|
|
@@ -10162,7 +10165,7 @@ var init_alias = __esm(() => {
|
|
|
10162
10165
|
};
|
|
10163
10166
|
});
|
|
10164
10167
|
|
|
10165
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10168
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/selection-proxy.js
|
|
10166
10169
|
var SelectionProxyHandler;
|
|
10167
10170
|
var init_selection_proxy = __esm(() => {
|
|
10168
10171
|
init_alias();
|
|
@@ -10223,7 +10226,7 @@ var init_selection_proxy = __esm(() => {
|
|
|
10223
10226
|
};
|
|
10224
10227
|
});
|
|
10225
10228
|
|
|
10226
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10229
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/utils.js
|
|
10227
10230
|
function orderSelectedFields(fields, pathPrefix) {
|
|
10228
10231
|
return Object.entries(fields).reduce((result, [name, field]) => {
|
|
10229
10232
|
if (typeof name !== "string") {
|
|
@@ -10280,13 +10283,13 @@ var init_utils = __esm(() => {
|
|
|
10280
10283
|
init_view_common();
|
|
10281
10284
|
});
|
|
10282
10285
|
|
|
10283
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10286
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/query-builders/delete.js
|
|
10284
10287
|
var init_delete = () => {};
|
|
10285
10288
|
|
|
10286
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10289
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/errors.js
|
|
10287
10290
|
var init_errors3 = () => {};
|
|
10288
10291
|
|
|
10289
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10292
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/int.common.js
|
|
10290
10293
|
var PgIntColumnBaseBuilder;
|
|
10291
10294
|
var init_int_common = __esm(() => {
|
|
10292
10295
|
init_entity();
|
|
@@ -10330,7 +10333,7 @@ var init_int_common = __esm(() => {
|
|
|
10330
10333
|
};
|
|
10331
10334
|
});
|
|
10332
10335
|
|
|
10333
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10336
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/bigint.js
|
|
10334
10337
|
function bigint(a, b2) {
|
|
10335
10338
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
10336
10339
|
if (config.mode === "number") {
|
|
@@ -10385,7 +10388,7 @@ var init_bigint = __esm(() => {
|
|
|
10385
10388
|
};
|
|
10386
10389
|
});
|
|
10387
10390
|
|
|
10388
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10391
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/bigserial.js
|
|
10389
10392
|
function bigserial(a, b2) {
|
|
10390
10393
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
10391
10394
|
if (config.mode === "number") {
|
|
@@ -10442,7 +10445,7 @@ var init_bigserial = __esm(() => {
|
|
|
10442
10445
|
};
|
|
10443
10446
|
});
|
|
10444
10447
|
|
|
10445
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10448
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/boolean.js
|
|
10446
10449
|
function boolean(name) {
|
|
10447
10450
|
return new PgBooleanBuilder(name ?? "");
|
|
10448
10451
|
}
|
|
@@ -10467,7 +10470,7 @@ var init_boolean = __esm(() => {
|
|
|
10467
10470
|
};
|
|
10468
10471
|
});
|
|
10469
10472
|
|
|
10470
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10473
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/char.js
|
|
10471
10474
|
function char(a, b2 = {}) {
|
|
10472
10475
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
10473
10476
|
return new PgCharBuilder(name, config);
|
|
@@ -10498,7 +10501,7 @@ var init_char = __esm(() => {
|
|
|
10498
10501
|
};
|
|
10499
10502
|
});
|
|
10500
10503
|
|
|
10501
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10504
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/cidr.js
|
|
10502
10505
|
function cidr(name) {
|
|
10503
10506
|
return new PgCidrBuilder(name ?? "");
|
|
10504
10507
|
}
|
|
@@ -10523,7 +10526,7 @@ var init_cidr = __esm(() => {
|
|
|
10523
10526
|
};
|
|
10524
10527
|
});
|
|
10525
10528
|
|
|
10526
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10529
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/custom.js
|
|
10527
10530
|
function customType(customTypeParams) {
|
|
10528
10531
|
return (a, b2) => {
|
|
10529
10532
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
@@ -10569,7 +10572,7 @@ var init_custom = __esm(() => {
|
|
|
10569
10572
|
};
|
|
10570
10573
|
});
|
|
10571
10574
|
|
|
10572
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10575
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/date.common.js
|
|
10573
10576
|
var PgDateColumnBaseBuilder;
|
|
10574
10577
|
var init_date_common = __esm(() => {
|
|
10575
10578
|
init_entity();
|
|
@@ -10583,7 +10586,7 @@ var init_date_common = __esm(() => {
|
|
|
10583
10586
|
};
|
|
10584
10587
|
});
|
|
10585
10588
|
|
|
10586
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10589
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/date.js
|
|
10587
10590
|
function date(a, b2) {
|
|
10588
10591
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
10589
10592
|
if (config?.mode === "date") {
|
|
@@ -10635,7 +10638,7 @@ var init_date = __esm(() => {
|
|
|
10635
10638
|
};
|
|
10636
10639
|
});
|
|
10637
10640
|
|
|
10638
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10641
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/double-precision.js
|
|
10639
10642
|
function doublePrecision(name) {
|
|
10640
10643
|
return new PgDoublePrecisionBuilder(name ?? "");
|
|
10641
10644
|
}
|
|
@@ -10666,7 +10669,7 @@ var init_double_precision = __esm(() => {
|
|
|
10666
10669
|
};
|
|
10667
10670
|
});
|
|
10668
10671
|
|
|
10669
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10672
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/inet.js
|
|
10670
10673
|
function inet(name) {
|
|
10671
10674
|
return new PgInetBuilder(name ?? "");
|
|
10672
10675
|
}
|
|
@@ -10691,7 +10694,7 @@ var init_inet = __esm(() => {
|
|
|
10691
10694
|
};
|
|
10692
10695
|
});
|
|
10693
10696
|
|
|
10694
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10697
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/integer.js
|
|
10695
10698
|
function integer(name) {
|
|
10696
10699
|
return new PgIntegerBuilder(name ?? "");
|
|
10697
10700
|
}
|
|
@@ -10723,7 +10726,7 @@ var init_integer = __esm(() => {
|
|
|
10723
10726
|
};
|
|
10724
10727
|
});
|
|
10725
10728
|
|
|
10726
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10729
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/interval.js
|
|
10727
10730
|
function interval(a, b2 = {}) {
|
|
10728
10731
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
10729
10732
|
return new PgIntervalBuilder(name, config);
|
|
@@ -10755,7 +10758,7 @@ var init_interval = __esm(() => {
|
|
|
10755
10758
|
};
|
|
10756
10759
|
});
|
|
10757
10760
|
|
|
10758
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10761
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/json.js
|
|
10759
10762
|
function json(name) {
|
|
10760
10763
|
return new PgJsonBuilder(name ?? "");
|
|
10761
10764
|
}
|
|
@@ -10796,7 +10799,7 @@ var init_json = __esm(() => {
|
|
|
10796
10799
|
};
|
|
10797
10800
|
});
|
|
10798
10801
|
|
|
10799
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10802
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
10800
10803
|
function jsonb(name) {
|
|
10801
10804
|
return new PgJsonbBuilder(name ?? "");
|
|
10802
10805
|
}
|
|
@@ -10837,7 +10840,7 @@ var init_jsonb = __esm(() => {
|
|
|
10837
10840
|
};
|
|
10838
10841
|
});
|
|
10839
10842
|
|
|
10840
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10843
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/line.js
|
|
10841
10844
|
function line(a, b2) {
|
|
10842
10845
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
10843
10846
|
if (!config?.mode || config.mode === "tuple") {
|
|
@@ -10896,7 +10899,7 @@ var init_line = __esm(() => {
|
|
|
10896
10899
|
};
|
|
10897
10900
|
});
|
|
10898
10901
|
|
|
10899
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10902
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/macaddr.js
|
|
10900
10903
|
function macaddr(name) {
|
|
10901
10904
|
return new PgMacaddrBuilder(name ?? "");
|
|
10902
10905
|
}
|
|
@@ -10921,7 +10924,7 @@ var init_macaddr = __esm(() => {
|
|
|
10921
10924
|
};
|
|
10922
10925
|
});
|
|
10923
10926
|
|
|
10924
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10927
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/macaddr8.js
|
|
10925
10928
|
function macaddr8(name) {
|
|
10926
10929
|
return new PgMacaddr8Builder(name ?? "");
|
|
10927
10930
|
}
|
|
@@ -10946,7 +10949,7 @@ var init_macaddr8 = __esm(() => {
|
|
|
10946
10949
|
};
|
|
10947
10950
|
});
|
|
10948
10951
|
|
|
10949
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10952
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
10950
10953
|
function numeric(a, b2) {
|
|
10951
10954
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
10952
10955
|
return new PgNumericBuilder(name, config?.precision, config?.scale);
|
|
@@ -10988,7 +10991,7 @@ var init_numeric = __esm(() => {
|
|
|
10988
10991
|
};
|
|
10989
10992
|
});
|
|
10990
10993
|
|
|
10991
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
10994
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/point.js
|
|
10992
10995
|
function point(a, b2) {
|
|
10993
10996
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
10994
10997
|
if (!config?.mode || config.mode === "tuple") {
|
|
@@ -11053,7 +11056,7 @@ var init_point = __esm(() => {
|
|
|
11053
11056
|
};
|
|
11054
11057
|
});
|
|
11055
11058
|
|
|
11056
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11059
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/postgis_extension/utils.js
|
|
11057
11060
|
function hexToBytes(hex) {
|
|
11058
11061
|
const bytes = [];
|
|
11059
11062
|
for (let c = 0;c < hex.length; c += 2) {
|
|
@@ -11093,7 +11096,7 @@ function parseEWKB(hex) {
|
|
|
11093
11096
|
}
|
|
11094
11097
|
var init_utils2 = () => {};
|
|
11095
11098
|
|
|
11096
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11099
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/postgis_extension/geometry.js
|
|
11097
11100
|
function geometry(a, b2) {
|
|
11098
11101
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
11099
11102
|
if (!config?.mode || config.mode === "tuple") {
|
|
@@ -11152,7 +11155,7 @@ var init_geometry = __esm(() => {
|
|
|
11152
11155
|
};
|
|
11153
11156
|
});
|
|
11154
11157
|
|
|
11155
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11158
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/real.js
|
|
11156
11159
|
function real(name) {
|
|
11157
11160
|
return new PgRealBuilder(name ?? "");
|
|
11158
11161
|
}
|
|
@@ -11187,7 +11190,7 @@ var init_real = __esm(() => {
|
|
|
11187
11190
|
};
|
|
11188
11191
|
});
|
|
11189
11192
|
|
|
11190
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11193
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/serial.js
|
|
11191
11194
|
function serial(name) {
|
|
11192
11195
|
return new PgSerialBuilder(name ?? "");
|
|
11193
11196
|
}
|
|
@@ -11214,7 +11217,7 @@ var init_serial = __esm(() => {
|
|
|
11214
11217
|
};
|
|
11215
11218
|
});
|
|
11216
11219
|
|
|
11217
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11220
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/smallint.js
|
|
11218
11221
|
function smallint(name) {
|
|
11219
11222
|
return new PgSmallIntBuilder(name ?? "");
|
|
11220
11223
|
}
|
|
@@ -11246,7 +11249,7 @@ var init_smallint = __esm(() => {
|
|
|
11246
11249
|
};
|
|
11247
11250
|
});
|
|
11248
11251
|
|
|
11249
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11252
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/smallserial.js
|
|
11250
11253
|
function smallserial(name) {
|
|
11251
11254
|
return new PgSmallSerialBuilder(name ?? "");
|
|
11252
11255
|
}
|
|
@@ -11273,7 +11276,7 @@ var init_smallserial = __esm(() => {
|
|
|
11273
11276
|
};
|
|
11274
11277
|
});
|
|
11275
11278
|
|
|
11276
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11279
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/text.js
|
|
11277
11280
|
function text(a, b2 = {}) {
|
|
11278
11281
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
11279
11282
|
return new PgTextBuilder(name, config);
|
|
@@ -11302,7 +11305,7 @@ var init_text = __esm(() => {
|
|
|
11302
11305
|
};
|
|
11303
11306
|
});
|
|
11304
11307
|
|
|
11305
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11308
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/time.js
|
|
11306
11309
|
function time(a, b2 = {}) {
|
|
11307
11310
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
11308
11311
|
return new PgTimeBuilder(name, config.withTimezone ?? false, config.precision);
|
|
@@ -11342,7 +11345,7 @@ var init_time = __esm(() => {
|
|
|
11342
11345
|
};
|
|
11343
11346
|
});
|
|
11344
11347
|
|
|
11345
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11348
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
11346
11349
|
function timestamp(a, b2 = {}) {
|
|
11347
11350
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
11348
11351
|
if (config?.mode === "string") {
|
|
@@ -11414,7 +11417,7 @@ var init_timestamp = __esm(() => {
|
|
|
11414
11417
|
};
|
|
11415
11418
|
});
|
|
11416
11419
|
|
|
11417
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11420
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
11418
11421
|
function uuid(name) {
|
|
11419
11422
|
return new PgUUIDBuilder(name ?? "");
|
|
11420
11423
|
}
|
|
@@ -11443,7 +11446,7 @@ var init_uuid = __esm(() => {
|
|
|
11443
11446
|
};
|
|
11444
11447
|
});
|
|
11445
11448
|
|
|
11446
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11449
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/varchar.js
|
|
11447
11450
|
function varchar(a, b2 = {}) {
|
|
11448
11451
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
11449
11452
|
return new PgVarcharBuilder(name, config);
|
|
@@ -11474,7 +11477,7 @@ var init_varchar = __esm(() => {
|
|
|
11474
11477
|
};
|
|
11475
11478
|
});
|
|
11476
11479
|
|
|
11477
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11480
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/vector_extension/bit.js
|
|
11478
11481
|
function bit(a, b2) {
|
|
11479
11482
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
11480
11483
|
return new PgBinaryVectorBuilder(name, config);
|
|
@@ -11503,7 +11506,7 @@ var init_bit = __esm(() => {
|
|
|
11503
11506
|
};
|
|
11504
11507
|
});
|
|
11505
11508
|
|
|
11506
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11509
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/vector_extension/halfvec.js
|
|
11507
11510
|
function halfvec(a, b2) {
|
|
11508
11511
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
11509
11512
|
return new PgHalfVectorBuilder(name, config);
|
|
@@ -11538,7 +11541,7 @@ var init_halfvec = __esm(() => {
|
|
|
11538
11541
|
};
|
|
11539
11542
|
});
|
|
11540
11543
|
|
|
11541
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11544
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/vector_extension/sparsevec.js
|
|
11542
11545
|
function sparsevec(a, b2) {
|
|
11543
11546
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
11544
11547
|
return new PgSparseVectorBuilder(name, config);
|
|
@@ -11567,7 +11570,7 @@ var init_sparsevec = __esm(() => {
|
|
|
11567
11570
|
};
|
|
11568
11571
|
});
|
|
11569
11572
|
|
|
11570
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11573
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/vector_extension/vector.js
|
|
11571
11574
|
function vector(a, b2) {
|
|
11572
11575
|
const { name, config } = getColumnNameAndConfig(a, b2);
|
|
11573
11576
|
return new PgVectorBuilder(name, config);
|
|
@@ -11602,7 +11605,7 @@ var init_vector = __esm(() => {
|
|
|
11602
11605
|
};
|
|
11603
11606
|
});
|
|
11604
11607
|
|
|
11605
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11608
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/index.js
|
|
11606
11609
|
var init_columns = __esm(() => {
|
|
11607
11610
|
init_bigint();
|
|
11608
11611
|
init_bigserial();
|
|
@@ -11641,7 +11644,7 @@ var init_columns = __esm(() => {
|
|
|
11641
11644
|
init_vector();
|
|
11642
11645
|
});
|
|
11643
11646
|
|
|
11644
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11647
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/columns/all.js
|
|
11645
11648
|
function getPgColumnBuilders() {
|
|
11646
11649
|
return {
|
|
11647
11650
|
bigint,
|
|
@@ -11713,7 +11716,7 @@ var init_all = __esm(() => {
|
|
|
11713
11716
|
init_vector();
|
|
11714
11717
|
});
|
|
11715
11718
|
|
|
11716
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11719
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/table.js
|
|
11717
11720
|
function pgTableWithSchema(name, columns, extraConfig, schema, baseName = name) {
|
|
11718
11721
|
const rawTable = new PgTable(name, schema, baseName);
|
|
11719
11722
|
const parsedColumns = typeof columns === "function" ? columns(getPgColumnBuilders()) : columns;
|
|
@@ -11764,7 +11767,7 @@ var init_table2 = __esm(() => {
|
|
|
11764
11767
|
};
|
|
11765
11768
|
});
|
|
11766
11769
|
|
|
11767
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11770
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
11768
11771
|
function primaryKey(...config) {
|
|
11769
11772
|
if (config[0].columns) {
|
|
11770
11773
|
return new PrimaryKeyBuilder(config[0].columns, config[0].name);
|
|
@@ -11802,44 +11805,44 @@ var init_primary_keys = __esm(() => {
|
|
|
11802
11805
|
};
|
|
11803
11806
|
});
|
|
11804
11807
|
|
|
11805
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11808
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
11806
11809
|
var init_conditions = () => {};
|
|
11807
11810
|
|
|
11808
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11811
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/sql/expressions/select.js
|
|
11809
11812
|
var init_select = () => {};
|
|
11810
11813
|
|
|
11811
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11814
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/sql/expressions/index.js
|
|
11812
11815
|
var init_expressions = __esm(() => {
|
|
11813
11816
|
init_conditions();
|
|
11814
11817
|
init_select();
|
|
11815
11818
|
});
|
|
11816
11819
|
|
|
11817
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11820
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/relations.js
|
|
11818
11821
|
var init_relations = () => {};
|
|
11819
11822
|
|
|
11820
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11823
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/sql/functions/aggregate.js
|
|
11821
11824
|
var init_aggregate = () => {};
|
|
11822
11825
|
|
|
11823
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11826
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/sql/functions/vector.js
|
|
11824
11827
|
var init_vector2 = () => {};
|
|
11825
11828
|
|
|
11826
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11829
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/sql/functions/index.js
|
|
11827
11830
|
var init_functions = __esm(() => {
|
|
11828
11831
|
init_aggregate();
|
|
11829
11832
|
init_vector2();
|
|
11830
11833
|
});
|
|
11831
11834
|
|
|
11832
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11835
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/sql/index.js
|
|
11833
11836
|
var init_sql2 = __esm(() => {
|
|
11834
11837
|
init_expressions();
|
|
11835
11838
|
init_functions();
|
|
11836
11839
|
init_sql();
|
|
11837
11840
|
});
|
|
11838
11841
|
|
|
11839
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11842
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/dialect.js
|
|
11840
11843
|
var init_dialect = () => {};
|
|
11841
11844
|
|
|
11842
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11845
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/query-builders/query-builder.js
|
|
11843
11846
|
var TypedQueryBuilder;
|
|
11844
11847
|
var init_query_builder = __esm(() => {
|
|
11845
11848
|
init_entity();
|
|
@@ -11851,7 +11854,7 @@ var init_query_builder = __esm(() => {
|
|
|
11851
11854
|
};
|
|
11852
11855
|
});
|
|
11853
11856
|
|
|
11854
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
11857
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
11855
11858
|
function createSetOperator(type, isAll) {
|
|
11856
11859
|
return (leftSelect, rightSelect, ...restSelects) => {
|
|
11857
11860
|
const setOperators = [rightSelect, ...restSelects].map((select3) => ({
|
|
@@ -12104,16 +12107,16 @@ var init_select2 = __esm(() => {
|
|
|
12104
12107
|
exceptAll = createSetOperator("except", true);
|
|
12105
12108
|
});
|
|
12106
12109
|
|
|
12107
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12110
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
12108
12111
|
var init_query_builder2 = () => {};
|
|
12109
12112
|
|
|
12110
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12113
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/query-builders/insert.js
|
|
12111
12114
|
var init_insert = () => {};
|
|
12112
12115
|
|
|
12113
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12116
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
|
|
12114
12117
|
var init_refresh_materialized_view = () => {};
|
|
12115
12118
|
|
|
12116
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12119
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/query-builders/update.js
|
|
12117
12120
|
var PgUpdateBase;
|
|
12118
12121
|
var init_update = __esm(() => {
|
|
12119
12122
|
init_entity();
|
|
@@ -12257,7 +12260,7 @@ var init_update = __esm(() => {
|
|
|
12257
12260
|
};
|
|
12258
12261
|
});
|
|
12259
12262
|
|
|
12260
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12263
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/query-builders/index.js
|
|
12261
12264
|
var init_query_builders = __esm(() => {
|
|
12262
12265
|
init_delete();
|
|
12263
12266
|
init_insert();
|
|
@@ -12267,13 +12270,13 @@ var init_query_builders = __esm(() => {
|
|
|
12267
12270
|
init_update();
|
|
12268
12271
|
});
|
|
12269
12272
|
|
|
12270
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12273
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/db.js
|
|
12271
12274
|
var init_db = () => {};
|
|
12272
12275
|
|
|
12273
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12276
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/alias.js
|
|
12274
12277
|
var init_alias2 = () => {};
|
|
12275
12278
|
|
|
12276
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12279
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/checks.js
|
|
12277
12280
|
function check(name, value) {
|
|
12278
12281
|
return new CheckBuilder(name, value);
|
|
12279
12282
|
}
|
|
@@ -12303,7 +12306,7 @@ var init_checks = __esm(() => {
|
|
|
12303
12306
|
};
|
|
12304
12307
|
});
|
|
12305
12308
|
|
|
12306
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12309
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/indexes.js
|
|
12307
12310
|
function index(name) {
|
|
12308
12311
|
return new IndexBuilderOn(false, name);
|
|
12309
12312
|
}
|
|
@@ -12392,42 +12395,42 @@ var init_indexes = __esm(() => {
|
|
|
12392
12395
|
};
|
|
12393
12396
|
});
|
|
12394
12397
|
|
|
12395
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12398
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/policies.js
|
|
12396
12399
|
var init_policies = () => {};
|
|
12397
12400
|
|
|
12398
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12401
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/roles.js
|
|
12399
12402
|
var init_roles = () => {};
|
|
12400
12403
|
|
|
12401
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12404
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/sequence.js
|
|
12402
12405
|
var init_sequence = () => {};
|
|
12403
12406
|
|
|
12404
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12407
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/view-common.js
|
|
12405
12408
|
var PgViewConfig;
|
|
12406
12409
|
var init_view_common2 = __esm(() => {
|
|
12407
12410
|
PgViewConfig = Symbol.for("drizzle:PgViewConfig");
|
|
12408
12411
|
});
|
|
12409
12412
|
|
|
12410
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12413
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/view.js
|
|
12411
12414
|
var PgMaterializedViewConfig;
|
|
12412
12415
|
var init_view = __esm(() => {
|
|
12413
12416
|
PgMaterializedViewConfig = Symbol.for("drizzle:PgMaterializedViewConfig");
|
|
12414
12417
|
});
|
|
12415
12418
|
|
|
12416
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12419
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/schema.js
|
|
12417
12420
|
var init_schema = () => {};
|
|
12418
12421
|
|
|
12419
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12422
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/session.js
|
|
12420
12423
|
var init_session = () => {};
|
|
12421
12424
|
|
|
12422
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12425
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/utils.js
|
|
12423
12426
|
var init_utils3 = () => {};
|
|
12424
12427
|
|
|
12425
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12428
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/utils/index.js
|
|
12426
12429
|
var init_utils4 = __esm(() => {
|
|
12427
12430
|
init_array();
|
|
12428
12431
|
});
|
|
12429
12432
|
|
|
12430
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12433
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/pg-core/index.js
|
|
12431
12434
|
var init_pg_core = __esm(() => {
|
|
12432
12435
|
init_alias2();
|
|
12433
12436
|
init_checks();
|
|
@@ -12885,12 +12888,12 @@ var init_metering_rollups = __esm(() => {
|
|
|
12885
12888
|
]);
|
|
12886
12889
|
});
|
|
12887
12890
|
|
|
12888
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12891
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/expressions.js
|
|
12889
12892
|
var init_expressions2 = __esm(() => {
|
|
12890
12893
|
init_expressions();
|
|
12891
12894
|
});
|
|
12892
12895
|
|
|
12893
|
-
// ../../node_modules/.bun/drizzle-orm@0.39.3+
|
|
12896
|
+
// ../../node_modules/.bun/drizzle-orm@0.39.3+7505325c0ab11955/node_modules/drizzle-orm/index.js
|
|
12894
12897
|
var init_drizzle_orm = __esm(() => {
|
|
12895
12898
|
init_alias();
|
|
12896
12899
|
init_column_builder();
|
|
@@ -14099,7 +14102,7 @@ function registerOpenApiCommand(program2) {
|
|
|
14099
14102
|
const apiUrl = opts.apiUrl || getApiUrl();
|
|
14100
14103
|
const client = new ApiClient(apiUrl, token);
|
|
14101
14104
|
try {
|
|
14102
|
-
const spec = await client.get(
|
|
14105
|
+
const spec = await client.get(`/api/v1/projects/${opts.project}/openapi/_dura/openapi.json`, { projectId: opts.project });
|
|
14103
14106
|
output.success(spec);
|
|
14104
14107
|
} catch (err) {
|
|
14105
14108
|
if (err instanceof Error) {
|
|
@@ -16894,8 +16897,12 @@ function registerKvCommand(program2) {
|
|
|
16894
16897
|
}
|
|
16895
16898
|
}
|
|
16896
16899
|
});
|
|
16897
|
-
kv.command("delete <key>").description("Delete a key from the KV namespace").requiredOption("--project <id>", "Project ID").option("--api-url <url>", "API base URL").option("--token <token>", "Auth token").action(async (key, opts, cmd) => {
|
|
16900
|
+
kv.command("delete <key>").description("Delete a key from the KV namespace").requiredOption("--project <id>", "Project ID").option("--confirm", "Required to actually perform the delete").option("--api-url <url>", "API base URL").option("--token <token>", "Auth token").action(async (key, opts, cmd) => {
|
|
16898
16901
|
const output = getOutput(cmd);
|
|
16902
|
+
if (!opts.confirm) {
|
|
16903
|
+
output.error("KV_DELETE_CONFIRM_REQUIRED", `This will permanently delete the key "${key}".`, "Re-run with --confirm to proceed.");
|
|
16904
|
+
return;
|
|
16905
|
+
}
|
|
16899
16906
|
const auth = resolveAuth4(opts, output);
|
|
16900
16907
|
if (!auth)
|
|
16901
16908
|
return;
|
|
@@ -19030,6 +19037,31 @@ __export(exports_projects, {
|
|
|
19030
19037
|
});
|
|
19031
19038
|
function registerProjectsCommand(program2) {
|
|
19032
19039
|
const projects2 = program2.command("projects").description("Manage projects");
|
|
19040
|
+
projects2.command("get <projectId>").description("Show details for a single project").option("--org <id>", "Organization ID").option("--api-url <url>", "API base URL").option("--token <token>", "Auth token").action(async (projectId, opts, cmd) => {
|
|
19041
|
+
const output = getOutput(cmd);
|
|
19042
|
+
const token = opts.token || getAuthToken();
|
|
19043
|
+
if (!token) {
|
|
19044
|
+
output.error("AUTH_REQUIRED", "Not logged in", "Run: dura login");
|
|
19045
|
+
return;
|
|
19046
|
+
}
|
|
19047
|
+
const orgId = opts.org || readConfig().defaultOrgId;
|
|
19048
|
+
if (!orgId) {
|
|
19049
|
+
output.error("ORG_REQUIRED", "Organization ID is required", "Pass --org <id> or set a default org with dura login");
|
|
19050
|
+
return;
|
|
19051
|
+
}
|
|
19052
|
+
const apiUrl = opts.apiUrl || getApiUrl();
|
|
19053
|
+
const client = new ApiClient(apiUrl, token);
|
|
19054
|
+
try {
|
|
19055
|
+
const project = await client.get(`/api/v1/orgs/${orgId}/projects/${projectId}`);
|
|
19056
|
+
output.success(project);
|
|
19057
|
+
} catch (err) {
|
|
19058
|
+
if (err instanceof ApiClientError) {
|
|
19059
|
+
output.error(err.code, err.message, err.suggestion);
|
|
19060
|
+
} else if (err instanceof Error) {
|
|
19061
|
+
output.error("PROJECTS_GET_FAILED", err.message);
|
|
19062
|
+
}
|
|
19063
|
+
}
|
|
19064
|
+
});
|
|
19033
19065
|
projects2.command("list").description("List all projects in the organization").option("--org <id>", "Organization ID").option("--api-url <url>", "API base URL").option("--token <token>", "Auth token").action(async (opts, cmd) => {
|
|
19034
19066
|
const output = getOutput(cmd);
|
|
19035
19067
|
const token = opts.token || getAuthToken();
|
|
@@ -19138,48 +19170,48 @@ async function registerAllCommands(program2) {
|
|
|
19138
19170
|
const { registerProjectsCommand: registerProjectsCommand2 } = await Promise.resolve().then(() => (init_projects2(), exports_projects));
|
|
19139
19171
|
registerLoginCommand2(program2);
|
|
19140
19172
|
registerLogoutCommand2(program2);
|
|
19173
|
+
registerConfigCommand2(program2);
|
|
19141
19174
|
registerNewCommand2(program2);
|
|
19142
19175
|
registerInitCommand2(program2);
|
|
19176
|
+
registerCreateCommand2(program2);
|
|
19177
|
+
registerAddCommand2(program2);
|
|
19178
|
+
registerProjectsCommand2(program2);
|
|
19179
|
+
registerTemplateCommand2(program2);
|
|
19143
19180
|
registerSecretsCommand2(program2);
|
|
19144
|
-
|
|
19145
|
-
|
|
19146
|
-
|
|
19181
|
+
registerDomainsCommand2(program2);
|
|
19182
|
+
registerEndpointKeysCommand2(program2);
|
|
19183
|
+
registerEnvCommand2(program2);
|
|
19147
19184
|
registerDeployCommand2(program2);
|
|
19148
19185
|
registerRollbackCommand2(program2);
|
|
19149
|
-
|
|
19150
|
-
|
|
19151
|
-
|
|
19152
|
-
registerScheduleCommand2(program2);
|
|
19186
|
+
registerDeploymentsCommand2(program2);
|
|
19187
|
+
registerPromoteCommand2(program2);
|
|
19188
|
+
registerCanaryCommand2(program2);
|
|
19153
19189
|
registerDevCommand2(program2);
|
|
19154
19190
|
registerTestCommand2(program2);
|
|
19155
|
-
|
|
19156
|
-
|
|
19191
|
+
registerRunCommand2(program2);
|
|
19192
|
+
registerScheduleCommand2(program2);
|
|
19193
|
+
registerStatusCommand2(program2);
|
|
19194
|
+
registerLogsCommand2(program2);
|
|
19157
19195
|
registerUsageCommand2(program2);
|
|
19158
|
-
|
|
19159
|
-
registerExportCommand2(program2);
|
|
19196
|
+
registerAuditCommand2(program2);
|
|
19160
19197
|
registerReplayCommand2(program2);
|
|
19161
19198
|
registerReplaysCommand2(program2);
|
|
19162
|
-
registerKvCommand2(program2);
|
|
19163
|
-
registerWebhookCommand2(program2);
|
|
19164
|
-
registerTemplateCommand2(program2);
|
|
19165
|
-
registerDeploymentsCommand2(program2);
|
|
19166
19199
|
registerDiagnoseCommand2(program2);
|
|
19167
|
-
registerCreateCommand2(program2);
|
|
19168
|
-
registerAddCommand2(program2);
|
|
19169
19200
|
registerWorkflowsCommand2(program2);
|
|
19170
19201
|
registerWorkflowCommand2(program2);
|
|
19171
19202
|
registerApprovalsCommand2(program2);
|
|
19172
19203
|
registerApproveCommand2(program2);
|
|
19173
19204
|
registerRejectCommand2(program2);
|
|
19174
|
-
registerEnvCommand2(program2);
|
|
19175
|
-
registerPromoteCommand2(program2);
|
|
19176
|
-
registerCanaryCommand2(program2);
|
|
19177
|
-
registerReportsCommand2(program2);
|
|
19178
19205
|
registerHealCommand2(program2);
|
|
19179
|
-
|
|
19206
|
+
registerReportsCommand2(program2);
|
|
19207
|
+
registerWebhookCommand2(program2);
|
|
19208
|
+
registerMarketplaceCommand2(program2);
|
|
19209
|
+
registerKvCommand2(program2);
|
|
19210
|
+
registerExportCommand2(program2);
|
|
19211
|
+
registerOpenApiCommand2(program2);
|
|
19180
19212
|
return program2;
|
|
19181
19213
|
}
|
|
19182
|
-
var CLI_VERSION = "0.1.
|
|
19214
|
+
var CLI_VERSION = "0.1.5";
|
|
19183
19215
|
var init_src3 = __esm(() => {
|
|
19184
19216
|
init_esm();
|
|
19185
19217
|
if (import.meta.url === `file://${realpathSync(process.argv[1] ?? "").replace(/\\/g, "/")}`) {
|
|
@@ -19196,4 +19228,4 @@ export {
|
|
|
19196
19228
|
CLI_VERSION
|
|
19197
19229
|
};
|
|
19198
19230
|
|
|
19199
|
-
//# debugId=
|
|
19231
|
+
//# debugId=CD666733E632C5CB64756E2164756E21
|