deepline 0.3.574 → 0.3.576

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 (162) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +13 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
  3. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +8 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/builtin-pacing.ts +18 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +149 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +1 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +0 -14
  8. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +17 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +8 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +4 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +190 -9
  12. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +41 -5
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +6 -66
  14. package/dist/cli/{agents-6WN5LYUP.mjs → agents-BLJR2Y3X.mjs} +213 -19
  15. package/dist/cli/{agents-7ZZSF4FS.js → agents-CJQ7KBFT.js} +235 -41
  16. package/dist/cli/auth-GSDYP4ZN.js +44 -0
  17. package/dist/cli/{auth-I2QVO677.mjs → auth-SLZIRCPE.mjs} +5 -5
  18. package/dist/cli/{billing-YPH4GEWU.mjs → billing-6Q4SK5KF.mjs} +9 -9
  19. package/dist/cli/{billing-44QFBUWA.js → billing-IECMVARO.js} +102 -102
  20. package/dist/cli/{chunk-MGF3MK27.mjs → chunk-2UHEJPSS.mjs} +5 -5
  21. package/dist/cli/{chunk-2QYU57RG.js → chunk-36254433.js} +3 -3
  22. package/dist/cli/{chunk-ECLCRE5P.js → chunk-45POZK3F.js} +3 -3
  23. package/dist/cli/{chunk-5E2PAGF5.js → chunk-4KIIXV5Z.js} +21 -21
  24. package/dist/cli/{chunk-7334X74C.mjs → chunk-5VABOJ4M.mjs} +2 -2
  25. package/dist/cli/{chunk-YR4REP4D.mjs → chunk-66K7F7LR.mjs} +1 -1
  26. package/dist/cli/{chunk-6GZIT3TH.js → chunk-6JQZC6HX.js} +20 -20
  27. package/dist/cli/{chunk-ID3LGPOE.js → chunk-6RY5COUY.js} +23 -23
  28. package/dist/cli/{chunk-VGIDPJXM.mjs → chunk-7DI34I73.mjs} +3 -3
  29. package/dist/cli/{chunk-Z3XFXFRT.js → chunk-ANPHEXTT.js} +9 -9
  30. package/dist/cli/{chunk-NRVEVKXR.mjs → chunk-AUR24RQB.mjs} +2 -2
  31. package/dist/cli/{chunk-JCO226JM.mjs → chunk-AZFSCPYK.mjs} +89 -10
  32. package/dist/cli/{chunk-2RPRSTHD.js → chunk-BRPUB6UA.js} +5 -5
  33. package/dist/cli/{chunk-XVBEEGI4.mjs → chunk-CUIFDMNP.mjs} +11 -1
  34. package/dist/cli/{chunk-OIZUFRTE.mjs → chunk-D5LWYP2H.mjs} +3 -3
  35. package/dist/cli/{chunk-PP5RMEQQ.js → chunk-DGY4EYIX.js} +5 -5
  36. package/dist/cli/{chunk-Q3A53SWK.mjs → chunk-DWUESXDD.mjs} +1 -1
  37. package/dist/cli/{chunk-7UR57HPJ.js → chunk-E4M4QZBP.js} +11 -1
  38. package/dist/cli/{chunk-DOZIWA66.js → chunk-EQO77FQZ.js} +5 -5
  39. package/dist/cli/{chunk-N6I3BB2O.js → chunk-F4H26PP6.js} +274 -274
  40. package/dist/cli/{chunk-L2NXB4WG.mjs → chunk-FYKHAT2F.mjs} +64 -3
  41. package/dist/cli/{chunk-QPSBV4FD.mjs → chunk-GI57Q7JU.mjs} +2 -2
  42. package/dist/cli/{chunk-H7PVSG3L.js → chunk-GZ7KYGYE.js} +15 -15
  43. package/dist/cli/{chunk-PW6NKI2A.mjs → chunk-HE53AI2E.mjs} +3 -3
  44. package/dist/cli/{chunk-LJLM4BUL.js → chunk-HHMO3CON.js} +6 -6
  45. package/dist/cli/{chunk-2TMAKJBT.mjs → chunk-JPFAD6G6.mjs} +2 -2
  46. package/dist/cli/{chunk-VLUBEMWM.js → chunk-JSIOLCTK.js} +20 -20
  47. package/dist/cli/{chunk-B2XLIQPH.mjs → chunk-KQTZO6NT.mjs} +2 -2
  48. package/dist/cli/{chunk-SLXCVPN7.js → chunk-L6H72AIX.js} +2 -2
  49. package/dist/cli/{chunk-X7RKCAMX.mjs → chunk-LKC7PHDX.mjs} +4 -4
  50. package/dist/cli/{chunk-DG56RWI2.js → chunk-M23G33MH.js} +2 -2
  51. package/dist/cli/{chunk-IB225ZK4.js → chunk-MDJ4LPQ5.js} +4 -4
  52. package/dist/cli/{chunk-AFPGYZBH.js → chunk-MXK4M7HP.js} +17 -17
  53. package/dist/cli/{chunk-KSHZY52O.js → chunk-MXPCTF57.js} +89 -10
  54. package/dist/cli/{chunk-6B5EZOI3.js → chunk-NQFZ7FYN.js} +10 -10
  55. package/dist/cli/{chunk-OH6WOID2.mjs → chunk-OMVBBAQP.mjs} +2 -2
  56. package/dist/cli/{chunk-D6ZVRKJ2.js → chunk-OXRG325T.js} +41 -41
  57. package/dist/cli/{chunk-G7OR3GVD.mjs → chunk-PU5VCDCJ.mjs} +5 -5
  58. package/dist/cli/{chunk-VYSUJMB5.js → chunk-PYFMNPTA.js} +8 -8
  59. package/dist/cli/{chunk-LCAXLGAY.mjs → chunk-QCD7BQ5Z.mjs} +2 -2
  60. package/dist/cli/{chunk-4T2U72SP.mjs → chunk-R5NKLZL2.mjs} +1 -1
  61. package/dist/cli/{chunk-ZTCP5BHH.mjs → chunk-RW3URFZK.mjs} +2 -2
  62. package/dist/cli/{chunk-IA2LTIWO.mjs → chunk-S4IW4NAI.mjs} +2 -2
  63. package/dist/cli/{chunk-UXIUAIL2.js → chunk-SBZSJQEI.js} +53 -53
  64. package/dist/cli/{chunk-XMBTAPHR.js → chunk-SKHUWQZE.js} +7 -7
  65. package/dist/cli/{chunk-S22FSNNC.mjs → chunk-SY3OKOI5.mjs} +1 -1
  66. package/dist/cli/{chunk-MAMGREBW.mjs → chunk-TZHS2W5Z.mjs} +1 -1
  67. package/dist/cli/{chunk-BUBOZKH2.js → chunk-UD6M2ZTY.js} +2 -2
  68. package/dist/cli/{chunk-W6UCS3O6.mjs → chunk-UGIH4462.mjs} +5 -5
  69. package/dist/cli/{chunk-7GQU46SZ.js → chunk-V25CXBR2.js} +26 -26
  70. package/dist/cli/{chunk-G2HW2SAP.js → chunk-WDWV77SJ.js} +13 -13
  71. package/dist/cli/{chunk-I62ZBEKH.js → chunk-WPGZ6V36.js} +48 -48
  72. package/dist/cli/{chunk-GMQZFWQU.mjs → chunk-X5V6S5KI.mjs} +7 -7
  73. package/dist/cli/{chunk-ZFXDD7VM.mjs → chunk-XJNJ3BWU.mjs} +1 -1
  74. package/dist/cli/{chunk-NDDGFX4X.js → chunk-Y4A6Y5EY.js} +11 -11
  75. package/dist/cli/{chunk-LLSCFLFU.mjs → chunk-YHM64N5C.mjs} +1 -1
  76. package/dist/cli/{chunk-JY7RKJ65.mjs → chunk-ZIGMC2X4.mjs} +13 -13
  77. package/dist/cli/{chunk-IXYVHTRZ.js → chunk-ZO65VJRJ.js} +70 -9
  78. package/dist/cli/{chunk-SRUNYWQ2.mjs → chunk-ZRC52APB.mjs} +1 -1
  79. package/dist/cli/{chunk-DX646HO7.mjs → chunk-ZYN6S6G2.mjs} +4 -4
  80. package/dist/cli/command-docs.js +2 -2
  81. package/dist/cli/command-docs.mjs +1 -1
  82. package/dist/cli/{concurrent-runs-help-ROQM6UB3.mjs → concurrent-runs-help-H3SA7J6H.mjs} +6 -6
  83. package/dist/cli/concurrent-runs-help-PB7GT6F2.js +22 -0
  84. package/dist/cli/{csv-FWGSY4GE.js → csv-6DEKR3QQ.js} +13 -13
  85. package/dist/cli/{csv-R7GV33BC.mjs → csv-ICXI7JAS.mjs} +4 -4
  86. package/dist/cli/{db-OCH35YJG.js → db-AG7INMLP.js} +27 -27
  87. package/dist/cli/{db-UWXA4RRV.mjs → db-VI7T5E6O.mjs} +6 -6
  88. package/dist/cli/describe-LMHIG3DP.js +50 -0
  89. package/dist/cli/{describe-QI4HMUGE.mjs → describe-S6NFWWGK.mjs} +21 -21
  90. package/dist/cli/describe-core.d.mts +10 -1
  91. package/dist/cli/describe-core.d.ts +10 -1
  92. package/dist/cli/describe-core.js +4 -4
  93. package/dist/cli/describe-core.mjs +3 -3
  94. package/dist/cli/{executions-7CFGC24E.js → executions-M5R5QHIA.js} +8 -8
  95. package/dist/cli/{executions-YF3KMZZN.mjs → executions-MK7H4Q2H.mjs} +6 -6
  96. package/dist/cli/{feedback-YCZHHSBS.js → feedback-L3L4FEQL.js} +14 -14
  97. package/dist/cli/{feedback-DWIWBS7O.mjs → feedback-ZHATL2XF.mjs} +6 -6
  98. package/dist/cli/{git-XCGMQQOD.mjs → git-W5DHNH2Q.mjs} +5 -5
  99. package/dist/cli/git-WYNCLDHD.js +26 -0
  100. package/dist/cli/index.js +148 -148
  101. package/dist/cli/index.mjs +47 -47
  102. package/dist/cli/{integrations-5ABAJBSW.mjs → integrations-73YSN2LI.mjs} +7 -7
  103. package/dist/cli/{integrations-IEZA3TGK.js → integrations-IBWNO3YP.js} +29 -29
  104. package/dist/cli/{legacy-noops-OZMY73Y3.mjs → legacy-noops-4LFZJTDX.mjs} +6 -6
  105. package/dist/cli/{legacy-noops-KNFLJ5P2.js → legacy-noops-AE6DBYJM.js} +9 -9
  106. package/dist/cli/{mcp-NLQAO7KP.js → mcp-BKL6M6OI.js} +24 -24
  107. package/dist/cli/{mcp-WSPFKQPZ.mjs → mcp-E6PTSNDE.mjs} +4 -4
  108. package/dist/cli/{monitors-LPKFFTOX.mjs → monitors-MXJ27KQK.mjs} +7 -7
  109. package/dist/cli/{monitors-BJYOB4S3.js → monitors-SW7ZCPPT.js} +100 -100
  110. package/dist/cli/{org-RYPMUYUW.mjs → org-HYAJ2MIK.mjs} +6 -6
  111. package/dist/cli/{org-WIVHI4WT.js → org-XJ44KZ5I.js} +121 -121
  112. package/dist/cli/{outcomes-QKX7IE3O.js → outcomes-PTXGG4BZ.js} +14 -14
  113. package/dist/cli/{outcomes-FADJYC4I.mjs → outcomes-PUMAXRGD.mjs} +6 -6
  114. package/dist/cli/{play-ID73J3NP.js → play-EPDZ3GDV.js} +349 -349
  115. package/dist/cli/{play-4ZKK5Q7U.mjs → play-QN3X6IAE.mjs} +20 -20
  116. package/dist/cli/{providers-WCCGYGW6.js → providers-GNJFGNDH.js} +9 -9
  117. package/dist/cli/{providers-LURYBSNO.mjs → providers-JIN5UQ7Z.mjs} +6 -6
  118. package/dist/cli/{quickstart-KCCSEE5J.mjs → quickstart-4EBFHGB7.mjs} +4 -4
  119. package/dist/cli/{quickstart-LVPOU25V.js → quickstart-YH6NNC5I.js} +6 -6
  120. package/dist/cli/{run-2QMJRCVA.js → run-4DRF7KQJ.js} +70 -49
  121. package/dist/cli/{run-XXK7DDUF.mjs → run-5467KBCP.mjs} +48 -27
  122. package/dist/cli/search-B2KCWPUV.js +32 -0
  123. package/dist/cli/{search-ZYAWW3CK.mjs → search-ZERTOGH6.mjs} +7 -7
  124. package/dist/cli/{search-output-N45AIOB4.mjs → search-output-OAVJXRFO.mjs} +5 -5
  125. package/dist/cli/{search-output-YNXAZSKT.js → search-output-OMNZN2LP.js} +8 -8
  126. package/dist/cli/{secrets-MHT27L2M.js → secrets-7XK2BGYX.js} +15 -15
  127. package/dist/cli/{secrets-7Q3AOUAS.mjs → secrets-KAVDYB4P.mjs} +6 -6
  128. package/dist/cli/sessions-PUQURPPC.js +23 -0
  129. package/dist/cli/{sessions-6QKOM7M3.mjs → sessions-TNPI6XWB.mjs} +6 -6
  130. package/dist/cli/{settings-NPVIDENI.mjs → settings-KUABXRAJ.mjs} +12 -12
  131. package/dist/cli/{settings-OP7Q6YX6.js → settings-RQ3Z3JCM.js} +85 -85
  132. package/dist/cli/{setup-OOT3EIMF.mjs → setup-6IX6BSS7.mjs} +9 -9
  133. package/dist/cli/{setup-RT6GHL3W.js → setup-TDOWNKYN.js} +49 -49
  134. package/dist/cli/skills-AACRY2TV.js +37 -0
  135. package/dist/cli/{skills-TEXI4CLZ.mjs → skills-Z6NBJ4KP.mjs} +7 -7
  136. package/dist/cli/{tools-G5L36M3X.mjs → tools-LQKFWK7J.mjs} +19 -19
  137. package/dist/cli/tools-OTYA4722.js +57 -0
  138. package/dist/cli/update-JTGMI6OJ.js +37 -0
  139. package/dist/cli/{update-YNKQTE4D.mjs → update-RUB4EIKW.mjs} +9 -9
  140. package/dist/cli/{views-IQFMUMLU.mjs → views-D7WY5QPR.mjs} +6 -6
  141. package/dist/cli/{views-OVQ5AQAU.js → views-FFLXLAGC.js} +21 -21
  142. package/dist/cli/{workflow-Y5IFMI7N.mjs → workflow-BV2OTEQD.mjs} +7 -7
  143. package/dist/cli/{workflow-RCBYXIFZ.js → workflow-QW7QVODA.js} +17 -17
  144. package/dist/index.js +9 -9
  145. package/dist/index.mjs +6 -6
  146. package/dist/install-integrity.json +122 -122
  147. package/dist/release.d.mts +9 -1
  148. package/dist/release.d.ts +9 -1
  149. package/dist/release.js +2 -2
  150. package/dist/release.mjs +1 -1
  151. package/dist/server.js +5 -5
  152. package/dist/server.mjs +3 -3
  153. package/package.json +1 -1
  154. package/dist/cli/auth-UKPV5U2B.js +0 -44
  155. package/dist/cli/concurrent-runs-help-BFVCUJF4.js +0 -22
  156. package/dist/cli/describe-6OI5K2SH.js +0 -50
  157. package/dist/cli/git-TGLNZRS3.js +0 -26
  158. package/dist/cli/search-AQSAXA6D.js +0 -32
  159. package/dist/cli/sessions-RGD7L4LC.js +0 -23
  160. package/dist/cli/skills-ERAA734H.js +0 -37
  161. package/dist/cli/tools-D5SZSIIH.js +0 -57
  162. package/dist/cli/update-WZ6527EF.js +0 -37
@@ -118,7 +118,7 @@ function schemaField(name, node, required) {
118
118
  const { type, fields } = schemaType(schema);
119
119
  const example = [
120
120
  schema.example,
121
- schema.default,
121
+ schema.deprecatedDefault === true ? void 0 : schema.default,
122
122
  type === "string" ? NAMED_EXAMPLES[name.toLowerCase()] : void 0
123
123
  ].find((value) => value !== void 0);
124
124
  return {
@@ -709,6 +709,7 @@ function describedLines(described, view) {
709
709
  `${described.id} [${described.kind.replace("_", " ")}]`,
710
710
  ...described.displayName ? [described.displayName] : [],
711
711
  ...described.description ? [described.description] : [],
712
+ ...described.signature ? [`Signature: ${described.signature}`] : [],
712
713
  ...described.cost ? [`Cost: ${described.cost}`] : [],
713
714
  ...described.guidance.map((line) => `Guidance: ${line}`),
714
715
  ...described.rateLimit ? [`Rate limit: ${described.rateLimit}`] : [],
@@ -736,6 +737,16 @@ function describedLines(described, view) {
736
737
  ...view.explain ? indented(explanation.cli) : []
737
738
  ] : []
738
739
  ),
740
+ ...section(
741
+ view.cli && described.namedExamples?.length ? [
742
+ "Run a named example:",
743
+ ...described.namedExamples.flatMap(
744
+ (example) => indented(
745
+ `deepline run ${described.id} --example ${example.name}${example.description ? ` # ${example.description}` : ""}`
746
+ )
747
+ )
748
+ ] : []
749
+ ),
739
750
  ...section(
740
751
  view.play && play ? [
741
752
  "Run in a play:",
@@ -826,6 +837,7 @@ function describedJson(described, view) {
826
837
  ...described.provider ? { provider: described.provider } : {},
827
838
  ...described.displayName ? { displayName: described.displayName } : {},
828
839
  ...described.description ? { description: described.description } : {},
840
+ ...described.signature ? { signature: described.signature } : {},
829
841
  ...described.cost ? { cost: described.cost } : {},
830
842
  ...described.rateLimit ? { rateLimit: described.rateLimit } : {},
831
843
  ...described.byok ? { byok: described.byok } : {},
@@ -848,15 +860,60 @@ function describedJson(described, view) {
848
860
  // On Windows `cli` reads `input` from this file instead of inline.
849
861
  ...inputFile ? { inputFile: inputFile.path } : {}
850
862
  },
863
+ ...described.namedExamples?.length ? { namedExamples: described.namedExamples } : {},
851
864
  ...described.source ? { source: described.source } : {},
852
865
  ...hidden.length ? { hidden } : {}
853
866
  };
854
867
  }
855
- var DASHBOARD_WORKSPACE_PARAM = "workspace";
868
+ function pythonValue(value) {
869
+ if (value === null || value === void 0) return "None";
870
+ if (value === true) return "True";
871
+ if (value === false) return "False";
872
+ if (typeof value === "string") return `'${value.replace(/'/g, "\\'")}'`;
873
+ if (Array.isArray(value)) return `[${value.map(pythonValue).join(", ")}]`;
874
+ if (isRecord(value)) {
875
+ return `{${Object.entries(value).map(([key, item]) => `'${key}': ${pythonValue(item)}`).join(", ")}}`;
876
+ }
877
+ return String(value);
878
+ }
879
+ function playSignature(reference, schema) {
880
+ if (!isRecord(schema) || !isRecord(schema.properties)) return null;
881
+ const required = new Set(
882
+ Array.isArray(schema.required) ? schema.required.map(String) : []
883
+ );
884
+ const entries = Object.entries(schema.properties);
885
+ const parameters = [
886
+ ...entries.filter(([name]) => required.has(name)).map(([name]) => name),
887
+ ...entries.filter(([name]) => !required.has(name)).map(([name, node]) => {
888
+ const property = isRecord(node) ? node : {};
889
+ if (!("default" in property)) return `${name}=None`;
890
+ const notes = [
891
+ property.deprecatedDefault === true ? "deprecated default" : null,
892
+ property.defaultWhen === "empty_request" ? "only when no search input is given" : null
893
+ ].filter(Boolean);
894
+ return `${name}=${pythonValue(property.default)}${notes.length ? ` (${notes.join(", ")})` : ""}`;
895
+ })
896
+ ];
897
+ return `${reference}(${parameters.join(", ")})`;
898
+ }
899
+ function playNamedExamples(schema) {
900
+ const declared = isRecord(schema) ? schema.namedExamples : null;
901
+ if (!isRecord(declared)) return [];
902
+ return Object.entries(declared).flatMap(
903
+ ([name, value]) => isRecord(value) && isRecord(value.input) ? [
904
+ {
905
+ name,
906
+ ...typeof value.description === "string" ? { description: value.description } : {},
907
+ input: value.input
908
+ }
909
+ ] : []
910
+ );
911
+ }
912
+ var DASHBOARD_ORG_PARAM = "org";
856
913
  function buildDashboardUrl(baseUrl, path, orgId) {
857
914
  const url = `${baseUrl.replace(/\/$/, "")}${path}`;
858
915
  if (!orgId) return url;
859
- const param = new URLSearchParams({ [DASHBOARD_WORKSPACE_PARAM]: orgId });
916
+ const param = new URLSearchParams({ [DASHBOARD_ORG_PARAM]: orgId });
860
917
  return `${url}${url.includes("?") ? "&" : "?"}${param.toString()}`;
861
918
  }
862
919
  function buildPlayDashboardUrl(baseUrl, playName, orgId) {
@@ -898,6 +955,8 @@ function describedPlay(play) {
898
955
  description: [field.description, `CSV header: ${header}`].filter(Boolean).join(" - ")
899
956
  } : field;
900
957
  });
958
+ const signature = playSignature(reference, play.inputSchema);
959
+ const namedExamples = playNamedExamples(play.inputSchema);
901
960
  const rowOutput = play.rowOutputSchema ?? {};
902
961
  const added = isRecord(rowOutput.addedColumns) ? rowOutput.addedColumns : {};
903
962
  const rowOutputs = schemaFields(
@@ -920,6 +979,8 @@ function describedPlay(play) {
920
979
  rowOutputsAddToSource: Object.keys(added).length > 0 || rowOutput.preservesSourceColumns === true
921
980
  } : {},
922
981
  runner: { via: "play", reference, inputSchema: play.inputSchema },
982
+ ...signature ? { signature } : {},
983
+ ...namedExamples.length ? { namedExamples } : {},
923
984
  ...starter ? { source: starter.command } : {},
924
985
  ...exclusive ? { exclusive } : {},
925
986
  // A prebuilt's cost is what its recent runs were charged; there is no rate.
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PlayClient
3
- } from "./chunk-4T2U72SP.mjs";
3
+ } from "./chunk-R5NKLZL2.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-SRUNYWQ2.mjs";
7
+ } from "./chunk-ZRC52APB.mjs";
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -1,19 +1,19 @@
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 _chunk2RPRSTHDjs = require('./chunk-2RPRSTHD.js');
3
+ var _chunkBRPUB6UAjs = require('./chunk-BRPUB6UA.js');
4
4
 
5
5
 
6
- var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
6
+ var _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
7
7
 
8
8
 
9
- var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
9
+ var _chunk36254433js = require('./chunk-36254433.js');
10
10
 
11
11
  // src/cli/commands/integration-commands.ts
12
12
  var _commander = require('commander');
13
13
  var _fs = require('fs');
14
14
  var _path = require('path');
15
15
  function printIntegrationResult(value, json, lines, nextCursor) {
16
- _chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
16
+ _chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
17
17
  {},
18
18
  {
19
19
  json: json || void 0,
@@ -29,7 +29,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
29
29
  return parent.command("balance <provider>", { hidden }).description(
30
30
  "Read a fresh balance using this org\u2019s own provider connection (LeadMagic)."
31
31
  ).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
32
- const balance = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().getIntegrationBalance(
32
+ const balance = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().getIntegrationBalance(
33
33
  provider
34
34
  );
35
35
  printIntegrationResult(balance, options.json, [
@@ -43,7 +43,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
43
43
  "List teammates\u2019 personal connections for this provider"
44
44
  ).option("--cursor <cursor>", "Read the next page of members").action(
45
45
  async (options) => {
46
- const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
46
+ const client = new (0, _chunkBRPUB6UAjs.DeeplineClient)();
47
47
  if (name === "list" && options.cursor && !options.members)
48
48
  throw new Error(
49
49
  "Use --cursor with --members to continue a member page."
@@ -85,7 +85,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
85
85
  }
86
86
  function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
87
87
  return parent.command("hubspot-members", { hidden }).description("List personal HubSpot connection status for org members.").option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
88
- const page = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().listPersonalHubSpotMembers(
88
+ const page = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().listPersonalHubSpotMembers(
89
89
  options.cursor
90
90
  );
91
91
  const rows = page.members.map((member) => {
@@ -111,7 +111,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
111
111
  );
112
112
  if (options.autoName && (action !== "connect" || options.name !== void 0))
113
113
  throw new Error("Use --auto-name with connect and omit --name.");
114
- const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
114
+ const client = new (0, _chunkBRPUB6UAjs.DeeplineClient)();
115
115
  const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
116
116
  const row = connections.find(
117
117
  (connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
@@ -144,7 +144,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
144
144
  "Print the proposed change without contacting Google or saving it"
145
145
  ).option("--json", "Print the result as JSON").action(
146
146
  async (action, options) => {
147
- const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
147
+ const client = new (0, _chunkBRPUB6UAjs.DeeplineClient)();
148
148
  if (action === "list") {
149
149
  const inventory = await client.listCalendarAvailabilityConnections();
150
150
  const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
@@ -294,7 +294,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
294
294
  }
295
295
  function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
296
296
  return parent.command("availability-calendars", { hidden }).description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
297
- const page = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().listAvailabilityCalendars(
297
+ const page = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().listAvailabilityCalendars(
298
298
  options.cursor
299
299
  );
300
300
  printIntegrationResult(page, options.json, [
@@ -372,7 +372,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
372
372
  );
373
373
  return;
374
374
  }
375
- const result2 = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().connectManagedIntegration(
375
+ const result2 = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().connectManagedIntegration(
376
376
  provider,
377
377
  {
378
378
  termsVersion: options.acceptTerms,
@@ -409,7 +409,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
409
409
  printSetupPlan({ provider, action: "connect_link" }, options.json);
410
410
  return;
411
411
  }
412
- const link = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().getIntegrationConnectLink(
412
+ const link = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().getIntegrationConnectLink(
413
413
  provider
414
414
  );
415
415
  printIntegrationResult(link, options.json, [link.connect_url]);
@@ -439,7 +439,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
439
439
  );
440
440
  return;
441
441
  }
442
- const result2 = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().startIntegrationOAuth(
442
+ const result2 = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().startIntegrationOAuth(
443
443
  provider,
444
444
  {
445
445
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -501,7 +501,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
501
501
  "--credentials-file must contain a nonempty JSON object of string credential values."
502
502
  );
503
503
  }
504
- const result = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().setIntegrationCredentials(
504
+ const result = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().setIntegrationCredentials(
505
505
  provider,
506
506
  credentials,
507
507
  { expectedConnectionId: options.expectedConnectionId, teamId }
@@ -530,7 +530,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
530
530
  function connectTeamId(orgDefault) {
531
531
  if (orgDefault) return null;
532
532
  try {
533
- return _nullishCoalesce(_chunk2QYU57RGjs.resolveConfig.call(void 0, ).workspace, () => ( null));
533
+ return _nullishCoalesce(_chunk36254433js.resolveConfig.call(void 0, ).workspace, () => ( null));
534
534
  } catch (e2) {
535
535
  return _optionalChain([process, 'access', _9 => _9.env, 'access', _10 => _10.DEEPLINE_WORKSPACE_ID, 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()]) || null;
536
536
  }
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-2TMAKJBT.mjs";
5
+ } from "./chunk-JPFAD6G6.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -22,14 +22,14 @@ import {
22
22
  saveHostEnvValues,
23
23
  saveProjectDeeplineEnvValues,
24
24
  storedHostApiKey
25
- } from "./chunk-SRUNYWQ2.mjs";
25
+ } from "./chunk-ZRC52APB.mjs";
26
26
  import {
27
27
  SDK_API_CONTRACT,
28
28
  SDK_VERSION,
29
29
  connectionFailureMessage,
30
30
  detectAgentRuntime,
31
31
  networkCauseCode
32
- } from "./chunk-ZFXDD7VM.mjs";
32
+ } from "./chunk-XJNJ3BWU.mjs";
33
33
  import {
34
34
  DeeplineError
35
35
  } from "./chunk-Z3A2S3QM.mjs";
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkSLXCVPN7js = require('./chunk-SLXCVPN7.js');
3
+ var _chunkL6H72AIXjs = require('./chunk-L6H72AIX.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkI62ZBEKHjs = require('./chunk-I62ZBEKH.js');
8
+ var _chunkWPGZ6V36js = require('./chunk-WPGZ6V36.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,18 +18,18 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunkI62ZBEKHjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkWPGZ6V36js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkL6H72AIXjs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkI62ZBEKHjs.requireSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkWPGZ6V36js.requireSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
29
29
  })
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
- _chunkI62ZBEKHjs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
32
+ _chunkWPGZ6V36js.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
33
33
  quietAdvisory: true
34
34
  });
35
35
  }
@@ -4,14 +4,14 @@ import {
4
4
  resolveApiKeyForBaseUrl,
5
5
  resolveCliCommandContext,
6
6
  resolveConfig
7
- } from "./chunk-SRUNYWQ2.mjs";
7
+ } from "./chunk-ZRC52APB.mjs";
8
8
  import {
9
9
  SDK_VERSION,
10
10
  agentSessionIdFromEnvironment,
11
11
  deploymentProtectionHeaders,
12
12
  detectAgentRuntime,
13
13
  readToolFailureHint
14
- } from "./chunk-ZFXDD7VM.mjs";
14
+ } from "./chunk-XJNJ3BWU.mjs";
15
15
  import {
16
16
  DeeplineError,
17
17
  normalizeToolExecutionFailure,
@@ -4,14 +4,14 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
7
+ var _chunk36254433js = require('./chunk-36254433.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _chunkIB225ZK4js = require('./chunk-IB225ZK4.js');
14
+ var _chunkMDJ4LPQ5js = require('./chunk-MDJ4LPQ5.js');
15
15
 
16
16
 
17
17
 
@@ -331,7 +331,7 @@ function buildEnvironmentContext() {
331
331
  node_version: process.version,
332
332
  runtime: "Node.js",
333
333
  hostname: _os.hostname.call(void 0, ),
334
- agent_runtime: _chunkIB225ZK4js.detectAgentRuntime.call(void 0, )
334
+ agent_runtime: _chunkMDJ4LPQ5js.detectAgentRuntime.call(void 0, )
335
335
  };
336
336
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
337
337
  const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
@@ -352,18 +352,18 @@ function buildEnvironmentContext() {
352
352
  return context;
353
353
  }
354
354
  function failureReportHeaders(apiKey) {
355
- const agentSessionId = _chunkIB225ZK4js.agentSessionIdFromEnvironment.call(void 0, );
355
+ const agentSessionId = _chunkMDJ4LPQ5js.agentSessionIdFromEnvironment.call(void 0, );
356
356
  return {
357
- ..._chunkIB225ZK4js.deploymentProtectionHeaders.call(void 0, ),
357
+ ..._chunkMDJ4LPQ5js.deploymentProtectionHeaders.call(void 0, ),
358
358
  ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
359
359
  Authorization: `Bearer ${apiKey}`,
360
360
  "Content-Type": "application/json",
361
- "User-Agent": `deepline-ts-sdk/${_chunkIB225ZK4js.SDK_VERSION}`,
361
+ "User-Agent": `deepline-ts-sdk/${_chunkMDJ4LPQ5js.SDK_VERSION}`,
362
362
  "X-Deepline-Client-Family": "sdk",
363
363
  "X-Deepline-CLI-Family": "sdk",
364
- "X-Deepline-Agent-Runtime": _chunkIB225ZK4js.detectAgentRuntime.call(void 0, ),
365
- "X-Deepline-CLI-Version": _chunkIB225ZK4js.SDK_VERSION,
366
- "X-Deepline-SDK-Version": _chunkIB225ZK4js.SDK_VERSION
364
+ "X-Deepline-Agent-Runtime": _chunkMDJ4LPQ5js.detectAgentRuntime.call(void 0, ),
365
+ "X-Deepline-CLI-Version": _chunkMDJ4LPQ5js.SDK_VERSION,
366
+ "X-Deepline-SDK-Version": _chunkMDJ4LPQ5js.SDK_VERSION
367
367
  };
368
368
  }
369
369
  async function postFailureReport(input) {
@@ -391,7 +391,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
391
391
  if (isFailureReportingDisabled()) return false;
392
392
  let apiKey = "";
393
393
  try {
394
- apiKey = _chunk2QYU57RGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
394
+ apiKey = _chunk36254433js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
395
395
  } catch (e2) {
396
396
  return false;
397
397
  }
@@ -418,7 +418,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
418
418
  failure_code: failureCode2,
419
419
  failure_stage: failureStage,
420
420
  error_body: "Automatic Deepline skills installation failed.",
421
- cli_version: _chunkIB225ZK4js.SDK_VERSION,
421
+ cli_version: _chunkMDJ4LPQ5js.SDK_VERSION,
422
422
  context: {
423
423
  environment: buildEnvironmentContext(),
424
424
  skills_sync: {
@@ -538,7 +538,7 @@ function buildFailureReport(input) {
538
538
  failure_kind: failureKind,
539
539
  failure_code: code,
540
540
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
541
- cli_version: _chunkIB225ZK4js.SDK_VERSION,
541
+ cli_version: _chunkMDJ4LPQ5js.SDK_VERSION,
542
542
  context: {
543
543
  base_url: redactFailureText(input.baseUrl, 400),
544
544
  command_summary: sanitizeCommand(input.argv),
@@ -558,8 +558,8 @@ async function maybeReportSdkCliFailure(input) {
558
558
  if (isServerLoggedPlayRunStartFailure(input)) return false;
559
559
  const exitCode = resolvedExitCode(input);
560
560
  if (!shouldReport({ exitCode, error: input.error })) return false;
561
- const baseUrl = _chunk2QYU57RGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
562
- const apiKey = _chunk2QYU57RGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
561
+ const baseUrl = _chunk36254433js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
562
+ const apiKey = _chunk36254433js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
563
563
  if (!apiKey) return false;
564
564
  return postFailureReport({
565
565
  baseUrl,
@@ -914,8 +914,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
914
914
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
915
915
  var defaultBrowserCommandRunner = childProcess;
916
916
  function getAuthedHttpClient() {
917
- const config = _chunk2QYU57RGjs.resolveConfig.call(void 0, );
918
- return { config, http: new (0, _chunk2QYU57RGjs.HttpClient)(config) };
917
+ const config = _chunk36254433js.resolveConfig.call(void 0, );
918
+ return { config, http: new (0, _chunk36254433js.HttpClient)(config) };
919
919
  }
920
920
  function stableOsUserId() {
921
921
  try {
@@ -1256,7 +1256,7 @@ function collectLocalEnvInfo() {
1256
1256
  os: `${process.platform} ${process.arch}`,
1257
1257
  node_version: process.version,
1258
1258
  home_dir: homeDir,
1259
- agent_runtime: _chunkIB225ZK4js.detectAgentRuntime.call(void 0, )
1259
+ agent_runtime: _chunkMDJ4LPQ5js.detectAgentRuntime.call(void 0, )
1260
1260
  };
1261
1261
  const env = process.env;
1262
1262
  const optional = {
@@ -1503,9 +1503,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
1503
1503
  }
1504
1504
  function withAgentCommandContext(value) {
1505
1505
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
1506
- return _chunkIB225ZK4js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
1506
+ return _chunkMDJ4LPQ5js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
1507
1507
  ...valueRecord,
1508
- command_context: _chunk2QYU57RGjs.resolveCliCommandContext.call(void 0, )
1508
+ command_context: _chunk36254433js.resolveCliCommandContext.call(void 0, )
1509
1509
  } : value;
1510
1510
  }
1511
1511
  function printJson(value, fields, options = {}) {
@@ -1677,7 +1677,7 @@ function errorToJsonPayload(error) {
1677
1677
  ...upstreamResponse ? { upstreamResponse } : {},
1678
1678
  ...Object.keys(details).length > 0 ? { details } : {}
1679
1679
  };
1680
- const retry = cliRetryGuidance(payloadError, _chunkIB225ZK4js.readToolFailureHint.call(void 0, error));
1680
+ const retry = cliRetryGuidance(payloadError, _chunkMDJ4LPQ5js.readToolFailureHint.call(void 0, error));
1681
1681
  return {
1682
1682
  ok: false,
1683
1683
  status: "failed",
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  httpJson
3
- } from "./chunk-PW6NKI2A.mjs";
3
+ } from "./chunk-HE53AI2E.mjs";
4
4
  import {
5
5
  PRICING_PAGE_NOTE
6
6
  } from "./chunk-HECXJBED.mjs";
7
7
  import {
8
8
  autoDetectBaseUrl,
9
9
  resolveApiKeyForBaseUrl
10
- } from "./chunk-SRUNYWQ2.mjs";
10
+ } from "./chunk-ZRC52APB.mjs";
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
3
+ var _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkVLUBEMWMjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkJSIOLCTKjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -3,16 +3,16 @@ import {
3
3
  } from "./chunk-5AEDYVB6.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-LCAXLGAY.mjs";
6
+ } from "./chunk-QCD7BQ5Z.mjs";
7
7
  import {
8
8
  errorToJsonPayload,
9
9
  printCommandEnvelope,
10
10
  resolveSdkCliFailureExitCode
11
- } from "./chunk-2TMAKJBT.mjs";
11
+ } from "./chunk-JPFAD6G6.mjs";
12
12
  import {
13
13
  resolveConfig,
14
14
  sdkCliStateDirPath
15
- } from "./chunk-SRUNYWQ2.mjs";
15
+ } from "./chunk-ZRC52APB.mjs";
16
16
 
17
17
  // src/cli/commands/search.ts
18
18
  import { Option } from "commander";
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
134
134
  }
135
135
  const client = new DeeplineClient();
136
136
  const json = options.json === true;
137
- const renderer = json ? void 0 : await import("./search-output-N45AIOB4.mjs");
137
+ const renderer = json ? void 0 : await import("./search-output-OAVJXRFO.mjs");
138
138
  const searches = [];
139
139
  const chunks = [];
140
140
  const refs = /* @__PURE__ */ new Map();
@@ -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 _chunkI62ZBEKHjs = require('./chunk-I62ZBEKH.js');
3
+ var _chunkWPGZ6V36js = require('./chunk-WPGZ6V36.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 = _chunkI62ZBEKHjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkWPGZ6V36js.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
  windowsHide: true,
19
19
  encoding: "utf8",
@@ -21,12 +21,12 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
21
21
  var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
22
22
 
23
23
 
24
- var _chunk7UR57HPJjs = require('./chunk-7UR57HPJ.js');
24
+ var _chunkE4M4QZBPjs = require('./chunk-E4M4QZBP.js');
25
25
 
26
26
  // src/version.ts
27
- var SDK_VERSION = _chunk7UR57HPJjs.SDK_RELEASE.version;
28
- var SDK_API_MAJOR = _chunk7UR57HPJjs.SDK_RELEASE.contracts.api.currentMajor;
29
- var SDK_API_CONTRACT = _nullishCoalesce(_chunk7UR57HPJjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
27
+ var SDK_VERSION = _chunkE4M4QZBPjs.SDK_RELEASE.version;
28
+ var SDK_API_MAJOR = _chunkE4M4QZBPjs.SDK_RELEASE.contracts.api.currentMajor;
29
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkE4M4QZBPjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
30
30
 
31
31
  // src/agent-runtime.ts
32
32
  var _fs = require('fs');