deepline 0.3.370 → 0.3.372

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 (120) hide show
  1. package/README.md +1 -1
  2. package/dist/bundling-sources/sdk/src/client.ts +8 -8
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -7
  4. package/dist/bundling-sources/sdk/src/runs/overview.ts +7 -7
  5. package/dist/bundling-sources/sdk/src/tool-output.ts +5 -1
  6. package/dist/bundling-sources/sdk/src/types.ts +2 -2
  7. package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -5
  8. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +18 -18
  9. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -2
  11. package/dist/bundling-sources/shared_libs/play-runtime/dataset-lifecycle-log.ts +1 -1
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +1 -1
  13. package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +34 -9
  14. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +15 -3
  15. package/dist/cli/auth-4SXMV3CD.js +33 -0
  16. package/dist/cli/{auth-RIH4S7NC.mjs → auth-ODSACXLF.mjs} +4 -4
  17. package/dist/cli/{billing-Q65H5GJM.js → billing-4ERXY2DZ.js} +148 -148
  18. package/dist/cli/{billing-ERNGN6WK.mjs → billing-OPIOZLAN.mjs} +79 -79
  19. package/dist/cli/{chunk-MX53GIOB.js → chunk-2JRRXXTA.js} +2 -2
  20. package/dist/cli/{chunk-H4IQJRFC.mjs → chunk-2RC5JQ3C.mjs} +9 -9
  21. package/dist/cli/{chunk-IDBLJSLL.mjs → chunk-3CTB7V5F.mjs} +5 -5
  22. package/dist/cli/{chunk-Z6B4UPM4.mjs → chunk-3GK3SH3G.mjs} +2 -2
  23. package/dist/cli/{chunk-RLXMRC6P.mjs → chunk-46JCJ7FT.mjs} +49 -96
  24. package/dist/cli/{chunk-YQMUTC2H.mjs → chunk-4LIUZ4QR.mjs} +11 -11
  25. package/dist/cli/{chunk-BGXG3GEI.mjs → chunk-5HYD3GMS.mjs} +5 -5
  26. package/dist/cli/{chunk-DFJDVQMH.js → chunk-6MDAGRZP.js} +2 -2
  27. package/dist/cli/{chunk-NHB3UWTZ.js → chunk-AQFA7HMN.js} +17 -17
  28. package/dist/cli/{chunk-LNEBKWXM.mjs → chunk-BFLPCGOR.mjs} +1 -1
  29. package/dist/cli/{chunk-5DUTNG37.mjs → chunk-BVUGPOU3.mjs} +10 -10
  30. package/dist/cli/{chunk-A6DJC2RC.js → chunk-D6O3NJHX.js} +68 -68
  31. package/dist/cli/{chunk-666HPUIZ.js → chunk-DM5QUZJR.js} +1 -6
  32. package/dist/cli/{chunk-HHH4MPFY.mjs → chunk-DONL233W.mjs} +6 -6
  33. package/dist/cli/{chunk-NXDRDJ4K.js → chunk-E5UD3JDQ.js} +3 -1
  34. package/dist/cli/{chunk-XTKVXHGD.js → chunk-EFJL5FCU.js} +17 -17
  35. package/dist/cli/{chunk-LJWOPNJJ.mjs → chunk-FGHRRJ3D.mjs} +1 -1
  36. package/dist/cli/{chunk-WQZ22EQU.js → chunk-GZQKUFM5.js} +26 -26
  37. package/dist/cli/{chunk-Y2B56VN7.js → chunk-IUWPC5K6.js} +53 -53
  38. package/dist/cli/{chunk-NEY2M4EZ.mjs → chunk-JAERLCMH.mjs} +1 -6
  39. package/dist/cli/{chunk-MIMASXO4.mjs → chunk-JB6ERQUV.mjs} +3 -1
  40. package/dist/cli/{chunk-CTMA3C3N.js → chunk-JSK6GUY6.js} +49 -96
  41. package/dist/cli/{chunk-T64NZ2A7.mjs → chunk-KC2YOJTU.mjs} +46 -47
  42. package/dist/cli/{chunk-GGRVNAOH.mjs → chunk-MIMV5LTU.mjs} +3 -3
  43. package/dist/cli/{chunk-SFI7U6CA.js → chunk-ML2ZY7YD.js} +4 -4
  44. package/dist/cli/{chunk-A4OX52RV.js → chunk-N5TPMNTT.js} +10 -10
  45. package/dist/cli/{chunk-YEEESF2T.js → chunk-RJ7JJMQO.js} +419 -413
  46. package/dist/cli/{chunk-4Y5UDYQK.js → chunk-RUYZAREB.js} +17 -17
  47. package/dist/cli/{chunk-BKHNCIQD.mjs → chunk-U3W7E5WT.mjs} +193 -187
  48. package/dist/cli/{chunk-MKFHZDBO.js → chunk-VVFH745L.js} +8 -8
  49. package/dist/cli/{chunk-R7AAYFDQ.js → chunk-WJWO74MM.js} +102 -103
  50. package/dist/cli/{chunk-A5RFERJQ.mjs → chunk-XSPAI6MF.mjs} +2 -2
  51. package/dist/cli/{client-QXOERIFI.mjs → client-KF2J754U.mjs} +3 -3
  52. package/dist/cli/client-UUNLXOHF.js +20 -0
  53. package/dist/cli/command-docs.js +2 -2
  54. package/dist/cli/command-docs.mjs +1 -1
  55. package/dist/cli/{csv-ZKIUSDIV.js → csv-UJ3M7NFP.js} +12 -12
  56. package/dist/cli/{csv-V7UKQ7AC.mjs → csv-UL3MCD5D.mjs} +3 -3
  57. package/dist/cli/{db-GWKRVHKS.js → db-444XYOTV.js} +42 -43
  58. package/dist/cli/{db-QQ4BYMPY.mjs → db-SIOWA63T.mjs} +17 -18
  59. package/dist/cli/{describe-XMWXEFMS.mjs → describe-GI5GHAKO.mjs} +12 -12
  60. package/dist/cli/{describe-3AJI2BOS.js → describe-RRBESS3S.js} +28 -28
  61. package/dist/cli/{executions-QV7UE5YG.mjs → executions-4YDP6BXI.mjs} +4 -4
  62. package/dist/cli/{executions-2IMCCV34.js → executions-ERXZUOL5.js} +6 -6
  63. package/dist/cli/{feedback-7SSJ7VPF.js → feedback-3M7D7DZQ.js} +12 -12
  64. package/dist/cli/{feedback-K6WNXZDB.mjs → feedback-CPWQL5LU.mjs} +8 -8
  65. package/dist/cli/git-ITSCNUVB.js +23 -0
  66. package/dist/cli/{git-UOE2K2XQ.mjs → git-XN6C3TJZ.mjs} +4 -4
  67. package/dist/cli/index.js +98 -109
  68. package/dist/cli/index.mjs +46 -57
  69. package/dist/cli/{legacy-noops-GC43OSXL.js → legacy-noops-5XDGOFWH.js} +9 -9
  70. package/dist/cli/{legacy-noops-SOYPIA2X.mjs → legacy-noops-KXQ6TFFL.mjs} +6 -6
  71. package/dist/cli/{monitors-FLCGMXVH.mjs → monitors-33IU5JR6.mjs} +59 -59
  72. package/dist/cli/{monitors-AXANB6WK.js → monitors-KH22PDOC.js} +140 -140
  73. package/dist/cli/{org-Q7EDNZMN.mjs → org-MHYMWUEP.mjs} +28 -27
  74. package/dist/cli/{org-MXD4BTQI.js → org-X4NSLQG5.js} +88 -87
  75. package/dist/cli/play-4QRPOBWW.js +155 -0
  76. package/dist/cli/{play-TZROCF7E.mjs → play-LCZKHKW2.mjs} +10 -8
  77. package/dist/cli/{providers-LOS4MHAG.js → providers-J6LWCF5R.js} +10 -10
  78. package/dist/cli/{providers-JEY4FTWG.mjs → providers-L5FJTSEA.mjs} +7 -7
  79. package/dist/cli/{quickstart-WO5KVVER.mjs → quickstart-NE3BTWGL.mjs} +4 -4
  80. package/dist/cli/{quickstart-27UQGHEH.js → quickstart-OOPFA4MX.js} +6 -6
  81. package/dist/cli/{search-LZHWXC2C.mjs → search-DBXOEOIE.mjs} +5 -5
  82. package/dist/cli/search-UGQDBP76.js +26 -0
  83. package/dist/cli/{secrets-AVJGZABR.mjs → secrets-U2MLWZH2.mjs} +5 -5
  84. package/dist/cli/{secrets-PE7P4L7N.js → secrets-WPMU7UBD.js} +14 -14
  85. package/dist/cli/{sessions-ZDSZTYZV.mjs → sessions-WYNC4AUE.mjs} +4 -4
  86. package/dist/cli/{sessions-I6UDBN7M.js → sessions-YYZ3UJDS.js} +5 -5
  87. package/dist/cli/{settings-SPWH3FET.mjs → settings-FQZSHFC6.mjs} +10 -10
  88. package/dist/cli/{settings-3SLMJHJ2.js → settings-WQDFX3X6.js} +77 -77
  89. package/dist/cli/{setup-R4LUWQE4.js → setup-DKYVNDTM.js} +50 -50
  90. package/dist/cli/{setup-Q3CJ4T2Q.mjs → setup-JKYJT35S.mjs} +15 -15
  91. package/dist/cli/skills-VBQMXDAX.js +28 -0
  92. package/dist/cli/{skills-FGXH432G.mjs → skills-VHVCJJJY.mjs} +4 -4
  93. package/dist/cli/tools-ACEJZMJD.js +40 -0
  94. package/dist/cli/{tools-O7C6PFF2.mjs → tools-E23PU7KM.mjs} +8 -8
  95. package/dist/cli/{update-PPCQV3CD.mjs → update-4A4VU6CW.mjs} +6 -6
  96. package/dist/cli/update-V5KMYHVE.js +28 -0
  97. package/dist/cli/{workflow-Z2KYQ2JE.mjs → workflow-2ZR2ECTG.mjs} +7 -7
  98. package/dist/cli/{workflow-ALKU4ZFD.js → workflow-WB2USWAA.js} +17 -17
  99. package/dist/{client-CjHv4K6D.d.mts → client-Cw0e2Uec.d.mts} +8 -7
  100. package/dist/{client-rTuhNN-x.d.ts → client-CwdiawoG.d.ts} +8 -7
  101. package/dist/index.d.mts +2 -2
  102. package/dist/index.d.ts +2 -2
  103. package/dist/index.js +15 -15
  104. package/dist/index.mjs +4 -4
  105. package/dist/install-integrity.json +82 -82
  106. package/dist/plays/run-request.d.mts +1 -1
  107. package/dist/plays/run-request.d.ts +1 -1
  108. package/dist/release.d.mts +1 -5
  109. package/dist/release.d.ts +1 -5
  110. package/dist/release.js +2 -2
  111. package/dist/release.mjs +1 -1
  112. package/package.json +1 -1
  113. package/dist/cli/auth-DD3PVIRQ.js +0 -33
  114. package/dist/cli/client-DNAFHKWV.js +0 -20
  115. package/dist/cli/git-EBSF3254.js +0 -23
  116. package/dist/cli/play-YWQXVOBT.js +0 -153
  117. package/dist/cli/search-OQ3OEFUA.js +0 -26
  118. package/dist/cli/skills-IDXBBOUW.js +0 -28
  119. package/dist/cli/tools-WHLD4Y4O.js +0 -40
  120. package/dist/cli/update-K6HE3XKO.js +0 -28
@@ -1,10 +1,10 @@
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 _chunkMKFHZDBOjs = require('./chunk-MKFHZDBO.js');
4
+ var _chunkVVFH745Ljs = require('./chunk-VVFH745L.js');
5
5
 
6
6
 
7
- var _chunkSFI7U6CAjs = require('./chunk-SFI7U6CA.js');
7
+ var _chunkML2ZY7YDjs = require('./chunk-ML2ZY7YD.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunkSFI7U6CAjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkML2ZY7YDjs.agentSessionIdFromEnvironment.call(void 0, );
143
143
  const cwd = process.cwd();
144
144
  return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
145
145
  (candidate) => sessionStartedInDirectory(candidate, cwd)
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
448
448
  return { encodedContent: encoded, needsChunking: true };
449
449
  }
450
450
  async function uploadPayload(path, payload) {
451
- const { http } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkVVFH745Ljs.getAuthedHttpClient.call(void 0, );
452
452
  return await http.post(path, payload);
453
453
  }
454
454
  async function uploadChunkedSessions(sessions, options) {
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
481
481
  ...options.rating ? { rating: options.rating } : {}
482
482
  });
483
483
  const sessionIds = sessions.map((session) => session.sessionId);
484
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
484
+ _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
485
485
  {
486
486
  ...response,
487
487
  ok: true,
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
513
513
  filename: _path.basename.call(void 0, filePath),
514
514
  ...rating ? { rating } : {}
515
515
  });
516
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
516
+ _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
517
517
  {
518
518
  ...response2,
519
519
  ok: true,
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
563
563
  ...rating ? { rating } : {}
564
564
  });
565
565
  const sessionIds = built.map((session) => session.sessionId);
566
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
566
+ _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
567
567
  {
568
568
  ...response,
569
569
  ok: true,
@@ -671,7 +671,7 @@ ${refreshMeta}
671
671
  </body>
672
672
  </html>`;
673
673
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
674
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
674
+ _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,
@@ -702,8 +702,8 @@ Notes:
702
702
  or file to Deepline. render writes a local HTML viewer.
703
703
 
704
704
  Examples:
705
- deepline sessions send --current-session --json
706
- deepline sessions send --agent codex --current-session --json
705
+ deepline sessions send --current-session
706
+ deepline sessions send --agent codex --current-session
707
707
  deepline sessions send --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca
708
708
  deepline sessions render --current-session --output session.html
709
709
  `
@@ -715,11 +715,11 @@ function registerSessionSendRenderCommands(parent, familyName) {
715
715
  "after",
716
716
  `
717
717
  Examples:
718
- deepline ${familyName} send --current-session --json
719
- deepline ${familyName} send --agent codex --current-session --json
718
+ deepline ${familyName} send --current-session
719
+ deepline ${familyName} send --agent codex --current-session
720
720
  deepline ${familyName} send --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca --label "pilot run"
721
- deepline ${familyName} send --current-session --rating poor --json # tag the session as one that went poorly
722
- deepline ${familyName} send --file ./debug.log --json
721
+ deepline ${familyName} send --current-session --rating poor # tag the session as one that went poorly
722
+ deepline ${familyName} send --file ./debug.log
723
723
  `
724
724
  ).option(
725
725
  "--session-id <uuid>",
@@ -741,7 +741,7 @@ Examples:
741
741
  ).option("--file <path>", "Upload a raw local file instead of a session").option(
742
742
  "--rating <good|poor|neutral>",
743
743
  "Tag the upload by outcome, not tone, so Deepline can filter sessions: good = the user's goal was met without product problems; poor = the goal was missed, or a product failure, bug, or avoidable friction (including a substantial workaround) got in the way; neutral = partly met or unclear."
744
- ).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleSessionsSend);
744
+ ).option("--json", "Emit JSON output").action(handleSessionsSend);
745
745
  parent.command("render").description("Render local session transcript(s) to an HTML viewer.").addHelpText(
746
746
  "after",
747
747
  `
@@ -749,7 +749,7 @@ Examples:
749
749
  deepline ${familyName} render --current-session
750
750
  deepline ${familyName} render --agent codex --current-session
751
751
  deepline ${familyName} render --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca --output session.html
752
- deepline ${familyName} render --current-session --auto-refresh 5 --json
752
+ deepline ${familyName} render --current-session --auto-refresh 5
753
753
  `
754
754
  ).option(
755
755
  "--session-id <uuid>",
@@ -768,7 +768,7 @@ Examples:
768
768
  ).option(
769
769
  "--current-session",
770
770
  "Use the calling agent's session, else the newest in this directory"
771
- ).option("--auto-refresh <seconds>", "Add a browser auto-refresh interval").option("-o, --output <path>", "Output HTML path").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleSessionsRender);
771
+ ).option("--auto-refresh <seconds>", "Add a browser auto-refresh interval").option("-o, --output <path>", "Output HTML path").option("--json", "Emit JSON output").action(handleSessionsRender);
772
772
  }
773
773
 
774
774
 
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-NXGCO4JB.mjs";
15
15
  import {
16
16
  SDK_RELEASE
17
- } from "./chunk-NEY2M4EZ.mjs";
17
+ } from "./chunk-JAERLCMH.mjs";
18
18
 
19
19
  // src/errors.ts
20
20
  var CustomerDbQueryOutcomeUnknownError = class extends DeeplineError {
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkMKFHZDBOjs = require('./chunk-MKFHZDBO.js');
5
+ var _chunkVVFH745Ljs = require('./chunk-VVFH745L.js');
6
6
 
7
7
 
8
- var _chunkSFI7U6CAjs = require('./chunk-SFI7U6CA.js');
8
+ var _chunkML2ZY7YDjs = require('./chunk-ML2ZY7YD.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 } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkVVFH745Ljs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
39
+ _chunkVVFH745Ljs.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 } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkVVFH745Ljs.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
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
139
+ _chunkVVFH745Ljs.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 } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkVVFH745Ljs.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
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
153
+ _chunkVVFH745Ljs.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 } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkVVFH745Ljs.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 } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkVVFH745Ljs.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
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
200
+ _chunkVVFH745Ljs.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 } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkVVFH745Ljs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
227
+ _chunkVVFH745Ljs.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 } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkVVFH745Ljs.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
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
254
+ _chunkVVFH745Ljs.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 } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkVVFH745Ljs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
269
+ _chunkVVFH745Ljs.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 = _chunkSFI7U6CAjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkML2ZY7YDjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkMKFHZDBOjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkVVFH745Ljs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkVVFH745Ljs.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 } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkVVFH745Ljs.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
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
322
+ _chunkVVFH745Ljs.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 } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkVVFH745Ljs.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
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
371
+ _chunkVVFH745Ljs.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 } = _chunkMKFHZDBOjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkVVFH745Ljs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
392
+ _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkMKFHZDBOjs = require('./chunk-MKFHZDBO.js');
5
+ var _chunkVVFH745Ljs = require('./chunk-VVFH745L.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkMKFHZDBOjs = require('./chunk-MKFHZDBO.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkSFI7U6CAjs = require('./chunk-SFI7U6CA.js');
28
+ var _chunkML2ZY7YDjs = require('./chunk-ML2ZY7YD.js');
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
 
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
52
52
  return `Service notice: ${banner.message}`;
53
53
  }
54
54
  function envFilePath(baseUrl) {
55
- return _chunkSFI7U6CAjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunkML2ZY7YDjs.hostEnvFilePath.call(void 0, baseUrl);
56
56
  }
57
57
  function normalizeAuthScope(value) {
58
58
  if (!value || value === "global") return "global";
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
65
65
  }
66
66
  function pendingClaimPath(baseUrl, scope) {
67
67
  if (scope === "folder") {
68
- const target = _chunkSFI7U6CAjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunkML2ZY7YDjs.resolveProjectPinTarget.call(void 0, );
69
69
  if (!target.ok) {
70
70
  throw new Error(
71
71
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
75
75
  }
76
76
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
77
77
  }
78
- return `${_chunkSFI7U6CAjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunkML2ZY7YDjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkSFI7U6CAjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunkML2ZY7YDjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
82
82
  }
83
83
  function savePendingClaim(baseUrl, claim) {
84
84
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
180
180
  function shouldWaitForRegisterClaim(mode) {
181
181
  if (mode === "yes") return true;
182
182
  if (mode === "no") return false;
183
- return _chunkSFI7U6CAjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunkML2ZY7YDjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkSFI7U6CAjs.HOST_URL_ENV] ? { [_chunkSFI7U6CAjs.HOST_URL_ENV]: values[_chunkSFI7U6CAjs.HOST_URL_ENV] } : {},
188
- ...values[_chunkSFI7U6CAjs.API_KEY_ENV] ? { [_chunkSFI7U6CAjs.API_KEY_ENV]: values[_chunkSFI7U6CAjs.API_KEY_ENV] } : {},
189
- ...values[_chunkSFI7U6CAjs.ACTIVE_ORG_ID_ENV] ? { [_chunkSFI7U6CAjs.ACTIVE_ORG_ID_ENV]: values[_chunkSFI7U6CAjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkSFI7U6CAjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkSFI7U6CAjs.ACTIVE_ORG_NAME_ENV]: values[_chunkSFI7U6CAjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunkML2ZY7YDjs.HOST_URL_ENV] ? { [_chunkML2ZY7YDjs.HOST_URL_ENV]: values[_chunkML2ZY7YDjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunkML2ZY7YDjs.API_KEY_ENV] ? { [_chunkML2ZY7YDjs.API_KEY_ENV]: values[_chunkML2ZY7YDjs.API_KEY_ENV] } : {},
189
+ ...values[_chunkML2ZY7YDjs.ACTIVE_ORG_ID_ENV] ? { [_chunkML2ZY7YDjs.ACTIVE_ORG_ID_ENV]: values[_chunkML2ZY7YDjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunkML2ZY7YDjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkML2ZY7YDjs.ACTIVE_ORG_NAME_ENV]: values[_chunkML2ZY7YDjs.ACTIVE_ORG_NAME_ENV] } : {},
191
191
  // An explicit empty list must reach the store: it clears a stale line.
192
- ...Object.prototype.hasOwnProperty.call(values, _chunkSFI7U6CAjs.FEATURES_ENV) ? { [_chunkSFI7U6CAjs.FEATURES_ENV]: values[_chunkSFI7U6CAjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkML2ZY7YDjs.FEATURES_ENV) ? { [_chunkML2ZY7YDjs.FEATURES_ENV]: values[_chunkML2ZY7YDjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkSFI7U6CAjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunkML2ZY7YDjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkSFI7U6CAjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunkML2ZY7YDjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
198
198
  }
199
199
  }
200
200
  function activeOrgEnvValues(data) {
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
202
202
  if (!orgId) return {};
203
203
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
204
204
  return {
205
- [_chunkSFI7U6CAjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkSFI7U6CAjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkSFI7U6CAjs.featureEnvValues.call(void 0, data)
205
+ [_chunkML2ZY7YDjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunkML2ZY7YDjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunkML2ZY7YDjs.featureEnvValues.call(void 0, data)
208
208
  };
209
209
  }
210
210
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
211
211
  const headers = {
212
212
  "Content-Type": "application/json",
213
- "User-Agent": `deepline-ts-sdk/${_chunkSFI7U6CAjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunkML2ZY7YDjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkSFI7U6CAjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkSFI7U6CAjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkSFI7U6CAjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkSFI7U6CAjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunkML2ZY7YDjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunkML2ZY7YDjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunkML2ZY7YDjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunkML2ZY7YDjs.SDK_API_CONTRACT
220
220
  };
221
221
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
222
222
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
254
254
  throw lastError instanceof Error ? lastError : new Error(String(lastError));
255
255
  }
256
256
  async function reportSetupCompleted(input) {
257
- const apiKey = input.authScope === "folder" ? _chunkSFI7U6CAjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkSFI7U6CAjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
257
+ const apiKey = input.authScope === "folder" ? _chunkML2ZY7YDjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkML2ZY7YDjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
258
258
  if (!apiKey) return;
259
259
  try {
260
260
  await httpJson(
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
351
351
  }
352
352
  }
353
353
  async function handleRegister(args) {
354
- const baseUrl = _chunkSFI7U6CAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
354
+ const baseUrl = _chunkML2ZY7YDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
355
355
  let orgName = "";
356
356
  let orgId = "";
357
357
  let agentName = "";
@@ -406,19 +406,19 @@ async function handleRegister(args) {
406
406
  });
407
407
  saveEnvValues(
408
408
  {
409
- [_chunkSFI7U6CAjs.HOST_URL_ENV]: baseUrl
409
+ [_chunkML2ZY7YDjs.HOST_URL_ENV]: baseUrl
410
410
  },
411
411
  baseUrl,
412
412
  authScope
413
413
  );
414
414
  }
415
415
  if (claimUrl) {
416
- const shouldOpen = waitMode !== "no" && _chunkSFI7U6CAjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
416
+ const shouldOpen = waitMode !== "no" && _chunkML2ZY7YDjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
417
417
  console.log(
418
418
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
419
419
  );
420
420
  console.log(` ${claimUrl}`);
421
- if (shouldOpen) _chunkMKFHZDBOjs.openInBrowser.call(void 0, claimUrl);
421
+ if (shouldOpen) _chunkVVFH745Ljs.openInBrowser.call(void 0, claimUrl);
422
422
  }
423
423
  if (data.cli_message) {
424
424
  console.log(String(data.cli_message));
@@ -461,8 +461,8 @@ async function handleRegister(args) {
461
461
  if (apiKey) {
462
462
  saveEnvValues(
463
463
  {
464
- [_chunkSFI7U6CAjs.HOST_URL_ENV]: baseUrl,
465
- [_chunkSFI7U6CAjs.API_KEY_ENV]: apiKey,
464
+ [_chunkML2ZY7YDjs.HOST_URL_ENV]: baseUrl,
465
+ [_chunkML2ZY7YDjs.API_KEY_ENV]: apiKey,
466
466
  ...activeOrgEnvValues(statusData)
467
467
  },
468
468
  baseUrl,
@@ -484,7 +484,7 @@ async function handleRegister(args) {
484
484
  }
485
485
  }
486
486
  async function handleWait(args) {
487
- const baseUrl = _chunkSFI7U6CAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
487
+ const baseUrl = _chunkML2ZY7YDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
488
488
  let timeoutSeconds = 300;
489
489
  let requestedScope;
490
490
  if (args.includes("--auth-scope")) {
@@ -508,7 +508,7 @@ async function handleWait(args) {
508
508
  const authScope = resumed.scope;
509
509
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
510
510
  if (!pendingClaim) {
511
- const scopedApiKey = authScope === "folder" ? _chunkSFI7U6CAjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkSFI7U6CAjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
511
+ const scopedApiKey = authScope === "folder" ? _chunkML2ZY7YDjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkML2ZY7YDjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
512
512
  if (scopedApiKey) {
513
513
  console.log("Already connected.");
514
514
  return EXIT_OK;
@@ -551,8 +551,8 @@ async function handleWait(args) {
551
551
  if (apiKey) {
552
552
  saveEnvValues(
553
553
  {
554
- [_chunkSFI7U6CAjs.HOST_URL_ENV]: baseUrl,
555
- [_chunkSFI7U6CAjs.API_KEY_ENV]: apiKey,
554
+ [_chunkML2ZY7YDjs.HOST_URL_ENV]: baseUrl,
555
+ [_chunkML2ZY7YDjs.API_KEY_ENV]: apiKey,
556
556
  ...activeOrgEnvValues(data)
557
557
  },
558
558
  baseUrl,
@@ -576,8 +576,8 @@ async function handleWait(args) {
576
576
  return EXIT_AUTH;
577
577
  }
578
578
  async function authStatusLine(timeoutMs = 3e3) {
579
- const baseUrl = _chunkSFI7U6CAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
- const apiKey = _chunkSFI7U6CAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
579
+ const baseUrl = _chunkML2ZY7YDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
+ const apiKey = _chunkML2ZY7YDjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
581
581
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
582
582
  try {
583
583
  const { status, data } = await httpJson(
@@ -600,9 +600,9 @@ async function authStatusLine(timeoutMs = 3e3) {
600
600
  }
601
601
  }
602
602
  async function handleStatus(args) {
603
- const baseUrl = _chunkSFI7U6CAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
603
+ const baseUrl = _chunkML2ZY7YDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
604
604
  const reveal = args.includes("--reveal");
605
- const jsonOutput = _chunkMKFHZDBOjs.argsWantJson.call(void 0, args);
605
+ const jsonOutput = _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
606
606
  const hasExplicitAuthScope = args.includes("--auth-scope");
607
607
  let authScope = null;
608
608
  if (hasExplicitAuthScope) {
@@ -642,14 +642,14 @@ async function handleStatus(args) {
642
642
  };
643
643
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
644
644
  }
645
- const apiKey = authScope === "folder" ? _chunkSFI7U6CAjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkSFI7U6CAjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkSFI7U6CAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
645
+ const apiKey = authScope === "folder" ? _chunkML2ZY7YDjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkML2ZY7YDjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkML2ZY7YDjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
646
646
  if (!apiKey) {
647
647
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
648
648
  baseUrl,
649
649
  _nullishCoalesce(authScope, () => ( void 0))
650
650
  );
651
651
  if (pendingClaim) {
652
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
652
+ _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
653
653
  {
654
654
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
655
655
  status: "pending",
@@ -670,7 +670,7 @@ async function handleStatus(args) {
670
670
  );
671
671
  return EXIT_OK;
672
672
  }
673
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
673
+ _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
674
674
  {
675
675
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
676
676
  status: "not connected",
@@ -703,7 +703,7 @@ async function handleStatus(args) {
703
703
  }
704
704
  );
705
705
  if (status === 401 || status === 403) {
706
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
706
+ _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
707
707
  {
708
708
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
709
709
  status: "unauthorized",
@@ -730,7 +730,7 @@ async function handleStatus(args) {
730
730
  console.error(`Auth status error (status ${status}).`);
731
731
  return EXIT_SERVER;
732
732
  }
733
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkSFI7U6CAjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
733
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkML2ZY7YDjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
734
734
  clearSatisfiedPendingClaim(
735
735
  baseUrl,
736
736
  resolvedAuthScope,
@@ -758,28 +758,28 @@ async function handleStatus(args) {
758
758
  if (apiKeyResp) {
759
759
  saveEnvValues(
760
760
  {
761
- [_chunkSFI7U6CAjs.HOST_URL_ENV]: baseUrl,
762
- [_chunkSFI7U6CAjs.API_KEY_ENV]: apiKeyResp,
761
+ [_chunkML2ZY7YDjs.HOST_URL_ENV]: baseUrl,
762
+ [_chunkML2ZY7YDjs.API_KEY_ENV]: apiKeyResp,
763
763
  ...activeOrgEnvValues(data)
764
764
  },
765
765
  baseUrl,
766
766
  resolvedAuthScope
767
767
  );
768
768
  if (resolvedAuthScope === "folder") {
769
- const target = _chunkSFI7U6CAjs.resolveProjectPinTarget.call(void 0, );
769
+ const target = _chunkML2ZY7YDjs.resolveProjectPinTarget.call(void 0, );
770
770
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
771
771
  } else {
772
772
  savedApiKeyPath = envFilePath(baseUrl);
773
773
  }
774
774
  }
775
- } else if (resolvedAuthScope === "folder" || _chunkSFI7U6CAjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
776
- saveEnvValues(_chunkSFI7U6CAjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
775
+ } else if (resolvedAuthScope === "folder" || _chunkML2ZY7YDjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
776
+ saveEnvValues(_chunkML2ZY7YDjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
777
777
  }
778
- _chunkMKFHZDBOjs.printCommandEnvelope.call(void 0,
778
+ _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
779
779
  {
780
780
  ...payload,
781
- ..._chunkSFI7U6CAjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
782
- command_context: _chunkSFI7U6CAjs.resolveCliCommandContext.call(void 0,
781
+ ..._chunkML2ZY7YDjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
782
+ command_context: _chunkML2ZY7YDjs.resolveCliCommandContext.call(void 0,
783
783
  { baseUrl, apiKey },
784
784
  resolvedAuthScope
785
785
  )
@@ -825,7 +825,7 @@ Common commands:
825
825
  deepline auth register
826
826
  deepline auth wait --timeout 300
827
827
  deepline auth status
828
- deepline auth status --json
828
+ deepline auth status
829
829
 
830
830
  Notes:
831
831
  Auth status shows the target host and active workspace without printing secrets.
@@ -909,12 +909,12 @@ Notes:
909
909
  Examples:
910
910
  deepline auth status
911
911
  deepline auth status --auth-scope folder
912
- deepline auth status --json
912
+ deepline auth status
913
913
  `
914
914
  ).option(
915
915
  "--reveal",
916
916
  "Persist the revealed API key back to the host auth file"
917
- ).option("--auth-scope <scope>", "Read only folder or global auth").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(async (options) => {
917
+ ).option("--auth-scope <scope>", "Read only folder or global auth").option("--json", "Emit JSON output").action(async (options) => {
918
918
  process.exitCode = await handleStatus([
919
919
  ...options.reveal ? ["--reveal"] : [],
920
920
  ...options.authScope ? ["--auth-scope", String(options.authScope)] : [],
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.370",
52
+ version: "0.3.372",
53
53
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
54
54
  packageCapabilities: {
55
55
  updatePreferences: 1
@@ -93,11 +93,6 @@ var SDK_RELEASE = {
93
93
  introducedIn: "0.3.91",
94
94
  reason: "deepline search was added in SDK CLI 0.3.91 as the one search across tools, monitors, and plays. On an older version run deepline tools search or deepline plays search, or update."
95
95
  },
96
- {
97
- command: "describe",
98
- introducedIn: "0.3.312",
99
- reason: "deepline describe was added in SDK CLI 0.3.312 as the one describe for tools, monitor types, and plays. On an older version run deepline tools describe or deepline plays describe, or update."
100
- },
101
96
  {
102
97
  command: "notifications",
103
98
  introducedIn: "0.2.40",
@@ -112,7 +112,9 @@ function tryConvertToList(payload, options) {
112
112
  return emptyMatch;
113
113
  }
114
114
  }
115
- for (const root of candidateRoots(payload)) {
115
+ const roots = candidateRoots(payload);
116
+ const v2Raw = roots.find((root) => root.path === "toolResponse.raw");
117
+ for (const root of v2Raw ? [v2Raw] : roots) {
116
118
  const candidate = findBestArrayCandidate(root.value, root.path ?? "");
117
119
  if (!candidate || candidate.rows.length === 0) continue;
118
120
  return {