deepline 0.3.271 → 0.3.273
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/README.md +9 -0
- package/dist/bundling-sources/sdk/src/client.ts +49 -17
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/receipts.ts +18 -2
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +3 -2
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +11 -9
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-event-catalog.ts +610 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-event-transport.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-diagnostics.ts +3 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +80 -67
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +3 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +19 -9
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +103 -78
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +125 -81
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +3 -2
- package/dist/cli/index.js +662 -39
- package/dist/cli/index.mjs +662 -39
- package/dist/{client-BbKtvT9Q.d.ts → client-5xpuGpRn.d.ts} +64 -19
- package/dist/{client-C1Xm7eBH.d.mts → client-D9annc6K.d.mts} +64 -19
- package/dist/{compiler-manifest-CUuh8C3b.d.mts → compiler-manifest-C1bKB9bY.d.mts} +3 -2
- package/dist/{compiler-manifest-CUuh8C3b.d.ts → compiler-manifest-C1bKB9bY.d.ts} +3 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +423 -4
- package/dist/index.mjs +423 -4
- package/dist/install-integrity.json +5 -4
- package/dist/plays/bundle-play-file.d.mts +2 -2
- package/dist/plays/bundle-play-file.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/dist/release.mjs +1 -1
- 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.
|
|
1232
|
+
version: "0.3.273",
|
|
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",
|
|
@@ -5353,7 +5772,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5353
5772
|
);
|
|
5354
5773
|
return { ...response, runs: response.runs ?? [] };
|
|
5355
5774
|
}
|
|
5356
|
-
/** Read
|
|
5775
|
+
/** Read retained tool results without executing tools, preserving supplied key order and batching 100 keys per request. Obtain keys from exported evidence or execution metadata; each key must be nonempty, at most 2,048 characters and contain no CR, LF or NUL. Missing/expired results have an explicit per-key error. */
|
|
5357
5776
|
async getRunReceipts(runId, options) {
|
|
5358
5777
|
if (!options.keys.length || options.keys.some(
|
|
5359
5778
|
(key) => typeof key !== "string" || !key.trim() || key.length > 2048 || /[\r\n\0]/.test(key)
|
|
@@ -5409,7 +5828,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5409
5828
|
);
|
|
5410
5829
|
}
|
|
5411
5830
|
/**
|
|
5412
|
-
*
|
|
5831
|
+
* Read a run's retained text tail (default 200), full retained stream (`all`), or terminal failure window (`failed`, at most 20). These are existing reads; sampling and retention loss cannot be recovered. See [run logs and events](run-events.md) for structured search and payload retrieval.
|
|
5413
5832
|
*
|
|
5414
5833
|
* This is the SDK equivalent of:
|
|
5415
5834
|
*
|
|
@@ -5488,7 +5907,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5488
5907
|
...probe.logsTruncated ? { logsTruncated: true } : {}
|
|
5489
5908
|
};
|
|
5490
5909
|
}
|
|
5491
|
-
/**
|
|
5910
|
+
/** Read structured history across the active organization without requiring a run ID. Defaults to the last hour, newest first; use the returned cursor and exact time bounds to continue. See [run logs and events](run-events.md) for all kinds, indexed fields, payloads and SDK/API response types. */
|
|
5492
5911
|
async searchRunEvents(options = {}) {
|
|
5493
5912
|
const now = Date.now();
|
|
5494
5913
|
const params = new URLSearchParams({
|
|
@@ -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",
|
|
@@ -592,10 +593,10 @@
|
|
|
592
593
|
"dist/cli/index.js",
|
|
593
594
|
"dist/cli/index.mjs",
|
|
594
595
|
"dist/cli/text-imports.d.ts",
|
|
595
|
-
"dist/client-
|
|
596
|
-
"dist/client-
|
|
597
|
-
"dist/compiler-manifest-
|
|
598
|
-
"dist/compiler-manifest-
|
|
596
|
+
"dist/client-5xpuGpRn.d.ts",
|
|
597
|
+
"dist/client-D9annc6K.d.mts",
|
|
598
|
+
"dist/compiler-manifest-C1bKB9bY.d.mts",
|
|
599
|
+
"dist/compiler-manifest-C1bKB9bY.d.ts",
|
|
599
600
|
"dist/helpers.d.mts",
|
|
600
601
|
"dist/helpers.d.ts",
|
|
601
602
|
"dist/helpers.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { P as PlayArtifactKind, a as PlayBundleArtifact, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-
|
|
3
|
-
export { d as PLAY_ARTIFACT_KINDS, e as PlayArtifactCompatibility, f as PlayImportPolicy, g as PlayPackageImport, h as PlayRuntimeFeature } from '../compiler-manifest-
|
|
2
|
+
import { P as PlayArtifactKind, a as PlayBundleArtifact, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-C1bKB9bY.mjs';
|
|
3
|
+
export { d as PLAY_ARTIFACT_KINDS, e as PlayArtifactCompatibility, f as PlayImportPolicy, g as PlayPackageImport, h as PlayRuntimeFeature } from '../compiler-manifest-C1bKB9bY.mjs';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
|
|
6
6
|
type ImportedPlayDependency = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { P as PlayArtifactKind, a as PlayBundleArtifact, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-
|
|
3
|
-
export { d as PLAY_ARTIFACT_KINDS, e as PlayArtifactCompatibility, f as PlayImportPolicy, g as PlayPackageImport, h as PlayRuntimeFeature } from '../compiler-manifest-
|
|
2
|
+
import { P as PlayArtifactKind, a as PlayBundleArtifact, b as PlaySandboxRuntimeDeclaration, c as PlayCompilerManifest } from '../compiler-manifest-C1bKB9bY.js';
|
|
3
|
+
export { d as PLAY_ARTIFACT_KINDS, e as PlayArtifactCompatibility, f as PlayImportPolicy, g as PlayPackageImport, h as PlayRuntimeFeature } from '../compiler-manifest-C1bKB9bY.js';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
|
|
6
6
|
type ImportedPlayDependency = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
export { S as DeeplineError } from '../compiler-manifest-
|
|
3
|
-
export { bB as CSV_DATA_INPUT_KEY, bC as FileInputBinding, bD as LocalFileInput, bE as MintStagedFileUpload, bF as PLAY_FILES_STAGE_MINT_PATH, bG as PLAY_FILES_STAGE_PATH, bH as PLAY_RUN_START_PATH, bI as PLAY_RUN_START_STREAM_PATH, bJ as PlayRunHttp, bK as ResolvedStartPlayRunRequest, bL as STAGE_LEGACY_MULTIPART_MAX_BYTES, bM as StagedFileCodec, bN as StagedFileInputs, bO as StagedFileUpload, bP as buildNamedPlayRunRequest, bQ as buildPlayRunStartBody, bR as createSessionPlayRunHttp, bS as createStagedFileUpload, bT as fileInputBindingsFromPlaySchema, bU as fileInputBindingsFromStaticPipeline, bV as getDottedInputValue, bW as isPlayRunPackage, bX as mintStagedPlayFileUploads, bY as normalizePlayRunStart, bZ as playRunFileInputBindings, b_ as setDottedInputValue, b$ as stageFileInputs, c0 as stagePlayFiles, c1 as stagedFileContentType, c2 as startPlayRun, c3 as webStagedFileCodec } from '../client-
|
|
2
|
+
export { S as DeeplineError } from '../compiler-manifest-C1bKB9bY.mjs';
|
|
3
|
+
export { bB as CSV_DATA_INPUT_KEY, bC as FileInputBinding, bD as LocalFileInput, bE as MintStagedFileUpload, bF as PLAY_FILES_STAGE_MINT_PATH, bG as PLAY_FILES_STAGE_PATH, bH as PLAY_RUN_START_PATH, bI as PLAY_RUN_START_STREAM_PATH, bJ as PlayRunHttp, bK as ResolvedStartPlayRunRequest, bL as STAGE_LEGACY_MULTIPART_MAX_BYTES, bM as StagedFileCodec, bN as StagedFileInputs, bO as StagedFileUpload, bP as buildNamedPlayRunRequest, bQ as buildPlayRunStartBody, bR as createSessionPlayRunHttp, bS as createStagedFileUpload, bT as fileInputBindingsFromPlaySchema, bU as fileInputBindingsFromStaticPipeline, bV as getDottedInputValue, bW as isPlayRunPackage, bX as mintStagedPlayFileUploads, bY as normalizePlayRunStart, bZ as playRunFileInputBindings, b_ as setDottedInputValue, b$ as stageFileInputs, c0 as stagePlayFiles, c1 as stagedFileContentType, c2 as startPlayRun, c3 as webStagedFileCodec } from '../client-D9annc6K.mjs';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../monitor-fleet-contract.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
export { S as DeeplineError } from '../compiler-manifest-
|
|
3
|
-
export { bB as CSV_DATA_INPUT_KEY, bC as FileInputBinding, bD as LocalFileInput, bE as MintStagedFileUpload, bF as PLAY_FILES_STAGE_MINT_PATH, bG as PLAY_FILES_STAGE_PATH, bH as PLAY_RUN_START_PATH, bI as PLAY_RUN_START_STREAM_PATH, bJ as PlayRunHttp, bK as ResolvedStartPlayRunRequest, bL as STAGE_LEGACY_MULTIPART_MAX_BYTES, bM as StagedFileCodec, bN as StagedFileInputs, bO as StagedFileUpload, bP as buildNamedPlayRunRequest, bQ as buildPlayRunStartBody, bR as createSessionPlayRunHttp, bS as createStagedFileUpload, bT as fileInputBindingsFromPlaySchema, bU as fileInputBindingsFromStaticPipeline, bV as getDottedInputValue, bW as isPlayRunPackage, bX as mintStagedPlayFileUploads, bY as normalizePlayRunStart, bZ as playRunFileInputBindings, b_ as setDottedInputValue, b$ as stageFileInputs, c0 as stagePlayFiles, c1 as stagedFileContentType, c2 as startPlayRun, c3 as webStagedFileCodec } from '../client-
|
|
2
|
+
export { S as DeeplineError } from '../compiler-manifest-C1bKB9bY.js';
|
|
3
|
+
export { bB as CSV_DATA_INPUT_KEY, bC as FileInputBinding, bD as LocalFileInput, bE as MintStagedFileUpload, bF as PLAY_FILES_STAGE_MINT_PATH, bG as PLAY_FILES_STAGE_PATH, bH as PLAY_RUN_START_PATH, bI as PLAY_RUN_START_STREAM_PATH, bJ as PlayRunHttp, bK as ResolvedStartPlayRunRequest, bL as STAGE_LEGACY_MULTIPART_MAX_BYTES, bM as StagedFileCodec, bN as StagedFileInputs, bO as StagedFileUpload, bP as buildNamedPlayRunRequest, bQ as buildPlayRunStartBody, bR as createSessionPlayRunHttp, bS as createStagedFileUpload, bT as fileInputBindingsFromPlaySchema, bU as fileInputBindingsFromStaticPipeline, bV as getDottedInputValue, bW as isPlayRunPackage, bX as mintStagedPlayFileUploads, bY as normalizePlayRunStart, bZ as playRunFileInputBindings, b_ as setDottedInputValue, b$ as stageFileInputs, c0 as stagePlayFiles, c1 as stagedFileContentType, c2 as startPlayRun, c3 as webStagedFileCodec } from '../client-5xpuGpRn.js';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../monitor-fleet-contract.js';
|
package/dist/release.d.mts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.273";
|
|
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.
|
|
152
|
+
readonly version: "0.3.273";
|
|
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.
|
|
77
|
+
version: "0.3.273",
|
|
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.
|
|
51
|
+
version: "0.3.273",
|
|
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
|