deepline 0.3.556 → 0.3.557

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 (144) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/auth-F7QPLPTB.js +44 -0
  3. package/dist/cli/{auth-MT7DWCZO.mjs → auth-SGWFS2DS.mjs} +5 -5
  4. package/dist/cli/{billing-3HHUTNME.js → billing-G6C2LUSN.js} +99 -99
  5. package/dist/cli/{billing-4NOM52PO.mjs → billing-XJZX3JSG.mjs} +8 -8
  6. package/dist/cli/{chunk-ZGOTBBY3.mjs → chunk-24PL5QN5.mjs} +1 -1
  7. package/dist/cli/{chunk-G6BX5VJN.js → chunk-25SOYGAX.js} +274 -274
  8. package/dist/cli/{chunk-VCYPHVUE.mjs → chunk-2TTAHHSJ.mjs} +2 -2
  9. package/dist/cli/{chunk-LY5MMXFF.js → chunk-2YT2TFNX.js} +17 -2
  10. package/dist/cli/{chunk-TGUQET3O.mjs → chunk-4AE3A4SL.mjs} +1 -1
  11. package/dist/cli/{chunk-HJO3MZ4M.mjs → chunk-4YNKJTCP.mjs} +2 -2
  12. package/dist/cli/{chunk-7MD36QLK.js → chunk-5H7BLMNH.js} +4 -4
  13. package/dist/cli/{chunk-JRYF5W3A.mjs → chunk-5RVSMMQV.mjs} +2 -2
  14. package/dist/cli/{chunk-LU3OLGF3.js → chunk-5S2G32ZX.js} +53 -53
  15. package/dist/cli/{chunk-2NZQ432X.js → chunk-6C3E6ZZ3.js} +13 -13
  16. package/dist/cli/{chunk-QVNX6AC3.js → chunk-6ZBAXLOR.js} +12 -12
  17. package/dist/cli/{chunk-DAS66RGZ.js → chunk-7AMUXIZ5.js} +1 -1
  18. package/dist/cli/{chunk-4HSPHSUB.js → chunk-A6FYP3KU.js} +5 -5
  19. package/dist/cli/{chunk-DAQQL743.mjs → chunk-ARYKF2YT.mjs} +2 -2
  20. package/dist/cli/{chunk-GZFYLAXJ.js → chunk-B2V6NKX7.js} +20 -20
  21. package/dist/cli/{chunk-CZ2RJTAQ.js → chunk-C46GRCHZ.js} +48 -48
  22. package/dist/cli/{chunk-L57JAXHI.mjs → chunk-C6M5TIPZ.mjs} +1 -1
  23. package/dist/cli/{chunk-ASOLVHDL.mjs → chunk-CDLTF6M2.mjs} +2 -2
  24. package/dist/cli/{chunk-EN5NHCCQ.js → chunk-CPDXS2UK.js} +17 -17
  25. package/dist/cli/{chunk-F5CE3JZQ.js → chunk-DTMUYIUO.js} +9 -9
  26. package/dist/cli/{chunk-UERLY7PX.mjs → chunk-DUXL7U7U.mjs} +2 -2
  27. package/dist/cli/{chunk-K4IPTGU5.js → chunk-EZNYE6GZ.js} +10 -10
  28. package/dist/cli/{chunk-B4RWCBU5.mjs → chunk-GC4HHDE4.mjs} +3 -3
  29. package/dist/cli/{chunk-MUIJGT2B.mjs → chunk-GENZXMNR.mjs} +1 -1
  30. package/dist/cli/{chunk-KN3NETDA.js → chunk-JMDLLVIR.js} +11 -11
  31. package/dist/cli/{chunk-O7QRNMSW.mjs → chunk-JORWYP5P.mjs} +1 -1
  32. package/dist/cli/{chunk-KUDSTDSL.js → chunk-JWPJXCD2.js} +23 -23
  33. package/dist/cli/{chunk-C4GWTN3J.mjs → chunk-JX4X4KAZ.mjs} +7 -7
  34. package/dist/cli/{chunk-N6LM2Q6V.js → chunk-JY2EJQL5.js} +5 -5
  35. package/dist/cli/{chunk-GY4S6A72.js → chunk-K35ZLTN2.js} +5 -5
  36. package/dist/cli/{chunk-NGB2VSGB.js → chunk-L5JD66EF.js} +3 -3
  37. package/dist/cli/{chunk-FFXLMJ5O.js → chunk-L7DGWNF7.js} +8 -8
  38. package/dist/cli/{chunk-SWVGAIJD.js → chunk-MZSUMGWN.js} +20 -20
  39. package/dist/cli/{chunk-YGW2CSB7.js → chunk-NHGQHMV7.js} +41 -41
  40. package/dist/cli/{chunk-VQZQCPCA.mjs → chunk-NW6NYTYM.mjs} +4 -4
  41. package/dist/cli/{chunk-3R6RBAQW.js → chunk-NWQZIBPY.js} +26 -26
  42. package/dist/cli/{chunk-PC2FTUCP.mjs → chunk-NXYBZSRL.mjs} +2 -2
  43. package/dist/cli/{chunk-2ZS5PZB6.mjs → chunk-OBW2YFHR.mjs} +2 -2
  44. package/dist/cli/{chunk-4U5HIMZY.js → chunk-ODBQY6MD.js} +2 -2
  45. package/dist/cli/{chunk-P6ZIR4QD.mjs → chunk-OOCGLW46.mjs} +4 -4
  46. package/dist/cli/{chunk-QGQPVPJN.mjs → chunk-PITVKXY3.mjs} +1 -1
  47. package/dist/cli/{chunk-3IKGZ4CG.js → chunk-PK6MYC5E.js} +7 -7
  48. package/dist/cli/{chunk-W5JM2QCI.mjs → chunk-QUAPOFCA.mjs} +5 -5
  49. package/dist/cli/{chunk-KONNXKKX.js → chunk-T26CM5LC.js} +2 -2
  50. package/dist/cli/{chunk-FQYEHUVR.mjs → chunk-TPRMS2D7.mjs} +3 -3
  51. package/dist/cli/{chunk-IFHMGEDN.mjs → chunk-TW7HFIQG.mjs} +13 -13
  52. package/dist/cli/{chunk-LW2FKVCQ.mjs → chunk-U7LDRRRB.mjs} +1 -1
  53. package/dist/cli/{chunk-CJF7AFBD.js → chunk-UP2CQTGX.js} +2 -2
  54. package/dist/cli/{chunk-PWQ3IUD4.js → chunk-UVFR7FW4.js} +20 -20
  55. package/dist/cli/{chunk-XFZX6FNM.mjs → chunk-VLXLKNR4.mjs} +17 -2
  56. package/dist/cli/{chunk-YO2FDGAN.mjs → chunk-VVGGQBAV.mjs} +2 -2
  57. package/dist/cli/{chunk-7ERE37SK.js → chunk-WSX76BQX.js} +6 -6
  58. package/dist/cli/{chunk-UYPXQFJ4.mjs → chunk-WZKWSIZS.mjs} +1 -1
  59. package/dist/cli/{chunk-ASMHON7N.mjs → chunk-XJUHHIH4.mjs} +5 -5
  60. package/dist/cli/{chunk-C2XLKCRH.mjs → chunk-YQDBHVYJ.mjs} +5 -5
  61. package/dist/cli/{chunk-KA77KT46.mjs → chunk-YUB7OX65.mjs} +1 -1
  62. package/dist/cli/{chunk-UO7NPJEK.js → chunk-ZAR6JSI6.js} +3 -3
  63. package/dist/cli/{chunk-KNOS6H4E.mjs → chunk-ZKLUGMPE.mjs} +2 -2
  64. package/dist/cli/concurrent-runs-help-3KEUX2GA.js +22 -0
  65. package/dist/cli/{concurrent-runs-help-AFJDK2SY.mjs → concurrent-runs-help-HSBXPVDN.mjs} +6 -6
  66. package/dist/cli/{csv-NTNQLQXG.js → csv-JEOU3DOF.js} +13 -13
  67. package/dist/cli/{csv-CATF6MZU.mjs → csv-OQGWJ4HU.mjs} +4 -4
  68. package/dist/cli/{db-IKFKNLW5.js → db-75WPSR3C.js} +27 -27
  69. package/dist/cli/{db-U3FK4FFM.mjs → db-YHCKYQJI.mjs} +6 -6
  70. package/dist/cli/{describe-F7OQQ7IO.mjs → describe-TSW245QQ.mjs} +21 -21
  71. package/dist/cli/describe-ZUATHN4Z.js +50 -0
  72. package/dist/cli/describe-core.d.mts +5 -0
  73. package/dist/cli/describe-core.d.ts +5 -0
  74. package/dist/cli/describe-core.js +4 -4
  75. package/dist/cli/describe-core.mjs +3 -3
  76. package/dist/cli/{executions-6KUA7RPH.mjs → executions-NW3SQULX.mjs} +6 -6
  77. package/dist/cli/{executions-3TA5SATU.js → executions-PNSETDOA.js} +8 -8
  78. package/dist/cli/{feedback-GX7RVC4O.js → feedback-LXTVGS4E.js} +14 -14
  79. package/dist/cli/{feedback-U5I6UTJG.mjs → feedback-R2Y4APBY.mjs} +6 -6
  80. package/dist/cli/git-GAXMETIP.js +26 -0
  81. package/dist/cli/{git-DYNKPPNT.mjs → git-S7DESBSB.mjs} +5 -5
  82. package/dist/cli/index.js +143 -143
  83. package/dist/cli/index.mjs +45 -45
  84. package/dist/cli/{integrations-7FATBEB5.mjs → integrations-CQWODJ23.mjs} +7 -7
  85. package/dist/cli/{integrations-PQX2FRPT.js → integrations-ZLMM2CMG.js} +15 -15
  86. package/dist/cli/{legacy-noops-JNXQWYUR.js → legacy-noops-4UDVSN5R.js} +9 -9
  87. package/dist/cli/{legacy-noops-ODATBQUL.mjs → legacy-noops-EGD7QOML.mjs} +6 -6
  88. package/dist/cli/{mcp-RXBXC4HW.js → mcp-5W4HWAMB.js} +24 -24
  89. package/dist/cli/{mcp-UDNG33WQ.mjs → mcp-Q3SKD3A2.mjs} +4 -4
  90. package/dist/cli/{monitors-NDAGIRO4.js → monitors-NA6QQRUK.js} +100 -100
  91. package/dist/cli/{monitors-L56QYFRW.mjs → monitors-ZXHOLBOO.mjs} +7 -7
  92. package/dist/cli/{org-Q47O5ZTI.js → org-25E7SBZP.js} +121 -121
  93. package/dist/cli/{org-EA5DL5I7.mjs → org-O3NSKVA7.mjs} +6 -6
  94. package/dist/cli/{outcomes-27ENBTWE.js → outcomes-O5DS5XSH.js} +14 -14
  95. package/dist/cli/{outcomes-773GPYXN.mjs → outcomes-TEXVO2EV.mjs} +6 -6
  96. package/dist/cli/{play-BOZIT25U.js → play-2FVIRT7Z.js} +337 -337
  97. package/dist/cli/{play-O6RGVBT7.mjs → play-UFAJEDX4.mjs} +20 -20
  98. package/dist/cli/{providers-S2E5IGFO.js → providers-4C4TJ5N3.js} +9 -9
  99. package/dist/cli/{providers-OOKYSLMJ.mjs → providers-LCJA4VQ7.mjs} +6 -6
  100. package/dist/cli/{quickstart-YXKRRK43.js → quickstart-2OAKQFLT.js} +6 -6
  101. package/dist/cli/{quickstart-7GVZ7YCQ.mjs → quickstart-QOJLPGFW.mjs} +4 -4
  102. package/dist/cli/{run-3QGOVUHF.mjs → run-SNAFQJWR.mjs} +26 -26
  103. package/dist/cli/{run-7DXBARRO.js → run-SV3EPJGU.js} +48 -48
  104. package/dist/cli/search-DCHBSXPZ.js +32 -0
  105. package/dist/cli/{search-5UIB4QSG.mjs → search-KIJZGURG.mjs} +7 -7
  106. package/dist/cli/{search-output-MSUN3KPW.mjs → search-output-OESDMVBG.mjs} +5 -5
  107. package/dist/cli/{search-output-C7ZPRC2B.js → search-output-WRHLYDZX.js} +8 -8
  108. package/dist/cli/{secrets-JYJS2VHO.mjs → secrets-5WCCHFM5.mjs} +6 -6
  109. package/dist/cli/{secrets-FU3DFFB6.js → secrets-GH6KF5VR.js} +15 -15
  110. package/dist/cli/{sessions-JBD64DOX.mjs → sessions-52MAEUFQ.mjs} +6 -6
  111. package/dist/cli/sessions-MYG6BH6T.js +23 -0
  112. package/dist/cli/{settings-GDJGQXKT.js → settings-5RSARPXF.js} +85 -85
  113. package/dist/cli/{settings-4KFYWSJI.mjs → settings-HDOBMJ5A.mjs} +12 -12
  114. package/dist/cli/{setup-OKLUCTU7.js → setup-4DTCFBOX.js} +49 -49
  115. package/dist/cli/{setup-46VMBV3K.mjs → setup-UY3TSZZV.mjs} +9 -9
  116. package/dist/cli/skills-EOC2MSQK.js +37 -0
  117. package/dist/cli/{skills-XRJNXEEA.mjs → skills-QUWJHOEZ.mjs} +7 -7
  118. package/dist/cli/tools-AGOX64LC.js +57 -0
  119. package/dist/cli/{tools-WEBVZN3X.mjs → tools-U2LH642W.mjs} +19 -19
  120. package/dist/cli/{update-RKTYJ6BO.mjs → update-3H4E5YJ7.mjs} +9 -9
  121. package/dist/cli/update-OLLOIH4U.js +37 -0
  122. package/dist/cli/{views-XLAPDQXQ.js → views-2LUZ3ATR.js} +21 -21
  123. package/dist/cli/{views-VTOQ4U75.mjs → views-7WOYBLLQ.mjs} +6 -6
  124. package/dist/cli/{workflow-RCO4R46B.mjs → workflow-55OASFLG.mjs} +7 -7
  125. package/dist/cli/{workflow-HH4XVYPN.js → workflow-YME2SGMA.js} +17 -17
  126. package/dist/index.js +9 -9
  127. package/dist/index.mjs +6 -6
  128. package/dist/install-integrity.json +118 -118
  129. package/dist/release.d.mts +1 -1
  130. package/dist/release.d.ts +1 -1
  131. package/dist/release.js +2 -2
  132. package/dist/release.mjs +1 -1
  133. package/dist/server.js +5 -5
  134. package/dist/server.mjs +3 -3
  135. package/package.json +1 -1
  136. package/dist/cli/auth-HA7TI6SA.js +0 -44
  137. package/dist/cli/concurrent-runs-help-ZHOCLINF.js +0 -22
  138. package/dist/cli/describe-ZHNZ4H6S.js +0 -50
  139. package/dist/cli/git-6DK7N4V7.js +0 -26
  140. package/dist/cli/search-4DZYX3FR.js +0 -32
  141. package/dist/cli/sessions-E2IX3GU7.js +0 -23
  142. package/dist/cli/skills-GJS4Q7NU.js +0 -37
  143. package/dist/cli/tools-LICQXFYA.js +0 -57
  144. package/dist/cli/update-3XH3NVVY.js +0 -37
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  httpJson
3
- } from "./chunk-B4RWCBU5.mjs";
3
+ } from "./chunk-GC4HHDE4.mjs";
4
4
  import {
5
5
  PRICING_PAGE_NOTE
6
6
  } from "./chunk-2RIKOPIM.mjs";
7
7
  import {
8
8
  autoDetectBaseUrl,
9
9
  resolveApiKeyForBaseUrl
10
- } from "./chunk-ZGOTBBY3.mjs";
10
+ } from "./chunk-24PL5QN5.mjs";
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -99,8 +99,21 @@ function schemaType(schema) {
99
99
  type: nonNull ? nonNull + nullable : nullable ? "null" : "unknown"
100
100
  };
101
101
  }
102
+ function pageSizeNote(schema) {
103
+ const declaration = schema.pageSize;
104
+ if (!isRecord(declaration)) return void 0;
105
+ const { minimum, maximum } = schema;
106
+ const range = typeof minimum === "number" && typeof maximum === "number" ? ` ${minimum} to ${maximum}` : typeof maximum === "number" ? ` up to ${maximum}` : "";
107
+ const notes = [
108
+ `page size${range}`,
109
+ typeof maximum === "number" ? `more runs at ${maximum}` : void 0,
110
+ typeof declaration.next === "string" ? `next page: ${declaration.next}` : typeof declaration.nextHint === "string" ? declaration.nextHint : void 0
111
+ ];
112
+ return notes.filter(Boolean).join("; ");
113
+ }
102
114
  function schemaField(name, node, required) {
103
115
  const schema = isRecord(node) ? node : {};
116
+ const pageSize = pageSizeNote(schema);
104
117
  const { type, fields } = schemaType(schema);
105
118
  const example = [
106
119
  schema.example,
@@ -115,7 +128,8 @@ function schemaField(name, node, required) {
115
128
  ...typeof schema.description === "string" && schema.description ? { description: schema.description } : {},
116
129
  ...fields ? { fields } : {},
117
130
  ...schema.secondary === true ? { secondary: true } : {},
118
- ...typeof schema.means === "string" ? { means: schema.means } : {}
131
+ ...typeof schema.means === "string" ? { means: schema.means } : {},
132
+ ...pageSize ? { pageSize } : {}
119
133
  };
120
134
  }
121
135
  function resolveSchemaReference(root, ref) {
@@ -434,7 +448,7 @@ function schemaBlocks(sections, maxDepth, everyField = false) {
434
448
  const start = `${indent}${JSON.stringify(field.name)}${field.required ? "" : "?"}: `;
435
449
  if (!field.fields) {
436
450
  return [
437
- `${start}${field.type},${comment([field.means, example, field.description])}`
451
+ `${start}${field.type},${comment([field.means, example, field.pageSize, field.description])}`
438
452
  ];
439
453
  }
440
454
  const [before, after] = field.type.split(SHAPE);
@@ -750,6 +764,7 @@ function jsonFields(fields, options) {
750
764
  ...options.input ? { required: field.required } : {},
751
765
  ...field.means ? { means: field.means } : {},
752
766
  ...field.example !== void 0 ? { example: field.example } : {},
767
+ ...field.pageSize ? { page_size: field.pageSize } : {},
753
768
  ...field.description && field.description !== _optionalChain([shape, 'optionalAccess', _21 => _21.description]) ? { description: field.description } : {},
754
769
  ...field.secondary ? { secondary: true } : {},
755
770
  ...field.read ? { read: field.read } : {},
@@ -2,7 +2,7 @@ import {
2
2
  rateLimitSummary,
3
3
  schemaField,
4
4
  schemaFields
5
- } from "./chunk-XFZX6FNM.mjs";
5
+ } from "./chunk-VLXLKNR4.mjs";
6
6
  import {
7
7
  exampleInputFileLine,
8
8
  exampleJsonInput,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-2ZS5PZB6.mjs";
3
+ } from "./chunk-OBW2YFHR.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-KNOS6H4E.mjs";
6
+ } from "./chunk-ZKLUGMPE.mjs";
7
7
 
8
8
  // src/cli/commands/integration-commands.ts
9
9
  import { Option } from "commander";
@@ -21,12 +21,12 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
21
21
  var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
22
22
 
23
23
 
24
- var _chunkDAS66RGZjs = require('./chunk-DAS66RGZ.js');
24
+ var _chunk7AMUXIZ5js = require('./chunk-7AMUXIZ5.js');
25
25
 
26
26
  // src/version.ts
27
- var SDK_VERSION = _chunkDAS66RGZjs.SDK_RELEASE.version;
28
- var SDK_API_MAJOR = _chunkDAS66RGZjs.SDK_RELEASE.contracts.api.currentMajor;
29
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkDAS66RGZjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
27
+ var SDK_VERSION = _chunk7AMUXIZ5js.SDK_RELEASE.version;
28
+ var SDK_API_MAJOR = _chunk7AMUXIZ5js.SDK_RELEASE.contracts.api.currentMajor;
29
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunk7AMUXIZ5js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
30
30
 
31
31
  // src/agent-runtime.ts
32
32
  var _fs = require('fs');
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-KNOS6H4E.mjs";
5
+ } from "./chunk-ZKLUGMPE.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-ZGOTBBY3.mjs";
8
+ } from "./chunk-24PL5QN5.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
5
+ var _chunkUVFR7FW4js = require('./chunk-UVFR7FW4.js');
6
6
 
7
7
 
8
8
 
@@ -22,14 +22,14 @@ var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkNGB2VSGBjs = require('./chunk-NGB2VSGB.js');
25
+ var _chunkL5JD66EFjs = require('./chunk-L5JD66EF.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunk7MD36QLKjs = require('./chunk-7MD36QLK.js');
32
+ var _chunk5H7BLMNHjs = require('./chunk-5H7BLMNH.js');
33
33
 
34
34
 
35
35
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
60
60
  return `Service notice: ${banner.message}`;
61
61
  }
62
62
  function envFilePath(baseUrl) {
63
- return _chunkNGB2VSGBjs.hostEnvFilePath.call(void 0, baseUrl);
63
+ return _chunkL5JD66EFjs.hostEnvFilePath.call(void 0, baseUrl);
64
64
  }
65
65
  function normalizeAuthScope(value) {
66
66
  if (!value || value === "global") return "global";
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
73
73
  }
74
74
  function pendingClaimPath(baseUrl, scope) {
75
75
  if (scope === "folder") {
76
- const target = _chunkNGB2VSGBjs.resolveProjectPinTarget.call(void 0, );
76
+ const target = _chunkL5JD66EFjs.resolveProjectPinTarget.call(void 0, );
77
77
  if (!target.ok) {
78
78
  throw new Error(
79
79
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
83
83
  }
84
84
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
85
85
  }
86
- return `${_chunkNGB2VSGBjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
86
+ return `${_chunkL5JD66EFjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
87
87
  }
88
88
  function legacyPendingClaimTokenPath(baseUrl) {
89
- return `${_chunkNGB2VSGBjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
89
+ return `${_chunkL5JD66EFjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
90
90
  }
91
91
  function savePendingClaim(baseUrl, claim) {
92
92
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -191,21 +191,21 @@ function parseRegisterWaitMode(args) {
191
191
  function shouldWaitForRegisterClaim(mode) {
192
192
  if (mode === "yes") return true;
193
193
  if (mode === "no") return false;
194
- return _chunk7MD36QLKjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
194
+ return _chunk5H7BLMNHjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
195
195
  }
196
196
  function saveEnvValues(values, baseUrl, scope) {
197
197
  const filtered = {
198
- ...values[_chunkNGB2VSGBjs.HOST_URL_ENV] ? { [_chunkNGB2VSGBjs.HOST_URL_ENV]: values[_chunkNGB2VSGBjs.HOST_URL_ENV] } : {},
199
- ...values[_chunkNGB2VSGBjs.API_KEY_ENV] ? { [_chunkNGB2VSGBjs.API_KEY_ENV]: values[_chunkNGB2VSGBjs.API_KEY_ENV] } : {},
200
- ...values[_chunkNGB2VSGBjs.ACTIVE_ORG_ID_ENV] ? { [_chunkNGB2VSGBjs.ACTIVE_ORG_ID_ENV]: values[_chunkNGB2VSGBjs.ACTIVE_ORG_ID_ENV] } : {},
201
- ...Object.prototype.hasOwnProperty.call(values, _chunkNGB2VSGBjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkNGB2VSGBjs.ACTIVE_ORG_NAME_ENV]: values[_chunkNGB2VSGBjs.ACTIVE_ORG_NAME_ENV] } : {},
198
+ ...values[_chunkL5JD66EFjs.HOST_URL_ENV] ? { [_chunkL5JD66EFjs.HOST_URL_ENV]: values[_chunkL5JD66EFjs.HOST_URL_ENV] } : {},
199
+ ...values[_chunkL5JD66EFjs.API_KEY_ENV] ? { [_chunkL5JD66EFjs.API_KEY_ENV]: values[_chunkL5JD66EFjs.API_KEY_ENV] } : {},
200
+ ...values[_chunkL5JD66EFjs.ACTIVE_ORG_ID_ENV] ? { [_chunkL5JD66EFjs.ACTIVE_ORG_ID_ENV]: values[_chunkL5JD66EFjs.ACTIVE_ORG_ID_ENV] } : {},
201
+ ...Object.prototype.hasOwnProperty.call(values, _chunkL5JD66EFjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkL5JD66EFjs.ACTIVE_ORG_NAME_ENV]: values[_chunkL5JD66EFjs.ACTIVE_ORG_NAME_ENV] } : {},
202
202
  // An explicit empty list must reach the store: it clears a stale line.
203
- ...Object.prototype.hasOwnProperty.call(values, _chunkNGB2VSGBjs.FEATURES_ENV) ? { [_chunkNGB2VSGBjs.FEATURES_ENV]: values[_chunkNGB2VSGBjs.FEATURES_ENV] } : {}
203
+ ...Object.prototype.hasOwnProperty.call(values, _chunkL5JD66EFjs.FEATURES_ENV) ? { [_chunkL5JD66EFjs.FEATURES_ENV]: values[_chunkL5JD66EFjs.FEATURES_ENV] } : {}
204
204
  };
205
205
  if (scope === "folder") {
206
- _chunkNGB2VSGBjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
206
+ _chunkL5JD66EFjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
207
207
  } else {
208
- _chunkNGB2VSGBjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
208
+ _chunkL5JD66EFjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
209
209
  }
210
210
  }
211
211
  function activeOrgEnvValues(data) {
@@ -213,21 +213,21 @@ function activeOrgEnvValues(data) {
213
213
  if (!orgId) return {};
214
214
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
215
215
  return {
216
- [_chunkNGB2VSGBjs.ACTIVE_ORG_ID_ENV]: orgId,
217
- [_chunkNGB2VSGBjs.ACTIVE_ORG_NAME_ENV]: orgName,
218
- ..._chunkNGB2VSGBjs.featureEnvValues.call(void 0, data)
216
+ [_chunkL5JD66EFjs.ACTIVE_ORG_ID_ENV]: orgId,
217
+ [_chunkL5JD66EFjs.ACTIVE_ORG_NAME_ENV]: orgName,
218
+ ..._chunkL5JD66EFjs.featureEnvValues.call(void 0, data)
219
219
  };
220
220
  }
221
221
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
222
222
  const headers = {
223
223
  "Content-Type": "application/json",
224
- "User-Agent": `deepline-ts-sdk/${_chunk7MD36QLKjs.SDK_VERSION}`,
224
+ "User-Agent": `deepline-ts-sdk/${_chunk5H7BLMNHjs.SDK_VERSION}`,
225
225
  "X-Deepline-Client-Family": "sdk",
226
226
  "X-Deepline-CLI-Family": "sdk",
227
- "X-Deepline-Agent-Runtime": _chunk7MD36QLKjs.detectAgentRuntime.call(void 0, ),
228
- "X-Deepline-CLI-Version": _chunk7MD36QLKjs.SDK_VERSION,
229
- "X-Deepline-SDK-Version": _chunk7MD36QLKjs.SDK_VERSION,
230
- "X-Deepline-API-Contract": _chunk7MD36QLKjs.SDK_API_CONTRACT
227
+ "X-Deepline-Agent-Runtime": _chunk5H7BLMNHjs.detectAgentRuntime.call(void 0, ),
228
+ "X-Deepline-CLI-Version": _chunk5H7BLMNHjs.SDK_VERSION,
229
+ "X-Deepline-SDK-Version": _chunk5H7BLMNHjs.SDK_VERSION,
230
+ "X-Deepline-API-Contract": _chunk5H7BLMNHjs.SDK_API_CONTRACT
231
231
  };
232
232
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
233
233
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -266,10 +266,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
266
266
  if (failure.name === "AbortError" || failure.name === "TimeoutError") {
267
267
  throw failure;
268
268
  }
269
- const causeCode = _chunk7MD36QLKjs.networkCauseCode.call(void 0, failure);
269
+ const causeCode = _chunk5H7BLMNHjs.networkCauseCode.call(void 0, failure);
270
270
  throw Object.assign(
271
271
  new (0, _chunkLFQJW4S2js.DeeplineError)(
272
- _chunk7MD36QLKjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
272
+ _chunk5H7BLMNHjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
273
273
  void 0,
274
274
  "NETWORK_ERROR",
275
275
  causeCode ? { causeCode } : void 0
@@ -286,7 +286,7 @@ async function readStatusBanner(baseUrl) {
286
286
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
287
287
  }
288
288
  async function reportSetupCompleted(input) {
289
- const apiKey = input.authScope === "folder" ? _chunkNGB2VSGBjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkNGB2VSGBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
289
+ const apiKey = input.authScope === "folder" ? _chunkL5JD66EFjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkL5JD66EFjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
290
290
  if (!apiKey) return;
291
291
  try {
292
292
  await httpJson(
@@ -415,7 +415,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
415
415
  return EXIT_SERVER;
416
416
  }
417
417
  async function handleRegister(args, options) {
418
- const baseUrl = _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
418
+ const baseUrl = _chunkL5JD66EFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
419
419
  let orgName = "";
420
420
  let orgId = "";
421
421
  let agentName = "";
@@ -486,14 +486,14 @@ async function handleRegister(args, options) {
486
486
  savePendingClaim(baseUrl, pendingClaim);
487
487
  saveEnvValues(
488
488
  {
489
- [_chunkNGB2VSGBjs.HOST_URL_ENV]: baseUrl
489
+ [_chunkL5JD66EFjs.HOST_URL_ENV]: baseUrl
490
490
  },
491
491
  baseUrl,
492
492
  authScope
493
493
  );
494
494
  }
495
495
  if (claimUrl && !_optionalChain([options, 'optionalAccess', _16 => _16.delegatedApproval])) {
496
- const shouldOpen = waitMode !== "no" && _chunk7MD36QLKjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
496
+ const shouldOpen = waitMode !== "no" && _chunk5H7BLMNHjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
497
497
  console.log(" Open this approval page in your browser:");
498
498
  console.log(` ${claimUrl}`);
499
499
  if (pendingClaim.device) {
@@ -501,7 +501,7 @@ async function handleRegister(args, options) {
501
501
  ` Click Approve if the page shows ${pendingClaim.device.userCode}.`
502
502
  );
503
503
  }
504
- const opened = shouldOpen && _chunkPWQ3IUD4js.openInBrowser.call(void 0, claimUrl) === "opened";
504
+ const opened = shouldOpen && _chunkUVFR7FW4js.openInBrowser.call(void 0, claimUrl) === "opened";
505
505
  if (claimToken && pendingClaim.approvalLinkReporting) {
506
506
  await reportApprovalLinkShown(
507
507
  baseUrl,
@@ -554,8 +554,8 @@ async function handleRegister(args, options) {
554
554
  if (apiKey) {
555
555
  saveEnvValues(
556
556
  {
557
- [_chunkNGB2VSGBjs.HOST_URL_ENV]: baseUrl,
558
- [_chunkNGB2VSGBjs.API_KEY_ENV]: apiKey,
557
+ [_chunkL5JD66EFjs.HOST_URL_ENV]: baseUrl,
558
+ [_chunkL5JD66EFjs.API_KEY_ENV]: apiKey,
559
559
  ...activeOrgEnvValues(statusData)
560
560
  },
561
561
  baseUrl,
@@ -577,7 +577,7 @@ async function handleRegister(args, options) {
577
577
  }
578
578
  }
579
579
  async function handleWait(args, options) {
580
- const baseUrl = _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
+ const baseUrl = _chunkL5JD66EFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
581
581
  let timeoutSeconds = 300;
582
582
  let requestedScope;
583
583
  if (args.includes("--auth-scope")) {
@@ -601,7 +601,7 @@ async function handleWait(args, options) {
601
601
  const authScope = resumed.scope;
602
602
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _18 => _18.claimToken]), () => ( ""));
603
603
  if (!pendingClaim) {
604
- const scopedApiKey = authScope === "folder" ? _chunkNGB2VSGBjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkNGB2VSGBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
604
+ const scopedApiKey = authScope === "folder" ? _chunkL5JD66EFjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkL5JD66EFjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
605
605
  if (scopedApiKey) {
606
606
  if (!_optionalChain([options, 'optionalAccess', _19 => _19.quiet])) console.log("Already connected.");
607
607
  return EXIT_OK;
@@ -664,8 +664,8 @@ async function handleWait(args, options) {
664
664
  if (apiKey) {
665
665
  saveEnvValues(
666
666
  {
667
- [_chunkNGB2VSGBjs.HOST_URL_ENV]: baseUrl,
668
- [_chunkNGB2VSGBjs.API_KEY_ENV]: apiKey,
667
+ [_chunkL5JD66EFjs.HOST_URL_ENV]: baseUrl,
668
+ [_chunkL5JD66EFjs.API_KEY_ENV]: apiKey,
669
669
  ...activeOrgEnvValues(data)
670
670
  },
671
671
  baseUrl,
@@ -695,8 +695,8 @@ async function handleWait(args, options) {
695
695
  return EXIT_AUTH;
696
696
  }
697
697
  async function authStatusLine(timeoutMs = 3e3) {
698
- const baseUrl = _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
699
- const apiKey = _chunkNGB2VSGBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
698
+ const baseUrl = _chunkL5JD66EFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
699
+ const apiKey = _chunkL5JD66EFjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
700
700
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
701
701
  try {
702
702
  const { status, data } = await httpJson(
@@ -719,9 +719,9 @@ async function authStatusLine(timeoutMs = 3e3) {
719
719
  }
720
720
  }
721
721
  async function handleStatus(args) {
722
- const baseUrl = _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
722
+ const baseUrl = _chunkL5JD66EFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
723
723
  const reveal = args.includes("--reveal");
724
- const jsonOutput = _chunkPWQ3IUD4js.argsWantJson.call(void 0, args);
724
+ const jsonOutput = _chunkUVFR7FW4js.argsWantJson.call(void 0, args);
725
725
  const hasExplicitAuthScope = args.includes("--auth-scope");
726
726
  let authScope = null;
727
727
  if (hasExplicitAuthScope) {
@@ -762,14 +762,14 @@ async function handleStatus(args) {
762
762
  };
763
763
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
764
764
  }
765
- const apiKey = authScope === "folder" ? _chunkNGB2VSGBjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkNGB2VSGBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkNGB2VSGBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
765
+ const apiKey = authScope === "folder" ? _chunkL5JD66EFjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkL5JD66EFjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkL5JD66EFjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
766
766
  if (!apiKey) {
767
767
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
768
768
  baseUrl,
769
769
  _nullishCoalesce(authScope, () => ( void 0))
770
770
  );
771
771
  if (pendingClaim) {
772
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
772
+ _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
773
773
  {
774
774
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
775
775
  status: "pending",
@@ -799,7 +799,7 @@ async function handleStatus(args) {
799
799
  );
800
800
  return EXIT_OK;
801
801
  }
802
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
802
+ _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
803
803
  {
804
804
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
805
805
  status: "not connected",
@@ -832,7 +832,7 @@ async function handleStatus(args) {
832
832
  }
833
833
  );
834
834
  if (status === 401 || status === 403) {
835
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
835
+ _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
836
836
  {
837
837
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
838
838
  status: "unauthorized",
@@ -859,7 +859,7 @@ async function handleStatus(args) {
859
859
  console.error(`Auth status error (status ${status}).`);
860
860
  return EXIT_SERVER;
861
861
  }
862
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkNGB2VSGBjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
862
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkL5JD66EFjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
863
863
  clearSatisfiedPendingClaim(
864
864
  baseUrl,
865
865
  resolvedAuthScope,
@@ -887,28 +887,28 @@ async function handleStatus(args) {
887
887
  if (apiKeyResp) {
888
888
  saveEnvValues(
889
889
  {
890
- [_chunkNGB2VSGBjs.HOST_URL_ENV]: baseUrl,
891
- [_chunkNGB2VSGBjs.API_KEY_ENV]: apiKeyResp,
890
+ [_chunkL5JD66EFjs.HOST_URL_ENV]: baseUrl,
891
+ [_chunkL5JD66EFjs.API_KEY_ENV]: apiKeyResp,
892
892
  ...activeOrgEnvValues(data)
893
893
  },
894
894
  baseUrl,
895
895
  resolvedAuthScope
896
896
  );
897
897
  if (resolvedAuthScope === "folder") {
898
- const target = _chunkNGB2VSGBjs.resolveProjectPinTarget.call(void 0, );
898
+ const target = _chunkL5JD66EFjs.resolveProjectPinTarget.call(void 0, );
899
899
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
900
900
  } else {
901
901
  savedApiKeyPath = envFilePath(baseUrl);
902
902
  }
903
903
  }
904
- } else if (resolvedAuthScope === "folder" || _chunkNGB2VSGBjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
905
- saveEnvValues(_chunkNGB2VSGBjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
904
+ } else if (resolvedAuthScope === "folder" || _chunkL5JD66EFjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
905
+ saveEnvValues(_chunkL5JD66EFjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
906
906
  }
907
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
907
+ _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
908
908
  {
909
909
  ...payload,
910
- ..._chunk7MD36QLKjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
911
- command_context: _chunkNGB2VSGBjs.resolveCliCommandContext.call(void 0,
910
+ ..._chunk5H7BLMNHjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
911
+ command_context: _chunkL5JD66EFjs.resolveCliCommandContext.call(void 0,
912
912
  { baseUrl, apiKey },
913
913
  resolvedAuthScope
914
914
  )
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkCJF7AFBDjs = require('./chunk-CJF7AFBD.js');
3
+ var _chunkUP2CQTGXjs = require('./chunk-UP2CQTGX.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
7
+ var _chunkUVFR7FW4js = require('./chunk-UVFR7FW4.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunk7MD36QLKjs = require('./chunk-7MD36QLK.js');
12
+ var _chunk5H7BLMNHjs = require('./chunk-5H7BLMNH.js');
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
 
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
55
55
  }
56
56
  function listClaudeSessionFiles() {
57
57
  const files = [];
58
- for (const root of _chunk7MD36QLKjs.claudeProjectsRoots.call(void 0, )) {
58
+ for (const root of _chunk5H7BLMNHjs.claudeProjectsRoots.call(void 0, )) {
59
59
  files.push(...listClaudeSessionFilesIn(root));
60
60
  }
61
61
  return files;
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
147
147
  const newestFirst = listSessionFiles(agent).sort(
148
148
  (a, b) => b.mtimeMs - a.mtimeMs
149
149
  );
150
- const sessionId = _chunk7MD36QLKjs.agentSessionIdFromEnvironment.call(void 0,
150
+ const sessionId = _chunk5H7BLMNHjs.agentSessionIdFromEnvironment.call(void 0,
151
151
  process.env,
152
152
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
153
153
  );
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
156
156
  (candidate) => candidate.sessionId === sessionId
157
157
  );
158
158
  if (named) return named;
159
- const cowork = agent === "codex" ? null : _chunk7MD36QLKjs.coworkTranscriptFromEnvironment.call(void 0, );
159
+ const cowork = agent === "codex" ? null : _chunk5H7BLMNHjs.coworkTranscriptFromEnvironment.call(void 0, );
160
160
  const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
161
161
  if (cowork && coworkStat) {
162
162
  return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
166
166
  ), () => ( newestFirst[0])), () => ( null));
167
167
  }
168
168
  function feedbackAgentSessionId(agentRuntime) {
169
- return _nullishCoalesce(_chunk7MD36QLKjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk7MD36QLKjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
169
+ return _nullishCoalesce(_chunk5H7BLMNHjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk5H7BLMNHjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
170
170
  }
171
171
  function sessionStartedInDirectory(candidate, cwd) {
172
172
  if (candidate.agent === "claude") {
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
215
215
  return null;
216
216
  }
217
217
  function sessionSearchDescription(agent) {
218
- const claude = _chunk7MD36QLKjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
218
+ const claude = _chunk5H7BLMNHjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
219
219
  if (agent === "claude") return claude;
220
220
  if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
221
221
  return `${claude} or ~/.codex/sessions/**/*.jsonl`;
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
472
472
  return { encodedContent: encoded, needsChunking: true };
473
473
  }
474
474
  async function uploadPayload(path, payload) {
475
- const { http } = _chunkPWQ3IUD4js.getAuthedHttpClient.call(void 0, );
475
+ const { http } = _chunkUVFR7FW4js.getAuthedHttpClient.call(void 0, );
476
476
  return await http.post(path, payload);
477
477
  }
478
478
  async function uploadChunkedSessions(sessions, options) {
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
550
550
  return target.sessionId;
551
551
  }
552
552
  async function handleSessionsSend(options) {
553
- if (_chunkCJF7AFBDjs.rejectRestrictedFeedback.call(void 0, options)) return;
553
+ if (_chunkUP2CQTGXjs.rejectRestrictedFeedback.call(void 0, options)) return;
554
554
  const rating = parseSessionRating(options.rating);
555
555
  if (options.file) {
556
556
  const filePath = _path.resolve.call(void 0, options.file);
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
562
562
  filename: _path.basename.call(void 0, filePath),
563
563
  ...rating ? { rating } : {}
564
564
  });
565
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
565
+ _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
566
566
  {
567
567
  ...response2,
568
568
  ok: true,
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
594
594
  labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
595
595
  });
596
596
  const sessionIds = built.map((session) => session.sessionId);
597
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
597
+ _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
598
598
  {
599
599
  ...response,
600
600
  ok: true,
@@ -702,7 +702,7 @@ ${refreshMeta}
702
702
  </body>
703
703
  </html>`;
704
704
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
705
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
705
+ _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
706
706
  {
707
707
  ok: true,
708
708
  file: outputPath,
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkN6LM2Q6Vjs = require('./chunk-N6LM2Q6V.js');
3
+ var _chunkJY2EJQL5js = require('./chunk-JY2EJQL5.js');
4
4
 
5
5
 
6
- var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
6
+ var _chunkUVFR7FW4js = require('./chunk-UVFR7FW4.js');
7
7
 
8
8
  // src/cli/commands/integration-commands.ts
9
9
  var _commander = require('commander');
10
10
  var _fs = require('fs');
11
11
  var _path = require('path');
12
12
  function printIntegrationResult(value, json, lines, nextCursor) {
13
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
13
+ _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
14
14
  {},
15
15
  {
16
16
  json: json || void 0,
@@ -26,7 +26,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
26
26
  return parent.command("balance <provider>", { hidden }).description(
27
27
  "Read a fresh balance using this org\u2019s own provider connection (LeadMagic)."
28
28
  ).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
29
- const balance = await new (0, _chunkN6LM2Q6Vjs.DeeplineClient)().getIntegrationBalance(
29
+ const balance = await new (0, _chunkJY2EJQL5js.DeeplineClient)().getIntegrationBalance(
30
30
  provider
31
31
  );
32
32
  printIntegrationResult(balance, options.json, [
@@ -40,7 +40,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
40
40
  "List teammates\u2019 personal connections for this provider"
41
41
  ).option("--cursor <cursor>", "Read the next page of members").action(
42
42
  async (options) => {
43
- const client = new (0, _chunkN6LM2Q6Vjs.DeeplineClient)();
43
+ const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
44
44
  if (name === "list" && options.cursor && !options.members)
45
45
  throw new Error(
46
46
  "Use --cursor with --members to continue a member page."
@@ -82,7 +82,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
82
82
  }
83
83
  function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
84
84
  return parent.command("hubspot-members", { hidden }).description("List personal HubSpot connection status for org members.").option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
85
- const page = await new (0, _chunkN6LM2Q6Vjs.DeeplineClient)().listPersonalHubSpotMembers(
85
+ const page = await new (0, _chunkJY2EJQL5js.DeeplineClient)().listPersonalHubSpotMembers(
86
86
  options.cursor
87
87
  );
88
88
  const rows = page.members.map((member) => {
@@ -108,7 +108,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
108
108
  );
109
109
  if (options.autoName && (action !== "connect" || options.name !== void 0))
110
110
  throw new Error("Use --auto-name with connect and omit --name.");
111
- const client = new (0, _chunkN6LM2Q6Vjs.DeeplineClient)();
111
+ const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
112
112
  const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
113
113
  const row = connections.find(
114
114
  (connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
@@ -141,7 +141,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
141
141
  "Print the proposed change without contacting Google or saving it"
142
142
  ).option("--json", "Print the result as JSON").action(
143
143
  async (action, options) => {
144
- const client = new (0, _chunkN6LM2Q6Vjs.DeeplineClient)();
144
+ const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
145
145
  if (action === "list") {
146
146
  const inventory = await client.listCalendarAvailabilityConnections();
147
147
  const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
@@ -291,7 +291,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
291
291
  }
292
292
  function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
293
293
  return parent.command("availability-calendars", { hidden }).description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
294
- const page = await new (0, _chunkN6LM2Q6Vjs.DeeplineClient)().listAvailabilityCalendars(
294
+ const page = await new (0, _chunkJY2EJQL5js.DeeplineClient)().listAvailabilityCalendars(
295
295
  options.cursor
296
296
  );
297
297
  printIntegrationResult(page, options.json, [
@@ -335,7 +335,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
335
335
  printSetupPlan({ provider, action: "connect_link" }, options.json);
336
336
  return;
337
337
  }
338
- const link = await new (0, _chunkN6LM2Q6Vjs.DeeplineClient)().getIntegrationConnectLink(
338
+ const link = await new (0, _chunkJY2EJQL5js.DeeplineClient)().getIntegrationConnectLink(
339
339
  provider
340
340
  );
341
341
  printIntegrationResult(link, options.json, [link.connect_url]);
@@ -362,7 +362,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
362
362
  );
363
363
  return;
364
364
  }
365
- const result2 = await new (0, _chunkN6LM2Q6Vjs.DeeplineClient)().startIntegrationOAuth(
365
+ const result2 = await new (0, _chunkJY2EJQL5js.DeeplineClient)().startIntegrationOAuth(
366
366
  provider,
367
367
  {
368
368
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -412,7 +412,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
412
412
  "--credentials-file must contain a nonempty JSON object of string credential values."
413
413
  );
414
414
  }
415
- const result = await new (0, _chunkN6LM2Q6Vjs.DeeplineClient)().setIntegrationCredentials(
415
+ const result = await new (0, _chunkJY2EJQL5js.DeeplineClient)().setIntegrationCredentials(
416
416
  provider,
417
417
  credentials,
418
418
  { expectedConnectionId: options.expectedConnectionId }
@@ -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.556",
52
+ version: "0.3.557",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "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."