deepline 0.3.313 → 0.3.315

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 (109) 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/types.ts +10 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +50 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/run-event-query.ts +15 -2
  6. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +210 -2
  7. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +226 -14
  8. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +4 -18
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +5 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +94 -14
  11. package/dist/bundling-sources/shared_libs/plays/docflow-binding-owner.ts +61 -11
  12. package/dist/cli/{auth-LNA6WCQA.mjs → auth-OVWOO5NP.mjs} +4 -4
  13. package/dist/cli/auth-P2TTZU36.js +31 -0
  14. package/dist/cli/{billing-GJJUUCOZ.js → billing-SRZL7UOH.js} +70 -70
  15. package/dist/cli/{billing-D37QNIE3.mjs → billing-W3OXKWNE.mjs} +4 -4
  16. package/dist/cli/{chunk-HY2SSFRI.js → chunk-6BJACIVK.js} +1 -1
  17. package/dist/cli/{chunk-BS4GAUMH.mjs → chunk-AO4IWPP7.mjs} +33 -8
  18. package/dist/cli/{chunk-DOI3UBGV.mjs → chunk-AZWQJAQF.mjs} +1 -1
  19. package/dist/cli/{chunk-XFEPRIW7.mjs → chunk-B473QUQU.mjs} +4 -4
  20. package/dist/cli/{chunk-P4N7233B.js → chunk-C5WSTXUB.js} +247 -222
  21. package/dist/cli/{chunk-4UXNEC5C.js → chunk-FGAK6FET.js} +26 -26
  22. package/dist/cli/{chunk-3ZC4PHJ6.mjs → chunk-FTJQO757.mjs} +1 -1
  23. package/dist/cli/{chunk-UQBMMN4U.mjs → chunk-GK67FYMS.mjs} +5 -5
  24. package/dist/cli/{chunk-CSH4PKPJ.mjs → chunk-HNKHMHJ7.mjs} +1 -1
  25. package/dist/cli/{chunk-YZ5PP6TX.mjs → chunk-IGE7EJJY.mjs} +23 -3
  26. package/dist/cli/{chunk-HM2TSTCT.mjs → chunk-JF4O5OMH.mjs} +1 -1
  27. package/dist/cli/{chunk-N2DXWS6W.mjs → chunk-L5TSFCJ6.mjs} +2 -2
  28. package/dist/cli/{chunk-6G7ZYA6E.js → chunk-LOWURQMF.js} +50 -50
  29. package/dist/cli/{chunk-FJUIXWZF.js → chunk-OJP4FCCX.js} +48 -48
  30. package/dist/cli/{chunk-BLMO3JMZ.mjs → chunk-OUIIYFG3.mjs} +2 -2
  31. package/dist/cli/{chunk-MHETTUWR.js → chunk-OYJCNCUW.js} +2 -2
  32. package/dist/cli/{chunk-JG2ZTDZV.js → chunk-PPONZ6IE.js} +15 -15
  33. package/dist/cli/{chunk-QCXDLOGA.mjs → chunk-R3IFZDJL.mjs} +2 -2
  34. package/dist/cli/{chunk-KNGTN7NE.js → chunk-SNFSO2AN.js} +6 -6
  35. package/dist/cli/{chunk-RDUS2EDE.mjs → chunk-TQ3F77AC.mjs} +3 -3
  36. package/dist/cli/{chunk-I4FHFGMA.js → chunk-TQK662WG.js} +60 -60
  37. package/dist/cli/{chunk-OTA5C7DD.mjs → chunk-TZ5KUDPP.mjs} +1 -1
  38. package/dist/cli/{chunk-FSZTWQFK.js → chunk-URVZGYGG.js} +4 -4
  39. package/dist/cli/{chunk-VSAYSOVC.js → chunk-VYK23G2C.js} +222 -202
  40. package/dist/cli/{chunk-GQXEHX5X.js → chunk-Y42UERUY.js} +6 -6
  41. package/dist/cli/{chunk-QQMKX7JW.js → chunk-YL42TF53.js} +6 -6
  42. package/dist/cli/client-CXFPFCIG.js +20 -0
  43. package/dist/cli/{client-6RVRZ4OY.mjs → client-WQ3J5BSH.mjs} +3 -3
  44. package/dist/cli/{csv-SBOHBKEG.mjs → csv-36ARCBNQ.mjs} +3 -3
  45. package/dist/cli/{csv-2UHRG67O.js → csv-CENMEWDH.js} +12 -12
  46. package/dist/cli/{db-VRE7CLIQ.js → db-6DQZG6NB.js} +20 -20
  47. package/dist/cli/{db-TUFTPYEA.mjs → db-JU7XLKQM.mjs} +4 -4
  48. package/dist/cli/{describe-WCBZTSOF.mjs → describe-34ALEEFO.mjs} +8 -8
  49. package/dist/cli/{describe-GS5A2XH4.js → describe-VUD4AFBY.js} +15 -15
  50. package/dist/cli/{executions-ENMOOKWH.js → executions-H2UXS6FP.js} +6 -6
  51. package/dist/cli/{executions-UTN3O372.mjs → executions-H66BMN6N.mjs} +4 -4
  52. package/dist/cli/{feedback-PXBA3AG7.mjs → feedback-Q7LXXLSH.mjs} +3 -3
  53. package/dist/cli/{feedback-BLN6SIRG.js → feedback-YSYFQSAB.js} +6 -6
  54. package/dist/cli/git-SYFCYIFP.js +23 -0
  55. package/dist/cli/{git-YDMIRW3Q.mjs → git-XV43NSWN.mjs} +4 -4
  56. package/dist/cli/index.js +74 -74
  57. package/dist/cli/index.mjs +31 -31
  58. package/dist/cli/{legacy-noops-CWTUWTDB.js → legacy-noops-RGDW6SCA.js} +7 -7
  59. package/dist/cli/{legacy-noops-OVG2SICQ.mjs → legacy-noops-Z2DTZQN3.mjs} +4 -4
  60. package/dist/cli/{monitors-T63OPBTY.js → monitors-I75KZ2BP.js} +85 -85
  61. package/dist/cli/{monitors-ATIDXJA4.mjs → monitors-OFQ56O4S.mjs} +4 -4
  62. package/dist/cli/{org-7RVAPMRN.js → org-75AH6RIB.js} +60 -60
  63. package/dist/cli/{org-NXKNIM3H.mjs → org-ZYMCU6XO.mjs} +4 -4
  64. package/dist/cli/{play-B62OVHD4.mjs → play-BKXM76DV.mjs} +7 -7
  65. package/dist/cli/play-OKXUWPMO.js +152 -0
  66. package/dist/cli/{providers-U7B7JEYY.mjs → providers-GWG2WFIY.mjs} +4 -4
  67. package/dist/cli/{providers-EITVEGXD.js → providers-Z77MM7ID.js} +7 -7
  68. package/dist/cli/{quickstart-VSWTYNJM.mjs → quickstart-BGVIV374.mjs} +3 -3
  69. package/dist/cli/{quickstart-G64F2XRU.js → quickstart-I4RECIQC.js} +5 -5
  70. package/dist/cli/search-3KISUDDT.js +26 -0
  71. package/dist/cli/{search-SKYTFKKF.mjs → search-TIKBP3RE.mjs} +5 -5
  72. package/dist/cli/{secrets-JSFHSCGM.js → secrets-SNGRI4KS.js} +13 -13
  73. package/dist/cli/{secrets-4DNS7KWS.mjs → secrets-YCHKLWKC.mjs} +4 -4
  74. package/dist/cli/{sessions-HB7RQ4XN.mjs → sessions-IRDG6ZRX.mjs} +4 -4
  75. package/dist/cli/{sessions-MLTYPPCG.js → sessions-WXLADGDX.js} +5 -5
  76. package/dist/cli/{settings-3PCKNBPU.js → settings-72J4BVF6.js} +74 -74
  77. package/dist/cli/{settings-BT5WCU65.mjs → settings-KZALJDXW.mjs} +7 -7
  78. package/dist/cli/{setup-EIWDTMCK.mjs → setup-4KCA7ESV.mjs} +6 -6
  79. package/dist/cli/{setup-EYZWTDJI.js → setup-FFB3KLFD.js} +41 -41
  80. package/dist/cli/{skills-AQ3ORN2C.mjs → skills-MQZPYUQ3.mjs} +4 -4
  81. package/dist/cli/skills-XGOK4GRW.js +28 -0
  82. package/dist/cli/tools-LEAJ7EPW.js +38 -0
  83. package/dist/cli/{tools-OFTB2BGP.mjs → tools-M3WKRZ5T.mjs} +6 -6
  84. package/dist/cli/{update-ERQTFSAR.mjs → update-QJMNYGNF.mjs} +6 -6
  85. package/dist/cli/update-ZN6LDUHS.js +28 -0
  86. package/dist/cli/{workflow-6D6NHUH4.js → workflow-35UUOZ5E.js} +15 -15
  87. package/dist/cli/{workflow-SRLWGGBM.mjs → workflow-6T2EUFCN.mjs} +5 -5
  88. package/dist/{client-CtVdLZux.d.mts → client-CvpZsBqt.d.mts} +12 -0
  89. package/dist/{client-OBwghxPC.d.ts → client-Dh_4Ph1R.d.ts} +12 -0
  90. package/dist/index.d.mts +2 -2
  91. package/dist/index.d.ts +2 -2
  92. package/dist/index.js +6 -6
  93. package/dist/index.mjs +3 -3
  94. package/dist/install-integrity.json +76 -76
  95. package/dist/plays/run-request.d.mts +1 -1
  96. package/dist/plays/run-request.d.ts +1 -1
  97. package/dist/release.d.mts +1 -1
  98. package/dist/release.d.ts +1 -1
  99. package/dist/release.js +2 -2
  100. package/dist/release.mjs +1 -1
  101. package/package.json +1 -1
  102. package/dist/cli/auth-56NYRTQK.js +0 -31
  103. package/dist/cli/client-XUTMYJDL.js +0 -20
  104. package/dist/cli/git-26D3VD2I.js +0 -23
  105. package/dist/cli/play-WM3NZVE7.js +0 -152
  106. package/dist/cli/search-TXQJJQWY.js +0 -26
  107. package/dist/cli/skills-73T4BSDE.js +0 -28
  108. package/dist/cli/tools-ZGSOHWBY.js +0 -38
  109. package/dist/cli/update-L4V5TF7I.js +0 -28
@@ -239,9 +239,9 @@ function callSiteExtent(substep: PlayStaticSubstep): DocflowLineExtent | null {
239
239
  * An annotation written in the ENTRY file keeps the existing behavior exactly:
240
240
  * whatever the resolver prefers, no path check. An annotation written in an
241
241
  * imported module is only comparable to a range from that same module — two
242
- * files both have a line 42 — so it picks the substep's own range or its call
243
- * site, whichever was recorded in the annotation's file, and matches nothing
244
- * when neither was.
242
+ * files both have a line 42. Owner extents union only the children in that
243
+ * file, while own-call extents stay local. A call reached through another
244
+ * function remains bounded by its matching caller range.
245
245
  */
246
246
  function extentForBinding(
247
247
  substep: PlayStaticSubstep,
@@ -249,11 +249,34 @@ function extentForBinding(
249
249
  extentOf: DocflowExtentResolver,
250
250
  ): DocflowLineExtent | null {
251
251
  if (!binding.sourcePath) return extentOf(substep);
252
- for (const range of [substep.sourceRange, substep.callSiteRange]) {
253
- if (range?.sourcePath !== binding.sourcePath) continue;
254
- return { startLine: range.startLine, endLine: range.endLine };
252
+ const sourcePath = binding.sourcePath;
253
+ const caller = substep.callSiteRange;
254
+ if (caller?.sourcePath === sourcePath)
255
+ return { startLine: caller.startLine, endLine: caller.endLine };
256
+ if (extentOf !== substepSourceExtent) {
257
+ const own = substep.sourceRange;
258
+ return own?.sourcePath === sourcePath
259
+ ? { startLine: own.startLine, endLine: own.endLine }
260
+ : null;
255
261
  }
256
- return null;
262
+ const ranges: PlayStaticSourceRange[] = [];
263
+ const collect = (candidate: PlayStaticSubstep) => {
264
+ if (candidate.callSiteRange?.sourcePath === sourcePath) {
265
+ ranges.push(candidate.callSiteRange);
266
+ return;
267
+ }
268
+ if (candidate.sourceRange?.sourcePath === sourcePath)
269
+ ranges.push(candidate.sourceRange);
270
+ const nested = (candidate as { steps?: PlayStaticSubstep[] }).steps;
271
+ if (Array.isArray(nested)) for (const step of nested) collect(step);
272
+ };
273
+ collect(substep);
274
+ return ranges.length > 0
275
+ ? {
276
+ startLine: Math.min(...ranges.map((range) => range.startLine)),
277
+ endLine: Math.max(...ranges.map((range) => range.endLine)),
278
+ }
279
+ : null;
257
280
  }
258
281
 
259
282
  function extentContainsLine(
@@ -268,7 +291,10 @@ function extentContainsLine(
268
291
  : null;
269
292
  }
270
293
 
271
- /** Smallest containing extent wins, so a nested construct beats its parent. */
294
+ /**
295
+ * Smallest containing extent wins, so a nested construct beats its parent.
296
+ * Equal extents in a named file cannot distinguish two imported callers.
297
+ */
272
298
  function smallestContaining<TSubstep extends PlayStaticSubstep>(
273
299
  candidates: readonly TSubstep[],
274
300
  binding: PlayDocflowBinding,
@@ -276,6 +302,7 @@ function smallestContaining<TSubstep extends PlayStaticSubstep>(
276
302
  ): TSubstep | null {
277
303
  let best: TSubstep | null = null;
278
304
  let bestSpan = Number.POSITIVE_INFINITY;
305
+ let tied = false;
279
306
  for (const candidate of candidates) {
280
307
  const extent = extentContainsLine(candidate, binding, extentOf);
281
308
  if (!extent) continue;
@@ -283,9 +310,17 @@ function smallestContaining<TSubstep extends PlayStaticSubstep>(
283
310
  if (span < bestSpan) {
284
311
  best = candidate;
285
312
  bestSpan = span;
313
+ tied = false;
314
+ } else if (
315
+ binding.sourcePath &&
316
+ span === bestSpan &&
317
+ best &&
318
+ substepIdentity(candidate) !== substepIdentity(best)
319
+ ) {
320
+ tied = true;
286
321
  }
287
322
  }
288
- return best;
323
+ return tied ? null : best;
289
324
  }
290
325
 
291
326
  /**
@@ -416,7 +451,7 @@ export function docflowBoundToolSubsteps(
416
451
  const roots = docflowOutputRoots(binding);
417
452
  if (roots.length === 0) return [];
418
453
  const matched: DocflowToolSubstep[] = [];
419
- const seen = new Set<string>();
454
+ const seen = new Set<string | DocflowToolSubstep>();
420
455
  // Callers hand over whatever shape they hold — the config model passes the
421
456
  // top-level stages, whose tools sit several levels down inside step suites
422
457
  // and control flow. Flatten here so the answer never depends on that.
@@ -430,7 +465,7 @@ export function docflowBoundToolSubsteps(
430
465
  );
431
466
  if (!paths.includes(binding.sourcePath)) continue;
432
467
  }
433
- const identity = `${substep.toolId}::${substep.paramsSource ?? ''}`;
468
+ const identity = docflowToolCallIdentity(substep) ?? substep;
434
469
  if (seen.has(identity)) continue;
435
470
  seen.add(identity);
436
471
  matched.push(substep);
@@ -438,6 +473,21 @@ export function docflowBoundToolSubsteps(
438
473
  return matched;
439
474
  }
440
475
 
476
+ /** A retained call site, including its imported declaration and caller. */
477
+ export function docflowToolCallIdentity(
478
+ substep: DocflowToolSubstep,
479
+ ): string | null {
480
+ if (!substep.sourceRange && !substep.callSiteRange) return null;
481
+ return JSON.stringify([
482
+ substep.field,
483
+ substep.sourceRange,
484
+ substep.callSiteRange,
485
+ substep.toolId,
486
+ substep.paramsSource,
487
+ substep.inputPrelude,
488
+ ]);
489
+ }
490
+
441
491
  /**
442
492
  * The `ctx.runPlay` or `ctx.runPlayAsync` call a `type:"play"` docflow node
443
493
  * names. Same join as every other binding — symbol first, extent as the fallback
@@ -9,11 +9,11 @@ import {
9
9
  registerAuthCommands,
10
10
  reportSetupCompleted,
11
11
  resolvePendingAuthClaimForResume
12
- } from "./chunk-BLMO3JMZ.mjs";
13
- import "./chunk-CSH4PKPJ.mjs";
14
- import "./chunk-DOI3UBGV.mjs";
12
+ } from "./chunk-OUIIYFG3.mjs";
13
+ import "./chunk-HNKHMHJ7.mjs";
14
+ import "./chunk-AZWQJAQF.mjs";
15
15
  import "./chunk-DLIRSHV6.mjs";
16
- import "./chunk-HM2TSTCT.mjs";
16
+ import "./chunk-JF4O5OMH.mjs";
17
17
  import "./chunk-NXGCO4JB.mjs";
18
18
  import "./chunk-WZYKRD7T.mjs";
19
19
  import "./chunk-KRD6H754.mjs";
@@ -0,0 +1,31 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+ var _chunkOJP4FCCXjs = require('./chunk-OJP4FCCX.js');
13
+ require('./chunk-Y42UERUY.js');
14
+ require('./chunk-URVZGYGG.js');
15
+ require('./chunk-XNYIZMNQ.js');
16
+ require('./chunk-6BJACIVK.js');
17
+ require('./chunk-7P5AA3SN.js');
18
+ require('./chunk-OG64RBAC.js');
19
+ require('./chunk-COGTRVWW.js');
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkOJP4FCCXjs.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkOJP4FCCXjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkOJP4FCCXjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkOJP4FCCXjs.handleRegister; exports.handleStatus = _chunkOJP4FCCXjs.handleStatus; exports.handleWait = _chunkOJP4FCCXjs.handleWait; exports.readPendingAuthClaim = _chunkOJP4FCCXjs.readPendingAuthClaim; exports.registerAuthCommands = _chunkOJP4FCCXjs.registerAuthCommands; exports.reportSetupCompleted = _chunkOJP4FCCXjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkOJP4FCCXjs.resolvePendingAuthClaimForResume;