deepline 0.3.270 → 0.3.272

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.
Files changed (29) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +3 -2
  3. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +11 -9
  4. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +5 -4
  5. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +2 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/run-event-catalog.ts +610 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-event-transport.ts +3 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-diagnostics.ts +3 -2
  9. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +80 -67
  10. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +5 -4
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +59 -20
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +3 -2
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +19 -9
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +205 -107
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +125 -81
  16. package/dist/cli/getting-started.d.mts +13 -9
  17. package/dist/cli/getting-started.d.ts +13 -9
  18. package/dist/cli/getting-started.js +15 -3
  19. package/dist/cli/getting-started.mjs +13 -3
  20. package/dist/cli/index.js +447 -11
  21. package/dist/cli/index.mjs +447 -11
  22. package/dist/index.js +420 -1
  23. package/dist/index.mjs +420 -1
  24. package/dist/install-integrity.json +1 -0
  25. package/dist/release.d.mts +1 -1
  26. package/dist/release.d.ts +1 -1
  27. package/dist/release.js +1 -1
  28. package/dist/release.mjs +1 -1
  29. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1325,7 +1325,7 @@ var SDK_RELEASE = {
1325
1325
  // getters keep their established compatibility behavior.
1326
1326
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1327
1327
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1328
- version: "0.3.270",
1328
+ version: "0.3.272",
1329
1329
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
1330
1330
  packageCapabilities: {
1331
1331
  updatePreferences: 1
@@ -2977,6 +2977,425 @@ var ledgerIngressRedactor = createSecretRedactionContext();
2977
2977
  var utf8Encoder = new TextEncoder();
2978
2978
  var PLAY_DATASET_BRAND = Symbol.for("deepline.play.dataset");
2979
2979
 
2980
+ // ../play-runtime/run-event-catalog.ts
2981
+ var RUN_EVENT_KIND = {
2982
+ runCreated: "run.created",
2983
+ runStarted: "run.started",
2984
+ runWaiting: "run.waiting",
2985
+ runResumed: "run.resumed",
2986
+ runCompleted: "run.completed",
2987
+ runFailed: "run.failed",
2988
+ runCancelled: "run.cancelled",
2989
+ stepStarted: "step.started",
2990
+ stepProgress: "step.progress",
2991
+ stepCompleted: "step.completed",
2992
+ stepFailed: "step.failed",
2993
+ stepSkipped: "step.skipped",
2994
+ logAppended: "log.appended",
2995
+ datasetLifecycle: "dataset.lifecycle",
2996
+ activityObserved: "activity.observed",
2997
+ workCounters: "work.counters"
2998
+ };
2999
+ var SEARCHABLE_EVENT_FIELDS = [
3000
+ "kind",
3001
+ "runId",
3002
+ "playName",
3003
+ "source",
3004
+ "occurredAt"
3005
+ ];
3006
+ var RUN_SNAPSHOT_DESTINATION = {
3007
+ searchIndex: "planet_scale_runtime_event_index",
3008
+ markedRunStore: "planet_scale",
3009
+ planetScaleContent: "event_payload",
3010
+ convexProjection: "run_snapshot",
3011
+ convexRetainedFacts: ["saved_play_rollup_if_eligible"],
3012
+ legacyConvexDestination: "run_ledger_history",
3013
+ explanation: "PlanetScale retains the complete event. Convex reduces it into bounded current run state and keeps only selected saved-Play rollup facts when eligible; unmarked legacy runs retain Convex event history."
3014
+ };
3015
+ var RUN_CREATED_DESTINATION = {
3016
+ ...RUN_SNAPSHOT_DESTINATION,
3017
+ convexRetainedFacts: ["admission_fence", "saved_play_rollup_if_eligible"],
3018
+ explanation: "PlanetScale retains the complete event. Convex uses it for the live run snapshot, retains the admission fence, and may retain a saved-Play rollup fact; unmarked legacy runs retain Convex event history."
3019
+ };
3020
+ var RUN_LOG_DESTINATION = {
3021
+ searchIndex: "planet_scale_runtime_event_index",
3022
+ markedRunStore: "planet_scale",
3023
+ planetScaleContent: "log_body",
3024
+ convexProjection: null,
3025
+ convexRetainedFacts: [],
3026
+ legacyConvexDestination: "run_log_stream",
3027
+ explanation: "PlanetScale retains the canonical log line and its search metadata. Marked-run log bodies are not copied into Convex; unmarked legacy runs continue to use the Convex Run Log Stream."
3028
+ };
3029
+ var RUN_EVENT_KIND_CATALOG = {
3030
+ [RUN_EVENT_KIND.runCreated]: {
3031
+ description: "The run was admitted and received its run ID.",
3032
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3033
+ outboxCarriers: ["run.created"],
3034
+ destination: RUN_CREATED_DESTINATION,
3035
+ example: {
3036
+ runId: "play/enrich/run/abc123",
3037
+ type: RUN_EVENT_KIND.runCreated,
3038
+ seq: 1
3039
+ }
3040
+ },
3041
+ [RUN_EVENT_KIND.runStarted]: {
3042
+ description: "The run began execution.",
3043
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3044
+ outboxCarriers: ["run.started"],
3045
+ destination: RUN_SNAPSHOT_DESTINATION,
3046
+ example: {
3047
+ runId: "play/enrich/run/abc123",
3048
+ type: RUN_EVENT_KIND.runStarted,
3049
+ seq: 2
3050
+ }
3051
+ },
3052
+ [RUN_EVENT_KIND.runWaiting]: {
3053
+ description: "The run entered a durable wait.",
3054
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3055
+ outboxCarriers: ["run.waiting"],
3056
+ destination: RUN_SNAPSHOT_DESTINATION,
3057
+ example: {
3058
+ runId: "play/enrich/run/abc123",
3059
+ type: RUN_EVENT_KIND.runWaiting,
3060
+ waitKind: "sleep"
3061
+ }
3062
+ },
3063
+ [RUN_EVENT_KIND.runResumed]: {
3064
+ description: "The run resumed after a durable wait.",
3065
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3066
+ outboxCarriers: ["run.resumed"],
3067
+ destination: RUN_SNAPSHOT_DESTINATION,
3068
+ example: {
3069
+ runId: "play/enrich/run/abc123",
3070
+ type: RUN_EVENT_KIND.runResumed
3071
+ }
3072
+ },
3073
+ [RUN_EVENT_KIND.runCompleted]: {
3074
+ description: "The run completed successfully.",
3075
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3076
+ outboxCarriers: ["run.completed", "runner.logs"],
3077
+ destination: RUN_SNAPSHOT_DESTINATION,
3078
+ example: {
3079
+ runId: "play/enrich/run/abc123",
3080
+ type: RUN_EVENT_KIND.runCompleted
3081
+ }
3082
+ },
3083
+ [RUN_EVENT_KIND.runFailed]: {
3084
+ description: "The run ended with a failure.",
3085
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3086
+ outboxCarriers: ["run.failed", "runner.logs"],
3087
+ destination: RUN_SNAPSHOT_DESTINATION,
3088
+ example: {
3089
+ runId: "play/enrich/run/abc123",
3090
+ type: RUN_EVENT_KIND.runFailed,
3091
+ error: "Request timed out"
3092
+ }
3093
+ },
3094
+ [RUN_EVENT_KIND.runCancelled]: {
3095
+ description: "The run was cancelled.",
3096
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3097
+ outboxCarriers: ["run.cancelled"],
3098
+ destination: RUN_SNAPSHOT_DESTINATION,
3099
+ example: {
3100
+ runId: "play/enrich/run/abc123",
3101
+ type: RUN_EVENT_KIND.runCancelled
3102
+ }
3103
+ },
3104
+ [RUN_EVENT_KIND.stepStarted]: {
3105
+ description: "A named step began execution.",
3106
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3107
+ outboxCarriers: [
3108
+ "run.events",
3109
+ "run.completed",
3110
+ "run.failed",
3111
+ "runner.logs"
3112
+ ],
3113
+ destination: RUN_SNAPSHOT_DESTINATION,
3114
+ example: {
3115
+ runId: "play/enrich/run/abc123",
3116
+ type: RUN_EVENT_KIND.stepStarted,
3117
+ stepId: "lookup"
3118
+ }
3119
+ },
3120
+ [RUN_EVENT_KIND.stepProgress]: {
3121
+ description: "A named step reported progress.",
3122
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3123
+ outboxCarriers: [
3124
+ "run.events",
3125
+ "run.completed",
3126
+ "run.failed",
3127
+ "runner.logs"
3128
+ ],
3129
+ destination: RUN_SNAPSHOT_DESTINATION,
3130
+ example: {
3131
+ runId: "play/enrich/run/abc123",
3132
+ type: RUN_EVENT_KIND.stepProgress,
3133
+ stepId: "lookup"
3134
+ }
3135
+ },
3136
+ [RUN_EVENT_KIND.stepCompleted]: {
3137
+ description: "A named step completed.",
3138
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3139
+ outboxCarriers: [
3140
+ "run.events",
3141
+ "run.completed",
3142
+ "run.failed",
3143
+ "runner.logs"
3144
+ ],
3145
+ destination: RUN_SNAPSHOT_DESTINATION,
3146
+ example: {
3147
+ runId: "play/enrich/run/abc123",
3148
+ type: RUN_EVENT_KIND.stepCompleted,
3149
+ stepId: "lookup"
3150
+ }
3151
+ },
3152
+ [RUN_EVENT_KIND.stepFailed]: {
3153
+ description: "A named step failed.",
3154
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3155
+ outboxCarriers: [
3156
+ "run.events",
3157
+ "run.completed",
3158
+ "run.failed",
3159
+ "runner.logs"
3160
+ ],
3161
+ destination: RUN_SNAPSHOT_DESTINATION,
3162
+ example: {
3163
+ runId: "play/enrich/run/abc123",
3164
+ type: RUN_EVENT_KIND.stepFailed,
3165
+ stepId: "lookup"
3166
+ }
3167
+ },
3168
+ [RUN_EVENT_KIND.stepSkipped]: {
3169
+ description: "A named step was skipped.",
3170
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3171
+ outboxCarriers: [
3172
+ "run.events",
3173
+ "run.completed",
3174
+ "run.failed",
3175
+ "runner.logs"
3176
+ ],
3177
+ destination: RUN_SNAPSHOT_DESTINATION,
3178
+ example: {
3179
+ runId: "play/enrich/run/abc123",
3180
+ type: RUN_EVENT_KIND.stepSkipped,
3181
+ stepId: "lookup"
3182
+ }
3183
+ },
3184
+ [RUN_EVENT_KIND.logAppended]: {
3185
+ description: "A text log line was appended to the unified run history and log view.",
3186
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3187
+ outboxCarriers: [
3188
+ "run.events",
3189
+ "run.waiting",
3190
+ "run.resumed",
3191
+ "run.completed",
3192
+ "run.failed",
3193
+ "runner.logs",
3194
+ "run.wait_timeout"
3195
+ ],
3196
+ destination: RUN_LOG_DESTINATION,
3197
+ example: {
3198
+ runId: "play/enrich/run/abc123",
3199
+ type: RUN_EVENT_KIND.logAppended,
3200
+ lines: ["Waiting for integration_event:contact.updated."]
3201
+ }
3202
+ },
3203
+ [RUN_EVENT_KIND.datasetLifecycle]: {
3204
+ description: "A run dataset was registered, made available, or failed.",
3205
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3206
+ outboxCarriers: [
3207
+ "run.events",
3208
+ "run.completed",
3209
+ "run.failed",
3210
+ "runner.logs"
3211
+ ],
3212
+ destination: RUN_SNAPSHOT_DESTINATION,
3213
+ example: {
3214
+ runId: "play/enrich/run/abc123",
3215
+ type: RUN_EVENT_KIND.datasetLifecycle,
3216
+ phase: "available"
3217
+ }
3218
+ },
3219
+ [RUN_EVENT_KIND.activityObserved]: {
3220
+ description: "The runtime recorded an activity observation.",
3221
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3222
+ outboxCarriers: [
3223
+ "run.events",
3224
+ "run.completed",
3225
+ "run.failed",
3226
+ "runner.logs"
3227
+ ],
3228
+ destination: RUN_SNAPSHOT_DESTINATION,
3229
+ example: {
3230
+ runId: "play/enrich/run/abc123",
3231
+ type: RUN_EVENT_KIND.activityObserved
3232
+ }
3233
+ },
3234
+ [RUN_EVENT_KIND.workCounters]: {
3235
+ description: "A work segment reported logical call, provider request, and rate-limit counters.",
3236
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3237
+ outboxCarriers: [
3238
+ "run.events",
3239
+ "run.completed",
3240
+ "run.failed",
3241
+ "runner.logs"
3242
+ ],
3243
+ destination: RUN_SNAPSHOT_DESTINATION,
3244
+ example: {
3245
+ runId: "play/enrich/run/abc123",
3246
+ type: RUN_EVENT_KIND.workCounters,
3247
+ attempt: 1,
3248
+ logicalCalls: 4,
3249
+ providerRequests: 4,
3250
+ provider429s: 0,
3251
+ final: true
3252
+ }
3253
+ }
3254
+ };
3255
+ var RUN_EVENT_KINDS = Object.freeze(
3256
+ Object.keys(RUN_EVENT_KIND_CATALOG)
3257
+ );
3258
+ var RUN_SCHEDULER_OUTBOX_EVENT_TYPE = {
3259
+ runCreated: RUN_EVENT_KIND.runCreated,
3260
+ runStarted: RUN_EVENT_KIND.runStarted,
3261
+ runWaiting: RUN_EVENT_KIND.runWaiting,
3262
+ runResumed: RUN_EVENT_KIND.runResumed,
3263
+ runCompleted: RUN_EVENT_KIND.runCompleted,
3264
+ runFailed: RUN_EVENT_KIND.runFailed,
3265
+ runCancelled: RUN_EVENT_KIND.runCancelled,
3266
+ runEvents: "run.events",
3267
+ runnerLogs: "runner.logs",
3268
+ runWaitTimeout: "run.wait_timeout"
3269
+ };
3270
+ var RUN_SCHEDULER_OUTBOX_EVENT_TYPES = Object.freeze(
3271
+ Object.values(RUN_SCHEDULER_OUTBOX_EVENT_TYPE)
3272
+ );
3273
+ var RUN_SCHEDULER_OUTBOX_START_EVENT_TYPES = [
3274
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCreated,
3275
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runStarted
3276
+ ];
3277
+ var RUN_SCHEDULER_OUTBOX_PREFIX_STOP_EVENT_TYPES = [
3278
+ ...RUN_SCHEDULER_OUTBOX_START_EVENT_TYPES,
3279
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runEvents
3280
+ ];
3281
+ var RUN_SCHEDULER_OUTBOX_TERMINAL_EVENT_TYPES = [
3282
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCompleted,
3283
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runFailed,
3284
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCancelled
3285
+ ];
3286
+ var RUN_EVENT_CONVEX_INTERNAL_KIND = {
3287
+ rollupMembershipAdded: "rollup.membership.added",
3288
+ rollupMembershipRemoved: "rollup.membership.removed"
3289
+ };
3290
+ var RUN_RECEIPT_SEARCH_KIND = {
3291
+ completed: "receipt.completed",
3292
+ failed: "receipt.failed",
3293
+ skipped: "receipt.skipped"
3294
+ };
3295
+ var RUN_RECEIPT_SEARCH_KIND_CATALOG = {
3296
+ [RUN_RECEIPT_SEARCH_KIND.completed]: {
3297
+ description: "A durable work receipt completed.",
3298
+ searchIndex: "planet_scale_runtime_event_index",
3299
+ payloadStore: "authoritative_work_receipt"
3300
+ },
3301
+ [RUN_RECEIPT_SEARCH_KIND.failed]: {
3302
+ description: "A durable work receipt failed.",
3303
+ searchIndex: "planet_scale_runtime_event_index",
3304
+ payloadStore: "authoritative_work_receipt"
3305
+ },
3306
+ [RUN_RECEIPT_SEARCH_KIND.skipped]: {
3307
+ description: "A durable work receipt was skipped.",
3308
+ searchIndex: "planet_scale_runtime_event_index",
3309
+ payloadStore: "authoritative_work_receipt"
3310
+ }
3311
+ };
3312
+ var RUN_EVENT_SEARCH_FALLBACK_KIND = "runtime.event";
3313
+ var RUN_EVENT_SEARCH_KIND_VALUES = Object.freeze([
3314
+ ...RUN_EVENT_KINDS,
3315
+ ...Object.keys(RUN_RECEIPT_SEARCH_KIND_CATALOG),
3316
+ RUN_EVENT_SEARCH_FALLBACK_KIND
3317
+ ]);
3318
+ var RUN_EVENT_TERMINAL_KIND_VALUES = [
3319
+ RUN_EVENT_KIND.runCompleted,
3320
+ RUN_EVENT_KIND.runFailed,
3321
+ RUN_EVENT_KIND.runCancelled
3322
+ ];
3323
+ var RUN_LOG_RETENTION_MAX_BYTES = 5 * 1024 * 1024;
3324
+ function sqlStringLiteral(value) {
3325
+ return "'" + value.replaceAll("'", "''") + "'";
3326
+ }
3327
+ var RUN_EVENT_KNOWN_KIND_SQL_LIST = RUN_EVENT_KINDS.map(sqlStringLiteral).join(", ");
3328
+ var RUN_EVENT_LIFECYCLE_KIND_SQL_LIST = [
3329
+ RUN_EVENT_KIND.runCreated,
3330
+ RUN_EVENT_KIND.runStarted,
3331
+ RUN_EVENT_KIND.runWaiting,
3332
+ RUN_EVENT_KIND.runResumed,
3333
+ RUN_EVENT_KIND.runCompleted,
3334
+ RUN_EVENT_KIND.runFailed,
3335
+ RUN_EVENT_KIND.runCancelled
3336
+ ].map(sqlStringLiteral).join(", ");
3337
+ var RUN_EVENT_SNAPSHOT_KIND_SQL_LIST = RUN_EVENT_KINDS.filter(
3338
+ (kind) => kind !== RUN_EVENT_KIND.logAppended
3339
+ ).map(sqlStringLiteral).join(", ");
3340
+ var RUN_EVENT_KIND_SQL_LITERAL = {
3341
+ runCreated: sqlStringLiteral(RUN_EVENT_KIND.runCreated),
3342
+ runStarted: sqlStringLiteral(RUN_EVENT_KIND.runStarted),
3343
+ runWaiting: sqlStringLiteral(RUN_EVENT_KIND.runWaiting),
3344
+ runResumed: sqlStringLiteral(RUN_EVENT_KIND.runResumed),
3345
+ runCompleted: sqlStringLiteral(RUN_EVENT_KIND.runCompleted),
3346
+ runFailed: sqlStringLiteral(RUN_EVENT_KIND.runFailed),
3347
+ runCancelled: sqlStringLiteral(RUN_EVENT_KIND.runCancelled),
3348
+ stepStarted: sqlStringLiteral(RUN_EVENT_KIND.stepStarted),
3349
+ stepProgress: sqlStringLiteral(RUN_EVENT_KIND.stepProgress),
3350
+ stepCompleted: sqlStringLiteral(RUN_EVENT_KIND.stepCompleted),
3351
+ stepFailed: sqlStringLiteral(RUN_EVENT_KIND.stepFailed),
3352
+ stepSkipped: sqlStringLiteral(RUN_EVENT_KIND.stepSkipped),
3353
+ logAppended: sqlStringLiteral(RUN_EVENT_KIND.logAppended),
3354
+ datasetLifecycle: sqlStringLiteral(RUN_EVENT_KIND.datasetLifecycle),
3355
+ activityObserved: sqlStringLiteral(RUN_EVENT_KIND.activityObserved),
3356
+ workCounters: sqlStringLiteral(RUN_EVENT_KIND.workCounters)
3357
+ };
3358
+ var RUN_SCHEDULER_OUTBOX_EVENT_TYPE_SQL_LITERAL = {
3359
+ runCreated: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCreated),
3360
+ runStarted: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runStarted),
3361
+ runWaiting: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runWaiting),
3362
+ runResumed: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runResumed),
3363
+ runCompleted: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCompleted),
3364
+ runFailed: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runFailed),
3365
+ runCancelled: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCancelled),
3366
+ runEvents: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runEvents),
3367
+ runnerLogs: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runnerLogs),
3368
+ runWaitTimeout: sqlStringLiteral(
3369
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runWaitTimeout
3370
+ )
3371
+ };
3372
+ var RUN_EVENT_CONVEX_INTERNAL_KIND_SQL_LITERAL = {
3373
+ rollupMembershipAdded: sqlStringLiteral(
3374
+ RUN_EVENT_CONVEX_INTERNAL_KIND.rollupMembershipAdded
3375
+ ),
3376
+ rollupMembershipRemoved: sqlStringLiteral(
3377
+ RUN_EVENT_CONVEX_INTERNAL_KIND.rollupMembershipRemoved
3378
+ )
3379
+ };
3380
+ var RUN_EVENT_TERMINAL_LOG_CARRIER_SQL_LIST = [
3381
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCompleted,
3382
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runFailed,
3383
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runnerLogs
3384
+ ].map(sqlStringLiteral).join(", ");
3385
+ var RUN_SCHEDULER_OUTBOX_TERMINAL_EVENT_TYPE_SQL_LIST = [
3386
+ ...RUN_SCHEDULER_OUTBOX_TERMINAL_EVENT_TYPES
3387
+ ].map(sqlStringLiteral).join(", ");
3388
+ var RUN_EVENT_SEARCH_FALLBACK_KIND_SQL_LITERAL = sqlStringLiteral(
3389
+ RUN_EVENT_SEARCH_FALLBACK_KIND
3390
+ );
3391
+
3392
+ // ../play-runtime/run-ledger.ts
3393
+ var TERMINAL_STATUS_BY_EVENT_TYPE = {
3394
+ [RUN_EVENT_KIND.runCompleted]: "completed",
3395
+ [RUN_EVENT_KIND.runFailed]: "failed",
3396
+ [RUN_EVENT_KIND.runCancelled]: "cancelled"
3397
+ };
3398
+
2980
3399
  // ../play-runtime/run-lifecycle-policy.ts
2981
3400
  var TERMINAL_PLAY_RUN_STATUSES = /* @__PURE__ */ new Set([
2982
3401
  "completed",