deepline 0.3.466 → 0.3.468

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 (158) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +41 -2
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +17 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +325 -44
  5. package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +15 -0
  6. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +51 -6
  7. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +37 -1
  8. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +2 -1
  9. package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +22 -1
  10. package/dist/cli/{auth-HYIPYSKK.mjs → auth-CXQRTOBC.mjs} +5 -5
  11. package/dist/cli/auth-MDWIVGZQ.js +41 -0
  12. package/dist/cli/{billing-5S6SGBUP.mjs → billing-HDKO5VQI.mjs} +44 -6
  13. package/dist/cli/{billing-NG62QGPT.js → billing-JSIPTXM6.js} +115 -77
  14. package/dist/cli/{chunk-EOKUL6XS.js → chunk-2NE3LCEA.js} +5 -5
  15. package/dist/cli/{chunk-22BKA2QL.js → chunk-37Z2W7OS.js} +26 -26
  16. package/dist/cli/{chunk-7YDN6AEK.mjs → chunk-3RGWTKK3.mjs} +10 -0
  17. package/dist/cli/{chunk-LDEJ4NUP.js → chunk-54CKAYKK.js} +13 -13
  18. package/dist/cli/{chunk-RGRSUMN6.js → chunk-54SVGPMK.js} +5 -5
  19. package/dist/cli/{chunk-B7BNWOG6.js → chunk-5RXVB6UK.js} +3 -3
  20. package/dist/cli/{chunk-QMHBWFU5.mjs → chunk-6PN2RUXL.mjs} +1 -1
  21. package/dist/cli/{chunk-MTH7WIE3.js → chunk-747ZYPXB.js} +53 -53
  22. package/dist/cli/{chunk-UHAKSLL2.mjs → chunk-7PBIHKB4.mjs} +11 -1
  23. package/dist/cli/{chunk-R2SQN2CD.js → chunk-AXTZID4V.js} +6 -6
  24. package/dist/cli/{chunk-IEQPOBTK.mjs → chunk-CHD7NMZD.mjs} +1 -1
  25. package/dist/cli/{chunk-V27TVT7P.mjs → chunk-CXYMJSRQ.mjs} +1 -1
  26. package/dist/cli/{chunk-NJ6KQLMO.mjs → chunk-DDUCF63F.mjs} +11 -11
  27. package/dist/cli/{chunk-CMXFOZVG.js → chunk-DQHMXKDT.js} +258 -258
  28. package/dist/cli/{chunk-ZBWKWMSH.js → chunk-ECY6QP3M.js} +16 -16
  29. package/dist/cli/{chunk-H5MYPDO2.mjs → chunk-EOWMLNCV.mjs} +1 -1
  30. package/dist/cli/{chunk-YHPUJI7G.mjs → chunk-ERQJLYIS.mjs} +5 -5
  31. package/dist/cli/{chunk-A7MWUG5H.js → chunk-EXXXRDCC.js} +1 -1
  32. package/dist/cli/{chunk-5EUJKY3G.mjs → chunk-F3YSH2CY.mjs} +3 -3
  33. package/dist/cli/{chunk-7IWYO475.js → chunk-F52TY2QC.js} +21 -21
  34. package/dist/cli/{chunk-QZKSG7XZ.js → chunk-FLH4D33O.js} +36 -36
  35. package/dist/cli/{chunk-QWMXP2IP.mjs → chunk-FPFBYOR6.mjs} +2 -2
  36. package/dist/cli/{chunk-OGCAGZXO.mjs → chunk-FVYAEBGO.mjs} +23 -2
  37. package/dist/cli/{chunk-F6H74EFB.mjs → chunk-GCHTTVC7.mjs} +2 -2
  38. package/dist/cli/{chunk-HIMV32ZX.js → chunk-HNP5V5BN.js} +23 -2
  39. package/dist/cli/{chunk-PEUWKPY4.js → chunk-LQ2KVMOD.js} +4 -4
  40. package/dist/cli/{chunk-6CYRIFZ3.mjs → chunk-NOQRM7LV.mjs} +2 -2
  41. package/dist/cli/{chunk-JLZKF7EY.js → chunk-NPZBE64X.js} +11 -1
  42. package/dist/cli/{chunk-VSEKVRAP.mjs → chunk-NZQPALPW.mjs} +2 -2
  43. package/dist/cli/{chunk-NYNNNOJW.js → chunk-OAF5U6SN.js} +51 -51
  44. package/dist/cli/{chunk-46YQQOTC.mjs → chunk-PZZNEIE3.mjs} +5 -5
  45. package/dist/cli/{chunk-6R36QIG4.mjs → chunk-Q7NNU6KB.mjs} +4 -4
  46. package/dist/cli/{chunk-VVCMP45C.js → chunk-QI2LOENC.js} +3 -3
  47. package/dist/cli/{chunk-RCMT6AZ5.mjs → chunk-QKGHYF7A.mjs} +1 -1
  48. package/dist/cli/{chunk-OB5NON4G.js → chunk-QWJ3V3GI.js} +8 -8
  49. package/dist/cli/{chunk-4QJ63YHC.js → chunk-RSMFUWCP.js} +8 -8
  50. package/dist/cli/{chunk-WKOWXTDR.mjs → chunk-SFWU7IJJ.mjs} +2 -2
  51. package/dist/cli/{chunk-L3U44YVO.js → chunk-T5GRG37B.js} +5 -5
  52. package/dist/cli/{chunk-JLE5UYZV.mjs → chunk-TNOTKGZC.mjs} +2 -2
  53. package/dist/cli/{chunk-RSXOGXGX.mjs → chunk-TVDBGEVP.mjs} +1 -1
  54. package/dist/cli/{chunk-SWUSDFG2.js → chunk-U37BWQZH.js} +9 -9
  55. package/dist/cli/{chunk-7QITO7XO.mjs → chunk-UA42Q7R3.mjs} +4 -4
  56. package/dist/cli/{chunk-QTTYIPFY.mjs → chunk-UNLLMHY7.mjs} +1 -1
  57. package/dist/cli/{chunk-FWHRCZET.mjs → chunk-UU4GMU7A.mjs} +5 -5
  58. package/dist/cli/{chunk-6P4OYABU.js → chunk-V6OMS7E2.js} +6 -6
  59. package/dist/cli/{chunk-RRCVAVM7.js → chunk-VPCS5KOF.js} +2 -2
  60. package/dist/cli/{chunk-SQFBLBYC.mjs → chunk-WNS5YEZN.mjs} +2 -2
  61. package/dist/cli/{chunk-MUQAKLBP.mjs → chunk-X3RAGNNZ.mjs} +1 -1
  62. package/dist/cli/{chunk-W4XWGNW4.mjs → chunk-X4U763KU.mjs} +3 -3
  63. package/dist/cli/{chunk-I2TCWIW2.mjs → chunk-XSX6TJUA.mjs} +1 -1
  64. package/dist/cli/{chunk-HOFXQYRF.js → chunk-YD2KV7RT.js} +7 -7
  65. package/dist/cli/{chunk-NQH7E3F2.js → chunk-YI6TIURR.js} +3 -3
  66. package/dist/cli/{chunk-5BEKJUOK.js → chunk-ZA6UUGOZ.js} +2 -2
  67. package/dist/cli/{chunk-3DVJ2IPG.js → chunk-ZJRHPVJU.js} +183 -173
  68. package/dist/cli/command-docs.js +2 -2
  69. package/dist/cli/command-docs.mjs +1 -1
  70. package/dist/cli/{csv-AD2DLLLL.js → csv-EIXI4D7F.js} +13 -13
  71. package/dist/cli/{csv-ZGZX2IIP.mjs → csv-H2656YID.mjs} +4 -4
  72. package/dist/cli/{db-NBY4LHAY.js → db-7AQJE7CP.js} +27 -27
  73. package/dist/cli/{db-LUFEKPEK.mjs → db-CABNKWAS.mjs} +6 -6
  74. package/dist/cli/{describe-MLXMC47U.mjs → describe-5RUFO5ZR.mjs} +20 -20
  75. package/dist/cli/describe-ODBO2AMO.js +48 -0
  76. package/dist/cli/describe-core.d.mts +3 -3
  77. package/dist/cli/describe-core.d.ts +3 -3
  78. package/dist/cli/describe-core.js +4 -4
  79. package/dist/cli/describe-core.mjs +3 -3
  80. package/dist/cli/{executions-JKVWM3P4.mjs → executions-4GUJEBEC.mjs} +6 -6
  81. package/dist/cli/{executions-HDJMKNBR.js → executions-OHOBXCPD.js} +8 -8
  82. package/dist/cli/{feedback-VXMP7HDF.js → feedback-JIJWTK2H.js} +8 -8
  83. package/dist/cli/{feedback-7E5Z4ZO5.mjs → feedback-N3CSL3OV.mjs} +4 -4
  84. package/dist/cli/git-TWNEROIX.js +25 -0
  85. package/dist/cli/{git-UFMRAGMY.mjs → git-Z5DTMOAQ.mjs} +5 -5
  86. package/dist/cli/index.js +139 -139
  87. package/dist/cli/index.mjs +41 -41
  88. package/dist/cli/{legacy-noops-BDULCVGD.mjs → legacy-noops-XTLI64KX.mjs} +5 -5
  89. package/dist/cli/{legacy-noops-4QKREY4K.js → legacy-noops-ZEJRXMTS.js} +8 -8
  90. package/dist/cli/{monitors-S6TDJYCK.mjs → monitors-3MDJEWZB.mjs} +7 -7
  91. package/dist/cli/{monitors-LNNSTELC.js → monitors-E3TTJB3S.js} +91 -91
  92. package/dist/cli/{org-OWM3IGOK.js → org-722NMZ4T.js} +113 -72
  93. package/dist/cli/{org-EEEMWKQ2.mjs → org-AJUXWQ6P.mjs} +51 -10
  94. package/dist/cli/{pages-7JF6AKDI.js → pages-CPCWTTPD.js} +17 -17
  95. package/dist/cli/{pages-ZYYMQUDX.mjs → pages-Y6AC7PBJ.mjs} +6 -6
  96. package/dist/cli/{play-WLAFXAHR.js → play-ACQ54HNN.js} +305 -305
  97. package/dist/cli/{play-5Z3E7KL6.mjs → play-TYHP7UNL.mjs} +18 -18
  98. package/dist/cli/{providers-JUT7IYD3.mjs → providers-BSXILLKJ.mjs} +6 -6
  99. package/dist/cli/{providers-TTDFQQU2.js → providers-UDG7V7WU.js} +9 -9
  100. package/dist/cli/{quickstart-P4TL4NWJ.mjs → quickstart-66MNFG2G.mjs} +4 -4
  101. package/dist/cli/{quickstart-OZYEGICI.js → quickstart-ZW7VOPFN.js} +6 -6
  102. package/dist/cli/{run-CM6OZUBR.mjs → run-JSAI5PRF.mjs} +25 -25
  103. package/dist/cli/{run-BYGE4LUB.js → run-KPS3O2VA.js} +40 -40
  104. package/dist/cli/{search-RZRJ73YL.mjs → search-GQGB3JIE.mjs} +7 -7
  105. package/dist/cli/search-JUXEQ5HQ.js +32 -0
  106. package/dist/cli/{secrets-DHI6ZMKE.mjs → secrets-LGGKGT3A.mjs} +6 -6
  107. package/dist/cli/{secrets-XLTN3SCL.js → secrets-UVQKUCBM.js} +15 -15
  108. package/dist/cli/{sessions-MZD5WZBT.mjs → sessions-JYPDKPVA.mjs} +5 -5
  109. package/dist/cli/{sessions-6NCQQXVK.js → sessions-MPZ42HUS.js} +6 -6
  110. package/dist/cli/{settings-S6GQ4XFZ.mjs → settings-5UVSGJ72.mjs} +11 -11
  111. package/dist/cli/{settings-JJH72W5V.js → settings-E7VTIIRT.js} +78 -78
  112. package/dist/cli/{setup-ZJ4G54XN.mjs → setup-FM6VKRER.mjs} +9 -9
  113. package/dist/cli/{setup-3BIOG6N2.js → setup-NQ5BQ3ZY.js} +44 -44
  114. package/dist/cli/skills-OLIMNV35.js +31 -0
  115. package/dist/cli/{skills-FBH4REPB.mjs → skills-WOCXEASX.mjs} +7 -7
  116. package/dist/cli/tools-IZNJT6RU.js +55 -0
  117. package/dist/cli/{tools-J6YGZTD5.mjs → tools-QZRDZS45.mjs} +18 -18
  118. package/dist/cli/update-4JVVAYI4.js +33 -0
  119. package/dist/cli/{update-6CSRALIQ.mjs → update-OW2FEGGG.mjs} +9 -9
  120. package/dist/cli/{workflow-2ETKYSJV.js → workflow-QJM2ELOS.js} +17 -17
  121. package/dist/cli/{workflow-3ATSB7HQ.mjs → workflow-QRGUHBKL.mjs} +7 -7
  122. package/dist/{client-BClp2yrq.d.ts → client-B3tlWsw7.d.ts} +1 -1
  123. package/dist/{client-ADFHNtFM.d.mts → client-CdJR18SJ.d.mts} +1 -1
  124. package/dist/{client-core-DWLmmJWo.d.mts → client-core-ByJD7QXj.d.mts} +24 -2
  125. package/dist/{client-core-BFU73Ttw.d.ts → client-core-CxHBKfE5.d.ts} +24 -2
  126. package/dist/{compiler-manifest-Cs17yO-H.d.ts → compiler-manifest-D5dARg3M.d.mts} +64 -10
  127. package/dist/{compiler-manifest-Cs17yO-H.d.mts → compiler-manifest-D5dARg3M.d.ts} +64 -10
  128. package/dist/{errors-Dee-QpVS.d.ts → errors-BtHHzWL8.d.ts} +1 -1
  129. package/dist/{errors-qNfvQuRB.d.mts → errors-BveMVPwA.d.mts} +1 -1
  130. package/dist/{index-BTqNNXmC.d.mts → index-BboApDGD.d.mts} +1 -1
  131. package/dist/{index-DXTh1Lxe.d.ts → index-C6sovoYP.d.ts} +1 -1
  132. package/dist/index.d.mts +7 -7
  133. package/dist/index.d.ts +7 -7
  134. package/dist/index.js +277 -76
  135. package/dist/index.mjs +239 -38
  136. package/dist/install-integrity.json +114 -114
  137. package/dist/plays/bundle-play-file.d.mts +3 -3
  138. package/dist/plays/bundle-play-file.d.ts +3 -3
  139. package/dist/plays/play-description.d.mts +2 -2
  140. package/dist/plays/play-description.d.ts +2 -2
  141. package/dist/plays/run-request.d.mts +2 -2
  142. package/dist/plays/run-request.d.ts +2 -2
  143. package/dist/release.d.mts +1 -1
  144. package/dist/release.d.ts +1 -1
  145. package/dist/release.js +2 -2
  146. package/dist/release.mjs +1 -1
  147. package/dist/server.d.mts +4 -4
  148. package/dist/server.d.ts +4 -4
  149. package/dist/server.js +5 -5
  150. package/dist/server.mjs +3 -3
  151. package/package.json +1 -1
  152. package/dist/cli/auth-Y3UTWD3W.js +0 -41
  153. package/dist/cli/describe-Z66CQESH.js +0 -48
  154. package/dist/cli/git-NNSJKW3V.js +0 -25
  155. package/dist/cli/search-RIG4LTCS.js +0 -32
  156. package/dist/cli/skills-ODISCL7S.js +0 -31
  157. package/dist/cli/tools-IHBHDI4P.js +0 -55
  158. package/dist/cli/update-5O3HDR5O.js +0 -33
@@ -39,6 +39,23 @@ Conventions (apply to every tool):
39
39
  ]]
40
40
  `;
41
41
  var COMMAND_DOCS = {
42
+ "org members list": {
43
+ core: `Purpose: List one page of members in the authenticated workspace.
44
+ Input: Optional --cursor from the previous page.
45
+ Output: members (id, userId, role, effective grants) and cursor (null at the end).
46
+ Cost: Does not spend credits.`
47
+ },
48
+ "org members set-grants": {
49
+ core: `Purpose: Replace a workspace member's grants. Requires an admin grant.
50
+ Input: a member id from org members list, followed by one or more grants:
51
+ read (explicitly read-only tools), run (any tool and existing Plays; cannot create or edit Plays), admin (tools and workspace management), member (existing access, including Play authoring).
52
+ Example: deepline org members set-grants <member-id> read
53
+ Multiple grants are additive. Run includes read; admin includes both and can create, edit, and publish Plays.
54
+ Existing member roles retain their permissions, including Play authoring. Only owners may change ownership,
55
+ and the last owner cannot be removed. Read-only tools may still spend credits.
56
+ Output: ok, memberId, and the stored role.
57
+ Cost: This command does not spend credits.`
58
+ },
42
59
  "": {
43
60
  core: `
44
61
  [[cli:
@@ -776,10 +793,14 @@ Authoring rules:
776
793
  completed operation receipt can still recover that operation after resume.
777
794
  Read
778
795
  results the way [[cli:describe]][[mcp:deepline_describe_tool]] lists them:
779
- result.fields.<name>.value for a declared list or a value whose meaning
780
- is known, also by field id (result.fields.person.email.value);
796
+ result.fields.<name>.value for a value whose meaning is known, also by
797
+ field id (result.fields.person.email.value). .value throws when there are
798
+ several; .values is always an array;
781
799
  result.extractedValues.<name>.get() for other declared values. Anything
782
800
  else is in result.response, the provider's response with its nesting kept.
801
+ For a list, result.rows() gives one record per item, in the same format
802
+ for every tool: row.fields.email.value, and row.response for the rest.
803
+ Name the list when the tool declares several: result.rows('people').
783
804
  Reuse before rebuilding: deepline.runPlay(key, 'prebuilt/<name>', input,
784
805
  { description }) runs a
785
806
  prebuilt as one stage. Independent calls run together with Promise.all;
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
16
16
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
17
17
 
18
18
 
19
- var _chunkA7MWUG5Hjs = require('./chunk-A7MWUG5H.js');
19
+ var _chunkEXXXRDCCjs = require('./chunk-EXXXRDCC.js');
20
20
 
21
21
  // src/version.ts
22
- var SDK_VERSION = _chunkA7MWUG5Hjs.SDK_RELEASE.version;
23
- var SDK_API_MAJOR = _chunkA7MWUG5Hjs.SDK_RELEASE.contracts.api.currentMajor;
24
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkA7MWUG5Hjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
22
+ var SDK_VERSION = _chunkEXXXRDCCjs.SDK_RELEASE.version;
23
+ var SDK_API_MAJOR = _chunkEXXXRDCCjs.SDK_RELEASE.contracts.api.currentMajor;
24
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkEXXXRDCCjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
25
25
 
26
26
  // src/agent-runtime.ts
27
27
  var _os = require('os');
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-RSXOGXGX.mjs";
5
+ } from "./chunk-TVDBGEVP.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-IEQPOBTK.mjs";
8
+ } from "./chunk-CHD7NMZD.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -564,6 +564,14 @@ function isOtherThing(id) {
564
564
  const entity = _optionalChain([FIELDS_BY_ID, 'access', _10 => _10.get, 'call', _11 => _11(id), 'optionalAccess', _12 => _12.entity]);
565
565
  return entity !== void 0 && entity !== "person" && entity !== "company" && entity !== "entity";
566
566
  }
567
+ var LIST_NAMES = [
568
+ "people",
569
+ "companies",
570
+ "job_postings",
571
+ "posts",
572
+ "podcasts",
573
+ "pages"
574
+ ];
567
575
  function resolveFieldName(name, bindings, outputs = []) {
568
576
  const byId = /* @__PURE__ */ new Map();
569
577
  for (const binding of bindings) {
@@ -646,4 +654,6 @@ function fieldPaths(bindings, outputs, lists) {
646
654
 
647
655
 
648
656
 
649
- exports.EMAIL_STATUS_JSON_SCHEMA = EMAIL_STATUS_JSON_SCHEMA; exports.buildEmailStatus = buildEmailStatus; exports.JOB_CHANGE_STATUS_VALUES = JOB_CHANGE_STATUS_VALUES; exports.JOB_CHANGE_JSON_SCHEMA = JOB_CHANGE_JSON_SCHEMA; exports.PHONE_STATUS_VALUES = PHONE_STATUS_VALUES; exports.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS; exports.DEEPLINE_EXTRACTOR_TARGETS = DEEPLINE_EXTRACTOR_TARGETS; exports.isDeeplineExtractorTarget = isDeeplineExtractorTarget; exports.fieldOfName = fieldOfName; exports.resolveFieldName = resolveFieldName; exports.fieldPaths = fieldPaths;
657
+
658
+
659
+ exports.EMAIL_STATUS_JSON_SCHEMA = EMAIL_STATUS_JSON_SCHEMA; exports.buildEmailStatus = buildEmailStatus; exports.JOB_CHANGE_STATUS_VALUES = JOB_CHANGE_STATUS_VALUES; exports.JOB_CHANGE_JSON_SCHEMA = JOB_CHANGE_JSON_SCHEMA; exports.PHONE_STATUS_VALUES = PHONE_STATUS_VALUES; exports.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS; exports.DEEPLINE_EXTRACTOR_TARGETS = DEEPLINE_EXTRACTOR_TARGETS; exports.isDeeplineExtractorTarget = isDeeplineExtractorTarget; exports.isFieldId = isFieldId; exports.fieldOfName = fieldOfName; exports.LIST_NAMES = LIST_NAMES; exports.resolveFieldName = resolveFieldName; exports.fieldPaths = fieldPaths;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6QV42MC.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-UHAKSLL2.mjs";
6
+ } from "./chunk-7PBIHKB4.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
9
  } from "./chunk-FAG4DFUC.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-6CYRIFZ3.mjs";
14
+ } from "./chunk-NOQRM7LV.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-HBL4PM5Q.mjs";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkHOFXQYRFjs = require('./chunk-HOFXQYRF.js');
5
+ var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
6
6
 
7
7
 
8
8
 
@@ -22,12 +22,12 @@ var _chunkHOFXQYRFjs = require('./chunk-HOFXQYRF.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkNQH7E3F2js = require('./chunk-NQH7E3F2.js');
25
+ var _chunkYI6TIURRjs = require('./chunk-YI6TIURR.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
- var _chunkPEUWKPY4js = require('./chunk-PEUWKPY4.js');
30
+ var _chunkLQ2KVMODjs = require('./chunk-LQ2KVMOD.js');
31
31
 
32
32
  // src/cli/commands/auth.ts
33
33
 
@@ -54,7 +54,7 @@ function statusBannerLine(value) {
54
54
  return `Service notice: ${banner.message}`;
55
55
  }
56
56
  function envFilePath(baseUrl) {
57
- return _chunkNQH7E3F2js.hostEnvFilePath.call(void 0, baseUrl);
57
+ return _chunkYI6TIURRjs.hostEnvFilePath.call(void 0, baseUrl);
58
58
  }
59
59
  function normalizeAuthScope(value) {
60
60
  if (!value || value === "global") return "global";
@@ -67,7 +67,7 @@ function parseAuthScope(args) {
67
67
  }
68
68
  function pendingClaimPath(baseUrl, scope) {
69
69
  if (scope === "folder") {
70
- const target = _chunkNQH7E3F2js.resolveProjectPinTarget.call(void 0, );
70
+ const target = _chunkYI6TIURRjs.resolveProjectPinTarget.call(void 0, );
71
71
  if (!target.ok) {
72
72
  throw new Error(
73
73
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -77,10 +77,10 @@ function pendingClaimPath(baseUrl, scope) {
77
77
  }
78
78
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
79
79
  }
80
- return `${_chunkNQH7E3F2js.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
80
+ return `${_chunkYI6TIURRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
81
81
  }
82
82
  function legacyPendingClaimTokenPath(baseUrl) {
83
- return `${_chunkNQH7E3F2js.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
83
+ return `${_chunkYI6TIURRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
84
84
  }
85
85
  function savePendingClaim(baseUrl, claim) {
86
86
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -182,21 +182,21 @@ function parseRegisterWaitMode(args) {
182
182
  function shouldWaitForRegisterClaim(mode) {
183
183
  if (mode === "yes") return true;
184
184
  if (mode === "no") return false;
185
- return _chunkPEUWKPY4js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
185
+ return _chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
186
186
  }
187
187
  function saveEnvValues(values, baseUrl, scope) {
188
188
  const filtered = {
189
- ...values[_chunkNQH7E3F2js.HOST_URL_ENV] ? { [_chunkNQH7E3F2js.HOST_URL_ENV]: values[_chunkNQH7E3F2js.HOST_URL_ENV] } : {},
190
- ...values[_chunkNQH7E3F2js.API_KEY_ENV] ? { [_chunkNQH7E3F2js.API_KEY_ENV]: values[_chunkNQH7E3F2js.API_KEY_ENV] } : {},
191
- ...values[_chunkNQH7E3F2js.ACTIVE_ORG_ID_ENV] ? { [_chunkNQH7E3F2js.ACTIVE_ORG_ID_ENV]: values[_chunkNQH7E3F2js.ACTIVE_ORG_ID_ENV] } : {},
192
- ...Object.prototype.hasOwnProperty.call(values, _chunkNQH7E3F2js.ACTIVE_ORG_NAME_ENV) ? { [_chunkNQH7E3F2js.ACTIVE_ORG_NAME_ENV]: values[_chunkNQH7E3F2js.ACTIVE_ORG_NAME_ENV] } : {},
189
+ ...values[_chunkYI6TIURRjs.HOST_URL_ENV] ? { [_chunkYI6TIURRjs.HOST_URL_ENV]: values[_chunkYI6TIURRjs.HOST_URL_ENV] } : {},
190
+ ...values[_chunkYI6TIURRjs.API_KEY_ENV] ? { [_chunkYI6TIURRjs.API_KEY_ENV]: values[_chunkYI6TIURRjs.API_KEY_ENV] } : {},
191
+ ...values[_chunkYI6TIURRjs.ACTIVE_ORG_ID_ENV] ? { [_chunkYI6TIURRjs.ACTIVE_ORG_ID_ENV]: values[_chunkYI6TIURRjs.ACTIVE_ORG_ID_ENV] } : {},
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkYI6TIURRjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkYI6TIURRjs.ACTIVE_ORG_NAME_ENV]: values[_chunkYI6TIURRjs.ACTIVE_ORG_NAME_ENV] } : {},
193
193
  // An explicit empty list must reach the store: it clears a stale line.
194
- ...Object.prototype.hasOwnProperty.call(values, _chunkNQH7E3F2js.FEATURES_ENV) ? { [_chunkNQH7E3F2js.FEATURES_ENV]: values[_chunkNQH7E3F2js.FEATURES_ENV] } : {}
194
+ ...Object.prototype.hasOwnProperty.call(values, _chunkYI6TIURRjs.FEATURES_ENV) ? { [_chunkYI6TIURRjs.FEATURES_ENV]: values[_chunkYI6TIURRjs.FEATURES_ENV] } : {}
195
195
  };
196
196
  if (scope === "folder") {
197
- _chunkNQH7E3F2js.saveProjectDeeplineEnvValues.call(void 0, filtered);
197
+ _chunkYI6TIURRjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
198
198
  } else {
199
- _chunkNQH7E3F2js.saveHostEnvValues.call(void 0, baseUrl, filtered);
199
+ _chunkYI6TIURRjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
200
200
  }
201
201
  }
202
202
  function activeOrgEnvValues(data) {
@@ -204,21 +204,21 @@ function activeOrgEnvValues(data) {
204
204
  if (!orgId) return {};
205
205
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
206
206
  return {
207
- [_chunkNQH7E3F2js.ACTIVE_ORG_ID_ENV]: orgId,
208
- [_chunkNQH7E3F2js.ACTIVE_ORG_NAME_ENV]: orgName,
209
- ..._chunkNQH7E3F2js.featureEnvValues.call(void 0, data)
207
+ [_chunkYI6TIURRjs.ACTIVE_ORG_ID_ENV]: orgId,
208
+ [_chunkYI6TIURRjs.ACTIVE_ORG_NAME_ENV]: orgName,
209
+ ..._chunkYI6TIURRjs.featureEnvValues.call(void 0, data)
210
210
  };
211
211
  }
212
212
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
213
213
  const headers = {
214
214
  "Content-Type": "application/json",
215
- "User-Agent": `deepline-ts-sdk/${_chunkPEUWKPY4js.SDK_VERSION}`,
215
+ "User-Agent": `deepline-ts-sdk/${_chunkLQ2KVMODjs.SDK_VERSION}`,
216
216
  "X-Deepline-Client-Family": "sdk",
217
217
  "X-Deepline-CLI-Family": "sdk",
218
- "X-Deepline-Agent-Runtime": _chunkPEUWKPY4js.detectAgentRuntime.call(void 0, ),
219
- "X-Deepline-CLI-Version": _chunkPEUWKPY4js.SDK_VERSION,
220
- "X-Deepline-SDK-Version": _chunkPEUWKPY4js.SDK_VERSION,
221
- "X-Deepline-API-Contract": _chunkPEUWKPY4js.SDK_API_CONTRACT
218
+ "X-Deepline-Agent-Runtime": _chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, ),
219
+ "X-Deepline-CLI-Version": _chunkLQ2KVMODjs.SDK_VERSION,
220
+ "X-Deepline-SDK-Version": _chunkLQ2KVMODjs.SDK_VERSION,
221
+ "X-Deepline-API-Contract": _chunkLQ2KVMODjs.SDK_API_CONTRACT
222
222
  };
223
223
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
224
224
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -264,7 +264,7 @@ async function readStatusBanner(baseUrl) {
264
264
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
265
265
  }
266
266
  async function reportSetupCompleted(input) {
267
- const apiKey = input.authScope === "folder" ? _chunkNQH7E3F2js.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkNQH7E3F2js.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
267
+ const apiKey = input.authScope === "folder" ? _chunkYI6TIURRjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkYI6TIURRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
268
268
  if (!apiKey) return;
269
269
  try {
270
270
  await httpJson(
@@ -361,7 +361,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
361
361
  }
362
362
  }
363
363
  async function handleRegister(args) {
364
- const baseUrl = _chunkNQH7E3F2js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
364
+ const baseUrl = _chunkYI6TIURRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
365
365
  let orgName = "";
366
366
  let orgId = "";
367
367
  let agentName = "";
@@ -416,19 +416,19 @@ async function handleRegister(args) {
416
416
  });
417
417
  saveEnvValues(
418
418
  {
419
- [_chunkNQH7E3F2js.HOST_URL_ENV]: baseUrl
419
+ [_chunkYI6TIURRjs.HOST_URL_ENV]: baseUrl
420
420
  },
421
421
  baseUrl,
422
422
  authScope
423
423
  );
424
424
  }
425
425
  if (claimUrl) {
426
- const shouldOpen = waitMode !== "no" && _chunkPEUWKPY4js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
426
+ const shouldOpen = waitMode !== "no" && _chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
427
427
  console.log(
428
428
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
429
429
  );
430
430
  console.log(` ${claimUrl}`);
431
- if (shouldOpen) _chunkHOFXQYRFjs.openInBrowser.call(void 0, claimUrl);
431
+ if (shouldOpen) _chunkYD2KV7RTjs.openInBrowser.call(void 0, claimUrl);
432
432
  }
433
433
  if (data.cli_message) {
434
434
  console.log(String(data.cli_message));
@@ -471,8 +471,8 @@ async function handleRegister(args) {
471
471
  if (apiKey) {
472
472
  saveEnvValues(
473
473
  {
474
- [_chunkNQH7E3F2js.HOST_URL_ENV]: baseUrl,
475
- [_chunkNQH7E3F2js.API_KEY_ENV]: apiKey,
474
+ [_chunkYI6TIURRjs.HOST_URL_ENV]: baseUrl,
475
+ [_chunkYI6TIURRjs.API_KEY_ENV]: apiKey,
476
476
  ...activeOrgEnvValues(statusData)
477
477
  },
478
478
  baseUrl,
@@ -494,7 +494,7 @@ async function handleRegister(args) {
494
494
  }
495
495
  }
496
496
  async function handleWait(args) {
497
- const baseUrl = _chunkNQH7E3F2js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
497
+ const baseUrl = _chunkYI6TIURRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
498
498
  let timeoutSeconds = 300;
499
499
  let requestedScope;
500
500
  if (args.includes("--auth-scope")) {
@@ -518,7 +518,7 @@ async function handleWait(args) {
518
518
  const authScope = resumed.scope;
519
519
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _12 => _12.claimToken]), () => ( ""));
520
520
  if (!pendingClaim) {
521
- const scopedApiKey = authScope === "folder" ? _chunkNQH7E3F2js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkNQH7E3F2js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
521
+ const scopedApiKey = authScope === "folder" ? _chunkYI6TIURRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkYI6TIURRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
522
522
  if (scopedApiKey) {
523
523
  console.log("Already connected.");
524
524
  return EXIT_OK;
@@ -561,8 +561,8 @@ async function handleWait(args) {
561
561
  if (apiKey) {
562
562
  saveEnvValues(
563
563
  {
564
- [_chunkNQH7E3F2js.HOST_URL_ENV]: baseUrl,
565
- [_chunkNQH7E3F2js.API_KEY_ENV]: apiKey,
564
+ [_chunkYI6TIURRjs.HOST_URL_ENV]: baseUrl,
565
+ [_chunkYI6TIURRjs.API_KEY_ENV]: apiKey,
566
566
  ...activeOrgEnvValues(data)
567
567
  },
568
568
  baseUrl,
@@ -586,8 +586,8 @@ async function handleWait(args) {
586
586
  return EXIT_AUTH;
587
587
  }
588
588
  async function authStatusLine(timeoutMs = 3e3) {
589
- const baseUrl = _chunkNQH7E3F2js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
590
- const apiKey = _chunkNQH7E3F2js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
589
+ const baseUrl = _chunkYI6TIURRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
590
+ const apiKey = _chunkYI6TIURRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
591
591
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
592
592
  try {
593
593
  const { status, data } = await httpJson(
@@ -610,9 +610,9 @@ async function authStatusLine(timeoutMs = 3e3) {
610
610
  }
611
611
  }
612
612
  async function handleStatus(args) {
613
- const baseUrl = _chunkNQH7E3F2js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
613
+ const baseUrl = _chunkYI6TIURRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
614
614
  const reveal = args.includes("--reveal");
615
- const jsonOutput = _chunkHOFXQYRFjs.argsWantJson.call(void 0, args);
615
+ const jsonOutput = _chunkYD2KV7RTjs.argsWantJson.call(void 0, args);
616
616
  const hasExplicitAuthScope = args.includes("--auth-scope");
617
617
  let authScope = null;
618
618
  if (hasExplicitAuthScope) {
@@ -653,14 +653,14 @@ async function handleStatus(args) {
653
653
  };
654
654
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
655
655
  }
656
- const apiKey = authScope === "folder" ? _chunkNQH7E3F2js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkNQH7E3F2js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkNQH7E3F2js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
656
+ const apiKey = authScope === "folder" ? _chunkYI6TIURRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkYI6TIURRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkYI6TIURRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
657
657
  if (!apiKey) {
658
658
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
659
659
  baseUrl,
660
660
  _nullishCoalesce(authScope, () => ( void 0))
661
661
  );
662
662
  if (pendingClaim) {
663
- _chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
663
+ _chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
664
664
  {
665
665
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
666
666
  status: "pending",
@@ -681,7 +681,7 @@ async function handleStatus(args) {
681
681
  );
682
682
  return EXIT_OK;
683
683
  }
684
- _chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
684
+ _chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
685
685
  {
686
686
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
687
687
  status: "not connected",
@@ -714,7 +714,7 @@ async function handleStatus(args) {
714
714
  }
715
715
  );
716
716
  if (status === 401 || status === 403) {
717
- _chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
717
+ _chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
718
718
  {
719
719
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
720
720
  status: "unauthorized",
@@ -741,7 +741,7 @@ async function handleStatus(args) {
741
741
  console.error(`Auth status error (status ${status}).`);
742
742
  return EXIT_SERVER;
743
743
  }
744
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkNQH7E3F2js.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
744
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkYI6TIURRjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
745
745
  clearSatisfiedPendingClaim(
746
746
  baseUrl,
747
747
  resolvedAuthScope,
@@ -769,28 +769,28 @@ async function handleStatus(args) {
769
769
  if (apiKeyResp) {
770
770
  saveEnvValues(
771
771
  {
772
- [_chunkNQH7E3F2js.HOST_URL_ENV]: baseUrl,
773
- [_chunkNQH7E3F2js.API_KEY_ENV]: apiKeyResp,
772
+ [_chunkYI6TIURRjs.HOST_URL_ENV]: baseUrl,
773
+ [_chunkYI6TIURRjs.API_KEY_ENV]: apiKeyResp,
774
774
  ...activeOrgEnvValues(data)
775
775
  },
776
776
  baseUrl,
777
777
  resolvedAuthScope
778
778
  );
779
779
  if (resolvedAuthScope === "folder") {
780
- const target = _chunkNQH7E3F2js.resolveProjectPinTarget.call(void 0, );
780
+ const target = _chunkYI6TIURRjs.resolveProjectPinTarget.call(void 0, );
781
781
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
782
782
  } else {
783
783
  savedApiKeyPath = envFilePath(baseUrl);
784
784
  }
785
785
  }
786
- } else if (resolvedAuthScope === "folder" || _chunkNQH7E3F2js.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
787
- saveEnvValues(_chunkNQH7E3F2js.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
786
+ } else if (resolvedAuthScope === "folder" || _chunkYI6TIURRjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
787
+ saveEnvValues(_chunkYI6TIURRjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
788
788
  }
789
- _chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
789
+ _chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
790
790
  {
791
791
  ...payload,
792
- ..._chunkPEUWKPY4js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
793
- command_context: _chunkNQH7E3F2js.resolveCliCommandContext.call(void 0,
792
+ ..._chunkLQ2KVMODjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
793
+ command_context: _chunkYI6TIURRjs.resolveCliCommandContext.call(void 0,
794
794
  { baseUrl, apiKey },
795
795
  resolvedAuthScope
796
796
  )
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-H5MYPDO2.mjs";
4
+ } from "./chunk-EOWMLNCV.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-7QITO7XO.mjs";
7
+ } from "./chunk-UA42Q7R3.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-6R36QIG4.mjs";
10
+ } from "./chunk-Q7NNU6KB.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-6CYRIFZ3.mjs";
13
+ } from "./chunk-NOQRM7LV.mjs";
14
14
  import {
15
15
  autoDetectBaseUrl
16
- } from "./chunk-RSXOGXGX.mjs";
16
+ } from "./chunk-TVDBGEVP.mjs";
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  import { spawn, spawnSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-QTTYIPFY.mjs";
3
+ } from "./chunk-UNLLMHY7.mjs";
4
4
  import {
5
5
  DEFAULT_SKILL_AGENTS,
6
6
  KNOWN_SKILL_AGENTS,
@@ -12,7 +12,7 @@ import {
12
12
  sdkCliStateDirPath,
13
13
  skillsAgentPathSegment,
14
14
  writeSdkSkillsLocalVersion
15
- } from "./chunk-RSXOGXGX.mjs";
15
+ } from "./chunk-TVDBGEVP.mjs";
16
16
  import {
17
17
  SDK_API_CONTRACT,
18
18
  SDK_API_MAJOR,
@@ -20,13 +20,13 @@ import {
20
20
  agentSessionIdFromEnvironment,
21
21
  deploymentProtectionHeaders,
22
22
  detectAgentRuntime
23
- } from "./chunk-IEQPOBTK.mjs";
23
+ } from "./chunk-CHD7NMZD.mjs";
24
24
  import {
25
25
  DeeplineError
26
26
  } from "./chunk-HBL4PM5Q.mjs";
27
27
  import {
28
28
  SDK_RELEASE
29
- } from "./chunk-V27TVT7P.mjs";
29
+ } from "./chunk-CXYMJSRQ.mjs";
30
30
 
31
31
  // src/compat.ts
32
32
  import { randomUUID } from "crypto";
@@ -6,7 +6,7 @@ var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkHOFXQYRFjs = require('./chunk-HOFXQYRF.js');
9
+ var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
10
10
 
11
11
  // src/cli/describe-options.ts
12
12
  function addDescribeOptions(command, options = {}) {
@@ -247,7 +247,7 @@ function projectRunDatasetCell(value) {
247
247
  const logicalValue = parseSerializedDatasetValue(value);
248
248
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
249
249
  if (typeof logicalValue === "object") {
250
- return _chunkHOFXQYRFjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
250
+ return _chunkYD2KV7RTjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
251
251
  }
252
252
  return logicalValue;
253
253
  }
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
642
642
  rows: rows.map((row) => record(row) ? row : { value: row }),
643
643
  columns
644
644
  });
645
- return _chunkHOFXQYRFjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
+ return _chunkYD2KV7RTjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
646
646
  }
647
647
  function writeExecutionOutput(result, options) {
648
648
  let temp;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-6CYRIFZ3.mjs";
3
+ } from "./chunk-NOQRM7LV.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -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 _chunkHOFXQYRFjs = require('./chunk-HOFXQYRF.js');
4
+ var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
5
5
 
6
6
 
7
- var _chunkPEUWKPY4js = require('./chunk-PEUWKPY4.js');
7
+ var _chunkLQ2KVMODjs = require('./chunk-LQ2KVMOD.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 = _chunkPEUWKPY4js.agentSessionIdFromEnvironment.call(void 0,
142
+ const sessionId = _chunkLQ2KVMODjs.agentSessionIdFromEnvironment.call(void 0,
143
143
  process.env,
144
144
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
145
145
  );
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
451
451
  return { encodedContent: encoded, needsChunking: true };
452
452
  }
453
453
  async function uploadPayload(path, payload) {
454
- const { http } = _chunkHOFXQYRFjs.getAuthedHttpClient.call(void 0, );
454
+ const { http } = _chunkYD2KV7RTjs.getAuthedHttpClient.call(void 0, );
455
455
  return await http.post(path, payload);
456
456
  }
457
457
  async function uploadChunkedSessions(sessions, options) {
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
484
484
  ...options.rating ? { rating: options.rating } : {}
485
485
  });
486
486
  const sessionIds = sessions.map((session) => session.sessionId);
487
- _chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
487
+ _chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
488
488
  {
489
489
  ...response,
490
490
  ok: true,
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
516
516
  filename: _path.basename.call(void 0, filePath),
517
517
  ...rating ? { rating } : {}
518
518
  });
519
- _chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
519
+ _chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
520
520
  {
521
521
  ...response2,
522
522
  ok: true,
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
566
566
  ...rating ? { rating } : {}
567
567
  });
568
568
  const sessionIds = built.map((session) => session.sessionId);
569
- _chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
569
+ _chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
570
570
  {
571
571
  ...response,
572
572
  ok: true,
@@ -674,7 +674,7 @@ ${refreshMeta}
674
674
  </body>
675
675
  </html>`;
676
676
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
677
- _chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
677
+ _chunkYD2KV7RTjs.printCommandEnvelope.call(void 0,
678
678
  {
679
679
  ok: true,
680
680
  file: outputPath,
@@ -3,15 +3,15 @@
3
3
  var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
4
4
 
5
5
 
6
- var _chunkEOKUL6XSjs = require('./chunk-EOKUL6XS.js');
6
+ var _chunk2NE3LCEAjs = require('./chunk-2NE3LCEA.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkHOFXQYRFjs = require('./chunk-HOFXQYRF.js');
10
+ var _chunkYD2KV7RTjs = require('./chunk-YD2KV7RT.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkNQH7E3F2js = require('./chunk-NQH7E3F2.js');
14
+ var _chunkYI6TIURRjs = require('./chunk-YI6TIURR.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, _chunkNQH7E3F2js.sdkCliStateDirPath.call(void 0, _chunkNQH7E3F2js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5716
+ return _path.join.call(void 0, _chunkYI6TIURRjs.sdkCliStateDirPath.call(void 0, _chunkYI6TIURRjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5717
5717
  }
5718
5718
  function rememberSearchRef(searchRef) {
5719
5719
  try {
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
5877
5877
  ];
5878
5878
  function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5879
5879
  if (result.results.length === 0)
5880
- return _chunkHOFXQYRFjs.renderCommandEnvelopeText.call(void 0, result);
5880
+ return _chunkYD2KV7RTjs.renderCommandEnvelopeText.call(void 0, result);
5881
5881
  const rows = result.results.map((item) => searchRow(item, summaryWidth));
5882
5882
  const kinds = new Set(rows.map((row) => row.kind));
5883
5883
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5902
5902
  actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
5903
5903
  };
5904
5904
  const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
5905
- ${_chunkHOFXQYRFjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5905
+ ${_chunkYD2KV7RTjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5906
5906
  const notes = rows.flatMap(
5907
5907
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
5908
5908
  );
@@ -5997,7 +5997,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
5997
5997
  console.error("--summary-width must be an integer of at least 2.");
5998
5998
  return 1;
5999
5999
  }
6000
- const { search_ref: searchRef, ...result } = await new (0, _chunkEOKUL6XSjs.DeeplineClient)().search({
6000
+ const { search_ref: searchRef, ...result } = await new (0, _chunk2NE3LCEAjs.DeeplineClient)().search({
6001
6001
  query,
6002
6002
  types,
6003
6003
  exclude,
@@ -6011,7 +6011,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
6011
6011
  });
6012
6012
  if (searchRef) rememberSearchRef(searchRef);
6013
6013
  pointAtDescribe(result);
6014
- _chunkHOFXQYRFjs.printCommandEnvelope.call(void 0, result, {
6014
+ _chunkYD2KV7RTjs.printCommandEnvelope.call(void 0, result, {
6015
6015
  json: options.json === true,
6016
6016
  text: renderSearchResults(result, summaryWidth)
6017
6017
  });
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-RCMT6AZ5.mjs";
3
+ } from "./chunk-QKGHYF7A.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-6R36QIG4.mjs";
8
+ } from "./chunk-Q7NNU6KB.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {