deepline 0.3.271 → 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 (24) 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-shared.ts +3 -2
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +19 -9
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +103 -78
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +125 -81
  15. package/dist/cli/index.js +429 -3
  16. package/dist/cli/index.mjs +429 -3
  17. package/dist/index.js +420 -1
  18. package/dist/index.mjs +420 -1
  19. package/dist/install-integrity.json +1 -0
  20. package/dist/release.d.mts +1 -1
  21. package/dist/release.d.ts +1 -1
  22. package/dist/release.js +1 -1
  23. package/dist/release.mjs +1 -1
  24. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1229,7 +1229,7 @@ var SDK_RELEASE = {
1229
1229
  // getters keep their established compatibility behavior.
1230
1230
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1231
1231
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1232
- version: "0.3.271",
1232
+ version: "0.3.272",
1233
1233
  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.",
1234
1234
  packageCapabilities: {
1235
1235
  updatePreferences: 1
@@ -2881,6 +2881,425 @@ var ledgerIngressRedactor = createSecretRedactionContext();
2881
2881
  var utf8Encoder = new TextEncoder();
2882
2882
  var PLAY_DATASET_BRAND = Symbol.for("deepline.play.dataset");
2883
2883
 
2884
+ // ../play-runtime/run-event-catalog.ts
2885
+ var RUN_EVENT_KIND = {
2886
+ runCreated: "run.created",
2887
+ runStarted: "run.started",
2888
+ runWaiting: "run.waiting",
2889
+ runResumed: "run.resumed",
2890
+ runCompleted: "run.completed",
2891
+ runFailed: "run.failed",
2892
+ runCancelled: "run.cancelled",
2893
+ stepStarted: "step.started",
2894
+ stepProgress: "step.progress",
2895
+ stepCompleted: "step.completed",
2896
+ stepFailed: "step.failed",
2897
+ stepSkipped: "step.skipped",
2898
+ logAppended: "log.appended",
2899
+ datasetLifecycle: "dataset.lifecycle",
2900
+ activityObserved: "activity.observed",
2901
+ workCounters: "work.counters"
2902
+ };
2903
+ var SEARCHABLE_EVENT_FIELDS = [
2904
+ "kind",
2905
+ "runId",
2906
+ "playName",
2907
+ "source",
2908
+ "occurredAt"
2909
+ ];
2910
+ var RUN_SNAPSHOT_DESTINATION = {
2911
+ searchIndex: "planet_scale_runtime_event_index",
2912
+ markedRunStore: "planet_scale",
2913
+ planetScaleContent: "event_payload",
2914
+ convexProjection: "run_snapshot",
2915
+ convexRetainedFacts: ["saved_play_rollup_if_eligible"],
2916
+ legacyConvexDestination: "run_ledger_history",
2917
+ 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."
2918
+ };
2919
+ var RUN_CREATED_DESTINATION = {
2920
+ ...RUN_SNAPSHOT_DESTINATION,
2921
+ convexRetainedFacts: ["admission_fence", "saved_play_rollup_if_eligible"],
2922
+ 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."
2923
+ };
2924
+ var RUN_LOG_DESTINATION = {
2925
+ searchIndex: "planet_scale_runtime_event_index",
2926
+ markedRunStore: "planet_scale",
2927
+ planetScaleContent: "log_body",
2928
+ convexProjection: null,
2929
+ convexRetainedFacts: [],
2930
+ legacyConvexDestination: "run_log_stream",
2931
+ 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."
2932
+ };
2933
+ var RUN_EVENT_KIND_CATALOG = {
2934
+ [RUN_EVENT_KIND.runCreated]: {
2935
+ description: "The run was admitted and received its run ID.",
2936
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
2937
+ outboxCarriers: ["run.created"],
2938
+ destination: RUN_CREATED_DESTINATION,
2939
+ example: {
2940
+ runId: "play/enrich/run/abc123",
2941
+ type: RUN_EVENT_KIND.runCreated,
2942
+ seq: 1
2943
+ }
2944
+ },
2945
+ [RUN_EVENT_KIND.runStarted]: {
2946
+ description: "The run began execution.",
2947
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
2948
+ outboxCarriers: ["run.started"],
2949
+ destination: RUN_SNAPSHOT_DESTINATION,
2950
+ example: {
2951
+ runId: "play/enrich/run/abc123",
2952
+ type: RUN_EVENT_KIND.runStarted,
2953
+ seq: 2
2954
+ }
2955
+ },
2956
+ [RUN_EVENT_KIND.runWaiting]: {
2957
+ description: "The run entered a durable wait.",
2958
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
2959
+ outboxCarriers: ["run.waiting"],
2960
+ destination: RUN_SNAPSHOT_DESTINATION,
2961
+ example: {
2962
+ runId: "play/enrich/run/abc123",
2963
+ type: RUN_EVENT_KIND.runWaiting,
2964
+ waitKind: "sleep"
2965
+ }
2966
+ },
2967
+ [RUN_EVENT_KIND.runResumed]: {
2968
+ description: "The run resumed after a durable wait.",
2969
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
2970
+ outboxCarriers: ["run.resumed"],
2971
+ destination: RUN_SNAPSHOT_DESTINATION,
2972
+ example: {
2973
+ runId: "play/enrich/run/abc123",
2974
+ type: RUN_EVENT_KIND.runResumed
2975
+ }
2976
+ },
2977
+ [RUN_EVENT_KIND.runCompleted]: {
2978
+ description: "The run completed successfully.",
2979
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
2980
+ outboxCarriers: ["run.completed", "runner.logs"],
2981
+ destination: RUN_SNAPSHOT_DESTINATION,
2982
+ example: {
2983
+ runId: "play/enrich/run/abc123",
2984
+ type: RUN_EVENT_KIND.runCompleted
2985
+ }
2986
+ },
2987
+ [RUN_EVENT_KIND.runFailed]: {
2988
+ description: "The run ended with a failure.",
2989
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
2990
+ outboxCarriers: ["run.failed", "runner.logs"],
2991
+ destination: RUN_SNAPSHOT_DESTINATION,
2992
+ example: {
2993
+ runId: "play/enrich/run/abc123",
2994
+ type: RUN_EVENT_KIND.runFailed,
2995
+ error: "Request timed out"
2996
+ }
2997
+ },
2998
+ [RUN_EVENT_KIND.runCancelled]: {
2999
+ description: "The run was cancelled.",
3000
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3001
+ outboxCarriers: ["run.cancelled"],
3002
+ destination: RUN_SNAPSHOT_DESTINATION,
3003
+ example: {
3004
+ runId: "play/enrich/run/abc123",
3005
+ type: RUN_EVENT_KIND.runCancelled
3006
+ }
3007
+ },
3008
+ [RUN_EVENT_KIND.stepStarted]: {
3009
+ description: "A named step began execution.",
3010
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3011
+ outboxCarriers: [
3012
+ "run.events",
3013
+ "run.completed",
3014
+ "run.failed",
3015
+ "runner.logs"
3016
+ ],
3017
+ destination: RUN_SNAPSHOT_DESTINATION,
3018
+ example: {
3019
+ runId: "play/enrich/run/abc123",
3020
+ type: RUN_EVENT_KIND.stepStarted,
3021
+ stepId: "lookup"
3022
+ }
3023
+ },
3024
+ [RUN_EVENT_KIND.stepProgress]: {
3025
+ description: "A named step reported progress.",
3026
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3027
+ outboxCarriers: [
3028
+ "run.events",
3029
+ "run.completed",
3030
+ "run.failed",
3031
+ "runner.logs"
3032
+ ],
3033
+ destination: RUN_SNAPSHOT_DESTINATION,
3034
+ example: {
3035
+ runId: "play/enrich/run/abc123",
3036
+ type: RUN_EVENT_KIND.stepProgress,
3037
+ stepId: "lookup"
3038
+ }
3039
+ },
3040
+ [RUN_EVENT_KIND.stepCompleted]: {
3041
+ description: "A named step completed.",
3042
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3043
+ outboxCarriers: [
3044
+ "run.events",
3045
+ "run.completed",
3046
+ "run.failed",
3047
+ "runner.logs"
3048
+ ],
3049
+ destination: RUN_SNAPSHOT_DESTINATION,
3050
+ example: {
3051
+ runId: "play/enrich/run/abc123",
3052
+ type: RUN_EVENT_KIND.stepCompleted,
3053
+ stepId: "lookup"
3054
+ }
3055
+ },
3056
+ [RUN_EVENT_KIND.stepFailed]: {
3057
+ description: "A named step failed.",
3058
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3059
+ outboxCarriers: [
3060
+ "run.events",
3061
+ "run.completed",
3062
+ "run.failed",
3063
+ "runner.logs"
3064
+ ],
3065
+ destination: RUN_SNAPSHOT_DESTINATION,
3066
+ example: {
3067
+ runId: "play/enrich/run/abc123",
3068
+ type: RUN_EVENT_KIND.stepFailed,
3069
+ stepId: "lookup"
3070
+ }
3071
+ },
3072
+ [RUN_EVENT_KIND.stepSkipped]: {
3073
+ description: "A named step was skipped.",
3074
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3075
+ outboxCarriers: [
3076
+ "run.events",
3077
+ "run.completed",
3078
+ "run.failed",
3079
+ "runner.logs"
3080
+ ],
3081
+ destination: RUN_SNAPSHOT_DESTINATION,
3082
+ example: {
3083
+ runId: "play/enrich/run/abc123",
3084
+ type: RUN_EVENT_KIND.stepSkipped,
3085
+ stepId: "lookup"
3086
+ }
3087
+ },
3088
+ [RUN_EVENT_KIND.logAppended]: {
3089
+ description: "A text log line was appended to the unified run history and log view.",
3090
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3091
+ outboxCarriers: [
3092
+ "run.events",
3093
+ "run.waiting",
3094
+ "run.resumed",
3095
+ "run.completed",
3096
+ "run.failed",
3097
+ "runner.logs",
3098
+ "run.wait_timeout"
3099
+ ],
3100
+ destination: RUN_LOG_DESTINATION,
3101
+ example: {
3102
+ runId: "play/enrich/run/abc123",
3103
+ type: RUN_EVENT_KIND.logAppended,
3104
+ lines: ["Waiting for integration_event:contact.updated."]
3105
+ }
3106
+ },
3107
+ [RUN_EVENT_KIND.datasetLifecycle]: {
3108
+ description: "A run dataset was registered, made available, or failed.",
3109
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3110
+ outboxCarriers: [
3111
+ "run.events",
3112
+ "run.completed",
3113
+ "run.failed",
3114
+ "runner.logs"
3115
+ ],
3116
+ destination: RUN_SNAPSHOT_DESTINATION,
3117
+ example: {
3118
+ runId: "play/enrich/run/abc123",
3119
+ type: RUN_EVENT_KIND.datasetLifecycle,
3120
+ phase: "available"
3121
+ }
3122
+ },
3123
+ [RUN_EVENT_KIND.activityObserved]: {
3124
+ description: "The runtime recorded an activity observation.",
3125
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3126
+ outboxCarriers: [
3127
+ "run.events",
3128
+ "run.completed",
3129
+ "run.failed",
3130
+ "runner.logs"
3131
+ ],
3132
+ destination: RUN_SNAPSHOT_DESTINATION,
3133
+ example: {
3134
+ runId: "play/enrich/run/abc123",
3135
+ type: RUN_EVENT_KIND.activityObserved
3136
+ }
3137
+ },
3138
+ [RUN_EVENT_KIND.workCounters]: {
3139
+ description: "A work segment reported logical call, provider request, and rate-limit counters.",
3140
+ searchableFields: SEARCHABLE_EVENT_FIELDS,
3141
+ outboxCarriers: [
3142
+ "run.events",
3143
+ "run.completed",
3144
+ "run.failed",
3145
+ "runner.logs"
3146
+ ],
3147
+ destination: RUN_SNAPSHOT_DESTINATION,
3148
+ example: {
3149
+ runId: "play/enrich/run/abc123",
3150
+ type: RUN_EVENT_KIND.workCounters,
3151
+ attempt: 1,
3152
+ logicalCalls: 4,
3153
+ providerRequests: 4,
3154
+ provider429s: 0,
3155
+ final: true
3156
+ }
3157
+ }
3158
+ };
3159
+ var RUN_EVENT_KINDS = Object.freeze(
3160
+ Object.keys(RUN_EVENT_KIND_CATALOG)
3161
+ );
3162
+ var RUN_SCHEDULER_OUTBOX_EVENT_TYPE = {
3163
+ runCreated: RUN_EVENT_KIND.runCreated,
3164
+ runStarted: RUN_EVENT_KIND.runStarted,
3165
+ runWaiting: RUN_EVENT_KIND.runWaiting,
3166
+ runResumed: RUN_EVENT_KIND.runResumed,
3167
+ runCompleted: RUN_EVENT_KIND.runCompleted,
3168
+ runFailed: RUN_EVENT_KIND.runFailed,
3169
+ runCancelled: RUN_EVENT_KIND.runCancelled,
3170
+ runEvents: "run.events",
3171
+ runnerLogs: "runner.logs",
3172
+ runWaitTimeout: "run.wait_timeout"
3173
+ };
3174
+ var RUN_SCHEDULER_OUTBOX_EVENT_TYPES = Object.freeze(
3175
+ Object.values(RUN_SCHEDULER_OUTBOX_EVENT_TYPE)
3176
+ );
3177
+ var RUN_SCHEDULER_OUTBOX_START_EVENT_TYPES = [
3178
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCreated,
3179
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runStarted
3180
+ ];
3181
+ var RUN_SCHEDULER_OUTBOX_PREFIX_STOP_EVENT_TYPES = [
3182
+ ...RUN_SCHEDULER_OUTBOX_START_EVENT_TYPES,
3183
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runEvents
3184
+ ];
3185
+ var RUN_SCHEDULER_OUTBOX_TERMINAL_EVENT_TYPES = [
3186
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCompleted,
3187
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runFailed,
3188
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCancelled
3189
+ ];
3190
+ var RUN_EVENT_CONVEX_INTERNAL_KIND = {
3191
+ rollupMembershipAdded: "rollup.membership.added",
3192
+ rollupMembershipRemoved: "rollup.membership.removed"
3193
+ };
3194
+ var RUN_RECEIPT_SEARCH_KIND = {
3195
+ completed: "receipt.completed",
3196
+ failed: "receipt.failed",
3197
+ skipped: "receipt.skipped"
3198
+ };
3199
+ var RUN_RECEIPT_SEARCH_KIND_CATALOG = {
3200
+ [RUN_RECEIPT_SEARCH_KIND.completed]: {
3201
+ description: "A durable work receipt completed.",
3202
+ searchIndex: "planet_scale_runtime_event_index",
3203
+ payloadStore: "authoritative_work_receipt"
3204
+ },
3205
+ [RUN_RECEIPT_SEARCH_KIND.failed]: {
3206
+ description: "A durable work receipt failed.",
3207
+ searchIndex: "planet_scale_runtime_event_index",
3208
+ payloadStore: "authoritative_work_receipt"
3209
+ },
3210
+ [RUN_RECEIPT_SEARCH_KIND.skipped]: {
3211
+ description: "A durable work receipt was skipped.",
3212
+ searchIndex: "planet_scale_runtime_event_index",
3213
+ payloadStore: "authoritative_work_receipt"
3214
+ }
3215
+ };
3216
+ var RUN_EVENT_SEARCH_FALLBACK_KIND = "runtime.event";
3217
+ var RUN_EVENT_SEARCH_KIND_VALUES = Object.freeze([
3218
+ ...RUN_EVENT_KINDS,
3219
+ ...Object.keys(RUN_RECEIPT_SEARCH_KIND_CATALOG),
3220
+ RUN_EVENT_SEARCH_FALLBACK_KIND
3221
+ ]);
3222
+ var RUN_EVENT_TERMINAL_KIND_VALUES = [
3223
+ RUN_EVENT_KIND.runCompleted,
3224
+ RUN_EVENT_KIND.runFailed,
3225
+ RUN_EVENT_KIND.runCancelled
3226
+ ];
3227
+ var RUN_LOG_RETENTION_MAX_BYTES = 5 * 1024 * 1024;
3228
+ function sqlStringLiteral(value) {
3229
+ return "'" + value.replaceAll("'", "''") + "'";
3230
+ }
3231
+ var RUN_EVENT_KNOWN_KIND_SQL_LIST = RUN_EVENT_KINDS.map(sqlStringLiteral).join(", ");
3232
+ var RUN_EVENT_LIFECYCLE_KIND_SQL_LIST = [
3233
+ RUN_EVENT_KIND.runCreated,
3234
+ RUN_EVENT_KIND.runStarted,
3235
+ RUN_EVENT_KIND.runWaiting,
3236
+ RUN_EVENT_KIND.runResumed,
3237
+ RUN_EVENT_KIND.runCompleted,
3238
+ RUN_EVENT_KIND.runFailed,
3239
+ RUN_EVENT_KIND.runCancelled
3240
+ ].map(sqlStringLiteral).join(", ");
3241
+ var RUN_EVENT_SNAPSHOT_KIND_SQL_LIST = RUN_EVENT_KINDS.filter(
3242
+ (kind) => kind !== RUN_EVENT_KIND.logAppended
3243
+ ).map(sqlStringLiteral).join(", ");
3244
+ var RUN_EVENT_KIND_SQL_LITERAL = {
3245
+ runCreated: sqlStringLiteral(RUN_EVENT_KIND.runCreated),
3246
+ runStarted: sqlStringLiteral(RUN_EVENT_KIND.runStarted),
3247
+ runWaiting: sqlStringLiteral(RUN_EVENT_KIND.runWaiting),
3248
+ runResumed: sqlStringLiteral(RUN_EVENT_KIND.runResumed),
3249
+ runCompleted: sqlStringLiteral(RUN_EVENT_KIND.runCompleted),
3250
+ runFailed: sqlStringLiteral(RUN_EVENT_KIND.runFailed),
3251
+ runCancelled: sqlStringLiteral(RUN_EVENT_KIND.runCancelled),
3252
+ stepStarted: sqlStringLiteral(RUN_EVENT_KIND.stepStarted),
3253
+ stepProgress: sqlStringLiteral(RUN_EVENT_KIND.stepProgress),
3254
+ stepCompleted: sqlStringLiteral(RUN_EVENT_KIND.stepCompleted),
3255
+ stepFailed: sqlStringLiteral(RUN_EVENT_KIND.stepFailed),
3256
+ stepSkipped: sqlStringLiteral(RUN_EVENT_KIND.stepSkipped),
3257
+ logAppended: sqlStringLiteral(RUN_EVENT_KIND.logAppended),
3258
+ datasetLifecycle: sqlStringLiteral(RUN_EVENT_KIND.datasetLifecycle),
3259
+ activityObserved: sqlStringLiteral(RUN_EVENT_KIND.activityObserved),
3260
+ workCounters: sqlStringLiteral(RUN_EVENT_KIND.workCounters)
3261
+ };
3262
+ var RUN_SCHEDULER_OUTBOX_EVENT_TYPE_SQL_LITERAL = {
3263
+ runCreated: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCreated),
3264
+ runStarted: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runStarted),
3265
+ runWaiting: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runWaiting),
3266
+ runResumed: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runResumed),
3267
+ runCompleted: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCompleted),
3268
+ runFailed: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runFailed),
3269
+ runCancelled: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCancelled),
3270
+ runEvents: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runEvents),
3271
+ runnerLogs: sqlStringLiteral(RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runnerLogs),
3272
+ runWaitTimeout: sqlStringLiteral(
3273
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runWaitTimeout
3274
+ )
3275
+ };
3276
+ var RUN_EVENT_CONVEX_INTERNAL_KIND_SQL_LITERAL = {
3277
+ rollupMembershipAdded: sqlStringLiteral(
3278
+ RUN_EVENT_CONVEX_INTERNAL_KIND.rollupMembershipAdded
3279
+ ),
3280
+ rollupMembershipRemoved: sqlStringLiteral(
3281
+ RUN_EVENT_CONVEX_INTERNAL_KIND.rollupMembershipRemoved
3282
+ )
3283
+ };
3284
+ var RUN_EVENT_TERMINAL_LOG_CARRIER_SQL_LIST = [
3285
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runCompleted,
3286
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runFailed,
3287
+ RUN_SCHEDULER_OUTBOX_EVENT_TYPE.runnerLogs
3288
+ ].map(sqlStringLiteral).join(", ");
3289
+ var RUN_SCHEDULER_OUTBOX_TERMINAL_EVENT_TYPE_SQL_LIST = [
3290
+ ...RUN_SCHEDULER_OUTBOX_TERMINAL_EVENT_TYPES
3291
+ ].map(sqlStringLiteral).join(", ");
3292
+ var RUN_EVENT_SEARCH_FALLBACK_KIND_SQL_LITERAL = sqlStringLiteral(
3293
+ RUN_EVENT_SEARCH_FALLBACK_KIND
3294
+ );
3295
+
3296
+ // ../play-runtime/run-ledger.ts
3297
+ var TERMINAL_STATUS_BY_EVENT_TYPE = {
3298
+ [RUN_EVENT_KIND.runCompleted]: "completed",
3299
+ [RUN_EVENT_KIND.runFailed]: "failed",
3300
+ [RUN_EVENT_KIND.runCancelled]: "cancelled"
3301
+ };
3302
+
2884
3303
  // ../play-runtime/run-lifecycle-policy.ts
2885
3304
  var TERMINAL_PLAY_RUN_STATUSES = /* @__PURE__ */ new Set([
2886
3305
  "completed",
@@ -303,6 +303,7 @@
303
303
  "dist/bundling-sources/shared_libs/play-runtime/receipt-status.ts",
304
304
  "dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts",
305
305
  "dist/bundling-sources/shared_libs/play-runtime/row-isolation.ts",
306
+ "dist/bundling-sources/shared_libs/play-runtime/run-event-catalog.ts",
306
307
  "dist/bundling-sources/shared_libs/play-runtime/run-execution-scope.ts",
307
308
  "dist/bundling-sources/shared_libs/play-runtime/run-execution-state.ts",
308
309
  "dist/bundling-sources/shared_libs/play-runtime/run-failure.ts",
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.271";
152
+ readonly version: "0.3.272";
153
153
  readonly 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.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.d.ts CHANGED
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.271";
152
+ readonly version: "0.3.272";
153
153
  readonly 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.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.js CHANGED
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
74
74
  // getters keep their established compatibility behavior.
75
75
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
76
76
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
77
- version: "0.3.271",
77
+ version: "0.3.272",
78
78
  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.",
79
79
  packageCapabilities: {
80
80
  updatePreferences: 1
package/dist/release.mjs CHANGED
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
48
48
  // getters keep their established compatibility behavior.
49
49
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
50
50
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
51
- version: "0.3.271",
51
+ version: "0.3.272",
52
52
  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.",
53
53
  packageCapabilities: {
54
54
  updatePreferences: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.3.271",
3
+ "version": "0.3.272",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",