deepline 0.3.369 → 0.3.370

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 (98) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +4 -2
  3. package/dist/cli/auth-DD3PVIRQ.js +33 -0
  4. package/dist/cli/{auth-F5YPFL6L.mjs → auth-RIH4S7NC.mjs} +4 -4
  5. package/dist/cli/{billing-LNO6FPPM.mjs → billing-ERNGN6WK.mjs} +4 -4
  6. package/dist/cli/{billing-3HHLCETY.js → billing-Q65H5GJM.js} +73 -73
  7. package/dist/cli/{chunk-KGZRUGL7.js → chunk-4Y5UDYQK.js} +9 -9
  8. package/dist/cli/{chunk-YCLPW7QO.mjs → chunk-5DUTNG37.mjs} +2 -2
  9. package/dist/cli/{chunk-KR5NWPWI.js → chunk-666HPUIZ.js} +1 -1
  10. package/dist/cli/{chunk-LH3BV773.js → chunk-A4OX52RV.js} +8 -8
  11. package/dist/cli/{chunk-TRRFXE4X.mjs → chunk-A5RFERJQ.mjs} +2 -2
  12. package/dist/cli/{chunk-OEQC4QLU.js → chunk-A6DJC2RC.js} +60 -60
  13. package/dist/cli/{chunk-RIT4UED6.mjs → chunk-BGXG3GEI.mjs} +3 -3
  14. package/dist/cli/{chunk-COEBGYBW.mjs → chunk-BKHNCIQD.mjs} +6 -6
  15. package/dist/cli/{chunk-QILHWZFP.js → chunk-CTMA3C3N.js} +7 -1
  16. package/dist/cli/{chunk-74XTRGY5.js → chunk-DFJDVQMH.js} +2 -2
  17. package/dist/cli/{chunk-EJC3INZD.mjs → chunk-GGRVNAOH.mjs} +1 -1
  18. package/dist/cli/{chunk-VUYCB2RY.mjs → chunk-H4IQJRFC.mjs} +1 -1
  19. package/dist/cli/{chunk-SDOPEZYS.mjs → chunk-HHH4MPFY.mjs} +4 -4
  20. package/dist/cli/{chunk-H4N6FMJ5.mjs → chunk-IDBLJSLL.mjs} +2 -2
  21. package/dist/cli/{chunk-5IXQ6VP4.mjs → chunk-LJWOPNJJ.mjs} +1 -1
  22. package/dist/cli/{chunk-U5VEW7LL.mjs → chunk-LNEBKWXM.mjs} +1 -1
  23. package/dist/cli/{chunk-ERMXQOIV.js → chunk-MKFHZDBO.js} +6 -6
  24. package/dist/cli/{chunk-4RVNJQ7D.mjs → chunk-NEY2M4EZ.mjs} +1 -1
  25. package/dist/cli/{chunk-FXVRQHJC.js → chunk-NHB3UWTZ.js} +15 -15
  26. package/dist/cli/{chunk-PRMAO43X.js → chunk-R7AAYFDQ.js} +95 -54
  27. package/dist/cli/{chunk-QFBHEQCQ.mjs → chunk-RLXMRC6P.mjs} +7 -1
  28. package/dist/cli/{chunk-2AENFV3B.js → chunk-SFI7U6CA.js} +4 -4
  29. package/dist/cli/{chunk-JGLIB4JN.mjs → chunk-T64NZ2A7.mjs} +49 -8
  30. package/dist/cli/{chunk-X6FNDFTD.js → chunk-WQZ22EQU.js} +26 -26
  31. package/dist/cli/{chunk-6A3GNWSU.js → chunk-XTKVXHGD.js} +8 -8
  32. package/dist/cli/{chunk-P7W5OMQ6.js → chunk-Y2B56VN7.js} +50 -50
  33. package/dist/cli/{chunk-XH3EIQAZ.js → chunk-YEEESF2T.js} +224 -224
  34. package/dist/cli/{chunk-KU4X5TWN.mjs → chunk-YQMUTC2H.mjs} +2 -2
  35. package/dist/cli/client-DNAFHKWV.js +20 -0
  36. package/dist/cli/{client-HURLYTDV.mjs → client-QXOERIFI.mjs} +3 -3
  37. package/dist/cli/command-docs.js +2 -2
  38. package/dist/cli/command-docs.mjs +1 -1
  39. package/dist/cli/{csv-ZECPS6DF.mjs → csv-V7UKQ7AC.mjs} +3 -3
  40. package/dist/cli/{csv-BZ7QNGLU.js → csv-ZKIUSDIV.js} +12 -12
  41. package/dist/cli/{db-JXLCCIML.js → db-GWKRVHKS.js} +29 -29
  42. package/dist/cli/{db-EUNDS5UG.mjs → db-QQ4BYMPY.mjs} +4 -4
  43. package/dist/cli/{describe-DNDL3TC6.js → describe-3AJI2BOS.js} +15 -15
  44. package/dist/cli/{describe-L6LADCXI.mjs → describe-XMWXEFMS.mjs} +8 -8
  45. package/dist/cli/{executions-GPKPWEHO.js → executions-2IMCCV34.js} +6 -6
  46. package/dist/cli/{executions-GRCD2GHT.mjs → executions-QV7UE5YG.mjs} +4 -4
  47. package/dist/cli/{feedback-VJCNBYVQ.js → feedback-7SSJ7VPF.js} +7 -7
  48. package/dist/cli/{feedback-5WG2HNZ6.mjs → feedback-K6WNXZDB.mjs} +3 -3
  49. package/dist/cli/git-EBSF3254.js +23 -0
  50. package/dist/cli/{git-3G5Q4TPI.mjs → git-UOE2K2XQ.mjs} +4 -4
  51. package/dist/cli/index.js +86 -86
  52. package/dist/cli/index.mjs +33 -33
  53. package/dist/cli/{legacy-noops-YAO3LDPI.js → legacy-noops-GC43OSXL.js} +7 -7
  54. package/dist/cli/{legacy-noops-7WLCNXLD.mjs → legacy-noops-SOYPIA2X.mjs} +4 -4
  55. package/dist/cli/{monitors-MQ6KNDOH.js → monitors-AXANB6WK.js} +85 -85
  56. package/dist/cli/{monitors-NRQN7M3A.mjs → monitors-FLCGMXVH.mjs} +4 -4
  57. package/dist/cli/{org-TGKGLAB4.js → org-MXD4BTQI.js} +64 -64
  58. package/dist/cli/{org-X46ICV24.mjs → org-Q7EDNZMN.mjs} +4 -4
  59. package/dist/cli/{play-PCLCMTVK.mjs → play-TZROCF7E.mjs} +7 -7
  60. package/dist/cli/play-YWQXVOBT.js +153 -0
  61. package/dist/cli/{providers-T2S532QL.mjs → providers-JEY4FTWG.mjs} +4 -4
  62. package/dist/cli/{providers-IPH3TV6J.js → providers-LOS4MHAG.js} +7 -7
  63. package/dist/cli/{quickstart-GXFHMZL7.js → quickstart-27UQGHEH.js} +5 -5
  64. package/dist/cli/{quickstart-6CO5FGYE.mjs → quickstart-WO5KVVER.mjs} +3 -3
  65. package/dist/cli/{search-6HML4FB2.mjs → search-LZHWXC2C.mjs} +5 -5
  66. package/dist/cli/search-OQ3OEFUA.js +26 -0
  67. package/dist/cli/{secrets-KCNIINW5.mjs → secrets-AVJGZABR.mjs} +4 -4
  68. package/dist/cli/{secrets-J6T743DQ.js → secrets-PE7P4L7N.js} +13 -13
  69. package/dist/cli/{sessions-ABXL2OZV.js → sessions-I6UDBN7M.js} +5 -5
  70. package/dist/cli/{sessions-FQHM34TD.mjs → sessions-ZDSZTYZV.mjs} +4 -4
  71. package/dist/cli/{settings-HB5DSAUW.js → settings-3SLMJHJ2.js} +74 -74
  72. package/dist/cli/{settings-3UXXWUZ3.mjs → settings-SPWH3FET.mjs} +7 -7
  73. package/dist/cli/{setup-2MOBCKAB.mjs → setup-Q3CJ4T2Q.mjs} +6 -6
  74. package/dist/cli/{setup-TMJJLEYX.js → setup-R4LUWQE4.js} +41 -41
  75. package/dist/cli/{skills-LWS7PNTF.mjs → skills-FGXH432G.mjs} +4 -4
  76. package/dist/cli/skills-IDXBBOUW.js +28 -0
  77. package/dist/cli/{tools-TIUE2AK7.mjs → tools-O7C6PFF2.mjs} +6 -6
  78. package/dist/cli/tools-WHLD4Y4O.js +40 -0
  79. package/dist/cli/update-K6HE3XKO.js +28 -0
  80. package/dist/cli/{update-IYXAP5MI.mjs → update-PPCQV3CD.mjs} +6 -6
  81. package/dist/cli/{workflow-SGF3DFKJ.js → workflow-ALKU4ZFD.js} +15 -15
  82. package/dist/cli/{workflow-3CVYOEKJ.mjs → workflow-Z2KYQ2JE.mjs} +5 -5
  83. package/dist/index.js +6 -6
  84. package/dist/index.mjs +3 -3
  85. package/dist/install-integrity.json +76 -76
  86. package/dist/release.d.mts +1 -1
  87. package/dist/release.d.ts +1 -1
  88. package/dist/release.js +2 -2
  89. package/dist/release.mjs +1 -1
  90. package/package.json +1 -1
  91. package/dist/cli/auth-L3ZF67G5.js +0 -33
  92. package/dist/cli/client-HL2AHZPQ.js +0 -20
  93. package/dist/cli/git-MSJ6SFLT.js +0 -23
  94. package/dist/cli/play-TJBPVFUK.js +0 -153
  95. package/dist/cli/search-34MPYWVW.js +0 -26
  96. package/dist/cli/skills-D3IIQSUK.js +0 -28
  97. package/dist/cli/tools-XWUSCNVK.js +0 -40
  98. package/dist/cli/update-7O5MXP5K.js +0 -28
@@ -13,7 +13,7 @@ import {
13
13
  observedMaxText,
14
14
  recentSearchRef,
15
15
  registerDeprecatedSearchCommand
16
- } from "./chunk-RIT4UED6.mjs";
16
+ } from "./chunk-BGXG3GEI.mjs";
17
17
  import {
18
18
  extractSummaryFields,
19
19
  projectRowOutput,
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  DeeplineClient,
30
30
  validateExecutionIdempotencyKey
31
- } from "./chunk-VUYCB2RY.mjs";
31
+ } from "./chunk-H4IQJRFC.mjs";
32
32
  import {
33
33
  beginToolExecuteCommand,
34
34
  getToolExecuteInvocationId,
@@ -42,11 +42,11 @@ import {
42
42
  printJsonError,
43
43
  renderCommandEnvelopeText,
44
44
  shouldEmitJson
45
- } from "./chunk-EJC3INZD.mjs";
45
+ } from "./chunk-GGRVNAOH.mjs";
46
46
  import {
47
47
  resolveConfig,
48
48
  sdkCliStateDirPath
49
- } from "./chunk-5IXQ6VP4.mjs";
49
+ } from "./chunk-LJWOPNJJ.mjs";
50
50
  import {
51
51
  DeeplineError
52
52
  } from "./chunk-NXGCO4JB.mjs";
@@ -776,6 +776,7 @@ var TOOL_ONLY_VIEWS = [
776
776
  "pricingOnly",
777
777
  "examplesOnly",
778
778
  "gettersOnly",
779
+ "byok",
779
780
  "model",
780
781
  "estimatePayload"
781
782
  ];
@@ -888,6 +889,7 @@ Examples:
888
889
  deepline tools describe hunter_email_verifier --pricing-only
889
890
  deepline tools describe hunter_email_verifier --pricing-only --json
890
891
  deepline tools describe hunter_email_verifier --examples-only
892
+ deepline tools describe hunter_email_verifier --byok
891
893
  deepline tools describe hunter_email_verifier --json
892
894
  deepline tools describe deeplineagent --model openai/gpt-5.6-luna --json
893
895
  deepline tools describe ai_inference --estimate-payload @payload.json --json
@@ -903,7 +905,10 @@ Examples:
903
905
  ).option("--pricing-only", "Only print pricing and billing semantics").option(
904
906
  "--examples-only",
905
907
  "Only print input payload and full Deepline execution response examples"
906
- ).option("--getters-only", "Only print extracted list/value getters").addOption(
908
+ ).option("--getters-only", "Only print extracted list/value getters").option(
909
+ "--byok",
910
+ "Only print whether you can use your own provider credentials, and how to connect them"
911
+ ).addOption(
907
912
  new Option(
908
913
  "--compact",
909
914
  "Compatibility alias for the default compact view"
@@ -926,6 +931,7 @@ Examples:
926
931
  schemaOnly: Boolean(options.schemaOnly),
927
932
  examplesOnly: Boolean(options.examplesOnly),
928
933
  gettersOnly: Boolean(options.gettersOnly),
934
+ byok: Boolean(options.byok),
929
935
  model: typeof options.model === "string" ? options.model : void 0,
930
936
  estimatePayload: typeof options.estimatePayload === "string" ? options.estimatePayload : void 0
931
937
  },
@@ -936,7 +942,7 @@ Examples:
936
942
  process.exitCode = await narrowView();
937
943
  return;
938
944
  }
939
- const { describeAnything } = await import("./describe-L6LADCXI.mjs");
945
+ const { describeAnything } = await import("./describe-XMWXEFMS.mjs");
940
946
  process.exitCode = await describeAnything(
941
947
  toolId,
942
948
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -1060,14 +1066,28 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1060
1066
  options.pricingOnly,
1061
1067
  options.schemaOnly,
1062
1068
  options.examplesOnly,
1063
- options.gettersOnly
1069
+ options.gettersOnly,
1070
+ options.byok
1064
1071
  ].filter(Boolean).length;
1065
1072
  if (onlyModes > 1) {
1066
1073
  console.error(
1067
- "Use only one of --pricing-only, --schema-only, --examples-only, or --getters-only."
1074
+ "Use only one of --pricing-only, --schema-only, --examples-only, --getters-only, or --byok."
1068
1075
  );
1069
1076
  return 2;
1070
1077
  }
1078
+ if (options.byok) {
1079
+ const resolvedToolId = String(tool.toolId || toolId);
1080
+ const byok = recordField(tool, "byok");
1081
+ printCommandEnvelope(
1082
+ { toolId: resolvedToolId, byok },
1083
+ {
1084
+ json: Boolean(options.json || options.contractJson),
1085
+ text: `${toolByokLines(resolvedToolId, byok).join("\n")}
1086
+ `
1087
+ }
1088
+ );
1089
+ return 0;
1090
+ }
1071
1091
  if (options.pricingOnly) {
1072
1092
  const lines = toolPricingOnlyLines(tool, toolId);
1073
1093
  if (inferenceQuote)
@@ -1626,6 +1646,25 @@ function printCompactToolContract(tool, requestedToolId) {
1626
1646
  );
1627
1647
  console.log(`More: deepline describe ${contract.toolId} --json`);
1628
1648
  }
1649
+ function toolByokLines(toolId, byok) {
1650
+ if (typeof byok.supported !== "boolean") {
1651
+ return [`${toolId}`, "BYOK: unknown (this server does not report it)"];
1652
+ }
1653
+ if (!byok.supported) {
1654
+ return [
1655
+ `${toolId}`,
1656
+ "BYOK: not supported. Deepline runs this tool with its own credentials."
1657
+ ];
1658
+ }
1659
+ const setup = stringField2(byok, "setup");
1660
+ const setupUrl = stringField2(byok, "setupUrl");
1661
+ return [
1662
+ `${toolId}`,
1663
+ byok.required === true ? "BYOK: required. This tool runs only on your own provider credentials." : "BYOK: supported (optional).",
1664
+ ...setup ? [`Setup: ${setup}`] : [],
1665
+ ...setupUrl ? [`Connect: ${setupUrl}`] : []
1666
+ ];
1667
+ }
1629
1668
  function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1630
1669
  if (isMonitorTypeTool(tool)) {
1631
1670
  return monitorTypePricingLines(tool);
@@ -1917,6 +1956,8 @@ function toolMetadataJsonForDescribe(tool, requestedToolId) {
1917
1956
  deepline_usd_per_credit: _snakeDeeplineUsdPerCredit,
1918
1957
  deepline_pricing_summary: _snakeDeeplinePricingSummary,
1919
1958
  deepline_pricing_details: _snakeDeeplinePricingDetails,
1959
+ // BYOK is shown only on request, via --byok.
1960
+ byok: _byok,
1920
1961
  ...publicTool
1921
1962
  } = tool;
1922
1963
  const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkERMXQOIVjs = require('./chunk-ERMXQOIV.js');
5
+ var _chunkMKFHZDBOjs = require('./chunk-MKFHZDBO.js');
6
6
 
7
7
 
8
- var _chunk2AENFV3Bjs = require('./chunk-2AENFV3B.js');
8
+ var _chunkSFI7U6CAjs = require('./chunk-SFI7U6CA.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
39
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
139
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
153
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
200
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
227
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
254
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
269
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunk2AENFV3Bjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkSFI7U6CAjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkERMXQOIVjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkMKFHZDBOjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
322
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
371
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
392
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -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 _chunkERMXQOIVjs = require('./chunk-ERMXQOIV.js');
4
+ var _chunkMKFHZDBOjs = require('./chunk-MKFHZDBO.js');
5
5
 
6
6
 
7
- var _chunk2AENFV3Bjs = require('./chunk-2AENFV3B.js');
7
+ var _chunkSFI7U6CAjs = require('./chunk-SFI7U6CA.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 = _chunk2AENFV3Bjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkSFI7U6CAjs.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 } = _chunkERMXQOIVjs.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkMKFHZDBOjs.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
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
484
+ _chunkMKFHZDBOjs.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
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
516
+ _chunkMKFHZDBOjs.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
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
566
+ _chunkMKFHZDBOjs.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
- _chunkERMXQOIVjs.printCommandEnvelope.call(void 0,
674
+ _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,