deepline 0.3.492 → 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 (185) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +11 -5
  2. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +2 -2
  4. package/dist/bundling-sources/sdk/src/types.ts +11 -4
  5. package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
  6. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
  7. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
  8. package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
  10. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
  13. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
  16. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
  19. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +15 -0
  20. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
  21. package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +101 -3
  22. package/dist/cli/{auth-4I6QY5WX.mjs → auth-6X5YXMFN.mjs} +5 -5
  23. package/dist/cli/auth-RWLCLMDY.js +43 -0
  24. package/dist/cli/{billing-2H4GOJZY.js → billing-5F5PZB77.js} +80 -80
  25. package/dist/cli/{billing-4F6L4JSI.mjs → billing-IN74SDSC.mjs} +7 -7
  26. package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
  27. package/dist/cli/{chunk-JJAHWKJ2.js → chunk-3KVFOKPR.js} +73 -59
  28. package/dist/cli/{chunk-NBL6JMIY.js → chunk-4A5WXQJK.js} +17 -17
  29. package/dist/cli/{chunk-YOCEY4EI.mjs → chunk-4RWH4LRQ.mjs} +5 -5
  30. package/dist/cli/{chunk-OGNIB64W.js → chunk-4ZKZS43N.js} +23 -15
  31. package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
  32. package/dist/cli/{chunk-3TISK5RQ.js → chunk-5WYH2LAP.js} +6 -6
  33. package/dist/cli/{chunk-MQ2LQOAM.mjs → chunk-65NMOP4T.mjs} +23 -9
  34. package/dist/cli/{chunk-O65HDVA7.mjs → chunk-6DMLWM7L.mjs} +5 -5
  35. package/dist/cli/{chunk-OTUT3XTX.mjs → chunk-6XZR2642.mjs} +8 -7
  36. package/dist/cli/{chunk-Q3CCCTRQ.js → chunk-7B7A36XZ.js} +14 -14
  37. package/dist/cli/{chunk-O3K22ZC7.js → chunk-AARXOBVD.js} +35 -11
  38. package/dist/cli/{chunk-DVGCPOEA.mjs → chunk-BLHQRETG.mjs} +187 -187
  39. package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
  40. package/dist/cli/{chunk-OTDX4A4W.js → chunk-BNI653WN.js} +21 -21
  41. package/dist/cli/{chunk-E47VAVAR.js → chunk-BU5Y7HOD.js} +5 -5
  42. package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-C5R3UH5V.mjs} +29 -2
  43. package/dist/cli/{chunk-HFEJ7JJT.js → chunk-CAWOSHEC.js} +26 -26
  44. package/dist/cli/{chunk-TVUE4CPW.js → chunk-CK5MA6S6.js} +32 -32
  45. package/dist/cli/{chunk-Y7QCMOGZ.mjs → chunk-DKKAJ3U2.mjs} +6 -6
  46. package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
  47. package/dist/cli/{chunk-3BRDP4UP.mjs → chunk-EG3OSUBO.mjs} +1 -1
  48. package/dist/cli/{chunk-ZCKUNXXR.mjs → chunk-FAT6CUZK.mjs} +1 -1
  49. package/dist/cli/{chunk-YNWET57Z.js → chunk-GBICEYUA.js} +13 -13
  50. package/dist/cli/{chunk-42Z6VC2Q.js → chunk-GDNQXLBM.js} +2 -2
  51. package/dist/cli/{chunk-SE23YSBK.js → chunk-GLDBMKTV.js} +3 -3
  52. package/dist/cli/{chunk-OKHBAAJG.mjs → chunk-GNSGDIA4.mjs} +2 -2
  53. package/dist/cli/{chunk-W4FEX5ZF.js → chunk-GSCCDGGT.js} +261 -261
  54. package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-H46X7YDU.mjs} +35 -11
  55. package/dist/cli/{chunk-3IBKEOL4.js → chunk-HINVMRGQ.js} +4 -4
  56. package/dist/cli/{chunk-HHTVRICE.js → chunk-I42EOZKQ.js} +44 -17
  57. package/dist/cli/{chunk-MPITIXW4.mjs → chunk-IPWYDANJ.mjs} +13 -5
  58. package/dist/cli/{chunk-YVOYZPMY.mjs → chunk-IZJSX3SZ.mjs} +2 -2
  59. package/dist/cli/{chunk-FFOJRD53.mjs → chunk-J2HOVZOE.mjs} +3 -3
  60. package/dist/cli/{chunk-EFFHRXKB.js → chunk-J3UHNUWI.js} +2 -2
  61. package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
  62. package/dist/cli/{chunk-PIC6M4X3.mjs → chunk-KR2XEI5T.mjs} +1 -1
  63. package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-KSHAFYYG.mjs} +2 -2
  64. package/dist/cli/{chunk-6YO4OJPM.mjs → chunk-KVCQL6SP.mjs} +99 -24
  65. package/dist/cli/{chunk-RC366IJS.mjs → chunk-L2P2XRPO.mjs} +38 -6
  66. package/dist/cli/{chunk-R5MP3CIY.mjs → chunk-L4QPBQUX.mjs} +3 -3
  67. package/dist/cli/{chunk-4RB74KJX.js → chunk-L6KA4ENU.js} +47 -15
  68. package/dist/cli/{chunk-MJFVF5AW.mjs → chunk-L6L57RSG.mjs} +2 -2
  69. package/dist/cli/{chunk-F6EQWY4E.mjs → chunk-MWZNMWR2.mjs} +2 -2
  70. package/dist/cli/{chunk-LCCFGSV7.mjs → chunk-ODWTFVE4.mjs} +2 -2
  71. package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
  72. package/dist/cli/{chunk-UUH4GQRL.mjs → chunk-QOEI42IU.mjs} +2 -2
  73. package/dist/cli/{chunk-JHBRJDUC.js → chunk-QSRWBOPV.js} +11 -10
  74. package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
  75. package/dist/cli/{chunk-EANFUHRM.mjs → chunk-RPFNIMUO.mjs} +1 -1
  76. package/dist/cli/{chunk-DJOLMS2A.js → chunk-S3XQH7DW.js} +2 -2
  77. package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
  78. package/dist/cli/{chunk-GDSZWTJK.mjs → chunk-TLQXN4ZZ.mjs} +12 -12
  79. package/dist/cli/{chunk-O2FB42N2.js → chunk-USWLB4KV.js} +234 -234
  80. package/dist/cli/{chunk-BDUFZSUL.js → chunk-VMPM2FKT.js} +8 -8
  81. package/dist/cli/{chunk-4GJIJHRQ.mjs → chunk-WCZBIE5L.mjs} +1 -1
  82. package/dist/cli/{chunk-NF7NUKWF.js → chunk-WP45PUPW.js} +132 -57
  83. package/dist/cli/{chunk-FPLN7PHP.js → chunk-X6HIIHQO.js} +5 -5
  84. package/dist/cli/{chunk-B2JE3HD6.js → chunk-Y4GRL533.js} +3 -3
  85. package/dist/cli/{chunk-ZDTPSVGF.js → chunk-ZZD245Z2.js} +10 -10
  86. package/dist/cli/command-docs.js +2 -2
  87. package/dist/cli/command-docs.mjs +1 -1
  88. package/dist/cli/{csv-JGJNDRSA.js → csv-QD7JJGSP.js} +13 -13
  89. package/dist/cli/{csv-VGXGV7YM.mjs → csv-UBW4ID5D.mjs} +4 -4
  90. package/dist/cli/{db-W52WJ6E5.js → db-AARR3WYD.js} +28 -28
  91. package/dist/cli/{db-OYG27ZBM.mjs → db-QFDXKIVD.mjs} +7 -7
  92. package/dist/cli/describe-OBVIAC2H.mjs +50 -0
  93. package/dist/cli/describe-RYJ6HDYD.js +50 -0
  94. package/dist/cli/describe-core.d.mts +5 -11
  95. package/dist/cli/describe-core.d.ts +5 -11
  96. package/dist/cli/describe-core.js +5 -5
  97. package/dist/cli/describe-core.mjs +4 -4
  98. package/dist/cli/{executions-EVE4KUGL.mjs → executions-IZYUDYTZ.mjs} +7 -7
  99. package/dist/cli/{executions-LAJHZGPY.js → executions-KXY7KMZY.js} +9 -9
  100. package/dist/cli/{feedback-ZABCN7RT.js → feedback-3334HBPD.js} +8 -8
  101. package/dist/cli/{feedback-75QB7KVG.mjs → feedback-IVCVBERN.mjs} +4 -4
  102. package/dist/cli/getting-started.d.mts +12 -10
  103. package/dist/cli/getting-started.d.ts +12 -10
  104. package/dist/cli/getting-started.js +4 -2
  105. package/dist/cli/getting-started.mjs +3 -1
  106. package/dist/cli/git-4VLYFHNU.js +25 -0
  107. package/dist/cli/{git-QIFEYQGY.mjs → git-JHNVET5A.mjs} +5 -5
  108. package/dist/cli/index.js +143 -143
  109. package/dist/cli/index.mjs +43 -43
  110. package/dist/cli/{legacy-noops-2TBIAMCM.js → legacy-noops-DBA32JCV.js} +8 -8
  111. package/dist/cli/{legacy-noops-PNTWBBGY.mjs → legacy-noops-WGVBUOCC.mjs} +5 -5
  112. package/dist/cli/{monitors-UKBOEGBS.js → monitors-GHWZ5AZS.js} +169 -129
  113. package/dist/cli/{monitors-LOHUYJEI.mjs → monitors-ZGANC7JY.mjs} +49 -9
  114. package/dist/cli/{org-JRUKUOUF.mjs → org-CUS42N2T.mjs} +7 -7
  115. package/dist/cli/{org-E7A6QLBW.js → org-S7JWP264.js} +73 -73
  116. package/dist/cli/{pages-K76HA473.mjs → pages-IH56T6L6.mjs} +7 -7
  117. package/dist/cli/{pages-EUDFFLLD.js → pages-QXRZDEJW.js} +18 -18
  118. package/dist/cli/{play-UWHNUJRA.js → play-4C5PYS62.js} +661 -566
  119. package/dist/cli/{play-DG2N66SV.mjs → play-Z65ZFOQH.mjs} +147 -52
  120. package/dist/cli/{providers-RUTTPUZD.mjs → providers-FSZSJX4Z.mjs} +7 -7
  121. package/dist/cli/{providers-DZX6TTC6.js → providers-XYQGYF3O.js} +10 -10
  122. package/dist/cli/{quickstart-RGZZN2YE.mjs → quickstart-DHWVE32I.mjs} +5 -5
  123. package/dist/cli/{quickstart-U4NMD7KX.js → quickstart-ZA25RJT3.js} +13 -13
  124. package/dist/cli/{run-5UNF4FHG.js → run-5MP6LEHM.js} +45 -44
  125. package/dist/cli/{run-MOJWQYFQ.mjs → run-WRPPEPLG.mjs} +30 -29
  126. package/dist/cli/search-4SQFVNTB.js +32 -0
  127. package/dist/cli/{search-5B3ZDU7H.mjs → search-A6NVJPKX.mjs} +8 -8
  128. package/dist/cli/{search-output-QS4IWWHA.mjs → search-output-PAOUMVXY.mjs} +7 -4
  129. package/dist/cli/{search-output-VQWJS3FN.js → search-output-YA6TXWGO.js} +9 -6
  130. package/dist/cli/{secrets-S3PJMEAC.js → secrets-AZYOGH3I.js} +16 -16
  131. package/dist/cli/{secrets-V5XVDBIS.mjs → secrets-ZGF7JOBI.mjs} +7 -7
  132. package/dist/cli/{sessions-Y5QMEZ3D.js → sessions-GCIN5VXT.js} +6 -6
  133. package/dist/cli/{sessions-5V3X24XI.mjs → sessions-RNEAXZPV.mjs} +5 -5
  134. package/dist/cli/{settings-3U6RRO5F.js → settings-LMEZNLBB.js} +80 -80
  135. package/dist/cli/{settings-LHZYY5PT.mjs → settings-NO5KXQJF.mjs} +13 -13
  136. package/dist/cli/{setup-AJLWXYAN.mjs → setup-GCYB4IFS.mjs} +13 -13
  137. package/dist/cli/{setup-MLLIGO2S.js → setup-XKTZPYYH.js} +57 -57
  138. package/dist/cli/{skills-5O2MUWKK.mjs → skills-TY4HHIKH.mjs} +10 -10
  139. package/dist/cli/skills-V4APQA2I.js +36 -0
  140. package/dist/cli/tools-HKQLQ7HT.js +57 -0
  141. package/dist/cli/{tools-PWNMI5CD.mjs → tools-RDTHHYJ3.mjs} +21 -21
  142. package/dist/cli/{update-SXT4QW7S.mjs → update-BRLLTTCS.mjs} +10 -10
  143. package/dist/cli/update-Z4MUAHWM.js +34 -0
  144. package/dist/cli/{workflow-KPRM6ARO.mjs → workflow-F72EVZWM.mjs} +8 -8
  145. package/dist/cli/{workflow-3WTF5IYT.js → workflow-YHA4WE3K.js} +18 -18
  146. package/dist/{client-Cb1ej1Vr.d.ts → client-97yTcdLl.d.ts} +1 -1
  147. package/dist/{client-vWpbLNCB.d.mts → client-CFo9qalW.d.mts} +1 -1
  148. package/dist/{client-core-BmVs6SP0.d.ts → client-core-BRZrY13B.d.ts} +15 -8
  149. package/dist/{client-core-CoBTvsXG.d.mts → client-core-Dl6xgfLq.d.mts} +15 -8
  150. package/dist/{compiler-manifest-BFTwq1HI.d.mts → compiler-manifest-CPEF48NM.d.mts} +91 -0
  151. package/dist/{compiler-manifest-BFTwq1HI.d.ts → compiler-manifest-CPEF48NM.d.ts} +91 -0
  152. package/dist/{errors-c3pMsylw.d.ts → errors-B-PJXveg.d.ts} +1 -1
  153. package/dist/{errors-w31ybrQM.d.mts → errors-BWbPzqwo.d.mts} +1 -1
  154. package/dist/{index-DvNtxucX.d.mts → index-BJ8AA1F9.d.mts} +1 -1
  155. package/dist/{index-CQ-15-QL.d.ts → index-CvVxPpE8.d.ts} +1 -1
  156. package/dist/index.d.mts +7 -7
  157. package/dist/index.d.ts +7 -7
  158. package/dist/index.js +27 -19
  159. package/dist/index.mjs +16 -8
  160. package/dist/install-integrity.json +123 -122
  161. package/dist/plays/bundle-play-file.d.mts +3 -3
  162. package/dist/plays/bundle-play-file.d.ts +3 -3
  163. package/dist/plays/play-description.d.mts +2 -2
  164. package/dist/plays/play-description.d.ts +2 -2
  165. package/dist/plays/run-request.d.mts +2 -2
  166. package/dist/plays/run-request.d.ts +2 -2
  167. package/dist/plays/run-request.js +2 -2
  168. package/dist/plays/run-request.mjs +1 -1
  169. package/dist/release.d.mts +2 -2
  170. package/dist/release.d.ts +2 -2
  171. package/dist/release.js +2 -2
  172. package/dist/release.mjs +1 -1
  173. package/dist/server.d.mts +4 -4
  174. package/dist/server.d.ts +4 -4
  175. package/dist/server.js +6 -6
  176. package/dist/server.mjs +4 -4
  177. package/package.json +1 -1
  178. package/dist/cli/auth-7BCLZU6K.js +0 -43
  179. package/dist/cli/describe-FIXCRO5N.mjs +0 -50
  180. package/dist/cli/describe-G3O6OUBG.js +0 -50
  181. package/dist/cli/git-QBAR46NW.js +0 -25
  182. package/dist/cli/search-3DAEJL6S.js +0 -32
  183. package/dist/cli/skills-BBLIML5M.js +0 -36
  184. package/dist/cli/tools-X5SQXUMM.js +0 -57
  185. package/dist/cli/update-AEJ2ZSZQ.js +0 -34
@@ -4,20 +4,20 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-Y7QCMOGZ.mjs";
7
+ } from "./chunk-DKKAJ3U2.mjs";
8
8
  import {
9
9
  isCiEnvironment
10
- } from "./chunk-DVGCPOEA.mjs";
10
+ } from "./chunk-BLHQRETG.mjs";
11
11
  import {
12
12
  addJsonNotice,
13
13
  isJsonOutputMode
14
- } from "./chunk-O65HDVA7.mjs";
14
+ } from "./chunk-6DMLWM7L.mjs";
15
15
  import {
16
16
  resolveApiKeyForBaseUrl
17
- } from "./chunk-PIC6M4X3.mjs";
17
+ } from "./chunk-KR2XEI5T.mjs";
18
18
  import {
19
19
  SDK_VERSION
20
- } from "./chunk-ZCKUNXXR.mjs";
20
+ } from "./chunk-FAT6CUZK.mjs";
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk4IP5MLWUjs = require('./chunk-4IP5MLWU.js');
5
+ var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
9
+ var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
10
10
 
11
11
  // src/cli/describe-options.ts
12
12
  function addDescribeOptions(command, options = {}) {
@@ -24,7 +24,7 @@ function addDescribeOptions(command, options = {}) {
24
24
  "Show only the in-play example, and explain how it takes inputs and returns outputs"
25
25
  ).option("--no-example", "Hide the run examples").option(
26
26
  "--full-schema",
27
- `Print every field: a long schema unfolded (over ${_chunk4IP5MLWUjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
27
+ `Print every field: a long schema unfolded (over ${_chunkJO5FFSR7js.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
28
28
  ).option(
29
29
  "--fields <names>",
30
30
  "Show only these fields, comma-separated, plus every required input"
@@ -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 _chunkZDTPSVGFjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
250
+ return _chunkZZD245Z2js.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 _chunkZDTPSVGFjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
+ return _chunkZZD245Z2js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
646
646
  }
647
647
  function writeExecutionOutput(result, options) {
648
648
  let temp;
@@ -868,9 +868,9 @@ function annotated(schema, values) {
868
868
  function shapeLines(title, data) {
869
869
  const schema = annotated(observedSchema(data), [data]);
870
870
  const block = (heading, fieldSchema) => {
871
- const { lines, folded } = _chunk4IP5MLWUjs.fieldBlockLines.call(void 0,
871
+ const { lines, folded } = _chunkJO5FFSR7js.fieldBlockLines.call(void 0,
872
872
  heading,
873
- _chunk4IP5MLWUjs.schemaFields.call(void 0, fieldSchema)
873
+ _chunkJO5FFSR7js.schemaFields.call(void 0, fieldSchema)
874
874
  );
875
875
  return [
876
876
  ...lines,
@@ -892,7 +892,10 @@ function receiptText(receipt, options, extra) {
892
892
  const sections = [
893
893
  [
894
894
  options.label ? `${headline}: ${options.label}` : headline,
895
- ...receipt.id ? [`Id: ${receipt.id}`] : [],
895
+ // A tool call's id is its retry key; a play's is the run to look up.
896
+ ...receipt.id ? [
897
+ `${_optionalChain([options, 'access', _13 => _13.label, 'optionalAccess', _14 => _14.endsWith, 'call', _15 => _15("(tool)")]) ? "Call Id" : "Run Id"}: ${receipt.id}`
898
+ ] : [],
896
899
  ...receipt.credits !== null ? [
897
900
  `Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}`
898
901
  ] : [],
@@ -901,14 +904,16 @@ function receiptText(receipt, options, extra) {
901
904
  ];
902
905
  const { csv, json } = receipt.outputs;
903
906
  const data = [];
907
+ let resultSection;
904
908
  for (const artifact of csv) {
905
909
  data.push(
906
910
  `Rows: ${_nullishCoalesce(artifact.path, () => ( "stdout"))} (${artifact.rowCount} rows from ${listPath(_nullishCoalesce(artifact.source, () => ( ""))) || "the result"})`
907
911
  );
908
912
  }
909
913
  if (extra.data !== void 0) {
910
- const title = json ? `Result: ${_nullishCoalesce(json.path, () => ( "stdout"))}` : "Result (not saved; --json-out saves all of it):";
911
- data.push(...resultLines(title, extra.data, extra.declared, options));
914
+ const title = json ? "Result:" : "Result (not saved; --json-out saves all of it):";
915
+ resultSection = resultLines(title, extra.data, extra.declared, options);
916
+ if (_optionalChain([json, 'optionalAccess', _16 => _16.path])) data.push(`Saved: ${json.path}`);
912
917
  if (receipt.schemaFile) {
913
918
  data.push(`Full JSON Schema: ${receipt.schemaFile}`);
914
919
  }
@@ -949,6 +954,7 @@ function receiptText(receipt, options, extra) {
949
954
  if (extra.receiptFile) {
950
955
  sections.push([`JSON receipt: ${extra.receiptFile}`]);
951
956
  }
957
+ if (resultSection) sections.push(resultSection);
952
958
  return `${sections.map((lines) => lines.join("\n")).join("\n\n")}
953
959
  `;
954
960
  }
@@ -972,7 +978,7 @@ function resultLines(title, data, declared, options) {
972
978
  const budget = _nullishCoalesce(options.lines, () => ( OUTLINE_LINES));
973
979
  const indented = (lines) => lines.map((line) => ` ${line}`);
974
980
  const more = "Not everything is shown: --lines <n> shows more, --fields <paths> picks fields, --full shows every field's type.";
975
- if (_optionalChain([options, 'access', _13 => _13.fields, 'optionalAccess', _14 => _14.length])) {
981
+ if (_optionalChain([options, 'access', _17 => _17.fields, 'optionalAccess', _18 => _18.length])) {
976
982
  const byName = new Map(
977
983
  (_nullishCoalesce(declared, () => ( []))).map((output) => [output.name, output])
978
984
  );
@@ -990,13 +996,13 @@ function resultLines(title, data, declared, options) {
990
996
  const { missing } = picked;
991
997
  const outline2 = value === void 0 ? null : outlineLines(value, budget);
992
998
  return [
993
- `${title}${_optionalChain([outline2, 'optionalAccess', _15 => _15.note]) ? ` ${outline2.note}` : ""}`,
994
- ...indented(_nullishCoalesce(_optionalChain([outline2, 'optionalAccess', _16 => _16.lines]), () => ( []))),
999
+ `${title}${_optionalChain([outline2, 'optionalAccess', _19 => _19.note]) ? ` ${outline2.note}` : ""}`,
1000
+ ...indented(_nullishCoalesce(_optionalChain([outline2, 'optionalAccess', _20 => _20.lines]), () => ( []))),
995
1001
  ...missing.map((path) => `No field at ${path}.`),
996
- ..._optionalChain([outline2, 'optionalAccess', _17 => _17.cut]) ? [more] : []
1002
+ ..._optionalChain([outline2, 'optionalAccess', _21 => _21.cut]) ? [more] : []
997
1003
  ];
998
1004
  }
999
- if (_optionalChain([declared, 'optionalAccess', _18 => _18.length])) {
1005
+ if (_optionalChain([declared, 'optionalAccess', _22 => _22.length])) {
1000
1006
  const outline2 = outlineLines(
1001
1007
  Object.fromEntries(declared.map(({ name, value }) => [name, value])),
1002
1008
  budget
@@ -1008,6 +1014,8 @@ function resultLines(title, data, declared, options) {
1008
1014
  outline2.cut ? more : "--full shows every field of the result; --fields <paths> picks fields."
1009
1015
  ];
1010
1016
  }
1017
+ const json = _optionalChain([JSON, 'access', _23 => _23.stringify, 'call', _24 => _24(data, null, 2), 'optionalAccess', _25 => _25.split, 'call', _26 => _26("\n")]);
1018
+ if (json && json.length <= budget) return [title, ...json];
1011
1019
  const outline = outlineLines(data, budget);
1012
1020
  return [
1013
1021
  `${title}${outline.note ? ` ${outline.note}` : ""}`,
@@ -34,24 +34,25 @@ var DEEPLINE_GTM_STARTER_PROMPTS = [
34
34
  var DEEPLINE_GTM_PRIMARY_STARTER_PROMPT = DEEPLINE_GTM_STARTER_PROMPTS[0].prompt;
35
35
  var DEEPLINE_GTM_HANDOFF_QUESTION = "What would you like to do with Deepline?";
36
36
  var DEEPLINE_GTM_CUSTOM_OPTION = "Tell me what you want to accomplish and I'll help you build it";
37
+ var DEEPLINE_GTM_GLOBAL_SKILL_ROOTS = "~/.claude/skills or ~/.agents/skills";
37
38
  var DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE = "~/.agents/skills/deepline-gtm/SKILL.md";
38
- function deeplineGtmStarterSkillStep(codexSkillFile) {
39
- return `Load the deepline-gtm skill first. Claude Code: invoke it with the selected prompt. Codex and others: read ${codexSkillFile}, installed mid-session so unlisted. Then run the starter command as written, adding no flags.`;
39
+ function deeplineGtmStarterSkillStep(skillRoots) {
40
+ return `Load the deepline-gtm skill first; if it's unknown or not found, read deepline-gtm/SKILL.md from ${skillRoots}. Then run the starter command as written, adding no flags.`;
40
41
  }
41
42
  var DEEPLINE_GTM_STARTER_SKILL_STEP = deeplineGtmStarterSkillStep(
42
- `${DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE} (project .agents/skills/ if setup reports local scope)`
43
+ `${DEEPLINE_GTM_GLOBAL_SKILL_ROOTS} (project .claude/skills or .agents/skills if setup reports local scope)`
43
44
  );
44
45
  var DEEPLINE_GTM_STARTER_OPTIONS = [
45
46
  ...DEEPLINE_GTM_STARTER_PROMPTS.map(({ prompt }) => prompt),
46
47
  DEEPLINE_GTM_CUSTOM_OPTION
47
48
  ];
48
- function deeplineGtmGettingStartedPayload(codexSkillFile = DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE) {
49
+ function deeplineGtmGettingStartedPayload(skillRoots = DEEPLINE_GTM_GLOBAL_SKILL_ROOTS) {
49
50
  return {
50
51
  skill: DEEPLINE_GTM_SKILL,
51
52
  examples: DEEPLINE_GTM_STARTER_PROMPTS,
52
53
  question: DEEPLINE_GTM_HANDOFF_QUESTION,
53
54
  customOption: DEEPLINE_GTM_CUSTOM_OPTION,
54
- starterBehavior: deeplineGtmStarterSkillStep(codexSkillFile),
55
+ starterBehavior: deeplineGtmStarterSkillStep(skillRoots),
55
56
  customProblemBehavior: "Turn the business problem into one exact /deepline-gtm prompt, show that reusable prompt, then execute it without asking the user to paste it again."
56
57
  };
57
58
  }
@@ -62,6 +63,7 @@ export {
62
63
  DEEPLINE_GTM_PRIMARY_STARTER_PROMPT,
63
64
  DEEPLINE_GTM_HANDOFF_QUESTION,
64
65
  DEEPLINE_GTM_CUSTOM_OPTION,
66
+ DEEPLINE_GTM_GLOBAL_SKILL_ROOTS,
65
67
  DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE,
66
68
  deeplineGtmStarterSkillStep,
67
69
  DEEPLINE_GTM_STARTER_SKILL_STEP,
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkEFFHRXKBjs = require('./chunk-EFFHRXKB.js');
3
+ var _chunkJ3UHNUWIjs = require('./chunk-J3UHNUWI.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkO2FB42N2js = require('./chunk-O2FB42N2.js');
8
+ var _chunkUSWLB4KVjs = require('./chunk-USWLB4KV.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunkO2FB42N2js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkEFFHRXKBjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkUSWLB4KVjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkO2FB42N2js.checkSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkUSWLB4KVjs.checkSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
32
  if (compatibility.error) throw compatibility.error;
33
- _chunkO2FB42N2js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
33
+ _chunkUSWLB4KVjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
34
34
  quietAdvisory: true
35
35
  });
36
36
  }
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-O65HDVA7.mjs";
5
+ } from "./chunk-6DMLWM7L.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -22,14 +22,14 @@ import {
22
22
  saveHostEnvValues,
23
23
  saveProjectDeeplineEnvValues,
24
24
  storedHostApiKey
25
- } from "./chunk-PIC6M4X3.mjs";
25
+ } from "./chunk-KR2XEI5T.mjs";
26
26
  import {
27
27
  SDK_API_CONTRACT,
28
28
  SDK_VERSION,
29
29
  connectionFailureMessage,
30
30
  detectAgentRuntime,
31
31
  networkCauseCode
32
- } from "./chunk-ZCKUNXXR.mjs";
32
+ } from "./chunk-FAT6CUZK.mjs";
33
33
  import {
34
34
  DeeplineError
35
35
  } from "./chunk-HBL4PM5Q.mjs";
@@ -397,6 +397,22 @@ async function reportApprovalLinkShown(baseUrl, claim, mode) {
397
397
  } catch {
398
398
  }
399
399
  }
400
+ var CLAIM_REVEAL_REFUSAL_CODES = /* @__PURE__ */ new Set([
401
+ "CLAIM_ALREADY_REVEALED",
402
+ "CLAIM_REVEAL_FAILED"
403
+ ]);
404
+ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
405
+ if (status === 400 && CLAIM_REVEAL_REFUSAL_CODES.has(data.code)) {
406
+ clearPendingClaim(baseUrl, authScope);
407
+ console.error(
408
+ typeof data.error === "string" && data.error ? data.error : "Could not finish connecting. Run: deepline auth register"
409
+ );
410
+ return EXIT_AUTH;
411
+ }
412
+ console.error(`Auth status error (status ${status}).`);
413
+ if (typeof data.error === "string" && data.error) console.error(data.error);
414
+ return EXIT_SERVER;
415
+ }
400
416
  async function handleRegister(args, options) {
401
417
  const baseUrl = autoDetectBaseUrl().replace(/\/$/, "");
402
418
  let orgName = "";
@@ -498,13 +514,12 @@ async function handleRegister(args, options) {
498
514
  console.log("Status: unauthorized");
499
515
  return EXIT_AUTH;
500
516
  }
501
- if (s >= 500 || s === 0 || s === 400) {
517
+ if (s >= 500 || s === 0) {
502
518
  await sleep(2e3);
503
519
  continue;
504
520
  }
505
521
  if (s >= 400) {
506
- console.error(`Auth status error (status ${s}).`);
507
- return EXIT_SERVER;
522
+ return endClaimPollOnRefusal(s, statusData, baseUrl, authScope);
508
523
  }
509
524
  const state = String(statusData.status || "").toLowerCase();
510
525
  if (statusData.code === "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT") {
@@ -588,13 +603,12 @@ async function handleWait(args) {
588
603
  console.error("Claim is invalid. Run: deepline auth register");
589
604
  return EXIT_AUTH;
590
605
  }
591
- if (status >= 500 || status === 0 || status === 400) {
606
+ if (status >= 500 || status === 0) {
592
607
  await sleep(Math.min(2e3, Math.max(0, deadline - Date.now())));
593
608
  continue;
594
609
  }
595
610
  if (status >= 400) {
596
- console.error(`Auth status error (status ${status}).`);
597
- return EXIT_SERVER;
611
+ return endClaimPollOnRefusal(status, data, baseUrl, authScope);
598
612
  }
599
613
  const state = String(data.status || "").toLowerCase();
600
614
  if (data.code === "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT") {
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-PIC6M4X3.mjs";
5
+ } from "./chunk-KR2XEI5T.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-ZCKUNXXR.mjs";
8
+ } from "./chunk-FAT6CUZK.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -20,8 +20,8 @@ var RUN_FIELDS = new Set(
20
20
  var ROOTS = {
21
21
  describe: "name playKey reference displayName description pinned toolCategories tags origin ownerType canEdit canClone aliases inputSchema outputSchema staticPipeline csvInput rowOutputSchema runCommand examples cloneEditStarter currentPublishedVersion liveVersion triggerStatus triggerMetadata isDraftDirty latestRunId runtimeLimit activeScheduledPlays dashboardUrl command_context",
22
22
  check: "kind target checked scope name exportName valid stage issues inputSchema outputSchema recognized triggers runtimeLimit limits featureFlags sourceHash artifactHash graphHash toolGetterHints exports actions diagnostics reference origin ownerType activeScheduledPlays command_context",
23
- run: "schemaVersion kind run datasets actions apiVersion rateLimited dashboardUrl progress rowOutcomes steps errors error warnings result resultState execution command_context diagnostics",
24
- get: "schemaVersion kind run dashboardUrl runStatus steps failures errorDetails rowOutcomes warnings failedLogs datasets result resultState actions diagnostics command_context",
23
+ run: "schemaVersion kind run datasets actions apiVersion rateLimited dashboardUrl runUrl progress rowOutcomes steps errors error warnings result resultState execution command_context diagnostics",
24
+ get: "schemaVersion kind run dashboardUrl runUrl runStatus steps failures errorDetails rowOutcomes warnings failedLogs datasets result resultState actions diagnostics command_context",
25
25
  config: "runId contract command_context",
26
26
  export: "runId datasets csv_path json_path format source rowCount columns notice metadata_path actions command_context"
27
27
  };
@@ -51,7 +51,7 @@ function parseJsonFields(args, surface) {
51
51
  );
52
52
  }
53
53
  if (parts[0] === "run" && parts[1] && !RUN_FIELDS.has(parts[1])) {
54
- const hint = parts[1] === "url" ? " Use run.dashboardUrl." : parts[1] === "stats" ? " Dataset summaries are in datasets; run timing is in run.durationMs." : "";
54
+ const hint = parts[1] === "url" ? " Use runUrl." : parts[1] === "stats" ? " Dataset summaries are in datasets; run timing is in run.durationMs." : "";
55
55
  throw new DeeplineError(
56
56
  `Unknown --json run field '${parts[1]}'. Available: ${[...RUN_FIELDS].join(", ")}.${hint}`,
57
57
  void 0,
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-5AEDYVB6.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-OKHBAAJG.mjs";
6
+ } from "./chunk-GNSGDIA4.mjs";
7
7
  import {
8
8
  printCommandEnvelope
9
- } from "./chunk-O65HDVA7.mjs";
9
+ } from "./chunk-6DMLWM7L.mjs";
10
10
  import {
11
11
  resolveConfig,
12
12
  sdkCliStateDirPath
13
- } from "./chunk-PIC6M4X3.mjs";
13
+ } from "./chunk-KR2XEI5T.mjs";
14
14
 
15
15
  // src/cli/commands/search.ts
16
16
  import { Option } from "commander";
@@ -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) {
@@ -132,7 +133,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
132
133
  });
133
134
  if (searchRef) rememberSearchRef(searchRef);
134
135
  pointAtDescribe(result);
135
- const { renderSearchResults } = await import("./search-output-QS4IWWHA.mjs");
136
+ const { renderSearchResults } = await import("./search-output-PAOUMVXY.mjs");
136
137
  printCommandEnvelope(result, {
137
138
  json: options.json === true,
138
139
  text: renderSearchResults(result, summaryWidth)
@@ -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>",
@@ -3,15 +3,15 @@
3
3
  var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
4
4
 
5
5
 
6
- var _chunkTVUE4CPWjs = require('./chunk-TVUE4CPW.js');
6
+ var _chunkCK5MA6S6js = require('./chunk-CK5MA6S6.js');
7
7
 
8
8
 
9
- var _chunkAUQQVDABjs = require('./chunk-AUQQVDAB.js');
9
+ var _chunkPKV5CD3Wjs = require('./chunk-PKV5CD3W.js');
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
14
+ var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
15
15
 
16
16
 
17
17
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
579
579
  return raw;
580
580
  }
581
581
  function parsePlayRunOptions(args, initialInput = null) {
582
- const selection = _chunkZDTPSVGFjs.parseJsonFields.call(void 0, args, "run");
582
+ const selection = _chunkZZD245Z2js.parseJsonFields.call(void 0, args, "run");
583
583
  args = selection.args;
584
584
  const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
585
585
  let filePath = null;
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
591
591
  let revisionSelector = null;
592
592
  const watch = !args.includes("--no-wait");
593
593
  const dryRun = args.includes("--dry-run");
594
- let jsonOutput = dryRun ? _chunkZDTPSVGFjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkZDTPSVGFjs.argsWantJson.call(void 0, args);
594
+ let jsonOutput = dryRun ? _chunkZZD245Z2js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkZZD245Z2js.argsWantJson.call(void 0, args);
595
595
  const fullJson = args.includes("--full");
596
596
  const force = args.includes("--force");
597
597
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
654
654
  "--log-level requires one of: debug, info, warn, error."
655
655
  );
656
656
  }
657
- const parsed = _chunkTVUE4CPWjs.parseLogLevel.call(void 0, value);
657
+ const parsed = _chunkCK5MA6S6js.parseLogLevel.call(void 0, value);
658
658
  if (!parsed) {
659
659
  throw new Error(
660
660
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -778,12 +778,12 @@ function parsePlayRunOptions(args, initialInput = null) {
778
778
  }
779
779
  if (arg === "--debug" && args[index + 1] && !args[index + 1].startsWith("--")) {
780
780
  input ??= {};
781
- _chunkAUQQVDABjs.setDottedInputValue.call(void 0, input, "debug", parseInputFlagValue(args[++index]));
781
+ _chunkPKV5CD3Wjs.setDottedInputValue.call(void 0, input, "debug", parseInputFlagValue(args[++index]));
782
782
  continue;
783
783
  }
784
784
  if (arg.startsWith("--debug=")) {
785
785
  input ??= {};
786
- _chunkAUQQVDABjs.setDottedInputValue.call(void 0,
786
+ _chunkPKV5CD3Wjs.setDottedInputValue.call(void 0,
787
787
  input,
788
788
  "debug",
789
789
  parseInputFlagValue(arg.slice("--debug=".length))
@@ -811,7 +811,7 @@ function parsePlayRunOptions(args, initialInput = null) {
811
811
  if (arg.startsWith("--")) {
812
812
  const { path, value } = parseInputFieldFlag(arg, args[index + 1]);
813
813
  input ??= {};
814
- _chunkAUQQVDABjs.setDottedInputValue.call(void 0, input, path, parseInputFlagValue(value));
814
+ _chunkPKV5CD3Wjs.setDottedInputValue.call(void 0, input, path, parseInputFlagValue(value));
815
815
  if (!arg.includes("=")) {
816
816
  index += 1;
817
817
  }
@@ -900,7 +900,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
900
900
  let initialInput = options.input === void 0 ? null : parseJsonInput(options.input);
901
901
  if (typeof options.debug === "string") {
902
902
  initialInput ??= {};
903
- _chunkAUQQVDABjs.setDottedInputValue.call(void 0,
903
+ _chunkPKV5CD3Wjs.setDottedInputValue.call(void 0,
904
904
  initialInput,
905
905
  "debug",
906
906
  parseInputFlagValue(options.debug)
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
972
972
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
973
973
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
974
974
  );
975
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkTVUE4CPWjs.parseLogLevel.call(void 0, options.logLevel);
975
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkCK5MA6S6js.parseLogLevel.call(void 0, options.logLevel);
976
976
  if (!logLevel)
977
977
  throw new Error("--log-level requires one of: debug, info, warn, error.");
978
978
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
986
986
  if (debugAlias || debugMapLatency && logLevel === "info")
987
987
  logLevel = "debug";
988
988
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
989
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkZDTPSVGFjs.parseJsonFields.call(void 0,
990
- [...fullJson ? ["--full"] : [], ..._chunkZDTPSVGFjs.jsonFieldArgs.call(void 0, options.json)],
989
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkZZD245Z2js.parseJsonFields.call(void 0,
990
+ [...fullJson ? ["--full"] : [], ..._chunkZZD245Z2js.jsonFieldArgs.call(void 0, options.json)],
991
991
  "run"
992
992
  ).fields;
993
993
  const watch = options.wait === false ? false : base.watch;
994
994
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
995
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkZDTPSVGFjs.argsWantJson.call(void 0, []) : explicitJson;
995
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkZZD245Z2js.argsWantJson.call(void 0, []) : explicitJson;
996
996
  const verboseLogs = Boolean(
997
997
  debugAlias || logLevel === "debug" || debugMapLatency
998
998
  );
@@ -170,9 +170,9 @@ Auth in non-interactive shells:
170
170
  until it happens, so an unattended agent must not call it.
171
171
 
172
172
  Skills:
173
- The bare skills command reinstalls the Deepline skill files on disk. To see
174
- which skills are installed without changing anything, run
175
- skills --dry-run and read the plan.
173
+ skills install reinstalls the Deepline skill files on disk. To see which
174
+ skills are installed without changing anything, run skills install
175
+ --dry-run and read the plan.
176
176
  ]]
177
177
  `
178
178
  },
@@ -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"
@@ -1089,7 +1090,8 @@ Input:
1089
1090
  [[cli:
1090
1091
  Output (JSON, printed when the run ends):
1091
1092
  run {id, playName, status ("completed", "failed", "stopped")},
1092
- dashboardUrl, steps[] with per-step progress, rowOutcomes, warnings,
1093
+ runUrl (the Play page with this run selected; link it when you report the
1094
+ run), dashboardUrl, steps[] with per-step progress, rowOutcomes, warnings,
1093
1095
  datasets[] {datasetId, name, storage {schema, table}}, and actions holding
1094
1096
  exact follow-up commands: getRunCmd, getFullRunCmd, getBillingCmd,
1095
1097
  getLogsCmd, exportDatasetCmds[], queryTableSqlCmds[]. Rows are not in this
@@ -1102,7 +1104,7 @@ Output (JSON, printed when the run ends):
1102
1104
  [[mcp:
1103
1105
  Output:
1104
1106
  The run package deepline_get_run returns, once the run ends: run {id,
1105
- playName, status, dashboardUrl}, steps[] with per-step progress,
1107
+ playName, status, runUrl, dashboardUrl}, steps[] with per-step progress,
1106
1108
  rowOutcomes, warnings, datasets[] {tableNamespace, sqlQualifiedTableName,
1107
1109
  actions}, and next {inspect, full, billing, logs}, each naming the MCP call
1108
1110
  for that follow-up. Pass a dataset's tableNamespace as table_namespace to
@@ -1322,14 +1324,15 @@ When:
1322
1324
  Input:
1323
1325
  The run id. --full resolves a full-only result and adds diagnostics with
1324
1326
  billing and timeline (large). --log-failed attaches the failure log window.
1327
+ --web opens the run page in a browser; --web-url prints only its URL.
1325
1328
  --input prints the original input (may contain customer data). --json
1326
1329
  prints JSON; --json run.status,datasets.name selects fields.
1327
1330
  To parse the output (also with --full), add --json; stdout is then one JSON document.
1328
1331
  ]]
1329
1332
  [[cli:
1330
1333
  Output (JSON):
1331
- kind "run_overview", run {id, playName, status, startedAt, finishedAt,
1332
- durationMs}, steps[] {id, kind, status, label, progress {total, executed,
1334
+ kind "run_overview", runUrl (the Play page with this run selected),
1335
+ run {id, playName, status, startedAt, finishedAt, durationMs}, steps[] {id, kind, status, label, progress {total, executed,
1333
1336
  reused, failed, completedRows}}, failures.steps[], errorDetails,
1334
1337
  rowOutcomes, warnings[], datasets[] {datasetId, name, rowCount, summary,
1335
1338
  storage {schema, table}, preview {returnedRows, totalRows, partial, rows}},
@@ -1341,9 +1344,9 @@ Output (JSON):
1341
1344
  ]]
1342
1345
  [[mcp:
1343
1346
  Output:
1344
- The run package (kind "play_run"): run {id, playName, status}, steps[],
1345
- rowOutcomes, warnings, datasets[] {tableNamespace, sqlQualifiedTableName,
1346
- actions}, and next.*.command, each naming the MCP call for a follow-up.
1347
+ The run package (kind "play_run"): run {id, playName, status, runUrl},
1348
+ steps[], rowOutcomes, warnings, datasets[] {tableNamespace,
1349
+ sqlQualifiedTableName, actions}, and next.*.command, each naming the MCP call for a follow-up.
1347
1350
  With full: true the package is under package, beside the diagnostics.
1348
1351
  ]]
1349
1352
  Cost:
@@ -1875,6 +1878,27 @@ Cost:
1875
1878
  },
1876
1879
  skills: {
1877
1880
  core: `
1881
+ Purpose:
1882
+ Read the Deepline agent skills (deepline-gtm and its siblings) without
1883
+ installing anything.
1884
+ When:
1885
+ Before starting GTM work, read the skill: skills show prints
1886
+ deepline-gtm, skills list names every skill, skills show <name> prints one.
1887
+ [[cli:
1888
+ Input:
1889
+ list | show [name] | install; --json. With no verb, prints this help.
1890
+ ]]
1891
+ Output:
1892
+ list prints one name and description per line; show prints the skill's
1893
+ SKILL.md as markdown. Neither writes anything.
1894
+ Cost:
1895
+ Free.
1896
+ Avoid:
1897
+ To install or refresh skill files use [[skills install]].
1898
+ `
1899
+ },
1900
+ "skills install": {
1901
+ core: `
1878
1902
  Purpose:
1879
1903
  Reinstall the Deepline agent skill files (deepline-gtm and its siblings)
1880
1904
  from the current release. It writes to disk.
@@ -1891,7 +1915,7 @@ Output (JSON):
1891
1915
  Cost:
1892
1916
  Free.
1893
1917
  Avoid:
1894
- The bare command replaces skill files; in a sandbox or a task that said
1918
+ Without --dry-run it replaces skill files; in a sandbox or a task that said
1895
1919
  not to change skills, use [[--dry-run]].
1896
1920
  `
1897
1921
  },