deepline 0.3.314 → 0.3.316

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 (134) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +12 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/runs/overview.ts +17 -10
  4. package/dist/bundling-sources/sdk/src/types.ts +16 -5
  5. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +217 -488
  6. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +15 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +4 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +13 -4
  9. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/live-events.ts +31 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +444 -51
  12. package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +22 -43
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +4 -3
  14. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +136 -87
  15. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +24 -6
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +56 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-errors.ts +94 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +2 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +5 -2
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +20 -11
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -12
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +140 -9
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +2 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +13 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  26. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +3 -2
  27. package/dist/bundling-sources/shared_libs/plays/docflow-binding-owner.ts +61 -11
  28. package/dist/cli/{auth-GWF55S3N.mjs → auth-JP7ZJ4OI.mjs} +4 -4
  29. package/dist/cli/auth-SPUJ4EXC.js +31 -0
  30. package/dist/cli/{billing-WWOJN7GV.mjs → billing-KG6MC2BC.mjs} +4 -4
  31. package/dist/cli/{billing-2YU6E2IF.js → billing-WZGS32ME.js} +70 -70
  32. package/dist/cli/{chunk-OJ243ZA5.js → chunk-2HKPAZVJ.js} +1 -1
  33. package/dist/cli/{chunk-YVMJTXEG.js → chunk-35YXDTOB.js} +26 -26
  34. package/dist/cli/{chunk-QB5MAFCU.mjs → chunk-46ZOD4PQ.mjs} +1 -1
  35. package/dist/cli/{chunk-CPN2N6EZ.mjs → chunk-6R5ACEWN.mjs} +43 -17
  36. package/dist/cli/{chunk-US4S3E4Y.mjs → chunk-7PZFGB7L.mjs} +1 -1
  37. package/dist/cli/{chunk-3CKNUJVZ.mjs → chunk-AXAPMVUC.mjs} +4 -4
  38. package/dist/cli/{chunk-ENQZV7NR.js → chunk-B6OOVO3A.js} +562 -536
  39. package/dist/cli/{chunk-WDPRE6DU.js → chunk-BOKHMPCZ.js} +48 -48
  40. package/dist/cli/{chunk-VFRZG4OW.js → chunk-C6QGM72M.js} +1 -1
  41. package/dist/cli/{chunk-IZTIBG7A.mjs → chunk-D3NMIACS.mjs} +29 -15
  42. package/dist/cli/{chunk-DR3S76BG.mjs → chunk-DAFGPNVW.mjs} +1 -1
  43. package/dist/cli/{chunk-3K6QD7Z3.mjs → chunk-F2T5UENG.mjs} +1 -1
  44. package/dist/cli/{chunk-VWW6VHQX.js → chunk-G2G67D3L.js} +60 -60
  45. package/dist/cli/{chunk-ODEWOXWW.js → chunk-GHLWDXUB.js} +6 -6
  46. package/dist/cli/{chunk-25SPKKF2.mjs → chunk-IDSDRGKF.mjs} +1 -1
  47. package/dist/cli/{chunk-OUHCJL5B.mjs → chunk-J3ZPMADG.mjs} +1 -1
  48. package/dist/cli/{chunk-MLEJ2FYH.js → chunk-K3BIRBT3.js} +248 -234
  49. package/dist/cli/{chunk-N5V2SBB2.mjs → chunk-KP7W5NO6.mjs} +1 -1
  50. package/dist/cli/{chunk-B5LUKLKH.js → chunk-MCPHK7AF.js} +4 -4
  51. package/dist/cli/{chunk-2Q2IKUL5.mjs → chunk-OB3SYJGU.mjs} +3 -3
  52. package/dist/cli/{chunk-UZTTPEG2.js → chunk-PJERS5VW.js} +6 -6
  53. package/dist/cli/{chunk-VBRO5QCI.js → chunk-RBBSRB56.js} +15 -15
  54. package/dist/cli/{chunk-NG4WDOGN.js → chunk-SRUWVQ66.js} +6 -6
  55. package/dist/cli/{chunk-WTO3ITBC.mjs → chunk-TYSAKSX7.mjs} +2 -2
  56. package/dist/cli/{chunk-HTXZLCSP.mjs → chunk-VC25WFXV.mjs} +2 -2
  57. package/dist/cli/{chunk-3A4LJUX6.mjs → chunk-VDPBQCRQ.mjs} +2 -2
  58. package/dist/cli/{chunk-IALPYID6.js → chunk-XSEMQ4II.js} +3 -3
  59. package/dist/cli/{chunk-JNUHGWB2.js → chunk-YEMOOWZI.js} +50 -50
  60. package/dist/cli/{chunk-JZZT4GAY.mjs → chunk-YNSAVFWL.mjs} +5 -5
  61. package/dist/cli/{chunk-GSRDZD7R.js → chunk-ZNHGAWYI.js} +2 -2
  62. package/dist/cli/client-GMMPQT7B.js +20 -0
  63. package/dist/cli/{client-EYGNDORT.mjs → client-MNPM4ME3.mjs} +3 -3
  64. package/dist/cli/{csv-YOW5JMOH.js → csv-G72FIQWI.js} +12 -12
  65. package/dist/cli/{csv-NZCN7SVV.mjs → csv-ZME7HAPR.mjs} +3 -3
  66. package/dist/cli/{db-HALJV3KY.mjs → db-K2DS4PEY.mjs} +4 -4
  67. package/dist/cli/{db-6BIYLZ6F.js → db-KRBWHSMA.js} +20 -20
  68. package/dist/cli/{describe-KY2ZYGBR.mjs → describe-LXBJP6OP.mjs} +10 -10
  69. package/dist/cli/{describe-WA6R2JSH.js → describe-UKFV376D.js} +17 -17
  70. package/dist/cli/{executions-CBOAN6KI.mjs → executions-2V3AROY6.mjs} +4 -4
  71. package/dist/cli/{executions-NMCTN7XM.js → executions-E66AM4JU.js} +6 -6
  72. package/dist/cli/{feedback-ZZFDSCWS.js → feedback-7C2N7M37.js} +6 -6
  73. package/dist/cli/{feedback-FOMPE3DJ.mjs → feedback-IEPZ2XKZ.mjs} +3 -3
  74. package/dist/cli/{git-YQR2NBCO.mjs → git-AR5KGN4O.mjs} +4 -4
  75. package/dist/cli/git-EXYB66IH.js +23 -0
  76. package/dist/cli/index.js +171 -98
  77. package/dist/cli/index.mjs +114 -41
  78. package/dist/cli/{legacy-noops-XH2TFFI6.js → legacy-noops-A2SH45P4.js} +7 -7
  79. package/dist/cli/{legacy-noops-KMU6P3K4.mjs → legacy-noops-LC2EGAZU.mjs} +4 -4
  80. package/dist/cli/{monitors-2ONK5L3I.mjs → monitors-5YPW3IZQ.mjs} +4 -4
  81. package/dist/cli/{monitors-5M3BZ5OR.js → monitors-IZBUPKPW.js} +85 -85
  82. package/dist/cli/{org-LR5BMCGL.mjs → org-2OMYI5KJ.mjs} +4 -4
  83. package/dist/cli/{org-6MKULUZI.js → org-L42SQ65U.js} +60 -60
  84. package/dist/cli/play-CQI3IDDN.js +152 -0
  85. package/dist/cli/{play-4NOSD7DW.mjs → play-UPCBLAOH.mjs} +9 -9
  86. package/dist/cli/{providers-UFJD3VKF.js → providers-GGNDWUKB.js} +7 -7
  87. package/dist/cli/{providers-UBGIKGCA.mjs → providers-VE2RM56M.mjs} +4 -4
  88. package/dist/cli/{quickstart-KQZHZE6C.js → quickstart-4CZHURUX.js} +5 -5
  89. package/dist/cli/{quickstart-KDUKQRUH.mjs → quickstart-HSJ7FU7Z.mjs} +3 -3
  90. package/dist/cli/{search-4BVOOS5Q.mjs → search-MWBM3I2L.mjs} +5 -5
  91. package/dist/cli/search-PD5FBCUN.js +26 -0
  92. package/dist/cli/{secrets-TVXZ3WJ3.js → secrets-CWBPGDZV.js} +13 -13
  93. package/dist/cli/{secrets-YGV23N3N.mjs → secrets-W5DQYKGU.mjs} +4 -4
  94. package/dist/cli/{sessions-RWIQWDFD.js → sessions-EDCFU6P2.js} +5 -5
  95. package/dist/cli/{sessions-G7ROUW35.mjs → sessions-Q42GUYTF.mjs} +4 -4
  96. package/dist/cli/{settings-TG3E2NR7.js → settings-OKRENZGX.js} +74 -74
  97. package/dist/cli/{settings-QZEVGCXE.mjs → settings-SO56AJPQ.mjs} +7 -7
  98. package/dist/cli/{setup-3KDUNEEE.js → setup-7PLHLNLS.js} +41 -41
  99. package/dist/cli/{setup-HUXINKOH.mjs → setup-OTYMF5CZ.mjs} +6 -6
  100. package/dist/cli/{skills-LHU3DB7J.mjs → skills-4UFS4FXP.mjs} +4 -4
  101. package/dist/cli/skills-IP7IW7EQ.js +28 -0
  102. package/dist/cli/{tools-J5WQ33BB.mjs → tools-6FV543YV.mjs} +6 -6
  103. package/dist/cli/tools-A2YNR6PI.js +38 -0
  104. package/dist/cli/{update-T6744RM7.mjs → update-6POGDXYW.mjs} +6 -6
  105. package/dist/cli/update-QXSGKLJG.js +28 -0
  106. package/dist/cli/{workflow-CG2B65HD.mjs → workflow-HVZSFWYR.mjs} +5 -5
  107. package/dist/cli/{workflow-YF5SQJLG.js → workflow-RB4POZP5.js} +15 -15
  108. package/dist/{client-OBwghxPC.d.ts → client-BV68GMPo.d.ts} +19 -6
  109. package/dist/{client-CtVdLZux.d.mts → client-D9ACjiRC.d.mts} +19 -6
  110. package/dist/{compiler-manifest-wOKNiXpa.d.mts → compiler-manifest-BXcZ4P4W.d.mts} +2 -2
  111. package/dist/{compiler-manifest-wOKNiXpa.d.ts → compiler-manifest-BXcZ4P4W.d.ts} +2 -2
  112. package/dist/index.d.mts +4 -4
  113. package/dist/index.d.ts +4 -4
  114. package/dist/index.js +7 -7
  115. package/dist/index.mjs +4 -4
  116. package/dist/install-integrity.json +82 -82
  117. package/dist/plays/bundle-play-file.d.mts +2 -2
  118. package/dist/plays/bundle-play-file.d.ts +2 -2
  119. package/dist/plays/bundle-play-file.mjs +2 -2
  120. package/dist/plays/run-request.d.mts +2 -2
  121. package/dist/plays/run-request.d.ts +2 -2
  122. package/dist/release.d.mts +1 -1
  123. package/dist/release.d.ts +1 -1
  124. package/dist/release.js +2 -2
  125. package/dist/release.mjs +1 -1
  126. package/package.json +1 -1
  127. package/dist/cli/auth-QX2L4LPM.js +0 -31
  128. package/dist/cli/client-Z4VFNTUB.js +0 -20
  129. package/dist/cli/git-AC2ATBDK.js +0 -23
  130. package/dist/cli/play-U3CZ4F2W.js +0 -152
  131. package/dist/cli/search-Y7OTFRCI.js +0 -26
  132. package/dist/cli/skills-CO5YUWBK.js +0 -28
  133. package/dist/cli/tools-MWPT5X47.js +0 -38
  134. package/dist/cli/update-VVIJW7ZJ.js +0 -28
@@ -654,6 +654,8 @@ function searchParams(options: ToolSearchOptions): URLSearchParams {
654
654
  export type RunsListOptions = {
655
655
  play?: string;
656
656
  status?: string;
657
+ /** Mermaid node id; returns that node's latest settled input/output per run. Requires play. */
658
+ node?: string;
657
659
  limit?: number;
658
660
  /** Zero-based page offset. Requires `play` because status-only inventory is not paginated. */
659
661
  offset?: number;
@@ -4599,6 +4601,16 @@ export class DeeplineClient {
4599
4601
  if (status) {
4600
4602
  params.set('status', status);
4601
4603
  }
4604
+ const node = options.node?.trim();
4605
+ if (node) {
4606
+ if (!playName)
4607
+ throw new Error('runs.list options.node requires options.play.');
4608
+ if (node.length > 300)
4609
+ throw new Error(
4610
+ 'runs.list options.node must be at most 300 characters.',
4611
+ );
4612
+ params.set('node', node);
4613
+ }
4602
4614
  if (typeof options.limit === 'number' && Number.isFinite(options.limit)) {
4603
4615
  params.set('limit', String(Math.max(1, Math.floor(options.limit))));
4604
4616
  }
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
200
200
  // getters keep their established compatibility behavior.
201
201
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
202
202
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
203
- version: '0.3.314',
203
+ version: '0.3.316',
204
204
  updateSummary:
205
205
  '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.',
206
206
  packageCapabilities: {
@@ -209,7 +209,11 @@ function stepExecution(
209
209
 
210
210
  /** A read-only overview of recorded run facts, never a complete row export. */
211
211
  export function buildRunOverview(status: PlayStatus, fullStatus?: PlayStatus) {
212
- const pkg = status.package;
212
+ // Full inspection can observe a later lifecycle transition than the compact
213
+ // read. Present its package and status together; older full servers without
214
+ // a package retain the existing compact inspection path.
215
+ const inspectedStatus = fullStatus?.package ? fullStatus : status;
216
+ const pkg = inspectedStatus.package;
213
217
  if (!pkg) {
214
218
  throw new Error(
215
219
  'This server did not return a run package; use runs get --full --json.',
@@ -218,7 +222,10 @@ export function buildRunOverview(status: PlayStatus, fullStatus?: PlayStatus) {
218
222
  const outputs = Object.entries(pkg.outputs);
219
223
  const resultPackage = fullStatus?.package?.resultState
220
224
  ? fullStatus.package
221
- : pkg;
225
+ : (status.package ?? pkg);
226
+ // The CLI requests this log window with its compact read; full inspection
227
+ // may omit that independent query option.
228
+ const failedLogs = inspectedStatus.failedLogs ?? status.failedLogs;
222
229
  const warnings = [...(pkg.warnings ?? [])];
223
230
  const { outcome: _outcome, ...run } = pkg.run;
224
231
  const steps = pkg.steps.map((step) => {
@@ -373,13 +380,13 @@ export function buildRunOverview(status: PlayStatus, fullStatus?: PlayStatus) {
373
380
  return {
374
381
  schemaVersion: pkg.schemaVersion,
375
382
  kind: 'run_overview',
376
- ...((status.runStatus ?? pkg.runStatus)
377
- ? { runStatus: status.runStatus ?? pkg.runStatus }
383
+ ...((inspectedStatus.runStatus ?? pkg.runStatus)
384
+ ? { runStatus: inspectedStatus.runStatus ?? pkg.runStatus }
378
385
  : {}),
379
386
  run: {
380
387
  ...run,
381
- ...(status.revisionId && !run.revisionId
382
- ? { revisionId: status.revisionId }
388
+ ...(inspectedStatus.revisionId && !run.revisionId
389
+ ? { revisionId: inspectedStatus.revisionId }
383
390
  : {}),
384
391
  },
385
392
  steps,
@@ -406,23 +413,23 @@ export function buildRunOverview(status: PlayStatus, fullStatus?: PlayStatus) {
406
413
  },
407
414
  errorDetails: {
408
415
  coverage: 'unknown',
409
- reported: record(pkg)?.errors ?? record(status)?.errors ?? [],
416
+ reported: record(pkg)?.errors ?? record(inspectedStatus)?.errors ?? [],
410
417
  ...(pkg.run.error ? { run: pkg.run.error } : {}),
411
418
  steps: steps
412
419
  .filter((step) => step.error)
413
420
  .map((step) => ({ stepId: step.id, message: step.error })),
414
421
  ...(pkg.next?.logs ? { getMore: 'actions.getLogsCmd' } : {}),
415
422
  },
416
- rowOutcomes: status.rowOutcomes,
423
+ rowOutcomes: inspectedStatus.rowOutcomes ?? pkg.rowOutcomes,
417
424
  warnings,
418
- ...(status.failedLogs ? { failedLogs: status.failedLogs } : {}),
425
+ ...(failedLogs ? { failedLogs } : {}),
419
426
  datasets,
420
427
  ...(Object.hasOwn(resultPackage, 'result')
421
428
  ? { result: resultPackage.result }
422
429
  : {}),
423
430
  resultState: resultPackage.resultState ?? 'unavailable',
424
431
  actions: {
425
- ...lifecycleActions(status, pkg.run.id, pkg.run.status),
432
+ ...lifecycleActions(inspectedStatus, pkg.run.id, pkg.run.status),
426
433
  ...actions(pkg.next, {
427
434
  inspect: 'getRunCmd',
428
435
  full: 'getFullRunCmd',
@@ -793,11 +793,8 @@ export type PlayRunDatasetActions = {
793
793
  };
794
794
 
795
795
  /**
796
- * Compact canonical package for an inspected play run.
797
- *
798
- * This object is designed for SDK/CLI/API consumers that need stable run
799
- * metadata, output handles, and follow-up actions without reading dashboard
800
- * internals.
796
+ * Compact canonical run package for SDK/CLI consumers: stable metadata,
797
+ * output handles and follow-up actions without dashboard internals.
801
798
  */
802
799
  export interface PlayRunPackage {
803
800
  /** Package schema version. */
@@ -818,6 +815,8 @@ export interface PlayRunPackage {
818
815
  overview?: RunLifecycleStatus;
819
816
  /** Optional bounded live evidence from the existing run status projection. */
820
817
  runStatus?: RunGetStatus;
818
+ /** Terminal scalar row outcomes shared with full status and watch snapshots. */
819
+ rowOutcomes?: PlayStatus['rowOutcomes'];
821
820
  /** Run identity, status, timing, and dashboard metadata. */
822
821
  run: {
823
822
  id: string;
@@ -969,6 +968,8 @@ export interface PlayStatus {
969
968
  failedRows: number;
970
969
  totalRows: number;
971
970
  hasRowFailures: boolean;
971
+ /** Terminal rows omitted from this run's latest view because a newer write won. */
972
+ supersededRows?: number;
972
973
  };
973
974
  /** Compact typed run package returned by current run status endpoints. */
974
975
  package?: PlayRunPackage;
@@ -1314,6 +1315,16 @@ export interface PlayRunListItem {
1314
1315
  billingTotalCredits?: number;
1315
1316
  /** Configured per-run Deepline credit cap, when available. */
1316
1317
  billingMaxCreditsPerRun?: number | null;
1318
+ /** Latest settled Mermaid-node invocation when `runs.list` is filtered by `node`. */
1319
+ nodeObservation?: {
1320
+ attempt: number;
1321
+ status: 'completed' | 'failed';
1322
+ inputs: Record<string, unknown> | null;
1323
+ outputs: Record<string, unknown> | null;
1324
+ error: string | null;
1325
+ inputsTruncated: boolean;
1326
+ outputsTruncated: boolean;
1327
+ } | null;
1317
1328
  /** Metadata attached to the workflow. */
1318
1329
  memo: {
1319
1330
  /** Organization that owns this run. */