@alook/daemon 0.1.41 → 0.1.42
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/cli/index.js +275 -205
- package/dist/index.js +104 -43
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -32231,7 +32231,7 @@ __export(exports_community_machine_schema, {
|
|
|
32231
32231
|
DIAGNOSTIC_REPORT_FAILURE_CODES: () => DIAGNOSTIC_REPORT_FAILURE_CODES
|
|
32232
32232
|
});
|
|
32233
32233
|
|
|
32234
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32234
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/entity.js
|
|
32235
32235
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
32236
32236
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
32237
32237
|
function is(value, type) {
|
|
@@ -32256,7 +32256,7 @@ function is(value, type) {
|
|
|
32256
32256
|
return false;
|
|
32257
32257
|
}
|
|
32258
32258
|
|
|
32259
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32259
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/column.js
|
|
32260
32260
|
class Column {
|
|
32261
32261
|
constructor(table, config2) {
|
|
32262
32262
|
this.table = table;
|
|
@@ -32306,7 +32306,7 @@ class Column {
|
|
|
32306
32306
|
}
|
|
32307
32307
|
}
|
|
32308
32308
|
|
|
32309
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32309
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/column-builder.js
|
|
32310
32310
|
class ColumnBuilder {
|
|
32311
32311
|
static [entityKind] = "ColumnBuilder";
|
|
32312
32312
|
config;
|
|
@@ -32362,20 +32362,20 @@ class ColumnBuilder {
|
|
|
32362
32362
|
}
|
|
32363
32363
|
}
|
|
32364
32364
|
|
|
32365
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32365
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/table.utils.js
|
|
32366
32366
|
var TableName = Symbol.for("drizzle:Name");
|
|
32367
32367
|
|
|
32368
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32368
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/tracing-utils.js
|
|
32369
32369
|
function iife(fn, ...args) {
|
|
32370
32370
|
return fn(...args);
|
|
32371
32371
|
}
|
|
32372
32372
|
|
|
32373
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32373
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
32374
32374
|
function uniqueKeyName(table, columns) {
|
|
32375
32375
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
32376
32376
|
}
|
|
32377
32377
|
|
|
32378
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32378
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
32379
32379
|
class PgColumn extends Column {
|
|
32380
32380
|
constructor(table, config2) {
|
|
32381
32381
|
if (!config2.uniqueName) {
|
|
@@ -32424,7 +32424,7 @@ class ExtraConfigColumn extends PgColumn {
|
|
|
32424
32424
|
}
|
|
32425
32425
|
}
|
|
32426
32426
|
|
|
32427
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32427
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
32428
32428
|
class PgEnumObjectColumn extends PgColumn {
|
|
32429
32429
|
static [entityKind] = "PgEnumObjectColumn";
|
|
32430
32430
|
enum;
|
|
@@ -32454,7 +32454,7 @@ class PgEnumColumn extends PgColumn {
|
|
|
32454
32454
|
}
|
|
32455
32455
|
}
|
|
32456
32456
|
|
|
32457
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32457
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/subquery.js
|
|
32458
32458
|
class Subquery {
|
|
32459
32459
|
static [entityKind] = "Subquery";
|
|
32460
32460
|
constructor(sql, fields, alias, isWith = false, usedTables = []) {
|
|
@@ -32469,10 +32469,10 @@ class Subquery {
|
|
|
32469
32469
|
}
|
|
32470
32470
|
}
|
|
32471
32471
|
|
|
32472
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32473
|
-
var version2 = "0.45.
|
|
32472
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/version.js
|
|
32473
|
+
var version2 = "0.45.3";
|
|
32474
32474
|
|
|
32475
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32475
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/tracing.js
|
|
32476
32476
|
var otel;
|
|
32477
32477
|
var rawTracer;
|
|
32478
32478
|
var tracer = {
|
|
@@ -32499,10 +32499,10 @@ var tracer = {
|
|
|
32499
32499
|
}
|
|
32500
32500
|
};
|
|
32501
32501
|
|
|
32502
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32502
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/view-common.js
|
|
32503
32503
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
32504
32504
|
|
|
32505
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32505
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/table.js
|
|
32506
32506
|
var Schema = Symbol.for("drizzle:Schema");
|
|
32507
32507
|
var Columns = Symbol.for("drizzle:Columns");
|
|
32508
32508
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -32540,7 +32540,7 @@ class Table {
|
|
|
32540
32540
|
}
|
|
32541
32541
|
}
|
|
32542
32542
|
|
|
32543
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32543
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sql/sql.js
|
|
32544
32544
|
function isSQLWrapper(value) {
|
|
32545
32545
|
return value !== null && value !== undefined && typeof value.getSQL === "function";
|
|
32546
32546
|
}
|
|
@@ -32903,7 +32903,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
32903
32903
|
return new SQL([this]);
|
|
32904
32904
|
};
|
|
32905
32905
|
|
|
32906
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32906
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/alias.js
|
|
32907
32907
|
class ColumnAliasProxyHandler {
|
|
32908
32908
|
constructor(table) {
|
|
32909
32909
|
this.table = table;
|
|
@@ -32959,12 +32959,12 @@ class TableAliasProxyHandler {
|
|
|
32959
32959
|
}
|
|
32960
32960
|
}
|
|
32961
32961
|
|
|
32962
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32962
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/alias.js
|
|
32963
32963
|
function alias(table, alias2) {
|
|
32964
32964
|
return new Proxy(table, new TableAliasProxyHandler(alias2, false));
|
|
32965
32965
|
}
|
|
32966
32966
|
|
|
32967
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32967
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/checks.js
|
|
32968
32968
|
class CheckBuilder {
|
|
32969
32969
|
constructor(name, value) {
|
|
32970
32970
|
this.name = name;
|
|
@@ -32991,7 +32991,7 @@ function check2(name, value) {
|
|
|
32991
32991
|
return new CheckBuilder(name, value);
|
|
32992
32992
|
}
|
|
32993
32993
|
|
|
32994
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
32994
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/utils.js
|
|
32995
32995
|
function getColumnNameAndConfig(a, b) {
|
|
32996
32996
|
return {
|
|
32997
32997
|
name: typeof a === "string" && a.length > 0 ? a : "",
|
|
@@ -33000,7 +33000,7 @@ function getColumnNameAndConfig(a, b) {
|
|
|
33000
33000
|
}
|
|
33001
33001
|
var textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder;
|
|
33002
33002
|
|
|
33003
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33003
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/foreign-keys.js
|
|
33004
33004
|
class ForeignKeyBuilder {
|
|
33005
33005
|
static [entityKind] = "SQLiteForeignKeyBuilder";
|
|
33006
33006
|
reference;
|
|
@@ -33068,7 +33068,7 @@ function foreignKey(config2) {
|
|
|
33068
33068
|
return new ForeignKeyBuilder(mappedConfig);
|
|
33069
33069
|
}
|
|
33070
33070
|
|
|
33071
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33071
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/unique-constraint.js
|
|
33072
33072
|
function uniqueKeyName2(table, columns) {
|
|
33073
33073
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
33074
33074
|
}
|
|
@@ -33113,7 +33113,7 @@ class UniqueConstraint {
|
|
|
33113
33113
|
}
|
|
33114
33114
|
}
|
|
33115
33115
|
|
|
33116
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33116
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/columns/common.js
|
|
33117
33117
|
class SQLiteColumnBuilder extends ColumnBuilder {
|
|
33118
33118
|
static [entityKind] = "SQLiteColumnBuilder";
|
|
33119
33119
|
foreignKeyConfigs = [];
|
|
@@ -33164,7 +33164,7 @@ class SQLiteColumn extends Column {
|
|
|
33164
33164
|
static [entityKind] = "SQLiteColumn";
|
|
33165
33165
|
}
|
|
33166
33166
|
|
|
33167
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33167
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/columns/blob.js
|
|
33168
33168
|
class SQLiteBigIntBuilder extends SQLiteColumnBuilder {
|
|
33169
33169
|
static [entityKind] = "SQLiteBigIntBuilder";
|
|
33170
33170
|
constructor(name) {
|
|
@@ -33252,7 +33252,7 @@ function blob(a, b) {
|
|
|
33252
33252
|
return new SQLiteBlobBufferBuilder(name);
|
|
33253
33253
|
}
|
|
33254
33254
|
|
|
33255
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33255
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/columns/custom.js
|
|
33256
33256
|
class SQLiteCustomColumnBuilder extends SQLiteColumnBuilder {
|
|
33257
33257
|
static [entityKind] = "SQLiteCustomColumnBuilder";
|
|
33258
33258
|
constructor(name, fieldConfig, customTypeParams) {
|
|
@@ -33293,7 +33293,7 @@ function customType(customTypeParams) {
|
|
|
33293
33293
|
};
|
|
33294
33294
|
}
|
|
33295
33295
|
|
|
33296
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33296
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/columns/integer.js
|
|
33297
33297
|
class SQLiteBaseIntegerBuilder extends SQLiteColumnBuilder {
|
|
33298
33298
|
static [entityKind] = "SQLiteBaseIntegerBuilder";
|
|
33299
33299
|
constructor(name, dataType, columnType) {
|
|
@@ -33395,7 +33395,7 @@ function integer2(a, b) {
|
|
|
33395
33395
|
return new SQLiteIntegerBuilder(name);
|
|
33396
33396
|
}
|
|
33397
33397
|
|
|
33398
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33398
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/columns/numeric.js
|
|
33399
33399
|
class SQLiteNumericBuilder extends SQLiteColumnBuilder {
|
|
33400
33400
|
static [entityKind] = "SQLiteNumericBuilder";
|
|
33401
33401
|
constructor(name) {
|
|
@@ -33465,7 +33465,7 @@ function numeric(a, b) {
|
|
|
33465
33465
|
return mode === "number" ? new SQLiteNumericNumberBuilder(name) : mode === "bigint" ? new SQLiteNumericBigIntBuilder(name) : new SQLiteNumericBuilder(name);
|
|
33466
33466
|
}
|
|
33467
33467
|
|
|
33468
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33468
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/columns/real.js
|
|
33469
33469
|
class SQLiteRealBuilder extends SQLiteColumnBuilder {
|
|
33470
33470
|
static [entityKind] = "SQLiteRealBuilder";
|
|
33471
33471
|
constructor(name) {
|
|
@@ -33486,7 +33486,7 @@ function real(name) {
|
|
|
33486
33486
|
return new SQLiteRealBuilder(name ?? "");
|
|
33487
33487
|
}
|
|
33488
33488
|
|
|
33489
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33489
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/columns/text.js
|
|
33490
33490
|
class SQLiteTextBuilder extends SQLiteColumnBuilder {
|
|
33491
33491
|
static [entityKind] = "SQLiteTextBuilder";
|
|
33492
33492
|
constructor(name, config2) {
|
|
@@ -33541,7 +33541,7 @@ function text(a, b = {}) {
|
|
|
33541
33541
|
return new SQLiteTextBuilder(name, config2);
|
|
33542
33542
|
}
|
|
33543
33543
|
|
|
33544
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33544
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/columns/all.js
|
|
33545
33545
|
function getSQLiteColumnBuilders() {
|
|
33546
33546
|
return {
|
|
33547
33547
|
blob,
|
|
@@ -33553,7 +33553,7 @@ function getSQLiteColumnBuilders() {
|
|
|
33553
33553
|
};
|
|
33554
33554
|
}
|
|
33555
33555
|
|
|
33556
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33556
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/table.js
|
|
33557
33557
|
var InlineForeignKeys = Symbol.for("drizzle:SQLiteInlineForeignKeys");
|
|
33558
33558
|
|
|
33559
33559
|
class SQLiteTable extends Table {
|
|
@@ -33587,7 +33587,7 @@ var sqliteTable = (name, columns, extraConfig) => {
|
|
|
33587
33587
|
return sqliteTableBase(name, columns, extraConfig);
|
|
33588
33588
|
};
|
|
33589
33589
|
|
|
33590
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33590
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/indexes.js
|
|
33591
33591
|
class IndexBuilderOn {
|
|
33592
33592
|
constructor(name, unique2) {
|
|
33593
33593
|
this.name = name;
|
|
@@ -33633,7 +33633,7 @@ function uniqueIndex(name) {
|
|
|
33633
33633
|
return new IndexBuilderOn(name, true);
|
|
33634
33634
|
}
|
|
33635
33635
|
|
|
33636
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33636
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sqlite-core/primary-keys.js
|
|
33637
33637
|
function primaryKey(...config2) {
|
|
33638
33638
|
if (config2[0].columns) {
|
|
33639
33639
|
return new PrimaryKeyBuilder(config2[0].columns, config2[0].name);
|
|
@@ -33668,7 +33668,7 @@ class PrimaryKey {
|
|
|
33668
33668
|
}
|
|
33669
33669
|
}
|
|
33670
33670
|
|
|
33671
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33671
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
33672
33672
|
function bindIfParam(value, column) {
|
|
33673
33673
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
|
|
33674
33674
|
return new Param(value, column);
|
|
@@ -33696,7 +33696,7 @@ function isNotNull(value) {
|
|
|
33696
33696
|
return sql`${value} is not null`;
|
|
33697
33697
|
}
|
|
33698
33698
|
|
|
33699
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.
|
|
33699
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.3_@cloudflare+workers-types@5.20260924.1_@opentelemetry+api@1.9.1_@typ_49048b3d7117d2a8abc613de6d00d564/node_modules/drizzle-orm/sql/expressions/select.js
|
|
33700
33700
|
function desc(column) {
|
|
33701
33701
|
return sql`${column} desc`;
|
|
33702
33702
|
}
|
|
@@ -36082,6 +36082,66 @@ function writeStatusFile(path13, snapshot) {
|
|
|
36082
36082
|
renameSync2(tmp, path13);
|
|
36083
36083
|
} catch {}
|
|
36084
36084
|
}
|
|
36085
|
+
// ../shared/src/community-attention.ts
|
|
36086
|
+
var id = exports_external.string().min(1);
|
|
36087
|
+
var AttentionScopeSchema = exports_external.strictObject({
|
|
36088
|
+
scopeId: id,
|
|
36089
|
+
channelId: id,
|
|
36090
|
+
serverId: id.nullable().optional(),
|
|
36091
|
+
parentChannelId: id.nullable().optional(),
|
|
36092
|
+
ordinaryUnread: exports_external.boolean(),
|
|
36093
|
+
lastUnreadSeq: exports_external.number().int().nonnegative(),
|
|
36094
|
+
lastAttentionSeq: exports_external.number().int().nonnegative().nullable().optional(),
|
|
36095
|
+
attentionCount: exports_external.number().int().nonnegative()
|
|
36096
|
+
});
|
|
36097
|
+
var AttentionItemSchema = exports_external.strictObject({
|
|
36098
|
+
id,
|
|
36099
|
+
kind: exports_external.enum(["mention", "reply", "friend_request"]),
|
|
36100
|
+
sourceId: id,
|
|
36101
|
+
scopeId: id.nullable().optional(),
|
|
36102
|
+
messageId: id.nullable().optional(),
|
|
36103
|
+
actorUserId: id,
|
|
36104
|
+
createdAt: exports_external.string()
|
|
36105
|
+
}).superRefine((item, ctx) => {
|
|
36106
|
+
if (item.kind === "friend_request") {
|
|
36107
|
+
if (item.scopeId != null || item.messageId != null) {
|
|
36108
|
+
ctx.addIssue({ code: "custom", message: "friend request cannot reference a scope or message" });
|
|
36109
|
+
}
|
|
36110
|
+
return;
|
|
36111
|
+
}
|
|
36112
|
+
if (!item.scopeId || !item.messageId) {
|
|
36113
|
+
ctx.addIssue({ code: "custom", message: "message attention requires scope and message refs" });
|
|
36114
|
+
}
|
|
36115
|
+
});
|
|
36116
|
+
var AttentionIncludedSchema = exports_external.strictObject({
|
|
36117
|
+
profiles: exports_external.array(exports_external.unknown()).optional(),
|
|
36118
|
+
messages: exports_external.array(exports_external.unknown()).optional()
|
|
36119
|
+
});
|
|
36120
|
+
var AccountAttentionSnapshotSchema = exports_external.strictObject({
|
|
36121
|
+
scopes: exports_external.array(AttentionScopeSchema),
|
|
36122
|
+
items: exports_external.array(AttentionItemSchema),
|
|
36123
|
+
limit: exports_external.number().int().positive(),
|
|
36124
|
+
truncated: exports_external.boolean(),
|
|
36125
|
+
included: AttentionIncludedSchema.optional()
|
|
36126
|
+
}).superRefine((snapshot, ctx) => {
|
|
36127
|
+
const scopeIds = new Set;
|
|
36128
|
+
for (const scope of snapshot.scopes) {
|
|
36129
|
+
if (scopeIds.has(scope.scopeId)) {
|
|
36130
|
+
ctx.addIssue({ code: "custom", message: `duplicate attention scope: ${scope.scopeId}` });
|
|
36131
|
+
}
|
|
36132
|
+
scopeIds.add(scope.scopeId);
|
|
36133
|
+
}
|
|
36134
|
+
const itemIds = new Set;
|
|
36135
|
+
for (const item of snapshot.items) {
|
|
36136
|
+
if (itemIds.has(item.id)) {
|
|
36137
|
+
ctx.addIssue({ code: "custom", message: `duplicate attention item: ${item.id}` });
|
|
36138
|
+
}
|
|
36139
|
+
itemIds.add(item.id);
|
|
36140
|
+
if (item.scopeId && !scopeIds.has(item.scopeId)) {
|
|
36141
|
+
ctx.addIssue({ code: "custom", message: `attention item references missing scope: ${item.scopeId}` });
|
|
36142
|
+
}
|
|
36143
|
+
}
|
|
36144
|
+
});
|
|
36085
36145
|
// ../shared/src/constants/community.ts
|
|
36086
36146
|
var MAX_FOLDER_NAME_LENGTH = 100;
|
|
36087
36147
|
var MAX_PROFILE_NAME_LENGTH = 100;
|
|
@@ -36831,11 +36891,11 @@ var CommunityMachineRuntimeListSchema = exports_external.array(CommunityMachineR
|
|
|
36831
36891
|
var CommunityRunningAgentListSchema = exports_external.array(exports_external.string()).transform((list) => {
|
|
36832
36892
|
const seen = new Set;
|
|
36833
36893
|
const out = [];
|
|
36834
|
-
for (const
|
|
36835
|
-
if (seen.has(
|
|
36894
|
+
for (const id2 of list) {
|
|
36895
|
+
if (seen.has(id2))
|
|
36836
36896
|
continue;
|
|
36837
|
-
seen.add(
|
|
36838
|
-
out.push(
|
|
36897
|
+
seen.add(id2);
|
|
36898
|
+
out.push(id2);
|
|
36839
36899
|
}
|
|
36840
36900
|
return out;
|
|
36841
36901
|
});
|
|
@@ -37012,6 +37072,7 @@ var CommunityAgentSendRequestSchema = exports_external.object({
|
|
|
37012
37072
|
attachments: exports_external.array(exports_external.string().min(1)).max(MAX_ATTACHMENTS_PER_MESSAGE).default([]),
|
|
37013
37073
|
seenUpToSeq: CommunityAgentSeqSchema.optional(),
|
|
37014
37074
|
replyToSeq: CommunityAgentPositiveSeqSchema.optional(),
|
|
37075
|
+
force: exports_external.boolean().optional(),
|
|
37015
37076
|
nonce: exports_external.string().min(1).max(128).optional()
|
|
37016
37077
|
}).refine((d) => d.content.text.trim().length > 0 || d.attachments.length > 0, { message: "message must have text or attachments" });
|
|
37017
37078
|
var CommunityAgentAttachmentUploadResponseSchema = exports_external.object({
|
|
@@ -40529,20 +40590,20 @@ async function detectRuntimes() {
|
|
|
40529
40590
|
const ids = listRuntimeIds();
|
|
40530
40591
|
const results = [];
|
|
40531
40592
|
const nowIso = new Date().toISOString();
|
|
40532
|
-
for (const
|
|
40593
|
+
for (const id2 of ids) {
|
|
40533
40594
|
try {
|
|
40534
|
-
const driver = getDriver(
|
|
40595
|
+
const driver = getDriver(id2);
|
|
40535
40596
|
const probe = await driver.probe();
|
|
40536
40597
|
if (probe.status === "healthy") {
|
|
40537
40598
|
results.push({
|
|
40538
|
-
id,
|
|
40599
|
+
id: id2,
|
|
40539
40600
|
status: "healthy",
|
|
40540
40601
|
version: probe.version,
|
|
40541
40602
|
reasoning: probe.reasoning
|
|
40542
40603
|
});
|
|
40543
40604
|
} else {
|
|
40544
40605
|
results.push({
|
|
40545
|
-
id,
|
|
40606
|
+
id: id2,
|
|
40546
40607
|
status: "unhealthy",
|
|
40547
40608
|
lastError: probe.error.code ?? "probe_failed",
|
|
40548
40609
|
lastErrorAt: nowIso
|
|
@@ -40550,7 +40611,7 @@ async function detectRuntimes() {
|
|
|
40550
40611
|
}
|
|
40551
40612
|
} catch (err) {
|
|
40552
40613
|
results.push({
|
|
40553
|
-
id,
|
|
40614
|
+
id: id2,
|
|
40554
40615
|
status: "unhealthy",
|
|
40555
40616
|
lastError: err?.code ?? "probe_threw",
|
|
40556
40617
|
lastErrorAt: nowIso
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alook/daemon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42",
|
|
4
4
|
"description": "Alook agent daemon — host-side runtime backend, process manager, credential proxy, and control plane.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/alookai/alook#readme",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"@types/node": "^20.0.0",
|
|
60
60
|
"@types/ws": "^8.18.1",
|
|
61
61
|
"eslint": "^9.39.5",
|
|
62
|
-
"tsx": "^4.23.
|
|
62
|
+
"tsx": "^4.23.15",
|
|
63
63
|
"typescript": "^6.0.3",
|
|
64
|
-
"typescript-eslint": "^8.70.
|
|
64
|
+
"typescript-eslint": "^8.70.1",
|
|
65
65
|
"vitest": "4.1.11"
|
|
66
66
|
}
|
|
67
67
|
}
|