deepline 0.3.455 → 0.3.457

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 (113) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +23 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +1 -1
  4. package/dist/cli/{auth-BGPCPVHW.mjs → auth-MZG5NF5U.mjs} +4 -4
  5. package/dist/cli/auth-O3XJDECG.js +40 -0
  6. package/dist/cli/{billing-6BLEXHCR.mjs → billing-DWKZIL66.mjs} +4 -4
  7. package/dist/cli/{billing-FCC2YOKB.js → billing-RG3LF5OU.js} +73 -73
  8. package/dist/cli/{chunk-VMGTYM3A.js → chunk-5TIASNUT.js} +20 -20
  9. package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-77Z5BO7D.mjs} +21 -0
  10. package/dist/cli/{chunk-RYGDM5BG.mjs → chunk-7IIRZXCO.mjs} +1 -1
  11. package/dist/cli/{chunk-LQH2KJ53.js → chunk-7JW4WIWU.js} +81 -81
  12. package/dist/cli/{chunk-NMJ4D2WO.js → chunk-AQFHU3DW.js} +21 -0
  13. package/dist/cli/{chunk-YIFCV77L.mjs → chunk-BD5A242C.mjs} +2 -2
  14. package/dist/cli/{chunk-DPTEABFU.mjs → chunk-CHBYYJ7Q.mjs} +1 -1
  15. package/dist/cli/{chunk-LRA5YJVV.mjs → chunk-CQHTN3RY.mjs} +1 -1
  16. package/dist/cli/{chunk-SMZUU4NY.js → chunk-CTWD4ZHP.js} +2 -2
  17. package/dist/cli/{chunk-3E4WSS35.mjs → chunk-E5BGIERY.mjs} +1 -1
  18. package/dist/cli/{chunk-6TOMXZX3.js → chunk-EHEBXARN.js} +1 -1
  19. package/dist/cli/{chunk-IUSGWMGK.mjs → chunk-EXOCQILY.mjs} +2 -2
  20. package/dist/cli/{chunk-3RQY2OG7.mjs → chunk-F64XBZ3A.mjs} +2 -2
  21. package/dist/cli/{chunk-EXZOUJCD.js → chunk-GLXYOSEL.js} +3 -3
  22. package/dist/cli/{chunk-MFKTYIBJ.js → chunk-J2ZS4PEC.js} +51 -51
  23. package/dist/cli/{chunk-4Z3X5CWI.mjs → chunk-JANCYPKP.mjs} +1 -1
  24. package/dist/cli/{chunk-RQMEYYN4.js → chunk-JCWEQQGE.js} +35 -35
  25. package/dist/cli/{chunk-2SN2EEQW.js → chunk-JL5DCH37.js} +16 -16
  26. package/dist/cli/{chunk-J7WYWQF4.js → chunk-KKPKLLNB.js} +6 -6
  27. package/dist/cli/{chunk-CZREA5NE.js → chunk-KTAVYWYI.js} +8 -8
  28. package/dist/cli/{chunk-BCB2QNG4.js → chunk-KVXBMYRY.js} +2 -2
  29. package/dist/cli/{chunk-WBULEVM4.mjs → chunk-L7WE7Q63.mjs} +1 -1
  30. package/dist/cli/{chunk-FCQ52RUB.mjs → chunk-LHHJATXY.mjs} +2 -2
  31. package/dist/cli/{chunk-YKEWDVZC.js → chunk-LKAITV2M.js} +26 -26
  32. package/dist/cli/{chunk-PQ4JU2MV.mjs → chunk-LVGCJZ5S.mjs} +12 -1
  33. package/dist/cli/{chunk-B7K3QD5W.mjs → chunk-MU4ZDVQK.mjs} +8 -8
  34. package/dist/cli/{chunk-6F7TD4M4.js → chunk-MWRPRDHW.js} +6 -6
  35. package/dist/cli/{chunk-VIGEE67Z.mjs → chunk-NMVLO3JM.mjs} +3 -3
  36. package/dist/cli/{chunk-4BZFRLKU.mjs → chunk-QGLFBQ43.mjs} +5 -5
  37. package/dist/cli/{chunk-W3DIXRDT.js → chunk-SFCNYJ4B.js} +21 -10
  38. package/dist/cli/{chunk-2R7JD2NY.js → chunk-TTBQOHG4.js} +4 -4
  39. package/dist/cli/{chunk-UVJLG5KD.js → chunk-US3SZ7VQ.js} +50 -50
  40. package/dist/cli/{chunk-MCMLQ7GD.js → chunk-VLL6RRIA.js} +8 -8
  41. package/dist/cli/{chunk-2VHR5DXQ.mjs → chunk-W3IZ55XS.mjs} +3 -3
  42. package/dist/cli/{chunk-WVGPAP7A.mjs → chunk-X4XNGIPL.mjs} +3 -3
  43. package/dist/cli/{chunk-R5VMRVRN.mjs → chunk-YVQVS7SF.mjs} +4 -4
  44. package/dist/cli/command-docs.js +2 -2
  45. package/dist/cli/command-docs.mjs +1 -1
  46. package/dist/cli/{csv-27T3L4RC.mjs → csv-27M4PREP.mjs} +3 -3
  47. package/dist/cli/{csv-TEAA2YV5.js → csv-QSAAPCYE.js} +12 -12
  48. package/dist/cli/{db-N3NRYYI4.mjs → db-H73PJID6.mjs} +4 -4
  49. package/dist/cli/{db-J3PPU7GX.js → db-LYPTNAPX.js} +25 -25
  50. package/dist/cli/{describe-PX7XBLZF.js → describe-KYLGQSMO.js} +17 -17
  51. package/dist/cli/{describe-SJBCCTR7.mjs → describe-Y5BHLZLH.mjs} +13 -13
  52. package/dist/cli/describe-core.d.mts +1 -1
  53. package/dist/cli/describe-core.d.ts +1 -1
  54. package/dist/cli/{executions-WXIL4C5M.js → executions-DHGYCPFO.js} +6 -6
  55. package/dist/cli/{executions-XN376RR4.mjs → executions-ZGQEWS2X.mjs} +4 -4
  56. package/dist/cli/{feedback-LG5NWE3R.js → feedback-3YQPYCMT.js} +7 -7
  57. package/dist/cli/{feedback-KHJXJ2K7.mjs → feedback-EBXU4ANA.mjs} +3 -3
  58. package/dist/cli/git-4ACVGA4W.js +24 -0
  59. package/dist/cli/{git-726A5HHA.mjs → git-CFPU33DJ.mjs} +4 -4
  60. package/dist/cli/index.js +136 -136
  61. package/dist/cli/index.mjs +38 -38
  62. package/dist/cli/{legacy-noops-QI6VN34P.js → legacy-noops-CDKZ7RYT.js} +7 -7
  63. package/dist/cli/{legacy-noops-V4WS63SD.mjs → legacy-noops-TFGIWA5C.mjs} +4 -4
  64. package/dist/cli/{monitors-AAWRYPHY.mjs → monitors-6ED5RJYG.mjs} +5 -5
  65. package/dist/cli/{monitors-ICQ2Q4XT.js → monitors-PCMAB7NP.js} +89 -89
  66. package/dist/cli/{org-5JV6KYY2.js → org-KAARC2XN.js} +66 -66
  67. package/dist/cli/{org-7VJKBTZX.mjs → org-V4QYXLOL.mjs} +4 -4
  68. package/dist/cli/{play-2D6ZIJEV.mjs → play-OTTJ6S2G.mjs} +11 -11
  69. package/dist/cli/{play-HDI2MLJL.js → play-PPWCRYME.js} +284 -284
  70. package/dist/cli/{providers-GIE2W4ZG.js → providers-ICY74FM5.js} +50 -8
  71. package/dist/cli/{providers-KSKVBQFP.mjs → providers-ULL5EJHY.mjs} +46 -4
  72. package/dist/cli/{quickstart-7OGLDF3M.mjs → quickstart-QLVS53TD.mjs} +3 -3
  73. package/dist/cli/{quickstart-JKNKNDXG.js → quickstart-YOUCGJQP.js} +5 -5
  74. package/dist/cli/{search-CPKXOGV4.mjs → search-AGYQR6YQ.mjs} +5 -5
  75. package/dist/cli/search-XNU6FOOH.js +30 -0
  76. package/dist/cli/{secrets-LFQXTVIE.js → secrets-OA3HHNHP.js} +13 -13
  77. package/dist/cli/{secrets-QHGLI7O6.mjs → secrets-PJFO3RZW.mjs} +4 -4
  78. package/dist/cli/{sessions-HVMTS7N5.js → sessions-OYTROOOG.js} +5 -5
  79. package/dist/cli/{sessions-M4OT6NPP.mjs → sessions-WNRZQEBL.mjs} +4 -4
  80. package/dist/cli/{settings-BJBOMHL2.mjs → settings-JIYDWBPM.mjs} +10 -10
  81. package/dist/cli/{settings-42WLEHAZ.js → settings-RXGOZAZI.js} +77 -77
  82. package/dist/cli/{setup-6TZ4L5LT.js → setup-VXNSUQYT.js} +43 -43
  83. package/dist/cli/{setup-ILUF7GCP.mjs → setup-YAYE7KQM.mjs} +8 -8
  84. package/dist/cli/skills-5UCGZVCN.js +30 -0
  85. package/dist/cli/{skills-7RIWQDD6.mjs → skills-XYDBLLRK.mjs} +6 -6
  86. package/dist/cli/{tools-J3VDLDF2.mjs → tools-TRDYMDPL.mjs} +13 -13
  87. package/dist/cli/tools-UMSFNX5B.js +45 -0
  88. package/dist/cli/update-K5AOROYI.js +32 -0
  89. package/dist/cli/{update-GMXJF4WT.mjs → update-KH36JGLK.mjs} +8 -8
  90. package/dist/cli/{workflow-LVVK2N3T.js → workflow-CQZBGIQ2.js} +15 -15
  91. package/dist/cli/{workflow-W7NQS26K.mjs → workflow-EYWCMD4D.mjs} +5 -5
  92. package/dist/{client-BbU5_j7n.d.mts → client-BX2EVlPo.d.mts} +14 -0
  93. package/dist/{client-CYqG23K1.d.ts → client-CRz2laoR.d.ts} +14 -0
  94. package/dist/index.d.mts +2 -2
  95. package/dist/index.d.ts +2 -2
  96. package/dist/index.js +6 -6
  97. package/dist/index.mjs +3 -3
  98. package/dist/install-integrity.json +84 -84
  99. package/dist/plays/play-description.d.mts +1 -1
  100. package/dist/plays/play-description.d.ts +1 -1
  101. package/dist/plays/run-request.d.mts +1 -1
  102. package/dist/plays/run-request.d.ts +1 -1
  103. package/dist/release.d.mts +1 -1
  104. package/dist/release.d.ts +1 -1
  105. package/dist/release.js +2 -2
  106. package/dist/release.mjs +1 -1
  107. package/package.json +1 -1
  108. package/dist/cli/auth-SRR4DW75.js +0 -40
  109. package/dist/cli/git-PXYOFDQH.js +0 -24
  110. package/dist/cli/search-LOWDQS5X.js +0 -30
  111. package/dist/cli/skills-I5OWZZ2Z.js +0 -30
  112. package/dist/cli/tools-Y4SPWXFJ.js +0 -45
  113. package/dist/cli/update-HQ5WT3G6.js +0 -32
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkJ7WYWQF4js = require('./chunk-J7WYWQF4.js');
5
+ var _chunkKKPKLLNBjs = require('./chunk-KKPKLLNB.js');
6
6
 
7
7
 
8
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
8
+ var _chunkTTBQOHG4js = require('./chunk-TTBQOHG4.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkKKPKLLNBjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
39
+ _chunkKKPKLLNBjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkKKPKLLNBjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
139
+ _chunkKKPKLLNBjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkKKPKLLNBjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
153
+ _chunkKKPKLLNBjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkKKPKLLNBjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkKKPKLLNBjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
200
+ _chunkKKPKLLNBjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkKKPKLLNBjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
227
+ _chunkKKPKLLNBjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkKKPKLLNBjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
254
+ _chunkKKPKLLNBjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkKKPKLLNBjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
269
+ _chunkKKPKLLNBjs.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 = _chunk2R7JD2NYjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkTTBQOHG4js.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkJ7WYWQF4js.openInBrowser.call(void 0, connectUrl);
292
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkKKPKLLNBjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkKKPKLLNBjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkKKPKLLNBjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
322
+ _chunkKKPKLLNBjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkKKPKLLNBjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
371
+ _chunkKKPKLLNBjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkKKPKLLNBjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
392
+ _chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -28,7 +28,7 @@ import {
28
28
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
29
29
  SDK_API_MAJOR,
30
30
  resolveConfig
31
- } from "./chunk-LRA5YJVV.mjs";
31
+ } from "./chunk-CQHTN3RY.mjs";
32
32
  import {
33
33
  CustomerDbQueryOutcomeUnknownError
34
34
  } from "./chunk-4QF2K7TM.mjs";
@@ -5177,6 +5177,17 @@ var DeeplineClient = class _DeeplineClient {
5177
5177
  async getNotificationSettings() {
5178
5178
  return this.http.get("/api/v2/settings/notifications");
5179
5179
  }
5180
+ /** Start provider OAuth; complete the returned URL in an authenticated browser. */
5181
+ async connectIntegration(provider, scopes) {
5182
+ return this.http.post("/api/v2/integrations/connect", {
5183
+ provider,
5184
+ ...scopes ? { scopes } : {}
5185
+ });
5186
+ }
5187
+ /** Probe an OAuth connection, refreshing expired tokens through the normal lifecycle. */
5188
+ async testIntegration(provider) {
5189
+ return this.http.get(`/api/oauth/test/${encodeURIComponent(provider)}`);
5190
+ }
5180
5191
  /** Save provider-owned credential fields without starting an OAuth browser flow. */
5181
5192
  async setIntegrationCredentials(provider, credentials) {
5182
5193
  return this.http.post("/api/v2/integrations/connect", {
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  recentSearchRef,
7
7
  registerDeprecatedSearchCommand
8
- } from "./chunk-VIGEE67Z.mjs";
8
+ } from "./chunk-NMVLO3JM.mjs";
9
9
  import {
10
10
  arrayField,
11
11
  formatModelDescription,
@@ -48,7 +48,7 @@ import {
48
48
  import {
49
49
  DeeplineClient,
50
50
  validateExecutionIdempotencyKey
51
- } from "./chunk-PQ4JU2MV.mjs";
51
+ } from "./chunk-LVGCJZ5S.mjs";
52
52
  import {
53
53
  stableStringify
54
54
  } from "./chunk-UBKA33KY.mjs";
@@ -58,18 +58,18 @@ import {
58
58
  maybeAutoUpdateAndRelaunch,
59
59
  registerCompatibilityCatalog,
60
60
  runToolExecuteStage
61
- } from "./chunk-R5VMRVRN.mjs";
61
+ } from "./chunk-YVQVS7SF.mjs";
62
62
  import {
63
63
  isCliTraceEnabled,
64
64
  recordCliTrace,
65
65
  resolveCliMaintenancePolicy
66
- } from "./chunk-WBULEVM4.mjs";
66
+ } from "./chunk-L7WE7Q63.mjs";
67
67
  import {
68
68
  checkSdkCompatibility,
69
69
  enforceSdkCompatibilityResponse,
70
70
  flushDeferredSkillsSyncNotices,
71
71
  syncSdkSkillsIfNeeded
72
- } from "./chunk-WVGPAP7A.mjs";
72
+ } from "./chunk-X4XNGIPL.mjs";
73
73
  import {
74
74
  printCommandEnvelope,
75
75
  printCompactJson,
@@ -77,12 +77,12 @@ import {
77
77
  printJsonError,
78
78
  renderCommandEnvelopeText,
79
79
  shouldEmitJson
80
- } from "./chunk-RYGDM5BG.mjs";
80
+ } from "./chunk-7IIRZXCO.mjs";
81
81
  import {
82
82
  readSdkSkillsLocalVersion,
83
83
  resolveConfig,
84
84
  sdkCliStateDirPath
85
- } from "./chunk-LRA5YJVV.mjs";
85
+ } from "./chunk-CQHTN3RY.mjs";
86
86
  import {
87
87
  DeeplineError
88
88
  } from "./chunk-HBL4PM5Q.mjs";
@@ -971,7 +971,7 @@ Examples:
971
971
  process.exitCode = await narrowView();
972
972
  return;
973
973
  }
974
- const { describeAnything } = await import("./describe-SJBCCTR7.mjs");
974
+ const { describeAnything } = await import("./describe-Y5BHLZLH.mjs");
975
975
  process.exitCode = await describeAnything(
976
976
  toolId,
977
977
  {
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSMZUU4NYjs = require('./chunk-SMZUU4NY.js');
3
+ var _chunkCTWD4ZHPjs = require('./chunk-CTWD4ZHP.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkMFKTYIBJjs = require('./chunk-MFKTYIBJ.js');
8
+ var _chunkJ2ZS4PECjs = require('./chunk-J2ZS4PEC.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -14,17 +14,17 @@ function usesInlinePlayAdmission(command, args) {
14
14
  );
15
15
  }
16
16
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
17
- if (maintenancePolicy !== "off") _chunkMFKTYIBJjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
18
- const compatibility = await _chunkSMZUU4NYjs.traceCliSpan.call(void 0,
17
+ if (maintenancePolicy !== "off") _chunkJ2ZS4PECjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
18
+ const compatibility = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
19
19
  "cli.sdk_compatibility",
20
20
  { baseUrl, command: "plays run" },
21
- () => _chunkMFKTYIBJjs.checkSdkCompatibility.call(void 0, baseUrl, {
21
+ () => _chunkJ2ZS4PECjs.checkSdkCompatibility.call(void 0, baseUrl, {
22
22
  command: "plays run",
23
23
  persistCache: maintenancePolicy !== "off"
24
24
  })
25
25
  );
26
26
  if (compatibility.error) throw compatibility.error;
27
- _chunkMFKTYIBJjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
27
+ _chunkJ2ZS4PECjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
28
28
  quietAdvisory: true
29
29
  });
30
30
  }
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-LJ5747UC.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-PQ4JU2MV.mjs";
6
+ } from "./chunk-LVGCJZ5S.mjs";
7
7
  import {
8
8
  printCommandEnvelope,
9
9
  renderCommandEnvelopeText
10
- } from "./chunk-RYGDM5BG.mjs";
10
+ } from "./chunk-7IIRZXCO.mjs";
11
11
  import {
12
12
  resolveConfig,
13
13
  sdkCliStateDirPath
14
- } from "./chunk-LRA5YJVV.mjs";
14
+ } from "./chunk-CQHTN3RY.mjs";
15
15
  import {
16
16
  __commonJS,
17
17
  __toESM
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-3E4WSS35.mjs";
4
+ } from "./chunk-E5BGIERY.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-2VHR5DXQ.mjs";
7
+ } from "./chunk-W3IZ55XS.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-WVGPAP7A.mjs";
10
+ } from "./chunk-X4XNGIPL.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-RYGDM5BG.mjs";
13
+ } from "./chunk-7IIRZXCO.mjs";
14
14
  import {
15
15
  autoDetectBaseUrl
16
- } from "./chunk-LRA5YJVV.mjs";
16
+ } from "./chunk-CQHTN3RY.mjs";
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  import { spawn, spawnSync } from "child_process";
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
28
28
 
29
29
 
30
30
 
31
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
31
+ var _chunkTTBQOHG4js = require('./chunk-TTBQOHG4.js');
32
32
 
33
33
 
34
34
  var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
@@ -649,7 +649,7 @@ var ToolCalls = class {
649
649
  idempotencyKey,
650
650
  onResponse: (response2) => {
651
651
  lastResponse = null;
652
- atomicToolsSupported = response2.headers.get(_chunk2R7JD2NYjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
652
+ atomicToolsSupported = response2.headers.get(_chunkTTBQOHG4js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
653
653
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
654
654
  if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
655
655
  try {
@@ -999,8 +999,8 @@ function runtimeSelectionHeaders(runtime, env) {
999
999
  }
1000
1000
  const receivers = _optionalChain([env, 'access', _52 => _52.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]);
1001
1001
  return {
1002
- [_chunk2R7JD2NYjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1003
- ...receivers ? { [_chunk2R7JD2NYjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1002
+ [_chunkTTBQOHG4js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1003
+ ...receivers ? { [_chunkTTBQOHG4js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1004
1004
  };
1005
1005
  }
1006
1006
  function normalizeTestPolicyOverrides(value, source) {
@@ -1071,7 +1071,7 @@ var PlayClient = class {
1071
1071
  return _chunkJKVRBCZLjs.startPlayRun.call(void 0,
1072
1072
  this.http,
1073
1073
  resolved.request,
1074
- _optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk2R7JD2NYjs.SDK_API_MAJOR) } : headers,
1074
+ _optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkTTBQOHG4js.SDK_API_MAJOR) } : headers,
1075
1075
  options
1076
1076
  );
1077
1077
  }
@@ -1137,9 +1137,9 @@ var PlayClient = class {
1137
1137
  }
1138
1138
  };
1139
1139
  function createPlayClient(options) {
1140
- const config = _chunk2R7JD2NYjs.resolveConfig.call(void 0, options);
1140
+ const config = _chunkTTBQOHG4js.resolveConfig.call(void 0, options);
1141
1141
  return new PlayClient(
1142
- new (0, _chunk2R7JD2NYjs.HttpClient)(config),
1142
+ new (0, _chunkTTBQOHG4js.HttpClient)(config),
1143
1143
  _nullishCoalesce(config.environment, () => ( process.env))
1144
1144
  );
1145
1145
  }
@@ -3153,7 +3153,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3153
3153
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3154
3154
  );
3155
3155
  }
3156
- return { [_chunk2R7JD2NYjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3156
+ return { [_chunkTTBQOHG4js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3157
3157
  }
3158
3158
  function sleep(ms) {
3159
3159
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -3391,9 +3391,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
3391
3391
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3392
3392
  */
3393
3393
  constructor(options) {
3394
- this.config = _chunk2R7JD2NYjs.resolveConfig.call(void 0, options);
3394
+ this.config = _chunkTTBQOHG4js.resolveConfig.call(void 0, options);
3395
3395
  this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
3396
- this.http = new (0, _chunk2R7JD2NYjs.HttpClient)(this.config);
3396
+ this.http = new (0, _chunkTTBQOHG4js.HttpClient)(this.config);
3397
3397
  this.playClient = new PlayClient(this.http, this.environment);
3398
3398
  this.toolCalls = new ToolCalls(
3399
3399
  this.http,
@@ -5177,6 +5177,17 @@ var DeeplineClient = (_class = class _DeeplineClient {
5177
5177
  async getNotificationSettings() {
5178
5178
  return this.http.get("/api/v2/settings/notifications");
5179
5179
  }
5180
+ /** Start provider OAuth; complete the returned URL in an authenticated browser. */
5181
+ async connectIntegration(provider, scopes) {
5182
+ return this.http.post("/api/v2/integrations/connect", {
5183
+ provider,
5184
+ ...scopes ? { scopes } : {}
5185
+ });
5186
+ }
5187
+ /** Probe an OAuth connection, refreshing expired tokens through the normal lifecycle. */
5188
+ async testIntegration(provider) {
5189
+ return this.http.get(`/api/oauth/test/${encodeURIComponent(provider)}`);
5190
+ }
5180
5191
  /** Save provider-owned credential fields without starting an OAuth browser flow. */
5181
5192
  async setIntegrationCredentials(provider, credentials) {
5182
5193
  return this.http.post("/api/v2/integrations/connect", {
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
17
17
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
18
18
 
19
19
 
20
- var _chunk6TOMXZX3js = require('./chunk-6TOMXZX3.js');
20
+ var _chunkEHEBXARNjs = require('./chunk-EHEBXARN.js');
21
21
 
22
22
  // src/config.ts
23
23
 
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
649
649
  }
650
650
 
651
651
  // src/version.ts
652
- var SDK_VERSION = _chunk6TOMXZX3js.SDK_RELEASE.version;
653
- var SDK_API_MAJOR = _chunk6TOMXZX3js.SDK_RELEASE.contracts.api.currentMajor;
654
- var SDK_API_CONTRACT = _nullishCoalesce(_chunk6TOMXZX3js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
652
+ var SDK_VERSION = _chunkEHEBXARNjs.SDK_RELEASE.version;
653
+ var SDK_API_MAJOR = _chunkEHEBXARNjs.SDK_RELEASE.contracts.api.currentMajor;
654
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkEHEBXARNjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
655
655
 
656
656
  // src/agent-runtime.ts
657
657