deepline 0.3.415 → 0.3.416

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/auth-BNQP4UYQ.js +40 -0
  3. package/dist/cli/{auth-3R7XJOU4.mjs → auth-FLYZAZ7I.mjs} +4 -4
  4. package/dist/cli/{billing-63YR65DL.js → billing-SVGZSMBY.js} +73 -73
  5. package/dist/cli/{billing-CEQACJBE.mjs → billing-XZ62L6ZE.mjs} +4 -4
  6. package/dist/cli/{chunk-5MP7LBHF.js → chunk-2DRO4YWM.js} +2 -2
  7. package/dist/cli/{chunk-Q44253PX.mjs → chunk-2MQJODFQ.mjs} +1 -1
  8. package/dist/cli/{chunk-D34G5I2G.js → chunk-4R3TJDWD.js} +8 -8
  9. package/dist/cli/{chunk-5RZZHZEJ.mjs → chunk-6GYQG6V3.mjs} +3 -3
  10. package/dist/cli/{chunk-TQU3G7NC.mjs → chunk-7OLAGY3W.mjs} +4 -4
  11. package/dist/cli/{chunk-UK22LQKF.mjs → chunk-DBMALDT3.mjs} +8 -8
  12. package/dist/cli/{chunk-JM3BQNP2.mjs → chunk-DT36JAAX.mjs} +2 -2
  13. package/dist/cli/{chunk-H3ZWEHLG.js → chunk-E5FNJE3Y.js} +4 -4
  14. package/dist/cli/{chunk-5L3NL6HV.mjs → chunk-ENBTCBGT.mjs} +23 -14
  15. package/dist/cli/{chunk-U4RSPPD7.mjs → chunk-ERPU6HBQ.mjs} +3 -3
  16. package/dist/cli/{chunk-BBQTQRDC.js → chunk-ESUBIEVT.js} +6 -6
  17. package/dist/cli/{chunk-IOULR7YA.js → chunk-F5KJFBDA.js} +1 -1
  18. package/dist/cli/{chunk-TOUMT7XB.mjs → chunk-FFEA6KAB.mjs} +2 -2
  19. package/dist/cli/{chunk-EMWMLURG.mjs → chunk-G3WJWD4R.mjs} +1 -1
  20. package/dist/cli/{chunk-CKP2OAKZ.js → chunk-LFUGXKJW.js} +20 -20
  21. package/dist/cli/{chunk-WAPSY6F3.js → chunk-MRL2OMZY.js} +10 -10
  22. package/dist/cli/{chunk-WQXQDVHQ.mjs → chunk-MT7VPFMN.mjs} +2 -2
  23. package/dist/cli/{chunk-OJGQ7JE3.mjs → chunk-NPFMAFUC.mjs} +1 -1
  24. package/dist/cli/{chunk-DI63MOEP.js → chunk-NWPC3FUA.js} +28 -19
  25. package/dist/cli/{chunk-Y2CT65YJ.mjs → chunk-PH6OXQC7.mjs} +1 -1
  26. package/dist/cli/{chunk-LEPECCA5.mjs → chunk-Q6MUMX2G.mjs} +2 -2
  27. package/dist/cli/{chunk-UOGTM7NF.js → chunk-TOIDV6Q4.js} +50 -50
  28. package/dist/cli/{chunk-M2I4TC2C.js → chunk-TXLZ6BJC.js} +26 -26
  29. package/dist/cli/{chunk-N4SYPFH4.js → chunk-UJTWIOQK.js} +6 -6
  30. package/dist/cli/{chunk-UCE2CYXP.js → chunk-UXLXZN2F.js} +2 -2
  31. package/dist/cli/{chunk-OJ4N5XMI.js → chunk-WL3MI252.js} +35 -35
  32. package/dist/cli/{chunk-EV6OLL4W.mjs → chunk-XP6LSFCW.mjs} +5 -5
  33. package/dist/cli/{chunk-6WQGIJSW.mjs → chunk-XUMHZPE3.mjs} +1 -1
  34. package/dist/cli/{chunk-F66SBZUA.js → chunk-YCAMTIYM.js} +79 -79
  35. package/dist/cli/{chunk-KOQGG5WZ.js → chunk-YK3XHX7G.js} +16 -16
  36. package/dist/cli/{chunk-44SXWCI5.js → chunk-ZCO7R65D.js} +52 -52
  37. package/dist/cli/{chunk-CQ5FHAX2.mjs → chunk-ZMQTLPLJ.mjs} +1 -1
  38. package/dist/cli/{csv-2KFJJLDT.mjs → csv-4TAHSCJO.mjs} +3 -3
  39. package/dist/cli/{csv-PKQX3TSA.js → csv-X72WTTMT.js} +12 -12
  40. package/dist/cli/{db-PLBBJZSD.js → db-3LIMAM2U.js} +25 -25
  41. package/dist/cli/{db-N26UHFY7.mjs → db-CK3WE7QC.mjs} +4 -4
  42. package/dist/cli/{describe-7RR4IO2K.mjs → describe-FW6XZCFK.mjs} +12 -12
  43. package/dist/cli/{describe-QGZ33RCB.js → describe-H2Z2VKU2.js} +16 -16
  44. package/dist/cli/{executions-XUFGT3SW.mjs → executions-VXGO3GSE.mjs} +4 -4
  45. package/dist/cli/{executions-A7JY32A5.js → executions-X7SXKMAI.js} +6 -6
  46. package/dist/cli/{feedback-GU7HYQPX.js → feedback-6I3NFUPV.js} +7 -7
  47. package/dist/cli/{feedback-PIDESS5I.mjs → feedback-KTDQHUNJ.mjs} +3 -3
  48. package/dist/cli/git-LLP4T6XB.js +24 -0
  49. package/dist/cli/{git-ST2L7VCM.mjs → git-ODZASGIK.mjs} +4 -4
  50. package/dist/cli/index.js +131 -131
  51. package/dist/cli/index.mjs +36 -36
  52. package/dist/cli/{legacy-noops-Q4D3TT7J.js → legacy-noops-HLVQGZ72.js} +7 -7
  53. package/dist/cli/{legacy-noops-WLZ3HD5L.mjs → legacy-noops-KNGT6U3L.mjs} +4 -4
  54. package/dist/cli/{monitors-DQBYHBTI.js → monitors-3F5EZCMB.js} +84 -84
  55. package/dist/cli/{monitors-4DRP7ABU.mjs → monitors-JLGADUE5.mjs} +4 -4
  56. package/dist/cli/{org-XMP5FH4W.mjs → org-D7AW6LIR.mjs} +4 -4
  57. package/dist/cli/{org-JDFN2BMD.js → org-Z4LPCJII.js} +64 -64
  58. package/dist/cli/{play-LSEV7CLQ.mjs → play-MO3SAHDS.mjs} +10 -10
  59. package/dist/cli/{play-AVX67TTR.js → play-UBNDV57A.js} +283 -283
  60. package/dist/cli/{providers-3B7KUXCF.mjs → providers-QCBNQY4A.mjs} +4 -4
  61. package/dist/cli/{providers-QOUY73G2.js → providers-SL6ZSEDI.js} +7 -7
  62. package/dist/cli/{quickstart-KFITIZGE.mjs → quickstart-K7J4YOTE.mjs} +3 -3
  63. package/dist/cli/{quickstart-BVKDXXBN.js → quickstart-YGFVF6VL.js} +5 -5
  64. package/dist/cli/{search-MXMDK6BE.mjs → search-DVE6TKQ3.mjs} +5 -5
  65. package/dist/cli/search-V4HNFZRE.js +30 -0
  66. package/dist/cli/{secrets-PHV2PC55.js → secrets-G7ZMCH5J.js} +13 -13
  67. package/dist/cli/{secrets-IX6ZHGMU.mjs → secrets-JOVBXCUR.mjs} +4 -4
  68. package/dist/cli/{sessions-NHNLYXBA.mjs → sessions-NA5POIR5.mjs} +4 -4
  69. package/dist/cli/{sessions-2YAIVSQY.js → sessions-QQV7FO4Y.js} +5 -5
  70. package/dist/cli/{settings-SAHN4OJN.mjs → settings-AM44HC2C.mjs} +8 -8
  71. package/dist/cli/{settings-APUXXPOD.js → settings-XGFHXFCJ.js} +75 -75
  72. package/dist/cli/{setup-URQ7BG5P.js → setup-DA4TSWCY.js} +42 -42
  73. package/dist/cli/{setup-QOZSIUEX.mjs → setup-RUBLF452.mjs} +7 -7
  74. package/dist/cli/skills-6AQTCBTF.js +29 -0
  75. package/dist/cli/{skills-FLNMB5IF.mjs → skills-TRG55YOF.mjs} +5 -5
  76. package/dist/cli/{tools-USDETSBP.mjs → tools-CEEA7DU4.mjs} +12 -12
  77. package/dist/cli/tools-JLPTH7TF.js +44 -0
  78. package/dist/cli/update-EKEBZDIX.js +31 -0
  79. package/dist/cli/{update-ZPY45JN4.mjs → update-Y5GSWR67.mjs} +7 -7
  80. package/dist/cli/{workflow-GSEM32G7.mjs → workflow-74I6RNJR.mjs} +5 -5
  81. package/dist/cli/{workflow-KYWMP2JG.js → workflow-D2VHQKJB.js} +15 -15
  82. package/dist/index.js +6 -6
  83. package/dist/index.mjs +3 -3
  84. package/dist/install-integrity.json +78 -78
  85. package/dist/release.d.mts +1 -1
  86. package/dist/release.d.ts +1 -1
  87. package/dist/release.js +2 -2
  88. package/dist/release.mjs +1 -1
  89. package/package.json +1 -1
  90. package/dist/cli/auth-BPP3XUUK.js +0 -40
  91. package/dist/cli/git-EGJIIULI.js +0 -24
  92. package/dist/cli/search-UWPN4TLM.js +0 -30
  93. package/dist/cli/skills-ODG4WSUP.js +0 -29
  94. package/dist/cli/tools-R43QU6JL.js +0 -44
  95. package/dist/cli/update-AGI5HJUV.js +0 -31
@@ -3,15 +3,15 @@
3
3
  var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
4
4
 
5
5
 
6
- var _chunkWAPSY6F3js = require('./chunk-WAPSY6F3.js');
6
+ var _chunkMRL2OMZYjs = require('./chunk-MRL2OMZY.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkN4SYPFH4js = require('./chunk-N4SYPFH4.js');
10
+ var _chunkUJTWIOQKjs = require('./chunk-UJTWIOQK.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkH3ZWEHLGjs = require('./chunk-H3ZWEHLG.js');
14
+ var _chunkE5FNJE3Yjs = require('./chunk-E5FNJE3Y.js');
15
15
 
16
16
 
17
17
 
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
5713
5713
  var _path = require('path');
5714
5714
  var SEARCH_REF_TTL_MS = 15 * 6e4;
5715
5715
  function lastSearchPath() {
5716
- return _path.join.call(void 0, _chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, _chunkH3ZWEHLGjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5716
+ return _path.join.call(void 0, _chunkE5FNJE3Yjs.sdkCliStateDirPath.call(void 0, _chunkE5FNJE3Yjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5717
5717
  }
5718
5718
  function rememberSearchRef(searchRef) {
5719
5719
  try {
@@ -5759,11 +5759,12 @@ function formatTextTable(rows, columns) {
5759
5759
  }
5760
5760
 
5761
5761
  // src/cli/search-output.ts
5762
- function clipSummary(value) {
5762
+ var DEFAULT_SUMMARY_WIDTH = 140;
5763
+ function clipSummary(value, width) {
5763
5764
  const characters = Array.from(value.replace(/\s+/gu, " ").trim());
5764
- return characters.length <= 78 ? characters.join("") : `${characters.slice(0, 77).join("")}\u2026`;
5765
+ return characters.length <= width ? characters.join("") : `${characters.slice(0, width - 1).join("")}\u2026`;
5765
5766
  }
5766
- function pricingDisplay(item) {
5767
+ function pricingDisplay(item, noteWidth) {
5767
5768
  const pricing = item.pricing;
5768
5769
  const observedCost = item.observedCost;
5769
5770
  if (observedCost) {
@@ -5813,7 +5814,7 @@ function pricingDisplay(item) {
5813
5814
  return { cost: "unknown", notes: [] };
5814
5815
  return {
5815
5816
  cost: pricing.unit === "usage" ? "usage-based" : "variable",
5816
- notes: display ? [clipSummary(display)] : []
5817
+ notes: display ? [clipSummary(display, noteWidth)] : []
5817
5818
  };
5818
5819
  }
5819
5820
  var RATE_WINDOW_UNITS = {
@@ -5841,8 +5842,8 @@ function latencyDisplay(ms) {
5841
5842
  if (ms < 6e4) return `${(ms / 1e3).toFixed(ms < 1e4 ? 1 : 0)}s`;
5842
5843
  return `${(ms / 6e4).toFixed(1)}min`;
5843
5844
  }
5844
- function searchRow(item) {
5845
- const { cost, notes } = pricingDisplay(item);
5845
+ function searchRow(item, summaryWidth) {
5846
+ const { cost, notes } = pricingDisplay(item, summaryWidth);
5846
5847
  const observedMax = item.billingSource === "own_provider_credentials" ? "" : _chunkZM2YPJQJjs.observedMaxText.call(void 0, item.pricing);
5847
5848
  if (observedMax)
5848
5849
  notes.push(`${observedMax[0].toUpperCase()}${observedMax.slice(1)}.`);
@@ -5861,7 +5862,7 @@ function searchRow(item) {
5861
5862
  failureRate: failureRateDisplay(item.failureRate),
5862
5863
  // Production p95 latency of successful calls; absent for the same reason.
5863
5864
  p95: latencyDisplay(item.latencyP95Ms),
5864
- summary: clipSummary(_nullishCoalesce(item.description, () => ( ""))),
5865
+ summary: clipSummary(_nullishCoalesce(item.description, () => ( "")), summaryWidth),
5865
5866
  notes
5866
5867
  };
5867
5868
  }
@@ -5870,10 +5871,10 @@ var OPTIONAL_COLUMNS = [
5870
5871
  { header: "FAILURES", key: "failureRate" },
5871
5872
  { header: "P95", key: "p95" }
5872
5873
  ];
5873
- function renderSearchResults(result) {
5874
+ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5874
5875
  if (result.results.length === 0)
5875
- return _chunkN4SYPFH4js.renderCommandEnvelopeText.call(void 0, result);
5876
- const rows = result.results.map(searchRow);
5876
+ return _chunkUJTWIOQKjs.renderCommandEnvelopeText.call(void 0, result);
5877
+ const rows = result.results.map((item) => searchRow(item, summaryWidth));
5877
5878
  const kinds = new Set(rows.map((row) => row.kind));
5878
5879
  const onlyTools = kinds.size === 1 && kinds.has("tool");
5879
5880
  const columns = [
@@ -5897,7 +5898,7 @@ function renderSearchResults(result) {
5897
5898
  actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
5898
5899
  };
5899
5900
  const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
5900
- ${_chunkN4SYPFH4js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5901
+ ${_chunkUJTWIOQKjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5901
5902
  const notes = rows.flatMap(
5902
5903
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
5903
5904
  );
@@ -5950,7 +5951,10 @@ function addSearchOptions(command) {
5950
5951
  ).option(
5951
5952
  "--search_terms <terms>",
5952
5953
  "Comma-separated structured search terms; may be used without a task"
5953
- ).option("--search-terms <terms>", "Alias for --search_terms").addOption(new (0, _commander.Option)("--task <sentence>").hideHelp()).option("--limit <count>", "Maximum ranked results to return (1-50)").option("--offset <count>", "Zero-based ranked result offset").option("--search-mode <mode>", "Ranked search mode: v1 or v2").option("--include-search-debug", "Include ranked search debug metadata").option("--json", "Emit JSON output instead of the readable default");
5954
+ ).option("--search-terms <terms>", "Alias for --search_terms").addOption(new (0, _commander.Option)("--task <sentence>").hideHelp()).option("--limit <count>", "Maximum ranked results to return (1-50)").option(
5955
+ "--summary-width <chars>",
5956
+ `Characters of each description shown in the readable list (default ${DEFAULT_SUMMARY_WIDTH})`
5957
+ ).option("--offset <count>", "Zero-based ranked result offset").option("--search-mode <mode>", "Ranked search mode: v1 or v2").option("--include-search-debug", "Include ranked search debug metadata").option("--json", "Emit JSON output instead of the readable default");
5954
5958
  }
5955
5959
  function pointAtDescribe(result) {
5956
5960
  const old = /`deepline (tools|plays) describe [^`]*`/;
@@ -5974,7 +5978,12 @@ async function runSearch(queryInput, options, types, exclude = []) {
5974
5978
  console.error(USAGE);
5975
5979
  return 1;
5976
5980
  }
5977
- const { search_ref: searchRef, ...result } = await new (0, _chunkWAPSY6F3js.DeeplineClient)().search({
5981
+ const summaryWidth = _nullishCoalesce(optionalInteger(options.summaryWidth), () => ( DEFAULT_SUMMARY_WIDTH));
5982
+ if (!Number.isInteger(summaryWidth) || summaryWidth < 2) {
5983
+ console.error("--summary-width must be an integer of at least 2.");
5984
+ return 1;
5985
+ }
5986
+ const { search_ref: searchRef, ...result } = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().search({
5978
5987
  query,
5979
5988
  types,
5980
5989
  exclude,
@@ -5988,9 +5997,9 @@ async function runSearch(queryInput, options, types, exclude = []) {
5988
5997
  });
5989
5998
  if (searchRef) rememberSearchRef(searchRef);
5990
5999
  pointAtDescribe(result);
5991
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, result, {
6000
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, result, {
5992
6001
  json: options.json === true,
5993
- text: renderSearchResults(result)
6002
+ text: renderSearchResults(result, summaryWidth)
5994
6003
  });
5995
6004
  return 0;
5996
6005
  }
@@ -28,7 +28,7 @@ import {
28
28
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
29
29
  SDK_API_MAJOR,
30
30
  resolveConfig
31
- } from "./chunk-Q44253PX.mjs";
31
+ } from "./chunk-2MQJODFQ.mjs";
32
32
  import {
33
33
  CustomerDbQueryOutcomeUnknownError
34
34
  } from "./chunk-MAMVGOSC.mjs";
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-OJGQ7JE3.mjs";
5
+ } from "./chunk-NPFMAFUC.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-Q44253PX.mjs";
8
+ } from "./chunk-2MQJODFQ.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkN4SYPFH4js = require('./chunk-N4SYPFH4.js');
5
+ var _chunkUJTWIOQKjs = require('./chunk-UJTWIOQK.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkN4SYPFH4js = require('./chunk-N4SYPFH4.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkH3ZWEHLGjs = require('./chunk-H3ZWEHLG.js');
28
+ var _chunkE5FNJE3Yjs = require('./chunk-E5FNJE3Y.js');
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
 
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
52
52
  return `Service notice: ${banner.message}`;
53
53
  }
54
54
  function envFilePath(baseUrl) {
55
- return _chunkH3ZWEHLGjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunkE5FNJE3Yjs.hostEnvFilePath.call(void 0, baseUrl);
56
56
  }
57
57
  function normalizeAuthScope(value) {
58
58
  if (!value || value === "global") return "global";
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
65
65
  }
66
66
  function pendingClaimPath(baseUrl, scope) {
67
67
  if (scope === "folder") {
68
- const target = _chunkH3ZWEHLGjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunkE5FNJE3Yjs.resolveProjectPinTarget.call(void 0, );
69
69
  if (!target.ok) {
70
70
  throw new Error(
71
71
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
75
75
  }
76
76
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
77
77
  }
78
- return `${_chunkH3ZWEHLGjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunkE5FNJE3Yjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkH3ZWEHLGjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunkE5FNJE3Yjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
82
82
  }
83
83
  function savePendingClaim(baseUrl, claim) {
84
84
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
180
180
  function shouldWaitForRegisterClaim(mode) {
181
181
  if (mode === "yes") return true;
182
182
  if (mode === "no") return false;
183
- return _chunkH3ZWEHLGjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunkE5FNJE3Yjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkH3ZWEHLGjs.HOST_URL_ENV] ? { [_chunkH3ZWEHLGjs.HOST_URL_ENV]: values[_chunkH3ZWEHLGjs.HOST_URL_ENV] } : {},
188
- ...values[_chunkH3ZWEHLGjs.API_KEY_ENV] ? { [_chunkH3ZWEHLGjs.API_KEY_ENV]: values[_chunkH3ZWEHLGjs.API_KEY_ENV] } : {},
189
- ...values[_chunkH3ZWEHLGjs.ACTIVE_ORG_ID_ENV] ? { [_chunkH3ZWEHLGjs.ACTIVE_ORG_ID_ENV]: values[_chunkH3ZWEHLGjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkH3ZWEHLGjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkH3ZWEHLGjs.ACTIVE_ORG_NAME_ENV]: values[_chunkH3ZWEHLGjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunkE5FNJE3Yjs.HOST_URL_ENV] ? { [_chunkE5FNJE3Yjs.HOST_URL_ENV]: values[_chunkE5FNJE3Yjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunkE5FNJE3Yjs.API_KEY_ENV] ? { [_chunkE5FNJE3Yjs.API_KEY_ENV]: values[_chunkE5FNJE3Yjs.API_KEY_ENV] } : {},
189
+ ...values[_chunkE5FNJE3Yjs.ACTIVE_ORG_ID_ENV] ? { [_chunkE5FNJE3Yjs.ACTIVE_ORG_ID_ENV]: values[_chunkE5FNJE3Yjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunkE5FNJE3Yjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkE5FNJE3Yjs.ACTIVE_ORG_NAME_ENV]: values[_chunkE5FNJE3Yjs.ACTIVE_ORG_NAME_ENV] } : {},
191
191
  // An explicit empty list must reach the store: it clears a stale line.
192
- ...Object.prototype.hasOwnProperty.call(values, _chunkH3ZWEHLGjs.FEATURES_ENV) ? { [_chunkH3ZWEHLGjs.FEATURES_ENV]: values[_chunkH3ZWEHLGjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkE5FNJE3Yjs.FEATURES_ENV) ? { [_chunkE5FNJE3Yjs.FEATURES_ENV]: values[_chunkE5FNJE3Yjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkH3ZWEHLGjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunkE5FNJE3Yjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkH3ZWEHLGjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunkE5FNJE3Yjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
198
198
  }
199
199
  }
200
200
  function activeOrgEnvValues(data) {
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
202
202
  if (!orgId) return {};
203
203
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
204
204
  return {
205
- [_chunkH3ZWEHLGjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkH3ZWEHLGjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkH3ZWEHLGjs.featureEnvValues.call(void 0, data)
205
+ [_chunkE5FNJE3Yjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunkE5FNJE3Yjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunkE5FNJE3Yjs.featureEnvValues.call(void 0, data)
208
208
  };
209
209
  }
210
210
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
211
211
  const headers = {
212
212
  "Content-Type": "application/json",
213
- "User-Agent": `deepline-ts-sdk/${_chunkH3ZWEHLGjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunkE5FNJE3Yjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkH3ZWEHLGjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkH3ZWEHLGjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkH3ZWEHLGjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkH3ZWEHLGjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunkE5FNJE3Yjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunkE5FNJE3Yjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunkE5FNJE3Yjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunkE5FNJE3Yjs.SDK_API_CONTRACT
220
220
  };
221
221
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
222
222
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -262,7 +262,7 @@ async function readStatusBanner(baseUrl) {
262
262
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
263
263
  }
264
264
  async function reportSetupCompleted(input) {
265
- const apiKey = input.authScope === "folder" ? _chunkH3ZWEHLGjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkH3ZWEHLGjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
265
+ const apiKey = input.authScope === "folder" ? _chunkE5FNJE3Yjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkE5FNJE3Yjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
266
266
  if (!apiKey) return;
267
267
  try {
268
268
  await httpJson(
@@ -359,7 +359,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
359
359
  }
360
360
  }
361
361
  async function handleRegister(args) {
362
- const baseUrl = _chunkH3ZWEHLGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
362
+ const baseUrl = _chunkE5FNJE3Yjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
363
363
  let orgName = "";
364
364
  let orgId = "";
365
365
  let agentName = "";
@@ -414,19 +414,19 @@ async function handleRegister(args) {
414
414
  });
415
415
  saveEnvValues(
416
416
  {
417
- [_chunkH3ZWEHLGjs.HOST_URL_ENV]: baseUrl
417
+ [_chunkE5FNJE3Yjs.HOST_URL_ENV]: baseUrl
418
418
  },
419
419
  baseUrl,
420
420
  authScope
421
421
  );
422
422
  }
423
423
  if (claimUrl) {
424
- const shouldOpen = waitMode !== "no" && _chunkH3ZWEHLGjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
424
+ const shouldOpen = waitMode !== "no" && _chunkE5FNJE3Yjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
425
425
  console.log(
426
426
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
427
427
  );
428
428
  console.log(` ${claimUrl}`);
429
- if (shouldOpen) _chunkN4SYPFH4js.openInBrowser.call(void 0, claimUrl);
429
+ if (shouldOpen) _chunkUJTWIOQKjs.openInBrowser.call(void 0, claimUrl);
430
430
  }
431
431
  if (data.cli_message) {
432
432
  console.log(String(data.cli_message));
@@ -469,8 +469,8 @@ async function handleRegister(args) {
469
469
  if (apiKey) {
470
470
  saveEnvValues(
471
471
  {
472
- [_chunkH3ZWEHLGjs.HOST_URL_ENV]: baseUrl,
473
- [_chunkH3ZWEHLGjs.API_KEY_ENV]: apiKey,
472
+ [_chunkE5FNJE3Yjs.HOST_URL_ENV]: baseUrl,
473
+ [_chunkE5FNJE3Yjs.API_KEY_ENV]: apiKey,
474
474
  ...activeOrgEnvValues(statusData)
475
475
  },
476
476
  baseUrl,
@@ -492,7 +492,7 @@ async function handleRegister(args) {
492
492
  }
493
493
  }
494
494
  async function handleWait(args) {
495
- const baseUrl = _chunkH3ZWEHLGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
495
+ const baseUrl = _chunkE5FNJE3Yjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
496
496
  let timeoutSeconds = 300;
497
497
  let requestedScope;
498
498
  if (args.includes("--auth-scope")) {
@@ -516,7 +516,7 @@ async function handleWait(args) {
516
516
  const authScope = resumed.scope;
517
517
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _12 => _12.claimToken]), () => ( ""));
518
518
  if (!pendingClaim) {
519
- const scopedApiKey = authScope === "folder" ? _chunkH3ZWEHLGjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkH3ZWEHLGjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
519
+ const scopedApiKey = authScope === "folder" ? _chunkE5FNJE3Yjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkE5FNJE3Yjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
520
520
  if (scopedApiKey) {
521
521
  console.log("Already connected.");
522
522
  return EXIT_OK;
@@ -559,8 +559,8 @@ async function handleWait(args) {
559
559
  if (apiKey) {
560
560
  saveEnvValues(
561
561
  {
562
- [_chunkH3ZWEHLGjs.HOST_URL_ENV]: baseUrl,
563
- [_chunkH3ZWEHLGjs.API_KEY_ENV]: apiKey,
562
+ [_chunkE5FNJE3Yjs.HOST_URL_ENV]: baseUrl,
563
+ [_chunkE5FNJE3Yjs.API_KEY_ENV]: apiKey,
564
564
  ...activeOrgEnvValues(data)
565
565
  },
566
566
  baseUrl,
@@ -584,8 +584,8 @@ async function handleWait(args) {
584
584
  return EXIT_AUTH;
585
585
  }
586
586
  async function authStatusLine(timeoutMs = 3e3) {
587
- const baseUrl = _chunkH3ZWEHLGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
588
- const apiKey = _chunkH3ZWEHLGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
587
+ const baseUrl = _chunkE5FNJE3Yjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
588
+ const apiKey = _chunkE5FNJE3Yjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
589
589
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
590
590
  try {
591
591
  const { status, data } = await httpJson(
@@ -608,9 +608,9 @@ async function authStatusLine(timeoutMs = 3e3) {
608
608
  }
609
609
  }
610
610
  async function handleStatus(args) {
611
- const baseUrl = _chunkH3ZWEHLGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
611
+ const baseUrl = _chunkE5FNJE3Yjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
612
612
  const reveal = args.includes("--reveal");
613
- const jsonOutput = _chunkN4SYPFH4js.argsWantJson.call(void 0, args);
613
+ const jsonOutput = _chunkUJTWIOQKjs.argsWantJson.call(void 0, args);
614
614
  const hasExplicitAuthScope = args.includes("--auth-scope");
615
615
  let authScope = null;
616
616
  if (hasExplicitAuthScope) {
@@ -651,14 +651,14 @@ async function handleStatus(args) {
651
651
  };
652
652
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
653
653
  }
654
- const apiKey = authScope === "folder" ? _chunkH3ZWEHLGjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkH3ZWEHLGjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkH3ZWEHLGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
654
+ const apiKey = authScope === "folder" ? _chunkE5FNJE3Yjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkE5FNJE3Yjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkE5FNJE3Yjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
655
655
  if (!apiKey) {
656
656
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
657
657
  baseUrl,
658
658
  _nullishCoalesce(authScope, () => ( void 0))
659
659
  );
660
660
  if (pendingClaim) {
661
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
661
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
662
662
  {
663
663
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
664
664
  status: "pending",
@@ -679,7 +679,7 @@ async function handleStatus(args) {
679
679
  );
680
680
  return EXIT_OK;
681
681
  }
682
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
682
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
683
683
  {
684
684
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
685
685
  status: "not connected",
@@ -712,7 +712,7 @@ async function handleStatus(args) {
712
712
  }
713
713
  );
714
714
  if (status === 401 || status === 403) {
715
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
715
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
716
716
  {
717
717
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
718
718
  status: "unauthorized",
@@ -739,7 +739,7 @@ async function handleStatus(args) {
739
739
  console.error(`Auth status error (status ${status}).`);
740
740
  return EXIT_SERVER;
741
741
  }
742
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkH3ZWEHLGjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
742
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkE5FNJE3Yjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
743
743
  clearSatisfiedPendingClaim(
744
744
  baseUrl,
745
745
  resolvedAuthScope,
@@ -767,28 +767,28 @@ async function handleStatus(args) {
767
767
  if (apiKeyResp) {
768
768
  saveEnvValues(
769
769
  {
770
- [_chunkH3ZWEHLGjs.HOST_URL_ENV]: baseUrl,
771
- [_chunkH3ZWEHLGjs.API_KEY_ENV]: apiKeyResp,
770
+ [_chunkE5FNJE3Yjs.HOST_URL_ENV]: baseUrl,
771
+ [_chunkE5FNJE3Yjs.API_KEY_ENV]: apiKeyResp,
772
772
  ...activeOrgEnvValues(data)
773
773
  },
774
774
  baseUrl,
775
775
  resolvedAuthScope
776
776
  );
777
777
  if (resolvedAuthScope === "folder") {
778
- const target = _chunkH3ZWEHLGjs.resolveProjectPinTarget.call(void 0, );
778
+ const target = _chunkE5FNJE3Yjs.resolveProjectPinTarget.call(void 0, );
779
779
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
780
780
  } else {
781
781
  savedApiKeyPath = envFilePath(baseUrl);
782
782
  }
783
783
  }
784
- } else if (resolvedAuthScope === "folder" || _chunkH3ZWEHLGjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
785
- saveEnvValues(_chunkH3ZWEHLGjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
784
+ } else if (resolvedAuthScope === "folder" || _chunkE5FNJE3Yjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
785
+ saveEnvValues(_chunkE5FNJE3Yjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
786
786
  }
787
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
787
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
788
788
  {
789
789
  ...payload,
790
- ..._chunkH3ZWEHLGjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
791
- command_context: _chunkH3ZWEHLGjs.resolveCliCommandContext.call(void 0,
790
+ ..._chunkE5FNJE3Yjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
791
+ command_context: _chunkE5FNJE3Yjs.resolveCliCommandContext.call(void 0,
792
792
  { baseUrl, apiKey },
793
793
  resolvedAuthScope
794
794
  )
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkN4SYPFH4js = require('./chunk-N4SYPFH4.js');
5
+ var _chunkUJTWIOQKjs = require('./chunk-UJTWIOQK.js');
6
6
 
7
7
 
8
- var _chunkH3ZWEHLGjs = require('./chunk-H3ZWEHLG.js');
8
+ var _chunkE5FNJE3Yjs = require('./chunk-E5FNJE3Y.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 } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkUJTWIOQKjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
39
+ _chunkUJTWIOQKjs.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 } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkUJTWIOQKjs.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
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
139
+ _chunkUJTWIOQKjs.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 } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkUJTWIOQKjs.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
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
153
+ _chunkUJTWIOQKjs.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 } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkUJTWIOQKjs.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 } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkUJTWIOQKjs.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
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
200
+ _chunkUJTWIOQKjs.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 } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkUJTWIOQKjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
227
+ _chunkUJTWIOQKjs.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 } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkUJTWIOQKjs.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
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
254
+ _chunkUJTWIOQKjs.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 } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkUJTWIOQKjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
269
+ _chunkUJTWIOQKjs.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 = _chunkH3ZWEHLGjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkE5FNJE3Yjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkN4SYPFH4js.openInBrowser.call(void 0, connectUrl);
292
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkUJTWIOQKjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkUJTWIOQKjs.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 } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkUJTWIOQKjs.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
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
322
+ _chunkUJTWIOQKjs.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 } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkUJTWIOQKjs.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
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
371
+ _chunkUJTWIOQKjs.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 } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkUJTWIOQKjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
392
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,