@nylorun/runtime 0.36.1-beta → 0.37.0-beta
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/CHANGELOG.md +49 -0
- package/README.md +10 -0
- package/dist/api/a2a/card.d.ts +10 -4
- package/dist/api/a2a/card.js +18 -6
- package/dist/api/a2a/endpoint.d.ts +5 -2
- package/dist/api/a2a/endpoint.js +31 -9
- package/dist/api/a2a/extensions.d.ts +41 -0
- package/dist/api/a2a/extensions.js +92 -0
- package/dist/api/a2a/list.d.ts +60 -0
- package/dist/api/a2a/list.js +169 -0
- package/dist/api/a2a/protocol.d.ts +105 -9
- package/dist/api/a2a/protocol.js +169 -18
- package/dist/api/a2a/push.d.ts +76 -0
- package/dist/api/a2a/push.js +305 -0
- package/dist/api/a2a/routes.d.ts +12 -6
- package/dist/api/a2a/routes.js +409 -112
- package/dist/api/a2a/tasks.d.ts +72 -4
- package/dist/api/a2a/tasks.js +305 -27
- package/dist/api/components.d.ts +532 -0
- package/dist/api/components.js +3 -1
- package/dist/api/http/app.js +2 -0
- package/dist/api/http/routes/artifacts.js +19 -0
- package/dist/api/http/routes/turns.d.ts +18 -0
- package/dist/api/http/routes/turns.js +67 -0
- package/dist/api/inbound-files.d.ts +12 -1
- package/dist/api/inbound-files.js +44 -0
- package/dist/api/openapi.js +7 -2
- package/dist/host/config-for.d.ts +2 -0
- package/dist/host/config-for.js +1 -0
- package/dist/host/main.js +1 -0
- package/dist/host/stack-config.d.ts +16 -0
- package/dist/host/stack-config.js +30 -0
- package/dist/management-openapi.json +5 -2
- package/dist/openapi.json +1485 -738
- package/dist/reads/types.d.ts +19 -0
- package/dist/store/postgres/drizzle/0039_a2a_push.sql +32 -0
- package/dist/store/postgres/drizzle/0040_turn_index.sql +23 -0
- package/dist/store/postgres/drizzle/0041_turn_index_backfill.sql +88 -0
- package/dist/store/postgres/drizzle/meta/_journal.json +21 -0
- package/dist/store/postgres/reads.js +41 -1
- package/dist/store/postgres/schema.d.ts +1296 -534
- package/dist/store/postgres/schema.js +92 -0
- package/dist/store/postgres/store.js +133 -3
- package/dist/store/postgres/turns.d.ts +62 -0
- package/dist/store/postgres/turns.js +153 -0
- package/dist/store/types.d.ts +73 -3
- package/dist/tenant/runtime.js +7 -5
- package/dist/tenant/session-model.d.ts +11 -1
- package/dist/tenant/session-model.js +34 -5
- package/dist/tenant/sessions.d.ts +2 -1
- package/dist/tenant/sessions.js +8 -2
- package/dist/tenant/sweep.d.ts +3 -0
- package/dist/tenant/sweep.js +39 -11
- package/dist/tenant/types.d.ts +23 -0
- package/dist/tuning.d.ts +9 -0
- package/dist/tuning.js +11 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
|
@@ -4001,24 +4001,27 @@ export declare const modelBudgets: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
4001
4001
|
dialect: 'pg';
|
|
4002
4002
|
}>;
|
|
4003
4003
|
/**
|
|
4004
|
-
*
|
|
4005
|
-
*
|
|
4006
|
-
*
|
|
4004
|
+
* The turn index (A2A design §9, Host feature `turns`): one row per turn, written by `Tx.event`
|
|
4005
|
+
* in the transaction of each event that changes the turn (`store/postgres/turns.ts`), so it
|
|
4006
|
+
* agrees with the session's log. The session's Agent, owner and A2A context are copied in when
|
|
4007
|
+
* the turn starts. `txid` is the transaction that last changed the row: the change feed reads
|
|
4008
|
+
* rows in its order, only below every transaction still running (`pg_snapshot_xmin`), as the
|
|
4009
|
+
* model call export does. `firstSeq` and `lastSeq` bound the turn's lifecycle events in the log.
|
|
4007
4010
|
*/
|
|
4008
|
-
export declare const
|
|
4009
|
-
name: "
|
|
4011
|
+
export declare const turns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4012
|
+
name: "turns";
|
|
4010
4013
|
schema: "nylorun";
|
|
4011
4014
|
columns: {
|
|
4012
|
-
|
|
4013
|
-
name: "
|
|
4014
|
-
tableName: "
|
|
4015
|
+
sessionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4016
|
+
name: "sessionId";
|
|
4017
|
+
tableName: "turns";
|
|
4015
4018
|
dataType: "custom";
|
|
4016
4019
|
columnType: "PgCustomColumn";
|
|
4017
4020
|
data: string;
|
|
4018
4021
|
driverParam: string;
|
|
4019
4022
|
notNull: true;
|
|
4020
4023
|
hasDefault: false;
|
|
4021
|
-
isPrimaryKey:
|
|
4024
|
+
isPrimaryKey: false;
|
|
4022
4025
|
isAutoincrement: false;
|
|
4023
4026
|
hasRuntimeDefault: false;
|
|
4024
4027
|
enumValues: undefined;
|
|
@@ -4028,9 +4031,9 @@ export declare const sessionQueue: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
4028
4031
|
}, {}, {
|
|
4029
4032
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4030
4033
|
}>;
|
|
4031
|
-
|
|
4032
|
-
name: "
|
|
4033
|
-
tableName: "
|
|
4034
|
+
turnId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4035
|
+
name: "turnId";
|
|
4036
|
+
tableName: "turns";
|
|
4034
4037
|
dataType: "custom";
|
|
4035
4038
|
columnType: "PgCustomColumn";
|
|
4036
4039
|
data: string;
|
|
@@ -4047,30 +4050,13 @@ export declare const sessionQueue: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
4047
4050
|
}, {}, {
|
|
4048
4051
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4049
4052
|
}>;
|
|
4050
|
-
|
|
4051
|
-
name: "
|
|
4052
|
-
tableName: "
|
|
4053
|
-
dataType: "number";
|
|
4054
|
-
columnType: "PgBigInt53";
|
|
4055
|
-
data: number;
|
|
4056
|
-
driverParam: string | number;
|
|
4057
|
-
notNull: true;
|
|
4058
|
-
hasDefault: false;
|
|
4059
|
-
isPrimaryKey: false;
|
|
4060
|
-
isAutoincrement: false;
|
|
4061
|
-
hasRuntimeDefault: false;
|
|
4062
|
-
enumValues: undefined;
|
|
4063
|
-
baseColumn: never;
|
|
4064
|
-
identity: undefined;
|
|
4065
|
-
generated: undefined;
|
|
4066
|
-
}, {}, {}>;
|
|
4067
|
-
command: import("drizzle-orm/pg-core").PgColumn<{
|
|
4068
|
-
name: "command";
|
|
4069
|
-
tableName: "session_queue";
|
|
4053
|
+
agentId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4054
|
+
name: "agentId";
|
|
4055
|
+
tableName: "turns";
|
|
4070
4056
|
dataType: "custom";
|
|
4071
4057
|
columnType: "PgCustomColumn";
|
|
4072
|
-
data:
|
|
4073
|
-
driverParam:
|
|
4058
|
+
data: string;
|
|
4059
|
+
driverParam: string;
|
|
4074
4060
|
notNull: true;
|
|
4075
4061
|
hasDefault: false;
|
|
4076
4062
|
isPrimaryKey: false;
|
|
@@ -4083,14 +4069,14 @@ export declare const sessionQueue: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
4083
4069
|
}, {}, {
|
|
4084
4070
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4085
4071
|
}>;
|
|
4086
|
-
|
|
4087
|
-
name: "
|
|
4088
|
-
tableName: "
|
|
4072
|
+
ownerUserId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4073
|
+
name: "ownerUserId";
|
|
4074
|
+
tableName: "turns";
|
|
4089
4075
|
dataType: "custom";
|
|
4090
4076
|
columnType: "PgCustomColumn";
|
|
4091
|
-
data:
|
|
4092
|
-
driverParam:
|
|
4093
|
-
notNull:
|
|
4077
|
+
data: string;
|
|
4078
|
+
driverParam: string;
|
|
4079
|
+
notNull: false;
|
|
4094
4080
|
hasDefault: false;
|
|
4095
4081
|
isPrimaryKey: false;
|
|
4096
4082
|
isAutoincrement: false;
|
|
@@ -4102,14 +4088,14 @@ export declare const sessionQueue: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
4102
4088
|
}, {}, {
|
|
4103
4089
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4104
4090
|
}>;
|
|
4105
|
-
|
|
4106
|
-
name: "
|
|
4107
|
-
tableName: "
|
|
4091
|
+
a2aContextId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4092
|
+
name: "a2aContextId";
|
|
4093
|
+
tableName: "turns";
|
|
4108
4094
|
dataType: "custom";
|
|
4109
4095
|
columnType: "PgCustomColumn";
|
|
4110
|
-
data:
|
|
4111
|
-
driverParam:
|
|
4112
|
-
notNull:
|
|
4096
|
+
data: string;
|
|
4097
|
+
driverParam: string;
|
|
4098
|
+
notNull: false;
|
|
4113
4099
|
hasDefault: false;
|
|
4114
4100
|
isPrimaryKey: false;
|
|
4115
4101
|
isAutoincrement: false;
|
|
@@ -4121,33 +4107,31 @@ export declare const sessionQueue: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
4121
4107
|
}, {}, {
|
|
4122
4108
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4123
4109
|
}>;
|
|
4124
|
-
|
|
4125
|
-
name: "
|
|
4126
|
-
tableName: "
|
|
4127
|
-
dataType: "
|
|
4128
|
-
columnType: "
|
|
4129
|
-
data:
|
|
4130
|
-
driverParam:
|
|
4110
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
4111
|
+
name: "status";
|
|
4112
|
+
tableName: "turns";
|
|
4113
|
+
dataType: "string";
|
|
4114
|
+
columnType: "PgText";
|
|
4115
|
+
data: "cancelled" | "completed" | "failed" | "paused" | "running";
|
|
4116
|
+
driverParam: string;
|
|
4131
4117
|
notNull: true;
|
|
4132
4118
|
hasDefault: false;
|
|
4133
4119
|
isPrimaryKey: false;
|
|
4134
4120
|
isAutoincrement: false;
|
|
4135
4121
|
hasRuntimeDefault: false;
|
|
4136
|
-
enumValues:
|
|
4122
|
+
enumValues: ["running", "paused", "completed", "failed", "cancelled"];
|
|
4137
4123
|
baseColumn: never;
|
|
4138
4124
|
identity: undefined;
|
|
4139
4125
|
generated: undefined;
|
|
4140
|
-
}, {}, {
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
name: "trace";
|
|
4145
|
-
tableName: "session_queue";
|
|
4126
|
+
}, {}, {}>;
|
|
4127
|
+
startedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4128
|
+
name: "startedAt";
|
|
4129
|
+
tableName: "turns";
|
|
4146
4130
|
dataType: "custom";
|
|
4147
4131
|
columnType: "PgCustomColumn";
|
|
4148
|
-
data:
|
|
4149
|
-
driverParam:
|
|
4150
|
-
notNull:
|
|
4132
|
+
data: string;
|
|
4133
|
+
driverParam: string;
|
|
4134
|
+
notNull: true;
|
|
4151
4135
|
hasDefault: false;
|
|
4152
4136
|
isPrimaryKey: false;
|
|
4153
4137
|
isAutoincrement: false;
|
|
@@ -4159,13 +4143,13 @@ export declare const sessionQueue: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
4159
4143
|
}, {}, {
|
|
4160
4144
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4161
4145
|
}>;
|
|
4162
|
-
|
|
4163
|
-
name: "
|
|
4164
|
-
tableName: "
|
|
4146
|
+
endedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4147
|
+
name: "endedAt";
|
|
4148
|
+
tableName: "turns";
|
|
4165
4149
|
dataType: "custom";
|
|
4166
4150
|
columnType: "PgCustomColumn";
|
|
4167
|
-
data:
|
|
4168
|
-
driverParam:
|
|
4151
|
+
data: string;
|
|
4152
|
+
driverParam: string;
|
|
4169
4153
|
notNull: false;
|
|
4170
4154
|
hasDefault: false;
|
|
4171
4155
|
isPrimaryKey: false;
|
|
@@ -4178,9 +4162,9 @@ export declare const sessionQueue: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
4178
4162
|
}, {}, {
|
|
4179
4163
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4180
4164
|
}>;
|
|
4181
|
-
|
|
4182
|
-
name: "
|
|
4183
|
-
tableName: "
|
|
4165
|
+
changedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4166
|
+
name: "changedAt";
|
|
4167
|
+
tableName: "turns";
|
|
4184
4168
|
dataType: "custom";
|
|
4185
4169
|
columnType: "PgCustomColumn";
|
|
4186
4170
|
data: string;
|
|
@@ -4197,30 +4181,16 @@ export declare const sessionQueue: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
4197
4181
|
}, {}, {
|
|
4198
4182
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4199
4183
|
}>;
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
/**
|
|
4204
|
-
* The Tool Gate's keyed MCP calls (F4.1 G3): one row per call, written by the gates service
|
|
4205
|
-
* before it calls the server and given the answer after. A re-send whose row has an answer
|
|
4206
|
-
* gets it; one whose row has none, and that the gateway no longer runs, was lost with an
|
|
4207
|
-
* earlier gateway and answers `uncertain`, so a call is never run twice. Rows are deleted a
|
|
4208
|
-
* day after they settle.
|
|
4209
|
-
*/
|
|
4210
|
-
export declare const toolCrossings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4211
|
-
name: "tool_crossings";
|
|
4212
|
-
schema: "nylorun";
|
|
4213
|
-
columns: {
|
|
4214
|
-
key: import("drizzle-orm/pg-core").PgColumn<{
|
|
4215
|
-
name: "key";
|
|
4216
|
-
tableName: "tool_crossings";
|
|
4184
|
+
totals: import("drizzle-orm/pg-core").PgColumn<{
|
|
4185
|
+
name: "totals";
|
|
4186
|
+
tableName: "turns";
|
|
4217
4187
|
dataType: "custom";
|
|
4218
4188
|
columnType: "PgCustomColumn";
|
|
4219
|
-
data:
|
|
4220
|
-
driverParam:
|
|
4221
|
-
notNull:
|
|
4189
|
+
data: unknown;
|
|
4190
|
+
driverParam: unknown;
|
|
4191
|
+
notNull: false;
|
|
4222
4192
|
hasDefault: false;
|
|
4223
|
-
isPrimaryKey:
|
|
4193
|
+
isPrimaryKey: false;
|
|
4224
4194
|
isAutoincrement: false;
|
|
4225
4195
|
hasRuntimeDefault: false;
|
|
4226
4196
|
enumValues: undefined;
|
|
@@ -4230,30 +4200,73 @@ export declare const toolCrossings: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
4230
4200
|
}, {}, {
|
|
4231
4201
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4232
4202
|
}>;
|
|
4233
|
-
|
|
4234
|
-
name: "
|
|
4235
|
-
tableName: "
|
|
4203
|
+
waitingFor: import("drizzle-orm/pg-core").PgColumn<{
|
|
4204
|
+
name: "waitingFor";
|
|
4205
|
+
tableName: "turns";
|
|
4236
4206
|
dataType: "string";
|
|
4237
4207
|
columnType: "PgText";
|
|
4238
|
-
data:
|
|
4208
|
+
data: "approval" | "connection" | "question";
|
|
4239
4209
|
driverParam: string;
|
|
4240
|
-
notNull:
|
|
4210
|
+
notNull: false;
|
|
4241
4211
|
hasDefault: false;
|
|
4242
4212
|
isPrimaryKey: false;
|
|
4243
4213
|
isAutoincrement: false;
|
|
4244
4214
|
hasRuntimeDefault: false;
|
|
4245
|
-
enumValues: [
|
|
4215
|
+
enumValues: ["question", "approval", "connection"];
|
|
4246
4216
|
baseColumn: never;
|
|
4247
4217
|
identity: undefined;
|
|
4248
4218
|
generated: undefined;
|
|
4249
4219
|
}, {}, {}>;
|
|
4250
|
-
|
|
4251
|
-
name: "
|
|
4252
|
-
tableName: "
|
|
4253
|
-
dataType: "
|
|
4254
|
-
columnType: "
|
|
4255
|
-
data: string;
|
|
4256
|
-
driverParam: string;
|
|
4220
|
+
queuedMessageIds: import("drizzle-orm/pg-core").PgColumn<{
|
|
4221
|
+
name: "queuedMessageIds";
|
|
4222
|
+
tableName: "turns";
|
|
4223
|
+
dataType: "array";
|
|
4224
|
+
columnType: "PgArray";
|
|
4225
|
+
data: string[];
|
|
4226
|
+
driverParam: string | string[];
|
|
4227
|
+
notNull: true;
|
|
4228
|
+
hasDefault: true;
|
|
4229
|
+
isPrimaryKey: false;
|
|
4230
|
+
isAutoincrement: false;
|
|
4231
|
+
hasRuntimeDefault: false;
|
|
4232
|
+
enumValues: [string, ...string[]];
|
|
4233
|
+
baseColumn: import("drizzle-orm").Column<{
|
|
4234
|
+
name: "";
|
|
4235
|
+
tableName: "turns";
|
|
4236
|
+
dataType: "string";
|
|
4237
|
+
columnType: "PgText";
|
|
4238
|
+
data: string;
|
|
4239
|
+
driverParam: string;
|
|
4240
|
+
notNull: false;
|
|
4241
|
+
hasDefault: false;
|
|
4242
|
+
isPrimaryKey: false;
|
|
4243
|
+
isAutoincrement: false;
|
|
4244
|
+
hasRuntimeDefault: false;
|
|
4245
|
+
enumValues: [string, ...string[]];
|
|
4246
|
+
baseColumn: never;
|
|
4247
|
+
identity: undefined;
|
|
4248
|
+
generated: undefined;
|
|
4249
|
+
}, {}, {}>;
|
|
4250
|
+
identity: undefined;
|
|
4251
|
+
generated: undefined;
|
|
4252
|
+
}, {}, {
|
|
4253
|
+
baseBuilder: import("drizzle-orm/pg-core").PgColumnBuilder<{
|
|
4254
|
+
name: "";
|
|
4255
|
+
dataType: 'string';
|
|
4256
|
+
columnType: 'PgText';
|
|
4257
|
+
data: string;
|
|
4258
|
+
enumValues: [string, ...string[]];
|
|
4259
|
+
driverParam: string;
|
|
4260
|
+
}, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
|
|
4261
|
+
size: undefined;
|
|
4262
|
+
}>;
|
|
4263
|
+
firstSeq: import("drizzle-orm/pg-core").PgColumn<{
|
|
4264
|
+
name: "firstSeq";
|
|
4265
|
+
tableName: "turns";
|
|
4266
|
+
dataType: "number";
|
|
4267
|
+
columnType: "PgBigInt53";
|
|
4268
|
+
data: number;
|
|
4269
|
+
driverParam: string | number;
|
|
4257
4270
|
notNull: true;
|
|
4258
4271
|
hasDefault: false;
|
|
4259
4272
|
isPrimaryKey: false;
|
|
@@ -4263,17 +4276,15 @@ export declare const toolCrossings: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
4263
4276
|
baseColumn: never;
|
|
4264
4277
|
identity: undefined;
|
|
4265
4278
|
generated: undefined;
|
|
4266
|
-
}, {}, {
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
driverParam: string;
|
|
4276
|
-
notNull: false;
|
|
4279
|
+
}, {}, {}>;
|
|
4280
|
+
lastSeq: import("drizzle-orm/pg-core").PgColumn<{
|
|
4281
|
+
name: "lastSeq";
|
|
4282
|
+
tableName: "turns";
|
|
4283
|
+
dataType: "number";
|
|
4284
|
+
columnType: "PgBigInt53";
|
|
4285
|
+
data: number;
|
|
4286
|
+
driverParam: string | number;
|
|
4287
|
+
notNull: true;
|
|
4277
4288
|
hasDefault: false;
|
|
4278
4289
|
isPrimaryKey: false;
|
|
4279
4290
|
isAutoincrement: false;
|
|
@@ -4282,18 +4293,16 @@ export declare const toolCrossings: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
4282
4293
|
baseColumn: never;
|
|
4283
4294
|
identity: undefined;
|
|
4284
4295
|
generated: undefined;
|
|
4285
|
-
}, {}, {
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
name: "answer";
|
|
4290
|
-
tableName: "tool_crossings";
|
|
4296
|
+
}, {}, {}>;
|
|
4297
|
+
txid: import("drizzle-orm/pg-core").PgColumn<{
|
|
4298
|
+
name: "txid";
|
|
4299
|
+
tableName: "turns";
|
|
4291
4300
|
dataType: "custom";
|
|
4292
4301
|
columnType: "PgCustomColumn";
|
|
4293
|
-
data:
|
|
4302
|
+
data: string;
|
|
4294
4303
|
driverParam: unknown;
|
|
4295
|
-
notNull:
|
|
4296
|
-
hasDefault:
|
|
4304
|
+
notNull: true;
|
|
4305
|
+
hasDefault: true;
|
|
4297
4306
|
isPrimaryKey: false;
|
|
4298
4307
|
isAutoincrement: false;
|
|
4299
4308
|
hasRuntimeDefault: false;
|
|
@@ -4308,18 +4317,17 @@ export declare const toolCrossings: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
4308
4317
|
dialect: 'pg';
|
|
4309
4318
|
}>;
|
|
4310
4319
|
/**
|
|
4311
|
-
*
|
|
4312
|
-
*
|
|
4313
|
-
*
|
|
4314
|
-
* a Tenant-wide one an application made. `latestVersion` is the newest version's number.
|
|
4320
|
+
* Each session's queue (protocol 17, D76): messages that arrived while its turn ran or waited, in
|
|
4321
|
+
* order (`seq`), until a turn takes them. A row holds the command as sent, the turn input its
|
|
4322
|
+
* message gives the engine (file parts pinned when it was queued), and who sent it.
|
|
4315
4323
|
*/
|
|
4316
|
-
export declare const
|
|
4317
|
-
name: "
|
|
4324
|
+
export declare const sessionQueue: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4325
|
+
name: "session_queue";
|
|
4318
4326
|
schema: "nylorun";
|
|
4319
4327
|
columns: {
|
|
4320
4328
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
4321
4329
|
name: "id";
|
|
4322
|
-
tableName: "
|
|
4330
|
+
tableName: "session_queue";
|
|
4323
4331
|
dataType: "custom";
|
|
4324
4332
|
columnType: "PgCustomColumn";
|
|
4325
4333
|
data: string;
|
|
@@ -4336,65 +4344,69 @@ export declare const artifacts: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
4336
4344
|
}, {}, {
|
|
4337
4345
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4338
4346
|
}>;
|
|
4339
|
-
|
|
4340
|
-
name: "
|
|
4341
|
-
tableName: "
|
|
4342
|
-
dataType: "
|
|
4343
|
-
columnType: "
|
|
4344
|
-
data:
|
|
4347
|
+
sessionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4348
|
+
name: "sessionId";
|
|
4349
|
+
tableName: "session_queue";
|
|
4350
|
+
dataType: "custom";
|
|
4351
|
+
columnType: "PgCustomColumn";
|
|
4352
|
+
data: string;
|
|
4345
4353
|
driverParam: string;
|
|
4346
4354
|
notNull: true;
|
|
4347
4355
|
hasDefault: false;
|
|
4348
4356
|
isPrimaryKey: false;
|
|
4349
4357
|
isAutoincrement: false;
|
|
4350
4358
|
hasRuntimeDefault: false;
|
|
4351
|
-
enumValues:
|
|
4359
|
+
enumValues: undefined;
|
|
4352
4360
|
baseColumn: never;
|
|
4353
4361
|
identity: undefined;
|
|
4354
4362
|
generated: undefined;
|
|
4355
|
-
}, {}, {
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
+
}, {}, {
|
|
4364
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4365
|
+
}>;
|
|
4366
|
+
seq: import("drizzle-orm/pg-core").PgColumn<{
|
|
4367
|
+
name: "seq";
|
|
4368
|
+
tableName: "session_queue";
|
|
4369
|
+
dataType: "number";
|
|
4370
|
+
columnType: "PgBigInt53";
|
|
4371
|
+
data: number;
|
|
4372
|
+
driverParam: string | number;
|
|
4363
4373
|
notNull: true;
|
|
4364
4374
|
hasDefault: false;
|
|
4365
4375
|
isPrimaryKey: false;
|
|
4366
4376
|
isAutoincrement: false;
|
|
4367
4377
|
hasRuntimeDefault: false;
|
|
4368
|
-
enumValues:
|
|
4378
|
+
enumValues: undefined;
|
|
4369
4379
|
baseColumn: never;
|
|
4370
4380
|
identity: undefined;
|
|
4371
4381
|
generated: undefined;
|
|
4372
4382
|
}, {}, {}>;
|
|
4373
|
-
|
|
4374
|
-
name: "
|
|
4375
|
-
tableName: "
|
|
4376
|
-
dataType: "
|
|
4377
|
-
columnType: "
|
|
4378
|
-
data:
|
|
4379
|
-
driverParam:
|
|
4383
|
+
command: import("drizzle-orm/pg-core").PgColumn<{
|
|
4384
|
+
name: "command";
|
|
4385
|
+
tableName: "session_queue";
|
|
4386
|
+
dataType: "custom";
|
|
4387
|
+
columnType: "PgCustomColumn";
|
|
4388
|
+
data: unknown;
|
|
4389
|
+
driverParam: unknown;
|
|
4380
4390
|
notNull: true;
|
|
4381
4391
|
hasDefault: false;
|
|
4382
4392
|
isPrimaryKey: false;
|
|
4383
4393
|
isAutoincrement: false;
|
|
4384
4394
|
hasRuntimeDefault: false;
|
|
4385
|
-
enumValues:
|
|
4395
|
+
enumValues: undefined;
|
|
4386
4396
|
baseColumn: never;
|
|
4387
4397
|
identity: undefined;
|
|
4388
4398
|
generated: undefined;
|
|
4389
|
-
}, {}, {
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4399
|
+
}, {}, {
|
|
4400
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4401
|
+
}>;
|
|
4402
|
+
input: import("drizzle-orm/pg-core").PgColumn<{
|
|
4403
|
+
name: "input";
|
|
4404
|
+
tableName: "session_queue";
|
|
4393
4405
|
dataType: "custom";
|
|
4394
4406
|
columnType: "PgCustomColumn";
|
|
4395
|
-
data:
|
|
4396
|
-
driverParam:
|
|
4397
|
-
notNull:
|
|
4407
|
+
data: unknown;
|
|
4408
|
+
driverParam: unknown;
|
|
4409
|
+
notNull: true;
|
|
4398
4410
|
hasDefault: false;
|
|
4399
4411
|
isPrimaryKey: false;
|
|
4400
4412
|
isAutoincrement: false;
|
|
@@ -4406,13 +4418,13 @@ export declare const artifacts: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
4406
4418
|
}, {}, {
|
|
4407
4419
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4408
4420
|
}>;
|
|
4409
|
-
|
|
4410
|
-
name: "
|
|
4411
|
-
tableName: "
|
|
4412
|
-
dataType: "
|
|
4413
|
-
columnType: "
|
|
4414
|
-
data:
|
|
4415
|
-
driverParam:
|
|
4421
|
+
fileArtifacts: import("drizzle-orm/pg-core").PgColumn<{
|
|
4422
|
+
name: "fileArtifacts";
|
|
4423
|
+
tableName: "session_queue";
|
|
4424
|
+
dataType: "custom";
|
|
4425
|
+
columnType: "PgCustomColumn";
|
|
4426
|
+
data: unknown;
|
|
4427
|
+
driverParam: unknown;
|
|
4416
4428
|
notNull: true;
|
|
4417
4429
|
hasDefault: false;
|
|
4418
4430
|
isPrimaryKey: false;
|
|
@@ -4422,32 +4434,36 @@ export declare const artifacts: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
4422
4434
|
baseColumn: never;
|
|
4423
4435
|
identity: undefined;
|
|
4424
4436
|
generated: undefined;
|
|
4425
|
-
}, {}, {
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4437
|
+
}, {}, {
|
|
4438
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4439
|
+
}>;
|
|
4440
|
+
writer: import("drizzle-orm/pg-core").PgColumn<{
|
|
4441
|
+
name: "writer";
|
|
4442
|
+
tableName: "session_queue";
|
|
4443
|
+
dataType: "custom";
|
|
4444
|
+
columnType: "PgCustomColumn";
|
|
4445
|
+
data: unknown;
|
|
4446
|
+
driverParam: unknown;
|
|
4447
|
+
notNull: true;
|
|
4434
4448
|
hasDefault: false;
|
|
4435
4449
|
isPrimaryKey: false;
|
|
4436
4450
|
isAutoincrement: false;
|
|
4437
4451
|
hasRuntimeDefault: false;
|
|
4438
|
-
enumValues:
|
|
4452
|
+
enumValues: undefined;
|
|
4439
4453
|
baseColumn: never;
|
|
4440
4454
|
identity: undefined;
|
|
4441
4455
|
generated: undefined;
|
|
4442
|
-
}, {}, {
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4456
|
+
}, {}, {
|
|
4457
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4458
|
+
}>;
|
|
4459
|
+
trace: import("drizzle-orm/pg-core").PgColumn<{
|
|
4460
|
+
name: "trace";
|
|
4461
|
+
tableName: "session_queue";
|
|
4446
4462
|
dataType: "custom";
|
|
4447
4463
|
columnType: "PgCustomColumn";
|
|
4448
|
-
data:
|
|
4449
|
-
driverParam:
|
|
4450
|
-
notNull:
|
|
4464
|
+
data: unknown;
|
|
4465
|
+
driverParam: unknown;
|
|
4466
|
+
notNull: false;
|
|
4451
4467
|
hasDefault: false;
|
|
4452
4468
|
isPrimaryKey: false;
|
|
4453
4469
|
isAutoincrement: false;
|
|
@@ -4459,31 +4475,33 @@ export declare const artifacts: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
4459
4475
|
}, {}, {
|
|
4460
4476
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4461
4477
|
}>;
|
|
4462
|
-
|
|
4463
|
-
name: "
|
|
4464
|
-
tableName: "
|
|
4465
|
-
dataType: "
|
|
4466
|
-
columnType: "
|
|
4467
|
-
data:
|
|
4468
|
-
driverParam:
|
|
4469
|
-
notNull:
|
|
4478
|
+
cause: import("drizzle-orm/pg-core").PgColumn<{
|
|
4479
|
+
name: "cause";
|
|
4480
|
+
tableName: "session_queue";
|
|
4481
|
+
dataType: "custom";
|
|
4482
|
+
columnType: "PgCustomColumn";
|
|
4483
|
+
data: unknown;
|
|
4484
|
+
driverParam: unknown;
|
|
4485
|
+
notNull: false;
|
|
4470
4486
|
hasDefault: false;
|
|
4471
4487
|
isPrimaryKey: false;
|
|
4472
4488
|
isAutoincrement: false;
|
|
4473
4489
|
hasRuntimeDefault: false;
|
|
4474
|
-
enumValues:
|
|
4490
|
+
enumValues: undefined;
|
|
4475
4491
|
baseColumn: never;
|
|
4476
4492
|
identity: undefined;
|
|
4477
4493
|
generated: undefined;
|
|
4478
|
-
}, {}, {
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4494
|
+
}, {}, {
|
|
4495
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4496
|
+
}>;
|
|
4497
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4498
|
+
name: "createdAt";
|
|
4499
|
+
tableName: "session_queue";
|
|
4482
4500
|
dataType: "custom";
|
|
4483
4501
|
columnType: "PgCustomColumn";
|
|
4484
4502
|
data: string;
|
|
4485
4503
|
driverParam: string;
|
|
4486
|
-
notNull:
|
|
4504
|
+
notNull: true;
|
|
4487
4505
|
hasDefault: false;
|
|
4488
4506
|
isPrimaryKey: false;
|
|
4489
4507
|
isAutoincrement: false;
|
|
@@ -4498,21 +4516,27 @@ export declare const artifacts: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
4498
4516
|
};
|
|
4499
4517
|
dialect: 'pg';
|
|
4500
4518
|
}>;
|
|
4501
|
-
/**
|
|
4502
|
-
|
|
4503
|
-
|
|
4519
|
+
/**
|
|
4520
|
+
* The Tool Gate's keyed MCP calls (F4.1 G3): one row per call, written by the gates service
|
|
4521
|
+
* before it calls the server and given the answer after. A re-send whose row has an answer
|
|
4522
|
+
* gets it; one whose row has none, and that the gateway no longer runs, was lost with an
|
|
4523
|
+
* earlier gateway and answers `uncertain`, so a call is never run twice. Rows are deleted a
|
|
4524
|
+
* day after they settle.
|
|
4525
|
+
*/
|
|
4526
|
+
export declare const toolCrossings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4527
|
+
name: "tool_crossings";
|
|
4504
4528
|
schema: "nylorun";
|
|
4505
4529
|
columns: {
|
|
4506
|
-
|
|
4507
|
-
name: "
|
|
4508
|
-
tableName: "
|
|
4530
|
+
key: import("drizzle-orm/pg-core").PgColumn<{
|
|
4531
|
+
name: "key";
|
|
4532
|
+
tableName: "tool_crossings";
|
|
4509
4533
|
dataType: "custom";
|
|
4510
4534
|
columnType: "PgCustomColumn";
|
|
4511
4535
|
data: string;
|
|
4512
4536
|
driverParam: string;
|
|
4513
4537
|
notNull: true;
|
|
4514
4538
|
hasDefault: false;
|
|
4515
|
-
isPrimaryKey:
|
|
4539
|
+
isPrimaryKey: true;
|
|
4516
4540
|
isAutoincrement: false;
|
|
4517
4541
|
hasRuntimeDefault: false;
|
|
4518
4542
|
enumValues: undefined;
|
|
@@ -4522,60 +4546,9 @@ export declare const artifactVersions: import("drizzle-orm/pg-core").PgTableWith
|
|
|
4522
4546
|
}, {}, {
|
|
4523
4547
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4524
4548
|
}>;
|
|
4525
|
-
|
|
4526
|
-
name: "
|
|
4527
|
-
tableName: "
|
|
4528
|
-
dataType: "number";
|
|
4529
|
-
columnType: "PgInteger";
|
|
4530
|
-
data: number;
|
|
4531
|
-
driverParam: string | number;
|
|
4532
|
-
notNull: true;
|
|
4533
|
-
hasDefault: false;
|
|
4534
|
-
isPrimaryKey: false;
|
|
4535
|
-
isAutoincrement: false;
|
|
4536
|
-
hasRuntimeDefault: false;
|
|
4537
|
-
enumValues: undefined;
|
|
4538
|
-
baseColumn: never;
|
|
4539
|
-
identity: undefined;
|
|
4540
|
-
generated: undefined;
|
|
4541
|
-
}, {}, {}>;
|
|
4542
|
-
blobKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
4543
|
-
name: "blobKey";
|
|
4544
|
-
tableName: "artifact_versions";
|
|
4545
|
-
dataType: "string";
|
|
4546
|
-
columnType: "PgText";
|
|
4547
|
-
data: string;
|
|
4548
|
-
driverParam: string;
|
|
4549
|
-
notNull: true;
|
|
4550
|
-
hasDefault: false;
|
|
4551
|
-
isPrimaryKey: false;
|
|
4552
|
-
isAutoincrement: false;
|
|
4553
|
-
hasRuntimeDefault: false;
|
|
4554
|
-
enumValues: [string, ...string[]];
|
|
4555
|
-
baseColumn: never;
|
|
4556
|
-
identity: undefined;
|
|
4557
|
-
generated: undefined;
|
|
4558
|
-
}, {}, {}>;
|
|
4559
|
-
size: import("drizzle-orm/pg-core").PgColumn<{
|
|
4560
|
-
name: "size";
|
|
4561
|
-
tableName: "artifact_versions";
|
|
4562
|
-
dataType: "number";
|
|
4563
|
-
columnType: "PgBigInt53";
|
|
4564
|
-
data: number;
|
|
4565
|
-
driverParam: string | number;
|
|
4566
|
-
notNull: true;
|
|
4567
|
-
hasDefault: false;
|
|
4568
|
-
isPrimaryKey: false;
|
|
4569
|
-
isAutoincrement: false;
|
|
4570
|
-
hasRuntimeDefault: false;
|
|
4571
|
-
enumValues: undefined;
|
|
4572
|
-
baseColumn: never;
|
|
4573
|
-
identity: undefined;
|
|
4574
|
-
generated: undefined;
|
|
4575
|
-
}, {}, {}>;
|
|
4576
|
-
sha256: import("drizzle-orm/pg-core").PgColumn<{
|
|
4577
|
-
name: "sha256";
|
|
4578
|
-
tableName: "artifact_versions";
|
|
4549
|
+
hash: import("drizzle-orm/pg-core").PgColumn<{
|
|
4550
|
+
name: "hash";
|
|
4551
|
+
tableName: "tool_crossings";
|
|
4579
4552
|
dataType: "string";
|
|
4580
4553
|
columnType: "PgText";
|
|
4581
4554
|
data: string;
|
|
@@ -4590,11 +4563,11 @@ export declare const artifactVersions: import("drizzle-orm/pg-core").PgTableWith
|
|
|
4590
4563
|
identity: undefined;
|
|
4591
4564
|
generated: undefined;
|
|
4592
4565
|
}, {}, {}>;
|
|
4593
|
-
|
|
4594
|
-
name: "
|
|
4595
|
-
tableName: "
|
|
4596
|
-
dataType: "
|
|
4597
|
-
columnType: "
|
|
4566
|
+
startedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4567
|
+
name: "startedAt";
|
|
4568
|
+
tableName: "tool_crossings";
|
|
4569
|
+
dataType: "custom";
|
|
4570
|
+
columnType: "PgCustomColumn";
|
|
4598
4571
|
data: string;
|
|
4599
4572
|
driverParam: string;
|
|
4600
4573
|
notNull: true;
|
|
@@ -4602,36 +4575,21 @@ export declare const artifactVersions: import("drizzle-orm/pg-core").PgTableWith
|
|
|
4602
4575
|
isPrimaryKey: false;
|
|
4603
4576
|
isAutoincrement: false;
|
|
4604
4577
|
hasRuntimeDefault: false;
|
|
4605
|
-
enumValues:
|
|
4606
|
-
baseColumn: never;
|
|
4607
|
-
identity: undefined;
|
|
4608
|
-
generated: undefined;
|
|
4609
|
-
}, {}, {}>;
|
|
4610
|
-
source: import("drizzle-orm/pg-core").PgColumn<{
|
|
4611
|
-
name: "source";
|
|
4612
|
-
tableName: "artifact_versions";
|
|
4613
|
-
dataType: "string";
|
|
4614
|
-
columnType: "PgText";
|
|
4615
|
-
data: "engine" | "export" | "snapshot" | "upload";
|
|
4616
|
-
driverParam: string;
|
|
4617
|
-
notNull: true;
|
|
4618
|
-
hasDefault: false;
|
|
4619
|
-
isPrimaryKey: false;
|
|
4620
|
-
isAutoincrement: false;
|
|
4621
|
-
hasRuntimeDefault: false;
|
|
4622
|
-
enumValues: ["upload", "engine", "export", "snapshot"];
|
|
4578
|
+
enumValues: undefined;
|
|
4623
4579
|
baseColumn: never;
|
|
4624
4580
|
identity: undefined;
|
|
4625
4581
|
generated: undefined;
|
|
4626
|
-
}, {}, {
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4582
|
+
}, {}, {
|
|
4583
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4584
|
+
}>;
|
|
4585
|
+
settledAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4586
|
+
name: "settledAt";
|
|
4587
|
+
tableName: "tool_crossings";
|
|
4630
4588
|
dataType: "custom";
|
|
4631
4589
|
columnType: "PgCustomColumn";
|
|
4632
4590
|
data: string;
|
|
4633
4591
|
driverParam: string;
|
|
4634
|
-
notNull:
|
|
4592
|
+
notNull: false;
|
|
4635
4593
|
hasDefault: false;
|
|
4636
4594
|
isPrimaryKey: false;
|
|
4637
4595
|
isAutoincrement: false;
|
|
@@ -4643,13 +4601,13 @@ export declare const artifactVersions: import("drizzle-orm/pg-core").PgTableWith
|
|
|
4643
4601
|
}, {}, {
|
|
4644
4602
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4645
4603
|
}>;
|
|
4646
|
-
|
|
4647
|
-
name: "
|
|
4648
|
-
tableName: "
|
|
4604
|
+
answer: import("drizzle-orm/pg-core").PgColumn<{
|
|
4605
|
+
name: "answer";
|
|
4606
|
+
tableName: "tool_crossings";
|
|
4649
4607
|
dataType: "custom";
|
|
4650
4608
|
columnType: "PgCustomColumn";
|
|
4651
|
-
data:
|
|
4652
|
-
driverParam:
|
|
4609
|
+
data: unknown;
|
|
4610
|
+
driverParam: unknown;
|
|
4653
4611
|
notNull: false;
|
|
4654
4612
|
hasDefault: false;
|
|
4655
4613
|
isPrimaryKey: false;
|
|
@@ -4666,24 +4624,94 @@ export declare const artifactVersions: import("drizzle-orm/pg-core").PgTableWith
|
|
|
4666
4624
|
dialect: 'pg';
|
|
4667
4625
|
}>;
|
|
4668
4626
|
/**
|
|
4669
|
-
*
|
|
4670
|
-
*
|
|
4671
|
-
*
|
|
4672
|
-
*
|
|
4627
|
+
* Artifacts (blueprint D35, F8.1 and F8.2): an id, a name and numbered versions. The bytes are in
|
|
4628
|
+
* the Object store under each version's `blobKey` (a folder's: its manifest); a blob counts only
|
|
4629
|
+
* once its version row commits. `sessionId` is the session the artifact belongs to, or null for
|
|
4630
|
+
* a Tenant-wide one an application made. `latestVersion` is the newest version's number.
|
|
4673
4631
|
*/
|
|
4674
|
-
export declare const
|
|
4675
|
-
name: "
|
|
4632
|
+
export declare const artifacts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4633
|
+
name: "artifacts";
|
|
4676
4634
|
schema: "nylorun";
|
|
4677
4635
|
columns: {
|
|
4678
|
-
|
|
4679
|
-
name: "
|
|
4680
|
-
tableName: "
|
|
4636
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
4637
|
+
name: "id";
|
|
4638
|
+
tableName: "artifacts";
|
|
4681
4639
|
dataType: "custom";
|
|
4682
4640
|
columnType: "PgCustomColumn";
|
|
4683
4641
|
data: string;
|
|
4684
4642
|
driverParam: string;
|
|
4685
4643
|
notNull: true;
|
|
4686
4644
|
hasDefault: false;
|
|
4645
|
+
isPrimaryKey: true;
|
|
4646
|
+
isAutoincrement: false;
|
|
4647
|
+
hasRuntimeDefault: false;
|
|
4648
|
+
enumValues: undefined;
|
|
4649
|
+
baseColumn: never;
|
|
4650
|
+
identity: undefined;
|
|
4651
|
+
generated: undefined;
|
|
4652
|
+
}, {}, {
|
|
4653
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4654
|
+
}>;
|
|
4655
|
+
kind: import("drizzle-orm/pg-core").PgColumn<{
|
|
4656
|
+
name: "kind";
|
|
4657
|
+
tableName: "artifacts";
|
|
4658
|
+
dataType: "string";
|
|
4659
|
+
columnType: "PgText";
|
|
4660
|
+
data: "file" | "folder";
|
|
4661
|
+
driverParam: string;
|
|
4662
|
+
notNull: true;
|
|
4663
|
+
hasDefault: false;
|
|
4664
|
+
isPrimaryKey: false;
|
|
4665
|
+
isAutoincrement: false;
|
|
4666
|
+
hasRuntimeDefault: false;
|
|
4667
|
+
enumValues: ["file", "folder"];
|
|
4668
|
+
baseColumn: never;
|
|
4669
|
+
identity: undefined;
|
|
4670
|
+
generated: undefined;
|
|
4671
|
+
}, {}, {}>;
|
|
4672
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
4673
|
+
name: "name";
|
|
4674
|
+
tableName: "artifacts";
|
|
4675
|
+
dataType: "string";
|
|
4676
|
+
columnType: "PgText";
|
|
4677
|
+
data: string;
|
|
4678
|
+
driverParam: string;
|
|
4679
|
+
notNull: true;
|
|
4680
|
+
hasDefault: false;
|
|
4681
|
+
isPrimaryKey: false;
|
|
4682
|
+
isAutoincrement: false;
|
|
4683
|
+
hasRuntimeDefault: false;
|
|
4684
|
+
enumValues: [string, ...string[]];
|
|
4685
|
+
baseColumn: never;
|
|
4686
|
+
identity: undefined;
|
|
4687
|
+
generated: undefined;
|
|
4688
|
+
}, {}, {}>;
|
|
4689
|
+
contentType: import("drizzle-orm/pg-core").PgColumn<{
|
|
4690
|
+
name: "contentType";
|
|
4691
|
+
tableName: "artifacts";
|
|
4692
|
+
dataType: "string";
|
|
4693
|
+
columnType: "PgText";
|
|
4694
|
+
data: string;
|
|
4695
|
+
driverParam: string;
|
|
4696
|
+
notNull: true;
|
|
4697
|
+
hasDefault: false;
|
|
4698
|
+
isPrimaryKey: false;
|
|
4699
|
+
isAutoincrement: false;
|
|
4700
|
+
hasRuntimeDefault: false;
|
|
4701
|
+
enumValues: [string, ...string[]];
|
|
4702
|
+
baseColumn: never;
|
|
4703
|
+
identity: undefined;
|
|
4704
|
+
generated: undefined;
|
|
4705
|
+
}, {}, {}>;
|
|
4706
|
+
sessionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4707
|
+
name: "sessionId";
|
|
4708
|
+
tableName: "artifacts";
|
|
4709
|
+
dataType: "custom";
|
|
4710
|
+
columnType: "PgCustomColumn";
|
|
4711
|
+
data: string;
|
|
4712
|
+
driverParam: string;
|
|
4713
|
+
notNull: false;
|
|
4714
|
+
hasDefault: false;
|
|
4687
4715
|
isPrimaryKey: false;
|
|
4688
4716
|
isAutoincrement: false;
|
|
4689
4717
|
hasRuntimeDefault: false;
|
|
@@ -4694,9 +4722,9 @@ export declare const artifactContent: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
4694
4722
|
}, {}, {
|
|
4695
4723
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4696
4724
|
}>;
|
|
4697
|
-
|
|
4698
|
-
name: "
|
|
4699
|
-
tableName: "
|
|
4725
|
+
latestVersion: import("drizzle-orm/pg-core").PgColumn<{
|
|
4726
|
+
name: "latestVersion";
|
|
4727
|
+
tableName: "artifacts";
|
|
4700
4728
|
dataType: "number";
|
|
4701
4729
|
columnType: "PgInteger";
|
|
4702
4730
|
data: number;
|
|
@@ -4711,9 +4739,26 @@ export declare const artifactContent: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
4711
4739
|
identity: undefined;
|
|
4712
4740
|
generated: undefined;
|
|
4713
4741
|
}, {}, {}>;
|
|
4714
|
-
|
|
4715
|
-
name: "
|
|
4716
|
-
tableName: "
|
|
4742
|
+
labelsJson: import("drizzle-orm/pg-core").PgColumn<{
|
|
4743
|
+
name: "labelsJson";
|
|
4744
|
+
tableName: "artifacts";
|
|
4745
|
+
dataType: "string";
|
|
4746
|
+
columnType: "PgText";
|
|
4747
|
+
data: string;
|
|
4748
|
+
driverParam: string;
|
|
4749
|
+
notNull: false;
|
|
4750
|
+
hasDefault: false;
|
|
4751
|
+
isPrimaryKey: false;
|
|
4752
|
+
isAutoincrement: false;
|
|
4753
|
+
hasRuntimeDefault: false;
|
|
4754
|
+
enumValues: [string, ...string[]];
|
|
4755
|
+
baseColumn: never;
|
|
4756
|
+
identity: undefined;
|
|
4757
|
+
generated: undefined;
|
|
4758
|
+
}, {}, {}>;
|
|
4759
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4760
|
+
name: "createdAt";
|
|
4761
|
+
tableName: "artifacts";
|
|
4717
4762
|
dataType: "custom";
|
|
4718
4763
|
columnType: "PgCustomColumn";
|
|
4719
4764
|
data: string;
|
|
@@ -4730,46 +4775,60 @@ export declare const artifactContent: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
4730
4775
|
}, {}, {
|
|
4731
4776
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4732
4777
|
}>;
|
|
4733
|
-
|
|
4734
|
-
name: "
|
|
4735
|
-
tableName: "
|
|
4736
|
-
dataType: "
|
|
4737
|
-
columnType: "
|
|
4738
|
-
data:
|
|
4739
|
-
driverParam: string
|
|
4778
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4779
|
+
name: "updatedAt";
|
|
4780
|
+
tableName: "artifacts";
|
|
4781
|
+
dataType: "string";
|
|
4782
|
+
columnType: "PgText";
|
|
4783
|
+
data: string;
|
|
4784
|
+
driverParam: string;
|
|
4740
4785
|
notNull: true;
|
|
4741
4786
|
hasDefault: false;
|
|
4742
4787
|
isPrimaryKey: false;
|
|
4743
4788
|
isAutoincrement: false;
|
|
4744
4789
|
hasRuntimeDefault: false;
|
|
4745
|
-
enumValues:
|
|
4790
|
+
enumValues: [string, ...string[]];
|
|
4746
4791
|
baseColumn: never;
|
|
4747
4792
|
identity: undefined;
|
|
4748
4793
|
generated: undefined;
|
|
4749
4794
|
}, {}, {}>;
|
|
4795
|
+
environmentId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4796
|
+
name: "environmentId";
|
|
4797
|
+
tableName: "artifacts";
|
|
4798
|
+
dataType: "custom";
|
|
4799
|
+
columnType: "PgCustomColumn";
|
|
4800
|
+
data: string;
|
|
4801
|
+
driverParam: string;
|
|
4802
|
+
notNull: false;
|
|
4803
|
+
hasDefault: false;
|
|
4804
|
+
isPrimaryKey: false;
|
|
4805
|
+
isAutoincrement: false;
|
|
4806
|
+
hasRuntimeDefault: false;
|
|
4807
|
+
enumValues: undefined;
|
|
4808
|
+
baseColumn: never;
|
|
4809
|
+
identity: undefined;
|
|
4810
|
+
generated: undefined;
|
|
4811
|
+
}, {}, {
|
|
4812
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4813
|
+
}>;
|
|
4750
4814
|
};
|
|
4751
4815
|
dialect: 'pg';
|
|
4752
4816
|
}>;
|
|
4753
|
-
/**
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
* in the Object store at `definitions/sha256/<hex>`; a row counts them only once they are
|
|
4757
|
-
* stored. `sha256` is `sha256:<hex>`.
|
|
4758
|
-
*/
|
|
4759
|
-
export declare const definitionFiles: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4760
|
-
name: "definition_files";
|
|
4817
|
+
/** The versions of an artifact, immutable once written. */
|
|
4818
|
+
export declare const artifactVersions: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4819
|
+
name: "artifact_versions";
|
|
4761
4820
|
schema: "nylorun";
|
|
4762
4821
|
columns: {
|
|
4763
|
-
|
|
4764
|
-
name: "
|
|
4765
|
-
tableName: "
|
|
4822
|
+
artifactId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4823
|
+
name: "artifactId";
|
|
4824
|
+
tableName: "artifact_versions";
|
|
4766
4825
|
dataType: "custom";
|
|
4767
4826
|
columnType: "PgCustomColumn";
|
|
4768
4827
|
data: string;
|
|
4769
4828
|
driverParam: string;
|
|
4770
4829
|
notNull: true;
|
|
4771
4830
|
hasDefault: false;
|
|
4772
|
-
isPrimaryKey:
|
|
4831
|
+
isPrimaryKey: false;
|
|
4773
4832
|
isAutoincrement: false;
|
|
4774
4833
|
hasRuntimeDefault: false;
|
|
4775
4834
|
enumValues: undefined;
|
|
@@ -4779,9 +4838,26 @@ export declare const definitionFiles: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
4779
4838
|
}, {}, {
|
|
4780
4839
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4781
4840
|
}>;
|
|
4782
|
-
|
|
4783
|
-
name: "
|
|
4784
|
-
tableName: "
|
|
4841
|
+
version: import("drizzle-orm/pg-core").PgColumn<{
|
|
4842
|
+
name: "version";
|
|
4843
|
+
tableName: "artifact_versions";
|
|
4844
|
+
dataType: "number";
|
|
4845
|
+
columnType: "PgInteger";
|
|
4846
|
+
data: number;
|
|
4847
|
+
driverParam: string | number;
|
|
4848
|
+
notNull: true;
|
|
4849
|
+
hasDefault: false;
|
|
4850
|
+
isPrimaryKey: false;
|
|
4851
|
+
isAutoincrement: false;
|
|
4852
|
+
hasRuntimeDefault: false;
|
|
4853
|
+
enumValues: undefined;
|
|
4854
|
+
baseColumn: never;
|
|
4855
|
+
identity: undefined;
|
|
4856
|
+
generated: undefined;
|
|
4857
|
+
}, {}, {}>;
|
|
4858
|
+
blobKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
4859
|
+
name: "blobKey";
|
|
4860
|
+
tableName: "artifact_versions";
|
|
4785
4861
|
dataType: "string";
|
|
4786
4862
|
columnType: "PgText";
|
|
4787
4863
|
data: string;
|
|
@@ -4798,7 +4874,7 @@ export declare const definitionFiles: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
4798
4874
|
}, {}, {}>;
|
|
4799
4875
|
size: import("drizzle-orm/pg-core").PgColumn<{
|
|
4800
4876
|
name: "size";
|
|
4801
|
-
tableName: "
|
|
4877
|
+
tableName: "artifact_versions";
|
|
4802
4878
|
dataType: "number";
|
|
4803
4879
|
columnType: "PgBigInt53";
|
|
4804
4880
|
data: number;
|
|
@@ -4813,14 +4889,14 @@ export declare const definitionFiles: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
4813
4889
|
identity: undefined;
|
|
4814
4890
|
generated: undefined;
|
|
4815
4891
|
}, {}, {}>;
|
|
4816
|
-
|
|
4817
|
-
name: "
|
|
4818
|
-
tableName: "
|
|
4892
|
+
sha256: import("drizzle-orm/pg-core").PgColumn<{
|
|
4893
|
+
name: "sha256";
|
|
4894
|
+
tableName: "artifact_versions";
|
|
4819
4895
|
dataType: "string";
|
|
4820
4896
|
columnType: "PgText";
|
|
4821
4897
|
data: string;
|
|
4822
4898
|
driverParam: string;
|
|
4823
|
-
notNull:
|
|
4899
|
+
notNull: true;
|
|
4824
4900
|
hasDefault: false;
|
|
4825
4901
|
isPrimaryKey: false;
|
|
4826
4902
|
isAutoincrement: false;
|
|
@@ -4830,11 +4906,11 @@ export declare const definitionFiles: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
4830
4906
|
identity: undefined;
|
|
4831
4907
|
generated: undefined;
|
|
4832
4908
|
}, {}, {}>;
|
|
4833
|
-
|
|
4834
|
-
name: "
|
|
4835
|
-
tableName: "
|
|
4836
|
-
dataType: "
|
|
4837
|
-
columnType: "
|
|
4909
|
+
contentType: import("drizzle-orm/pg-core").PgColumn<{
|
|
4910
|
+
name: "contentType";
|
|
4911
|
+
tableName: "artifact_versions";
|
|
4912
|
+
dataType: "string";
|
|
4913
|
+
columnType: "PgText";
|
|
4838
4914
|
data: string;
|
|
4839
4915
|
driverParam: string;
|
|
4840
4916
|
notNull: true;
|
|
@@ -4842,47 +4918,31 @@ export declare const definitionFiles: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
4842
4918
|
isPrimaryKey: false;
|
|
4843
4919
|
isAutoincrement: false;
|
|
4844
4920
|
hasRuntimeDefault: false;
|
|
4845
|
-
enumValues:
|
|
4921
|
+
enumValues: [string, ...string[]];
|
|
4846
4922
|
baseColumn: never;
|
|
4847
4923
|
identity: undefined;
|
|
4848
4924
|
generated: undefined;
|
|
4849
|
-
}, {}, {
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
* Which agent manifest version names which definition file: one row per owner
|
|
4857
|
-
* (`agent-manifest:<name>`), manifest hash and file, written when the version is saved. A later
|
|
4858
|
-
* sweep deletes the files no version uses.
|
|
4859
|
-
*/
|
|
4860
|
-
export declare const definitionFileUses: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4861
|
-
name: "definition_file_uses";
|
|
4862
|
-
schema: "nylorun";
|
|
4863
|
-
columns: {
|
|
4864
|
-
agentId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4865
|
-
name: "agentId";
|
|
4866
|
-
tableName: "definition_file_uses";
|
|
4867
|
-
dataType: "custom";
|
|
4868
|
-
columnType: "PgCustomColumn";
|
|
4869
|
-
data: string;
|
|
4925
|
+
}, {}, {}>;
|
|
4926
|
+
source: import("drizzle-orm/pg-core").PgColumn<{
|
|
4927
|
+
name: "source";
|
|
4928
|
+
tableName: "artifact_versions";
|
|
4929
|
+
dataType: "string";
|
|
4930
|
+
columnType: "PgText";
|
|
4931
|
+
data: "engine" | "export" | "snapshot" | "upload";
|
|
4870
4932
|
driverParam: string;
|
|
4871
4933
|
notNull: true;
|
|
4872
4934
|
hasDefault: false;
|
|
4873
4935
|
isPrimaryKey: false;
|
|
4874
4936
|
isAutoincrement: false;
|
|
4875
4937
|
hasRuntimeDefault: false;
|
|
4876
|
-
enumValues:
|
|
4938
|
+
enumValues: ["upload", "engine", "export", "snapshot"];
|
|
4877
4939
|
baseColumn: never;
|
|
4878
4940
|
identity: undefined;
|
|
4879
4941
|
generated: undefined;
|
|
4880
|
-
}, {}, {
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
name: "manifestHash";
|
|
4885
|
-
tableName: "definition_file_uses";
|
|
4942
|
+
}, {}, {}>;
|
|
4943
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
4944
|
+
name: "createdAt";
|
|
4945
|
+
tableName: "artifact_versions";
|
|
4886
4946
|
dataType: "custom";
|
|
4887
4947
|
columnType: "PgCustomColumn";
|
|
4888
4948
|
data: string;
|
|
@@ -4899,14 +4959,14 @@ export declare const definitionFileUses: import("drizzle-orm/pg-core").PgTableWi
|
|
|
4899
4959
|
}, {}, {
|
|
4900
4960
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4901
4961
|
}>;
|
|
4902
|
-
|
|
4903
|
-
name: "
|
|
4904
|
-
tableName: "
|
|
4962
|
+
writeKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
4963
|
+
name: "writeKey";
|
|
4964
|
+
tableName: "artifact_versions";
|
|
4905
4965
|
dataType: "custom";
|
|
4906
4966
|
columnType: "PgCustomColumn";
|
|
4907
4967
|
data: string;
|
|
4908
4968
|
driverParam: string;
|
|
4909
|
-
notNull:
|
|
4969
|
+
notNull: false;
|
|
4910
4970
|
hasDefault: false;
|
|
4911
4971
|
isPrimaryKey: false;
|
|
4912
4972
|
isAutoincrement: false;
|
|
@@ -4922,12 +4982,268 @@ export declare const definitionFileUses: import("drizzle-orm/pg-core").PgTableWi
|
|
|
4922
4982
|
dialect: 'pg';
|
|
4923
4983
|
}>;
|
|
4924
4984
|
/**
|
|
4925
|
-
* The
|
|
4926
|
-
*
|
|
4927
|
-
*
|
|
4928
|
-
*
|
|
4929
|
-
|
|
4930
|
-
|
|
4985
|
+
* The content-addressed files each folder version references (F8.2), one row per distinct
|
|
4986
|
+
* SHA-256: the index that says which `blobs/sha256/<hex>` objects are still in use, so deleting
|
|
4987
|
+
* a folder removes only the files no other version names, and the Tenant total counts each file
|
|
4988
|
+
* once. The manifest itself stays the source of truth for paths.
|
|
4989
|
+
*/
|
|
4990
|
+
export declare const artifactContent: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4991
|
+
name: "artifact_content";
|
|
4992
|
+
schema: "nylorun";
|
|
4993
|
+
columns: {
|
|
4994
|
+
artifactId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4995
|
+
name: "artifactId";
|
|
4996
|
+
tableName: "artifact_content";
|
|
4997
|
+
dataType: "custom";
|
|
4998
|
+
columnType: "PgCustomColumn";
|
|
4999
|
+
data: string;
|
|
5000
|
+
driverParam: string;
|
|
5001
|
+
notNull: true;
|
|
5002
|
+
hasDefault: false;
|
|
5003
|
+
isPrimaryKey: false;
|
|
5004
|
+
isAutoincrement: false;
|
|
5005
|
+
hasRuntimeDefault: false;
|
|
5006
|
+
enumValues: undefined;
|
|
5007
|
+
baseColumn: never;
|
|
5008
|
+
identity: undefined;
|
|
5009
|
+
generated: undefined;
|
|
5010
|
+
}, {}, {
|
|
5011
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5012
|
+
}>;
|
|
5013
|
+
version: import("drizzle-orm/pg-core").PgColumn<{
|
|
5014
|
+
name: "version";
|
|
5015
|
+
tableName: "artifact_content";
|
|
5016
|
+
dataType: "number";
|
|
5017
|
+
columnType: "PgInteger";
|
|
5018
|
+
data: number;
|
|
5019
|
+
driverParam: string | number;
|
|
5020
|
+
notNull: true;
|
|
5021
|
+
hasDefault: false;
|
|
5022
|
+
isPrimaryKey: false;
|
|
5023
|
+
isAutoincrement: false;
|
|
5024
|
+
hasRuntimeDefault: false;
|
|
5025
|
+
enumValues: undefined;
|
|
5026
|
+
baseColumn: never;
|
|
5027
|
+
identity: undefined;
|
|
5028
|
+
generated: undefined;
|
|
5029
|
+
}, {}, {}>;
|
|
5030
|
+
sha256: import("drizzle-orm/pg-core").PgColumn<{
|
|
5031
|
+
name: "sha256";
|
|
5032
|
+
tableName: "artifact_content";
|
|
5033
|
+
dataType: "custom";
|
|
5034
|
+
columnType: "PgCustomColumn";
|
|
5035
|
+
data: string;
|
|
5036
|
+
driverParam: string;
|
|
5037
|
+
notNull: true;
|
|
5038
|
+
hasDefault: false;
|
|
5039
|
+
isPrimaryKey: false;
|
|
5040
|
+
isAutoincrement: false;
|
|
5041
|
+
hasRuntimeDefault: false;
|
|
5042
|
+
enumValues: undefined;
|
|
5043
|
+
baseColumn: never;
|
|
5044
|
+
identity: undefined;
|
|
5045
|
+
generated: undefined;
|
|
5046
|
+
}, {}, {
|
|
5047
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5048
|
+
}>;
|
|
5049
|
+
size: import("drizzle-orm/pg-core").PgColumn<{
|
|
5050
|
+
name: "size";
|
|
5051
|
+
tableName: "artifact_content";
|
|
5052
|
+
dataType: "number";
|
|
5053
|
+
columnType: "PgBigInt53";
|
|
5054
|
+
data: number;
|
|
5055
|
+
driverParam: string | number;
|
|
5056
|
+
notNull: true;
|
|
5057
|
+
hasDefault: false;
|
|
5058
|
+
isPrimaryKey: false;
|
|
5059
|
+
isAutoincrement: false;
|
|
5060
|
+
hasRuntimeDefault: false;
|
|
5061
|
+
enumValues: undefined;
|
|
5062
|
+
baseColumn: never;
|
|
5063
|
+
identity: undefined;
|
|
5064
|
+
generated: undefined;
|
|
5065
|
+
}, {}, {}>;
|
|
5066
|
+
};
|
|
5067
|
+
dialect: 'pg';
|
|
5068
|
+
}>;
|
|
5069
|
+
/**
|
|
5070
|
+
* The definition files the Tenant holds (track R2 M4): files a definition names by the SHA-256
|
|
5071
|
+
* of their bytes (a skill's folder), uploaded with `PUT /v1/files/sha256:<hex>`. The bytes are
|
|
5072
|
+
* in the Object store at `definitions/sha256/<hex>`; a row counts them only once they are
|
|
5073
|
+
* stored. `sha256` is `sha256:<hex>`.
|
|
5074
|
+
*/
|
|
5075
|
+
export declare const definitionFiles: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5076
|
+
name: "definition_files";
|
|
5077
|
+
schema: "nylorun";
|
|
5078
|
+
columns: {
|
|
5079
|
+
sha256: import("drizzle-orm/pg-core").PgColumn<{
|
|
5080
|
+
name: "sha256";
|
|
5081
|
+
tableName: "definition_files";
|
|
5082
|
+
dataType: "custom";
|
|
5083
|
+
columnType: "PgCustomColumn";
|
|
5084
|
+
data: string;
|
|
5085
|
+
driverParam: string;
|
|
5086
|
+
notNull: true;
|
|
5087
|
+
hasDefault: false;
|
|
5088
|
+
isPrimaryKey: true;
|
|
5089
|
+
isAutoincrement: false;
|
|
5090
|
+
hasRuntimeDefault: false;
|
|
5091
|
+
enumValues: undefined;
|
|
5092
|
+
baseColumn: never;
|
|
5093
|
+
identity: undefined;
|
|
5094
|
+
generated: undefined;
|
|
5095
|
+
}, {}, {
|
|
5096
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5097
|
+
}>;
|
|
5098
|
+
kind: import("drizzle-orm/pg-core").PgColumn<{
|
|
5099
|
+
name: "kind";
|
|
5100
|
+
tableName: "definition_files";
|
|
5101
|
+
dataType: "string";
|
|
5102
|
+
columnType: "PgText";
|
|
5103
|
+
data: string;
|
|
5104
|
+
driverParam: string;
|
|
5105
|
+
notNull: true;
|
|
5106
|
+
hasDefault: false;
|
|
5107
|
+
isPrimaryKey: false;
|
|
5108
|
+
isAutoincrement: false;
|
|
5109
|
+
hasRuntimeDefault: false;
|
|
5110
|
+
enumValues: [string, ...string[]];
|
|
5111
|
+
baseColumn: never;
|
|
5112
|
+
identity: undefined;
|
|
5113
|
+
generated: undefined;
|
|
5114
|
+
}, {}, {}>;
|
|
5115
|
+
size: import("drizzle-orm/pg-core").PgColumn<{
|
|
5116
|
+
name: "size";
|
|
5117
|
+
tableName: "definition_files";
|
|
5118
|
+
dataType: "number";
|
|
5119
|
+
columnType: "PgBigInt53";
|
|
5120
|
+
data: number;
|
|
5121
|
+
driverParam: string | number;
|
|
5122
|
+
notNull: true;
|
|
5123
|
+
hasDefault: false;
|
|
5124
|
+
isPrimaryKey: false;
|
|
5125
|
+
isAutoincrement: false;
|
|
5126
|
+
hasRuntimeDefault: false;
|
|
5127
|
+
enumValues: undefined;
|
|
5128
|
+
baseColumn: never;
|
|
5129
|
+
identity: undefined;
|
|
5130
|
+
generated: undefined;
|
|
5131
|
+
}, {}, {}>;
|
|
5132
|
+
contentType: import("drizzle-orm/pg-core").PgColumn<{
|
|
5133
|
+
name: "contentType";
|
|
5134
|
+
tableName: "definition_files";
|
|
5135
|
+
dataType: "string";
|
|
5136
|
+
columnType: "PgText";
|
|
5137
|
+
data: string;
|
|
5138
|
+
driverParam: string;
|
|
5139
|
+
notNull: false;
|
|
5140
|
+
hasDefault: false;
|
|
5141
|
+
isPrimaryKey: false;
|
|
5142
|
+
isAutoincrement: false;
|
|
5143
|
+
hasRuntimeDefault: false;
|
|
5144
|
+
enumValues: [string, ...string[]];
|
|
5145
|
+
baseColumn: never;
|
|
5146
|
+
identity: undefined;
|
|
5147
|
+
generated: undefined;
|
|
5148
|
+
}, {}, {}>;
|
|
5149
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5150
|
+
name: "createdAt";
|
|
5151
|
+
tableName: "definition_files";
|
|
5152
|
+
dataType: "custom";
|
|
5153
|
+
columnType: "PgCustomColumn";
|
|
5154
|
+
data: string;
|
|
5155
|
+
driverParam: string;
|
|
5156
|
+
notNull: true;
|
|
5157
|
+
hasDefault: false;
|
|
5158
|
+
isPrimaryKey: false;
|
|
5159
|
+
isAutoincrement: false;
|
|
5160
|
+
hasRuntimeDefault: false;
|
|
5161
|
+
enumValues: undefined;
|
|
5162
|
+
baseColumn: never;
|
|
5163
|
+
identity: undefined;
|
|
5164
|
+
generated: undefined;
|
|
5165
|
+
}, {}, {
|
|
5166
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5167
|
+
}>;
|
|
5168
|
+
};
|
|
5169
|
+
dialect: 'pg';
|
|
5170
|
+
}>;
|
|
5171
|
+
/**
|
|
5172
|
+
* Which agent manifest version names which definition file: one row per owner
|
|
5173
|
+
* (`agent-manifest:<name>`), manifest hash and file, written when the version is saved. A later
|
|
5174
|
+
* sweep deletes the files no version uses.
|
|
5175
|
+
*/
|
|
5176
|
+
export declare const definitionFileUses: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5177
|
+
name: "definition_file_uses";
|
|
5178
|
+
schema: "nylorun";
|
|
5179
|
+
columns: {
|
|
5180
|
+
agentId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5181
|
+
name: "agentId";
|
|
5182
|
+
tableName: "definition_file_uses";
|
|
5183
|
+
dataType: "custom";
|
|
5184
|
+
columnType: "PgCustomColumn";
|
|
5185
|
+
data: string;
|
|
5186
|
+
driverParam: string;
|
|
5187
|
+
notNull: true;
|
|
5188
|
+
hasDefault: false;
|
|
5189
|
+
isPrimaryKey: false;
|
|
5190
|
+
isAutoincrement: false;
|
|
5191
|
+
hasRuntimeDefault: false;
|
|
5192
|
+
enumValues: undefined;
|
|
5193
|
+
baseColumn: never;
|
|
5194
|
+
identity: undefined;
|
|
5195
|
+
generated: undefined;
|
|
5196
|
+
}, {}, {
|
|
5197
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5198
|
+
}>;
|
|
5199
|
+
manifestHash: import("drizzle-orm/pg-core").PgColumn<{
|
|
5200
|
+
name: "manifestHash";
|
|
5201
|
+
tableName: "definition_file_uses";
|
|
5202
|
+
dataType: "custom";
|
|
5203
|
+
columnType: "PgCustomColumn";
|
|
5204
|
+
data: string;
|
|
5205
|
+
driverParam: string;
|
|
5206
|
+
notNull: true;
|
|
5207
|
+
hasDefault: false;
|
|
5208
|
+
isPrimaryKey: false;
|
|
5209
|
+
isAutoincrement: false;
|
|
5210
|
+
hasRuntimeDefault: false;
|
|
5211
|
+
enumValues: undefined;
|
|
5212
|
+
baseColumn: never;
|
|
5213
|
+
identity: undefined;
|
|
5214
|
+
generated: undefined;
|
|
5215
|
+
}, {}, {
|
|
5216
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5217
|
+
}>;
|
|
5218
|
+
sha256: import("drizzle-orm/pg-core").PgColumn<{
|
|
5219
|
+
name: "sha256";
|
|
5220
|
+
tableName: "definition_file_uses";
|
|
5221
|
+
dataType: "custom";
|
|
5222
|
+
columnType: "PgCustomColumn";
|
|
5223
|
+
data: string;
|
|
5224
|
+
driverParam: string;
|
|
5225
|
+
notNull: true;
|
|
5226
|
+
hasDefault: false;
|
|
5227
|
+
isPrimaryKey: false;
|
|
5228
|
+
isAutoincrement: false;
|
|
5229
|
+
hasRuntimeDefault: false;
|
|
5230
|
+
enumValues: undefined;
|
|
5231
|
+
baseColumn: never;
|
|
5232
|
+
identity: undefined;
|
|
5233
|
+
generated: undefined;
|
|
5234
|
+
}, {}, {
|
|
5235
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5236
|
+
}>;
|
|
5237
|
+
};
|
|
5238
|
+
dialect: 'pg';
|
|
5239
|
+
}>;
|
|
5240
|
+
/**
|
|
5241
|
+
* The control bus (D21, D48): signals between the processes that have the Tenant open,
|
|
5242
|
+
* written in the transaction that commits what they announce and notified on
|
|
5243
|
+
* `nylorun_control` at commit (`control.ts`). A row outlives its notification so a process
|
|
5244
|
+
* whose listener was down catches up; the Tenant sweep deletes old ones. `created_at` is the
|
|
5245
|
+
* insert's own clock (`clock_timestamp()`), not its transaction's start. `sandbox_id` and
|
|
5246
|
+
* `epoch` are a `host.revoked` signal's.
|
|
4931
5247
|
*/
|
|
4932
5248
|
export declare const controlSignals: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4933
5249
|
name: "control_signals";
|
|
@@ -4935,46 +5251,498 @@ export declare const controlSignals: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
4935
5251
|
columns: {
|
|
4936
5252
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
4937
5253
|
name: "id";
|
|
4938
|
-
tableName: "control_signals";
|
|
5254
|
+
tableName: "control_signals";
|
|
5255
|
+
dataType: "number";
|
|
5256
|
+
columnType: "PgBigInt53";
|
|
5257
|
+
data: number;
|
|
5258
|
+
driverParam: string | number;
|
|
5259
|
+
notNull: true;
|
|
5260
|
+
hasDefault: true;
|
|
5261
|
+
isPrimaryKey: true;
|
|
5262
|
+
isAutoincrement: false;
|
|
5263
|
+
hasRuntimeDefault: false;
|
|
5264
|
+
enumValues: undefined;
|
|
5265
|
+
baseColumn: never;
|
|
5266
|
+
identity: "always";
|
|
5267
|
+
generated: undefined;
|
|
5268
|
+
}, {}, {}>;
|
|
5269
|
+
kind: import("drizzle-orm/pg-core").PgColumn<{
|
|
5270
|
+
name: "kind";
|
|
5271
|
+
tableName: "control_signals";
|
|
5272
|
+
dataType: "string";
|
|
5273
|
+
columnType: "PgText";
|
|
5274
|
+
data: string;
|
|
5275
|
+
driverParam: string;
|
|
5276
|
+
notNull: true;
|
|
5277
|
+
hasDefault: false;
|
|
5278
|
+
isPrimaryKey: false;
|
|
5279
|
+
isAutoincrement: false;
|
|
5280
|
+
hasRuntimeDefault: false;
|
|
5281
|
+
enumValues: [string, ...string[]];
|
|
5282
|
+
baseColumn: never;
|
|
5283
|
+
identity: undefined;
|
|
5284
|
+
generated: undefined;
|
|
5285
|
+
}, {}, {}>;
|
|
5286
|
+
sessionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5287
|
+
name: "sessionId";
|
|
5288
|
+
tableName: "control_signals";
|
|
5289
|
+
dataType: "custom";
|
|
5290
|
+
columnType: "PgCustomColumn";
|
|
5291
|
+
data: string;
|
|
5292
|
+
driverParam: string;
|
|
5293
|
+
notNull: false;
|
|
5294
|
+
hasDefault: false;
|
|
5295
|
+
isPrimaryKey: false;
|
|
5296
|
+
isAutoincrement: false;
|
|
5297
|
+
hasRuntimeDefault: false;
|
|
5298
|
+
enumValues: undefined;
|
|
5299
|
+
baseColumn: never;
|
|
5300
|
+
identity: undefined;
|
|
5301
|
+
generated: undefined;
|
|
5302
|
+
}, {}, {
|
|
5303
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5304
|
+
}>;
|
|
5305
|
+
turnId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5306
|
+
name: "turnId";
|
|
5307
|
+
tableName: "control_signals";
|
|
5308
|
+
dataType: "custom";
|
|
5309
|
+
columnType: "PgCustomColumn";
|
|
5310
|
+
data: string;
|
|
5311
|
+
driverParam: string;
|
|
5312
|
+
notNull: false;
|
|
5313
|
+
hasDefault: false;
|
|
5314
|
+
isPrimaryKey: false;
|
|
5315
|
+
isAutoincrement: false;
|
|
5316
|
+
hasRuntimeDefault: false;
|
|
5317
|
+
enumValues: undefined;
|
|
5318
|
+
baseColumn: never;
|
|
5319
|
+
identity: undefined;
|
|
5320
|
+
generated: undefined;
|
|
5321
|
+
}, {}, {
|
|
5322
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5323
|
+
}>;
|
|
5324
|
+
generation: import("drizzle-orm/pg-core").PgColumn<{
|
|
5325
|
+
name: "generation";
|
|
5326
|
+
tableName: "control_signals";
|
|
5327
|
+
dataType: "number";
|
|
5328
|
+
columnType: "PgInteger";
|
|
5329
|
+
data: number;
|
|
5330
|
+
driverParam: string | number;
|
|
5331
|
+
notNull: false;
|
|
5332
|
+
hasDefault: false;
|
|
5333
|
+
isPrimaryKey: false;
|
|
5334
|
+
isAutoincrement: false;
|
|
5335
|
+
hasRuntimeDefault: false;
|
|
5336
|
+
enumValues: undefined;
|
|
5337
|
+
baseColumn: never;
|
|
5338
|
+
identity: undefined;
|
|
5339
|
+
generated: undefined;
|
|
5340
|
+
}, {}, {}>;
|
|
5341
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5342
|
+
name: "createdAt";
|
|
5343
|
+
tableName: "control_signals";
|
|
5344
|
+
dataType: "string";
|
|
5345
|
+
columnType: "PgTimestampString";
|
|
5346
|
+
data: string;
|
|
5347
|
+
driverParam: string;
|
|
5348
|
+
notNull: true;
|
|
5349
|
+
hasDefault: true;
|
|
5350
|
+
isPrimaryKey: false;
|
|
5351
|
+
isAutoincrement: false;
|
|
5352
|
+
hasRuntimeDefault: false;
|
|
5353
|
+
enumValues: undefined;
|
|
5354
|
+
baseColumn: never;
|
|
5355
|
+
identity: undefined;
|
|
5356
|
+
generated: undefined;
|
|
5357
|
+
}, {}, {}>;
|
|
5358
|
+
sandboxId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5359
|
+
name: "sandboxId";
|
|
5360
|
+
tableName: "control_signals";
|
|
5361
|
+
dataType: "custom";
|
|
5362
|
+
columnType: "PgCustomColumn";
|
|
5363
|
+
data: string;
|
|
5364
|
+
driverParam: string;
|
|
5365
|
+
notNull: false;
|
|
5366
|
+
hasDefault: false;
|
|
5367
|
+
isPrimaryKey: false;
|
|
5368
|
+
isAutoincrement: false;
|
|
5369
|
+
hasRuntimeDefault: false;
|
|
5370
|
+
enumValues: undefined;
|
|
5371
|
+
baseColumn: never;
|
|
5372
|
+
identity: undefined;
|
|
5373
|
+
generated: undefined;
|
|
5374
|
+
}, {}, {
|
|
5375
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5376
|
+
}>;
|
|
5377
|
+
epoch: import("drizzle-orm/pg-core").PgColumn<{
|
|
5378
|
+
name: "epoch";
|
|
5379
|
+
tableName: "control_signals";
|
|
5380
|
+
dataType: "number";
|
|
5381
|
+
columnType: "PgInteger";
|
|
5382
|
+
data: number;
|
|
5383
|
+
driverParam: string | number;
|
|
5384
|
+
notNull: false;
|
|
5385
|
+
hasDefault: false;
|
|
5386
|
+
isPrimaryKey: false;
|
|
5387
|
+
isAutoincrement: false;
|
|
5388
|
+
hasRuntimeDefault: false;
|
|
5389
|
+
enumValues: undefined;
|
|
5390
|
+
baseColumn: never;
|
|
5391
|
+
identity: undefined;
|
|
5392
|
+
generated: undefined;
|
|
5393
|
+
}, {}, {}>;
|
|
5394
|
+
};
|
|
5395
|
+
dialect: 'pg';
|
|
5396
|
+
}>;
|
|
5397
|
+
/**
|
|
5398
|
+
* The wake outbox (architecture §12.3): one row per wake a committed transaction asked for
|
|
5399
|
+
* (`Tx.wake`), written in that transaction, so a commit never loses its wake. The row is
|
|
5400
|
+
* deleted once Durable Session Execution has accepted the wake; until then the Tenant sweep
|
|
5401
|
+
* delivers it again, with the same idempotency key (`dedupe_key`, or `wake:<id>` without
|
|
5402
|
+
* one). `created_at` is the insert's own clock (`clock_timestamp()`). `attempts` counts the
|
|
5403
|
+
* sweep's failed deliveries, `retry_at` is when it tries the row again, and a row
|
|
5404
|
+
* `parked_at` is never tried again: it stays for an operator (`Tx.failOutbox`).
|
|
5405
|
+
*/
|
|
5406
|
+
export declare const wakes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5407
|
+
name: "wakes";
|
|
5408
|
+
schema: "nylorun";
|
|
5409
|
+
columns: {
|
|
5410
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
5411
|
+
name: "id";
|
|
5412
|
+
tableName: "wakes";
|
|
5413
|
+
dataType: "custom";
|
|
5414
|
+
columnType: "PgCustomColumn";
|
|
5415
|
+
data: string;
|
|
5416
|
+
driverParam: string;
|
|
5417
|
+
notNull: true;
|
|
5418
|
+
hasDefault: false;
|
|
5419
|
+
isPrimaryKey: true;
|
|
5420
|
+
isAutoincrement: false;
|
|
5421
|
+
hasRuntimeDefault: false;
|
|
5422
|
+
enumValues: undefined;
|
|
5423
|
+
baseColumn: never;
|
|
5424
|
+
identity: undefined;
|
|
5425
|
+
generated: undefined;
|
|
5426
|
+
}, {}, {
|
|
5427
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5428
|
+
}>;
|
|
5429
|
+
sessionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5430
|
+
name: "sessionId";
|
|
5431
|
+
tableName: "wakes";
|
|
5432
|
+
dataType: "custom";
|
|
5433
|
+
columnType: "PgCustomColumn";
|
|
5434
|
+
data: string;
|
|
5435
|
+
driverParam: string;
|
|
5436
|
+
notNull: true;
|
|
5437
|
+
hasDefault: false;
|
|
5438
|
+
isPrimaryKey: false;
|
|
5439
|
+
isAutoincrement: false;
|
|
5440
|
+
hasRuntimeDefault: false;
|
|
5441
|
+
enumValues: undefined;
|
|
5442
|
+
baseColumn: never;
|
|
5443
|
+
identity: undefined;
|
|
5444
|
+
generated: undefined;
|
|
5445
|
+
}, {}, {
|
|
5446
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5447
|
+
}>;
|
|
5448
|
+
reason: import("drizzle-orm/pg-core").PgColumn<{
|
|
5449
|
+
name: "reason";
|
|
5450
|
+
tableName: "wakes";
|
|
5451
|
+
dataType: "string";
|
|
5452
|
+
columnType: "PgText";
|
|
5453
|
+
data: string;
|
|
5454
|
+
driverParam: string;
|
|
5455
|
+
notNull: true;
|
|
5456
|
+
hasDefault: false;
|
|
5457
|
+
isPrimaryKey: false;
|
|
5458
|
+
isAutoincrement: false;
|
|
5459
|
+
hasRuntimeDefault: false;
|
|
5460
|
+
enumValues: [string, ...string[]];
|
|
5461
|
+
baseColumn: never;
|
|
5462
|
+
identity: undefined;
|
|
5463
|
+
generated: undefined;
|
|
5464
|
+
}, {}, {}>;
|
|
5465
|
+
dedupeKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
5466
|
+
name: "dedupeKey";
|
|
5467
|
+
tableName: "wakes";
|
|
5468
|
+
dataType: "string";
|
|
5469
|
+
columnType: "PgText";
|
|
5470
|
+
data: string;
|
|
5471
|
+
driverParam: string;
|
|
5472
|
+
notNull: false;
|
|
5473
|
+
hasDefault: false;
|
|
5474
|
+
isPrimaryKey: false;
|
|
5475
|
+
isAutoincrement: false;
|
|
5476
|
+
hasRuntimeDefault: false;
|
|
5477
|
+
enumValues: [string, ...string[]];
|
|
5478
|
+
baseColumn: never;
|
|
5479
|
+
identity: undefined;
|
|
5480
|
+
generated: undefined;
|
|
5481
|
+
}, {}, {}>;
|
|
5482
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5483
|
+
name: "createdAt";
|
|
5484
|
+
tableName: "wakes";
|
|
5485
|
+
dataType: "date";
|
|
5486
|
+
columnType: "PgTimestamp";
|
|
5487
|
+
data: Date;
|
|
5488
|
+
driverParam: string;
|
|
5489
|
+
notNull: true;
|
|
5490
|
+
hasDefault: true;
|
|
5491
|
+
isPrimaryKey: false;
|
|
5492
|
+
isAutoincrement: false;
|
|
5493
|
+
hasRuntimeDefault: false;
|
|
5494
|
+
enumValues: undefined;
|
|
5495
|
+
baseColumn: never;
|
|
5496
|
+
identity: undefined;
|
|
5497
|
+
generated: undefined;
|
|
5498
|
+
}, {}, {}>;
|
|
5499
|
+
attempts: import("drizzle-orm/pg-core").PgColumn<{
|
|
5500
|
+
name: "attempts";
|
|
5501
|
+
tableName: "wakes";
|
|
5502
|
+
dataType: "number";
|
|
5503
|
+
columnType: "PgInteger";
|
|
5504
|
+
data: number;
|
|
5505
|
+
driverParam: string | number;
|
|
5506
|
+
notNull: true;
|
|
5507
|
+
hasDefault: true;
|
|
5508
|
+
isPrimaryKey: false;
|
|
5509
|
+
isAutoincrement: false;
|
|
5510
|
+
hasRuntimeDefault: false;
|
|
5511
|
+
enumValues: undefined;
|
|
5512
|
+
baseColumn: never;
|
|
5513
|
+
identity: undefined;
|
|
5514
|
+
generated: undefined;
|
|
5515
|
+
}, {}, {}>;
|
|
5516
|
+
retryAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5517
|
+
name: "retryAt";
|
|
5518
|
+
tableName: "wakes";
|
|
5519
|
+
dataType: "date";
|
|
5520
|
+
columnType: "PgTimestamp";
|
|
5521
|
+
data: Date;
|
|
5522
|
+
driverParam: string;
|
|
5523
|
+
notNull: false;
|
|
5524
|
+
hasDefault: false;
|
|
5525
|
+
isPrimaryKey: false;
|
|
5526
|
+
isAutoincrement: false;
|
|
5527
|
+
hasRuntimeDefault: false;
|
|
5528
|
+
enumValues: undefined;
|
|
5529
|
+
baseColumn: never;
|
|
5530
|
+
identity: undefined;
|
|
5531
|
+
generated: undefined;
|
|
5532
|
+
}, {}, {}>;
|
|
5533
|
+
parkedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5534
|
+
name: "parkedAt";
|
|
5535
|
+
tableName: "wakes";
|
|
5536
|
+
dataType: "date";
|
|
5537
|
+
columnType: "PgTimestamp";
|
|
5538
|
+
data: Date;
|
|
5539
|
+
driverParam: string;
|
|
5540
|
+
notNull: false;
|
|
5541
|
+
hasDefault: false;
|
|
5542
|
+
isPrimaryKey: false;
|
|
5543
|
+
isAutoincrement: false;
|
|
5544
|
+
hasRuntimeDefault: false;
|
|
5545
|
+
enumValues: undefined;
|
|
5546
|
+
baseColumn: never;
|
|
5547
|
+
identity: undefined;
|
|
5548
|
+
generated: undefined;
|
|
5549
|
+
}, {}, {}>;
|
|
5550
|
+
};
|
|
5551
|
+
dialect: 'pg';
|
|
5552
|
+
}>;
|
|
5553
|
+
/**
|
|
5554
|
+
* The sandbox signal outbox (F7.2): one row per pod sandbox reconcile or timer a committed
|
|
5555
|
+
* transaction asked for (`Tx.signalSandbox`), kept and delivered as the wake outbox's rows are
|
|
5556
|
+
* (`attempts`, `retry_at`, `parked_at`). A reconcile is sent with the idempotency key
|
|
5557
|
+
* `signal:<id>`; a timer (`kind` `arm`) is its `timer` at `at` (ms since the epoch). Not in
|
|
5558
|
+
* `wakes`, so a Runtime that delivers only wakes never reads one.
|
|
5559
|
+
*/
|
|
5560
|
+
export declare const sandboxSignals: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5561
|
+
name: "sandbox_signals";
|
|
5562
|
+
schema: "nylorun";
|
|
5563
|
+
columns: {
|
|
5564
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
5565
|
+
name: "id";
|
|
5566
|
+
tableName: "sandbox_signals";
|
|
5567
|
+
dataType: "custom";
|
|
5568
|
+
columnType: "PgCustomColumn";
|
|
5569
|
+
data: string;
|
|
5570
|
+
driverParam: string;
|
|
5571
|
+
notNull: true;
|
|
5572
|
+
hasDefault: false;
|
|
5573
|
+
isPrimaryKey: true;
|
|
5574
|
+
isAutoincrement: false;
|
|
5575
|
+
hasRuntimeDefault: false;
|
|
5576
|
+
enumValues: undefined;
|
|
5577
|
+
baseColumn: never;
|
|
5578
|
+
identity: undefined;
|
|
5579
|
+
generated: undefined;
|
|
5580
|
+
}, {}, {
|
|
5581
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5582
|
+
}>;
|
|
5583
|
+
sandboxId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5584
|
+
name: "sandboxId";
|
|
5585
|
+
tableName: "sandbox_signals";
|
|
5586
|
+
dataType: "custom";
|
|
5587
|
+
columnType: "PgCustomColumn";
|
|
5588
|
+
data: string;
|
|
5589
|
+
driverParam: string;
|
|
5590
|
+
notNull: true;
|
|
5591
|
+
hasDefault: false;
|
|
5592
|
+
isPrimaryKey: false;
|
|
5593
|
+
isAutoincrement: false;
|
|
5594
|
+
hasRuntimeDefault: false;
|
|
5595
|
+
enumValues: undefined;
|
|
5596
|
+
baseColumn: never;
|
|
5597
|
+
identity: undefined;
|
|
5598
|
+
generated: undefined;
|
|
5599
|
+
}, {}, {
|
|
5600
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5601
|
+
}>;
|
|
5602
|
+
kind: import("drizzle-orm/pg-core").PgColumn<{
|
|
5603
|
+
name: "kind";
|
|
5604
|
+
tableName: "sandbox_signals";
|
|
5605
|
+
dataType: "string";
|
|
5606
|
+
columnType: "PgText";
|
|
5607
|
+
data: string;
|
|
5608
|
+
driverParam: string;
|
|
5609
|
+
notNull: true;
|
|
5610
|
+
hasDefault: false;
|
|
5611
|
+
isPrimaryKey: false;
|
|
5612
|
+
isAutoincrement: false;
|
|
5613
|
+
hasRuntimeDefault: false;
|
|
5614
|
+
enumValues: [string, ...string[]];
|
|
5615
|
+
baseColumn: never;
|
|
5616
|
+
identity: undefined;
|
|
5617
|
+
generated: undefined;
|
|
5618
|
+
}, {}, {}>;
|
|
5619
|
+
timer: import("drizzle-orm/pg-core").PgColumn<{
|
|
5620
|
+
name: "timer";
|
|
5621
|
+
tableName: "sandbox_signals";
|
|
5622
|
+
dataType: "string";
|
|
5623
|
+
columnType: "PgText";
|
|
5624
|
+
data: string;
|
|
5625
|
+
driverParam: string;
|
|
5626
|
+
notNull: false;
|
|
5627
|
+
hasDefault: false;
|
|
5628
|
+
isPrimaryKey: false;
|
|
5629
|
+
isAutoincrement: false;
|
|
5630
|
+
hasRuntimeDefault: false;
|
|
5631
|
+
enumValues: [string, ...string[]];
|
|
5632
|
+
baseColumn: never;
|
|
5633
|
+
identity: undefined;
|
|
5634
|
+
generated: undefined;
|
|
5635
|
+
}, {}, {}>;
|
|
5636
|
+
at: import("drizzle-orm/pg-core").PgColumn<{
|
|
5637
|
+
name: "at";
|
|
5638
|
+
tableName: "sandbox_signals";
|
|
4939
5639
|
dataType: "number";
|
|
4940
5640
|
columnType: "PgBigInt53";
|
|
4941
5641
|
data: number;
|
|
4942
5642
|
driverParam: string | number;
|
|
5643
|
+
notNull: false;
|
|
5644
|
+
hasDefault: false;
|
|
5645
|
+
isPrimaryKey: false;
|
|
5646
|
+
isAutoincrement: false;
|
|
5647
|
+
hasRuntimeDefault: false;
|
|
5648
|
+
enumValues: undefined;
|
|
5649
|
+
baseColumn: never;
|
|
5650
|
+
identity: undefined;
|
|
5651
|
+
generated: undefined;
|
|
5652
|
+
}, {}, {}>;
|
|
5653
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5654
|
+
name: "createdAt";
|
|
5655
|
+
tableName: "sandbox_signals";
|
|
5656
|
+
dataType: "date";
|
|
5657
|
+
columnType: "PgTimestamp";
|
|
5658
|
+
data: Date;
|
|
5659
|
+
driverParam: string;
|
|
5660
|
+
notNull: true;
|
|
5661
|
+
hasDefault: true;
|
|
5662
|
+
isPrimaryKey: false;
|
|
5663
|
+
isAutoincrement: false;
|
|
5664
|
+
hasRuntimeDefault: false;
|
|
5665
|
+
enumValues: undefined;
|
|
5666
|
+
baseColumn: never;
|
|
5667
|
+
identity: undefined;
|
|
5668
|
+
generated: undefined;
|
|
5669
|
+
}, {}, {}>;
|
|
5670
|
+
attempts: import("drizzle-orm/pg-core").PgColumn<{
|
|
5671
|
+
name: "attempts";
|
|
5672
|
+
tableName: "sandbox_signals";
|
|
5673
|
+
dataType: "number";
|
|
5674
|
+
columnType: "PgInteger";
|
|
5675
|
+
data: number;
|
|
5676
|
+
driverParam: string | number;
|
|
4943
5677
|
notNull: true;
|
|
4944
5678
|
hasDefault: true;
|
|
4945
|
-
isPrimaryKey:
|
|
5679
|
+
isPrimaryKey: false;
|
|
5680
|
+
isAutoincrement: false;
|
|
5681
|
+
hasRuntimeDefault: false;
|
|
5682
|
+
enumValues: undefined;
|
|
5683
|
+
baseColumn: never;
|
|
5684
|
+
identity: undefined;
|
|
5685
|
+
generated: undefined;
|
|
5686
|
+
}, {}, {}>;
|
|
5687
|
+
retryAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5688
|
+
name: "retryAt";
|
|
5689
|
+
tableName: "sandbox_signals";
|
|
5690
|
+
dataType: "date";
|
|
5691
|
+
columnType: "PgTimestamp";
|
|
5692
|
+
data: Date;
|
|
5693
|
+
driverParam: string;
|
|
5694
|
+
notNull: false;
|
|
5695
|
+
hasDefault: false;
|
|
5696
|
+
isPrimaryKey: false;
|
|
4946
5697
|
isAutoincrement: false;
|
|
4947
5698
|
hasRuntimeDefault: false;
|
|
4948
5699
|
enumValues: undefined;
|
|
4949
5700
|
baseColumn: never;
|
|
4950
|
-
identity:
|
|
5701
|
+
identity: undefined;
|
|
4951
5702
|
generated: undefined;
|
|
4952
5703
|
}, {}, {}>;
|
|
4953
|
-
|
|
4954
|
-
name: "
|
|
4955
|
-
tableName: "
|
|
4956
|
-
dataType: "
|
|
4957
|
-
columnType: "
|
|
4958
|
-
data:
|
|
5704
|
+
parkedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5705
|
+
name: "parkedAt";
|
|
5706
|
+
tableName: "sandbox_signals";
|
|
5707
|
+
dataType: "date";
|
|
5708
|
+
columnType: "PgTimestamp";
|
|
5709
|
+
data: Date;
|
|
4959
5710
|
driverParam: string;
|
|
4960
|
-
notNull:
|
|
5711
|
+
notNull: false;
|
|
4961
5712
|
hasDefault: false;
|
|
4962
5713
|
isPrimaryKey: false;
|
|
4963
5714
|
isAutoincrement: false;
|
|
4964
5715
|
hasRuntimeDefault: false;
|
|
4965
|
-
enumValues:
|
|
5716
|
+
enumValues: undefined;
|
|
4966
5717
|
baseColumn: never;
|
|
4967
5718
|
identity: undefined;
|
|
4968
5719
|
generated: undefined;
|
|
4969
5720
|
}, {}, {}>;
|
|
5721
|
+
};
|
|
5722
|
+
dialect: 'pg';
|
|
5723
|
+
}>;
|
|
5724
|
+
/**
|
|
5725
|
+
* A2A push notification configs (Host feature `a2a-profile-v2`): where a task's updates go, one
|
|
5726
|
+
* row per task and config id (`taskId`: the A2A id its caller knows, a queued message's own until
|
|
5727
|
+
* a turn takes it; `turnId`: the turn it follows). The push translator (`api/a2a/push.ts`) reads
|
|
5728
|
+
* the session's events from `nextSeq` on and writes each update as an `a2a_pushes` row in one
|
|
5729
|
+
* transaction; `doneAt` is set once the task's turn ended, and the row is deleted after the
|
|
5730
|
+
* Host tuning's `a2a.pushConfigRetentionMs`. `extensions` are the profile extensions the caller
|
|
5731
|
+
* activated when it gave the config; `baseUrl` is the Runtime's URL as that caller reached it,
|
|
5732
|
+
* for file URLs; `traceId` is `telemetry/v1`'s.
|
|
5733
|
+
*/
|
|
5734
|
+
export declare const a2aPushConfigs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5735
|
+
name: "a2a_push_configs";
|
|
5736
|
+
schema: "nylorun";
|
|
5737
|
+
columns: {
|
|
4970
5738
|
sessionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4971
5739
|
name: "sessionId";
|
|
4972
|
-
tableName: "
|
|
5740
|
+
tableName: "a2a_push_configs";
|
|
4973
5741
|
dataType: "custom";
|
|
4974
5742
|
columnType: "PgCustomColumn";
|
|
4975
5743
|
data: string;
|
|
4976
5744
|
driverParam: string;
|
|
4977
|
-
notNull:
|
|
5745
|
+
notNull: true;
|
|
4978
5746
|
hasDefault: false;
|
|
4979
5747
|
isPrimaryKey: false;
|
|
4980
5748
|
isAutoincrement: false;
|
|
@@ -4986,14 +5754,14 @@ export declare const controlSignals: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
4986
5754
|
}, {}, {
|
|
4987
5755
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
4988
5756
|
}>;
|
|
4989
|
-
|
|
4990
|
-
name: "
|
|
4991
|
-
tableName: "
|
|
5757
|
+
taskId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5758
|
+
name: "taskId";
|
|
5759
|
+
tableName: "a2a_push_configs";
|
|
4992
5760
|
dataType: "custom";
|
|
4993
5761
|
columnType: "PgCustomColumn";
|
|
4994
5762
|
data: string;
|
|
4995
5763
|
driverParam: string;
|
|
4996
|
-
notNull:
|
|
5764
|
+
notNull: true;
|
|
4997
5765
|
hasDefault: false;
|
|
4998
5766
|
isPrimaryKey: false;
|
|
4999
5767
|
isAutoincrement: false;
|
|
@@ -5005,14 +5773,14 @@ export declare const controlSignals: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
5005
5773
|
}, {}, {
|
|
5006
5774
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5007
5775
|
}>;
|
|
5008
|
-
|
|
5009
|
-
name: "
|
|
5010
|
-
tableName: "
|
|
5011
|
-
dataType: "
|
|
5012
|
-
columnType: "
|
|
5013
|
-
data:
|
|
5014
|
-
driverParam: string
|
|
5015
|
-
notNull:
|
|
5776
|
+
configId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5777
|
+
name: "configId";
|
|
5778
|
+
tableName: "a2a_push_configs";
|
|
5779
|
+
dataType: "custom";
|
|
5780
|
+
columnType: "PgCustomColumn";
|
|
5781
|
+
data: string;
|
|
5782
|
+
driverParam: string;
|
|
5783
|
+
notNull: true;
|
|
5016
5784
|
hasDefault: false;
|
|
5017
5785
|
isPrimaryKey: false;
|
|
5018
5786
|
isAutoincrement: false;
|
|
@@ -5021,32 +5789,34 @@ export declare const controlSignals: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
5021
5789
|
baseColumn: never;
|
|
5022
5790
|
identity: undefined;
|
|
5023
5791
|
generated: undefined;
|
|
5024
|
-
}, {}, {
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5792
|
+
}, {}, {
|
|
5793
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5794
|
+
}>;
|
|
5795
|
+
contextId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5796
|
+
name: "contextId";
|
|
5797
|
+
tableName: "a2a_push_configs";
|
|
5028
5798
|
dataType: "string";
|
|
5029
|
-
columnType: "
|
|
5799
|
+
columnType: "PgText";
|
|
5030
5800
|
data: string;
|
|
5031
5801
|
driverParam: string;
|
|
5032
5802
|
notNull: true;
|
|
5033
|
-
hasDefault:
|
|
5803
|
+
hasDefault: false;
|
|
5034
5804
|
isPrimaryKey: false;
|
|
5035
5805
|
isAutoincrement: false;
|
|
5036
5806
|
hasRuntimeDefault: false;
|
|
5037
|
-
enumValues:
|
|
5807
|
+
enumValues: [string, ...string[]];
|
|
5038
5808
|
baseColumn: never;
|
|
5039
5809
|
identity: undefined;
|
|
5040
5810
|
generated: undefined;
|
|
5041
5811
|
}, {}, {}>;
|
|
5042
|
-
|
|
5043
|
-
name: "
|
|
5044
|
-
tableName: "
|
|
5812
|
+
turnId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5813
|
+
name: "turnId";
|
|
5814
|
+
tableName: "a2a_push_configs";
|
|
5045
5815
|
dataType: "custom";
|
|
5046
5816
|
columnType: "PgCustomColumn";
|
|
5047
5817
|
data: string;
|
|
5048
5818
|
driverParam: string;
|
|
5049
|
-
notNull:
|
|
5819
|
+
notNull: true;
|
|
5050
5820
|
hasDefault: false;
|
|
5051
5821
|
isPrimaryKey: false;
|
|
5052
5822
|
isAutoincrement: false;
|
|
@@ -5058,66 +5828,48 @@ export declare const controlSignals: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
5058
5828
|
}, {}, {
|
|
5059
5829
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5060
5830
|
}>;
|
|
5061
|
-
|
|
5062
|
-
name: "
|
|
5063
|
-
tableName: "
|
|
5064
|
-
dataType: "
|
|
5065
|
-
columnType: "
|
|
5066
|
-
data:
|
|
5067
|
-
driverParam: string
|
|
5068
|
-
notNull:
|
|
5831
|
+
url: import("drizzle-orm/pg-core").PgColumn<{
|
|
5832
|
+
name: "url";
|
|
5833
|
+
tableName: "a2a_push_configs";
|
|
5834
|
+
dataType: "string";
|
|
5835
|
+
columnType: "PgText";
|
|
5836
|
+
data: string;
|
|
5837
|
+
driverParam: string;
|
|
5838
|
+
notNull: true;
|
|
5069
5839
|
hasDefault: false;
|
|
5070
5840
|
isPrimaryKey: false;
|
|
5071
5841
|
isAutoincrement: false;
|
|
5072
5842
|
hasRuntimeDefault: false;
|
|
5073
|
-
enumValues:
|
|
5843
|
+
enumValues: [string, ...string[]];
|
|
5074
5844
|
baseColumn: never;
|
|
5075
5845
|
identity: undefined;
|
|
5076
5846
|
generated: undefined;
|
|
5077
5847
|
}, {}, {}>;
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
* (`Tx.wake`), written in that transaction, so a commit never loses its wake. The row is
|
|
5084
|
-
* deleted once Durable Session Execution has accepted the wake; until then the Tenant sweep
|
|
5085
|
-
* delivers it again, with the same idempotency key (`dedupe_key`, or `wake:<id>` without
|
|
5086
|
-
* one). `created_at` is the insert's own clock (`clock_timestamp()`). `attempts` counts the
|
|
5087
|
-
* sweep's failed deliveries, `retry_at` is when it tries the row again, and a row
|
|
5088
|
-
* `parked_at` is never tried again: it stays for an operator (`Tx.failOutbox`).
|
|
5089
|
-
*/
|
|
5090
|
-
export declare const wakes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5091
|
-
name: "wakes";
|
|
5092
|
-
schema: "nylorun";
|
|
5093
|
-
columns: {
|
|
5094
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
5095
|
-
name: "id";
|
|
5096
|
-
tableName: "wakes";
|
|
5097
|
-
dataType: "custom";
|
|
5098
|
-
columnType: "PgCustomColumn";
|
|
5848
|
+
token: import("drizzle-orm/pg-core").PgColumn<{
|
|
5849
|
+
name: "token";
|
|
5850
|
+
tableName: "a2a_push_configs";
|
|
5851
|
+
dataType: "string";
|
|
5852
|
+
columnType: "PgText";
|
|
5099
5853
|
data: string;
|
|
5100
5854
|
driverParam: string;
|
|
5101
|
-
notNull:
|
|
5855
|
+
notNull: false;
|
|
5102
5856
|
hasDefault: false;
|
|
5103
|
-
isPrimaryKey:
|
|
5857
|
+
isPrimaryKey: false;
|
|
5104
5858
|
isAutoincrement: false;
|
|
5105
5859
|
hasRuntimeDefault: false;
|
|
5106
|
-
enumValues:
|
|
5860
|
+
enumValues: [string, ...string[]];
|
|
5107
5861
|
baseColumn: never;
|
|
5108
5862
|
identity: undefined;
|
|
5109
5863
|
generated: undefined;
|
|
5110
|
-
}, {}, {
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
name: "sessionId";
|
|
5115
|
-
tableName: "wakes";
|
|
5864
|
+
}, {}, {}>;
|
|
5865
|
+
authentication: import("drizzle-orm/pg-core").PgColumn<{
|
|
5866
|
+
name: "authentication";
|
|
5867
|
+
tableName: "a2a_push_configs";
|
|
5116
5868
|
dataType: "custom";
|
|
5117
5869
|
columnType: "PgCustomColumn";
|
|
5118
|
-
data:
|
|
5119
|
-
driverParam:
|
|
5120
|
-
notNull:
|
|
5870
|
+
data: unknown;
|
|
5871
|
+
driverParam: unknown;
|
|
5872
|
+
notNull: false;
|
|
5121
5873
|
hasDefault: false;
|
|
5122
5874
|
isPrimaryKey: false;
|
|
5123
5875
|
isAutoincrement: false;
|
|
@@ -5129,9 +5881,9 @@ export declare const wakes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
5129
5881
|
}, {}, {
|
|
5130
5882
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5131
5883
|
}>;
|
|
5132
|
-
|
|
5133
|
-
name: "
|
|
5134
|
-
tableName: "
|
|
5884
|
+
baseUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
5885
|
+
name: "baseUrl";
|
|
5886
|
+
tableName: "a2a_push_configs";
|
|
5135
5887
|
dataType: "string";
|
|
5136
5888
|
columnType: "PgText";
|
|
5137
5889
|
data: string;
|
|
@@ -5146,49 +5898,51 @@ export declare const wakes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
5146
5898
|
identity: undefined;
|
|
5147
5899
|
generated: undefined;
|
|
5148
5900
|
}, {}, {}>;
|
|
5149
|
-
|
|
5150
|
-
name: "
|
|
5151
|
-
tableName: "
|
|
5152
|
-
dataType: "
|
|
5153
|
-
columnType: "
|
|
5154
|
-
data:
|
|
5155
|
-
driverParam:
|
|
5156
|
-
notNull:
|
|
5901
|
+
extensions: import("drizzle-orm/pg-core").PgColumn<{
|
|
5902
|
+
name: "extensions";
|
|
5903
|
+
tableName: "a2a_push_configs";
|
|
5904
|
+
dataType: "custom";
|
|
5905
|
+
columnType: "PgCustomColumn";
|
|
5906
|
+
data: unknown;
|
|
5907
|
+
driverParam: unknown;
|
|
5908
|
+
notNull: true;
|
|
5157
5909
|
hasDefault: false;
|
|
5158
5910
|
isPrimaryKey: false;
|
|
5159
5911
|
isAutoincrement: false;
|
|
5160
5912
|
hasRuntimeDefault: false;
|
|
5161
|
-
enumValues:
|
|
5913
|
+
enumValues: undefined;
|
|
5162
5914
|
baseColumn: never;
|
|
5163
5915
|
identity: undefined;
|
|
5164
5916
|
generated: undefined;
|
|
5165
|
-
}, {}, {
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5917
|
+
}, {}, {
|
|
5918
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5919
|
+
}>;
|
|
5920
|
+
traceId: import("drizzle-orm/pg-core").PgColumn<{
|
|
5921
|
+
name: "traceId";
|
|
5922
|
+
tableName: "a2a_push_configs";
|
|
5923
|
+
dataType: "string";
|
|
5924
|
+
columnType: "PgText";
|
|
5925
|
+
data: string;
|
|
5172
5926
|
driverParam: string;
|
|
5173
|
-
notNull:
|
|
5174
|
-
hasDefault:
|
|
5927
|
+
notNull: false;
|
|
5928
|
+
hasDefault: false;
|
|
5175
5929
|
isPrimaryKey: false;
|
|
5176
5930
|
isAutoincrement: false;
|
|
5177
5931
|
hasRuntimeDefault: false;
|
|
5178
|
-
enumValues:
|
|
5932
|
+
enumValues: [string, ...string[]];
|
|
5179
5933
|
baseColumn: never;
|
|
5180
5934
|
identity: undefined;
|
|
5181
5935
|
generated: undefined;
|
|
5182
5936
|
}, {}, {}>;
|
|
5183
|
-
|
|
5184
|
-
name: "
|
|
5185
|
-
tableName: "
|
|
5937
|
+
nextSeq: import("drizzle-orm/pg-core").PgColumn<{
|
|
5938
|
+
name: "nextSeq";
|
|
5939
|
+
tableName: "a2a_push_configs";
|
|
5186
5940
|
dataType: "number";
|
|
5187
|
-
columnType: "
|
|
5941
|
+
columnType: "PgBigInt53";
|
|
5188
5942
|
data: number;
|
|
5189
5943
|
driverParam: string | number;
|
|
5190
5944
|
notNull: true;
|
|
5191
|
-
hasDefault:
|
|
5945
|
+
hasDefault: false;
|
|
5192
5946
|
isPrimaryKey: false;
|
|
5193
5947
|
isAutoincrement: false;
|
|
5194
5948
|
hasRuntimeDefault: false;
|
|
@@ -5197,15 +5951,15 @@ export declare const wakes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
5197
5951
|
identity: undefined;
|
|
5198
5952
|
generated: undefined;
|
|
5199
5953
|
}, {}, {}>;
|
|
5200
|
-
|
|
5201
|
-
name: "
|
|
5202
|
-
tableName: "
|
|
5954
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5955
|
+
name: "createdAt";
|
|
5956
|
+
tableName: "a2a_push_configs";
|
|
5203
5957
|
dataType: "date";
|
|
5204
5958
|
columnType: "PgTimestamp";
|
|
5205
5959
|
data: Date;
|
|
5206
5960
|
driverParam: string;
|
|
5207
|
-
notNull:
|
|
5208
|
-
hasDefault:
|
|
5961
|
+
notNull: true;
|
|
5962
|
+
hasDefault: true;
|
|
5209
5963
|
isPrimaryKey: false;
|
|
5210
5964
|
isAutoincrement: false;
|
|
5211
5965
|
hasRuntimeDefault: false;
|
|
@@ -5214,9 +5968,9 @@ export declare const wakes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
5214
5968
|
identity: undefined;
|
|
5215
5969
|
generated: undefined;
|
|
5216
5970
|
}, {}, {}>;
|
|
5217
|
-
|
|
5218
|
-
name: "
|
|
5219
|
-
tableName: "
|
|
5971
|
+
doneAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5972
|
+
name: "doneAt";
|
|
5973
|
+
tableName: "a2a_push_configs";
|
|
5220
5974
|
dataType: "date";
|
|
5221
5975
|
columnType: "PgTimestamp";
|
|
5222
5976
|
data: Date;
|
|
@@ -5235,19 +5989,20 @@ export declare const wakes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
5235
5989
|
dialect: 'pg';
|
|
5236
5990
|
}>;
|
|
5237
5991
|
/**
|
|
5238
|
-
* The
|
|
5239
|
-
*
|
|
5240
|
-
* (`attempts`, `retry_at`, `parked_at`).
|
|
5241
|
-
* `
|
|
5242
|
-
*
|
|
5992
|
+
* The push outbox (outbox kind `push`): one row per A2A update a push config is owed, its body
|
|
5993
|
+
* the exact JSON sent (a `StreamResponse`), delivered after commit and by the Tenant sweep as the
|
|
5994
|
+
* other outbox rows are (`attempts`, `retry_at`, `parked_at`). The row id is the Standard
|
|
5995
|
+
* Webhooks `webhook-id`, the same on every attempt. A row whose config is gone, or that kept
|
|
5996
|
+
* failing for the Host tuning's `a2a.pushMaxAgeMs` (24 hours), is deleted: the change feed
|
|
5997
|
+
* covers what it would have said.
|
|
5243
5998
|
*/
|
|
5244
|
-
export declare const
|
|
5245
|
-
name: "
|
|
5999
|
+
export declare const a2aPushes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
6000
|
+
name: "a2a_pushes";
|
|
5246
6001
|
schema: "nylorun";
|
|
5247
6002
|
columns: {
|
|
5248
6003
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
5249
6004
|
name: "id";
|
|
5250
|
-
tableName: "
|
|
6005
|
+
tableName: "a2a_pushes";
|
|
5251
6006
|
dataType: "custom";
|
|
5252
6007
|
columnType: "PgCustomColumn";
|
|
5253
6008
|
data: string;
|
|
@@ -5264,9 +6019,9 @@ export declare const sandboxSignals: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
5264
6019
|
}, {}, {
|
|
5265
6020
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5266
6021
|
}>;
|
|
5267
|
-
|
|
5268
|
-
name: "
|
|
5269
|
-
tableName: "
|
|
6022
|
+
sessionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
6023
|
+
name: "sessionId";
|
|
6024
|
+
tableName: "a2a_pushes";
|
|
5270
6025
|
dataType: "custom";
|
|
5271
6026
|
columnType: "PgCustomColumn";
|
|
5272
6027
|
data: string;
|
|
@@ -5283,11 +6038,11 @@ export declare const sandboxSignals: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
5283
6038
|
}, {}, {
|
|
5284
6039
|
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
5285
6040
|
}>;
|
|
5286
|
-
|
|
5287
|
-
name: "
|
|
5288
|
-
tableName: "
|
|
5289
|
-
dataType: "
|
|
5290
|
-
columnType: "
|
|
6041
|
+
taskId: import("drizzle-orm/pg-core").PgColumn<{
|
|
6042
|
+
name: "taskId";
|
|
6043
|
+
tableName: "a2a_pushes";
|
|
6044
|
+
dataType: "custom";
|
|
6045
|
+
columnType: "PgCustomColumn";
|
|
5291
6046
|
data: string;
|
|
5292
6047
|
driverParam: string;
|
|
5293
6048
|
notNull: true;
|
|
@@ -5295,48 +6050,52 @@ export declare const sandboxSignals: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
5295
6050
|
isPrimaryKey: false;
|
|
5296
6051
|
isAutoincrement: false;
|
|
5297
6052
|
hasRuntimeDefault: false;
|
|
5298
|
-
enumValues:
|
|
6053
|
+
enumValues: undefined;
|
|
5299
6054
|
baseColumn: never;
|
|
5300
6055
|
identity: undefined;
|
|
5301
6056
|
generated: undefined;
|
|
5302
|
-
}, {}, {
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
6057
|
+
}, {}, {
|
|
6058
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
6059
|
+
}>;
|
|
6060
|
+
configId: import("drizzle-orm/pg-core").PgColumn<{
|
|
6061
|
+
name: "configId";
|
|
6062
|
+
tableName: "a2a_pushes";
|
|
6063
|
+
dataType: "custom";
|
|
6064
|
+
columnType: "PgCustomColumn";
|
|
5308
6065
|
data: string;
|
|
5309
6066
|
driverParam: string;
|
|
5310
|
-
notNull:
|
|
6067
|
+
notNull: true;
|
|
5311
6068
|
hasDefault: false;
|
|
5312
6069
|
isPrimaryKey: false;
|
|
5313
6070
|
isAutoincrement: false;
|
|
5314
6071
|
hasRuntimeDefault: false;
|
|
5315
|
-
enumValues:
|
|
6072
|
+
enumValues: undefined;
|
|
5316
6073
|
baseColumn: never;
|
|
5317
6074
|
identity: undefined;
|
|
5318
6075
|
generated: undefined;
|
|
5319
|
-
}, {}, {
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
6076
|
+
}, {}, {
|
|
6077
|
+
pgColumnBuilderBrand: 'PgCustomColumnBuilderBrand';
|
|
6078
|
+
}>;
|
|
6079
|
+
body: import("drizzle-orm/pg-core").PgColumn<{
|
|
6080
|
+
name: "body";
|
|
6081
|
+
tableName: "a2a_pushes";
|
|
6082
|
+
dataType: "string";
|
|
6083
|
+
columnType: "PgText";
|
|
6084
|
+
data: string;
|
|
6085
|
+
driverParam: string;
|
|
6086
|
+
notNull: true;
|
|
5328
6087
|
hasDefault: false;
|
|
5329
6088
|
isPrimaryKey: false;
|
|
5330
6089
|
isAutoincrement: false;
|
|
5331
6090
|
hasRuntimeDefault: false;
|
|
5332
|
-
enumValues:
|
|
6091
|
+
enumValues: [string, ...string[]];
|
|
5333
6092
|
baseColumn: never;
|
|
5334
6093
|
identity: undefined;
|
|
5335
6094
|
generated: undefined;
|
|
5336
6095
|
}, {}, {}>;
|
|
5337
6096
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5338
6097
|
name: "createdAt";
|
|
5339
|
-
tableName: "
|
|
6098
|
+
tableName: "a2a_pushes";
|
|
5340
6099
|
dataType: "date";
|
|
5341
6100
|
columnType: "PgTimestamp";
|
|
5342
6101
|
data: Date;
|
|
@@ -5353,7 +6112,7 @@ export declare const sandboxSignals: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
5353
6112
|
}, {}, {}>;
|
|
5354
6113
|
attempts: import("drizzle-orm/pg-core").PgColumn<{
|
|
5355
6114
|
name: "attempts";
|
|
5356
|
-
tableName: "
|
|
6115
|
+
tableName: "a2a_pushes";
|
|
5357
6116
|
dataType: "number";
|
|
5358
6117
|
columnType: "PgInteger";
|
|
5359
6118
|
data: number;
|
|
@@ -5370,7 +6129,7 @@ export declare const sandboxSignals: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
5370
6129
|
}, {}, {}>;
|
|
5371
6130
|
retryAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5372
6131
|
name: "retryAt";
|
|
5373
|
-
tableName: "
|
|
6132
|
+
tableName: "a2a_pushes";
|
|
5374
6133
|
dataType: "date";
|
|
5375
6134
|
columnType: "PgTimestamp";
|
|
5376
6135
|
data: Date;
|
|
@@ -5387,7 +6146,7 @@ export declare const sandboxSignals: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
5387
6146
|
}, {}, {}>;
|
|
5388
6147
|
parkedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
5389
6148
|
name: "parkedAt";
|
|
5390
|
-
tableName: "
|
|
6149
|
+
tableName: "a2a_pushes";
|
|
5391
6150
|
dataType: "date";
|
|
5392
6151
|
columnType: "PgTimestamp";
|
|
5393
6152
|
data: Date;
|
|
@@ -5736,6 +6495,9 @@ export type ModelUsageRow = typeof modelUsage.$inferSelect;
|
|
|
5736
6495
|
export type ModelBudgetRow = typeof modelBudgets.$inferSelect;
|
|
5737
6496
|
export type ToolCrossingRow = typeof toolCrossings.$inferSelect;
|
|
5738
6497
|
export type QueuedMessageRow = typeof sessionQueue.$inferSelect;
|
|
6498
|
+
export type TurnRow = typeof turns.$inferSelect;
|
|
6499
|
+
export type A2aPushConfigRow = typeof a2aPushConfigs.$inferSelect;
|
|
6500
|
+
export type A2aPushRow = typeof a2aPushes.$inferSelect;
|
|
5739
6501
|
export type AgentTriggerRow = typeof agentTriggers.$inferSelect;
|
|
5740
6502
|
export type TriggerRunRow = typeof triggerRuns.$inferSelect;
|
|
5741
6503
|
export type MemoryRow = typeof memories.$inferSelect;
|