deepline 0.3.454 → 0.3.455

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 (110) hide show
  1. package/dist/bundling-sources/sdk/src/http.ts +17 -3
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/tool-calls.ts +13 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +2 -0
  5. package/dist/cli/{auth-YNPT3IER.mjs → auth-BGPCPVHW.mjs} +4 -4
  6. package/dist/cli/auth-SRR4DW75.js +40 -0
  7. package/dist/cli/{billing-TLRVAOXB.mjs → billing-6BLEXHCR.mjs} +4 -4
  8. package/dist/cli/{billing-VXIIND6T.js → billing-FCC2YOKB.js} +73 -73
  9. package/dist/cli/{chunk-VXBEHDM6.js → chunk-2R7JD2NY.js} +8 -6
  10. package/dist/cli/{chunk-KPPL2WNH.js → chunk-2SN2EEQW.js} +16 -16
  11. package/dist/cli/{chunk-THJ7ORNM.mjs → chunk-2VHR5DXQ.mjs} +3 -3
  12. package/dist/cli/{chunk-5OQMUDPM.mjs → chunk-3E4WSS35.mjs} +1 -1
  13. package/dist/cli/{chunk-5GJH2BYN.mjs → chunk-3RQY2OG7.mjs} +2 -2
  14. package/dist/cli/{chunk-EXWKHMMP.mjs → chunk-4BZFRLKU.mjs} +5 -5
  15. package/dist/cli/{chunk-2I7GE7KB.mjs → chunk-4Z3X5CWI.mjs} +1 -1
  16. package/dist/cli/{chunk-WONLZMDF.js → chunk-6F7TD4M4.js} +6 -6
  17. package/dist/cli/{chunk-7V3OKSB2.js → chunk-6TOMXZX3.js} +1 -1
  18. package/dist/cli/{chunk-YETNOEAZ.mjs → chunk-B7K3QD5W.mjs} +10 -9
  19. package/dist/cli/{chunk-S2PO3X5R.js → chunk-BCB2QNG4.js} +2 -2
  20. package/dist/cli/{chunk-BUYQU7TB.js → chunk-CZREA5NE.js} +8 -8
  21. package/dist/cli/{chunk-LWYOJG66.mjs → chunk-DPTEABFU.mjs} +1 -1
  22. package/dist/cli/{chunk-7ICOQRW5.js → chunk-EXZOUJCD.js} +3 -3
  23. package/dist/cli/{chunk-DCZSJON4.mjs → chunk-FCQ52RUB.mjs} +2 -2
  24. package/dist/cli/{chunk-U72KDMYJ.mjs → chunk-IUSGWMGK.mjs} +2 -2
  25. package/dist/cli/{chunk-SJH66N73.js → chunk-J7WYWQF4.js} +6 -6
  26. package/dist/cli/{chunk-VHGGHRGY.js → chunk-LQH2KJ53.js} +93 -92
  27. package/dist/cli/{chunk-TECW24CR.mjs → chunk-LRA5YJVV.mjs} +5 -3
  28. package/dist/cli/{chunk-FKGXZXRP.js → chunk-MCMLQ7GD.js} +8 -8
  29. package/dist/cli/{chunk-YPYR4ACF.js → chunk-MFKTYIBJ.js} +51 -51
  30. package/dist/cli/{chunk-YXCLG3KB.mjs → chunk-PQ4JU2MV.mjs} +4 -2
  31. package/dist/cli/{chunk-LVHRP7XM.mjs → chunk-R5VMRVRN.mjs} +4 -4
  32. package/dist/cli/{chunk-P5IQ6LIK.js → chunk-RQMEYYN4.js} +35 -35
  33. package/dist/cli/{chunk-RDAUQGPG.mjs → chunk-RYGDM5BG.mjs} +1 -1
  34. package/dist/cli/{chunk-QLMQ2NAQ.js → chunk-SMZUU4NY.js} +2 -2
  35. package/dist/cli/{chunk-33FEF4RH.js → chunk-UVJLG5KD.js} +50 -50
  36. package/dist/cli/{chunk-CPXT4KPC.mjs → chunk-VIGEE67Z.mjs} +3 -3
  37. package/dist/cli/{chunk-IJ5WCZ32.js → chunk-VMGTYM3A.js} +20 -20
  38. package/dist/cli/{chunk-Z5PQSTYX.js → chunk-W3DIXRDT.js} +241 -239
  39. package/dist/cli/{chunk-UT6W675P.mjs → chunk-WBULEVM4.mjs} +1 -1
  40. package/dist/cli/{chunk-G6ZOZQXT.mjs → chunk-WVGPAP7A.mjs} +3 -3
  41. package/dist/cli/{chunk-27NNEBIS.mjs → chunk-YIFCV77L.mjs} +2 -2
  42. package/dist/cli/{chunk-6JY2NGJN.js → chunk-YKEWDVZC.js} +26 -26
  43. package/dist/cli/{csv-I4CAAV6A.mjs → csv-27T3L4RC.mjs} +3 -3
  44. package/dist/cli/{csv-BSKJR3CR.js → csv-TEAA2YV5.js} +12 -12
  45. package/dist/cli/{db-RA3IL6MC.js → db-J3PPU7GX.js} +25 -25
  46. package/dist/cli/{db-EQP24K3B.mjs → db-N3NRYYI4.mjs} +4 -4
  47. package/dist/cli/{describe-62KPTIFH.js → describe-PX7XBLZF.js} +17 -17
  48. package/dist/cli/{describe-EZDVJDPQ.mjs → describe-SJBCCTR7.mjs} +13 -13
  49. package/dist/cli/describe-core.d.mts +1 -1
  50. package/dist/cli/describe-core.d.ts +1 -1
  51. package/dist/cli/{executions-2HBBXRPM.js → executions-WXIL4C5M.js} +6 -6
  52. package/dist/cli/{executions-W5KR56KP.mjs → executions-XN376RR4.mjs} +4 -4
  53. package/dist/cli/{feedback-6UTOLSFP.mjs → feedback-KHJXJ2K7.mjs} +3 -3
  54. package/dist/cli/{feedback-CVYS7ZPV.js → feedback-LG5NWE3R.js} +7 -7
  55. package/dist/cli/{git-JXH64LI4.mjs → git-726A5HHA.mjs} +4 -4
  56. package/dist/cli/git-PXYOFDQH.js +24 -0
  57. package/dist/cli/index.js +132 -132
  58. package/dist/cli/index.mjs +37 -37
  59. package/dist/cli/{legacy-noops-5XTXIPU2.js → legacy-noops-QI6VN34P.js} +7 -7
  60. package/dist/cli/{legacy-noops-NYMLGQNX.mjs → legacy-noops-V4WS63SD.mjs} +4 -4
  61. package/dist/cli/{monitors-CEU6SP2B.mjs → monitors-AAWRYPHY.mjs} +5 -5
  62. package/dist/cli/{monitors-J6HAQLX2.js → monitors-ICQ2Q4XT.js} +89 -89
  63. package/dist/cli/{org-CYE3DCIT.js → org-5JV6KYY2.js} +66 -66
  64. package/dist/cli/{org-RRKAJM5V.mjs → org-7VJKBTZX.mjs} +4 -4
  65. package/dist/cli/{play-PXISXZ2P.mjs → play-2D6ZIJEV.mjs} +11 -11
  66. package/dist/cli/{play-NJDW74YH.js → play-HDI2MLJL.js} +284 -284
  67. package/dist/cli/{providers-JE3MUBYK.js → providers-GIE2W4ZG.js} +7 -7
  68. package/dist/cli/{providers-6QGGDOWK.mjs → providers-KSKVBQFP.mjs} +4 -4
  69. package/dist/cli/{quickstart-MKJ7TYQZ.mjs → quickstart-7OGLDF3M.mjs} +3 -3
  70. package/dist/cli/{quickstart-AQBBOFQL.js → quickstart-JKNKNDXG.js} +5 -5
  71. package/dist/cli/{search-6PKFZ2JD.mjs → search-CPKXOGV4.mjs} +5 -5
  72. package/dist/cli/search-LOWDQS5X.js +30 -0
  73. package/dist/cli/{secrets-IKGJYESD.js → secrets-LFQXTVIE.js} +13 -13
  74. package/dist/cli/{secrets-QBWRVZCT.mjs → secrets-QHGLI7O6.mjs} +4 -4
  75. package/dist/cli/{sessions-462I5YEQ.js → sessions-HVMTS7N5.js} +5 -5
  76. package/dist/cli/{sessions-SVYTBNRJ.mjs → sessions-M4OT6NPP.mjs} +4 -4
  77. package/dist/cli/{settings-WHLTLPXZ.js → settings-42WLEHAZ.js} +76 -76
  78. package/dist/cli/{settings-FH4XZ7FE.mjs → settings-BJBOMHL2.mjs} +9 -9
  79. package/dist/cli/{setup-IKTCP3QB.js → setup-6TZ4L5LT.js} +43 -43
  80. package/dist/cli/{setup-ISCNCB4W.mjs → setup-ILUF7GCP.mjs} +8 -8
  81. package/dist/cli/{skills-HITZS5EJ.mjs → skills-7RIWQDD6.mjs} +6 -6
  82. package/dist/cli/skills-I5OWZZ2Z.js +30 -0
  83. package/dist/cli/{tools-SQUTVLPO.mjs → tools-J3VDLDF2.mjs} +13 -13
  84. package/dist/cli/tools-Y4SPWXFJ.js +45 -0
  85. package/dist/cli/{update-AFYEREBX.mjs → update-GMXJF4WT.mjs} +8 -8
  86. package/dist/cli/update-HQ5WT3G6.js +32 -0
  87. package/dist/cli/{workflow-AAOOROIR.js → workflow-LVVK2N3T.js} +15 -15
  88. package/dist/cli/{workflow-VBCZPKVF.mjs → workflow-W7NQS26K.mjs} +5 -5
  89. package/dist/{client-Ct6OBj9Y.d.mts → client-BbU5_j7n.d.mts} +7 -0
  90. package/dist/{client-BV7tC6oq.d.ts → client-CYqG23K1.d.ts} +7 -0
  91. package/dist/index.d.mts +2 -2
  92. package/dist/index.d.ts +2 -2
  93. package/dist/index.js +6 -6
  94. package/dist/index.mjs +3 -3
  95. package/dist/install-integrity.json +82 -82
  96. package/dist/plays/play-description.d.mts +1 -1
  97. package/dist/plays/play-description.d.ts +1 -1
  98. package/dist/plays/run-request.d.mts +1 -1
  99. package/dist/plays/run-request.d.ts +1 -1
  100. package/dist/release.d.mts +1 -1
  101. package/dist/release.d.ts +1 -1
  102. package/dist/release.js +2 -2
  103. package/dist/release.mjs +1 -1
  104. package/package.json +1 -1
  105. package/dist/cli/auth-GUZWKNXM.js +0 -40
  106. package/dist/cli/git-U6FMVAAM.js +0 -24
  107. package/dist/cli/search-EJGRNQQK.js +0 -30
  108. package/dist/cli/skills-LC2YKUSO.js +0 -30
  109. package/dist/cli/tools-Y55OXE72.js +0 -45
  110. package/dist/cli/update-Q3I6MSEQ.js +0 -32
@@ -80,8 +80,16 @@ interface RequestOptions {
80
80
  * most mutating API calls must fail loudly after the first server response.
81
81
  */
82
82
  retryApiErrors?: boolean;
83
- /** Only explicit server-authorized responses may retry; transport failures never retry. */
83
+ /**
84
+ * Only explicit server-authorized responses may retry; transport failures
85
+ * never retry unless `retryAmbiguousDelivery` is also set.
86
+ */
84
87
  retryFromExecutePolicy?: boolean;
88
+ /**
89
+ * The server declared this tool safe to resend after a timeout or lost
90
+ * response, so those failures retry and stay retryable when exhausted.
91
+ */
92
+ retryAmbiguousDelivery?: boolean;
85
93
  /** Retry budget enabled only by an explicit safe execute-policy response. */
86
94
  executePolicyMaxRetries?: number;
87
95
  /** Per-request retry override. Use 0 for possibly delivered mutating calls. */
@@ -707,7 +715,12 @@ export class HttpClient {
707
715
  timeoutMs,
708
716
  timedOut: requestTimedOut,
709
717
  });
710
- if (options?.retryFromExecutePolicy) break requestAttempts;
718
+ if (
719
+ options?.retryFromExecutePolicy &&
720
+ options.retryAmbiguousDelivery !== true
721
+ ) {
722
+ break requestAttempts;
723
+ }
711
724
  } finally {
712
725
  clearTimeout(timeoutId);
713
726
  options?.signal?.removeEventListener('abort', abortRequest);
@@ -753,7 +766,7 @@ export class HttpClient {
753
766
  category: 'network',
754
767
  // A direct client timeout has ambiguous delivery. Fail closed unless
755
768
  // the server returns the authoritative action delivery contract.
756
- retryable: false,
769
+ retryable: options.retryAmbiguousDelivery === true,
757
770
  statusCode: null,
758
771
  requestId: null,
759
772
  retryAfterMs: null,
@@ -934,6 +947,7 @@ export class HttpClient {
934
947
  RequestOptions,
935
948
  | 'retryApiErrors'
936
949
  | 'retryFromExecutePolicy'
950
+ | 'retryAmbiguousDelivery'
937
951
  | 'executePolicyMaxRetries'
938
952
  | 'timeout'
939
953
  | 'signal'
@@ -205,7 +205,7 @@ export const SDK_RELEASE = {
205
205
  // getters keep their established compatibility behavior.
206
206
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
207
207
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
208
- version: '0.3.454',
208
+ version: '0.3.455',
209
209
  updateSummary: {
210
210
  introducedIn: '0.3.90',
211
211
  summary:
@@ -130,6 +130,11 @@ export type ExecuteToolRawOptions = {
130
130
  maxRetries?: number;
131
131
  /** Retry transient HTTP API responses when the caller has confirmed safety. */
132
132
  retryApiErrors?: boolean;
133
+ /**
134
+ * Resend after a timeout or lost response. Pass only for a tool whose
135
+ * metadata declares `retrySafeAmbiguousDelivery`. Needs `atomicToolOnly`.
136
+ */
137
+ retryAmbiguousDelivery?: boolean;
133
138
  /** Reuse this stable key to recover or retry an ambiguous execution. */
134
139
  idempotencyKey?: string;
135
140
  /** Generate a key and enable recoverable execution before dispatch. */
@@ -457,6 +462,10 @@ export class ToolCalls {
457
462
  const legacyEndpoint = `/api/v2/integrations/${encodeURIComponent(toolId)}/execute`;
458
463
  let useLegacyEndpoint = idempotencyKey === undefined;
459
464
  const atomicToolOnly = options?.atomicToolOnly === true;
465
+ const retryAmbiguousDelivery =
466
+ atomicToolOnly &&
467
+ !idempotencyKey &&
468
+ options?.retryAmbiguousDelivery === true;
460
469
  const dispatchRequest = async (
461
470
  requestTimeoutMs: number | undefined,
462
471
  ): Promise<ToolExecution<TData, TMeta>> => {
@@ -476,7 +485,9 @@ export class ToolCalls {
476
485
  headers,
477
486
  {
478
487
  timeout: requestTimeoutMs,
479
- maxRetries: idempotencyKey ? 0 : (options?.maxRetries ?? 0),
488
+ maxRetries: idempotencyKey
489
+ ? 0
490
+ : (options?.maxRetries ?? (retryAmbiguousDelivery ? 2 : 0)),
480
491
  ...(atomicToolOnly &&
481
492
  !idempotencyKey &&
482
493
  options?.maxRetries === undefined
@@ -484,6 +495,7 @@ export class ToolCalls {
484
495
  : {}),
485
496
  retryApiErrors: atomicToolOnly || options?.retryApiErrors === true,
486
497
  retryFromExecutePolicy: atomicToolOnly,
498
+ retryAmbiguousDelivery,
487
499
  exactUrlOnly: true,
488
500
  toolId,
489
501
  idempotencyKey,
@@ -434,6 +434,8 @@ export type ToolExecutionMetadata = {
434
434
  sourceOperation: string;
435
435
  effectiveOperation: string;
436
436
  retrySafeTransientHttp?: true;
437
+ /** A client timeout or lost response may be resent without a second effect or charge. */
438
+ retrySafeAmbiguousDelivery?: true;
437
439
  batch: {
438
440
  batchOperation: string | null;
439
441
  maxBatchSize: number;
@@ -13,13 +13,13 @@ import {
13
13
  reportSetupCompleted,
14
14
  resolvePendingAuthClaimForResume,
15
15
  statusBannerLine
16
- } from "./chunk-DCZSJON4.mjs";
17
- import "./chunk-RDAUQGPG.mjs";
18
- import "./chunk-TECW24CR.mjs";
16
+ } from "./chunk-FCQ52RUB.mjs";
17
+ import "./chunk-RYGDM5BG.mjs";
18
+ import "./chunk-LRA5YJVV.mjs";
19
19
  import "./chunk-4QF2K7TM.mjs";
20
20
  import "./chunk-DLIRSHV6.mjs";
21
21
  import "./chunk-HBL4PM5Q.mjs";
22
- import "./chunk-LWYOJG66.mjs";
22
+ import "./chunk-DPTEABFU.mjs";
23
23
  import "./chunk-WZYKRD7T.mjs";
24
24
  import "./chunk-KRD6H754.mjs";
25
25
  export {
@@ -0,0 +1,40 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+ var _chunkUVJLG5KDjs = require('./chunk-UVJLG5KD.js');
17
+ require('./chunk-J7WYWQF4.js');
18
+ require('./chunk-2R7JD2NY.js');
19
+ require('./chunk-ALJJRZNJ.js');
20
+ require('./chunk-XNYIZMNQ.js');
21
+ require('./chunk-DIAWYWT5.js');
22
+ require('./chunk-6TOMXZX3.js');
23
+ require('./chunk-OG64RBAC.js');
24
+ require('./chunk-COGTRVWW.js');
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkUVJLG5KDjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkUVJLG5KDjs.authStatusLine; exports.clearPendingClaim = _chunkUVJLG5KDjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkUVJLG5KDjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkUVJLG5KDjs.handleRegister; exports.handleStatus = _chunkUVJLG5KDjs.handleStatus; exports.handleWait = _chunkUVJLG5KDjs.handleWait; exports.httpJson = _chunkUVJLG5KDjs.httpJson; exports.readPendingAuthClaim = _chunkUVJLG5KDjs.readPendingAuthClaim; exports.readStatusBanner = _chunkUVJLG5KDjs.readStatusBanner; exports.registerAuthCommands = _chunkUVJLG5KDjs.registerAuthCommands; exports.reportSetupCompleted = _chunkUVJLG5KDjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkUVJLG5KDjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkUVJLG5KDjs.statusBannerLine;
@@ -2,7 +2,7 @@ import {
2
2
  DeeplineClient,
3
3
  iterateCursorPages,
4
4
  requireBillingIdempotencyKey
5
- } from "./chunk-YXCLG3KB.mjs";
5
+ } from "./chunk-PQ4JU2MV.mjs";
6
6
  import "./chunk-L2VKAASU.mjs";
7
7
  import "./chunk-FAG4DFUC.mjs";
8
8
  import "./chunk-EIMG75BT.mjs";
@@ -13,8 +13,8 @@ import {
13
13
  openInBrowser,
14
14
  printCommandEnvelope,
15
15
  shouldEmitJson
16
- } from "./chunk-RDAUQGPG.mjs";
17
- import "./chunk-TECW24CR.mjs";
16
+ } from "./chunk-RYGDM5BG.mjs";
17
+ import "./chunk-LRA5YJVV.mjs";
18
18
  import {
19
19
  AuthError,
20
20
  ConfigError
@@ -23,7 +23,7 @@ import "./chunk-DLIRSHV6.mjs";
23
23
  import {
24
24
  DeeplineError
25
25
  } from "./chunk-HBL4PM5Q.mjs";
26
- import "./chunk-LWYOJG66.mjs";
26
+ import "./chunk-DPTEABFU.mjs";
27
27
  import "./chunk-WZYKRD7T.mjs";
28
28
  import "./chunk-KRD6H754.mjs";
29
29