deepline 0.3.439 → 0.3.441

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 (135) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +10 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +8 -4
  4. package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +17 -3
  5. package/dist/bundling-sources/shared_libs/tool-execution-error.ts +17 -3
  6. package/dist/cli/{auth-FE2LP7A5.mjs → auth-D2ZF664Y.mjs} +6 -6
  7. package/dist/cli/auth-XTW4JZT4.js +40 -0
  8. package/dist/cli/{billing-GABU2MTX.mjs → billing-4MIYCPSV.mjs} +7 -7
  9. package/dist/cli/{billing-4QAWLCKH.js → billing-5OLSZRHE.js} +83 -83
  10. package/dist/cli/{chunk-72XLUEP6.js → chunk-27LQEDGO.js} +16 -16
  11. package/dist/cli/{chunk-FDQAOF3L.mjs → chunk-2LVCAPN7.mjs} +3 -3
  12. package/dist/cli/{chunk-TWXPEHTM.js → chunk-2MMUUSBN.js} +57 -57
  13. package/dist/cli/{chunk-XFVHEDRH.js → chunk-2VZKT2PE.js} +35 -35
  14. package/dist/cli/{chunk-D4VWHTDT.js → chunk-3IRJIEIE.js} +12 -12
  15. package/dist/cli/{chunk-FB3B2NKV.js → chunk-3XPO3MWC.js} +8 -8
  16. package/dist/cli/{chunk-F3ORKGAM.mjs → chunk-4N3ZT6OJ.mjs} +2 -2
  17. package/dist/cli/{chunk-MAMVGOSC.mjs → chunk-4QF2K7TM.mjs} +1 -1
  18. package/dist/cli/{chunk-HO2TOFKF.mjs → chunk-55GDG7QJ.mjs} +4 -4
  19. package/dist/cli/{chunk-N5D4EMIY.mjs → chunk-7DH2FD7Y.mjs} +1 -1
  20. package/dist/cli/{chunk-WU4U6VSB.js → chunk-A6QCMBGL.js} +5 -5
  21. package/dist/cli/{chunk-3TYXI7MD.js → chunk-AG5SQSH5.js} +6 -6
  22. package/dist/cli/{chunk-NPBJI7RE.js → chunk-ALJJRZNJ.js} +8 -8
  23. package/dist/cli/{chunk-2ELMQ6LW.mjs → chunk-ARVYJDPQ.mjs} +4 -4
  24. package/dist/cli/{chunk-KGR7SR3C.js → chunk-AVQ4V6Y7.js} +93 -93
  25. package/dist/cli/{chunk-N7T6S5SU.mjs → chunk-AZZCCHOL.mjs} +2 -2
  26. package/dist/cli/{chunk-KAJK6XVI.js → chunk-CFUTOWE4.js} +6 -6
  27. package/dist/cli/{chunk-76DCNYH3.js → chunk-DE354WOP.js} +2 -2
  28. package/dist/cli/{chunk-PPDBRJRW.js → chunk-DIAWYWT5.js} +6 -1
  29. package/dist/cli/{chunk-E6ESUF5C.mjs → chunk-DIDMHGVH.mjs} +1 -1
  30. package/dist/cli/{chunk-IX7ZGPLU.js → chunk-DV4G676C.js} +8 -8
  31. package/dist/cli/{chunk-WJ4PNSX3.js → chunk-F2EMJUDJ.js} +26 -26
  32. package/dist/cli/{chunk-KCC3FKIW.mjs → chunk-FAG4DFUC.mjs} +1 -1
  33. package/dist/cli/{chunk-BQQ4LEQB.mjs → chunk-FOLT3LUQ.mjs} +2 -2
  34. package/dist/cli/{chunk-FCF5BP3Q.js → chunk-GAGGHXYN.js} +2 -2
  35. package/dist/cli/{chunk-RDIN3NKA.js → chunk-GEQOPXOS.js} +2 -2
  36. package/dist/cli/{chunk-E4IXDAZI.mjs → chunk-HBL4PM5Q.mjs} +6 -1
  37. package/dist/cli/{chunk-SWZQBMXR.mjs → chunk-HS6ASYW5.mjs} +2 -2
  38. package/dist/cli/{chunk-EBW6KRTG.js → chunk-HUH6EA5B.js} +33 -33
  39. package/dist/cli/{chunk-2H4EY7KH.js → chunk-JKVRBCZL.js} +26 -26
  40. package/dist/cli/{chunk-XMSVK6O4.mjs → chunk-KSWTIOZT.mjs} +9 -9
  41. package/dist/cli/{chunk-MGBVCVJ7.mjs → chunk-LB5TQPKK.mjs} +1 -1
  42. package/dist/cli/{chunk-IAL3KSJT.mjs → chunk-M65GHY4K.mjs} +1 -1
  43. package/dist/cli/{chunk-HUBVYO52.mjs → chunk-NYLJMRYD.mjs} +2 -2
  44. package/dist/cli/{chunk-R3X55OMZ.js → chunk-OWXLYPMV.js} +20 -20
  45. package/dist/cli/{chunk-NUX2QHNC.mjs → chunk-OZDT2CZW.mjs} +1 -1
  46. package/dist/cli/{chunk-P4ITKGRQ.js → chunk-PNS3K6A2.js} +50 -50
  47. package/dist/cli/{chunk-QFTJ24UV.mjs → chunk-POSRLOHP.mjs} +3 -3
  48. package/dist/cli/{chunk-ZTJUGK5I.mjs → chunk-PPJ4PF6F.mjs} +3 -3
  49. package/dist/cli/{chunk-RIJ4VTYJ.mjs → chunk-PUWMWNBM.mjs} +4 -4
  50. package/dist/cli/{chunk-DS7Y7X26.mjs → chunk-SKXQZUMX.mjs} +1 -1
  51. package/dist/cli/{chunk-2I42ORGH.js → chunk-UJLPE55B.js} +1 -1
  52. package/dist/cli/{chunk-MPY4UD6H.js → chunk-XM5Z53VA.js} +101 -101
  53. package/dist/cli/{chunk-UN3F6ZKR.mjs → chunk-XUART5TY.mjs} +5 -5
  54. package/dist/cli/{csv-TVVXG42B.js → csv-PWSQ7DBG.js} +14 -14
  55. package/dist/cli/{csv-NZOZIEQP.mjs → csv-ZWRKX6NU.mjs} +5 -5
  56. package/dist/cli/{db-PEZHN563.mjs → db-AYIEGUOY.mjs} +7 -7
  57. package/dist/cli/{db-3Q2OPJW6.js → db-M24C22YN.js} +34 -34
  58. package/dist/cli/{describe-M7AP5WVH.js → describe-F34NXGCE.js} +22 -22
  59. package/dist/cli/{describe-GHSBWUUS.mjs → describe-K2CCAFJO.mjs} +16 -16
  60. package/dist/cli/describe-core.d.mts +2 -2
  61. package/dist/cli/describe-core.d.ts +2 -2
  62. package/dist/cli/describe-core.js +4 -4
  63. package/dist/cli/describe-core.mjs +3 -3
  64. package/dist/cli/{executions-7E3GU4QA.mjs → executions-TMH5FSYX.mjs} +7 -7
  65. package/dist/cli/{executions-YKR2SAZF.js → executions-UHHRRBBT.js} +9 -9
  66. package/dist/cli/{feedback-JSPMENHA.mjs → feedback-GCTX3HJS.mjs} +5 -5
  67. package/dist/cli/{feedback-JTRYBUQZ.js → feedback-Z7C47J2X.js} +9 -9
  68. package/dist/cli/git-MCFHPAML.js +24 -0
  69. package/dist/cli/{git-R4PATSRX.mjs → git-RDHXJML2.mjs} +6 -6
  70. package/dist/cli/index.js +136 -136
  71. package/dist/cli/index.mjs +38 -38
  72. package/dist/cli/{legacy-noops-W52GTS36.mjs → legacy-noops-3E75KHWC.mjs} +6 -6
  73. package/dist/cli/{legacy-noops-3OMVEANW.js → legacy-noops-X6QQUMNF.js} +9 -9
  74. package/dist/cli/{monitors-YA6X5BM4.js → monitors-AVTVW5L2.js} +93 -93
  75. package/dist/cli/{monitors-SIXLFZJ3.mjs → monitors-HCNIDGV2.mjs} +7 -7
  76. package/dist/cli/{org-EYFKI2ZI.mjs → org-ILD73S74.mjs} +7 -7
  77. package/dist/cli/{org-73YXPEZ5.js → org-QUJYCJJE.js} +69 -69
  78. package/dist/cli/{play-CSRSSDTC.js → play-7M53PMCN.js} +373 -373
  79. package/dist/cli/{play-7EF6XSS6.mjs → play-DQJ7LGQG.mjs} +15 -15
  80. package/dist/cli/{providers-IHQGSP3E.js → providers-3HC5S52G.js} +10 -10
  81. package/dist/cli/{providers-MKIVZMBG.mjs → providers-WV35XXID.mjs} +7 -7
  82. package/dist/cli/{quickstart-26QTTEHV.js → quickstart-KJZOURAH.js} +7 -7
  83. package/dist/cli/{quickstart-COU7YD7S.mjs → quickstart-UESOANHH.mjs} +5 -5
  84. package/dist/cli/search-255SE477.js +30 -0
  85. package/dist/cli/{search-YKN4OI4P.mjs → search-V3ZQE4UU.mjs} +8 -8
  86. package/dist/cli/{secrets-CQPQQJ76.mjs → secrets-ILDTXJ3L.mjs} +7 -7
  87. package/dist/cli/{secrets-W3DT7F7Q.js → secrets-IU2FWIQI.js} +16 -16
  88. package/dist/cli/{sessions-U5ULT5CF.mjs → sessions-4M6WBATB.mjs} +6 -6
  89. package/dist/cli/sessions-Y25VJZSV.js +16 -0
  90. package/dist/cli/{settings-U6ZOQ3FZ.js → settings-5BMSV6EL.js} +78 -78
  91. package/dist/cli/{settings-6MZCTUWD.mjs → settings-Z4R5U5OZ.mjs} +11 -11
  92. package/dist/cli/{setup-JFG3GZGE.mjs → setup-FWSJMJWR.mjs} +9 -9
  93. package/dist/cli/{setup-HEDWKIGE.js → setup-QZ3ZN4RI.js} +44 -44
  94. package/dist/cli/skills-4JXC4C57.js +29 -0
  95. package/dist/cli/{skills-VIY56KK5.mjs → skills-RA7HJTXG.mjs} +7 -7
  96. package/dist/cli/{tools-Y64ZTYTZ.mjs → tools-5VI3FPWV.mjs} +15 -15
  97. package/dist/cli/tools-BGVCWIZ5.js +44 -0
  98. package/dist/cli/update-GPXJHQXJ.js +31 -0
  99. package/dist/cli/{update-2RL67PK2.mjs → update-O7B44SN5.mjs} +9 -9
  100. package/dist/cli/{workflow-YRI7MT3F.mjs → workflow-3MOKM4IM.mjs} +8 -8
  101. package/dist/cli/{workflow-FHKZGJGS.js → workflow-7W3BTJPH.js} +18 -18
  102. package/dist/{client-Doml68vC.d.mts → client-BCmnJaL9.d.mts} +1 -1
  103. package/dist/{client-9nH8tx4R.d.ts → client-BqQ7Rb11.d.ts} +1 -1
  104. package/dist/{compiler-manifest-CF2qngKr.d.ts → compiler-manifest-CWz_sNOQ.d.mts} +6 -2
  105. package/dist/{compiler-manifest-CF2qngKr.d.mts → compiler-manifest-CWz_sNOQ.d.ts} +6 -2
  106. package/dist/{index-Bq37k0sE.d.ts → index-4NPXDzlD.d.ts} +1 -1
  107. package/dist/{index-DTI-iNw8.d.mts → index-BF2JB_Ug.d.mts} +1 -1
  108. package/dist/index.d.mts +5 -5
  109. package/dist/index.d.ts +5 -5
  110. package/dist/index.js +10 -10
  111. package/dist/index.mjs +6 -6
  112. package/dist/install-integrity.json +96 -96
  113. package/dist/plays/bundle-play-file.d.mts +3 -3
  114. package/dist/plays/bundle-play-file.d.ts +3 -3
  115. package/dist/plays/bundle-play-file.mjs +2 -2
  116. package/dist/plays/csv-data-input.js +3 -3
  117. package/dist/plays/csv-data-input.mjs +2 -2
  118. package/dist/plays/play-description.d.mts +2 -2
  119. package/dist/plays/play-description.d.ts +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/plays/run-request.js +3 -3
  123. package/dist/plays/run-request.mjs +2 -2
  124. package/dist/release.d.mts +1 -1
  125. package/dist/release.d.ts +1 -1
  126. package/dist/release.js +2 -2
  127. package/dist/release.mjs +1 -1
  128. package/package.json +1 -1
  129. package/dist/cli/auth-5UUDH4A7.js +0 -40
  130. package/dist/cli/git-6QITFAMM.js +0 -24
  131. package/dist/cli/search-DOK42NBV.js +0 -30
  132. package/dist/cli/sessions-GYKUO55E.js +0 -16
  133. package/dist/cli/skills-FOGBZYDP.js +0 -29
  134. package/dist/cli/tools-ZN54N4NT.js +0 -44
  135. package/dist/cli/update-AZCNZXXP.js +0 -31
@@ -14,7 +14,7 @@ var _chunkE4CABWXLjs = require('./chunk-E4CABWXL.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
17
+ var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
18
18
 
19
19
 
20
20
  var _chunkOG64RBACjs = require('./chunk-OG64RBAC.js');
@@ -1800,7 +1800,7 @@ var PLAY_ARTIFACT_VERSION = _chunkOG64RBACjs.CURRENT_PLAY_ARTIFACT_CONTRACT_VERS
1800
1800
  var UnsupportedPlayToolErrorSchemaVersionError = class extends Error {
1801
1801
  constructor(value) {
1802
1802
  super(
1803
- `Unsupported Play tool error schema version ${String(value)}. Supported versions: ${_chunkPPDBRJRWjs.SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS.join(", ")}.`
1803
+ `Unsupported Play tool error schema version ${String(value)}. Supported versions: ${_chunkDIAWYWT5js.SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS.join(", ")}.`
1804
1804
  );
1805
1805
  this.name = "UnsupportedPlayToolErrorSchemaVersionError";
1806
1806
  }
@@ -1815,13 +1815,13 @@ function normalizePlayContractCompatibility(compatibility) {
1815
1815
  if (!compatibility || typeof compatibility !== "object" || Array.isArray(compatibility)) {
1816
1816
  throw new InvalidPlayContractCompatibilityError();
1817
1817
  }
1818
- const requestedToolErrorSchemaVersion = _nullishCoalesce(compatibility.toolErrorSchemaVersion, () => ( _chunkPPDBRJRWjs.TOOL_EXECUTION_ERROR_SCHEMA_VERSION));
1818
+ const requestedToolErrorSchemaVersion = _nullishCoalesce(compatibility.toolErrorSchemaVersion, () => ( _chunkDIAWYWT5js.TOOL_EXECUTION_ERROR_SCHEMA_VERSION));
1819
1819
  if (compatibility.datasetRowInput !== void 0 && compatibility.datasetRowInput !== "current_run") {
1820
1820
  throw new InvalidPlayContractCompatibilityError(
1821
1821
  `Unsupported dataset row input policy ${String(compatibility.datasetRowInput)}.`
1822
1822
  );
1823
1823
  }
1824
- if (!_chunkPPDBRJRWjs.SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS.includes(
1824
+ if (!_chunkDIAWYWT5js.SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS.includes(
1825
1825
  requestedToolErrorSchemaVersion
1826
1826
  )) {
1827
1827
  throw new UnsupportedPlayToolErrorSchemaVersionError(
@@ -1845,7 +1845,7 @@ function normalizePlayContractCompatibility(compatibility) {
1845
1845
  }
1846
1846
  return {
1847
1847
  ...compatibility,
1848
- toolErrorSchemaVersion: _chunkPPDBRJRWjs.TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
1848
+ toolErrorSchemaVersion: _chunkDIAWYWT5js.TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
1849
1849
  toolResponseContract,
1850
1850
  ...toolResponseReceiptRevision ? { toolResponseReceiptRevision } : {},
1851
1851
  authoringContractEdition: normalizePlayAuthoringContractEdition(
@@ -1858,7 +1858,7 @@ function buildPlayContractCompatibility(input) {
1858
1858
  artifactVersion: PLAY_ARTIFACT_VERSION,
1859
1859
  ..._optionalChain([input, 'optionalAccess', _ => _.datasetRowInput]) ? { datasetRowInput: input.datasetRowInput } : {},
1860
1860
  runtimeBackend: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _2 => _2.runtimeBackend]), () => ( null)),
1861
- toolErrorSchemaVersion: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _3 => _3.toolErrorSchemaVersion]), () => ( _chunkPPDBRJRWjs.TOOL_EXECUTION_ERROR_SCHEMA_VERSION)),
1861
+ toolErrorSchemaVersion: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _3 => _3.toolErrorSchemaVersion]), () => ( _chunkDIAWYWT5js.TOOL_EXECUTION_ERROR_SCHEMA_VERSION)),
1862
1862
  authoringContractEdition: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _4 => _4.authoringContractEdition]), () => ( PLAY_AUTHORING_CONTRACT_EDITION)),
1863
1863
  toolResponseContract: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _5 => _5.toolResponseContract]), () => ( _chunkE4CABWXLjs.RAW_V2_TOOL_RESPONSE_CONTRACT)),
1864
1864
  toolResponseReceiptRevision: _chunkE4CABWXLjs.normalizeToolResponseReceiptRevision.call(void 0,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkD4VWHTDTjs = require('./chunk-D4VWHTDT.js');
3
+ var _chunk3IRJIEIEjs = require('./chunk-3IRJIEIE.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkD4VWHTDTjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunk3IRJIEIEjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -153,6 +153,9 @@ var ProviderTransientError = (_class = class _ProviderTransientError extends Too
153
153
  }, _class);
154
154
  function getProviderUnavailableReason(error) {
155
155
  if (error instanceof ProviderTransientError) return error.category;
156
+ if (error instanceof ToolExecutionError && error.origin === "deepline" && error.category === "rate_limit") {
157
+ return "rate_limit";
158
+ }
156
159
  if (error instanceof ToolExecutionError && error.origin === "provider" && error.code === "PROVIDER_ACCOUNT_CAPACITY") {
157
160
  return "account_capacity";
158
161
  }
@@ -281,7 +284,9 @@ function normalizeToolExecutionFailure(value) {
281
284
  operation
282
285
  });
283
286
  const category = normalizeToolExecutionCategory(value.category);
284
- const publicDetails = normalizeToolExecutionPublicDetails(value.publicDetails);
287
+ const publicDetails = normalizeToolExecutionPublicDetails(
288
+ value.publicDetails
289
+ );
285
290
  const trustworthy = origin !== "unknown" && category !== "unknown" && typeof value.retryable === "boolean";
286
291
  return {
287
292
  schemaVersion: TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-BQQ4LEQB.mjs";
3
+ } from "./chunk-FOLT3LUQ.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -3,15 +3,15 @@
3
3
  var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
4
4
 
5
5
 
6
- var _chunkMPY4UD6Hjs = require('./chunk-MPY4UD6H.js');
6
+ var _chunkXM5Z53VAjs = require('./chunk-XM5Z53VA.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkD4VWHTDTjs = require('./chunk-D4VWHTDT.js');
10
+ var _chunk3IRJIEIEjs = require('./chunk-3IRJIEIE.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkEBW6KRTGjs = require('./chunk-EBW6KRTG.js');
14
+ var _chunkHUH6EA5Bjs = require('./chunk-HUH6EA5B.js');
15
15
 
16
16
 
17
17
 
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
5713
5713
  var _path = require('path');
5714
5714
  var SEARCH_REF_TTL_MS = 15 * 6e4;
5715
5715
  function lastSearchPath() {
5716
- return _path.join.call(void 0, _chunkEBW6KRTGjs.sdkCliStateDirPath.call(void 0, _chunkEBW6KRTGjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5716
+ return _path.join.call(void 0, _chunkHUH6EA5Bjs.sdkCliStateDirPath.call(void 0, _chunkHUH6EA5Bjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5717
5717
  }
5718
5718
  function rememberSearchRef(searchRef) {
5719
5719
  try {
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
5877
5877
  ];
5878
5878
  function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5879
5879
  if (result.results.length === 0)
5880
- return _chunkD4VWHTDTjs.renderCommandEnvelopeText.call(void 0, result);
5880
+ return _chunk3IRJIEIEjs.renderCommandEnvelopeText.call(void 0, result);
5881
5881
  const rows = result.results.map((item) => searchRow(item, summaryWidth));
5882
5882
  const kinds = new Set(rows.map((row) => row.kind));
5883
5883
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5902
5902
  actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
5903
5903
  };
5904
5904
  const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
5905
- ${_chunkD4VWHTDTjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5905
+ ${_chunk3IRJIEIEjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5906
5906
  const notes = rows.flatMap(
5907
5907
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
5908
5908
  );
@@ -5987,7 +5987,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
5987
5987
  console.error("--summary-width must be an integer of at least 2.");
5988
5988
  return 1;
5989
5989
  }
5990
- const { search_ref: searchRef, ...result } = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().search({
5990
+ const { search_ref: searchRef, ...result } = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().search({
5991
5991
  query,
5992
5992
  types,
5993
5993
  exclude,
@@ -6001,7 +6001,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
6001
6001
  });
6002
6002
  if (searchRef) rememberSearchRef(searchRef);
6003
6003
  pointAtDescribe(result);
6004
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, result, {
6004
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, result, {
6005
6005
  json: options.json === true,
6006
6006
  text: renderSearchResults(result, summaryWidth)
6007
6007
  });
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkD4VWHTDTjs = require('./chunk-D4VWHTDT.js');
5
+ var _chunk3IRJIEIEjs = require('./chunk-3IRJIEIE.js');
6
6
 
7
7
 
8
- var _chunkEBW6KRTGjs = require('./chunk-EBW6KRTG.js');
8
+ var _chunkHUH6EA5Bjs = require('./chunk-HUH6EA5B.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
39
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
139
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
153
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
200
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
227
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
254
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
269
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkEBW6KRTGjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkHUH6EA5Bjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkD4VWHTDTjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunk3IRJIEIEjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
322
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
371
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
392
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-DLIRSHV6.mjs";
9
9
  import {
10
10
  DeeplineError
11
- } from "./chunk-E4IXDAZI.mjs";
11
+ } from "./chunk-HBL4PM5Q.mjs";
12
12
 
13
13
  // ../play-runtime/run-lifecycle-policy.ts
14
14
  var TERMINAL_PLAY_RUN_STATUSES = /* @__PURE__ */ new Set([
@@ -3,11 +3,11 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-ZTJUGK5I.mjs";
6
+ } from "./chunk-PPJ4PF6F.mjs";
7
7
  import {
8
8
  DeeplineError,
9
9
  serializeToolExecutionFailure
10
- } from "./chunk-E4IXDAZI.mjs";
10
+ } from "./chunk-HBL4PM5Q.mjs";
11
11
 
12
12
  // src/cli/json-fields.ts
13
13
  var RUN_FIELDS = new Set(
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkTWXPEHTMjs = require('./chunk-TWXPEHTM.js');
3
+ var _chunk2MMUUSBNjs = require('./chunk-2MMUUSBN.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkTWXPEHTMjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunk2MMUUSBNjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -16,7 +16,7 @@ var _chunkR2QWSSAGjs = require('./chunk-R2QWSSAG.js');
16
16
  var _chunkVUYUI35Qjs = require('./chunk-VUYUI35Q.js');
17
17
 
18
18
 
19
- var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
19
+ var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
20
20
 
21
21
  // src/cli/tool-features.ts
22
22
  var VIEWS = {
@@ -92,7 +92,7 @@ async function found(lookup) {
92
92
  try {
93
93
  return await lookup;
94
94
  } catch (error) {
95
- if (error instanceof _chunkPPDBRJRWjs.DeeplineError && (error.statusCode === 404 || error.code === "PLAY_NOT_FOUND" || error.code === "NOT_FOUND")) {
95
+ if (error instanceof _chunkDIAWYWT5js.DeeplineError && (error.statusCode === 404 || error.code === "PLAY_NOT_FOUND" || error.code === "NOT_FOUND")) {
96
96
  return null;
97
97
  }
98
98
  throw error;
@@ -153,6 +153,9 @@ var ProviderTransientError = class _ProviderTransientError extends ToolExecution
153
153
  };
154
154
  function getProviderUnavailableReason(error) {
155
155
  if (error instanceof ProviderTransientError) return error.category;
156
+ if (error instanceof ToolExecutionError && error.origin === "deepline" && error.category === "rate_limit") {
157
+ return "rate_limit";
158
+ }
156
159
  if (error instanceof ToolExecutionError && error.origin === "provider" && error.code === "PROVIDER_ACCOUNT_CAPACITY") {
157
160
  return "account_capacity";
158
161
  }
@@ -281,7 +284,9 @@ function normalizeToolExecutionFailure(value) {
281
284
  operation
282
285
  });
283
286
  const category = normalizeToolExecutionCategory(value.category);
284
- const publicDetails = normalizeToolExecutionPublicDetails(value.publicDetails);
287
+ const publicDetails = normalizeToolExecutionPublicDetails(
288
+ value.publicDetails
289
+ );
285
290
  const trustworthy = origin !== "unknown" && category !== "unknown" && typeof value.retryable === "boolean";
286
291
  return {
287
292
  schemaVersion: TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-BQQ4LEQB.mjs";
5
+ } from "./chunk-FOLT3LUQ.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -25,7 +25,7 @@ import {
25
25
  saveHostEnvValues,
26
26
  saveProjectDeeplineEnvValues,
27
27
  storedHostApiKey
28
- } from "./chunk-ZTJUGK5I.mjs";
28
+ } from "./chunk-PPJ4PF6F.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {