deepline 0.3.350 → 0.3.352

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 (94) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +47 -22
  3. package/dist/cli/{auth-7X3G2MCE.mjs → auth-6ZAHOPUC.mjs} +4 -4
  4. package/dist/cli/auth-ZYLA55Y2.js +31 -0
  5. package/dist/cli/{billing-2J4WREAL.js → billing-FTCAIIPO.js} +73 -73
  6. package/dist/cli/{billing-DOVYL5TT.mjs → billing-KE6CAAO5.mjs} +4 -4
  7. package/dist/cli/{chunk-GMOMXQR6.js → chunk-27JIZEAJ.js} +1 -1
  8. package/dist/cli/{chunk-YCBWMF2O.js → chunk-2JXDY3LE.js} +2 -2
  9. package/dist/cli/{chunk-IHMNFNL3.js → chunk-2PQR43BD.js} +225 -225
  10. package/dist/cli/{chunk-5ZFDADDM.mjs → chunk-2ULH52Q7.mjs} +27 -3
  11. package/dist/cli/{chunk-H4MOKDCV.mjs → chunk-3EIK6KTE.mjs} +1 -1
  12. package/dist/cli/{chunk-36MFVS4Q.js → chunk-4W3B4CNE.js} +9 -9
  13. package/dist/cli/{chunk-TFGKO7XG.mjs → chunk-54IUI747.mjs} +5 -5
  14. package/dist/cli/{chunk-FUQQ3U62.js → chunk-5TQPSUU6.js} +8 -8
  15. package/dist/cli/{chunk-NZMVPYBQ.mjs → chunk-EHYJYOXF.mjs} +1 -1
  16. package/dist/cli/{chunk-WWJOE6JQ.mjs → chunk-HD2RKIVK.mjs} +2 -2
  17. package/dist/cli/{chunk-FYZFB2CS.mjs → chunk-HMN5SUFL.mjs} +1 -1
  18. package/dist/cli/{chunk-2NI75UNO.mjs → chunk-J5MZZVDK.mjs} +2 -2
  19. package/dist/cli/{chunk-Z5RG3AOP.js → chunk-L6BHFEYM.js} +45 -45
  20. package/dist/cli/{chunk-VC7D7OXL.mjs → chunk-NNMGGD5Z.mjs} +1 -1
  21. package/dist/cli/{chunk-2Z6HV7BK.mjs → chunk-OWG4Y7JK.mjs} +2 -2
  22. package/dist/cli/{chunk-LE7DZZVE.js → chunk-P6CGAEDF.js} +26 -26
  23. package/dist/cli/{chunk-ZIUELPGR.js → chunk-Q3CSXWFU.js} +4 -4
  24. package/dist/cli/{chunk-NWN23EZM.js → chunk-QOIXZWOE.js} +40 -16
  25. package/dist/cli/{chunk-2KLYUZI7.mjs → chunk-SGFPTY4H.mjs} +2 -2
  26. package/dist/cli/{chunk-UKOXXA75.js → chunk-SM4G43FY.js} +60 -60
  27. package/dist/cli/{chunk-4ODBHH6X.mjs → chunk-ULX7APDZ.mjs} +1 -1
  28. package/dist/cli/{chunk-2COBRUUH.js → chunk-V5JPRCQ2.js} +6 -6
  29. package/dist/cli/{chunk-QMMMMGAB.js → chunk-VLQPMYSU.js} +15 -15
  30. package/dist/cli/{chunk-AWJ2A2CP.js → chunk-VQFBIGMU.js} +48 -48
  31. package/dist/cli/{chunk-LDILBDLL.mjs → chunk-XK7AH232.mjs} +4 -4
  32. package/dist/cli/{chunk-CYCJBDW6.mjs → chunk-YIO2PX4J.mjs} +6 -6
  33. package/dist/cli/{client-YM7EV7JZ.mjs → client-25RBAXIY.mjs} +3 -3
  34. package/dist/cli/client-AY2RSEDD.js +20 -0
  35. package/dist/cli/{csv-IERAXUNG.mjs → csv-7BOK5ZD7.mjs} +3 -3
  36. package/dist/cli/{csv-3CE5IY4L.js → csv-7XXJZ736.js} +12 -12
  37. package/dist/cli/{db-M2ONKJRD.mjs → db-7Q7L5SKP.mjs} +4 -4
  38. package/dist/cli/{db-VYSLD53P.js → db-TFPYJCZ5.js} +29 -29
  39. package/dist/cli/{describe-W6FCAXZR.mjs → describe-JTEJNG67.mjs} +8 -8
  40. package/dist/cli/{describe-2XFXS2SX.js → describe-TQYXSFZ2.js} +15 -15
  41. package/dist/cli/{executions-OUP6IVMO.mjs → executions-33MNWCXR.mjs} +4 -4
  42. package/dist/cli/{executions-P7EK3RC7.js → executions-XYCJEW5I.js} +6 -6
  43. package/dist/cli/{feedback-UHG2PISO.js → feedback-D3RSQCQE.js} +7 -7
  44. package/dist/cli/{feedback-Q5QTIZSG.mjs → feedback-LXSEEBNL.mjs} +3 -3
  45. package/dist/cli/git-56MVO4Y5.js +23 -0
  46. package/dist/cli/{git-DMG3Z36A.mjs → git-IES2ZBYO.mjs} +4 -4
  47. package/dist/cli/index.js +79 -79
  48. package/dist/cli/index.mjs +31 -31
  49. package/dist/cli/{legacy-noops-ARAPGQUN.mjs → legacy-noops-ILCWGUAR.mjs} +4 -4
  50. package/dist/cli/{legacy-noops-DZJRLQUN.js → legacy-noops-YIOGLZXX.js} +7 -7
  51. package/dist/cli/{monitors-B7HLL45A.js → monitors-MQSSH43U.js} +85 -85
  52. package/dist/cli/{monitors-7GSSQILT.mjs → monitors-R3CZHVU2.mjs} +4 -4
  53. package/dist/cli/{org-VIY2LH6L.js → org-62P7YRHW.js} +60 -60
  54. package/dist/cli/{org-UR72VY3A.mjs → org-Z75A63SM.mjs} +4 -4
  55. package/dist/cli/{play-ATTKGZLK.mjs → play-FUUFAV34.mjs} +7 -7
  56. package/dist/cli/play-K4RS3VMC.js +153 -0
  57. package/dist/cli/{providers-ZBZED4TK.mjs → providers-OQNPHTKA.mjs} +4 -4
  58. package/dist/cli/{providers-RDOEU4FO.js → providers-Q2VZF65A.js} +7 -7
  59. package/dist/cli/{quickstart-JT5FW7EB.mjs → quickstart-7X6HUVWX.mjs} +3 -3
  60. package/dist/cli/{quickstart-Y2GPRMC7.js → quickstart-VZ7BYW4Y.js} +5 -5
  61. package/dist/cli/search-H3TNOWKP.js +26 -0
  62. package/dist/cli/{search-73OTM3ZZ.mjs → search-SJKLKSER.mjs} +5 -5
  63. package/dist/cli/{secrets-EEXG43XS.js → secrets-EKH3FPAO.js} +13 -13
  64. package/dist/cli/{secrets-AHDWUIVL.mjs → secrets-JQUKCHON.mjs} +4 -4
  65. package/dist/cli/{sessions-SHSSRPN5.js → sessions-NDLKL26C.js} +5 -5
  66. package/dist/cli/{sessions-LDZMTST4.mjs → sessions-RSFW7OYD.mjs} +4 -4
  67. package/dist/cli/{settings-JBCSG3JV.mjs → settings-DR4YKJTJ.mjs} +7 -7
  68. package/dist/cli/{settings-FMM4KYDS.js → settings-HPUE5C2G.js} +74 -74
  69. package/dist/cli/{setup-4M6GZEV6.mjs → setup-4FT6NMU6.mjs} +6 -6
  70. package/dist/cli/{setup-VF3WHT2K.js → setup-Y2HCWQ4D.js} +41 -41
  71. package/dist/cli/{skills-5GSHPGQR.mjs → skills-EQR5K67V.mjs} +4 -4
  72. package/dist/cli/skills-OGQZAKOB.js +28 -0
  73. package/dist/cli/tools-3HM7A7XQ.js +40 -0
  74. package/dist/cli/{tools-7G6TW3MO.mjs → tools-ZRCNCMOO.mjs} +6 -6
  75. package/dist/cli/{update-NY2LA7HX.mjs → update-UJNIMTRS.mjs} +6 -6
  76. package/dist/cli/update-ZB6CXLCS.js +28 -0
  77. package/dist/cli/{workflow-TZ4UU3MV.js → workflow-4M63OBSC.js} +15 -15
  78. package/dist/cli/{workflow-JPNJ5D2W.mjs → workflow-EN3TQFKU.mjs} +5 -5
  79. package/dist/index.js +6 -6
  80. package/dist/index.mjs +3 -3
  81. package/dist/install-integrity.json +74 -74
  82. package/dist/release.d.mts +1 -1
  83. package/dist/release.d.ts +1 -1
  84. package/dist/release.js +2 -2
  85. package/dist/release.mjs +1 -1
  86. package/package.json +1 -1
  87. package/dist/cli/auth-CYXUWRLU.js +0 -31
  88. package/dist/cli/client-R4VF7KSK.js +0 -20
  89. package/dist/cli/git-IQRVNMQL.js +0 -23
  90. package/dist/cli/play-FT7EUE2Y.js +0 -153
  91. package/dist/cli/search-LHD6BP42.js +0 -26
  92. package/dist/cli/skills-RKY6BV2Y.js +0 -28
  93. package/dist/cli/tools-RSVWPCZT.js +0 -40
  94. package/dist/cli/update-ZD7UN6FA.js +0 -28
@@ -15,7 +15,7 @@ import {
15
15
  RETAINED_PIPELINE_RECEIVERS_HEADER,
16
16
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
17
17
  resolveConfig
18
- } from "./chunk-H4MOKDCV.mjs";
18
+ } from "./chunk-3EIK6KTE.mjs";
19
19
  import {
20
20
  PLAY_RUNTIME_BACKENDS,
21
21
  RAW_V2_TOOL_RESPONSE_CONTRACT,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-4ODBHH6X.mjs";
4
+ } from "./chunk-ULX7APDZ.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-H4MOKDCV.mjs";
7
+ } from "./chunk-3EIK6KTE.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk2COBRUUHjs = require('./chunk-2COBRUUH.js');
5
+ var _chunkV5JPRCQ2js = require('./chunk-V5JPRCQ2.js');
6
6
 
7
7
 
8
- var _chunkZIUELPGRjs = require('./chunk-ZIUELPGR.js');
8
+ var _chunkQ3CSXWFUjs = require('./chunk-Q3CSXWFU.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkV5JPRCQ2js.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
39
+ _chunkV5JPRCQ2js.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkV5JPRCQ2js.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
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
139
+ _chunkV5JPRCQ2js.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkV5JPRCQ2js.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
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
153
+ _chunkV5JPRCQ2js.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkV5JPRCQ2js.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkV5JPRCQ2js.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
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
200
+ _chunkV5JPRCQ2js.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkV5JPRCQ2js.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
227
+ _chunkV5JPRCQ2js.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkV5JPRCQ2js.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
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
254
+ _chunkV5JPRCQ2js.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkV5JPRCQ2js.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
269
+ _chunkV5JPRCQ2js.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 = _chunkZIUELPGRjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkQ3CSXWFUjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunk2COBRUUHjs.openInBrowser.call(void 0, connectUrl);
292
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkV5JPRCQ2js.openInBrowser.call(void 0, connectUrl);
292
+ _chunkV5JPRCQ2js.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkV5JPRCQ2js.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
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
322
+ _chunkV5JPRCQ2js.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkV5JPRCQ2js.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
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
371
+ _chunkV5JPRCQ2js.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkV5JPRCQ2js.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
392
+ _chunkV5JPRCQ2js.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -4,7 +4,7 @@
4
4
  var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
5
5
 
6
6
 
7
- var _chunkGMOMXQR6js = require('./chunk-GMOMXQR6.js');
7
+ var _chunk27JIZEAJjs = require('./chunk-27JIZEAJ.js');
8
8
 
9
9
 
10
10
 
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
743
743
  }
744
744
 
745
745
  // src/version.ts
746
- var SDK_VERSION = _chunkGMOMXQR6js.SDK_RELEASE.version;
747
- var SDK_API_MAJOR = _chunkGMOMXQR6js.SDK_RELEASE.contracts.api.currentMajor;
748
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkGMOMXQR6js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
746
+ var SDK_VERSION = _chunk27JIZEAJjs.SDK_RELEASE.version;
747
+ var SDK_API_MAJOR = _chunk27JIZEAJjs.SDK_RELEASE.contracts.api.currentMajor;
748
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunk27JIZEAJjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
749
749
 
750
750
  // src/agent-runtime.ts
751
751
 
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk36MFVS4Qjs = require('./chunk-36MFVS4Q.js');
3
+ var _chunk4W3B4CNEjs = require('./chunk-4W3B4CNE.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk2COBRUUHjs = require('./chunk-2COBRUUH.js');
7
+ var _chunkV5JPRCQ2js = require('./chunk-V5JPRCQ2.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkZIUELPGRjs = require('./chunk-ZIUELPGR.js');
11
+ var _chunkQ3CSXWFUjs = require('./chunk-Q3CSXWFU.js');
12
12
 
13
13
  // src/cli/commands/search.ts
14
14
  var _commander = require('commander');
@@ -18,7 +18,7 @@ var _fs = require('fs');
18
18
  var _path = require('path');
19
19
  var SEARCH_REF_TTL_MS = 15 * 6e4;
20
20
  function lastSearchPath() {
21
- return _path.join.call(void 0, _chunkZIUELPGRjs.sdkCliStateDirPath.call(void 0, _chunkZIUELPGRjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
21
+ return _path.join.call(void 0, _chunkQ3CSXWFUjs.sdkCliStateDirPath.call(void 0, _chunkQ3CSXWFUjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
22
22
  }
23
23
  function rememberSearchRef(searchRef) {
24
24
  try {
@@ -113,6 +113,20 @@ function pricingDisplay(item) {
113
113
  notes: display ? [clipSummary(display)] : []
114
114
  };
115
115
  }
116
+ var RATE_WINDOW_UNITS = {
117
+ 1e3: "s",
118
+ 6e4: "min",
119
+ 36e5: "hr"
120
+ };
121
+ function rateLimitDisplay(item) {
122
+ const limits = (Array.isArray(item.rateLimits) ? item.rateLimits : []).filter(
123
+ (limit) => typeof _optionalChain([limit, 'optionalAccess', _3 => _3.requestsPerWindow]) === "number" && typeof _optionalChain([limit, 'optionalAccess', _4 => _4.windowMs]) === "number" && limit.windowMs > 0
124
+ );
125
+ const [tightest] = limits.sort(
126
+ (a, b) => a.requestsPerWindow / a.windowMs - b.requestsPerWindow / b.windowMs
127
+ );
128
+ return tightest ? `${tightest.requestsPerWindow}/${_nullishCoalesce(RATE_WINDOW_UNITS[tightest.windowMs], () => ( `${tightest.windowMs / 1e3}s`))}` : "\u2014";
129
+ }
116
130
  function searchRow(item) {
117
131
  const { cost, notes } = pricingDisplay(item);
118
132
  if (item.credentialStatus === "requires_connection") {
@@ -124,13 +138,14 @@ function searchRow(item) {
124
138
  id: item.id,
125
139
  kind: item.kind,
126
140
  cost,
141
+ rateLimit: rateLimitDisplay(item),
127
142
  summary: clipSummary(_nullishCoalesce(item.description, () => ( ""))),
128
143
  notes
129
144
  };
130
145
  }
131
146
  function renderSearchResults(result) {
132
147
  if (result.results.length === 0)
133
- return _chunk2COBRUUHjs.renderCommandEnvelopeText.call(void 0, result);
148
+ return _chunkV5JPRCQ2js.renderCommandEnvelopeText.call(void 0, result);
134
149
  const rows = result.results.map(searchRow);
135
150
  const kinds = new Set(rows.map((row) => row.kind));
136
151
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -138,16 +153,23 @@ function renderSearchResults(result) {
138
153
  { header: onlyTools ? "TOOL" : "ID", value: (row) => row.id },
139
154
  ...!onlyTools ? [{ header: "KIND", value: (row) => row.kind }] : [],
140
155
  { header: "CREDITS", value: (row) => row.cost, alignment: "right" },
156
+ ...rows.some((row) => row.rateLimit !== "\u2014") ? [
157
+ {
158
+ header: "RATE LIMIT",
159
+ value: (row) => row.rateLimit,
160
+ alignment: "right"
161
+ }
162
+ ] : [],
141
163
  { header: "SUMMARY", value: (row) => row.summary }
142
164
  ];
143
165
  const render = result.render;
144
- const title = _nullishCoalesce(_optionalChain([render, 'optionalAccess', _3 => _3.sections, 'optionalAccess', _4 => _4[0], 'optionalAccess', _5 => _5.title]), () => ( `${_nullishCoalesce(result.total, () => ( rows.length))} matches \u2014 showing ${rows.length}`));
166
+ const title = _nullishCoalesce(_optionalChain([render, 'optionalAccess', _5 => _5.sections, 'optionalAccess', _6 => _6[0], 'optionalAccess', _7 => _7.title]), () => ( `${_nullishCoalesce(result.total, () => ( rows.length))} matches \u2014 showing ${rows.length}`));
145
167
  const remaining = {
146
- sections: _optionalChain([render, 'optionalAccess', _6 => _6.sections, 'optionalAccess', _7 => _7.slice, 'call', _8 => _8(1)]),
147
- actions: _optionalChain([render, 'optionalAccess', _9 => _9.actions])
168
+ sections: _optionalChain([render, 'optionalAccess', _8 => _8.sections, 'optionalAccess', _9 => _9.slice, 'call', _10 => _10(1)]),
169
+ actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
148
170
  };
149
- const followUps = _optionalChain([remaining, 'access', _10 => _10.sections, 'optionalAccess', _11 => _11.length]) || _optionalChain([remaining, 'access', _12 => _12.actions, 'optionalAccess', _13 => _13.length]) ? `
150
- ${_chunk2COBRUUHjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
171
+ const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
172
+ ${_chunkV5JPRCQ2js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
151
173
  const notes = rows.flatMap(
152
174
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
153
175
  );
@@ -205,8 +227,8 @@ function addSearchOptions(command) {
205
227
  function pointAtDescribe(result) {
206
228
  const old = /`deepline (tools|plays) describe [^`]*`/;
207
229
  const render = result.render;
208
- for (const section of _nullishCoalesce(_optionalChain([render, 'optionalAccess', _14 => _14.sections]), () => ( []))) {
209
- if (!_optionalChain([section, 'access', _15 => _15.lines, 'optionalAccess', _16 => _16.some, 'call', _17 => _17((line) => old.test(line))])) continue;
230
+ for (const section of _nullishCoalesce(_optionalChain([render, 'optionalAccess', _16 => _16.sections]), () => ( []))) {
231
+ if (!_optionalChain([section, 'access', _17 => _17.lines, 'optionalAccess', _18 => _18.some, 'call', _19 => _19((line) => old.test(line))])) continue;
210
232
  section.lines = [
211
233
  "Run `deepline describe <id>` before executing a tool or running a play.",
212
234
  ...section.lines.filter((line) => !old.test(line))
@@ -218,13 +240,13 @@ function pointAtDescribe(result) {
218
240
  }
219
241
  }
220
242
  async function runSearch(queryInput, options, types, exclude = []) {
221
- const query = _nullishCoalesce(_optionalChain([queryInput, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]), () => ( ""));
243
+ const query = _nullishCoalesce(_optionalChain([queryInput, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]), () => ( ""));
222
244
  const searchTerms = _nullishCoalesce(options.searchTerms, () => ( options.search_terms));
223
- if (!query && !_optionalChain([options, 'access', _20 => _20.categories, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) && !_optionalChain([searchTerms, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()])) {
245
+ if (!query && !_optionalChain([options, 'access', _22 => _22.categories, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) && !_optionalChain([searchTerms, 'optionalAccess', _25 => _25.trim, 'call', _26 => _26()])) {
224
246
  console.error(USAGE);
225
247
  return 1;
226
248
  }
227
- const { search_ref: searchRef, ...result } = await new (0, _chunk36MFVS4Qjs.DeeplineClient)().search({
249
+ const { search_ref: searchRef, ...result } = await new (0, _chunk4W3B4CNEjs.DeeplineClient)().search({
228
250
  query,
229
251
  types,
230
252
  exclude,
@@ -238,7 +260,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
238
260
  });
239
261
  if (searchRef) rememberSearchRef(searchRef);
240
262
  pointAtDescribe(result);
241
- _chunk2COBRUUHjs.printCommandEnvelope.call(void 0, result, {
263
+ _chunkV5JPRCQ2js.printCommandEnvelope.call(void 0, result, {
242
264
  json: options.json === true,
243
265
  text: renderSearchResults(result)
244
266
  });
@@ -296,6 +318,8 @@ Notes:
296
318
  the recommended form. Pass --json only when a program parses the result.
297
319
  Readable prices are Deepline credits with a per-row unit. Estimates and
298
320
  observed historical charges are labelled; usage-based prices are not quotes.
321
+ RATE LIMIT is the tightest request rate Deepline paces the tool at; a dash
322
+ means none is declared, not that the tool is unlimited.
299
323
 
300
324
  Examples:
301
325
  deepline search "first name, last name and company domain -> verified work email"
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-4ODBHH6X.mjs";
5
+ } from "./chunk-ULX7APDZ.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -25,7 +25,7 @@ import {
25
25
  saveHostEnvValues,
26
26
  saveProjectDeeplineEnvValues,
27
27
  storedHostApiKey
28
- } from "./chunk-H4MOKDCV.mjs";
28
+ } from "./chunk-3EIK6KTE.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {