deepline 0.3.465 → 0.3.467

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 (156) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +43 -3
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +17 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +325 -44
  5. package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +15 -0
  6. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +51 -6
  7. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +37 -1
  8. package/dist/cli/{auth-WZCX4MTH.mjs → auth-7H62VDZD.mjs} +5 -5
  9. package/dist/cli/auth-EXW5E3DI.js +41 -0
  10. package/dist/cli/{billing-ATR3CLIW.mjs → billing-6TM3ZXDR.mjs} +44 -6
  11. package/dist/cli/{billing-DQUD3DBY.js → billing-N5BNGGYN.js} +115 -77
  12. package/dist/cli/{chunk-7YDN6AEK.mjs → chunk-3RGWTKK3.mjs} +10 -0
  13. package/dist/cli/{chunk-4URRABMM.js → chunk-3ZGSR6X7.js} +1 -1
  14. package/dist/cli/{chunk-PIGMBDBZ.js → chunk-42AW4SQR.js} +21 -21
  15. package/dist/cli/{chunk-E3EYQ2FQ.mjs → chunk-4LTQYDZG.mjs} +4 -4
  16. package/dist/cli/{chunk-NIJYJI67.mjs → chunk-5RXKAXFD.mjs} +2 -2
  17. package/dist/cli/{chunk-UMQT7QMB.mjs → chunk-6UZ4MRWN.mjs} +2 -2
  18. package/dist/cli/{chunk-7R76B3WE.js → chunk-7Y53LJLE.js} +5 -5
  19. package/dist/cli/{chunk-6WKYRHGT.js → chunk-7ZZWOJTM.js} +3 -3
  20. package/dist/cli/{chunk-QPJ2BDFD.js → chunk-AD5BZUAP.js} +5 -5
  21. package/dist/cli/{chunk-FFTLJGZQ.mjs → chunk-AU4BWQTT.mjs} +5 -5
  22. package/dist/cli/{chunk-YZZGFUQ4.mjs → chunk-AUVEQ3JX.mjs} +1 -1
  23. package/dist/cli/{chunk-6Y34LU6P.mjs → chunk-C4GBOGTW.mjs} +2 -2
  24. package/dist/cli/{chunk-RREWUPC3.js → chunk-C6EGT3LO.js} +184 -174
  25. package/dist/cli/{chunk-HXWZ52CW.mjs → chunk-CER3XHT3.mjs} +3 -3
  26. package/dist/cli/{chunk-X6BQ4JAD.mjs → chunk-DCDTCG2D.mjs} +2 -2
  27. package/dist/cli/{chunk-TJXGEK7P.js → chunk-FFOAOQ77.js} +6 -6
  28. package/dist/cli/{chunk-B6GAIXVD.mjs → chunk-FP3DH46P.mjs} +4 -4
  29. package/dist/cli/{chunk-7Y2MLWTM.mjs → chunk-FQIGRZ52.mjs} +1 -1
  30. package/dist/cli/{chunk-3XFNF6RR.js → chunk-FRY76AFK.js} +8 -8
  31. package/dist/cli/{chunk-W4J2EK5K.js → chunk-FS55YDCW.js} +3 -3
  32. package/dist/cli/{chunk-GBQSEOXE.js → chunk-FVA6XLRA.js} +7 -7
  33. package/dist/cli/{chunk-OGCAGZXO.mjs → chunk-FVYAEBGO.mjs} +23 -2
  34. package/dist/cli/{chunk-XFAO5A5R.mjs → chunk-G35HNL6P.mjs} +1 -1
  35. package/dist/cli/{chunk-E3PLLFE2.js → chunk-H3QDLCRT.js} +53 -53
  36. package/dist/cli/{chunk-HIMV32ZX.js → chunk-HNP5V5BN.js} +23 -2
  37. package/dist/cli/{chunk-GW7RUNLW.mjs → chunk-HTXQUA3V.mjs} +12 -2
  38. package/dist/cli/{chunk-OEU3ZNBZ.mjs → chunk-I3LWDZRN.mjs} +1 -1
  39. package/dist/cli/{chunk-BQNUJK53.js → chunk-KMYCHMZF.js} +26 -26
  40. package/dist/cli/{chunk-GNLCGR7R.mjs → chunk-KUCUHRLC.mjs} +2 -2
  41. package/dist/cli/{chunk-OQDN6JK6.js → chunk-LAMHSZ74.js} +13 -13
  42. package/dist/cli/{chunk-DJD4KLIX.js → chunk-LKVOV7PX.js} +258 -258
  43. package/dist/cli/{chunk-OKI3HWFF.js → chunk-MGUQGKHE.js} +8 -8
  44. package/dist/cli/{chunk-EA2F4YVX.mjs → chunk-MRBDFPJ7.mjs} +2 -2
  45. package/dist/cli/{chunk-JLZKF7EY.js → chunk-NPZBE64X.js} +11 -1
  46. package/dist/cli/{chunk-HS6CM7TF.mjs → chunk-NU64F53H.mjs} +11 -11
  47. package/dist/cli/{chunk-EISIAWBD.mjs → chunk-OSKGEBE7.mjs} +1 -1
  48. package/dist/cli/{chunk-3K3EHT6E.mjs → chunk-R5ZJICJA.mjs} +1 -1
  49. package/dist/cli/{chunk-SSQXSMAT.mjs → chunk-RH6DVPGW.mjs} +2 -2
  50. package/dist/cli/{chunk-5VGMRONE.js → chunk-SHGBHP6J.js} +3 -3
  51. package/dist/cli/{chunk-EVQBOVOJ.mjs → chunk-SYLR33PS.mjs} +3 -3
  52. package/dist/cli/{chunk-L3U44YVO.js → chunk-T5GRG37B.js} +5 -5
  53. package/dist/cli/{chunk-JQSPKPHT.mjs → chunk-TNAXVJEG.mjs} +5 -5
  54. package/dist/cli/{chunk-6P4OYABU.js → chunk-V6OMS7E2.js} +6 -6
  55. package/dist/cli/{chunk-SBM5JVTK.mjs → chunk-VGWH3BFC.mjs} +1 -1
  56. package/dist/cli/{chunk-DDF74332.js → chunk-VOPKDTJT.js} +2 -2
  57. package/dist/cli/{chunk-JN7AOVD4.js → chunk-WBYC7AYC.js} +16 -16
  58. package/dist/cli/{chunk-LFTLH5BK.js → chunk-WGMNXDRZ.js} +2 -2
  59. package/dist/cli/{chunk-N27BUJU3.mjs → chunk-WISHPL5Q.mjs} +5 -5
  60. package/dist/cli/{chunk-N57JYG7J.js → chunk-WS2BY2ST.js} +36 -36
  61. package/dist/cli/{chunk-XJ5W64AC.js → chunk-WTVTCSPY.js} +4 -4
  62. package/dist/cli/{chunk-MUQAKLBP.mjs → chunk-X3RAGNNZ.mjs} +1 -1
  63. package/dist/cli/{chunk-I2TCWIW2.mjs → chunk-XSX6TJUA.mjs} +1 -1
  64. package/dist/cli/{chunk-SOIXDMZK.js → chunk-YIJS7ET7.js} +51 -51
  65. package/dist/cli/{chunk-A3GML7WW.js → chunk-ZTA4JIAB.js} +9 -9
  66. package/dist/cli/command-docs.js +2 -2
  67. package/dist/cli/command-docs.mjs +1 -1
  68. package/dist/cli/{csv-AE7OLXCV.mjs → csv-435JAJ45.mjs} +4 -4
  69. package/dist/cli/{csv-ZVFGYRB7.js → csv-BPZ4VLR6.js} +13 -13
  70. package/dist/cli/{db-JOD2MQ2T.js → db-EBR2UQK3.js} +27 -27
  71. package/dist/cli/{db-KTXMCLB5.mjs → db-IEUTNOOC.mjs} +6 -6
  72. package/dist/cli/describe-EPT52IUE.js +48 -0
  73. package/dist/cli/{describe-FENTKQFK.mjs → describe-GM233O75.mjs} +20 -20
  74. package/dist/cli/describe-core.d.mts +3 -3
  75. package/dist/cli/describe-core.d.ts +3 -3
  76. package/dist/cli/describe-core.js +4 -4
  77. package/dist/cli/describe-core.mjs +3 -3
  78. package/dist/cli/{executions-IT6TQ65Q.js → executions-5SWPQTLB.js} +8 -8
  79. package/dist/cli/{executions-FJCV5L37.mjs → executions-LDPBVSKZ.mjs} +6 -6
  80. package/dist/cli/{feedback-LTTO73YD.mjs → feedback-JB7BBF64.mjs} +4 -4
  81. package/dist/cli/{feedback-WGURC3BG.js → feedback-YFW5KT36.js} +8 -8
  82. package/dist/cli/git-7L7LKOKW.js +25 -0
  83. package/dist/cli/{git-ZYEDB2UG.mjs → git-MCGUPO2W.mjs} +5 -5
  84. package/dist/cli/index.js +139 -139
  85. package/dist/cli/index.mjs +41 -41
  86. package/dist/cli/{legacy-noops-EGQ4G4BT.mjs → legacy-noops-EHNXHQL7.mjs} +5 -5
  87. package/dist/cli/{legacy-noops-JFXWEOZF.js → legacy-noops-LMGSIBWM.js} +8 -8
  88. package/dist/cli/{monitors-IK6GWLCA.mjs → monitors-355EWLGN.mjs} +7 -7
  89. package/dist/cli/{monitors-WKN2K6ZH.js → monitors-VRQ32EAA.js} +91 -91
  90. package/dist/cli/{org-PD5YBUHR.mjs → org-MJ6XMAI4.mjs} +51 -10
  91. package/dist/cli/{org-FE5VMAKF.js → org-W3YZN65W.js} +113 -72
  92. package/dist/cli/{pages-ZVKSOSZJ.mjs → pages-62QNUXV2.mjs} +6 -6
  93. package/dist/cli/{pages-H3DKEVVI.js → pages-JPK6UVMV.js} +17 -17
  94. package/dist/cli/{play-RLIQY22H.mjs → play-CKBPES6Q.mjs} +18 -18
  95. package/dist/cli/{play-2UL5OPGH.js → play-WPPJQBBS.js} +305 -305
  96. package/dist/cli/{providers-2IMHQDBC.js → providers-DH5JJ5HN.js} +9 -9
  97. package/dist/cli/{providers-M4AFFJF2.mjs → providers-LLPKHVXL.mjs} +6 -6
  98. package/dist/cli/{quickstart-PS4QKNG2.mjs → quickstart-K5HVPO2L.mjs} +4 -4
  99. package/dist/cli/{quickstart-OE64DBKK.js → quickstart-NNEF37EG.js} +6 -6
  100. package/dist/cli/{run-SWLGV2VS.js → run-N2KY2VNQ.js} +40 -40
  101. package/dist/cli/{run-3TKR5CZU.mjs → run-SKIZFJ5O.mjs} +25 -25
  102. package/dist/cli/{search-AMZ67RKO.mjs → search-2WXJ3GID.mjs} +7 -7
  103. package/dist/cli/search-HO7ARG3H.js +32 -0
  104. package/dist/cli/{secrets-ZTLJY7L2.js → secrets-5YVX7LK7.js} +15 -15
  105. package/dist/cli/{secrets-INBXKNFM.mjs → secrets-6GEQ75OU.mjs} +6 -6
  106. package/dist/cli/{sessions-ZVBTKQ7J.mjs → sessions-GOPZ3YRN.mjs} +5 -5
  107. package/dist/cli/{sessions-3GKS45NP.js → sessions-H3QES7C2.js} +6 -6
  108. package/dist/cli/{settings-7YG3UWJH.js → settings-62SU5ROV.js} +78 -78
  109. package/dist/cli/{settings-AUPDZZ2U.mjs → settings-IP47HYC6.mjs} +11 -11
  110. package/dist/cli/{setup-44QB72NU.mjs → setup-LCKXUSW5.mjs} +9 -9
  111. package/dist/cli/{setup-YGESCFTH.js → setup-YCCU7TU4.js} +44 -44
  112. package/dist/cli/{skills-N3AWWCWO.mjs → skills-3QAQI6X7.mjs} +7 -7
  113. package/dist/cli/skills-UVAIKQNC.js +31 -0
  114. package/dist/cli/{tools-3SHNTJPU.mjs → tools-HKD4G6HA.mjs} +18 -18
  115. package/dist/cli/tools-KAIUUBTD.js +55 -0
  116. package/dist/cli/{update-3TWB5EEV.mjs → update-2VYSBSDD.mjs} +9 -9
  117. package/dist/cli/update-Q3AMECAG.js +33 -0
  118. package/dist/cli/{workflow-SYP62XNN.mjs → workflow-EFRGY6JD.mjs} +7 -7
  119. package/dist/cli/{workflow-ULIZU7KI.js → workflow-MMWGUSGY.js} +17 -17
  120. package/dist/{client-BClp2yrq.d.ts → client-BOEAXwJj.d.ts} +1 -1
  121. package/dist/{client-ADFHNtFM.d.mts → client-DL0koOaP.d.mts} +1 -1
  122. package/dist/{client-core-BFU73Ttw.d.ts → client-core-BX_8khUY.d.ts} +23 -1
  123. package/dist/{client-core-DWLmmJWo.d.mts → client-core-CowyuxKu.d.mts} +23 -1
  124. package/dist/{compiler-manifest-Cs17yO-H.d.ts → compiler-manifest-D5dARg3M.d.mts} +64 -10
  125. package/dist/{compiler-manifest-Cs17yO-H.d.mts → compiler-manifest-D5dARg3M.d.ts} +64 -10
  126. package/dist/{errors-Dee-QpVS.d.ts → errors-BtHHzWL8.d.ts} +1 -1
  127. package/dist/{errors-qNfvQuRB.d.mts → errors-BveMVPwA.d.mts} +1 -1
  128. package/dist/{index-BTqNNXmC.d.mts → index-BboApDGD.d.mts} +1 -1
  129. package/dist/{index-DXTh1Lxe.d.ts → index-C6sovoYP.d.ts} +1 -1
  130. package/dist/index.d.mts +7 -7
  131. package/dist/index.d.ts +7 -7
  132. package/dist/index.js +277 -76
  133. package/dist/index.mjs +239 -38
  134. package/dist/install-integrity.json +114 -114
  135. package/dist/plays/bundle-play-file.d.mts +3 -3
  136. package/dist/plays/bundle-play-file.d.ts +3 -3
  137. package/dist/plays/play-description.d.mts +2 -2
  138. package/dist/plays/play-description.d.ts +2 -2
  139. package/dist/plays/run-request.d.mts +2 -2
  140. package/dist/plays/run-request.d.ts +2 -2
  141. package/dist/release.d.mts +1 -1
  142. package/dist/release.d.ts +1 -1
  143. package/dist/release.js +2 -2
  144. package/dist/release.mjs +1 -1
  145. package/dist/server.d.mts +4 -4
  146. package/dist/server.d.ts +4 -4
  147. package/dist/server.js +5 -5
  148. package/dist/server.mjs +3 -3
  149. package/package.json +1 -1
  150. package/dist/cli/auth-W62UTNJZ.js +0 -41
  151. package/dist/cli/describe-2IKB4KIX.js +0 -48
  152. package/dist/cli/git-UOIC2DJL.js +0 -25
  153. package/dist/cli/search-LXG7T6YZ.js +0 -32
  154. package/dist/cli/skills-QALGBUFY.js +0 -31
  155. package/dist/cli/tools-PUQ3JBZ7.js +0 -55
  156. package/dist/cli/update-O7XSJMLX.js +0 -33
@@ -39,6 +39,23 @@ Conventions (apply to every tool):
39
39
  ]]
40
40
  `;
41
41
  var COMMAND_DOCS = {
42
+ "org members list": {
43
+ core: `Purpose: List one page of members in the authenticated workspace.
44
+ Input: Optional --cursor from the previous page.
45
+ Output: members (id, userId, role, effective grants) and cursor (null at the end).
46
+ Cost: Does not spend credits.`
47
+ },
48
+ "org members set-grants": {
49
+ core: `Purpose: Replace a workspace member's grants. Requires an admin grant.
50
+ Input: a member id from org members list, followed by one or more grants:
51
+ read (explicitly read-only tools), run (any tool and existing Plays; cannot create or edit Plays), admin (tools and workspace management), member (existing access, including Play authoring).
52
+ Example: deepline org members set-grants <member-id> read
53
+ Multiple grants are additive. Run includes read; admin includes both and can create, edit, and publish Plays.
54
+ Existing member roles retain their permissions, including Play authoring. Only owners may change ownership,
55
+ and the last owner cannot be removed. Read-only tools may still spend credits.
56
+ Output: ok, memberId, and the stored role.
57
+ Cost: This command does not spend credits.`
58
+ },
42
59
  "": {
43
60
  core: `
44
61
  [[cli:
@@ -776,10 +793,14 @@ Authoring rules:
776
793
  completed operation receipt can still recover that operation after resume.
777
794
  Read
778
795
  results the way [[cli:describe]][[mcp:deepline_describe_tool]] lists them:
779
- result.fields.<name>.value for a declared list or a value whose meaning
780
- is known, also by field id (result.fields.person.email.value);
796
+ result.fields.<name>.value for a value whose meaning is known, also by
797
+ field id (result.fields.person.email.value). .value throws when there are
798
+ several; .values is always an array;
781
799
  result.extractedValues.<name>.get() for other declared values. Anything
782
800
  else is in result.response, the provider's response with its nesting kept.
801
+ For a list, result.rows() gives one record per item, in the same format
802
+ for every tool: row.fields.email.value, and row.response for the rest.
803
+ Name the list when the tool declares several: result.rows('people').
783
804
  Reuse before rebuilding: deepline.runPlay(key, 'prebuilt/<name>', input,
784
805
  { description }) runs a
785
806
  prebuilt as one stage. Independent calls run together with Promise.all;
@@ -26,7 +26,7 @@ import {
26
26
  RETAINED_PIPELINE_RECEIVERS_HEADER,
27
27
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
28
28
  SDK_API_MAJOR
29
- } from "./chunk-YZZGFUQ4.mjs";
29
+ } from "./chunk-AUVEQ3JX.mjs";
30
30
  import {
31
31
  CustomerDbQueryOutcomeUnknownError
32
32
  } from "./chunk-4QF2K7TM.mjs";
@@ -3462,6 +3462,8 @@ var DeeplineClient = class _DeeplineClient {
3462
3462
  this.billing = {
3463
3463
  quote: (input) => this.http.post("/api/v2/billing/quote", input),
3464
3464
  entitlements: () => this.http.get("/api/v2/billing/entitlements"),
3465
+ includedCompute: () => this.http.get("/api/v2/billing/included-compute"),
3466
+ enableIncludedCompute: () => this.http.post("/api/v2/billing/included-compute", {}),
3465
3467
  topUp: (options) => this.topUpBillingBalance(options),
3466
3468
  topUpWithReceipt: (options) => this.topUpBillingBalanceWithReceipt(options),
3467
3469
  plans: () => this.getBillingPlans(),
@@ -3496,6 +3498,14 @@ var DeeplineClient = class _DeeplineClient {
3496
3498
  portalSession: (options) => this.createTargetBillingPortalSession(options)
3497
3499
  };
3498
3500
  this.workspaces = {
3501
+ members: (options) => {
3502
+ const query = options?.cursor ? `?cursor=${encodeURIComponent(options.cursor)}` : "";
3503
+ return this.http.get(`/api/v2/auth/workspace/members${query}`);
3504
+ },
3505
+ setMemberGrants: (memberId, grants) => this.http.patch(
3506
+ `/api/v2/auth/workspace/members/${encodeURIComponent(memberId)}/role`,
3507
+ { role: grants.join(",") }
3508
+ ),
3499
3509
  create: (options) => this.createWorkspace(options)
3500
3510
  };
3501
3511
  this.monitors = {
@@ -4853,7 +4863,7 @@ var DeeplineClient = class _DeeplineClient {
4853
4863
  const probe = await fetchPage(0, 1);
4854
4864
  const lastStoredSeq = probe.lastStoredSeq;
4855
4865
  const oldestStoredSeq = probe.entries[0]?.seq ?? null;
4856
- const upperSeq = beforeSequence === null ? Number.POSITIVE_INFINITY : Math.min(beforeSequence - 1, lastStoredSeq);
4866
+ const upperSeq = beforeSequence === null ? lastStoredSeq : Math.min(beforeSequence - 1, lastStoredSeq);
4857
4867
  const windowEndSeq = Math.min(upperSeq, lastStoredSeq);
4858
4868
  let afterSeq = options?.all ? 0 : Math.max(0, windowEndSeq - limit);
4859
4869
  const entries = [];
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-SSQXSMAT.mjs";
3
+ } from "./chunk-RH6DVPGW.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkGBQSEOXEjs = require('./chunk-GBQSEOXE.js');
5
+ var _chunkFVA6XLRAjs = require('./chunk-FVA6XLRA.js');
6
6
 
7
7
 
8
- var _chunk5VGMRONEjs = require('./chunk-5VGMRONE.js');
8
+ var _chunkSHGBHP6Jjs = require('./chunk-SHGBHP6J.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 } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkFVA6XLRAjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
39
+ _chunkFVA6XLRAjs.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 } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkFVA6XLRAjs.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
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
139
+ _chunkFVA6XLRAjs.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 } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkFVA6XLRAjs.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
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
153
+ _chunkFVA6XLRAjs.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 } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkFVA6XLRAjs.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 } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkFVA6XLRAjs.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
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
200
+ _chunkFVA6XLRAjs.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 } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkFVA6XLRAjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
227
+ _chunkFVA6XLRAjs.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 } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkFVA6XLRAjs.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
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
254
+ _chunkFVA6XLRAjs.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 } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkFVA6XLRAjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
269
+ _chunkFVA6XLRAjs.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 = _chunk5VGMRONEjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkSHGBHP6Jjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkGBQSEOXEjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkFVA6XLRAjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkFVA6XLRAjs.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 } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkFVA6XLRAjs.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
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
322
+ _chunkFVA6XLRAjs.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 } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkFVA6XLRAjs.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
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
371
+ _chunkFVA6XLRAjs.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 } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkFVA6XLRAjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
392
+ _chunkFVA6XLRAjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-GW7RUNLW.mjs";
3
+ } from "./chunk-HTXQUA3V.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-XFAO5A5R.mjs";
7
+ } from "./chunk-G35HNL6P.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {
@@ -1,23 +1,23 @@
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 _chunkDJD4KLIXjs = require('./chunk-DJD4KLIX.js');
3
+ var _chunkLKVOV7PXjs = require('./chunk-LKVOV7PX.js');
4
4
 
5
5
 
6
- var _chunkW4J2EK5Kjs = require('./chunk-W4J2EK5K.js');
6
+ var _chunkFS55YDCWjs = require('./chunk-FS55YDCW.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkL3U44YVOjs = require('./chunk-L3U44YVO.js');
11
+ var _chunkT5GRG37Bjs = require('./chunk-T5GRG37B.js');
12
12
 
13
13
 
14
14
  var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
15
15
 
16
16
 
17
- var _chunkQPJ2BDFDjs = require('./chunk-QPJ2BDFD.js');
17
+ var _chunkAD5BZUAPjs = require('./chunk-AD5BZUAP.js');
18
18
 
19
19
 
20
- var _chunkGBQSEOXEjs = require('./chunk-GBQSEOXE.js');
20
+ var _chunkFVA6XLRAjs = require('./chunk-FVA6XLRA.js');
21
21
 
22
22
  // src/cli/commands/describe.ts
23
23
  var _fs = require('fs');
@@ -26,16 +26,16 @@ function nothingNamed(name) {
26
26
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
27
27
  }
28
28
  function findNamed2(name, options) {
29
- return _chunkL3U44YVOjs.findNamed.call(void 0, name, options, _chunkL3U44YVOjs.describeLookupsFor.call(void 0, new (0, _chunkQPJ2BDFDjs.DeeplineClient)()));
29
+ return _chunkT5GRG37Bjs.findNamed.call(void 0, name, options, _chunkT5GRG37Bjs.describeLookupsFor.call(void 0, new (0, _chunkAD5BZUAPjs.DeeplineClient)()));
30
30
  }
31
31
  async function describeAnything(name, options, onMissing) {
32
- const client = new (0, _chunkQPJ2BDFDjs.DeeplineClient)();
33
- const lookups = _chunkL3U44YVOjs.describeLookupsFor.call(void 0, client);
34
- const outcome = await _chunkL3U44YVOjs.describeName.call(void 0, name, options, {
32
+ const client = new (0, _chunkAD5BZUAPjs.DeeplineClient)();
33
+ const lookups = _chunkT5GRG37Bjs.describeLookupsFor.call(void 0, client);
34
+ const outcome = await _chunkT5GRG37Bjs.describeName.call(void 0, name, options, {
35
35
  ...lookups,
36
36
  // `tools describe` has already fetched the tool for its compatibility check.
37
37
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
38
- seedStarterScript: _chunkDJD4KLIXjs.seedToolListScript
38
+ seedStarterScript: _chunkLKVOV7PXjs.seedToolListScript
39
39
  });
40
40
  if (outcome.status === "missing") {
41
41
  if (onMissing) return onMissing();
@@ -60,18 +60,18 @@ function deliver(envelope, lines, { json, out }) {
60
60
  ` : text;
61
61
  _fs.writeFileSync.call(void 0, path, content);
62
62
  const bytes = Buffer.byteLength(content);
63
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
63
+ _chunkFVA6XLRAjs.printCommandEnvelope.call(void 0,
64
64
  { path, bytes },
65
65
  { json, text: `Wrote ${path} (${bytes} bytes)
66
66
  ` }
67
67
  );
68
68
  return 0;
69
69
  }
70
- _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0, envelope, { json, text });
70
+ _chunkFVA6XLRAjs.printCommandEnvelope.call(void 0, envelope, { json, text });
71
71
  return 0;
72
72
  }
73
73
  function registerDescribeCommand(program) {
74
- _chunkW4J2EK5Kjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
74
+ _chunkFS55YDCWjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
75
75
  "Describe anything search returns: a tool, monitor type, or play."
76
76
  ).addHelpText(
77
77
  "after",