deepline 0.3.493 → 0.3.494

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 (155) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +2 -2
  2. package/dist/bundling-sources/sdk/src/types.ts +5 -4
  3. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +15 -0
  4. package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +101 -3
  5. package/dist/cli/{auth-3NAY3AST.mjs → auth-6X5YXMFN.mjs} +5 -5
  6. package/dist/cli/auth-RWLCLMDY.js +43 -0
  7. package/dist/cli/{billing-FSB4BBBO.js → billing-5F5PZB77.js} +79 -79
  8. package/dist/cli/{billing-SBWQCC7B.mjs → billing-IN74SDSC.mjs} +6 -6
  9. package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
  10. package/dist/cli/{chunk-MLEUOTEQ.js → chunk-3KVFOKPR.js} +53 -53
  11. package/dist/cli/{chunk-IOBPR2VO.js → chunk-4A5WXQJK.js} +16 -16
  12. package/dist/cli/{chunk-NALJJTPS.mjs → chunk-4RWH4LRQ.mjs} +5 -5
  13. package/dist/cli/{chunk-UCMY2SO2.js → chunk-4ZKZS43N.js} +3 -3
  14. package/dist/cli/{chunk-IJOHWGPF.js → chunk-5WYH2LAP.js} +6 -6
  15. package/dist/cli/{chunk-2BRTYIAH.mjs → chunk-65NMOP4T.mjs} +3 -3
  16. package/dist/cli/{chunk-VFHIYWMC.mjs → chunk-6DMLWM7L.mjs} +2 -2
  17. package/dist/cli/{chunk-3QGUWB6E.mjs → chunk-6XZR2642.mjs} +8 -7
  18. package/dist/cli/{chunk-XQX476QK.js → chunk-7B7A36XZ.js} +9 -9
  19. package/dist/cli/{chunk-DWJ4RXSA.js → chunk-AARXOBVD.js} +1 -0
  20. package/dist/cli/{chunk-ZVW7EWTC.mjs → chunk-BLHQRETG.mjs} +184 -184
  21. package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
  22. package/dist/cli/{chunk-LGTZYI5B.js → chunk-BNI653WN.js} +21 -21
  23. package/dist/cli/{chunk-2H4OFVR5.js → chunk-BU5Y7HOD.js} +5 -5
  24. package/dist/cli/{chunk-KGDDQMI7.mjs → chunk-C5R3UH5V.mjs} +28 -1
  25. package/dist/cli/{chunk-NPNAEPY4.js → chunk-CAWOSHEC.js} +26 -26
  26. package/dist/cli/{chunk-HTUSTPP4.js → chunk-CK5MA6S6.js} +7 -7
  27. package/dist/cli/{chunk-EBAS3UT2.mjs → chunk-DKKAJ3U2.mjs} +5 -5
  28. package/dist/cli/{chunk-4IJFQV3O.mjs → chunk-EG3OSUBO.mjs} +1 -1
  29. package/dist/cli/{chunk-TNQOR6XQ.mjs → chunk-FAT6CUZK.mjs} +1 -1
  30. package/dist/cli/{chunk-TIFRRLZT.js → chunk-GBICEYUA.js} +6 -6
  31. package/dist/cli/{chunk-XLE7KXE7.js → chunk-GDNQXLBM.js} +2 -2
  32. package/dist/cli/{chunk-AWMCZAUR.js → chunk-GLDBMKTV.js} +3 -3
  33. package/dist/cli/{chunk-GSC35TPZ.mjs → chunk-GNSGDIA4.mjs} +2 -2
  34. package/dist/cli/{chunk-7HABWOMB.js → chunk-GSCCDGGT.js} +259 -259
  35. package/dist/cli/{chunk-IRDYBMA7.mjs → chunk-H46X7YDU.mjs} +1 -0
  36. package/dist/cli/{chunk-NWIDPT7H.js → chunk-HINVMRGQ.js} +4 -4
  37. package/dist/cli/{chunk-C2MRDPA5.js → chunk-I42EOZKQ.js} +32 -5
  38. package/dist/cli/{chunk-HLM2UFQ5.mjs → chunk-IPWYDANJ.mjs} +1 -1
  39. package/dist/cli/{chunk-5DIZ2G74.mjs → chunk-IZJSX3SZ.mjs} +2 -2
  40. package/dist/cli/{chunk-WTFI7BVH.mjs → chunk-J2HOVZOE.mjs} +1 -1
  41. package/dist/cli/{chunk-IOMEJKGK.js → chunk-J3UHNUWI.js} +2 -2
  42. package/dist/cli/{chunk-4NIGNT7X.mjs → chunk-KR2XEI5T.mjs} +1 -1
  43. package/dist/cli/{chunk-5WOPBX3H.mjs → chunk-KSHAFYYG.mjs} +1 -1
  44. package/dist/cli/{chunk-DYP27IWC.mjs → chunk-KVCQL6SP.mjs} +4 -4
  45. package/dist/cli/{chunk-SXD2EYAH.mjs → chunk-L2P2XRPO.mjs} +37 -5
  46. package/dist/cli/{chunk-67ZG7XZV.mjs → chunk-L4QPBQUX.mjs} +2 -2
  47. package/dist/cli/{chunk-QTPS5RLG.js → chunk-L6KA4ENU.js} +45 -13
  48. package/dist/cli/{chunk-ZQH4TXM2.mjs → chunk-L6L57RSG.mjs} +2 -2
  49. package/dist/cli/{chunk-Y3NN2UAF.mjs → chunk-MWZNMWR2.mjs} +2 -2
  50. package/dist/cli/{chunk-2IHGVAGT.mjs → chunk-ODWTFVE4.mjs} +2 -2
  51. package/dist/cli/{chunk-KKSKYZO4.mjs → chunk-QOEI42IU.mjs} +2 -2
  52. package/dist/cli/{chunk-WCZFCOMZ.js → chunk-QSRWBOPV.js} +11 -10
  53. package/dist/cli/{chunk-E5ILCMKQ.mjs → chunk-RPFNIMUO.mjs} +1 -1
  54. package/dist/cli/{chunk-EFO5GVYS.js → chunk-S3XQH7DW.js} +2 -2
  55. package/dist/cli/{chunk-IJJ6D5WL.mjs → chunk-TLQXN4ZZ.mjs} +11 -11
  56. package/dist/cli/{chunk-KCDZWS2B.js → chunk-USWLB4KV.js} +231 -231
  57. package/dist/cli/{chunk-2NGIBJM2.js → chunk-VMPM2FKT.js} +8 -8
  58. package/dist/cli/{chunk-ZVXB7OU7.mjs → chunk-WCZBIE5L.mjs} +1 -1
  59. package/dist/cli/{chunk-EYG336YV.js → chunk-WP45PUPW.js} +41 -41
  60. package/dist/cli/{chunk-AGTXL6LZ.js → chunk-X6HIIHQO.js} +5 -5
  61. package/dist/cli/{chunk-JO2JZUBR.js → chunk-Y4GRL533.js} +3 -3
  62. package/dist/cli/{chunk-2I7VN65H.js → chunk-ZZD245Z2.js} +7 -7
  63. package/dist/cli/command-docs.js +2 -2
  64. package/dist/cli/command-docs.mjs +1 -1
  65. package/dist/cli/{csv-DKYZE2KM.js → csv-QD7JJGSP.js} +13 -13
  66. package/dist/cli/{csv-XR22YQXT.mjs → csv-UBW4ID5D.mjs} +4 -4
  67. package/dist/cli/{db-RNYRTCMV.js → db-AARR3WYD.js} +27 -27
  68. package/dist/cli/{db-EOKG36YN.mjs → db-QFDXKIVD.mjs} +6 -6
  69. package/dist/cli/{describe-ICFXOQBW.mjs → describe-OBVIAC2H.mjs} +20 -20
  70. package/dist/cli/describe-RYJ6HDYD.js +50 -0
  71. package/dist/cli/describe-core.d.mts +5 -11
  72. package/dist/cli/describe-core.d.ts +5 -11
  73. package/dist/cli/describe-core.js +4 -4
  74. package/dist/cli/describe-core.mjs +3 -3
  75. package/dist/cli/{executions-3RAOACNS.mjs → executions-IZYUDYTZ.mjs} +6 -6
  76. package/dist/cli/{executions-OBWPSWH7.js → executions-KXY7KMZY.js} +8 -8
  77. package/dist/cli/{feedback-6GPEUBLF.js → feedback-3334HBPD.js} +8 -8
  78. package/dist/cli/{feedback-6EQRVBKF.mjs → feedback-IVCVBERN.mjs} +4 -4
  79. package/dist/cli/git-4VLYFHNU.js +25 -0
  80. package/dist/cli/{git-CVQ24DTR.mjs → git-JHNVET5A.mjs} +5 -5
  81. package/dist/cli/index.js +141 -141
  82. package/dist/cli/index.mjs +41 -41
  83. package/dist/cli/{legacy-noops-XPOATG5V.js → legacy-noops-DBA32JCV.js} +8 -8
  84. package/dist/cli/{legacy-noops-QULJZYNH.mjs → legacy-noops-WGVBUOCC.mjs} +5 -5
  85. package/dist/cli/{monitors-OJ4CMREE.js → monitors-GHWZ5AZS.js} +91 -91
  86. package/dist/cli/{monitors-AFT5YJPZ.mjs → monitors-ZGANC7JY.mjs} +7 -7
  87. package/dist/cli/{org-WHKNXANG.mjs → org-CUS42N2T.mjs} +6 -6
  88. package/dist/cli/{org-RKT52CSL.js → org-S7JWP264.js} +72 -72
  89. package/dist/cli/{pages-EEAQFGVD.mjs → pages-IH56T6L6.mjs} +6 -6
  90. package/dist/cli/{pages-SOE3R667.js → pages-QXRZDEJW.js} +17 -17
  91. package/dist/cli/{play-OTJJ4E4T.js → play-4C5PYS62.js} +314 -314
  92. package/dist/cli/{play-LXFWHUBP.mjs → play-Z65ZFOQH.mjs} +17 -17
  93. package/dist/cli/{providers-U3CPKTMM.mjs → providers-FSZSJX4Z.mjs} +6 -6
  94. package/dist/cli/{providers-RU4HIAT3.js → providers-XYQGYF3O.js} +9 -9
  95. package/dist/cli/{quickstart-75AO2AJC.mjs → quickstart-DHWVE32I.mjs} +4 -4
  96. package/dist/cli/{quickstart-N72IVA2Y.js → quickstart-ZA25RJT3.js} +6 -6
  97. package/dist/cli/{run-MMYES3IW.js → run-5MP6LEHM.js} +40 -40
  98. package/dist/cli/{run-IGWFL6WH.mjs → run-WRPPEPLG.mjs} +25 -25
  99. package/dist/cli/search-4SQFVNTB.js +32 -0
  100. package/dist/cli/{search-FIYESBLZ.mjs → search-A6NVJPKX.mjs} +7 -7
  101. package/dist/cli/{search-output-3I5KSW36.mjs → search-output-PAOUMVXY.mjs} +4 -4
  102. package/dist/cli/{search-output-2FXN4ZWD.js → search-output-YA6TXWGO.js} +6 -6
  103. package/dist/cli/{secrets-HCZQ6JNP.js → secrets-AZYOGH3I.js} +15 -15
  104. package/dist/cli/{secrets-O7IUQ3VT.mjs → secrets-ZGF7JOBI.mjs} +6 -6
  105. package/dist/cli/{sessions-5AYTT4IW.js → sessions-GCIN5VXT.js} +6 -6
  106. package/dist/cli/{sessions-KY7A3EZO.mjs → sessions-RNEAXZPV.mjs} +5 -5
  107. package/dist/cli/{settings-P4VFYWJK.js → settings-LMEZNLBB.js} +78 -78
  108. package/dist/cli/{settings-WSMRR2GS.mjs → settings-NO5KXQJF.mjs} +11 -11
  109. package/dist/cli/{setup-YTVKVQC7.mjs → setup-GCYB4IFS.mjs} +9 -9
  110. package/dist/cli/{setup-J7CA3EJL.js → setup-XKTZPYYH.js} +49 -49
  111. package/dist/cli/{skills-W5WY764N.mjs → skills-TY4HHIKH.mjs} +7 -7
  112. package/dist/cli/skills-V4APQA2I.js +36 -0
  113. package/dist/cli/tools-HKQLQ7HT.js +57 -0
  114. package/dist/cli/{tools-YECI6N3N.mjs → tools-RDTHHYJ3.mjs} +18 -18
  115. package/dist/cli/{update-BIFBIEII.mjs → update-BRLLTTCS.mjs} +9 -9
  116. package/dist/cli/update-Z4MUAHWM.js +34 -0
  117. package/dist/cli/{workflow-XZVDNARC.mjs → workflow-F72EVZWM.mjs} +7 -7
  118. package/dist/cli/{workflow-D2TUFFH6.js → workflow-YHA4WE3K.js} +17 -17
  119. package/dist/{client-BDB_VbE4.d.ts → client-97yTcdLl.d.ts} +1 -1
  120. package/dist/{client-CNzJ1LTF.d.mts → client-CFo9qalW.d.mts} +1 -1
  121. package/dist/{client-core-xEa9x3pl.d.ts → client-core-BRZrY13B.d.ts} +5 -5
  122. package/dist/{client-core-CSv3DlPD.d.mts → client-core-Dl6xgfLq.d.mts} +5 -5
  123. package/dist/{compiler-manifest-BFTwq1HI.d.ts → compiler-manifest-CPEF48NM.d.mts} +91 -0
  124. package/dist/{compiler-manifest-BFTwq1HI.d.mts → compiler-manifest-CPEF48NM.d.ts} +91 -0
  125. package/dist/{errors-c3pMsylw.d.ts → errors-B-PJXveg.d.ts} +1 -1
  126. package/dist/{errors-w31ybrQM.d.mts → errors-BWbPzqwo.d.mts} +1 -1
  127. package/dist/{index-DvNtxucX.d.mts → index-BJ8AA1F9.d.mts} +1 -1
  128. package/dist/{index-CQ-15-QL.d.ts → index-CvVxPpE8.d.ts} +1 -1
  129. package/dist/index.d.mts +7 -7
  130. package/dist/index.d.ts +7 -7
  131. package/dist/index.js +26 -18
  132. package/dist/index.mjs +15 -7
  133. package/dist/install-integrity.json +116 -116
  134. package/dist/plays/bundle-play-file.d.mts +3 -3
  135. package/dist/plays/bundle-play-file.d.ts +3 -3
  136. package/dist/plays/play-description.d.mts +2 -2
  137. package/dist/plays/play-description.d.ts +2 -2
  138. package/dist/plays/run-request.d.mts +2 -2
  139. package/dist/plays/run-request.d.ts +2 -2
  140. package/dist/release.d.mts +2 -2
  141. package/dist/release.d.ts +2 -2
  142. package/dist/release.js +2 -2
  143. package/dist/release.mjs +1 -1
  144. package/dist/server.d.mts +4 -4
  145. package/dist/server.d.ts +4 -4
  146. package/dist/server.js +5 -5
  147. package/dist/server.mjs +3 -3
  148. package/package.json +1 -1
  149. package/dist/cli/auth-KYQLDI6V.js +0 -43
  150. package/dist/cli/describe-RS75I33X.js +0 -50
  151. package/dist/cli/git-DEFE4SSB.js +0 -25
  152. package/dist/cli/search-EQURI7SZ.js +0 -32
  153. package/dist/cli/skills-KKPEGLAR.js +0 -36
  154. package/dist/cli/tools-65Y4QTW6.js +0 -57
  155. package/dist/cli/update-WDG7VFOW.js +0 -34
@@ -388,6 +388,7 @@ Examples:
388
388
  deepline search "50 company domains -> each one's lead investors"
389
389
  deepline search "company domain -> contacts in sales leadership" --type plays
390
390
  deepline search "upload a contact list as a Meta ads audience"
391
+ deepline search "how do webhooks trigger a play" --type docs
391
392
  ]]
392
393
  [[mcp:
393
394
  query "first name, last name and company domain -> verified work email"
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
16
16
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
17
17
 
18
18
 
19
- var _chunkEFO5GVYSjs = require('./chunk-EFO5GVYS.js');
19
+ var _chunkS3XQH7DWjs = require('./chunk-S3XQH7DW.js');
20
20
 
21
21
  // src/version.ts
22
- var SDK_VERSION = _chunkEFO5GVYSjs.SDK_RELEASE.version;
23
- var SDK_API_MAJOR = _chunkEFO5GVYSjs.SDK_RELEASE.contracts.api.currentMajor;
24
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkEFO5GVYSjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
22
+ var SDK_VERSION = _chunkS3XQH7DWjs.SDK_RELEASE.version;
23
+ var SDK_API_MAJOR = _chunkS3XQH7DWjs.SDK_RELEASE.contracts.api.currentMajor;
24
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkS3XQH7DWjs.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');
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkTIFRRLZTjs = require('./chunk-TIFRRLZT.js');
6
+ var _chunkGBICEYUAjs = require('./chunk-GBICEYUA.js');
7
7
 
8
8
 
9
9
 
@@ -31,7 +31,7 @@ var VIEWS = {
31
31
  details: model,
32
32
  lines: [
33
33
  ...unlisted,
34
- ..._chunkTIFRRLZTjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
34
+ ..._chunkGBICEYUAjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
35
35
  ]
36
36
  };
37
37
  },
@@ -82,6 +82,13 @@ async function describeFeature(tool, feature, value, dependencies) {
82
82
  }
83
83
 
84
84
  // src/cli/describe-core.ts
85
+ var DOCS_URL = "https://deepline.com/docs";
86
+ var SKILLS_URL = "https://code.deepline.com/.well-known/skills";
87
+ function docUrl(path) {
88
+ if (!path.startsWith("skills/")) return `${DOCS_URL}/${path}`;
89
+ const skillPath = path.slice("skills/".length);
90
+ return skillPath.includes("/") ? `${SKILLS_URL}/${skillPath}.md` : `${SKILLS_URL}/${skillPath}/SKILL.md`;
91
+ }
85
92
  var FILTER_OF = {
86
93
  tool: "tools",
87
94
  monitor_type: "monitors",
@@ -102,6 +109,16 @@ async function found(lookup) {
102
109
  function describeLookupsFor(client) {
103
110
  return {
104
111
  play: (reference) => found(client.describePlay(reference)),
112
+ doc: async (url) => {
113
+ const markdownUrl = url.endsWith(".md") ? url : `${url}.md`;
114
+ const response = await fetch(markdownUrl);
115
+ if (response.status === 404) return null;
116
+ if (!response.ok)
117
+ throw new Error(
118
+ `Could not read ${markdownUrl}: HTTP ${response.status}`
119
+ );
120
+ return response.text();
121
+ },
105
122
  tool: (name) => found(client.getTool(name)),
106
123
  describeModel: (model) => client.describeModel(model),
107
124
  baseUrl: client.baseUrl
@@ -131,18 +148,18 @@ async function findNamed(reference, options, lookups) {
131
148
  const features = toolFeatures(record);
132
149
  return {
133
150
  described: {
134
- ..._chunkTIFRRLZTjs.describedTool.call(void 0, record, name),
151
+ ..._chunkGBICEYUAjs.describedTool.call(void 0, record, name),
135
152
  // Shown when the tool runs only on your own credentials; otherwise
136
153
  // it is a feature, described with --feature byok.
137
154
  ..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
138
155
  ...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
139
156
  },
140
- record: _chunkTIFRRLZTjs.toolMetadataJsonForDescribe.call(void 0,
157
+ record: _chunkGBICEYUAjs.toolMetadataJsonForDescribe.call(void 0,
141
158
  record,
142
159
  name,
143
160
  lookups.seedStarterScript
144
161
  ),
145
- schemas: _chunkTIFRRLZTjs.publicToolSchemas.call(void 0, record),
162
+ schemas: _chunkGBICEYUAjs.publicToolSchemas.call(void 0, record),
146
163
  feature: (featureName, value) => {
147
164
  const feature = features.find(({ name: name2 }) => name2 === featureName);
148
165
  return feature ? describeFeature(record, feature, value, {
@@ -168,6 +185,16 @@ async function findNamed(reference, options, lookups) {
168
185
  return { chosen, shadowed };
169
186
  }
170
187
  async function describeName(name, options, lookups) {
188
+ if (name.startsWith("docs/") && !options.kinds) {
189
+ const url = docUrl(name.slice("docs/".length));
190
+ const markdown = await lookups.doc(url);
191
+ if (markdown === null) return { status: "missing" };
192
+ return {
193
+ status: "described",
194
+ envelope: { kind: "doc", id: name, url, markdown },
195
+ lines: [`${name} [doc]`, url, "", markdown]
196
+ };
197
+ }
171
198
  const { chosen, shadowed } = await findNamed(name, options, lookups);
172
199
  if (!chosen) return { status: "missing" };
173
200
  const { described, record } = chosen;
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  csvSafeJsonString,
8
8
  csvStringFromRows
9
- } from "./chunk-VFHIYWMC.mjs";
9
+ } from "./chunk-6DMLWM7L.mjs";
10
10
 
11
11
  // src/cli/describe-options.ts
12
12
  function addDescribeOptions(command, options = {}) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PlayClient
3
- } from "./chunk-WTFI7BVH.mjs";
3
+ } from "./chunk-J2HOVZOE.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-4NIGNT7X.mjs";
7
+ } from "./chunk-KR2XEI5T.mjs";
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -31,7 +31,7 @@ import {
31
31
  RETAINED_PIPELINE_RECEIVERS_HEADER,
32
32
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
33
33
  SDK_API_MAJOR
34
- } from "./chunk-TNQOR6XQ.mjs";
34
+ } from "./chunk-FAT6CUZK.mjs";
35
35
  import {
36
36
  CustomerDbQueryOutcomeUnknownError
37
37
  } from "./chunk-4QF2K7TM.mjs";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
3
+ var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunk2I7VN65Hjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkZZD245Z2js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-TNQOR6XQ.mjs";
4
+ } from "./chunk-FAT6CUZK.mjs";
5
5
  import {
6
6
  ConfigError
7
7
  } from "./chunk-4QF2K7TM.mjs";
@@ -16,7 +16,7 @@ import {
16
16
  JOB_CHANGE_JSON_SCHEMA,
17
17
  fieldOfName,
18
18
  isDeeplineExtractorTarget
19
- } from "./chunk-3RGWTKK3.mjs";
19
+ } from "./chunk-2GEYN3H4.mjs";
20
20
 
21
21
  // src/cli/described-tool.ts
22
22
  function isPlayLikeTool(tool) {
@@ -11,20 +11,20 @@ import {
11
11
  skillsInstallLeasePath,
12
12
  skillsSourceUrl,
13
13
  syncSdkSkillsIfNeeded
14
- } from "./chunk-ZVW7EWTC.mjs";
14
+ } from "./chunk-BLHQRETG.mjs";
15
15
  import {
16
16
  printCommandEnvelope
17
- } from "./chunk-VFHIYWMC.mjs";
17
+ } from "./chunk-6DMLWM7L.mjs";
18
18
  import {
19
19
  autoDetectBaseUrl,
20
20
  ensureProjectPrivatePathsIgnored,
21
21
  resolveProjectPinTarget,
22
22
  sdkCliStateDirPath
23
- } from "./chunk-4NIGNT7X.mjs";
23
+ } from "./chunk-KR2XEI5T.mjs";
24
24
  import {
25
25
  SDK_VERSION,
26
26
  detectAgentRuntime
27
- } from "./chunk-TNQOR6XQ.mjs";
27
+ } from "./chunk-FAT6CUZK.mjs";
28
28
  import {
29
29
  DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
30
30
  } from "./chunk-5JPKRDFC.mjs";
@@ -1,27 +1,55 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-IJJ6D5WL.mjs";
3
+ } from "./chunk-TLQXN4ZZ.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-HLM2UFQ5.mjs";
6
+ } from "./chunk-IPWYDANJ.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
10
10
  findNamed
11
- } from "./chunk-KGDDQMI7.mjs";
11
+ } from "./chunk-C5R3UH5V.mjs";
12
12
  import {
13
13
  SCHEMA_LINE_LIMIT
14
14
  } from "./chunk-SAW3FBCA.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-GSC35TPZ.mjs";
17
+ } from "./chunk-GNSGDIA4.mjs";
18
+ import {
19
+ failureReportHeaders,
20
+ isFailureReportingDisabled
21
+ } from "./chunk-BLHQRETG.mjs";
18
22
  import {
19
23
  printCommandEnvelope
20
- } from "./chunk-VFHIYWMC.mjs";
24
+ } from "./chunk-6DMLWM7L.mjs";
25
+ import {
26
+ autoDetectBaseUrl,
27
+ resolveApiKeyForBaseUrl
28
+ } from "./chunk-KR2XEI5T.mjs";
21
29
 
22
30
  // src/cli/commands/describe.ts
23
31
  import { writeFileSync } from "fs";
24
32
  import { resolve } from "path";
33
+
34
+ // src/cli/doc-read-reporting.ts
35
+ var REPORT_TIMEOUT_MS = 1e3;
36
+ async function reportDocRead(docId) {
37
+ if (isFailureReportingDisabled()) return;
38
+ try {
39
+ const baseUrl = autoDetectBaseUrl().replace(/\/$/, "");
40
+ const apiKey = resolveApiKeyForBaseUrl(baseUrl);
41
+ if (!apiKey) return;
42
+ await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
43
+ method: "POST",
44
+ headers: failureReportHeaders(apiKey),
45
+ body: JSON.stringify({ doc_id: docId }),
46
+ signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
47
+ });
48
+ } catch {
49
+ }
50
+ }
51
+
52
+ // src/cli/commands/describe.ts
25
53
  function nothingNamed(name) {
26
54
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
27
55
  }
@@ -46,6 +74,7 @@ async function describeAnything(name, options, onMissing) {
46
74
  console.error(outcome.message);
47
75
  return outcome.exitCode;
48
76
  }
77
+ if (outcome.envelope.kind === "doc") await reportDocRead(name);
49
78
  return deliver(outcome.envelope, outcome.lines, {
50
79
  json: options.json === true,
51
80
  out: options.out
@@ -80,6 +109,8 @@ What you can describe:
80
109
  Any id deepline search returns: a tool id, a monitor type id, or a play name
81
110
  or reference. You do not say which kind it is; tool ids, monitor type ids
82
111
  and prebuilt play names never overlap.
112
+ A docs/<path> id prints that documentation page as Markdown, and
113
+ docs/skills/<name> prints that skill.
83
114
 
84
115
  When a name is taken twice:
85
116
  A play your workspace created is shown instead of a Deepline tool, monitor
@@ -135,6 +166,7 @@ Older commands:
135
166
  Examples:
136
167
  deepline describe hunter_email_verifier
137
168
  deepline describe person-linkedin-to-email
169
+ deepline describe docs/sdk-v2/reference
138
170
  deepline describe my-play --prebuilt
139
171
  deepline describe ai_ark_people_search --full-schema
140
172
  deepline describe prebuilt/person-to-email-batch --web-url
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6QV42MC.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-WTFI7BVH.mjs";
6
+ } from "./chunk-J2HOVZOE.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
9
  } from "./chunk-DVQHG6AM.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-VFHIYWMC.mjs";
14
+ } from "./chunk-6DMLWM7L.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-HBL4PM5Q.mjs";
@@ -1,41 +1,69 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk7HABWOMBjs = require('./chunk-7HABWOMB.js');
3
+ var _chunkGSCCDGGTjs = require('./chunk-GSCCDGGT.js');
4
4
 
5
5
 
6
- var _chunkUCMY2SO2js = require('./chunk-UCMY2SO2.js');
6
+ var _chunk4ZKZS43Njs = require('./chunk-4ZKZS43N.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkC2MRDPA5js = require('./chunk-C2MRDPA5.js');
11
+ var _chunkI42EOZKQjs = require('./chunk-I42EOZKQ.js');
12
12
 
13
13
 
14
14
  var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
15
15
 
16
16
 
17
- var _chunk2H4OFVR5js = require('./chunk-2H4OFVR5.js');
17
+ var _chunkBU5Y7HODjs = require('./chunk-BU5Y7HOD.js');
18
18
 
19
19
 
20
- var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
20
+
21
+ var _chunkUSWLB4KVjs = require('./chunk-USWLB4KV.js');
22
+
23
+
24
+ var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
25
+
26
+
27
+
28
+ var _chunkY4GRL533js = require('./chunk-Y4GRL533.js');
21
29
 
22
30
  // src/cli/commands/describe.ts
23
31
  var _fs = require('fs');
24
32
  var _path = require('path');
33
+
34
+ // src/cli/doc-read-reporting.ts
35
+ var REPORT_TIMEOUT_MS = 1e3;
36
+ async function reportDocRead(docId) {
37
+ if (_chunkUSWLB4KVjs.isFailureReportingDisabled.call(void 0, )) return;
38
+ try {
39
+ const baseUrl = _chunkY4GRL533js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
40
+ const apiKey = _chunkY4GRL533js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
41
+ if (!apiKey) return;
42
+ await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
43
+ method: "POST",
44
+ headers: _chunkUSWLB4KVjs.failureReportHeaders.call(void 0, apiKey),
45
+ body: JSON.stringify({ doc_id: docId }),
46
+ signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
47
+ });
48
+ } catch (e) {
49
+ }
50
+ }
51
+
52
+ // src/cli/commands/describe.ts
25
53
  function nothingNamed(name) {
26
54
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
27
55
  }
28
56
  function findNamed2(name, options) {
29
- return _chunkC2MRDPA5js.findNamed.call(void 0, name, options, _chunkC2MRDPA5js.describeLookupsFor.call(void 0, new (0, _chunk2H4OFVR5js.DeeplineClient)()));
57
+ return _chunkI42EOZKQjs.findNamed.call(void 0, name, options, _chunkI42EOZKQjs.describeLookupsFor.call(void 0, new (0, _chunkBU5Y7HODjs.DeeplineClient)()));
30
58
  }
31
59
  async function describeAnything(name, options, onMissing) {
32
- const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
33
- const lookups = _chunkC2MRDPA5js.describeLookupsFor.call(void 0, client);
34
- const outcome = await _chunkC2MRDPA5js.describeName.call(void 0, name, options, {
60
+ const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
61
+ const lookups = _chunkI42EOZKQjs.describeLookupsFor.call(void 0, client);
62
+ const outcome = await _chunkI42EOZKQjs.describeName.call(void 0, name, options, {
35
63
  ...lookups,
36
64
  // `tools describe` has already fetched the tool for its compatibility check.
37
65
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
38
- seedStarterScript: _chunk7HABWOMBjs.seedToolListScript
66
+ seedStarterScript: _chunkGSCCDGGTjs.seedToolListScript
39
67
  });
40
68
  if (outcome.status === "missing") {
41
69
  if (onMissing) return onMissing();
@@ -46,6 +74,7 @@ async function describeAnything(name, options, onMissing) {
46
74
  console.error(outcome.message);
47
75
  return outcome.exitCode;
48
76
  }
77
+ if (outcome.envelope.kind === "doc") await reportDocRead(name);
49
78
  return deliver(outcome.envelope, outcome.lines, {
50
79
  json: options.json === true,
51
80
  out: options.out
@@ -60,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
60
89
  ` : text;
61
90
  _fs.writeFileSync.call(void 0, path, content);
62
91
  const bytes = Buffer.byteLength(content);
63
- _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
92
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
64
93
  { path, bytes },
65
94
  { json, text: `Wrote ${path} (${bytes} bytes)
66
95
  ` }
67
96
  );
68
97
  return 0;
69
98
  }
70
- _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, envelope, { json, text });
99
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0, envelope, { json, text });
71
100
  return 0;
72
101
  }
73
102
  function registerDescribeCommand(program) {
74
- _chunkUCMY2SO2js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
103
+ _chunk4ZKZS43Njs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
75
104
  "Describe anything search returns: a tool, monitor type, or play."
76
105
  ).addHelpText(
77
106
  "after",
@@ -80,6 +109,8 @@ What you can describe:
80
109
  Any id deepline search returns: a tool id, a monitor type id, or a play name
81
110
  or reference. You do not say which kind it is; tool ids, monitor type ids
82
111
  and prebuilt play names never overlap.
112
+ A docs/<path> id prints that documentation page as Markdown, and
113
+ docs/skills/<name> prints that skill.
83
114
 
84
115
  When a name is taken twice:
85
116
  A play your workspace created is shown instead of a Deepline tool, monitor
@@ -135,6 +166,7 @@ Older commands:
135
166
  Examples:
136
167
  deepline describe hunter_email_verifier
137
168
  deepline describe person-linkedin-to-email
169
+ deepline describe docs/sdk-v2/reference
138
170
  deepline describe my-play --prebuilt
139
171
  deepline describe ai_ark_people_search --full-schema
140
172
  deepline describe prebuilt/person-to-email-batch --web-url
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-ZVXB7OU7.mjs";
3
+ } from "./chunk-WCZBIE5L.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-ZVW7EWTC.mjs";
8
+ } from "./chunk-BLHQRETG.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-VFHIYWMC.mjs";
5
+ } from "./chunk-6DMLWM7L.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-4NIGNT7X.mjs";
8
+ } from "./chunk-KR2XEI5T.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-VFHIYWMC.mjs";
4
+ } from "./chunk-6DMLWM7L.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-TNQOR6XQ.mjs";
7
+ } from "./chunk-FAT6CUZK.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -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.493",
52
+ version: "0.3.494",
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."
@@ -100,7 +100,7 @@ var SDK_RELEASE = {
100
100
  {
101
101
  command: "search",
102
102
  introducedIn: "0.3.287",
103
- reason: "deepline search was added in SDK CLI 0.3.287 as the one search across tools, monitors, and plays. On an older version run deepline tools search or deepline plays search, or update."
103
+ reason: "deepline search was added in SDK CLI 0.3.287 as the one search across tools, monitors, plays, and docs. On an older version run deepline tools search or deepline plays search, or update."
104
104
  },
105
105
  {
106
106
  command: "notifications",
@@ -3,14 +3,14 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunk2H4OFVR5js = require('./chunk-2H4OFVR5.js');
6
+ var _chunkBU5Y7HODjs = require('./chunk-BU5Y7HOD.js');
7
7
 
8
8
 
9
- var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
9
+ var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkJO2JZUBRjs = require('./chunk-JO2JZUBR.js');
13
+ var _chunkY4GRL533js = require('./chunk-Y4GRL533.js');
14
14
 
15
15
  // src/cli/commands/search.ts
16
16
  var _commander = require('commander');
@@ -20,7 +20,7 @@ var _fs = require('fs');
20
20
  var _path = require('path');
21
21
  var SEARCH_REF_TTL_MS = 15 * 6e4;
22
22
  function lastSearchPath() {
23
- return _path.join.call(void 0, _chunkJO2JZUBRjs.sdkCliStateDirPath.call(void 0, _chunkJO2JZUBRjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
23
+ return _path.join.call(void 0, _chunkY4GRL533js.sdkCliStateDirPath.call(void 0, _chunkY4GRL533js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
24
24
  }
25
25
  function rememberSearchRef(searchRef) {
26
26
  try {
@@ -48,7 +48,8 @@ var SEARCH_TYPES = [
48
48
  "plays",
49
49
  "monitors",
50
50
  "prebuilts",
51
- "custom"
51
+ "custom",
52
+ "docs"
52
53
  ];
53
54
  var USAGE = 'Usage: deepline search "<task>" [--type <types>] [--json]';
54
55
  function parseTypes(flag, raw) {
@@ -118,7 +119,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
118
119
  console.error("--summary-width must be an integer of at least 2.");
119
120
  return 1;
120
121
  }
121
- const { search_ref: searchRef, ...result } = await new (0, _chunk2H4OFVR5js.DeeplineClient)().search({
122
+ const { search_ref: searchRef, ...result } = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().search({
122
123
  query,
123
124
  types,
124
125
  exclude,
@@ -132,8 +133,8 @@ async function runSearch(queryInput, options, types, exclude = []) {
132
133
  });
133
134
  if (searchRef) rememberSearchRef(searchRef);
134
135
  pointAtDescribe(result);
135
- const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-2FXN4ZWD.js")));
136
- _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, result, {
136
+ const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-YA6TXWGO.js")));
137
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0, result, {
137
138
  json: options.json === true,
138
139
  text: renderSearchResults(result, summaryWidth)
139
140
  });
@@ -164,10 +165,10 @@ Examples:
164
165
  function registerSearchCommand(program) {
165
166
  addSearchOptions(
166
167
  program.command("search [task]").description(
167
- "Search tools, monitors, and plays together, ranked by intent."
168
+ "Search tools, monitors, plays, and docs together, ranked by intent."
168
169
  ).option(
169
170
  "--type <types>",
170
- "Only these kinds, comma-separated: tools, plays, monitors",
171
+ "Only these kinds, comma-separated: tools, plays, monitors, docs",
171
172
  appendCsv
172
173
  ).option(
173
174
  "--exclude <types>",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-VFHIYWMC.mjs";
3
+ } from "./chunk-6DMLWM7L.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -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.493",
52
+ version: "0.3.494",
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."
@@ -100,7 +100,7 @@ var SDK_RELEASE = {
100
100
  {
101
101
  command: "search",
102
102
  introducedIn: "0.3.287",
103
- reason: "deepline search was added in SDK CLI 0.3.287 as the one search across tools, monitors, and plays. On an older version run deepline tools search or deepline plays search, or update."
103
+ reason: "deepline search was added in SDK CLI 0.3.287 as the one search across tools, monitors, plays, and docs. On an older version run deepline tools search or deepline plays search, or update."
104
104
  },
105
105
  {
106
106
  command: "notifications",