deepline 0.3.337 → 0.3.338

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 (95) hide show
  1. package/dist/bundling-sources/sdk/src/agent-runtime.ts +21 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +2 -2
  4. package/dist/cli/auth-LVTYDMEL.js +31 -0
  5. package/dist/cli/{auth-6EREYQBM.mjs → auth-MTF2TRBC.mjs} +4 -4
  6. package/dist/cli/{billing-VMXYQMW6.mjs → billing-HXXPKDYV.mjs} +4 -4
  7. package/dist/cli/{billing-HZBD5KW6.js → billing-OXEY6DAU.js} +71 -71
  8. package/dist/cli/{chunk-3OBY2AGM.js → chunk-5OHHWYOV.js} +45 -45
  9. package/dist/cli/{chunk-FY65AYHZ.mjs → chunk-6CEPAFCE.mjs} +4 -4
  10. package/dist/cli/{chunk-NC5ODEG7.js → chunk-7EQ3WFD2.js} +9 -9
  11. package/dist/cli/{chunk-HBM2UKEU.mjs → chunk-7WL23HDH.mjs} +1 -1
  12. package/dist/cli/{chunk-M7IN66XB.js → chunk-AHO5IXHM.js} +15 -15
  13. package/dist/cli/{chunk-6PGYQ6IG.js → chunk-BYIWZOSA.js} +6 -6
  14. package/dist/cli/{chunk-VXCRG4J7.mjs → chunk-CGVCELEC.mjs} +1 -1
  15. package/dist/cli/{chunk-HDI6GSRQ.js → chunk-CVSUI4Z2.js} +48 -48
  16. package/dist/cli/{chunk-GPN5QAN2.mjs → chunk-FBU4A2ZE.mjs} +2 -2
  17. package/dist/cli/{chunk-YSR4PFTZ.js → chunk-FOODYFMR.js} +1 -1
  18. package/dist/cli/{chunk-5WTJ73QU.js → chunk-FYR7GGUF.js} +225 -225
  19. package/dist/cli/{chunk-MHWEX6GA.js → chunk-HJEHCSFH.js} +8 -8
  20. package/dist/cli/{chunk-35JNW43E.mjs → chunk-ID5OGCLU.mjs} +3 -3
  21. package/dist/cli/{chunk-YQW2FPKQ.mjs → chunk-J47TX67H.mjs} +1 -1
  22. package/dist/cli/{chunk-4SRIWSEG.js → chunk-KLAWLBSP.js} +60 -60
  23. package/dist/cli/{chunk-QEBA4KXE.js → chunk-KRZDVQZH.js} +70 -28
  24. package/dist/cli/{chunk-5ERCVX2D.mjs → chunk-MIHJFRGP.mjs} +2 -2
  25. package/dist/cli/{chunk-2LHYWYHM.mjs → chunk-N3EOKUQV.mjs} +54 -12
  26. package/dist/cli/{chunk-TB6HY4BW.mjs → chunk-NHTICK5G.mjs} +2 -2
  27. package/dist/cli/{chunk-XFSDLHGS.js → chunk-NR5ILIKI.js} +2 -2
  28. package/dist/cli/{chunk-A75J52BM.js → chunk-NUJIZBLA.js} +89 -76
  29. package/dist/cli/{chunk-ZUB3LXOI.mjs → chunk-OTJMWSIK.mjs} +5 -5
  30. package/dist/cli/{chunk-7MRAPBWB.mjs → chunk-SSRGN56V.mjs} +1 -1
  31. package/dist/cli/{chunk-IYK6XS5X.mjs → chunk-UVGGJ2CV.mjs} +6 -6
  32. package/dist/cli/{chunk-NIXE5325.js → chunk-XWTEOTGL.js} +26 -26
  33. package/dist/cli/{chunk-NQ42LHHS.mjs → chunk-YMLGJ2B7.mjs} +14 -1
  34. package/dist/cli/{client-BLGAYJME.mjs → client-LXBODS53.mjs} +3 -3
  35. package/dist/cli/client-V4OIXTP6.js +20 -0
  36. package/dist/cli/{csv-43QTLWPN.mjs → csv-3346Z7MA.mjs} +3 -3
  37. package/dist/cli/{csv-6WIFI6WR.js → csv-5UMO4TMZ.js} +12 -12
  38. package/dist/cli/{db-NCERSUPL.mjs → db-HVAQDN7U.mjs} +4 -4
  39. package/dist/cli/{db-5XFKB76V.js → db-RBWIVEB3.js} +29 -29
  40. package/dist/cli/{describe-4DNSNQKM.js → describe-LAAOJYI2.js} +15 -15
  41. package/dist/cli/{describe-V4BPRUES.mjs → describe-OKSZOU3V.mjs} +8 -8
  42. package/dist/cli/{executions-GQ4C2FGI.js → executions-5WENZ6MO.js} +6 -6
  43. package/dist/cli/{executions-IGXMYAYA.mjs → executions-T56YNXAC.mjs} +4 -4
  44. package/dist/cli/{feedback-UVDBDHE4.mjs → feedback-RU4EKJYX.mjs} +8 -3
  45. package/dist/cli/{feedback-UFFCKVNH.js → feedback-YZILULGJ.js} +11 -6
  46. package/dist/cli/{git-XI6XRTIZ.mjs → git-LX7NYWDT.mjs} +4 -4
  47. package/dist/cli/git-XASJHFDR.js +23 -0
  48. package/dist/cli/index.js +79 -79
  49. package/dist/cli/index.mjs +31 -31
  50. package/dist/cli/{legacy-noops-5Z3YLPCN.js → legacy-noops-K6W26TQA.js} +7 -7
  51. package/dist/cli/{legacy-noops-IUJOLPED.mjs → legacy-noops-SN44IUWD.mjs} +4 -4
  52. package/dist/cli/{monitors-KUS3ROXZ.mjs → monitors-BQ5SXRDD.mjs} +4 -4
  53. package/dist/cli/{monitors-TZAGTEID.js → monitors-R4D7X7PL.js} +85 -85
  54. package/dist/cli/{org-AHHROX6T.js → org-6GWQHHLF.js} +60 -60
  55. package/dist/cli/{org-SLIG47UE.mjs → org-RNR3CGVL.mjs} +4 -4
  56. package/dist/cli/play-2V2Y4P3P.js +153 -0
  57. package/dist/cli/{play-G4AQ2OZ5.mjs → play-CPG4HFXR.mjs} +7 -7
  58. package/dist/cli/{providers-PBFVQ2EP.js → providers-AP5NBYJF.js} +7 -7
  59. package/dist/cli/{providers-XQIQO6M3.mjs → providers-YEFPQW3K.mjs} +4 -4
  60. package/dist/cli/{quickstart-X6CLGXVG.js → quickstart-5D6WSPKU.js} +5 -5
  61. package/dist/cli/{quickstart-PCASXB6T.mjs → quickstart-IT43KYUN.mjs} +3 -3
  62. package/dist/cli/{search-ZTYQBKME.mjs → search-BVTZBNF3.mjs} +5 -5
  63. package/dist/cli/search-O66KVPGA.js +26 -0
  64. package/dist/cli/{secrets-IDF3FB7W.mjs → secrets-7HG77SLP.mjs} +4 -4
  65. package/dist/cli/{secrets-N3DWWVAY.js → secrets-L6Q2JJNX.js} +13 -13
  66. package/dist/cli/{sessions-ECDSBB7P.mjs → sessions-SSBDCVQN.mjs} +4 -4
  67. package/dist/cli/{sessions-SXXMNGUT.js → sessions-TNXYON2R.js} +5 -5
  68. package/dist/cli/{settings-IXHK6BAK.js → settings-4FKK3LUF.js} +74 -74
  69. package/dist/cli/{settings-FKARLN4C.mjs → settings-5L23COY7.mjs} +7 -7
  70. package/dist/cli/{setup-MJXYEE27.js → setup-EB5JLUFH.js} +41 -41
  71. package/dist/cli/{setup-LJG55UUU.mjs → setup-GXXWJFRV.mjs} +6 -6
  72. package/dist/cli/{skills-3IBFR2ZU.mjs → skills-ETEFVVPT.mjs} +4 -4
  73. package/dist/cli/skills-XFMWA4WX.js +28 -0
  74. package/dist/cli/tools-3TWNYKZY.js +40 -0
  75. package/dist/cli/{tools-ZJTHJHAD.mjs → tools-HDTU55RW.mjs} +6 -6
  76. package/dist/cli/update-AEBCM2LT.js +28 -0
  77. package/dist/cli/{update-ZN34FLDH.mjs → update-FR5QUV5I.mjs} +6 -6
  78. package/dist/cli/{workflow-LPCF7OMO.mjs → workflow-BE77YVLP.mjs} +5 -5
  79. package/dist/cli/{workflow-VLCSTKPW.js → workflow-OFWWX4ZP.js} +15 -15
  80. package/dist/index.js +6 -6
  81. package/dist/index.mjs +3 -3
  82. package/dist/install-integrity.json +74 -74
  83. package/dist/release.d.mts +1 -1
  84. package/dist/release.d.ts +1 -1
  85. package/dist/release.js +2 -2
  86. package/dist/release.mjs +1 -1
  87. package/package.json +1 -1
  88. package/dist/cli/auth-XS3LNSAH.js +0 -31
  89. package/dist/cli/client-ERDYIAWV.js +0 -20
  90. package/dist/cli/git-4ORFOHYQ.js +0 -23
  91. package/dist/cli/play-RRKTT3F2.js +0 -153
  92. package/dist/cli/search-QGFQSDJI.js +0 -26
  93. package/dist/cli/skills-RI3IZNWB.js +0 -28
  94. package/dist/cli/tools-NQJLSI4O.js +0 -40
  95. package/dist/cli/update-JY7TJJDL.js +0 -28
@@ -4,7 +4,7 @@
4
4
  var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
5
5
 
6
6
 
7
- var _chunkYSR4PFTZjs = require('./chunk-YSR4PFTZ.js');
7
+ var _chunkFOODYFMRjs = require('./chunk-FOODYFMR.js');
8
8
 
9
9
 
10
10
 
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
743
743
  }
744
744
 
745
745
  // src/version.ts
746
- var SDK_VERSION = _chunkYSR4PFTZjs.SDK_RELEASE.version;
747
- var SDK_API_MAJOR = _chunkYSR4PFTZjs.SDK_RELEASE.contracts.api.currentMajor;
748
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkYSR4PFTZjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
746
+ var SDK_VERSION = _chunkFOODYFMRjs.SDK_RELEASE.version;
747
+ var SDK_API_MAJOR = _chunkFOODYFMRjs.SDK_RELEASE.contracts.api.currentMajor;
748
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkFOODYFMRjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
749
749
 
750
750
  // src/agent-runtime.ts
751
751
 
@@ -771,34 +771,46 @@ function normalizeAgentRuntime(value) {
771
771
  if (explicit === "gemini_cli") return "gemini";
772
772
  return EXPLICIT_AGENT_RUNTIMES.has(explicit) ? explicit : null;
773
773
  }
774
+ var AGENT_SESSION_ID_VARIABLES = [
775
+ "CLAUDE_CODE_SESSION_ID",
776
+ "CODEX_SESSION_ID",
777
+ "CODEX_THREAD_ID"
778
+ ];
779
+ function agentSessionIdFromEnvironment(env = process.env) {
780
+ for (const variable of AGENT_SESSION_ID_VARIABLES) {
781
+ const sessionId = _optionalChain([env, 'access', _66 => _66[variable], 'optionalAccess', _67 => _67.trim, 'call', _68 => _68()]);
782
+ if (sessionId) return sessionId;
783
+ }
784
+ return null;
785
+ }
774
786
  function isCoworkLikeSandbox2() {
775
787
  const pluginMode = truthyEnv("DEEPLINE_PLUGIN_MODE");
776
788
  const claudeRemote = truthyEnv("CLAUDE_CODE_REMOTE");
777
- const projectDir = Boolean(_optionalChain([process, 'access', _66 => _66.env, 'access', _67 => _67.CLAUDE_PROJECT_DIR, 'optionalAccess', _68 => _68.trim, 'call', _69 => _69()]));
778
- const pluginRoot = Boolean(_optionalChain([process, 'access', _70 => _70.env, 'access', _71 => _71.DEEPLINE_PLUGIN_ROOT, 'optionalAccess', _72 => _72.trim, 'call', _73 => _73()]));
779
- const home = _optionalChain([process, 'access', _74 => _74.env, 'access', _75 => _75.HOME, 'optionalAccess', _76 => _76.trim, 'call', _77 => _77()]) || _os.homedir.call(void 0, );
789
+ const projectDir = Boolean(_optionalChain([process, 'access', _69 => _69.env, 'access', _70 => _70.CLAUDE_PROJECT_DIR, 'optionalAccess', _71 => _71.trim, 'call', _72 => _72()]));
790
+ const pluginRoot = Boolean(_optionalChain([process, 'access', _73 => _73.env, 'access', _74 => _74.DEEPLINE_PLUGIN_ROOT, 'optionalAccess', _75 => _75.trim, 'call', _76 => _76()]));
791
+ const home = _optionalChain([process, 'access', _77 => _77.env, 'access', _78 => _78.HOME, 'optionalAccess', _79 => _79.trim, 'call', _80 => _80()]) || _os.homedir.call(void 0, );
780
792
  const sessionHome = home === "/sessions" || home.startsWith("/sessions/");
781
793
  return claudeRemote || sessionHome || (pluginMode || pluginRoot) && projectDir;
782
794
  }
783
795
  function detectAgentRuntime(options = {}) {
784
796
  const explicit = normalizeAgentRuntime(process.env.DEEPLINE_AGENT_RUNTIME);
785
797
  if (explicit) return explicit;
786
- if (_optionalChain([process, 'access', _78 => _78.env, 'access', _79 => _79.CODEX_THREAD_ID, 'optionalAccess', _80 => _80.trim, 'call', _81 => _81()])) return "codex";
798
+ if (_optionalChain([process, 'access', _81 => _81.env, 'access', _82 => _82.CODEX_THREAD_ID, 'optionalAccess', _83 => _83.trim, 'call', _84 => _84()])) return "codex";
787
799
  if (options.detectCowork !== false && isCoworkLikeSandbox2()) {
788
800
  return "claude_cowork";
789
801
  }
790
- if (_optionalChain([process, 'access', _82 => _82.env, 'access', _83 => _83.CLAUDECODE, 'optionalAccess', _84 => _84.trim, 'call', _85 => _85()]) === "1") return "claude_code";
791
- if (_optionalChain([process, 'access', _86 => _86.env, 'access', _87 => _87.CLINE_ACTIVE, 'optionalAccess', _88 => _88.trim, 'call', _89 => _89(), 'access', _90 => _90.toLowerCase, 'call', _91 => _91()]) === "true") return "cline";
792
- if (_optionalChain([process, 'access', _92 => _92.env, 'access', _93 => _93.CURSOR_TRACE_ID, 'optionalAccess', _94 => _94.trim, 'call', _95 => _95()]) || _optionalChain([process, 'access', _96 => _96.env, 'access', _97 => _97.CURSOR_AGENT, 'optionalAccess', _98 => _98.trim, 'call', _99 => _99()])) {
802
+ if (_optionalChain([process, 'access', _85 => _85.env, 'access', _86 => _86.CLAUDECODE, 'optionalAccess', _87 => _87.trim, 'call', _88 => _88()]) === "1") return "claude_code";
803
+ if (_optionalChain([process, 'access', _89 => _89.env, 'access', _90 => _90.CLINE_ACTIVE, 'optionalAccess', _91 => _91.trim, 'call', _92 => _92(), 'access', _93 => _93.toLowerCase, 'call', _94 => _94()]) === "true") return "cline";
804
+ if (_optionalChain([process, 'access', _95 => _95.env, 'access', _96 => _96.CURSOR_TRACE_ID, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]) || _optionalChain([process, 'access', _99 => _99.env, 'access', _100 => _100.CURSOR_AGENT, 'optionalAccess', _101 => _101.trim, 'call', _102 => _102()])) {
793
805
  return "cursor";
794
806
  }
795
- if (_optionalChain([process, 'access', _100 => _100.env, 'access', _101 => _101.WINDSURF, 'optionalAccess', _102 => _102.trim, 'call', _103 => _103()]) || _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.CASCADE, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()])) {
807
+ if (_optionalChain([process, 'access', _103 => _103.env, 'access', _104 => _104.WINDSURF, 'optionalAccess', _105 => _105.trim, 'call', _106 => _106()]) || _optionalChain([process, 'access', _107 => _107.env, 'access', _108 => _108.CASCADE, 'optionalAccess', _109 => _109.trim, 'call', _110 => _110()])) {
796
808
  return "windsurf";
797
809
  }
798
- if (_optionalChain([process, 'access', _108 => _108.env, 'access', _109 => _109.ANTIGRAVITY, 'optionalAccess', _110 => _110.trim, 'call', _111 => _111()]) || _optionalChain([process, 'access', _112 => _112.env, 'access', _113 => _113.ANTIGRAVITY_CLI, 'optionalAccess', _114 => _114.trim, 'call', _115 => _115()]) || _optionalChain([process, 'access', _116 => _116.env, 'access', _117 => _117.ANTIGRAVITY_AGENT, 'optionalAccess', _118 => _118.trim, 'call', _119 => _119()]) || _optionalChain([process, 'access', _120 => _120.env, 'access', _121 => _121.ANTIGRAVITY_WORKSPACE, 'optionalAccess', _122 => _122.trim, 'call', _123 => _123()])) {
810
+ if (_optionalChain([process, 'access', _111 => _111.env, 'access', _112 => _112.ANTIGRAVITY, 'optionalAccess', _113 => _113.trim, 'call', _114 => _114()]) || _optionalChain([process, 'access', _115 => _115.env, 'access', _116 => _116.ANTIGRAVITY_CLI, 'optionalAccess', _117 => _117.trim, 'call', _118 => _118()]) || _optionalChain([process, 'access', _119 => _119.env, 'access', _120 => _120.ANTIGRAVITY_AGENT, 'optionalAccess', _121 => _121.trim, 'call', _122 => _122()]) || _optionalChain([process, 'access', _123 => _123.env, 'access', _124 => _124.ANTIGRAVITY_WORKSPACE, 'optionalAccess', _125 => _125.trim, 'call', _126 => _126()])) {
799
811
  return "antigravity";
800
812
  }
801
- if (_optionalChain([process, 'access', _124 => _124.env, 'access', _125 => _125.GEMINI_CLI, 'optionalAccess', _126 => _126.trim, 'call', _127 => _127()]) || _optionalChain([process, 'access', _128 => _128.env, 'access', _129 => _129.GEMINI_CLI_VERSION, 'optionalAccess', _130 => _130.trim, 'call', _131 => _131()]) || _optionalChain([process, 'access', _132 => _132.env, 'access', _133 => _133.GEMINI_SANDBOX, 'optionalAccess', _134 => _134.trim, 'call', _135 => _135()]) || _optionalChain([process, 'access', _136 => _136.env, 'access', _137 => _137.GEMINI_CONFIG_DIR, 'optionalAccess', _138 => _138.trim, 'call', _139 => _139()])) {
813
+ if (_optionalChain([process, 'access', _127 => _127.env, 'access', _128 => _128.GEMINI_CLI, 'optionalAccess', _129 => _129.trim, 'call', _130 => _130()]) || _optionalChain([process, 'access', _131 => _131.env, 'access', _132 => _132.GEMINI_CLI_VERSION, 'optionalAccess', _133 => _133.trim, 'call', _134 => _134()]) || _optionalChain([process, 'access', _135 => _135.env, 'access', _136 => _136.GEMINI_SANDBOX, 'optionalAccess', _137 => _137.trim, 'call', _138 => _138()]) || _optionalChain([process, 'access', _139 => _139.env, 'access', _140 => _140.GEMINI_CONFIG_DIR, 'optionalAccess', _141 => _141.trim, 'call', _142 => _142()])) {
802
814
  return "gemini";
803
815
  }
804
816
  return _nullishCoalesce(options.defaultRuntime, () => ( "unknown"));
@@ -808,11 +820,11 @@ function detectAgentRuntime(options = {}) {
808
820
 
809
821
 
810
822
  function activePluginSkillsDir() {
811
- const pluginMode = _optionalChain([process, 'access', _140 => _140.env, 'access', _141 => _141.DEEPLINE_PLUGIN_MODE, 'optionalAccess', _142 => _142.trim, 'call', _143 => _143(), 'access', _144 => _144.toLowerCase, 'call', _145 => _145()]);
823
+ const pluginMode = _optionalChain([process, 'access', _143 => _143.env, 'access', _144 => _144.DEEPLINE_PLUGIN_MODE, 'optionalAccess', _145 => _145.trim, 'call', _146 => _146(), 'access', _147 => _147.toLowerCase, 'call', _148 => _148()]);
812
824
  if (pluginMode !== "true" && pluginMode !== "1" && pluginMode !== "yes" && pluginMode !== "on") {
813
825
  return "";
814
826
  }
815
- const dir = _nullishCoalesce(_optionalChain([process, 'access', _146 => _146.env, 'access', _147 => _147.DEEPLINE_PLUGIN_SKILLS_DIR, 'optionalAccess', _148 => _148.trim, 'call', _149 => _149()]), () => ( ""));
827
+ const dir = _nullishCoalesce(_optionalChain([process, 'access', _149 => _149.env, 'access', _150 => _150.DEEPLINE_PLUGIN_SKILLS_DIR, 'optionalAccess', _151 => _151.trim, 'call', _152 => _152()]), () => ( ""));
816
828
  return dir && _fs.existsSync.call(void 0, dir) ? dir : "";
817
829
  }
818
830
  function hasActivePluginSkills() {
@@ -945,14 +957,14 @@ var SYNTHETIC_RUN_HEADER = "x-deepline-synthetic-run";
945
957
 
946
958
  // src/deployment-protection.ts
947
959
  function deploymentProtectionHeaders() {
948
- const token = typeof process !== "undefined" ? _optionalChain([process, 'access', _150 => _150.env, 'optionalAccess', _151 => _151.VERCEL_PROTECTION_BYPASS_TOKEN]) : void 0;
960
+ const token = typeof process !== "undefined" ? _optionalChain([process, 'access', _153 => _153.env, 'optionalAccess', _154 => _154.VERCEL_PROTECTION_BYPASS_TOKEN]) : void 0;
949
961
  return token ? { "x-vercel-protection-bypass": token } : {};
950
962
  }
951
963
  var fetchWithDeploymentProtection = (input, init) => {
952
964
  const headers = new Headers(
953
965
  input instanceof Request ? input.headers : void 0
954
966
  );
955
- new Headers(_optionalChain([init, 'optionalAccess', _152 => _152.headers])).forEach((value, name) => headers.set(name, value));
967
+ new Headers(_optionalChain([init, 'optionalAccess', _155 => _155.headers])).forEach((value, name) => headers.set(name, value));
956
968
  for (const [name, value] of Object.entries(deploymentProtectionHeaders())) {
957
969
  headers.set(name, value);
958
970
  }
@@ -1288,7 +1300,7 @@ function withErrorCause(error, cause) {
1288
1300
  }
1289
1301
  function mapNetworkError(baseUrl, error, targetLabel) {
1290
1302
  const tagged = error;
1291
- const timeoutMs = _optionalChain([tagged, 'optionalAccess', _153 => _153[REQUEST_TIMEOUT_MARKER]]);
1303
+ const timeoutMs = _optionalChain([tagged, 'optionalAccess', _156 => _156[REQUEST_TIMEOUT_MARKER]]);
1292
1304
  if (typeof timeoutMs === "number") {
1293
1305
  return {
1294
1306
  message: `Request to ${targetLabel} timed out after ${timeoutMs}ms while waiting for a response.`,
@@ -1296,14 +1308,14 @@ function mapNetworkError(baseUrl, error, targetLabel) {
1296
1308
  details: { timeoutMs, target: targetLabel }
1297
1309
  };
1298
1310
  }
1299
- if (_optionalChain([tagged, 'optionalAccess', _154 => _154[REQUEST_ABORT_MARKER]])) {
1311
+ if (_optionalChain([tagged, 'optionalAccess', _157 => _157[REQUEST_ABORT_MARKER]])) {
1300
1312
  return {
1301
1313
  message: `Request to ${targetLabel} was aborted before it completed.`,
1302
1314
  code: "NETWORK_ABORTED"
1303
1315
  };
1304
1316
  }
1305
1317
  return {
1306
- message: _optionalChain([error, 'optionalAccess', _155 => _155.message]) ? `Unable to connect to ${baseUrl}. ${error.message}` : `Unable to connect to ${baseUrl}. Is the computer able to access the url?`,
1318
+ message: _optionalChain([error, 'optionalAccess', _158 => _158.message]) ? `Unable to connect to ${baseUrl}. ${error.message}` : `Unable to connect to ${baseUrl}. Is the computer able to access the url?`,
1307
1319
  code: "NETWORK_ERROR"
1308
1320
  };
1309
1321
  }
@@ -1371,45 +1383,45 @@ var HttpClient = class {
1371
1383
  if (skillsVersion) {
1372
1384
  headers["X-Deepline-Skills-Version"] = skillsVersion;
1373
1385
  }
1374
- const playArtifactR2Prefix = typeof process !== "undefined" ? _optionalChain([process, 'access', _156 => _156.env, 'optionalAccess', _157 => _157.DEEPLINE_PLAY_ARTIFACT_R2_PREFIX]) : void 0;
1386
+ const playArtifactR2Prefix = typeof process !== "undefined" ? _optionalChain([process, 'access', _159 => _159.env, 'optionalAccess', _160 => _160.DEEPLINE_PLAY_ARTIFACT_R2_PREFIX]) : void 0;
1375
1387
  if (playArtifactR2Prefix) {
1376
1388
  headers["x-deepline-play-artifact-r2-prefix"] = playArtifactR2Prefix;
1377
1389
  }
1378
- const coordinatorUrl = typeof process !== "undefined" ? _optionalChain([process, 'access', _158 => _158.env, 'optionalAccess', _159 => _159.DEEPLINE_COORDINATOR_URL]) : void 0;
1379
- const coordinatorInternalToken = typeof process !== "undefined" ? _optionalChain([process, 'access', _160 => _160.env, 'optionalAccess', _161 => _161.DEEPLINE_INTERNAL_TOKEN]) : void 0;
1380
- const absurdReleaseOverride = typeof process !== "undefined" ? _optionalChain([process, 'access', _162 => _162.env, 'optionalAccess', _163 => _163.DEEPLINE_ABSURD_RELEASE]) : void 0;
1381
- const preferredReceiptGatewayMachineId = typeof process !== "undefined" ? _optionalChain([process, 'access', _164 => _164.env, 'optionalAccess', _165 => _165.DEEPLINE_PREFERRED_RECEIPT_GATEWAY_MACHINE_ID]) : void 0;
1382
- if (_optionalChain([coordinatorUrl, 'optionalAccess', _166 => _166.trim, 'call', _167 => _167()])) {
1390
+ const coordinatorUrl = typeof process !== "undefined" ? _optionalChain([process, 'access', _161 => _161.env, 'optionalAccess', _162 => _162.DEEPLINE_COORDINATOR_URL]) : void 0;
1391
+ const coordinatorInternalToken = typeof process !== "undefined" ? _optionalChain([process, 'access', _163 => _163.env, 'optionalAccess', _164 => _164.DEEPLINE_INTERNAL_TOKEN]) : void 0;
1392
+ const absurdReleaseOverride = typeof process !== "undefined" ? _optionalChain([process, 'access', _165 => _165.env, 'optionalAccess', _166 => _166.DEEPLINE_ABSURD_RELEASE]) : void 0;
1393
+ const preferredReceiptGatewayMachineId = typeof process !== "undefined" ? _optionalChain([process, 'access', _167 => _167.env, 'optionalAccess', _168 => _168.DEEPLINE_PREFERRED_RECEIPT_GATEWAY_MACHINE_ID]) : void 0;
1394
+ if (_optionalChain([coordinatorUrl, 'optionalAccess', _169 => _169.trim, 'call', _170 => _170()])) {
1383
1395
  headers[COORDINATOR_URL_OVERRIDE_HEADER] = coordinatorUrl.trim();
1384
1396
  }
1385
- const workerCallbackUrl = typeof process !== "undefined" ? _optionalChain([process, 'access', _168 => _168.env, 'optionalAccess', _169 => _169.DEEPLINE_WORKER_CALLBACK_URL]) : void 0;
1386
- if (_optionalChain([workerCallbackUrl, 'optionalAccess', _170 => _170.trim, 'call', _171 => _171()])) {
1397
+ const workerCallbackUrl = typeof process !== "undefined" ? _optionalChain([process, 'access', _171 => _171.env, 'optionalAccess', _172 => _172.DEEPLINE_WORKER_CALLBACK_URL]) : void 0;
1398
+ if (_optionalChain([workerCallbackUrl, 'optionalAccess', _173 => _173.trim, 'call', _174 => _174()])) {
1387
1399
  headers[WORKER_CALLBACK_URL_OVERRIDE_HEADER] = workerCallbackUrl.trim();
1388
1400
  }
1389
- const runtimeSchedulerSchema = typeof process !== "undefined" ? _optionalChain([process, 'access', _172 => _172.env, 'optionalAccess', _173 => _173.DEEPLINE_RUNTIME_SCHEDULER_SCHEMA]) : void 0;
1390
- if (_optionalChain([runtimeSchedulerSchema, 'optionalAccess', _174 => _174.trim, 'call', _175 => _175()])) {
1401
+ const runtimeSchedulerSchema = typeof process !== "undefined" ? _optionalChain([process, 'access', _175 => _175.env, 'optionalAccess', _176 => _176.DEEPLINE_RUNTIME_SCHEDULER_SCHEMA]) : void 0;
1402
+ if (_optionalChain([runtimeSchedulerSchema, 'optionalAccess', _177 => _177.trim, 'call', _178 => _178()])) {
1391
1403
  headers[RUNTIME_SCHEDULER_SCHEMA_OVERRIDE_HEADER] = runtimeSchedulerSchema.trim();
1392
1404
  }
1393
- const syntheticRun = typeof process !== "undefined" ? _optionalChain([process, 'access', _176 => _176.env, 'optionalAccess', _177 => _177.DEEPLINE_SYNTHETIC_RUN]) : void 0;
1405
+ const syntheticRun = typeof process !== "undefined" ? _optionalChain([process, 'access', _179 => _179.env, 'optionalAccess', _180 => _180.DEEPLINE_SYNTHETIC_RUN]) : void 0;
1394
1406
  if (syntheticRun && syntheticRun.trim() && syntheticRun.trim() !== "0") {
1395
1407
  headers[SYNTHETIC_RUN_HEADER] = "1";
1396
1408
  }
1397
- const runtimeTestFault = typeof process !== "undefined" ? _optionalChain([process, 'access', _178 => _178.env, 'optionalAccess', _179 => _179.DEEPLINE_TEST_RUNTIME_FAULT]) : void 0;
1398
- if (_optionalChain([runtimeTestFault, 'optionalAccess', _180 => _180.trim, 'call', _181 => _181()])) {
1409
+ const runtimeTestFault = typeof process !== "undefined" ? _optionalChain([process, 'access', _181 => _181.env, 'optionalAccess', _182 => _182.DEEPLINE_TEST_RUNTIME_FAULT]) : void 0;
1410
+ if (_optionalChain([runtimeTestFault, 'optionalAccess', _183 => _183.trim, 'call', _184 => _184()])) {
1399
1411
  headers[PLAY_RUNTIME_TEST_FAULT_HEADER] = runtimeTestFault.trim();
1400
1412
  }
1401
- const retainedReceivers = typeof process !== "undefined" ? _optionalChain([process, 'access', _182 => _182.env, 'optionalAccess', _183 => _183.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _184 => _184.trim, 'call', _185 => _185()]) : void 0;
1402
- if (retainedReceivers && _optionalChain([coordinatorInternalToken, 'optionalAccess', _186 => _186.trim, 'call', _187 => _187()])) {
1413
+ const retainedReceivers = typeof process !== "undefined" ? _optionalChain([process, 'access', _185 => _185.env, 'optionalAccess', _186 => _186.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _187 => _187.trim, 'call', _188 => _188()]) : void 0;
1414
+ if (retainedReceivers && _optionalChain([coordinatorInternalToken, 'optionalAccess', _189 => _189.trim, 'call', _190 => _190()])) {
1403
1415
  headers[RETAINED_PIPELINE_RECEIVERS_HEADER] = retainedReceivers;
1404
1416
  headers[COORDINATOR_INTERNAL_TOKEN_HEADER] = coordinatorInternalToken.trim();
1405
1417
  }
1406
- if (_optionalChain([absurdReleaseOverride, 'optionalAccess', _188 => _188.trim, 'call', _189 => _189()]) && _optionalChain([coordinatorInternalToken, 'optionalAccess', _190 => _190.trim, 'call', _191 => _191()])) {
1418
+ if (_optionalChain([absurdReleaseOverride, 'optionalAccess', _191 => _191.trim, 'call', _192 => _192()]) && _optionalChain([coordinatorInternalToken, 'optionalAccess', _193 => _193.trim, 'call', _194 => _194()])) {
1407
1419
  headers[ABSURD_RELEASE_OVERRIDE_HEADER] = absurdReleaseOverride.trim();
1408
1420
  }
1409
- if (_optionalChain([preferredReceiptGatewayMachineId, 'optionalAccess', _192 => _192.trim, 'call', _193 => _193()]) && _optionalChain([coordinatorInternalToken, 'optionalAccess', _194 => _194.trim, 'call', _195 => _195()])) {
1421
+ if (_optionalChain([preferredReceiptGatewayMachineId, 'optionalAccess', _195 => _195.trim, 'call', _196 => _196()]) && _optionalChain([coordinatorInternalToken, 'optionalAccess', _197 => _197.trim, 'call', _198 => _198()])) {
1410
1422
  headers[PREFERRED_RECEIPT_GATEWAY_MACHINE_ID_HEADER] = preferredReceiptGatewayMachineId.trim();
1411
1423
  }
1412
- if (_optionalChain([coordinatorInternalToken, 'optionalAccess', _196 => _196.trim, 'call', _197 => _197()]) && (_optionalChain([coordinatorUrl, 'optionalAccess', _198 => _198.trim, 'call', _199 => _199()]) || _optionalChain([workerCallbackUrl, 'optionalAccess', _200 => _200.trim, 'call', _201 => _201()]) || _optionalChain([runtimeTestFault, 'optionalAccess', _202 => _202.trim, 'call', _203 => _203()]) || _optionalChain([absurdReleaseOverride, 'optionalAccess', _204 => _204.trim, 'call', _205 => _205()]) || _optionalChain([preferredReceiptGatewayMachineId, 'optionalAccess', _206 => _206.trim, 'call', _207 => _207()]))) {
1424
+ if (_optionalChain([coordinatorInternalToken, 'optionalAccess', _199 => _199.trim, 'call', _200 => _200()]) && (_optionalChain([coordinatorUrl, 'optionalAccess', _201 => _201.trim, 'call', _202 => _202()]) || _optionalChain([workerCallbackUrl, 'optionalAccess', _203 => _203.trim, 'call', _204 => _204()]) || _optionalChain([runtimeTestFault, 'optionalAccess', _205 => _205.trim, 'call', _206 => _206()]) || _optionalChain([absurdReleaseOverride, 'optionalAccess', _207 => _207.trim, 'call', _208 => _208()]) || _optionalChain([preferredReceiptGatewayMachineId, 'optionalAccess', _209 => _209.trim, 'call', _210 => _210()]))) {
1413
1425
  headers[COORDINATOR_INTERNAL_TOKEN_HEADER] = coordinatorInternalToken.trim();
1414
1426
  }
1415
1427
  return applyExplicitHeaders(
@@ -1434,23 +1446,23 @@ var HttpClient = class {
1434
1446
  async request(path, options) {
1435
1447
  const baseUrl = this.config.baseUrl;
1436
1448
  const url = `${baseUrl}${path}`;
1437
- const method = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _208 => _208.method]), () => ( "GET"));
1449
+ const method = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _211 => _211.method]), () => ( "GET"));
1438
1450
  const requestStartedAt = Date.now();
1439
1451
  let fetchAttempts = 0;
1440
1452
  let lastRequestUrl = url;
1441
1453
  let networkFailedAt;
1442
1454
  let networkPhase = "before_request";
1443
- const headers = this.authHeaders(_optionalChain([options, 'optionalAccess', _209 => _209.headers]));
1444
- if (_optionalChain([options, 'optionalAccess', _210 => _210.body]) !== void 0) {
1455
+ const headers = this.authHeaders(_optionalChain([options, 'optionalAccess', _212 => _212.headers]));
1456
+ if (_optionalChain([options, 'optionalAccess', _213 => _213.body]) !== void 0) {
1445
1457
  applyExplicitHeaders(headers, { "Content-Type": "application/json" });
1446
1458
  }
1447
1459
  let lastError = null;
1448
- const candidateUrls = _optionalChain([options, 'optionalAccess', _211 => _211.exactUrlOnly]) ? [url] : buildCandidateUrls(url);
1460
+ const candidateUrls = _optionalChain([options, 'optionalAccess', _214 => _214.exactUrlOnly]) ? [url] : buildCandidateUrls(url);
1449
1461
  let retryAfterDelayMs = null;
1450
1462
  let totalRetryWaitMs = 0;
1451
- const maxRetries = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _212 => _212.maxRetries]), () => ( this.config.maxRetries));
1463
+ const maxRetries = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _215 => _215.maxRetries]), () => ( this.config.maxRetries));
1452
1464
  requestAttempts: for (let attempt = 0; attempt <= maxRetries; attempt++) {
1453
- if (_optionalChain([options, 'optionalAccess', _213 => _213.signal, 'optionalAccess', _214 => _214.aborted])) {
1465
+ if (_optionalChain([options, 'optionalAccess', _216 => _216.signal, 'optionalAccess', _217 => _217.aborted])) {
1454
1466
  lastError = requestCancelledError(options.signal);
1455
1467
  networkFailedAt = Date.now();
1456
1468
  break;
@@ -1465,7 +1477,7 @@ var HttpClient = class {
1465
1477
  totalRetryWaitMs += delayMs;
1466
1478
  networkPhase = "retry_wait";
1467
1479
  try {
1468
- await sleep(delayMs, _optionalChain([options, 'optionalAccess', _215 => _215.signal]));
1480
+ await sleep(delayMs, _optionalChain([options, 'optionalAccess', _218 => _218.signal]));
1469
1481
  } catch (error) {
1470
1482
  lastError = error instanceof Error ? error : new Error(String(error));
1471
1483
  networkFailedAt = Date.now();
@@ -1473,25 +1485,25 @@ var HttpClient = class {
1473
1485
  }
1474
1486
  }
1475
1487
  for (const candidateUrl of candidateUrls) {
1476
- if (_optionalChain([options, 'optionalAccess', _216 => _216.signal, 'optionalAccess', _217 => _217.aborted])) {
1488
+ if (_optionalChain([options, 'optionalAccess', _219 => _219.signal, 'optionalAccess', _220 => _220.aborted])) {
1477
1489
  lastError = requestCancelledError(options.signal);
1478
1490
  networkFailedAt = Date.now();
1479
1491
  break requestAttempts;
1480
1492
  }
1481
1493
  const controller = new AbortController();
1482
- const timeoutMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _218 => _218.timeout]), () => ( this.config.timeout));
1494
+ const timeoutMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _221 => _221.timeout]), () => ( this.config.timeout));
1483
1495
  let requestTimedOut = false;
1484
1496
  const timeoutId = setTimeout(() => {
1485
1497
  requestTimedOut = true;
1486
1498
  controller.abort();
1487
1499
  }, timeoutMs);
1488
1500
  const abortRequest = () => controller.abort();
1489
- _optionalChain([options, 'optionalAccess', _219 => _219.signal, 'optionalAccess', _220 => _220.addEventListener, 'call', _221 => _221("abort", abortRequest, {
1501
+ _optionalChain([options, 'optionalAccess', _222 => _222.signal, 'optionalAccess', _223 => _223.addEventListener, 'call', _224 => _224("abort", abortRequest, {
1490
1502
  once: true
1491
1503
  })]);
1492
1504
  networkPhase = "before_request";
1493
1505
  try {
1494
- const requestBody = _optionalChain([options, 'optionalAccess', _222 => _222.formData]) !== void 0 ? typeof options.formData === "function" ? options.formData() : options.formData : _optionalChain([options, 'optionalAccess', _223 => _223.body]) !== void 0 ? JSON.stringify(options.body) : void 0;
1506
+ const requestBody = _optionalChain([options, 'optionalAccess', _225 => _225.formData]) !== void 0 ? typeof options.formData === "function" ? options.formData() : options.formData : _optionalChain([options, 'optionalAccess', _226 => _226.body]) !== void 0 ? JSON.stringify(options.body) : void 0;
1495
1507
  fetchAttempts += 1;
1496
1508
  lastRequestUrl = candidateUrl;
1497
1509
  networkPhase = "awaiting_headers";
@@ -1502,15 +1514,15 @@ var HttpClient = class {
1502
1514
  signal: controller.signal
1503
1515
  });
1504
1516
  networkPhase = "reading_body";
1505
- _optionalChain([options, 'optionalAccess', _224 => _224.onResponse, 'optionalCall', _225 => _225(response)]);
1506
- if (response.status === 404 && _optionalChain([options, 'optionalAccess', _226 => _226.allowNotFound])) {
1517
+ _optionalChain([options, 'optionalAccess', _227 => _227.onResponse, 'optionalCall', _228 => _228(response)]);
1518
+ if (response.status === 404 && _optionalChain([options, 'optionalAccess', _229 => _229.allowNotFound])) {
1507
1519
  clearTimeout(timeoutId);
1508
1520
  return null;
1509
1521
  }
1510
1522
  const body = await response.text();
1511
1523
  clearTimeout(timeoutId);
1512
1524
  const parsed = parseResponseBody(body);
1513
- const structuredToolError = _optionalChain([options, 'optionalAccess', _227 => _227.toolId]) && !response.ok ? _chunk7P5AA3SNjs.deserializeToolExecutionFailure.call(void 0,
1525
+ const structuredToolError = _optionalChain([options, 'optionalAccess', _230 => _230.toolId]) && !response.ok ? _chunk7P5AA3SNjs.deserializeToolExecutionFailure.call(void 0,
1514
1526
  _chunkXNYIZMNQjs.apiErrorMessage.call(void 0, parsed, response.status),
1515
1527
  isRecord(parsed) ? parsed.tool_error : null,
1516
1528
  _chunk7P5AA3SNjs.TOOL_EXECUTION_ERROR_SCHEMA_VERSION
@@ -1532,7 +1544,7 @@ var HttpClient = class {
1532
1544
  throw structuredToolError;
1533
1545
  }
1534
1546
  if (response.status === 429) {
1535
- if (_optionalChain([options, 'optionalAccess', _228 => _228.preserveRateLimitResponse]) && isMonitorRateLimitEnvelope(parsed)) {
1547
+ if (_optionalChain([options, 'optionalAccess', _231 => _231.preserveRateLimitResponse]) && isMonitorRateLimitEnvelope(parsed)) {
1536
1548
  throw new (0, _chunk7P5AA3SNjs.DeeplineError)(
1537
1549
  _chunkXNYIZMNQjs.apiErrorMessage.call(void 0, parsed, response.status),
1538
1550
  response.status,
@@ -1552,7 +1564,7 @@ var HttpClient = class {
1552
1564
  throw new AuthError(_chunkXNYIZMNQjs.apiErrorMessage.call(void 0, parsed, response.status));
1553
1565
  }
1554
1566
  if (!response.ok) {
1555
- const retryableApiError = _optionalChain([options, 'optionalAccess', _229 => _229.retryApiErrors]) === true && isRetryableApiErrorResponse(response.status);
1567
+ const retryableApiError = _optionalChain([options, 'optionalAccess', _232 => _232.retryApiErrors]) === true && isRetryableApiErrorResponse(response.status);
1556
1568
  const htmlError = detectHtmlErrorBody(
1557
1569
  body,
1558
1570
  response.headers.get("content-type")
@@ -1604,7 +1616,7 @@ var HttpClient = class {
1604
1616
  } catch (error) {
1605
1617
  clearTimeout(timeoutId);
1606
1618
  networkFailedAt = Date.now();
1607
- if (_optionalChain([options, 'optionalAccess', _230 => _230.signal, 'optionalAccess', _231 => _231.aborted])) {
1619
+ if (_optionalChain([options, 'optionalAccess', _233 => _233.signal, 'optionalAccess', _234 => _234.aborted])) {
1608
1620
  lastError = requestCancelledError(options.signal);
1609
1621
  break requestAttempts;
1610
1622
  }
@@ -1621,7 +1633,7 @@ var HttpClient = class {
1621
1633
  });
1622
1634
  } finally {
1623
1635
  clearTimeout(timeoutId);
1624
- _optionalChain([options, 'optionalAccess', _232 => _232.signal, 'optionalAccess', _233 => _233.removeEventListener, 'call', _234 => _234("abort", abortRequest)]);
1636
+ _optionalChain([options, 'optionalAccess', _235 => _235.signal, 'optionalAccess', _236 => _236.removeEventListener, 'call', _237 => _237("abort", abortRequest)]);
1625
1637
  }
1626
1638
  }
1627
1639
  if (attempt < maxRetries) continue;
@@ -1648,7 +1660,7 @@ var HttpClient = class {
1648
1660
  phase: networkPhase
1649
1661
  }
1650
1662
  };
1651
- if (_optionalChain([options, 'optionalAccess', _235 => _235.toolId])) {
1663
+ if (_optionalChain([options, 'optionalAccess', _238 => _238.toolId])) {
1652
1664
  const code = mappedNetworkError.code;
1653
1665
  throw withErrorCause(
1654
1666
  new (0, _chunk7P5AA3SNjs.ToolExecutionError)(
@@ -1700,12 +1712,12 @@ var HttpClient = class {
1700
1712
  }
1701
1713
  async *streamSse(path, options) {
1702
1714
  const url = `${this.config.baseUrl}${path}`;
1703
- const method = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _236 => _236.method]), () => ( "GET"));
1715
+ const method = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _239 => _239.method]), () => ( "GET"));
1704
1716
  const headers = this.authHeaders({
1705
1717
  Accept: "text/event-stream",
1706
- ..._optionalChain([options, 'optionalAccess', _237 => _237.headers])
1718
+ ..._optionalChain([options, 'optionalAccess', _240 => _240.headers])
1707
1719
  });
1708
- if (_optionalChain([options, 'optionalAccess', _238 => _238.body]) !== void 0) {
1720
+ if (_optionalChain([options, 'optionalAccess', _241 => _241.body]) !== void 0) {
1709
1721
  applyExplicitHeaders(headers, { "Content-Type": "application/json" });
1710
1722
  }
1711
1723
  let lastError = null;
@@ -1714,8 +1726,8 @@ var HttpClient = class {
1714
1726
  const response = await fetch(candidateUrl, {
1715
1727
  method,
1716
1728
  headers,
1717
- body: _optionalChain([options, 'optionalAccess', _239 => _239.body]) !== void 0 ? JSON.stringify(options.body) : void 0,
1718
- signal: _optionalChain([options, 'optionalAccess', _240 => _240.signal])
1729
+ body: _optionalChain([options, 'optionalAccess', _242 => _242.body]) !== void 0 ? JSON.stringify(options.body) : void 0,
1730
+ signal: _optionalChain([options, 'optionalAccess', _243 => _243.signal])
1719
1731
  });
1720
1732
  if (!response.ok) {
1721
1733
  const body = await response.text();
@@ -1756,7 +1768,7 @@ var HttpClient = class {
1756
1768
  throw error;
1757
1769
  }
1758
1770
  const normalized = error instanceof Error ? error : new Error(String(error));
1759
- if (isAbortLikeError(normalized) && _optionalChain([options, 'optionalAccess', _241 => _241.signal, 'optionalAccess', _242 => _242.aborted])) {
1771
+ if (isAbortLikeError(normalized) && _optionalChain([options, 'optionalAccess', _244 => _244.signal, 'optionalAccess', _245 => _245.aborted])) {
1760
1772
  throw new (0, _chunk7P5AA3SNjs.DeeplineError)(
1761
1773
  `Stream from ${this.config.baseUrl} was aborted by the caller.`,
1762
1774
  void 0,
@@ -1777,7 +1789,7 @@ var HttpClient = class {
1777
1789
  }
1778
1790
  throw new (0, _chunk7P5AA3SNjs.DeeplineError)(
1779
1791
  withCoworkNetworkHint(
1780
- _optionalChain([lastError, 'optionalAccess', _243 => _243.message]) ? `Unable to stream from ${this.config.baseUrl}. ${lastError.message}` : `Unable to stream from ${this.config.baseUrl}.`
1792
+ _optionalChain([lastError, 'optionalAccess', _246 => _246.message]) ? `Unable to stream from ${this.config.baseUrl}. ${lastError.message}` : `Unable to stream from ${this.config.baseUrl}.`
1781
1793
  )
1782
1794
  );
1783
1795
  }
@@ -1839,15 +1851,15 @@ function parseResponseBody(body) {
1839
1851
  }
1840
1852
  function isProviderOriginatedHttpError(parsed) {
1841
1853
  const response = asRecord(parsed);
1842
- const error = asRecord(_optionalChain([response, 'optionalAccess', _244 => _244.error]));
1843
- const failureOrigin = _nullishCoalesce(_optionalChain([error, 'optionalAccess', _245 => _245.failure_origin]), () => ( _optionalChain([response, 'optionalAccess', _246 => _246.failure_origin])));
1844
- const code = _nullishCoalesce(_optionalChain([error, 'optionalAccess', _247 => _247.code]), () => ( _optionalChain([response, 'optionalAccess', _248 => _248.code])));
1854
+ const error = asRecord(_optionalChain([response, 'optionalAccess', _247 => _247.error]));
1855
+ const failureOrigin = _nullishCoalesce(_optionalChain([error, 'optionalAccess', _248 => _248.failure_origin]), () => ( _optionalChain([response, 'optionalAccess', _249 => _249.failure_origin])));
1856
+ const code = _nullishCoalesce(_optionalChain([error, 'optionalAccess', _250 => _250.code]), () => ( _optionalChain([response, 'optionalAccess', _251 => _251.code])));
1845
1857
  return failureOrigin === "provider" || code === "UPSTREAM_BLOCKED";
1846
1858
  }
1847
1859
  function isMonitorRateLimitEnvelope(parsed) {
1848
1860
  const response = asRecord(parsed);
1849
- const error = asRecord(_optionalChain([response, 'optionalAccess', _249 => _249.error]));
1850
- return _optionalChain([error, 'optionalAccess', _250 => _250.code]) === "monitor_upstream_rate_limited" && typeof error.message === "string";
1861
+ const error = asRecord(_optionalChain([response, 'optionalAccess', _252 => _252.error]));
1862
+ return _optionalChain([error, 'optionalAccess', _253 => _253.code]) === "monitor_upstream_rate_limited" && typeof error.message === "string";
1851
1863
  }
1852
1864
  function asRecord(value) {
1853
1865
  return typeof value === "object" && value !== null ? value : null;
@@ -1863,7 +1875,7 @@ function detectHtmlErrorBody(body, contentType) {
1863
1875
  return null;
1864
1876
  }
1865
1877
  const titleMatch = trimmed.match(/<title[^>]*>([\s\S]*?)<\/title>/i);
1866
- const title = _optionalChain([titleMatch, 'optionalAccess', _251 => _251[1], 'optionalAccess', _252 => _252.replace, 'call', _253 => _253(/\s+/g, " "), 'access', _254 => _254.trim, 'call', _255 => _255()]) || void 0;
1878
+ const title = _optionalChain([titleMatch, 'optionalAccess', _254 => _254[1], 'optionalAccess', _255 => _255.replace, 'call', _256 => _256(/\s+/g, " "), 'access', _257 => _257.trim, 'call', _258 => _258()]) || void 0;
1867
1879
  const workerThrewException = /worker threw exception/i.test(trimmed);
1868
1880
  return {
1869
1881
  title,
@@ -1947,20 +1959,20 @@ function decodeSseFrame(frame) {
1947
1959
  }
1948
1960
  function sleep(ms, signal) {
1949
1961
  return new Promise((resolve2, reject) => {
1950
- if (_optionalChain([signal, 'optionalAccess', _256 => _256.aborted])) {
1962
+ if (_optionalChain([signal, 'optionalAccess', _259 => _259.aborted])) {
1951
1963
  reject(requestCancelledError(signal));
1952
1964
  return;
1953
1965
  }
1954
1966
  const timeoutId = setTimeout(() => {
1955
- _optionalChain([signal, 'optionalAccess', _257 => _257.removeEventListener, 'call', _258 => _258("abort", abort)]);
1967
+ _optionalChain([signal, 'optionalAccess', _260 => _260.removeEventListener, 'call', _261 => _261("abort", abort)]);
1956
1968
  resolve2();
1957
1969
  }, ms);
1958
1970
  const abort = () => {
1959
1971
  clearTimeout(timeoutId);
1960
- _optionalChain([signal, 'optionalAccess', _259 => _259.removeEventListener, 'call', _260 => _260("abort", abort)]);
1972
+ _optionalChain([signal, 'optionalAccess', _262 => _262.removeEventListener, 'call', _263 => _263("abort", abort)]);
1961
1973
  reject(requestCancelledError(signal));
1962
1974
  };
1963
- _optionalChain([signal, 'optionalAccess', _261 => _261.addEventListener, 'call', _262 => _262("abort", abort, { once: true })]);
1975
+ _optionalChain([signal, 'optionalAccess', _264 => _264.addEventListener, 'call', _265 => _265("abort", abort, { once: true })]);
1964
1976
  });
1965
1977
  }
1966
1978
  function withCoworkNetworkHint(message) {
@@ -2021,4 +2033,5 @@ ${COWORK_NETWORK_HINT}`;
2021
2033
 
2022
2034
 
2023
2035
 
2024
- exports.CustomerDbQueryOutcomeUnknownError = CustomerDbQueryOutcomeUnknownError; exports.AuthError = AuthError; exports.RateLimitError = RateLimitError; exports.ToolRateLimitError = ToolRateLimitError; exports.ConfigError = ConfigError; exports.HOST_URL_ENV = HOST_URL_ENV; exports.API_KEY_ENV = API_KEY_ENV; exports.ACTIVE_ORG_ID_ENV = ACTIVE_ORG_ID_ENV; exports.ACTIVE_ORG_NAME_ENV = ACTIVE_ORG_NAME_ENV; exports.FEATURES_ENV = FEATURES_ENV; exports.PROD_URL = PROD_URL; exports.featureEnvValues = featureEnvValues; exports.storedHostApiKey = storedHostApiKey; exports.storedHostFeatures = storedHostFeatures; exports.baseUrlSlug = baseUrlSlug; exports.sdkCliStateDirPath = sdkCliStateDirPath; exports.hostConfigDirPath = hostConfigDirPath; exports.hostEnvFilePath = hostEnvFilePath; exports.saveHostEnvValues = saveHostEnvValues; exports.autoDetectBaseUrl = autoDetectBaseUrl; exports.resolveApiKeyForBaseUrl = resolveApiKeyForBaseUrl; exports.resolveProjectApiKeyForBaseUrl = resolveProjectApiKeyForBaseUrl; exports.resolveGlobalApiKeyForBaseUrl = resolveGlobalApiKeyForBaseUrl; exports.getResolvedProjectAuthSource = getResolvedProjectAuthSource; exports.resolveBaseUrlOnly = resolveBaseUrlOnly; exports.resolveConfig = resolveConfig; exports.ensureProjectPrivatePathsIgnored = ensureProjectPrivatePathsIgnored; exports.saveProjectDeeplineEnvValues = saveProjectDeeplineEnvValues; exports.resolveProjectPinTarget = resolveProjectPinTarget; exports.getActiveProjectAuthSource = getActiveProjectAuthSource; exports.resolveCliAuthProvenance = resolveCliAuthProvenance; exports.resolveCliCommandContext = resolveCliCommandContext; exports.SDK_VERSION = SDK_VERSION; exports.SDK_API_MAJOR = SDK_API_MAJOR; exports.SDK_API_CONTRACT = SDK_API_CONTRACT; exports.detectAgentRuntime = detectAgentRuntime; exports.hasActivePluginSkills = hasActivePluginSkills; exports.KNOWN_SKILL_AGENTS = KNOWN_SKILL_AGENTS; exports.DEFAULT_SKILL_AGENTS = DEFAULT_SKILL_AGENTS; exports.skillsAgentPathSegment = skillsAgentPathSegment; exports.resolveAutoSyncSkillAgents = resolveAutoSyncSkillAgents; exports.readSdkSkillsLocalVersion = readSdkSkillsLocalVersion; exports.writeSdkSkillsLocalVersion = writeSdkSkillsLocalVersion; exports.deploymentProtectionHeaders = deploymentProtectionHeaders; exports.fetchWithDeploymentProtection = fetchWithDeploymentProtection; exports.COORDINATOR_INTERNAL_TOKEN_HEADER = COORDINATOR_INTERNAL_TOKEN_HEADER; exports.RUNTIME_ENVIRONMENT_TOKEN_HEADER = RUNTIME_ENVIRONMENT_TOKEN_HEADER; exports.RETAINED_PIPELINE_RECEIVERS_HEADER = RETAINED_PIPELINE_RECEIVERS_HEADER; exports.HttpClient = HttpClient;
2036
+
2037
+ exports.CustomerDbQueryOutcomeUnknownError = CustomerDbQueryOutcomeUnknownError; exports.AuthError = AuthError; exports.RateLimitError = RateLimitError; exports.ToolRateLimitError = ToolRateLimitError; exports.ConfigError = ConfigError; exports.HOST_URL_ENV = HOST_URL_ENV; exports.API_KEY_ENV = API_KEY_ENV; exports.ACTIVE_ORG_ID_ENV = ACTIVE_ORG_ID_ENV; exports.ACTIVE_ORG_NAME_ENV = ACTIVE_ORG_NAME_ENV; exports.FEATURES_ENV = FEATURES_ENV; exports.PROD_URL = PROD_URL; exports.featureEnvValues = featureEnvValues; exports.storedHostApiKey = storedHostApiKey; exports.storedHostFeatures = storedHostFeatures; exports.baseUrlSlug = baseUrlSlug; exports.sdkCliStateDirPath = sdkCliStateDirPath; exports.hostConfigDirPath = hostConfigDirPath; exports.hostEnvFilePath = hostEnvFilePath; exports.saveHostEnvValues = saveHostEnvValues; exports.autoDetectBaseUrl = autoDetectBaseUrl; exports.resolveApiKeyForBaseUrl = resolveApiKeyForBaseUrl; exports.resolveProjectApiKeyForBaseUrl = resolveProjectApiKeyForBaseUrl; exports.resolveGlobalApiKeyForBaseUrl = resolveGlobalApiKeyForBaseUrl; exports.getResolvedProjectAuthSource = getResolvedProjectAuthSource; exports.resolveBaseUrlOnly = resolveBaseUrlOnly; exports.resolveConfig = resolveConfig; exports.ensureProjectPrivatePathsIgnored = ensureProjectPrivatePathsIgnored; exports.saveProjectDeeplineEnvValues = saveProjectDeeplineEnvValues; exports.resolveProjectPinTarget = resolveProjectPinTarget; exports.getActiveProjectAuthSource = getActiveProjectAuthSource; exports.resolveCliAuthProvenance = resolveCliAuthProvenance; exports.resolveCliCommandContext = resolveCliCommandContext; exports.SDK_VERSION = SDK_VERSION; exports.SDK_API_MAJOR = SDK_API_MAJOR; exports.SDK_API_CONTRACT = SDK_API_CONTRACT; exports.agentSessionIdFromEnvironment = agentSessionIdFromEnvironment; exports.detectAgentRuntime = detectAgentRuntime; exports.hasActivePluginSkills = hasActivePluginSkills; exports.KNOWN_SKILL_AGENTS = KNOWN_SKILL_AGENTS; exports.DEFAULT_SKILL_AGENTS = DEFAULT_SKILL_AGENTS; exports.skillsAgentPathSegment = skillsAgentPathSegment; exports.resolveAutoSyncSkillAgents = resolveAutoSyncSkillAgents; exports.readSdkSkillsLocalVersion = readSdkSkillsLocalVersion; exports.writeSdkSkillsLocalVersion = writeSdkSkillsLocalVersion; exports.deploymentProtectionHeaders = deploymentProtectionHeaders; exports.fetchWithDeploymentProtection = fetchWithDeploymentProtection; exports.COORDINATOR_INTERNAL_TOKEN_HEADER = COORDINATOR_INTERNAL_TOKEN_HEADER; exports.RUNTIME_ENVIRONMENT_TOKEN_HEADER = RUNTIME_ENVIRONMENT_TOKEN_HEADER; exports.RETAINED_PIPELINE_RECEIVERS_HEADER = RETAINED_PIPELINE_RECEIVERS_HEADER; exports.HttpClient = HttpClient;
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  recentSearchRef,
12
12
  registerDeprecatedSearchCommand
13
- } from "./chunk-35JNW43E.mjs";
13
+ } from "./chunk-ID5OGCLU.mjs";
14
14
  import {
15
15
  extractSummaryFields,
16
16
  projectRowOutput,
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  DeeplineClient,
24
24
  validateExecutionIdempotencyKey
25
- } from "./chunk-7MRAPBWB.mjs";
25
+ } from "./chunk-SSRGN56V.mjs";
26
26
  import {
27
27
  beginToolExecuteCommand,
28
28
  getToolExecuteInvocationId,
@@ -36,11 +36,11 @@ import {
36
36
  printJsonError,
37
37
  renderCommandEnvelopeText,
38
38
  shouldEmitJson
39
- } from "./chunk-YQW2FPKQ.mjs";
39
+ } from "./chunk-J47TX67H.mjs";
40
40
  import {
41
41
  resolveConfig,
42
42
  sdkCliStateDirPath
43
- } from "./chunk-NQ42LHHS.mjs";
43
+ } from "./chunk-YMLGJ2B7.mjs";
44
44
  import {
45
45
  playToolListGetterMode
46
46
  } from "./chunk-NTVTZAVZ.mjs";
@@ -1029,7 +1029,7 @@ Examples:
1029
1029
  process.exitCode = await narrowView();
1030
1030
  return;
1031
1031
  }
1032
- const { describeAnything } = await import("./describe-V4BPRUES.mjs");
1032
+ const { describeAnything } = await import("./describe-OKSZOU3V.mjs");
1033
1033
  process.exitCode = await describeAnything(
1034
1034
  toolId,
1035
1035
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -15,7 +15,7 @@ import {
15
15
  RETAINED_PIPELINE_RECEIVERS_HEADER,
16
16
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
17
17
  resolveConfig
18
- } from "./chunk-NQ42LHHS.mjs";
18
+ } from "./chunk-YMLGJ2B7.mjs";
19
19
  import {
20
20
  PLAY_RUNTIME_BACKENDS,
21
21
  RAW_V2_TOOL_RESPONSE_CONTRACT,
@@ -10,11 +10,11 @@ import {
10
10
  } from "./chunk-EDWJY6T4.mjs";
11
11
  import {
12
12
  registerDeprecatedSearchCommand
13
- } from "./chunk-35JNW43E.mjs";
13
+ } from "./chunk-ID5OGCLU.mjs";
14
14
  import {
15
15
  handleDeploymentGet,
16
16
  handleDeploymentsList
17
- } from "./chunk-5ERCVX2D.mjs";
17
+ } from "./chunk-MIHJFRGP.mjs";
18
18
  import {
19
19
  PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
20
20
  PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER,
@@ -39,7 +39,7 @@ import {
39
39
  normalizeRunEventOperationRequest,
40
40
  parseLogLevel,
41
41
  playInputExampleArgs
42
- } from "./chunk-7MRAPBWB.mjs";
42
+ } from "./chunk-SSRGN56V.mjs";
43
43
  import {
44
44
  CSV_DATA_INPUT_KEY,
45
45
  buildNamedPlayRunRequest,
@@ -72,10 +72,10 @@ import {
72
72
  printJsonError,
73
73
  renderCommandEnvelopeText,
74
74
  shouldEmitJson
75
- } from "./chunk-YQW2FPKQ.mjs";
75
+ } from "./chunk-J47TX67H.mjs";
76
76
  import {
77
77
  fetchWithDeploymentProtection
78
- } from "./chunk-NQ42LHHS.mjs";
78
+ } from "./chunk-YMLGJ2B7.mjs";
79
79
  import {
80
80
  PLAY_DEFAULT_EXPORT,
81
81
  extractDefinedPlayName,
@@ -18166,7 +18166,7 @@ Examples:
18166
18166
  process.exitCode = await ownView();
18167
18167
  return;
18168
18168
  }
18169
- const { describeAnything } = await import("./describe-V4BPRUES.mjs");
18169
+ const { describeAnything } = await import("./describe-OKSZOU3V.mjs");
18170
18170
  process.exitCode = await describeAnything(
18171
18171
  name,
18172
18172
  {