deepline 0.3.322 → 0.3.324

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/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
  3. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +454 -129
  4. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +407 -37
  5. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +18 -4
  6. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +16 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +6 -2
  8. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +1 -1
  9. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +2 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/gradient2-concurrency-controller.ts +15 -5
  11. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-capacity-policy.ts +1 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-concurrency-policy.ts +7 -2
  13. package/dist/bundling-sources/shared_libs/play-runtime/provider-row-retry-queue.ts +65 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +2 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +34 -5
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-map-row-feed.ts +116 -15
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +59 -6
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +294 -37
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +73 -0
  20. package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +2 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +41 -3
  22. package/dist/cli/{auth-VSXORUWX.mjs → auth-6KWNR6AI.mjs} +4 -4
  23. package/dist/cli/auth-LKSTC3YV.js +31 -0
  24. package/dist/cli/{billing-Q6WO5E2R.js → billing-CLLWHIAT.js} +70 -70
  25. package/dist/cli/{billing-EH74RDBF.mjs → billing-VQ2NUJLB.mjs} +4 -4
  26. package/dist/cli/{chunk-M4TZIO5U.js → chunk-2UQUOUAW.js} +2 -2
  27. package/dist/cli/{chunk-JWEYKLOV.mjs → chunk-3ZKAKQYC.mjs} +1 -1
  28. package/dist/cli/{chunk-6JV2VSQN.mjs → chunk-5CQ554BM.mjs} +1 -1
  29. package/dist/cli/{chunk-Z5TQC2ID.mjs → chunk-5QZFWY7C.mjs} +2 -2
  30. package/dist/cli/{chunk-A3THNBGB.mjs → chunk-AKM5JVPG.mjs} +2 -2
  31. package/dist/cli/{chunk-U6N6MS6N.js → chunk-D5YJHGST.js} +4 -4
  32. package/dist/cli/{chunk-SISYT2DM.mjs → chunk-DO2VA5UP.mjs} +2 -2
  33. package/dist/cli/{chunk-H52C7AHC.mjs → chunk-EHSI2DMO.mjs} +4 -4
  34. package/dist/cli/{chunk-CNO37AI3.js → chunk-EXKRHZRG.js} +220 -220
  35. package/dist/cli/{chunk-JCZX5ZQW.js → chunk-G4F2AIQ5.js} +6 -6
  36. package/dist/cli/{chunk-GAFGAIVW.js → chunk-GMO3NBE2.js} +60 -60
  37. package/dist/cli/{chunk-4F4XU2Z5.js → chunk-GROXVGGW.js} +6 -6
  38. package/dist/cli/{chunk-I7UUOAZN.mjs → chunk-HHZDWBSQ.mjs} +1 -1
  39. package/dist/cli/{chunk-ZHIPP7YD.mjs → chunk-I7RLL7LN.mjs} +1 -1
  40. package/dist/cli/{chunk-PTOQKD2Y.js → chunk-IXYR65PW.js} +1 -1
  41. package/dist/cli/{chunk-LUAF3MIC.mjs → chunk-LHJKYMTS.mjs} +1 -1
  42. package/dist/cli/{chunk-5RPFAX7O.js → chunk-N5E66DP3.js} +6 -6
  43. package/dist/cli/{chunk-CMRWPMZS.js → chunk-NC2ZXG2Y.js} +26 -26
  44. package/dist/cli/{chunk-LUTXK4ON.mjs → chunk-NIOFMRYW.mjs} +5 -5
  45. package/dist/cli/{chunk-PMTJYMDJ.mjs → chunk-NQJQ3CLX.mjs} +3 -3
  46. package/dist/cli/{chunk-KAUABQOG.js → chunk-PAA4FYCF.js} +15 -15
  47. package/dist/cli/{chunk-QXIPQYZZ.js → chunk-QM2Z4FQF.js} +6 -6
  48. package/dist/cli/{chunk-WARD6DBW.mjs → chunk-TJGJTB5T.mjs} +1 -1
  49. package/dist/cli/{chunk-KHRWZU6B.js → chunk-TZZNI2A4.js} +50 -50
  50. package/dist/cli/{chunk-6PE2VHSG.mjs → chunk-U2RPP53P.mjs} +6 -6
  51. package/dist/cli/{chunk-Y3LPZJFE.js → chunk-V5PA6TCT.js} +48 -48
  52. package/dist/cli/{client-XRO4X5XF.mjs → client-VHUKTDAZ.mjs} +3 -3
  53. package/dist/cli/client-WMSTRUGP.js +20 -0
  54. package/dist/cli/{csv-ALZ44QHM.js → csv-5MZY7HU5.js} +12 -12
  55. package/dist/cli/{csv-5B6JDXCN.mjs → csv-7DA4APB6.mjs} +3 -3
  56. package/dist/cli/{db-HJECAUNU.mjs → db-7UPW3N5U.mjs} +4 -4
  57. package/dist/cli/{db-D6UHGVOU.js → db-ICG3FUVE.js} +20 -20
  58. package/dist/cli/{describe-YAN46NBC.js → describe-VDRY2JCE.js} +15 -15
  59. package/dist/cli/{describe-FBAWTMDS.mjs → describe-ZAPGM5ND.mjs} +8 -8
  60. package/dist/cli/{executions-XSV7ZE4N.js → executions-D5GYCY3A.js} +6 -6
  61. package/dist/cli/{executions-LWHMAUHH.mjs → executions-TK3C2FAQ.mjs} +4 -4
  62. package/dist/cli/{feedback-RKT6F6W6.js → feedback-PZAZZUXF.js} +6 -6
  63. package/dist/cli/{feedback-EPXMI55U.mjs → feedback-T4EIP5QR.mjs} +3 -3
  64. package/dist/cli/git-73N6EUZ3.js +23 -0
  65. package/dist/cli/{git-BOXANJBI.mjs → git-WBFWIVO5.mjs} +4 -4
  66. package/dist/cli/index.js +75 -75
  67. package/dist/cli/index.mjs +31 -31
  68. package/dist/cli/{legacy-noops-VV7DRGA7.mjs → legacy-noops-DUCK7OKN.mjs} +4 -4
  69. package/dist/cli/{legacy-noops-7EBEYUQZ.js → legacy-noops-LRBJWXRK.js} +7 -7
  70. package/dist/cli/{monitors-RDRG3E4Y.js → monitors-7S2SL62G.js} +85 -85
  71. package/dist/cli/{monitors-NJPHRFYT.mjs → monitors-WYH5AQIO.mjs} +4 -4
  72. package/dist/cli/{org-ZFWDBQ7R.js → org-EQNGGHPV.js} +60 -60
  73. package/dist/cli/{org-USE3QRY6.mjs → org-XCSMLTUW.mjs} +4 -4
  74. package/dist/cli/{play-3VEIZZJ5.mjs → play-A5ISFBJM.mjs} +7 -7
  75. package/dist/cli/play-CLC2Z5SO.js +152 -0
  76. package/dist/cli/{providers-SXWPIPKO.js → providers-DR2CLD3N.js} +7 -7
  77. package/dist/cli/{providers-PP4L5HLM.mjs → providers-KHTZFQ5I.mjs} +4 -4
  78. package/dist/cli/{quickstart-QCSPS2D5.mjs → quickstart-KT4LKORA.mjs} +3 -3
  79. package/dist/cli/{quickstart-WVLEQQXO.js → quickstart-NIRWI6YU.js} +5 -5
  80. package/dist/cli/search-DM7IQS5F.js +26 -0
  81. package/dist/cli/{search-LTC6R6IS.mjs → search-WCEXPBAT.mjs} +5 -5
  82. package/dist/cli/{secrets-R5FGK6UC.js → secrets-QSFEZGVE.js} +13 -13
  83. package/dist/cli/{secrets-LV4FJNAL.mjs → secrets-TN7DW3QR.mjs} +4 -4
  84. package/dist/cli/{sessions-N6CMP6XZ.js → sessions-LJS6W67T.js} +5 -5
  85. package/dist/cli/{sessions-CFNRSRYX.mjs → sessions-WSE5FN4H.mjs} +4 -4
  86. package/dist/cli/{settings-RNEJQGBL.js → settings-FGS3VYJN.js} +74 -74
  87. package/dist/cli/{settings-ADEYLHV7.mjs → settings-Z3V53A6J.mjs} +7 -7
  88. package/dist/cli/{setup-YLEOL7E7.mjs → setup-GMH4VJS3.mjs} +6 -6
  89. package/dist/cli/{setup-NJCUXN4H.js → setup-ZA234HEY.js} +41 -41
  90. package/dist/cli/skills-6APAQV6W.js +28 -0
  91. package/dist/cli/{skills-WABXOGDA.mjs → skills-7G2RZMYH.mjs} +4 -4
  92. package/dist/cli/{tools-XQCGEX5J.mjs → tools-7EE4BGXO.mjs} +6 -6
  93. package/dist/cli/tools-EPYUFWPB.js +38 -0
  94. package/dist/cli/update-FPVX3XJC.js +28 -0
  95. package/dist/cli/{update-3W2NBTST.mjs → update-O5QEWS7K.mjs} +6 -6
  96. package/dist/cli/{workflow-GKFGFQ4D.mjs → workflow-KE54RUTR.mjs} +5 -5
  97. package/dist/cli/{workflow-NUVM7LQR.js → workflow-M5PAAW3O.js} +15 -15
  98. package/dist/index.js +6 -6
  99. package/dist/index.mjs +3 -3
  100. package/dist/install-integrity.json +75 -74
  101. package/dist/release.d.mts +1 -1
  102. package/dist/release.d.ts +1 -1
  103. package/dist/release.js +2 -2
  104. package/dist/release.mjs +1 -1
  105. package/package.json +1 -1
  106. package/dist/cli/auth-MKFIE6KN.js +0 -31
  107. package/dist/cli/client-NITVYMZK.js +0 -20
  108. package/dist/cli/git-B3L74RFF.js +0 -23
  109. package/dist/cli/play-EONETVYE.js +0 -152
  110. package/dist/cli/search-XK2KJXQG.js +0 -26
  111. package/dist/cli/skills-VNAPDBFA.js +0 -28
  112. package/dist/cli/tools-XF5EQO4O.js +0 -38
  113. package/dist/cli/update-3TQMEJO5.js +0 -28
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk4F4XU2Z5js = require('./chunk-4F4XU2Z5.js');
5
+ var _chunkGROXVGGWjs = require('./chunk-GROXVGGW.js');
6
6
 
7
7
 
8
- var _chunkU6N6MS6Njs = require('./chunk-U6N6MS6N.js');
8
+ var _chunkD5YJHGSTjs = require('./chunk-D5YJHGST.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 } = _chunk4F4XU2Z5js.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkGROXVGGWjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
39
+ _chunkGROXVGGWjs.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 } = _chunk4F4XU2Z5js.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkGROXVGGWjs.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
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
139
+ _chunkGROXVGGWjs.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 } = _chunk4F4XU2Z5js.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkGROXVGGWjs.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
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
153
+ _chunkGROXVGGWjs.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 } = _chunk4F4XU2Z5js.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkGROXVGGWjs.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 } = _chunk4F4XU2Z5js.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkGROXVGGWjs.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
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
200
+ _chunkGROXVGGWjs.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 } = _chunk4F4XU2Z5js.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkGROXVGGWjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
227
+ _chunkGROXVGGWjs.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 } = _chunk4F4XU2Z5js.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkGROXVGGWjs.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
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
254
+ _chunkGROXVGGWjs.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 } = _chunk4F4XU2Z5js.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkGROXVGGWjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
269
+ _chunkGROXVGGWjs.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 = _chunkU6N6MS6Njs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkD5YJHGSTjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunk4F4XU2Z5js.openInBrowser.call(void 0, connectUrl);
292
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkGROXVGGWjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkGROXVGGWjs.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 } = _chunk4F4XU2Z5js.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkGROXVGGWjs.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
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
322
+ _chunkGROXVGGWjs.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 } = _chunk4F4XU2Z5js.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkGROXVGGWjs.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
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
371
+ _chunkGROXVGGWjs.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 } = _chunk4F4XU2Z5js.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkGROXVGGWjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
392
+ _chunkGROXVGGWjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  recentSearchRef,
9
9
  registerDeprecatedSearchCommand
10
- } from "./chunk-PMTJYMDJ.mjs";
10
+ } from "./chunk-NQJQ3CLX.mjs";
11
11
  import {
12
12
  extractSummaryFields,
13
13
  projectRowOutput,
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-MIMASXO4.mjs";
19
19
  import {
20
20
  DeeplineClient
21
- } from "./chunk-JWEYKLOV.mjs";
21
+ } from "./chunk-3ZKAKQYC.mjs";
22
22
  import {
23
23
  beginToolExecuteCommand,
24
24
  getToolExecuteInvocationId,
@@ -33,11 +33,11 @@ import {
33
33
  printJsonError,
34
34
  renderCommandEnvelopeText,
35
35
  shouldEmitJson
36
- } from "./chunk-ZHIPP7YD.mjs";
36
+ } from "./chunk-I7RLL7LN.mjs";
37
37
  import {
38
38
  resolveConfig,
39
39
  sdkCliStateDirPath
40
- } from "./chunk-WARD6DBW.mjs";
40
+ } from "./chunk-TJGJTB5T.mjs";
41
41
  import {
42
42
  DeeplineError
43
43
  } from "./chunk-NXGCO4JB.mjs";
@@ -1010,7 +1010,7 @@ Examples:
1010
1010
  process.exitCode = await narrowView();
1011
1011
  return;
1012
1012
  }
1013
- const { describeAnything } = await import("./describe-FBAWTMDS.mjs");
1013
+ const { describeAnything } = await import("./describe-ZAPGM5ND.mjs");
1014
1014
  process.exitCode = await describeAnything(
1015
1015
  toolId,
1016
1016
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-JWEYKLOV.mjs";
3
+ } from "./chunk-3ZKAKQYC.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-ZHIPP7YD.mjs";
6
+ } from "./chunk-I7RLL7LN.mjs";
7
7
  import {
8
8
  resolveConfig,
9
9
  sdkCliStateDirPath
10
- } from "./chunk-WARD6DBW.mjs";
10
+ } from "./chunk-TJGJTB5T.mjs";
11
11
 
12
12
  // src/cli/search-ref.ts
13
13
  import { mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkM4TZIO5Ujs = require('./chunk-M4TZIO5U.js');
4
+ var _chunk2UQUOUAWjs = require('./chunk-2UQUOUAW.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkGAFGAIVWjs = require('./chunk-GAFGAIVW.js');
8
+ var _chunkGMO3NBE2js = require('./chunk-GMO3NBE2.js');
9
9
 
10
10
 
11
- var _chunk4F4XU2Z5js = require('./chunk-4F4XU2Z5.js');
11
+ var _chunkGROXVGGWjs = require('./chunk-GROXVGGW.js');
12
12
 
13
13
 
14
- var _chunkU6N6MS6Njs = require('./chunk-U6N6MS6N.js');
14
+ var _chunkD5YJHGSTjs = require('./chunk-D5YJHGST.js');
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  var _child_process = require('child_process');
@@ -504,7 +504,7 @@ function normalizedNpmPrefix(value) {
504
504
  }
505
505
  function resolveNpmGlobalPrefix(env) {
506
506
  try {
507
- const plan = _chunkGAFGAIVWjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
507
+ const plan = _chunkGMO3NBE2js.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
508
508
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
509
509
  encoding: "utf8",
510
510
  env,
@@ -560,8 +560,8 @@ function resolveUpdatePlan(options = {}) {
560
560
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
561
561
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
562
562
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
563
- const npmVersion = options.npmVersion === void 0 ? _chunkM4TZIO5Ujs.readNpmVersion.call(void 0, env) : options.npmVersion;
564
- const npmGlobalInstallFlags = _chunkM4TZIO5Ujs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
563
+ const npmVersion = options.npmVersion === void 0 ? _chunk2UQUOUAWjs.readNpmVersion.call(void 0, env) : options.npmVersion;
564
+ const npmGlobalInstallFlags = _chunk2UQUOUAWjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
565
565
  const args = installPrefix ? [
566
566
  "install",
567
567
  "-g",
@@ -571,7 +571,7 @@ function resolveUpdatePlan(options = {}) {
571
571
  packageSpec
572
572
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
573
573
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
574
- _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkU6N6MS6Njs.autoDetectBaseUrl.call(void 0, )
574
+ _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkD5YJHGSTjs.autoDetectBaseUrl.call(void 0, )
575
575
  );
576
576
  return {
577
577
  kind: "npm-global",
@@ -718,7 +718,7 @@ function sidecarInstallFailure(versionDir) {
718
718
  function runCommand(command, args, env = process.env) {
719
719
  return new Promise((resolveResult) => {
720
720
  let output = "";
721
- const plan = _chunkGAFGAIVWjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
721
+ const plan = _chunkGMO3NBE2js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
722
722
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
723
723
  stdio: ["inherit", "pipe", "pipe"],
724
724
  shell: plan.shell,
@@ -1094,14 +1094,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1094
1094
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1095
1095
  }
1096
1096
  async function runUpdateCommand(options, dependencies = {}) {
1097
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkU6N6MS6Njs.autoDetectBaseUrl));
1097
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkD5YJHGSTjs.autoDetectBaseUrl));
1098
1098
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1099
1099
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1100
1100
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1101
1101
  const originalWrite = process.stdout.write.bind(process.stdout);
1102
1102
  process.stdout.write = (() => true);
1103
1103
  try {
1104
- const exitCode = await _chunkGAFGAIVWjs.runSkillsCommand.call(void 0, { json: true });
1104
+ const exitCode = await _chunkGMO3NBE2js.runSkillsCommand.call(void 0, { json: true });
1105
1105
  if (exitCode !== 0) {
1106
1106
  throw new Error(
1107
1107
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1172,11 +1172,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1172
1172
  ]
1173
1173
  };
1174
1174
  if (options.json && !options.executeWithJson) {
1175
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1175
+ _chunkGROXVGGWjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1176
1176
  return 0;
1177
1177
  }
1178
1178
  if (options.printCommand) {
1179
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
1179
+ _chunkGROXVGGWjs.printCommandEnvelope.call(void 0,
1180
1180
  {
1181
1181
  ...plan,
1182
1182
  render: {
@@ -1189,7 +1189,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1189
1189
  return 0;
1190
1190
  }
1191
1191
  if (plan.kind === "source" || plan.kind === "homebrew") {
1192
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1192
+ _chunkGROXVGGWjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1193
1193
  return 0;
1194
1194
  }
1195
1195
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1219,7 +1219,7 @@ To retry with full installer output, run: deepline skills --json
1219
1219
  );
1220
1220
  }
1221
1221
  if (options.executeWithJson && options.json) {
1222
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
1222
+ _chunkGROXVGGWjs.printCommandEnvelope.call(void 0,
1223
1223
  {
1224
1224
  ok: true,
1225
1225
  pinnedVersion
@@ -1,20 +1,20 @@
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 _chunk5RPFAX7Ojs = require('./chunk-5RPFAX7O.js');
3
+ var _chunkN5E66DP3js = require('./chunk-N5E66DP3.js');
4
4
 
5
5
 
6
- var _chunk4F4XU2Z5js = require('./chunk-4F4XU2Z5.js');
6
+ var _chunkGROXVGGWjs = require('./chunk-GROXVGGW.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkU6N6MS6Njs = require('./chunk-U6N6MS6N.js');
10
+ var _chunkD5YJHGSTjs = require('./chunk-D5YJHGST.js');
11
11
 
12
12
  // src/cli/search-ref.ts
13
13
  var _fs = require('fs');
14
14
  var _path = require('path');
15
15
  var SEARCH_REF_TTL_MS = 15 * 6e4;
16
16
  function lastSearchPath() {
17
- return _path.join.call(void 0, _chunkU6N6MS6Njs.sdkCliStateDirPath.call(void 0, _chunkU6N6MS6Njs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
17
+ return _path.join.call(void 0, _chunkD5YJHGSTjs.sdkCliStateDirPath.call(void 0, _chunkD5YJHGSTjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
18
18
  }
19
19
  function rememberSearchRef(searchRef) {
20
20
  try {
@@ -97,7 +97,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
97
97
  console.error(USAGE);
98
98
  return 1;
99
99
  }
100
- const { search_ref: searchRef, ...result } = await new (0, _chunk5RPFAX7Ojs.DeeplineClient)().search({
100
+ const { search_ref: searchRef, ...result } = await new (0, _chunkN5E66DP3js.DeeplineClient)().search({
101
101
  query,
102
102
  types,
103
103
  exclude,
@@ -111,7 +111,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
111
111
  });
112
112
  if (searchRef) rememberSearchRef(searchRef);
113
113
  pointAtDescribe(result);
114
- _chunk4F4XU2Z5js.printCommandEnvelope.call(void 0, result, {
114
+ _chunkGROXVGGWjs.printCommandEnvelope.call(void 0, result, {
115
115
  json: options.json === true
116
116
  });
117
117
  return 0;
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-DLIRSHV6.mjs";
5
5
  import {
6
6
  SDK_RELEASE
7
- } from "./chunk-I7UUOAZN.mjs";
7
+ } from "./chunk-HHZDWBSQ.mjs";
8
8
  import {
9
9
  DeeplineError,
10
10
  TOOL_EXECUTION_ERROR_SCHEMA_VERSION,