deepline 0.3.274 → 0.3.275

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/client.ts +140 -11
  2. package/dist/bundling-sources/sdk/src/index.ts +3 -0
  3. package/dist/bundling-sources/sdk/src/play.ts +4 -10
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/runs/log-cursor.ts +35 -0
  6. package/dist/bundling-sources/sdk/src/types.ts +10 -3
  7. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +12 -26
  8. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +7 -3
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +15 -7
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +18 -18
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1 -0
  12. package/dist/bundling-sources/shared_libs/plays/docflow-binding-owner.ts +7 -4
  13. package/dist/bundling-sources/shared_libs/plays/table-csv.ts +152 -0
  14. package/dist/cli/index.js +326 -59
  15. package/dist/cli/index.mjs +326 -59
  16. package/dist/{client-D6fRwhnE.d.ts → client-5zY7LsId.d.ts} +70 -5
  17. package/dist/{client-2rIHKJiq.d.mts → client-CbNvJLgV.d.mts} +70 -5
  18. package/dist/index.d.mts +6 -12
  19. package/dist/index.d.ts +6 -12
  20. package/dist/index.js +87 -9
  21. package/dist/index.mjs +87 -9
  22. package/dist/install-integrity.json +4 -2
  23. package/dist/plays/run-request.d.mts +1 -1
  24. package/dist/plays/run-request.d.ts +1 -1
  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
@@ -2216,6 +2216,12 @@ type PlayLiveEvent = LiveEventEnvelope<unknown> & {
2216
2216
  interface StopPlayRunResult {
2217
2217
  /** Public play-run identifier the stop request targeted. */
2218
2218
  runId: string;
2219
+ /**
2220
+ * Typed stop outcome: `stopped` (terminal), `cancelling` (cancellation
2221
+ * durably queued; cleanup and the final run update are pending, not an
2222
+ * error), or `failed` (the stop was not confirmed). Absent on older servers.
2223
+ */
2224
+ state?: 'stopped' | 'cancelling' | 'failed';
2219
2225
  /** Whether the server confirmed the run was stopped. */
2220
2226
  stopped: boolean;
2221
2227
  /** True when the durable cancellation lane accepted the request and is draining. */
@@ -2225,11 +2231,12 @@ interface StopPlayRunResult {
2225
2231
  /** True if HITL state or its same-message Slack card still needs retrying. */
2226
2232
  hitlCancellationPending?: boolean;
2227
2233
  /**
2228
- * True when the scheduler state for the run was stale and the stop could
2229
- * not be confirmed. Absent on older servers (treated as confirmed).
2234
+ * True only when the scheduler and the canonical run ledger disagree (for
2235
+ * example a terminal scheduler run whose ledger projection is pending), so
2236
+ * the stop could not be confirmed. Never set for a queued cancellation.
2230
2237
  */
2231
2238
  staleSchedulerState?: boolean;
2232
- /** Server-side error detail when the stop was not confirmed. */
2239
+ /** Server-side error detail when the stop failed (`state: 'failed'`). */
2233
2240
  error?: string;
2234
2241
  }
2235
2242
  /**
@@ -3715,6 +3722,46 @@ type RunsListPage = {
3715
3722
  limit?: number;
3716
3723
  hasMore?: boolean;
3717
3724
  };
3725
+ /** Cursor-paged workspace run history, including runs of removed Plays. */
3726
+ type RunsHistoryOptions = {
3727
+ /** Case-insensitive Play/workflow name, run ID, or status substring. */
3728
+ search?: string;
3729
+ /** Search classification from recorded trigger metadata; requires search. */
3730
+ type?: 'all' | 'plays' | 'monitors';
3731
+ cursor?: string;
3732
+ limit?: number;
3733
+ /** Must match the workspace authorized by the credential. */
3734
+ orgId?: string;
3735
+ signal?: AbortSignal;
3736
+ };
3737
+ type RunsHistoryItem = {
3738
+ runId: string;
3739
+ workflowId: string;
3740
+ workflowName: string;
3741
+ playScope: 'org' | 'system' | null;
3742
+ status: string;
3743
+ createdAt: number;
3744
+ updatedAt: number;
3745
+ callerName: string | null;
3746
+ callerEmail: string | null;
3747
+ authorName: string | null;
3748
+ authorEmail: string | null;
3749
+ callerAgent: string | null;
3750
+ executionMode: string | null;
3751
+ bindingId: string | null;
3752
+ parentWorkflowName: string | null;
3753
+ outputRowCount: number | null;
3754
+ hasOutput: boolean;
3755
+ billingTotalCredits?: number;
3756
+ triggerSource?: string;
3757
+ };
3758
+ /** An empty search page is incomplete while hasMore is true. */
3759
+ type RunsHistoryPage = {
3760
+ runs: RunsHistoryItem[];
3761
+ nextCursor: string | null;
3762
+ hasMore: boolean;
3763
+ avatarsByName?: Record<string, string>;
3764
+ };
3718
3765
  type PlaysListOptions = {
3719
3766
  origin?: 'prebuilt' | 'owned';
3720
3767
  grep?: string;
@@ -3744,6 +3791,8 @@ type PlaysListPage = {
3744
3791
  type RunsGetOptions = {
3745
3792
  /** Return the raw status payload instead of the compact package. */
3746
3793
  full?: boolean;
3794
+ /** Explicitly read this run's recorded graph and source, without full results. */
3795
+ configuration?: boolean;
3747
3796
  /** Attach a bounded end-of-stream window for a failed run. */
3748
3797
  failedLogs?: boolean;
3749
3798
  /** Requested failed-log lines to attach (default 20, hard-capped at 20). */
@@ -3834,6 +3883,12 @@ type RunsLogsOptions = {
3834
3883
  all?: boolean;
3835
3884
  /** Read a terminal-failed run's last 20 retained lines, or fewer with `limit`. Retention loss returns an explicit association and warning. */
3836
3885
  failed?: boolean;
3886
+ /**
3887
+ * Continue with the next OLDER page: pass a prior result's `nextCursor`.
3888
+ * The page holds the last `limit` stored lines before that cursor (with
3889
+ * `all`, every stored line before it).
3890
+ */
3891
+ cursor?: string;
3837
3892
  };
3838
3893
  /** Retained text for one run. Counts and retention flags describe the stored stream, not every original console call. */
3839
3894
  type RunsLogsResult = {
@@ -3849,8 +3904,14 @@ type RunsLogsResult = {
3849
3904
  lastSequence: number | null;
3850
3905
  /** Tail/all: returned count is below total count. Failed: the stream lost bodies to retention. Check `logsTruncated` to distinguish retention loss from a selected tail. */
3851
3906
  truncated: boolean;
3852
- /** More retained lines exist after `lastSequence`; always false for the designed failure window. */
3907
+ /** Older stored lines exist before this page; `nextCursor` reads them. */
3853
3908
  hasMore: boolean;
3909
+ /**
3910
+ * Opaque cursor for the next older page (`runs.logs(id, { cursor })`),
3911
+ * null when this page reaches the oldest stored line. Absent for the failed
3912
+ * view, which is a complete designed window rather than a pageable slice.
3913
+ */
3914
+ nextCursor?: string | null;
3854
3915
  /** Formatted text lines in stored sequence order; structured context is available through event search. */
3855
3916
  entries: string[];
3856
3917
  /** Selected public log view. */
@@ -4023,6 +4084,8 @@ type RunsNamespace = {
4023
4084
  list: (options: RunsListOptions) => Promise<PlayRunListItem[]>;
4024
4085
  /** Read one run page with total, offset, limit and completeness metadata. */
4025
4086
  listPage: (options: RunsListOptions) => Promise<RunsListPage>;
4087
+ /** Search/page workspace run history newest first; follow empty continuing pages. */
4088
+ history: (options?: RunsHistoryOptions) => Promise<RunsHistoryPage>;
4026
4089
  /** Poll run snapshots every two seconds until terminal status. */
4027
4090
  watch: (runId: string, options?: RunsWatchOptions) => Promise<PlayStatus>;
4028
4091
  /** @deprecated Use `watch`; retained as a source-compatible alias. */
@@ -5971,6 +6034,8 @@ declare class DeeplineClient {
5971
6034
  * ```
5972
6035
  */
5973
6036
  listRuns(options: RunsListOptions): Promise<PlayRunListItem[]>;
6037
+ /** The same tenant-scoped run history searched by the dashboard and CLI. */
6038
+ getRunsHistory(options?: RunsHistoryOptions): Promise<RunsHistoryPage>;
5974
6039
  /** Read one run page without discarding server pagination metadata. */
5975
6040
  listRunsPage(options: RunsListOptions): Promise<RunsListPage>;
5976
6041
  /** 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. */
@@ -6626,4 +6691,4 @@ declare class DeeplineClient {
6626
6691
  }>;
6627
6692
  }
6628
6693
 
6629
- export { type MonitorFleetStatus as $, DeeplineClient as A, type BillingNamespace as B, type ClearPlayHistoryResult as C, type DeeplineClientOptions as D, type ExecutionRecovery as E, type DeeplineToolCategory as F, type LiveEventEnvelope as G, MONITOR_JOB_RECONCILIATION_STATES as H, type IngestionStorageRepairResult as I, MONITOR_JOB_STATES as J, type MonitorBatchNamespace as K, type LegacyMonitorStatusFilter as L, MONITOR_JOB_PHASES as M, type MonitorCheckResult as N, type MonitorDefinition as O, type PlayListItem as P, type MonitorDeleteResult as Q, type ResolvedConfig as R, type StopPlayRunResult as S, type ToolDefinition as T, type MonitorDependents as U, type MonitorDeployResult as V, type MonitorDetail as W, type MonitorFleetDeactivateOptions as X, type MonitorFleetGetOptions as Y, type MonitorFleetReactivateOptions as Z, type MonitorFleetResult as _, type ToolMetadata as a, type PlaysListPage as a$, type MonitorFleetSyncOptions as a0, type MonitorFleetWaitOptions as a1, type MonitorFleetsNamespace as a2, type MonitorJobDeployOptions as a3, type MonitorJobLogsOptions as a4, type MonitorJobPhase as a5, type MonitorJobReconciliationState as a6, type MonitorJobResult as a7, type MonitorJobState as a8, type MonitorJobWaitOptions as a9, type PlayActivityState as aA, type PlayActivityTarget as aB, type PlayBootstrapEntityKind as aC, type PlayBootstrapFinderKind as aD, type PlayCostEstimate as aE, type PlayCronTriggerConfig as aF, type PlayLiveEvent as aG, type PlayPath as aH, type PlayRunActionPackage as aI, type PlayRunActivityProjection as aJ, type PlayRunDatasetActions as aK, type PlayRunPackage as aL, type PlayRunResult as aM, type PlayRunStart as aN, type PlaySettings as aO, type PlaySettingsPatch as aP, type PlaySettingsPathsPage as aQ, type PlaySettingsResult as aR, type PlaySheetRow as aS, type PlaySheetRowsResult as aT, type PlayTriggerConfigUpdate as aU, type PlayTriggerConfigUpdateResult as aV, type PlayTriggerConfigView as aW, type PlayWebhookAuthConfig as aX, type PlayWebhookTriggerConfig as aY, type PlaysActivityResponse as aZ, type PlaysListOptions as a_, type MonitorJobsNamespace as aa, type MonitorListEntry as ab, type MonitorPayload as ac, type MonitorReactivateResult as ad, type MonitorSpec as ae, type MonitorState as af, type MonitorStateFilter as ag, type MonitorUpdateChangeSummary as ah, type MonitorUpdateResult as ai, type MonitorsAccessStatus as aj, type MonitorsAvailableOptions as ak, type MonitorsAvailableResult as al, type MonitorsListOptions as am, type MonitorsListResult as an, type MonitorsNamespace as ao, PLAY_BOOTSTRAP_COMPANY_FIELDS as ap, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY as aq, PLAY_BOOTSTRAP_CONTACT_FIELDS as ar, PLAY_BOOTSTRAP_FINDER_KINDS as as, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER as at, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY as au, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER as av, PLAY_BOOTSTRAP_SOURCE_KINDS as aw, PLAY_BOOTSTRAP_STAGE_KINDS as ax, PLAY_BOOTSTRAP_TEMPLATES as ay, type PlayActivityObservation as az, type ExecutionByKeyResult as b, stageFileInputs as b$, type PublishPlayVersionRequest as b0, type RerunOptions as b1, type RerunPlayRunResult as b2, type RunChildrenPage as b3, type RunLifecycleStatus as b4, type RunToolReceiptResult as b5, type RunToolReceiptsResponse as b6, type RunsChildrenOptions as b7, type RunsEventPayload as b8, type RunsEventSearchEntry as b9, isStopAllPlayRunsDryRunResult as bA, CSV_DATA_INPUT_KEY as bB, type FileInputBinding as bC, type LocalFileInput as bD, type MintStagedFileUpload as bE, PLAY_FILES_STAGE_MINT_PATH as bF, PLAY_FILES_STAGE_PATH as bG, PLAY_RUN_START_PATH as bH, PLAY_RUN_START_STREAM_PATH as bI, type PlayRunHttp as bJ, type ResolvedStartPlayRunRequest as bK, STAGE_LEGACY_MULTIPART_MAX_BYTES as bL, type StagedFileCodec as bM, type StagedFileInputs as bN, type StagedFileUpload as bO, buildNamedPlayRunRequest as bP, buildPlayRunStartBody as bQ, createSessionPlayRunHttp as bR, createStagedFileUpload as bS, fileInputBindingsFromPlaySchema as bT, fileInputBindingsFromStaticPipeline as bU, getDottedInputValue as bV, isPlayRunPackage as bW, mintStagedPlayFileUploads as bX, normalizePlayRunStart as bY, playRunFileInputBindings as bZ, setDottedInputValue as b_, type RunsEventSearchOptions as ba, type RunsEventSearchResult as bb, type RunsListOptions as bc, type RunsListPage as bd, type RunsLogsOptions as be, type RunsLogsResult as bf, type RunsNamespace as bg, type RunsTailOptions as bh, type RunsWatchOptions as bi, type StartPlayRunRequest as bj, type StopAllCandidate as bk, type StopAllPlayRunsDryRunResult as bl, type StopAllPlayRunsResult as bm, type StopAllPlayRunsStopResult as bn, type StopAllRunsOptions as bo, type ToolExecution as bp, type ToolSearchOptions as bq, type ToolSearchResult as br, type WorkspaceCreateResult as bs, type WorkspacesNamespace as bt, defineMonitor as bu, formatPlayBootstrapFinderKinds as bv, formatPlayBootstrapFinderKindsForSentence as bw, formatPlayBootstrapTemplates as bx, isPlayBootstrapFinderKind as by, isPlayBootstrapTemplate as bz, type PlayDetail as c, stagePlayFiles as c0, stagedFileContentType as c1, startPlayRun as c2, webStagedFileCodec as c3, type PlayRunListItem as d, type PlayRevisionSummary as e, type PublishPlayVersionResult as f, type PlayStatus as g, type BillingCreditPool as h, type BillingInvoiceEntry as i, type BillingInvoicesResult as j, type BillingPaymentMethodSummary as k, type BillingRecentUsageEntry as l, type BillingSubscriptionCancelResult as m, type BillingSubscriptionStatus as n, type BillingTopUpReceipt as o, type BillingTopUpResult as p, type BillingUsageEvent as q, type BillingUsageOptions as r, type BillingUsageResult as s, type ChildRunSummary as t, type ClearPlayHistoryRequest as u, type CreateNotificationGroupInput as v, type CreateNotificationGroupResult as w, type CustomerDbQueryResult as x, DEEPLINE_TOOL_CATEGORIES as y, type DbNamespace as z };
6694
+ export { type MonitorFleetStatus as $, DeeplineClient as A, type BillingNamespace as B, type ClearPlayHistoryResult as C, type DeeplineClientOptions as D, type ExecutionRecovery as E, type DeeplineToolCategory as F, type LiveEventEnvelope as G, MONITOR_JOB_RECONCILIATION_STATES as H, type IngestionStorageRepairResult as I, MONITOR_JOB_STATES as J, type MonitorBatchNamespace as K, type LegacyMonitorStatusFilter as L, MONITOR_JOB_PHASES as M, type MonitorCheckResult as N, type MonitorDefinition as O, type PlayListItem as P, type MonitorDeleteResult as Q, type ResolvedConfig as R, type StopPlayRunResult as S, type ToolDefinition as T, type MonitorDependents as U, type MonitorDeployResult as V, type MonitorDetail as W, type MonitorFleetDeactivateOptions as X, type MonitorFleetGetOptions as Y, type MonitorFleetReactivateOptions as Z, type MonitorFleetResult as _, type ToolMetadata as a, type PlaysListPage as a$, type MonitorFleetSyncOptions as a0, type MonitorFleetWaitOptions as a1, type MonitorFleetsNamespace as a2, type MonitorJobDeployOptions as a3, type MonitorJobLogsOptions as a4, type MonitorJobPhase as a5, type MonitorJobReconciliationState as a6, type MonitorJobResult as a7, type MonitorJobState as a8, type MonitorJobWaitOptions as a9, type PlayActivityState as aA, type PlayActivityTarget as aB, type PlayBootstrapEntityKind as aC, type PlayBootstrapFinderKind as aD, type PlayCostEstimate as aE, type PlayCronTriggerConfig as aF, type PlayLiveEvent as aG, type PlayPath as aH, type PlayRunActionPackage as aI, type PlayRunActivityProjection as aJ, type PlayRunDatasetActions as aK, type PlayRunPackage as aL, type PlayRunResult as aM, type PlayRunStart as aN, type PlaySettings as aO, type PlaySettingsPatch as aP, type PlaySettingsPathsPage as aQ, type PlaySettingsResult as aR, type PlaySheetRow as aS, type PlaySheetRowsResult as aT, type PlayTriggerConfigUpdate as aU, type PlayTriggerConfigUpdateResult as aV, type PlayTriggerConfigView as aW, type PlayWebhookAuthConfig as aX, type PlayWebhookTriggerConfig as aY, type PlaysActivityResponse as aZ, type PlaysListOptions as a_, type MonitorJobsNamespace as aa, type MonitorListEntry as ab, type MonitorPayload as ac, type MonitorReactivateResult as ad, type MonitorSpec as ae, type MonitorState as af, type MonitorStateFilter as ag, type MonitorUpdateChangeSummary as ah, type MonitorUpdateResult as ai, type MonitorsAccessStatus as aj, type MonitorsAvailableOptions as ak, type MonitorsAvailableResult as al, type MonitorsListOptions as am, type MonitorsListResult as an, type MonitorsNamespace as ao, PLAY_BOOTSTRAP_COMPANY_FIELDS as ap, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY as aq, PLAY_BOOTSTRAP_CONTACT_FIELDS as ar, PLAY_BOOTSTRAP_FINDER_KINDS as as, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER as at, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY as au, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER as av, PLAY_BOOTSTRAP_SOURCE_KINDS as aw, PLAY_BOOTSTRAP_STAGE_KINDS as ax, PLAY_BOOTSTRAP_TEMPLATES as ay, type PlayActivityObservation as az, type ExecutionByKeyResult as b, normalizePlayRunStart as b$, type PublishPlayVersionRequest as b0, type RerunOptions as b1, type RerunPlayRunResult as b2, type RunChildrenPage as b3, type RunLifecycleStatus as b4, type RunToolReceiptResult as b5, type RunToolReceiptsResponse as b6, type RunsChildrenOptions as b7, type RunsEventPayload as b8, type RunsEventSearchEntry as b9, formatPlayBootstrapTemplates as bA, isPlayBootstrapFinderKind as bB, isPlayBootstrapTemplate as bC, isStopAllPlayRunsDryRunResult as bD, CSV_DATA_INPUT_KEY as bE, type FileInputBinding as bF, type LocalFileInput as bG, type MintStagedFileUpload as bH, PLAY_FILES_STAGE_MINT_PATH as bI, PLAY_FILES_STAGE_PATH as bJ, PLAY_RUN_START_PATH as bK, PLAY_RUN_START_STREAM_PATH as bL, type PlayRunHttp as bM, type ResolvedStartPlayRunRequest as bN, STAGE_LEGACY_MULTIPART_MAX_BYTES as bO, type StagedFileCodec as bP, type StagedFileInputs as bQ, type StagedFileUpload as bR, buildNamedPlayRunRequest as bS, buildPlayRunStartBody as bT, createSessionPlayRunHttp as bU, createStagedFileUpload as bV, fileInputBindingsFromPlaySchema as bW, fileInputBindingsFromStaticPipeline as bX, getDottedInputValue as bY, isPlayRunPackage as bZ, mintStagedPlayFileUploads as b_, type RunsEventSearchOptions as ba, type RunsEventSearchResult as bb, type RunsHistoryItem as bc, type RunsHistoryOptions as bd, type RunsHistoryPage as be, type RunsListOptions as bf, type RunsListPage as bg, type RunsLogsOptions as bh, type RunsLogsResult as bi, type RunsNamespace as bj, type RunsTailOptions as bk, type RunsWatchOptions as bl, type StartPlayRunRequest as bm, type StopAllCandidate as bn, type StopAllPlayRunsDryRunResult as bo, type StopAllPlayRunsResult as bp, type StopAllPlayRunsStopResult as bq, type StopAllRunsOptions as br, type ToolExecution as bs, type ToolSearchOptions as bt, type ToolSearchResult as bu, type WorkspaceCreateResult as bv, type WorkspacesNamespace as bw, defineMonitor as bx, formatPlayBootstrapFinderKinds as by, formatPlayBootstrapFinderKindsForSentence as bz, type PlayDetail as c, playRunFileInputBindings as c0, setDottedInputValue as c1, stageFileInputs as c2, stagePlayFiles as c3, stagedFileContentType as c4, startPlayRun as c5, webStagedFileCodec as c6, type PlayRunListItem as d, type PlayRevisionSummary as e, type PublishPlayVersionResult as f, type PlayStatus as g, type BillingCreditPool as h, type BillingInvoiceEntry as i, type BillingInvoicesResult as j, type BillingPaymentMethodSummary as k, type BillingRecentUsageEntry as l, type BillingSubscriptionCancelResult as m, type BillingSubscriptionStatus as n, type BillingTopUpReceipt as o, type BillingTopUpResult as p, type BillingUsageEvent as q, type BillingUsageOptions as r, type BillingUsageResult as s, type ChildRunSummary as t, type ClearPlayHistoryRequest as u, type CreateNotificationGroupInput as v, type CreateNotificationGroupResult as w, type CustomerDbQueryResult as x, DEEPLINE_TOOL_CATEGORIES as y, type DbNamespace as z };
@@ -2216,6 +2216,12 @@ type PlayLiveEvent = LiveEventEnvelope<unknown> & {
2216
2216
  interface StopPlayRunResult {
2217
2217
  /** Public play-run identifier the stop request targeted. */
2218
2218
  runId: string;
2219
+ /**
2220
+ * Typed stop outcome: `stopped` (terminal), `cancelling` (cancellation
2221
+ * durably queued; cleanup and the final run update are pending, not an
2222
+ * error), or `failed` (the stop was not confirmed). Absent on older servers.
2223
+ */
2224
+ state?: 'stopped' | 'cancelling' | 'failed';
2219
2225
  /** Whether the server confirmed the run was stopped. */
2220
2226
  stopped: boolean;
2221
2227
  /** True when the durable cancellation lane accepted the request and is draining. */
@@ -2225,11 +2231,12 @@ interface StopPlayRunResult {
2225
2231
  /** True if HITL state or its same-message Slack card still needs retrying. */
2226
2232
  hitlCancellationPending?: boolean;
2227
2233
  /**
2228
- * True when the scheduler state for the run was stale and the stop could
2229
- * not be confirmed. Absent on older servers (treated as confirmed).
2234
+ * True only when the scheduler and the canonical run ledger disagree (for
2235
+ * example a terminal scheduler run whose ledger projection is pending), so
2236
+ * the stop could not be confirmed. Never set for a queued cancellation.
2230
2237
  */
2231
2238
  staleSchedulerState?: boolean;
2232
- /** Server-side error detail when the stop was not confirmed. */
2239
+ /** Server-side error detail when the stop failed (`state: 'failed'`). */
2233
2240
  error?: string;
2234
2241
  }
2235
2242
  /**
@@ -3715,6 +3722,46 @@ type RunsListPage = {
3715
3722
  limit?: number;
3716
3723
  hasMore?: boolean;
3717
3724
  };
3725
+ /** Cursor-paged workspace run history, including runs of removed Plays. */
3726
+ type RunsHistoryOptions = {
3727
+ /** Case-insensitive Play/workflow name, run ID, or status substring. */
3728
+ search?: string;
3729
+ /** Search classification from recorded trigger metadata; requires search. */
3730
+ type?: 'all' | 'plays' | 'monitors';
3731
+ cursor?: string;
3732
+ limit?: number;
3733
+ /** Must match the workspace authorized by the credential. */
3734
+ orgId?: string;
3735
+ signal?: AbortSignal;
3736
+ };
3737
+ type RunsHistoryItem = {
3738
+ runId: string;
3739
+ workflowId: string;
3740
+ workflowName: string;
3741
+ playScope: 'org' | 'system' | null;
3742
+ status: string;
3743
+ createdAt: number;
3744
+ updatedAt: number;
3745
+ callerName: string | null;
3746
+ callerEmail: string | null;
3747
+ authorName: string | null;
3748
+ authorEmail: string | null;
3749
+ callerAgent: string | null;
3750
+ executionMode: string | null;
3751
+ bindingId: string | null;
3752
+ parentWorkflowName: string | null;
3753
+ outputRowCount: number | null;
3754
+ hasOutput: boolean;
3755
+ billingTotalCredits?: number;
3756
+ triggerSource?: string;
3757
+ };
3758
+ /** An empty search page is incomplete while hasMore is true. */
3759
+ type RunsHistoryPage = {
3760
+ runs: RunsHistoryItem[];
3761
+ nextCursor: string | null;
3762
+ hasMore: boolean;
3763
+ avatarsByName?: Record<string, string>;
3764
+ };
3718
3765
  type PlaysListOptions = {
3719
3766
  origin?: 'prebuilt' | 'owned';
3720
3767
  grep?: string;
@@ -3744,6 +3791,8 @@ type PlaysListPage = {
3744
3791
  type RunsGetOptions = {
3745
3792
  /** Return the raw status payload instead of the compact package. */
3746
3793
  full?: boolean;
3794
+ /** Explicitly read this run's recorded graph and source, without full results. */
3795
+ configuration?: boolean;
3747
3796
  /** Attach a bounded end-of-stream window for a failed run. */
3748
3797
  failedLogs?: boolean;
3749
3798
  /** Requested failed-log lines to attach (default 20, hard-capped at 20). */
@@ -3834,6 +3883,12 @@ type RunsLogsOptions = {
3834
3883
  all?: boolean;
3835
3884
  /** Read a terminal-failed run's last 20 retained lines, or fewer with `limit`. Retention loss returns an explicit association and warning. */
3836
3885
  failed?: boolean;
3886
+ /**
3887
+ * Continue with the next OLDER page: pass a prior result's `nextCursor`.
3888
+ * The page holds the last `limit` stored lines before that cursor (with
3889
+ * `all`, every stored line before it).
3890
+ */
3891
+ cursor?: string;
3837
3892
  };
3838
3893
  /** Retained text for one run. Counts and retention flags describe the stored stream, not every original console call. */
3839
3894
  type RunsLogsResult = {
@@ -3849,8 +3904,14 @@ type RunsLogsResult = {
3849
3904
  lastSequence: number | null;
3850
3905
  /** Tail/all: returned count is below total count. Failed: the stream lost bodies to retention. Check `logsTruncated` to distinguish retention loss from a selected tail. */
3851
3906
  truncated: boolean;
3852
- /** More retained lines exist after `lastSequence`; always false for the designed failure window. */
3907
+ /** Older stored lines exist before this page; `nextCursor` reads them. */
3853
3908
  hasMore: boolean;
3909
+ /**
3910
+ * Opaque cursor for the next older page (`runs.logs(id, { cursor })`),
3911
+ * null when this page reaches the oldest stored line. Absent for the failed
3912
+ * view, which is a complete designed window rather than a pageable slice.
3913
+ */
3914
+ nextCursor?: string | null;
3854
3915
  /** Formatted text lines in stored sequence order; structured context is available through event search. */
3855
3916
  entries: string[];
3856
3917
  /** Selected public log view. */
@@ -4023,6 +4084,8 @@ type RunsNamespace = {
4023
4084
  list: (options: RunsListOptions) => Promise<PlayRunListItem[]>;
4024
4085
  /** Read one run page with total, offset, limit and completeness metadata. */
4025
4086
  listPage: (options: RunsListOptions) => Promise<RunsListPage>;
4087
+ /** Search/page workspace run history newest first; follow empty continuing pages. */
4088
+ history: (options?: RunsHistoryOptions) => Promise<RunsHistoryPage>;
4026
4089
  /** Poll run snapshots every two seconds until terminal status. */
4027
4090
  watch: (runId: string, options?: RunsWatchOptions) => Promise<PlayStatus>;
4028
4091
  /** @deprecated Use `watch`; retained as a source-compatible alias. */
@@ -5971,6 +6034,8 @@ declare class DeeplineClient {
5971
6034
  * ```
5972
6035
  */
5973
6036
  listRuns(options: RunsListOptions): Promise<PlayRunListItem[]>;
6037
+ /** The same tenant-scoped run history searched by the dashboard and CLI. */
6038
+ getRunsHistory(options?: RunsHistoryOptions): Promise<RunsHistoryPage>;
5974
6039
  /** Read one run page without discarding server pagination metadata. */
5975
6040
  listRunsPage(options: RunsListOptions): Promise<RunsListPage>;
5976
6041
  /** 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. */
@@ -6626,4 +6691,4 @@ declare class DeeplineClient {
6626
6691
  }>;
6627
6692
  }
6628
6693
 
6629
- export { type MonitorFleetStatus as $, DeeplineClient as A, type BillingNamespace as B, type ClearPlayHistoryResult as C, type DeeplineClientOptions as D, type ExecutionRecovery as E, type DeeplineToolCategory as F, type LiveEventEnvelope as G, MONITOR_JOB_RECONCILIATION_STATES as H, type IngestionStorageRepairResult as I, MONITOR_JOB_STATES as J, type MonitorBatchNamespace as K, type LegacyMonitorStatusFilter as L, MONITOR_JOB_PHASES as M, type MonitorCheckResult as N, type MonitorDefinition as O, type PlayListItem as P, type MonitorDeleteResult as Q, type ResolvedConfig as R, type StopPlayRunResult as S, type ToolDefinition as T, type MonitorDependents as U, type MonitorDeployResult as V, type MonitorDetail as W, type MonitorFleetDeactivateOptions as X, type MonitorFleetGetOptions as Y, type MonitorFleetReactivateOptions as Z, type MonitorFleetResult as _, type ToolMetadata as a, type PlaysListPage as a$, type MonitorFleetSyncOptions as a0, type MonitorFleetWaitOptions as a1, type MonitorFleetsNamespace as a2, type MonitorJobDeployOptions as a3, type MonitorJobLogsOptions as a4, type MonitorJobPhase as a5, type MonitorJobReconciliationState as a6, type MonitorJobResult as a7, type MonitorJobState as a8, type MonitorJobWaitOptions as a9, type PlayActivityState as aA, type PlayActivityTarget as aB, type PlayBootstrapEntityKind as aC, type PlayBootstrapFinderKind as aD, type PlayCostEstimate as aE, type PlayCronTriggerConfig as aF, type PlayLiveEvent as aG, type PlayPath as aH, type PlayRunActionPackage as aI, type PlayRunActivityProjection as aJ, type PlayRunDatasetActions as aK, type PlayRunPackage as aL, type PlayRunResult as aM, type PlayRunStart as aN, type PlaySettings as aO, type PlaySettingsPatch as aP, type PlaySettingsPathsPage as aQ, type PlaySettingsResult as aR, type PlaySheetRow as aS, type PlaySheetRowsResult as aT, type PlayTriggerConfigUpdate as aU, type PlayTriggerConfigUpdateResult as aV, type PlayTriggerConfigView as aW, type PlayWebhookAuthConfig as aX, type PlayWebhookTriggerConfig as aY, type PlaysActivityResponse as aZ, type PlaysListOptions as a_, type MonitorJobsNamespace as aa, type MonitorListEntry as ab, type MonitorPayload as ac, type MonitorReactivateResult as ad, type MonitorSpec as ae, type MonitorState as af, type MonitorStateFilter as ag, type MonitorUpdateChangeSummary as ah, type MonitorUpdateResult as ai, type MonitorsAccessStatus as aj, type MonitorsAvailableOptions as ak, type MonitorsAvailableResult as al, type MonitorsListOptions as am, type MonitorsListResult as an, type MonitorsNamespace as ao, PLAY_BOOTSTRAP_COMPANY_FIELDS as ap, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY as aq, PLAY_BOOTSTRAP_CONTACT_FIELDS as ar, PLAY_BOOTSTRAP_FINDER_KINDS as as, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER as at, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY as au, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER as av, PLAY_BOOTSTRAP_SOURCE_KINDS as aw, PLAY_BOOTSTRAP_STAGE_KINDS as ax, PLAY_BOOTSTRAP_TEMPLATES as ay, type PlayActivityObservation as az, type ExecutionByKeyResult as b, stageFileInputs as b$, type PublishPlayVersionRequest as b0, type RerunOptions as b1, type RerunPlayRunResult as b2, type RunChildrenPage as b3, type RunLifecycleStatus as b4, type RunToolReceiptResult as b5, type RunToolReceiptsResponse as b6, type RunsChildrenOptions as b7, type RunsEventPayload as b8, type RunsEventSearchEntry as b9, isStopAllPlayRunsDryRunResult as bA, CSV_DATA_INPUT_KEY as bB, type FileInputBinding as bC, type LocalFileInput as bD, type MintStagedFileUpload as bE, PLAY_FILES_STAGE_MINT_PATH as bF, PLAY_FILES_STAGE_PATH as bG, PLAY_RUN_START_PATH as bH, PLAY_RUN_START_STREAM_PATH as bI, type PlayRunHttp as bJ, type ResolvedStartPlayRunRequest as bK, STAGE_LEGACY_MULTIPART_MAX_BYTES as bL, type StagedFileCodec as bM, type StagedFileInputs as bN, type StagedFileUpload as bO, buildNamedPlayRunRequest as bP, buildPlayRunStartBody as bQ, createSessionPlayRunHttp as bR, createStagedFileUpload as bS, fileInputBindingsFromPlaySchema as bT, fileInputBindingsFromStaticPipeline as bU, getDottedInputValue as bV, isPlayRunPackage as bW, mintStagedPlayFileUploads as bX, normalizePlayRunStart as bY, playRunFileInputBindings as bZ, setDottedInputValue as b_, type RunsEventSearchOptions as ba, type RunsEventSearchResult as bb, type RunsListOptions as bc, type RunsListPage as bd, type RunsLogsOptions as be, type RunsLogsResult as bf, type RunsNamespace as bg, type RunsTailOptions as bh, type RunsWatchOptions as bi, type StartPlayRunRequest as bj, type StopAllCandidate as bk, type StopAllPlayRunsDryRunResult as bl, type StopAllPlayRunsResult as bm, type StopAllPlayRunsStopResult as bn, type StopAllRunsOptions as bo, type ToolExecution as bp, type ToolSearchOptions as bq, type ToolSearchResult as br, type WorkspaceCreateResult as bs, type WorkspacesNamespace as bt, defineMonitor as bu, formatPlayBootstrapFinderKinds as bv, formatPlayBootstrapFinderKindsForSentence as bw, formatPlayBootstrapTemplates as bx, isPlayBootstrapFinderKind as by, isPlayBootstrapTemplate as bz, type PlayDetail as c, stagePlayFiles as c0, stagedFileContentType as c1, startPlayRun as c2, webStagedFileCodec as c3, type PlayRunListItem as d, type PlayRevisionSummary as e, type PublishPlayVersionResult as f, type PlayStatus as g, type BillingCreditPool as h, type BillingInvoiceEntry as i, type BillingInvoicesResult as j, type BillingPaymentMethodSummary as k, type BillingRecentUsageEntry as l, type BillingSubscriptionCancelResult as m, type BillingSubscriptionStatus as n, type BillingTopUpReceipt as o, type BillingTopUpResult as p, type BillingUsageEvent as q, type BillingUsageOptions as r, type BillingUsageResult as s, type ChildRunSummary as t, type ClearPlayHistoryRequest as u, type CreateNotificationGroupInput as v, type CreateNotificationGroupResult as w, type CustomerDbQueryResult as x, DEEPLINE_TOOL_CATEGORIES as y, type DbNamespace as z };
6694
+ export { type MonitorFleetStatus as $, DeeplineClient as A, type BillingNamespace as B, type ClearPlayHistoryResult as C, type DeeplineClientOptions as D, type ExecutionRecovery as E, type DeeplineToolCategory as F, type LiveEventEnvelope as G, MONITOR_JOB_RECONCILIATION_STATES as H, type IngestionStorageRepairResult as I, MONITOR_JOB_STATES as J, type MonitorBatchNamespace as K, type LegacyMonitorStatusFilter as L, MONITOR_JOB_PHASES as M, type MonitorCheckResult as N, type MonitorDefinition as O, type PlayListItem as P, type MonitorDeleteResult as Q, type ResolvedConfig as R, type StopPlayRunResult as S, type ToolDefinition as T, type MonitorDependents as U, type MonitorDeployResult as V, type MonitorDetail as W, type MonitorFleetDeactivateOptions as X, type MonitorFleetGetOptions as Y, type MonitorFleetReactivateOptions as Z, type MonitorFleetResult as _, type ToolMetadata as a, type PlaysListPage as a$, type MonitorFleetSyncOptions as a0, type MonitorFleetWaitOptions as a1, type MonitorFleetsNamespace as a2, type MonitorJobDeployOptions as a3, type MonitorJobLogsOptions as a4, type MonitorJobPhase as a5, type MonitorJobReconciliationState as a6, type MonitorJobResult as a7, type MonitorJobState as a8, type MonitorJobWaitOptions as a9, type PlayActivityState as aA, type PlayActivityTarget as aB, type PlayBootstrapEntityKind as aC, type PlayBootstrapFinderKind as aD, type PlayCostEstimate as aE, type PlayCronTriggerConfig as aF, type PlayLiveEvent as aG, type PlayPath as aH, type PlayRunActionPackage as aI, type PlayRunActivityProjection as aJ, type PlayRunDatasetActions as aK, type PlayRunPackage as aL, type PlayRunResult as aM, type PlayRunStart as aN, type PlaySettings as aO, type PlaySettingsPatch as aP, type PlaySettingsPathsPage as aQ, type PlaySettingsResult as aR, type PlaySheetRow as aS, type PlaySheetRowsResult as aT, type PlayTriggerConfigUpdate as aU, type PlayTriggerConfigUpdateResult as aV, type PlayTriggerConfigView as aW, type PlayWebhookAuthConfig as aX, type PlayWebhookTriggerConfig as aY, type PlaysActivityResponse as aZ, type PlaysListOptions as a_, type MonitorJobsNamespace as aa, type MonitorListEntry as ab, type MonitorPayload as ac, type MonitorReactivateResult as ad, type MonitorSpec as ae, type MonitorState as af, type MonitorStateFilter as ag, type MonitorUpdateChangeSummary as ah, type MonitorUpdateResult as ai, type MonitorsAccessStatus as aj, type MonitorsAvailableOptions as ak, type MonitorsAvailableResult as al, type MonitorsListOptions as am, type MonitorsListResult as an, type MonitorsNamespace as ao, PLAY_BOOTSTRAP_COMPANY_FIELDS as ap, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY as aq, PLAY_BOOTSTRAP_CONTACT_FIELDS as ar, PLAY_BOOTSTRAP_FINDER_KINDS as as, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER as at, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY as au, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER as av, PLAY_BOOTSTRAP_SOURCE_KINDS as aw, PLAY_BOOTSTRAP_STAGE_KINDS as ax, PLAY_BOOTSTRAP_TEMPLATES as ay, type PlayActivityObservation as az, type ExecutionByKeyResult as b, normalizePlayRunStart as b$, type PublishPlayVersionRequest as b0, type RerunOptions as b1, type RerunPlayRunResult as b2, type RunChildrenPage as b3, type RunLifecycleStatus as b4, type RunToolReceiptResult as b5, type RunToolReceiptsResponse as b6, type RunsChildrenOptions as b7, type RunsEventPayload as b8, type RunsEventSearchEntry as b9, formatPlayBootstrapTemplates as bA, isPlayBootstrapFinderKind as bB, isPlayBootstrapTemplate as bC, isStopAllPlayRunsDryRunResult as bD, CSV_DATA_INPUT_KEY as bE, type FileInputBinding as bF, type LocalFileInput as bG, type MintStagedFileUpload as bH, PLAY_FILES_STAGE_MINT_PATH as bI, PLAY_FILES_STAGE_PATH as bJ, PLAY_RUN_START_PATH as bK, PLAY_RUN_START_STREAM_PATH as bL, type PlayRunHttp as bM, type ResolvedStartPlayRunRequest as bN, STAGE_LEGACY_MULTIPART_MAX_BYTES as bO, type StagedFileCodec as bP, type StagedFileInputs as bQ, type StagedFileUpload as bR, buildNamedPlayRunRequest as bS, buildPlayRunStartBody as bT, createSessionPlayRunHttp as bU, createStagedFileUpload as bV, fileInputBindingsFromPlaySchema as bW, fileInputBindingsFromStaticPipeline as bX, getDottedInputValue as bY, isPlayRunPackage as bZ, mintStagedPlayFileUploads as b_, type RunsEventSearchOptions as ba, type RunsEventSearchResult as bb, type RunsHistoryItem as bc, type RunsHistoryOptions as bd, type RunsHistoryPage as be, type RunsListOptions as bf, type RunsListPage as bg, type RunsLogsOptions as bh, type RunsLogsResult as bi, type RunsNamespace as bj, type RunsTailOptions as bk, type RunsWatchOptions as bl, type StartPlayRunRequest as bm, type StopAllCandidate as bn, type StopAllPlayRunsDryRunResult as bo, type StopAllPlayRunsResult as bp, type StopAllPlayRunsStopResult as bq, type StopAllRunsOptions as br, type ToolExecution as bs, type ToolSearchOptions as bt, type ToolSearchResult as bu, type WorkspaceCreateResult as bv, type WorkspacesNamespace as bw, defineMonitor as bx, formatPlayBootstrapFinderKinds as by, formatPlayBootstrapFinderKindsForSentence as bz, type PlayDetail as c, playRunFileInputBindings as c0, setDottedInputValue as c1, stageFileInputs as c2, stagePlayFiles as c3, stagedFileContentType as c4, startPlayRun as c5, webStagedFileCodec as c6, type PlayRunListItem as d, type PlayRevisionSummary as e, type PublishPlayVersionResult as f, type PlayStatus as g, type BillingCreditPool as h, type BillingInvoiceEntry as i, type BillingInvoicesResult as j, type BillingPaymentMethodSummary as k, type BillingRecentUsageEntry as l, type BillingSubscriptionCancelResult as m, type BillingSubscriptionStatus as n, type BillingTopUpReceipt as o, type BillingTopUpResult as p, type BillingUsageEvent as q, type BillingUsageOptions as r, type BillingUsageResult as s, type ChildRunSummary as t, type ClearPlayHistoryRequest as u, type CreateNotificationGroupInput as v, type CreateNotificationGroupResult as w, type CustomerDbQueryResult as x, DEEPLINE_TOOL_CATEGORIES as y, type DbNamespace as z };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { D as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, a as ToolMetadata, E as ExecutionRecovery, b as ExecutionByKeyResult, P as PlayListItem, c as PlayDetail, d as PlayRunListItem, e as PlayRevisionSummary, f as PublishPlayVersionResult, C as ClearPlayHistoryResult, g as PlayStatus, S as StopPlayRunResult, R as ResolvedConfig } from './client-2rIHKJiq.mjs';
3
- export { h as BillingCreditPool, i as BillingInvoiceEntry, j as BillingInvoicesResult, k as BillingPaymentMethodSummary, l as BillingRecentUsageEntry, m as BillingSubscriptionCancelResult, n as BillingSubscriptionStatus, o as BillingTopUpReceipt, p as BillingTopUpResult, q as BillingUsageEvent, r as BillingUsageOptions, s as BillingUsageResult, t as ChildRunSummary, u as ClearPlayHistoryRequest, v as CreateNotificationGroupInput, w as CreateNotificationGroupResult, x as CustomerDbQueryResult, y as DEEPLINE_TOOL_CATEGORIES, z as DbNamespace, A as DeeplineClient, F as DeeplineToolCategory, I as IngestionStorageRepairResult, L as LegacyMonitorStatusFilter, G as LiveEventEnvelope, M as MONITOR_JOB_PHASES, H as MONITOR_JOB_RECONCILIATION_STATES, J as MONITOR_JOB_STATES, K as MonitorBatchNamespace, N as MonitorCheckResult, O as MonitorDefinition, Q as MonitorDeleteResult, U as MonitorDependents, V as MonitorDeployResult, W as MonitorDetail, X as MonitorFleetDeactivateOptions, Y as MonitorFleetGetOptions, Z as MonitorFleetReactivateOptions, _ as MonitorFleetResult, $ as MonitorFleetStatus, a0 as MonitorFleetSyncOptions, a1 as MonitorFleetWaitOptions, a2 as MonitorFleetsNamespace, a3 as MonitorJobDeployOptions, a4 as MonitorJobLogsOptions, a5 as MonitorJobPhase, a6 as MonitorJobReconciliationState, a7 as MonitorJobResult, a8 as MonitorJobState, a9 as MonitorJobWaitOptions, aa as MonitorJobsNamespace, ab as MonitorListEntry, ac as MonitorPayload, ad as MonitorReactivateResult, ae as MonitorSpec, af as MonitorState, ag as MonitorStateFilter, ah as MonitorUpdateChangeSummary, ai as MonitorUpdateResult, aj as MonitorsAccessStatus, ak as MonitorsAvailableOptions, al as MonitorsAvailableResult, am as MonitorsListOptions, an as MonitorsListResult, ao as MonitorsNamespace, ap as PLAY_BOOTSTRAP_COMPANY_FIELDS, aq as PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, ar as PLAY_BOOTSTRAP_CONTACT_FIELDS, as as PLAY_BOOTSTRAP_FINDER_KINDS, at as PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, au as PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, av as PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, aw as PLAY_BOOTSTRAP_SOURCE_KINDS, ax as PLAY_BOOTSTRAP_STAGE_KINDS, ay as PLAY_BOOTSTRAP_TEMPLATES, az as PlayActivityObservation, aA as PlayActivityState, aB as PlayActivityTarget, aC as PlayBootstrapEntityKind, aD as PlayBootstrapFinderKind, aE as PlayCostEstimate, aF as PlayCronTriggerConfig, aG as PlayLiveEvent, aH as PlayPath, aI as PlayRunActionPackage, aJ as PlayRunActivityProjection, aK as PlayRunDatasetActions, aL as PlayRunPackage, aM as PlayRunResult, aN as PlayRunStart, aO as PlaySettings, aP as PlaySettingsPatch, aQ as PlaySettingsPathsPage, aR as PlaySettingsResult, aS as PlaySheetRow, aT as PlaySheetRowsResult, aU as PlayTriggerConfigUpdate, aV as PlayTriggerConfigUpdateResult, aW as PlayTriggerConfigView, aX as PlayWebhookAuthConfig, aY as PlayWebhookTriggerConfig, aZ as PlaysActivityResponse, a_ as PlaysListOptions, a$ as PlaysListPage, b0 as PublishPlayVersionRequest, b1 as RerunOptions, b2 as RerunPlayRunResult, b3 as RunChildrenPage, b4 as RunLifecycleStatus, b5 as RunToolReceiptResult, b6 as RunToolReceiptsResponse, b7 as RunsChildrenOptions, b8 as RunsEventPayload, b9 as RunsEventSearchEntry, ba as RunsEventSearchOptions, bb as RunsEventSearchResult, bc as RunsListOptions, bd as RunsListPage, be as RunsLogsOptions, bf as RunsLogsResult, bg as RunsNamespace, bh as RunsTailOptions, bi as RunsWatchOptions, bj as StartPlayRunRequest, bk as StopAllCandidate, bl as StopAllPlayRunsDryRunResult, bm as StopAllPlayRunsResult, bn as StopAllPlayRunsStopResult, bo as StopAllRunsOptions, bp as ToolExecution, bq as ToolSearchOptions, br as ToolSearchResult, bs as WorkspaceCreateResult, bt as WorkspacesNamespace, bu as defineMonitor, bv as formatPlayBootstrapFinderKinds, bw as formatPlayBootstrapFinderKindsForSentence, bx as formatPlayBootstrapTemplates, by as isPlayBootstrapFinderKind, bz as isPlayBootstrapTemplate, bA as isStopAllPlayRunsDryRunResult } from './client-2rIHKJiq.mjs';
2
+ import { D as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, a as ToolMetadata, E as ExecutionRecovery, b as ExecutionByKeyResult, P as PlayListItem, c as PlayDetail, d as PlayRunListItem, e as PlayRevisionSummary, f as PublishPlayVersionResult, C as ClearPlayHistoryResult, g as PlayStatus, S as StopPlayRunResult, R as ResolvedConfig } from './client-CbNvJLgV.mjs';
3
+ export { h as BillingCreditPool, i as BillingInvoiceEntry, j as BillingInvoicesResult, k as BillingPaymentMethodSummary, l as BillingRecentUsageEntry, m as BillingSubscriptionCancelResult, n as BillingSubscriptionStatus, o as BillingTopUpReceipt, p as BillingTopUpResult, q as BillingUsageEvent, r as BillingUsageOptions, s as BillingUsageResult, t as ChildRunSummary, u as ClearPlayHistoryRequest, v as CreateNotificationGroupInput, w as CreateNotificationGroupResult, x as CustomerDbQueryResult, y as DEEPLINE_TOOL_CATEGORIES, z as DbNamespace, A as DeeplineClient, F as DeeplineToolCategory, I as IngestionStorageRepairResult, L as LegacyMonitorStatusFilter, G as LiveEventEnvelope, M as MONITOR_JOB_PHASES, H as MONITOR_JOB_RECONCILIATION_STATES, J as MONITOR_JOB_STATES, K as MonitorBatchNamespace, N as MonitorCheckResult, O as MonitorDefinition, Q as MonitorDeleteResult, U as MonitorDependents, V as MonitorDeployResult, W as MonitorDetail, X as MonitorFleetDeactivateOptions, Y as MonitorFleetGetOptions, Z as MonitorFleetReactivateOptions, _ as MonitorFleetResult, $ as MonitorFleetStatus, a0 as MonitorFleetSyncOptions, a1 as MonitorFleetWaitOptions, a2 as MonitorFleetsNamespace, a3 as MonitorJobDeployOptions, a4 as MonitorJobLogsOptions, a5 as MonitorJobPhase, a6 as MonitorJobReconciliationState, a7 as MonitorJobResult, a8 as MonitorJobState, a9 as MonitorJobWaitOptions, aa as MonitorJobsNamespace, ab as MonitorListEntry, ac as MonitorPayload, ad as MonitorReactivateResult, ae as MonitorSpec, af as MonitorState, ag as MonitorStateFilter, ah as MonitorUpdateChangeSummary, ai as MonitorUpdateResult, aj as MonitorsAccessStatus, ak as MonitorsAvailableOptions, al as MonitorsAvailableResult, am as MonitorsListOptions, an as MonitorsListResult, ao as MonitorsNamespace, ap as PLAY_BOOTSTRAP_COMPANY_FIELDS, aq as PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, ar as PLAY_BOOTSTRAP_CONTACT_FIELDS, as as PLAY_BOOTSTRAP_FINDER_KINDS, at as PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, au as PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, av as PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, aw as PLAY_BOOTSTRAP_SOURCE_KINDS, ax as PLAY_BOOTSTRAP_STAGE_KINDS, ay as PLAY_BOOTSTRAP_TEMPLATES, az as PlayActivityObservation, aA as PlayActivityState, aB as PlayActivityTarget, aC as PlayBootstrapEntityKind, aD as PlayBootstrapFinderKind, aE as PlayCostEstimate, aF as PlayCronTriggerConfig, aG as PlayLiveEvent, aH as PlayPath, aI as PlayRunActionPackage, aJ as PlayRunActivityProjection, aK as PlayRunDatasetActions, aL as PlayRunPackage, aM as PlayRunResult, aN as PlayRunStart, aO as PlaySettings, aP as PlaySettingsPatch, aQ as PlaySettingsPathsPage, aR as PlaySettingsResult, aS as PlaySheetRow, aT as PlaySheetRowsResult, aU as PlayTriggerConfigUpdate, aV as PlayTriggerConfigUpdateResult, aW as PlayTriggerConfigView, aX as PlayWebhookAuthConfig, aY as PlayWebhookTriggerConfig, aZ as PlaysActivityResponse, a_ as PlaysListOptions, a$ as PlaysListPage, b0 as PublishPlayVersionRequest, b1 as RerunOptions, b2 as RerunPlayRunResult, b3 as RunChildrenPage, b4 as RunLifecycleStatus, b5 as RunToolReceiptResult, b6 as RunToolReceiptsResponse, b7 as RunsChildrenOptions, b8 as RunsEventPayload, b9 as RunsEventSearchEntry, ba as RunsEventSearchOptions, bb as RunsEventSearchResult, bc as RunsHistoryItem, bd as RunsHistoryOptions, be as RunsHistoryPage, bf as RunsListOptions, bg as RunsListPage, bh as RunsLogsOptions, bi as RunsLogsResult, bj as RunsNamespace, bk as RunsTailOptions, bl as RunsWatchOptions, bm as StartPlayRunRequest, bn as StopAllCandidate, bo as StopAllPlayRunsDryRunResult, bp as StopAllPlayRunsResult, bq as StopAllPlayRunsStopResult, br as StopAllRunsOptions, bs as ToolExecution, bt as ToolSearchOptions, bu as ToolSearchResult, bv as WorkspaceCreateResult, bw as WorkspacesNamespace, bx as defineMonitor, by as formatPlayBootstrapFinderKinds, bz as formatPlayBootstrapFinderKindsForSentence, bA as formatPlayBootstrapTemplates, bB as isPlayBootstrapFinderKind, bC as isPlayBootstrapTemplate, bD as isStopAllPlayRunsDryRunResult } from './client-CbNvJLgV.mjs';
4
4
  import { A as AsyncPlayRunRef$1, i as PlayAuthoringColumnMap, j as PlayAuthoringColumnResolver, k as PlayAuthoringRuntimeContext, l as PlayAuthoringConditionalStepResolver, m as PlayAuthoringCsvInput, n as PlayAuthoringCsvOptions, o as PlayAuthoringDatasetBuilder, p as PlayAuthoringDatasetColumnDefinition, q as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringAsyncCallOptions, y as PlayAuthoringBindings, z as PlayAuthoringCallExecution, B as PlayAuthoringCallOptions, C as PlayAuthoringFetchResponse, D as PlayAuthoringInputContract, E as PlayRunId$1, F as PlayAuthoringStepProgramStep, G as PlayAuthoringRuntimeStepOptions, H as PlaySqlListenerDeclaration, I as PlaySqlListenerEvent, J as PlaySqlListenerOperation, K as PlaySqlQuery, L as PlayAuthoringStepOptions, M as PlayAuthoringStepProgram, N as PlayAuthoringStepProgramResolver, O as PlayAuthoringStepResolver, Q as PlayToolExecutionRequest, R as PlayAuthoringStepProgramOptions, S as DeeplineError, U as ToolExecutionError, V as ToolExecutionErrorOptions } from './compiler-manifest-C1bKB9bY.mjs';
5
5
  export { W as CtxFetchHttpError, X as DEEPLINE_EXTRACTOR_TARGETS, Y as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, Z as DeeplineEmailStatusGetterValue, _ as DeeplineExtractorTarget, $ as DeeplineGetterValue, a0 as DeeplineGetterValueMap, a1 as JOB_CHANGE_STATUS_VALUES, a2 as JobChangeStatus, a3 as PHONE_STATUS_VALUES, a4 as PhoneStatus, a5 as PlayDataset, a6 as PlayDatasetInput, a7 as PreviousCell, a8 as ProviderTransientError, a9 as ProviderTransientErrorCategory, aa as ProviderUnavailableError, ab as ProviderUnavailableReason, ac as ToolExecutionErrorCategory, ad as ToolExecutionErrorOrigin, ae as ToolExecutionFailureV1, af as ToolExecutionNetworkKind, ag as ToolExecutionNetworkScope, ah as ToolExecutionPublicDetails, ai as ToolResultBilling, aj as getProviderUnavailableReason, ak as isDeeplineExtractorTarget, al as isProviderUnavailable, am as isProviderWaterfallUnavailableError } from './compiler-manifest-C1bKB9bY.mjs';
6
6
  export { BatchMonitorInput, MonitorInputIssue, MonitorSpec as MonitorInputSpec, lintMonitorBatchInput, lintMonitorSpecTemplate, renderMonitorSpecTemplate } from './monitor-input-contract.mjs';
@@ -203,16 +203,10 @@ type CsvOptions = PlayAuthoringCsvOptions;
203
203
  */
204
204
  type DeeplinePlayRuntimeContext = PlayAuthoringRuntimeContext;
205
205
  /**
206
- * Handle to a running play execution.
207
- *
208
- * Provides methods to check status, stream logs, wait for completion,
209
- * or cancel the execution.
210
- *
211
- * This handle is the SDK-context equivalent of `deepline plays run` and
212
- * `POST /api/v2/plays/run`: every surface returns a run id first, then exposes
213
- * the completed user output through `PlayJob.get()` or the status endpoint's
214
- * `result` field. Runtime logs are available from `status().progress.logs` and
215
- * are intentionally separate from the returned output object.
206
+ * Handle to a Play execution: inspect status, stream logs, await output, or cancel.
207
+ * Like `deepline plays run` and `POST /api/v2/plays/run`, it returns a run id first.
208
+ * Read completed output through `PlayJob.get()` or the status endpoint's `result` field;
209
+ * runtime logs in `status().progress.logs` are separate from that output.
216
210
  *
217
211
  * @typeParam TOutput - The play's return type
218
212
  *
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { D as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, a as ToolMetadata, E as ExecutionRecovery, b as ExecutionByKeyResult, P as PlayListItem, c as PlayDetail, d as PlayRunListItem, e as PlayRevisionSummary, f as PublishPlayVersionResult, C as ClearPlayHistoryResult, g as PlayStatus, S as StopPlayRunResult, R as ResolvedConfig } from './client-D6fRwhnE.js';
3
- export { h as BillingCreditPool, i as BillingInvoiceEntry, j as BillingInvoicesResult, k as BillingPaymentMethodSummary, l as BillingRecentUsageEntry, m as BillingSubscriptionCancelResult, n as BillingSubscriptionStatus, o as BillingTopUpReceipt, p as BillingTopUpResult, q as BillingUsageEvent, r as BillingUsageOptions, s as BillingUsageResult, t as ChildRunSummary, u as ClearPlayHistoryRequest, v as CreateNotificationGroupInput, w as CreateNotificationGroupResult, x as CustomerDbQueryResult, y as DEEPLINE_TOOL_CATEGORIES, z as DbNamespace, A as DeeplineClient, F as DeeplineToolCategory, I as IngestionStorageRepairResult, L as LegacyMonitorStatusFilter, G as LiveEventEnvelope, M as MONITOR_JOB_PHASES, H as MONITOR_JOB_RECONCILIATION_STATES, J as MONITOR_JOB_STATES, K as MonitorBatchNamespace, N as MonitorCheckResult, O as MonitorDefinition, Q as MonitorDeleteResult, U as MonitorDependents, V as MonitorDeployResult, W as MonitorDetail, X as MonitorFleetDeactivateOptions, Y as MonitorFleetGetOptions, Z as MonitorFleetReactivateOptions, _ as MonitorFleetResult, $ as MonitorFleetStatus, a0 as MonitorFleetSyncOptions, a1 as MonitorFleetWaitOptions, a2 as MonitorFleetsNamespace, a3 as MonitorJobDeployOptions, a4 as MonitorJobLogsOptions, a5 as MonitorJobPhase, a6 as MonitorJobReconciliationState, a7 as MonitorJobResult, a8 as MonitorJobState, a9 as MonitorJobWaitOptions, aa as MonitorJobsNamespace, ab as MonitorListEntry, ac as MonitorPayload, ad as MonitorReactivateResult, ae as MonitorSpec, af as MonitorState, ag as MonitorStateFilter, ah as MonitorUpdateChangeSummary, ai as MonitorUpdateResult, aj as MonitorsAccessStatus, ak as MonitorsAvailableOptions, al as MonitorsAvailableResult, am as MonitorsListOptions, an as MonitorsListResult, ao as MonitorsNamespace, ap as PLAY_BOOTSTRAP_COMPANY_FIELDS, aq as PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, ar as PLAY_BOOTSTRAP_CONTACT_FIELDS, as as PLAY_BOOTSTRAP_FINDER_KINDS, at as PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, au as PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, av as PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, aw as PLAY_BOOTSTRAP_SOURCE_KINDS, ax as PLAY_BOOTSTRAP_STAGE_KINDS, ay as PLAY_BOOTSTRAP_TEMPLATES, az as PlayActivityObservation, aA as PlayActivityState, aB as PlayActivityTarget, aC as PlayBootstrapEntityKind, aD as PlayBootstrapFinderKind, aE as PlayCostEstimate, aF as PlayCronTriggerConfig, aG as PlayLiveEvent, aH as PlayPath, aI as PlayRunActionPackage, aJ as PlayRunActivityProjection, aK as PlayRunDatasetActions, aL as PlayRunPackage, aM as PlayRunResult, aN as PlayRunStart, aO as PlaySettings, aP as PlaySettingsPatch, aQ as PlaySettingsPathsPage, aR as PlaySettingsResult, aS as PlaySheetRow, aT as PlaySheetRowsResult, aU as PlayTriggerConfigUpdate, aV as PlayTriggerConfigUpdateResult, aW as PlayTriggerConfigView, aX as PlayWebhookAuthConfig, aY as PlayWebhookTriggerConfig, aZ as PlaysActivityResponse, a_ as PlaysListOptions, a$ as PlaysListPage, b0 as PublishPlayVersionRequest, b1 as RerunOptions, b2 as RerunPlayRunResult, b3 as RunChildrenPage, b4 as RunLifecycleStatus, b5 as RunToolReceiptResult, b6 as RunToolReceiptsResponse, b7 as RunsChildrenOptions, b8 as RunsEventPayload, b9 as RunsEventSearchEntry, ba as RunsEventSearchOptions, bb as RunsEventSearchResult, bc as RunsListOptions, bd as RunsListPage, be as RunsLogsOptions, bf as RunsLogsResult, bg as RunsNamespace, bh as RunsTailOptions, bi as RunsWatchOptions, bj as StartPlayRunRequest, bk as StopAllCandidate, bl as StopAllPlayRunsDryRunResult, bm as StopAllPlayRunsResult, bn as StopAllPlayRunsStopResult, bo as StopAllRunsOptions, bp as ToolExecution, bq as ToolSearchOptions, br as ToolSearchResult, bs as WorkspaceCreateResult, bt as WorkspacesNamespace, bu as defineMonitor, bv as formatPlayBootstrapFinderKinds, bw as formatPlayBootstrapFinderKindsForSentence, bx as formatPlayBootstrapTemplates, by as isPlayBootstrapFinderKind, bz as isPlayBootstrapTemplate, bA as isStopAllPlayRunsDryRunResult } from './client-D6fRwhnE.js';
2
+ import { D as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, a as ToolMetadata, E as ExecutionRecovery, b as ExecutionByKeyResult, P as PlayListItem, c as PlayDetail, d as PlayRunListItem, e as PlayRevisionSummary, f as PublishPlayVersionResult, C as ClearPlayHistoryResult, g as PlayStatus, S as StopPlayRunResult, R as ResolvedConfig } from './client-5zY7LsId.js';
3
+ export { h as BillingCreditPool, i as BillingInvoiceEntry, j as BillingInvoicesResult, k as BillingPaymentMethodSummary, l as BillingRecentUsageEntry, m as BillingSubscriptionCancelResult, n as BillingSubscriptionStatus, o as BillingTopUpReceipt, p as BillingTopUpResult, q as BillingUsageEvent, r as BillingUsageOptions, s as BillingUsageResult, t as ChildRunSummary, u as ClearPlayHistoryRequest, v as CreateNotificationGroupInput, w as CreateNotificationGroupResult, x as CustomerDbQueryResult, y as DEEPLINE_TOOL_CATEGORIES, z as DbNamespace, A as DeeplineClient, F as DeeplineToolCategory, I as IngestionStorageRepairResult, L as LegacyMonitorStatusFilter, G as LiveEventEnvelope, M as MONITOR_JOB_PHASES, H as MONITOR_JOB_RECONCILIATION_STATES, J as MONITOR_JOB_STATES, K as MonitorBatchNamespace, N as MonitorCheckResult, O as MonitorDefinition, Q as MonitorDeleteResult, U as MonitorDependents, V as MonitorDeployResult, W as MonitorDetail, X as MonitorFleetDeactivateOptions, Y as MonitorFleetGetOptions, Z as MonitorFleetReactivateOptions, _ as MonitorFleetResult, $ as MonitorFleetStatus, a0 as MonitorFleetSyncOptions, a1 as MonitorFleetWaitOptions, a2 as MonitorFleetsNamespace, a3 as MonitorJobDeployOptions, a4 as MonitorJobLogsOptions, a5 as MonitorJobPhase, a6 as MonitorJobReconciliationState, a7 as MonitorJobResult, a8 as MonitorJobState, a9 as MonitorJobWaitOptions, aa as MonitorJobsNamespace, ab as MonitorListEntry, ac as MonitorPayload, ad as MonitorReactivateResult, ae as MonitorSpec, af as MonitorState, ag as MonitorStateFilter, ah as MonitorUpdateChangeSummary, ai as MonitorUpdateResult, aj as MonitorsAccessStatus, ak as MonitorsAvailableOptions, al as MonitorsAvailableResult, am as MonitorsListOptions, an as MonitorsListResult, ao as MonitorsNamespace, ap as PLAY_BOOTSTRAP_COMPANY_FIELDS, aq as PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, ar as PLAY_BOOTSTRAP_CONTACT_FIELDS, as as PLAY_BOOTSTRAP_FINDER_KINDS, at as PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, au as PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, av as PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, aw as PLAY_BOOTSTRAP_SOURCE_KINDS, ax as PLAY_BOOTSTRAP_STAGE_KINDS, ay as PLAY_BOOTSTRAP_TEMPLATES, az as PlayActivityObservation, aA as PlayActivityState, aB as PlayActivityTarget, aC as PlayBootstrapEntityKind, aD as PlayBootstrapFinderKind, aE as PlayCostEstimate, aF as PlayCronTriggerConfig, aG as PlayLiveEvent, aH as PlayPath, aI as PlayRunActionPackage, aJ as PlayRunActivityProjection, aK as PlayRunDatasetActions, aL as PlayRunPackage, aM as PlayRunResult, aN as PlayRunStart, aO as PlaySettings, aP as PlaySettingsPatch, aQ as PlaySettingsPathsPage, aR as PlaySettingsResult, aS as PlaySheetRow, aT as PlaySheetRowsResult, aU as PlayTriggerConfigUpdate, aV as PlayTriggerConfigUpdateResult, aW as PlayTriggerConfigView, aX as PlayWebhookAuthConfig, aY as PlayWebhookTriggerConfig, aZ as PlaysActivityResponse, a_ as PlaysListOptions, a$ as PlaysListPage, b0 as PublishPlayVersionRequest, b1 as RerunOptions, b2 as RerunPlayRunResult, b3 as RunChildrenPage, b4 as RunLifecycleStatus, b5 as RunToolReceiptResult, b6 as RunToolReceiptsResponse, b7 as RunsChildrenOptions, b8 as RunsEventPayload, b9 as RunsEventSearchEntry, ba as RunsEventSearchOptions, bb as RunsEventSearchResult, bc as RunsHistoryItem, bd as RunsHistoryOptions, be as RunsHistoryPage, bf as RunsListOptions, bg as RunsListPage, bh as RunsLogsOptions, bi as RunsLogsResult, bj as RunsNamespace, bk as RunsTailOptions, bl as RunsWatchOptions, bm as StartPlayRunRequest, bn as StopAllCandidate, bo as StopAllPlayRunsDryRunResult, bp as StopAllPlayRunsResult, bq as StopAllPlayRunsStopResult, br as StopAllRunsOptions, bs as ToolExecution, bt as ToolSearchOptions, bu as ToolSearchResult, bv as WorkspaceCreateResult, bw as WorkspacesNamespace, bx as defineMonitor, by as formatPlayBootstrapFinderKinds, bz as formatPlayBootstrapFinderKindsForSentence, bA as formatPlayBootstrapTemplates, bB as isPlayBootstrapFinderKind, bC as isPlayBootstrapTemplate, bD as isStopAllPlayRunsDryRunResult } from './client-5zY7LsId.js';
4
4
  import { A as AsyncPlayRunRef$1, i as PlayAuthoringColumnMap, j as PlayAuthoringColumnResolver, k as PlayAuthoringRuntimeContext, l as PlayAuthoringConditionalStepResolver, m as PlayAuthoringCsvInput, n as PlayAuthoringCsvOptions, o as PlayAuthoringDatasetBuilder, p as PlayAuthoringDatasetColumnDefinition, q as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringAsyncCallOptions, y as PlayAuthoringBindings, z as PlayAuthoringCallExecution, B as PlayAuthoringCallOptions, C as PlayAuthoringFetchResponse, D as PlayAuthoringInputContract, E as PlayRunId$1, F as PlayAuthoringStepProgramStep, G as PlayAuthoringRuntimeStepOptions, H as PlaySqlListenerDeclaration, I as PlaySqlListenerEvent, J as PlaySqlListenerOperation, K as PlaySqlQuery, L as PlayAuthoringStepOptions, M as PlayAuthoringStepProgram, N as PlayAuthoringStepProgramResolver, O as PlayAuthoringStepResolver, Q as PlayToolExecutionRequest, R as PlayAuthoringStepProgramOptions, S as DeeplineError, U as ToolExecutionError, V as ToolExecutionErrorOptions } from './compiler-manifest-C1bKB9bY.js';
5
5
  export { W as CtxFetchHttpError, X as DEEPLINE_EXTRACTOR_TARGETS, Y as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, Z as DeeplineEmailStatusGetterValue, _ as DeeplineExtractorTarget, $ as DeeplineGetterValue, a0 as DeeplineGetterValueMap, a1 as JOB_CHANGE_STATUS_VALUES, a2 as JobChangeStatus, a3 as PHONE_STATUS_VALUES, a4 as PhoneStatus, a5 as PlayDataset, a6 as PlayDatasetInput, a7 as PreviousCell, a8 as ProviderTransientError, a9 as ProviderTransientErrorCategory, aa as ProviderUnavailableError, ab as ProviderUnavailableReason, ac as ToolExecutionErrorCategory, ad as ToolExecutionErrorOrigin, ae as ToolExecutionFailureV1, af as ToolExecutionNetworkKind, ag as ToolExecutionNetworkScope, ah as ToolExecutionPublicDetails, ai as ToolResultBilling, aj as getProviderUnavailableReason, ak as isDeeplineExtractorTarget, al as isProviderUnavailable, am as isProviderWaterfallUnavailableError } from './compiler-manifest-C1bKB9bY.js';
6
6
  export { BatchMonitorInput, MonitorInputIssue, MonitorSpec as MonitorInputSpec, lintMonitorBatchInput, lintMonitorSpecTemplate, renderMonitorSpecTemplate } from './monitor-input-contract.js';
@@ -203,16 +203,10 @@ type CsvOptions = PlayAuthoringCsvOptions;
203
203
  */
204
204
  type DeeplinePlayRuntimeContext = PlayAuthoringRuntimeContext;
205
205
  /**
206
- * Handle to a running play execution.
207
- *
208
- * Provides methods to check status, stream logs, wait for completion,
209
- * or cancel the execution.
210
- *
211
- * This handle is the SDK-context equivalent of `deepline plays run` and
212
- * `POST /api/v2/plays/run`: every surface returns a run id first, then exposes
213
- * the completed user output through `PlayJob.get()` or the status endpoint's
214
- * `result` field. Runtime logs are available from `status().progress.logs` and
215
- * are intentionally separate from the returned output object.
206
+ * Handle to a Play execution: inspect status, stream logs, await output, or cancel.
207
+ * Like `deepline plays run` and `POST /api/v2/plays/run`, it returns a run id first.
208
+ * Read completed output through `PlayJob.get()` or the status endpoint's `result` field;
209
+ * runtime logs in `status().progress.logs` are separate from that output.
216
210
  *
217
211
  * @typeParam TOutput - The play's return type
218
212
  *
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.274",
1328
+ version: "0.3.275",
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
@@ -3846,6 +3846,28 @@ async function* watchRunEvents(options) {
3846
3846
  }
3847
3847
  }
3848
3848
 
3849
+ // src/runs/log-cursor.ts
3850
+ var RUN_LOGS_CURSOR_PREFIX = "before:";
3851
+ function encodeRunLogsCursor(beforeSequence) {
3852
+ return `${RUN_LOGS_CURSOR_PREFIX}${beforeSequence}`;
3853
+ }
3854
+ function isRunLogsCursor(value) {
3855
+ return value.startsWith(RUN_LOGS_CURSOR_PREFIX);
3856
+ }
3857
+ function parseRunLogsCursor(value) {
3858
+ const raw = isRunLogsCursor(value) ? value.slice(RUN_LOGS_CURSOR_PREFIX.length) : "";
3859
+ const parsed = /^[1-9]\d*$/.test(raw) ? Number(raw) : NaN;
3860
+ if (!Number.isSafeInteger(parsed)) {
3861
+ throw Object.assign(
3862
+ new Error(
3863
+ `Invalid run log cursor ${JSON.stringify(value)}. Pass the nextCursor value from a previous deepline runs logs result.`
3864
+ ),
3865
+ { exitCode: 2 }
3866
+ );
3867
+ }
3868
+ return parsed;
3869
+ }
3870
+
3849
3871
  // src/types.ts
3850
3872
  function isStopAllPlayRunsDryRunResult(result) {
3851
3873
  return "dryRun" in result && result.dryRun === true;
@@ -4665,6 +4687,7 @@ var DeeplineClient = class _DeeplineClient {
4665
4687
  status: (runId) => this.getRunLifecycleStatus(runId),
4666
4688
  list: (options2) => this.listRuns(options2),
4667
4689
  listPage: (options2) => this.listRunsPage(options2),
4690
+ history: (options2) => this.getRunsHistory(options2),
4668
4691
  watch: (runId, options2) => this.watchRunToTerminal(runId, options2),
4669
4692
  tail: (runId, options2) => this.tailRun(runId, options2),
4670
4693
  logs: (runId, options2) => this.getRunLogs(runId, options2),
@@ -5742,11 +5765,21 @@ var DeeplineClient = class _DeeplineClient {
5742
5765
  if (options?.full === true) {
5743
5766
  params.set("full", "true");
5744
5767
  }
5768
+ if (options?.configuration === true) {
5769
+ params.set("include", "configuration");
5770
+ }
5745
5771
  const query = params.size > 0 ? `?${params.toString()}` : "";
5746
5772
  const response = await this.http.get(
5747
5773
  `/api/v2/runs/${encodeURIComponent(runId)}${query}`,
5748
5774
  { headers: { "x-deepline-run-status": "1" } }
5749
5775
  );
5776
+ if (options?.configuration === true && !Object.hasOwn(response, "contract")) {
5777
+ throw new DeeplineError(
5778
+ "This server does not support recorded configuration reads.",
5779
+ void 0,
5780
+ "RUN_CONFIGURATION_UNAVAILABLE"
5781
+ );
5782
+ }
5750
5783
  const status = normalizePlayStatus(response);
5751
5784
  if (options?.failedLogs !== true || status.status !== "failed") {
5752
5785
  return status;
@@ -5834,6 +5867,33 @@ var DeeplineClient = class _DeeplineClient {
5834
5867
  async listRuns(options) {
5835
5868
  return (await this.listRunsPage(options)).runs;
5836
5869
  }
5870
+ /** The same tenant-scoped run history searched by the dashboard and CLI. */
5871
+ async getRunsHistory(options = {}) {
5872
+ const params = new URLSearchParams();
5873
+ const search = options.search?.trim();
5874
+ if (search && search.length > 200) {
5875
+ throw new Error("Run search must be at most 200 characters.");
5876
+ }
5877
+ if (options.type && options.type !== "all" && !search) {
5878
+ throw new Error("runs.history options.type requires options.search.");
5879
+ }
5880
+ if (search) params.set("search", search);
5881
+ if (search && options.type) params.set("type", options.type);
5882
+ if (options.cursor) params.set("cursor", options.cursor);
5883
+ if (options.orgId) params.set("orgId", options.orgId);
5884
+ if (options.limit !== void 0) {
5885
+ if (!Number.isSafeInteger(options.limit) || options.limit < 1) {
5886
+ throw new Error(
5887
+ "runs.history options.limit must be a positive integer."
5888
+ );
5889
+ }
5890
+ params.set("limit", String(options.limit));
5891
+ }
5892
+ return this.http.get(
5893
+ `/api/v2/dashboard/runs-history?${params.toString()}`,
5894
+ { signal: options.signal }
5895
+ );
5896
+ }
5837
5897
  /** Read one run page without discarding server pagination metadata. */
5838
5898
  async listRunsPage(options) {
5839
5899
  const playName = options.play?.trim();
@@ -5940,6 +6000,13 @@ var DeeplineClient = class _DeeplineClient {
5940
6000
  "INVALID_RUN_LOG_VIEW"
5941
6001
  );
5942
6002
  }
6003
+ if (options?.cursor !== void 0 && options.failed === true) {
6004
+ throw new DeeplineError(
6005
+ "runs.logs cannot combine failed with cursor.",
6006
+ void 0,
6007
+ "INVALID_RUN_LOG_VIEW"
6008
+ );
6009
+ }
5943
6010
  if (options?.failed === true) {
5944
6011
  const requestedLimit = typeof options.limit === "number" && Number.isFinite(options.limit) && options.limit > 0 ? Math.trunc(options.limit) : RUNS_FAILED_LOG_LIMIT;
5945
6012
  const failedLimit = Math.min(RUNS_FAILED_LOG_LIMIT, requestedLimit);
@@ -5965,6 +6032,7 @@ var DeeplineClient = class _DeeplineClient {
5965
6032
  ...page.logsTruncated ? { logsTruncated: true } : {}
5966
6033
  };
5967
6034
  }
6035
+ const beforeSequence = options?.cursor !== void 0 ? parseRunLogsCursor(options.cursor) : null;
5968
6036
  const limit = options?.all ? Number.MAX_SAFE_INTEGER : typeof options?.limit === "number" && Number.isFinite(options.limit) && options.limit > 0 ? Math.trunc(options.limit) : 200;
5969
6037
  const fetchPage = (afterSeq2, pageLimit) => this.http.get(
5970
6038
  `/api/v2/runs/${encodeURIComponent(runId)}/logs?afterSeq=${afterSeq2}&limit=${pageLimit}`,
@@ -5972,24 +6040,33 @@ var DeeplineClient = class _DeeplineClient {
5972
6040
  );
5973
6041
  const probe = await fetchPage(0, 1);
5974
6042
  const lastStoredSeq = probe.lastStoredSeq;
5975
- let afterSeq = options?.all ? 0 : Math.max(0, lastStoredSeq - limit);
6043
+ const oldestStoredSeq = probe.entries[0]?.seq ?? null;
6044
+ const upperSeq = beforeSequence === null ? Number.POSITIVE_INFINITY : Math.min(beforeSequence - 1, lastStoredSeq);
6045
+ const windowEndSeq = Math.min(upperSeq, lastStoredSeq);
6046
+ let afterSeq = options?.all ? 0 : Math.max(0, windowEndSeq - limit);
5976
6047
  const entries = [];
5977
- while (entries.length < limit) {
6048
+ while (entries.length < limit && afterSeq < upperSeq) {
5978
6049
  const page = await fetchPage(
5979
6050
  afterSeq,
5980
- Math.min(RUN_LOGS_PAGE_LIMIT, limit - entries.length)
6051
+ Math.min(
6052
+ RUN_LOGS_PAGE_LIMIT,
6053
+ limit - entries.length,
6054
+ upperSeq - afterSeq
6055
+ )
5981
6056
  );
5982
- if (page.entries.length === 0) {
6057
+ const inWindow = page.entries.filter((entry) => entry.seq <= upperSeq);
6058
+ if (inWindow.length === 0) {
5983
6059
  break;
5984
6060
  }
5985
- entries.push(...page.entries);
5986
- afterSeq = page.entries[page.entries.length - 1].seq;
5987
- if (!page.hasMore) {
6061
+ entries.push(...inWindow);
6062
+ afterSeq = inWindow[inWindow.length - 1].seq;
6063
+ if (!page.hasMore || inWindow.length < page.entries.length) {
5988
6064
  break;
5989
6065
  }
5990
6066
  }
5991
6067
  const firstSequence = entries.length > 0 ? entries[0].seq : null;
5992
6068
  const lastSequence = entries.length > 0 ? entries[entries.length - 1].seq : null;
6069
+ const olderLinesExist = firstSequence !== null && oldestStoredSeq !== null && firstSequence > oldestStoredSeq;
5993
6070
  return {
5994
6071
  runId: probe.runId,
5995
6072
  totalCount: probe.totalLogCount,
@@ -5997,7 +6074,8 @@ var DeeplineClient = class _DeeplineClient {
5997
6074
  firstSequence,
5998
6075
  lastSequence,
5999
6076
  truncated: entries.length < probe.totalLogCount,
6000
- hasMore: lastSequence !== null && lastSequence < lastStoredSeq,
6077
+ hasMore: olderLinesExist,
6078
+ nextCursor: olderLinesExist ? encodeRunLogsCursor(firstSequence) : null,
6001
6079
  entries: entries.map((entry) => entry.line),
6002
6080
  view: options?.all ? "all" : "tail",
6003
6081
  ...probe.logsTruncated ? { logsTruncated: true } : {}