deepline 0.3.425 → 0.3.427

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 (101) hide show
  1. package/README.md +1 -1
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +6 -2
  4. package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +5 -6
  5. package/dist/bundling-sources/shared_libs/play-runtime/zerobounce-batching.ts +6 -1
  6. package/dist/cli/{auth-RF5WGHBC.mjs → auth-4X5ZKTJJ.mjs} +4 -4
  7. package/dist/cli/auth-MK7F2EYA.js +40 -0
  8. package/dist/cli/{billing-E4G4QVR5.js → billing-OXG3Q7AS.js} +73 -73
  9. package/dist/cli/{billing-P4RUJ4UT.mjs → billing-V3OQHRKV.mjs} +4 -4
  10. package/dist/cli/{chunk-ODO6ZIHB.mjs → chunk-3H4CUTG5.mjs} +2 -2
  11. package/dist/cli/{chunk-FDM3BUIB.mjs → chunk-3O5BPCWB.mjs} +5 -5
  12. package/dist/cli/{chunk-NUET45RU.mjs → chunk-3UGHZGXU.mjs} +1 -1
  13. package/dist/cli/{chunk-J6FKYOFB.js → chunk-4GJT6BAH.js} +35 -35
  14. package/dist/cli/{chunk-CSP5CXTC.js → chunk-4NZAT6VQ.js} +20 -20
  15. package/dist/cli/{chunk-RTFXD5ZX.mjs → chunk-5HFIHG2V.mjs} +3 -3
  16. package/dist/cli/{chunk-XSC2FG4V.js → chunk-6KFFNYO6.js} +8 -8
  17. package/dist/cli/{chunk-ZYUKNQO4.js → chunk-7SUNA75F.js} +52 -52
  18. package/dist/cli/{chunk-XO5RJ3PF.js → chunk-BVJFHPB5.js} +79 -79
  19. package/dist/cli/{chunk-XC3J4P5W.mjs → chunk-CH7B3T5E.mjs} +1 -1
  20. package/dist/cli/{chunk-UDRNGM3S.mjs → chunk-CYF7Y2K3.mjs} +2 -2
  21. package/dist/cli/{chunk-RH2N5JUT.js → chunk-GYZDLABX.js} +26 -26
  22. package/dist/cli/{chunk-E7RPU3VG.mjs → chunk-H64EDTZZ.mjs} +2 -2
  23. package/dist/cli/{chunk-WNXYRODJ.mjs → chunk-JD5WFLF6.mjs} +1 -1
  24. package/dist/cli/{chunk-HT3UBTXV.mjs → chunk-JEFT6QTT.mjs} +1 -1
  25. package/dist/cli/{chunk-U42S2GAF.js → chunk-MALRKVEP.js} +4 -4
  26. package/dist/cli/{chunk-2J2I5A7K.mjs → chunk-MJ2WV3LS.mjs} +4 -4
  27. package/dist/cli/{chunk-VYO6TLWN.mjs → chunk-MTI24NKI.mjs} +1 -1
  28. package/dist/cli/{chunk-S5FCTT3E.mjs → chunk-MWL44NXV.mjs} +1 -1
  29. package/dist/cli/{chunk-IJPWBQEA.js → chunk-O3ZWP4KL.js} +8 -8
  30. package/dist/cli/{chunk-P7SNOFPA.mjs → chunk-OZ7M22PE.mjs} +3 -3
  31. package/dist/cli/{chunk-SBPPCMZD.js → chunk-PLN4F3DW.js} +16 -16
  32. package/dist/cli/{chunk-BFVDDMRH.mjs → chunk-POIETGSV.mjs} +2 -2
  33. package/dist/cli/{chunk-MWR452MP.mjs → chunk-STV2UBYA.mjs} +3 -3
  34. package/dist/cli/{chunk-NC5DYZ36.js → chunk-TXCYMXG7.js} +6 -6
  35. package/dist/cli/{chunk-UXLJZ4XQ.js → chunk-U4MH5KFQ.js} +10 -10
  36. package/dist/cli/{chunk-7F6KTNUP.js → chunk-WWOUGKO6.js} +6 -6
  37. package/dist/cli/{chunk-XLEA2CGA.mjs → chunk-X4FVKKU2.mjs} +8 -8
  38. package/dist/cli/{chunk-2ACYJZHU.js → chunk-XAUHRRUG.js} +1 -1
  39. package/dist/cli/{chunk-53DTOGNJ.js → chunk-XIZCVFTO.js} +2 -2
  40. package/dist/cli/{chunk-XN25EAP6.js → chunk-YTWDMQLC.js} +2 -2
  41. package/dist/cli/{chunk-WZLGL37A.js → chunk-ZNBMA4ZC.js} +50 -50
  42. package/dist/cli/{csv-XKCR2MB6.mjs → csv-MTZFRU7E.mjs} +3 -3
  43. package/dist/cli/{csv-P32NU7IS.js → csv-UP7VZ5XY.js} +12 -12
  44. package/dist/cli/{db-ZJQPREBZ.mjs → db-N67ZA3XK.mjs} +4 -4
  45. package/dist/cli/{db-AHFQJ7ZN.js → db-UYDMCKKN.js} +25 -25
  46. package/dist/cli/{describe-YE2WIS23.js → describe-ANKULJMG.js} +16 -16
  47. package/dist/cli/{describe-IZNT6RGY.mjs → describe-IHJTJI6Y.mjs} +12 -12
  48. package/dist/cli/{executions-WLRZODFZ.mjs → executions-5AV5LB25.mjs} +4 -4
  49. package/dist/cli/{executions-EZDFYAWW.js → executions-LYI4OYNS.js} +6 -6
  50. package/dist/cli/{feedback-A62XZMY2.js → feedback-V6AEZY7B.js} +7 -7
  51. package/dist/cli/{feedback-M6TNBIUP.mjs → feedback-WTBJTJNZ.mjs} +3 -3
  52. package/dist/cli/getting-started.d.mts +3 -1
  53. package/dist/cli/getting-started.d.ts +3 -1
  54. package/dist/cli/git-JGXSEUCH.js +24 -0
  55. package/dist/cli/{git-XYDEA57G.mjs → git-TI5FHJAN.mjs} +4 -4
  56. package/dist/cli/index.js +131 -131
  57. package/dist/cli/index.mjs +36 -36
  58. package/dist/cli/{legacy-noops-S4XSVXIN.mjs → legacy-noops-55WIJYDZ.mjs} +4 -4
  59. package/dist/cli/{legacy-noops-D34K4LWU.js → legacy-noops-HZSXECAV.js} +7 -7
  60. package/dist/cli/{monitors-VUSDOVGA.js → monitors-LCM5INTO.js} +84 -84
  61. package/dist/cli/{monitors-YDHQJMMQ.mjs → monitors-O233NFG3.mjs} +4 -4
  62. package/dist/cli/{org-EF7Q22GZ.mjs → org-RXBSIFKK.mjs} +4 -4
  63. package/dist/cli/{org-IRWGFW3I.js → org-YY33PBZT.js} +64 -64
  64. package/dist/cli/{play-Y4O3WFYH.mjs → play-RPVYEAPU.mjs} +10 -10
  65. package/dist/cli/{play-D54PEGMK.js → play-SKXVHW3X.js} +283 -283
  66. package/dist/cli/{providers-PX672XRG.mjs → providers-LD3KKFJ4.mjs} +4 -4
  67. package/dist/cli/{providers-2NPEOE22.js → providers-VEAXU2RJ.js} +7 -7
  68. package/dist/cli/{quickstart-KSFYOZGU.mjs → quickstart-R6AHSDG5.mjs} +3 -3
  69. package/dist/cli/{quickstart-3XXUIDVF.js → quickstart-RXWFQYS7.js} +5 -5
  70. package/dist/cli/{search-DIATDWNB.mjs → search-C5OKXPTC.mjs} +5 -5
  71. package/dist/cli/search-QETWAC7F.js +30 -0
  72. package/dist/cli/{secrets-S7J53N4D.js → secrets-4H6ZJX73.js} +13 -13
  73. package/dist/cli/{secrets-HSZNYSHN.mjs → secrets-6RB3VV44.mjs} +4 -4
  74. package/dist/cli/{sessions-BLJ5AZ2O.mjs → sessions-3VBCFW2E.mjs} +4 -4
  75. package/dist/cli/{sessions-ECOJWISN.js → sessions-6L3QV7NH.js} +5 -5
  76. package/dist/cli/{settings-4X2OSKMC.mjs → settings-MSLQGTMD.mjs} +8 -8
  77. package/dist/cli/{settings-BMKHMIN2.js → settings-QFBAOXNP.js} +75 -75
  78. package/dist/cli/{setup-NUEJ22OI.mjs → setup-2DIZBEKV.mjs} +7 -7
  79. package/dist/cli/{setup-GOT6Y2E3.js → setup-5STMP55W.js} +42 -42
  80. package/dist/cli/skills-LNQA7Y64.js +29 -0
  81. package/dist/cli/{skills-FCLEKW4O.mjs → skills-OK6IZA5B.mjs} +5 -5
  82. package/dist/cli/{tools-IVCHIOIY.mjs → tools-KNTK3ORX.mjs} +12 -12
  83. package/dist/cli/tools-ZSJRG6TM.js +44 -0
  84. package/dist/cli/{update-Y5RO5LSX.mjs → update-C36Q2GCK.mjs} +7 -7
  85. package/dist/cli/update-JVAQVWYF.js +31 -0
  86. package/dist/cli/{workflow-XGN3FZAE.js → workflow-5QUJOFPN.js} +15 -15
  87. package/dist/cli/{workflow-CSVQCXJZ.mjs → workflow-TF5JGNEE.mjs} +5 -5
  88. package/dist/index.js +6 -6
  89. package/dist/index.mjs +3 -3
  90. package/dist/install-integrity.json +78 -78
  91. package/dist/release.d.mts +1 -1
  92. package/dist/release.d.ts +1 -1
  93. package/dist/release.js +2 -2
  94. package/dist/release.mjs +1 -1
  95. package/package.json +1 -1
  96. package/dist/cli/auth-PTKVFEIT.js +0 -40
  97. package/dist/cli/git-62FZH46U.js +0 -24
  98. package/dist/cli/search-TW7PGWYR.js +0 -30
  99. package/dist/cli/skills-DCOMWBDX.js +0 -29
  100. package/dist/cli/tools-OAYJGYL7.js +0 -44
  101. package/dist/cli/update-2DBL37AU.js +0 -31
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk7F6KTNUPjs = require('./chunk-7F6KTNUP.js');
5
+ var _chunkWWOUGKO6js = require('./chunk-WWOUGKO6.js');
6
6
 
7
7
 
8
- var _chunkU42S2GAFjs = require('./chunk-U42S2GAF.js');
8
+ var _chunkMALRKVEPjs = require('./chunk-MALRKVEP.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 } = _chunk7F6KTNUPjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkWWOUGKO6js.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
39
+ _chunkWWOUGKO6js.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 } = _chunk7F6KTNUPjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkWWOUGKO6js.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
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
139
+ _chunkWWOUGKO6js.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 } = _chunk7F6KTNUPjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkWWOUGKO6js.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
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
153
+ _chunkWWOUGKO6js.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 } = _chunk7F6KTNUPjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkWWOUGKO6js.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 } = _chunk7F6KTNUPjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkWWOUGKO6js.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
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
200
+ _chunkWWOUGKO6js.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 } = _chunk7F6KTNUPjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkWWOUGKO6js.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
227
+ _chunkWWOUGKO6js.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 } = _chunk7F6KTNUPjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkWWOUGKO6js.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
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
254
+ _chunkWWOUGKO6js.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 } = _chunk7F6KTNUPjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkWWOUGKO6js.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
269
+ _chunkWWOUGKO6js.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 = _chunkU42S2GAFjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkMALRKVEPjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunk7F6KTNUPjs.openInBrowser.call(void 0, connectUrl);
292
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkWWOUGKO6js.openInBrowser.call(void 0, connectUrl);
292
+ _chunkWWOUGKO6js.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 } = _chunk7F6KTNUPjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkWWOUGKO6js.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
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
322
+ _chunkWWOUGKO6js.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 } = _chunk7F6KTNUPjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkWWOUGKO6js.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
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
371
+ _chunkWWOUGKO6js.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 } = _chunk7F6KTNUPjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkWWOUGKO6js.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
392
+ _chunkWWOUGKO6js.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-VYO6TLWN.mjs";
5
+ } from "./chunk-MTI24NKI.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-S5FCTT3E.mjs";
8
+ } from "./chunk-MWL44NXV.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-P7SNOFPA.mjs";
3
+ } from "./chunk-OZ7M22PE.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-VYO6TLWN.mjs";
3
+ } from "./chunk-MTI24NKI.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
17
17
  var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
18
18
 
19
19
 
20
- var _chunk2ACYJZHUjs = require('./chunk-2ACYJZHU.js');
20
+ var _chunkXAUHRRUGjs = require('./chunk-XAUHRRUG.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 = _chunk2ACYJZHUjs.SDK_RELEASE.version;
653
- var SDK_API_MAJOR = _chunk2ACYJZHUjs.SDK_RELEASE.contracts.api.currentMajor;
654
- var SDK_API_CONTRACT = _nullishCoalesce(_chunk2ACYJZHUjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
652
+ var SDK_VERSION = _chunkXAUHRRUGjs.SDK_RELEASE.version;
653
+ var SDK_API_MAJOR = _chunkXAUHRRUGjs.SDK_RELEASE.contracts.api.currentMajor;
654
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkXAUHRRUGjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
655
655
 
656
656
  // src/agent-runtime.ts
657
657
 
@@ -4,18 +4,18 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-FDM3BUIB.mjs";
7
+ } from "./chunk-3O5BPCWB.mjs";
8
8
  import {
9
9
  isCiEnvironment
10
- } from "./chunk-P7SNOFPA.mjs";
10
+ } from "./chunk-OZ7M22PE.mjs";
11
11
  import {
12
12
  addJsonNotice,
13
13
  isJsonOutputMode
14
- } from "./chunk-VYO6TLWN.mjs";
14
+ } from "./chunk-MTI24NKI.mjs";
15
15
  import {
16
16
  SDK_VERSION,
17
17
  resolveApiKeyForBaseUrl
18
- } from "./chunk-S5FCTT3E.mjs";
18
+ } from "./chunk-MWL44NXV.mjs";
19
19
 
20
20
  // src/cli/compatibility-catalog.ts
21
21
  var readers = /* @__PURE__ */ new WeakMap();
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-S5FCTT3E.mjs";
6
+ } from "./chunk-MWL44NXV.mjs";
7
7
  import {
8
8
  DeeplineError,
9
9
  serializeToolExecutionFailure
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-E4IXDAZI.mjs";
18
18
  import {
19
19
  SDK_RELEASE
20
- } from "./chunk-XC3J4P5W.mjs";
20
+ } from "./chunk-CH7B3T5E.mjs";
21
21
 
22
22
  // src/config.ts
23
23
  import {
@@ -3,15 +3,15 @@
3
3
  var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
4
4
 
5
5
 
6
- var _chunkUXLJZ4XQjs = require('./chunk-UXLJZ4XQ.js');
6
+ var _chunkU4MH5KFQjs = require('./chunk-U4MH5KFQ.js');
7
7
 
8
8
 
9
9
 
10
- var _chunk7F6KTNUPjs = require('./chunk-7F6KTNUP.js');
10
+ var _chunkWWOUGKO6js = require('./chunk-WWOUGKO6.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkU42S2GAFjs = require('./chunk-U42S2GAF.js');
14
+ var _chunkMALRKVEPjs = require('./chunk-MALRKVEP.js');
15
15
 
16
16
 
17
17
 
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
5713
5713
  var _path = require('path');
5714
5714
  var SEARCH_REF_TTL_MS = 15 * 6e4;
5715
5715
  function lastSearchPath() {
5716
- return _path.join.call(void 0, _chunkU42S2GAFjs.sdkCliStateDirPath.call(void 0, _chunkU42S2GAFjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5716
+ return _path.join.call(void 0, _chunkMALRKVEPjs.sdkCliStateDirPath.call(void 0, _chunkMALRKVEPjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5717
5717
  }
5718
5718
  function rememberSearchRef(searchRef) {
5719
5719
  try {
@@ -5873,7 +5873,7 @@ var OPTIONAL_COLUMNS = [
5873
5873
  ];
5874
5874
  function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5875
5875
  if (result.results.length === 0)
5876
- return _chunk7F6KTNUPjs.renderCommandEnvelopeText.call(void 0, result);
5876
+ return _chunkWWOUGKO6js.renderCommandEnvelopeText.call(void 0, result);
5877
5877
  const rows = result.results.map((item) => searchRow(item, summaryWidth));
5878
5878
  const kinds = new Set(rows.map((row) => row.kind));
5879
5879
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -5898,7 +5898,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5898
5898
  actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
5899
5899
  };
5900
5900
  const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
5901
- ${_chunk7F6KTNUPjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5901
+ ${_chunkWWOUGKO6js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5902
5902
  const notes = rows.flatMap(
5903
5903
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
5904
5904
  );
@@ -5983,7 +5983,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
5983
5983
  console.error("--summary-width must be an integer of at least 2.");
5984
5984
  return 1;
5985
5985
  }
5986
- const { search_ref: searchRef, ...result } = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().search({
5986
+ const { search_ref: searchRef, ...result } = await new (0, _chunkU4MH5KFQjs.DeeplineClient)().search({
5987
5987
  query,
5988
5988
  types,
5989
5989
  exclude,
@@ -5997,7 +5997,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
5997
5997
  });
5998
5998
  if (searchRef) rememberSearchRef(searchRef);
5999
5999
  pointAtDescribe(result);
6000
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, result, {
6000
+ _chunkWWOUGKO6js.printCommandEnvelope.call(void 0, result, {
6001
6001
  json: options.json === true,
6002
6002
  text: renderSearchResults(result, summaryWidth)
6003
6003
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-VYO6TLWN.mjs";
3
+ } from "./chunk-MTI24NKI.mjs";
4
4
  import {
5
5
  DEFAULT_SKILL_AGENTS,
6
6
  KNOWN_SKILL_AGENTS,
@@ -17,13 +17,13 @@ import {
17
17
  sdkCliStateDirPath,
18
18
  skillsAgentPathSegment,
19
19
  writeSdkSkillsLocalVersion
20
- } from "./chunk-S5FCTT3E.mjs";
20
+ } from "./chunk-MWL44NXV.mjs";
21
21
  import {
22
22
  DeeplineError
23
23
  } from "./chunk-E4IXDAZI.mjs";
24
24
  import {
25
25
  SDK_RELEASE
26
- } from "./chunk-XC3J4P5W.mjs";
26
+ } from "./chunk-CH7B3T5E.mjs";
27
27
 
28
28
  // src/compat.ts
29
29
  import { randomUUID } from "crypto";
@@ -1,19 +1,19 @@
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 _chunkXN25EAP6js = require('./chunk-XN25EAP6.js');
4
+ var _chunkYTWDMQLCjs = require('./chunk-YTWDMQLC.js');
5
5
 
6
6
 
7
- var _chunkJ6FKYOFBjs = require('./chunk-J6FKYOFB.js');
7
+ var _chunk4GJT6BAHjs = require('./chunk-4GJT6BAH.js');
8
8
 
9
9
 
10
- var _chunkZYUKNQO4js = require('./chunk-ZYUKNQO4.js');
10
+ var _chunk7SUNA75Fjs = require('./chunk-7SUNA75F.js');
11
11
 
12
12
 
13
- var _chunk7F6KTNUPjs = require('./chunk-7F6KTNUP.js');
13
+ var _chunkWWOUGKO6js = require('./chunk-WWOUGKO6.js');
14
14
 
15
15
 
16
- var _chunkU42S2GAFjs = require('./chunk-U42S2GAF.js');
16
+ var _chunkMALRKVEPjs = require('./chunk-MALRKVEP.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkZYUKNQO4js.resolveShellSpawn.call(void 0,
498
+ const plan = _chunk7SUNA75Fjs.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunkXN25EAP6js.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkXN25EAP6js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunkYTWDMQLCjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkYTWDMQLCjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkU42S2GAFjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkMALRKVEPjs.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkZYUKNQO4js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunk7SUNA75Fjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkU42S2GAFjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkMALRKVEPjs.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunkJ6FKYOFBjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunk4GJT6BAHjs.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkWWOUGKO6js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
1284
+ _chunkWWOUGKO6js.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkWWOUGKO6js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
1327
+ _chunkWWOUGKO6js.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-VYO6TLWN.mjs";
4
+ } from "./chunk-MTI24NKI.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-S5FCTT3E.mjs";
7
+ } from "./chunk-MWL44NXV.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-LJ5747UC.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-NUET45RU.mjs";
6
+ } from "./chunk-3UGHZGXU.mjs";
7
7
  import {
8
8
  printCommandEnvelope,
9
9
  renderCommandEnvelopeText
10
- } from "./chunk-VYO6TLWN.mjs";
10
+ } from "./chunk-MTI24NKI.mjs";
11
11
  import {
12
12
  resolveConfig,
13
13
  sdkCliStateDirPath
14
- } from "./chunk-S5FCTT3E.mjs";
14
+ } from "./chunk-MWL44NXV.mjs";
15
15
  import {
16
16
  __commonJS,
17
17
  __toESM
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk53DTOGNJjs = require('./chunk-53DTOGNJ.js');
3
+ var _chunkXIZCVFTOjs = require('./chunk-XIZCVFTO.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkZYUKNQO4js = require('./chunk-ZYUKNQO4.js');
8
+ var _chunk7SUNA75Fjs = require('./chunk-7SUNA75F.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") _chunkZYUKNQO4js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
18
- const compatibility = await _chunk53DTOGNJjs.traceCliSpan.call(void 0,
17
+ if (maintenancePolicy !== "off") _chunk7SUNA75Fjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
18
+ const compatibility = await _chunkXIZCVFTOjs.traceCliSpan.call(void 0,
19
19
  "cli.sdk_compatibility",
20
20
  { baseUrl, command: "plays run" },
21
- () => _chunkZYUKNQO4js.checkSdkCompatibility.call(void 0, baseUrl, {
21
+ () => _chunk7SUNA75Fjs.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
- _chunkZYUKNQO4js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
27
+ _chunk7SUNA75Fjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
28
28
  quietAdvisory: true
29
29
  });
30
30
  }
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
28
28
 
29
29
 
30
30
 
31
- var _chunkU42S2GAFjs = require('./chunk-U42S2GAF.js');
31
+ var _chunkMALRKVEPjs = require('./chunk-MALRKVEP.js');
32
32
 
33
33
 
34
34
  var _chunkNPBJI7REjs = require('./chunk-NPBJI7RE.js');
@@ -647,7 +647,7 @@ var ToolCalls = class {
647
647
  idempotencyKey,
648
648
  onResponse: (response2) => {
649
649
  lastResponse = null;
650
- atomicToolsSupported = response2.headers.get(_chunkU42S2GAFjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
650
+ atomicToolsSupported = response2.headers.get(_chunkMALRKVEPjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
651
651
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
652
652
  if (_optionalChain([options, 'optionalAccess', _29 => _29.onServerTiming])) {
653
653
  try {
@@ -997,8 +997,8 @@ function runtimeSelectionHeaders(runtime, env) {
997
997
  }
998
998
  const receivers = _optionalChain([env, 'access', _51 => _51.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]);
999
999
  return {
1000
- [_chunkU42S2GAFjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1001
- ...receivers ? { [_chunkU42S2GAFjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1000
+ [_chunkMALRKVEPjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1001
+ ...receivers ? { [_chunkMALRKVEPjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1002
1002
  };
1003
1003
  }
1004
1004
  function normalizeTestPolicyOverrides(value, source) {
@@ -1069,7 +1069,7 @@ var PlayClient = class {
1069
1069
  return _chunk2H4EY7KHjs.startPlayRun.call(void 0,
1070
1070
  this.http,
1071
1071
  resolved.request,
1072
- _optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkU42S2GAFjs.SDK_API_MAJOR) } : headers,
1072
+ _optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkMALRKVEPjs.SDK_API_MAJOR) } : headers,
1073
1073
  options
1074
1074
  );
1075
1075
  }
@@ -1135,9 +1135,9 @@ var PlayClient = class {
1135
1135
  }
1136
1136
  };
1137
1137
  function createPlayClient(options) {
1138
- const config = _chunkU42S2GAFjs.resolveConfig.call(void 0, options);
1138
+ const config = _chunkMALRKVEPjs.resolveConfig.call(void 0, options);
1139
1139
  return new PlayClient(
1140
- new (0, _chunkU42S2GAFjs.HttpClient)(config),
1140
+ new (0, _chunkMALRKVEPjs.HttpClient)(config),
1141
1141
  _nullishCoalesce(config.environment, () => ( process.env))
1142
1142
  );
1143
1143
  }
@@ -3151,7 +3151,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3151
3151
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3152
3152
  );
3153
3153
  }
3154
- return { [_chunkU42S2GAFjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3154
+ return { [_chunkMALRKVEPjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3155
3155
  }
3156
3156
  function sleep(ms) {
3157
3157
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -3389,9 +3389,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
3389
3389
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3390
3390
  */
3391
3391
  constructor(options) {
3392
- this.config = _chunkU42S2GAFjs.resolveConfig.call(void 0, options);
3392
+ this.config = _chunkMALRKVEPjs.resolveConfig.call(void 0, options);
3393
3393
  this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
3394
- this.http = new (0, _chunkU42S2GAFjs.HttpClient)(this.config);
3394
+ this.http = new (0, _chunkMALRKVEPjs.HttpClient)(this.config);
3395
3395
  this.playClient = new PlayClient(this.http, this.environment);
3396
3396
  this.toolCalls = new ToolCalls(
3397
3397
  this.http,