deepline 0.3.393 → 0.3.394

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 (122) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +477 -10
  3. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +5 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/durable-call-policy.ts +28 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +251 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +12 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +10 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +25 -16
  9. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +1 -0
  10. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +69 -22
  11. package/dist/bundling-sources/shared_libs/plays/core.ts +1 -1
  12. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +18 -0
  13. package/dist/cli/auth-IHKISLJQ.js +39 -0
  14. package/dist/cli/{auth-5PXHA232.mjs → auth-OSXDAVCF.mjs} +4 -4
  15. package/dist/cli/{billing-JFB2XLSO.js → billing-EKLYOXUY.js} +75 -75
  16. package/dist/cli/{billing-Z2N7ZAGM.mjs → billing-ZNNKX3UR.mjs} +4 -4
  17. package/dist/cli/{chunk-OXNOAD6Y.js → chunk-2MDDA7A4.js} +26 -26
  18. package/dist/cli/{chunk-PTDECJGP.js → chunk-354JCXA2.js} +50 -50
  19. package/dist/cli/{chunk-RKMB3N7K.mjs → chunk-3HU47EGZ.mjs} +48 -9
  20. package/dist/cli/{chunk-6I73X254.mjs → chunk-3HWALOL2.mjs} +1 -1
  21. package/dist/cli/{chunk-VIQJIX2P.js → chunk-4P27AXEA.js} +65 -65
  22. package/dist/cli/{chunk-UOGZUA24.mjs → chunk-5BB2RGAX.mjs} +18 -8
  23. package/dist/cli/{chunk-RWHWF5ZJ.js → chunk-6YAUMG27.js} +1 -1
  24. package/dist/cli/{chunk-HLEESTCH.mjs → chunk-BP33SIZF.mjs} +1 -1
  25. package/dist/cli/{chunk-CDFH2DYL.js → chunk-CS6RAIVY.js} +4 -4
  26. package/dist/cli/{chunk-2HAD745V.js → chunk-E23BQ5SC.js} +9 -9
  27. package/dist/cli/{chunk-LMMEAMA7.mjs → chunk-FJGW5GXU.mjs} +1 -1
  28. package/dist/cli/{chunk-Q26LUSQ2.mjs → chunk-JHIJIHFB.mjs} +1 -1
  29. package/dist/cli/{chunk-PWSWAN7Q.js → chunk-KB4SDX5S.js} +48 -9
  30. package/dist/cli/{chunk-M7Y7JYZX.js → chunk-KGNTKMRG.js} +6 -6
  31. package/dist/cli/{chunk-4XX6443T.js → chunk-KI635JN4.js} +59 -59
  32. package/dist/cli/{chunk-Z3OOZM5L.js → chunk-KIUMEOM5.js} +8 -8
  33. package/dist/cli/{chunk-KIYU2TGL.mjs → chunk-M57J2SK4.mjs} +2 -2
  34. package/dist/cli/{chunk-FQ6VHPW4.mjs → chunk-MFB2VKBO.mjs} +2 -2
  35. package/dist/cli/{chunk-MS6GUPBB.js → chunk-MH73HMPV.js} +3 -3
  36. package/dist/cli/{chunk-AARX5L4B.js → chunk-MLPU5SMZ.js} +2 -2
  37. package/dist/cli/{chunk-5PRVMXKB.mjs → chunk-NR3DFKNF.mjs} +1 -1
  38. package/dist/cli/{chunk-W4WOMXR3.js → chunk-QIQBYKLB.js} +15 -15
  39. package/dist/cli/{chunk-VIWE6WRK.js → chunk-RBJYWRCF.js} +260 -250
  40. package/dist/cli/{chunk-LZPCDB7U.mjs → chunk-TJI2EN6K.mjs} +1 -1
  41. package/dist/cli/{chunk-4TCT77UF.js → chunk-URWF7NGQ.js} +6 -1
  42. package/dist/cli/{chunk-5KWKZIQR.mjs → chunk-UXFSWG3Q.mjs} +4 -4
  43. package/dist/cli/{chunk-L2SYLGRP.js → chunk-VK6FYZLP.js} +8 -8
  44. package/dist/cli/{chunk-7HR7BGZL.mjs → chunk-X63FDZJZ.mjs} +3 -3
  45. package/dist/cli/{chunk-4PT2VA3A.mjs → chunk-XRQ2AQL7.mjs} +2 -2
  46. package/dist/cli/{chunk-STNYIMIV.mjs → chunk-XXUDVEXK.mjs} +6 -6
  47. package/dist/cli/{chunk-PQSA443V.mjs → chunk-ZI2ZNDJK.mjs} +6 -1
  48. package/dist/cli/{chunk-2LGC4EFT.mjs → chunk-ZYBGA4AR.mjs} +3 -3
  49. package/dist/cli/command-docs.js +2 -2
  50. package/dist/cli/command-docs.mjs +1 -1
  51. package/dist/cli/{csv-KJWZHKCH.mjs → csv-5AXRB35H.mjs} +3 -3
  52. package/dist/cli/{csv-P3Z3YE7H.js → csv-LU7O75WE.js} +12 -12
  53. package/dist/cli/{db-NCM4CQIS.mjs → db-7XP5UWEW.mjs} +4 -4
  54. package/dist/cli/{db-NUZGJNQC.js → db-F7YTFKVM.js} +29 -29
  55. package/dist/cli/{describe-YGSEN5WC.js → describe-FRH32RDV.js} +20 -20
  56. package/dist/cli/{describe-WT6MM2GO.mjs → describe-K4ES5LIL.mjs} +10 -10
  57. package/dist/cli/{executions-XS2IPJ4W.mjs → executions-IEHEHJUO.mjs} +4 -4
  58. package/dist/cli/{executions-PCOLHN7Q.js → executions-RZV5XPT2.js} +6 -6
  59. package/dist/cli/{feedback-4MSH7TFU.js → feedback-3P65QTX3.js} +7 -7
  60. package/dist/cli/{feedback-CCLTS5SV.mjs → feedback-FPUVZBAN.mjs} +3 -3
  61. package/dist/cli/{git-K2DHPMPC.mjs → git-GLVVP7TY.mjs} +4 -4
  62. package/dist/cli/git-MFFAWVVX.js +23 -0
  63. package/dist/cli/index.js +95 -95
  64. package/dist/cli/index.mjs +33 -33
  65. package/dist/cli/{legacy-noops-B5S4AR3P.mjs → legacy-noops-3MOI6NBM.mjs} +4 -4
  66. package/dist/cli/{legacy-noops-GPNOPFXV.js → legacy-noops-XKSGZR7Q.js} +7 -7
  67. package/dist/cli/{monitors-JLMAIPRG.mjs → monitors-FTBGNEFG.mjs} +4 -4
  68. package/dist/cli/{monitors-ZAWD7NSN.js → monitors-NZ2DYNST.js} +85 -85
  69. package/dist/cli/{org-P2KN4CES.js → org-MCKDQXIV.js} +64 -64
  70. package/dist/cli/{org-T3JTHP4G.mjs → org-V2J5RBCN.mjs} +4 -4
  71. package/dist/cli/{play-NK6BLRGL.mjs → play-AJFGME3B.mjs} +9 -9
  72. package/dist/cli/play-WLSN2EO2.js +158 -0
  73. package/dist/cli/{providers-5QRZN3DT.js → providers-2JEZ2264.js} +7 -7
  74. package/dist/cli/{providers-3NQRA7IT.mjs → providers-I6RQJZFZ.mjs} +4 -4
  75. package/dist/cli/{quickstart-PIA2JGPV.mjs → quickstart-BIDQDMO4.mjs} +3 -3
  76. package/dist/cli/{quickstart-R7NUZGNW.js → quickstart-GJ2RPDU3.js} +5 -5
  77. package/dist/cli/search-5VN4YD4I.js +27 -0
  78. package/dist/cli/{search-AIDIIGLY.mjs → search-ELRXFWG5.mjs} +5 -5
  79. package/dist/cli/{secrets-BT3PGMWN.js → secrets-53IT6VXD.js} +13 -13
  80. package/dist/cli/{secrets-OQNHL45O.mjs → secrets-SQXGZXIC.mjs} +4 -4
  81. package/dist/cli/{sessions-SF7WJPJP.mjs → sessions-2X5QF7SL.mjs} +4 -4
  82. package/dist/cli/{sessions-EYXWOSWK.js → sessions-CAV5M77Y.js} +5 -5
  83. package/dist/cli/{settings-BA3GHBOD.js → settings-532WNAZO.js} +74 -74
  84. package/dist/cli/{settings-Y57JTFDD.mjs → settings-7P67VGCJ.mjs} +7 -7
  85. package/dist/cli/{setup-RERXYC66.js → setup-6L2VSUWJ.js} +41 -41
  86. package/dist/cli/{setup-7GR5GBHA.mjs → setup-QGGBV2LE.mjs} +6 -6
  87. package/dist/cli/{skills-SJWIQAV5.mjs → skills-3FE62WBG.mjs} +4 -4
  88. package/dist/cli/skills-S6NPZAN7.js +28 -0
  89. package/dist/cli/tools-647RLXQS.js +41 -0
  90. package/dist/cli/{tools-ZF3JXPNL.mjs → tools-DMR25DEF.mjs} +7 -7
  91. package/dist/cli/{update-FFFYQAOJ.mjs → update-6RZMHJZP.mjs} +6 -6
  92. package/dist/cli/update-WVTSC3EM.js +28 -0
  93. package/dist/cli/{workflow-XVFEEGAS.mjs → workflow-L2DQRE6R.mjs} +5 -5
  94. package/dist/cli/{workflow-SZJVQH4T.js → workflow-TX4F2PIX.js} +15 -15
  95. package/dist/{client-DU5dtHDy.d.mts → client-BktIPdIj.d.mts} +1 -1
  96. package/dist/{client-mCE88hC4.d.ts → client-C3O1Ipf3.d.ts} +1 -1
  97. package/dist/{compiler-manifest-DE4RdAiY.d.ts → compiler-manifest-DLxUY5kI.d.mts} +65 -11
  98. package/dist/{compiler-manifest-DE4RdAiY.d.mts → compiler-manifest-DLxUY5kI.d.ts} +65 -11
  99. package/dist/{index-Bi-f7HFT.d.ts → index-B_GM9E3q.d.ts} +1 -1
  100. package/dist/{index-BI6nWgaV.d.mts → index-SCb0NvDb.d.mts} +1 -1
  101. package/dist/index.d.mts +5 -5
  102. package/dist/index.d.ts +5 -5
  103. package/dist/index.js +7 -7
  104. package/dist/index.mjs +4 -4
  105. package/dist/install-integrity.json +85 -84
  106. package/dist/plays/bundle-play-file.d.mts +3 -3
  107. package/dist/plays/bundle-play-file.d.ts +3 -3
  108. package/dist/plays/bundle-play-file.mjs +2 -2
  109. package/dist/plays/run-request.d.mts +2 -2
  110. package/dist/plays/run-request.d.ts +2 -2
  111. package/dist/release.d.mts +1 -1
  112. package/dist/release.d.ts +1 -1
  113. package/dist/release.js +2 -2
  114. package/dist/release.mjs +1 -1
  115. package/package.json +1 -1
  116. package/dist/cli/auth-P3MVDTXM.js +0 -39
  117. package/dist/cli/git-RNM45FX4.js +0 -23
  118. package/dist/cli/play-PDXR6JFB.js +0 -158
  119. package/dist/cli/search-QRWL7MFM.js +0 -27
  120. package/dist/cli/skills-V7EY75HB.js +0 -28
  121. package/dist/cli/tools-H5HLBCHH.js +0 -41
  122. package/dist/cli/update-472HA3LT.js +0 -28
@@ -13,7 +13,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkL2SYLGRPjs = require('./chunk-L2SYLGRP.js');
16
+ var _chunkVK6FYZLPjs = require('./chunk-VK6FYZLP.js');
17
17
 
18
18
 
19
19
 
@@ -27,11 +27,11 @@ var _chunkL2SYLGRPjs = require('./chunk-L2SYLGRP.js');
27
27
  var _chunkRDXFGPJUjs = require('./chunk-RDXFGPJU.js');
28
28
 
29
29
 
30
- var _chunkPWSWAN7Qjs = require('./chunk-PWSWAN7Q.js');
30
+ var _chunkKB4SDX5Sjs = require('./chunk-KB4SDX5S.js');
31
31
 
32
32
 
33
33
 
34
- var _chunk2HAD745Vjs = require('./chunk-2HAD745V.js');
34
+ var _chunkE23BQ5SCjs = require('./chunk-E23BQ5SC.js');
35
35
 
36
36
 
37
37
  var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
@@ -48,11 +48,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
48
48
 
49
49
 
50
50
 
51
- var _chunkM7Y7JYZXjs = require('./chunk-M7Y7JYZX.js');
51
+ var _chunkKGNTKMRGjs = require('./chunk-KGNTKMRG.js');
52
52
 
53
53
 
54
54
 
55
- var _chunkCDFH2DYLjs = require('./chunk-CDFH2DYL.js');
55
+ var _chunkCS6RAIVYjs = require('./chunk-CS6RAIVY.js');
56
56
 
57
57
 
58
58
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -131,10 +131,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
131
131
  }
132
132
  };
133
133
  function pendingToolExecutionPath(input) {
134
- const config = _chunkCDFH2DYLjs.resolveConfig.call(void 0, );
134
+ const config = _chunkCS6RAIVYjs.resolveConfig.call(void 0, );
135
135
  const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkXDVT3GOMjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
136
136
  return _path.join.call(void 0,
137
- _chunkCDFH2DYLjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
137
+ _chunkCS6RAIVYjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
138
138
  `pending-tool-execution-${fingerprint}.json`
139
139
  );
140
140
  }
@@ -655,12 +655,12 @@ function categoryEnumerationRender(summaries) {
655
655
  };
656
656
  }
657
657
  async function listToolCategories(emitJson, compact) {
658
- const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
658
+ const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
659
659
  const rawTools = await client.listTools({ compact });
660
660
  const items = rawTools.map(toListedTool);
661
661
  const summaries = aggregateCategorySummaries(rawTools);
662
662
  const outputItems = compact ? items.map(compactTool) : items;
663
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
663
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
664
664
  {
665
665
  tools: outputItems,
666
666
  count: outputItems.length,
@@ -679,7 +679,7 @@ function unknownCategoryError(category, summaries, emitJson) {
679
679
  const known = summaries.map((item) => item.name);
680
680
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
681
681
  if (emitJson) {
682
- _chunkM7Y7JYZXjs.printJson.call(void 0, {
682
+ _chunkKGNTKMRGjs.printJson.call(void 0, {
683
683
  ok: false,
684
684
  exitCode: 4,
685
685
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -693,13 +693,13 @@ function unknownCategoryError(category, summaries, emitJson) {
693
693
  const render = categoryEnumerationRender(summaries);
694
694
  console.error(message);
695
695
  console.error("");
696
- console.error(_chunkM7Y7JYZXjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
696
+ console.error(_chunkKGNTKMRGjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
697
697
  console.error("");
698
698
  console.error(`Valid categories: ${known.join(", ")}`);
699
699
  return 4;
700
700
  }
701
701
  async function listToolsInCategory(category, emitJson) {
702
- const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
702
+ const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
703
703
  const rawTools = await client.listTools({
704
704
  categories: category,
705
705
  compact: false
@@ -736,7 +736,7 @@ async function listToolsInCategory(category, emitJson) {
736
736
  }
737
737
  ]
738
738
  };
739
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
739
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
740
740
  {
741
741
  category,
742
742
  total: rows.length,
@@ -749,7 +749,7 @@ async function listToolsInCategory(category, emitJson) {
749
749
  return 0;
750
750
  }
751
751
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
752
- const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
752
+ const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
753
753
  const items = (await client.listTools({
754
754
  categories: requestedCategories.join(","),
755
755
  compact
@@ -778,7 +778,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
778
778
  ]
779
779
  };
780
780
  const outputItems = compact ? items.map(compactTool) : items;
781
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
781
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
782
782
  {
783
783
  tools: outputItems,
784
784
  count: outputItems.length,
@@ -797,13 +797,13 @@ async function listTools(category, options = {}) {
797
797
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]), () => ( ""));
798
798
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
799
799
  const compact = options.compact !== false;
800
- const emitJson = options.json === true || _chunkM7Y7JYZXjs.shouldEmitJson.call(void 0, );
800
+ const emitJson = options.json === true || _chunkKGNTKMRGjs.shouldEmitJson.call(void 0, );
801
801
  if (positional && flagCategories.length > 0) {
802
802
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
803
803
  if (!flagIsSameSingle) {
804
804
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
805
805
  if (emitJson) {
806
- _chunkM7Y7JYZXjs.printJson.call(void 0, {
806
+ _chunkKGNTKMRGjs.printJson.call(void 0, {
807
807
  ok: false,
808
808
  exitCode: 2,
809
809
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -830,7 +830,7 @@ async function grepTools(queryInput, options = {}) {
830
830
  console.error("Usage: deepline tools grep <query> [--json]");
831
831
  return 1;
832
832
  }
833
- const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
833
+ const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
834
834
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
835
835
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
836
836
  const jsonOutput = options.json === true;
@@ -873,7 +873,7 @@ async function grepTools(queryInput, options = {}) {
873
873
  query,
874
874
  mode
875
875
  }) : null;
876
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
876
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
877
877
  {
878
878
  tools: outputTools,
879
879
  count: outputTools.length,
@@ -891,7 +891,7 @@ async function grepTools(queryInput, options = {}) {
891
891
  } : {},
892
892
  commandTemplates: TOOL_COMMAND_TEMPLATES
893
893
  },
894
- { json: options.json || _chunkM7Y7JYZXjs.shouldEmitJson.call(void 0, ) }
894
+ { json: options.json || _chunkKGNTKMRGjs.shouldEmitJson.call(void 0, ) }
895
895
  );
896
896
  return 0;
897
897
  }
@@ -1037,7 +1037,7 @@ Output:
1037
1037
  "--credentials-file must contain a nonempty JSON object of string credential values."
1038
1038
  );
1039
1039
  }
1040
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().setIntegrationCredentials(
1040
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().setIntegrationCredentials(
1041
1041
  provider,
1042
1042
  credentials
1043
1043
  );
@@ -1047,7 +1047,7 @@ Output:
1047
1047
  );
1048
1048
  }
1049
1049
  const confirmation = { provider, credential_saved: true };
1050
- if (_chunkM7Y7JYZXjs.shouldEmitJson.call(void 0, options.json))
1050
+ if (_chunkKGNTKMRGjs.shouldEmitJson.call(void 0, options.json))
1051
1051
  console.log(JSON.stringify(confirmation));
1052
1052
  else
1053
1053
  console.log(
@@ -1087,7 +1087,7 @@ Examples:
1087
1087
  json: Boolean(options.json)
1088
1088
  });
1089
1089
  });
1090
- _chunkL2SYLGRPjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1090
+ _chunkVK6FYZLPjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1091
1091
  tools.command("grep <query>").description(
1092
1092
  "Literal grep over tool ids, descriptions, categories, and input fields."
1093
1093
  ).addHelpText(
@@ -1188,7 +1188,7 @@ Examples:
1188
1188
  process.exitCode = await narrowView();
1189
1189
  return;
1190
1190
  }
1191
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-YGSEN5WC.js")));
1191
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FRH32RDV.js")));
1192
1192
  process.exitCode = await describeAnything(
1193
1193
  toolId,
1194
1194
  {
@@ -1274,7 +1274,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1274
1274
  console.error("Usage: deepline tools describe <toolId> [--json]");
1275
1275
  return 1;
1276
1276
  }
1277
- const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
1277
+ const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
1278
1278
  let tool;
1279
1279
  try {
1280
1280
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1328,10 +1328,10 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1328
1328
  const lines = toolPricingOnlyLines(tool, toolId);
1329
1329
  if (inferenceQuote)
1330
1330
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1331
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
1331
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
1332
1332
  {
1333
1333
  toolId: String(tool.toolId || toolId),
1334
- cost: _chunkL2SYLGRPjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1334
+ cost: _chunkVK6FYZLPjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1335
1335
  ...modelDescription ? { modelOptions: modelDescription } : {},
1336
1336
  ...isMonitorTypeTool(tool) ? { pricing: recordField(tool, "pricing") } : {},
1337
1337
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1346,7 +1346,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1346
1346
  }
1347
1347
  if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
1348
1348
  const contract = toolContractJsonForDescribe(tool, toolId);
1349
- _chunkM7Y7JYZXjs.printCompactJson.call(void 0, {
1349
+ _chunkKGNTKMRGjs.printCompactJson.call(void 0, {
1350
1350
  toolId: contract.toolId,
1351
1351
  ...options.schemaOnly ? {
1352
1352
  inputSchema: contract.inputSchema,
@@ -1369,7 +1369,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1369
1369
  return 0;
1370
1370
  }
1371
1371
  if (options.contractJson) {
1372
- _chunkM7Y7JYZXjs.printCompactJson.call(void 0, {
1372
+ _chunkKGNTKMRGjs.printCompactJson.call(void 0, {
1373
1373
  ...toolContractJsonForDescribe(tool, toolId),
1374
1374
  ...modelDescription ? { modelOptions: modelDescription } : {},
1375
1375
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1378,7 +1378,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1378
1378
  }
1379
1379
  const emitJson = options.json === true;
1380
1380
  if (emitJson) {
1381
- _chunkM7Y7JYZXjs.printCompactJson.call(void 0, {
1381
+ _chunkKGNTKMRGjs.printCompactJson.call(void 0, {
1382
1382
  ...toolMetadataJsonForDescribe(tool, toolId),
1383
1383
  ...modelDescription ? { modelOptions: modelDescription } : {},
1384
1384
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1449,13 +1449,13 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
1449
1449
  arrayField2(toolExecutionResult, "extractedLists", "extracted_lists")
1450
1450
  ).map((entry) => ({
1451
1451
  ...entry,
1452
- returnType: _chunkPWSWAN7Qjs.playToolListGetterMode.call(void 0, authoringContractEdition) === "array" ? "Array" : "PlayDataset",
1453
- rowsExpression: _chunkPWSWAN7Qjs.playToolListGetterMode.call(void 0, authoringContractEdition) === "array" ? entry.expression : `await ${entry.expression}.materialize()`
1452
+ returnType: _chunkKB4SDX5Sjs.playToolListGetterMode.call(void 0, authoringContractEdition) === "array" ? "Array" : "PlayDataset",
1453
+ rowsExpression: _chunkKB4SDX5Sjs.playToolListGetterMode.call(void 0, authoringContractEdition) === "array" ? entry.expression : `await ${entry.expression}.materialize()`
1454
1454
  }));
1455
1455
  const extractedValues = extractionContractEntries(
1456
1456
  arrayField2(toolExecutionResult, "extractedValues", "extracted_values")
1457
1457
  );
1458
- const pricing = _chunkL2SYLGRPjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1458
+ const pricing = _chunkVK6FYZLPjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1459
1459
  const executionMetadataRecord = recordField(
1460
1460
  tool,
1461
1461
  "executionMetadata",
@@ -1794,7 +1794,7 @@ function describedTool(tool, requestedToolId) {
1794
1794
  stringField2(cost, "displayText"),
1795
1795
  // "Free (free)" says the same thing twice.
1796
1796
  billing.toLowerCase() === stringField2(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
1797
- _chunkL2SYLGRPjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkL2SYLGRPjs.observedMaxText.call(void 0, cost)}`
1797
+ _chunkVK6FYZLPjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkVK6FYZLPjs.observedMaxText.call(void 0, cost)}`
1798
1798
  ].filter(Boolean).join(" ") || void 0,
1799
1799
  guidance: [
1800
1800
  ...contract.deprecated === true ? [`Deprecated. ${stringField2(deprecation, "message")}`.trim()] : [],
@@ -1931,7 +1931,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1931
1931
  return monitorTypePricingLines(tool);
1932
1932
  }
1933
1933
  const toolId = String(tool.toolId || requestedToolId);
1934
- const cost = _chunkL2SYLGRPjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1934
+ const cost = _chunkVK6FYZLPjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1935
1935
  const pricingModel = stringField2(cost, "pricingModel") || "unknown";
1936
1936
  const billing = stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || stringField2(cost, "billingMode") || "unknown";
1937
1937
  const explicitUnit = stringField2(cost, "unit");
@@ -1943,7 +1943,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1943
1943
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1944
1944
  return [
1945
1945
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
1946
- ..._chunkL2SYLGRPjs.observedMaxText.call(void 0, cost) ? [` ${_chunkL2SYLGRPjs.observedMaxText.call(void 0, cost)}`] : [],
1946
+ ..._chunkVK6FYZLPjs.observedMaxText.call(void 0, cost) ? [` ${_chunkVK6FYZLPjs.observedMaxText.call(void 0, cost)}`] : [],
1947
1947
  ...cost.observedReference || cost.estimatedRange ? [
1948
1948
  ...summary ? [` ${summary}`] : [],
1949
1949
  ...(_nullishCoalesce(cost.details, () => ( []))).map((detail) => ` ${detail}`)
@@ -2051,7 +2051,7 @@ function printToolExamplesOnly(tool, requestedToolId) {
2051
2051
  ), () => ( listGetters.find(isRecord)));
2052
2052
  if (isRecord(firstList)) {
2053
2053
  const name = safeIdentifier(stringField2(firstList, "name") || "list");
2054
- if (_chunkPWSWAN7Qjs.playToolListGetterMode.call(void 0, ) === "array") {
2054
+ if (_chunkKB4SDX5Sjs.playToolListGetterMode.call(void 0, ) === "array") {
2055
2055
  console.log(`const ${name}_rows = ${playResultExpression(firstList)};`);
2056
2056
  } else {
2057
2057
  console.log(`const ${name}_ds = ${playResultExpression(firstList)};`);
@@ -2127,7 +2127,7 @@ function printToolGettersOnly(tool, requestedToolId) {
2127
2127
  }
2128
2128
  }
2129
2129
  function printListGetterConsumption() {
2130
- if (_chunkPWSWAN7Qjs.playToolListGetterMode.call(void 0, ) === "array") {
2130
+ if (_chunkKB4SDX5Sjs.playToolListGetterMode.call(void 0, ) === "array") {
2131
2131
  console.log(
2132
2132
  "Use the ordinary array directly, or pass it to ctx.dataset to persist row work. No provider pagination is fetched. Lazy or incomplete lists throw; use readList for an explicit dataset read. A missing getter is not an empty list."
2133
2133
  );
@@ -2138,7 +2138,7 @@ function printListGetterConsumption() {
2138
2138
  );
2139
2139
  }
2140
2140
  function listGetterHeading() {
2141
- return _chunkPWSWAN7Qjs.playToolListGetterMode.call(void 0, ) === "array" ? "Lists (ordinary JavaScript arrays):" : "Lists (PlayDataset, not a JavaScript array):";
2141
+ return _chunkKB4SDX5Sjs.playToolListGetterMode.call(void 0, ) === "array" ? "Lists (ordinary JavaScript arrays):" : "Lists (PlayDataset, not a JavaScript array):";
2142
2142
  }
2143
2143
  function sampleValueForField(field) {
2144
2144
  const name = stringField2(field, "name").toLowerCase();
@@ -2221,7 +2221,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId) {
2221
2221
  } = tool;
2222
2222
  const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
2223
2223
  return {
2224
- cost: _chunkL2SYLGRPjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
2224
+ cost: _chunkVK6FYZLPjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
2225
2225
  ...publicTool,
2226
2226
  toolId,
2227
2227
  provider: tool.provider,
@@ -2279,7 +2279,7 @@ function usageGuidanceWithAccessDefaults(usageGuidance) {
2279
2279
  extractedLists: {
2280
2280
  ...recordField(existingAccess, "extractedLists"),
2281
2281
  expression: "toolExecutionResult.extractedLists.<name>.get()",
2282
- meaning: _chunkPWSWAN7Qjs.playToolListGetterMode.call(void 0, ) === "array" ? "Returns an ordinary array from this response. Use array methods directly or pass it to ctx.dataset to persist row work. Lazy or incomplete lists throw; use readList for an explicit dataset read. It does not fetch provider pages." : "Returns a PlayDataset, not a JavaScript array. Pass the handle to ctx.dataset, use first(), async iteration, or await handle.materialize() for the complete current list within the memory cap. materialize(n) and peek(n) return a prefix; none fetch additional provider pages. A missing getter is not an empty list."
2282
+ meaning: _chunkKB4SDX5Sjs.playToolListGetterMode.call(void 0, ) === "array" ? "Returns an ordinary array from this response. Use array methods directly or pass it to ctx.dataset to persist row work. Lazy or incomplete lists throw; use readList for an explicit dataset read. It does not fetch provider pages." : "Returns a PlayDataset, not a JavaScript array. Pass the handle to ctx.dataset, use first(), async iteration, or await handle.materialize() for the complete current list within the memory cap. materialize(n) and peek(n) return a prefix; none fetch additional provider pages. A missing getter is not an empty list."
2283
2283
  },
2284
2284
  rawToolResponse: {
2285
2285
  expression: "toolExecutionResult.toolResponse.rawV2",
@@ -2835,7 +2835,7 @@ function parseExecuteOptions(toolId, options, output) {
2835
2835
  outputFormat = normalizeOutputFormat(options.outputFormat);
2836
2836
  }
2837
2837
  if (options.idempotencyKey !== void 0) {
2838
- _chunk2HAD745Vjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2838
+ _chunkE23BQ5SCjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2839
2839
  }
2840
2840
  if (options.recoveryTimeoutMs !== void 0) {
2841
2841
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2920,8 +2920,8 @@ export default definePlay(${JSON.stringify(playName)}, async (ctx) => {
2920
2920
  const rows = list.get();
2921
2921
  // ${sampleRows}
2922
2922
  // columns: ${columns}
2923
- // ${_chunkPWSWAN7Qjs.playToolListGetterMode.call(void 0, ) === "array" ? "extractedLists.<name>.get() returns an ordinary array from this response." : "extractedLists.<name>.get() returns a dataset handle for row-shaped list outputs."}
2924
- // ${_chunkPWSWAN7Qjs.playToolListGetterMode.call(void 0, ) === "array" ? "Use array methods directly; pass rows to ctx.dataset to persist row work." : "Pass it to ctx.dataset; use rows.peek/count/materialize only for deliberate bounded inspection."}
2923
+ // ${_chunkKB4SDX5Sjs.playToolListGetterMode.call(void 0, ) === "array" ? "extractedLists.<name>.get() returns an ordinary array from this response." : "extractedLists.<name>.get() returns a dataset handle for row-shaped list outputs."}
2924
+ // ${_chunkKB4SDX5Sjs.playToolListGetterMode.call(void 0, ) === "array" ? "Use array methods directly; pass rows to ctx.dataset to persist row work." : "Pass it to ctx.dataset; use rows.peek/count/materialize only for deliberate bounded inspection."}
2925
2925
  // .withColumn('email_waterfall', (row, rowCtx) => rowCtx.runPlay('name_domain_email', 'name-and-domain-to-email', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), domain: String(row.domain ?? '') }, { description: 'Resolve email.' }))
2926
2926
  // .withColumn('phone_waterfall', (row, rowCtx) => rowCtx.runPlay('contact_phone', 'contact-to-phone', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), email: String(row.email ?? '') }, { description: 'Resolve phone.' }))
2927
2927
  // ctx.dataset is idempotent for completed rows during same-run recovery. New runs follow each call's freshness.
@@ -3146,20 +3146,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
3146
3146
  }
3147
3147
  async function executeTool(toolId, options) {
3148
3148
  const output = toolExecuteJsonOption(options.json);
3149
- const wantsJson = _chunkM7Y7JYZXjs.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
3149
+ const wantsJson = _chunkKGNTKMRGjs.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
3150
3150
  let parsed;
3151
3151
  try {
3152
3152
  parsed = parseExecuteOptions(toolId, options, output);
3153
3153
  } catch (error) {
3154
3154
  if (wantsJson) {
3155
- _chunkM7Y7JYZXjs.printJsonError.call(void 0, error);
3155
+ _chunkKGNTKMRGjs.printJsonError.call(void 0, error);
3156
3156
  } else {
3157
3157
  console.error(error instanceof Error ? error.message : String(error));
3158
3158
  }
3159
3159
  return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
3160
3160
  }
3161
3161
  const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
3162
- const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
3162
+ const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
3163
3163
  let metadata;
3164
3164
  try {
3165
3165
  metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
@@ -3174,7 +3174,7 @@ async function executeTool(toolId, options) {
3174
3174
  );
3175
3175
  if (play) {
3176
3176
  if (wantsJson) {
3177
- _chunkM7Y7JYZXjs.printJsonError.call(void 0,
3177
+ _chunkKGNTKMRGjs.printJsonError.call(void 0,
3178
3178
  new Error(playAliasToolErrorMessage(parsed.toolId, play))
3179
3179
  );
3180
3180
  } else {
@@ -3187,7 +3187,7 @@ async function executeTool(toolId, options) {
3187
3187
  }
3188
3188
  if (isPlayLikeTool(metadata)) {
3189
3189
  if (wantsJson) {
3190
- _chunkM7Y7JYZXjs.printJsonError.call(void 0,
3190
+ _chunkKGNTKMRGjs.printJsonError.call(void 0,
3191
3191
  new Error(
3192
3192
  playLikeToolExecuteErrorMessage(
3193
3193
  parsed.toolId,
@@ -3235,7 +3235,7 @@ async function executeTool(toolId, options) {
3235
3235
  responseIntent,
3236
3236
  ...idempotencyKey ? { idempotencyKey } : {},
3237
3237
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
3238
- searchRef: _chunkL2SYLGRPjs.recentSearchRef.call(void 0, ),
3238
+ searchRef: _chunkVK6FYZLPjs.recentSearchRef.call(void 0, ),
3239
3239
  cliInvocationId,
3240
3240
  onResponseReceived: _chunkZMVJSS6Njs.recordApiResponse
3241
3241
  }).catch((error) => {
@@ -3276,7 +3276,7 @@ async function executeTool(toolId, options) {
3276
3276
  const executeExitCode = toolExecuteExitCode(baseEnvelope);
3277
3277
  const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
3278
3278
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3279
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3279
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3280
3280
  return true;
3281
3281
  }
3282
3282
  if (parsed.outputFormat === "json_file") {
@@ -3284,7 +3284,7 @@ async function executeTool(toolId, options) {
3284
3284
  rawResponse,
3285
3285
  `payload_${parsed.toolId}`
3286
3286
  );
3287
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
3287
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
3288
3288
  {
3289
3289
  ...baseEnvelope,
3290
3290
  local: {
@@ -3306,7 +3306,7 @@ async function executeTool(toolId, options) {
3306
3306
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3307
3307
  );
3308
3308
  if (wantsJson) {
3309
- _chunkM7Y7JYZXjs.printJsonError.call(void 0, error);
3309
+ _chunkKGNTKMRGjs.printJsonError.call(void 0, error);
3310
3310
  } else {
3311
3311
  console.error(error.message);
3312
3312
  }
@@ -3317,7 +3317,7 @@ async function executeTool(toolId, options) {
3317
3317
  rawResponse,
3318
3318
  `payload_${parsed.toolId}`
3319
3319
  );
3320
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
3320
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
3321
3321
  {
3322
3322
  ...baseEnvelope,
3323
3323
  local: {
@@ -3328,7 +3328,7 @@ async function executeTool(toolId, options) {
3328
3328
  );
3329
3329
  return true;
3330
3330
  }
3331
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3331
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3332
3332
  return true;
3333
3333
  }
3334
3334
  const rowOutput = _chunkRDXFGPJUjs.projectRowOutput.call(void 0, listConversion);
@@ -3352,7 +3352,7 @@ async function executeTool(toolId, options) {
3352
3352
  seededScript
3353
3353
  });
3354
3354
  if (parsed.outputFormat === "csv_file") {
3355
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3355
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3356
3356
  return true;
3357
3357
  }
3358
3358
  if (parsed.outPath) {
@@ -3360,7 +3360,7 @@ async function executeTool(toolId, options) {
3360
3360
  toolId: parsed.toolId,
3361
3361
  idempotencyKey
3362
3362
  });
3363
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3363
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3364
3364
  json: wantsJson,
3365
3365
  text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
3366
3366
  inspect: ${inspection.inspect}
@@ -3369,7 +3369,7 @@ inspect: ${inspection.inspect}
3369
3369
  return true;
3370
3370
  }
3371
3371
  if (parsed.noPreview) {
3372
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
3372
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
3373
3373
  {
3374
3374
  ...materializedEnvelope,
3375
3375
  local: {
@@ -3382,7 +3382,7 @@ inspect: ${inspection.inspect}
3382
3382
  );
3383
3383
  return true;
3384
3384
  }
3385
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3385
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3386
3386
  json: wantsJson && parsed.outputFormat !== "csv"
3387
3387
  });
3388
3388
  return true;
@@ -1,10 +1,10 @@
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
3
 
4
- var _chunkM7Y7JYZXjs = require('./chunk-M7Y7JYZX.js');
4
+ var _chunkKGNTKMRGjs = require('./chunk-KGNTKMRG.js');
5
5
 
6
6
 
7
- var _chunkCDFH2DYLjs = require('./chunk-CDFH2DYL.js');
7
+ var _chunkCS6RAIVYjs = require('./chunk-CS6RAIVY.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunkCDFH2DYLjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkCS6RAIVYjs.agentSessionIdFromEnvironment.call(void 0, );
143
143
  const cwd = process.cwd();
144
144
  return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
145
145
  (candidate) => sessionStartedInDirectory(candidate, cwd)
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
448
448
  return { encodedContent: encoded, needsChunking: true };
449
449
  }
450
450
  async function uploadPayload(path, payload) {
451
- const { http } = _chunkM7Y7JYZXjs.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkKGNTKMRGjs.getAuthedHttpClient.call(void 0, );
452
452
  return await http.post(path, payload);
453
453
  }
454
454
  async function uploadChunkedSessions(sessions, options) {
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
481
481
  ...options.rating ? { rating: options.rating } : {}
482
482
  });
483
483
  const sessionIds = sessions.map((session) => session.sessionId);
484
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
484
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
485
485
  {
486
486
  ...response,
487
487
  ok: true,
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
513
513
  filename: _path.basename.call(void 0, filePath),
514
514
  ...rating ? { rating } : {}
515
515
  });
516
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
516
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
517
517
  {
518
518
  ...response2,
519
519
  ok: true,
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
563
563
  ...rating ? { rating } : {}
564
564
  });
565
565
  const sessionIds = built.map((session) => session.sessionId);
566
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
566
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
567
567
  {
568
568
  ...response,
569
569
  ok: true,
@@ -671,7 +671,7 @@ ${refreshMeta}
671
671
  </body>
672
672
  </html>`;
673
673
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
674
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
674
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-5PRVMXKB.mjs";
4
+ } from "./chunk-NR3DFKNF.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-LMMEAMA7.mjs";
7
+ } from "./chunk-FJGW5GXU.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-5PRVMXKB.mjs";
5
+ } from "./chunk-NR3DFKNF.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-LMMEAMA7.mjs";
28
+ } from "./chunk-FJGW5GXU.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -3,7 +3,7 @@
3
3
  var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
4
4
 
5
5
 
6
- var _chunkPWSWAN7Qjs = require('./chunk-PWSWAN7Q.js');
6
+ var _chunkKB4SDX5Sjs = require('./chunk-KB4SDX5S.js');
7
7
 
8
8
 
9
9
 
@@ -54,7 +54,7 @@ function buildPlayContractCompatibility(input) {
54
54
  artifactVersion: PLAY_ARTIFACT_VERSION,
55
55
  runtimeBackend: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _ => _.runtimeBackend]), () => ( null)),
56
56
  toolErrorSchemaVersion: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _2 => _2.toolErrorSchemaVersion]), () => ( _chunk7P5AA3SNjs.TOOL_EXECUTION_ERROR_SCHEMA_VERSION)),
57
- authoringContractEdition: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _3 => _3.authoringContractEdition]), () => ( _chunkPWSWAN7Qjs.PLAY_AUTHORING_CONTRACT_EDITION)),
57
+ authoringContractEdition: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _3 => _3.authoringContractEdition]), () => ( _chunkKB4SDX5Sjs.PLAY_AUTHORING_CONTRACT_EDITION)),
58
58
  toolResponseContract: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _4 => _4.toolResponseContract]), () => ( _chunkS6R3OX7Bjs.RAW_V2_TOOL_RESPONSE_CONTRACT)),
59
59
  toolResponseReceiptRevision: _chunkS6R3OX7Bjs.normalizeToolResponseReceiptRevision.call(void 0,
60
60
  _nullishCoalesce(_optionalChain([input, 'optionalAccess', _5 => _5.toolResponseReceiptRevision]), () => ( _chunkS6R3OX7Bjs.RAW_V2_TOOL_RESPONSE_RECEIPT_REVISION))
@@ -2733,7 +2733,7 @@ async function bundlePlayFile(filePath, options) {
2733
2733
  analysis.graphHash = sha256(
2734
2734
  `${analysis.graphHash}
2735
2735
  entry-export:${exportName}
2736
- authoring-contract-edition:${_chunkPWSWAN7Qjs.PLAY_AUTHORING_CONTRACT_EDITION}`
2736
+ authoring-contract-edition:${_chunkKB4SDX5Sjs.PLAY_AUTHORING_CONTRACT_EDITION}`
2737
2737
  );
2738
2738
  const sourceFiles = Object.fromEntries(
2739
2739
  Object.entries(analysis.sourceFiles).map(([sourcePath, sourceCode]) => [
@@ -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 _chunkVIQJIX2Pjs = require('./chunk-VIQJIX2P.js');
3
+ var _chunk4P27AXEAjs = require('./chunk-4P27AXEA.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 = _chunkVIQJIX2Pjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunk4P27AXEAjs.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,
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-LMMEAMA7.mjs";
6
+ } from "./chunk-FJGW5GXU.mjs";
7
7
  import {
8
8
  DeeplineError,
9
9
  serializeToolExecutionFailure